/* ══════════════════════════════════════════
   WARM MODERN — HR Portal VortexGames
   Lucide Icons + Rich UI
   ══════════════════════════════════════════ */

:root {
  --bg: #F5F2ED;
  --s1: #FFFFFF;
  --s2: #FAF8F5;
  --s3: #F0EDE7;

  --b1: #E8E3DB;
  --b2: #D8D2C8;

  --t1: #1C1917;
  --t2: #57534E;
  --t3: #A8A29E;

  --ac: #C2532A;
  --ac2: #A8461F;
  --ac-light: #FDF2EE;
  --ac-mid: #F5DDD4;

  --gr: #1A7A45;
  --gr-bg: #ECFDF3;
  --am: #B45309;
  --am-bg: #FFF8EB;
  --ro: #BE3A3A;
  --ro-bg: #FEF2F2;
  --bl: #1D6FB5;
  --bl-bg: #EFF6FF;
  --ol: #5F7D63;

  --sidebar-bg: #1C1917;
  --sidebar-t1: #FAFAF9;
  --sidebar-t2: #A8A29E;
  --sidebar-t3: #78716C;
  --sidebar-b1: #292524;
  --sidebar-hover: #292524;
  --sidebar-act: rgba(194,83,42,.2);

  --sw: 260px;
  --r: 12px;
  --rs: 8px;

  --or: #D97706;
  --or-bg: #FFF8EB;
  --bg1: #FFFFFF;
  --bg2: #FAF8F5;
  --bg3: #F0EDE7;
  --brd: #E8E3DB;
  --br: #E8E3DB;
  --accent: #C2532A;

  --sh-sm: 0 1px 2px rgba(0,0,0,.05);
  --sh-md: 0 4px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --sh-lg: 0 16px 48px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--t1);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ac-mid); color: var(--t1); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--b2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--t3); }

/* ── SIDEBAR ── */
.sb {
  width: var(--sw);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sb-logo {
  padding: 24px 22px 20px;
  border-bottom: 1px solid var(--sidebar-b1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #E8632B, #F09E6A);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(232,99,43,.35);
}

.logo-mark svg { width: 20px; height: 20px; stroke-width: 2; color: #fff; }

.logo-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--sidebar-t1);
}

.logo-sub {
  font-size: 10px;
  color: var(--sidebar-t3);
  text-transform: uppercase;
  letter-spacing: .8px;
  font-weight: 500;
}

.sb-nav { padding: 16px 10px; flex: 1; }

.ng-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sidebar-t3);
  padding: 16px 12px 6px;
}

.ni {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--sidebar-t2);
  font-size: 13px;
  font-weight: 450;
  transition: all .15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  margin-bottom: 1px;
  font-family: 'DM Sans', sans-serif;
}

.ni:hover {
  background: var(--sidebar-hover);
  color: var(--sidebar-t1);
}

.ni.act {
  background: var(--sidebar-act);
  color: #F09E6A;
  font-weight: 600;
}

.ni-icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: .7;
}

.ni.act .ni-icon { opacity: 1; }
.ni:hover .ni-icon { opacity: 1; }

.ni-icon svg { width: 16px; height: 16px; stroke-width: 1.8; }

