/* Pernias Dashboard — shared styles
   Palette: cream bg, white cards, brown primary, gold accent
   ============================================================ */
.pd-root, .pd-root * { box-sizing: border-box; }
.pd-root {
  --p-brown-900:#3A2511;
  --p-brown-800:#4A2F18;
  --p-brown-700:#5C3D1E;   /* primary */
  --p-brown-600:#6F4A26;
  --p-brown-500:#82592F;
  --p-gold-700:#9C7128;
  --p-gold-600:#B5852F;
  --p-gold-500:#C4913A;    /* accent */
  --p-gold-400:#D6A658;
  --p-gold-300:#E6C088;
  --p-gold-100:#F4E4BC;
  --p-cream:#F8F4EF;
  --p-cream-2:#F1EBE2;
  --p-cream-3:#EDE6DA;
  --p-white:#FFFFFF;
  --p-ink-900:#1A1A1A;
  --p-ink-800:#2E2E2E;
  --p-ink-700:#3D3B35;
  --p-ink-500:#6B6B6B;
  --p-ink-400:#9A968A;
  --p-ink-300:#C9C6BC;
  --p-ink-200:#E4E2DA;
  --p-ink-100:#F2F1EC;
  --p-hairline:#ECE6DB;

  --p-success:#2D9B6F;
  --p-success-bg:#E1F4EA;
  --p-warning:#E8A020;
  --p-warning-bg:#FBEFD6;
  --p-danger:#E53935;
  --p-danger-bg:#FBE1E0;
  --p-info:#3B82C4;
  --p-info-bg:#DEEAF5;
  --p-purple:#7A4FB5;
  --p-purple-bg:#ECE2F7;

  font-family: "Be Vietnam Pro", "Inter", system-ui, -apple-system, sans-serif;
  color: var(--p-ink-900);
  -webkit-font-smoothing: antialiased;
  font-size: 13px;
  line-height: 1.45;
  background: var(--p-cream);
  width: 1280px;
  min-height: 100%;
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 56px 1fr;
}
.pd-root.collapsed { grid-template-columns: 64px 1fr; }

/* ============ SIDEBAR ============ */
.pd-sidebar {
  grid-row: 1 / span 2;
  background: var(--p-brown-900);
  color: #EAD9BD;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  align-self: start;
  overflow: hidden;
  border-right: 1px solid rgba(0,0,0,0.10);
}
.pd-logo {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pd-logo .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(140deg, var(--p-gold-400), var(--p-gold-700));
  display: flex; align-items: center; justify-content: center;
  color: var(--p-brown-900);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}
.pd-logo .name {
  font-weight: 700; color: #F5E7CE; font-size: 15px; letter-spacing: -0.005em;
}
.pd-logo .sub {
  font-size: 10px; color: rgba(245,231,206,0.55); letter-spacing: 0.10em; text-transform: uppercase; margin-top: 1px;
}
.pd-logo-text { display: flex; flex-direction: column; line-height: 1.1; }

.pd-nav { flex: 1; overflow-y: auto; padding: 12px 10px 24px; }
.pd-nav::-webkit-scrollbar { width: 4px; }
.pd-nav::-webkit-scrollbar-thumb { background: rgba(245,231,206,0.18); border-radius: 2px; }

