/* =============================================================
   careers.css — Inuka Africa Careers Site
   Brand: #317D46 green / #E3332C red  |  Font: Roboto
   careers.inukaafrica.com

   CLASS FAMILIES — check here before writing inline styles
   ─────────────────────────────────────────────────────────
   btn-*            Buttons (btn-green, btn-ghost, btn-sm, btn-outline-*)
   form-control     Standard form inputs / selects / textareas
   sf-*             Smart-filter bar (sf-select, sf-input, sf-label, sf-select-wrap)
   admin-*          Admin layout (admin-wrap, admin-topnav, admin-main, admin-table,
                    admin-form-card, admin-form-card-header/body/footer,
                    admin-badge, admin-filter-bar, admin-modal-*, admin-page-header,
                    admin-breadcrumb, admin-empty, admin-table-scroll)
   admin-dialog     Modal centering class — use on every <dialog> for automatic
                    fixed-centre positioning + backdrop; OR add #modal-id to both
                    selector lists in the "Admin dialog / modal" block (~line 2523)
   app-status-*     Pipeline status badges (app-status-badge + app-status-{stage})
   qn-*             Quick-notify modal (qn-channel-row, qn-preview-*, qn-status,
                    qn-iv-panel/heading/grid/label/ctrl)
   iv-*             Shared interview session cards — used in interview-day.php AND
                    interviewer.php (iv-cand-name/email, iv-venue-tag, iv-scored-tag,
                    iv-score-high/mid/low/none, iv-pan-ok/warn/none,
                    iv-card-body-flush, iv-table-flush)
   ivd-*            Interview Day page layout (ivd-session-card, ivd-card-header,
                    ivd-card-title, ivd-card-icon, ivd-card-stats, ivd-mode-badge)
   ivr-*            Interviewer sessions tab (ivr-tab-bar, ivr-session-card,
                    ivr-session-header, ivr-session-count, ivr-empty)
   ss-*             Interview Score Sheet (ss-body, ss-section, ss-section-title,
                    ss-table, ss-cell, ss-radio-hidden, ss-pip-label,
                    ss-yn-wrap, ss-yn-radio, ss-yn-label, ss-yn-yes/no, ss-footer)
   ats-*            ATS breakdown pills and pool composition
   app-next-step-*  Next-step hint banner variants
   nav-*            Public site nav (nav-logo, nav-tagline, nav-links)
   exp-*            CSV export column-picker modal (exp-col-grid, exp-col-item)
   ============================================================= */

/* ── 1. CSS Custom Properties ─────────────────────────────────── */
:root {
    /* Brand */
    --green:        #317D46;
    --green-dark:   #235834;
    --green-deeper: #1a4228;
    --green-light:  #e8f5ec;
    --green-mid:    #4a9e5f;
    --red:          #E3332C;
    --red-dark:     #b91c1c;
    --red-light:    #fdecea;

    /* Neutrals */
    --white:     #ffffff;
    --off-white: #fafaf8;
    --gray-50:   #f9fafb;
    --gray-100:  #f3f4f6;
    --gray-200:  #e5e7eb;
    --gray-300:  #d1d5db;
    --gray-500:  #6b7280;
    --gray-700:  #374151;
    --gray-900:  #111827;
    --text:      #1c2b1f;

    /* Typography — Roboto is the Inuka Africa brand font */
    --font-display: 'Roboto', sans-serif;
    --font-body:    'Roboto', sans-serif;

    /* Spacing — tighter sections to reduce dead vertical space */
    --section-py: clamp(1.25rem, 4vw, 2.5rem);
    --container:  1320px;

    /* UI */
    --radius-sm: 8px;
    --radius:    14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow:    0 4px 16px rgba(0,0,0,.09);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.13);
    --transition: .25s cubic-bezier(.4,0,.2,1);

    /* Nav */
    --nav-h:    72px;
    --topbar-h: 38px;
}

/* ── 2. Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 17px; /* up from 16px — improves body readability */
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── 3. Utility ────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--section-py); }
.text-center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
    position: absolute; top: -100px; left: 1rem; z-index: 9999;
    background: var(--green); color: var(--white);
    padding: .5rem 1rem; border-radius: var(--radius); font-weight: 700;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── 4. Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; }

.section-label {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .75rem;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 20px; height: 2px;
    background: var(--green);
    vertical-align: middle;
    margin-right: .5rem;
}

.lead { font-size: clamp(.8rem, 1.2vw, 1.0rem); color: var(--gray-800); line-height: 1.5; }

/* ── 5. Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .72rem 1.6rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none !important;
    min-height: 48px;
}
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: auto; }

.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }

.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn-blue { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-blue:hover { background: #1d4ed8; border-color: #1d4ed8; color: #fff; text-decoration: none; }
.btn-amber { background: #d97706; color: #fff; border-color: #d97706; }
.btn-amber:hover { background: #b45309; border-color: #b45309; color: #fff; text-decoration: none; }

.btn-outline-green { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-green:hover { background: var(--green-light); }

.btn-outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.btn-outline-red:hover { background: #fef2f2; }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.btn-ghost { background: transparent; color: var(--green); border-color: transparent; padding-inline: .5rem; }
.btn-ghost:hover { color: var(--green-dark); }

.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .88rem; min-height: 36px; }
.btn-xs { padding: .2rem .55rem; font-size: .78rem; min-height: 26px; line-height: 1.3; }
.bn-ch-lbl { display:inline-flex; align-items:center; gap:.25rem; font-size:.74rem; cursor:pointer; margin-right:.35rem; color:var(--gray-700); }
.bn-ch-na  { color:var(--gray-400); cursor:not-allowed; }

/* ── 6. Topbar ─────────────────────────────────────────────────── */
.topbar {
    background: var(--green-deeper);
    color: rgba(255,255,255,.85);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar-contacts { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar-link {
    display: flex; align-items: center; gap: .35rem;
    color: rgba(255,255,255,.85); font-size: .8rem;
    transition: color var(--transition);
}
.topbar-link:hover { color: var(--white); text-decoration: none; }

/* ── Topbar portal session widget ─────────────────────────────────── */
.topbar-portal { position: relative; display: flex; align-items: center; }

/* Signed-in button */
.topbar-portal-btn {
    display: flex; align-items: center; gap: .45rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: .22rem .65rem .22rem .28rem;
    cursor: pointer;
    color: rgba(255,255,255,.95);
    font-size: .78rem; font-weight: 500;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
}
.topbar-portal-btn:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.4); }
.topbar-portal-avatar {
    width: 22px; height: 22px; border-radius: 50%;
    background: rgba(255,255,255,.25);
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; flex-shrink: 0;
}
.topbar-portal-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.topbar-portal-caret { opacity: .7; flex-shrink: 0; transition: transform .2s; }
.topbar-portal.open .topbar-portal-caret { transform: rotate(180deg); }

