/* ═══════════════════════════════════════════════════════════
   GOCINICO ADMIN — app.css
   Shared stylesheet for all pages
   ═══════════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ══════════════════════════════════════
   THEME TOKENS — Light (default)
   ══════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg:          #f5f6fa;
  --bg2:         #ffffff;
  --bg3:         #f0f1f6;
  --bg4:         #e8eaf2;
  --surface:     #ffffff;
  --surface2:    #f8f9fc;

  /* Borders */
  --border:      rgba(0,0,0,0.07);
  --border2:     rgba(0,0,0,0.12);
  --border3:     rgba(0,0,0,0.20);

  /* Brand / Accent */
  --accent:      #16a34a;
  --accent2:     #15803d;
  --accent3:     #dcfce7;
  --accent-dim:  rgba(22,163,74,0.08);
  --accent-glow: rgba(22,163,74,0.18);
  --accent-text: #14532d;

  /* Text */
  --text:        #111827;
  --text2:       #4b5563;
  --text3:       #9ca3af;
  --text-inv:    #ffffff;

  /* Semantic */
  --red:         #dc2626;
  --red-dim:     rgba(220,38,38,0.08);
  --red-text:    #7f1d1d;
  --amber:       #d97706;
  --amber-dim:   rgba(217,119,6,0.08);
  --amber-text:  #78350f;
  --blue:        #2563eb;
  --blue-dim:    rgba(37,99,235,0.08);
  --blue-text:   #1e3a8a;
  --purple:      #7c3aed;
  --purple-dim:  rgba(124,58,237,0.08);
  --purple-text: #4c1d95;
  --cyan:        #0891b2;
  --cyan-dim:    rgba(8,145,178,0.08);

  /* Sidebar — light "white-paper" shell */
  --sb-bg:       #ffffff;
  --sb-text:     #64748b;
  --sb-text2:    #0f172a;
  --sb-strong:   #0f172a;
  --sb-active-bg:rgba(22,163,74,0.10);
  --sb-active:   #15803d;
  --sb-border:   rgba(0,0,0,0.07);
  --sb-hover:    rgba(0,0,0,0.045);
  --sb-grp-ico-bg: rgba(0,0,0,0.05);
  --sb-pill-bg:  rgba(0,0,0,0.04);

  /* Layout */
  --sidebar-w:   246px;
  --header-h:    58px;

  /* Shape — larger, softer radii (reference SaaS dashboards) */
  --r:           10px;
  --rl:          16px;
  --rs:          8px;
  --rxl:         20px;

  /* Type */
  --font:       'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:       'JetBrains Mono', ui-monospace, monospace;

  /* Motion */
  --ease:        0.16s cubic-bezier(0.4,0,0.2,1);

  /* Shadow */
  --shadow-sm:   0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow:      0 4px 16px rgba(16,24,40,0.07), 0 2px 6px rgba(16,24,40,0.05);
  --shadow-lg:   0 12px 32px rgba(16,24,40,0.12), 0 4px 10px rgba(16,24,40,0.06);

  /* ── Legacy aliases (many views reference these names; map to real tokens) ── */
  --card-bg:     var(--surface);
  --text-1:      var(--text);
  --text-2:      var(--text2);
  --text-3:      var(--text3);
  --bg-1:        var(--bg);
  --bg-2:        var(--bg3);
  --primary:     var(--accent);
  --primary-2:   var(--accent2);
}

/* ══════════════════════════════════════
   DARK THEME TOKENS
   ══════════════════════════════════════ */
[data-theme="dark"] {
  --bg:          #0f1117;
  --bg2:         #161922;
  --bg3:         #1e2230;
  --bg4:         #252a3a;
  --surface:     #1a1f2e;
  --surface2:    #222738;

  --border:      rgba(255,255,255,0.07);
  --border2:     rgba(255,255,255,0.13);
  --border3:     rgba(255,255,255,0.22);

  --accent:      #4ade80;
  --accent2:     #22c55e;
  --accent3:     rgba(74,222,128,0.15);
  --accent-dim:  rgba(74,222,128,0.10);
  --accent-glow: rgba(74,222,128,0.22);
  --accent-text: #bbf7d0;

  --text:        #eef0f8;
  --text2:       #8b92a8;
  --text3:       #4e5670;
  --text-inv:    #0f1117;

  --red:         #f87171;
  --red-dim:     rgba(248,113,113,0.10);
  --red-text:    #fecaca;
  --amber:       #fbbf24;
  --amber-dim:   rgba(251,191,36,0.10);
  --amber-text:  #fde68a;
  --blue:        #60a5fa;
  --blue-dim:    rgba(96,165,250,0.10);
  --blue-text:   #bfdbfe;
  --purple:      #a78bfa;
  --purple-dim:  rgba(167,139,250,0.10);
  --purple-text: #ddd6fe;
  --cyan:        #22d3ee;
  --cyan-dim:    rgba(34,211,238,0.10);

  --sb-bg:       #0f1117;
  --sb-text:     #64748b;
  --sb-text2:    #94a3b8;
  --sb-strong:   #ffffff;
  --sb-active-bg:rgba(74,222,128,0.12);
  --sb-active:   #4ade80;
  --sb-border:   rgba(255,255,255,0.05);
  --sb-hover:    rgba(255,255,255,0.04);
  --sb-grp-ico-bg: rgba(255,255,255,0.05);
  --sb-pill-bg:  rgba(255,255,255,0.05);

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3);
  --shadow:      0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 24px rgba(0,0,0,0.5);
}

