/* ============================================================
   JobCard — shared stylesheet for all three portals.
   Plain hand-rolled CSS, no framework/library (matches the
   platform-wide "no external JS/CSS libraries" convention).
   ============================================================ */

:root {
    /* v1.16.0 — "login screen messes up on phone, button text is grey."
       JobCard has always been a light-only design with no dark theme of
       its own, but never told browsers that. Without this, a phone in
       system dark mode can get auto-re-themed by the browser's own
       forced-dark heuristics (notably Android Chrome/Samsung Internet),
       which recolors elements — native <button>s especially — using its
       own guesses instead of this stylesheet's actual declared colors,
       producing exactly this symptom (washed-out/grey button text, odd
       layout coloring) despite the underlying CSS already being a
       high-contrast dark-text-on-light-background pairing throughout.
       This is a safe, unconditional fix: it can't make anything worse on
       a light-mode device, and it stops browsers guessing on our behalf. */
    color-scheme: light;
    --jc-primary: #0e7c86;
    --jc-primary-dark: #0a5c64;
    --jc-accent: #1d4e89;
    --jc-bg: #f4f7f8;
    --jc-card: #ffffff;
    --jc-text: #1f2937;
    --jc-muted: #6b7280;
    --jc-border: #e2e8ea;
    --jc-success: #1e9e62;
    --jc-success-bg: #e7f7ef;
    --jc-warning: #b45309;
    --jc-warning-bg: #fdf1e2;
    --jc-danger: #c0392b;
    --jc-danger-bg: #fceceb;
    --jc-radius: 10px;
    --jc-shadow: 0 1px 3px rgba(16, 42, 45, 0.08), 0 1px 2px rgba(16, 42, 45, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.jc-body {
    background: var(--jc-bg);
    color: var(--jc-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
a { color: var(--jc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.jc-back-link { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 600; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }

.jc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.jc-narrow { max-width: 480px; }
.jc-mt-lg { margin-top: 48px; }
.jc-mt { margin-top: 20px; }
.jc-mb { margin-bottom: 20px; }
.jc-muted { color: var(--jc-muted); }
.jc-center { text-align: center; }

/* --- Top navigation --- */
.jc-topbar {
    background: var(--jc-card);
    border-bottom: 1px solid var(--jc-border);
    padding: 0;
}
.jc-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.jc-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--jc-text); }
.jc-logo img { height: 32px; width: auto; display: block; }
.jc-logo:hover { text-decoration: none; }
.jc-nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.jc-nav a {
    color: var(--jc-muted);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: .92rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.jc-nav a:hover { background: var(--jc-bg); text-decoration: none; color: var(--jc-text); }
.jc-nav a.active { background: var(--jc-primary); color: #fff; }
.jc-nav svg { flex-shrink: 0; }

/* --- App shell: left sidebar navigation (master/user/business portals).
   Public/marketing pages (index, login, signup) keep the horizontal
   .jc-topbar above — this is only for the logged-in dashboards, per
   "put it on the side like BizSupport app." --- */
.jc-shell { min-height: 100vh; }
.jc-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    /* v1.6.0: was a dark teal gradient close enough to the logo's own teal
       (#0e7c86) that the logo blended in and needed a separate white-recolored
       variant to read. Switched to a light mint/sea-glass gradient instead —
       the ORIGINAL logo (teal/blue/dark-gray) now reads clearly against it
       with no recoloring needed, and the whole sidebar flips to dark text on
       a light ground rather than light text on dark. */
    background: linear-gradient(180deg, #e3f6f3, #cdeae5);
    color: var(--jc-text);
    padding: 20px 14px 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    border-right: 1px solid rgba(14,124,134,.16);
}
.jc-sidebar-brand { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 4px 8px 22px; }
.jc-sidebar-brand img { height: 42px; width: auto; display: block; }
.jc-sidebar-brand:hover { text-decoration: none; }
.jc-sidebar-brand .jc-portal-tag { font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jc-primary-dark); white-space: nowrap; }
.jc-side-nav { display: flex; flex-direction: column; gap: 3px; }
.jc-side-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 10px; border-radius: 8px;
    color: #2d4a49; text-decoration: none;
    font-size: .87rem; font-weight: 500;
}
.jc-side-nav a:hover { background: rgba(14,124,134,.12); color: var(--jc-text); text-decoration: none; }
.jc-side-nav a.active { background: var(--jc-primary); color: #fff; }
.jc-side-nav svg { flex-shrink: 0; opacity: .85; }
/* v1.8.0 — separates Support/Maintenance from the rest of the sidebar nav (BizSupport-style bottom grouping) */
.jc-side-nav-divider { border: none; border-top: 1px solid var(--jc-border); margin: 8px 4px; opacity: .8; }

/* v1.8.0 — candidates-by-category collapsed sections */
.jc-category-accordion {
    border: 1px solid var(--jc-border); border-radius: var(--jc-radius);
    padding: 14px 16px; background: #fff;
}
.jc-category-accordion summary {
    cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--jc-text);
    list-style: none;
}
.jc-category-accordion summary::-webkit-details-marker { display: none; }
.jc-category-accordion summary::before { content: '▸ '; color: var(--jc-primary); }
.jc-category-accordion[open] summary::before { content: '▾ '; }
.jc-sidebar-foot { margin-top: auto; border-top: 1px solid rgba(14,124,134,.2); padding-top: 12px; }
.jc-sidebar-version { font-size: .72rem; color: #4b7f7e; padding: 0 10px 8px; }
.jc-sidebar-logout { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; color: var(--jc-danger); text-decoration: none; font-size: .87rem; font-weight: 500; }
.jc-sidebar-logout:hover { background: var(--jc-danger-bg); color: var(--jc-danger); text-decoration: none; }

/* Linked-account switcher (v1.3 #9) */
.jc-sidebar-section { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(14,124,134,.2); }
.jc-sidebar-section-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: #4b7f7e; padding: 0 10px 4px; }
.jc-sidebar-switch { margin: 0; }
.jc-sidebar-switch button, .jc-sidebar-switch-link {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px; border-radius: 8px; border: none; background: transparent;
    color: #2d4a49; text-decoration: none; text-align: left; cursor: pointer;
    font-size: .87rem; font-weight: 500; font-family: inherit;
}
.jc-sidebar-switch button:hover, .jc-sidebar-switch-link:hover { background: rgba(14,124,134,.12); color: var(--jc-text); text-decoration: none; }

/* A <button> that should read as an inline text link (e.g. inside a POST
   form that needs to submit, not just navigate). */
.jc-link-btn { background: none; border: none; padding: 0; margin: 0; font: inherit; color: var(--jc-primary); text-decoration: underline; cursor: pointer; }

.jc-main { margin-left: 230px; min-height: 100vh; }
.jc-topbar-slim {
    height: 56px; padding: 0 20px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--jc-border);
    display: none;
    align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 50;
}
.jc-mobile-menu { background: transparent; border: none; box-shadow: none; padding: 6px; cursor: pointer; color: var(--jc-text); border-radius: 6px; line-height: 0; }
.jc-mobile-menu:hover { background: var(--jc-bg); }

@media (max-width: 780px) {
    .jc-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
    .jc-sidebar.open { transform: translateX(0); }
    .jc-main { margin-left: 0; }
    .jc-topbar-slim { display: flex; }
}

/* v1.8.0 — "when the site is opened on a phone, the data or table
   information falls outside the designated area." Every jc-table is now
   wrapped in a .jc-table-scroll container (see the individual page fixes),
   so the table itself scrolls sideways within its own box instead of
   pushing the whole page wide; these rules handle the rest of the layout —
   full-width stacked buttons/fields, tighter spacing — the same general
   approach BizSupport already uses at this breakpoint. */
@media (max-width: 600px) {
    .jc-wrap { padding: 0 14px; }
    .jc-card { padding: 16px; }
    h1 { font-size: 1.3rem; }
    h2 { font-size: 1.1rem; }
    .jc-row-inline > * { min-width: 100%; }
    table.jc-table { font-size: .82rem; }
    table.jc-table th, table.jc-table td { padding: 8px 8px; white-space: nowrap; }
    .jc-btn, a.jc-btn, button.jc-btn { width: 100%; text-align: center; margin-bottom: 6px; }
    /* An inline single-purpose action (Remove/Edit/Cancel next to a row, or
       any form deliberately marked inline) stays its natural width instead
       of stacking full-width — only a form's own primary submit button
       should go full-width on a narrow screen. */
    form[style*="display:inline"] .jc-btn,
    form[style*="display: inline"] .jc-btn,
    .jc-row-inline .jc-btn { width: auto; margin-bottom: 0; }
}

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

.jc-grid { display: grid; gap: 20px; }
.jc-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.jc-grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --- Stat tiles (plain CSS, no chart library) --- */
.jc-stat { background: var(--jc-card); border: 1px solid var(--jc-border); border-radius: var(--jc-radius); padding: 18px; }
.jc-stat .jc-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--jc-primary); }
.jc-stat .jc-stat-label { color: var(--jc-muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.jc-bar { background: var(--jc-border); border-radius: 6px; height: 10px; overflow: hidden; margin-top: 8px; }
.jc-bar-fill { background: var(--jc-primary); height: 100%; }

/* --- Buttons --- */
.jc-btn {
    display: inline-block;
    background: var(--jc-primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}
.jc-btn:hover { background: var(--jc-primary-dark); text-decoration: none; color: #fff; }
.jc-btn-secondary { background: #eef2f3; color: var(--jc-text); }
.jc-btn-secondary:hover { background: #e2e8ea; color: var(--jc-text); }
.jc-btn-danger { background: var(--jc-danger); }
.jc-btn-danger:hover { background: #a3352a; }
.jc-btn-sm { padding: 6px 12px; font-size: .82rem; }
.jc-btn[disabled], .jc-btn.jc-disabled { background: #b9c2c3; cursor: not-allowed; }

/* --- Forms --- */
.jc-field { margin-bottom: 16px; }
.jc-field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 5px; }
.jc-field .jc-hint { color: var(--jc-muted); font-size: .8rem; margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=tel], input[type=date], input[type=file], select, textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--jc-border);
    border-radius: 7px;
    font-size: .93rem;
    font-family: inherit;
    background: #fff;
    color: var(--jc-text);
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--jc-primary);
    box-shadow: 0 0 0 3px rgba(14, 124, 134, .15);
}
.jc-row-inline { display: flex; gap: 12px; flex-wrap: wrap; }
.jc-row-inline > * { flex: 1; min-width: 160px; }

/* v1.8.0 — password show/hide toggle (login/signup) */
.jc-pw-wrap { position: relative; }
.jc-pw-wrap input { padding-right: 40px; }
.jc-pw-toggle {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    background: none; border: 0; padding: 6px; cursor: pointer;
    color: var(--jc-muted); display: flex; align-items: center;
}
.jc-pw-toggle:hover { color: var(--jc-text); }

/* Searchable category dropdown (v1.3 #3) — see assets/searchable-select.js */
.jc-searchselect { position: relative; }
.jc-searchselect-native { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.jc-searchselect-invalid { border-color: #c0392b !important; box-shadow: 0 0 0 3px rgba(192,57,43,.15) !important; }
.jc-searchselect-error { color: #c0392b; font-size: .82rem; margin-top: 5px; }
.jc-searchselect-list {
    position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0;
    max-height: 240px; overflow-y: auto;
    background: #fff; border: 1px solid var(--jc-border); border-radius: 7px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.jc-searchselect-option { padding: 8px 12px; font-size: .93rem; cursor: pointer; }
.jc-searchselect-option:hover, .jc-searchselect-option.is-active { background: var(--jc-primary); color: #fff; }
.jc-searchselect-option.is-selected { font-weight: 600; }
.jc-searchselect-empty { padding: 8px 12px; font-size: .88rem; color: var(--jc-muted); }
label.jc-checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.jc-checkbox input { width: auto; }

/* --- Tables --- */
.jc-table-scroll { overflow-x: auto; }
table.jc-table { width: 100%; border-collapse: collapse; }
table.jc-table th, table.jc-table td { padding: 10px 12px; border-bottom: 1px solid var(--jc-border); text-align: left; font-size: .9rem; }
table.jc-table th { color: var(--jc-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; }
table.jc-table tr:last-child td { border-bottom: none; }
table.jc-table tr.jc-row-best { background: var(--jc-success-bg); }

/* --- Badges / status pills --- */
.jc-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.jc-badge-open, .jc-badge-active, .jc-badge-paid { background: var(--jc-success-bg); color: var(--jc-success); }
.jc-badge-pending, .jc-badge-submitted { background: var(--jc-warning-bg); color: var(--jc-warning); }
.jc-badge-awarded, .jc-badge-selected { background: #e6edf7; color: var(--jc-accent); }
.jc-badge-cancelled, .jc-badge-suspended, .jc-badge-declined, .jc-badge-withdrawn, .jc-badge-rejected, .jc-badge-screened_out { background: var(--jc-danger-bg); color: var(--jc-danger); }
.jc-badge-completed, .jc-badge-filled, .jc-badge-closed, .jc-badge-expired { background: #eef2f3; color: var(--jc-text); }
.jc-badge-shortlisted { background: var(--jc-success-bg); color: var(--jc-success); }
.jc-badge-pending_payment, .jc-badge-waived, .jc-badge-in_progress { background: var(--jc-warning-bg); color: var(--jc-warning); }
.jc-badge-resolved { background: var(--jc-success-bg); color: var(--jc-success); }

/* --- Flash messages --- */
.jc-flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: .9rem; }
.jc-flash-success { background: var(--jc-success-bg); color: var(--jc-success); }
.jc-flash-error { background: var(--jc-danger-bg); color: var(--jc-danger); }
.jc-flash-info { background: #e6edf7; color: var(--jc-accent); }
.jc-flash-warning { background: var(--jc-warning-bg); color: var(--jc-warning); }

/* v1.16.0 #4 — the one-shot flash_get() message rendered by each portal's
   _layout_top.php gets this EXTRA class (alongside jc-flash + the usual
   jc-flash-<type> color) to float as a dismissible, auto-expiring toast
   instead of sitting at the top of the page (see assets/toast.js's header
   comment for the full root-cause and why every OTHER jc-flash usage in
   the app is deliberately left untouched, in-flow, and permanent). */
.jc-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
    z-index: 9999;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
    animation: jcToastIn .25s ease-out;
}
.jc-toast-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: inherit;
    opacity: .55;
    padding: 0;
    flex: none;
}
.jc-toast-close:hover { opacity: 1; }
.jc-toast.jc-toast-hide { animation: jcToastOut .25s ease-in forwards; }
@keyframes jcToastIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes jcToastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(16px); }
}
@media (max-width: 640px) {
    .jc-toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* --- Masked contact details (pre-release) --- */
.jc-masked {
    background: repeating-linear-gradient(135deg, #eef2f3, #eef2f3 6px, #e6ebec 6px, #e6ebec 12px);
    color: var(--jc-muted);
    border-radius: 6px;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
}

/* --- Photo thumbnails --- */
.jc-photo-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.jc-photo-grid img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--jc-border); }

/* --- Login / public pages --- */
.jc-public-header { padding: 30px 0; }
.jc-hero { text-align: center; padding: 60px 20px; }
.jc-hero h1 { font-size: 2.2rem; margin-bottom: .3em; }
.jc-hero p { font-size: 1.1rem; color: var(--jc-muted); max-width: 640px; margin: 0 auto 1.5em; }

/* --- CV template preview cards --- */
.jc-template-card { border: 2px solid var(--jc-border); border-radius: var(--jc-radius); padding: 16px; cursor: pointer; }
.jc-template-card.selected { border-color: var(--jc-primary); box-shadow: 0 0 0 3px rgba(14,124,134,.12); }
.jc-template-preview { background: var(--jc-bg); border-radius: 6px; height: 140px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; color: var(--jc-muted); }

/* v1.6.0 #5 (task #81) — small CSS-only mockups on the CV template gallery,
   so each of the six templates looks visually distinct before spending a
   watermarked preview download. Mirrors each template's real PDF layout
   shape (sidebar vs. boxed header vs. ruled header vs. plain) rather than
   a generic icon. */
.jc-tpl-mock { background: #fff; border: 1px solid var(--jc-border); border-radius: 6px; height: 140px; margin-bottom: 10px; overflow: hidden; padding: 10px; box-sizing: border-box; }
.jc-tpl-mock-row { display: flex; gap: 8px; height: 100%; }
.jc-tpl-mock-sidebar { width: 32%; border-radius: 3px; flex-shrink: 0; padding: 6px; box-sizing: border-box; }
.jc-tpl-mock-sidebar-photo { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.55); margin-bottom: 6px; }
.jc-tpl-mock-main { flex: 1; min-width: 0; }
.jc-tpl-line { height: 6px; border-radius: 3px; background: #d8dcdd; margin-bottom: 6px; }
.jc-tpl-mock-box { border: 1.5px solid #999; border-radius: 3px; padding: 6px; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.jc-tpl-mock-box-photo { width: 20px; height: 20px; border-radius: 3px; background: #ccc; flex-shrink: 0; }
.jc-tpl-mock-rule { height: 3px; border-radius: 2px; margin-bottom: 8px; }

footer.jc-footer { text-align: center; color: var(--jc-muted); font-size: .82rem; padding: 30px 20px; }

/* --- Maintenance banner (v1.6.0 #1) --- */
.jc-maintenance-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 20px; font-size: .88rem;
}
.jc-maintenance-banner .jc-maintenance-text { flex: 1; }
.jc-maintenance-live { background: var(--jc-warning-bg); color: var(--jc-warning); border-bottom: 1px solid rgba(180,83,9,.25); }
.jc-maintenance-upcoming { background: #eaf2fb; color: var(--jc-accent); border-bottom: 1px solid rgba(29,78,137,.2); }
.jc-maintenance-dismiss-form { margin: 0; }
.jc-maintenance-dismiss { background: none; border: none; font-size: 1.1rem; line-height: 1; cursor: pointer; color: inherit; opacity: .7; padding: 4px 6px; }
.jc-maintenance-dismiss:hover { opacity: 1; }

/* --- Notification bell (v1.6.0 #1) --- */
.jc-notif-bell { position: relative; display: inline-flex; align-items: center; }
.jc-notif-bell-btn { background: none; border: none; cursor: pointer; padding: 6px; border-radius: 6px; color: inherit; line-height: 0; position: relative; }
.jc-notif-bell-btn:hover { background: rgba(14,124,134,.1); }
.jc-notif-badge { position: absolute; top: 2px; right: 2px; background: var(--jc-danger); color: #fff; font-size: .62rem; font-weight: 700; border-radius: 999px; min-width: 15px; height: 15px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
.jc-notif-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0; width: 320px; max-height: 400px; overflow-y: auto;
    background: var(--jc-card); border: 1px solid var(--jc-border); border-radius: var(--jc-radius); box-shadow: var(--jc-shadow);
    z-index: 200; display: none;
}
.jc-notif-dropdown.open { display: block; }
.jc-notif-dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--jc-border); font-weight: 600; font-size: .85rem; }
.jc-notif-item { display: block; padding: 10px 14px; border-bottom: 1px solid var(--jc-border); color: var(--jc-text); }
.jc-notif-item:hover { background: var(--jc-bg); text-decoration: none; }
.jc-notif-item .jc-notif-title { font-weight: 600; font-size: .85rem; }
.jc-notif-item .jc-notif-body { font-size: .8rem; color: var(--jc-muted); margin-top: 2px; }
.jc-notif-empty { padding: 20px 14px; text-align: center; color: var(--jc-muted); font-size: .85rem; }
.jc-util-bar { display: flex; justify-content: flex-end; align-items: center; padding: 10px 20px 0; }

/* --- CV wizard step indicator (v1.10.0 #7) --- */
.jc-wizard { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.jc-wizard-step {
    display: flex; align-items: center; gap: 8px; flex: 1; min-width: 160px;
    background: var(--jc-card); border: 1px solid var(--jc-border); border-radius: var(--jc-radius);
    padding: 10px 14px; color: var(--jc-muted); font-size: .85rem; font-weight: 600;
}
.jc-wizard-step:hover { text-decoration: none; border-color: var(--jc-primary); }
.jc-wizard-step .jc-wizard-num {
    width: 22px; height: 22px; border-radius: 50%; background: var(--jc-border); color: var(--jc-text);
    display: flex; align-items: center; justify-content: center; font-size: .78rem; flex-shrink: 0;
}
.jc-wizard-step.active { color: var(--jc-text); border-color: var(--jc-primary); box-shadow: var(--jc-shadow); }
.jc-wizard-step.active .jc-wizard-num { background: var(--jc-primary); color: #fff; }
.jc-wizard-step.done .jc-wizard-num { background: var(--jc-success); color: #fff; }
.jc-wizard-step.done { color: var(--jc-text); }
.jc-wizard-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }

/* --- Generic 2-tab switcher (v1.11.0 #4 — business job postings: "new" vs
   "existing"; reused wherever a page needs a simple two-way split rather
   than the multi-step jc-wizard above). --- */
.jc-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--jc-border); flex-wrap: wrap; }
.jc-tab {
    padding: 10px 16px; color: var(--jc-muted); font-weight: 600; font-size: .9rem;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.jc-tab:hover { text-decoration: none; color: var(--jc-text); }
.jc-tab.active { color: var(--jc-primary); border-bottom-color: var(--jc-primary); }

/* --- WhatsApp template placeholder chips (v1.11.0 #5) --- */
.jc-wa-chip {
    display: inline-block; cursor: grab; user-select: none;
    background: var(--jc-bg); border: 1px solid var(--jc-border); border-radius: 999px;
    padding: 4px 12px; margin: 0 6px 6px 0; font-size: .82rem; font-family: monospace;
    color: var(--jc-primary);
}
.jc-wa-chip:hover { border-color: var(--jc-primary); }
.jc-wa-chip:active { cursor: grabbing; }

/* --- List pagination bar (v1.11.0 #15) --- */
.jc-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.jc-page-num {
    display: inline-block; min-width: 28px; text-align: center; padding: 5px 8px;
    border-radius: var(--jc-radius); font-size: .85rem; color: var(--jc-text);
}
.jc-page-num:hover { background: var(--jc-bg); text-decoration: none; }
.jc-page-current { background: var(--jc-accent); color: #fff; font-weight: 600; }
.jc-page-total { margin-left: auto; font-size: .82rem; }

/* --- Live search-as-you-type (v1.12.0 #1) --- */
.jc-live-search-loading { opacity: .55; transition: opacity .15s ease; }