.pd-group-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(245,231,206,0.40); font-weight: 600;
  padding: 14px 10px 6px;
}
.pd-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 6px;
  color: rgba(245,231,206,0.72); font-size: 13px; font-weight: 500;
  cursor: pointer; position: relative;
  margin: 1px 0;
}
.pd-nav-item:hover { background: rgba(255,255,255,0.04); color: #F5E7CE; }
.pd-nav-item .ico { flex: none; width: 18px; height: 18px; color: currentColor; }
.pd-nav-item .label { flex: 1; }
.pd-nav-item .chev { color: rgba(245,231,206,0.40); }
.pd-nav-item.active {
  background: linear-gradient(90deg, rgba(196,145,58,0.18), rgba(196,145,58,0.02));
  color: #F5E7CE;
}
.pd-nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 6px; bottom: 6px; width: 3px;
  background: var(--p-gold-500); border-radius: 0 3px 3px 0;
}
.pd-nav-item.parent-open { color: #F5E7CE; }

.pd-sub {
  margin: 2px 0 6px 26px;
  padding-left: 14px;
  border-left: 1px solid rgba(245,231,206,0.10);
  display: flex; flex-direction: column;
}
.pd-sub .pd-nav-item {
  padding: 6px 10px; font-size: 12.5px; font-weight: 500;
  color: rgba(245,231,206,0.60);
}
.pd-sub .pd-nav-item.active {
  background: rgba(196,145,58,0.16); color: #F5E7CE;
}
.pd-sub .pd-nav-item.active::before { display: none; }
.pd-sub .pd-nav-item .dot {
  width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5;
  margin-right: 2px;
}
.pd-sub .pd-nav-item.active .dot { background: var(--p-gold-500); opacity: 1; }

.pd-sidebar-foot {
  padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: rgba(245,231,206,0.55);
}
.pd-sidebar-foot .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--p-gold-500);
  box-shadow: 0 0 0 3px rgba(196,145,58,0.18);
}

/* ============ TOPBAR ============ */
.pd-topbar {
  grid-column: 2; grid-row: 1;
  background: var(--p-white);
  border-bottom: 1px solid var(--p-hairline);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  z-index: 5;
}
.pd-crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--p-ink-500); }
.pd-crumbs b { color: var(--p-ink-900); font-weight: 600; }
.pd-crumbs .sep { color: var(--p-ink-300); }
.pd-search {
  flex: 1; max-width: 340px;
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px; margin: 0 24px;
  background: var(--p-cream); border-radius: 6px;
  color: var(--p-ink-500); font-size: 13px;
  border: 1px solid transparent;
}
.pd-search input {
  background: transparent; border: 0; outline: none; flex: 1;
  font: inherit; color: var(--p-ink-700);
}
.pd-search kbd {
  font-family: inherit; font-size: 10px;
  padding: 2px 5px; border-radius: 3px;
  background: var(--p-white); color: var(--p-ink-500);
  border: 1px solid var(--p-ink-200);
  letter-spacing: 0.04em;
}
.pd-topbar-right { display: flex; align-items: center; gap: 8px; }
.pd-icon-btn {
  width: 36px; height: 36px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--p-ink-700); cursor: pointer; position: relative;
  background: transparent; border: 1px solid transparent;
}
.pd-icon-btn:hover { background: var(--p-cream); }
.pd-icon-btn .badge {
  position: absolute; top: 6px; right: 7px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--p-danger); color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--p-white);
}
.pd-user {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 4px 4px; border-radius: 999px;
  cursor: pointer; background: var(--p-cream);
}
.pd-user .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(140deg, var(--p-gold-400), var(--p-gold-700));
  display: flex; align-items: center; justify-content: center;
  color: var(--p-brown-900); font-weight: 700; font-size: 11px;
}
.pd-user .nm { font-size: 12.5px; font-weight: 600; line-height: 1.1; color: var(--p-ink-900); }
.pd-user .rl { font-size: 11px; color: var(--p-ink-500); }

/* ============ MAIN ============ */
.pd-main {
  grid-column: 2; grid-row: 2;
  padding: 24px 28px 40px;
  overflow-y: auto;
}
.pd-page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px; gap: 16px;
}
.pd-page-head h1 {
  margin: 0; font-size: 22px; font-weight: 700; color: var(--p-ink-900);
  letter-spacing: -0.01em; line-height: 1.2;
}
.pd-page-head .sub { font-size: 13px; color: var(--p-ink-500); margin-top: 4px; }
.pd-page-actions { display: flex; gap: 8px; align-items: center; }