/* ══════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%; font-family: var(--font);
  background: var(--bg); color: var(--text);
  font-size: 14px; line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background var(--ease), color var(--ease);
}
/* Tabular figures for data-dense UI (numbers align in tables/KPIs) */
.dt, .kpi-value, .kpi-trend, .dlist-amount, .lsb-count, .tf, .nc, .b, table td, table th { font-variant-numeric: tabular-nums; }

/* ── Phosphor icon sizing per context (font-icon → sized by font-size) ── */
.ph, .ph-bold, .ph-fill, .ph-duotone, .ph-light, .ph-thin { line-height: 1; vertical-align: middle; }
/* Collision fix: the page-header wrapper is <div class="ph"> which clashes with Phosphor's `.ph` icon
   font. Scope the UI font back onto the page-header div + its text (icons are <i class="ph">, untouched). */
div.ph { font-family: var(--font) !important; }
.ph-left, .ph-right, .ph .pt, .ph .ps { font-family: var(--font) !important; }
.sb-group-ico { color: var(--sb-text2); }
.sb-group-ico i { font-size: 19px; line-height: 1; }
.sb-lone-ico { display: inline-flex; align-items: center; justify-content: center; }
.sb-lone-ico i { font-size: 19px; }
.sb-group-arr { display: inline-flex; align-items: center; }
.sb-group-arr i { font-size: 13px; }
.tb-icon-btn i { font-size: 19px; }
.search-ico i { font-size: 17px; }
.udb-arr i { font-size: 13px; }
.dd-item-ico { display: inline-flex; align-items: center; justify-content: center; }
.dd-item-ico i { font-size: 18px; }
.bic i { font-size: 17px; }
.btn i { font-size: 16px; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 4px; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font-family: var(--font); }

/* ══════════════════════════════════════
   LAYOUT SHELL
   ══════════════════════════════════════ */
.shell { display: flex; height: 100vh; overflow: hidden; }
.main-wrap { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.content { flex: 1; overflow-y: auto; padding: 26px 30px; background: var(--bg); }

/* ══════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w); background: var(--sb-bg);
  border-right: 1px solid var(--sb-border);
  display: flex; flex-direction: column;
  flex-shrink: 0; overflow-y: auto; overflow-x: hidden; z-index: 10;
  transition: width var(--ease);
}
.sb-logo {
  height: var(--header-h); display: flex; align-items: center;
  padding: 0 16px; border-bottom: 1px solid var(--sb-border);
  gap: 10px; flex-shrink: 0;
}
.sb-mark {
  width: 28px; height: 28px; background: var(--accent);
  border-radius: 7px; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 13px;
  color: #0f1117; flex-shrink: 0;
}
.sb-name { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; color: var(--sb-strong); }
.sb-name em { color: var(--accent); font-style: normal; }
.sb-wordmark { font-size: 18px; font-weight: 800; letter-spacing: -0.5px; color: var(--sb-strong); }
.sb-wordmark i { color: var(--red); font-style: normal; }
/* Light shell shows the text wordmark; dark shell shows the white PNG logo */
.logo-light { display: none; }
.logo-dark  { display: inline-block; }
[data-theme="light"] .logo-dark  { display: none; }
[data-theme="light"] .logo-light { display: inline-block; }
.sb-nav { padding: 10px 0; flex: 1; }
.sb-group { margin-bottom: 2px; }
.sb-group-row {
  display: flex; align-items: center;
  padding: 8px 10px; margin: 1px 10px; border-radius: 10px; cursor: pointer; gap: 0;
  transition: background var(--ease);
}
.sb-group-row:hover { background: var(--sb-hover); }
.sb-group-ico {
  width: 28px; height: 28px; border-radius: var(--rs);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; margin-right: 9px; flex-shrink: 0;
  background: var(--sb-grp-ico-bg);
}
.sb-group-lbl { flex: 1; font-size: 12.5px; font-weight: 500; color: var(--sb-text2); }
.sb-group-arr { font-size: 9px; color: var(--sb-text); transition: transform var(--ease); }
.sb-group.open .sb-group-arr { transform: rotate(90deg); }
.sb-children { display: none; padding: 1px 0 4px; }
.sb-group.open .sb-children { display: block; }
.sb-item {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 12px 7px 32px; font-size: 12.5px; font-weight: 500;
  color: var(--sb-text); cursor: pointer; margin: 1px 10px; border-radius: 9px;
  transition: all var(--ease);
  position: relative;
}
.sb-item::before {
  content: ''; position: absolute; left: 15px; top: 50%;
  transform: translateY(-50%); width: 4px; height: 4px;
  border-radius: 50%; background: var(--sb-text);
  transition: all var(--ease);
}
.sb-item:hover { background: var(--sb-hover); color: var(--sb-text2); }
.sb-item.active {
  color: var(--sb-active); background: var(--sb-active-bg); font-weight: 600;
}
.sb-item.active::before { background: var(--sb-active); width: 5px; height: 5px; }
.sb-lone {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; font-size: 12.5px; font-weight: 500; color: var(--sb-text);
  cursor: pointer; margin: 1px 10px; border-radius: 10px; transition: all var(--ease);
}
.sb-lone:hover { background: var(--sb-hover); color: var(--sb-text2); }
.sb-lone.active { color: var(--sb-active); background: var(--sb-active-bg); font-weight: 600; }
.sb-lone-ico { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.sb-sep { height: 1px; background: var(--sb-border); margin: 6px 14px; }
.sb-foot { padding: 10px 12px; border-top: 1px solid var(--sb-border); flex-shrink: 0; }
.user-pill {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 9px; border-radius: var(--r);
  background: var(--sb-pill-bg); cursor: pointer;
  transition: background var(--ease);
}
.user-pill:hover { background: var(--sb-grp-ico-bg); }
.u-av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #0f1117; flex-shrink: 0;
}
.u-name { font-size: 12.5px; font-weight: 500; flex: 1; color: var(--sb-text2); }
.u-tag { font-size: 10px; color: var(--sb-text); }

/* ══════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════ */
.topbar {
  height: var(--header-h); background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 20px; gap: 10px; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  position: relative; z-index: 5;
}
.tb-bc { display: flex; align-items: center; gap: 5px; flex: 1; min-width: 0; }
.bc-root { font-size: 12.5px; color: var(--text3); white-space: nowrap; }
.bc-sep { color: var(--text3); font-size: 11px; }
.bc-cur { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.tb-search {
  flex: 1; max-width: 340px; position: relative;
}
.tb-search input {
  width: 100%; padding: 6px 12px 6px 34px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 20px; font-size: 12.5px; color: var(--text);
  transition: all var(--ease);
}
.tb-search input::placeholder { color: var(--text3); }
.tb-search input:focus { outline: none; border-color: var(--accent); background: var(--bg2); box-shadow: 0 0 0 3px var(--accent-glow); }
.tb-search .search-ico {
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text3); pointer-events: none;
}
.tb-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r); box-shadow: var(--shadow-lg);
  z-index: 200; max-height: 340px; overflow-y: auto; display: none;
}
.tb-search-results.open { display: block; }
.sr-group-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); padding: 10px 14px 4px; }
.sr-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; cursor: pointer; transition: background var(--ease);
}
.sr-item:hover { background: var(--bg3); }
.sr-item-ico { font-size: 14px; width: 20px; text-align: center; flex-shrink: 0; }
.sr-item-main { flex: 1; min-width: 0; }
.sr-item-label { font-size: 13px; font-weight: 500; color: var(--text); }
.sr-item-sub { font-size: 11px; color: var(--text3); }
.sr-empty { padding: 20px 14px; font-size: 13px; color: var(--text3); text-align: center; }