.sb-footer {
  padding: 16px 22px;
  border-top: 1px solid var(--sidebar-b1);
  font-size: 11px;
  color: var(--sidebar-t3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}

.sb-footer .logout-btn {
  background: none;
  border: 1px solid var(--sidebar-b1);
  color: var(--sidebar-t3);
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  transition: all .15s;
  font-weight: 500;
  display: flex; align-items: center; gap: 5px;
}

.sb-footer .logout-btn svg { width: 13px; height: 13px; stroke-width: 1.8; }

.sb-footer .logout-btn:hover {
  color: #FCA5A5;
  border-color: rgba(252,165,165,.3);
  background: rgba(252,165,165,.06);
}

/* Role badge */
.role-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  vertical-align: middle;
}
.role-hr { background: rgba(194,83,42,.25); color: #F5A88A; }
.role-ceo { background: rgba(168,139,250,.25); color: #C4B5FD; }
.role-lead { background: rgba(59,130,246,.25); color: #93C5FD; }
.role-employee { background: rgba(34,197,94,.2); color: #86EFAC; }
.role-finance { background: rgba(234,179,8,.25); color: #FDE047; }
.role-recruiter { background: rgba(236,72,153,.25); color: #F9A8D4; }

/* ── CANDIDATE SIDE PANEL ── */
.cand-panel-overlay { position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.35);z-index:900;backdrop-filter:blur(2px); }
.cand-panel { position:fixed;top:0;left:0;right:0;width:100vw;height:100vh;background:var(--bg2);z-index:901;display:flex;flex-direction:column; }
.cand-panel-header { padding:16px 20px;border-bottom:1px solid var(--b1);display:flex;justify-content:space-between;align-items:center;flex-shrink:0; }
.cand-panel-body { padding:20px;overflow-y:auto;flex:1; }
.cp-section { margin-bottom:20px; }
.cp-section-ttl { font-size:13px;font-weight:600;margin-bottom:8px;color:var(--t2); }
.cp-field { margin-bottom:10px; }
.cp-field label { display:block;font-size:11px;color:var(--t3);margin-bottom:3px;font-weight:500; }
.cp-timeline { border-left:2px solid var(--b1);padding-left:14px;margin-left:6px; }
.cp-timeline-item { position:relative;margin-bottom:10px;font-size:12px; }
.cp-timeline-item::before { content:'';position:absolute;left:-19px;top:4px;width:8px;height:8px;border-radius:50%;background:var(--accent); }
.cp-file-item { display:flex;align-items:center;justify-content:space-between;padding:6px 10px;background:var(--bg3);border-radius:8px;margin-bottom:6px;font-size:12px; }
.cp-comment { background:var(--bg3);border-radius:10px;padding:10px 14px;margin-bottom:8px; }
.cp-comment-meta { font-size:11px;color:var(--t3);margin-bottom:4px; }
.cp-comment-text { font-size:13px;color:var(--t1); }
.cp-drop-zone { border:2px dashed var(--b1);border-radius:10px;padding:20px;text-align:center;font-size:12px;color:var(--t3);cursor:pointer;transition:border-color .15s,background .15s; }
.cp-drop-zone.drag-over { border-color:var(--accent);background:var(--ac-light); }

/* ── MAIN ── */
.main {
  margin-left: var(--sw);
  width: calc(100% - var(--sw));
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

.topbar {
  background: var(--s1);
  border-bottom: 1px solid var(--b1);
  padding: 0 32px;
  height: 58px;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
  flex-shrink: 0;
}

.bc { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t3); min-width: 0; flex: 1; }
.bc-sep { color: var(--b2); font-size: 11px; flex-shrink: 0; }
.bc > span:first-child { flex-shrink: 0; }
.bc-cur {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.si { font-size: 11px; color: var(--t3); display: flex; align-items: center; gap: 6px; transition: all .3s; font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.si.saved { color: var(--gr); }
.si-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--b2); transition: background .3s; }
.si.saved .si-dot { background: var(--gr); }

.content { padding: 28px 32px; flex: 1; min-width: 0; }

/* ── APP LOADING ── */
body:not(.ready) .main { opacity: 0; }
body.ready .main { opacity: 1; transition: opacity .25s ease; }

/* ── PAGES ── */
.page { display: none; min-width: 0; }
.page.act { display: block; animation: fu .22s ease; }
@keyframes fu { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── PAGE HEADER ── */
.ph {
  margin-bottom: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  max-width: 100%;
}
.ph > .btn { flex-shrink: 0; }
.ph > div:first-child { min-width: 0; overflow: hidden; }

.ph-lbl {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ac);
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}

.ph-ttl {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.5px;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 10px;
}

.ph-ttl .ph-icon { color: var(--ac); display: flex; }
.ph-ttl .ph-icon svg { width: 24px; height: 24px; stroke-width: 2; }

.ph-dsc { font-size: 13.5px; color: var(--t2); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--rs);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  border: none;
  letter-spacing: .1px;
}

.btn svg { width: 15px; height: 15px; stroke-width: 2; }

.btn-pr {
  background: var(--ac);
  color: #fff;
  border: 1px solid var(--ac);
  box-shadow: 0 1px 3px rgba(194,83,42,.2), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn-pr:hover {
  background: var(--ac2);
  border-color: var(--ac2);
  box-shadow: 0 3px 10px rgba(194,83,42,.25);
  transform: translateY(-1px);
}

.btn-gh {
  background: var(--s1);
  color: var(--t2);
  border: 1px solid var(--b2);
  box-shadow: var(--sh-sm);
}
.btn-gh:hover {
  background: var(--s2);
  color: var(--t1);
  border-color: var(--t3);
  box-shadow: var(--sh-md);
}

.btn-dn {
  background: var(--s1);
  color: var(--ro);
  border: 1px solid rgba(190,58,58,.2);
}
.btn-dn:hover {
  background: var(--ro-bg);
  border-color: rgba(190,58,58,.35);
}

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-sm svg { width: 13px; height: 13px; }

/* ── CARD ── */
.card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--sh-sm);
  transition: box-shadow .15s;
}

.card:hover { box-shadow: var(--sh-md); }

.card-ttl {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-ttl svg { width: 16px; height: 16px; stroke-width: 1.8; color: var(--ac); }

/* Global fallback for all Lucide icons (lowest specificity) */
:where(svg.lucide) { width: 14px; height: 14px; stroke-width: 1.8; vertical-align: -3px; }

/* ── GRIDS ── */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.g4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

/* ── TAGS ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .2px;
  border: 1px solid transparent;
}

.tg  { background: var(--s3); color: var(--t2); border-color: var(--b1); }
.tgr { background: var(--gr-bg); color: var(--gr); border-color: rgba(26,122,69,.15); }
.ta  { background: var(--am-bg); color: var(--am); border-color: rgba(180,83,9,.12); }
.tro { background: var(--ro-bg); color: var(--ro); border-color: rgba(190,58,58,.12); }
.tb  { background: var(--bl-bg); color: var(--bl); border-color: rgba(29,111,181,.12); }
.tp  { background: var(--ac-light); color: var(--ac); border-color: rgba(194,83,42,.12); }
.tag svg { width: 12px; height: 12px; stroke-width: 2; }

/* ── TABLE ── */
.twrap { background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r); overflow-x: auto; overflow-y: hidden; width: 100%; -webkit-overflow-scrolling: touch; }
.admin-tab-content { width: 100%; min-width: 0; }
table { width: 100%; border-collapse: collapse; }
.twrap > table { width: auto; min-width: 100%; }
.t { background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r); overflow: hidden; }
.t th:first-child { border-radius: 0; }
.t th:last-child { border-radius: 0; }
.twrap > .t { border: none; border-radius: 0; }

th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--t3);
  padding: 11px 14px;
  border-bottom: 2px solid var(--b1);
  background: var(--s2);
  white-space: nowrap;
}
th:first-child { border-radius: 8px 0 0 0; }
th:last-child  { border-radius: 0 8px 0 0; }

td {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--t1);
  border-bottom: 1px solid var(--b1);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--s2); }

/* ── INPUTS ── */
.inp {
  background: var(--s1);
  border: 1px solid var(--b2);
  border-radius: var(--rs);
  color: var(--t1);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 9px 14px;
  outline: none;
  width: 100%;
  transition: all .15s;
}
.inp:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(194,83,42,.08);
}
.inp::placeholder { color: var(--t3); }

select.inp {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A8A29E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

textarea.inp { resize: vertical; }

/* .fi — alternative input class used in admin modals */
.fi {
  background: var(--s1);
  border: 1px solid var(--b2);
  border-radius: var(--rs);
  color: var(--t1);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  padding: 9px 14px;
  width: 100%;
  transition: all .15s;
}
.fi:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(194,83,42,.08);
  outline: none;
}
.fi::placeholder { color: var(--t3); }
select.fi {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A8A29E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}

/* ── FORM ── */
.fr  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fr3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.fg  { margin-bottom: 12px; }
.fl  { display: block; font-size: 11px; font-weight: 600; color: var(--t2); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }

/* ── MODAL ── */
.mo {
  position: fixed; inset: 0;
  background: rgba(28,25,23,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
}
.mo.open { display: flex; }

/* mo-overlay wrapper pattern: overlay wraps inner .mo as dialog box */
.mo-overlay {
  position: fixed; inset: 0;
  background: rgba(28,25,23,.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none; align-items: center; justify-content: center;
}
.mo-overlay > .mo {
  position: static; display: block; inset: auto;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 18px;
  width: 100%; max-width: 560px; max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--sh-lg);
  animation: fu .2s ease;
  backdrop-filter: none;
}

.mo-box {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 18px;
  width: 100%; max-width: 560px; max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--sh-lg);
  animation: fu .2s ease;
  position: relative;
  z-index: 1;
}

.mo-hd {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: space-between;
}

.mo-ttl, .mo-hd > span {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px; font-weight: 700; color: var(--t1);
}

.mo-x {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--s2);
  border: 1px solid var(--b1);
  color: var(--t3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all .15s;
}
.mo-x svg { width: 15px; height: 15px; stroke-width: 2; }
.mo-x:hover { background: var(--s3); color: var(--t1); border-color: var(--b2); }

/* .mo-close — alternative close button in admin modals */
.mo-close {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--s2);
  border: 1px solid var(--b1);
  color: var(--t3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: all .15s;
  line-height: 1;
}
.mo-close:hover { background: var(--s3); color: var(--t1); border-color: var(--b2); }

