/* Recruitment Tracker — Design Tokens, per the official Omega_Softlogix_-_BRAND_GUIDE.pdf:
   colors #64DBE3 (bright cyan-teal) / #48AFB6 (deep teal) / #2B2A29 (near-black), font
   Montserrat (Semi Bold for "Omega"/headings, Medium for "Softlogix"/body). --navy is a
   further-darkened derivative of the brand teal (#48AFB6 alone is only 2.6:1 contrast
   against white — fails WCAG AA — so it's reserved for accents/borders, not text-on-teal
   backgrounds; --navy carries 7.44:1 contrast, used for the sidebar's active nav state,
   buttons, and headings).

   Visual direction: light & airy — white/light surfaces throughout, teal reserved for
   accents (buttons, links, active nav, chart colors) rather than covering large areas;
   soft shadows instead of heavy borders or colored card top-strips; generous whitespace.
   Nav lives in a left sidebar (grouped: Recruitment / Manage / Insights / Admin) instead
   of a single horizontal row — the old topbar squeezed 11 items into one line. */

:root {
    --navy: #175E64;
    --navy-deep: #0F3D40;
    --teal: #23838B;
    --teal-tint: #EAF6F7;
    --brand-cyan: #64DBE3;
    --brand-teal: #48AFB6;
    --amber: #F2A93B;
    --amber-deep: #D68F1F;
    --coral: #E8604C;
    --bg: #F7F9FA;
    --card: #FFFFFF;
    --ink: #2B2A29;
    --muted: #6B7685;
    --border: #E7EBEE;
    --green: #1A7F37;
    --green-bg: #DCF3E1;
    --warn-bg: #FBF0DC;
    --warn-text: #8A3B2E;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 1px 3px rgba(16, 24, 40, 0.06), 0 4px 12px rgba(16, 24, 40, 0.04);
    --sidebar-w: 240px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Montserrat', -apple-system, Segoe UI, sans-serif;
    margin: 0;
    background: var(--bg);
    color: var(--ink);
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--navy-deep); letter-spacing: -0.01em; }

/* ==== App shell: sidebar + main content ==== */
.app-shell { display: flex; align-items: stretch; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.sidebar-brand { padding: 20px 20px 16px; }
.sidebar-brand img { height: 30px; }
.brand-fallback { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px; color: var(--navy); }

.sidebar-nav { flex: 1; padding: 4px 12px; }
.nav-group-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 18px 12px 6px;
}
.nav-group-label:first-child { margin-top: 6px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.nav-link:hover { background: #F4F6F7; }
.nav-link.is-active { background: var(--teal-tint); color: var(--navy); font-weight: 600; }
.nav-link.is-active .nav-icon { color: var(--navy); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.nav-link:hover .nav-icon, .nav-link.is-active .nav-icon { color: var(--navy); }

.sidebar-footer { padding: 14px 20px; border-top: 1px solid var(--border); }
.back-link { color: var(--muted); text-decoration: none; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; margin-bottom: 12px; }
.back-link:hover { color: var(--navy); }
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar { background: var(--teal); color: #fff; border-radius: 50%; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.user-chip-text { font-size: 13px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.user-chip .role { display: block; color: var(--muted); font-size: 11px; font-weight: 500; }
.logout-link { color: var(--muted); flex-shrink: 0; display: inline-flex; }
.logout-link:hover { color: var(--coral); }
.logout-link svg { width: 17px; height: 17px; }

.main-content { flex: 1; min-width: 0; }
.container { max-width: 1150px; margin: 28px auto; padding: 0 28px; }

/* ==== Mobile drawer ==== */
.mobile-topbar { display: none; }
.drawer-backdrop { display: none; }

@media (max-width: 960px) {
    .mobile-topbar {
        display: flex;
        align-items: center;
        gap: 14px;
        position: sticky;
        top: 0;
        z-index: 30;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 10px 16px;
    }
    .drawer-toggle { background: none; border: none; padding: 4px; cursor: pointer; color: var(--navy); }
    .drawer-toggle svg { width: 22px; height: 22px; }

    .app-shell { position: relative; }
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 40;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: var(--shadow-md);
    }
    body.drawer-open .sidebar { transform: translateX(0); }
    body.drawer-open .drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 26, 0.4);
        z-index: 35;
    }

    .container { padding: 0 14px; margin: 16px auto; }
    .card { padding: 16px; overflow-x: auto; }
    .table { min-width: 640px; }
    .kpi-row, .rt-flex-row { flex-direction: column; }
    .rt-search-box { flex-wrap: wrap; }
    .rt-search-box input[type=search] { min-width: 0; width: 100%; }
}

/* ==== Cards ==== */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
.card h2:first-child, .card h3:first-child { margin-top: 0; }

/* ---- Tables ---- */
/* Wide tables (many columns) scroll horizontally inside their own box instead of stretching
   the card/page — the page itself should never need to scroll sideways. Text wraps normally
   (the browser default) rather than forcing nowrap — nowrap was tried here once and, because
   it's a base .table rule, silently broke every OTHER table in the app that isn't wrapped in
   .table-wrap (Jobs, Vendors, Clients, Calls, etc.), forcing them wide with nowhere to
   overflow to. Only candidates.php/nonit.php ever needed .table-wrap; normal wrapping is the
   correct default everywhere else. */
/* Explicit, always-visible scrollbar — the default OS/browser scrollbar for overflow:auto is
   thin enough (especially on Windows with overlay scrollbars) that people didn't notice there
   was anything to scroll to reach the hidden columns; this makes the affordance obvious without
   needing to hover first. */
.table-wrap {
    overflow-x: auto;
    scrollbar-width: auto;
    scrollbar-color: var(--teal) var(--teal-tint);
}
.table-wrap::-webkit-scrollbar { height: 12px; }
.table-wrap::-webkit-scrollbar-track { background: var(--teal-tint); border-radius: 6px; }
.table-wrap::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 6px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: var(--navy); }