.tb-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.tb-clock { font-size: 11.5px; color: var(--text3); font-family: var(--mono); white-space: nowrap; }
.tb-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; position: relative;
  transition: all var(--ease); color: var(--text2);
}
.tb-icon-btn:hover { background: var(--bg4); border-color: var(--border2); }
.notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); border: 1.5px solid var(--bg2);
}

/* ── User Dropdown ── */
.user-dropdown-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 10px 5px 6px; border-radius: var(--r);
  background: var(--bg3); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--ease);
}
.user-dropdown-btn:hover { background: var(--bg4); border-color: var(--border2); }
.udb-av {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: #0f1117; flex-shrink: 0;
}
.udb-name { font-size: 12.5px; font-weight: 500; color: var(--text); }
.udb-arr { font-size: 9px; color: var(--text3); }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--rl); box-shadow: var(--shadow-lg);
  min-width: 200px; z-index: 300; display: none;
  animation: ddIn .14s ease;
}
.dropdown-menu.open { display: block; }
@keyframes ddIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
.dd-header { padding: 12px 14px 8px; border-bottom: 1px solid var(--border); }
.dd-name { font-size: 13px; font-weight: 600; color: var(--text); }
.dd-email { font-size: 11.5px; color: var(--text3); }
.dd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 14px; font-size: 13px; color: var(--text2);
  cursor: pointer; transition: background var(--ease);
}
.dd-item:hover { background: var(--bg3); color: var(--text); }
.dd-item.danger { color: var(--red); }
.dd-item.danger:hover { background: var(--red-dim); }
.dd-item-ico { font-size: 14px; width: 18px; text-align: center; flex-shrink: 0; }
.dd-sep { height: 1px; background: var(--border); margin: 4px 0; }
.dd-wrap { position: relative; }

/* ══════════════════════════════════════
   PAGE HEADER
   ══════════════════════════════════════ */
.ph { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.ph-left .pt { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.ph-left .ps { font-size: 13px; color: var(--text3); margin-top: 3px; }
.ph-right { display: flex; gap: 7px; align-items: center; flex-shrink: 0; }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--rs);
  font-size: 12.5px; font-family: var(--font); font-weight: 500;
  cursor: pointer; border: 1px solid var(--border2);
  background: var(--bg2); color: var(--text2);
  transition: all var(--ease); white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--bg3); color: var(--text); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 1px 4px rgba(22,163,74,0.3); }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.btn-danger { background: var(--red-dim); color: var(--red); border-color: rgba(220,38,38,0.2); }