/* .mo-bg — click overlay behind modal box */
.mo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* .mo.show — alternative to .mo.open */
.mo.show { display: flex; }

.mo-bd { padding: 22px; }
.mo-ft {
  padding: 14px 22px;
  border-top: 1px solid var(--b1);
  display: flex; justify-content: flex-end; gap: 8px;
  background: var(--s2);
  border-radius: 0 0 18px 18px;
}

/* ── EMPLOYEE PROFILE ── */
.emp-header {
  display: flex; align-items: center; gap: 24px;
  padding: 24px; background: var(--s1); border-radius: var(--r);
  border: 1px solid var(--b1); margin-bottom: 16px;
}
.emp-photo-wrap { position: relative; flex-shrink: 0; }
.emp-photo {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--s3); display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 3px solid var(--b1);
}
.emp-photo img { width: 100%; height: 100%; object-fit: cover; }
.emp-photo svg { width: 36px; height: 36px; color: var(--t3); }
.emp-photo-btn {
  position: absolute; bottom: 0; right: -4px;
  width: 28px; height: 28px; padding: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.emp-photo-btn svg { width: 14px; height: 14px; }
.emp-name { font-size: 20px; font-weight: 700; color: var(--t1); font-family: 'Bricolage Grotesque', sans-serif; }
.emp-meta { font-size: 13px; color: var(--t2); margin-top: 4px; line-height: 1.8; }
.emp-meta .tag { vertical-align: middle; }

.emp-tab { margin-top: 0; }
.emp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  padding: 20px 24px; background: var(--s1);
  border-radius: var(--r); border: 1px solid var(--b1);
}
.emp-field { margin-bottom: 4px; }
.emp-fl { font-size: 11px; color: var(--t3); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 2px; }
.emp-fv { font-size: 13.5px; color: var(--t1); font-weight: 500; }
.emp-fv.muted { color: var(--t3); font-style: italic; }

.emp-section-ttl {
  font-size: 13px; font-weight: 700; color: var(--t1);
  text-transform: uppercase; letter-spacing: .5px;
  padding: 14px 0 8px; grid-column: 1/-1;
  border-bottom: 1px solid var(--b1); margin-bottom: 4px;
}

.doc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--s1);
  border: 1px solid var(--b1); border-radius: var(--rs); margin-bottom: 6px;
}
.doc-row .doc-name { font-size: 13px; font-weight: 500; color: var(--t1); }
.doc-row .doc-meta { font-size: 11px; color: var(--t3); }
.doc-upload-area {
  border: 2px dashed var(--b2); border-radius: var(--r); padding: 24px;
  text-align: center; color: var(--t3); font-size: 13px; cursor: pointer;
  transition: all .15s;
}
.doc-upload-area:hover { border-color: var(--ac); color: var(--ac); }

/* ── POLICY ── */
.pol-wrap {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.pol-tb {
  padding: 10px 18px;
  background: var(--s2);
  border-bottom: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: space-between;
}

.pol-mode { font-size: 11px; color: var(--t3); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.pol-mode svg { width: 12px; height: 12px; stroke-width: 2; }

.pol-body {
  padding: 24px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--t1);
  min-height: 180px;
  font-family: 'DM Sans', sans-serif;
}

.pol-body[contenteditable]:focus {
  outline: none;
  background: rgba(194,83,42,.015);
}

/* ── POLICY RICH CONTENT ── */
.pol-body h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--t1);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--b1);
  display: flex; align-items: center; gap: 8px;
}
.pol-body h3:first-child { margin-top: 0; }
.pol-body h3 svg { width: 18px; height: 18px; stroke-width: 2; color: var(--ac); flex-shrink: 0; }

.pol-body h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
  margin: 20px 0 8px;
}

.pol-body p {
  margin: 0 0 10px;
  color: var(--t2);
  font-size: 13.5px;
  line-height: 1.8;
}

.pol-body ul, .pol-body ol {
  margin: 0 0 14px;
  padding-left: 20px;
}
.pol-body li {
  font-size: 13.5px;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 3px;
}
.pol-body li strong { color: var(--t1); }

.pol-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 13px;
}
.pol-body table th {
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--t3);
  padding: 10px 14px;
  background: var(--s2);
  border-bottom: 2px solid var(--b1);
}
.pol-body table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--b1);
  color: var(--t1);
  font-size: 13px;
  vertical-align: top;
}
.pol-body table tr:last-child td { border-bottom: none; }
.pol-body table tr:hover td { background: var(--s2); }

.pol-body .info-box {
  background: var(--bl-bg);
  border: 1px solid rgba(29,111,181,.15);
  border-left: 3px solid var(--bl);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--bl);
  line-height: 1.7;
}

.pol-body .warn-box {
  background: var(--am-bg);
  border: 1px solid rgba(180,83,9,.12);
  border-left: 3px solid var(--am);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--am);
  line-height: 1.7;
}

.pol-body .danger-box {
  background: var(--ro-bg);
  border: 1px solid rgba(190,58,58,.12);
  border-left: 3px solid var(--ro);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 13px;
  color: var(--ro);
  line-height: 1.7;
}

.pol-body .step {
  display: flex;
  gap: 14px;
  margin: 16px 0;
  align-items: flex-start;
}
.pol-body .step-num {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--ac), #F09E6A);
  color: #fff;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.pol-body .step-body { flex: 1; }
.pol-body .step-body h4 { margin-top: 2px; }

/* ── STAT MINI ── */
.sm {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 20px;
  box-shadow: var(--sh-sm);
  position: relative;
  overflow: hidden;
}

.sm::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ac), #F09E6A);
  border-radius: var(--r) var(--r) 0 0;
}

.sm-v {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--t1);
  line-height: 1;
  margin-bottom: 6px;
}