.pd-btn {
  height: 34px; padding: 0 14px;
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 6px; border: 1px solid var(--p-ink-200);
  background: var(--p-white); color: var(--p-ink-800);
  font: inherit; font-weight: 600; font-size: 12.5px;
  cursor: pointer;
}
.pd-btn:hover { background: var(--p-cream); }
.pd-btn.primary { background: var(--p-brown-700); color: #F5E7CE; border-color: var(--p-brown-700); }
.pd-btn.primary:hover { background: var(--p-brown-800); }
.pd-btn.gold { background: var(--p-gold-500); color: var(--p-brown-900); border-color: var(--p-gold-500); }
.pd-btn.gold:hover { background: var(--p-gold-600); }
.pd-btn.ghost { background: transparent; border-color: transparent; color: var(--p-ink-700); }
.pd-btn.ghost:hover { background: var(--p-cream); }
.pd-btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }

.pd-card {
  background: var(--p-white);
  border: 1px solid var(--p-hairline);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pd-card-head {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--p-hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.pd-card-head h2 {
  margin: 0; font-size: 14px; font-weight: 700; color: var(--p-ink-900); letter-spacing: -0.005em;
}
.pd-card-head .meta { font-size: 12px; color: var(--p-ink-500); }
.pd-card-body { padding: 16px 20px 18px; }

/* Stat cards */
.pd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pd-stat {
  background: var(--p-white); border: 1px solid var(--p-hairline); border-radius: 8px;
  padding: 16px 18px; position: relative; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pd-stat .icon {
  position: absolute; right: 14px; top: 14px;
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.pd-stat .icon.gold { background: var(--p-gold-100); color: var(--p-gold-700); }
.pd-stat .icon.brown { background: var(--p-cream-2); color: var(--p-brown-700); }
.pd-stat .icon.success { background: var(--p-success-bg); color: var(--p-success); }
.pd-stat .icon.warn { background: var(--p-warning-bg); color: #B57A0F; }
.pd-stat .icon.danger { background: var(--p-danger-bg); color: var(--p-danger); }
.pd-stat .label {
  font-size: 12px; color: var(--p-ink-500); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.pd-stat .value {
  font-size: 28px; font-weight: 700; color: var(--p-ink-900);
  letter-spacing: -0.015em; margin: 6px 0 6px; line-height: 1;
  font-feature-settings: "tnum";
}
.pd-stat .value small { font-size: 14px; font-weight: 600; color: var(--p-ink-500); margin-left: 2px; }
.pd-stat .delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
}
.pd-stat .delta.up { color: var(--p-success); }
.pd-stat .delta.down { color: var(--p-danger); }
.pd-stat .delta.neutral { color: var(--p-ink-500); }
.pd-stat .delta .sep { color: var(--p-ink-300); margin: 0 4px; font-weight: 400; }
.pd-stat .delta .muted { color: var(--p-ink-500); font-weight: 500; }

/* Status pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px 3px 8px;
  border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  line-height: 1.4;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.success { background: var(--p-success-bg); color: #1F7351; }
.pill.warning { background: var(--p-warning-bg); color: #9A6A0E; }
.pill.danger  { background: var(--p-danger-bg);  color: #B9211D; }
.pill.info    { background: var(--p-info-bg);    color: #25608F; }
.pill.purple  { background: var(--p-purple-bg);  color: #5A3392; }
.pill.gold    { background: var(--p-gold-100);   color: var(--p-brown-800); }
.pill.muted   { background: var(--p-cream-2);    color: var(--p-ink-700); }

/* Tabs */
.pd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--p-hairline); }
.pd-tab {
  padding: 10px 14px 12px;
  font-size: 13px; font-weight: 600; color: var(--p-ink-500);
  border-bottom: 2px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: -1px;
}
.pd-tab:hover { color: var(--p-ink-900); }
.pd-tab.active { color: var(--p-brown-700); border-color: var(--p-gold-500); }
.pd-tab .count {
  font-size: 11px; padding: 1px 6px; border-radius: 999px;
  background: var(--p-cream-2); color: var(--p-ink-700); font-weight: 700;
}
.pd-tab.active .count { background: var(--p-gold-100); color: var(--p-brown-800); }

/* Tables */
.pd-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.pd-table thead th {
  text-align: left; padding: 10px 12px;
  font-size: 11px; font-weight: 700; color: var(--p-ink-500);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--p-hairline);
  background: var(--p-cream);
  white-space: nowrap;
}
.pd-table thead th:first-child { border-top-left-radius: 6px; padding-left: 16px; }
.pd-table thead th:last-child { border-top-right-radius: 6px; padding-right: 16px; }
.pd-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--p-hairline);
  color: var(--p-ink-800);
  vertical-align: middle;
}
.pd-table tbody td:first-child { padding-left: 16px; }
.pd-table tbody td:last-child { padding-right: 16px; }
.pd-table tbody tr:nth-child(even) td { background: rgba(248,244,239,0.5); }
.pd-table tbody tr:hover td { background: var(--p-cream); }
.pd-table .num { font-variant-numeric: tabular-nums; }
.pd-table .muted { color: var(--p-ink-500); }
.pd-table .name { font-weight: 600; color: var(--p-ink-900); }
.pd-table .dept { font-size: 11.5px; color: var(--p-ink-500); }