.btn-danger:hover { background: rgba(220,38,38,0.15); }
.btn-amber { background: var(--amber-dim); color: var(--amber); border-color: rgba(217,119,6,0.2); }
.btn-amber:hover { background: rgba(217,119,6,0.15); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text2); box-shadow: none; }
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 10px 20px; font-size: 14px; }
.bic {
  width: 32px; height: 32px; padding: 0; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--rs); font-size: 13px;
  background: var(--bg3); border: 1px solid transparent;
  color: var(--text2); cursor: pointer; transition: all var(--ease);
}
/* Robustly center the Phosphor glyph: <i> fills the chip and flex-centers its ::before glyph */
.bic i { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; line-height: 1; }
.bic:hover { background: var(--bg4); color: var(--text); }
/* Colored-by-default action chips (soft tint + colored icon) */
.bic.view  { background: var(--accent-dim); color: var(--accent2); }
.bic.view:hover  { background: var(--accent3); }
.bic.edit  { background: var(--blue-dim);   color: var(--blue); }
.bic.edit:hover  { background: rgba(37,99,235,0.16); }
.bic.del   { background: var(--red-dim);    color: var(--red); }
.bic.del:hover   { background: rgba(220,38,38,0.16); }
.bic.amber { background: var(--amber-dim);  color: var(--amber); }
.bic.amber:hover { background: rgba(217,119,6,0.16); }
/* Standard table action cluster — use everywhere for consistent row actions */
.row-actions { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ══════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════ */
.fg { margin-bottom: 14px; }
.fg-row { display: grid; gap: 14px; margin-bottom: 14px; }
.fg-2 { grid-template-columns: 1fr 1fr; }
.fg-3 { grid-template-columns: 1fr 1fr 1fr; }
.fg-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.fl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text2); margin-bottom: 5px; }
.req { color: var(--accent); margin-left: 2px; }
.fc {
  width: 100%; padding: 8px 11px;
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--rs); color: var(--text);
  font-size: 13px; font-family: var(--font);
  transition: all var(--ease);
}
.fc::placeholder { color: var(--text3); }
.fc:focus { outline: none; border-color: var(--accent); background: var(--bg2); box-shadow: 0 0 0 3px var(--accent-glow); }
.fc option { background: var(--bg2); color: var(--text); }
textarea.fc { resize: vertical; min-height: 80px; }
.fe { font-size: 11.5px; color: var(--red); margin-top: 3px; display: none; }
.fnote { background: var(--accent3); border: 1px solid rgba(22,163,74,0.2); border-radius: var(--rs); padding: 8px 12px; font-size: 12px; color: var(--accent-text); margin-bottom: 14px; line-height: 1.5; }
.fwarn { background: var(--amber-dim); border: 1px solid rgba(217,119,6,0.2); border-radius: var(--rs); padding: 8px 12px; font-size: 12px; color: var(--amber-text); margin-bottom: 14px; line-height: 1.5; }
.ferr-box { background: var(--red-dim); border: 1px solid rgba(220,38,38,0.2); border-radius: var(--rs); padding: 8px 12px; font-size: 12px; color: var(--red-text); margin-bottom: 14px; line-height: 1.5; }
.fsec { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text3); padding: 14px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }

/* ── Toggle ── */
.tog { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.tog input { opacity: 0; width: 0; height: 0; position: absolute; }
.tslide { position: absolute; inset: 0; background: var(--bg4); border-radius: 10px; transition: .18s; cursor: pointer; border: 1px solid var(--border2); }
.tslide::before { content: ''; position: absolute; width: 14px; height: 14px; left: 2px; top: 2px; background: var(--text3); border-radius: 50%; transition: .18s; }
.tog input:checked + .tslide { background: var(--accent); border-color: var(--accent2); }
.tog input:checked + .tslide::before { transform: translateX(16px); background: #fff; }
.tog input:disabled + .tslide { opacity: .35; cursor: not-allowed; }

/* ══════════════════════════════════════
   FILTER BAR
   ══════════════════════════════════════ */
.fbar { display: flex; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.fi {
  flex: 1; min-width: 140px; max-width: 230px;
  padding: 7px 11px; border-radius: var(--rs);
  background: var(--bg2); border: 1px solid var(--border2);
  color: var(--text); font-size: 12.5px; font-family: var(--font);
  transition: all var(--ease); box-shadow: var(--shadow-sm);
}
.fi::placeholder { color: var(--text3); }
.fi:focus { outline: none; border-color: var(--accent); background: var(--bg2); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ══════════════════════════════════════
   TABLE
   ══════════════════════════════════════ */
.tc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); overflow: hidden; box-shadow: var(--shadow-sm); }
.dt { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dt th { padding: 10px 14px; text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); background: var(--surface2); border-bottom: 1px solid var(--border); }
.dt td { padding: 11px 14px; border-bottom: 1px solid var(--border); color: var(--text2); vertical-align: middle; }
.dt tr:last-child td { border-bottom: none; }
.dt tr:hover td { background: var(--bg3); }
.dt .nc { color: var(--text3); font-family: var(--mono); font-size: 11px; }
.dt .nm { color: var(--text); font-weight: 600; }
.tf { padding: 9px 14px; font-size: 11.5px; color: var(--text3); border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; background: var(--surface2); }

/* ══════════════════════════════════════
   BADGES
   ══════════════════════════════════════ */
.b { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.b-green { background: rgba(22,163,74,0.1); color: var(--accent2); }
.b-amber { background: var(--amber-dim); color: var(--amber); }
.b-red { background: var(--red-dim); color: var(--red); }
.b-blue { background: var(--blue-dim); color: var(--blue); }
.b-purple { background: var(--purple-dim); color: var(--purple); }
.b-cyan { background: var(--cyan-dim); color: var(--cyan); }
.b-gray { background: var(--bg4); color: var(--text2); }

[data-theme="dark"] .b-green { background: rgba(74,222,128,0.12); color: #4ade80; }

/* ══════════════════════════════════════
   OVERLAY / MODAL
   ══════════════════════════════════════ */
.overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(4px);
  z-index: 100; align-items: flex-start;
  justify-content: center; padding: 36px 18px; overflow-y: auto;
}
.overlay.open { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--rl); width: 520px; max-width: 100%;
  padding: 24px; margin: auto; box-shadow: var(--shadow-lg);
  animation: mUp .18s ease;
}
.modal-wide { width: 900px; }
.modal-xl { width: 800px; }
.modal-sm { width: 400px; }
@keyframes mUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:translateY(0); } }
.mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mt { font-size: 16px; font-weight: 600; color: var(--text); }
.mx { width: 30px; height: 30px; border-radius: 50%; background: var(--bg3); border: 1px solid var(--border); color: var(--text2); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all var(--ease); }
.mx:hover { background: var(--bg4); color: var(--text); }
.ma { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--border); }