.sm-l {
  font-size: 11px;
  color: var(--t3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── BBAR ── */
.bb-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bb-l { width: 140px; font-size: 12.5px; color: var(--t2); flex-shrink: 0; font-weight: 500; }
.bb-tr { flex: 1; height: 8px; background: var(--s3); border-radius: 6px; overflow: hidden; }
.bb-fill { height: 100%; border-radius: 6px; }
.bb-v { width: 65px; text-align: right; font-size: 12px; font-weight: 700; color: var(--t1); flex-shrink: 0; }

/* ── ORG ── */
.org-node {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 14px 18px;
  text-align: center;
  min-width: 130px;
  cursor: default;
  box-shadow: var(--sh-sm);
  transition: box-shadow .15s;
}
.org-node:hover { box-shadow: var(--sh-md); }

.org-node.root {
  background: linear-gradient(145deg, var(--ac-light), #fff);
  border-color: rgba(194,83,42,.2);
}

.on-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 13px; font-weight: 700; color: var(--t1); margin-bottom: 2px;
}
.on-role { font-size: 11px; color: var(--t2); font-weight: 500; }
.on-sub { font-size: 10px; color: var(--t3); margin-top: 3px; }
.org-v { width: 2px; height: 20px; background: var(--b2); margin: 0 auto; }

/* ── TIMELINE ── */
.tl { padding-left: 22px; border-left: 2px solid var(--b1); }
.tl-item { position: relative; padding-bottom: 18px; padding-left: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: -27px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ac); border: 2px solid var(--bg); }
.tl-dot.gr { background: var(--gr); }
.tl-dot.am { background: var(--am); }

/* ── PBAR ── */
.pbar { height: 6px; background: var(--s3); border-radius: 6px; overflow: hidden; }
.pbar-f { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--ac), #F09E6A); transition: width .4s; }

/* ── EMPTY ── */
.empty {
  padding: 44px 24px;
  text-align: center;
  color: var(--t3);
  font-size: 13px;
  border: 2px dashed var(--b2);
  border-radius: var(--r);
  background: var(--s2);
}
.empty-ic { font-size: 28px; margin-bottom: 10px; display: flex; justify-content: center; }
.empty-ic svg { width: 32px; height: 32px; stroke-width: 1.5; color: var(--t3); }

/* ── DIVIDER ── */
.dv { height: 1px; background: var(--b1); margin: 22px 0; }
.sg { margin-bottom: 22px; }
.flex-b { display: flex; align-items: center; justify-content: space-between; }
.flex-g { display: flex; align-items: center; gap: 8px; }

/* ── RISK BADGE ── */
.risk-low { color: var(--gr); font-size: 12px; font-weight: 700; }
.risk-mid { color: var(--am); font-size: 12px; font-weight: 700; }
.risk-hi  { color: var(--ro); font-size: 12px; font-weight: 700; }

/* ── TABS ── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--b1);
  margin-bottom: 22px;
  gap: 0;
}
.tab {
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--t3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  background: none;
  border-left: none; border-right: none; border-top: none;
  margin-bottom: -2px;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 6px;
}
.tab svg { width: 15px; height: 15px; stroke-width: 1.8; }
.tab:hover { color: var(--t1); }
.tab.act, .tab.active { color: var(--ac); border-bottom-color: var(--ac); font-weight: 600; }

/* ── PERSON CARD ── */
.person-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 18px;
  cursor: pointer;
  transition: all .18s;
  box-shadow: var(--sh-sm);
}
.person-card:hover {
  border-color: var(--b2);
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

/* ── LOGIN ── */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--sidebar-bg);
  position: relative;
}

.login-page::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(232,99,43,.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(240,158,106,.06) 0%, transparent 50%);
}

.login-box {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: 22px;
  padding: 48px 44px;
  width: 100%; max-width: 420px;
  box-shadow: var(--sh-lg);
  position: relative;
  z-index: 1;
}

.login-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 36px; justify-content: center;
}

.login-ttl {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px; font-weight: 700;
  text-align: center; margin-bottom: 32px; color: var(--t1);
}

.login-field { margin-bottom: 18px; }
.login-field label {
  display: block; font-size: 12px; font-weight: 600; color: var(--t2);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px;
}
.login-field input {
  width: 100%; padding: 12px 16px;
  background: var(--s2); border: 1px solid var(--b2);
  border-radius: 10px; color: var(--t1); font-size: 14px;
  font-family: 'DM Sans', sans-serif; outline: none; transition: all .15s;
}
.login-field input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(194,83,42,.08);
  background: var(--s1);
}

.login-btn {
  width: 100%; padding: 13px;
  background: var(--ac); color: #fff;
  border: 1px solid var(--ac);
  border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all .18s; margin-top: 12px;
  box-shadow: 0 2px 10px rgba(194,83,42,.25), inset 0 1px 0 rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-btn:hover {
  background: var(--ac2); border-color: var(--ac2);
  box-shadow: 0 6px 20px rgba(194,83,42,.3);
  transform: translateY(-1px);
}

.login-error {
  color: var(--ro); font-size: 12px; text-align: center;
  margin-top: 14px; display: none; font-weight: 500;
}

/* ── CALENDAR ── */
.cal-nav {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 16px;
}
.cal-month-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 18px; font-weight: 700; color: var(--t1);
  min-width: 200px; text-align: center;
}
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
  background: var(--b1); border: 1px solid var(--b1); border-radius: var(--rs);
  overflow: hidden;
}
.cal-header {
  background: var(--s2); padding: 8px; text-align: center;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--t3);
}
.cal-cell {
  background: var(--s1); min-height: 90px; padding: 6px;
  cursor: pointer; transition: background .1s;
}
.cal-cell:hover { background: var(--s2); }
.cal-cell.empty { background: var(--s2); cursor: default; }
.cal-cell.today { background: var(--ac-light); }
.cal-cell.weekend { background: var(--s2); }
.cal-day {
  font-size: 12px; font-weight: 600; color: var(--t1); margin-bottom: 4px;
}
.cal-cell.today .cal-day { color: var(--ac); font-weight: 800; }
.cal-ev {
  font-size: 10px; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-ev.bday { background: var(--ac-light); color: var(--ac); }
.cal-ev.holiday { background: var(--gr-bg); color: var(--gr); }
.cal-ev.corp { background: var(--am-bg); color: var(--am); }
.cal-ev.custom { background: var(--bl-bg); color: var(--bl); }
.cal-ev.vacation { background: #DCFCE7; color: #16A34A; }
.cal-ev.sick { background: #FEF3C7; color: #D97706; }
.cal-ev.more { background: var(--s3); color: var(--t3); }
.cal-today-item {
  padding: 8px 0; border-bottom: 1px solid var(--b1); font-size: 13px;
}
.cal-today-item:last-child { border-bottom: none; }
.cal-today-type {
  display: inline-block; font-size: 11px; font-weight: 600; margin-right: 8px;
}
.cal-today-type.birthday { color: var(--ac); }

/* ── KANBAN ── */
.kb-board {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 16px;
  min-height: 400px;
}
.kb-col {
  flex: 0 0 200px; background: var(--s2); border-radius: var(--r);
  border: 1px solid var(--b1); display: flex; flex-direction: column;
  transition: background .15s;
}
.kb-col.drag-over { background: var(--ac-light); border-color: var(--ac); }
.kb-col-hd {
  padding: 10px 12px; display: flex; align-items: center;
  justify-content: space-between; border-radius: var(--r) var(--r) 0 0;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--t1);
}
.kb-count {
  background: var(--s3); padding: 2px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 700; color: var(--t2);
}
.kb-cards { padding: 8px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.kb-card {
  background: var(--s1); border: 1px solid var(--b1); border-radius: var(--rs);
  padding: 10px 12px; cursor: grab; transition: box-shadow .15s;
  box-shadow: var(--sh-sm);
}
.kb-card:hover { box-shadow: var(--sh-md); }
.kb-card:active { cursor: grabbing; }
.kb-card-name { font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 2px; }
.kb-card-meta { font-size: 11px; color: var(--t3); }

/* ── KNOWLEDGE BASE ── */
.kb-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 16px;
  min-height: 500px;
}
.kb-tree {
  background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r);
  padding: 8px 0; overflow-y: auto; max-height: 70vh;
}
.kb-node {
  padding: 8px 14px; font-size: 13px; color: var(--t2);
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: all .1s; border-left: 3px solid transparent;
}
.kb-node:hover { background: var(--s2); color: var(--t1); }
.kb-node.active {
  background: var(--ac-light); color: var(--ac);
  border-left-color: var(--ac); font-weight: 600;
}
.kb-node svg { width: 14px; height: 14px; flex-shrink: 0; }
.kb-content { min-width: 0; }

/* ── COMM BOARD ── */
.cb-node { cursor: grab; }
.cb-node:hover rect { stroke-width: 3; }

/* ── VACANCY CARD ── */
.vac-card { transition: all .18s; }
.vac-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }

/* ── TOPBAR ICONS ── */
.topbar-icon-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: none; border: 1px solid transparent;
  cursor: pointer; color: var(--t3);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s; position: relative;
}
.topbar-icon-btn svg { width: 18px; height: 18px; stroke-width: 1.8; }
.topbar-icon-btn:hover { background: var(--s2); border-color: var(--b1); color: var(--t1); }

/* ── NOTIFICATION DROPDOWN ── */
.notif-wrap { position: relative; }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--ro); color: #fff;
  font-size: 9px; font-weight: 800; min-width: 16px; height: 16px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  padding: 0 4px; pointer-events: none;
}
.notif-dropdown {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  width: 380px; max-height: 480px; overflow-y: auto;
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--r); box-shadow: var(--sh-lg);
  z-index: 300;
}
.notif-dropdown.open { display: block; animation: fu .15s ease; }
.notif-hd {
  padding: 14px 16px; border-bottom: 1px solid var(--b1);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; font-weight: 700; color: var(--t1);
  font-family: 'Bricolage Grotesque', sans-serif;
  position: sticky; top: 0; background: var(--s1); z-index: 1;
}
.notif-list { max-height: 400px; overflow-y: auto; }
.notif-item {
  padding: 12px 16px; border-bottom: 1px solid var(--b1);
  cursor: pointer; transition: background .1s;
}
.notif-item:hover { background: var(--s2); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--ac-light); }
.notif-item.unread:hover { background: var(--ac-mid); }
.notif-item-ttl { font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 2px; }
.notif-item-body { font-size: 12px; color: var(--t2); line-height: 1.5; }
.notif-item-time { font-size: 10px; color: var(--t3); margin-top: 4px; }

/* ── SEARCH OVERLAY (Cmd+K) ── */
.search-overlay {
  position: fixed; inset: 0; background: rgba(28,25,23,.5);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 500; display: flex; align-items: flex-start; justify-content: center;
  padding-top: 18vh;
}
.search-box {
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: 16px; width: 100%; max-width: 600px;
  box-shadow: var(--sh-lg); overflow: hidden;
  animation: fu .15s ease;
}
.search-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--b1);
}
.search-input {
  flex: 1; border: none; outline: none; background: none;
  font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--t1);
}
.search-input::placeholder { color: var(--t3); }
.search-kbd {
  padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 600;
  background: var(--s3); color: var(--t3); border: 1px solid var(--b2);
  font-family: 'DM Sans', sans-serif;
}
.search-results { max-height: 400px; overflow-y: auto; }
.search-hint {
  padding: 32px; text-align: center; color: var(--t3); font-size: 13px;
}
.search-cat {
  padding: 8px 18px 4px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; color: var(--t3);
  background: var(--s2); border-top: 1px solid var(--b1);
}
.search-item {
  padding: 10px 18px; cursor: pointer; transition: background .1s;
  border-bottom: 1px solid var(--b1);
}
.search-item:hover { background: var(--ac-light); }
.search-item:last-child { border-bottom: none; }
.search-item-ttl { font-size: 13px; font-weight: 600; color: var(--t1); }
.search-item-sub { font-size: 11px; color: var(--t3); }

/* ── AUDIT LOG ── */
.audit-filters {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  align-items: end;
}

/* ── BULK ACTION BAR ── */
.bulk-bar {
  position: fixed; bottom: 0; left: var(--sw); right: 0;
  background: var(--sidebar-bg); color: var(--sidebar-t1);
  padding: 12px 32px; display: flex; align-items: center;
  justify-content: space-between; z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  animation: fu .15s ease;
}
.bulk-info { font-size: 14px; font-weight: 600; }
.bulk-bar .btn-gh { background: transparent; color: var(--sidebar-t1); border-color: var(--sidebar-b1); }
.bulk-bar .btn-gh:hover { background: var(--sidebar-hover); }
.bulk-bar .btn-dn { background: transparent; border-color: rgba(252,165,165,.3); color: #FCA5A5; }
.bulk-bar .btn-dn:hover { background: rgba(252,165,165,.06); }
.bulk-th { width: 36px; text-align: center; }

/* ── SKELETON CARDS ── */
.skel-card {
  background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r);
  padding: 32px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: var(--sh-sm);
}
.skel-card svg { width: 40px; height: 40px; color: var(--t3); opacity: .5; stroke-width: 1.5; }
.skel-ttl { font-size: 15px; font-weight: 700; color: var(--t1); font-family: 'Bricolage Grotesque', sans-serif; }
.skel-desc { font-size: 12.5px; color: var(--t3); line-height: 1.5; }

/* ══════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════ */
.dash-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; margin-bottom: 8px;
}
.dash-greeting { display: flex; align-items: center; gap: 16px; }
.dash-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: var(--ac-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--ac); border: 2px solid var(--ac-mid); overflow: hidden; flex-shrink: 0;
}
.dash-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-avatar svg { width: 28px; height: 28px; }
.dash-hello {
  font-size: 22px; font-weight: 700; color: var(--t1);
  font-family: 'Bricolage Grotesque', sans-serif;
}
.dash-user-meta { font-size: 13px; color: var(--t2); margin-top: 2px; }
.dash-actions-wrap { position: relative; }
.dash-actions-dropdown {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r);
  box-shadow: var(--sh-md); min-width: 220px; z-index: 100; padding: 6px 0;
}
.dash-actions-dropdown button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 16px; border: none; background: none;
  cursor: pointer; font-size: 13px; color: var(--t1); text-align: left;
}
.dash-actions-dropdown button:hover { background: var(--s3); }
.dash-actions-dropdown button svg { width: 16px; height: 16px; color: var(--t3); }