/* Dropdown */
.topbar-portal-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: #fff; border: 1px solid var(--gray-200);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    min-width: 210px; padding: .4rem 0;
    opacity: 0; pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s;
    z-index: 600;
}
.topbar-portal.open .topbar-portal-dropdown {
    opacity: 1; pointer-events: auto; transform: translateY(0);
}
.topbar-portal-info {
    padding: .65rem 1rem .6rem;
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: .3rem;
}
.topbar-portal-info-name  { font-size: .85rem; font-weight: 600; color: var(--gray-900); }
.topbar-portal-info-email { font-size: .75rem; color: var(--gray-500); margin-top: .1rem; }
.topbar-portal-item {
    display: flex; align-items: center; gap: .55rem;
    padding: .55rem 1rem;
    font-size: .83rem; color: var(--gray-700);
    transition: background .1s, color .1s;
    text-decoration: none !important;
}
.topbar-portal-item:hover { background: var(--gray-50); color: var(--gray-900); }
.topbar-portal-item--danger { color: var(--red); }
.topbar-portal-item--danger:hover { background: #fef2f2; color: var(--red); }

/* Sign-in link (logged out) */
.topbar-portal-signin {
    display: flex; align-items: center; gap: .35rem;
    color: rgba(255,255,255,.85); font-size: .8rem;
    transition: color var(--transition);
    text-decoration: none !important;
    white-space: nowrap;
}
.topbar-portal-signin:hover { color: var(--white); }

@media (max-width: 479px) {
    .topbar-contacts { gap: .75rem; }
    .topbar-link { font-size: .72rem; }
    .topbar-portal-label { display: none; }
    .topbar-portal-caret { display: none; }
}

/* ── 7. Site Header / Nav ──────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    height: var(--nav-h);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 1rem;
}
.nav-logo { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-decoration: none; }
.nav-logo img { height: 42px; width: auto; }
.nav-tagline { font-size: .68rem; color: var(--green-mid); font-style: italic; letter-spacing: .03em; line-height: 1; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
    display: block;
    padding: .5rem .85rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: 0; left: .85rem; right: .85rem;
    height: 2px; background: var(--green);
    transform: scaleX(0); transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--green); text-decoration: none; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }
.nav-cta { margin-left: 1rem; }

/* Hamburger */
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: none; background: none; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--gray-100); }
.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 22px; height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger { position: relative; }
.hamburger::before { position: absolute; top: -7px; }
.hamburger::after  { position: absolute; top:  7px; }
.nav-open .hamburger         { background: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-open .hamburger::after  { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 1023px) {
    .nav-toggle { display: flex; }
    .nav-cta.nav-cta { display: none; }
    .main-nav {
        position: fixed;
        top: calc(var(--topbar-h) + var(--nav-h));
        left: 0; right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        padding: 1.25rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform .3s ease, opacity .3s ease;
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
    .nav-link { padding: .85rem 1rem; font-size: 1rem; }
    .nav-link::after { display: none; }
    .nav-link.active { background: var(--green-light); color: var(--green); }
}

/* ── 8. Page Hero ──────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 55%, var(--green-deeper) 100%);
    color: var(--white);
    padding: clamp(1rem, 3vw, 2rem) 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.85); margin-top: .65rem; font-size: 1.05rem; }

/* ── 9. Cards ──────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: .75rem;
    box-shadow: var(--shadow-sm);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: var(--radius-xl);
    padding: clamp(1.25rem, 4vw, 2.5rem);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p  { color: rgba(255,255,255,.85); margin-top: .6rem; }
.cta-banner .btn-row {
    display: flex; flex-wrap: wrap; gap: .75rem;
    justify-content: center; margin-top: 1.75rem;
}

/* ── 10. Alerts — used by admin (Phase 2) ──────────────────────── */
.alert {
    padding: 1rem 1.25rem; border-radius: var(--radius);
    margin-bottom: 1.25rem;
    display: flex; align-items: flex-start; gap: .75rem;
}
.alert-success { background: var(--green-light); color: var(--green-dark); border-left: 4px solid var(--green); }
.alert-error   { background: var(--red-light);   color: var(--red-dark);   border-left: 4px solid var(--red); }
.alert-info    { background: #eff6ff;             color: #1e40af;           border-left: 4px solid #3b82f6; }
.alert-warning { background: #fffbeb;             color: #92400e;           border-left: 4px solid #f59e0b; }

/* ── 11. Scroll Reveals ────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── 12. Footer ────────────────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    color: #d1d5db;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-block: clamp(1.05rem, 3.5vw, 2rem);
}
@media (min-width: 640px)  { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-col {}
.footer-col-brand img { height: 38px; width: auto; margin-bottom: 1rem; display: block; }

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: var(--green-mid);
    font-size: 1rem;
    margin-bottom: .75rem;
}
.footer-desc { font-size: .9rem; line-height: 1.5; color: #9ca3af; }

.footer-social { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }

/* WhatsApp channel pill */
.footer-social-wa-channel {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .38rem .85rem .38rem .55rem;
    border-radius: 999px;
    background: rgba(37,211,102,.15);
    color: #25D366;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background var(--transition);
}
.footer-social-wa-channel:hover { background: rgba(37,211,102,.28); text-decoration: none; }

/* Plain icon links (LinkedIn, etc.) */
.footer-social a:not(.footer-social-wa-channel) {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,.08); color: #9ca3af;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}
.footer-social a:not(.footer-social-wa-channel):hover {
    background: rgba(255,255,255,.18); color: var(--white); text-decoration: none;
}

.footer-heading {
    font-size: .82rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--white); margin-bottom: .85rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .9rem; color: #9ca3af; transition: color var(--transition); }
.footer-links a:hover { color: var(--green-mid); text-decoration: none; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: .75rem; }
.footer-bottom .container {
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center; gap: .5rem;
    font-size: .84rem; line-height: 1.4; color: #6b7280;
}
.footer-bottom a { color: #6b7280; transition: color var(--transition); }
.footer-bottom a:hover { color: var(--green-mid); text-decoration: none; }

/* ── 13. Forms ─────────────────────────────────────────────────── */
.form-group { margin-bottom: .75rem; }

.form-label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--gray-700);
}
.form-label.required::after {
    content: ' *';
    color: var(--red);
    font-weight: 700;
}

.form-control {
    display: block;
    width: 100%;
    padding: .65rem .9rem;
    font-size: .95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(49,125,70,.12);
}
.form-control::placeholder { color: #9ca3af; }
.form-control:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }

textarea.form-control { resize: vertical; min-height: 90px; }

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    padding-right: 2.25rem;
    cursor: pointer;
}

.form-row { display: flex; gap: .65rem; flex-wrap: wrap; }
.form-row > .form-group { flex: 1; min-width: 0; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
@media (max-width: 479px) { .form-row-2 { grid-template-columns: 1fr; } }

/* 3-column form grid */
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 639px) { .form-row-3 { grid-template-columns: 1fr; } }

/* 2-column grid with wider gap (institution / year rows) */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 479px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Remove bottom margin on form-group when inside a grid cell */
.form-group-flush { margin: 0; }

/* ── 14a. Form Pages ─────────────────────────────────────────────── */

/* Narrow container for form pages (apply, talent-pool) */
.container-form { max-width: 1060px; }

/* Section card with smooth-scroll offset */
.form-section { margin-bottom: .85rem; scroll-margin-top: 1.5rem; }

/* Numbered section card header */
.card-section-header {
    padding: .7rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Circular step number badge */
.section-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--green); color: #fff;
    font-size: .78rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* Card section h2 title */
.card-section-title { font-size: .97rem; font-weight: 700; margin: 0; }

/* Card body padding */
.card-body { padding: 1rem 1.25rem; }

/* Sub-heading inside a section (e.g. "Most Recent Institution") */
.form-section-label {
    font-size: .82rem; font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: .85rem;
}

/* "optional" pill badge on labels */
.badge-optional {
    display: inline-block;
    font-size: .68rem; font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    padding: .1rem .45rem;
    letter-spacing: .02em;
    vertical-align: middle;
    margin-left: .25rem;
}

/* Small hint/note below an input */
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: .35rem; }

/* Muted inline note inside a label (not a badge) */
.label-hint { font-weight: 400; color: var(--gray-500); }

/* Inline dim text (e.g. "— diversity monitoring") */
.form-hint-inline { font-size: .75rem; color: var(--gray-400); font-weight: 400; }

/* Validation error summary box */
.form-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius);
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex; gap: .75rem; align-items: flex-start;
}
.form-errors-list { font-size: .9rem; }
.form-errors-list > div { margin-top: .3rem; }

/* Clickable progress / step bar */
.form-progress {
    display: flex;
    gap: 0;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.form-progress-step {
    flex: 1;
    padding: .5rem .4rem;
    text-align: center;
    font-size: .75rem; font-weight: 600;
    cursor: pointer;
    border: none; border-right: 1px solid var(--gray-200);
    background: var(--gray-50); color: var(--gray-600);
    transition: background .15s, color .15s;
    font-family: inherit;
}
.form-progress-step:last-child { border-right: none; }
.form-progress-step:hover { background: var(--green); color: #fff; }

/* Radio-toggle row (e.g. Type / Upload cover letter) */
.radio-toggle-group { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.radio-toggle-label {
    display: flex; align-items: center; gap: .45rem;
    cursor: pointer; font-size: .88rem;
    padding: .4rem .85rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-300);
    background: var(--white);
    transition: border-color var(--transition), background var(--transition);
    user-select: none;
}
.radio-toggle-label:has(input:checked) {
    border-color: var(--green);
    background: var(--green-light);
}

/* Role confirmation strip (bottom of apply form) */
.role-confirm-strip {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .75rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: .75rem;
}
.role-confirm-label {
    font-size: .75rem; color: var(--gray-500);
    margin-bottom: .2rem;
    text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
}
.role-confirm-title { font-weight: 700; font-size: .95rem; margin: 0; }
.role-confirm-meta  { font-size: .82rem; color: var(--gray-500); margin: .15rem 0 0; }

/* Form submit / action row */
.form-actions      { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.form-actions-btns { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.form-actions-note { font-size: .8rem; color: var(--gray-500); margin: 0; text-align: center; }

/* section-label colour override when inside a green hero */
.page-hero .section-label { color: rgba(255,255,255,.75); }
.page-hero .section-label::before { background: rgba(255,255,255,.6); }

/* ── 14. Careers Hero ──────────────────────────────────────────── */
.careers-hero { min-height: 420px; display: flex; align-items: center; }

/* ── 15. EVP Strip ─────────────────────────────────────────────── */
.careers-evp-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.careers-evp-item {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1.15rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: background var(--transition), border-color var(--transition);
}
.careers-evp-item:hover { background: var(--green-light); border-color: rgba(49,125,70,.2); }
.careers-evp-icon-sm {
    width: 38px; height: 38px;
    border-radius: var(--radius-sm);
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
    flex-shrink: 0;
}
.careers-evp-item:hover .careers-evp-icon-sm { background: var(--white); }
.careers-evp-title { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: .25rem; }
.careers-evp-desc  { font-size: .85rem; color: var(--gray-500); line-height: 1.55; }

/* ── 16. Featured Job Cards ────────────────────────────────────── */
.careers-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.careers-job-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .75rem;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.careers-job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green); }
.careers-job-card-header { display: flex; gap: .4rem; flex-wrap: wrap; }
.careers-job-title { font-size: 1.05rem; font-weight: 700; }
.careers-job-summary { font-size: .9rem; color: var(--gray-500); line-height: 1.65; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.careers-job-card-footer { display: flex; gap: .5rem; margin-top: auto; }

/* ── 17. Badges ────────────────────────────────────────────────── */
.careers-dept-badge,
.careers-type-badge,
.careers-featured-badge {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.careers-dept-badge     { background: var(--green-light); color: var(--green-dark); }
.careers-type-badge     { background: var(--gray-100);    color: var(--gray-700); }
.careers-featured-badge { background: #fff3cd; color: #856404; border: 1px solid #ffc107; }

/* ── 18. Job Meta Row ──────────────────────────────────────────── */
.careers-job-meta {
    display: flex; flex-wrap: wrap; gap: .75rem;
    font-size: .84rem; color: var(--gray-500);
}
.careers-job-meta span { display: inline-flex; align-items: center; gap: .3rem; }

/* ── 19. Filter Bar ────────────────────────────────────────────── */
.careers-filter-bar {
    display: flex; flex-wrap: wrap; gap: .75rem;
    margin-bottom: 1.75rem; align-items: center;
}
/* Override form-control for compact filter selects */
.careers-filter-select {
    max-width: 220px;
    padding: .55rem .9rem;
    font-size: .88rem;
}

/* ── 20. Job Listings ──────────────────────────────────────────── */
.careers-listings { display: flex; flex-direction: column; gap: .75rem; }

.careers-listing-row {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-left: 3px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 1.1rem 1.35rem;
    display: flex; align-items: center;
    justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.careers-listing-row:hover,
.careers-listing-row.is-selected {
    border-color: var(--green);
    border-left-color: var(--green);
    box-shadow: var(--shadow-sm);
}
.careers-listing-info { flex: 1; min-width: 0; }
.careers-listing-badges { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .45rem; }
.careers-listing-title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.careers-listing-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* ── 21. Detail Content (rendered inside modal) ────────────────── */
.careers-detail-section { margin-bottom: 1.35rem; }
.careers-detail-section:last-child { margin-bottom: 0; }
.careers-detail-section h4 {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--green);
    margin-bottom: .45rem;
}
.careers-description {
    font-size: 1rem;
    color: var(--gray-900);
    line-height: 1.5;
    white-space: normal;
}
.careers-skills-list { display: flex; flex-wrap: wrap; gap: .2rem; }
.careers-skill-tag {
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid rgba(49,125,70,.2);
    border-radius: var(--radius-sm);
    padding: .25rem .65rem;
    font-size: .82rem;
    font-weight: 500;
}

/* ── 22. Application Process Steps ────────────────────────────── */
.careers-process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}
@media (min-width: 768px) {
    .careers-process-steps::before {
        content: '';
        position: absolute;
        top: 28px; left: 10%; right: 10%;
        height: 2px;
        background: linear-gradient(90deg, var(--green-light), var(--green), var(--green-light));
        z-index: 0;
    }
}
.careers-process-step { text-align: center; position: relative; z-index: 1; }
.careers-step-num {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--green); color: var(--white);
    font-size: 1.1rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 6px var(--green-light);
}
.careers-process-step h3 { font-size: 1rem; margin-bottom: .4rem; }
.careers-process-step p  { font-size: .9rem; color: var(--gray-500); line-height: 1.65; }

/* ── 23. Talent Pool Layout ────────────────────────────────────── */
.careers-talent-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: start;
}
@media (min-width: 800px) { .careers-talent-wrap { grid-template-columns: 1fr 1fr; } }

/* ── 24. Job Detail Modal ──────────────────────────────────────── */
/* Centred dialog that expands to fit content; scrolls only if content
   truly overflows 88% of the viewport height. On mobile: bottom sheet. */
.job-modal {
    position: fixed; inset: 0; z-index: 500;
    display: flex; align-items: center; justify-content: center;
    padding: 1.25rem;
    pointer-events: none;
}
.job-modal.is-open { pointer-events: auto; }

.job-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0);
    transition: background .3s ease;
}
.job-modal.is-open .job-modal-overlay { background: rgba(0,0,0,.5); }