/* ── Bootstrap-style modal sections (used across ~40 views) — unify with design system ── */
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin: -24px -24px 0; padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 600; color: var(--text); }
.modal-body { padding: 20px 0; display: flex; flex-direction: column; gap: 14px; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  margin: 0 -24px -24px; padding: 14px 24px; border-top: 1px solid var(--border);
}
/* Close button inside modal-header (×) — match .mx if not already a .mx */
.modal-header .close, .modal-header [data-close] {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg3);
  border: 1px solid var(--border); color: var(--text2); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  transition: all var(--ease);
}
.modal-header .close:hover { background: var(--bg4); color: var(--text); }

/* Width helpers — keep all popups on one scale */
.m-w-480 { width: 480px; }
.modal.delete-model, .delete-model { width: 420px; }

/* ══════════════════════════════════════
   CONFIRM DIALOG
   ══════════════════════════════════════ */
.conf-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--red-dim); border: 1px solid rgba(220,38,38,0.2); display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 14px; }
.conf-title { font-size: 15px; font-weight: 600; text-align: center; margin-bottom: 8px; color: var(--text); }
.conf-msg { font-size: 13px; color: var(--text2); text-align: center; line-height: 1.6; }

/* ══════════════════════════════════════
   STEP BAR
   ══════════════════════════════════════ */
.step-bar { display: flex; gap: 0; margin-bottom: 22px; }
.step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.step:not(:last-child)::after { content: ''; position: absolute; top: 13px; left: 50%; width: 100%; height: 1.5px; background: var(--border2); z-index: 0; }
.step.done::after { background: var(--accent); }
.step-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg3); border: 1.5px solid var(--border2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text3); z-index: 1; position: relative; transition: all var(--ease); }
.step.active .step-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.step.done .step-dot { background: var(--accent3); border-color: var(--accent); color: var(--accent); }
.step-lbl { font-size: 10.5px; color: var(--text3); margin-top: 5px; white-space: nowrap; font-weight: 500; }
.step.active .step-lbl { color: var(--accent); font-weight: 600; }
.step.done .step-lbl { color: var(--accent); }

/* ══════════════════════════════════════
   CARDS & STATS
   ══════════════════════════════════════ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 16px; box-shadow: var(--shadow-sm); }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 6px; }
.stat-val { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); }
.stat-sub { font-size: 11.5px; color: var(--text3); margin-top: 3px; }

/* ══════════════════════════════════════
   TOAST
   ══════════════════════════════════════ */
.toast-wrap { position: fixed; bottom: 22px; right: 22px; z-index: 999; display: flex; flex-direction: column; gap: 7px; pointer-events: none; }
.toast { background: var(--bg2); border: 1px solid var(--border2); border-radius: var(--r); padding: 11px 16px; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 10px; animation: tIn .18s ease; box-shadow: var(--shadow-lg); min-width: 220px; }
.tdot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
@keyframes tIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════
   INTERVIEW SPECIFIC
   ══════════════════════════════════════ */
.score-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; margin-bottom: 18px; }
.score-card-hdr { background: var(--bg3); padding: 10px 16px; font-size: 13px; font-weight: 700; color: var(--text); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.score-card-hdr .score-total { font-size: 12px; font-weight: 600; color: var(--accent); }
.score-table { width: 100%; border-collapse: collapse; }
.score-table th { padding: 8px 16px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); background: var(--surface2); border-bottom: 1px solid var(--border); text-align: left; }
.score-table th:last-child { text-align: center; width: 160px; }
.score-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text2); vertical-align: middle; }
.score-table tr:last-child td { border-bottom: none; }
.score-table td:last-child { text-align: center; }
.score-input { width: 90px; padding: 5px 10px; border-radius: var(--rs); border: 1px solid var(--border2); background: var(--bg2); color: var(--text); font-size: 13px; font-family: var(--mono); text-align: center; transition: all var(--ease); }
.score-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.score-footer { padding: 10px 16px; background: var(--bg3); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; align-items: center; font-size: 12.5px; color: var(--text2); }
.score-footer strong { color: var(--accent); font-size: 15px; font-family: var(--mono); }

/* ══════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════ */
.auth-shell {
  width: 100%; display: flex; min-height: 100vh;
}

/* Left — branded illustration panel */
.auth-left {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 48px; background: var(--accent);
  position: relative; overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(0,0,0,0.03) 0px, rgba(0,0,0,0.03) 1px,
    transparent 1px, transparent 28px
  );
  pointer-events: none;
}
.auth-left-inner { position: relative; z-index: 1; max-width: 420px; }
.auth-left-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 52px; }
.auth-left-mark {
  width: 44px; height: 44px; background: rgba(0,0,0,0.15);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 20px; color: #fff;
}
.auth-left-name { font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.3px; }
.auth-left-tagline {
  font-size: 32px; font-weight: 700; color: #fff;
  line-height: 1.25; letter-spacing: -0.5px; margin-bottom: 18px;
}
.auth-left-sub { font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.7; }
.auth-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(0,0,0,0.12); border-radius: 20px;
  padding: 6px 14px; font-size: 12.5px; color: rgba(255,255,255,0.9);
}
.auth-pill-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.7); }

/* Right — form panel */
.auth-right {
  width: 440px; flex-shrink: 0;
  display: flex; flex-direction: column;
  justify-content: center; padding: 48px 44px;
  background: var(--bg2);
}

/* Form logo */
.auth-form-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; }
.auth-form-mark {
  width: 32px; height: 32px; background: var(--accent);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 14px; color: #0f1117;
}
.auth-form-name { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.2px; }
.auth-form-name em { color: var(--accent); font-style: normal; }

/* Titles */
.auth-title { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); margin-bottom: 6px; }
.auth-subtitle { font-size: 13.5px; color: var(--text3); margin-bottom: 28px; }

/* Divider */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider-line { flex: 1; height: 1px; background: var(--border); }
.auth-divider-text { font-size: 12px; color: var(--text3); }