.dash-grid { display: grid; grid-template-columns: 1fr 360px; gap: 16px; }
.dash-col { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

.dash-widget { transition: opacity .2s; }
.dash-widget.hidden-widget { display: none !important; }

/* Absence balance bars */
.dash-bal-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.dash-bal-label {
  font-size: 12.5px; color: var(--t2); min-width: 90px; font-weight: 500;
}
.dash-bal-bar {
  flex: 1; height: 8px; background: var(--s3); border-radius: 4px; overflow: hidden;
}
.dash-bal-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.dash-bal-fill.vac { background: var(--bl); }
.dash-bal-fill.sick { background: var(--am); }
.dash-bal-fill.doff { background: var(--gr); }
.dash-bal-nums {
  font-size: 12px; color: var(--t3); min-width: 60px; text-align: right;
}

/* Mini calendar */
.dash-mini-week {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center;
}
.dash-day-hdr { font-size: 11px; color: var(--t3); font-weight: 600; padding: 4px 0; }
.dash-day {
  font-size: 13px; padding: 8px 4px; border-radius: 8px; cursor: default;
  color: var(--t2); position: relative;
}
.dash-day.today { background: var(--ac); color: #fff; font-weight: 700; border-radius: 50%; }
.dash-day.has-event::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--ac);
}
.dash-day.today.has-event::after { background: #fff; }

.dash-event-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--b1);
  font-size: 13px; color: var(--t2);
}
.dash-event-item:last-child { border-bottom: none; }
.dash-event-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}

/* Absent today */
.dash-absent-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--b1); font-size: 13px;
}
.dash-absent-item:last-child { border-bottom: none; }
.dash-absent-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--s3);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.dash-absent-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-absent-avatar svg { width: 16px; height: 16px; color: var(--t3); }

/* Tasks */
.dash-task-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--b1); gap: 8px;
}
.dash-task-item:last-child { border-bottom: none; }
.dash-task-info { flex: 1; min-width: 0; }
.dash-task-name { font-size: 13px; font-weight: 500; color: var(--t1); }
.dash-task-meta { font-size: 12px; color: var(--t3); }
.dash-task-actions { display: flex; gap: 6px; flex-shrink: 0; }
.dash-tasks-tab { transition: color .15s, border-color .15s; }
.dash-tasks-tab:hover { color: var(--t1) !important; }

#pg-comms-board table a { color: var(--ac); text-decoration: none; font-weight: 500; }
#pg-comms-board table a:hover { text-decoration: underline; }

#pg-salary table a { color: var(--ac); text-decoration: none; font-weight: 500; }
#pg-salary table a:hover { text-decoration: underline; }

/* Probation */
#pg-probation table a { color: var(--ac); text-decoration: none; font-weight: 500; }
#pg-probation table a:hover { text-decoration: underline; }
.prob-score-btn { transition: all 0.15s; }
.prob-score-active { background: var(--ac) !important; color: #fff !important; border-color: var(--ac) !important; }
.prob-comp-item { transition: background 0.15s; }
.prob-comp-item:hover { background: var(--b1); border-radius: 8px; }

/* Strategy timeline */
.sf-timeline { position: relative; padding-left: 24px; }
.sf-timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--b2); }
.sf-tl-item { position: relative; padding: 8px 0 16px; }
.sf-tl-item:last-child { padding-bottom: 0; }
.sf-tl-dot { position: absolute; left: -21px; top: 12px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--bg); box-shadow: 0 0 0 2px var(--b2); }
.sf-tl-item.completed .sf-tl-dot { box-shadow: 0 0 0 2px var(--gr); }
.sf-tl-item.in_progress .sf-tl-dot { box-shadow: 0 0 0 2px var(--ac); }
.sf-tl-content { background: var(--b1); border-radius: 8px; padding: 12px 16px; }

/* Goals progress */
.dash-goal-item { padding: 10px 0; border-bottom: 1px solid var(--b1); }
.dash-goal-item:last-child { border-bottom: none; }
.dash-goal-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.dash-goal-name { font-size: 13px; font-weight: 500; color: var(--t1); }
.dash-goal-pct { font-size: 12px; font-weight: 600; color: var(--ac); }
.dash-goal-bar { height: 6px; background: var(--s3); border-radius: 3px; overflow: hidden; }
.dash-goal-fill { height: 100%; background: var(--ac); border-radius: 3px; transition: width .3s; }

/* Quick links */
.dash-links-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.dash-link {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: var(--rs); background: var(--s2);
  text-decoration: none; color: var(--t2); font-size: 11.5px;
  text-align: center; transition: background .15s; position: relative;
  border: 1px solid transparent;
}
.dash-link:hover { background: var(--ac-light); border-color: var(--ac-mid); color: var(--ac); }
.dash-link svg { width: 20px; height: 20px; }
.dash-link-del {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--ro-bg); color: var(--ro);
  border: none; cursor: pointer; display: none; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1;
}
.dash-link:hover .dash-link-del { display: flex; }

/* Onboarding checklist */
.dash-ob-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--b1); font-size: 13px;
}
.dash-ob-item:last-child { border-bottom: none; }
.dash-ob-check {
  width: 20px; height: 20px; border-radius: 4px; border: 2px solid var(--b2);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .15s;
}
.dash-ob-check.done { background: var(--gr); border-color: var(--gr); color: #fff; }
.dash-ob-text { color: var(--t2); }
.dash-ob-text.done { text-decoration: line-through; color: var(--t3); }

/* Team */
.dash-team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px;
}
.dash-team-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: var(--rs); background: var(--s2);
  text-align: center; cursor: pointer; transition: background .15s;
}
.dash-team-card:hover { background: var(--ac-light); }
.dash-team-card .dash-absent-avatar { width: 36px; height: 36px; }
.dash-team-name { font-size: 12px; font-weight: 500; color: var(--t1); }
.dash-team-pos { font-size: 11px; color: var(--t3); }

/* My requests */
.dash-req-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid var(--b1); font-size: 13px;
}
.dash-req-item:last-child { border-bottom: none; }
.dash-req-status {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
}
.dash-req-status.pending { background: var(--am-bg); color: var(--am); }
.dash-req-status.approved { background: var(--gr-bg); color: var(--gr); }
.dash-req-status.rejected { background: var(--ro-bg); color: var(--ro); }

/* Meetings */
.dash-meeting-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--b1); font-size: 13px;
}
.dash-meeting-item:last-child { border-bottom: none; }

/* ══════════════════════════════════════════
   NEWS CARDS
   ══════════════════════════════════════════ */