/* Avatar */
.av-sm {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; color: #fff;
  flex: none;
}

/* Action link */
.act-link { color: var(--p-brown-700); font-weight: 600; cursor: pointer; }
.act-link:hover { color: var(--p-brown-900); text-decoration: underline; }
.act-sep { color: var(--p-ink-300); margin: 0 6px; }

/* Section helpers */
.row-12 { display: grid; gap: 16px; }
.row-2c { grid-template-columns: 1fr 1fr; }
.row-3c { grid-template-columns: 2fr 1fr; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Hamburger toggle — hidden on desktop, shown ≤768px */
.pd-sidebar-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  color: var(--p-ink-700);
  align-items: center;
  justify-content: center;
  margin-right: 4px;
  flex: none;
  padding: 0;
}
.pd-sidebar-toggle:hover { background: var(--p-cream); }

/* Sidebar backdrop — hidden by default, shown when sidebar.open */
.pd-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
}
.pd-sidebar-backdrop.show { display: block; }

/* Container becomes fluid below 1280px (was hardcoded width: 1280px) */
@media (max-width: 1280px) {
  .pd-root { width: 100%; }
}

/* Tablet (≤1024px): narrower sidebar, single column for multi-col rows, 2-col stats */
@media (max-width: 1024px) {
  .pd-root { grid-template-columns: 220px 1fr; }
  .pd-main { padding: 20px 20px 32px; }
  .pd-search { max-width: 220px; margin: 0 12px; }
  .row-12.row-2c,
  .row-12.row-3c { grid-template-columns: 1fr; }
  .pd-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile (≤768px): sidebar overlay, single-column layout */
@media (max-width: 768px) {
  /* Show hamburger */
  .pd-sidebar-toggle { display: inline-flex; }

  /* Root grid → single column */
  .pd-root {
    grid-template-columns: 1fr;
    grid-template-rows: 56px 1fr;
    min-width: 0;
  }

  /* Sidebar → off-canvas overlay */
  .pd-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100vh;
    z-index: 999;
    transition: left 0.25s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.18);
  }
  .pd-sidebar.open { left: 0; }

  /* Topbar + main span column 1 */
  .pd-topbar {
    grid-column: 1;
    grid-row: 1;
    padding: 0 12px;
  }
  .pd-main {
    grid-column: 1;
    grid-row: 2;
    padding: 16px 12px 32px;
  }

  /* Compact topbar — hide breadcrumbs, search, user labels */
  .pd-crumbs { display: none; }
  .pd-search { display: none; }
  .pd-user > div { display: none; }
  .pd-user > span:last-child { display: none; }
  .pd-user { padding: 4px; }

  /* Page head — stack title and actions vertically */
  .pd-page-head {
    flex-direction: column;
    align-items: stretch;
  }
  .pd-page-head h1 { font-size: 20px; }
  .pd-page-actions { flex-wrap: wrap; }

  /* Stats → 2 columns */
  .pd-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pd-stat { padding: 12px 14px; }
  .pd-stat .value { font-size: 22px; }
  .pd-stat .icon { width: 28px; height: 28px; right: 10px; top: 10px; }

  /* Multi-col rows always single column */
  .row-12.row-2c,
  .row-12.row-3c { grid-template-columns: 1fr; }

  /* Tables → horizontal scroll inside their card body */
  .pd-card-body {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pd-table { min-width: 600px; }

  /* Roster (uses table-layout:fixed) needs more horizontal room */
  .pd-table[style*="table-layout:fixed"],
  .pd-table[style*="table-layout: fixed"] { min-width: 900px; }

  /* Card head: allow wrapping when too narrow */
  .pd-card-head {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Helper class — content can opt out on small screens */
  .hide-mobile { display: none !important; }
}

/* Small mobile (≤480px): single-column stats, smaller padding */
@media (max-width: 480px) {
  .pd-stats { grid-template-columns: 1fr; }
  .pd-page-head h1 { font-size: 18px; }
  .pd-main { padding: 14px 10px 28px; }
  .pd-card-body { padding: 14px; }
}

/* ============================================================
   ROSTER (hr-roster.html)
   Mirror of mockup di /home/bram/dashboard/page-roster.jsx
   ============================================================ */

/* Dept color palette — dipakai untuk chips, header group, cell shift */
.pd-root {
  --dept-tu-bg:#F5EDE0;  --dept-tu-fg:#5C3D1E;  --dept-tu-accent:#5C3D1E;
  --dept-mm-bg:#ECE2F7;  --dept-mm-fg:#5A3392;  --dept-mm-accent:#7A4FB5;
  --dept-sec-bg:#DDF0F0; --dept-sec-fg:#0E5E5E; --dept-sec-accent:#1A8A8A;
  --dept-ob-bg:#FBEFD6;  --dept-ob-fg:#9A6A0E;  --dept-ob-accent:#C4913A;
  --dept-dp-bg:#DEEAF5;  --dept-dp-fg:#25608F;  --dept-dp-accent:#3B82C4;
  --roster-today-bg:rgba(196,145,58,0.18);
  --roster-today-bg-soft:rgba(196,145,58,0.08);
  --roster-holiday-bg:rgba(229,57,53,0.10);
  --roster-holiday-bg-soft:rgba(229,57,53,0.05);
  --roster-off-bg:rgba(229,57,53,0.08);
  --roster-off-border:rgba(229,57,53,0.30);
  --roster-off-fg:#B9211D;
}

/* Department legend chips (di atas grid) */
.roster-dept-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--p-cream); border: 1px solid var(--p-hairline);
  font-size: 12px; font-weight: 600; color: var(--p-ink-800);
}
.roster-dept-chip .dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: currentColor; /* override by inline */
  display: inline-block; flex-shrink: 0;
}

