/* =====================================================================
   HADIRIND — tampilan modern, font Inter, mode terang & gelap
   Tema: <html data-theme="light|dark">; tanpa atribut = ikuti sistem.
   Palet merek: gradasi biru #0061FF -> #60EFFF
   ===================================================================== */
:root {
  --primary: #0061ff;
  --primary-hover: #0052d9;
  --primary-soft: rgba(0, 97, 255, .09);
  --primary-ring: rgba(0, 97, 255, .22);
  --accent: #60efff;
  --grad: linear-gradient(135deg, #0061ff 0%, #60efff 100%);
  --grad-btn: linear-gradient(135deg, #0061ff 0%, #1f8bff 100%);

  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --surface-3: #e8edf5;
  --glass: rgba(255, 255, 255, .78);
  --text: #0b1324;
  --text-2: #344055;
  --muted: #6a768c;
  --border: #e4e9f1;
  --border-strong: #d4dbe7;

  --success: #0a8f52;
  --success-bg: #e6f7ef;
  --warning: #b25e00;
  --warning-bg: #fff4e0;
  --danger: #d02a42;
  --danger-bg: #fdecef;
  --info-bg: #e8f0ff;
  --on-accent: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -14px rgba(16, 24, 40, .14);
  --shadow-lg: 0 24px 56px -16px rgba(16, 24, 40, .28);
  --shadow-brand: 0 8px 20px -8px rgba(0, 97, 255, .55);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --primary: #3d86ff;
  --primary-hover: #5b9aff;
  --primary-soft: rgba(61, 134, 255, .14);
  --primary-ring: rgba(61, 134, 255, .30);
  --bg: #090e1a;
  --surface: #111a2b;
  --surface-2: #172238;
  --surface-3: #1e2b45;
  --glass: rgba(14, 21, 36, .78);
  --text: #e9eef8;
  --text-2: #c3cde0;
  --muted: #8f9db8;
  --border: #1f2c45;
  --border-strong: #2b3b5a;
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, .13);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, .13);
  --danger: #fb7185;
  --danger-bg: rgba(251, 113, 133, .13);
  --info-bg: rgba(61, 134, 255, .14);
  --on-accent: #06101f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
  --shadow-lg: 0 24px 56px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --primary: #3d86ff;
    --primary-hover: #5b9aff;
    --primary-soft: rgba(61, 134, 255, .14);
    --primary-ring: rgba(61, 134, 255, .30);
    --bg: #090e1a;
    --surface: #111a2b;
    --surface-2: #172238;
    --surface-3: #1e2b45;
    --glass: rgba(14, 21, 36, .78);
    --text: #e9eef8;
    --text-2: #c3cde0;
    --muted: #8f9db8;
    --border: #1f2c45;
    --border-strong: #2b3b5a;
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, .13);
    --warning: #fbbf24;
    --warning-bg: rgba(251, 191, 36, .13);
    --danger: #fb7185;
    --danger-bg: rgba(251, 113, 133, .13);
    --info-bg: rgba(61, 134, 255, .14);
    --on-accent: #06101f;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6);
    --shadow-lg: 0 24px 56px -16px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- Dasar ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px; line-height: 1.5; letter-spacing: -.005em;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease, color .2s ease;
}
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.022em; line-height: 1.25; font-weight: 700; }
h1 { font-size: 24px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
h4 { font-size: 14px; }
p { margin: 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.ic { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8;
      stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Form ---------- */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
input, select, textarea {
  font: inherit; font-weight: 400; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; width: 100%; min-height: 44px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
textarea { resize: vertical; min-height: 80px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring);
}
input:disabled, select:disabled { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--primary); cursor: pointer; }
input[type="file"] { padding: 8px; min-height: 0; }
.check { flex-direction: row; align-items: center; gap: 10px; color: var(--text); font-weight: 500; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.form-error {
  color: var(--danger); background: var(--danger-bg); padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent);
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; letter-spacing: -.01em; border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 16px; min-height: 44px; cursor: pointer; white-space: nowrap;
  background: var(--surface-2); color: var(--text);
  transition: background .15s, box-shadow .15s, transform .08s, opacity .15s, border-color .15s;
}
.btn:not(:disabled):active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:not(:disabled):hover { background: var(--primary-hover); }
.btn-success { background: var(--success); color: var(--on-accent); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--success) 70%, transparent); }
.btn-success:not(:disabled):hover { filter: brightness(1.06); }
.btn-danger { background: var(--danger); color: var(--on-accent); }
.btn-warning { background: var(--warning); color: var(--on-accent); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-ghost:not(:disabled):hover { background: var(--surface-2); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--danger); }