.news-card {
  background: var(--s1); border: 1px solid var(--b1); border-radius: var(--r);
  padding: 20px 24px; box-shadow: var(--sh-sm); margin-bottom: 12px;
}
.news-card.pinned { border-left: 3px solid var(--ac); }
.news-card-hd { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.news-card-title {
  font-size: 16px; font-weight: 700; color: var(--t1);
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: pointer;
}
.news-card-title:hover { color: var(--ac); }
.news-card-meta { font-size: 12px; color: var(--t3); margin-bottom: 10px; }
.news-card-body { font-size: 13.5px; color: var(--t2); line-height: 1.7; }
.news-card-body p { margin-bottom: 8px; }
.news-card-footer {
  display: flex; align-items: center; gap: 16px; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--b1);
}
.news-reaction-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 16px; border: 1px solid var(--b1);
  background: var(--s2); cursor: pointer; font-size: 13px; transition: all .15s;
}
.news-reaction-btn:hover { border-color: var(--ac-mid); background: var(--ac-light); }
.news-reaction-btn.active { border-color: var(--ac); background: var(--ac-light); }
.news-reaction-cnt { font-size: 12px; color: var(--t3); font-weight: 600; }
.news-comment-btn {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; font-size: 12.5px; color: var(--t3); border: none; background: none;
  padding: 4px 8px; border-radius: 6px;
}
.news-comment-btn:hover { color: var(--ac); background: var(--ac-light); }

/* News detail */
.news-detail-body {
  font-size: 14px; color: var(--t2); line-height: 1.8; margin-bottom: 20px;
}
.news-comments { margin-top: 20px; }
.news-cmt {
  padding: 12px 0; border-bottom: 1px solid var(--b1);
  display: flex; gap: 10px;
}
.news-cmt-avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--s3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.news-cmt-avatar svg { width: 16px; height: 16px; color: var(--t3); }
.news-cmt-body { flex: 1; }
.news-cmt-author { font-size: 12px; font-weight: 600; color: var(--t1); }
.news-cmt-date { font-size: 11px; color: var(--t3); margin-left: 8px; }
.news-cmt-text { font-size: 13px; color: var(--t2); margin-top: 4px; line-height: 1.5; }
.news-cmt-form {
  display: flex; gap: 8px; align-items: flex-start; margin-top: 16px;
}
.news-cmt-form textarea { flex: 1; min-height: 60px; }

/* Dashboard settings toggles */
.dash-setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px solid var(--b1);
}
.dash-setting-row:last-child { border-bottom: none; }
.dash-setting-label { font-size: 13px; color: var(--t1); font-weight: 500; }
.dash-toggle {
  position: relative; width: 40px; height: 22px; cursor: pointer;
}
.dash-toggle input { opacity: 0; position: absolute; width: 0; height: 0; }
.dash-toggle-track {
  position: absolute; inset: 0; background: var(--b2); border-radius: 11px;
  transition: background .2s;
}
.dash-toggle input:checked + .dash-toggle-track { background: var(--ac); }
.dash-toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  background: #fff; border-radius: 50%; transition: transform .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.dash-toggle input:checked ~ .dash-toggle-thumb { transform: translateX(18px); }

.dash-empty {
  text-align: center; padding: 20px; color: var(--t3); font-size: 13px;
}

/* ══════════════════════════════════════════
   ONBOARDING V2
   ══════════════════════════════════════════ */

.ob-stage-bar {
  display: flex; gap: 4px; background: var(--bg2); border-radius: 10px; padding: 4px;
}
.ob-stage-btn {
  flex: 1; padding: 8px 12px; border: none; background: none; border-radius: 8px;
  font-size: 12px; font-weight: 500; color: var(--t3); cursor: pointer; transition: all .2s;
}
.ob-stage-btn:hover { background: var(--bg); color: var(--t1); }
.ob-stage-btn.act { background: var(--ac); color: white; font-weight: 600; }
.ob-stage-btn.done { color: var(--gr); }
.ob-stage-btn.done.act { background: var(--gr); color: white; }

.ob-filter-btn.act { background: var(--ac) !important; color: white !important; }

.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .g5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .g5 { grid-template-columns: repeat(2, 1fr); } }

.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .g3 { grid-template-columns: 1fr; } }

/* 360 Feedback */
.f360-score-btn.btn-pr { background: var(--ac); color: white; }
.f360-score-btn { min-width: 40px; text-align: center; }

/* L&D */
.lnd-hidden { display: none; }
.lnd-content h3, .lnd-content h4 { margin: 12px 0 6px; }
.lnd-content ul, .lnd-content ol { margin: 6px 0; padding-left: 24px; }
.lnd-content li { margin: 3px 0; }
.lnd-content table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 12.5px; }
.lnd-content th, .lnd-content td { padding: 6px 10px; border: 1px solid var(--b2); text-align: left; }
.lnd-content th { background: var(--b1); font-weight: 600; }

/* ── ENHANCED ABSENCE BALANCE ── */
.bal-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.bal-section {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  padding: 16px;
}
.bal-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--t3);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.bal-big {
  font-size: 28px;
  font-weight: 700;
  color: var(--t1);
  font-family: 'Bricolage Grotesque', sans-serif;
  line-height: 1;
  margin-bottom: 4px;
}
.bal-sub {
  font-size: 12px;
  color: var(--t3);
}
.bal-progress-multi {
  height: 8px;
  background: var(--b1);
  border-radius: 4px;
  margin: 10px 0 6px;
  position: relative;
  overflow: hidden;
}
.bal-progress-multi .bar-accrued {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--ac-light, rgba(194,83,42,.2));
  border-radius: 4px;
  transition: width .3s;
}
.bal-progress-multi .bar-used {
  position: absolute;
  top: 0; left: 0; height: 100%;
  background: var(--ac);
  border-radius: 4px;
  transition: width .3s;
}
.bal-detail {
  font-size: 11.5px;
  color: var(--t3);
  display: flex;
  justify-content: space-between;
  margin-top: 3px;
}

/* ── ALERT WARN (absence request modal) ── */
.alert-warn {
  background: #fef3cd;
  color: #856404;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-warn::before {
  content: '\26A0';
  font-size: 16px;
}

/* ── ORG POPUP ── */
#org-popup {
  animation: orgPopIn .15s ease-out;
}
@keyframes orgPopIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tag for doc link */
.tag.tbl {
  background: rgba(59,130,246,.1);
  color: #2563eb;
  text-decoration: none;
}
.tag.tbl:hover {
  background: rgba(59,130,246,.2);
}

/* ══════════════════════════════════════════
   SETTINGS PAGE
   ══════════════════════════════════════════ */
.set-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--b1);
  margin-bottom: 24px;
  overflow-x: auto;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.set-tabs::-webkit-scrollbar { display: none; }

.set-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 11px;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--t3);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.set-tab:hover { color: var(--t1); }
.set-tab.act { color: var(--ac); border-bottom-color: var(--ac); font-weight: 600; }
.set-tab svg { width: 15px; height: 15px; stroke-width: 1.8; flex-shrink: 0; }