/* Sticky horizontal scrollbar — for a long candidate list, .table-wrap's own scrollbar sits
   below the last row, off-screen until you scroll all the way down past every record. This bar
   mirrors that scroll position but stays pinned to the bottom of the viewport (via
   position:sticky against the card, its scrolling ancestor) for as long as the card is still in
   view, so you can scroll the columns sideways from wherever you are in the list. Hidden by JS
   (rt_init_sticky_hscroll) when the table doesn't actually overflow. */
.rt-sticky-hscroll {
    position: sticky;
    bottom: 0;
    height: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    background: var(--card);
    border-top: 1px solid var(--border);
    margin-top: 4px;
}
.rt-sticky-hscroll-spacer { height: 1px; }
.rt-sticky-hscroll::-webkit-scrollbar { height: 12px; }
.rt-sticky-hscroll::-webkit-scrollbar-track { background: var(--teal-tint); border-radius: 6px; }
.rt-sticky-hscroll::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 6px; }
.rt-sticky-hscroll::-webkit-scrollbar-thumb:hover { background: var(--navy); }
.table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table thead th { background: var(--teal-tint); color: var(--navy-deep); font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--border); }
.table tbody tr:hover { background: #FAFBFC; }
.table a { color: var(--teal); font-weight: 600; text-decoration: none; }
.table a:hover { text-decoration: underline; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--navy);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.btn:hover { background: var(--navy-deep); }
.btn.secondary { background: #fff; color: var(--navy); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--teal-tint); border-color: var(--teal); }
/* Breathing room between two buttons sitting side by side (e.g. dashboard's action row) —
   scoped to the sibling pair so it never touches single-button placements or ones that
   already manage their own spacing (float + explicit margin-left, flex + gap). */
.btn + .btn { margin-left: 8px; }
.btn-link { background: none; border: none; color: var(--coral); cursor: pointer; padding: 0; font-size: 13px; text-decoration: underline; }

/* ---- Alerts ---- */
.alert { padding: 10px 16px; border-radius: 8px; margin-bottom: 14px; background: var(--teal-tint); border-left: 4px solid var(--teal); font-size: 14px; }
.alert.error { background: #FBE1DC; border-left-color: var(--coral); color: #9b2c2c; }
.alert.success { background: var(--green-bg); border-left-color: var(--green); color: #1e6b34; }
/* One consistent "heads up" treatment — this replaced two near-identical ad hoc oranges used
   for the same kind of message (a "can't delete"/"possible duplicate" notice), one of which
   didn't even override .alert's default teal border-left, so it rendered with a mismatched
   teal border on an amber background. */
.alert.warning { background: var(--warn-bg); border-left-color: var(--amber-deep); color: var(--warn-text); }

/* Small inline status pill — currently just "Archived", reused wherever a record's active/
   inactive state needs a compact label rather than a whole banner. */
.badge-archived { display: inline-block; background: var(--warn-bg); color: var(--warn-text); border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 600; }

/* A few genuinely repeated inline-style patterns, pulled into named classes so a future
   tweak is one CSS edit instead of a grep-and-fix sweep across a dozen files. Widths are
   defined further down, after the generic form-control rule they need to override. */
.rt-inline { display: inline; }

/* Collapsible "optional details" box (e.g. Profile Details on the add forms, Customize
   columns on the list pages) — was hand-rolled with slightly different inline styles at each
   call site; now one look everywhere it appears. */
.rt-details-box { margin: 12px 0; border: 1px solid var(--border); border-radius: 8px; padding: 2px 14px; }
.rt-details-box summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--navy); }
.rt-details-box .rt-details-body { padding-bottom: 12px; }
.rt-details-box .rt-checkbox-row { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 0 4px; }
.rt-details-box .rt-checkbox-row label { font-weight: 400; display: inline-flex; align-items: center; gap: 5px; }

.muted { color: var(--muted); }

/* ---- Layout utility: a wrapping row of side-by-side blocks (e.g. dashboard's
   chart + activity feed) — replaces repeated inline style="display:flex;gap:20px;
   flex-wrap:wrap;align-items:flex-start;" across views. ---- */
.rt-flex-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.rt-col-wide { flex: 2; min-width: 340px; }
.rt-col-narrow { flex: 1; min-width: 280px; }

/* ---- Forms ---- */
form label { display: block; margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: var(--navy); }
form input[type=text], form input[type=email], form input[type=number], form input[type=password],
form input[type=date], form input[type=datetime-local], form input[type=search], form input[type=url],
form input[type=file], form select, form textarea {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
/* Narrower than the default full-width form control, for fields where 100% would look odd
   (a number field for years of experience, an inline stage-update select next to its button). */
form input.rt-input-sm { width: 120px; }
form input.rt-inline-control, form select.rt-inline-control { width: auto; display: inline-block; }
form p { margin-top: 18px; margin-bottom: 0; }
form button[type=submit], form .btn { margin-top: 6px; }

.rt-search-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 16px; }
.rt-search-box input[type=search] { min-width: 220px; flex: 1 1 220px; }
.rt-search-box select { width: auto; max-width: 200px; }

/* ---- Status badges ---- */
.rt-status {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.rt-status-open, .rt-status-active, .rt-status-cleared, .rt-status-joined { background: var(--green-bg); color: var(--green); }
.rt-status-on-hold { background: #FDEBD0; color: var(--amber-deep); }
.rt-status-closed, .rt-status-withdrawn, .rt-status-resigned, .rt-status-applied, .rt-status-no-show { background: #EDEFF3; color: var(--muted); }
.rt-status-filled, .rt-status-offered, .rt-status-scheduled, .rt-status-accepted, .rt-status-offer-extended, .rt-status-interviewing { background: #DCEBF5; color: var(--navy); }
.rt-status-rejected, .rt-status-candidate-rejected, .rt-status-absconded, .rt-status-backed-out, .rt-status-rescheduled { background: #FBE1DC; color: var(--coral); }
.rt-status-interested { background: var(--green-bg); color: var(--green); }
.rt-status-not-interested, .rt-status-wrong-number { background: #FBE1DC; color: var(--coral); }
.rt-status-not-reachable, .rt-status-call-back-later { background: #FDEBD0; color: var(--amber-deep); }

.rt-vertical-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.4; }
.rt-vertical-it { background: #DCEBF5; color: var(--navy); }
.rt-vertical-nonit { background: #FDEBD0; color: var(--amber-deep); }

/* ---- KPI tiles (dashboard + reports) ---- */
.kpi-row { display: flex; flex-wrap: wrap; gap: 14px; }
.kpi-tile {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px 22px;
    min-width: 150px;
    flex: 1;
    box-shadow: var(--shadow-sm);
}
.kpi-tile h2 { font-size: 28px; margin: 0 0 4px; color: var(--navy); }
.kpi-tile p { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
a.kpi-tile { display: block; text-decoration: none; cursor: pointer; transition: box-shadow .12s, border-color .12s; }
a.kpi-tile:hover { border-color: var(--teal); box-shadow: 0 2px 8px rgba(16,24,40,.08); }
a.kpi-tile.is-active { border-color: var(--teal); background: var(--teal-tint, #EAF6F7); }

/* ---- Dashboard timeline ---- */
.rt-timeline { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; max-height: 420px; overflow-y: auto; }
.rt-timeline-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.rt-timeline-item:last-child { border-bottom: none; }
.rt-timeline-icon { font-size: 15px; }
.rt-timeline-meta { color: var(--muted); font-size: 11px; margin-top: 2px; }

/* ---- Login page ---- */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }
.login-box { width: 100%; max-width: 360px; padding: 0 16px; }
.login-box .card { text-align: center; padding: 40px 36px; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.3); border: none; }
.login-logo { max-height: 48px; margin-bottom: 14px; }
.login-box h2 { font-size: 22px; }

/* ---- Report tabs (pill style) ---- */
.report-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.report-tab {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: #F4F6F7;
}
.report-tab:hover { color: var(--navy); background: var(--teal-tint); }
.report-tab.is-active { background: var(--navy); color: #fff; }
.period-pills { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.period-pill {
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--border);
}
.period-pill:hover { border-color: var(--teal); }
.period-pill.is-active { background: var(--teal-tint); border-color: var(--teal); color: var(--navy); }

/* ---- Same-page tabs (candidate_detail.php / nonit_detail.php) ---- */
.rt-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.rt-tab {
    appearance: none; border: none; background: none; cursor: pointer;
    padding: 11px 4px; margin-right: 22px;
    font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--muted);
    border-bottom: 2.5px solid transparent; position: relative; top: 1px;
}
.rt-tab .count { display: inline-block; background: var(--teal-tint); color: var(--navy); border-radius: 10px; padding: 1px 7px; font-size: 11px; margin-left: 6px; font-weight: 700; }
.rt-tab:hover { color: var(--navy); }
.rt-tab.is-active { color: var(--navy); border-bottom-color: var(--teal); }
.rt-tab-panels { padding-top: 22px; }
.rt-tab-panel { display: none; }
.rt-tab-panel.is-active { display: block; }

/* ---- Candidate profile field grid (Overview tab) ---- */
.rt-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.rt-field { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.rt-field.span-2 { grid-column: 1 / -1; }
.rt-field-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.rt-field-value { font-size: 14.5px; line-height: 1.55; }
@media (max-width: 720px) { .rt-profile-grid { grid-template-columns: 1fr; } }

/* ---- Resume tab ---- */
.rt-resume-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rt-resume-frame { width: 100%; height: 640px; border: 1px solid var(--border); border-radius: 10px; display: block; background: #F4F6F7; }

/* ---- Candidate pipeline stepper ---- */
.rt-pipeline { display: flex; align-items: center; margin: 16px 0 24px; flex-wrap: wrap; }
.rt-pipeline-step { display: flex; flex-direction: column; align-items: center; min-width: 90px; text-align: center; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.rt-pipeline-dot { width: 26px; height: 26px; border-radius: 50%; background: #EDEFF3; border: 2px solid var(--border); margin-bottom: 6px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }
.rt-pipeline-line { flex: 1; height: 3px; background: var(--border); margin: 0 -4px 24px; min-width: 20px; }
.rt-pipeline-step.is-done .rt-pipeline-dot { background: var(--teal); border-color: var(--teal); }
.rt-pipeline-step.is-current .rt-pipeline-dot { background: var(--amber); border-color: var(--amber-deep); }
.rt-pipeline-step.is-current { color: var(--navy); }
.rt-pipeline-step.is-done { color: var(--teal); }

/* ==== Omega Academy additions ==== */
/* Status pills for leads, batches, sessions, attendance, trainers */
.ac-status-new, .ac-status-planned, .ac-status-scheduled { background: #DCEBF5; color: var(--navy); }
.ac-status-contacted, .ac-status-late, .ac-status-on-hold, .ac-status-rescheduled, .ac-status-engaged { background: #FDEBD0; color: var(--amber-deep); }
.ac-status-interested, .ac-status-open, .ac-status-enrolled, .ac-status-active, .ac-status-present, .ac-status-available, .ac-status-ongoing { background: var(--green-bg); color: var(--green); }
.ac-status-held, .ac-status-completed { background: var(--teal-tint); color: var(--navy); }
.ac-status-not-interested, .ac-status-lost, .ac-status-cancelled, .ac-status-dropped, .ac-status-absent { background: #FBE1DC; color: var(--coral); }
.ac-status-excused, .ac-status-unavailable, .ac-status-hidden, .ac-status-disabled { background: #EDEFF3; color: var(--muted); }

.ac-grid { display: grid; gap: 14px; }
.ac-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.ac-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.ac-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .ac-grid.cols-2, .ac-grid.cols-3, .ac-grid.cols-4 { grid-template-columns: 1fr; } }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 24px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filter-bar input, .filter-bar select { width: auto !important; min-width: 130px; }
.filter-bar input[type=search] { min-width: 200px; flex: 1 1 200px; }
.check-row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check-row label { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500 !important; margin: 0 !important; }
.check-row input { width: auto !important; }
.hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.copy-box { display: flex; gap: 8px; align-items: center; }
.copy-box input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; }
.btn.small, .btn-sm { padding: 5px 11px; font-size: 12.5px; }
.btn.danger { background: var(--coral); }
.btn.danger:hover { background: #c94a38; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

.bar-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 7px 0; }
.bar-row .bar-label { width: 150px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { flex: 1; background: #EDEFF3; border-radius: 6px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--teal); border-radius: 6px; }
.bar-num { width: 34px; text-align: right; font-weight: 700; color: var(--navy); }
.seat-bar { background: #EDEFF3; border-radius: 6px; height: 8px; overflow: hidden; min-width: 90px; }
.seat-bar > span { display: block; height: 100%; background: var(--teal); }
.seat-bar.full > span { background: var(--coral); }

.timeline-note { border-bottom: 1px solid var(--border); padding: 10px 0; font-size: 14px; }
.timeline-note:last-child { border-bottom: none; }
.timeline-note .meta { color: var(--muted); font-size: 11.5px; margin-bottom: 2px; }
.kind-tag { display: inline-block; background: var(--teal-tint); color: var(--navy); border-radius: 4px; padding: 1px 7px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; margin-right: 6px; }

.demand-ready { background: var(--green-bg); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cal-head { background: var(--teal-tint); padding: 8px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--navy-deep); text-align: center; }
.cal-cell { background: #fff; min-height: 104px; padding: 6px; font-size: 12px; min-width: 0; }
.cal-cell.other { background: #FAFBFC; color: #b3bac4; }
.cal-cell.today { box-shadow: inset 0 0 0 2px var(--amber); }
.cal-cell .dnum { font-weight: 700; font-size: 12px; margin-bottom: 4px; display: flex; justify-content: space-between; }
.cal-chip { display: block; border-radius: 5px; padding: 3px 6px; margin-bottom: 3px; font-size: 11px; line-height: 1.3; color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-chip.cancelled { opacity: .45; text-decoration: line-through; }
.cal-week .cal-cell { min-height: 260px; }
@media (max-width: 720px) { .cal-grid { grid-template-columns: 1fr; } .cal-head { display: none; } .cal-cell.other { display: none; } .cal-cell { min-height: 0; } }

.att-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.att-row .att-name { flex: 1 1 180px; font-weight: 600; }
.att-choices { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.att-choices label { display: inline-flex !important; margin: 0 !important; cursor: pointer; }
.att-choices input { position: absolute; opacity: 0; pointer-events: none; }
.att-choices span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 18px; font-size: 12.5px; font-weight: 600; color: var(--muted); background: #fff; }
.att-choices input:checked + span.p { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.att-choices input:checked + span.a { background: #FBE1DC; border-color: var(--coral); color: var(--coral); }
.att-choices input:checked + span.l { background: #FDEBD0; border-color: var(--amber-deep); color: var(--amber-deep); }
.att-choices input:checked + span.e { background: #EDEFF3; border-color: var(--muted); color: var(--ink); }
.att-choices input:focus-visible + span { outline: 2px solid var(--teal); }

/* Call outcomes */
.ac-status-connected { background: var(--green-bg); color: var(--green); }
.ac-status-call-back-later { background: #FDEBD0; color: var(--amber-deep); }
.ac-status-no-answer, .ac-status-not-reachable, .ac-status-busy, .ac-status-not-recorded { background: #EDEFF3; color: var(--muted); }
.ac-status-wrong-number { background: #FBE1DC; color: var(--coral); }
.ac-status-issued { background: var(--green-bg); color: var(--green); }
.ac-status-revoked { background: #FBE1DC; color: var(--coral); }
.streak-flag { display: inline-block; background: #FDEBD0; color: var(--amber-deep); border-radius: 4px; padding: 2px 8px; font-size: 11px; font-weight: 700; }
.tl-item { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.tl-item:last-child { border-bottom: none; }
.tl-when { width: 108px; flex-shrink: 0; color: var(--muted); font-size: 12px; padding-top: 2px; }

/* Waitlist, instalments, payments */
.ac-status-waitlisted, .ac-status-upcoming { background: #DCEBF5; color: var(--navy); }
.ac-status-paid { background: var(--green-bg); color: var(--green); }
.ac-status-part-paid { background: #FDEBD0; color: var(--amber-deep); }
.ac-status-overdue { background: #FBE1DC; color: var(--coral); }

/* course description and content (Courses page) */
.course-details { margin-top: 6px; font-size: 13px; min-width: 320px; } .course-details summary { cursor: pointer; color: var(--teal); font-weight: 600; }
.course-details p { margin: 6px 0; color: var(--ink); }
.course-content { margin: 6px 0 0; padding-left: 20px; } .course-content > li { margin: 5px 0; }
.course-content ul { margin: 2px 0 0; padding-left: 18px; list-style: disc; } .course-content ul li { margin: 1px 0; }

/* trainer application stages */
.ac-status-screening { background: #FDEBD0; color: var(--amber-deep); }
.ac-status-demo-scheduled { background: #DCEBF5; color: var(--navy); }
.ac-status-demo-done { background: var(--teal-tint); color: var(--navy); }
.ac-status-approved { background: var(--green-bg); color: var(--green); }
.ac-status-rejected { background: #FBE1DC; color: var(--coral); }
.ta-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .ta-grid { grid-template-columns: 1fr; } }
.ta-facts { display: grid; grid-template-columns: 170px 1fr; gap: 8px 14px; font-size: 14px; }
.ta-facts dt { color: var(--muted); font-weight: 600; margin: 0; } .ta-facts dd { margin: 0; }
.ta-timeline { list-style: none; margin: 0; padding: 0; font-size: 13.5px; } .ta-timeline li { padding: 8px 0; border-bottom: 1px solid var(--border); } .ta-timeline .when { color: var(--muted); font-size: 12px; }
.ta-scores { display: grid; grid-template-columns: 1fr 90px; gap: 6px 12px; align-items: center; }

/* trainer request answers */
.ac-status-pending, .ac-status-late { background: #FDEBD0; color: var(--amber-deep); }
.ac-status-accepted { background: var(--green-bg); color: var(--green); }
.ac-status-declined { background: #FBE1DC; color: var(--coral); }
.ac-status-closed, .ac-status-expired { background: #ECEFF1; color: var(--muted); }
.ac-status-filled { background: var(--teal-tint); color: var(--navy); }