/* Group header row di tbody */
.roster-dept-header td {
  background: var(--p-cream);
  padding: 8px 16px;
  border-top: 1px solid var(--p-hairline);
  border-bottom: 1px solid var(--p-hairline);
}
.roster-dept-header .inner {
  display: flex; align-items: center; gap: 10px;
}
.roster-dept-header .swatch {
  width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0;
  background: var(--dept-color, #6B6B6B);
}
.roster-dept-header .nm { font-weight: 700; font-size: 13px; color: var(--p-ink-900); }
.roster-dept-header .sub { font-size: 11.5px; color: var(--p-ink-500); }

/* Karyawan name cell (kolom kiri) */
.roster-karyawan-cell {
  display: flex; align-items: center; gap: 10px;
}
.roster-karyawan-cell .av-sm {
  width: 32px; height: 32px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: #fff;
  background: var(--dept-color, #6B6B6B);
}
.roster-karyawan-cell .info { min-width: 0; flex: 1; }
.roster-karyawan-cell .name {
  font-size: 13px; font-weight: 600; color: var(--p-ink-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.roster-karyawan-cell .role { font-size: 11.5px; color: var(--p-ink-500); }
.roster-karyawan-cell .role b { color: var(--p-ink-700); font-weight: 700; }

/* Header kolom hari */
.roster-th {
  text-align: center;
  border-left: 1px solid var(--p-hairline);
  padding: 10px 6px;
  color: var(--p-ink-500);
}
.roster-th .day-label {
  font-size: 11px; letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase;
}
.roster-th .day-num {
  font-size: 18px; font-weight: 700; margin-top: 2px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.roster-th .day-meta {
  font-size: 9.5px; font-weight: 600; margin-top: 3px;
  white-space: normal; line-height: 1.2;
}

.roster-th.is-today {
  background: var(--roster-today-bg);
  color: var(--p-brown-800);
}
.roster-th.is-today .day-meta {
  text-transform: uppercase; letter-spacing: 0.10em; color: var(--p-brown-800);
}
.roster-th.is-holiday {
  background: var(--roster-holiday-bg);
  color: var(--roster-off-fg);
}
.roster-th.is-holiday .day-meta { color: var(--roster-off-fg); }

/* Cell column (td) tints */
.roster-td {
  vertical-align: top;
  padding: 6px;
  border-left: 1px solid var(--p-hairline);
  cursor: pointer;
}
.roster-td.is-today   { background: var(--roster-today-bg-soft); }
.roster-td.is-holiday { background: var(--roster-holiday-bg-soft); }

/* Inner cell rendering — common box */
.roster-cell {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

/* Shift cell — colored by dept */
.roster-cell--shift {
  background: var(--cell-bg, var(--dept-tu-bg));
  color:      var(--cell-fg, var(--dept-tu-fg));
  border-left: 3px solid var(--cell-accent, var(--dept-tu-accent));
}
.roster-cell--shift .time {
  font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: -0.005em;
}
.roster-cell--shift .loc {
  font-size: 10.5px; opacity: 0.85; margin-top: 2px;
  display: flex; align-items: center; gap: 4px;
}

/* Empty add cell */
.roster-cell--empty {
  background: var(--p-cream);
  color: var(--p-ink-400);
  text-align: center;
  border: 1px dashed var(--p-ink-200);
}
.roster-td:hover .roster-cell--empty {
  background: var(--p-cream-2);
  color: var(--p-ink-700);
  border-color: var(--p-brown-700);
}

/* Day Off cell */
.roster-cell--off {
  background: var(--roster-off-bg);
  color: var(--roster-off-fg);
  border: 1px dashed var(--roster-off-border);
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
}
.roster-cell--off svg { color: var(--roster-off-fg); flex-shrink: 0; }

/* Dept color modifiers (untuk .roster-cell--shift) */
.roster-cell--tu  { --cell-bg: var(--dept-tu-bg);  --cell-fg: var(--dept-tu-fg);  --cell-accent: var(--dept-tu-accent); }
.roster-cell--mm  { --cell-bg: var(--dept-mm-bg);  --cell-fg: var(--dept-mm-fg);  --cell-accent: var(--dept-mm-accent); }
.roster-cell--sec { --cell-bg: var(--dept-sec-bg); --cell-fg: var(--dept-sec-fg); --cell-accent: var(--dept-sec-accent); }
.roster-cell--ob  { --cell-bg: var(--dept-ob-bg);  --cell-fg: var(--dept-ob-fg);  --cell-accent: var(--dept-ob-accent); }
.roster-cell--dp  { --cell-bg: var(--dept-dp-bg);  --cell-fg: var(--dept-dp-fg);  --cell-accent: var(--dept-dp-accent); }

/* ============================================================
   Roster shift-picker modal (was inline in hr-roster.html)
   ============================================================ */
.ro-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(58,37,17,0.45);
  display: none; align-items: center; justify-content: center; z-index: 100;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.ro-modal-overlay.show { display: flex; }
.ro-modal {
  width: 420px; max-width: 92vw;
  background: var(--p-white);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  padding: 22px 24px;
}
.ro-modal h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--p-ink-900); }
.ro-modal .sub { font-size: 12.5px; color: var(--p-ink-500); margin-bottom: 16px; }
.ro-shift-opt {
  padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--p-ink-200);
  background: var(--p-white); margin-bottom: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background 0.12s, border-color 0.12s;
}
.ro-shift-opt:hover { background: var(--p-cream); border-color: var(--p-brown-700); }
.ro-shift-opt .nm { font-size: 13px; font-weight: 600; color: var(--p-ink-900); }
.ro-shift-opt .tm { font-size: 11.5px; color: var(--p-ink-500); margin-top: 2px; }
.ro-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