/* Footer */
.auth-footer { margin-top: 24px; text-align: center; font-size: 12.5px; color: var(--text3); }
.auth-footer a { color: var(--accent); font-weight: 500; }
.auth-footer a:hover { text-decoration: underline; }

/* Password toggle */
.pw-wrap { position: relative; }
.pw-wrap .fc { padding-right: 40px; }
.pw-toggle {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  cursor: pointer; font-size: 15px; color: var(--text3);
  background: none; border: none; line-height: 1;
}
.pw-toggle:hover { color: var(--text2); }

/* Auth button */
.auth-btn { width: 100%; padding: 10px; font-size: 14px; border-radius: var(--r); }

/* Remember / forgot row */
.remember-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.remember-label { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text2); cursor: pointer; }
.remember-label input { accent-color: var(--accent); width: 14px; height: 14px; }
.forgot-link { font-size: 13px; color: var(--accent); font-weight: 500; cursor: pointer; }
.forgot-link:hover { text-decoration: underline; }

/* Theme toggle button (fixed) */
.auth-theme-btn {
  position: fixed; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 15px; transition: all var(--ease);
  z-index: 100;
}
.auth-theme-btn:hover { background: var(--bg4); }

/* Dark theme: left panel uses a slightly adjusted green */
[data-theme="dark"] .auth-left { background: var(--accent2); }

/* Legacy aliases kept for any other auth pages */
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.auth-brand-mark { width: 40px; height: 40px; background: var(--accent); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; color: #0f1117; }
.auth-brand-name { font-size: 22px; font-weight: 700; letter-spacing: -0.3px; }
.auth-brand-name em { color: var(--accent); font-style: normal; }
.auth-card { width: 100%; max-width: 380px; }
.auth-sub { font-size: 13.5px; color: var(--text3); margin-bottom: 28px; }

/* ══════════════════════════════════════
   SETTINGS PAGE
   ══════════════════════════════════════ */
.settings-layout { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.settings-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 8px; box-shadow: var(--shadow-sm); align-self: start; position: sticky; top: 0; }
.snav-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--rs); font-size: 13px; color: var(--text2); cursor: pointer; transition: all var(--ease); }
.snav-item:hover { background: var(--bg3); color: var(--text); }
.snav-item.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.snav-item-ico { font-size: 15px; width: 20px; text-align: center; }
.settings-body { display: flex; flex-direction: column; gap: 20px; }
.settings-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 22px; box-shadow: var(--shadow-sm); }
.settings-section-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.settings-section-sub { font-size: 12.5px; color: var(--text3); margin-bottom: 18px; }

/* ══════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════ */
.empty-state { text-align: center; padding: 48px 20px; color: var(--text3); }
.empty-ico { font-size: 32px; margin-bottom: 12px; opacity: .35; }
.empty-text { font-size: 13.5px; }

/* ══════════════════════════════════════
   EMPLOYEE DETAIL
   ══════════════════════════════════════ */
.emp-detail-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); overflow: hidden; box-shadow: var(--shadow-sm); }
.emp-detail-header { background: var(--surface2); padding: 20px 24px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--border); }
.emp-av-lg { width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; color: #0f1117; flex-shrink: 0; }
.emp-hdr-name { font-size: 16px; font-weight: 700; color: var(--text); }
.emp-hdr-sub { font-size: 12.5px; color: var(--text3); margin-top: 4px; }
.emp-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); overflow-x: auto; padding: 0 20px; background: var(--surface2); }
.etab { padding: 11px 16px; font-size: 12.5px; font-weight: 500; color: var(--text2); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; transition: all var(--ease); }
.etab:hover { color: var(--text); }
.etab.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.emp-tab-body { padding: 22px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.ifl { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; }
.ifv { font-size: 13px; color: var(--text); }
.ifv.empty { color: var(--text3); font-style: italic; font-size: 12px; }
.info-section-title { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); margin: 20px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* ══════════════════════════════════════
   SOURCE / STATUS TAGS
   ══════════════════════════════════════ */
.src-tag { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: 10.5px; font-weight: 700; margin-top: 2px; }
.src-direct { background: rgba(22,163,74,0.1); color: var(--accent2); }
.src-interview { background: var(--blue-dim); color: var(--blue); }
.status-hired { background: rgba(22,163,74,0.1); color: var(--accent2); }
.status-rejected { background: var(--red-dim); color: var(--red); }
.status-draft { background: var(--bg4); color: var(--text2); }
.status-offer-rejected { background: var(--amber-dim); color: var(--amber); }
.status-scheduled { background: var(--blue-dim); color: var(--blue); }

/* ══════════════════════════════════════
   PORTAL CARD
   ══════════════════════════════════════ */
.portal-card { background: var(--bg3); border: 1px solid var(--border2); border-radius: var(--r); padding: 14px 16px; margin-bottom: 14px; }
.portal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.portal-title { font-size: 13px; font-weight: 600; color: var(--text); }
.portal-sub { font-size: 11.5px; color: var(--text3); line-height: 1.5; }
.portal-perms { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: none; }
.portal-perms.show { display: block; }
.portal-perm-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.portal-perm-item { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text2); }
.ppi-check { color: var(--accent); font-size: 11px; font-weight: 700; }

/* ══════════════════════════════════════
   PERM TABLE (Role module)
   ══════════════════════════════════════ */