.job-modal-panel {
    position: relative; z-index: 1;
    width: min(700px, 100%);
    max-height: 88vh;
    background: var(--white);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(.98);
    transition: opacity .25s ease, transform .3s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.job-modal.is-open .job-modal-panel { opacity: 1; transform: translateY(0) scale(1); }

.job-modal-header {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
    background: var(--gray-50);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.job-modal-header-info { min-width: 0; flex: 1; }

.job-modal-close {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1.5px solid var(--gray-200); background: var(--white);
    color: var(--gray-700); font-size: 1.2rem; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition);
}
.job-modal-close:hover { background: var(--gray-200); border-color: var(--gray-300); }
.job-modal-close:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.job-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 1.75rem;
    overscroll-behavior: contain;
}

.job-modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
    display: flex; gap: .75rem; flex-wrap: wrap;
    flex-shrink: 0;
    background: var(--gray-50);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

body.modal-open { overflow: hidden; }

/* Mobile: bottom sheet */
@media (max-width: 639px) {
    .job-modal { padding: 0; align-items: flex-end; }
    .job-modal-panel {
        width: 100%;
        max-height: 90vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(40px) scale(1);
    }
    .job-modal-header { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .job-modal-footer { border-radius: 0; }
}

/* ── Admin Panel (Phase 2) ────────────────────────────────────────
   All admin rules are prefixed .admin- to avoid any collision with
   public-facing classes. Reuses all :root variables from above.
   ─────────────────────────────────────────────────────────────── */

/* Layout */
.admin-wrap {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: var(--gray-50);
}
.admin-topnav {
    background: var(--green-deeper);
    color: var(--white);
    height: 58px;
    display: flex;
    align-items: center;
    padding-inline: clamp(1rem, 3vw, 2rem);
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    flex-shrink: 0;
}
.admin-topnav-brand {
    font-weight: 700;
    font-size: .95rem;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: .65rem;
    white-space: nowrap;
}
.admin-topnav-brand:hover { text-decoration: none; color: rgba(255,255,255,.85); }
.admin-brand-logo  { height: 30px; width: auto; display: block; flex-shrink: 0; }
.admin-brand-sep   { width: 1px; height: 1.25rem; background: rgba(255,255,255,.3); flex-shrink: 0; }
.admin-brand-label { font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: rgba(255,255,255,.75); text-transform: uppercase; }
.admin-topnav-links {
    display: flex;
    align-items: center;
    gap: .25rem;
    flex: 1;
}
.admin-nav-link {
    padding: .4rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.admin-nav-link:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }
.admin-nav-link.active { background: rgba(255,255,255,.15); color: var(--white); }

/* ── Admin nav dropdown groups ───────────────────────── */
.admin-nav-group { position: relative; }
.admin-nav-group-btn {
    display: flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .85rem;
    border-radius: var(--radius-sm);
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,.75);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
    line-height: 1;
}
.admin-nav-group-btn:hover,
.admin-nav-group.dd-open > .admin-nav-group-btn {
    background: rgba(255,255,255,.1);
    color: var(--white);
}
.admin-nav-group.active > .admin-nav-group-btn {
    background: rgba(255,255,255,.15);
    color: var(--white);
}
.admin-nav-caret {
    flex-shrink: 0;
    transition: transform .18s ease;
}
.admin-nav-group.dd-open > .admin-nav-group-btn .admin-nav-caret {
    transform: rotate(180deg);
}
.admin-nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 190px;
    background: var(--green-deeper);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: var(--radius-sm);
    padding: .3rem 0;
    box-shadow: 0 6px 24px rgba(0,0,0,.32);
    z-index: 500;
}
.admin-nav-group.dd-open > .admin-nav-dropdown { display: block; }
.admin-nav-dd-link {
    display: block;
    padding: .55rem 1.1rem;
    font-size: .86rem;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.admin-nav-dd-link:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }
.admin-nav-dd-link.active { color: var(--white); font-weight: 600; background: rgba(255,255,255,.08); }
button.admin-nav-dd-link { width: 100%; background: none; border: none; cursor: pointer; text-align: left; }

/* ── Mobile hamburger ────────────────────────────────── */
.admin-nav-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: rgba(255,255,255,.8);
    cursor: pointer;
    padding: .4rem;
    border-radius: var(--radius-sm);
    margin-left: auto;
    transition: background var(--transition), color var(--transition);
}
.admin-nav-hamburger:hover { color: var(--white); background: rgba(255,255,255,.1); }
.admin-topnav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
}
.admin-timeout {
    font-size: .78rem;
    color: rgba(255,255,255,.55);
    white-space: nowrap;
}
.admin-timeout span { color: rgba(255,255,255,.85); font-weight: 600; }

.admin-main {
    flex: 1;
    min-width: 0; /* prevent flex blowout that causes page-level horizontal scroll */
    padding: 2rem clamp(1rem, 3vw, 2.5rem);
    max-width: 1600px;
    width: 100%;
    margin-inline: auto;
}

/* Page header row */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.admin-page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}
.admin-breadcrumb {
    font-size: .82rem;
    color: var(--gray-500);
    margin-top: .2rem;
}
.admin-breadcrumb a { color: var(--gray-500); }
.admin-breadcrumb a:hover { color: var(--green); }

/* Stat cards — dashboard */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.admin-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--green);
    text-decoration: none;
    display: block;
}
.admin-stat-card.red  { border-top-color: var(--red); }
.admin-stat-card.gray { border-top-color: var(--gray-300); }

/* Clickable stat cards */
a.admin-stat-link {
    cursor: pointer;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
a.admin-stat-link:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
    border-color: var(--green);
    text-decoration: none;
}
a.admin-stat-link.gray:hover { border-top-color: var(--gray-400); }

.admin-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: .35rem;
}
.admin-stat-label {
    font-size: .82rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* Clickable table rows */
.clickable-row {
    cursor: pointer;
    transition: background var(--transition);
}
.clickable-row:hover { background: var(--gray-50) !important; }

/* Tables */
.admin-table-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.admin-table-toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
    background: var(--gray-50);
}
.admin-table-toolbar h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    flex: 1;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.admin-table th {
    padding: .7rem 1rem;
    text-align: left;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
    white-space: nowrap;
}
.admin-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--text);
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--gray-50); }
.admin-table .actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.admin-row-muted td { opacity: .45; }

/* Status badges */
.admin-badge {
    display: inline-block;
    padding: .18rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.admin-badge-active   { background: var(--green-light); color: var(--green-dark); }
.admin-badge-inactive { background: var(--gray-100);    color: var(--gray-500); }
.admin-badge-expired  { background: #fff7ed; color: #c2410c; }
.admin-badge-featured { background: #fff3cd; color: #856404; }

/* Form card (job edit, login) */
.admin-form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.admin-form-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--gray-50);
}
.admin-form-card-header h2 { font-size: 1.05rem; font-weight: 700; margin: 0; }
/* Collapsible card — <details>/<summary> variant */
details.admin-form-card > summary.admin-form-card-header {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}
details.admin-form-card > summary.admin-form-card-header::-webkit-details-marker { display: none; }
.email-section-chevron { color: var(--gray-400); transition: transform .2s ease; flex-shrink: 0; }
details.admin-form-card[open] > summary .email-section-chevron { transform: rotate(180deg); }
.admin-form-card-body { padding: 1.5rem; }
.admin-form-section-title {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--green);
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--green-light);
    margin-bottom: 1.25rem;
    margin-top: 1.75rem;
}
.admin-form-section-title:first-child { margin-top: 0; }
.admin-form-card-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    display: flex;
    gap: .75rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Detail panel (talent pool entry) */
.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}
.admin-detail-field { display: flex; flex-direction: column; gap: .2rem; }
.admin-detail-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--gray-500);
}
.admin-detail-value { font-size: .95rem; color: var(--text); line-height: 1.6; }
.admin-detail-value.empty { color: var(--gray-300); font-style: italic; }

/* Empty state */
.admin-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--gray-500);
}
.admin-empty svg { margin: 0 auto 1rem; opacity: .3; display: block; }
.admin-empty p { margin-bottom: 1rem; }

/* Pagination */
.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.25rem;
    border-top: 1px solid var(--gray-200);
    font-size: .85rem;
    color: var(--gray-500);
    flex-wrap: wrap;
    gap: .5rem;
    background: var(--gray-50);
}
.admin-pagination-links { display: flex; gap: .35rem; }
.admin-pagination-links a,
.admin-pagination-links span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px;
    padding: 0 .5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    font-size: .82rem; font-weight: 500;
    color: var(--gray-700); text-decoration: none;
    background: var(--white);
    transition: background var(--transition), border-color var(--transition);
}
.admin-pagination-links a:hover { background: var(--green-light); border-color: var(--green); color: var(--green); }
.admin-pagination-links span.current { background: var(--green); border-color: var(--green); color: var(--white); }
.admin-pagination-links span.disabled { opacity: .4; pointer-events: none; }

/* Login page */
.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-deeper) 100%);
    padding: 1.5rem;
}
.admin-login-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.admin-login-card img { height: 40px; margin: 0 auto 1.5rem; }
.admin-login-card h1 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: .4rem;
}
.admin-login-card p {
    text-align: center;
    color: var(--gray-500);
    font-size: .88rem;
    margin-bottom: 1.75rem;
}

/* Responsive */
@media (max-width: 767px) {
    .admin-nav-hamburger { display: flex; }
    .admin-topnav-links {
        display: none;
        position: absolute;
        top: 58px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--green-deeper);
        border-top: 1px solid rgba(255,255,255,.1);
        padding: .4rem 0;
        box-shadow: 0 6px 20px rgba(0,0,0,.28);
        z-index: 400;
    }
    .admin-topnav-links.mobile-open { display: flex; }
    .admin-nav-link { border-radius: 0; padding: .7rem 1.25rem; display: block; }
    .admin-nav-group { width: 100%; }
    .admin-nav-group-btn { width: 100%; justify-content: space-between; border-radius: 0; padding: .7rem 1.25rem; }
    .admin-nav-group.dd-open > .admin-nav-dropdown { display: block; }
    .admin-nav-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(0,0,0,.18);
        padding: 0;
        min-width: 0;
    }
    .admin-nav-dd-link { padding: .6rem 1.25rem .6rem 2.25rem; }
    .admin-table { font-size: .82rem; }
    .admin-table th, .admin-table td { padding: .6rem .75rem; }
    .admin-stats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    /* topnav needs relative positioning for absolute nav panel */
    .admin-topnav { position: sticky; top: 0; }
}

