/* ============================================================
   Jobz Design Tokens — Direction A · Refined
   Drop-in CSS for Laravel Blade + Bootstrap 5.3
   ============================================================
   Load order:
     1. Bootstrap 5.3 CSS
     2. This file (tokens.css)
     3. Any page-specific overrides

   This file does three things:
   - Defines CSS custom properties (design tokens)
   - Overrides Bootstrap 5's CSS variables to match Jobz brand
   - Adds the small set of utility/component classes that Bootstrap
     doesn't ship with but Direction A relies on
   ============================================================ */


/* ─── 1. Design tokens (single source of truth) ──────────── */
:root {
  /* Brand */
  --jobz-brand:        #00458D;  /* Extrastaff blue — primary */
  --jobz-brand-hover:  #1A5BA8;  /* Lighter brand for hover */
  --jobz-brand-deep:   #003066;  /* Darker brand for active states */
  --jobz-accent:       #F5C518;  /* EFOS yellow — accent rail, NEW pills */

  /* Ink scale (text colours, dark-to-light) */
  --jobz-ink:          #0B1733;  /* Headings, primary body */
  --jobz-ink-2:        #38466A;  /* Secondary body */
  --jobz-ink-3:        #6E7A98;  /* Muted, labels, metadata */

  /* Surfaces */
  --jobz-bg:           #F4F6FB;  /* Page background */
  --jobz-panel:        #FFFFFF;  /* Card / panel background */
  --jobz-chip:         #EEF2FA;  /* Default chip background */

  /* Lines */
  --jobz-line:         #E3E7EF;  /* Standard border */
  --jobz-line-2:       #EDF0F5;  /* Lighter border (table rows) */

  /* Status */
  --jobz-ok:           #1E8E5A;  /* Approved, positive */
  --jobz-warn:         #C77A00;  /* Pending, awaiting */
  --jobz-bad:          #B33A3A;  /* Flagged, rejected */

  /* Status backgrounds (10–15% opacity equivalents) */
  --jobz-ok-bg:        rgba(30,142,90,.10);
  --jobz-warn-bg:      rgba(199,122,0,.10);
  --jobz-bad-bg:       rgba(179,58,58,.10);
  --jobz-brand-bg:     rgba(0,69,141,.08);

  /* Typography */
  --jobz-font-sans:    'Sora', system-ui, -apple-system, sans-serif;
  --jobz-font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Type scale */
  --jobz-fs-xs:        10.5px;  /* Eyebrow labels */
  --jobz-fs-sm:        11.5px;  /* Hint text */
  --jobz-fs-base:      13.5px;  /* Body */
  --jobz-fs-md:        14px;    /* Card titles */
  --jobz-fs-lg:        18px;    /* Section headers */
  --jobz-fs-xl:        28px;    /* Page H2 */
  --jobz-fs-display:   36px;    /* KPI numbers */

  /* Display weight (KPI numbers, H2): light + tight tracking
     mimics editorial feel without using a serif */
  --jobz-display-weight: 300;
  --jobz-display-tracking: -0.04em;

  /* Geometry */
  --jobz-radius-sm:    6px;     /* Day cells, action buttons */
  --jobz-radius:       8px;     /* Inputs, buttons */
  --jobz-radius-md:    10px;    /* Cards */
  --jobz-radius-lg:    12px;    /* Outer panels */

  /* Layout */
  --jobz-side-w:           232px;
  --jobz-side-w-collapsed: 68px;
  --jobz-page-padding-x:   32px;
  --jobz-page-padding-y:   24px;
}


/* ─── 2. Bootstrap 5 variable overrides ──────────────────── */
:root {
  --bs-primary:        var(--jobz-brand);
  --bs-primary-rgb:    0, 69, 141;
  --bs-success:        var(--jobz-ok);
  --bs-success-rgb:    30, 142, 90;
  --bs-warning:        var(--jobz-warn);
  --bs-warning-rgb:    199, 122, 0;
  --bs-danger:         var(--jobz-bad);
  --bs-danger-rgb:     179, 58, 58;

  --bs-body-bg:        var(--jobz-bg);
  --bs-body-color:     var(--jobz-ink);
  --bs-body-font-family: var(--jobz-font-sans);
  --bs-body-font-size: var(--jobz-fs-base);

  --bs-border-color:   var(--jobz-line);
  --bs-border-radius:  var(--jobz-radius);
  --bs-border-radius-lg: var(--jobz-radius-md);
}