.pscroll { max-height: 360px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--r); }
.pt2 { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.pt2 th { padding: 8px 10px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); background: var(--surface2); border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); }
.pt2 th:first-child { text-align: left; min-width: 130px; }
.pt2 td { padding: 7px 10px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: center; }
.pt2 td:first-child { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--text); }
.pt2 tr:last-child td { border-bottom: none; }
.pt2 tr:hover td { background: var(--bg3); }
.pg-row td { background: var(--surface2) !important; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); padding: 5px 10px; }
.na-c { color: var(--text3); font-size: 10px; }
.tg { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 7px; margin-bottom: 14px; }
.tcard { border: 1px solid var(--border2); border-radius: var(--r); padding: 9px 11px; cursor: pointer; transition: all var(--ease); background: var(--bg3); }
.tcard:hover { border-color: var(--border3); background: var(--bg4); }
.tcard.sel { border-color: var(--accent); background: var(--accent3); }
.tcard-name { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.tcard-desc { font-size: 10.5px; color: var(--text3); }

/* ══════════════════════════════════════
   ROLE CARDS
   ══════════════════════════════════════ */
.rc-list { display: flex; flex-direction: column; gap: 10px; }
.rc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 15px 18px; display: flex; align-items: center; gap: 14px; transition: all var(--ease); box-shadow: var(--shadow-sm); }
.rc:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.rc-av { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.rc-info { flex: 1; min-width: 0; }
.rc-name { font-size: 14px; font-weight: 600; color: var(--text); }
.rc-meta { font-size: 11.5px; color: var(--text3); margin-top: 2px; }
.rc-right { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }

/* ══════════════════════════════════════
   UTILITY
   ══════════════════════════════════════ */
.emp-id-badge { font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--accent-dim); border: 1px solid rgba(22,163,74,0.15); padding: 2px 7px; border-radius: 4px; }
.text-muted { color: var(--text3); }
.text-accent { color: var(--accent); }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.fw-600 { font-weight: 600; }
.mb-0 { margin-bottom: 0; }
.mt-10 { margin-top: 10px; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Responsive */
@media (max-width: 768px) {
  .fg-2, .fg-3, .fg-4 { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { width: 100%; }
  .settings-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}






/* Container full width */
/* Match full container */
.select2-container {
    width: 100% !important;
}

/* Main box */
.select2-container--default .select2-selection--single {
    height: 42px !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;

    background-color: #f0f1f6 !important; /* 🔥 MATCH INPUT BG */
    
    display: flex !important;
    align-items: center !important;
    padding: 0 12px !important;
}

/* Text */
.select2-container--default .select2-selection__rendered {
    padding-left: 0 !important;
    color: #495057 !important;
}

/* Placeholder */
.select2-container--default .select2-selection__placeholder {
    color: #6c757d !important;
}

/* Arrow */
.select2-container--default .select2-selection__arrow {
    height: 100% !important;
    right: 10px !important;
}

/* Focus */
.select2-container--default.select2-container--focus .select2-selection--single {
    background-color: #f0f1f6 !important; /* keep same on focus */
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,.18) !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    background-color: #f0f1f6 !important;
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,.18) !important;
}
/* Dropdown option hover */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #2563eb !important; /* your green color */
    color: #fff !important;
}

/* Optional: normal option hover (for better UX consistency) */
.select2-container--default .select2-results__option:hover {
    background-color: #2563eb !important;
    color: #fff !important;
}

/* Tooltip box */
/* wrapper */
.custom-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   DASHBOARD / WIDGET COMPONENTS  (token-based, reusable app-wide)
   White-paper aesthetic: hairline borders, soft cards, muted labels,
   bold numbers, tiny trend chips, thin charts.
   ═══════════════════════════════════════════════════════════ */

/* Responsive widget grids */
.dg { display: grid; gap: 14px; }
.dg-6 { grid-template-columns: repeat(6, 1fr); }
.dg-5 { grid-template-columns: repeat(5, 1fr); }
.dg-4 { grid-template-columns: repeat(4, 1fr); }
.dg-3 { grid-template-columns: repeat(3, 1fr); }
.dg-2 { grid-template-columns: repeat(2, 1fr); }
.dg-span2 { grid-column: span 2; }
.dg-section { margin-bottom: 16px; }
@media (max-width: 1180px) {
  .dg-6, .dg-5 { grid-template-columns: repeat(3, 1fr); }
  .dg-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .dg-6, .dg-5, .dg-4, .dg-3, .dg-2 { grid-template-columns: 1fr; }
  .dg-span2 { grid-column: auto; }
}

