:root {
    --pchr-navy: #14213d;
    --pchr-crimson: #ae3a2e;
    --pchr-ink: #1f2430;
    --pchr-muted: #6b7280;
    --pchr-line: #e5e7eb;
    --pchr-bg: #f7f8fa;
    --pchr-card: #ffffff;
    --pchr-ok: #1a7f37;
}

.pchr, .pchr * { box-sizing: border-box; }
.pchr {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--pchr-ink);
    max-width: 1040px;
    margin: 0 auto;
}

/* Top bar */
.pchr-top {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; background: var(--pchr-navy); color: #fff;
    border-radius: 12px; margin-bottom: 18px;
}
.pchr-brand { font-weight: 700; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.pchr-stamp {
    display: inline-grid; place-items: center; width: 30px; height: 30px;
    border: 2px solid var(--pchr-crimson); border-radius: 50%;
    color: #fff; font-size: 12px; font-weight: 800; transform: rotate(-8deg);
}
.pchr-user { font-size: 13px; opacity: .9; }
.pchr-user a { color: #fff; text-decoration: underline; }

.pchr-h1 { font-size: 22px; margin: 6px 0 14px; }
.pchr-note {
    background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12;
    padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 14px;
}

/* Tabs */
.pchr-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--pchr-line); margin-bottom: 18px; flex-wrap: wrap; }
.pchr-tab {
    padding: 9px 14px; text-decoration: none; color: var(--pchr-muted);
    font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.pchr-tab.active { color: var(--pchr-crimson); border-bottom-color: var(--pchr-crimson); }

/* Cards */
.pchr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pchr-card { background: var(--pchr-card); border: 1px solid var(--pchr-line); border-radius: 12px; padding: 16px; }
.pchr-card-num { font-size: 28px; font-weight: 800; color: var(--pchr-navy); }
.pchr-card-label { font-size: 13px; color: var(--pchr-muted); margin-top: 2px; }

/* Panels */
.pchr-panel { background: var(--pchr-card); border: 1px solid var(--pchr-line); border-radius: 12px; padding: 18px; margin-bottom: 18px; }
.pchr-panel h3 { margin: 0 0 12px; font-size: 16px; }

/* Forms */
.pchr-form .pchr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.pchr-grid label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; color: var(--pchr-ink); gap: 5px; }
.pchr-grid .pchr-wide { grid-column: 1 / -1; }
.pchr-grid input, .pchr-grid select {
    padding: 9px 10px; border: 1px solid var(--pchr-line); border-radius: 8px; font-size: 14px; font-weight: 400;
}
.pchr-inline { display: inline-flex; gap: 6px; }

/* Buttons */
.pchr-btn {
    border: 1px solid var(--pchr-line); background: #fff; color: var(--pchr-ink);
    padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.pchr-btn:hover { border-color: #cbd0d8; }
.pchr-btn-primary { background: var(--pchr-crimson); border-color: var(--pchr-crimson); color: #fff; }
.pchr-btn-primary:hover { background: #97302650; background: #97322a; }
.pchr-btn-primary:disabled, .pchr-btn:disabled { opacity: .5; cursor: not-allowed; }
.pchr-btn-lg { padding: 12px 26px; font-size: 15px; }
.pchr-btn-sm { padding: 6px 10px; font-size: 12px; }

/* Tables */
.pchr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pchr-table th, .pchr-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--pchr-line); }
.pchr-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--pchr-muted); }
.pchr-muted { color: var(--pchr-muted); }

/* Badges */
.pchr-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pchr-pending  { background: #fef9c3; color: #854d0e; }
.pchr-approved { background: #dcfce7; color: #166534; }
.pchr-rejected { background: #fee2e2; color: #991b1b; }
.pchr-live { color: var(--pchr-ok); font-weight: 700; }
.pchr-out  { color: var(--pchr-crimson); font-weight: 700; }

/* Clock panel */
.pchr-clock { text-align: center; }
.pchr-clock-status { color: var(--pchr-muted); font-size: 14px; margin-bottom: 6px; }
.pchr-timer {
    font-size: 54px; font-weight: 800; letter-spacing: 1px; color: var(--pchr-navy);
    font-variant-numeric: tabular-nums; margin: 6px 0 16px;
}
.pchr-clock-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 14px; }
.pchr-consent { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pchr-muted); }
.pchr-gps-note { margin-top: 10px; font-size: 13px; min-height: 18px; }
.pchr-gps-note.err { color: var(--pchr-crimson); }
.pchr-gps-note.ok  { color: var(--pchr-ok); }

/* Holidays list */
.pchr-holidays { list-style: none; margin: 0; padding: 0; }
.pchr-holidays li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--pchr-line); }
.pchr-holiday-date { font-weight: 800; color: var(--pchr-crimson); width: 60px; }
.pchr-holiday-day { color: var(--pchr-muted); width: 90px; font-size: 13px; }
.pchr-holiday-name { font-weight: 600; }

/* Login */
.pchr-login { display: grid; grid-template-columns: 1fr 1fr; max-width: 860px; margin: 30px auto; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(20,33,61,.15); }
.pchr-login-left { background: var(--pchr-navy); color: #fff; padding: 46px 34px; }
.pchr-stamp-lg {
    display: inline-grid; place-items: center; width: 66px; height: 66px;
    border: 3px solid var(--pchr-crimson); border-radius: 50%;
    font-weight: 800; font-size: 22px; transform: rotate(-8deg); margin-bottom: 18px;
}
.pchr-login-left h2 { margin: 0 0 8px; font-size: 24px; }
.pchr-login-left p { opacity: .8; font-size: 14px; }
.pchr-login-right { background: #fff; padding: 46px 34px; }
.pchr-login-right h3 { margin: 0 0 16px; }
.pchr-login-right label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.pchr-login-right input[type=text], .pchr-login-right input[type=password] {
    width: 100%; padding: 10px; border: 1px solid var(--pchr-line); border-radius: 8px; margin-bottom: 12px;
}
.pchr-login-right input[type=submit], .pchr-login-right .button {
    background: var(--pchr-crimson); color: #fff; border: none; padding: 11px 18px;
    border-radius: 8px; font-weight: 700; cursor: pointer; width: 100%;
}

@media (max-width: 720px) {
    .pchr-login { grid-template-columns: 1fr; }
    .pchr-timer { font-size: 42px; }
    .pchr-top { flex-direction: column; gap: 8px; text-align: center; }
}

/* Plan pill next to company name */
.pchr-plan-pill {
    display: inline-block; font-size: 12px; font-weight: 700; vertical-align: middle;
    background: var(--pchr-navy); color: #fff; padding: 3px 10px; border-radius: 999px; margin-left: 6px;
}

/* Signup plan cards */
.pchr-signup .pchr-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 8px 0 24px; }
.pchr-plan { background: #fff; border: 1px solid var(--pchr-line); border-radius: 14px; padding: 20px; text-align: center; }
.pchr-plan-name { font-weight: 800; color: var(--pchr-navy); font-size: 17px; }
.pchr-plan-price { font-size: 30px; font-weight: 800; color: var(--pchr-crimson); margin: 6px 0; }
.pchr-plan-price span { font-size: 13px; font-weight: 600; color: var(--pchr-muted); }
.pchr-plan-cap { font-size: 13px; color: var(--pchr-muted); margin-bottom: 10px; }
.pchr-plan ul { list-style: none; margin: 0; padding: 0; text-align: left; }
.pchr-plan li { font-size: 13px; padding: 5px 0 5px 20px; position: relative; }
.pchr-plan li::before { content: "✓"; color: var(--pchr-ok); position: absolute; left: 0; font-weight: 700; }