/* ─── 3. Base typography ─────────────────────────────────── */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.jobz-display {
  font-family: var(--jobz-font-sans);
  font-weight: var(--jobz-display-weight);
  letter-spacing: var(--jobz-display-tracking);
  line-height: 1;
  color: var(--jobz-ink);
}

.jobz-display-xl   { font-size: var(--jobz-fs-display); }
.jobz-display-lg   { font-size: var(--jobz-fs-xl); }

/* Text utilities tied to the ink scale */
.text-ink     { color: var(--jobz-ink) !important; }
.text-ink-2   { color: var(--jobz-ink-2) !important; }
.text-ink-3   { color: var(--jobz-ink-3) !important; }
.text-brand   { color: var(--jobz-brand) !important; }
.text-mono    { font-family: var(--jobz-font-mono); }

/* Eyebrow label (above page H2, on totals bar, on tables) */
.jobz-eyebrow {
  font-size: var(--jobz-fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jobz-ink-3);
  font-weight: 500;
}


/* ─── 4. Button overrides ────────────────────────────────── */
/* Bootstrap's btn-primary uses the brand colour now,
   but we tighten radius and add a hover state */
.btn { font-size: 12.5px; padding: .5rem .9rem; border-radius: var(--jobz-radius); }
.btn-primary {
  --bs-btn-bg: var(--jobz-brand);
  --bs-btn-border-color: var(--jobz-brand);
  --bs-btn-hover-bg: var(--jobz-brand-hover);
  --bs-btn-hover-border-color: var(--jobz-brand-hover);
  --bs-btn-active-bg: var(--jobz-brand-deep);
  --bs-btn-active-border-color: var(--jobz-brand-deep);
}
.btn-outline-secondary {
  --bs-btn-color: var(--jobz-ink);
  --bs-btn-border-color: var(--jobz-line);
  --bs-btn-hover-bg: var(--jobz-bg);
  --bs-btn-hover-color: var(--jobz-ink);
  --bs-btn-hover-border-color: var(--jobz-line);
}

/* Small inline button used for bulk-approve in client group headers */
.btn-jobz-sm {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: var(--jobz-radius-sm);
  font: inherit; font-size: 11.5px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--jobz-line);
  background: #fff; color: var(--jobz-ink-2);
}
.btn-jobz-sm:hover { background: var(--jobz-bg); }
.btn-jobz-sm.btn-approve {
  border-color: rgba(30,142,90,.3); color: var(--jobz-ok);
  background: var(--jobz-ok-bg);
}
.btn-jobz-sm.btn-approve:hover {
  background: var(--jobz-ok); color: #fff; border-color: var(--jobz-ok);
}
.btn-jobz-sm svg { width: 12px; height: 12px; }


/* ─── 5. Card refinements ────────────────────────────────── */
.card {
  border: 1px solid var(--jobz-line);
  border-radius: var(--jobz-radius-md);
  background: var(--jobz-panel);
}
.card-body { padding: 18px; }
.card h3 {
  margin: 0 0 2px;
  font-size: var(--jobz-fs-md);
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--jobz-ink);
}


/* ─── 6. Chips (status pills) ────────────────────────────── */
/* Use as: <span class="jobz-chip jobz-chip-ok">Approved</span> */
.jobz-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: var(--jobz-chip); color: var(--jobz-ink-2);
}
.jobz-chip-ok    { background: var(--jobz-ok-bg);    color: var(--jobz-ok); }
.jobz-chip-warn  { background: var(--jobz-warn-bg);  color: var(--jobz-warn); }
.jobz-chip-bad   { background: var(--jobz-bad-bg);   color: var(--jobz-bad); }
.jobz-chip-brand { background: var(--jobz-brand-bg); color: var(--jobz-brand); }