/* ── 25. Page Components (jobs.php · job.php · talent-pool.php) ─── */

/* Count badge in hero h1 */
.hero-count { font-size: 1.2rem; font-weight: 400; opacity: .8; margin-left: .5rem; }

/* Section with off-white background */
.section-alt { background: var(--off-white); }

/* Centered section intro block */
.section-intro { margin-bottom: 3rem; }

/* Bulleted feature list */
.bullet-list { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.5rem; list-style: none; }
.bullet-list li { display: flex; align-items: center; gap: .65rem; font-size: .95rem; color: var(--gray-700); }
.bullet-list li svg { flex-shrink: 0; }

/* CTA card — flex-column content layout */
.card-cta { display: flex; flex-direction: column; gap: 1.25rem; justify-content: center; align-items: flex-start; }
.card-cta h3 { margin-bottom: .5rem; }
.card-cta-desc { color: var(--gray-500); font-size: .95rem; line-height: 1.7; }

/* Small muted caption / note */
.card-note { font-size: .8rem; color: var(--gray-500); }

/* Empty state card */
.card-empty { text-align: center; padding: 3rem; }
.card-empty p { color: var(--gray-500); }

/* Narrow containers */
.container-narrow { 
    max-width: 1080px; 
    flex: 1;
    padding: 2rem clamp(1rem, 3vw, 2.5rem);
    width: 100%;
    margin-inline: auto;
}
.container-xs { max-width: 640px; text-align: center; }

/* Full-width / block button */
.btn-full { width: 100%; justify-content: center; }

/* Dimmed page-hero (closed role) */
.page-hero-dim { opacity: .8; }

/* Badge row bottom margin inside hero */
.page-hero .careers-listing-badges { margin-bottom: .85rem; }

/* Role status badge (Closed / Inactive) inside hero */
.badge-role-status {
    background: rgba(255,255,255,.15); color: #fff;
    padding: .2rem .65rem; border-radius: 999px;
    font-size: .75rem; font-weight: 600;
}

