/* =====================================================================
   theme.css — mode gelap, penyesuaian utilitas Tailwind lama, flatpickr, login.
   Dimuat SETELAH app.css. Mode gelap cukup menimpa variabel.
   ===================================================================== */
@media screen{
html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#EAF3EF; --ink-2:#BFD0CA; --muted:#8FA39C; --line:#25332F;
  --canvas:#0A100E; --panel:#0F1815; --surface:#15201D; --surface-2:#1C2A26; --on-ink:#0F1815;
  --lime-soft:rgba(141,227,27,.14); --forest-soft:rgba(47,106,91,.3); --lime-ink:#10281F;
  --forest:#2A6355; --forest-2:#1E4A40;
  --red-soft:rgba(229,37,42,.16); --amber-soft:rgba(233,147,12,.16); --blue-soft:rgba(60,120,232,.18);
  --shadow-pop:0 24px 50px -18px rgba(0,0,0,.85);
}
html[data-theme="dark"] .theme-toggle .bi-sun-fill{ display:inline-block; }
html[data-theme="dark"] .theme-toggle .bi-moon-stars-fill{ display:none; }
html[data-theme="dark"] .sb-logo{ color:var(--ink); }
html[data-theme="dark"] .sb-item.active, html[data-theme="dark"] .rail-btn.active{ color:var(--lime-ink); }
html[data-theme="dark"] .status-pill.green{ color:#A7E866; } html[data-theme="dark"] .status-pill.amber{ color:#F6C26B; }
html[data-theme="dark"] .status-pill.blue{ color:#8EB3FF; } html[data-theme="dark"] .status-pill.red{ color:#FF8A90; }
html[data-theme="dark"] .attn.green .ic, html[data-theme="dark"] .insight .ic.green, html[data-theme="dark"] .kpi-card .val.good, html[data-theme="dark"] .delta.up{ color:#A7E866; }
html[data-theme="dark"] .kpi-card:not(.dark):not(.accent) .val, html[data-theme="dark"] .tile .v{ color:var(--ink); }
html[data-theme="dark"] .kpi-card.dark{ background:linear-gradient(150deg,#245649,#173A32); }
html[data-theme="dark"] .pill-toggle a.active, html[data-theme="dark"] .chip-tab.on, html[data-theme="dark"] .pager .on, html[data-theme="dark"] .val-pill.strong{ background:var(--lime); color:var(--lime-ink); }
html[data-theme="dark"] .note-box{ color:#F6D58B; }
html[data-theme="dark"] .ibtn:hover{ background:var(--lime); color:var(--lime-ink); }
html[data-theme="dark"] .select-note{ color:var(--muted); }
}

/* ---- utilitas Tailwind yang tersebar di view lama → ikut variabel ---- */
.bg-white{ background-color:var(--surface) !important; }
.text-gray-900, .text-gray-800{ color:var(--ink) !important; }
.text-gray-700, .text-gray-600{ color:var(--ink-2) !important; }
.text-gray-500, .text-gray-400{ color:var(--muted) !important; }
.text-gray-300{ color:#B7C3BF !important; }
.hover\:text-gray-600:hover{ color:var(--ink) !important; }
.border-gray-300, .border-gray-100, .border-\[\#F3F4F8\], .border-\[\#EEF0F4\], .border-\[\#F0F0F4\], .border-\[\#EEECFA\], .border-\[\#E4E0FF\]{ border-color:var(--line) !important; }
.hover\:bg-gray-50:hover, .hover\:bg-\[\#F3F4F8\]:hover, .hover\:bg-\[\#FAFAFF\]:hover{ background-color:var(--lime-soft) !important; }
.hover\:bg-red-50:hover{ background-color:var(--red-soft) !important; }
.bg-\[\#F7F7FB\], .bg-\[\#F3F4F8\], .bg-\[\#F1F1F5\]{ background-color:var(--surface-2) !important; }
.bg-\[\#EFECFF\], .bg-\[\#EFEDFB\], .bg-\[\#E7E5FF\], .bg-\[\#E7E5F5\], .bg-\[\#F1EEFF\]{ background-color:var(--lime-soft) !important; }
.bg-\[\#FDE9EA\]{ background-color:var(--red-soft) !important; color:var(--red) !important; }
.bg-\[\#E4F8EC\]{ background-color:var(--lime-soft) !important; color:#2C6B12 !important; }
.bg-\[\#FFF8E6\]{ background-color:var(--amber-soft) !important; color:#7A5200 !important; }
.text-\[\#C22F3A\], .text-red-500, .text-red-400{ color:var(--red) !important; }
.text-green-600, .text-\[\#1A9A5D\]{ color:#2C8A12 !important; }
.text-amber-600, .text-\[\#A5690A\]{ color:#B5740A !important; }
.text-\[\#7A5B00\]{ color:#7A5200 !important; }
.text-\[\#6D5DFB\], .text-\[\#4C3FD0\]{ color:var(--forest-3) !important; }
.bg-\[\#6D5DFB\], .bg-\[\#14131F\]{ background-color:var(--forest-2) !important; color:#fff !important; }
.bg-\[\#15132b\]{ background-color:var(--forest-2) !important; }
.hover\:border-\[\#6D5DFB\]:hover{ border-color:var(--forest-3) !important; }
@media screen{
html[data-theme="dark"] .text-gray-300{ color:#5F736C !important; }
html[data-theme="dark"] .bg-\[\#E4F8EC\]{ color:#A7E866 !important; } html[data-theme="dark"] .bg-\[\#FFF8E6\]{ color:#F6D58B !important; }
html[data-theme="dark"] .text-\[\#C22F3A\], html[data-theme="dark"] .text-red-500{ color:#FF8A90 !important; }
html[data-theme="dark"] .text-green-600{ color:#A7E866 !important; } html[data-theme="dark"] .text-\[\#6D5DFB\]{ color:var(--lime) !important; }
html[data-theme="dark"] [style*="background:#FAFAFB"], html[data-theme="dark"] [style*="background:#FAF9FF"], html[data-theme="dark"] [style*="background:#FBFAFF"]{ background:var(--surface-2) !important; }
html[data-theme="dark"] [style*="background:#fff;border:1.5px dashed"]{ background:var(--surface) !important; }
html[data-theme="dark"] input[type=file]{ color-scheme:dark; }
html[data-theme="dark"] select option{ background:#1C2A26; color:var(--ink); }
}
::placeholder{ color:#9AA8A3; }
.file\:bg-\[\#14131F\]::file-selector-button{ background:var(--forest-2) !important; }

/* ---- flatpickr (tanggal / waktu / tanggal & waktu) ---- */
.flatpickr-calendar{ font-family:var(--font); border-radius:22px; border:1px solid var(--line); box-shadow:var(--shadow-pop); background:var(--surface); width:318px; padding:6px 6px 8px; }
.flatpickr-calendar::before, .flatpickr-calendar::after{ display:none; }
.flatpickr-months .flatpickr-month, .flatpickr-current-month .flatpickr-monthDropdown-months, .flatpickr-current-month input.cur-year, span.flatpickr-weekday{ color:var(--ink); fill:var(--ink); background:transparent; font-weight:600; }
.flatpickr-current-month{ font-size:14px; } .flatpickr-current-month .flatpickr-monthDropdown-months:hover{ background:var(--surface-2); }
.flatpickr-monthDropdown-months option{ background:var(--surface); color:var(--ink); }
span.flatpickr-weekday{ font-size:11px; color:var(--muted); font-weight:600; }
.flatpickr-prev-month, .flatpickr-next-month{ color:var(--ink) !important; fill:var(--ink) !important; border-radius:50%; } .flatpickr-prev-month:hover, .flatpickr-next-month:hover{ background:var(--lime-soft); }
.flatpickr-prev-month svg, .flatpickr-next-month svg{ fill:var(--ink) !important; width:12px; height:12px; }
.flatpickr-day{ color:var(--ink); border-radius:12px; font-weight:500; max-width:40px; height:38px; line-height:38px; }
.flatpickr-day:hover, .flatpickr-day.prevMonthDay:hover, .flatpickr-day.nextMonthDay:hover{ background:var(--lime-soft); border-color:transparent; }
.flatpickr-day.today{ border-color:var(--lime-2); } .flatpickr-day.today:hover{ background:var(--lime-soft); color:var(--ink); border-color:var(--lime-2); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected:hover{ background:var(--forest-2); border-color:var(--forest-2); color:#fff; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay, .flatpickr-day.flatpickr-disabled{ color:var(--muted); opacity:.55; }
.flatpickr-day.inRange{ background:var(--lime-soft); box-shadow:-5px 0 0 var(--lime-soft), 5px 0 0 var(--lime-soft); border-color:transparent; }
.flatpickr-time{ border-top:1px solid var(--line) !important; } .flatpickr-time input, .flatpickr-time .flatpickr-time-separator, .flatpickr-time .flatpickr-am-pm{ color:var(--ink); font-family:var(--font); font-weight:600; }
.flatpickr-time input:hover, .flatpickr-time input:focus, .flatpickr-time .flatpickr-am-pm:hover{ background:var(--surface-2); }
.numInputWrapper:hover{ background:transparent; } .numInputWrapper span.arrowUp:after{ border-bottom-color:var(--ink); } .numInputWrapper span.arrowDown:after{ border-top-color:var(--ink); }
.flatpickr-monthSelect-month{ color:var(--ink); border-radius:12px; font-weight:500; } .flatpickr-monthSelect-month:hover{ background:var(--lime-soft); }
.flatpickr-monthSelect-month.selected{ background:var(--forest-2); color:#fff; } .flatpickr-monthSelect-month.today{ border-color:var(--lime-2); }
.fp-foot{ display:flex; justify-content:space-between; padding:6px 10px 2px; border-top:1px solid var(--line); margin-top:4px; }
.fp-foot button{ font-size:12px; font-weight:600; color:var(--forest-3); padding:4px 8px; border-radius:8px; } .fp-foot button:hover{ background:var(--lime-soft); }
input.fp-input{ cursor:pointer; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237B8A85' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5M1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4z'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:38px; }
input.fp-input.fp-time{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%237B8A85' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0'/%3E%3C/svg%3E"); }
.toolbar input.fp-input{ height:42px; border-radius:999px; background-color:var(--surface); border:1px solid var(--line); font-size:13px; font-weight:500; padding-left:16px; min-width:160px; font-family:inherit; color:var(--ink); }

/* ---- halaman login ---- */
.login-wrap{ min-height:100vh; display:grid; grid-template-columns:1.05fr 1fr; background:var(--canvas); padding:20px; gap:20px; }
.login-hero{ position:relative; border-radius:32px; overflow:hidden; background:linear-gradient(155deg,var(--forest) 0%,var(--forest-2) 70%); color:#fff; padding:46px; display:flex; flex-direction:column; justify-content:space-between; }
.login-hero::before{ content:''; position:absolute; right:-120px; top:-120px; width:420px; height:420px; border-radius:50%; border:1.5px solid rgba(255,255,255,.12); }
.login-hero::after{ content:''; position:absolute; left:-80px; bottom:-120px; width:380px; height:380px; border-radius:50%; background:radial-gradient(circle at 40% 40%, rgba(141,227,27,.35), transparent 68%); animation:float 9s ease-in-out infinite; }
@keyframes float{ 50%{ transform:translate(30px,-24px) scale(1.06); } }
.login-hero h2{ font-size:34px; line-height:1.2; font-weight:600; letter-spacing:-.025em; max-width:420px; position:relative; z-index:1; }
.login-hero .bars{ display:flex; align-items:flex-end; gap:10px; height:130px; position:relative; z-index:1; }
.login-hero .bars i{ flex:1; max-width:34px; border-radius:10px; background:var(--lime); transform-origin:bottom; animation:rise 1.2s var(--ease) both; }
.login-hero .bars i:nth-child(even){ background:rgba(255,255,255,.22); }
@keyframes rise{ from{ transform:scaleY(0); } }
.login-form{ display:flex; align-items:center; justify-content:center; padding:20px; }
@media (max-width:900px){ .login-wrap{ grid-template-columns:1fr; } .login-hero{ display:none; } }

/* ---- rich text (Tiptap) ---- */
.rich-content p{ margin:0 0 .6em; } .rich-content p:last-child{ margin-bottom:0; }
.rich-content ul{ list-style:disc; padding-left:1.4em; margin:.4em 0; } .rich-content ol{ list-style:decimal; padding-left:1.4em; margin:.4em 0; }
.rich-content h1, .rich-content h2, .rich-content h3{ font-weight:600; margin:.7em 0 .3em; color:var(--ink); } .rich-content h2{ font-size:1.15em; } .rich-content h3{ font-size:1.05em; }
.rich-content blockquote{ border-left:3px solid var(--lime-2); padding-left:12px; color:var(--ink-2); margin:.5em 0; }
.rich-content a{ color:var(--forest-3); text-decoration:underline; }
input.num-input{ text-align:right; font-variant-numeric:tabular-nums; }

/* =====================================================================
   FORM (acuan screen-form.png): kartu "Bagian NN", input pill terisi, chip pilihan,
   switch, hint di bawah field, header aksi dengan Ctrl+S.
   ===================================================================== */
.fsec{ background:var(--surface); border:1px solid var(--line); border-radius:30px; padding:26px 28px 30px; box-shadow:var(--shadow-card); }
.fsec-head{ display:flex; align-items:center; gap:16px; margin-bottom:24px; }
.fsec-ic{ flex:none; width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:21px; background:var(--lime-soft); color:var(--forest-2); }
.fsec-no{ font-size:11.5px; font-weight:500; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.fsec-head h2{ font-size:21px; font-weight:600; letter-spacing:-.02em; color:var(--ink); line-height:1.25; }
.fsec-badge{ margin-left:auto; align-self:flex-start; font-size:11.5px; font-weight:600; padding:5px 13px; border-radius:999px; background:var(--lime-soft); color:var(--forest-2); white-space:nowrap; }
.fgrid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:22px 26px; }
.fgroup.wide{ grid-column:1 / -1; }
@media (max-width:760px){ .fgrid{ grid-template-columns:1fr; } .fsec{ padding:20px 18px 24px; border-radius:24px; } }
.flabel{ display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13.5px; font-weight:500; color:var(--ink); margin-bottom:9px; }
.flabel .req{ color:var(--red); margin-left:3px; }
.fhelp{ font-size:12.5px; color:var(--muted); margin:8px 4px 0; line-height:1.5; }
.ferr{ font-size:12.5px; color:var(--red); margin:8px 4px 0; display:flex; gap:6px; align-items:center; }

/* input terisi, pill besar */
.fsec .input-field{ height:50px; padding:0 22px; }
.fsec textarea.input-field{ height:auto; }
select.input-field{ padding-right:44px; background-position:right 20px center; }
input.fp-input{ background-position:right 20px center; padding-right:48px; }
.input-field[type=color]{ padding:6px 8px; width:100%; }
input.input-field.is-invalid, .fgroup:has(.ferr) .input-field{ border-color:var(--red); background:var(--red-soft); }
.fsec .input-field:hover:not(:focus){ border-color:color-mix(in srgb, var(--forest-3) 40%, transparent); }

/* chip pilihan (radio/checkbox) */
.choice-chips{ display:flex; flex-wrap:wrap; gap:10px; }
.choice-chips.scroll{ max-height:190px; overflow:auto; padding:2px; }
.chip-choice{ position:relative; cursor:pointer; }
.chip-choice input{ position:absolute; opacity:0; inset:0; width:100%; height:100%; cursor:pointer; }
.chip-choice span{ display:inline-flex; align-items:center; gap:8px; height:46px; padding:0 22px; border-radius:999px; background:var(--surface-2); color:var(--ink-2); font-size:13.5px; font-weight:500; border:1px solid transparent; transition:background .18s, color .18s, transform .18s var(--ease), border-color .18s; }
.chip-choice:hover span{ background:var(--lime-soft); color:var(--ink); }
.chip-choice input:checked + span{ background:var(--forest-2); color:#fff; font-weight:600; }
.chip-choice input:checked + span::before{ content:'\F26E'; font-family:'bootstrap-icons'; font-size:13px; color:var(--lime); }
.chip-choice input:focus-visible + span{ outline:2px solid var(--forest-3); outline-offset:2px; }
.chip-choice:active span{ transform:scale(.97); }
html[data-theme="dark"] .chip-choice input:checked + span{ background:var(--lime); color:var(--lime-ink); } html[data-theme="dark"] .chip-choice input:checked + span::before{ color:var(--lime-ink); }

/* switch */
.switch-row{ display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 22px; border-radius:26px; background:var(--surface-2); cursor:pointer; transition:background .16s; }
.switch-row:hover{ background:var(--lime-soft); }
.switch-row b{ display:block; font-weight:500; font-size:14px; } .switch-row small{ display:block; color:var(--muted); font-size:12.5px; margin-top:2px; }
input.sw{ appearance:none; flex:none; width:48px; height:28px; border-radius:999px; background:#C9D2CF; position:relative; cursor:pointer; transition:background .22s; border:0; }
input.sw::after{ content:''; position:absolute; top:3px; left:3px; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:0 2px 5px rgba(18,54,46,.3); transition:transform .25s var(--ease); }
input.sw:checked{ background:var(--forest-2); } input.sw:checked::after{ transform:translateX(20px); background:var(--lime); }
html[data-theme="dark"] input.sw{ background:#33443F; }

.dropzone{ display:flex; flex-direction:column; align-items:center; gap:4px; text-align:center; padding:28px 20px; border-radius:26px; border:1.5px dashed color-mix(in srgb, var(--forest-3) 45%, transparent); background:var(--surface-2); cursor:pointer; transition:.2s var(--ease); }
.dropzone:hover{ background:var(--lime-soft); border-color:var(--forest-3); transform:translateY(-1px); }
.dropzone > i{ font-size:28px; color:var(--forest-3); } .dropzone small{ color:var(--muted); font-size:12px; max-width:420px; }

.btn-dark kbd, .page-head kbd{ font:500 10.5px 'JetBrains Mono', ui-monospace, monospace; padding:2px 7px; border-radius:7px; background:rgba(255,255,255,.14); color:rgba(255,255,255,.8); margin-left:4px; }
.dirty-note{ display:inline-flex; align-items:center; gap:7px; font-size:12px; font-weight:600; color:var(--amber); padding:6px 12px; border-radius:999px; background:var(--amber-soft); animation:tabIn .3s var(--ease) both; }
.dirty-note[hidden]{ display:none; } .dirty-note i{ font-size:7px; }
.page-head.stuck, form[data-saveable] ~ .x{ }

/* ---- rich text (Tiptap) ---- */
.rich-wrap{ border:1px solid transparent; border-radius:24px; background:var(--surface-2); overflow:hidden; transition:border-color .16s, box-shadow .16s, background .16s; }
.rich-wrap.focus{ background:var(--surface); border-color:var(--forest-3); box-shadow:0 0 0 4px color-mix(in srgb, var(--lime) 28%, transparent); }
.rich-wrap.invalid{ border-color:var(--red); box-shadow:0 0 0 4px var(--red-soft); }
.rich-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:2px; padding:8px 12px; border-bottom:1px solid var(--line); }
.rich-bar button{ width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:var(--ink-2); font-size:15px; transition:.15s; }
.rich-bar button:hover{ background:var(--lime-soft); color:var(--ink); } .rich-bar button.on{ background:var(--forest-2); color:#fff; }
html[data-theme="dark"] .rich-bar button.on{ background:var(--lime); color:var(--lime-ink); }
.rich-bar .sep{ width:1px; height:18px; background:var(--line); margin:0 6px; }
.rich-body .ProseMirror{ min-height:130px; max-height:380px; overflow-y:auto; padding:14px 20px; outline:none; font-size:14px; line-height:1.65; color:var(--ink); }
.rich-body .ProseMirror p.is-editor-empty:first-child::before{ content:attr(data-placeholder); float:left; height:0; pointer-events:none; color:#9AA8A3; }
.rich-body .ProseMirror pre{ background:var(--surface-2); padding:10px 14px; border-radius:12px; font-size:12.5px; }

/* ---- tabel: kontrol bekukan kolom / header ---- */
.dt-tools{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 10px; font-size:12px; color:var(--muted); }
.dt-tools .lbl{ display:inline-flex; align-items:center; gap:6px; font-weight:600; }
.dt-tools .seg{ display:inline-flex; padding:3px; gap:2px; border-radius:999px; background:var(--surface-2); }
.dt-tools button[data-k]{ padding:5px 13px; border-radius:999px; font-size:12px; font-weight:500; color:var(--muted); transition:.16s; }
.dt-tools button[data-k]:hover{ color:var(--ink); }
.dt-tools button[data-k].on{ background:var(--forest-2); color:#fff; font-weight:600; }
html[data-theme="dark"] .dt-tools button[data-k].on{ background:var(--lime); color:var(--lime-ink); }
.dt-tools .seg-one{ background:var(--surface-2); } .dt-tools .hint{ margin-left:auto; opacity:.8; }
@media (max-width:900px){ .dt-tools .hint{ display:none; } }
.dt-wrapper{ max-height:max(420px, calc(100vh - 360px)); overflow:auto; overscroll-behavior:contain; }
.dt-wrapper.no-hfreeze .dt-table thead th{ position:static; }
.dt-table .fz{ position:sticky; z-index:2; background:var(--surface); }
.dt-table thead th.fz{ z-index:4; background:var(--surface-2); }
.dt-table .fz-last{ box-shadow:8px 0 12px -10px rgba(18,54,46,.35); }
.dt-table tbody tr:hover td.fz{ background:color-mix(in srgb, var(--lime-soft) 45%, var(--surface)); } .dt-table tbody tr.is-sel td.fz{ background:var(--lime-soft); }
.dt-wrapper::-webkit-scrollbar{ height:10px; width:10px; } .dt-wrapper::-webkit-scrollbar-thumb{ background:#C9D2CF; border-radius:10px; border:2px solid var(--surface); }

/* ---- rentang tanggal ---- */
.flatpickr-calendar.rangeMode .fp-foot{ gap:6px; justify-content:flex-start; flex-wrap:wrap; }
.flatpickr-calendar.rangeMode .fp-foot button:last-child{ margin-left:auto; }
.flatpickr-day.startRange, .flatpickr-day.endRange{ background:var(--forest-2) !important; border-color:var(--forest-2) !important; color:#fff !important; }
.flatpickr-day.inRange{ box-shadow:-5px 0 0 var(--lime-soft), 5px 0 0 var(--lime-soft) !important; }

/* ---- animasi halaman ---- */
.content{ animation:pageIn .5s var(--ease) both; }
@keyframes pageIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
html::before{ content:''; position:fixed; left:0; top:0; height:3px; width:0; z-index:9999; background:linear-gradient(90deg,var(--lime-2),var(--lime)); transition:width .9s var(--ease), opacity .3s; opacity:0; }
html.is-leaving::before{ width:82%; opacity:1; }
.flash-in{ animation:tabIn .4s var(--ease) both; }

/* ---- kartu radio (Status Operasional di screen-form) & navigasi bagian ---- */
.radio-cards{ display:grid; grid-template-columns:repeat(auto-fit, minmax(210px, 1fr)); gap:14px; }
.rcard{ position:relative; display:flex; align-items:center; gap:14px; padding:16px 22px; border-radius:30px; background:var(--surface-2); border:1.5px solid transparent; cursor:pointer; transition:background .18s, border-color .18s, transform .18s var(--ease), box-shadow .18s; }
.rcard:hover{ background:var(--lime-soft); transform:translateY(-1px); }
.rcard input{ position:absolute; opacity:0; inset:0; width:100%; height:100%; cursor:pointer; margin:0; }
.rcard .rc-dot{ flex:none; width:22px; height:22px; border-radius:50%; border:2px solid #A9B7B2; background:var(--surface); display:grid; place-items:center; transition:.18s; }
.rcard .rc-dot::after{ content:''; width:10px; height:10px; border-radius:50%; background:var(--forest-2); transform:scale(0); transition:transform .22s var(--ease); }
.rcard:has(input:checked){ background:var(--surface); border-color:var(--forest-2); box-shadow:0 12px 24px -18px rgba(18,54,46,.7); }
.rcard:has(input:checked) .rc-dot{ border-color:var(--forest-2); } .rcard:has(input:checked) .rc-dot::after{ transform:scale(1); }
.rcard:has(input:focus-visible){ outline:2px solid var(--forest-3); outline-offset:2px; }
.rc-txt b{ display:block; font-weight:600; font-size:14px; color:var(--ink); line-height:1.3; } .rc-txt small{ display:block; font-size:12px; color:var(--muted); margin-top:1px; }
.rc-txt small.ok{ color:#2C8A12; } .rc-txt small.warn{ color:var(--amber); } .rc-txt small.bad{ color:var(--red); }
html[data-theme="dark"] .rcard:has(input:checked){ border-color:var(--lime); } html[data-theme="dark"] .rcard .rc-dot::after{ background:var(--lime); } html[data-theme="dark"] .rcard:has(input:checked) .rc-dot{ border-color:var(--lime); }
.sec-nav{ position:sticky; top:74px; z-index:20; display:flex; gap:8px; overflow-x:auto; padding:8px; margin:0 0 18px; border-radius:999px; background:color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter:blur(10px); border:1px solid var(--line); width:max-content; max-width:100%; scrollbar-width:none; }
.sec-nav a{ display:inline-flex; align-items:center; gap:7px; height:36px; padding:0 16px; border-radius:999px; font-size:13px; font-weight:500; color:var(--ink-2); white-space:nowrap; transition:.18s; }
.sec-nav a:hover{ background:var(--lime-soft); color:var(--ink); } .sec-nav a.on{ background:var(--forest-2); color:#fff; font-weight:600; }
html[data-theme="dark"] .sec-nav a.on{ background:var(--lime); color:var(--lime-ink); }
section.fsec{ scroll-margin-top:140px; }

/* ---- detail karyawan: info grid ---- */
.info-card{ background:var(--surface); border:1px solid var(--line); border-radius:28px; padding:24px 26px; }
.info-card .fsec-head{ margin-bottom:18px; } .info-card .fsec-head h2{ font-size:18px; }
.info-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:18px 24px; }
.info-grid dt{ font-size:12px; color:var(--muted); margin-bottom:4px; } .info-grid dd{ font-size:14px; font-weight:500; color:var(--ink); word-break:break-word; }
.hero-chip{ display:flex; flex-direction:column; gap:2px; padding:10px 18px; border-radius:20px; background:rgba(255,255,255,.1); min-width:120px; }
.hero-chip small{ font-size:11px; color:rgba(255,255,255,.65); } .hero-chip b{ font-size:15px; font-weight:600; color:#fff; }
.hero-chip.lime{ background:var(--lime); } .hero-chip.lime small{ color:rgba(22,56,47,.7); } .hero-chip.lime b{ color:var(--lime-ink); }

/* ---- jquery-confirm: tema "ui" (selaras Conyest) ---- */
.jconfirm.jconfirm-ui .jconfirm-bg{ background:rgba(12,36,30,.5) !important; backdrop-filter:blur(3px); opacity:1 !important; }
.jconfirm.jconfirm-ui .jconfirm-box{ background:var(--surface); color:var(--ink); border-radius:28px; padding:28px 28px 22px; box-shadow:0 40px 90px -30px rgba(10,30,25,.65); font-family:var(--font); border:1px solid var(--line); border-top:0; }
.jconfirm.jconfirm-ui .jconfirm-box div.jconfirm-title-c{ display:flex; align-items:center; gap:14px; padding:0; font-size:19px; font-weight:600; letter-spacing:-.015em; color:var(--ink); }
.jconfirm.jconfirm-ui .jconfirm-box div.jconfirm-title-c .jconfirm-icon-c{ flex:none; width:46px; height:46px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:21px; margin:0; background:var(--lime-soft); color:var(--forest-2); }
.jconfirm.jconfirm-ui.jconfirm-type-red .jconfirm-icon-c, .jconfirm.jconfirm-ui .jconfirm-box.jconfirm-type-red .jconfirm-icon-c{ background:var(--red-soft) !important; color:var(--red) !important; }
.jconfirm.jconfirm-ui .jconfirm-box.jconfirm-type-orange .jconfirm-icon-c{ background:var(--amber-soft) !important; color:var(--amber) !important; }
.jconfirm.jconfirm-ui .jconfirm-box div.jconfirm-content-pane{ margin:14px 0 4px; }
.jconfirm.jconfirm-ui .jconfirm-content{ font-size:14px; line-height:1.6; color:var(--ink-2); padding-left:60px; }
.jconfirm.jconfirm-ui .jconfirm-buttons{ float:none; display:flex; justify-content:flex-end; gap:10px; margin-top:22px; }
.jconfirm.jconfirm-ui .jconfirm-buttons button{ margin:0; border-radius:999px; padding:10px 22px; font-family:var(--font); font-weight:600; font-size:13.5px; transition:transform .16s var(--ease), background .16s, box-shadow .16s; }
.jconfirm.jconfirm-ui .jconfirm-buttons button:hover{ transform:translateY(-1px); } .jconfirm.jconfirm-ui .jconfirm-buttons button:active{ transform:scale(.97); }
.btn-ui-ok{ background:var(--lime) !important; color:var(--lime-ink) !important; } .btn-ui-ok:hover{ background:#a0ee38 !important; box-shadow:0 10px 22px -12px rgba(121,201,15,.9); }
.btn-ui-danger{ background:var(--red) !important; color:#fff !important; } .btn-ui-danger:hover{ background:#c91d22 !important; box-shadow:0 10px 22px -12px rgba(229,37,42,.8); }
.btn-ui-cancel{ background:var(--surface-2) !important; color:var(--ink) !important; } .btn-ui-cancel:hover{ background:var(--line) !important; }
@media (max-width:520px){ .jconfirm.jconfirm-ui .jconfirm-content{ padding-left:0; } }

/* form tambah PIN mesin (detail karyawan) */
.pin-add{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:14px; padding:18px 20px; border-radius:26px; background:var(--surface-2); }
.pin-add .grow{ flex:1 1 260px; }

/* =====================================================================
   DENSITAS RINGKAS (putaran 4): kontrol lebih kecil, form 3 kolom, header form tetap terlihat,
   bagian bisa dilipat, meter kelengkapan, bantuan jadi tooltip. Menimpa nilai sebelumnya.
   ===================================================================== */
body{ font-size:13.5px; }
.content{ padding:2px 28px 48px; }
.topbar{ padding:12px 28px; }
.content h1, .page-head h1{ font-size:23px; }
.page-head{ margin:2px 0 14px; gap:10px 16px; }
.btn-primary, .btn-outline, .btn-danger, .btn-dark{ padding:8px 17px; font-size:13px; }
.btn-sm{ padding:6px 13px !important; font-size:12px !important; }
.input-field{ height:40px; padding:0 16px; font-size:13.5px; }
textarea.input-field{ padding:10px 16px; }
.panel{ padding:18px; border-radius:22px; }
.toolbar{ margin-bottom:10px; } .toolbar .search, .toolbar select, .toolbar .pill-input, .toolbar input.fp-input{ height:38px; font-size:13px; }
.chip-tab{ height:32px; padding:0 14px; font-size:12.5px; } .chips{ padding-bottom:10px; }
.dt-table thead th{ padding:10px 14px; } .dt-table tbody td{ padding:9px 14px; } .dt-table{ font-size:13px; }
.avatar-ic{ width:32px; height:32px; font-size:11px; }
.kpi-card{ padding:15px 18px; border-radius:20px; } .kpi-card .val{ font-size:25px; margin-top:10px; } .kpi-card .sub{ margin-top:5px; }
.tab-btn{ padding:9px 15px; font-size:13px; } .tabs{ margin-bottom:16px; }
.sb-item, .sb-group-head{ padding:9px 13px; font-size:13.5px; }
.sec-head{ margin-bottom:12px; } .sec-head h2{ font-size:16px; }
.info-card{ padding:18px 20px; border-radius:22px; } .info-grid{ gap:12px 20px; }

/* form */
.fsec{ padding:16px 20px 20px; border-radius:22px; }
.fsec-head{ gap:12px; margin-bottom:14px; align-items:center; cursor:default; }
.fsec-ic{ width:38px; height:38px; font-size:17px; } .fsec-no{ font-size:10.5px; } .fsec-head h2{ font-size:16px; }
.fsec-badge{ font-size:11px; padding:3px 11px; align-self:center; }
.fsec-toggle{ margin-left:8px; width:30px; height:30px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; color:var(--muted); background:var(--surface-2); transition:.2s; flex:none; }
.fsec-toggle:hover{ background:var(--forest-2); color:#fff; } .fsec-toggle i{ transition:transform .25s var(--ease); font-size:12px; }
.fsec.collapsed .fsec-toggle i{ transform:rotate(180deg); } .fsec.collapsed > :not(.fsec-head){ display:none; } .fsec.collapsed .fsec-head{ margin-bottom:0; }
.fgrid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px 16px; }
@media (min-width:1180px){ .fgrid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }
@media (max-width:760px){ .fgrid{ grid-template-columns:1fr; } }
.flabel{ font-size:12.5px; margin-bottom:5px; gap:6px; justify-content:flex-start; color:var(--ink-2); font-weight:500; }
.fsec .input-field{ height:40px; padding:0 16px; } .fsec textarea.input-field{ height:auto; padding:10px 16px; }
select.input-field{ padding-right:38px; background-position:right 15px center; } input.fp-input{ background-position:right 15px center; padding-right:40px; }
.fhelp{ font-size:11.5px; margin:4px 3px 0; line-height:1.45; } .ferr{ font-size:12px; margin:4px 3px 0; }
.fhint{ display:inline-flex; width:16px; height:16px; align-items:center; justify-content:center; border-radius:50%; font-size:12px; color:var(--muted); position:relative; cursor:help; flex:none; }
.fhint:hover, .fhint:focus{ color:var(--forest-3); outline:none; }
.fhint::after{ content:attr(data-tip); position:absolute; left:50%; bottom:calc(100% + 8px); transform:translate(-50%, 4px); width:max-content; max-width:260px; padding:8px 12px; border-radius:12px; background:var(--forest-2); color:#fff; font-size:11.5px; font-weight:400; line-height:1.45; text-align:left; opacity:0; pointer-events:none; transition:.18s var(--ease); z-index:40; white-space:normal; }
.fhint:hover::after, .fhint:focus::after{ opacity:1; transform:translate(-50%, 0); }
.choice-chips{ gap:7px; } .chip-choice span{ height:34px; padding:0 15px; font-size:12.5px; }
.radio-cards{ grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:10px; }
.rcard{ padding:10px 16px; border-radius:20px; gap:11px; } .rcard .rc-dot{ width:18px; height:18px; } .rcard .rc-dot::after{ width:8px; height:8px; } .rc-txt b{ font-size:13px; } .rc-txt small{ font-size:11.5px; }
.switch-row{ padding:10px 16px; border-radius:20px; } .switch-row b{ font-size:13px; }
input.sw{ width:42px; height:24px; } input.sw::after{ width:18px; height:18px; } input.sw:checked::after{ transform:translateX(18px); }
.dropzone{ padding:18px 16px; border-radius:20px; }
.rich-body .ProseMirror{ min-height:84px; padding:10px 16px; font-size:13.5px; } .rich-bar{ padding:5px 8px; } .rich-bar button{ width:28px; height:28px; font-size:14px; } .rich-wrap{ border-radius:20px; }
.pin-add{ padding:12px 16px; border-radius:20px; }

/* header form: tetap terlihat + meter kelengkapan */
.page-head.sticky-head{ position:sticky; top:62px; z-index:25; margin:0 -12px 14px; padding:10px 12px 8px; background:color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter:blur(12px); border-radius:0 0 20px 20px; align-items:center; }
.page-head.sticky-head h1{ font-size:19px; } .page-head.sticky-head .crumb{ margin-bottom:1px; } .page-head.sticky-head .sub{ display:none; }
.page-head .head-nav{ flex-basis:100%; }
.sec-nav{ position:static; margin:0; padding:4px; gap:4px; background:var(--surface); width:max-content; max-width:100%; }
.sec-nav a{ height:30px; padding:0 13px; font-size:12.5px; }
section.fsec{ scroll-margin-top:150px; }
.fprog{ display:inline-flex; align-items:center; gap:9px; font-size:12px; color:var(--muted); padding:5px 12px; border-radius:999px; background:var(--surface); border:1px solid var(--line); }
.fprog b{ color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; }
.fprog i{ display:block; width:64px; height:6px; border-radius:6px; background:var(--surface-2); overflow:hidden; }
.fprog u{ display:block; height:100%; width:0; background:var(--lime-2); border-radius:6px; transition:width .35s var(--ease); text-decoration:none; }
.fprog.done b{ color:#2C8A12; } .fprog.done u{ background:var(--forest-3); }
@media (max-width:900px){ .page-head.sticky-head{ top:56px; } .fprog i{ display:none; } }

/* =====================================================================
   PUTARAN 5: alur proses, wizard, langkah berikutnya, peta penggunaan, validasi, panduan, kepadatan
   ===================================================================== */
/* alur proses (flow) */
.flow{ background:var(--surface); border:1px solid var(--line); border-radius:22px; padding:14px 18px; }
.flow-steps{ display:flex; align-items:center; gap:0; list-style:none; margin:0; padding:0; overflow-x:auto; scrollbar-width:none; }
.flow-steps li{ display:flex; align-items:center; gap:10px; flex:1 1 0; min-width:120px; font-size:13px; font-weight:500; color:var(--muted); position:relative; }
.flow-steps li:not(:last-child)::after{ content:''; flex:1; height:2px; margin:0 12px; border-radius:2px; background:var(--line); }
.flow-steps li.done:not(:last-child)::after{ background:var(--lime-2); }
.flow-steps .dot{ flex:none; width:28px; height:28px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:600; background:var(--surface-2); color:var(--muted); }
.flow-steps li.done{ color:var(--ink-2); } .flow-steps li.done .dot{ background:var(--lime); color:var(--lime-ink); }
.flow-steps li.now{ color:var(--ink); font-weight:600; } .flow-steps li.now .dot{ background:var(--forest-2); color:#fff; box-shadow:0 0 0 5px color-mix(in srgb, var(--lime) 35%, transparent); animation:pulseRing 2.2s infinite; }
@keyframes pulseRing{ 0%,100%{ box-shadow:0 0 0 4px color-mix(in srgb, var(--lime) 40%, transparent); } 50%{ box-shadow:0 0 0 8px color-mix(in srgb, var(--lime) 10%, transparent); } }
.flow-steps .lbl small{ display:block; font-size:11px; font-weight:400; color:var(--amber); }
.flow-next{ margin-top:12px; padding-top:12px; border-top:1px dashed var(--line); font-size:12.5px; color:var(--ink-2); display:flex; flex-direction:column; gap:6px; }
.flow-next i{ color:var(--forest-3); margin-right:4px; } .flow-next .blocked{ color:var(--muted); } .flow-next .blocked i{ color:var(--amber); }
html[data-theme="dark"] .flow-steps li.now .dot{ background:var(--lime); color:var(--lime-ink); }

/* wizard karyawan baru */
.wiz-steps{ display:flex; gap:6px; list-style:none; margin:0; padding:4px; background:var(--surface); border:1px solid var(--line); border-radius:999px; width:max-content; max-width:100%; overflow-x:auto; }
.wiz-steps li{ display:flex; align-items:center; gap:8px; padding:4px 14px 4px 5px; border-radius:999px; font-size:12.5px; font-weight:500; color:var(--muted); cursor:pointer; white-space:nowrap; transition:.18s; }
.wiz-steps li:hover{ color:var(--ink); }
.wiz-steps .dot{ width:24px; height:24px; border-radius:50%; background:var(--surface-2); display:grid; place-items:center; font-size:11px; font-weight:600; }
.wiz-steps li.on{ background:var(--forest-2); color:#fff; font-weight:600; } .wiz-steps li.on .dot{ background:var(--lime); color:var(--lime-ink); }
.wiz-steps li.done .dot{ background:var(--lime-soft); color:var(--forest-2); }
html[data-theme="dark"] .wiz-steps li.on{ background:var(--lime); color:var(--lime-ink); } html[data-theme="dark"] .wiz-steps li.on .dot{ background:var(--forest-2); color:#fff; }
.wiz-bar{ display:flex; align-items:center; gap:10px; padding:4px 2px 0; } .wiz-bar .grow{ flex:1; }
.smart-note{ display:flex; gap:8px; align-items:center; font-size:12px; color:var(--forest-2); background:var(--lime-soft); padding:7px 14px; border-radius:999px; margin:0 0 12px; width:max-content; max-width:100%; }

/* langkah berikutnya & peta penggunaan */
.next-steps{ background:var(--surface); border:1px solid var(--lime-2); border-radius:22px; padding:16px 18px; margin-bottom:16px; animation:tabIn .45s var(--ease) both; box-shadow:0 14px 30px -24px rgba(121,201,15,.9); }
.ns-head{ display:flex; align-items:center; gap:12px; margin-bottom:12px; } .ns-head b{ display:block; font-size:14.5px; } .ns-head small{ color:var(--muted); font-size:12px; }
.ns-list{ display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:10px; }
.ns-item{ display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:18px; background:var(--surface-2); transition:.2s var(--ease); }
.ns-item:hover{ background:var(--lime-soft); transform:translateY(-2px); }
.ns-item .n{ flex:none; width:26px; height:26px; border-radius:50%; background:var(--forest-2); color:#fff; display:grid; place-items:center; font-size:12px; font-weight:600; }
.ns-item b{ display:block; font-size:13px; } .ns-item small{ display:block; font-size:11.5px; color:var(--muted); } .ns-item i{ margin-left:auto; font-size:20px; color:var(--forest-3); }
.usage-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:12px; color:var(--muted); padding:2px 4px; }
.usage-bar > span{ font-weight:600; } .usage-chip{ padding:4px 12px; border-radius:999px; background:var(--surface); border:1px solid var(--line); color:var(--ink-2); font-weight:500; transition:.16s; } .usage-chip:hover{ background:var(--lime-soft); color:var(--ink); border-color:var(--lime-2); }

/* validasi langsung */
.input-field.is-invalid{ border-color:var(--red) !important; background:var(--red-soft) !important; }
.ferr.live{ animation:tabIn .25s var(--ease) both; }

/* hasil pencarian global */
.top-search .results a{ flex-direction:column; } .top-search .results a small{ display:block; }

/* panduan (tour) */
.tour-mask{ position:fixed; inset:0; z-index:9990; }
.tour-spot{ position:fixed; z-index:9991; border-radius:18px; box-shadow:0 0 0 9999px rgba(10,30,25,.62), 0 0 0 3px var(--lime); pointer-events:none; transition:all .35s var(--ease); }
.tour-pop{ position:fixed; z-index:9992; width:320px; background:var(--surface); color:var(--ink); border-radius:22px; padding:16px 18px; box-shadow:var(--shadow-pop); border:1px solid var(--line); animation:tabIn .3s var(--ease) both; }
.tour-pop .tp-n{ font-size:11px; color:var(--muted); font-weight:600; margin-bottom:4px; } .tour-pop b{ font-size:15px; display:block; } .tour-pop p{ font-size:13px; color:var(--ink-2); margin:6px 0 12px; line-height:1.55; }
.tp-act{ display:flex; align-items:center; gap:8px; } .tp-act .grow{ flex:1; }
.tp-act button{ padding:7px 14px; border-radius:999px; font-size:12.5px; font-weight:600; background:var(--surface-2); color:var(--ink); } .tp-act button:hover{ background:var(--line); }
.tp-act button.pri{ background:var(--lime); color:var(--lime-ink); } .tp-act button.pri:hover{ background:#a0ee38; } .tp-act button[data-a=end]{ background:transparent; color:var(--muted); }

/* kepadatan "Nyaman" (alternatif dari default Ringkas) */
html[data-density="comfy"] .input-field, html[data-density="comfy"] .fsec .input-field{ height:48px; padding:0 20px; font-size:14px; }
html[data-density="comfy"] textarea.input-field{ height:auto; padding:13px 20px; }
html[data-density="comfy"] .btn-primary, html[data-density="comfy"] .btn-outline, html[data-density="comfy"] .btn-dark, html[data-density="comfy"] .btn-danger{ padding:11px 22px; font-size:14px; }
html[data-density="comfy"] .dt-table tbody td{ padding:15px 16px; } html[data-density="comfy"] .dt-table thead th{ padding:13px 16px; }
html[data-density="comfy"] .fsec{ padding:24px 28px 28px; border-radius:28px; } html[data-density="comfy"] .fgrid{ gap:20px 24px; } html[data-density="comfy"] .fsec-head{ margin-bottom:20px; }
html[data-density="comfy"] .chip-choice span{ height:44px; padding:0 22px; font-size:13.5px; } html[data-density="comfy"] .rcard{ padding:16px 22px; }
html[data-density="comfy"] .kpi-card{ padding:20px 22px; } html[data-density="comfy"] .kpi-card .val{ font-size:30px; margin-top:16px; }
html[data-density="comfy"] .chip-tab{ height:36px; } html[data-density="comfy"] .tab-btn{ padding:12px 18px; } html[data-density="comfy"] .sb-item, html[data-density="comfy"] .sb-group-head{ padding:11px 14px; }

/* ===== Pengaturan notifikasi (matriks kelompok × saluran, uji SMTP) ===== */
.nmx td, .nmx th{ vertical-align:middle; }
.nmx-ch{ font-weight:600; font-size:13px; display:flex; align-items:center; justify-content:center; gap:7px; }
.nmx-master{ display:inline-flex; align-items:center; gap:7px; margin-top:7px; font-size:11.5px; font-weight:500; color:var(--muted); cursor:pointer; }
.nmx-warn{ margin-top:6px; font-size:11px; font-weight:500; color:var(--amber); }
.nmx-ic{ flex:none; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--lime-soft); color:var(--forest-2); font-size:15px; }
input.sw.sw-sm{ width:38px; height:22px; } input.sw.sw-sm::after{ top:3px; left:3px; width:16px; height:16px; } input.sw.sw-sm:checked::after{ transform:translateX(16px); }
input.sw:disabled{ opacity:.45; cursor:not-allowed; }
.fsec.is-off .dt-wrapper{ opacity:.5; pointer-events:none; }
.probe-step{ display:flex; gap:12px; align-items:flex-start; padding:11px 15px; border-radius:16px; margin-bottom:8px; font-size:13px; }
.probe-step > .bi{ font-size:18px; margin-top:1px; flex:none; }
.probe-step.ok{ background:var(--lime-soft); color:var(--forest-2); }
.probe-step.bad{ background:var(--red-soft); color:#9B1C20; }
html[data-theme="dark"] .probe-step.ok{ background:rgba(141,227,27,.12); color:#BFEF7A; }
html[data-theme="dark"] .probe-step.bad{ background:rgba(229,37,42,.15); color:#FFA9AB; }

/* ===== Subjudul di dalam bagian form (mis. blok alamat) ===== */
.fsub{ display:flex; align-items:center; gap:9px; font-size:13.5px; font-weight:600; color:var(--ink); margin:0 0 12px; padding-bottom:9px; border-bottom:1px dashed var(--line); }
.fsub .bi{ color:var(--forest-3); font-size:16px; }
fieldset{ border:0; padding:0; margin:0; min-width:0; }
fieldset:disabled{ opacity:.55; }

/* ===== Sidebar: ikon sub-menu, sub-judul, badge ===== */
.sb-sub .sb-item.has-ic::before{ display:none; }
.sb-item .ic{ flex:none; width:18px; text-align:center; font-size:15px; opacity:.75; }
.sb-item.active .ic{ opacity:1; }
.sb-sub-h{ padding:12px 12px 4px; font-size:10.5px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.sb-badge{ margin-left:auto; min-width:20px; padding:1px 7px; border-radius:999px; background:var(--red); color:#fff; font-size:10.5px; font-weight:600; text-align:center; line-height:1.5; }
.sb-item.active .sb-badge{ background:var(--forest-2); }
.flyout .sb-sub-h{ padding:8px 14px 2px; }

/* ===== Pengajuan Saya (pusat pengajuan) ===== */
.mr-badge{ display:inline-block; min-width:20px; margin-left:4px; padding:0 7px; border-radius:999px; background:var(--red); color:#fff; font-size:11px; font-weight:600; line-height:20px; text-align:center; }
.tone-green{ --tn:#2F7D1B; --tn-bg:var(--lime-soft); } .tone-amber{ --tn:#B36B00; --tn-bg:var(--amber-soft); } .tone-red{ --tn:#C0272B; --tn-bg:var(--red-soft); }
.tone-blue{ --tn:#2A5FC9; --tn-bg:var(--blue-soft); } .tone-violet{ --tn:#5B49D6; --tn-bg:#ECE9FF; } .tone-teal{ --tn:#16786B; --tn-bg:#DDF3EF; } .tone-slate{ --tn:#51615B; --tn-bg:var(--surface-2); }
html[data-theme="dark"] .tone-green{ --tn:#A6EA5B; --tn-bg:rgba(141,227,27,.14); } html[data-theme="dark"] .tone-amber{ --tn:#F6C25B; --tn-bg:rgba(233,147,12,.16); }
html[data-theme="dark"] .tone-red{ --tn:#FF9A9C; --tn-bg:rgba(229,37,42,.16); } html[data-theme="dark"] .tone-blue{ --tn:#8DB4FF; --tn-bg:rgba(60,120,232,.18); }
html[data-theme="dark"] .tone-violet{ --tn:#B9AEFF; --tn-bg:rgba(109,93,251,.2); } html[data-theme="dark"] .tone-teal{ --tn:#7FD9CB; --tn-bg:rgba(22,120,107,.22); } html[data-theme="dark"] .tone-slate{ --tn:#B7C4BF; --tn-bg:rgba(255,255,255,.06); }

.mr-stats{ display:grid; grid-template-columns:repeat(auto-fit, minmax(170px,1fr)); gap:12px; margin-bottom:20px; }
.mr-stat{ display:flex; align-items:center; gap:13px; padding:14px 16px; background:var(--surface); border:1px solid var(--line); border-radius:20px; text-decoration:none !important; color:var(--ink); transition:border-color .16s, transform .16s var(--ease), box-shadow .16s; }
.mr-stat:hover{ border-color:var(--tn); transform:translateY(-1px); }
.mr-stat.on{ border-color:var(--tn); box-shadow:0 0 0 3px color-mix(in srgb, var(--tn) 16%, transparent); }
.mr-stat-ic{ flex:none; width:42px; height:42px; border-radius:14px; display:flex; align-items:center; justify-content:center; font-size:20px; background:var(--tn-bg); color:var(--tn); }
.mr-stat b{ display:block; font-size:22px; line-height:1.1; font-weight:700; } .mr-stat small{ display:block; font-size:12px; color:var(--muted); margin-top:2px; }

.mr-group + .mr-group{ margin-top:20px; }
.mr-group-h{ display:flex; align-items:center; gap:8px; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; }
.mr-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(250px,1fr)); gap:10px; }
.mr-card{ position:relative; display:flex; align-items:center; gap:13px; padding:13px 14px; border:1px solid var(--line); border-radius:18px; background:var(--surface); text-decoration:none !important; color:var(--ink); transition:border-color .16s, background .16s, transform .16s var(--ease); }
.mr-card:hover{ border-color:var(--tn); background:var(--tn-bg); transform:translateY(-1px); }
.mr-ic{ flex:none; width:44px; height:44px; border-radius:15px; display:flex; align-items:center; justify-content:center; font-size:21px; background:var(--tn-bg); color:var(--tn); }
.mr-txt b{ display:block; font-size:13.5px; font-weight:600; } .mr-txt small{ display:block; font-size:12px; color:var(--muted); line-height:1.35; margin-top:2px; }
.mr-go{ margin-left:auto; font-size:22px; color:var(--muted); transition:transform .16s, color .16s; } .mr-card:hover .mr-go{ transform:translateX(3px); color:var(--tn); }

.mr-row{ display:flex; align-items:center; gap:14px; padding:14px 18px; background:var(--surface); border:1px solid var(--line); border-radius:22px; text-decoration:none !important; color:var(--ink); transition:border-color .16s, box-shadow .16s, transform .16s var(--ease); }
.mr-row:hover{ border-color:var(--tn); box-shadow:0 12px 26px -20px rgba(18,54,46,.5); transform:translateY(-1px); }
.mr-main{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.mr-title{ font-size:14px; font-weight:600; white-space:normal; line-height:1.35; }
.mr-meta{ font-size:12px; color:var(--muted); }
.mr-prog{ display:flex; align-items:center; flex-wrap:wrap; gap:4px; margin-top:5px; }
.mr-prog i{ display:block; width:26px; height:5px; border-radius:99px; background:var(--line); } .mr-prog i.on{ background:var(--tn); } .mr-prog i.now{ background:var(--tn); opacity:.4; animation:mrPulse 1.6s ease-in-out infinite; }
.mr-prog em{ font-style:normal; font-size:12px; color:var(--ink-2); margin-left:8px; }
.mr-side{ flex:none; display:flex; align-items:center; gap:10px; color:var(--muted); }
@keyframes mrPulse{ 50%{ opacity:.85; } }
.mr-empty{ text-align:center; padding:44px 20px; } .mr-empty h3{ font-weight:600; font-size:15px; margin:10px 0 4px; } .mr-empty p{ color:var(--muted); font-size:13px; max-width:380px; margin:0 auto 16px; }
.mr-empty-ic{ display:inline-flex; width:60px; height:60px; border-radius:50%; align-items:center; justify-content:center; background:var(--lime-soft); color:var(--forest-2); font-size:26px; }
@media (max-width:640px){ .mr-row{ padding:13px 14px; } .mr-side .bi-chevron-right{ display:none; } .mr-prog i{ width:20px; } }

/* ===== Persetujuan: tabel keputusan ===== */
.btn-danger-solid{ background:var(--red); color:#fff; border:1px solid var(--red); } .btn-danger-solid:hover{ filter:brightness(.92); }
.ap-count{ display:inline-block; margin-left:6px; min-width:20px; padding:0 7px; border-radius:999px; background:var(--forest-2); color:#fff; font-size:11px; font-weight:600; line-height:20px; text-align:center; }
.pill-toggle a.active .ap-count{ background:var(--lime); color:var(--lime-ink); }
.ap-search{ position:relative; } .ap-search .bi{ position:absolute; left:13px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:14px; }
.ap-search input{ height:40px; padding-left:36px; min-width:240px; }
.ap-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:22px; background:var(--surface); }
.ap-table{ width:100%; min-width:1080px; border-collapse:separate; border-spacing:0; }
.ap-table thead th{ position:sticky; top:0; z-index:2; background:var(--surface-2); padding:12px 16px; font-size:11.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); text-align:left; border-bottom:1px solid var(--line); white-space:nowrap; }
.ap-table tbody td{ padding:15px 16px; vertical-align:top; border-bottom:1px solid var(--line); font-size:13px; }
.ap-table tbody tr:not(.ap-detail):hover td{ background:color-mix(in srgb, var(--lime-soft) 45%, transparent); }
.ap-table tr.sev-bad > td:first-child{ box-shadow:inset 3px 0 0 var(--red); } .ap-table tr.sev-warn > td:first-child{ box-shadow:inset 3px 0 0 var(--amber); }
.ap-table tbody tr:last-child td{ border-bottom:0; }
.ap-check{ width:17px; height:17px; accent-color:var(--forest-2); cursor:pointer; } .ap-check:disabled{ opacity:.35; cursor:not-allowed; }
.ap-name{ font-weight:600; font-size:13.5px; white-space:normal; } .ap-sub{ font-size:12px; color:var(--muted); white-space:normal; line-height:1.4; }
.ap-ic{ flex:none; width:38px; height:38px; border-radius:13px; display:flex; align-items:center; justify-content:center; background:var(--lime-soft); color:var(--forest-2); font-size:18px; }
.ap-kind{ font-size:11px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); } .ap-main{ font-size:14px; font-weight:600; white-space:normal; line-height:1.35; }
.ap-flags{ display:flex; flex-direction:column; align-items:flex-start; gap:5px; }
.ap-flag{ display:inline-flex; align-items:flex-start; gap:7px; padding:4px 11px 4px 9px; border-radius:14px; font-size:12px; font-weight:500; line-height:1.4; text-align:left; white-space:normal; background:var(--tn-bg); color:var(--tn); }
.ap-flag .bi{ margin-top:1px; flex:none; }
.ap-flag.ok{ --tn:#2F7D1B; --tn-bg:var(--lime-soft); } .ap-flag.info{ --tn:#2A5FC9; --tn-bg:var(--blue-soft); } .ap-flag.warn{ --tn:#9A5B00; --tn-bg:var(--amber-soft); } .ap-flag.bad{ --tn:#B4232A; --tn-bg:var(--red-soft); font-weight:600; }
html[data-theme="dark"] .ap-flag.ok{ --tn:#A6EA5B; --tn-bg:rgba(141,227,27,.14); } html[data-theme="dark"] .ap-flag.info{ --tn:#8DB4FF; --tn-bg:rgba(60,120,232,.18); }
html[data-theme="dark"] .ap-flag.warn{ --tn:#F6C25B; --tn-bg:rgba(233,147,12,.16); } html[data-theme="dark"] .ap-flag.bad{ --tn:#FF9A9C; --tn-bg:rgba(229,37,42,.18); }
.ap-more{ font-size:12px; font-weight:600; color:var(--forest-3); padding:2px 6px; }
.ap-actions{ display:inline-flex; align-items:center; gap:7px; justify-content:flex-end; }
.ap-actions .icon-btn.is-on{ background:var(--forest); color:#fff; }
.ap-detail td{ background:var(--surface-2); padding:18px 22px !important; }
.ap-detail-grid{ display:grid; grid-template-columns:1.3fr 1.2fr 1fr; gap:26px; }
.ap-detail h4{ font-size:11.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.ap-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; font-size:13px; white-space:normal; }
.ap-fact{ display:flex; justify-content:space-between; gap:14px; padding:7px 0; border-bottom:1px dashed var(--line); font-size:12.5px; } .ap-fact span{ color:var(--muted); } .ap-fact b{ text-align:right; }
.ap-flags + .ap-fact{ margin-top:12px; }
.ap-bulk{ position:sticky; top:8px; z-index:20; display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:12px 18px; margin-bottom:14px; border-radius:20px; background:var(--forest); color:#fff; box-shadow:0 14px 30px -14px rgba(18,54,46,.6); font-size:13px; }
.ap-bulk .btn-outline{ background:transparent; color:#fff; border-color:rgba(255,255,255,.35); }
.ap-modal{ position:fixed; inset:0; z-index:90; display:flex; align-items:center; justify-content:center; padding:16px; }
.ap-modal-bg{ position:absolute; inset:0; background:rgba(10,24,20,.55); backdrop-filter:blur(2px); }
.ap-modal-card{ position:relative; width:100%; max-width:580px; max-height:92vh; overflow:auto; background:var(--surface); border-radius:26px; box-shadow:0 30px 70px -20px rgba(0,0,0,.5); }
.ap-modal-head{ display:flex; align-items:center; gap:13px; padding:18px 22px; border-bottom:1px solid var(--line); }
.ap-modal-ic{ width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:19px; }
.ap-modal-head.ok .ap-modal-ic{ background:var(--lime-soft); color:var(--forest-2); } .ap-modal-head.bad .ap-modal-ic{ background:var(--red-soft); color:var(--red); }
.ap-modal-title{ font-size:16px; font-weight:700; }
.ap-modal-body{ padding:18px 22px; } .ap-modal-foot{ display:flex; justify-content:flex-end; gap:10px; padding:14px 22px 20px; }
.ap-recap{ padding:12px 14px; border-radius:16px; background:var(--surface-2); margin-bottom:12px; font-size:13.5px; display:flex; flex-direction:column; gap:3px; }
.ap-warn{ margin-top:12px; padding:10px 13px; border-radius:14px; background:var(--red-soft); color:var(--red); font-size:12.5px; font-weight:500; }
@media (max-width:1100px){ .ap-detail-grid{ grid-template-columns:1fr; gap:18px; } }

/* ===== Toolbar periode (Hari / Minggu / Bulan / Periode) ===== */
.per-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:14px; }
.per-nav{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.per-label{ display:inline-flex; align-items:center; gap:8px; padding:7px 16px; border-radius:999px; background:var(--surface); border:1px solid var(--line); font-size:13px; font-weight:600; min-width:200px; justify-content:center; }

/* ===== Berita ===== */
.nw-bar{ display:flex; flex-direction:column; gap:12px; margin-bottom:20px; }
.nw-search{ position:relative; max-width:560px; } .nw-search > .bi{ position:absolute; left:16px; top:50%; transform:translateY(-50%); color:var(--muted); }
.nw-search input{ width:100%; height:46px; padding:0 44px 0 44px; border-radius:999px; border:1px solid var(--line); background:var(--surface); font-size:14px; outline:none; transition:border-color .15s, box-shadow .15s; }
.nw-search input:focus{ border-color:var(--forest-3); box-shadow:0 0 0 4px color-mix(in srgb, var(--forest-3) 14%, transparent); }
.nw-clear{ position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:13px; }
.nw-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.nw-hero{ position:relative; display:grid; grid-template-columns:auto 1fr; gap:26px; align-items:center; padding:30px 34px; border-radius:30px; margin-bottom:24px; text-decoration:none !important; color:var(--ink);
    background:linear-gradient(120deg, var(--tn-bg), color-mix(in srgb, var(--tn-bg) 40%, var(--surface))); border:1px solid color-mix(in srgb, var(--tn) 22%, var(--line)); overflow:hidden; transition:transform .2s var(--ease), box-shadow .2s; }
.nw-hero:hover{ transform:translateY(-2px); box-shadow:0 22px 40px -28px color-mix(in srgb, var(--tn) 60%, transparent); }
.nw-hero-art{ width:110px; height:110px; border-radius:32px; display:flex; align-items:center; justify-content:center; font-size:52px; color:var(--tn); background:color-mix(in srgb, var(--surface) 70%, transparent); }
.nw-hero-body{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.nw-hero-title{ font-size:26px; line-height:1.2; font-weight:800; letter-spacing:-.015em; } .nw-hero-ex{ font-size:14.5px; line-height:1.6; color:var(--ink-2); max-width:720px; }
.nw-hero-go{ grid-column:1/-1; font-size:13px; font-weight:700; color:var(--tn); display:flex; align-items:center; gap:6px; }
.nw-badges{ display:flex; flex-wrap:wrap; gap:7px; }
.nw-badge{ display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:999px; font-size:11.5px; font-weight:600; background:color-mix(in srgb, var(--surface) 75%, transparent); color:var(--tn); border:1px solid color-mix(in srgb, var(--tn) 25%, transparent); }
.nw-badge.new{ background:var(--red); color:#fff; border-color:var(--red); }
.nw-meta{ display:flex; flex-wrap:wrap; gap:6px 18px; font-size:12.5px; color:var(--muted); } .nw-meta .bi{ margin-right:4px; }
.nw-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:18px; }
.nw-card{ display:flex; flex-direction:column; gap:10px; padding:20px 22px; border-radius:24px; background:var(--surface); border:1px solid var(--line); text-decoration:none !important; color:var(--ink); border-top:4px solid var(--tn); transition:transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.nw-card:hover{ transform:translateY(-3px); box-shadow:0 20px 34px -26px rgba(18,54,46,.55); }
.nw-card-top{ display:flex; align-items:center; gap:8px; }
.nw-cat{ display:inline-flex; align-items:center; gap:6px; padding:3px 10px; border-radius:999px; background:var(--tn-bg); color:var(--tn); font-size:11.5px; font-weight:600; }
.nw-pin{ color:var(--amber); font-size:13px; } .nw-new{ margin-left:auto; background:var(--red); color:#fff; font-size:10.5px; font-weight:700; padding:2px 8px; border-radius:999px; }
.nw-title{ font-size:16.5px; line-height:1.3; font-weight:700; white-space:normal; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.nw-ex{ font-size:13px; line-height:1.55; color:var(--muted); white-space:normal; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; flex:1; }
.nw-foot{ display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:12px; border-top:1px solid var(--line); }
.nw-author{ display:flex; align-items:center; gap:9px; min-width:0; } .nw-author b{ display:block; font-size:12.5px; } .nw-author small, .nw-icons small{ display:block; font-size:11px; color:var(--muted); }
.nw-icons{ display:flex; align-items:center; gap:8px; color:var(--muted); text-align:right; }
.nw-back{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--muted); text-decoration:none !important; } .nw-back:hover{ color:var(--ink); }
.nw-article{ background:var(--surface); border:1px solid var(--line); border-radius:30px; overflow:hidden; }
.nw-art-head{ padding:30px 36px 24px; background:linear-gradient(120deg, var(--tn-bg), var(--surface)); border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:14px; }
.nw-art-head h1{ font-size:28px; line-height:1.2; font-weight:800; letter-spacing:-.02em; }
.nw-body{ padding:28px 36px; font-size:15.5px; line-height:1.75; max-width:760px; }
.nw-files{ padding:0 36px 24px; } .nw-files h3, .nw-side h3{ font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); margin-bottom:12px; }
.nw-file-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:10px; }
.nw-file{ display:flex; align-items:center; gap:12px; padding:10px 14px; border-radius:18px; background:var(--surface-2); } .nw-file img{ width:44px; height:44px; object-fit:cover; border-radius:12px; }
.nw-file-ic{ width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:var(--lime-soft); color:var(--forest-2); font-size:20px; }
.nw-file-name{ font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:170px; } .nw-file-act{ margin-left:auto; display:flex; gap:12px; color:var(--forest-3); }
.nw-art-foot{ display:flex; flex-wrap:wrap; gap:8px; padding:16px 36px 24px; border-top:1px solid var(--line); }
.nw-side{ align-self:start; position:sticky; top:84px; background:var(--surface); border:1px solid var(--line); border-radius:26px; padding:20px; }
.nw-rel{ display:flex; gap:12px; padding:10px 6px; border-radius:16px; text-decoration:none !important; color:var(--ink); transition:background .15s; } .nw-rel:hover{ background:var(--tn-bg); }
.nw-rel-ic{ flex:none; width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:var(--tn-bg); color:var(--tn); }
.nw-rel b{ display:block; font-size:13px; line-height:1.35; white-space:normal; } .nw-rel small{ display:block; font-size:11.5px; color:var(--muted); margin-top:2px; }
@media (max-width:720px){ .nw-hero{ grid-template-columns:1fr; padding:22px; } .nw-hero-art{ display:none; } .nw-hero-title{ font-size:21px; } .nw-art-head,.nw-body,.nw-files,.nw-art-foot{ padding-left:20px; padding-right:20px; } .nw-art-head h1{ font-size:23px; } .nw-side{ position:static; } }
@media print{ .nw-side,.nw-art-foot,.nw-back{ display:none !important; } }

/* ===== Tab bertingkat (grup → sub-tab) & kelengkapan data karyawan ===== */
.tg-primary{ display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:10px; margin-bottom:12px; }
.tg-pill{ display:flex; align-items:center; gap:12px; padding:12px 16px; border-radius:20px; background:var(--surface); border:1px solid var(--line); text-align:left; cursor:pointer; transition:border-color .16s, background .16s, box-shadow .16s, transform .16s var(--ease); }
.tg-pill:hover{ border-color:color-mix(in srgb, var(--forest-3) 40%, var(--line)); transform:translateY(-1px); }
.tg-pill.on{ background:var(--forest); border-color:var(--forest); color:#fff; box-shadow:0 14px 26px -18px rgba(18,54,46,.7); }
.tg-ic{ flex:none; width:38px; height:38px; border-radius:13px; display:flex; align-items:center; justify-content:center; font-size:18px; background:var(--lime-soft); color:var(--forest-2); }
.tg-pill.on .tg-ic{ background:rgba(255,255,255,.14); color:var(--lime); }
.tg-txt{ display:flex; flex-direction:column; min-width:0; line-height:1.25; } .tg-txt b{ font-size:13.5px; font-weight:600; } .tg-txt small{ font-size:11.5px; color:var(--muted); font-weight:400; } .tg-pill.on small{ color:rgba(255,255,255,.7); }
.tg-pill .n{ margin-left:auto; font-size:11px; font-weight:700; padding:1px 8px; border-radius:999px; background:var(--surface-2); color:var(--ink-2); } .tg-pill.on .n{ background:var(--lime); color:var(--lime-ink); }
.tg-sub{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 20px; padding:6px; border-radius:999px; background:var(--surface-2); width:fit-content; max-width:100%; }
.tg-chip{ display:inline-flex; align-items:center; gap:7px; padding:8px 16px; border-radius:999px; font-size:13px; font-weight:500; color:var(--muted); cursor:pointer; transition:background .15s, color .15s; }
.tg-chip:hover{ color:var(--ink); } .tg-chip.on{ background:var(--surface); color:var(--ink); font-weight:600; box-shadow:0 2px 8px -3px rgba(18,54,46,.3); }
.tg-chip .n{ font-size:10.5px; font-weight:700; padding:0 7px; border-radius:999px; background:var(--lime); color:var(--lime-ink); }
@media (max-width:640px){ .tg-primary{ grid-template-columns:1fr 1fr; } .tg-pill{ padding:10px 12px; gap:9px; } .tg-ic{ width:32px; height:32px; font-size:15px; } .tg-txt small{ display:none; } .tg-sub{ border-radius:20px; width:100%; } }

.cmp-card{ display:grid; grid-template-columns:auto 1fr; gap:20px; align-items:center; padding:18px 24px; margin-bottom:18px; }
.cmp-ring{ --p:0; width:74px; height:74px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:conic-gradient(var(--c, var(--lime-2)) calc(var(--p) * 1%), var(--surface-2) 0); position:relative; }
.cmp-ring::before{ content:''; position:absolute; inset:7px; border-radius:50%; background:var(--surface); } .cmp-ring b{ position:relative; font-size:17px; font-weight:800; }
.cmp-title{ font-size:14px; font-weight:700; } .cmp-sub{ font-size:12.5px; color:var(--muted); margin-top:2px; }
.cmp-chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:10px; }
.cmp-chip{ display:inline-flex; align-items:center; gap:6px; padding:4px 11px; border-radius:999px; font-size:12px; font-weight:500; background:var(--amber-soft); color:#9A5B00; text-decoration:none !important; cursor:pointer; } .cmp-chip:hover{ filter:brightness(.96); }
html[data-theme="dark"] .cmp-chip{ color:#F6C25B; }
@media (max-width:560px){ .cmp-card{ grid-template-columns:1fr; } }


/* ---- Layout aplikasi FULL PAGE: tanpa bingkai / border luar, area konten selebar layar ----
   Dibatasi ke body.app-full (layout aplikasi) — halaman login memakai layout sendiri dan tidak terpengaruh. */
body.app-full{ background:var(--panel); }
body.app-full .shell, body.app-full .shell.mode-floating{
  max-width:none; margin:0; padding:0; gap:0; border:0; border-radius:0; box-shadow:none; background:var(--panel); min-height:100vh; overflow:visible;
}
body.app-full .shell.mode-floating .main-wrap{ background:transparent; border-radius:0; box-shadow:none; min-height:100vh; overflow:visible; }
body.app-full .content{ max-width:none; padding:4px clamp(16px, 2.4vw, 40px) 64px; }
body.app-full .topbar{ padding:14px clamp(16px, 2.4vw, 40px); border:0; box-shadow:none; }
/* menempel / ikon saja: penuh setinggi layar, tanpa jarak dari tepi */
@media (min-width:900px){
  body.app-full .sb-pinned{ top:0; height:100vh; }
  body.app-full .sb-rail{ top:0; height:100vh; padding:14px 0 14px 14px; }
}
/* melayang: kartu di atas konten (tidak mengambil ruang), tertutup sampai dibuka */
body.app-full .shell.mode-floating .sb-floating{
  position:fixed; left:14px; top:14px; bottom:14px; height:auto; width:var(--sbw); flex:none; z-index:70;
  border-radius:28px; box-shadow:var(--shadow-pop, 0 26px 60px -30px rgba(18,54,46,.45)); animation:peekIn .26s var(--ease) both;
}
body.app-full .sb-backdrop.light{ background:rgba(15,40,33,.12); }
@media (max-width:899px){ body.app-full .content{ padding:4px 14px 56px; } body.app-full .topbar{ padding:12px 14px; } }
@media print{ body.app-full .content{ padding:0; } }

/* ================= Monitoring kehadiran (kalender) ================= */
.c-green{--cb:#D9F2CB;--cf:#2B6E18}.c-amber{--cb:#FFE9B8;--cf:#8A5200}.c-cyan{--cb:#CDEFF6;--cf:#0B6479}.c-blue{--cb:#D5E4FF;--cf:#1F4FB0}.c-violet{--cb:#E6DCFF;--cf:#5B33B5}
.c-teal{--cb:#CDF1E8;--cf:#0B6B58}.c-rose{--cb:#FFD9E0;--cf:#A3173A}.c-slate{--cb:#E6E9EE;--cf:#556070}.c-dark{--cb:#3A2B33;--cf:#FFD9E0}.c-red{--cb:#FBC9C9;--cf:#A01616}
.c-redline{--cb:#fff;--cf:#C62121}.c-ghost{--cb:transparent;--cf:#98A2B3}
.ac-chip{ position:relative; display:inline-grid; place-items:center; min-width:30px; height:26px; padding:0 6px; border-radius:9px; font-size:11.5px; font-weight:700; letter-spacing:.02em; background:var(--cb); color:var(--cf); border:1px solid transparent; cursor:pointer; transition:transform .12s, box-shadow .12s; }
.c-redline.ac-chip{ border:1.5px dashed #E26868; } .c-ghost.ac-chip{ border:1px dashed var(--line); }
button.ac-chip:hover{ transform:scale(1.12); box-shadow:0 4px 12px -4px rgba(0,0,0,.35); z-index:3; }
.ac-chip.sm{ min-width:24px; height:20px; font-size:10.5px; border-radius:7px; cursor:default; }
.ac-mk{ position:absolute; top:-3px; right:-3px; width:9px; height:9px; border-radius:50%; border:2px solid var(--surface); } .ac-mk.bad{ background:#E03131; } .ac-mk.warn{ background:#F59F00; } .ac-mk.ok{ background:#2F9E44; }
.ac-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 14px; } .ac-bar .input-field{ width:auto; min-width:150px; } .ac-bar .ap-search{ min-width:210px; }
.ac-month{ display:flex; align-items:center; gap:6px; margin-right:6px; } .ac-month input[type=month]{ min-width:150px; }
.ac-kpis{ display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:12px; margin-bottom:16px; }
.ac-kpi{ display:flex; align-items:center; gap:12px; padding:14px 16px; border-radius:18px; background:var(--surface); border:1px solid var(--line); }
.ac-kpi-ic{ width:40px; height:40px; flex:none; border-radius:13px; display:grid; place-items:center; font-size:18px; background:var(--cb); color:var(--cf); }
.ac-kpi b{ display:block; font-size:19px; line-height:1.15; color:var(--ink); } .ac-kpi small{ display:block; font-size:11.5px; color:var(--muted); margin-top:2px; } .ac-kpi small em{ font-style:normal; opacity:.7; }
.ac-insights{ margin-bottom:16px; } .ac-ins-list{ display:grid; grid-template-columns:repeat(auto-fill, minmax(340px, 1fr)); gap:8px; margin-top:10px; }
.ac-ins{ display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:14px; background:var(--tn-bg); color:var(--ink); text-decoration:none; transition:filter .15s; margin-bottom:6px; }
a.ac-ins:hover{ filter:brightness(.97); } .ac-ins .bi{ color:var(--tn); margin-top:2px; flex:none; } .ac-ins span{ font-size:13px; } .ac-ins small{ display:block; font-size:11.5px; color:var(--muted); margin-top:2px; white-space:normal; }
.ac-ins.red{ --tn:#C92A2A; --tn-bg:var(--red-soft); } .ac-ins.amber{ --tn:#B76E00; --tn-bg:var(--amber-soft); } .ac-ins.blue{ --tn:#2A5FC9; --tn-bg:var(--blue-soft, #E3ECFF); }
.ac-legend{ display:flex; flex-wrap:wrap; gap:6px 10px; align-items:center; margin:0 0 10px; }
.ac-lg{ display:inline-flex; align-items:center; gap:6px; padding:3px 9px 3px 4px; border-radius:999px; font-size:12px; color:var(--ink-2); background:transparent; border:1px solid transparent; }
button.ac-lg{ cursor:pointer; } button.ac-lg:hover{ background:var(--surface-2); } .ac-lg.on{ background:var(--surface-2); border-color:var(--line); font-weight:600; }
.ac-wrap{ overflow:auto; border:1px solid var(--line); border-radius:18px; background:var(--surface); max-height:calc(100vh - 220px); }
.ac-table{ border-collapse:separate; border-spacing:0; font-size:12px; min-width:100%; }
.ac-table th, .ac-table td{ padding:4px 2px; text-align:center; border-bottom:1px solid var(--line); background:var(--surface); }
.ac-table thead th{ position:sticky; top:0; z-index:5; background:var(--surface-2); font-weight:600; color:var(--muted); }
.ac-emp-h, .ac-emp{ position:sticky; left:0; z-index:6; min-width:210px; max-width:230px; text-align:left !important; padding:6px 12px !important; background:var(--surface) !important; border-right:1px solid var(--line); }
.ac-table thead .ac-emp-h{ z-index:8; background:var(--surface-2) !important; }
.ac-emp-n{ display:block; font-weight:600; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .ac-emp small{ display:block; color:var(--muted); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ac-rate{ position:absolute; right:8px; top:8px; font-size:10.5px; font-weight:700; padding:1px 7px; border-radius:999px; } .ac-rate.g{ background:#D9F2CB; color:#2B6E18; } .ac-rate.a{ background:#FFE9B8; color:#8A5200; } .ac-rate.r{ background:#FBC9C9; color:#A01616; }
.ac-d{ min-width:34px; } .ac-d span{ display:block; font-size:10px; font-weight:500; text-transform:uppercase; } .ac-d b{ font-size:12.5px; color:var(--ink); }
.ac-d.we, .ac-c.we{ background:color-mix(in srgb, var(--surface-2) 70%, transparent) !important; } .ac-d.ho b{ color:#C0264B; } .ac-d.today b{ background:var(--forest); color:#fff; border-radius:8px; padding:1px 6px; }
.ac-c{ padding:3px 2px !important; transition:opacity .15s; } .ac-c.today{ box-shadow:inset 2px 0 0 var(--forest), inset -2px 0 0 var(--forest); } .ac-c.dim .ac-chip{ opacity:.18; }
.ac-s{ min-width:62px; font-size:11.5px; padding:4px 8px !important; white-space:nowrap; } .ac-s.warn{ color:#9A5B00; font-weight:600; } .ac-s.bad{ color:#C62121; font-weight:700; }
.ac-table tfoot td{ position:sticky; bottom:0; z-index:5; background:var(--surface-2); border-top:1px solid var(--line); border-bottom:0; }
.ac-pd{ position:relative; height:34px; padding:0 !important; } .ac-pd i{ position:absolute; left:3px; right:3px; bottom:0; background:#BFE3AE; border-radius:4px 4px 0 0; } .ac-pd span{ position:relative; font-size:10px; font-weight:600; color:var(--ink-2); line-height:34px; }
.ac-drawer-wrap{ position:fixed; inset:0; z-index:110; } .ac-drawer-bg{ position:absolute; inset:0; background:rgba(12,32,27,.32); }
.ac-drawer{ position:absolute; right:0; top:0; bottom:0; width:min(420px, 100%); background:var(--surface); box-shadow:-24px 0 60px -30px rgba(0,0,0,.5); overflow:auto; padding:18px 20px; }
.ac-dh{ display:flex; align-items:center; gap:12px; margin-bottom:12px; } .ac-dh .ac-chip{ min-width:44px; height:44px; font-size:16px; border-radius:14px; cursor:default; } .ac-dh-t{ font-weight:700; font-size:16px; } .ac-dh-s{ font-size:12.5px; color:var(--muted); }
.ac-who{ display:flex; flex-direction:column; padding:10px 12px; border-radius:12px; background:var(--surface-2); margin-bottom:14px; } .ac-who span{ font-size:12px; color:var(--muted); }
.ac-dl{ display:grid; grid-template-columns:1fr 1fr; gap:12px 14px; } .ac-dl dt{ font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; } .ac-dl dd{ font-size:14px; font-weight:600; margin:2px 0 0; white-space:normal; }
.ac-bad{ color:#C62121; } .ac-warn{ color:#9A5B00; }
.ac-flags{ margin-top:16px; display:flex; flex-wrap:wrap; gap:6px; } .ac-flags b{ width:100%; font-size:12px; } .ac-flag{ font-size:12px; padding:3px 10px; border-radius:999px; background:var(--amber-soft); color:#8A5200; }
.ac-hint{ margin-top:14px; padding:10px 12px; border-radius:12px; background:var(--blue-soft, #E3ECFF); color:#1F4FB0; font-size:12.5px; } .ac-df{ display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; padding-top:14px; border-top:1px solid var(--line); }
.ac-cal{ display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; } .ac-cal-h{ text-align:center; font-size:11.5px; font-weight:600; color:var(--muted); padding:4px 0; } .ac-cal-h.we{ color:#C0264B; }
.ac-day{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:4px; min-height:98px; padding:8px 9px; border-radius:14px; background:var(--surface); border:1px solid var(--line); text-align:left; cursor:pointer; transition:transform .12s, box-shadow .12s; }
.ac-day:hover{ transform:translateY(-2px); box-shadow:0 10px 22px -14px rgba(0,0,0,.4); } .ac-day.empty{ border:0; background:transparent; cursor:default; box-shadow:none; transform:none; } .ac-day.today{ border-color:var(--forest); box-shadow:0 0 0 2px var(--lime); }
.ac-day.we{ background:var(--surface-2); } .ac-day-n{ font-size:12px; font-weight:700; color:var(--ink-2); } .ac-day .ac-chip{ position:absolute; top:7px; right:7px; } .ac-day-t{ font-size:11.5px; font-weight:600; color:var(--ink); } .ac-day-t.muted{ color:var(--muted); font-weight:500; }
.ac-day-f{ display:flex; flex-wrap:wrap; gap:3px; } .ac-day-f em{ font-style:normal; font-size:10.5px; padding:1px 6px; border-radius:6px; background:var(--surface-2); color:var(--ink-2); } .ac-day-f em.warn{ background:#FFE9B8; color:#8A5200; } .ac-day-f em.bad{ background:#FBC9C9; color:#A01616; } .ac-day-f em.ok{ background:#D9F2CB; color:#2B6E18; }
.c-green-soft{ background:color-mix(in srgb, #D9F2CB 38%, var(--surface)); } .c-amber-soft{ background:color-mix(in srgb, #FFE9B8 45%, var(--surface)); } .c-red-soft,.c-redline-soft{ background:color-mix(in srgb, #FBC9C9 40%, var(--surface)); }
.c-blue-soft{ background:color-mix(in srgb, #D5E4FF 45%, var(--surface)); } .c-violet-soft{ background:color-mix(in srgb, #E6DCFF 45%, var(--surface)); } .c-teal-soft,.c-cyan-soft{ background:color-mix(in srgb, #CDF1E8 45%, var(--surface)); } .c-rose-soft{ background:color-mix(in srgb, #FFD9E0 50%, var(--surface)); }
.c-dark-soft{ background:color-mix(in srgb, #3A2B33 14%, var(--surface)); } .c-slate-soft,.c-ghost-soft{ background:var(--surface-2); }
.ac-fact{ padding:8px 0; border-bottom:1px solid var(--line); } .ac-fact:last-of-type{ border-bottom:0; }
@media (max-width:640px){ .ac-cal{ gap:3px; } .ac-day{ min-height:72px; padding:5px; } .ac-day-t, .ac-day-f{ display:none; } }


/* ================= Kalender: filter kelompok, panel samping, agenda ================= */
.cal-filter{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:16px; } .cal-title{ font-size:16px; font-weight:700; margin-right:6px; }
.cal-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.cal-chip{ display:inline-flex; align-items:center; gap:7px; padding:5px 11px; border-radius:999px; font-size:12.5px; font-weight:600; background:color-mix(in srgb, var(--c) 14%, var(--surface)); color:color-mix(in srgb, var(--c) 78%, #000); border:1px solid color-mix(in srgb, var(--c) 30%, transparent); cursor:pointer; transition:opacity .15s, transform .12s; }
.cal-chip:hover{ transform:translateY(-1px); } .cal-chip em{ font-style:normal; font-size:11px; padding:0 6px; border-radius:999px; background:color-mix(in srgb, var(--c) 22%, transparent); } .cal-chip.off{ opacity:.42; text-decoration:line-through; }
.cal-item{ cursor:pointer; } .cal-item .bi{ font-size:10px; margin-right:2px; opacity:.8; }
.cal-cell{ max-height:170px; overflow-y:auto; scrollbar-width:thin; }
.cal-layout{ display:grid; grid-template-columns:minmax(0, 1fr) 330px; gap:20px; align-items:start; } @media (max-width:1280px){ .cal-layout{ grid-template-columns:1fr; } }
.cal-side{ display:flex; flex-direction:column; gap:16px; position:sticky; top:84px; } .cal-side-h{ display:flex; align-items:center; gap:8px; font-size:13.5px; font-weight:700; margin:0 0 10px; } .cal-side-h span{ margin-left:auto; font-size:11px; font-weight:600; color:var(--muted); }
.cal-li{ display:flex; gap:10px; align-items:flex-start; padding:8px 6px; border-radius:12px; cursor:pointer; } .cal-li:hover{ background:var(--surface-2); } .cal-li b{ display:block; font-size:12.5px; font-weight:600; line-height:1.3; } .cal-li small{ display:block; font-size:11px; color:var(--muted); white-space:normal; }
.cal-dot{ width:9px; height:9px; border-radius:50%; margin-top:5px; flex:none; } .cal-when{ flex:none; min-width:52px; text-align:center; font-size:10.5px; font-weight:700; padding:3px 6px; border-radius:8px; background:var(--surface-2); color:var(--ink-2); } .cal-when.warm{ background:#FFE9B8; color:#8A5200; } .cal-when.hot{ background:#FBC9C9; color:#A01616; }
.cal-ag-day{ display:flex; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); } .cal-ag-day.today .cal-ag-date b{ background:var(--forest); color:#fff; border-radius:12px; padding:0 8px; }
.cal-ag-date{ width:64px; flex:none; text-align:center; } .cal-ag-date b{ display:inline-block; font-size:22px; line-height:1.4; } .cal-ag-date span{ display:block; font-size:11px; text-transform:uppercase; color:var(--muted); } .cal-ag-date small{ display:block; font-size:10.5px; color:var(--muted); }
.cal-ag-list{ flex:1; display:flex; flex-direction:column; gap:8px; min-width:0; }
.cal-ag-it{ display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:14px; background:var(--surface); border:1px solid var(--line); cursor:pointer; transition:transform .12s, box-shadow .12s; } .cal-ag-it:hover{ transform:translateX(2px); box-shadow:0 8px 20px -14px rgba(0,0,0,.4); }
.cal-ag-ic{ width:34px; height:34px; border-radius:11px; display:grid; place-items:center; flex:none; } .cal-ag-it b{ display:block; font-size:13.5px; } .cal-ag-it small{ display:block; font-size:11.5px; color:var(--muted); white-space:normal; }
.cal-ag-tag{ margin-left:auto; flex:none; font-size:10.5px; font-weight:600; padding:2px 9px; border-radius:999px; background:color-mix(in srgb, var(--c) 14%, transparent); color:color-mix(in srgb, var(--c) 80%, #000); }

/* menu aksi baris: dipindah ke <body>, posisi ditentukan JS (rowMenu) */
.drop.drop-fixed{ margin:0; right:auto; }