/* ---------- Login & daftar ---------- */
#loginScreen {
  min-height: 100vh; min-height: 100dvh; display: flex; padding: 20px 16px; position: relative;
  background:
    radial-gradient(620px 460px at 0% 0%, rgba(0, 97, 255, .28), transparent 70%),
    radial-gradient(620px 460px at 100% 100%, rgba(96, 239, 255, .30), transparent 70%),
    var(--bg);
}
.login-card {
  margin: auto; width: 100%; max-width: 400px; background: var(--surface); border-radius: 24px;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; text-align: center;
}
.login-card h1 { font-size: 26px; }
.login-card label { text-align: left; }
.login-logo img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 10px 24px -10px rgba(0, 60, 160, .45); }
.login-theme { position: absolute; top: 14px; right: 14px; }

/* ---------- Kerangka ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 16px; background: var(--glass); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
}
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; box-shadow: 0 4px 12px -6px rgba(0, 60, 160, .5); }
.brand div { display: flex; flex-direction: column; min-width: 0; }
.brand small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Dropdown ganti perusahaan */
.company-dd { position: relative; min-width: 0; }
.company-btn {
  display: inline-flex; align-items: center; gap: 4px; max-width: 58vw; padding: 3px 8px 3px 6px; margin: 0 0 0 -6px;
  background: transparent; border: 0; border-radius: 8px; color: var(--text); cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; min-height: 0; box-shadow: none; transition: background .15s;
}
.company-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-btn .ic { width: 16px; height: 16px; stroke-width: 2.4; transform: rotate(90deg); opacity: .8; transition: transform .2s; }
.company-btn[aria-expanded="true"] .ic { transform: rotate(-90deg); }
.company-menu {
  position: absolute; top: calc(100% + 10px); left: -40px; z-index: 40; width: min(340px, calc(100vw - 24px));
  display: flex; flex-direction: column; max-height: min(480px, 72vh); overflow: hidden;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); animation: cm-in .14s ease-out;
}
@keyframes cm-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.cm-scroll { position: relative; overflow-y: auto; padding: 6px; }
.cm-label { padding: 10px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cm-item, .cm-act {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; margin: 0; border: 0; border-radius: 11px;
  background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; min-height: 0; box-shadow: none;
}
.cm-item:hover, .cm-act:hover, .cm-item:focus-visible, .cm-act:focus-visible { background: var(--surface-2); outline: none; }
.cm-item.on { background: var(--primary-soft); }
.cm-av {
  display: grid; place-items: center; flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad-logo, var(--grad)); color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .02em;
}
.cm-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cm-txt b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-check { color: var(--primary); stroke-width: 2.6; }
.cm-tag { flex-shrink: 0; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--info-bg); color: var(--primary); }
.cm-tag.warn { background: var(--warning-bg); color: var(--warning); }
.cm-tag.off { background: var(--surface-3); color: var(--muted); }
.cm-kosong { padding: 14px 10px; margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.cm-search { display: flex; align-items: center; gap: 8px; margin: 8px 8px 2px; padding: 0 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--muted); }
.cm-search input { border: 0; background: transparent; box-shadow: none; padding: 9px 0; min-height: 0; font-size: 14px; }
.cm-search input:focus { box-shadow: none; }
.cm-foot { border-top: 1px solid var(--border); padding: 6px; background: var(--surface); }
.cm-act { font-size: 13.5px; font-weight: 600; color: var(--text-2); padding: 9px 10px; }
.cm-act .ic { width: 18px; height: 18px; color: var(--primary); margin: 0 8px 0 8px; }
.share-box { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-box code { background: var(--surface-2); border: 1px solid var(--border); padding: 9px 12px; border-radius: 10px;
                  word-break: break-all; flex: 1; min-width: 0; }

.tabs {
  position: sticky; top: 60px; z-index: 19; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 16px; background: var(--glass); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px;
  border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .15s, color .15s;
}
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab.active { background: var(--primary-soft); color: var(--primary); }
.tab .badge { padding: 1px 7px; font-size: 11px; }
.tab-sep { flex-shrink: 0; width: 1px; background: var(--border-strong); margin: 6px 6px; }
main { max-width: 1120px; margin: 0 auto; padding: 20px 16px 32px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Kartu ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2 { font-size: 18px; }
.card-head h3 { font-size: 15px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.toolbar input:not([type="checkbox"]), .toolbar select { width: auto; min-width: 150px; min-height: 38px; padding: 7px 10px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
        background: var(--surface-2); font-size: 13px; font-weight: 600; }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.6;
}
.b-ok { background: var(--success-bg); color: var(--success); }
.b-warn { background: var(--warning-bg); color: var(--warning); }
.b-bad { background: var(--danger-bg); color: var(--danger); }
.b-info { background: var(--info-bg); color: var(--primary); }
.b-mute { background: var(--surface-2); color: var(--muted); }

/* ---------- Statistik ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px; position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--border-strong); }
.stat.ok::before { background: var(--success); }
.stat.warn::before { background: var(--warning); }
.stat.bad::before { background: var(--danger); }
.stat .lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.stat .val { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.ok .val { color: var(--success); }
.stat.warn .val { color: var(--warning); }
.stat.bad .val { color: var(--danger); }
button.stat:hover { border-color: var(--primary); }

/* ---------- Tabel ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  white-space: nowrap; background: var(--surface-2); border-bottom-color: var(--border);
}
thead th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
thead th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
thead th { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
td.r, th.r { text-align: right; }
tr:last-child td { border-bottom: 0; }
.empty { text-align: center; color: var(--muted); padding: 32px 8px; }
.row-actions { display: flex; gap: 14px; justify-content: flex-end; align-items: center; white-space: nowrap; }

/* ---------- Daftar ---------- */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item .main { min-width: 0; }
.list-item .main strong { display: block; font-weight: 600; }
.list-item .side { text-align: right; flex-shrink: 0; }

/* ---------- Jadwal ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 12px; }
.day.today { background: var(--primary-soft); border-color: var(--primary); }
.day.today .d { color: var(--primary); }
.day .d { font-weight: 700; }
.day .t { color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.day.off .t { color: var(--danger); }
.jadwal-grid { display: grid; grid-template-columns: 80px 1fr 1fr 1fr; gap: 6px 8px; align-items: center; }
.jadwal-grid .h { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.jadwal-grid select, .jadwal-grid input { min-height: 38px; padding: 6px 8px; }

/* ---------- Modal & toast ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 14, 30, .45);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  animation: fadeIn .15s ease;
}
.modal {
  background: var(--surface); width: 100%; max-width: 580px; max-height: 92vh; display: flex; flex-direction: column;
  border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); border: 1px solid var(--border);
  animation: slideUp .22s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 640px) {
  .modal-backdrop { align-items: center; padding: 16px; }
  .modal { border-radius: 24px; }
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 10px; }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 8px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.modal .form-error { margin: 8px 22px 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 22px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
  background: #0b1324; color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
  max-width: calc(100% - 32px); font-weight: 500; animation: slideUp .2s ease;
}
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: #0a8f52; color: #fff; }
.loading { text-align: center; color: var(--muted); padding: 48px 0; }
.loading::before {
  content: ""; display: block; width: 26px; height: 26px; margin: 0 auto 10px; border-radius: 50%;
  border: 3px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } }
.toast { animation-name: fadeIn; }

/* =====================================================================
   MODE KARYAWAN (gaya aplikasi HP): beranda, live attendance, menu, nav bawah
   ===================================================================== */
body.mode-karyawan .tabs { display: none; }
body.mode-karyawan main { max-width: 560px; padding-bottom: 104px; }
body.mode-admin .bottom-nav { display: none !important; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center;
  background: var(--glass); border-top: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.bottom-nav .inner { display: flex; width: 100%; max-width: 560px; }
.bnav {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0;
  background: none; border: 0; font: inherit; font-size: 11px; font-weight: 600; color: var(--muted);
  cursor: pointer; position: relative;
}
.bnav .ic { width: 22px; height: 22px; padding: 0; box-sizing: content-box; border-radius: 999px;
            padding: 4px 12px; transition: background .15s, color .15s; vertical-align: 0; }
.bnav.active { color: var(--primary); }
.bnav.active .ic { background: var(--primary-soft); }
.bnav .dot { position: absolute; top: 0; left: 50%; margin-left: 10px; min-width: 17px; height: 17px; padding: 0 5px;
             border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; line-height: 17px;
             border: 2px solid var(--surface); box-sizing: content-box; }

.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px 16px 16px; color: #fff;
  background: var(--grad); box-shadow: 0 20px 40px -20px rgba(0, 80, 220, .6);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); pointer-events: none; }
.hero::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.hero::after { width: 140px; height: 140px; right: 60px; top: -100px; background: rgba(255, 255, 255, .08); }
.hero-top { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 700; font-size: 16px; background: rgba(255, 255, 255, .22); color: #fff;
  border: 2px solid rgba(255, 255, 255, .35);
}
.avatar.alt { background: var(--grad); color: #fff; border: 0; }
.hero-top .hi { font-size: 13px; opacity: .9; }
.hero-top strong { font-size: 18px; display: block; letter-spacing: -.02em; }
.la-card { position: relative; background: var(--surface); color: var(--text); border-radius: 18px; padding: 18px; box-shadow: var(--shadow-lg); }
.la-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.la-head .t { font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.la-clock { font-size: 44px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; letter-spacing: -.04em; margin-top: 8px; line-height: 1.1; }
.la-date { text-align: center; color: var(--muted); font-size: 13px; margin-top: 2px; }
.la-shift { text-align: center; margin: 12px auto 16px; font-size: 13px; background: var(--surface-2); border-radius: 999px; padding: 6px 14px; width: fit-content; }
.la-shift b { font-variant-numeric: tabular-nums; }
.la-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.la-btns .btn { min-height: 50px; border-radius: 14px; font-size: 15px; }
.la-log { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.la-log > div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.la-log b { display: block; color: var(--text); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 2px 0; }
.la-break { margin-top: 12px; text-align: center; }

.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 6px; }
.menu-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 500; color: var(--text-2); text-align: center; padding: 0; line-height: 1.3;
}
.menu-item .mi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; transition: transform .12s; }
.menu-item:hover .mi { transform: translateY(-2px); }
.menu-item .mi .ic { width: 24px; height: 24px; }
.mi.c1 { background: rgba(0, 97, 255, .10); color: #0061ff; }
.mi.c2 { background: rgba(245, 158, 11, .14); color: #d97706; }
.mi.c3 { background: rgba(239, 68, 68, .11); color: #e11d48; }
.mi.c4 { background: rgba(124, 58, 237, .11); color: #7c3aed; }
.mi.c5 { background: rgba(16, 185, 129, .12); color: #059669; }
.mi.c6 { background: rgba(14, 165, 233, .13); color: #0284c7; }
:root[data-theme="dark"] .mi { filter: brightness(1.35) saturate(1.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .mi { filter: brightness(1.35) saturate(1.1); } }

.row-link {
  display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 12px 0;
  font: inherit; color: var(--text); text-align: left; cursor: pointer; border-bottom: 1px solid var(--border);
}
.row-link:last-child { border-bottom: 0; }
.row-link .grow { flex: 1; min-width: 0; }
.row-link strong { font-weight: 600; }
.row-link > .ic { color: var(--muted); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-btn {
  font: inherit; font-size: 13px; font-weight: 600; padding: 7px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); transition: all .15s;
}
.chip-btn:hover { border-color: var(--primary); color: var(--primary); }
.chip-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: var(--shadow-brand); }

.req { padding: 14px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.req:last-child { border-bottom: 0; }
.req .body { flex: 1; min-width: 0; }
.req .top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.req .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.req .why { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.req .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.req-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }

.cam-box { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 4px auto 0; border-radius: 50%;
           overflow: hidden; background: #0b1120; box-shadow: 0 0 0 6px var(--primary-soft), 0 0 0 8px var(--primary-ring); }
.cam-box video, .cam-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-box video { transform: scaleX(-1); }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #cbd5e1; font-size: 13px; text-align: center; padding: 24px; }
.cam-info { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; }
.foto-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.foto-pair img { width: 100%; border-radius: 14px; display: block; }
.lampiran-img { width: 100%; border-radius: 14px; border: 1px solid var(--border); }

/* ---------- Slip gaji ---------- */
.slip { font-size: 13px; }
.slip-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.slip-head h3 { font-size: 17px; }
.slip table td { padding: 8px 4px; }
.slip table tbody tr:hover { background: none; }
.slip .sec td { font-weight: 600; color: var(--muted); font-size: 11px; padding-top: 16px; text-transform: uppercase; letter-spacing: .06em; }
.slip .tot td { font-weight: 700; border-top: 1px solid var(--border-strong); }
.slip .net {
  margin-top: 14px; padding: 16px 18px; border-radius: 14px; display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 17px; color: #fff; background: var(--grad); box-shadow: 0 12px 28px -14px rgba(0, 80, 220, .7);
}
.manual-row { display: grid; grid-template-columns: 130px 1fr 130px auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.manual-row input, .manual-row select { min-height: 38px; padding: 6px 8px; }

#printArea { display: none; }
@media print {
  body { background: #fff !important; color: #000; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block; padding: 24px; }
  #printArea .slip { font-size: 12px; color: #000; }
  #printArea .slip .net { background: #eef4ff; color: #000; box-shadow: none; }
}

body.mode-karyawan .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ---------- Layar kecil ---------- */
@media (max-width: 520px) {
  main { padding: 14px 12px 28px; gap: 12px; }
  .card { padding: 16px; border-radius: 14px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  .week { gap: 4px; }
  .day { padding: 7px 2px; font-size: 11px; border-radius: 10px; }
  .jadwal-grid { grid-template-columns: 52px 1fr 1fr 1fr; }
  .toolbar input:not([type="checkbox"]), .toolbar select { flex: 1; min-width: 0; }
  .manual-row { grid-template-columns: 1fr 1fr; }
  .stat .val { font-size: 22px; }
  .login-card { padding: 28px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Notifikasi di mode gelap: permukaan terang agar tetap kontras */
:root[data-theme="dark"] .toast:not(.err):not(.ok) { background: #e9eef8; color: #0b1324; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .toast:not(.err):not(.ok) { background: #e9eef8; color: #0b1324; } }

/* ---------- Header bergradasi warna logo (#0B4A9B -> #4FC4EE), sama di mode terang & gelap ---------- */
:root { --grad-logo: linear-gradient(120deg, #0b4a9b 0%, #1a6cc4 55%, #4fc4ee 100%); }
.topbar {
  background: var(--grad-logo); border-bottom: 0; color: #fff;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 6px 20px -10px rgba(11, 74, 155, .55);
}
.topbar .brand small { color: rgba(255, 255, 255, .82); }
.topbar .brand img { box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .35); }
.topbar .icon-btn { color: rgba(255, 255, 255, .9); }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.topbar .btn-ghost {
  background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .38); color: #fff; box-shadow: none;
}
.topbar .btn-ghost:not(:disabled):hover { background: rgba(255, 255, 255, .24); }
.topbar :focus-visible { outline-color: #fff; }

/* ---------- Jadwal shift (tabel karyawan × tanggal) ---------- */
table.roster th, table.roster td { padding: 8px 6px; }
table.roster td:first-child { min-width: 150px; }
table.roster th.kini { color: var(--primary); }
table.roster select { min-width: 92px; min-height: 34px; padding: 4px 6px; font-size: 12.5px; font-weight: 600; }
table.roster select[data-v="s"] { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
table.roster select[data-v="L"] { background: var(--danger-bg); border-color: transparent; color: var(--danger); }

/* ---------- Bilah status paket (trial / langganan) untuk admin ---------- */
.paket-banner {
  max-width: 1120px; margin: 14px auto 0; padding: 12px 16px; border-radius: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(11, 74, 155, .10), rgba(79, 196, 238, .16));
  border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); font-size: 13px;
}
.paket-banner.warn { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.paket-banner strong { font-weight: 700; }
body.mode-karyawan .paket-banner { display: none !important; }
@media (max-width: 1150px) { .paket-banner { margin: 12px 16px 0; } }
a.btn { text-decoration: none; }
.topbar .company-btn { color: #fff; }
.topbar .company-btn:hover, .topbar .company-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .14); }
.topbar .company-menu .cm-txt small { color: var(--muted); }
.company-menu .cm-search { flex-direction: row; }
.company-menu .cm-scroll, .company-menu .cm-foot { display: block; }

/* ---------- Pasang aplikasi & undang karyawan ---------- */
.pasang-card, .invite-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.pasang-card::before, .invite-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.pc-ic, .ic-ic { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.pc-ic .ic, .ic-ic .ic { width: 22px; height: 22px; }
.pc-txt, .ic-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.pc-txt b, .ic-txt b { font-size: 14.5px; }
.pc-txt span, .ic-txt span { font-size: 13px; color: var(--muted); }
.ic-txt code { font-size: 12px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; word-break: break-all; }
.pc-x { width: 30px; height: 30px; font-size: 20px; color: var(--muted); }
.pasang-card .btn .ic, .invite-card .btn .ic, .share-actions .btn .ic, .share-box .btn .ic { width: 16px; height: 16px; margin-right: 6px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-actions .btn { flex: 1 1 auto; }
#uPesan { font-size: 13px; line-height: 1.5; resize: vertical; background: var(--surface-2); }
.login-pasang {
  display: flex; align-items: center; gap: 10px; text-align: left; margin-top: 4px; padding: 12px 14px;
  border-radius: 14px; background: var(--primary-soft); color: var(--text-2); font-size: 13px;
}
.login-pasang .ic { width: 22px; height: 22px; color: var(--primary); }
.login-pasang span { flex: 1; }
.login-pasang .link-btn { white-space: nowrap; font-weight: 700; }
.pasang-intro { display: flex; gap: 12px; align-items: center; }
.pasang-intro img { width: 48px; height: 48px; border-radius: 12px; box-shadow: var(--shadow); }
.pasang-intro div { display: flex; flex-direction: column; }
.pasang-note { background: var(--warning-bg); color: var(--warning); padding: 10px 12px; border-radius: 10px; font-size: 13px; margin: 0; }
.pasang-step { border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; }
.pasang-step[open] { background: var(--surface-2); }
.pasang-step summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.pasang-step ol { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
@media (max-width: 640px) {
  .invite-card { flex-wrap: wrap; }
  .invite-card .btn { width: 100%; }
}

/* ---------- Hari libur khusus ---------- */
.libur-list { display: grid; gap: 8px; }
.libur-item { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; }
.libur-item.lewat { opacity: .55; }
.li-tgl { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 50px; height: 52px;
          border-radius: 12px; background: var(--danger-bg); color: var(--danger); line-height: 1.1; }
.li-tgl b { font-size: 19px; }
.li-tgl span { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.li-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.week .t .hl { font-size: 10px; line-height: 1.2; color: var(--danger); display: block; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Obrolan ---------- */
.chat-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 16px; height: calc(100dvh - 190px); min-height: 420px; }
body.mode-karyawan .chat-wrap { height: calc(100dvh - 160px - env(safe-area-inset-bottom)); }
.chat-wrap .card { margin: 0; padding: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.chat-list-head { padding: 16px 16px 8px; }
.chat-cari { margin: 0 12px 8px; }
.chat-items { overflow-y: auto; padding: 4px 8px 8px; flex: 1; }
.chat-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 14px;
             background: transparent; color: var(--text); text-align: left; cursor: pointer; font: inherit; }
.chat-item:hover { background: var(--surface-2); }
.chat-item.on { background: var(--primary-soft); }
.chat-av { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
           background: var(--surface-3); color: var(--text-2); font-weight: 700; font-size: 14px; }
.chat-av.grup { background: var(--grad-logo, var(--grad)); color: #fff; }
.chat-av .ic { width: 22px; height: 22px; }
.chat-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.chat-top, .chat-bot { display: flex; align-items: center; gap: 8px; }
.chat-top b { flex: 1; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-top small { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.chat-snip { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-badge { flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: #fff;
              font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }
.chat-item:has(.chat-badge) .chat-snip { color: var(--text); font-weight: 600; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-head .chat-av { width: 40px; height: 40px; }
.chat-head div { display: flex; flex-direction: column; min-width: 0; }
.chat-head small { font-size: 12px; color: var(--muted); }
.chat-back { display: none; font-size: 26px; line-height: 1; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px;
             background: var(--bg); }
.chat-day { text-align: center; margin: 10px 0 6px; }
.chat-day span { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border);
                 padding: 3px 10px; border-radius: 999px; }
.msg { display: flex; margin-top: 8px; }
.msg.sambung { margin-top: 2px; }
.msg.saya { justify-content: flex-end; }
.bubble { max-width: min(78%, 520px); padding: 8px 12px 6px; border-radius: 16px 16px 16px 4px; background: var(--surface);
          border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.msg.saya .bubble { background: var(--grad-btn); color: #fff; border: 0; border-radius: 16px 16px 4px 16px; }
.msg.sambung .bubble { border-radius: 16px; }
.msg-nama { font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.msg-admin { font-size: 10px; background: var(--primary-soft); padding: 1px 6px; border-radius: 6px; margin-left: 4px; }
.msg-isi { font-size: 14.5px; line-height: 1.45; white-space: normal; overflow-wrap: anywhere; }
.msg-isi a { color: inherit; text-decoration: underline; }
.msg.hapus .msg-isi { color: var(--muted); }
.msg.saya.hapus .msg-isi { color: rgba(255, 255, 255, .8); }
.msg-jam { font-size: 10.5px; color: var(--muted); text-align: right; margin-top: 2px; display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.msg.saya .msg-jam { color: rgba(255, 255, 255, .8); }
.msg-del { border: 0; background: none; padding: 0; font: inherit; font-size: 10.5px; color: inherit; cursor: pointer; opacity: 0;
           text-decoration: underline; min-height: 0; }
.msg:hover .msg-del, .msg-del:focus-visible { opacity: 1; }
@media (hover: none) { .msg-del { opacity: .7; } }
.chat-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; padding: 10px 14px; border-radius: 21px; line-height: 1.4; }
.chat-send { width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; flex-shrink: 0; }
.chat-send .ic { width: 20px; height: 20px; }
.chat-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted);
              text-align: center; padding: 24px; }
.chat-empty .ic { width: 44px; height: 44px; stroke-width: 1.4; color: var(--primary); opacity: .6; }
.chat-empty.kecil { flex: 0; margin: auto; }
@media (max-width: 899px) {
  .chat-wrap { grid-template-columns: 1fr; }
  .chat-wrap .chat-room { display: none; }
  .chat-wrap.buka .chat-list { display: none; }
  .chat-wrap.buka .chat-room { display: flex; }
  .chat-back { display: grid; place-items: center; width: 34px; height: 34px; margin-left: -8px; }
}

/* ---------- Tugas ---------- */
.tugas-list { display: grid; gap: 8px; }
.tugas-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px;
              cursor: pointer; flex-direction: row; font-weight: 400; color: var(--text); transition: background .15s, border-color .15s; }
.tugas-item:hover { border-color: var(--primary-ring); }
.tugas-item input { width: 22px; height: 22px; margin-top: 1px; flex-shrink: 0; }
.tugas-item.done { background: var(--success-bg); border-color: transparent; }
.tugas-item.done .ti-txt > b { text-decoration: line-through; color: var(--muted); }
.ti-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ti-txt > b { font-size: 14.5px; }
.ti-txt small { font-size: 13px; color: var(--muted); }
.ti-tag { font-size: 11.5px; color: var(--muted); }
.wajib { color: var(--warning); }
.tugas-grup { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 8px; }
.tugas-admin { display: grid; gap: 8px; }
.ta-item { display: grid; grid-template-columns: 1fr 170px auto; gap: 14px; align-items: center; padding: 12px 14px;
           border: 1px solid var(--border); border-radius: 14px; }
.ta-main { min-width: 0; }
.ta-prog .bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.ta-prog .bar span { display: block; height: 100%; background: var(--grad); border-radius: 3px; }
.pilih-list { display: grid; gap: 8px; max-height: 220px; overflow-y: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
@media (max-width: 700px) {
  .ta-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ---------- Status notifikasi ---------- */
.notif-status { display: flex; gap: 12px; align-items: flex-start; }
.notif-status > div { display: flex; flex-direction: column; gap: 2px; }
.ns-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; background: var(--muted); }
.notif-status.aktif .ns-dot { background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.notif-status.mati .ns-dot, .notif-status.perlu-pasang .ns-dot { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-bg); }
.notif-status.ditolak .ns-dot { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.notif-aksi { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.notif-aksi .btn .ic { width: 16px; height: 16px; margin-right: 6px; }