.set-card {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  min-width: 0;
  overflow: hidden;
}

.set-panel { display: none; padding: 28px 32px; }
.set-panel.act { display: block; }

.set-section {
  margin-bottom: 28px;
}
.set-section:last-child { margin-bottom: 0; }

.set-section-ttl {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--t1);
  margin-bottom: 4px;
}
.set-section-dsc {
  font-size: 12.5px;
  color: var(--t3);
  margin-bottom: 16px;
}

.set-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
  min-width: 0;
}
.set-row > div { min-width: 0; }
.set-row-1 {
  margin-bottom: 14px;
}

.set-field-lbl {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.set-field-hint {
  font-size: 11.5px;
  color: var(--t3);
  margin-top: 4px;
}

.set-divider {
  border: none;
  border-top: 1px solid var(--b1);
  margin: 24px 0;
}

.set-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--rs);
  font-size: 12.5px;
  line-height: 1.5;
  margin-bottom: 18px;
}
.set-info-banner svg { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; margin-top: 1px; }
.set-info-banner.warn { background: var(--am-bg); color: var(--am); border: 1px solid rgba(180,83,9,.15); }
.set-info-banner.info { background: var(--bl-bg); color: var(--bl); border: 1px solid rgba(29,111,181,.15); }
.set-info-banner.ok { background: var(--gr-bg); color: var(--gr); border: 1px solid rgba(26,122,69,.15); }

.set-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--b1);
}
.set-toggle-row:last-child { border-bottom: none; }
.set-toggle-info {
  flex: 1;
}
.set-toggle-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--t1);
}
.set-toggle-dsc {
  font-size: 12px;
  color: var(--t3);
  margin-top: 2px;
}

.set-sys-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}
.set-sys-card {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--rs);
  padding: 16px;
}
.set-sys-card-lbl {
  font-size: 11px;
  font-weight: 600;
  color: var(--t3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.set-sys-card-val {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--t1);
}
.set-sys-card-sub {
  font-size: 11.5px;
  color: var(--t3);
  margin-top: 2px;
}

/* ══════════════════════════════════════════
   HAMBURGER MENU BUTTON
   ══════════════════════════════════════════ */
.sb-toggle {
  display: none;
  background: none;
  border: 1px solid var(--b1);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  color: var(--t2);
  flex-shrink: 0;
}
.sb-toggle svg { width: 20px; height: 20px; stroke-width: 2; }
.sb-toggle:hover { background: var(--s3); color: var(--t1); }

/* ══════════════════════════════════════════
   SIDEBAR OVERLAY (mobile)
   ══════════════════════════════════════════ */
.sb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28,25,23,.5);
  z-index: 99;
}

/* ══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .sb-toggle { display: flex; }

  .sb {
    transform: translateX(-100%);
    transition: transform .25s ease;
  }
  body.sb-open .sb { transform: translateX(0); }
  body.sb-open .sb-overlay { display: block; }

  .main {
    margin-left: 0;
    width: 100%;
  }

  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px; }

  .ph { flex-direction: column; gap: 12px; }

  .g2 { grid-template-columns: 1fr; }
  .set-row { grid-template-columns: 1fr; }
  .set-sys-grid { grid-template-columns: 1fr; }

  /* Tables: horizontal scroll */
  .card table,
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Modals: full width on mobile */
  .mo-box, .mo-overlay > .mo { max-width: 95vw; }

  /* Kanban: scroll */
  .kanban-board { overflow-x: auto; }

  .bc-sep, .bc > span:first-child { display: none; }

  .bal-enhanced { grid-template-columns: 1fr 1fr; }

  .dash-links-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
   ══════════════════════════════════════════ */
@media (max-width: 600px) {
  .topbar { padding: 0 12px; height: 50px; min-height: 50px; }
  .content { padding: 16px 12px; }

  .bc-cur { font-size: 13px; }

  /* Page header: stack vertically */
  .ph { gap: 10px; }
  .ph .btn { width: 100%; justify-content: center; }

  /* Cards: reduce padding */
  .card { padding: 14px; }

  /* Forms: single column */
  .g2, .fr { grid-template-columns: 1fr; }

  /* Modals: near full screen */
  .mo-box, .mo-overlay > .mo {
    max-width: 100vw;
    max-height: 95vh;
    border-radius: 12px 12px 0 0;
    margin: auto 0 0;
  }

  /* Balance cards */
  .bal-enhanced { grid-template-columns: 1fr; }

  /* Dashboard quick links */
  .dash-links-grid { grid-template-columns: 1fr 1fr; }
  .dash-team-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }

  /* Sidebar full width on mobile */
  .sb { width: 280px; }

  /* Notifications dropdown */
  .notif-dropdown { right: -60px; width: 300px; }

  /* Tabs: scrollable */
  .tabs, .set-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar, .set-tabs::-webkit-scrollbar { display: none; }
  .tab, .set-tab { white-space: nowrap; flex-shrink: 0; }

  /* Employee profile */
  .emp-header { flex-direction: column; text-align: center; gap: 12px; }
}

/* ── STAFF GROUPED LIST ── */
.staff-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.staff-group {
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  overflow: hidden;
}
.staff-group-hdr {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--t3);
  padding: 11px 16px;
  margin: 0;
  background: var(--s2);
  border-bottom: 1px solid var(--b1);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.staff-group-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  letter-spacing: 0;
  text-transform: none;
}
.staff-group-body {
  display: flex;
  flex-direction: column;
}
.staff-row {
  display: grid;
  grid-template-columns: 28px 1.6fr 1.2fr 1fr .9fr .7fr .9fr .9fr 44px;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--b1);
  color: var(--t1);
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background .12s;
}
.staff-groups:not(.with-bulk) .staff-row {
  grid-template-columns: 1.6fr 1.2fr 1fr .9fr .7fr .9fr .9fr 44px;
}
.staff-groups:not(.with-bulk) .staff-cell-bulk {
  display: none;
}
.staff-row:last-child {
  border-bottom: 0;
}
.staff-row:hover {
  background: var(--s2);
}
.staff-row:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: -2px;
}
.staff-cell {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.staff-cell-name strong {
  font-weight: 600;
  color: var(--t1);
}
.staff-cell-sub {
  display: block;
  font-size: 11px;
  color: var(--t3);
  font-weight: 400;
  margin-top: 2px;
}
.staff-cell-date {
  font-size: 12px;
  color: var(--t2);
}
.staff-cell-act {
  display: flex;
  justify-content: flex-end;
}
.staff-cell-bulk {
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-cell-bulk input[type="checkbox"] {
  cursor: pointer;
}
@media (max-width: 1100px) {
  .staff-group-body { overflow-x: auto; }
  .staff-row { min-width: 880px; }
}