/* ─── 7. Day cell (timesheet status indicator) ───────────── */
.jobz-day-cell {
  width: 38px; height: 28px; margin: 0 auto;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--jobz-font-mono);
  font-size: 10.5px; font-weight: 500;
  border: 1px solid transparent;
}
.jobz-day-cell.is-empty    { color: var(--jobz-ink-3); opacity: .35; }
.jobz-day-cell.is-approved { background: var(--jobz-ok-bg);   color: var(--jobz-ok);   border-color: rgba(30,142,90,.2); }
.jobz-day-cell.is-pending  { background: var(--jobz-warn-bg); color: var(--jobz-warn); border-color: rgba(199,122,0,.2); }
.jobz-day-cell.is-flag     { background: var(--jobz-bad-bg);  color: var(--jobz-bad);  border-color: rgba(179,58,58,.2); }
.jobz-day-cell.is-live     { background: var(--jobz-brand);   color: #fff;             border-color: var(--jobz-brand); position: relative; }
.jobz-day-cell.is-live::after {
  content: ""; position: absolute; top: -2px; right: -2px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80; border: 1.5px solid #fff;
  animation: jobz-pulse 1.6s ease-out infinite;
}
@keyframes jobz-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0   rgba(74,222,128,0); }
}


/* ─── 8. Approval action cluster ─────────────────────────── */
.jobz-approve-actions { display: inline-flex; gap: 4px; align-items: center; }
.jobz-approve-btn {
  width: 28px; height: 28px; border-radius: var(--jobz-radius-sm);
  border: 1px solid var(--jobz-line); background: #fff;
  display: inline-grid; place-items: center;
  cursor: pointer; color: var(--jobz-ink-3);
  transition: all .12s;
}
.jobz-approve-btn svg { width: 13px; height: 13px; }
.jobz-approve-btn.is-approve:hover { color: var(--jobz-ok);   border-color: var(--jobz-ok);   background: var(--jobz-ok-bg); }
.jobz-approve-btn.is-flag:hover    { color: var(--jobz-warn); border-color: var(--jobz-warn); background: var(--jobz-warn-bg); }
.jobz-approve-btn.is-reject:hover  { color: var(--jobz-bad);  border-color: var(--jobz-bad);  background: var(--jobz-bad-bg); }
.jobz-approve-btn.is-active-approve { color: var(--jobz-ok);   border-color: rgba(30,142,90,.35);  background: var(--jobz-ok-bg); }
.jobz-approve-btn.is-active-flag    { color: var(--jobz-warn); border-color: rgba(199,122,0,.35);  background: var(--jobz-warn-bg); }
.jobz-approve-btn.is-active-reject  { color: var(--jobz-bad);  border-color: rgba(179,58,58,.35);  background: var(--jobz-bad-bg); }
.jobz-approve-btn:disabled { opacity: .4; cursor: not-allowed; }


/* ─── 9. Sidebar ─────────────────────────────────────────── */
.jobz-side {
  background: var(--jobz-brand); color: #DCE6F4;
  display: flex; flex-direction: column; position: relative;
  width: var(--jobz-side-w); flex-shrink: 0;
  transition: width .25s ease;
}
.jobz-side.is-collapsed { width: var(--jobz-side-w-collapsed); }

.jobz-side-brand {
  padding: 18px 14px 14px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.jobz-side-brand h1 {
  font-family: var(--jobz-font-sans);
  font-size: 19px; font-weight: 500; letter-spacing: -.3px;
  margin: 0; color: #fff; white-space: nowrap; overflow: hidden;
}

.jobz-side-section {
  padding: 14px 14px 4px;
  font-size: var(--jobz-fs-xs);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #8FA1C5;
}

.jobz-side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 14px; color: #CFDBEF; font-size: 13px;
  border-left: 2px solid transparent; white-space: nowrap;
  text-decoration: none; transition: background .12s;
}
.jobz-side-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.jobz-side-link.is-active {
  background: rgba(255,255,255,.08); color: #fff;
  border-left-color: var(--jobz-accent);
}
.jobz-side-link svg { width: 16px; height: 16px; opacity: .85; flex-shrink: 0; }
.jobz-side-link .label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.jobz-side-link .pill {
  margin-left: auto; background: rgba(255,255,255,.12);
  color: #fff; font-size: 10.5px; padding: 2px 7px;
  border-radius: 999px; font-family: var(--jobz-font-mono);
}
.jobz-side-link .pill.is-new {
  background: var(--jobz-accent); color: #3a2c00;
  font-weight: 700; letter-spacing: 0.05em;
}