/* Breadcrumb / back nav bar */
.breadcrumb-bar { background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.breadcrumb-bar .container { padding-top: .85rem; padding-bottom: .85rem; }
.back-link {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .88rem; color: var(--gray-500); text-decoration: none;
}
.back-link:hover { color: var(--text); text-decoration: none; }

/* Warning notice bar (e.g. applications closed) */
.notice-warning { background: #fff7ed; border-bottom: 3px solid #fed7aa; }
.notice-warning .container {
    padding-top: 1rem; padding-bottom: 1rem;
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.notice-warning-text { margin: 0; font-size: .92rem; color: #92400e; }
.notice-warning-action { margin-left: auto; white-space: nowrap; }

/* Stat cards row */
.stat-cards { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.75rem; }
.stat-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: .5rem .8rem;
    display: flex; align-items: center; gap: .5rem;
    min-width: 120px; flex: 1 1 120px; max-width: 220px;
}
.stat-card-warn { border-color: #fca5a5; }
.stat-card-icon {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gray-50);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-card-label {
    font-size: .68rem; color: var(--gray-500); font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em; line-height: 1.2;
}
.stat-card-value { font-size: .88rem; font-weight: 700; color: var(--text); margin-top: .1rem; line-height: 1.3; }
.stat-card-value-warn { color: #c2410c; }

/* Job detail two-column layout */
.job-detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
@media (max-width: 899px) { .job-detail-grid { grid-template-columns: 1fr; } }
.sidebar-sticky { position: sticky; top: 1.5rem; }

/* Apply sidebar card */
.card-apply { padding: 1.5rem; margin-bottom: 1.25rem; }
.card-apply-note { text-align: center; font-size: .8rem; color: var(--gray-500); margin-top: .75rem; margin-bottom: 0; }
.card-apply-closed { font-size: .9rem; color: var(--gray-500); text-align: center; margin-bottom: 1rem; }

/* Quick facts sidebar card */
.card-facts { padding: 1.25rem; }
.card-facts-heading { font-size: .8rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .85rem; }
.dl-facts { display: grid; gap: .7rem; font-size: .88rem; }
.dl-facts dt { color: var(--gray-500); font-size: .78rem; }
.dl-facts dd { font-weight: 600; margin: 0; }

/* Social share bar */
.share-bar {
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
    margin-top: 2rem; padding: .75rem 1rem;
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.share-bar-label { font-size: .8rem; font-weight: 600; color: var(--gray-500); }
.share-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .8rem; padding: .3rem .75rem; border-radius: 999px;
    color: #fff; text-decoration: none; font-weight: 600; border: none;
}
.share-btn:hover { text-decoration: none; opacity: .85; }
.share-btn-li { background: #0a66c2; }
.share-btn-tw { background: #000; }
.share-btn-wa { background: #25d366; }
.share-btn-copy {
    background: transparent; color: var(--gray-600);
    border: 1px solid var(--gray-300); cursor: pointer; font-family: inherit;
}
.share-btn-copy:hover { opacity: 1; background: var(--gray-100); }

/* Bottom CTA / actions row */
.bottom-actions {
    margin-top: 1.5rem; padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
    display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
}

/* Talent-pool form section headings */
.tp-section-heading {
    font-size: 1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .06em; color: var(--green);
    padding-bottom: .75rem; border-bottom: 2px solid var(--green-light);
    margin-top: 2rem; margin-bottom: 1.25rem;
}
form .tp-section-heading:first-of-type { margin-top: 0; }

/* Success confirmation card (talent pool submitted) */
.success-card { text-align: center; padding: 3rem 2rem; }
.success-card svg { margin: 0 auto 1.25rem; display: block; }
.success-card h2 { color: var(--green); margin-bottom: .5rem; }
.success-card p { color: var(--gray-700); max-width: 440px; margin: 0 auto 1.75rem; }
.btn-row-center { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Form submit footer */
.form-submit-wrap { margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.form-privacy-note { font-size: .8rem; color: var(--gray-500); margin-top: .85rem; text-align: center; }

/* ── 26. Rich Text — Quill editor (admin) + rendered output (public) ── */

/* Admin: Quill toolbar */
.ql-toolbar.ql-snow {
    border: 1.5px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-200);
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--gray-50);
    font-family: var(--font-body);
    padding: .4rem .5rem;
}
/* Admin: Quill editor area */
.ql-container.ql-snow {
    border: 1.5px solid var(--gray-300);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
}
.ql-container.ql-snow:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(49,125,70,.12);
}
.ql-editor { min-height: 220px; line-height: 1.65; color: var(--text); }
.ql-editor.ql-blank::before { color: #9ca3af; font-style: normal; }
.ql-snow .ql-stroke { stroke: var(--gray-700); }
.ql-snow .ql-fill  { fill:   var(--gray-700); }
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke { stroke: var(--green); }
.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill   { fill:   var(--green); }
.ql-snow .ql-picker-label:hover,
.ql-snow .ql-picker-item:hover { color: var(--green); }

/* Public: rich text rendered inside job description */
.careers-description p              { margin-bottom: .65rem; }
.careers-description h2             { font-size: 1.1rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.careers-description h3             { font-size: 1rem;  font-weight: 700; margin: 1rem 0 .4rem; }
.careers-description ul             { list-style: disc;    padding-left: 1.5rem; margin: .6rem 0 .85rem; }
.careers-description ol             { list-style: decimal; padding-left: 1.5rem; margin: .6rem 0 .85rem; }
.careers-description li             { margin-bottom: .3rem; }
.careers-description a              { color: var(--green); text-decoration: underline; }
.careers-description strong,
.careers-description b              { font-weight: 700; }
.careers-description em,
.careers-description i              { font-style: italic; }
.careers-description blockquote     { border-left: 3px solid var(--green-light); padding-left: 1rem; color: var(--gray-500); margin: .75rem 0; }
.careers-description pre            { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: .75rem 1rem; font-family: monospace; font-size: .88rem; overflow-x: auto; margin: .75rem 0; white-space: pre-wrap; }
.careers-description sub            { vertical-align: sub; font-size: .8em; }
.careers-description sup            { vertical-align: super; font-size: .8em; }
/* Quill alignment classes */
.careers-description .ql-align-center  { text-align: center; }
.careers-description .ql-align-right   { text-align: right; }
.careers-description .ql-align-justify { text-align: justify; }
/* Quill nested list indent classes */
.careers-description .ql-indent-1 { padding-left: 1.5rem; }
.careers-description .ql-indent-2 { padding-left: 3rem; }
.careers-description .ql-indent-3 { padding-left: 4.5rem; }
.careers-description .ql-indent-4 { padding-left: 6rem; }

/* ── Section 27: ATS status UI (admin/applications.php) ──────────────────── */

/* Status filter tabs */
.admin-status-tabs {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.admin-status-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 1.5px solid transparent;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.admin-status-tab:hover { background: var(--gray-200); color: var(--gray-800); }
.admin-status-tab.active { background: var(--white); border-color: var(--green); color: var(--green); font-weight: 600; }
.admin-status-tab-count {
    display: inline-block;
    background: var(--gray-200);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    padding: 0 .45rem;
    min-width: 1.4rem;
    text-align: center;
}
.admin-status-tab.active .admin-status-tab-count { background: var(--green-light); color: var(--green-dark); }
.admin-status-tab.tab-shortlisted.active { border-color: var(--green); color: var(--green); }
.admin-status-tab.tab-rejected.active    { border-color: #dc2626; color: #dc2626; }
.admin-status-tab.tab-rejected.active .admin-status-tab-count { background: #fee2e2; color: #b91c1c; }

/* Per-applicant status badges */
.app-status-badge {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 999px;
    white-space: nowrap;
}
.app-status-pending        { background: var(--gray-100); color: var(--gray-500); }
.app-status-shortlisted    { background: #dcfce7; color: #15803d; }
.app-status-assessment     { background: #dbeafe; color: #1d4ed8; }
.app-status-interview      { background: #ede9fe; color: #6d28d9; }
.app-status-final_selected { background: #fef9c3; color: #854d0e; }
.app-status-rejected       { background: #fee2e2; color: #b91c1c; }

/* ── Next Step hint ──────────────────────────────────────────────────────── */
.app-next-step {
    display: inline-block;
    font-size: .72rem;
    font-weight: 500;
    white-space: nowrap;
    padding: 2px 6px;
    border-radius: 4px;
}
.app-action-notify        { color: #1d4ed8; }
.app-action-notify:hover  { background: #eff6ff; }

/* Quick-notify modal */
.qn-tpl-tabs { display:flex; gap:.4rem; margin-bottom:1rem; }
.qn-tpl-tab {
    flex:1; padding:.38rem .65rem; border:1.5px solid var(--gray-200);
    border-radius:var(--radius); background:transparent; font-size:.82rem;
    font-weight:600; color:var(--gray-600); cursor:pointer;
    transition:background .13s, border-color .13s, color .13s;
}
.qn-tpl-tab:hover  { background:var(--gray-100); }
.qn-tpl-tab.active { background:var(--green); border-color:var(--green); color:#fff; }
.qn-channel-row {
    display:flex; align-items:center; gap:1rem; padding:.6rem .85rem;
    background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius);
    margin-bottom:1rem;
}
.qn-channel-row > span { font-size:.78rem; font-weight:600; color:var(--gray-500); white-space:nowrap; }
.qn-channel-lbl {
    display:flex; align-items:center; gap:.35rem; font-size:.85rem;
    cursor:pointer; user-select:none;
}
.qn-channel-lbl input[type=checkbox] { accent-color:var(--green); width:15px; height:15px; }
.qn-preview-wrap {
    background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius);
    padding:.75rem .9rem; margin-bottom:1rem; min-height:100px;
    font-size:.83rem; color:var(--gray-700);
}
.qn-preview-label {
    font-size:.68rem; font-weight:700; color:var(--gray-400);
    text-transform:uppercase; letter-spacing:.07em; margin-bottom:.3rem;
}
.qn-preview-subject { font-weight:600; color:var(--gray-800); margin-bottom:.25rem; }
.qn-preview-body    { color:var(--gray-600); max-height:160px; overflow-y:auto; line-height:1.5; }
.qn-preview-body p  { margin:0 0 .5em; }
.qn-preview-body ul,.qn-preview-body ol { padding-left:1.4em; margin:0 0 .5em; }
.qn-preview-body li { margin-bottom:.2em; }
.qn-preview-body strong { font-weight:600; }
.qn-preview-body a  { color:var(--green); }
.qn-preview-sms-body { color:var(--gray-700); white-space:pre-wrap; line-height:1.5; }
.qn-preview-sep { border:none; border-top:1px solid var(--gray-200); margin:.65rem 0; }
.qn-status {
    padding:.55rem .85rem; border-radius:var(--radius); font-size:.84rem;
    margin-bottom:.85rem; display:none;
}

/* ── Quick-notify interview scheduling panel ─────────────────────────────── */
.qn-iv-panel {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .85rem 1rem;
    margin-bottom: .85rem;
}
.qn-iv-heading {
    font-size: .72rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 .65rem;
}
.qn-iv-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: .6rem;
    margin-bottom: .6rem;
}
.qn-iv-label {
    display: block;
    font-size: .75rem;
    color: var(--gray-500);
    margin-bottom: .25rem;
}
.qn-iv-ctrl {
    display: block;
    width: 100%;
    padding: .4rem .6rem;
    font-size: .88rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.qn-iv-ctrl:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(49,125,70,.1);
}
.qn-iv-ctrl::placeholder { color: var(--gray-400); }
select.qn-iv-ctrl {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .55rem center;
    padding-right: 1.7rem;
    cursor: pointer;
}
.app-next-step--review       { background: #eff6ff; color: #1d4ed8; }
.app-next-step--warn         { background: #fef9c3; color: #92400e; }
.app-next-step--email        { background: #f0fdf4; color: #15803d; }
.app-next-step--interview    { background: #faf5ff; color: #7e22ce; }
.app-next-step--closed       { background: var(--gray-100); color: var(--gray-400); }
/* Assessment sub-states (Next Step column pills) */
.app-next-step--ass-sent     { background: #ecfdf5; color: #065f46; }
.app-next-step--ass-progress { background: #fff7ed; color: #9a3412; }
.app-next-step--ass-pending  { background: #fef3c7; color: #92400e; }
.app-next-step--ass-scored   { background: #f0fdf4; color: #166534; font-weight: 600; }
/* Assessment sub-state chips in the Status column */
.app-ass-sub {
    display: block;
    margin-top: .25rem;
    font-size: .7rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 99px;
    letter-spacing: .02em;
    width: fit-content;
}
.app-ass-sub--sent     { background: #ecfdf5; color: #065f46; }
.app-ass-sub--progress { background: #fff7ed; color: #9a3412; }
.app-ass-sub--pending  { background: #fef3c7; color: #92400e; }
.app-ass-sub--scored   { background: #dcfce7; color: #166534; }
.ass-sub-counts { display: flex; gap: .25rem; justify-content: center; flex-wrap: wrap; }

/* ── Shared interview session card styles (interview-day + interviewer) ─── */
.iv-card-body-flush { padding: 0; }
.iv-table-flush     { margin: 0; }
.iv-venue-tag       { color: var(--gray-500); font-size: .88rem; }
.iv-cand-name       { font-weight: 600; }
.iv-cand-email      { font-size: .78rem; color: var(--gray-400); }
.iv-scored-tag      { font-size: .7rem; color: var(--green-dark); margin-top: .1rem; }
.iv-score-high      { color: var(--green-dark); font-weight: 700; }
.iv-score-mid       { color: #d97706;           font-weight: 600; }
.iv-score-low       { color: var(--red);         font-weight: 600; }
.iv-score-none      { color: var(--gray-300); }
.iv-pan-ok          { color: var(--green-dark); font-weight: 700; }
.iv-pan-warn        { color: #d97706; }
.iv-pan-none        { color: var(--gray-300); }

/* ── Interview Day page ─────────────────────────────────────────────────── */
.ivd-session-card { margin-bottom: 1.75rem; }
.ivd-card-header  { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.ivd-card-title   { display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0; }
.ivd-card-icon    { flex-shrink: 0; color: var(--green); }
.ivd-card-stats   { display: flex; gap: 1rem; font-size: .82rem; color: var(--gray-500); white-space: nowrap; }
.ivd-mode-badge   { font-size: .72rem; font-weight: 600; padding: .15rem .45rem; border-radius: 3px; white-space: nowrap;
                    background: #e5e7eb; color: #374151; }
.ivd-mode-in_person { background: #dbeafe; color: #1e40af; }
.ivd-mode-virtual   { background: #ede9fe; color: #5b21b6; }
.ivd-mode-phone     { background: #fef9c3; color: #854d0e; }
.ivd-mode-panel     { background: #dcfce7; color: #166534; }

/* ── Interviewer sessions tab ───────────────────────────────────────────── */
.ivr-tab-bar        { display: flex; gap: .5rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--gray-200); padding-bottom: .75rem; }
.ivr-session-card   { margin-bottom: 1.5rem; }
.ivr-session-header { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.ivr-session-count  { margin-left: auto; font-size: .82rem; color: var(--gray-500); }
.ivr-empty          { padding: 2rem; color: var(--gray-400); text-align: center; }

/* ── Interview Score Sheet ──────────────────────────────────────────────── */
.ss-body                { padding: 0; }
.ss-section             { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); }
.ss-section:last-of-type{ border-bottom: none; }
.ss-section-title       { font-size: .72rem; font-weight: 700; text-transform: uppercase;
                          letter-spacing: .07em; color: var(--green-dark); margin-bottom: 1rem;
                          display: flex; align-items: baseline; gap: .5rem; }
.ss-section-title small { font-weight: 400; text-transform: none; letter-spacing: 0;
                          color: var(--gray-500); font-size: .75rem; }
.ss-footer              { padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem;
                          background: var(--gray-50); border-top: 1px solid var(--gray-100);
                          border-radius: 0 0 var(--radius) var(--radius); }

/* Collapsible header */
.ss-toggle-header       { cursor: pointer; user-select: none; width: 100%; }
.ss-toggle-header:hover { background: var(--gray-50); }
.ss-chevron             { margin-left: auto; flex-shrink: 0; color: var(--gray-400);
                          transition: transform .22s ease; }
.ss-wrap.ss-collapsed .ss-chevron { transform: rotate(-90deg); }
.ss-wrap.ss-collapsed .ss-body   { display: none; }

/* Inline score summary shown in the header when collapsed or scored */
.ss-header-score        { display: flex; align-items: center; gap: .5rem; margin-left: .75rem; }
.ss-header-pill         { font-size: .75rem; font-weight: 700; padding: .2rem .55rem;
                          border-radius: 20px; white-space: nowrap; }
.ss-pill-total          { background: var(--gray-100); color: var(--gray-700); }
.ss-pill-band-poor      { background: #fdecea; color: var(--red); }
.ss-pill-band-average   { background: #fef3c7; color: #92400e; }
.ss-pill-band-good      { background: #dbeafe; color: #1e40af; }
.ss-pill-band-excellent { background: var(--green-light); color: var(--green-dark); }

/* Scoring table */
.ss-table               { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; }
.ss-table thead th      { background: var(--gray-50); padding: .6rem .4rem .5rem;
                          font-size: .75rem; font-weight: 700; text-align: center;
                          border-bottom: 2px solid var(--gray-200); color: var(--gray-600); }
.ss-table thead th:first-child { text-align: left; padding-left: 1rem; min-width: 200px; }
.ss-table thead .ss-th-poor    { color: var(--red); }
.ss-table thead .ss-th-avg     { color: #d97706; }
.ss-table thead .ss-th-good    { color: #2563eb; }
.ss-table thead .ss-th-vgood   { color: #0891b2; }
.ss-table thead .ss-th-excel   { color: var(--green); }
.ss-table tbody tr:hover td    { background: var(--gray-50); }
.ss-table tbody tr td          { border-bottom: 1px solid var(--gray-100); padding: .6rem .4rem;
                                  vertical-align: middle; }
.ss-table tbody tr:last-child td { border-bottom: none; }
.ss-table tbody td:first-child { padding-left: 1rem; }
.ss-table tfoot td      { background: var(--gray-50); border-top: 2px solid var(--gray-200);
                          padding: .75rem 1rem; }

/* Score pips (hidden radio + styled circle label) */
.ss-cell                { text-align: center; padding: .4rem .2rem !important; }
.ss-radio-hidden        { display: none; }
.ss-pip-label           { display: inline-flex; align-items: center; justify-content: center;
                          width: 34px; height: 34px; border-radius: 50%;
                          border: 2px solid var(--gray-200); background: white; cursor: pointer;
                          font-size: .8rem; font-weight: 700; color: var(--gray-400);
                          transition: border-color .12s, background .12s, color .12s, transform .1s; }
.ss-pip-label:hover     { transform: scale(1.12); }

/* Colour-coded pip states by rating value */
.ss-radio-hidden[value="1"]:checked + .ss-pip-label { background:var(--red);     border-color:var(--red);     color:#fff; }
.ss-radio-hidden[value="2"]:checked + .ss-pip-label { background:#d97706;        border-color:#d97706;        color:#fff; }
.ss-radio-hidden[value="3"]:checked + .ss-pip-label { background:#2563eb;        border-color:#2563eb;        color:#fff; }
.ss-radio-hidden[value="4"]:checked + .ss-pip-label { background:#0891b2;        border-color:#0891b2;        color:#fff; }
.ss-radio-hidden[value="5"]:checked + .ss-pip-label { background:var(--green);   border-color:var(--green);   color:#fff; }

/* Hover colour hints */
.ss-cell:nth-child(2) .ss-pip-label:hover { border-color:var(--red);   color:var(--red); }
.ss-cell:nth-child(3) .ss-pip-label:hover { border-color:#d97706;      color:#d97706; }
.ss-cell:nth-child(4) .ss-pip-label:hover { border-color:#2563eb;      color:#2563eb; }
.ss-cell:nth-child(5) .ss-pip-label:hover { border-color:#0891b2;      color:#0891b2; }
.ss-cell:nth-child(6) .ss-pip-label:hover { border-color:var(--green); color:var(--green); }

/* Yes / No pill toggle */
.ss-yn-wrap             { display: flex; gap: .5rem; margin-top: .5rem; }
.ss-yn-radio            { display: none; }
.ss-yn-label            { display: inline-flex; align-items: center; padding: .4rem 1.2rem;
                          border-radius: 20px; border: 2px solid var(--gray-200);
                          cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--gray-600);
                          transition: all .12s; }
.ss-yn-label:hover      { border-color: var(--gray-400); color: var(--gray-700); }
.ss-yn-yes:checked  + .ss-yn-label { border-color: var(--green); background: var(--green); color: #fff; }
.ss-yn-no:checked   + .ss-yn-label { border-color: var(--red);   background: var(--red);   color: #fff; }

/* ── Send Email card ─────────────────────────────────────────────────────── */

/* Compose header: stacked rows (To, BCC) */
.admin-email-compose-header {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.25rem;
    font-size: .88rem;
}

/* Individual header rows */
.admin-email-header-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    min-height: 2.6rem;
}
.admin-email-header-row:last-child { border-bottom: none; }

.admin-email-to-label {
    font-weight: 700;
    color: var(--gray-500);
    white-space: nowrap;
    min-width: 4.5rem;
    font-size: .82rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.admin-email-to-value  { color: var(--gray-700); font-weight: 500; flex: 1; min-width: 0; }
.admin-email-bcc-note  { margin-left: auto; font-size: .78rem; color: var(--gray-400); }
.admin-email-bcc-row   { background: var(--white); }

/* Edit recipient button */
.admin-email-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1.5px solid var(--gray-300);
    border-radius: 999px;
    background: var(--white);
    padding: .18rem .65rem;
    font-size: .75rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
    flex-shrink: 0;
}
.admin-email-edit-btn:hover {
    border-color: var(--green);
    color: var(--green);
}

/* Override row (shown when editing recipient) */
.admin-email-override-row {
    display: none; /* shown via JS */
    align-items: center;
    gap: .75rem;
    padding: .55rem 1rem;
    background: #fffbeb;
    border-bottom: 1px solid #fcd34d;
}
.admin-email-override-input {
    flex: 1;
    min-width: 0;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    padding: .3rem .7rem;
    font-size: .9rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition);
}
.admin-email-override-input:focus { border-color: var(--green); }

.admin-email-cancel-btn {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--gray-300);
    border-radius: 999px;
    background: var(--white);
    padding: .18rem .75rem;
    font-size: .75rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color var(--transition), color var(--transition);
}
.admin-email-cancel-btn:hover { border-color: var(--red); color: var(--red); }

/* Subject row — inline editable */
.admin-email-subject-row { background: var(--white); margin-top: 1rem; }
.admin-email-subject-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: .93rem;
    font-family: inherit;
    color: var(--gray-800);
    font-weight: 500;
    padding: 0;
}
.admin-email-subject-input:focus { box-shadow: none; }
.admin-email-subject-row:focus-within {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

.admin-email-tpl-tabs {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
    margin-bottom: .25rem;
}
.admin-email-tpl-tab {
    padding: .35rem .9rem;
    border-radius: 999px;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-100);
    font-size: .82rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.admin-email-tpl-tab:hover  { background: var(--gray-200); color: var(--gray-800); }
.admin-email-tpl-tab.active { background: var(--white); border-color: var(--green); color: var(--green); font-weight: 600; }

/* kept for backward compat — no longer rendered */
.admin-email-body { display: none; }

/* Split editor / preview layout */
.admin-email-editor-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: .5rem;
}
.admin-email-editor-pane,
.admin-email-preview-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.admin-email-editor-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-bottom: .35rem;
}
/* Quill container height */
.admin-email-editor-pane .ql-container {
    height: 340px;
    font-size: .93rem;
    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);
}
.admin-email-editor-pane .ql-toolbar {
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}
/* Preview iframe */
.admin-email-preview-frame {
    flex: 1;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: #f3f4f6;
    min-height: 388px;
    width: 100%;
}
@media (max-width: 900px) {
    .admin-email-editor-split { grid-template-columns: 1fr; }
    .admin-email-preview-frame { min-height: 300px; }
}

/* Source HTML textarea */
.etpl-source-ta {
    display: none;
    width: 100%;
    height: 340px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: .82rem;
    line-height: 1.6;
    resize: vertical;
    padding: .75rem;
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
    color: #1e293b;
    background: #f8fafc;
    tab-size: 2;
}

/* Full-screen email template modal */
#modal-email-tpl.is-fullscreen {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
}
#modal-email-tpl.is-fullscreen .admin-email-editor-pane .ql-container,
#modal-email-tpl.is-fullscreen .etpl-source-ta {
    height: calc(100vh - 440px);
    min-height: 180px;
}
#modal-email-tpl.is-fullscreen .admin-email-preview-frame {
    min-height: calc(100vh - 440px);
}

/* ── ATS Pool Composition Breakdown ─────────────────────────────────────── */
.ats-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .8rem 1rem;
    margin-bottom: .75rem;
    align-items: flex-start;
}
.ats-bd-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
}
.ats-bd-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-right: .15rem;
    white-space: nowrap;
}
.ats-bd-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .65rem;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1;
    border-radius: 999px;
    border: 1.5px solid var(--gray-200);
    background: var(--gray-50);
    color: var(--gray-700);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}
.ats-bd-pill:hover {
    border-color: var(--green);
    background: rgba(49,125,70,.06);
    color: var(--green-dark);
}
.ats-bd-pill.ats-bd-active {
    border-color: var(--green);
    background: var(--green);
    color: var(--white);
}
.ats-bd-pill.ats-bd-active .ats-bd-cnt { opacity: .85; }
.ats-bd-cnt {
    font-size: .72rem;
    font-weight: 700;
    opacity: .65;
}

/* ── Smart Filter Bar ────────────────────────────────────────────────────── */
.sf-bar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .85rem 1rem .7rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

/* Top row: search + selects */
.sf-controls {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-wrap: wrap;
}

/* Search */
.sf-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    max-width: 340px;
}
.sf-search-icon {
    position: absolute;
    left: .7rem;
    color: var(--gray-400);
    pointer-events: none;
}
.sf-search {
    width: 100%;
    height: 36px;
    padding: 0 2rem 0 2.1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-family: inherit;
    color: var(--gray-800);
    background: var(--gray-50);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.sf-search:focus {
    border-color: var(--green);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(49,125,70,.1);
}
.sf-search-clear {
    position: absolute;
    right: .5rem;
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: .2rem;
    color: var(--gray-400);
    cursor: pointer;
    border-radius: 999px;
    transition: color var(--transition);
}
.sf-search-clear:hover { color: var(--red); }

/* Selects row */
.sf-selects {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

/* Each select wrapped in a div for custom arrow + active state */
.sf-select-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.sf-select {
    appearance: none;
    -webkit-appearance: none;
    height: 34px;
    padding: 0 1.9rem 0 .8rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 999px;
    font-size: .82rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--gray-600);
    background: var(--gray-50);
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}
.sf-select:hover { border-color: var(--gray-400); color: var(--gray-800); background: var(--white); }
.sf-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(49,125,70,.1); background: var(--white); }
.sf-label {
    font-size: .78rem;
    color: var(--gray-500);
    display: block;
    margin-bottom: .2rem;
}
.sf-input {
    padding: .4rem .6rem;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: .88rem;
    font-family: inherit;
    color: var(--gray-700);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.sf-input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(49,125,70,.1);
}

/* Active (a value is selected) */
.sf-select-wrap.sf-active .sf-select {
    border-color: var(--green);
    background: var(--green-light);
    color: var(--green-dark);
    font-weight: 600;
}
.sf-select-wrap.sf-active .sf-chevron { stroke: var(--green); }

.sf-chevron {
    position: absolute;
    right: .62rem;
    pointer-events: none;
    color: var(--gray-400);
    transition: stroke var(--transition);
}

/* Bottom row: active chips + count */
.sf-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: .6rem;
    min-height: 1.6rem;
}
.sf-chips {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

/* Active filter chip */
.sf-chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: var(--green-light);
    border: 1px solid rgba(26,66,40,.15);
    border-radius: 999px;
    padding: .18rem .5rem .18rem .65rem;
    font-size: .78rem;
    color: var(--green-dark);
    line-height: 1.4;
}
.sf-chip-dim { font-weight: 700; opacity: .7; }
.sf-chip-val { font-weight: 600; }
.sf-chip-remove {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: .1rem;
    cursor: pointer;
    color: var(--green-dark);
    border-radius: 999px;
    opacity: .65;
    transition: opacity var(--transition), background var(--transition);
}
.sf-chip-remove:hover { opacity: 1; background: rgba(26,66,40,.12); }

/* Result count + clear-all */
.sf-count-wrap {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-left: auto;
}
.sf-count {
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-500);
    white-space: nowrap;
}
.sf-clear-all {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: none;
    border: 1.5px solid var(--gray-300);
    border-radius: 999px;
    padding: .18rem .65rem;
    font-size: .75rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}
.sf-clear-all:hover { border-color: var(--red); color: var(--red); }

/* Scrollable table container — scroll stays inside the card, not the page */
.admin-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Action cell — keeps View + button group on one line */
.app-action-cell {
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
    width: 130px;
    overflow: visible;
}

/* App action pill colours — layout/expand mechanics inherited from .jp */
.app-action-shortlist { border-color:#000000; color:#15803d; background:#dcfce7; }
.app-action-shortlist:hover { background:#bbf7d0; border-color:#4ade80; color:#166534; }
.app-action-reject { border-color:#760000; color:#b91c1c; background:#fee2e2; }
.app-action-reject:hover { background:#fecaca; border-color:#f87171; color:#991b1b; }
.app-action-reset { border-color:var(--gray-200); color:var(--gray-500); background:var(--gray-100); }
.app-action-reset:hover { background:var(--gray-200); border-color:var(--gray-300); color:var(--gray-700); }

/* Bulk action bar */
.admin-bulk-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    background: #eff6ff;
    border: 1.5px solid #93c5fd;
    border-radius: var(--radius);
    padding: .6rem 1rem;
    margin-bottom: .75rem;
    font-size: .88rem;
    font-weight: 600;
    color: #1d4ed8;
}

/* ── Job-list action pills (jobs.php) ───────────────────────────── */
.jp-group { display:flex; gap:.3rem; justify-content:flex-end; align-items:center; min-height:2.2rem; }
.jp {
    display:inline-flex; align-items:center; justify-content:center;
    padding:.32rem .4rem; border-radius:999px; border:2px solid transparent;
    cursor:pointer; background:transparent; text-decoration:none; white-space:nowrap;
    overflow:hidden; font-family:inherit; line-height:1; gap:0;
    transition:gap .18s ease, background .15s, border-color .15s;
}
.jp svg { flex-shrink:0; }
.jp .jp-lbl {
    font-size:.72rem; font-weight:600; max-width:0; overflow:hidden;
    transition:max-width .18s ease; display:inline-block;
}
.jp:hover { gap:.26rem; }
.jp:hover .jp-lbl { max-width:7rem; }

.jp-edit           { border-color:var(--green); color:var(--green); }
.jp-edit:hover     { background:var(--green-light); }
.jp-on             { border-color:#d97706; color:#b45309; }
.jp-on:hover       { background:#fff7ed; }
.jp-off            { border-color:var(--green); color:var(--green); }
.jp-off:hover      { background:var(--green-light); }
.jp-star-on        { border-color:#ca8a04; color:#92400e; background:#fef9c3; }
.jp-star-on:hover  { background:#fde68a; }
.jp-star-off       { border-color:var(--gray-300); color:var(--gray-500); }
.jp-star-off:hover { background:var(--gray-100); }
.jp-preview        { border-color:var(--gray-300); color:var(--gray-500); }
.jp-preview:hover  { background:var(--gray-100); }
.jp-delete         { border-color:#fca5a5; color:var(--red); }
.jp-delete:hover   { background:#fef2f2; border-color:var(--red); }

/* ── Admin filter bar ───────────────────────────────────────────── */
.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}
.filter-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--gray-500);
    white-space: nowrap;
}
.filter-input,
.filter-select {
    height: 36px;
    padding: 0 .75rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-body);
    font-size: .875rem;
    color: var(--gray-900);
    transition: border-color .15s, box-shadow .15s;
    appearance: none;
    -webkit-appearance: none;
}
.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.filter-input::placeholder { color: var(--gray-400); }
.filter-select {
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    cursor: pointer;
}
input[type="date"].filter-input {
    min-width: 140px;
    cursor: pointer;
}
@media (max-width: 600px) {
    .admin-filter-bar { flex-direction: column; align-items: stretch; }
    .filter-input, .filter-select { width: 100%; }
}

/* ── Muted link-style button (e.g. "Clear form") ───────────────── */
.btn-link-muted {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .8rem;
    color: var(--gray-400);
    padding: .15rem .25rem;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .15s;
    font-family: var(--font-body);
}
.btn-link-muted:hover { color: var(--gray-600); }

/* ── Admin dialog / modal ───────────────────────────────────────── */
dialog.admin-dialog,
#modal-new-user,
#modal-complete-profile,
#modal-sms-create,
#modal-email-tpl,
#modal-confirm-regret,
#modal-quick-notify,
#modal-quick-notify-list,
#modal-bulk-notify,
#modal-as-edit,
#modal-bulk-schedule,

#timeout-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 0;
    max-width: 720px;
    width: min(720px, calc(100vw - 2rem));
    max-height: 90vh;
    overflow-y: auto;
}
/* Email template editor modal needs extra width for the split editor */
#modal-email-tpl {
    width: min(70vw, 1080px);
    max-width: 96vw;
    max-height: 94vh;
}
/* ── Admin Guide page ── */

/* Two-column layout: sticky sidebar + scrollable content */
.guide-layout {
    display: grid;
    grid-template-columns: 224px 1fr;
    align-items: start;
    gap: 0;
    min-height: calc(100vh - 58px);
}
.guide-toc-sidebar {
    position: sticky;
    top: 58px;
    height: calc(100vh - 58px);
    overflow-y: auto;
    padding: 1.5rem 1rem 2rem;
    border-right: 1px solid var(--gray-200);
    background: var(--gray-50);
    scrollbar-width: thin;
}
.guide-toc-header {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--gray-400);
    padding: 0 .5rem;
    margin-bottom: .65rem;
}
.guide-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.guide-toc-list li { margin: 0; }
.guide-toc-link {
    display: block;
    font-size: .8rem;
    line-height: 1.35;
    color: var(--gray-500);
    padding: .3rem .55rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color .12s, background .12s, border-color .12s;
}
.guide-toc-link:hover {
    color: var(--green-dark);
    background: #f0fdf4;
    border-left-color: #86efac;
}
.guide-toc-link.active {
    color: var(--green-dark);
    background: #dcfce7;
    border-left-color: var(--green);
    font-weight: 600;
}

/* Main content column */
.guide-main { min-width: 0; padding: 1.5rem 2rem 3rem; }
.guide-page-bar {
    display: flex; align-items: center; gap: .75rem;
    margin-bottom: 1.5rem;
    padding: .5rem .75rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}
.guide-search-wrap {
    flex: 1; display: flex; align-items: center; gap: .4rem;
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm); padding: .28rem .6rem;
    min-width: 0;
}
.guide-search-input {
    border: none; outline: none; background: none;
    font-size: .85rem; flex: 1; min-width: 60px; color: var(--gray-800);
}
.guide-search-count { font-size: .75rem; color: var(--gray-400); white-space: nowrap; flex-shrink: 0; }

/* Mobile TOC toggle button (hidden on desktop) */
.guide-toc-toggle {
    display: none;
    align-items: center;
    gap: .35rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--gray-600);
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .28rem .65rem;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .12s, color .12s;
}
.guide-toc-toggle:hover { background: #f0fdf4; color: var(--green-dark); border-color: #86efac; }
.guide-toc-toggle[aria-expanded="true"] .guide-toc-toggle-caret { transform: rotate(180deg); }
.guide-toc-toggle-caret { transition: transform .15s; }

/* Mobile TOC dropdown panel */
.guide-toc-mobile {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    margin-bottom: 1.25rem;
    column-count: 2;
    column-gap: 1rem;
}
.guide-toc-mobile .guide-toc-link { font-size: .82rem; padding: .25rem .45rem; }

/* Search hit highlight */
mark.guide-hit { background: #fef08a; color: inherit; border-radius: 2px; padding: 0 1px; }

.admin-guide-body {
    font-size: .91rem;
    line-height: 1.75;
    color: var(--gray-700);
}
.admin-guide-body h2 { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin: 2rem 0 .5rem; padding-bottom: .3rem; border-bottom: 2px solid #d1fae5; }
.admin-guide-body h3 { font-size: .97rem; font-weight: 600; color: var(--gray-800); margin: 1.4rem 0 .35rem; }
.admin-guide-body h4 { font-size: .88rem; font-weight: 600; color: var(--gray-600); margin: 1.1rem 0 .25rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-guide-body p  { margin: .45rem 0; }
.admin-guide-body hr { border: none; border-top: 1px solid var(--gray-200); margin: 1.5rem 0; }
.admin-guide-body ul,.admin-guide-body ol { margin: .35rem 0 .75rem 1.4rem; }
.admin-guide-body li { margin-bottom: .2rem; }
.admin-guide-body code { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: 3px; padding: .1em .35em; font-size: .83em; font-family: monospace; }
.admin-guide-body pre { background: var(--gray-100); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: .75rem 1rem; font-size: .82rem; overflow-x: auto; margin: .5rem 0 1rem; }
.admin-guide-body pre code { background: none; border: none; padding: 0; font-size: inherit; }
.admin-guide-body blockquote { border-left: 3px solid var(--green); background: #f0fdf4; padding: .5rem 1rem; margin: .5rem 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--gray-600); }
.admin-guide-body del { opacity: .55; text-decoration: line-through; }
.admin-guide-body a { color: var(--green-dark); text-decoration: underline; }
.admin-guide-body table { width: 100%; border-collapse: collapse; font-size: .85rem; margin: .75rem 0 1.1rem; }
.admin-guide-body th { background: #f0fdf4; color: var(--green-dark); font-weight: 600; padding: .45rem .75rem; text-align: left; border-bottom: 2px solid #bbf7d0; }
.admin-guide-body td { padding: .4rem .75rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.admin-guide-body tr:last-child td { border-bottom: none; }
.admin-guide-body tr:hover td { background: var(--gray-50); }
/* Responsive guide layout */
@media (max-width: 860px) {
    .guide-layout { grid-template-columns: 1fr; }
    .guide-toc-sidebar { display: none; }          /* replaced by mobile dropdown */
    .guide-toc-toggle { display: flex; }
    .guide-main { padding: 1rem 1.25rem 2rem; }
}
@media (max-width: 480px) {
    .guide-toc-mobile { column-count: 1; }
    .guide-main { padding: .75rem .75rem 2rem; }
}
dialog.admin-dialog::backdrop,
#modal-new-user::backdrop,
#modal-complete-profile::backdrop,
#modal-sms-create::backdrop,
#modal-email-tpl::backdrop,
#modal-confirm-regret::backdrop,
#modal-quick-notify::backdrop,
#modal-quick-notify-list::backdrop,
#modal-bulk-notify::backdrop,
#modal-as-edit::backdrop,
#modal-bulk-schedule::backdrop,
#timeout-modal::backdrop {
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(3px);
}
.admin-inline-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.admin-inline-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.admin-modal-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
    border-radius: var(--radius) var(--radius) 0 0;
}
.admin-modal-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--gray-800); }
.admin-modal-body  { padding: 1.5rem 1.4rem; }
.admin-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    padding: .25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: color .15s, background .15s;
}
.admin-modal-close:hover { color: var(--gray-800); background: var(--gray-200); }

/* ── Password strength meter (users.php) ────────────────────────── */
.pw-strength-bar   { height:5px; background:var(--gray-100); border-radius:999px; overflow:hidden; margin-bottom:.4rem; }
.pw-strength-fill  { height:100%; width:0; border-radius:999px; transition:width .25s, background .25s; }
.pw-strength-label { font-size:.78rem; font-weight:600; margin:0 0 .4rem; }
.pw-req-list       { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:.2rem; }
.pw-req-list li    { font-size:.78rem; display:flex; align-items:center; gap:.35rem; }
.pw-req-list li svg { flex-shrink:0; }

/* ── Cloudflare Turnstile widget wrapper ─────────────────────────────────────── */
.turnstile-wrap { width:100%; display:flex; justify-content:center; margin-bottom:.75rem; }

/* ── Audit Log (audit-log.php) ───────────────────────────────────────────────── */
.al-badge {
    display: inline-block;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    color: #fff;
    background: #6366f1;
}
.al-badge-status_change      { background: #16a34a; }
.al-badge-bulk_status_change { background: #0284c7; }
.al-badge-job_deleted        { background: #dc2626; }
.al-badge-job_activated      { background: #16a34a; }
.al-badge-job_deactivated    { background: #6b7280; }
.al-badge-job_featured       { background: #d97706; }
.al-badge-job_unfeatured     { background: #9ca3af; }
.al-badge-tp_invite_sent     { background: #7c3aed; }

.al-entity-tag {
    display: inline-block;
    padding: .15rem .5rem;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
    background: var(--gray-100);
    color: var(--gray-600);
    font-family: var(--font-mono, monospace);
}

.al-detail {
    font-size: .78rem;
    color: var(--gray-500);
    line-height: 1.6;
}
.al-detail-key {
    font-weight: 600;
    color: var(--gray-700);
}
.al-detail-sep {
    color: var(--gray-300);
    margin: 0 .3rem;
}

/* ── Assessment copy protection ─────────────────────────────────────────────── */
/* Prevent text selection on question stems and option labels;
   inputs/textareas inside are explicitly allowed so candidates can type/edit. */
.assessment-question-card > div > label,
.assessment-opt-label {
    -webkit-user-select: none;
    user-select: none;
}
.assessment-question-card input,
.assessment-question-card textarea {
    -webkit-user-select: text;
    user-select: text;
}

/* Tab-switch warning overlay */
#assess-tabswitch-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
#assess-tabswitch-overlay .assess-tabswitch-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem 2.5rem;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
#assess-tabswitch-overlay .assess-tabswitch-icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}
#assess-tabswitch-overlay h3 {
    margin: 0 0 .5rem;
    font-size: 1.15rem;
    color: var(--gray-900);
}
#assess-tabswitch-overlay p {
    font-size: .9rem;
    color: var(--gray-600);
    margin: 0 0 1.25rem;
    line-height: 1.6;
}

/* ── Template placeholder pills ─────────────────────────────────────────────── */
/* Modal insert pills — click inserts at cursor */
.tpl-ph-pill {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: .15rem .5rem;
    font-size: .73rem;
    color: var(--green-dark);
    cursor: pointer;
    user-select: none;
    transition: background .12s;
    font-family: var(--font-mono, monospace);
}
.tpl-ph-pill:hover { background: #d1fae5; }

/* Page-level reference bar pills — click copies to clipboard */
.tpl-ref-pill {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    padding: .1rem .45rem;
    font-size: .78rem;
    color: var(--green-dark);
    cursor: pointer;
    user-select: none;
    font-family: var(--font-mono, monospace);
}
.tpl-ref-pill:hover { background: #d1fae5; }

/* Pill strip container */
.tpl-ph-pills {
    display: flex;
    gap: .3rem;
    flex-wrap: wrap;
}

/* Collapsible template list section — Pipeline / General templates blocks */
details.tpl-section {
    margin-bottom: 1.5rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
}
details.tpl-section > summary {
    padding: .7rem 1rem;
    cursor: pointer;
    font-weight: 600;
    font-size: .875rem;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    user-select: none;
    background: var(--gray-50);
    border-radius: var(--radius);
}
details.tpl-section > summary::-webkit-details-marker { display: none; }
details.tpl-section[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
.tpl-section-body { border-top: 1px solid var(--gray-200); }
.tpl-section-count { margin-left: .5rem; font-size: .75rem; font-weight: 500; color: var(--gray-500); }
.tpl-section-hint  { font-size: .78rem; font-weight: 400; color: var(--gray-400); }
.tpl-section-actions { display: flex; align-items: center; gap: .75rem; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
/* KPI cards */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}
.dash-kpi-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.35rem 1.15rem;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform .18s, box-shadow .18s;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    position: relative;
    overflow: hidden;
}
.dash-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,.1);
    text-decoration: none;
}
.dash-kpi-icon {
    width: 2.4rem; height: 2.4rem;
    border-radius: .65rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .9rem;
    color: #fff;
    flex-shrink: 0;
}
.dash-kpi-value {
    font-size: 2rem; font-weight: 800;
    line-height: 1; margin-bottom: .28rem;
    color: #111827;
}
.dash-kpi-label {
    font-size: .78rem; font-weight: 500;
    color: var(--gray-500); line-height: 1.3;
}
/* Per-card colour themes: tinted gradient bg + solid top border + matching icon */
.dash-kpi-emerald { background: linear-gradient(160deg,#f0fdf4 0%,#fff 55%); border-top: 3px solid #499c67; }
.dash-kpi-emerald .dash-kpi-icon { background: #34c168; }
.dash-kpi-blue    { background: linear-gradient(160deg,#eff6ff 0%,#fff 55%); border-top: 3px solid #4568b3; }
.dash-kpi-blue    .dash-kpi-icon { background: #4c72c3; }
.dash-kpi-violet  { background: linear-gradient(160deg,#f5f3ff 0%,#fff 55%); border-top: 3px solid #6d4ea3; }
.dash-kpi-violet  .dash-kpi-icon { background: #6d46b0; }
.dash-kpi-amber   { background: linear-gradient(160deg,#fffbeb 0%,#fff 55%); border-top: 3px solid #ba8e5d; }
.dash-kpi-amber   .dash-kpi-icon { background: #b68247; }
.dash-kpi-indigo  { background: linear-gradient(160deg,#eef2ff 0%,#fff 55%); border-top: 3px solid #5550b6; }
.dash-kpi-indigo  .dash-kpi-icon { background: #57539c; }
.dash-kpi-teal    { background: linear-gradient(160deg,#f0fdfa 0%,#fff 55%); border-top: 3px solid #409089; }
.dash-kpi-teal    .dash-kpi-icon { background: #57b4ac; }
/* Collapsible activity section */
details.dash-activity-details { margin-bottom:1.5rem; }
details.dash-activity-details > summary {
    display: flex; align-items: center; gap: .75rem;
    padding: .85rem 1.25rem; cursor: pointer;
    list-style: none; user-select: none;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: background .12s;
}
details.dash-activity-details[open] > summary {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom-color: transparent;
}
details.dash-activity-details > summary::-webkit-details-marker { display:none; }
details.dash-activity-details > summary h2 { margin:0; font-size:1rem; flex:1; }
.dash-activity-caret {
    transition: transform .2s;
    color: var(--gray-400);
}
details.dash-activity-details[open] .dash-activity-caret { transform: rotate(90deg); }
details.dash-activity-details > .dash-activity-body {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
/* Funnel bars */
.dash-funnel-row   { display:flex; align-items:center; gap:.75rem; margin-bottom:.55rem; }
.dash-funnel-label { width:6.5rem; font-size:.82rem; font-weight:600; text-align:right; flex-shrink:0; color:var(--gray-700); }
.dash-funnel-track { flex:1; background:var(--gray-100); border-radius:99px; height:.85rem; overflow:hidden; }
.dash-funnel-fill  { height:100%; border-radius:99px; }
.dash-funnel-count { width:2.8rem; font-size:.82rem; font-weight:600; text-align:right; flex-shrink:0; color:var(--gray-800); }
.dash-funnel-link  { font-size:.75rem; color:var(--green-dark); text-decoration:none; flex-shrink:0; }
.dash-funnel-link:hover { text-decoration:underline; }
/* 30-day application trend */
.dash-trend        { display:flex; align-items:flex-end; gap:2px; height:5.5rem; padding:.25rem 0; }
.dash-trend-bar    { flex:1; min-width:2px; border-radius:2px 2px 0 0; background:var(--green); opacity:.6; cursor:default; position:relative; }
.dash-trend-bar:hover { opacity:1; }
/* Mini pipeline segment bar in jobs table */
.dash-mini-pipe    { display:flex; height:.45rem; border-radius:99px; overflow:hidden; gap:1px; min-width:6rem; }
.dash-mini-seg     { flex-shrink:0; }
/* Recent activity feed */
.dash-activity-row { display:flex; gap:.75rem; align-items:baseline; padding:.5rem 0; border-bottom:1px solid var(--gray-100); font-size:.84rem; line-height:1.4; }
.dash-activity-dot { width:.5rem; height:.5rem; border-radius:50%; background:var(--green); flex-shrink:0; margin-top:.35rem; }
.dash-activity-time{ color:var(--gray-400); font-size:.77rem; white-space:nowrap; flex-shrink:0; margin-left:auto; padding-left:.75rem; }
.dash-activity-row:last-child { border-bottom:none; }
/* Metric panel tiles (Assessment, Comms, Portal, Admin Users) */
.dash-tile         { border-radius:var(--radius-sm); padding:.75rem 1rem; }
.dash-tile-value   { font-size:1.4rem; font-weight:800; line-height:1; margin-bottom:.3rem; color:inherit; }
.dash-tile-label   { font-size:.73rem; font-weight:500; line-height:1.3; color:inherit; opacity:.85; }
.dash-tile.empty   { background:#f3f4f6 !important; }
.dash-tile.empty .dash-tile-value,
.dash-tile.empty .dash-tile-label { color:#9ca3af; opacity:1; }
.dash-tile-emerald { background:#50a06d; color:#fff; }
.dash-tile-blue    { background:#6189e1; color:#fff; }
.dash-tile-violet  { background:#9665ea; color:#fff; }
.dash-tile-amber   { background:#daa569; color:#fff; }
.dash-tile-red     { background:#d76767; color:#fff; }
.dash-tile-teal    { background:#5abdb5; color:#fff; }
.dash-tile-indigo  { background:#706bd8; color:#fff; }
.dash-tile-slate   { background:#768ba9; color:#fff; }
.dash-tile-orange  { background:#f68649; color:#fff; }

/* ── CSV export modal ───────────────────────────────────────── */
.exp-section-label { font-size:.73rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase;
                     color:var(--gray-400); margin:.9rem 0 .4rem; }
.exp-section-label:first-child { margin-top:0; }
.exp-filters-grid  { display:grid; grid-template-columns:1fr 1fr; gap:.55rem .9rem; margin-bottom:.15rem; }
.exp-full-row      { grid-column: 1 / -1; }
.exp-label  { display:block; font-size:.76rem; font-weight:600; color:var(--gray-600); margin-bottom:.2rem; }
.exp-select { width:100%; padding:.38rem .65rem; border:1px solid var(--gray-200); border-radius:var(--radius-sm);
              background:#fff; font-size:.84rem; color:var(--gray-800); appearance:none;
              background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
              background-repeat:no-repeat; background-position:right .5rem center; padding-right:1.6rem;
              cursor:pointer; transition:border-color .15s; }
.exp-select:focus  { outline:none; border-color:var(--green); box-shadow:0 0 0 2px var(--green-light); }
.exp-input  { width:100%; padding:.38rem .65rem; border:1px solid var(--gray-200); border-radius:var(--radius-sm);
              font-size:.84rem; color:var(--gray-800); box-sizing:border-box; transition:border-color .15s; }
.exp-input:focus   { outline:none; border-color:var(--green); box-shadow:0 0 0 2px var(--green-light); }
.exp-col-grid { display:grid; grid-template-columns:1fr 1fr; gap:.35rem .75rem; }
.exp-col-item { display:flex; align-items:center; gap:.45rem; font-size:.85rem; color:var(--gray-700);
                padding:.3rem .5rem; border-radius:var(--radius-sm); cursor:pointer; }
.exp-col-item:hover { background:var(--gray-50); }
.exp-col-item input[type=checkbox] { accent-color:var(--green); width:14px; height:14px; cursor:pointer; flex-shrink:0; }