/* KPI tile */
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 5px;
  min-width: 0;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.kpi:hover { border-color: var(--border2); box-shadow: var(--shadow); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kpi-ico {
  width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}
.kpi-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text3);
}
.kpi-value {
  font-size: 28px; font-weight: 800; color: var(--text);
  line-height: 1.1; letter-spacing: -.03em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.kpi-sub { font-size: 11.5px; color: var(--text3); margin-top: 1px; }
.kpi-trend {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 9999px;
  white-space: nowrap;
}
.kpi-trend.up   { color: var(--accent2); background: var(--accent-dim); }
.kpi-trend.down { color: var(--red);     background: var(--red-dim); }
.kpi-trend.flat { color: var(--text2);   background: var(--bg3); }
.kpi-spark { margin-top: 6px; height: 34px; }

/* Generic widget card */
.dcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dcard-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.dcard-title {
  font-size: 12.5px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.dcard-title .ico { font-size: 14px; }
.dcard-link { font-size: 11.5px; font-weight: 600; color: var(--accent2); text-decoration: none; white-space: nowrap; }
.dcard-link:hover { text-decoration: underline; }
.dcard-body { padding: 14px 16px; }
.dcard-body.flush { padding: 4px 0; }

/* List rows (dues, projects, leaves, etc.) */
.dlist-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.dlist-row:last-child { border-bottom: none; }
.dlist-av {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text2);
  background: var(--bg3); border: 1px solid var(--border);
}
.dlist-main { flex: 1; min-width: 0; }
.dlist-name { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlist-meta { font-size: 11px; color: var(--text3); margin-top: 1px; }
.dlist-right { text-align: right; flex-shrink: 0; }
.dlist-amount { font-size: 12.5px; font-weight: 700; color: var(--text); }

/* Status chip / pill */
.dchip {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 9999px;
  background: var(--bg3); color: var(--text2);
}
.dchip-dot { width: 6px; height: 6px; border-radius: 50%; }

/* Funnel / progress bars */
.dfunnel-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.dfunnel-lbl { font-size: 11.5px; color: var(--text2); width: 92px; flex-shrink: 0; }
.dfunnel-track { flex: 1; height: 8px; border-radius: 9999px; background: var(--bg3); overflow: hidden; }
.dfunnel-fill { height: 100%; border-radius: 9999px; transition: width .5s ease; }
.dfunnel-val { font-size: 11.5px; font-weight: 700; color: var(--text); width: 28px; text-align: right; flex-shrink: 0; }

/* Chart wrapper */
.dchart { padding: 14px 16px; }
.dchart-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.dlegend { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text2); }
.ddot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Quick-action button */
.dbtn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  text-decoration: none; color: var(--text); font-size: 12px; font-weight: 600;
  transition: border-color var(--ease), background var(--ease); white-space: nowrap;
}
.dbtn:hover { border-color: var(--accent); background: var(--accent-dim); }
.dbtn-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--red); color: #fff; border-radius: 9999px;
  font-size: 10px; font-weight: 800; min-width: 16px; height: 16px; padding: 0 4px;
}
.dactions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Section heading + empty state */
.dsec-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text3); margin: 0 0 10px;
}
.dempty { color: var(--text3); font-size: 12px; padding: 14px; text-align: center; font-style: italic; }

/* ═══════════════════════════════════════════════════════════
   POPUP POLISH — toasts (toastr) + consistent dropdowns
   ═══════════════════════════════════════════════════════════ */
#toast-container > div {
  font-family: var(--font); border-radius: var(--r) !important;
  box-shadow: var(--shadow-lg) !important; opacity: 1 !important;
  padding: 14px 16px 14px 46px !important; font-size: 13px; font-weight: 500;
  background-size: 18px !important; background-position: 16px center !important;
  border: 1px solid var(--border2);
}
#toast-container > .toast-success { background-color: #ffffff !important; color: var(--accent-text) !important; border-left: 3px solid var(--accent); }
#toast-container > .toast-error   { background-color: #ffffff !important; color: var(--red-text) !important;    border-left: 3px solid var(--red); }
#toast-container > .toast-info    { background-color: #ffffff !important; color: var(--blue-text) !important;   border-left: 3px solid var(--blue); }
#toast-container > .toast-warning { background-color: #ffffff !important; color: var(--amber-text) !important;  border-left: 3px solid var(--amber); }
[data-theme="dark"] #toast-container > div { background-color: var(--surface) !important; color: var(--text) !important; }
.toast-title { font-weight: 700; }
.toast-progress { background: var(--accent) !important; opacity: .4 !important; }

/* ═══════════════════════════════════════════════════════════
   AESTHETIC COMPONENTS — empty states, avatars, segmented control
   ═══════════════════════════════════════════════════════════ */

/* Empty state */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 56px 24px; }
.empty-state .es-ico {
  width: 66px; height: 66px; border-radius: 50%; background: var(--bg3);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--text3);
}
.empty-state .es-ico i { font-size: 30px; }
.empty-state .es-title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state .es-sub { font-size: 13px; color: var(--text3); max-width: 380px; margin: 0 auto 18px; line-height: 1.6; }

/* Avatar (initials) */
.av {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--accent);
  text-transform: uppercase; letter-spacing: .01em; overflow: hidden;
}
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-xs { width: 24px; height: 24px; font-size: 10px; }
.av-sm { width: 28px; height: 28px; font-size: 11px; }
.av-lg { width: 44px; height: 44px; font-size: 16px; }
.av-soft { background: var(--accent-dim); color: var(--accent2); }
.av.hue-1 { background: #6366f1; } .av.hue-2 { background: #0891b2; } .av.hue-3 { background: #db2777; }
.av.hue-4 { background: #d97706; } .av.hue-5 { background: #16a34a; } .av.hue-6 { background: #7c3aed; }
.av-stack { display: inline-flex; }
.av-stack .av { border: 2px solid var(--surface); margin-left: -8px; }
.av-stack .av:first-child { margin-left: 0; }

/* Segmented control (tabs / Board–List toggles) */
.seg { display: inline-flex; background: var(--bg3); border: 1px solid var(--border); border-radius: 11px; padding: 3px; gap: 2px; }
.seg-item {
  padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 500;
  color: var(--text2); cursor: pointer; border: none; background: transparent;
  transition: all var(--ease); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.seg-item:hover { color: var(--text); }
.seg-item.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); font-weight: 600; }
.seg-item i { font-size: 15px; }

/* tooltip box */
.custom-tip::after {
    content: attr(data-title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);

    background: #f0f1f6; /* same as your inputs */
    color: #333;

    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;

    white-space: nowrap;
    opacity: 0;
    pointer-events: none;

    transition: all 0.2s ease;

    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* arrow */
.custom-tip::before {
    content: "";
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%);

    border: 6px solid transparent;
    border-top-color: #f0f1f6;

    opacity: 0;
    transition: all 0.2s ease;
}

/* show on hover */
.custom-tip:hover::after,
.custom-tip:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.custom-tip:hover i {
    color: #16a34a;
}



/* Hover */
.account-highlight:hover {
    border-color: #2563eb;
    background: #ecf3fd;
    color: #2563eb;
}