/* ─── 10. Top bar ────────────────────────────────────────── */
.jobz-top {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; background: #fff;
  border-bottom: 1px solid var(--jobz-line);
}
.jobz-crumbs {
  display: flex; align-items: center; gap: 8px;
  color: var(--jobz-ink-3); font-size: 12.5px;
}
.jobz-crumbs b { color: var(--jobz-ink); font-weight: 500; }
.jobz-crumbs .sep { opacity: .4; }

.jobz-tax-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--jobz-brand); color: #fff;
  padding: 7px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  font-family: var(--jobz-font-mono); letter-spacing: 0.3px;
}
.jobz-tax-pill em { color: var(--jobz-accent); font-style: normal; }


/* ─── 11. Responsive breakpoints ─────────────────────────── */
@media (max-width: 1280px) {
  /* Charts collapse 3→2 up; primary chart spans full width */
}
@media (max-width: 1024px) {
  /* KPIs go 4→2 columns */
}
@media (max-width: 768px) {
  :root {
    --jobz-page-padding-x: 16px;
    --jobz-fs-xl: 22px;
    --jobz-fs-display: 30px;
  }
  .jobz-top { padding: 12px 16px; flex-wrap: wrap; }
}


/* ─── 12. Shell layout ───────────────────────────────────── */
html, body { height: 100%; }

.jobz-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--jobz-bg);
}

/* Right-hand column: topbar + scrollable body */
.jobz-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}

.jobz-body {
  flex: 1 1 0;
  overflow-y: auto;
  background: var(--jobz-bg);
  display: flex;
  flex-direction: column;
}

.jobz-page {
  flex: 1;
  padding: var(--jobz-page-padding-y) var(--jobz-page-padding-x);
}

/* Sidebar must be full height */
.jobz-side {
  display: flex;
  flex-direction: column;
  height: 100vh;
  flex-shrink: 0;
}


/* ─── 13. Sidebar submenus ───────────────────────────────── */
.jobz-side-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease;
}
.jobz-side-submenu.is-open { max-height: 400px; }

.jobz-side-submenu a {
  display: block;
  padding: 7px 14px 7px 41px;
  color: #AABDD8;
  font-size: 12.5px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .12s, background .12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jobz-side-submenu a:hover               { color: #fff; background: rgba(255,255,255,.04); }
.jobz-side-submenu a.is-active           { color: #fff; border-left-color: var(--jobz-accent); background: rgba(255,255,255,.06); }


/* ─── 14. Sidebar chevron & collapse ─────────────────────── */
.jobz-side-link .chevron {
  margin-left: auto;
  flex-shrink: 0;
  opacity: .5;
  transition: transform .2s ease;
}
.jobz-side-link.is-open .chevron { transform: rotate(90deg); }

/* Collapse toggle button */
.jobz-side-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background .12s;
}
.jobz-side-toggle:hover { background: rgba(255,255,255,.18); }
.jobz-side-toggle svg   { transition: transform .25s ease; }
.jobz-side.is-collapsed .jobz-side-toggle svg { transform: rotate(180deg); }

/* Sidebar footer strip */
.jobz-side-footer {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11.5px;
  color: #8FA1C5;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Collapsed: hide text, show only icons */
.jobz-side.is-collapsed { overflow: visible; }
.jobz-side.is-collapsed .jobz-side-brand h1,
.jobz-side.is-collapsed .jobz-side-section,
.jobz-side.is-collapsed .jobz-side-link .label,
.jobz-side.is-collapsed .jobz-side-link .pill,
.jobz-side.is-collapsed .jobz-side-link .chevron,
.jobz-side.is-collapsed .jobz-side-footer span:last-child,
.jobz-side.is-collapsed .jobz-side-submenu {
  display: none !important;
}
.jobz-side.is-collapsed .jobz-side-link  { justify-content: center; padding: 9px; }
.jobz-side.is-collapsed .jobz-side-brand { justify-content: center; }


/* ─── 15. Topbar extras ──────────────────────────────────── */
/* Search button */
.jobz-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--jobz-bg);
  border: 1px solid var(--jobz-line);
  border-radius: var(--jobz-radius);
  padding: 6px 10px;
  font-size: 13px;
  color: var(--jobz-ink-3);
  cursor: pointer;
  transition: border-color .12s;
  white-space: nowrap;
}
.jobz-search:hover { border-color: var(--jobz-brand); }
.jobz-search kbd {
  font-size: 10px;
  padding: 2px 5px;
  background: var(--jobz-line);
  border-radius: 4px;
  color: var(--jobz-ink-3);
  font-family: var(--jobz-font-mono);
}

/* Icon circle button */
.jobz-top-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--jobz-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--jobz-ink-2);
  transition: all .12s;
  position: relative;
  flex-shrink: 0;
  padding: 0;
}
.jobz-top-btn:hover { border-color: var(--jobz-brand); color: var(--jobz-brand); }
.jobz-top-btn .dot  {
  position: absolute;
  top: 1px; right: 1px;
  width: 8px; height: 8px;
  background: var(--jobz-bad);
  border-radius: 50%;
  border: 1.5px solid #fff;
}

/* User avatar */
.jobz-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--jobz-line);
  flex-shrink: 0;
  transition: border-color .12s;
}
.jobz-avatar:hover { border-color: var(--jobz-brand); }


/* ─── 16. Mobile sidebar overlay ────────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 1040;
}
.sidebar-overlay.is-visible { display: block; }

@media (max-width: 767px) {
  .jobz-side {
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform .25s ease, width .25s ease;
  }
  .jobz-side.is-open { transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   §17  WowDash compatibility shims
   Defines every WowDash utility class with Jobz-theme values so pages can
   be migrated incrementally without needing style.css.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Text colours ─────────────────────────────────────────────────────────── */
.text-primary-light   { color: var(--jobz-ink)  !important; }
.text-secondary-light { color: var(--jobz-ink-3) !important; }
.text-success-main    { color: #22c55e !important; }
.text-danger-main     { color: #ef4444 !important; }
.text-warning-main    { color: #f59e0b !important; }
.text-info-main       { color: #0ea5e9 !important; }
.text-primary-600     { color: var(--jobz-brand) !important; }
.text-cyan            { color: #06b6d4 !important; }
.hover-text-primary:hover { color: var(--jobz-brand) !important; }

/* ── Font sizes ───────────────────────────────────────────────────────────── */
.text-2xl { font-size: 1.5rem;     line-height: 1.3; }
.text-xl  { font-size: 1.25rem;    line-height: 1.3; }
.text-lg  { font-size: 1rem;       line-height: 1.4; }
.text-md  { font-size: 0.9375rem;  line-height: 1.4; }
.text-sm  { font-size: 0.875rem;   line-height: 1.4; }
.text-xs  { font-size: 0.75rem;    line-height: 1.4; }

/* ── Font weight ──────────────────────────────────────────────────────────── */
.fw-medium { font-weight: 500 !important; }

/* ── Background colours ───────────────────────────────────────────────────── */
.bg-gradient-start-1,
.bg-gradient-start-2,
.bg-gradient-start-3,
.bg-gradient-start-4,
.bg-gradient-start-5 { background: var(--jobz-surface) !important; }
.bg-base              { background: transparent !important; }
.bg-success-focus     { background-color: rgba(34,197,94,.12)   !important; }
.bg-neutral-200       { background-color: #e5e7eb               !important; }
.bg-primary-50        { background-color: rgba(0,69,141,.10)    !important; }
.bg-success-50        { background-color: rgba(34,197,94,.10)   !important; }
.bg-warning-50        { background-color: rgba(245,158,11,.10)  !important; }
.bg-info-50           { background-color: rgba(14,165,233,.10)  !important; }
.bg-cyan-50           { background-color: rgba(6,182,212,.10)   !important; }
.bg-success-main      { background-color: #22c55e !important; }
.bg-danger-main       { background-color: #ef4444 !important; }
.bg-cyan              { background-color: #06b6d4 !important; }
.bg-purple            { background-color: #8b5cf6 !important; }

/* ── Border utilities ─────────────────────────────────────────────────────── */
.br-success { border-color: #22c55e !important; }
.br-warning { border-color: #f59e0b !important; }
.br-danger  { border-color: #ef4444 !important; }
.br-primary { border-color: var(--jobz-brand) !important; }

/* ── Border radius ────────────────────────────────────────────────────────── */
.radius-2  { border-radius:  2px !important; }
.radius-3  { border-radius:  3px !important; }
.radius-4  { border-radius:  4px !important; }
.radius-6  { border-radius:  6px !important; }
.radius-8  { border-radius:  8px !important; }
.radius-10 { border-radius: 10px !important; }
.radius-12 { border-radius: 12px !important; }
.radius-14 { border-radius: 14px !important; }
.radius-16 { border-radius: 16px !important; }

/* ── Pixel dimension utilities ────────────────────────────────────────────── */
.w-8-px   { width:   8px !important; } .h-8-px   { height:   8px !important; }
.w-12-px  { width:  12px !important; } .h-12-px  { height:  12px !important; }
.w-16-px  { width:  16px !important; } .h-16-px  { height:  16px !important; }
.w-20-px  { width:  20px !important; } .h-20-px  { height:  20px !important; }
.w-24-px  { width:  24px !important; } .h-24-px  { height:  24px !important; }
.w-32-px  { width:  32px !important; } .h-32-px  { height:  32px !important; }
.w-36-px  { width:  36px !important; } .h-36-px  { height:  36px !important; }
.w-40-px  { width:  40px !important; } .h-40-px  { height:  40px !important; }
.w-50-px  { width:  50px !important; } .h-50-px  { height:  50px !important; }
.w-56-px  { width:  56px !important; } .h-56-px  { height:  56px !important; }
.w-64-px  { width:  64px !important; } .h-64-px  { height:  64px !important; }
.w-72-px  { width:  72px !important; } .h-72-px  { height:  72px !important; }
.w-80-px  { width:  80px !important; } .h-80-px  { height:  80px !important; }
.w-100-px { width: 100px !important; } .h-100-px { height: 100px !important; }
.w-200-px { width: 200px !important; } .h-200-px { height: 200px !important; }
.w-464-px { width: 464px !important; }
.w-500-px { width: 500px !important; }
.h-2-px   { height:   2px !important; }

/* ── Pixel spacing — full padding ────────────────────────────────────────── */
.p-8  { padding:  8px !important; }
.p-10 { padding: 10px !important; }
.p-12 { padding: 12px !important; }
.p-16 { padding: 16px !important; }
.p-20 { padding: 20px !important; }
.p-24 { padding: 24px !important; }
.p-28 { padding: 28px !important; }
.p-32 { padding: 32px !important; }
.p-40 { padding: 40px !important; }

/* ── Pixel spacing — padding-x / padding-y ───────────────────────────────── */
.px-8  { padding-left:  8px !important; padding-right:  8px !important; }
.px-10 { padding-left: 10px !important; padding-right: 10px !important; }
.px-12 { padding-left: 12px !important; padding-right: 12px !important; }
.px-16 { padding-left: 16px !important; padding-right: 16px !important; }
.px-18 { padding-left: 18px !important; padding-right: 18px !important; }
.px-24 { padding-left: 24px !important; padding-right: 24px !important; }
.px-40 { padding-left: 40px !important; padding-right: 40px !important; }
.px-50 { padding-left: 50px !important; padding-right: 50px !important; }
.px-56 { padding-left: 56px !important; padding-right: 56px !important; }

/* Override conflicting Bootstrap py utilities with WowDash pixel values */
.py-1  { padding-top:  1px !important; padding-bottom:  1px !important; }
.py-2  { padding-top:  2px !important; padding-bottom:  2px !important; }
.py-4  { padding-top:  4px !important; padding-bottom:  4px !important; }
.py-5  { padding-top:  5px !important; padding-bottom:  5px !important; }
.py-6  { padding-top:  6px !important; padding-bottom:  6px !important; }
.py-8  { padding-top:  8px !important; padding-bottom:  8px !important; }
.py-11 { padding-top: 11px !important; padding-bottom: 11px !important; }
.py-12 { padding-top: 12px !important; padding-bottom: 12px !important; }
.py-16 { padding-top: 16px !important; padding-bottom: 16px !important; }
.py-24 { padding-top: 24px !important; padding-bottom: 24px !important; }
.py-28 { padding-top: 28px !important; padding-bottom: 28px !important; }
.py-32 { padding-top: 32px !important; padding-bottom: 32px !important; }

/* ── Pixel spacing — padding-top / padding-bottom ────────────────────────── */
.pt-8  { padding-top:  8px !important; }
.pt-12 { padding-top: 12px !important; }
.pt-16 { padding-top: 16px !important; }
.pt-24 { padding-top: 24px !important; }
.pt-28 { padding-top: 28px !important; }
.pb-8  { padding-bottom:  8px !important; }
.pb-12 { padding-bottom: 12px !important; }
.pb-16 { padding-bottom: 16px !important; }
.pb-24 { padding-bottom: 24px !important; }

/* ── Pixel spacing — margin ───────────────────────────────────────────────── */
.mt-8  { margin-top:  8px !important; }
.mt-12 { margin-top: 12px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-20 { margin-top: 20px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-28 { margin-top: 28px !important; }
.mt-32 { margin-top: 32px !important; }
.mb-8  { margin-bottom:  8px !important; }
.mb-12 { margin-bottom: 12px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-28 { margin-bottom: 28px !important; }
.mb-32 { margin-bottom: 32px !important; }
.me-8  { margin-right:  8px !important; }
.me-12 { margin-right: 12px !important; }
.me-16 { margin-right: 16px !important; }
.ms-8  { margin-left:  8px !important; }
.ms-12 { margin-left: 12px !important; }

/* ── Gap utilities ────────────────────────────────────────────────────────── */
.gap-8  { gap:  8px !important; }
.gap-10 { gap: 10px !important; }
.gap-12 { gap: 12px !important; }
.gap-16 { gap: 16px !important; }
.gap-24 { gap: 24px !important; }

/* ── Table shims ──────────────────────────────────────────────────────────── */
.bordered-table { border-collapse: collapse; }
.bordered-table th, .bordered-table td { border: 1px solid var(--jobz-line); }
.sm-table th, .sm-table td { padding: 4px 8px !important; font-size: 0.875rem; }
.scroll-sm { overflow-x: auto; }

/* ── Misc WowDash utilities ───────────────────────────────────────────────── */
.line-height-1 { line-height: 1 !important; }
.icon { vertical-align: -2px; }
.flex-shrink-0 { flex-shrink: 0 !important; }

/* ── Additional background neutrals ──────────────────────────────────────── */
.bg-neutral-50   { background-color: #fafafa   !important; }
.bg-neutral-100  { background-color: #f5f5f5   !important; }
.bg-primary-100  { background-color: rgba(0,69,141,.08)  !important; }
.bg-primary-600  { background-color: var(--jobz-brand)   !important; }
.bg-success-subtle { background-color: rgba(34,197,94,.12) !important; }

/* ── Cursor utility ──────────────────────────────────────────────────────── */
.cursor-pointer { cursor: pointer !important; }

/* ═══════════════════════════════════════════════════════════════════════════
   §18  ⌘K Command Palette
   ═══════════════════════════════════════════════════════════════════════════ */
.jobz-cmd-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  padding-left: 16px;
  padding-right: 16px;
}
.jobz-cmd-overlay.is-open { display: flex; }

.jobz-cmd-box {
  width: 100%;
  max-width: 560px;
  background: var(--jobz-bg);
  border-radius: 12px;
  box-shadow: 0 24px 48px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 100px);
}

.jobz-cmd-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--jobz-line);
  flex-shrink: 0;
}
.jobz-cmd-search svg {
  width: 17px; height: 17px;
  color: var(--jobz-ink-3);
  flex-shrink: 0;
}
.jobz-cmd-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--jobz-ink);
  font-family: var(--jobz-font);
}
.jobz-cmd-input::placeholder { color: var(--jobz-ink-3); }

.jobz-cmd-esc {
  font-size: 11px;
  background: var(--jobz-surface);
  border: 1px solid var(--jobz-line);
  border-radius: 4px;
  padding: 2px 7px;
  color: var(--jobz-ink-3);
  font-family: var(--jobz-font);
  flex-shrink: 0;
}

.jobz-cmd-results {
  overflow-y: auto;
  padding: 6px;
  flex: 1;
  min-height: 0;
  min-height: 80px;
}

.jobz-cmd-group {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--jobz-ink-3);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 8px 10px 4px;
}

.jobz-cmd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--jobz-ink);
  text-decoration: none;
  transition: background .08s;
  cursor: pointer;
}
.jobz-cmd-item svg {
  width: 14px; height: 14px;
  color: var(--jobz-ink-3);
  flex-shrink: 0;
  stroke-width: 2.5;
}
.jobz-cmd-item:hover,
.jobz-cmd-item.is-sel {
  background: var(--jobz-surface);
  color: var(--jobz-brand);
  text-decoration: none;
}
.jobz-cmd-item.is-sel svg { color: var(--jobz-brand); }

.jobz-cmd-empty {
  text-align: center;
  padding: 28px 16px;
  font-size: 13px;
  color: var(--jobz-ink-3);
}

.jobz-cmd-foot {
  border-top: 1px solid var(--jobz-line);
  padding: 8px 14px;
  font-size: 11.5px;
  color: var(--jobz-ink-3);
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}
.jobz-cmd-foot kbd {
  background: var(--jobz-surface);
  border: 1px solid var(--jobz-line);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10.5px;
  font-family: var(--jobz-font);
  margin-right: 2px;
}

/* ── Sidebar mobile close button ─────────────────────────────────────────── */
.jobz-side-close {
  display: none;
  background: none;
  border: 1px solid var(--jobz-line);
  border-radius: 6px;
  width: 28px; height: 28px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--jobz-ink-3);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .jobz-side-close { display: flex; }
  .jobz-side-toggle { display: none; }
}

/* ── §19 Auth layout + icon-field (replaces style.css dependency) ─────────── */

/* Page shell */
.auth {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}
.bg-base { background-color: #fff; }

/* Two-column split */
.auth-left {
  width: 50%;
  background: linear-gradient(90deg, #ECF0FF 0%, #FAFBFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth.forgot-password-page .auth-left {
  background: linear-gradient(135deg, #f5f7ff 0%, #e8edff 100%);
}
.auth-right {
  width: 50%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 991px) {
  .auth-left  { display: none !important; }
  .auth-right { width: 100%; max-width: 100%; }
}

/* Icon-field — input with left icon */
.icon-field {
  position: relative;
}
.icon-field .icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jobz-ink-3);
  pointer-events: none;
  z-index: 2;
}
.icon-field .form-control {
  padding-inline-start: 2.5rem;
}

/* "Or sign in with" horizontal-rule divider */
.center-border-horizontal {
  position: relative;
}
.center-border-horizontal::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--jobz-line);
}
.center-border-horizontal span {
  position: relative;
  z-index: 1;
}

/* One-off utilities used only on auth pages */
.max-w-464-px { max-width: 464px; }
.mt-120       { margin-top: 120px !important; }

/* ── §19b Preserved custom-fixes (table scroll, logout btn, btn colours) ──── */

.table-responsive {
  overflow-x: auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  max-height: 70vh;
}
.table-responsive table  { width: 100%; margin-bottom: 0; }
.table-responsive .table td,
.table-responsive .table th { white-space: nowrap; }
.table-responsive.scroll-sm {
  scrollbar-width: thin;
  scrollbar-color: #b1b3b8 #d6d9de;
}
.scroll-sm::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
  border-radius: 40px;
}

#logoutBtnMain {
  display: flex !important;
  align-items: center;
  white-space: nowrap;
}
#logoutBtnMain span { display: inline-block !important; }

.btn-outline-primary { --bs-btn-color: #fff !important; }
.btn-outline-info:hover { background-color: #19296f !important; }
