/* Keterangan di samping baris filter trend. */
.trend-filter-caption{
  flex:1 1 240px;min-width:200px;max-width:340px;
  font-size:11.5px;line-height:1.5;color:#829ab1;padding-bottom:9px;
}
@media(max-width:640px){
  .trend-filter-caption{max-width:none;padding-bottom:0}
}
/* Petak ikon sidebar: putih di atas #3b82f6 hanya 3,68:1 -> #2563eb (5,17:1) */
html[data-theme="dark"] .sb-brand-icon{background:#2563eb}
.sb-brand-icon{
  flex:none;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-size:17px;
  background:var(--accent);color:#fff;box-shadow:0 4px 10px rgba(37,99,235,.3);
}
body.sb-collapsed .sb-collapse{margin:0 0 0 auto}
#docSection .doc-table-wrap{max-height:400px;overflow:auto}
/* =========================================================
   STRIP TREND YANG BISA DIGULIR
   ------------------------------------------------------------
   Kalau data harian banyak, grafik hanya menampilkan 5 titik
   per layar; sisa data digulir ke samping (bukan dipadatkan).
   ========================================================= */
.trend-chart.is-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:6px;
}
.trend-chart.is-scroll::-webkit-scrollbar{height:9px}
.trend-chart.is-scroll::-webkit-scrollbar-track{background:#f2f7fb;border-radius:999px}
.trend-chart.is-scroll::-webkit-scrollbar-thumb{background:#c3d9ec;border-radius:999px;border:2px solid #f2f7fb}
.trend-chart.is-scroll::-webkit-scrollbar-thumb:hover{background:#9fc0e0}
html[data-theme="dark"] .trend-chart.is-scroll::-webkit-scrollbar-track{background:#101a2e}
html[data-theme="dark"] .trend-chart.is-scroll::-webkit-scrollbar-thumb{background:#31456d;border-color:#101a2e}
.profile-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--sd-line);
  border-radius: 16px;
  background: var(--sd-panel);
  box-shadow: var(--sd-shadow-sm);
}
.profile-photo {
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 4px solid var(--sd-panel);
  outline: 1px solid var(--sd-line);
  background: linear-gradient(135deg, var(--sd-accent), var(--sd-accent-2));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(15, 76, 129, .18);
}
.profile-field input:focus,
.profile-field textarea:focus {
  border-color: var(--sd-accent);
  box-shadow: 0 0 0 3px var(--sd-focus, rgba(37, 99, 235, .16));
  background: var(--sd-panel);
}
.profile-save {
  border: 1px solid var(--sd-accent);
  background: var(--sd-accent);
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 76, 129, .18);
}
.profile-loading {
  padding: 20px;
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  background: var(--sd-panel);
  color: var(--sd-text-soft);
  font-size: 13px;
  box-shadow: var(--sd-shadow-sm);
}
.rekap-date-range.is-loading .rekap-apply-btn{opacity:.65;cursor:progress}
.bar-list{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin-top:16px;
  /* Kotak bergulir: 5 batang tampil lebih dulu, sisanya menyusul
     saat digulir (sama seperti daftar lain di halaman ini). */
  max-height:440px;
  overflow:auto;
  padding-right:4px;
}
.bar-list{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin-top:16px;
}
/* =========================================================
   Dropdown "Document" - perbaikan
   1. Tidak lagi terpotong di layar <= 768px
   2. Bisa dibuka dengan klik/tap (tidak hanya hover)
   3. Menandai halaman aktif saat sedang di isi Document
   4. Panah berputar saat terbuka
   5. Fokus keyboard & aksesibilitas
   ========================================================= */

/* 1. nav tidak boleh memotong dropdown (dulu overflow-x:auto) */
.nav-menu{overflow:visible}
@media (max-width:768px){
  .nav-menu{overflow:visible!important;flex-wrap:wrap;row-gap:4px}
}
/* 2 & 4. state terbuka (dikendalikan JS: .is-open) */
.dropdown .dropdown-content{
  opacity:0;visibility:hidden;
  transition:opacity .16s ease;
}
.dropdown.is-open .dropdown-content,
.dropdown:focus-within .dropdown-content{opacity:1;visibility:visible}
.dropdown.is-open .dropdown-content{display:block;animation:dd-fade .16s ease}
/* User memilih "tutup" lewat klik sementara kursor masih di atas tombol:
   hover tidak boleh memaksa menu tetap terbuka */
.dropdown.dd-suppress .dropdown-content,
.dropdown.dd-suppress:hover .dropdown-content,
.dropdown.dd-suppress:focus-within .dropdown-content{display:none!important;opacity:0!important;visibility:hidden!important}
@keyframes dd-fade{from{opacity:0}to{opacity:1}}
.dropbtn .dd-caret{display:inline-block;transition:transform .18s ease;font-size:10px;line-height:1}
.dropdown.is-open .dropbtn .dd-caret{transform:rotate(180deg)}
/* 3. penanda: sedang berada di salah satu halaman Document */
.dropdown.is-current > .dropbtn{
  background:#eef5fb;color:#0b3c74;font-weight:600;
}
/* 5. area sentuh lebih lega + fokus jelas */
.dropbtn{min-height:38px;padding:8px 10px;border-radius:8px}
.dropbtn:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
.dropdown-content a:focus-visible{outline:2px solid #0f4c81;outline-offset:-2px;background:#eef5fb}
/* pointer halus */
.dropdown-content a{transition:background .15s ease,color .15s ease}
body.dd-lock{overflow:hidden}
/* 6. Mode GELAP: menu mengikuti tema, bukan tetap putih.
   css/responsive.css memaksa `background:#fff!important` pada
   .dropdown-content, sehingga aturan tema gelap di theme-core.css
   (yang tanpa !important) kalah. Akibatnya di mode gelap teks abu
   terang tampil di atas latar PUTIH - rasionya cuma ~2,3 sehingga
   isi menu sulit dibaca. Aturan di bawah (spesifisitas lebih tinggi
   + !important) mengembalikan panel gelap & teks terang. */
html[data-theme="dark"] .dropdown-content{
  background:var(--sd-panel-2,#18243d)!important;
  border-color:var(--sd-line,#243352)!important;
}
html[data-theme="dark"] .dropdown-content::before{
  background:var(--sd-panel-2,#18243d);
  border-left-color:var(--sd-line,#243352);
  border-top-color:var(--sd-line,#243352);
}
html[data-theme="dark"] .dropdown-content a{color:var(--sd-text-soft,#9aabc4)}
html[data-theme="dark"] .dropdown-content a:hover{background:#1b2a49;color:var(--sd-accent-2,#a9cdfa)}
/* =========================================================
   Polish profesional seluruh situs Service Desk SISI
   (statis, non-destruktif: hanya memperhalus, tak mengubah tata letak)
   ========================================================= */
:root{
  --pro-navy:#0b3c74;
  --pro-blue:#0f4c81;
  --pro-ring:rgba(47,134,214,.35);
}
/* seleksi teks khas */
::selection{background:#cfe6fb;color:#0b2240}
/* scrollbar halus */
::-webkit-scrollbar{width:11px;height:11px}
::-webkit-scrollbar-track{background:#eef3f8}
::-webkit-scrollbar-thumb{background:#b9cde0;border-radius:8px;border:2px solid #eef3f8}
::-webkit-scrollbar-thumb:hover{background:#8fb0cc}
/* judul seimbang */
h1,h2{text-wrap:balance}
/* jangkar tidak tertutup header menempel */
[id]{scroll-margin-top:92px}
/* ---------- header menempel ---------- */
body > header,
.dashboard-topbar{
  position:sticky;
  top:0;
  z-index:60;
  box-shadow:0 3px 14px rgba(8,47,91,.10);
}
/* ---------- navigasi ---------- */
.nav-menu a{
  border-radius:9px;
  padding:7px 11px;
  transition:background .16s ease,color .16s ease;
}
.nav-menu a:hover{background:#eef5fb;text-decoration:none}
.nav-menu a.active,
.dropdown-content a.active{background:#0f4c81!important;color:#fff!important}
.nav-menu a.active:hover,
.dropdown-content a.active:hover{background:#125a9e!important;color:#fff!important}
/* ---------- tombol: sentuhan angkat + fokus keyboard ---------- */
.btn-open-pdf,
.rekap-apply-btn,
.rekap-export-btn,
.manual-no-result-btn,
.dashboard-button,
.dashboard-logout,
.dashboard-small-button{
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
}
.btn-open-pdf:hover,
.rekap-apply-btn:hover,
.rekap-export-btn:hover,
.manual-no-result-btn:hover,
.dashboard-button:hover,
.dashboard-logout:hover,
.dashboard-small-button:hover{transform:translateY(-1px)}
a:focus-visible,
button:focus-visible{outline:2px solid var(--pro-blue);outline-offset:2px}
/* ---------- kartu dokumen: hover halus ---------- */
.manual-card,
.app-box{
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.manual-card:hover,
.app-box:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 28px rgba(8,47,91,.12);
}
/* ---------- sub-header ---------- */
.sub-header{box-shadow:0 2px 10px rgba(8,47,91,.22)}
.status-dot{animation:pro-pulse 2.2s ease-in-out infinite}
@keyframes pro-pulse{0%,100%{opacity:1}50%{opacity:.4}}
/* ---------- footer ---------- */
body > footer,
.dashboard-footer{
  border-top:1px solid #e2eaf2;
  background:#fff;
  padding:22px 16px;
  text-align:center;
  color:#627d98;
  font-size:12.5px;
}
/* ---------- peringatan database (dashboard tetap hidup) ---------- */
.db-warn{
  display:flex;align-items:flex-start;gap:12px;
  margin:0 0 18px;padding:14px 16px;
  background:#fff8e6;border:1px solid #f2d492;border-left:4px solid #d9822b;
  border-radius:12px;color:#6b4708;box-shadow:0 4px 14px rgba(120,80,10,.08);
}
.db-warn[hidden]{display:none}
.db-warn-icon{font-size:20px;line-height:1.3}
.db-warn-body{flex:1;min-width:0}
.db-warn-body strong{display:block;font-size:14px;margin-bottom:3px}
.db-warn-body p{margin:0;font-size:12.5px;line-height:1.6;color:#7d5a16;word-break:break-word}
.db-warn .dashboard-small-button{white-space:nowrap}
@media (max-width:560px){
  .db-warn{flex-wrap:wrap}
  .db-warn .dashboard-small-button{width:100%}
}
/* ---------- catatan di atas embed Google Sheet ---------- */
.sheet-notice{
  display:block;margin:0 0 14px;padding:11px 14px;
  background:#f2f8ff;border:1px solid #cfe0f5;border-radius:10px;
  color:#334e68;font-size:12.5px;line-height:1.65;
}
.sheet-notice strong{color:#0b3c74}
.sheet-notice em{font-style:normal;color:#0f4c81}
.sheet-notice-dot{
  display:inline-block;width:7px;height:7px;border-radius:50%;
  background:#2f86d6;margin-right:7px;vertical-align:1px;
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
/* =========================================================
   Rapi layout form Input Rekap (halaman agent)
   Hanya dimuat di halaman agent — halaman /inbound tidak
   terpengaruh.
   ========================================================= */

/* --- Wrapper form --- */
.agent-page .inbound-form{
  border:1px solid #dfe8f1;border-radius:14px;background:#f9fcfe;
  padding:20px 22px 18px;margin-top:18px;
}
/* --- Grid 6 kolom: baris selalu rata & seimbang --- */
.agent-page .inbound-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:16px 18px;
}
.agent-page .col-2{grid-column:span 2}
.agent-page .col-3{grid-column:span 3}
.agent-page .col-6{grid-column:1 / -1}
/* --- Field: label rata bawah agar semua kontrol sejajar --- */
.agent-page .inbound-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.agent-page .inbound-field label{
  font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:#5b7793;line-height:1.3;min-height:28px;
  display:flex;align-items:flex-end;
}
.agent-page .inbound-field label .wajib{color:#0f4c81}
/* --- Kontrol: tinggi seragam & penuh --- */
.agent-page .inbound-field input,
.agent-page .inbound-field select{
  width:100%;height:44px;min-height:44px;min-width:0;
  border:1px solid #c8dced;border-radius:10px;background:#fff;color:#102a43;
  padding:0 12px;font:inherit;font-size:13.5px;
}
.agent-page .inbound-field select{
  appearance:none;-webkit-appearance:none;
  padding-right:34px;cursor:pointer;
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b7793' d='M1.4 1.4 6 6l4.6-4.6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 13px center;
}
.agent-page .inbound-field textarea{height:auto;padding:11px 12px}
.agent-page .inbound-field input:hover,
.agent-page .inbound-field select:hover{border-color:#9fc4e4}
.agent-page .inbound-field input:focus,
.agent-page .inbound-field select:focus,
.agent-page .inbound-field textarea:focus{
  outline:none;border-color:#2f86d6;box-shadow:0 0 0 3px rgba(47,134,214,.16);
}
.agent-page .inbound-field input::placeholder{color:#a9bccf}
.agent-page .inbound-field-full{margin-top:0}
/* --- Timestamp: jam realtime, tidak bisa diubah --- */
.agent-page .ib-ts{
  display:flex;align-items:center;gap:9px;
  width:100%;height:44px;padding:0 13px;
  border:1px solid #d3e2ef;border-radius:10px;
  background:linear-gradient(180deg,#f2f8fd,#e8f2fa);
  color:#0b2c4a;font-size:14.5px;font-weight:800;
  font-variant-numeric:tabular-nums;letter-spacing:.01em;
  cursor:default;user-select:all;
}
.agent-page .ib-ts::before{
  content:'\1F552';font-size:14px;line-height:1;opacity:.85;
}
.agent-page .ib-ts.is-kunci{
  background:linear-gradient(180deg,#fbfdff,#f2f7fb);
  color:#486581;border-style:dashed;
}
.agent-page .ib-ts-note{
  margin-top:1px;font-size:10.5px;color:#7b91a6;line-height:1.35;
  min-height:14px;
}
/* --- Baris bawah: pesan + tombol --- */
.agent-page .inbound-form-foot{
  margin-top:18px;padding-top:15px;border-top:1px dashed #dbe6f0;
  display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;
}
.agent-page .inbound-form-actions{display:flex;gap:9px;align-items:center}
.agent-page .inbound-form-actions .inbound-btn{height:42px;padding:0 18px}
/* ================= responsive ================= */
@media(max-width:1040px){
  .agent-page .inbound-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .agent-page .col-2{grid-column:span 2}
  .agent-page .col-3{grid-column:span 2}
  .agent-page .col-4{grid-column:span 2}
  .agent-page .inbound-field label{min-height:24px}
}
@media(max-width:720px){
  .agent-page .inbound-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .agent-page .col-2,.agent-page .col-3,.agent-page .col-4{grid-column:span 1}
  .agent-page .col-6{grid-column:1 / -1}
  .agent-page .inbound-form{padding:16px 15px 14px}
  .agent-page .inbound-field label{min-height:20px;font-size:10px}
  .agent-page .inbound-form-actions{width:100%}
  .agent-page .inbound-form-actions .inbound-btn{flex:1;justify-content:center}
}
@media(max-width:460px){
  .agent-page .inbound-grid{grid-template-columns:minmax(0,1fr)}
  .agent-page .col-2,.agent-page .col-3,.agent-page .col-4{grid-column:span 1}
}
/* --- PERBAIKAN-MODE-MALAM-SELECT ---
   theme-core.css memakai shorthand `background` pada <select> mode malam,
   yang meng-reset background-repeat menjadi `repeat` + posisi 0 0, sehingga
   chevron SVG tergambar berulang. Aturan ini ber-spesifisitas lebih tinggi
   sehingga menang tanpa mengubah berkas tema global. */
html[data-theme="dark"] body.agent-page .inbound-field select{
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aabc4' d='M1.4 1.4 6 6l4.6-4.6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 13px center;
}
/* =========================================================
   TAMPILAN DATAR HALAMAN ADMIN
   ---------------------------------------------------------
   style.css / theme-core.css masih memasang bayangan blur pada
   header, panel, logo sidebar, dan titik status. Di halaman admin
   bayangan itu membuat tepi panel terlihat menggantung/bertumpuk,
   terutama di mode gelap. Pemisah sekarang cukup memakai border.
   Fokus input tetap memakai ring biru (bukan bayangan dekoratif).
   ========================================================= */
.agent-page,
.agent-page * {
  text-shadow: none !important;
}
.agent-page header,
.agent-page .topbar,
.agent-page .sidebar,
.agent-page .sheet-wrapper,
.agent-page .inbound-table-wrap,
.agent-page .chat-ai-card,
.agent-page .chat-ai-head,
.agent-page .chat-ai-avatar,
.agent-page .chat-ai-profile,
.agent-page .chat-ai-profile:hover,
.agent-page .profile-card,
.agent-page .profile-photo,
.agent-page .profile-save,
.agent-page .sb-brand-icon {
  box-shadow: none !important;
}
.agent-page .status-dot {
  box-shadow: none !important;
}
/* Fokus tetap jelas, tetapi memakai garis tegas alih-alih glow blur. */
.agent-page input:focus,
.agent-page select:focus,
.agent-page textarea:focus,
.agent-page button:focus-visible,
.agent-page a:focus-visible {
  box-shadow: none !important;
  outline: 2px solid var(--sd-accent, #2f86d6) !important;
  outline-offset: 1px !important;
}
/* Kartu logo tetap punya batas tipis setelah bayangan dihapus. */
.agent-page .sb-brand-icon {
  border: 1px solid var(--border-soft);
}
/* =========================================================
   Filter & Export Data — Rentang tanggal bebas
   (memastikan tanggal bisa dipilih berapa pun + tombol cepat)
   ========================================================= */

/* Hapus batas bawah tanggal bawaan browser agar tidak ada tanggal
   yang terkunci sama sekali. */
.rekap-date-input{min-width:0}
.rekap-date-input::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.65;transition:opacity .15s}
.rekap-date-input:hover::-webkit-calendar-picker-indicator{opacity:1}
/* Baris tombol cepat */
.rekap-preset-row{
  display:flex;align-items:center;gap:7px;flex-wrap:wrap;
  margin-top:12px;padding-top:11px;border-top:1px dashed #d7e5f1;
}
.rekap-preset-label{
  font-size:10.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  color:#627d98;margin-right:2px;
}
.rekap-preset-btn{
  border:1px solid #c8dced;background:#fff;color:#0f4c81;
  border-radius:999px;padding:5px 13px;font:inherit;font-size:12px;font-weight:700;
  cursor:pointer;transition:background .16s,color .16s,border-color .16s,transform .16s;
}
.rekap-preset-btn:hover{background:#eaf4fc;border-color:#9fc4e4;transform:translateY(-1px)}
.rekap-preset-btn:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
.rekap-preset-btn.is-active{background:#0f4c81;border-color:#0f4c81;color:#fff}
/* Bantuan kecil di bawah filter */
.rekap-date-help{
  margin:9px 0 0;font-size:12px;color:#7b91a6;line-height:1.5;
}
/* Pesan informasi (hijau) — dipisah dari error merah */
.dashboard-error.is-info{
  background:#eefaf3;border-color:#bfe8d2;color:#0a6b3d;
}
/* Responsif */
@media(max-width:640px){
  .rekap-preset-row{gap:6px}
  .rekap-preset-btn{padding:5px 11px;font-size:11.5px}
}
/* =========================================================
   Manual Book & Panduan Operasional
   ------------------------------------------------------------
   Desain disamakan dengan halaman /announcement:
     - kepala halaman + lencana jumlah dokumen (announcement-head)
     - carousel navy (insight / ins-slide / ins-grid)
     - blok daftar berbingkai (ins-summary-block)
     - kotak pencarian gaya ins-search
     - dokumen sebagai BARIS (ins-item), bukan kartu grid
   ========================================================= */

.manual-wrapper{padding-bottom:18px}
/* ---------- lencana jumlah dokumen ---------- */
.manual-wrapper .announcement-readonly{font-weight:700}
.manual-wrapper .announcement-readonly b{font-weight:800;color:#0b3c74}
/* ---------- carousel ---------- */
#manualInsight{margin-top:16px}
#manualInsight[data-playing="false"] .insight-play{
  background:rgba(126,227,212,.28);border-color:rgba(126,227,212,.6);
}
#manualInsight .ins-kosong{padding:28px 12px;text-align:center;color:#829ab1;font-size:13px;font-weight:600}
/* ---------- blok daftar ---------- */
.manual-wrapper .ins-sum-head-sep{margin-top:24px}
#manualDocsBlock{padding-bottom:20px}
/* ---------- kotak pencarian ---------- */
#manualSearchInput{width:100%}
#manualSearchResult{color:#0f4c81;font-weight:800}
.ins-list-hint kbd{
  display:inline-block;min-width:17px;padding:1px 5px;
  border:1px solid #c8dced;border-bottom-width:2px;border-radius:5px;
  background:#fff;color:#486581;font:700 10.5px/1.4 inherit;text-align:center;
}
.manual-grid{display:block}
/* ---------- judul kategori ----------
   Judul kelompok ("SERVICE DESK PLUS" / "APLIKASI ODOO") disembunyikan:
   kategori sudah tampil pada chip di setiap baris dan pada saringan di atas.
   Elemen tetap ada di DOM karena mesin pencari memakainya untuk
   mengelompokkan baris. */
.document-page .manual-wrapper .manual-category{
  display:none;
  margin:22px 0 4px;padding-left:0;border-left:0;color:#0b3c74;
}
.document-page .manual-wrapper .manual-category:first-child{margin-top:6px}
.manual-category-nama{
  font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;
  color:#0b3c74;
}
/* ---------- daftar dokumen (baris, gaya ins-item) ----------
   Spesifisitas sengaja dibuat lebih tinggi dari style.css dan pages.css
   yang masih punya aturan ".manual-card" versi kartu lama
   (flex-direction:column, padding:20px, box-shadow). */
.document-page .manual-wrapper .manual-card{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:12px;
  padding:12px 4px;
  background:transparent;
  border:0;
  border-bottom:1px dashed #e6edf4;
  border-radius:0;
  box-shadow:none;
}
.document-page .manual-wrapper .manual-card:last-child{border-bottom:0}
.document-page .manual-wrapper .manual-card:hover{background:#fafcfe}
.document-page .manual-wrapper .manual-card .ins-item-body{flex:1 1 220px;min-width:0}
.document-page .manual-wrapper .manual-card .ins-item-title{
  margin:0;font-size:13.5px;font-weight:600;color:#102a43;line-height:1.5;
  overflow-wrap:anywhere;word-break:break-word;
}
.document-page .manual-wrapper .manual-card .ins-item-meta{
  margin:3px 0 0;font-size:11.5px;color:#829ab1;
  white-space:normal;overflow:visible;text-overflow:clip;
  overflow-wrap:anywhere;line-height:1.45;
}
.document-page .manual-wrapper .manual-card .ins-kind{
  display:inline-block;padding:2px 8px;border-radius:999px;
  background:#e9eef5;color:#486581;
  font-size:10.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;
}
/* Chip kategori di kiri baris (meniru ins-date) */
.document-page .manual-wrapper .manual-date-chip{
  flex:none;width:118px;font-size:11.5px;font-weight:800;color:#0f4c81;
  background:#eaf4fd;border-radius:8px;padding:5px 8px;text-align:center;
  overflow-wrap:anywhere;line-height:1.35;
}
/* Tombol unduh di kanan baris */
.document-page .manual-wrapper .manual-dl{
  flex:none;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;
  text-decoration:none;background:#0f4c81;color:#fff;font-size:13px;box-shadow:none;
}
.document-page .manual-wrapper .manual-dl:hover{background:#082f5b;color:#fff}
.document-page .manual-wrapper .manual-dl:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
/* Baris "Cocok: ..." harus turun ke baris penuh */
.document-page .manual-wrapper .manual-card .manual-match{flex:1 0 100%;margin-top:8px}
/* ---------- catatan kaki ---------- */
.manual-footnote{
  margin:22px 0 0;padding-top:16px;border-top:1px solid #edf2f7;
  color:#829ab1;font-size:12.5px;
}
/* ---------- responsif ---------- */
@media(max-width:720px){
  .document-page .manual-wrapper .manual-card{padding:11px 2px}
  /* Judul kelompok sudah disembunyikan, jadi chip kategori tetap tampil
     di HP dengan ukuran ringkas supaya sumber dokumen tetap terlihat. */
  .document-page .manual-wrapper .manual-date-chip{width:auto;max-width:44%;font-size:10.5px;padding:4px 7px}
  .document-page .manual-wrapper .manual-card .ins-item-body{flex:1 1 auto}
  .document-page .manual-wrapper .manual-card .ins-item-title{font-size:13px}
  .document-page .manual-wrapper .manual-dl{margin-left:auto}
  .ins-list-hint{font-size:11px}
}
@media(max-width:380px){
  .document-page .manual-wrapper .manual-card .ins-item-title{font-size:12.5px}
  .document-page .manual-wrapper .manual-card .ins-item-meta{font-size:11px}
}
/* ---------- daftar digulir: 5 dokumen, 5 dokumen ----------
   Daftar dokumen memakai kelas "ins-list-full" yang SAMA dengan halaman
   /announcement, jadi kotak tinggi, batang gulir, dan jarak barisnya
   identik. Aturan "is-gulir" (tinggi 440px saat masih ada dokumen di
   bawahnya) ada di css/announcement-list.css. */
/* =========================================================
   Halaman /profil — Profil Akun
   Memakai variabel tema yang sama dengan dashboard.
   ========================================================= */

.profile-page [hidden] {
  display: none !important;
}
.profile-page .page-head .page-sub {
  flex: 1 1 100%;
}
.profile-page .content {
  max-width: 1120px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.profile-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--sd-line);
  border-radius: 16px;
  background: var(--sd-panel);
}
.profile-photo-card {
  position: sticky;
  top: 18px;
  text-align: center;
}
.profile-photo {
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 4px solid var(--sd-panel);
  outline: 1px solid var(--sd-line);
  background: linear-gradient(135deg, var(--sd-accent), var(--sd-accent-2));
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
}
.profile-photo.has-photo {
  color: transparent;
  text-shadow: none;
}
.profile-photo-card h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--sd-text);
  overflow-wrap: anywhere;
}
.profile-role {
  display: inline-flex;
  align-items: center;
  margin: 7px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--sd-chip);
  color: var(--sd-chip-text);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.profile-username {
  margin: 7px 0 16px;
  color: var(--sd-text-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.profile-upload {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--sd-line);
  border-radius: 9px;
  background: var(--sd-panel-2);
  color: var(--sd-text);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  transition: background .15s, border-color .15s, color .15s;
}
.profile-upload:hover {
  background: var(--sd-chip);
  border-color: var(--sd-accent);
  color: var(--sd-chip-text);
}
.profile-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.profile-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--sd-line);
  border-radius: 9px;
  background: transparent;
  color: var(--sd-bad);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.profile-remove:hover {
  background: var(--sd-bad-soft, rgba(220, 38, 38, .08));
  border-color: var(--sd-bad);
}
.profile-hint {
  margin: 12px 0 0;
  color: var(--sd-text-faint);
  font-size: 11px;
  line-height: 1.5;
}
.profile-form h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--sd-text);
}
.profile-form-sub {
  margin: 5px 0 18px;
  color: var(--sd-text-soft);
  font-size: 12.5px;
}
.profile-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}
.profile-field label {
  color: var(--sd-text);
  font-size: 12px;
  font-weight: 800;
}
.profile-field input,
.profile-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--sd-line);
  border-radius: 9px;
  background: var(--sd-panel-2);
  color: var(--sd-text);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.45;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.profile-field textarea {
  min-height: 118px;
  resize: vertical;
}
.profile-field input:focus,
.profile-field textarea:focus {
  border-color: var(--sd-accent);
  outline: 2px solid var(--sd-accent);
  outline-offset: 1px;
  background: var(--sd-panel);
}
.profile-count {
  align-self: flex-end;
  color: var(--sd-text-faint);
  font-size: 10.5px;
}
.profile-readonly {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--sd-line-soft);
  border-radius: 10px;
  background: var(--sd-panel-2);
}
.profile-readonly div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.profile-readonly span {
  color: var(--sd-text-faint);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.profile-readonly b {
  color: var(--sd-text);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-note {
  margin: 8px 0 0;
  color: var(--sd-text-faint);
  font-size: 11px;
}
.profile-alert {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--sd-line);
  border-radius: 9px;
  background: var(--sd-panel-2);
  color: var(--sd-text-soft);
  font-size: 12.5px;
  line-height: 1.5;
}
.profile-alert.is-ok {
  border-color: rgba(18, 183, 106, .35);
  background: rgba(18, 183, 106, .08);
  color: var(--sd-ok);
}
.profile-alert.is-error {
  border-color: rgba(220, 38, 38, .35);
  background: rgba(220, 38, 38, .08);
  color: var(--sd-bad);
}
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.profile-save,
.profile-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 17px;
  border-radius: 9px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .15s;
}
.profile-save {
  border: 1px solid var(--sd-accent);
  background: var(--sd-accent);
  color: #fff;
}
.profile-save:hover {
  background: var(--sd-accent-2);
  border-color: var(--sd-accent-2);
  transform: translateY(-1px);
}
.profile-save:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}
.profile-reset {
  border: 1px solid var(--sd-line);
  background: var(--sd-panel);
  color: var(--sd-text-soft);
}
.profile-reset:hover {
  background: var(--sd-chip);
  color: var(--sd-chip-text);
}
.profile-loading {
  padding: 20px;
  border: 1px solid var(--sd-line);
  border-radius: 14px;
  background: var(--sd-panel);
  color: var(--sd-text-soft);
  font-size: 13px;
}
@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-photo-card {
    position: static;
  }
  .profile-photo {
    width: 112px;
    height: 112px;
    font-size: 38px;
  }
}
@media (max-width: 560px) {
  .profile-card {
    padding: 17px;
  }
  .profile-readonly {
    grid-template-columns: 1fr;
  }
  .profile-actions {
    flex-direction: column;
  }
  .profile-save,
  .profile-reset {
    width: 100%;
  }
}
/* ============================================================
   SERVICE CATALOG - daftar katalog Service Desk
   ------------------------------------------------------------
   Dipakai bersama oleh:
     - Beranda (index)          : HANYA TAMPIL
     - /service-catalog         : HANYA TAMPIL
     - Dashboard administrator : Ubah & Hapus
   ============================================================ */

.sc-head{
  display:flex;align-items:flex-start;justify-content:space-between;
  gap:14px;flex-wrap:wrap;margin-bottom:14px;
}
.sc-head h2{margin:0;font-size:18px;line-height:1.35}
.sc-head p{margin:5px 0 0;font-size:13px;color:var(--text-soft, #486581);line-height:1.5}
.sc-badge{
  display:inline-flex;align-items:center;gap:6px;white-space:nowrap;
  font-size:12px;font-weight:800;padding:7px 13px;border-radius:999px;
  border:1px solid #cddbec;background:#f2f7fc;color:#486581;
}
.sc-badge.is-ok{background:#ecfdf5;border-color:#a7e3c5;color:#047857}
.sc-badge.is-err{background:#fff1f0;border-color:#f0b7b0;color:#b42318}
/* ---------- kontrol ---------- */
.sc-kontrol{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin-bottom:12px}
.sc-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.sc-field>span{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#486581}
.sc-field select,.sc-field input{
  height:38px;padding:0 11px;border:1px solid #d5e2ee;border-radius:9px;
  background:#fff;color:#102a43;font:inherit;font-size:13px;box-sizing:border-box;
}
.sc-field select:focus-visible,.sc-field input:focus-visible{outline:2px solid #2f86d6;outline-offset:1px}
.sc-pilih-sheet{flex:0 1 320px;min-width:200px}
.sc-cari{flex:1 1 260px}
.sc-cari input{width:100%}
.sc-hint{margin:0 0 10px;font-size:11.5px;color:#829ab1;display:flex;gap:6px;flex-wrap:wrap}
.sc-hint b{color:#0f4c81;font-weight:800}
/* ---------- daftar ---------- */
.sc-list-wrap{position:relative}
.sc-list{
  list-style:none;margin:0;padding:0;max-height:560px;overflow:auto;
}
.sc-list.is-gulir{height:440px;padding-bottom:56px}
.sc-list::-webkit-scrollbar{width:10px}
.sc-list::-webkit-scrollbar-track{background:#f2f7fb;border-radius:999px}
.sc-list::-webkit-scrollbar-thumb{background:#c3d9ec;border-radius:999px;border:2px solid #f2f7fb}
.sc-list::-webkit-scrollbar-thumb:hover{background:#9fc0e0}
.sc-item{
  display:block;padding:12px 14px;margin:0 0 8px;border:1px solid #e4edf5;
  border-left:3px solid #0f4c81;border-radius:12px;background:#fff;
}
.sc-item:hover{border-color:#c9dcef;background:#fbfdff}
.sc-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.sc-title{font-size:13.5px;font-weight:800;color:#102a43;line-height:1.4;overflow-wrap:anywhere}
.sc-sheet{
  flex:none;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;
  padding:3px 8px;border-radius:999px;background:#eaf4fd;color:#0f4c81;white-space:nowrap;
}
.sc-meta{margin:5px 0 0;font-size:11.5px;color:#627d98;line-height:1.5;overflow-wrap:anywhere}
.sc-meta span{display:inline-block;margin-right:10px}
.sc-aksi{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.sc-btn{
  display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;
  border:1px solid #9fc0e0;border-radius:8px;background:#fff;color:#0f4c81;
  font:inherit;font-size:12px;font-weight:800;cursor:pointer;
}
.sc-btn:hover{background:#eaf3fb;border-color:#0f4c81}
.sc-btn-danger{border-color:#f0b7b0;background:#fff5f4;color:#b42318}
.sc-btn-danger:hover{background:#ffe8e5;border-color:#e58d83}
.sc-kosong{padding:24px 12px;text-align:center;color:#829ab1;font-size:13px;font-style:italic}
.sc-foot{margin:10px 0 0;font-size:11.5px;color:#829ab1}
/* ---------- modal ubah (dashboard administrator) ---------- */
.sc-modal{position:fixed;inset:0;z-index:90;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.45)}
.sc-modal[hidden]{display:none}
.sc-modal-box{
  width:min(760px,100%);max-height:86vh;display:flex;flex-direction:column;
  background:#fff;border-radius:16px;box-shadow:0 24px 60px rgba(15,23,42,.28);overflow:hidden;
}
.sc-modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #e6eef6}
.sc-modal-head h3{margin:0;font-size:16px}
.sc-modal-head p{margin:4px 0 0;font-size:12px;color:#627d98}
.sc-modal-body{padding:16px 18px;overflow:auto}
.sc-modal-foot{display:flex;gap:10px;justify-content:flex-end;padding:14px 18px;border-top:1px solid #e6eef6;background:#f8fbfe}
.sc-edit-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px}
.sc-edit-field{display:flex;flex-direction:column;gap:5px}
.sc-edit-field>span{font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:#486581}
.sc-edit-field input,.sc-edit-field textarea{
  width:100%;border:1px solid #d5e2ee;border-radius:9px;padding:8px 10px;
  font:inherit;font-size:12.5px;color:#102a43;background:#fff;box-sizing:border-box;
}
.sc-edit-field textarea{min-height:74px;resize:vertical}
.sc-edit-field input:focus-visible,.sc-edit-field textarea:focus-visible{outline:2px solid #2f86d6;outline-offset:1px}
.sc-modal-msg{font-size:12.5px;font-weight:700;margin-right:auto;align-self:center}
.sc-modal-msg.is-err{color:#b42318}
.sc-modal-msg.is-ok{color:#047857}
/* ---------- mode gelap ---------- */
html[data-theme="dark"] .sc-item{background:#16223c;border-color:#243a5e;border-left-color:#4a6ea8}
html[data-theme="dark"] .sc-item:hover{background:#1b2a49}
html[data-theme="dark"] .sc-title{color:#e6edf7}
html[data-theme="dark"] .sc-meta{color:#9fb3c8}
html[data-theme="dark"] .sc-field select,html[data-theme="dark"] .sc-field input{background:#16223c;border-color:#31456d;color:#e6edf7}
html[data-theme="dark"] .sc-hint{color:#9fb3c8}
html[data-theme="dark"] .sc-hint b{color:#7db4f5}
html[data-theme="dark"] .sc-badge{background:#16223c;border-color:#31456d;color:#9fb3c8}
html[data-theme="dark"] .sc-btn{background:#1b2a49;border-color:#31456d;color:#cfe1f8}
html[data-theme="dark"] .sc-btn:hover{background:#24365c;border-color:#4a6ea8}
html[data-theme="dark"] .sc-btn-danger{background:#2a1a1a;border-color:#6b3833;color:#fca5a5}
html[data-theme="dark"] .sc-modal{background:rgba(2,8,23,.66)}
html[data-theme="dark"] .sc-modal-box{background:#131d33;border:1px solid #243a5e}
html[data-theme="dark"] .sc-modal-head,html[data-theme="dark"] .sc-modal-foot{border-color:#243a5e}
html[data-theme="dark"] .sc-modal-foot{background:#101a2e}
html[data-theme="dark"] .sc-modal-head p{color:#9fb3c8}
html[data-theme="dark"] .sc-edit-field>span{color:#9fb3c8}
html[data-theme="dark"] .sc-edit-field input,html[data-theme="dark"] .sc-edit-field textarea{background:#101a2e;border-color:#31456d;color:#e6edf7}
/* ---------- HP ---------- */
@media(max-width:640px){
  .sc-kontrol{flex-direction:column;align-items:stretch}
  .sc-pilih-sheet,.sc-cari{flex:1 1 auto;min-width:0}
  .sc-list{max-height:none;overflow:visible}
  .sc-list.is-gulir{height:auto;padding-bottom:0}
  .sc-item{padding:11px 12px}
  .sc-btn{height:32px}
}
/* =========================================================
   Pencarian Manual Book & Panduan Operasional
   ========================================================= */

.manual-search{
  position:sticky;
  top:0;
  z-index:6;
  display:flex;
  align-items:center;
  gap:14px;
  margin:4px 0 22px;
  padding:12px 14px;
  border:1px solid #cddff0;
  border-radius:14px;
  background:#f7fbfe;
  box-shadow:0 6px 18px rgba(16,42,67,.08);
}
.manual-search-field{
  position:relative;
  display:flex;
  align-items:center;
  flex:1 1 auto;
  min-width:0;
}
.manual-search-icon{
  position:absolute;
  left:13px;
  font-size:15px;
  line-height:1;
  pointer-events:none;
  filter:grayscale(.15);
}
.manual-search-input{
  width:100%;
  height:46px;
  padding:0 42px 0 40px;
  border:1px solid #c8dced;
  border-radius:11px;
  background:#fff;
  color:#102a43;
  font:inherit;
  font-size:14.5px;
  -webkit-appearance:none;
  appearance:none;
  transition:border-color .2s,box-shadow .2s;
}
.manual-search-input::-webkit-search-cancel-button,
.manual-search-input::-webkit-search-decoration{-webkit-appearance:none;display:none}
.manual-search-input::placeholder{color:#8aa2b8}
.manual-search-input:focus{
  outline:0;
  border-color:#145da0;
  box-shadow:0 0 0 4px rgba(20,93,160,.13);
}
.manual-search-clear{
  position:absolute;
  right:8px;
  display:grid;
  place-items:center;
  width:26px;height:26px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#e6eff8;
  color:#486581;
  font-size:13px;
  line-height:1;
  cursor:pointer;
  transition:background .2s,color .2s;
}
.manual-search-clear:hover{background:#145da0;color:#fff}
.manual-search-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:3px;
  flex:0 0 auto;
}
.manual-search-result{
  color:#0f4c81;
  font-size:12.5px;
  font-weight:800;
  white-space:nowrap;
}
.manual-search-hint{
  color:#829ab1;
  font-size:11px;
  white-space:nowrap;
}
.manual-search-hint kbd{
  display:inline-block;
  min-width:17px;
  padding:1px 5px;
  border:1px solid #c8dced;
  border-bottom-width:2px;
  border-radius:5px;
  background:#fff;
  color:#486581;
  font:700 10.5px/1.4 inherit;
  text-align:center;
}
/* --- keadaan kosong --- */
.manual-no-result{
  display:none;
  flex-direction:column;
  align-items:center;
  gap:12px;
  margin:6px 0 24px;
  padding:30px 20px;
  border:1px dashed #b8cce0;
  border-radius:14px;
  background:#f8fbfe;
  text-align:center;
}
.manual-no-result.is-visible{display:flex}
.manual-no-result-text{color:#486581;font-size:14px}
.manual-no-result-text b{color:#0f4c81}
.manual-no-result-btn{
  padding:10px 18px;
  border:0;
  border-radius:9px;
  background:linear-gradient(110deg,#0f4c81,#0ea5a4);
  color:#fff;
  font:800 13px inherit;
  cursor:pointer;
  transition:transform .2s,box-shadow .2s;
}
.manual-no-result-btn:hover{transform:translateY(-1px);box-shadow:0 6px 16px rgba(15,76,129,.2)}
/* --- sorotan kata kunci --- */
.manual-mark{
  padding:0 2px;
  border-radius:4px;
  background:#fff0b8;
  color:#0b2c4a;
}
.manual-grid.manual-hidden{display:none}
.manual-card.manual-hidden{display:none}
.manual-category.manual-hidden{display:none}
/* rapikan jarak saat kotak "tidak ada hasil" tersembunyi */
.manual-search + .manual-no-result:not(.is-visible) + .manual-category{margin-top:4px}
.manual-no-result.is-visible + .manual-category{margin-top:6px}
.manual-footnote{
  margin:26px 0 0;
  padding-top:16px;
  border-top:1px solid #edf2f7;
  color:#829ab1;
  font-size:12.5px;
}
.manual-footnote b{color:#486581}
/* ---------------- responsive ---------------- */
@media(max-width:900px){
  .manual-search{flex-wrap:wrap;gap:10px}
  .manual-search-field{flex:1 1 100%}
  .manual-search-meta{flex-direction:row;align-items:center;justify-content:space-between;width:100%}
}
@media(max-width:700px){
  .document-page .manual-search{top:0;padding:10px 11px;margin-bottom:18px;border-radius:12px}
  .manual-search-input{height:44px;font-size:14px;padding-left:38px}
  .manual-search-hint{display:none}
  .manual-search-result{font-size:12px}
  .manual-no-result{padding:24px 14px}
  .manual-no-result-text{font-size:13px}
}
/* --- rincian kecocokan teks --- */
.manual-match{
  margin-top:8px;
  padding:5px 9px;
  border:1px solid #dbe7f2;
  border-radius:8px;
  background:#f2f7fc;
  color:#486581;
  font-size:11.5px;
  line-height:1.55;
}
.manual-match .manual-mark{font-weight:800}
/* ============================================================
   Halaman PT SISI
   Profil perusahaan, visi & misi, jajaran manajemen, dan
   company profile. Warna memakai token --sd-* agar ikut tema.
   ============================================================ */

.pt-sisi-page .container {
  max-width: 1120px;
}
.pt-sisi-container {
  padding-top: 32px;
  padding-bottom: 54px;
}
.pt-sisi-page .sisi-section,
.pt-sisi-page .sisi-hero {
  scroll-margin-top: 88px;
}
/* ---------- hero ---------- */
.sisi-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: 34px;
  align-items: center;
  padding: 38px 40px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 12%, rgba(125, 211, 252, .22), transparent 28%),
    radial-gradient(circle at 4% 100%, rgba(249, 115, 22, .16), transparent 30%),
    linear-gradient(135deg, #071f3d 0%, #0b3a68 58%, #0f4c81 100%);
  box-shadow: 0 18px 42px rgba(8, 47, 91, .2);
  color: #fff;
}
.sisi-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
}
.sisi-hero-copy,
.sisi-hero-media {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.sisi-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  color: #d9ecfb;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sisi-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fb923c;
  box-shadow: 0 0 0 3px rgba(251, 146, 60, .18);
}
.sisi-hero h1 {
  margin: 16px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 800;
  color: #fff;
}
.sisi-hero h1 span {
  color: #7dd3fc;
}
.sisi-tagline {
  margin: 0 0 15px;
  color: #fbbf24;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .02em;
}
.sisi-hero-desc {
  max-width: 60ch;
  margin: 0;
  color: #d9ecfb;
  font-size: 14px;
  line-height: 1.75;
}
.sisi-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}
.sisi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.sisi-btn:hover {
  transform: translateY(-1px);
}
.sisi-btn:focus-visible,
.sisi-text-link:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}
.sisi-btn-primary {
  background: #f97316;
  color: #fff;
  box-shadow: 0 8px 18px rgba(249, 115, 22, .26);
}
.sisi-btn-primary:hover {
  background: #ea580c;
}
.sisi-btn-ghost {
  border-color: rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}
.sisi-btn-ghost:hover {
  background: rgba(255, 255, 255, .15);
}
.sisi-hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.sisi-hero-facts span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 90px;
}
.sisi-hero-facts b {
  color: #fff;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.sisi-hero-facts small {
  color: #b9d7f2;
  font-size: 10.5px;
  line-height: 1.35;
}
.sisi-hero-media img {
  display: block;
  width: 100%;
  max-width: 430px;
  height: auto;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .26);
}
.sisi-media-caption {
  max-width: 430px;
  margin: 12px 0 0 auto;
  color: #b9d7f2;
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}
/* ---------- section umum ---------- */
.sisi-section {
  margin-top: 20px;
  padding: 28px 30px;
  border: 1px solid var(--sd-line, #d9e2ec);
  border-radius: 20px;
  background: var(--sd-panel, #fff);
  box-shadow: var(--sd-shadow-sm, 0 4px 14px rgba(16, 42, 67, .06));
}
.sisi-section-head {
  margin-bottom: 22px;
}
.sisi-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: var(--sd-accent, #0f4c81);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.sisi-section h2 {
  margin: 0;
  color: var(--sd-text, #102a43);
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.2;
  letter-spacing: -.025em;
  font-weight: 800;
}
.sisi-section-head p {
  max-width: 70ch;
  margin: 8px 0 0;
  color: var(--sd-text-soft, #486581);
  font-size: 13.5px;
  line-height: 1.7;
}
/* ---------- profil ---------- */
.sisi-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 24px;
  align-items: start;
}
.sisi-prose p {
  margin: 0 0 14px;
  color: var(--sd-text-soft, #486581);
  font-size: 14px;
  line-height: 1.8;
}
.sisi-prose p:first-child {
  color: var(--sd-text, #102a43);
  font-size: 15px;
}
.sisi-prose p:last-child {
  margin-bottom: 0;
}
.sisi-identity-card {
  padding: 20px;
  border: 1px solid var(--sd-line, #d9e2ec);
  border-radius: 15px;
  background: var(--sd-panel-2, #f7fafd);
}
.sisi-identity-card h3 {
  margin: 0 0 14px;
  color: var(--sd-text, #102a43);
  font-size: 15px;
  font-weight: 800;
}
.sisi-identity-list {
  margin: 0;
}
.sisi-identity-list > div {
  padding: 9px 0;
  border-bottom: 1px solid var(--sd-line-soft, #e7eef5);
}
.sisi-identity-list > div:first-child {
  padding-top: 0;
}
.sisi-identity-list > div:last-child {
  border-bottom: 0;
}
.sisi-identity-list dt {
  margin-bottom: 2px;
  color: var(--sd-text-faint, #829ab1);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sisi-identity-list dd {
  margin: 0;
  color: var(--sd-text, #102a43);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}
.sisi-text-link {
  display: inline-flex;
  gap: 6px;
  margin-top: 16px;
  color: var(--sd-accent, #0f4c81);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.sisi-text-link:hover {
  text-decoration: underline;
}
/* ---------- peran ---------- */
.sisi-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.sisi-role-card {
  position: relative;
  min-height: 172px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--sd-line, #d9e2ec);
  border-radius: 15px;
  background: var(--sd-panel-2, #f7fafd);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.sisi-role-card:hover {
  transform: translateY(-2px);
  border-color: var(--sd-accent, #0f4c81);
  box-shadow: var(--sd-shadow-sm, 0 4px 14px rgba(16, 42, 67, .08));
}
.sisi-role-num {
  display: block;
  margin-bottom: 10px;
  color: var(--sd-accent, #0f4c81);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  opacity: .8;
}
.sisi-role-card h3 {
  margin: 0 0 8px;
  color: var(--sd-text, #102a43);
  font-size: 14.5px;
  font-weight: 800;
}
.sisi-role-card p {
  margin: 0;
  color: var(--sd-text-soft, #486581);
  font-size: 12.5px;
  line-height: 1.65;
}
/* ---------- visi & misi ---------- */
.sisi-vm-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: start;
}
.sisi-vision-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 26px;
  overflow: hidden;
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0, rgba(125, 211, 252, .22), transparent 34%),
    linear-gradient(135deg, #082f5b, #0f4c81);
  color: #fff;
  box-shadow: 0 14px 30px rgba(8, 47, 91, .18);
}
.sisi-vision-card::after {
  content: "“";
  position: absolute;
  right: 16px;
  bottom: -20px;
  color: rgba(255, 255, 255, .12);
  font-size: 150px;
  line-height: 1;
  font-family: Georgia, serif;
}
.sisi-vision-label {
  display: block;
  margin-bottom: 12px;
  color: #fbbf24;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.sisi-vision-card blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #eaf5ff;
  font-size: 17px;
  line-height: 1.65;
  font-weight: 600;
  letter-spacing: -.01em;
}
.sisi-mission-wrap {
  padding: 2px 0;
}
.sisi-mission-wrap .sisi-vision-label {
  color: var(--sd-accent, #0f4c81);
}
.sisi-mission-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sisi-mission-list li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--sd-line, #d9e2ec);
  border-radius: 11px;
  background: var(--sd-panel-2, #f7fafd);
}
.sisi-mission-list li > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--sd-chip, #eaf4fd);
  color: var(--sd-chip-text, #0f4c81);
  font-size: 10.5px;
  font-weight: 800;
}
.sisi-mission-list p {
  margin: 0;
  color: var(--sd-text-soft, #486581);
  font-size: 12.5px;
  line-height: 1.6;
}
/* ---------- galeri manajemen ---------- */
.sisi-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.sisi-figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--sd-line, #d9e2ec);
  border-radius: 15px;
  background: var(--sd-panel-2, #f7fafd);
}
.sisi-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
/* Foto Vice Presidents lebih lebar (1280x511). Beri bingkai 16:9
   yang sama dengan foto Direksi, lalu samakan warna latar bingkai
   dengan latar foto agar tidak terlihat seperti garis kosong. */
.sisi-gallery .sisi-figure:last-child img {
  background: #eaf4fd;
  object-position: center bottom;
}
.sisi-figure figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
  padding: 12px 2px 1px;
}
.sisi-figure figcaption b {
  color: var(--sd-text, #102a43);
  font-size: 12.5px;
  font-weight: 800;
}
.sisi-figure figcaption span {
  color: var(--sd-text-faint, #829ab1);
  font-size: 11px;
  line-height: 1.5;
}
.sisi-gallery-note {
  margin: 12px 0 0;
  color: var(--sd-text-faint, #829ab1);
  font-size: 10.5px;
}
/* ---------- company profile ---------- */
.sisi-doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--sd-line, #d9e2ec);
  border-radius: 16px;
  background:
    linear-gradient(90deg, var(--sd-panel-2, #f7fafd), var(--sd-panel, #fff));
}
.sisi-doc-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 66px;
  border-radius: 10px;
  background: linear-gradient(145deg, #ef4444, #b91c1c);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  box-shadow: 0 8px 18px rgba(185, 28, 28, .2);
}
.sisi-doc-copy {
  flex: 1;
  min-width: 0;
}
.sisi-doc-copy .sisi-eyebrow {
  margin-bottom: 4px;
}
.sisi-doc-copy h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.sisi-doc-copy p {
  margin: 0 0 6px;
  color: var(--sd-text-soft, #486581);
  font-size: 12.5px;
  line-height: 1.6;
}
.sisi-doc-meta {
  color: var(--sd-text-faint, #829ab1);
  font-size: 10.5px;
  font-weight: 700;
}
.sisi-doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  flex: none;
}
.sisi-doc-actions .sisi-btn {
  min-height: 40px;
  padding: 0 15px;
}
.sisi-doc-actions .sisi-btn-ghost {
  border-color: var(--sd-line, #d9e2ec);
  background: var(--sd-panel, #fff);
  color: var(--sd-text, #102a43);
}
.sisi-doc-actions .sisi-btn-ghost:hover {
  background: var(--sd-panel-2, #f7fafd);
}
/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sisi-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }

  .sisi-hero-media img,
  .sisi-media-caption {
    margin-left: 0;
  }

  .sisi-hero-media img {
    max-width: 520px;
  }

  .sisi-media-caption {
    max-width: 520px;
    text-align: left;
  }

  .sisi-profile-grid,
  .sisi-vm-grid {
    grid-template-columns: 1fr;
  }

  .sisi-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sisi-doc-card {
    flex-wrap: wrap;
  }

  .sisi-doc-actions {
    width: 100%;
    padding-left: 76px;
  }
}
@media (max-width: 700px) {
  .pt-sisi-container {
    padding-top: 22px;
    padding-bottom: 38px;
  }

  .sisi-hero {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .sisi-hero h1 {
    font-size: 30px;
  }

  .sisi-hero-facts {
    gap: 14px 20px;
  }

  .sisi-section {
    padding: 20px 18px;
    border-radius: 16px;
  }

  .sisi-section h2 {
    font-size: 21px;
  }

  .sisi-role-grid,
  .sisi-gallery {
    grid-template-columns: 1fr;
  }

  .sisi-vision-card {
    padding: 22px;
  }

  .sisi-vision-card blockquote {
    font-size: 15px;
  }

  .sisi-doc-card {
    align-items: flex-start;
    padding: 18px;
  }

  .sisi-doc-icon {
    width: 46px;
    height: 55px;
    font-size: 10px;
  }

  .sisi-doc-actions {
    padding-left: 0;
  }

  .sisi-doc-actions .sisi-btn {
    flex: 1 1 140px;
  }
}
/* ---------- halaman ITOS 1 ---------- */
.itos-section {
  padding-top: 4px;
}
.itos-pdf-card {
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--sd-line, #d9e2ec);
  border-radius: 15px;
  background: var(--sd-panel, #fff);
}
.itos-pdf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--sd-line, #d9e2ec);
  background: var(--sd-panel-2, #f7fafd);
}
.itos-pdf-head > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.itos-pdf-head b {
  color: var(--sd-text, #102a43);
  font-size: 12.5px;
  font-weight: 800;
}
.itos-pdf-head span {
  color: var(--sd-text-faint, #829ab1);
  font-size: 11px;
}
.itos-pdf-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  background: var(--sd-panel-2, #f7fafd);
}
.itos-pdf-page {
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 42, 67, .08);
  text-decoration: none;
}
.itos-pdf-page img {
  display: block;
  width: 100%;
  height: auto;
}
.itos-pdf-page span {
  display: block;
  padding: 8px 12px;
  border-top: 1px solid var(--sd-line, #d9e2ec);
  background: #fff;
  color: var(--sd-text-faint, #829ab1);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.itos-pdf-page:hover span,
.itos-pdf-page:focus-visible span {
  color: var(--sd-text, #102a43);
}
.itos-pdf-page:focus-visible {
  outline: 2px solid var(--sd-accent, #f97316);
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .itos-pdf-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .itos-pdf-preview {
    padding: 10px;
  }
}
/* =========================================================
   Operational Insight Carousel
   ========================================================= */
.insight{
  margin:0 0 22px;padding:0;border:1px solid #d9e2ec;border-radius:18px;background:#fff;
  box-shadow:0 10px 28px rgba(8,47,91,.08);overflow:hidden;
}
.insight-head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:16px 20px;background:linear-gradient(135deg,#0b3c74,#1668ab);color:#fff;
}
.insight-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#a9d3f5;margin-bottom:4px}
.insight-head h2{margin:0;font-size:18px;line-height:1.25;color:#fff;letter-spacing:-.01em}
.insight-head p{margin:6px 0 0;font-size:12.5px;color:#d8ecff;line-height:1.5}
.insight-nav{display:flex;align-items:center;gap:8px}
.insight-arrow{
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);color:#fff;font-size:22px;line-height:1;cursor:pointer;
  display:grid;place-items:center;transition:background .18s,transform .18s;
}
.insight-arrow:hover{background:rgba(255,255,255,.25);transform:translateY(-1px)}
.insight-arrow:focus-visible{outline:3px solid #7fe3d4;outline-offset:2px}
.insight-counter{
  min-width:58px;text-align:center;font-size:12.5px;font-weight:700;color:#e8f4ff;
  background:rgba(0,0,0,.16);border-radius:999px;padding:7px 10px;
}
.insight-counter strong{font-size:15px;color:#fff}
/* ---------- viewport ---------- */
.insight-viewport{position:relative;overflow:hidden;background:#f8fbfe}
.insight-track{position:relative}
.ins-slide{display:none;padding:20px;animation:ins-fade .35s ease}
.ins-slide.is-active{display:block}
@keyframes ins-fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ins-slide-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.ins-slide-ikon{
  width:42px;height:42px;flex:none;border-radius:12px;display:grid;place-items:center;font-size:20px;
  background:#eaf4fd;border:1px solid #cfe4f8;color:#0f4c81;
}
.ins-slide-head h3{margin:0;font-size:16px;color:#0b3c74;letter-spacing:-.01em}
.ins-slide-head p{margin:3px 0 0;font-size:12.5px;color:#627d98}
/* ---------- kotak sorotan (3 per slide) ---------- */
.ins-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.ins-card{
  display:flex;flex-direction:column;gap:9px;min-width:0;
  border:1px solid #e2ebf3;border-radius:14px;padding:14px;background:#fff;
  transition:border-color .18s,box-shadow .18s,transform .18s;
}
.ins-card:hover{border-color:#9fc0e0;box-shadow:0 8px 20px rgba(11,60,116,.10);transform:translateY(-2px)}
.ins-card-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ins-card-no{
  flex:none;display:inline-grid;place-items:center;min-width:26px;height:22px;padding:0 7px;
  border-radius:7px;background:#0b3c74;color:#fff;font-size:11px;font-weight:800;
}
.ins-card-top .ins-kind{margin-right:0}
.ins-card-title{
  margin:0;font-size:13.5px;font-weight:700;color:#102a43;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:5;line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;
}
.ins-card-date{margin:0;font-size:11.5px;font-weight:700;color:#0f4c81}
.ins-card-sender{margin:0;font-size:11.5px;color:#829ab1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ins-card-link{
  margin-top:auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;
  padding:8px 10px;border-radius:10px;background:#0f4c81;color:#fff;
  font-size:11.5px;font-weight:800;text-decoration:none;transition:background .18s;
}
.ins-card-link:hover{background:#082f5b}
.ins-card-link.is-off{background:#eef3f8;color:#829ab1}
/* ---------- dots + progress ---------- */
.insight-dots{display:flex;justify-content:center;gap:8px;padding:4px 0 0}
.ins-dot{
  width:9px;height:9px;padding:0;border-radius:50%;border:0;cursor:pointer;
  background:#c8dced;transition:width .2s,background .2s;
}
.ins-dot.is-active{width:26px;border-radius:999px;background:#0f4c81}
.ins-dot:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
.insight-progress{height:4px;background:#eef4fa;overflow:hidden}
.insight-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#0f4c81,#38bdf8)}
/* ---------- SLA ---------- */
.ins-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:14px}
.ins-sla-card{border:1px solid #e2ebf3;border-radius:14px;padding:14px;background:#fff}
.ins-sla-card header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.ins-sla-card h3{margin:0;font-size:14.5px;color:#102a43}
.ins-chip{padding:4px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap}
.ins-chip.ok{background:#e4f7ee;color:#0a6b3d}
.ins-chip.mid{background:#e6f2ff;color:#0f4c81}
.ins-chip.low{background:#fdf0e3;color:#9a5b00}
.ins-metric{margin-bottom:10px}
.ins-metric-label{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#829ab1}
.ins-metric-value{display:block;font-size:19px;font-weight:800;color:#0b3c74;line-height:1.3}
.ins-metric-value i{font-size:11px;font-style:normal;font-weight:700;color:#829ab1;margin-left:1px}
.ins-bar{display:block;height:6px;border-radius:999px;background:#edf2f7;overflow:hidden}
.ins-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2f86d6,#38bdf8)}
.ins-metric.ok .ins-bar i{background:linear-gradient(90deg,#16a34a,#4ade80)}
.ins-metric.low .ins-bar i{background:linear-gradient(90deg,#d97706,#fbbf24)}
.ins-spark-wrap{margin-top:12px;border-top:1px dashed #e6edf4;padding-top:10px}
.ins-spark{display:block;width:100%;height:44px}
.ins-spack-legend{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:6px;font-size:10.5px;color:#829ab1}
.ins-spack-legend span{display:inline-flex;align-items:center;gap:4px}
.ins-spack-legend i{width:9px;height:2.5px;border-radius:2px;display:inline-block}
.ins-spack-legend em{font-style:normal;margin-left:auto;color:#9fb3c8}
.ins-link{display:inline-block;margin-top:10px;font-size:12px;font-weight:700;color:#0f4c81;text-decoration:none}
.ins-link:hover{text-decoration:underline}
/* ---------- daftar ---------- */
.ins-list{list-style:none;margin:0;padding:0;max-height:340px;overflow:auto}
.ins-item{
  display:flex;align-items:flex-start;gap:12px;padding:11px 4px;border-bottom:1px dashed #e6edf4;
}
.ins-item:last-child{border-bottom:0}
.ins-date{
  flex:none;width:104px;font-size:11.5px;font-weight:800;color:#0f4c81;background:#eaf4fd;
  border-radius:8px;padding:5px 8px;text-align:center;
}
.ins-item-body{flex:1;min-width:0}
.ins-item-title{margin:0;font-size:13.5px;font-weight:600;color:#102a43;line-height:1.5}
.ins-item-meta{margin:3px 0 0;font-size:11.5px;color:#829ab1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ins-dl{
  flex:none;width:34px;height:34px;border-radius:9px;display:grid;place-items:center;text-decoration:none;
  background:#0f4c81;color:#fff;font-size:13px;
}
.ins-dl:hover{background:#082f5b}
/* Penanda "tanpa lampiran": bentuk sama dengan tombol unduh, tapi
   abu-abu redup supaya jelas tidak bisa diklik. Sebelumnya warna ini
   ditulis sebagai inline style di announcement-list.js sehingga tidak
   bisa ikut berubah di mode malam. */
.ins-dl.is-kosong{background:#c3d9ec;color:#486581;cursor:default}
.ins-dl.is-kosong:hover{background:#c3d9ec}
/* ---------- coaching ---------- */
.ins-coach-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:12px;max-height:360px;overflow:auto}
.ins-coach{display:flex;gap:11px;border:1px solid #e6edf4;border-radius:12px;padding:12px;background:#fff}
.ins-avatar{
  flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:800;
  background:#0b3c74;color:#fff;font-size:15px;
}
.ins-coach-body{min-width:0}
.ins-coach h3{margin:0 0 4px;font-size:13.5px;color:#0b3c74}
.ins-coach p{margin:2px 0;font-size:12px;line-height:1.55;color:#486581}
.ins-coach p b{color:#0f4c81}
.ins-coach-susah{color:#7a5c2e!important}
.ins-kosong{margin:0;padding:26px;text-align:center;color:#829ab1;font-weight:600}
/* ---------- tablet & HP ---------- */
/* Catatan: aturan 980px harus ditulis SEBELUM 720px agar aturan HP tetap menang
   pada layar sempit (urutan sumber mengalahkan lebar media query). */
@media (max-width:980px){
  .ins-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:720px){
  .insight-head{padding:14px}
  .insight-head h2{font-size:16px}
  .insight-head p{font-size:11.5px}
  .insight-arrow{width:34px;height:34px;font-size:19px}
  .ins-slide{padding:14px}
  .ins-list{max-height:none}
  .ins-item{flex-wrap:wrap;gap:8px}
  .ins-date{width:auto}
  .ins-coach-grid{max-height:none}
  .ins-item-title{font-size:13px}
  .ins-cards{grid-template-columns:1fr;gap:10px}
  .ins-card{padding:12px}
  .ins-card-title{font-size:13px;-webkit-line-clamp:4;line-clamp:4}
}
@media (prefers-reduced-motion:reduce){
  .ins-slide{animation:none}
  .ins-arrow,.ins-dot{transition:none}
  .insight-progress i{transition:none!important}
  .ins-card{transition:none}
}
/* ---------- tombol jeda / lanjut (carousel berjalan terus) ---------- */
.insight-play{
  width:38px;height:38px;border-radius:50%;border:1px solid rgba(255,255,255,.35);
  background:rgba(255,255,255,.12);color:#fff;font-size:14px;line-height:1;cursor:pointer;
  display:grid;place-items:center;transition:background .18s,transform .18s;
}
.insight-play:hover{background:rgba(255,255,255,.25);transform:translateY(-1px)}
.insight-play:focus-visible{outline:3px solid #7fe3d4;outline-offset:2px}
#insightCarousel[data-playing="false"] .insight-play,
#manualInsight[data-playing="false"] .insight-play{background:rgba(126,227,212,.28);border-color:rgba(126,227,212,.6)}
@media (max-width:720px){
  .insight-play{width:34px;height:34px;font-size:13px}
}
/* =========================================================
   CAROUSEL PENGUMANAN (/announcement)
   ------------------------------------------------------------
   Tata letak dibuat sama dengan carousel Manual Book:

     ┌──────────┐  ┌──────────┐  ┌──────────┐
     │ [Ann] ⬇📎│  │ [Upd] ⬇📎│  │ [Rem] ⬇📎│
     │  Judul   │  │  Judul   │  │  Judul   │
     │ ┌──────┐ │  │ ┌──────┐ │  │ ┌──────┐ │
     │ │ isi  │ │  │ │ isi  │ │  │ │ isi  │ │   <- hanya bila ada
     │ └──────┘ │  │ └──────┘ │  │ └──────┘ │
     │ pengirim │  │ pengirim │  │ pengirim │
     │ 12 Okt   │  │ 12 Okt   │  │ 12 Okt   │
     └──────────┘  └──────────┘  └──────────┘

   Tombol PDF dan lampiran berupa ikon kecil di pojok kanan atas,
   tidak lagi tombol panjang di bawah kartu. Isi pengumuman hanya
   ditampilkan bila benar-benar ada isinya.
   ========================================================= */
#insightCarousel .insight-viewport{background:#e8f1fb}
#insightCarousel .ins-slide{padding:22px}
#insightCarousel .ins-slide-head{margin-bottom:18px}
#insightCarousel .ins-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
  justify-content:center;
}
#insightCarousel .ins-item{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  padding:20px 18px 18px;
  border:1px solid #d9e6f2;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(16,42,67,.10);
  text-align:center;
  transition:transform .18s ease,box-shadow .18s ease;
}
#insightCarousel .ins-item:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 32px rgba(16,42,67,.16);
}
#insightCarousel .ins-item-body{
  order:1;flex:1 1 auto;width:100%;
  display:flex;flex-direction:column;align-items:center;gap:9px;
}
/* ruang di kanan dipakai oleh ikon PDF + lampiran */
#insightCarousel .ins-card-top{
  order:1;width:100%;justify-content:flex-start;align-items:center;gap:8px;
  padding-right:78px;
}
#insightCarousel .ins-item-title{
  order:2;font-size:14px;line-height:1.5;font-weight:700;text-align:center;
  display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
/* Tanggal unggah: tampil tepat di bawah judul, gaya kecil & redup. */
#insightCarousel .ins-item-date{
  order:2;margin:0;display:inline-flex;align-items:center;gap:5px;
  font-size:11.5px;font-weight:600;color:#5a7b9c;
  background:#eef5fc;border:1px solid #dbe9f6;border-radius:999px;
  padding:3px 10px;line-height:1.4;white-space:nowrap;
}
#insightCarousel .ins-item-date-ikon{font-size:11px;line-height:1}
/* isi pengumuman: kotak kecil seperti kutipan di contoh.
   Padding bawah 0 + max-height 72px (= 4 x 18px) karena overflow
   memotong di tepi padding, bukan di tepi teks. */
#insightCarousel .ins-item-preview{
  order:3;width:100%;margin:2px 0 9px;padding:9px 11px 0;
  border-left:3px solid #2f86d6;border-radius:8px;
  background:#f2f8ff;
  color:#334e68;font-size:11.5px;line-height:18px;text-align:left;
  box-sizing:content-box;
  max-height:72px;
  overflow:hidden;
}
#insightCarousel .ins-item-meta{order:4;margin:0;white-space:normal;text-align:center}
#insightCarousel .ins-date{
  order:5;width:auto;align-self:center;margin:0;
  font-size:11px;padding:4px 11px;border-radius:999px;
}
/* ikon PDF & lampiran di pojok kanan atas, tidak melebar */
#insightCarousel .ins-item-aksi{
  position:absolute;top:14px;right:14px;
  display:flex;gap:6px;align-items:center;
}
#insightCarousel .ins-item-aksi .ins-dl{
  position:static;width:32px;height:32px;border-radius:9px;font-size:13px;
}
#insightCarousel .ins-dl-att{background:#0b6a70}
#insightCarousel .ins-dl-att:hover{background:#084f53}
/* mode malam */
html[data-theme="dark"] #insightCarousel .insight-viewport{background:var(--sd-panel-3)}
html[data-theme="dark"] #insightCarousel .ins-item{
  background:var(--sd-panel-2);border-color:var(--sd-line);box-shadow:var(--sd-shadow);
}
html[data-theme="dark"] #insightCarousel .ins-item:hover{box-shadow:0 16px 32px rgba(0,0,0,.35)}
html[data-theme="dark"] #insightCarousel .ins-item-preview{
  background:#16233c;border-left-color:var(--sd-accent-2);color:var(--sd-text-soft);
}
/* tablet & HP: jumlah kolom mengikuti jumlah kartu per slide */
@media (max-width:900px){
  #insightCarousel .ins-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  #insightCarousel .ins-slide{padding:18px}
}
@media (max-width:640px){
  #insightCarousel .ins-grid{grid-template-columns:minmax(0,1fr)}
  #insightCarousel .ins-slide{padding:16px 14px}
}
/* =========================================================
   CAROUSEL MANUAL BOOK - tiga kartu, judul saja
   ------------------------------------------------------------
   Kepala slide memuat judul sumber panduan saja:

     Service Desk Plus                        <- judul, tanpa ikon
     ┌──────────┐  ┌──────────┐  ┌──────────┐    dan tanpa subdeskripsi
     │          │  │          │  │          │
     │  Judul   │  │  Judul   │  │  Judul   │   <- hanya judul dokumen
     │ dokumen  │  │ dokumen  │  │ dokumen  │
     │          │  │          │  │          │
     └──────────┘  └──────────┘  └──────────┘

   Di dalam kartu tidak ada tombol unduh, kotak cuplikan halaman 1,
   label jenis berkas ("PDF"), deskripsi, tanggal ("13 Okt 2026"),
   maupun ukuran berkas ("2,4 KB").
   Kartu dibuat bernuansa putih di atas latar biru muda, sama tinggi,
   dan diberi jarak lega. Aturan ini memakai #manualInsight supaya
   tidak menyentuh daftar dokumen di bawah carousel maupun halaman
   lain yang memakai .ins-item.
   ========================================================= */
#manualInsight .insight-viewport{background:#e8f1fb}
#manualInsight .ins-slide{padding:22px}
/* Kepala slide: hanya judul sumber panduan, tanpa ikon dan tanpa
   subdeskripsi ("3 dari 9 dokumen · bagian 1 dari 3"). */
#manualInsight .ins-slide-head{margin-bottom:16px}
#manualInsight .ins-slide-head h3{font-size:17px}
#manualInsight .ins-slide-head p,
#manualInsight .ins-slide-head .ins-slide-ikon{display:none}
#manualInsight .ins-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
  align-items:stretch;
  justify-content:center;
}
#manualInsight .ins-item{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:9px;
  padding:20px 18px 18px;
  border:1px solid #d9e6f2;
  border-radius:16px;
  background:#fff;
  box-shadow:0 10px 24px rgba(16,42,67,.10);
  text-align:center;
  transition:transform .18s ease,box-shadow .18s ease;
}
#manualInsight .ins-item:hover{
  transform:translateY(-3px);
  box-shadow:0 16px 32px rgba(16,42,67,.16);
}
#manualInsight .ins-item-body{
  order:1;flex:1 1 auto;width:100%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;
}
/* Label jenis berkas ("PDF") di sebelah kiri kartu sudah tidak dipakai. */
#manualInsight .ins-card-top,
#manualInsight .ins-card-top .ins-kind{display:none}
#manualInsight .ins-item-title{
  order:2;font-size:15.5px;line-height:1.6;font-weight:700;text-align:center;
}
/* Kotak cuplikan halaman 1 dan tombol unduh tidak ditampilkan di kartu
   carousel - kartunya hanya memuat judul dokumen. */
#manualInsight .ins-item-preview,
#manualInsight .ins-dl{display:none}
/* cuplikan halaman pertama: kotak kecil seperti kutipan di contoh.
   Catatan tinggi: "overflow:hidden" memotong di tepi PADDING, bukan di
   tepi teks. Karena itu padding bawah dibuat 0 dan sisanya dipindah ke
   margin, supaya batas 72px (= 4 x 18px) tepat memotong setelah baris
   keempat tanpa menyisakan setengah baris lagi. */
#manualInsight .ins-item-preview{
  order:3;width:100%;margin:2px 0 9px;padding:9px 11px 0;
  border-left:3px solid #2f86d6;border-radius:8px;
  background:#f2f8ff;
  color:#334e68;font-size:11.5px;line-height:18px;text-align:left;
  box-sizing:content-box;
  max-height:72px;
  overflow:hidden;
}
#manualInsight .ins-item-meta{order:4;margin:0;white-space:normal;text-align:center}
/* Baris tanggal dan ukuran berkas sudah tidak ditampilkan. Aturan
   .ins-date tetap ada sebagai jaring pengaman bila suatu saat muncul
   lagi (mis. dari penanda lama), tapi disembunyikan di kartu ini. */
#manualInsight .ins-item > .ins-date{display:none}
#manualInsight .ins-item-meta:empty{display:none}
/* tombol unduh: ikon kecil di pojok kanan atas, tidak melebar */
#manualInsight .ins-dl{
  order:6;position:absolute;top:14px;right:14px;
  width:32px;height:32px;border-radius:9px;font-size:13px;
}
/* mode malam */
html[data-theme="dark"] #manualInsight .insight-viewport{background:var(--sd-panel-3)}
html[data-theme="dark"] #manualInsight .ins-item{
  background:var(--sd-panel-2);border-color:var(--sd-line);box-shadow:var(--sd-shadow);
}
html[data-theme="dark"] #manualInsight .ins-item:hover{box-shadow:0 16px 32px rgba(0,0,0,.35)}
html[data-theme="dark"] #manualInsight .ins-item-preview{
  background:#16233c;border-left-color:var(--sd-accent-2);color:var(--sd-text-soft);
}
/* tablet & HP: jumlah kolom mengikuti jumlah kartu per slide */
@media (max-width:900px){
  #manualInsight .ins-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
  #manualInsight .ins-slide{padding:18px}
}
@media (max-width:640px){
  #manualInsight .ins-grid{grid-template-columns:minmax(0,1fr)}
  #manualInsight .ins-slide{padding:16px 14px}
}
/* =========================================================
   Topbar ringkas ala Dashboard
   Tanpa menu navigasi publik (Home / Document / Introduction).
   ========================================================= */

/* Link pintas di dalam topbar admin */
.agent-page .dashboard-topbar-link{
  display:inline-flex;align-items:center;gap:6px;
  height:38px;padding:0 14px;border-radius:999px;
  border:1px solid #cbdff1;background:#f7fbfe;color:#0f4c81;
  font-size:12.5px;font-weight:800;text-decoration:none;white-space:nowrap;
  transition:transform .2s,background .2s,color .2s,border-color .2s,box-shadow .2s;
}
.agent-page .dashboard-topbar-link:hover{
  background:#145da0;border-color:#145da0;color:#fff;
  transform:translateY(-1px);box-shadow:0 6px 14px rgba(15,76,129,.22);
}
.agent-page .dashboard-topbar-link:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
/* Brand diklik ke dashboard (tetap satu arah, bukan menu publik) */
.agent-page .dashboard-brand{text-decoration:none;color:inherit;display:flex;align-items:center;gap:12px}
/* Area konten mengikuti ukuran dashboard */
.agent-page .container{max-width:1180px;margin:0 auto;padding:34px 24px 52px}
.agent-page .sheet-wrapper{
  background:#fff;border:1px solid var(--line,#e2ebf3);border-radius:16px;
  padding:26px 28px 30px;box-shadow:0 2px 12px rgba(16,42,67,.06);
}
.agent-page .inbound-foot{margin-top:18px}
/* Footer agent memakai aturan .app-main > footer agar seragam
   dengan halaman profil/dashboard (menempel di bawah kolom konten). */
.agent-page .app-main > footer{text-align:center}
/* ===== responsive ===== */
@media(max-width:768px){
  .agent-page .dashboard-topbar{padding:12px 16px;gap:12px;flex-wrap:wrap}
  .agent-page .dashboard-topbar-link{height:34px;padding:0 11px;font-size:11.5px}
  .agent-page .container{padding:22px 14px 40px}
  .agent-page .sheet-wrapper{padding:20px 16px 24px;border-radius:14px}
}
@media(max-width:560px){
  /* Di layar kecil, label pintasan disembunyikan agar tidak berdesakan */
  .agent-page .dashboard-topbar-link{width:34px;padding:0;justify-content:center;font-size:14px}
  .agent-page .dashboard-topbar-link span.lbl{display:none}
  .agent-page .container{padding:18px 12px 34px}
}
/* ==========================================
   GLOBAL RESET & THEME STYLING
   ================================---------- */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
body { background-color: #f8fafc; color: #1e293b; display: flex; flex-direction: column; min-height: 100vh; line-height: 1.5; }
/* ==========================================
   HEADER & NAVIGATION BAR
   ================================---------- */
header { background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 14px 28px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1000; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.logo-area { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: #0f172a; text-decoration: none; }
.logo-icon { background: #e0f2fe; color: #0284c7; padding: 6px 10px; border-radius: 8px; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.nav-menu { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav-menu a { color: #475569; text-decoration: none; font-weight: 500; transition: color 0.15s ease; }
.nav-menu a:hover, .nav-menu a.active { color: #0284c7; }
/* Dropdown Menu */
.dropdown { position: relative; display: inline-block; }
.dropbtn { background: none; border: none; font-size: 14px; font-weight: 500; color: #475569; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 5px 0; font-family: inherit; }
.dropbtn:hover { color: #0284c7; }
.dropdown-content { display: none; position: absolute; background-color: #ffffff; min-width: 220px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); border-radius: 10px; z-index: 10; border: 1px solid #e2e8f0; top: 120%; left: 0; padding: 6px 0; }
.dropdown-content a { color: #334155; padding: 10px 16px; text-decoration: none; display: block; font-size: 13px; font-weight: 400; }
.dropdown-content a:hover { background-color: #f1f5f9; color: #0284c7; }
.dropdown:hover .dropdown-content { display: block; }
/* Status & Badges */
.status-online { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #059669; background: #ecfdf5; padding: 6px 12px; border-radius: 20px; font-weight: 600; border: 1px solid #d1fae5; }
.status-dot { width: 7px; height: 7px; background: #10b981; border-radius: 50%; display: inline-block; box-shadow: 0 0 0 2px #a7f3d0; }
.sub-header { background: #0f172a; color: #f8fafc; padding: 10px 28px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid #1e293b; }
.shift-badge { background: #0284c7; padding: 2px 8px; border-radius: 4px; font-weight: 600; color: white; font-size: 12px; }
/* ==========================================
   CONTAINER & LAYOUT KOMPONEN
   ================================---------- */
.container { max-width: 1200px; margin: 30px auto; padding: 0 20px; width: 100%; flex: 1; }
.card-section { background: white; border: 1px solid #e2e8f0; border-radius: 14px; padding: 28px; margin-bottom: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.section-title { font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
/* Hero Banner Utama */
.hero-banner { background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); color: white; border-radius: 16px; padding: 40px; margin-bottom: 25px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
.hero-banner h1 { font-size: 26px; margin-bottom: 10px; font-weight: 700; letter-spacing: -0.5px; }
.hero-banner .quote { font-style: italic; color: #94a3b8; font-size: 14px; margin-bottom: 15px; line-height: 1.5; }
.hero-divider { width: 50px; height: 3px; background: #0284c7; margin-bottom: 15px; border-radius: 2px; }
.hero-banner .desc { font-size: 14px; color: #cbd5e1; line-height: 1.6; }
/* Grids & Cards */
.grid-tupoksi { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.tupoksi-item { background: #f8fafc; border: 1px solid #e2e8f0; padding: 16px; border-radius: 10px; font-size: 13px; color: #334155; line-height: 1.5; }
.grid-two { display: grid; grid-template-columns: 2fr 1fr; gap: 25px; margin-bottom: 25px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.app-box { background: #f8fafc; border: 1px solid #e2e8f0; padding: 20px; border-radius: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: all 0.2s ease; }
.app-box:hover { border-color: #0284c7; background: #f0f9ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(2,132,199,0.06); }
.app-icon { font-size: 20px; background: #e0f2fe; color: #0284c7; width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.app-name { font-weight: 700; color: #1e293b; font-size: 14px; }
.app-url { font-size: 12px; color: #64748b; }
/* Shift & Rekap List */
.shift-card { background: #f8fafc; border: 1px solid #e2e8f0; padding: 14px 16px; border-radius: 10px; margin-bottom: 10px; }
.shift-card.active { background: #faf5ff; border-color: #d8b4fe; }
.shift-badge-run { background: #9333ea; color: white; font-size: 10px; padding: 3px 8px; border-radius: 4px; font-weight: 700; float: right; }
.rekap-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; color: #334155; }
.rekap-date { font-size: 11px; color: #64748b; background: #f1f5f9; padding: 3px 8px; border-radius: 6px; font-weight: 500; }
/* ==========================================
   LOGIN & AUTH FORM STYLING
   ================================---------- */
.login-wrapper { display: flex; justify-content: center; align-items: center; flex: 1; padding: 40px 20px; }
.login-card { background: white; border: 1px solid #e2e8f0; border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.04); }
.login-title { font-size: 22px; font-weight: 700; color: #0f172a; margin-bottom: 6px; text-align: center; }
.login-subtitle { font-size: 13px; color: #64748b; text-align: center; margin-bottom: 25px; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.form-input { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; color: #1e293b; outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2,132,199,0.1); }
.btn-submit { width: 100%; background: #0f172a; color: white; border: none; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s; margin-top: 10px; }
.btn-submit:hover { background: #0284c7; }
/* ==========================================
   MANUAL BOOK GRID & CARDS
   ================================---------- */
.manual-category { font-size: 18px; font-weight: 700; color: #0f172a; margin-top: 35px; margin-bottom: 16px; border-left: 4px solid #0284c7; padding-left: 12px; }
.manual-category:first-of-type { margin-top: 10px; }
.manual-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; margin-bottom: 20px; }
.manual-card { background: white; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 3px rgba(0,0,0,0.02); transition: transform 0.2s, box-shadow 0.2s; }
.manual-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.04); border-color: #cbd5e1; }
.card-top { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px; }
.pdf-icon { background: #fee2e2; color: #dc2626; width: 42px; height: 46px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.card-title { font-size: 14px; font-weight: 600; color: #1e293b; line-height: 1.4; }
.btn-open-pdf { background: #0f172a; color: white; text-align: center; padding: 10px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s; }
.btn-open-pdf:hover { background: #0284c7; }
/* ==========================================
   SERVICE CATALOG (IFRAME SPREADSHEET)
   ================================---------- */
.sheet-wrapper { background: white; border: 1px solid #e2e8f0; border-radius: 14px; padding: 25px; box-shadow: 0 1px 3px rgba(0,0,0,0.02); }
.btn-action-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 12px; }
.btn-external { background: #0284c7; color: white; padding: 8px 16px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s; }
.btn-external:hover { background: #0369a1; }
.iframe-container { width: 100%; height: 75vh; border: 1px solid #e2e8f0; border-radius: 10px; margin-top: 15px; background: #ffffff; }
/* ==========================================
   FOOTER STYLING
   ================================---------- */
footer { background: #ffffff; border-top: 1px solid #e2e8f0; text-align: center; padding: 20px; font-size: 13px; color: #64748b; margin-top: auto; }
/* ==========================================
   RESPONSIVE MOBILE BREAKPOINTS (< 768px)
   ================================---------- */
@media (max-width: 768px) {
    header { padding: 12px 16px; flex-direction: column; gap: 12px; align-items: flex-start; }
    .nav-menu { width: 100%; overflow-x: auto; padding-bottom: 6px; gap: 16px; font-size: 13px; }
    .sub-header { padding: 10px 16px; flex-direction: column; align-items: flex-start; }
    .grid-two { grid-template-columns: 1fr; }
    .hero-banner { padding: 24px; }
    .hero-banner h1 { font-size: 22px; }
    .container { padding: 0 12px; margin: 16px auto; }
    .manual-grid { grid-template-columns: 1fr; }
    .iframe-container { height: 60vh; }
}
/* =========================================================
   Jadwal Service Desk - kisi orang x hari di dashboard.
   ========================================================= */

/* ---------- toolbar ---------- */
.jad-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
}
.jad-toolbar .jad-grow { flex: 1 1 auto; }
.jad-bulan {
  min-width: 168px;
  padding: 8px 11px;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
}
.jad-bulan:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.jad-bulan option.jad-bulan-kosong { color: var(--text-faint); }
.jad-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.jad-meta b { color: var(--text); font-weight: 700; }
.jad-meta .jad-pisah { width: 1px; height: 13px; background: var(--border); }
.jad-status { font-weight: 700; }
.jad-status.is-ok { color: var(--green); }
.jad-status.is-sibuk { color: var(--amber); }
.jad-status.is-gagal { color: var(--red); }
.jad-galat {
  display: none;
  margin: 0 0 10px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red);
  border-radius: 9px;
}
.jad-galat.tampil { display: block; }
/* ---------- tombol simpan ---------- */
.jad-simpan {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 9px;
  cursor: pointer;
}
.jad-simpan.tampil { display: inline-flex; }
.jad-simpan:hover { filter: brightness(1.08); }
.jad-simpan[disabled] { opacity: .55; cursor: progress; }
.jad-simpan .jad-hitung {
  min-width: 20px;
  padding: 1px 6px;
  font-size: 12px;
  text-align: center;
  background: rgba(255, 255, 255, .25);
  border-radius: 20px;
}
/* ---------- legenda ---------- */
.jad-legenda { margin: 0 0 12px; }
.jad-legenda > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  list-style: none;
}
.jad-legenda > summary::-webkit-details-marker { display: none; }
.jad-legenda > summary::before { content: "\25B8"; color: var(--text-faint); }
.jad-legenda[open] > summary::before { content: "\25BE"; }
.jad-legenda-grup {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}
.jad-legenda-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-soft); }
.jad-legenda-item code {
  min-width: 30px;
  padding: 2px 6px;
  font: 700 11.5px/1.5 ui-monospace, Consolas, Menlo, monospace;
  text-align: center;
  border-radius: 5px;
}
/* ---------- kisi ---------- */
.jad-bungkus {
  max-height: 62vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
}
.jad-kisi {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.jad-kisi th,
.jad-kisi td { padding: 0; margin: 0; }
/* kolom kiri yang menempel */
.jad-nama,
.jad-kepala-nama {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 188px;
  max-width: 188px;
  padding: 6px 9px;
  text-align: left;
  background: var(--panel);
  border-right: 2px solid var(--border);
  box-shadow: 3px 0 6px -4px rgba(15, 23, 42, .35);
}
.jad-kepala-nama { z-index: 5; background: var(--panel-2); }
.jad-nama-utama {
  display: block;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jad-nama-ket {
  display: block;
  font-size: 11px;
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* kepala kolom hari */
.jad-kepala-hari {
  position: sticky;
  top: 0;
  z-index: 4;
  min-width: 38px;
  padding: 5px 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-soft);
  text-align: center;
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border-soft);
}
.jad-kepala-tgl {
  position: sticky;
  top: 30px;
  z-index: 4;
  min-width: 38px;
  padding: 4px 2px;
  font-size: 12px;
  color: var(--text);
  text-align: center;
  background: var(--panel-2);
  border-bottom: 2px solid var(--border);
  border-left: 1px solid var(--border-soft);
}
.jad-kepala-hari.is-akhir-pekan,
.jad-kepala-tgl.is-akhir-pekan { background: var(--amber-soft); color: var(--amber); }
.jad-kepala-tgl.is-masalah { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.jad-kepala-hari.is-bulan-ini,
.jad-kepala-tgl.is-bulan-ini { box-shadow: inset 0 0 0 2px var(--accent); }
/* sel jadwal */
.jad-sel {
  min-width: 38px;
  height: 29px;
  padding: 0 2px;
  font: 600 11.5px/1 ui-monospace, Consolas, Menlo, monospace;
  text-align: center;
  vertical-align: middle;
  background: var(--panel);
  border-left: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.jad-sel.is-kosong {
  color: var(--text-faint);
  font-weight: 400;
  background:
    linear-gradient(135deg, transparent 46%, var(--border) 46%, var(--border) 54%, transparent 54%);
}
.jad-sel.is-s1 { color: var(--accent); background: var(--accent-soft); }
.jad-sel.is-s2 { color: #b45309; background: var(--amber-soft); }
.jad-sel.is-s3 { color: var(--violet); background: var(--violet-soft); }
.jad-sel.is-ganda {
  color: var(--cyan);
  background: var(--cyan-soft);
  font-size: 10px;
  letter-spacing: -.2px;
  white-space: nowrap;
}
.jad-sel.is-libur { color: var(--green); background: var(--green-soft); }
.jad-sel.is-cuti { color: var(--red); background: var(--red-soft); }
.jad-sel.is-dispen { color: #0e7490; background: var(--cyan-soft); }
[data-theme="dark"] .jad-sel.is-s2 { color: var(--amber); }
.jad-sel.is-akhir-pekan { box-shadow: inset 1px 0 0 var(--border); }
.jad-baris-akhir td,
.jad-baris-akhir .jad-nama { border-bottom: 2px solid var(--border); }
/* baris rekap */
.jad-rekap .jad-nama { font-weight: 700; font-size: 12px; }
.jad-rekap .jad-sel {
  height: 26px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  background: var(--panel-2);
}
.jad-total .jad-nama { font-weight: 700; font-size: 12px; }
.jad-total .jad-sel { font-family: inherit; font-size: 12px; background: var(--panel-2); }
/* mode ubah */
.jad-bisaubah .jad-sel { cursor: pointer; }
.jad-bisaubah .jad-sel:hover { outline: 2px solid var(--accent); outline-offset: -2px; }
.jad-sel.is-dirty { box-shadow: inset 0 0 0 2px var(--amber); }
.jad-sel.is-buka { outline: 2px solid var(--accent); outline-offset: -2px; }
.jad-sel.is-masalah { box-shadow: inset 0 0 0 2px var(--red); }
/* baris kosong / pesan */
.jad-kosong {
  padding: 26px 14px;
  color: var(--text-soft);
  text-align: center;
  background: var(--panel);
}
/* ---------- pemilih kode ---------- */
.jad-pilih {
  position: fixed;
  z-index: 90;
  display: none;
  width: 232px;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow);
}
.jad-pilih.tampil { display: block; }
.jad-pilih-judul {
  padding: 4px 8px 7px;
  font-size: 11.5px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border-soft);
}
.jad-pilih-judul b { color: var(--text); }
.jad-pilih-grup {
  padding: 8px 8px 3px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.jad-pilih-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px 8px;
  font: inherit;
  font-size: 12.5px;
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}
.jad-pilih-item:hover,
.jad-pilih-item:focus-visible { background: var(--accent-soft); outline: none; }
.jad-pilih-item code {
  min-width: 42px;
  padding: 2px 5px;
  font: 700 11px/1.5 ui-monospace, Consolas, Menlo, monospace;
  text-align: center;
  border-radius: 5px;
}
.jad-pilih-item .jad-pilih-arti { color: var(--text-soft); }
.jad-pilih-item.is-aktif { background: var(--accent-soft); font-weight: 700; }
/* ---------- daftar masalah ---------- */
.jad-masalah { margin: 12px 0 0; }
.jad-masalah > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  list-style: none;
}
.jad-masalah > summary::-webkit-details-marker { display: none; }
.jad-masalah > summary::before { content: "\25B8"; color: var(--text-faint); }
.jad-masalah[open] > summary::before { content: "\25BE"; }
.jad-masalah-bersih {
  font-weight: 400;
  color: var(--green);
}
.jad-masalah-ada {
  padding: 9px 13px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}
.jad-masalah-daftar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 5px 16px;
  max-height: 220px;
  overflow-y: auto;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 9px 9px;
}
.jad-masalah-item {
  display: flex;
  gap: 7px;
  padding: 4px 0;
  font-size: 12.5px;
  border-bottom: 1px dashed var(--border-soft);
}
.jad-masalah-item b { flex: 0 0 auto; color: var(--text); }
.jad-masalah-item span { color: var(--red); }
.jad-masalah-item.jad-bulan-ini b,
.jad-masalah-item.jad-bulan-ini span { color: var(--accent); font-weight: 700; }
/* ---------- catatan kaki ---------- */
.jad-catatan {
  margin: 9px 2px 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-faint);
}
/* ---------- layar kecil ---------- */
@media (max-width: 900px) {
  .jad-nama, .jad-kepala-nama { min-width: 138px; max-width: 138px; }
  .jad-sel, .jad-kepala-hari, .jad-kepala-tgl { min-width: 33px; }
}
@media (max-width: 560px) {
  .jad-bungkus { max-height: 70vh; }
  .jad-nama, .jad-kepala-nama { min-width: 108px; max-width: 108px; padding: 5px 6px; }
  .jad-nama-ket { display: none; }
  .jad-sel, .jad-kepala-hari, .jad-kepala-tgl { min-width: 29px; font-size: 11px; }
  .jad-pilih { width: 200px; }
}
/* =========================================================
   Rekap Laporan Masuk Service Desk (Inbound)
   ========================================================= */
.inbound-wrapper{padding-bottom:18px}
.inbound-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
.inbound-head p{margin:8px 0 0;color:#627d98}
.inbound-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.inbound-btn{
  display:inline-flex;align-items:center;gap:6px;padding:10px 15px;border-radius:10px;
  background:#fff;border:1px solid #c8dced;color:#0f4c81;font-size:13px;font-weight:700;
  cursor:pointer;text-decoration:none;transition:background .16s,transform .16s,box-shadow .16s;
}
.inbound-btn:hover{background:#eef5fb;transform:translateY(-1px)}
.inbound-btn:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
.inbound-btn-primary{background:#0f4c81;border-color:#0f4c81;color:#fff}
.inbound-btn-primary:hover{background:#125a9e}
.inbound-btn-danger{background:#fff;border-color:#f0c2c2;color:#b42318}
.inbound-btn-danger:hover{background:#fdecec}
.inbound-btn:disabled{opacity:.6;cursor:not-allowed;transform:none}
/* ---------- filter ---------- */
.inbound-filter{
  display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;
  margin:16px 0;padding:14px 16px;border:1px solid #dfe8f1;border-radius:14px;background:#f7fbfe;
}
.inbound-field{display:flex;flex-direction:column;gap:5px}
.inbound-field label{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#627d98}
.inbound-field input{
  border:1px solid #c8dced;border-radius:10px;padding:10px 12px;font:inherit;font-size:13.5px;
  background:#fff;color:#102a43;min-width:160px;
}
.inbound-field input:focus{outline:none;border-color:#2f86d6;box-shadow:0 0 0 3px rgba(47,134,214,.16)}
.inbound-status{margin-left:auto;font-size:12.5px;font-weight:600;color:#627d98}
/* ---------- kartu ---------- */
.inbound-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:16px}
.inbound-card{
  border:1px solid #e2ebf3;border-left:4px solid #64748b;border-radius:12px;padding:13px 15px;background:#fff;
}
.inbound-card-blue{border-left-color:#2f86d6}
.inbound-card-green{border-left-color:#16a34a}
.inbound-card-amber{border-left-color:#d97706}
.inbound-card-label{display:block;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#829ab1}
.inbound-card strong{display:block;margin:6px 0 3px;font-size:26px;font-weight:800;color:#0b3c74;line-height:1.1}
.inbound-card-note{font-size:11.5px;color:#9fb3c8}
/* ---------- ringkasan per media / shift ---------- */
.inbound-breaks{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
/* Di layar sempit kedua kartu grafik ditumpuk, supaya halaman tidak
   bergeser ke samping. */
@media (max-width:520px){.inbound-breaks{grid-template-columns:1fr}}
.inbound-break{border:1px solid #e2ebf3;border-radius:12px;padding:13px 15px;background:#fff}
.inbound-break-title{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#627d98;margin-bottom:10px}
.inbound-break-row{display:flex;align-items:center;gap:9px;margin-bottom:7px}
.inbound-break-row:last-child{margin-bottom:0}
.inbound-break-label{width:110px;flex:none;font-size:12px;color:#334e68;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inbound-break-bar{flex:1;height:7px;border-radius:999px;background:#edf2f7;overflow:hidden}
.inbound-break-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#2f86d6,#38bdf8)}
.inbound-break-row b{min-width:38px;text-align:right;font-size:12px;color:#0b3c74;font-variant-numeric:tabular-nums}
.inbound-break-empty{font-size:12.5px;color:#9fb3c8}
/* ---------- tabel ---------- */
.inbound-table-wrap{width:100%;overflow:auto;border:1px solid #d9e2ec;border-radius:12px;background:#fff}
.inbound-table{width:100%;min-width:880px;border-collapse:separate;border-spacing:0}
.inbound-table th,.inbound-table td{padding:11px 13px;text-align:left;border-bottom:1px solid #edf2f7;font-size:13px;vertical-align:top}
.inbound-table th{position:sticky;top:0;z-index:1;background:#f4f8fc;color:#0f4c81;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.inbound-table tbody tr:nth-child(even) td{background:#fafcfe}
.inbound-table tbody tr:hover td{background:#f2f8fd}
.inbound-table tr:last-child td{border-bottom:0}
.inbound-table .col-tgl{white-space:nowrap;color:#0f4c81;font-weight:700}
.inbound-table .col-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:700}
.inbound-table .cell-name{font-weight:600;color:#102a43;white-space:nowrap}
.inbound-table .cell-email{color:#486581;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.inbound-table .cell-customer{color:#334e68;max-width:320px;min-width:180px;line-height:1.5}
.inbound-table .cell-media,.inbound-table .cell-shift{white-space:nowrap;color:#486581}
.inbound-table .cell-remark{color:#627d98;max-width:420px;min-width:220px;line-height:1.55}
.inbound-empty{color:#829ab1!important;text-align:center!important;padding:28px 14px!important;font-weight:600}
.ib-status{
  display:inline-block;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;white-space:nowrap;
}
.ib-status.draf{background:#f1f5f9;color:#475569}
.ib-status.diverifikasi{background:#e6f2ff;color:#0f4c81}
.ib-status.selesai{background:#e4f7ee;color:#0a6b3d}
.inbound-foot{margin:14px 0 0;font-size:12px;color:#829ab1}
.inbound-foot a{color:#0f4c81;font-weight:700}
/* ---------- form ---------- */
.inbound-form{border:1px solid #dfe8f1;border-radius:14px;background:#f9fcfe;padding:16px;margin-top:16px}
.inbound-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.inbound-field-full{margin-top:12px}
.inbound-field select,.inbound-field textarea{
  border:1px solid #c8dced;border-radius:10px;padding:10px 12px;font:inherit;font-size:13.5px;
  background:#fff;color:#102a43;width:100%;
}
.inbound-field textarea{resize:vertical;line-height:1.55}
.inbound-field select:focus,.inbound-field textarea:focus{outline:none;border-color:#2f86d6;box-shadow:0 0 0 3px rgba(47,134,214,.16)}
.inbound-form-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}
.inbound-form-actions{display:flex;gap:8px}
.inbound-status-inline{font-size:12.5px;font-weight:600;color:#627d98}
.inbound-status-inline.is-ok{color:#0a6b3d}
.inbound-status-inline.is-err{color:#b42318}
.ib-aksi{white-space:nowrap;display:flex;gap:6px}
.ib-aksi .inbound-btn{padding:7px 11px;font-size:12px}
/* ---------- kolom Aksi di tabel rekap dashboard ---------- */
.inbound-table th.col-aksi{text-align:right;white-space:nowrap;width:104px}
.inbound-table .ib-aksi{justify-content:flex-end;gap:6px}
.inbound-table td.ib-aksi{white-space:nowrap;padding-left:10px}
/* Kabar hasil aksi ubah/hapus - terpisah dari baris status agar tidak
   tertimpa saat tabel dimuat ulang. */
.ib-flash{
  display:none;margin-left:10px;padding:5px 11px;border-radius:999px;
  font-size:12px;font-weight:700;white-space:nowrap;
  border:1px solid #b7e0c6;background:#eafaf0;color:#0a6b3d;
}
.ib-flash.is-on{display:inline-block}
.ib-flash.is-err{border-color:#f0c2c2;background:#fff6f6;color:#b42318}
.ib-aksi-btn{
  border:1px solid #c8dced;background:#fff;color:#0f4c81;
  border-radius:8px;padding:4px 8px;font-size:12px;line-height:1.4;
  cursor:pointer;min-width:30px;transition:background .12s,border-color .12s,color .12s;
}
.ib-aksi-btn:hover{background:#eaf2f9;border-color:#0f4c81}
.ib-aksi-btn:focus-visible{outline:2px solid #2f86d6;outline-offset:2px}
.ib-aksi-btn.is-danger{border-color:#f0c2c2;color:#b42318}
.ib-aksi-btn.is-danger:hover{background:#fff6f6;border-color:#b42318}
.ib-aksi-btn[disabled]{opacity:.5;cursor:not-allowed}
/* ---------- modal ubah entri ---------- */
.ib-modal{
  position:fixed;inset:0;z-index:9999;display:none;
  align-items:center;justify-content:center;padding:18px;
  background:rgba(6,20,35,.62);
}
.ib-modal.is-open{display:flex}
.ib-modal-box{
  width:100%;max-width:760px;max-height:92vh;overflow:auto;
  background:#fff;border-radius:18px;box-shadow:0 26px 60px rgba(4,16,30,.34);
  color:#0b2545;
}
.ib-modal-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
  padding:20px 22px 14px;border-bottom:1px solid #e3edf6;
}
.ib-modal-head h3{margin:0;font-size:17px;color:#0b2545}
.ib-modal-head p{margin:4px 0 0;font-size:12.5px;color:#627d98}
.ib-modal-close{
  border:1px solid #c8dced;background:#fff;border-radius:9px;
  width:34px;height:34px;font-size:17px;line-height:1;cursor:pointer;color:#486581;flex:0 0 auto;
}
.ib-modal-close:hover{background:#eaf2f9}
.ib-modal-body{padding:18px 22px 4px}
.ib-modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px}
.ib-modal-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.ib-modal-field.is-wide{grid-column:1/-1}
.ib-modal-field label{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#829ab1}
.ib-modal-field select,.ib-modal-field input,.ib-modal-field textarea{
  width:100%;min-height:42px;padding:10px 12px;font:inherit;font-size:14px;
  border:1px solid #c8dced;border-radius:10px;background:#fff;color:#0b2545;
}
.ib-modal-field textarea{min-height:72px;resize:vertical}
.ib-modal-ts{
  display:flex;align-items:center;gap:8px;padding:11px 13px;border-radius:10px;
  background:#eef4fb;border:1px solid #c8dced;font-size:14px;font-weight:700;color:#0f4c81;
}
.ib-modal-ts small{font-weight:600;font-size:11.5px;color:#627d98}
.ib-modal-foot{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  padding:16px 22px 20px;border-top:1px solid #e3edf6;
}
/* Tombol di dalam modal mengikuti tema halaman.
   SEBELUMNYA di sini tombol dipaksa berlatar putih (`background:#fff`)
   untuk kedua tema. Akibatnya di mode malam tombol "Batal" tetap putih
   dan tidak menyatu dengan panel gelap. Sekarang tombolnya dibiarkan
   memakai kelas aslinya (`.inbound-btn`) yang sudah punya aturan mode
   malam, sehingga warnanya seragam dengan tombol lain di halaman. */
.ib-modal-msg{flex:1 1 180px;font-size:12.5px;font-weight:600;color:#627d98}
.ib-modal-msg.is-ok{color:#0a6b3d}
.ib-modal-msg.is-err{color:#b42318}
/* ---------- modal ubah entri: mode malam ----------
   Kotak modal diletakkan di luar kartu dashboard (lihat dashboard.html)
   supaya tidak ikut tertimpa aturan gelap dashboard - akibatnya modul
   tema tidak pernah menyentuhnya dan seluruh isinya tetap putih, baik
   latarnya maupun kolom pilihan Media/Shift dan tombol Batal. */
html[data-theme="dark"] .ib-modal-box,
html[data-theme="dark"] .ib-modal-box{
  background:#131d33;
  border:1px solid #31456d;
  color:#e6edf7;
}
html[data-theme="dark"] .ib-modal-head,
html[data-theme="dark"] .ib-modal-head{border-bottom-color:#243352}
html[data-theme="dark"] .ib-modal-head h3,
html[data-theme="dark"] .ib-modal-head h3{color:#e6edf7}
html[data-theme="dark"] .ib-modal-head p,
html[data-theme="dark"] .ib-modal-head p{color:#9aabc4}
html[data-theme="dark"] .ib-modal-field label,
html[data-theme="dark"] .ib-modal-field label{color:#9aabc4}
html[data-theme="dark"] .ib-modal-field select,
html[data-theme="dark"] .ib-modal-field input,
html[data-theme="dark"] .ib-modal-field textarea,
html[data-theme="dark"] .ib-modal-field select,
html[data-theme="dark"] .ib-modal-field input,
html[data-theme="dark"] .ib-modal-field textarea{
  background:#0f172a;
  border-color:#31456d;
  color:#e6edf7;
}
html[data-theme="dark"] .ib-modal-field select:focus,
html[data-theme="dark"] .ib-modal-field input:focus,
html[data-theme="dark"] .ib-modal-field textarea:focus,
html[data-theme="dark"] .ib-modal-field select:focus,
html[data-theme="dark"] .ib-modal-field input:focus,
html[data-theme="dark"] .ib-modal-field textarea:focus{
  border-color:#5b9df8;
  box-shadow:0 0 0 3px rgba(91,157,248,.22);
}
html[data-theme="dark"] .ib-modal-field select option,
html[data-theme="dark"] .ib-modal-field select option{background:#0f172a;color:#e6edf7}
html[data-theme="dark"] .ib-modal-field input::placeholder,
html[data-theme="dark"] .ib-modal-field textarea::placeholder,
html[data-theme="dark"] .ib-modal-field input::placeholder,
html[data-theme="dark"] .ib-modal-field textarea::placeholder{color:#7a8aa6}
html[data-theme="dark"] .ib-modal-ts,
html[data-theme="dark"] .ib-modal-ts{background:#16223c;border-color:#31456d;color:#a9cdfa}
html[data-theme="dark"] .ib-modal-ts small,
html[data-theme="dark"] .ib-modal-ts small{color:#9aabc4}
html[data-theme="dark"] .ib-modal-foot,
html[data-theme="dark"] .ib-modal-foot{border-top-color:#243352}
html[data-theme="dark"] .ib-modal-close,
html[data-theme="dark"] .ib-modal-close{background:#1b2a49;border-color:#31456d;color:#a9cdfa}
html[data-theme="dark"] .ib-modal-close:hover,
html[data-theme="dark"] .ib-modal-close:hover{background:#24365c;border-color:#4a6ea8;color:#fff}
html[data-theme="dark"] .ib-modal-msg,
html[data-theme="dark"] .ib-modal-msg{color:#9aabc4}
html[data-theme="dark"] .ib-modal-msg.is-ok,
html[data-theme="dark"] .ib-modal-msg.is-ok{color:#6ee7b7}
html[data-theme="dark"] .ib-modal-msg.is-err,
html[data-theme="dark"] .ib-modal-msg.is-err{color:#fca5a5}
@media (max-width:720px){
  .ib-modal-grid{grid-template-columns:1fr}
  .ib-modal-foot{flex-direction:column;align-items:stretch}
  .ib-modal-foot .inbound-btn{width:100%;justify-content:center}
  .ib-modal-msg{flex:1 1 auto;text-align:center}
}
/* ---------- pesan akses ditolak ---------- */
.ib-denied{
  display:none;max-width:620px;margin:40px auto;text-align:center;
  border:1px solid #f0c2c2;background:#fff6f6;border-radius:16px;padding:32px 26px;
}
.ib-denied.is-visible{display:block}
.ib-denied-icon{font-size:40px;line-height:1}
.ib-denied h2{margin:14px 0 8px;font-size:20px;color:#b42318}
.ib-denied p{margin:0 0 18px;color:#7a3b34;font-size:14px;line-height:1.7}
.ib-denied-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.ib-loading{display:inline-block;width:14px;height:14px;border:2px solid #c8dced;border-top-color:#0f4c81;border-radius:50%;animation:ib-spin .7s linear infinite;vertical-align:-2px}
@keyframes ib-spin{to{transform:rotate(360deg)}}
@media (max-width:720px){
  .inbound-head{flex-direction:column}
  .inbound-head-actions{width:100%}
  .inbound-head-actions .inbound-btn{flex:1;justify-content:center}
  .inbound-field input{min-width:0;width:100%}
  .inbound-field{flex:1 1 140px}
  .inbound-status{margin-left:0;flex-basis:100%}
  .inbound-table{min-width:720px}
  .inbound-card strong{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  .ib-loading{animation:none}
}
/* =========================================================
   TOTAL PROJECT - kartu ringkasan di Rekap Laporan Service Desk
   ------------------------------------------------------------
   Dulunya panel tersendiri dengan tiga kotak (Total Project,
   Perusahaan, Sudah Ada PM). Sekarang panel itu dihapus dan hanya
   tersisa satu kartu "Total Project" yang menyatu di dalam
   .rekap-cards sebelah Total Task.

   Datanya dari tabel sd_project, yang diimpor dari
   Executive_Summary.xlsx sheet SD_Project.
   ========================================================= */

/* ---------- kartu Total Project ----------
   Indigo dipakai supaya jelas berbeda dari kartu Task (tosca)
   dan kartu Tiket (navy), walau bentuknya sama persis. */
.rekap-total-project{
  border-color:#dcdcf6;
  background:linear-gradient(180deg,#ffffff 0%,#fbfbff 100%);
}
.rekap-total-project .rekap-total-icon{background:#eceefc}
.rekap-total-project .rekap-total-value{color:#3730a3}
.rekap-total-project.is-error .rekap-total-value{color:#b9b7d6}
/* ---------- baris status ringkasan project ---------- */
.rekap-project-status{
  display:block;
  margin:12px 0 0;
  color:#546e89;
  font-size:11.5px;
  font-weight:600;
  line-height:1.55;
}
/* =========================================================
   MODE MALAM - ditulis ulang di css/theme-core.css
   ========================================================= */:root{--admin-primary:#0f4c81;--admin-accent:#0ea5a4;--admin-ink:#102a43;--admin-muted:#627d98;--admin-line:#d9e2ec;--admin-bg:#f4f7fb}
body{background:var(--admin-bg);color:var(--admin-ink)}
.admin-shell{min-height:100vh;background:linear-gradient(135deg,#f7fbff 0%,#eef5fb 100%)}
.admin-topbar{background:linear-gradient(110deg,#0b2d4d,#0f4c81);color:#fff;padding:18px clamp(18px,5vw,72px);display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 8px 24px rgba(15,76,129,.16)}
.admin-brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none;font-size:18px;font-weight:800}
.admin-brand-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:rgba(255,255,255,.16);font-size:20px}
.admin-user{font-size:13px;color:#d9efff;margin-right:14px}
.admin-logout{border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.12);color:#fff;border-radius:9px;padding:10px 14px;cursor:pointer;font-weight:700}
.admin-logout:hover{background:#fff;color:var(--admin-primary)}
.admin-container{max-width:1120px;margin:0 auto;padding:42px 20px}
.admin-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}
.admin-kicker{color:var(--admin-accent);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.12em}
.admin-hero h1{font-size:clamp(28px,4vw,42px);margin:7px 0;color:var(--admin-ink);letter-spacing:-.04em}
.admin-hero p{margin:0;color:var(--admin-muted)}
.admin-status{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--admin-line);border-radius:999px;padding:10px 14px;font-size:13px;color:var(--admin-muted);box-shadow:0 4px 15px rgba(16,42,67,.06)}
.admin-status-dot{width:8px;height:8px;border-radius:50%;background:#f59e0b}
.admin-status.ok{color:#087f5b}
.admin-status.ok .admin-status-dot{background:#12b886}
.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}
.admin-card{background:#fff;border:1px solid var(--admin-line);border-radius:16px;padding:22px;box-shadow:0 8px 24px rgba(16,42,67,.06)}
.admin-stat-label{color:var(--admin-muted);font-size:13px;font-weight:700}
.admin-stat-value{font-size:32px;font-weight:800;color:var(--admin-primary);margin-top:9px}
.admin-stat-icon{float:right;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#e8f4ff;color:var(--admin-primary)}
.admin-stat-db{font-size:17px;margin-top:14px}
.admin-section{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.admin-section h2{margin:0;font-size:18px}
.admin-section p{margin:5px 0 0;color:var(--admin-muted);font-size:13px}
.admin-refresh{background:var(--admin-primary);border:0;color:#fff;border-radius:9px;padding:10px 15px;font-weight:700;cursor:pointer}
.admin-refresh:hover{background:#0b3b63}
.login-wrapper{background:radial-gradient(circle at 20% 20%,#dff4ff,transparent 34%),linear-gradient(135deg,#f6fbff,#eef4f8);padding:55px 20px}
.login-card{border:0;border-radius:22px;padding:38px;box-shadow:0 20px 60px rgba(15,76,129,.14)}
.login-title{color:var(--admin-primary);font-size:25px}
.login-subtitle{margin-bottom:30px}
.form-input{background:#f8fbfe;border-color:#c9d8e6}
.form-input:hover{border-color:#8db4d3}
.btn-submit{background:linear-gradient(110deg,#0f4c81,#0ea5a4);border-radius:10px;box-shadow:0 8px 18px rgba(15,76,129,.18)}
.login-error{display:none;color:#b42318;background:#fff1f0;border:1px solid #ffd5d2;padding:11px;border-radius:9px;margin-bottom:12px;font-size:13px}
.admin-error{display:none;color:#b42318;background:#fff1f0;border:1px solid #ffd5d2;border-radius:10px;padding:12px;margin-top:16px;font-size:13px}
.admin-odoo-card{margin-top:22px}
.admin-table-wrap{overflow-x:auto;border:1px solid var(--admin-line);border-radius:12px}
.admin-table{width:100%;border-collapse:collapse;min-width:620px;background:#fff}
.admin-table th,.admin-table td{padding:13px 15px;text-align:left;border-bottom:1px solid #edf2f7;font-size:13px}
.admin-table th{background:#f4f8fc;color:var(--admin-primary);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.admin-table tr:last-child td{border-bottom:0}
.admin-table tr:hover td{background:#f8fbfe}
.admin-table-empty{text-align:center!important;color:var(--admin-muted);padding:24px!important}
.admin-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.admin-export{text-decoration:none;display:inline-flex;align-items:center}
@media(max-width:700px){.admin-topbar{padding:14px 18px}.admin-user{display:none}.admin-container{padding:28px 15px}.admin-hero{display:block}.admin-status{margin-top:18px}.admin-stats{grid-template-columns:1fr}.login-card{padding:28px 22px}}
/* =========================================================
   Account chip di topbar dashboard
   (dimuat setelah responsive.css agar override menang)
   ========================================================= */

.dashboard-account{display:flex;align-items:center;gap:11px}
/* --- kartu user --- */
.dashboard-user{
  display:flex!important;
  align-items:center;
  gap:9px;
  margin:0!important;
  padding:5px 13px 5px 5px!important;
  border:1px solid #cbdff1;
  border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#f2f8fd);
  box-shadow:0 2px 6px rgba(16,42,67,.06);
  max-width:none!important;
  overflow:visible!important;
  text-overflow:clip!important;
  white-space:nowrap!important;
  font-size:13px!important;
  color:#0b2c4a;
  transition:border-color .2s,box-shadow .2s;
}
.dashboard-user:hover{border-color:#9fc4e4;box-shadow:0 5px 14px rgba(16,42,67,.10)}
/* --- avatar + indikator koneksi --- */
.dashboard-user-avatar{
  position:relative;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  width:34px;height:34px;
  border-radius:50%;
  background:linear-gradient(135deg,#0f4c81 0%,#145da0 55%,#0e7490 100%);
  color:#fff;
  font-size:15px;font-weight:800;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.20);
}
.dashboard-user-avatar::after{
  content:'';
  position:absolute;right:-1px;bottom:-1px;
  width:10px;height:10px;
  border-radius:50%;
  background:#12b76a;
  border:2px solid #fff;
}
.dashboard-account.is-offline .dashboard-user-avatar::after{background:#f79009}
/* --- nama + role --- */
.dashboard-user-meta{display:flex;flex-direction:column;align-items:flex-start;min-width:0;line-height:1.15}
.dashboard-user-name{
  max-width:215px;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font-size:12.5px;font-weight:800;color:#0b2c4a;
}
.dashboard-user-role{
  margin-top:3px;
  padding:2px 7px;
  border-radius:999px;
  background:#0e7490;
  color:#fff;
  font-size:9.5px;font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
/* --- pemisah --- */
.dashboard-account-sep{flex:0 0 auto;width:1px;height:26px;background:linear-gradient(180deg,#e4edf6,#ccdfef)}
/* --- tombol keluar --- */
.dashboard-logout{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  height:38px;padding:0 15px!important;
  border:1px solid #bfdbfe!important;
  border-radius:999px;
  background:#eff6ff;
  color:#145da0;
  font-size:12.5px!important;font-weight:800;
  letter-spacing:.01em;
  transition:transform .2s,background .2s,color .2s,border-color .2s,box-shadow .2s;
}
.dashboard-logout-icon{font-size:13px;line-height:1;transform:translateY(-1px)}
.dashboard-logout:hover{background:#145da0!important;color:#fff!important;border-color:#145da0!important;transform:translateY(-1px);box-shadow:0 6px 14px rgba(15,76,129,.22)}
.dashboard-logout:active{transform:translateY(0)}
/* ---------------- responsive ---------------- */
@media(max-width:768px){
  .dashboard-page .dashboard-account{gap:9px}
  .dashboard-page .dashboard-user{max-width:200px!important;padding:4px 11px 4px 4px!important}
  .dashboard-page .dashboard-user-avatar{width:30px;height:30px;font-size:13.5px}
  .dashboard-page .dashboard-user-name{max-width:120px;font-size:11.5px}
  .dashboard-page .dashboard-user-role{font-size:9px;padding:2px 6px;letter-spacing:.05em}
  .dashboard-page .dashboard-account-sep{height:22px}
  .dashboard-page .dashboard-logout{height:34px;padding:0 12px!important;font-size:12px!important}
}
@media(max-width:560px){
  .dashboard-page .dashboard-user{display:flex!important;max-width:none!important;padding:3px!important}
  .dashboard-page .dashboard-user-meta{display:none}
  .dashboard-page .dashboard-user-avatar{width:32px;height:32px;font-size:14px}
  .dashboard-page .dashboard-account-sep{height:24px}
  .dashboard-page .dashboard-logout{padding:0 12px!important}
}
/* Foto profil pada avatar sidebar/topbar */
.sb-foot-avatar.has-photo,
.tb-avatar.has-photo,
.dashboard-user-avatar.has-photo{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  color:transparent;
  text-shadow:none;
}
/* ============================================================
   Ringkasan Pengumuman — panel setelah carousel
   Menyesuaikan tema terang/gelap lewat variabel --sd-*.
   ============================================================ */

.ann-summary-panel {
  margin-top: 16px;
  padding: 18px 20px 20px;
  border: 1px solid var(--sd-line);
  border-radius: 18px;
  background: var(--sd-panel);
  box-shadow: var(--sd-shadow);
  box-sizing: border-box;
}
.ann-summary-panel *,
.ann-summary-panel *::before,
.ann-summary-panel *::after {
  box-sizing: border-box;
}
/* ---------- kepala panel ---------- */
.ann-sum-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.ann-sum-ikon {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--sd-line);
  border-radius: 13px;
  background: var(--sd-chip);
  color: var(--sd-chip-text);
  font-size: 20px;
  line-height: 1;
}
.ann-sum-head h2 {
  margin: 0;
  color: var(--sd-text);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.ann-sum-head p {
  margin: 3px 0 0;
  color: var(--sd-text-soft);
  font-size: 13px;
  line-height: 1.4;
}
/* ---------- tata letak: 3 kotak atas + 1 kotak bawah ---------- */
.ann-sum-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "total senders types"
    "chart chart   chart";
  gap: 16px;
  align-items: stretch;
}
.ann-sum-total    { grid-area: total; }
.ann-sum-senders  { grid-area: senders; }
.ann-sum-types    { grid-area: types; }
.ann-sum-chart    { grid-area: chart; }
/* ---------- kartu ---------- */
.ann-sum-total,
.ann-sum-senders,
.ann-sum-types,
.ann-sum-chart {
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--sd-line);
  border-radius: 16px;
  background: var(--sd-panel);
}
.ann-sum-senders,
.ann-sum-types,
.ann-sum-chart {
  display: flex;
  flex-direction: column;
}
/* ---------- kepala kartu (ikon + judul) ---------- */
.ann-sum-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.ann-sum-card-ikon {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.ann-sum-card-ikon svg {
  width: 18px;
  height: 18px;
  display: block;
}
.ikon-biru  { background: #e3f0fd; color: #1573c4; }
.ikon-hijau { background: #e3f7ec; color: #16a34a; }
.ikon-ungu  { background: #efe6fb; color: #7c3aed; }
html[data-theme="dark"] .ikon-biru  { background: rgba(21, 115, 196, .18); color: #6cb6f5; }
html[data-theme="dark"] .ikon-hijau { background: rgba(22, 163, 74, .18);  color: #4ade80; }
html[data-theme="dark"] .ikon-ungu  { background: rgba(124, 58, 237, .20); color: #a78bfa; }
.ann-sum-card-head h3,
.ann-sum-total-label {
  margin: 0;
  color: var(--sd-text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}
/* ---------- kartu total ---------- */
.ann-sum-total {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* Gelombang halus di dasar kartu, seperti sorotan air. */
.ann-sum-total::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34c40-24 80-24 120 0s80 24 120 0 80-24 160 0v26H0z' fill='%23d8eafd'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat;
  pointer-events: none;
}
html[data-theme="dark"] .ann-sum-total::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 34c40-24 80-24 120 0s80 24 120 0 80-24 160 0v26H0z' fill='%231e3358'/%3E%3C/svg%3E");
  opacity: .85;
}
.ann-sum-total > * {
  position: relative;
  z-index: 1;
}
.ann-sum-total-value {
  display: block;
  margin-top: 2px;
  color: var(--sd-text);
  font-size: 72px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
/* ---------- pengirim terbanyak ---------- */
.ann-sum-sender-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ann-sum-sender-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--sd-text);
  font-size: 13px;
  font-weight: 600;
}
.ann-sum-sender-list li:nth-child(3n+1) { background: #e8f1fd; }
.ann-sum-sender-list li:nth-child(3n+2) { background: #e6f7ec; }
.ann-sum-sender-list li:nth-child(3n+3) { background: #fdf3e0; }
html[data-theme="dark"] .ann-sum-sender-list li:nth-child(3n+1) { background: rgba(21, 115, 196, .16); }
html[data-theme="dark"] .ann-sum-sender-list li:nth-child(3n+2) { background: rgba(22, 163, 74, .16); }
html[data-theme="dark"] .ann-sum-sender-list li:nth-child(3n+3) { background: rgba(217, 119, 6, .16); }
.ann-sum-sender-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ann-sum-sender-count {
  flex: none;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ann-sum-sender-list li:nth-child(3n+1) .ann-sum-sender-count { color: #1573c4; }
.ann-sum-sender-list li:nth-child(3n+2) .ann-sum-sender-count { color: #16a34a; }
.ann-sum-sender-list li:nth-child(3n+3) .ann-sum-sender-count { color: #d97706; }
html[data-theme="dark"] .ann-sum-sender-list li:nth-child(3n+1) .ann-sum-sender-count { color: #6cb6f5; }
html[data-theme="dark"] .ann-sum-sender-list li:nth-child(3n+2) .ann-sum-sender-count { color: #4ade80; }
html[data-theme="dark"] .ann-sum-sender-list li:nth-child(3n+3) .ann-sum-sender-count { color: #fbbf24; }
/* ---------- jenis pengumuman ---------- */
.ann-sum-type-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ann-sum-type-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
}
.ann-sum-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}
.ann-sum-type-badge.an { background: #e3f0fd; color: #1573c4; }
.ann-sum-type-badge.up { background: #fdf3e0; color: #d97706; }
.ann-sum-type-badge.re { background: #fde8e8; color: #dc2626; }
.ann-sum-type-badge.in { background: #efe6fb; color: #7c3aed; }
html[data-theme="dark"] .ann-sum-type-badge.an { background: rgba(21, 115, 196, .18); color: #6cb6f5; }
html[data-theme="dark"] .ann-sum-type-badge.up { background: rgba(217, 119, 6, .18);  color: #fbbf24; }
html[data-theme="dark"] .ann-sum-type-badge.re { background: rgba(220, 38, 38, .18);   color: #fca5a5; }
html[data-theme="dark"] .ann-sum-type-badge.in { background: rgba(124, 58, 237, .20);  color: #a78bfa; }
.ann-sum-type-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--sd-line-soft);
}
.ann-sum-type-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.ann-sum-type-row.is-an .ann-sum-type-track i { background: linear-gradient(90deg, #1573c4, #63b3ed); }
.ann-sum-type-row.is-up .ann-sum-type-track i { background: linear-gradient(90deg, #d97706, #fbbf24); }
.ann-sum-type-row.is-re .ann-sum-type-track i { background: linear-gradient(90deg, #dc2626, #f87171); }
.ann-sum-type-row.is-in .ann-sum-type-track i { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.ann-sum-type-count {
  color: var(--sd-text);
  font-size: 12.5px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
/* ---------- grafik per bulan ---------- */
.ann-sum-chart h3 {
  margin: 0 0 12px;
  color: var(--sd-text-faint);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.ann-sum-bars {
  display: flex;
  align-items: stretch;
  height: 230px;
  margin-top: 4px;
}
.ann-sum-bar {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 8px;
}
.ann-sum-bar-val {
  margin-bottom: 8px;
  color: var(--sd-accent);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.ann-sum-bar-track {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  border-bottom: 1px solid var(--sd-line);
}
.ann-sum-bar-track i {
  display: block;
  width: 66%;
  max-width: 46px;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(180deg, #4fc3f7, #0f4c81);
}
html[data-theme="dark"] .ann-sum-bar-track i {
  background: linear-gradient(180deg, #7dd3fc, #1d4ed8);
}
.ann-sum-bar-lab {
  margin-top: 8px;
  color: var(--sd-text-faint);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}
/* ---------- keadaan kosong ---------- */
.ann-sum-kosong {
  padding: 8px 0;
  color: var(--sd-text-faint);
  font-size: 12.5px;
  list-style: none;
}
.ann-sum-sender-list li.ann-sum-kosong,
.ann-sum-type-list li.ann-sum-kosong {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  font-weight: 400;
}
/* ---------- responsif ---------- */
@media (max-width: 1024px) {
  .ann-sum-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "total senders"
      "types types"
      "chart chart";
    gap: 14px;
  }
}
@media (max-width: 760px) {
  .ann-sum-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "total"
      "senders"
      "types"
      "chart";
    gap: 12px;
  }

  .ann-sum-bars {
    height: 200px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .ann-sum-bar {
    min-width: 32px;
    padding: 0 2px;
  }

  .ann-sum-bar-val { font-size: 11px; }

  .ann-sum-bar-lab {
    font-size: 9px;
    line-height: 1.15;
    white-space: normal;
  }
}
@media (max-width: 640px) {
  .ann-summary-panel { padding: 14px; }

  .ann-sum-head h2 { font-size: 18px; }
  .ann-sum-head p  { font-size: 11.5px; }

  .ann-sum-total,
  .ann-sum-senders,
  .ann-sum-types { padding: 14px; }

  .ann-sum-chart { padding: 14px 12px 12px; }

  .ann-sum-total-value { font-size: 60px; }

  .ann-sum-type-row {
    grid-template-columns: 96px minmax(0, 1fr) 26px;
    gap: 8px;
  }

  .ann-sum-type-badge {
    padding: 3px 7px;
    font-size: 9px;
  }
}
.login-page{background:radial-gradient(circle at 20% 20%,#dff4ff,transparent 34%),linear-gradient(135deg,#f6fbff,#eef4f8)}
.login-page .login-wrapper{padding:55px 20px}
.login-page .login-card{border:0;border-radius:22px;padding:38px;box-shadow:0 20px 60px #0f4c8124}
.login-page .login-title{color:#0f4c81;font-size:25px}
.login-page .login-subtitle{margin-bottom:30px}
.login-page .form-input{background:#f8fbfe;border-color:#c9d8e6}
.login-page .form-input:hover{border-color:#8db4d3}
.login-page .btn-submit{background:linear-gradient(110deg,#0f4c81,#0ea5a4);border-radius:10px;box-shadow:0 8px 18px #0f4c8130}
.login-error{display:none;margin-bottom:12px;padding:11px;border:1px solid #ffd5d2;border-radius:9px;background:#fff1f0;color:#b42318;font-size:13px}
@media(max-width:700px){.login-page .login-card{padding:28px 22px}}
.login-alt{margin:18px 0 0;text-align:center;color:var(--sd-text-soft);font-size:13px}
.login-alt a{color:var(--sd-accent);font-weight:700;text-decoration:none}
.login-alt a:hover{text-decoration:underline}
.login-note{margin:16px 0 0;padding:12px 14px;border:1px solid var(--sd-line);border-radius:10px;background:var(--sd-chip);color:var(--sd-text-soft);font-size:12.5px;line-height:1.55}
.login-note b{color:var(--sd-text)}
:root{--theme-navy:#082f5b;--theme-navy-2:#0b3d73;--theme-blue:#145da0;--theme-ink:#102a43;--theme-muted:#627d98;--theme-line:#d9e2ec;--theme-bg:#f5f8fc;--theme-white:#fff}
body{background:var(--theme-bg);color:var(--theme-ink)}
header{background:var(--theme-white);border-bottom:1px solid var(--theme-line);box-shadow:0 2px 10px rgba(8,47,91,.06)}
.logo-area{color:var(--theme-navy)}
.logo-icon{background:#e7f1fb;color:var(--theme-navy)}
.nav-menu a,.dropbtn{color:#486581}
.nav-menu a:hover,.nav-menu a.active,.dropbtn:hover{color:var(--theme-navy)}
.dropdown-content{border-color:var(--theme-line);box-shadow:0 12px 28px rgba(8,47,91,.12)}
.dropdown-content a:hover{background:#eef5fb;color:var(--theme-navy)}
.status-online{color:var(--theme-navy);background:#eef5fb;border-color:#c9def2}
.status-dot{background:var(--theme-blue);box-shadow:0 0 0 2px #bdd5eb}
.sub-header{background:var(--theme-navy);border-bottom:0}
.shift-badge{background:var(--theme-blue)}
.container{max-width:1180px}
.card-section,.sheet-wrapper,.manual-card,.app-box,.shift-card{border-color:var(--theme-line);box-shadow:0 8px 22px rgba(8,47,91,.06)}
.section-title,.hero-banner h1{color:var(--theme-navy)}
.hero-banner{background:linear-gradient(135deg,var(--theme-navy),var(--theme-navy-2))}
.hero-divider{background:#fff}
.app-box:hover{border-color:#8bb9df;background:#f4f9fd}
.app-icon{background:#e7f1fb;color:var(--theme-navy)}
.btn-open-pdf,.btn-external{background:var(--theme-navy)!important}
.btn-open-pdf:hover,.btn-external:hover{background:var(--theme-blue)!important}
.manual-category{color:var(--theme-navy)!important;border-color:var(--theme-blue)!important}
.nato-table th{background:var(--theme-navy)!important}
.char-badge{background:#e7f1fb;color:var(--theme-navy)}
footer{background:#fff;border-top:1px solid var(--theme-line);color:var(--theme-muted)}
.login-page .login-card{border:1px solid var(--theme-line);background:#fff;box-shadow:0 18px 48px rgba(8,47,91,.12)}
.login-page .login-title{color:var(--theme-navy)}
.login-page .btn-submit{background:var(--theme-navy);box-shadow:0 8px 18px rgba(8,47,91,.18)}
.login-page .btn-submit:hover{background:var(--theme-blue)}
.dashboard-page{--navy:var(--theme-navy);--blue:var(--theme-blue);--teal:var(--theme-navy-2);--ink:var(--theme-ink);--muted:var(--theme-muted);--line:var(--theme-line);--bg:var(--theme-bg)}
.dashboard-button{background:var(--theme-navy)}
.dashboard-button:hover{background:var(--theme-blue)}
.dashboard-stat-icon{background:#e7f1fb}
.dashboard-value{color:var(--theme-navy)}
.dashboard-table th{color:var(--theme-navy);background:#eef5fb}
@media(max-width:700px){header{box-shadow:0 2px 8px rgba(8,47,91,.08)}}
@media(max-width:768px){
  header{padding:13px 16px;gap:12px;align-items:flex-start;position:relative}.logo-area{font-size:16px}.nav-menu{width:100%;display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;font-size:13px}.nav-menu a,.dropbtn{font-size:13px}.status-online{font-size:11px;padding:5px 9px}.dropdown-content{left:0;top:100%;min-width:190px}.sub-header{padding:10px 16px;gap:8px;font-size:12px}.container{width:100%;padding:24px 14px;margin:0 auto}.grid-two{grid-template-columns:1fr;gap:0}.grid-tupoksi,.app-grid{grid-template-columns:1fr}.card-section,.sheet-wrapper{padding:20px!important;margin-bottom:18px!important;border-radius:14px}.hero-banner{padding:28px 22px!important;border-radius:15px}.hero-banner h1{font-size:27px}.manual-grid{grid-template-columns:1fr!important;gap:14px!important}.manual-card{min-height:150px}.btn-action-row{display:block!important}.btn-external{margin-top:14px}.iframe-container{height:62vh!important}.nato-table{font-size:12px}.nato-table th,.nato-table td{padding:10px 8px}.nato-table th:nth-child(3),.nato-table td:nth-child(3){display:none}.login-wrapper{padding:30px 15px!important}.login-card{padding:26px 20px!important}.login-page .nav-menu .status-online{display:none}.dashboard-main{width:100%;padding-left:14px!important;padding-right:14px!important}.dashboard-table-wrap{max-width:100%;-webkit-overflow-scrolling:touch}.dashboard-history{align-items:stretch!important;flex-direction:column!important}.dashboard-history .dashboard-select,.dashboard-history .dashboard-input,.dashboard-history .dashboard-button{width:100%!important}.dashboard-user-form{grid-template-columns:1fr!important}.dashboard-user-form .dashboard-button{width:100%!important}.dashboard-access-row{grid-template-columns:1fr!important;gap:5px!important}.dashboard-user-actions{flex-wrap:wrap}.dashboard-small-button{min-width:110px}
}
@media(min-width:769px){.nav-menu{align-items:center}.container{min-height:calc(100vh - 150px)}.manual-grid{align-items:stretch}.manual-card{min-height:180px}}
.home-page{background:#f5f8fc;color:#102a43}
.home-page .container{max-width:1180px;padding:42px 24px 60px}
.home-page .hero-banner{padding:48px;border-radius:20px;background:linear-gradient(135deg,#082f5b,#0f4c81);box-shadow:0 14px 32px rgba(8,47,91,.16)}
.home-page .hero-banner h1{color:#fff;font-size:clamp(30px,5vw,48px);letter-spacing:-.04em}
.home-page .hero-banner .quote{color:#d9ecfb}
.home-page .hero-banner .desc{color:#e6f1f9}
.home-page .hero-divider{background:#fff}
.home-page .card-section{border-radius:16px;box-shadow:0 8px 24px rgba(16,42,67,.06)}
.home-page .grid-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}
.home-page .section-title{color:#082f5b}
.home-page .section-title a{font-size:12px;color:#0f4c81;text-decoration:none}
.home-page .section-title a:hover{text-decoration:underline}
.rekap-card,.schedule-card{min-width:0}
.rekap-sync-status{display:block;margin:-2px 0 12px;color:#627d98;font-size:11px;font-weight:600}
.rekap-list{display:flex;flex-direction:column;gap:0}
.home-page .rekap-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-bottom:1px solid #e4edf5;color:#29445d}
.home-page .rekap-item:last-child{border-bottom:0}
.home-page .rekap-item span{min-width:0}
.home-page .rekap-item strong{flex:0 0 auto;color:#0f4c81;font-size:13px;white-space:nowrap}
.home-page .shift-card{padding:16px;border-radius:11px}
.home-page .shift-badge-run{background:#0f4c81}
.home-page .app-box{border-radius:14px;background:#fff;padding:20px}
.home-page .app-box:hover{border-color:#82add0;background:#f4f9fd;transform:translateY(-3px)}
.home-page .app-icon{background:#e7f1fb;color:#0f4c81}
.home-page .app-name{color:#102a43}
.home-page .app-url{color:#627d98}
.home-page .grid-tupoksi{grid-template-columns:minmax(0,1fr);gap:12px}
.home-page .tupoksi-item{display:flex;gap:12px;align-items:flex-start;padding:15px 18px}
.home-page .tupoksi-item::before{content:'';flex:0 0 auto;width:12px;height:12px;border-radius:50%;background:#0f4c81;margin-top:5px}
@media(max-width:700px){.home-page .container{padding:24px 14px 42px}.home-page .hero-banner{padding:30px 24px}.home-page .grid-two{grid-template-columns:1fr;gap:18px}.home-page .card-section{margin-bottom:0!important}.home-page .rekap-item{align-items:flex-start;flex-direction:column;gap:5px}.home-page .rekap-item strong{font-size:12px}}
@media(max-width:1024px){.home-page .grid-two{grid-template-columns:minmax(0,1fr);gap:18px}.home-page .app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* ===== Kartu jadwal shift ===== */
/* =========================================================
   Kartu jadwal shift Service Desk.
   Ditambahkan ke home.css yang sudah ada (ditempel di akhir).
   ========================================================= */

/* .shift-card memakai float untuk lencana; kembalikan ke alur normal
   supaya judul/jam/catatan bisa ditumpuk rapi. */
.home-page .shift-card{position:relative;padding:14px 16px 13px;border-radius:11px;overflow:hidden}
.home-page .shift-card-title{font-size:14.5px;font-weight:800;color:#102a43;line-height:1.3}
.home-page .shift-card-time{margin-top:3px;font-size:13px;font-weight:700;color:#486581;font-variant-numeric:tabular-nums}
.home-page .shift-card-time small{font-size:11px;font-weight:600;color:#829ab1;font-style:normal}
.home-page .shift-card-note{margin-top:7px;font-size:11.5px;font-weight:600;color:#829ab1;line-height:1.45}
.home-page .shift-card-note.is-active{color:#0f4c81}
.home-page .shift-card.active{background:#eef5fb;border-color:#8bb9df;box-shadow:0 5px 14px rgba(15,76,129,.1)}
/* Lencana "BERJALAN" tidak lagi di-float supaya tidak menimpa isi. */
.home-page .shift-badge-run{position:absolute;top:12px;right:14px;float:none;margin:0}
/* Tanda aktif: garis warna di sisi kiri kartu. */
.home-page .shift-card::before{
  content:'';position:absolute;left:0;top:0;bottom:0;width:4px;
  background:transparent;transition:background .18s ease;
}
.home-page .shift-card.active::before{background:#0f4c81}
/* Lencana di kepala halaman.
   Catatan: jangan tambahkan "::after{content:' (WIB)'}" di sini.
   Teks lencana sudah memuat WIB sendiri ("Shift 2 (14.00 - 23.00 WIB)"),
   sehingga aturan ::after membuat WIB tampil dua kali. */
.home-page .shift-badge{display:inline-flex;align-items:center;min-height:22px}
@media(max-width:700px){
  .home-page .shift-card-note{font-size:11px}
}
/* ============================================================
   Form Daftar Admin langsung di halaman utama (index)
   ============================================================ */
.home-signup-section {
  scroll-margin-top: 88px;
  margin-bottom: 25px;
}
.home-signup-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 34px;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe9f3;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(8, 47, 91, 0.08);
}
.home-signup-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--theme-navy, #082f5b), var(--theme-blue, #145da0));
}
.home-signup-intro {
  min-width: 0;
}
.home-signup-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eaf4fd;
  color: #0f4c81;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.home-signup-intro h2 {
  margin: 14px 0 10px;
  color: #082f5b;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.home-signup-intro > p {
  margin: 0;
  color: #526b84;
  font-size: 14.5px;
  line-height: 1.7;
}
.home-signup-intro > p b {
  color: #0f4c81;
}
.home-signup-points {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.home-signup-points li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #29445d;
  font-size: 13.5px;
  line-height: 1.5;
}
.home-signup-points li::before {
  content: "✓";
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #18794e;
  font-size: 11px;
  font-weight: 900;
}
.home-signup-login {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: #627d98;
}
.home-signup-login a {
  color: #0f4c81;
  font-weight: 800;
  text-decoration: none;
}
.home-signup-login a:hover {
  text-decoration: underline;
}
.home-signup-form {
  min-width: 0;
  background: #f7fbff;
  border: 1px solid #e2edf7;
  border-radius: 16px;
  padding: 24px;
}
.home-signup-field {
  min-width: 0;
}
.home-signup-field label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
}
.home-signup-field input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #cbd9e6;
  border-radius: 10px;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.home-signup-field input::placeholder {
  color: #8aa0b5;
}
.home-signup-field input:focus {
  border-color: #2f80c9;
  box-shadow: 0 0 0 3px rgba(47, 128, 201, 0.14);
}
.home-signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.home-signup-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 9px;
  background: #fdecec;
  border: 1px solid #f6c7c7;
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
}
.home-signup-message[hidden] {
  display: none;
}
.home-signup-submit {
  width: 100%;
  margin-top: 14px;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--theme-navy, #082f5b), var(--theme-blue, #145da0));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(8, 47, 91, 0.2);
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.home-signup-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(8, 47, 91, 0.25);
}
.home-signup-submit:disabled {
  opacity: 0.68;
  cursor: wait;
  transform: none;
  box-shadow: none;
}
.home-signup-note {
  margin: 10px 0 0;
  text-align: center;
  color: #7b8fa5;
  font-size: 11.5px;
  line-height: 1.55;
}
.home-signup-alt {
  margin: 8px 0 0;
  text-align: center;
  color: #627d98;
  font-size: 12.5px;
}
.home-signup-alt a {
  color: #0f4c81;
  font-weight: 700;
  text-decoration: none;
}
.home-signup-alt a:hover {
  text-decoration: underline;
}
/* Mode gelap */
html[data-theme="dark"] .home-signup-card {
  background: #122039;
  border-color: #223b5a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}
html[data-theme="dark"] .home-signup-eyebrow {
  background: #17365a;
  color: #9ec8f0;
}
html[data-theme="dark"] .home-signup-intro h2 {
  color: #e6f1fb;
}
html[data-theme="dark"] .home-signup-intro > p {
  color: #a9bed4;
}
html[data-theme="dark"] .home-signup-intro > p b {
  color: #8dc2f5;
}
html[data-theme="dark"] .home-signup-points li {
  color: #cfe0f0;
}
html[data-theme="dark"] .home-signup-points li::before {
  background: #173a2a;
  color: #7ee2a8;
}
html[data-theme="dark"] .home-signup-login {
  color: #8fa8c2;
}
html[data-theme="dark"] .home-signup-login a {
  color: #8dc2f5;
}
html[data-theme="dark"] .home-signup-form {
  background: #0f1b2e;
  border-color: #223b5a;
}
html[data-theme="dark"] .home-signup-field label {
  color: #cbd9e6;
}
html[data-theme="dark"] .home-signup-field input {
  background: #12233c;
  border-color: #2b4664;
  color: #e6f1fb;
}
html[data-theme="dark"] .home-signup-field input::placeholder {
  color: #7f98b2;
}
html[data-theme="dark"] .home-signup-field input:focus {
  border-color: #5b9bd5;
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.18);
}
html[data-theme="dark"] .home-signup-message {
  background: #3a1f24;
  border-color: #6b3139;
  color: #ffb4ab;
}
html[data-theme="dark"] .home-signup-note {
  color: #8fa8c2;
}
html[data-theme="dark"] .home-signup-alt {
  color: #a9bed4;
}
html[data-theme="dark"] .home-signup-alt a {
  color: #8dc2f5;
}
/* Responsif */
@media (max-width: 900px) {
  .home-signup-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }
}
@media (max-width: 700px) {
  .home-signup-section {
    margin-bottom: 18px;
    scroll-margin-top: 74px;
  }

  .home-signup-card {
    padding: 20px;
    border-radius: 16px;
  }

  .home-signup-intro h2 {
    margin-top: 12px;
    font-size: 25px;
  }

  .home-signup-intro > p {
    font-size: 13.5px;
  }

  .home-signup-points li {
    font-size: 12.5px;
  }

  .home-signup-form {
    padding: 18px;
    border-radius: 14px;
  }

  .home-signup-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* 16px mencegah browser HP memperbesar halaman saat input difokuskan. */
  .home-signup-field input {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  .home-signup-card {
    padding: 16px;
  }

  .home-signup-form {
    padding: 15px;
  }

  .home-signup-eyebrow {
    font-size: 10px;
  }
}
.announcement-wrapper{padding-bottom:18px}
.announcement-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.announcement-head p{margin:8px 0 0;color:#627d98}
.announcement-readonly{display:inline-flex;align-items:center;padding:9px 12px;border:1px solid #c8dced;border-radius:999px;background:#f4f9fd;color:#0f4c81;font-size:12px;font-weight:700;white-space:nowrap}
.announcement-status{margin:18px 0 14px;color:#627d98;font-size:13px;font-weight:600}
.announcement-table-wrap{width:100%;overflow:auto;max-height:70vh;border:1px solid #d9e2ec;border-radius:12px;background:#fff;-webkit-overflow-scrolling:touch}
.announcement-table{width:100%;min-width:820px;border-collapse:separate;border-spacing:0;background:#fff}
.announcement-table th,.announcement-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #edf2f7;font-size:13px;vertical-align:top}
.announcement-table th{position:sticky;top:0;z-index:1;background:#f4f8fc;color:#0f4c81;font-size:11px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.announcement-table td{color:#334e68}
.announcement-table tr:last-child td{border-bottom:0}
.announcement-table tbody tr:nth-child(even) td{background:#fafcfe}
.announcement-table tbody tr:hover td{background:#f2f8fd}
.announcement-table .col-no{width:56px;color:#829ab1;font-weight:700;text-align:center}
.announcement-table th.col-no{text-align:center;color:#0f4c81}
.announcement-table .cell-date{white-space:nowrap;color:#0f4c81;font-weight:700}
.announcement-table .cell-sender{white-space:nowrap;color:#486581}
.announcement-table .cell-subject{min-width:240px;color:#102a43;font-weight:600}
.announcement-table .col-pdf{width:170px;white-space:nowrap}
.announcement-empty{color:#829ab1!important;text-align:center!important;padding:26px 14px!important;font-weight:600}
.announcement-pdf{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:8px;background:#0f4c81;color:#fff;font-size:12px;font-weight:700;text-decoration:none;white-space:nowrap;transition:background .2s}
.announcement-pdf:hover{background:#082f5b}
.announcement-pdf:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
@media(max-width:700px){
  .announcement-head{flex-direction:column}
  .announcement-readonly{white-space:normal}
  .announcement-table-wrap{max-height:none}
  .announcement-table{min-width:720px}
  .announcement-table th,.announcement-table td{padding:10px 11px;font-size:12px}
  .announcement-table .cell-subject{min-width:200px}
}
/* ============================================================
   Perbaikan tampilan /announcement pada layar sempit
   ------------------------------------------------------------
   Dua masalah yang ditemukan saat uji 390px & 320px:
     1. Judul panjang tidak membungkus -> luber 26-42px
     2. Baris meta dipotong elips -> pengirim tak terbaca
   ------------------------------------------------------------ */
.ins-item-title{
  overflow-wrap:anywhere;
  word-break:break-word;
}
.ins-item-body{min-width:0}
.ins-date{min-width:0}
/* Meta boleh turun baris, bukan dipotong elips. */
.ins-item-meta{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  line-height:1.45;
}
@media(max-width:640px){
  /* Grid carousel: minmax 255px memaksa kolom melebar di HP. */
  .ins-grid{grid-template-columns:1fr}
  .ins-item{flex-wrap:wrap;gap:8px}
  .ins-date{
    width:auto;flex:none;
    display:inline-block;padding:4px 9px;
  }
  /* Judul & pengirim turun ke baris penuh, tombol unduh tetap rata kanan. */
  .ins-item-body{flex:1 1 100%;min-width:0}
  .ins-dl{margin-left:auto}
}
@media(max-width:380px){
  .ins-item-title{font-size:12.5px}
  .ins-item-meta{font-size:11px}
  .ins-card-top{margin-bottom:2px}
}
/* ============================================================
   DAFTAR DIGULIR: 5 PENGUMUMAN DULU
   ------------------------------------------------------------
   Sebelumnya 111 pengumuman dirender sekaligus sehingga halaman
   sangat panjang. Sekarang 5 baris dulu yang tampil; setiap kali
   daftar digulir, 5 baris berikutnya menyusul. Tidak ada tombol
   tambahan - cukup menggulir.
   ============================================================ */

/* Ruang kosong di bawah daftar dipakai sebagai "tuas" gulir: walau
   isinya baru 5 baris, kotaknya tetap bisa digulir sehingga 5 data
   berikutnya bisa dimuat. */
.ins-list-full{padding-bottom:8px}
.ins-list-full.is-gulir{height:440px;padding-bottom:56px}
/* Petunjuk jumlah: sedikit lebih jelas soal cara membuka daftar. */
.ins-list-hint{margin-top:2px}
/* Tata letak bersama halaman dokumen */
.document-page{background:#f4f7fb}
.document-page .container{max-width:1120px;padding:42px 20px;margin:0 auto}
.document-page .card-section,.document-page .sheet-wrapper{background:#fff;border:1px solid #d9e2ec;border-radius:18px;padding:30px;box-shadow:0 10px 28px rgba(16,42,67,.06)}
.document-page .section-title{color:#102a43;font-size:21px;margin-bottom:8px}
.document-page .page-description{color:#627d98;font-size:14px;line-height:1.7;margin:0 0 24px}
.document-page .manual-category{color:#0f4c81;border-left:4px solid #0ea5a4;margin-top:30px;padding-left:13px}
.document-page .manual-grid{gap:18px}
.document-page .manual-card{border-radius:14px;padding:20px;border-color:#d9e2ec;box-shadow:0 5px 14px rgba(16,42,67,.04)}
.document-page .manual-card:hover{border-color:#7fb3d5;box-shadow:0 10px 22px rgba(15,76,129,.1)}
.document-page .btn-open-pdf,.document-page .btn-external{background:linear-gradient(110deg,#0f4c81,#0ea5a4);border-radius:9px}
.document-page .btn-action-row{padding-bottom:18px;border-bottom:1px solid #edf2f7}
.document-page .iframe-container{height:72vh;border-radius:12px;margin-top:22px}
.nato-table{width:100%;border-collapse:separate;border-spacing:0;margin-top:22px;background:#fff;border:1px solid #d9e2ec;border-radius:12px;overflow:hidden;box-shadow:0 5px 16px rgba(16,42,67,.05)}
.nato-table th,.nato-table td{padding:14px 16px;text-align:left;border-bottom:1px solid #edf2f7;font-size:14px}
.nato-table th{background:#0f4c81;color:#fff;font-weight:700}
.nato-table tr:last-child td{border-bottom:0}
.nato-table tr:hover td{background:#f4f9fd}
.char-badge{background:#e8f4ff;color:#0f4c81;font-weight:800;padding:5px 9px;border-radius:7px;display:inline-block;min-width:28px;text-align:center}
@media(max-width:700px){.document-page .container{padding:24px 14px}.document-page .card-section,.document-page .sheet-wrapper{padding:20px;border-radius:14px}.document-page .btn-action-row{display:block}.document-page .btn-external{margin-top:16px}.document-page .iframe-container{height:65vh}.nato-table th,.nato-table td{padding:11px 9px;font-size:12px}}
/* ----------------------------------------------------------------
   Halaman Alfabet Fonetik NATO: judul kecil tiap tabel + kotak catatan.
   Memakai token --sd-* supaya otomatis ikut mode malam.
   ---------------------------------------------------------------- */
.nato-sub{margin:26px 0 0;color:var(--sd-accent,#0f4c81);font-size:15px;font-weight:800;letter-spacing:.01em}
.nato-sub + .nato-table{margin-top:10px}
.nato-note{margin:18px 0 0;padding:12px 14px;border:1px solid var(--sd-line,#d9e2ec);border-radius:10px;background:var(--sd-panel-2,#f7fafd);color:var(--sd-text-soft,#486581);font-size:12.5px;line-height:1.7}
@media(max-width:700px){.nato-sub{margin-top:20px;font-size:14px}.nato-note{margin-top:14px;padding:11px 12px;font-size:12px}}
.nato-baca{color:var(--sd-text-soft,#486581)}
/* =============================================================
   MODE PAGI & MALAM — inti tema global Service Desk SISI
   ------------------------------------------------------------
   Satu berkas untuk SEMUA halaman. Dimuat paling akhir di
   setiap <head>, jadi atribut data-theme/html menentukan warna.

   Cara kerja:
     <html> dan <body> sama-sama diberi data-theme="light"|"dark".
     - Aturan di berkas ini memakai  html[data-theme="dark"] ...
       sehingga tidak perlu urutan muat.
     - Aturan lama dashboard memakai html[data-theme="dark"] ...
       tetap berlaku karena atributnya dipasang di <body> juga.

   Token warna diambil dari palet gelap dashboard yang sudah ada
   (#0b1120 / #131d33 / #18243d / #e6edf7) supaya tidak terblick
   dua gaya yang berbeda.
   ============================================================= */

/* ---------- 1. Token ---------- */
:root{
  color-scheme:light;
  /* Teks redup dinaikkan dari #627d98 ke #546e89. Nilai lama hanya
     mencapai rasio 4,28:1 di atas putih - di bawah ambang keterbacaan
     4,5:1 yang diminta WCAG AA. Yang baru 4,81:1 di latar paling
     terang yang dipakai situs. */
  --muted:#546e89;
  --theme-muted:#546e89;
  --admin-muted:#546e89;
  --sd-bg:#f4f7fb;
  --sd-panel:#ffffff;
  --sd-panel-2:#f7fafd;
  --sd-panel-3:#f8fbfe;
  --sd-panel-hover:#f8fafc;
  --sd-text:#102a43;
  --sd-text-soft:#486581;
  --sd-text-faint:#829ab1;
  --sd-line:#d9e2ec;
  --sd-line-soft:#e7eef5;
  --sd-accent:#0f4c81;
  --sd-accent-2:#145da0;
  --sd-chip:#eaf4fd;
  --sd-chip-text:#0f4c81;
  --sd-input:#ffffff;
  --sd-shadow:0 10px 28px rgba(16,42,67,.08);
  --sd-shadow-sm:0 4px 14px rgba(16,42,67,.06);
  --sd-tema-bg:#f7fbfe;
  --sd-tema-bg-2:#eef5fb;
  --sd-ok:#0a6b3d;   --sd-ok-bg:#eafaf0;   --sd-ok-line:#b7e0c6;
  --sd-bad:#b42318;  --sd-bad-bg:#fff6f6;  --sd-bad-line:#f0c2c2;
  --sd-warn:#7d5a16; --sd-warn-bg:#2a2312; --sd-warn-line:#4a3a18;
  --sd-note-bg:#12233c;
}
html[data-theme="dark"]{
  color-scheme:dark;
  /* Token milik berkas lain juga ikut dinaikkan agar teks redup di
     mode malam tidak menebal di panel yang lebih terang. */
  --muted:#8a9cb8;
  --theme-muted:#8a9cb8;
  --admin-muted:#8a9cb8;
  --sd-bg:#0b1120;
  --sd-panel:#131d33;
  --sd-panel-2:#18243d;
  --sd-panel-3:#101a2e;
  --sd-panel-hover:#1a2742;
  --sd-text:#e6edf7;
  --sd-text-soft:#9aabc4;
  --sd-text-faint:#8a9cb8;
  --sd-line:#243352;
  --sd-line-soft:#1c2841;
  --sd-accent:#7db4f5;
  --sd-accent-2:#a9cdfa;
  --sd-chip:#1b2a49;
  --sd-chip-text:#a9cdfa;
  --sd-input:#0f1729;
  --sd-shadow:0 10px 28px rgba(0,0,0,.34);
  --sd-shadow-sm:0 4px 14px rgba(0,0,0,.28);
  --sd-tema-bg:#16223c;
  --sd-tema-bg-2:#1c2b49;
  --sd-ok:#4ade80;   --sd-ok-bg:#0f2e26;   --sd-ok-line:#1f5c48;
  --sd-bad:#fca5a5; --sd-bad-bg:#33201f;  --sd-bad-line:#6b3833;
  --sd-warn:#fbbf24; --sd-warn-bg:#33291a; --sd-warn-line:#6b5320;
  --sd-note-bg:#12233c;
}
/* ---------- 2. Tombol pengalih ---------- */
.tema-btn{
  display:inline-flex;align-items:center;gap:7px;
  min-height:36px;padding:0 13px;
  border:1px solid #cbdff1;border-radius:999px;
  background:linear-gradient(180deg,#ffffff,#f2f8fd);
  color:#145da0;
  font:inherit;font-size:12.5px;font-weight:800;line-height:1;
  white-space:nowrap;cursor:pointer;text-decoration:none;
  box-shadow:0 2px 6px rgba(16,42,67,.06);
  transition:background .18s,color .18s,border-color .18s,transform .18s,box-shadow .18s;
}
.tema-btn:hover{background:#145da0;border-color:#145da0;color:#fff;transform:translateY(-1px);box-shadow:0 6px 14px rgba(15,76,129,.22)}
.tema-btn:active{transform:translateY(0)}
.tema-btn:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
.tema-btn .tema-ikon{font-size:14px;line-height:1}
html[data-theme="dark"] .tema-btn{
  background:linear-gradient(180deg,#1c2b49,#16223c);
  border-color:#31456d;color:#cfe1f8;
}
html[data-theme="dark"] .tema-btn:hover{background:#2b4270;border-color:#4a6ea8;color:#fff}
/* Varian untuk topbar dashboard/admin yang warnanya gelap. */
.dashboard-topbar .tema-btn,
.admin-topbar .tema-btn{
  background:rgba(255,255,255,.12);
  border-color:rgba(255,255,255,.32);
  color:#fff;
  box-shadow:none;
}
.dashboard-topbar .tema-btn:hover,
.admin-topbar .tema-btn:hover{background:#fff;border-color:#fff;color:#0b2d4d}
html[data-theme="dark"] .dashboard-topbar .tema-btn,
html[data-theme="dark"] .admin-topbar .tema-btn{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.30);color:#eaf2ff}
/* Saat disorot di mode malam, tombol tema JANGAN berubah putih -
   putih menyala di tengah topbar gelap terlihat seperti lubang.
   Diganti memakai aksen biru, sejalan dengan tombol lain. */
html[data-theme="dark"] .dashboard-topbar .tema-btn:hover,
html[data-theme="dark"] .admin-topbar .tema-btn:hover{background:#1d4e86;border-color:#2a63a6;color:#fff}
@media (max-width:600px){
  .tema-btn{padding:0 10px;min-height:34px}
  .tema-btn .tema-teks{display:none}
}
/* ---------- 3. Latar halaman ---------- */
html[data-theme="dark"] body{background:var(--sd-bg);color:var(--sd-text)}
html[data-theme="dark"] .home-page{background:var(--sd-bg);color:var(--sd-text)}
html[data-theme="dark"] .document-page{background:var(--sd-bg)}
html[data-theme="dark"] .login-page{
  background:radial-gradient(circle at 20% 20%,#16233c,transparent 34%),linear-gradient(135deg,#0b1120,#111c31);
}
html[data-theme="dark"] .admin-shell{background:linear-gradient(135deg,#0b1120 0%,#111c31 100%)}
html[data-theme="dark"] ::selection{background:#1e3a5f;color:#e6edf7}
/* ---------- 4. Header & navigasi ---------- */
/* Teks item navigasi tidak boleh patah menjadi 2 baris saat header
   menyempit. Sebelumnya "🔒 Login Admin" dan "System Online" terbelah
   sehingga header tampak berantakan di ujung kanan. Dengan nowrap,
   wadah yang mengatur tata letak. */
header .nav-menu > a,
header .nav-menu .dropbtn,
header .nav-menu .btn-login,
header .nav-menu .status-online,
header .nav-menu .tema-btn{white-space:nowrap}
header .nav-menu .status-online,
header .nav-menu .btn-login,
header .nav-menu .tema-btn{flex:0 0 auto}
/* Di bawah 900px header dibiarkan membungkus (wrap) sehingga item yang
   sudah nowrap turun ke baris berikutnya, bukan meluber keluar tepi
   kanan. Aturan .nav-menu{flex-wrap:wrap} bawaan baru aktif di 768px;
   celah 769-900px itulah yang sebelumnya memicu luberan. */
@media(max-width:900px){
  header{flex-wrap:wrap!important;row-gap:10px}
  header .nav-menu{flex-wrap:wrap;justify-content:center;row-gap:8px;max-width:100%}
  header .logo-area{max-width:100%}
}
html[data-theme="dark"] header{background:var(--sd-panel);border-bottom-color:var(--sd-line);box-shadow:0 2px 12px rgba(0,0,0,.4)}
html[data-theme="dark"] .logo-area{color:var(--sd-text)}
html[data-theme="dark"] .logo-icon{background:#1b2a49;color:var(--sd-accent-2)}
html[data-theme="dark"] .nav-menu a,
html[data-theme="dark"] .dropbtn{color:var(--sd-text-soft)}
html[data-theme="dark"] .nav-menu a:hover,
html[data-theme="dark"] .nav-menu a.active,
html[data-theme="dark"] .dropbtn:hover{color:var(--sd-accent-2)}
html[data-theme="dark"] .nav-menu a:hover{background:#1b2a49}
html[data-theme="dark"] .nav-menu a.active,
html[data-theme="dark"] .dropdown-content a.active{background:#1e3a5f!important;color:#fff!important}
html[data-theme="dark"] .nav-menu a.active:hover,
html[data-theme="dark"] .dropdown-content a.active:hover{background:#274b76!important;color:#fff!important}
html[data-theme="dark"] .dropdown-content{background:var(--sd-panel-2);border-color:var(--sd-line);box-shadow:0 12px 28px rgba(0,0,0,.5)}
html[data-theme="dark"] .dropdown-content a{color:var(--sd-text-soft)}
html[data-theme="dark"] .dropdown-content a:hover{background:#1b2a49;color:var(--sd-accent-2)}
html[data-theme="dark"] .dropdown.is-current > .dropbtn{background:#1b2a49;color:var(--sd-accent-2)}
html[data-theme="dark"] .dropbtn:focus-visible,
html[data-theme="dark"] .dropdown-content a:focus-visible{outline-color:var(--sd-accent);background:#1b2a49}
html[data-theme="dark"] .status-online{color:#7fe3b0;background:#0f2e26;border-color:#1f5c48}
html[data-theme="dark"] .status-dot{background:#34d399;box-shadow:0 0 0 2px rgba(52,211,153,.28)}
html[data-theme="dark"] .shift-badge{background:#1e3a5f;color:#dbeafe}
html[data-theme="dark"] footer,
html[data-theme="dark"] .dashboard-footer{background:var(--sd-panel);border-top-color:var(--sd-line);color:var(--sd-text-faint)}
html[data-theme="dark"] .agent-page .app-main > footer{background:var(--sd-panel)}
/* ---------- 5. Panel, kartu, judul ---------- */
html[data-theme="dark"] .card-section,
html[data-theme="dark"] .sheet-wrapper,
html[data-theme="dark"] .document-page .card-section,
html[data-theme="dark"] .document-page .sheet-wrapper,
html[data-theme="dark"] .agent-page .sheet-wrapper{
  background:var(--sd-panel);border-color:var(--sd-line);box-shadow:var(--sd-shadow);
}
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .document-page .section-title,
html[data-theme="dark"] .home-page .section-title,
html[data-theme="dark"] .manual-category{color:var(--sd-accent-2)!important}
html[data-theme="dark"] .document-page .manual-category{border-left-color:#0ea5a4!important}
html[data-theme="dark"] .page-description,
html[data-theme="dark"] .announcement-head p,
html[data-theme="dark"] .announcement-status,
html[data-theme="dark"] .inbound-head p,
html[data-theme="dark"] .rekap-sync-status{color:var(--sd-text-soft)}
html[data-theme="dark"] .hero-banner{background:linear-gradient(135deg,#0f2440 0%,#16375c 100%)}
html[data-theme="dark"] .hero-banner .quote{color:#b9d2ea}
html[data-theme="dark"] .hero-banner .desc{color:#d5e5f2}
/* Kotak aplikasi & tupoksi */
html[data-theme="dark"] .tupoksi-item{background:var(--sd-panel-2);border-color:var(--sd-line);color:var(--sd-text-soft)}
html[data-theme="dark"] .app-box{background:var(--sd-panel);border-color:var(--sd-line)}
html[data-theme="dark"] .app-box:hover{border-color:#3c6699;background:#16223c}
html[data-theme="dark"] .app-icon{background:#1b2a49;color:var(--sd-accent-2)}
html[data-theme="dark"] .app-name{color:var(--sd-text)}
html[data-theme="dark"] .app-url{color:var(--sd-text-faint)}
/* Kartu shift & rekap */
html[data-theme="dark"] .shift-card{background:var(--sd-panel-2);border-color:var(--sd-line)}
html[data-theme="dark"] .home-page .shift-card.active{background:#16223c;border-color:#3c6699;box-shadow:0 5px 14px rgba(0,0,0,.3)}
html[data-theme="dark"] .shift-card-title{color:var(--sd-text)}
html[data-theme="dark"] .shift-card-time{color:var(--sd-text-soft)}
html[data-theme="dark"] .shift-card-time small,
html[data-theme="dark"] .shift-card-note{color:var(--sd-text-faint)}
html[data-theme="dark"] .shift-card-note.is-active{color:var(--sd-accent-2)}
html[data-theme="dark"] .home-page .shift-card.active::before{background:var(--sd-accent-2)}
html[data-theme="dark"] .shift-badge-run{background:#1e3a5f}
html[data-theme="dark"] .home-page .rekap-item{border-bottom-color:var(--sd-line-soft);color:var(--sd-text-soft)}
html[data-theme="dark"] .home-page .rekap-item strong{color:var(--sd-accent-2)}
html[data-theme="dark"] .rekap-date{background:var(--sd-chip);color:var(--sd-chip-text)}
/* ---------- 6. Form ---------- */
html[data-theme="dark"] .form-label{color:var(--sd-text-soft)}
html[data-theme="dark"] .form-input{background:var(--sd-input);border-color:var(--sd-line);color:var(--sd-text)}
html[data-theme="dark"] .form-input:focus{border-color:var(--sd-accent-2);box-shadow:0 0 0 3px rgba(125,180,245,.18)}
html[data-theme="dark"] .login-title,
html[data-theme="dark"] .login-page .login-title{color:var(--sd-accent-2)}
html[data-theme="dark"] .login-subtitle{color:var(--sd-text-faint)}
html[data-theme="dark"] .login-card{background:var(--sd-panel);border-color:var(--sd-line);box-shadow:0 20px 60px rgba(0,0,0,.45)}
html[data-theme="dark"] .login-error{background:#33201f;border-color:#6b3833;color:#fca5a5}
html[data-theme="dark"] .login-wrapper{background:transparent}
html[data-theme="dark"] .btn-submit{background:linear-gradient(110deg,#1d4e86,#0f766e)}
html[data-theme="dark"] .btn-submit:hover{background:linear-gradient(110deg,#2a63a6,#0d9488)}
/* ---------- 7. Tabel ---------- */
html[data-theme="dark"] .nato-table,
html[data-theme="dark"] .inbound-table-wrap,
html[data-theme="dark"] .announcement-table-wrap,
html[data-theme="dark"] .admin-table-wrap,
html[data-theme="dark"] .dashboard-user-list{background:var(--sd-panel);border-color:var(--sd-line);box-shadow:var(--sd-shadow)}
html[data-theme="dark"] .nato-table td,
html[data-theme="dark"] .inbound-table td,
html[data-theme="dark"] .announcement-table td,
html[data-theme="dark"] .admin-table td{border-bottom-color:var(--sd-line-soft);color:var(--sd-text-soft)}
html[data-theme="dark"] .nato-table th,
html[data-theme="dark"] .inbound-table th,
html[data-theme="dark"] .announcement-table th,
html[data-theme="dark"] .admin-table th{background:var(--sd-panel-2);color:var(--sd-accent-2);border-bottom-color:var(--sd-line)}
html[data-theme="dark"] .nato-table th{background:#1e3a5f;color:#fff}
html[data-theme="dark"] .nato-table tr:hover td,
html[data-theme="dark"] .inbound-table tbody tr:hover td,
html[data-theme="dark"] .announcement-table tbody tr:hover td,
html[data-theme="dark"] .admin-table tr:hover td{background:#16223c}
html[data-theme="dark"] .inbound-table tbody tr:nth-child(even) td,
html[data-theme="dark"] .announcement-table tbody tr:nth-child(even) td{background:#101a2e}
html[data-theme="dark"] .inbound-table tbody tr:nth-child(even) td:hover,
html[data-theme="dark"] .announcement-table tbody tr:nth-child(even) td:hover{background:#16223c}
html[data-theme="dark"] .char-badge{background:#1b2a49;color:var(--sd-accent-2)}
html[data-theme="dark"] .inbound-table .cell-name,
html[data-theme="dark"] .announcement-table .cell-subject{color:var(--sd-text)}
html[data-theme="dark"] .inbound-table .cell-email,
html[data-theme="dark"] .inbound-table .cell-media,
html[data-theme="dark"] .inbound-table .cell-shift,
html[data-theme="dark"] .announcement-table .cell-sender{color:var(--sd-text-soft)}
html[data-theme="dark"] .inbound-table .cell-customer{color:var(--sd-text-soft)}
html[data-theme="dark"] .inbound-table .col-tgl,
html[data-theme="dark"] .inbound-table .col-no,
html[data-theme="dark"] .announcement-table .cell-date{color:var(--sd-accent-2)}
html[data-theme="dark"] .inbound-table .col-num,
html[data-theme="dark"] .inbound-break-row b{color:var(--sd-accent-2)}
html[data-theme="dark"] .inbound-table .cell-remark,
html[data-theme="dark"] .announcement-table .col-no,
html[data-theme="dark"] .inbound-foot{color:var(--sd-text-faint)}
html[data-theme="dark"] .inbound-foot a{color:var(--sd-accent-2)}
html[data-theme="dark"] .inbound-empty,
html[data-theme="dark"] .announcement-empty,
html[data-theme="dark"] .admin-table-empty{color:var(--sd-text-faint)!important}
/* ---------- 8. Tombol, chip, lencana ---------- */
html[data-theme="dark"] .inbound-btn{background:var(--sd-panel);border-color:var(--sd-line);color:var(--sd-accent-2)}
html[data-theme="dark"] .inbound-btn:hover{background:#1b2a49}
html[data-theme="dark"] .inbound-btn-primary{background:#1d4e86;border-color:#1d4e86;color:#fff}
html[data-theme="dark"] .inbound-btn-primary:hover{background:#2a63a6}
html[data-theme="dark"] .inbound-btn-danger{background:var(--sd-panel);border-color:var(--sd-bad-line);color:var(--sd-bad)}
html[data-theme="dark"] .inbound-btn-danger:hover{background:var(--sd-bad-bg)}
html[data-theme="dark"] .btn-open-pdf,
html[data-theme="dark"] .btn-external{background:linear-gradient(110deg,#1d4e86,#0f766e)!important}
html[data-theme="dark"] .btn-open-pdf:hover,
html[data-theme="dark"] .btn-external:hover{background:linear-gradient(110deg,#2a63a6,#0d9488)!important}
html[data-theme="dark"] .announcement-pdf,
html[data-theme="dark"] .ins-dl,
html[data-theme="dark"] .ins-card-link{background:#1d4e86;color:#fff}
html[data-theme="dark"] .announcement-pdf:hover,
html[data-theme="dark"] .ins-dl:hover,
html[data-theme="dark"] .ins-card-link:hover{background:#2a63a6}
html[data-theme="dark"] .ins-card-link.is-off{background:var(--sd-chip);color:var(--sd-text-faint)}
html[data-theme="dark"] .ins-dl.is-kosong,
html[data-theme="dark"] .ins-dl.is-kosong:hover{background:var(--sd-chip);color:var(--sd-text-faint)}
html[data-theme="dark"] .announcement-readonly{background:#16223c;border-color:#31456d;color:var(--sd-accent-2)}
/* Status inbound */
html[data-theme="dark"] .ib-status.draf{background:var(--sd-chip);color:var(--sd-text-soft)}
html[data-theme="dark"] .ib-status.diverifikasi{background:#16223c;color:var(--sd-accent-2)}
html[data-theme="dark"] .ib-status.selesai{background:var(--sd-ok-bg);color:var(--sd-ok)}
html[data-theme="dark"] .ib-flash{background:var(--sd-ok-bg);border-color:var(--sd-ok-line);color:var(--sd-ok)}
html[data-theme="dark"] .ib-flash.is-err{background:var(--sd-bad-bg);border-color:var(--sd-bad-line);color:var(--sd-bad)}
html[data-theme="dark"] .ib-aksi-btn{background:var(--sd-panel);border-color:var(--sd-line);color:var(--sd-accent-2)}
html[data-theme="dark"] .ib-aksi-btn:hover{background:#1b2a49;border-color:var(--sd-accent)}
html[data-theme="dark"] .ib-aksi-btn.is-danger{border-color:var(--sd-bad-line);color:var(--sd-bad)}
html[data-theme="dark"] .ib-aksi-btn.is-danger:hover{background:var(--sd-bad-bg);border-color:var(--sd-bad)}
html[data-theme="dark"] .ib-loading{border-color:var(--sd-line);border-top-color:var(--sd-accent-2)}
/* ---------- 9. Carousel & daftar (announcement / manual book) ---------- */
html[data-theme="dark"] .insight,
html[data-theme="dark"] .ins-summary-block,
html[data-theme="dark"] .ins-stat,
html[data-theme="dark"] .ins-stat-hero{background:var(--sd-panel);border-color:var(--sd-line);box-shadow:var(--sd-shadow)}
html[data-theme="dark"] .ins-stat-hero{background:linear-gradient(180deg,#18243d,#131d33)}
html[data-theme="dark"] .insight-viewport{background:var(--sd-panel-3)}
html[data-theme="dark"] .insight-kicker{color:#a9d3f5}
html[data-theme="dark"] .ins-slide-ikon,
html[data-theme="dark"] .ins-sum-ikon{background:#1b2a49;border-color:#31456d;color:var(--sd-accent-2)}
html[data-theme="dark"] .ins-slide-head h3,
html[data-theme="dark"] .ins-sum-head h3,
html[data-theme="dark"] .ins-card-title,
html[data-theme="dark"] .ins-item-title,
html[data-theme="dark"] .ins-sla-card h3,
html[data-theme="dark"] .ins-coach h3{color:var(--sd-text)}
html[data-theme="dark"] .ins-slide-head p,
html[data-theme="dark"] .ins-sum-head p,
html[data-theme="dark"] .ins-card-sender,
html[data-theme="dark"] .ins-item-meta,
html[data-theme="dark"] .ins-mini-title,
html[data-theme="dark"] .ins-list-hint,
html[data-theme="dark"] .ins-list-hint b,
html[data-theme="dark"] .ins-spack-legend,
html[data-theme="dark"] .ins-bar-lab{color:var(--sd-text-faint)}
html[data-theme="dark"] .ins-card,
html[data-theme="dark"] .ins-sla-card,
html[data-theme="dark"] .ins-coach{border-color:var(--sd-line)}
html[data-theme="dark"] .ins-card:hover{border-color:#3c6699;box-shadow:0 8px 20px rgba(0,0,0,.34)}
html[data-theme="dark"] .ins-card-no,
html[data-theme="dark"] .ins-avatar{background:#1d4e86}
html[data-theme="dark"] .ins-card-date,
html[data-theme="dark"] .ins-metric-value,
html[data-theme="dark"] .ins-stat strong,
html[data-theme="dark"] .ins-stat-hero strong,
html[data-theme="dark"] .ins-link,
html[data-theme="dark"] .ins-coach p b{color:var(--sd-accent-2)}
html[data-theme="dark"] .ins-metric-label,
html[data-theme="dark"] .ins-stat span{color:var(--sd-text-faint)}
html[data-theme="dark"] .ins-bar,
html[data-theme="dark"] .ins-jenis-bar{background:var(--sd-line-soft)}
html[data-theme="dark"] .ins-spark-wrap{border-top-color:var(--sd-line-soft)}
html[data-theme="dark"] .ins-item{border-bottom-color:var(--sd-line-soft)}
/* Kartu slide carousel (mode malam) */
html[data-theme="dark"] .ins-slide .ins-item{background:#0f1a2e;border-color:#2a3a5c}
/* Tanggal unggah di kartu carousel (mode malam): tidak boleh latar putih. */
html[data-theme="dark"] #insightCarousel .ins-item-date,
html[data-theme="dark"] #insightCarousel .ins-item-date{
  background:#1b2a49;border-color:#2a3a5c;color:var(--sd-accent-2);
}
html[data-theme="dark"] .ins-item-meta{color:var(--sd-text-faint)}
html[data-theme="dark"] .ins-date,
html[data-theme="dark"] .ins-search__chip{background:#1b2a49;color:var(--sd-accent-2)}
html[data-theme="dark"] .ins-date i{color:var(--sd-text-faint)}
html[data-theme="dark"] .ins-jenis b,
html[data-theme="dark"] .ins-sender{color:var(--sd-text-soft);border-bottom-color:var(--sd-line-soft)}
html[data-theme="dark"] .ins-sender b{color:var(--sd-accent-2)}
html[data-theme="dark"] .ins-coach p{color:var(--sd-text-soft)}
html[data-theme="dark"] .ins-coach-susah{color:#fbbf24!important}
html[data-theme="dark"] .ins-kosong,
html[data-theme="dark"] .ins-list-empty,
html[data-theme="dark"] #manualInsight .ins-kosong{color:var(--sd-text-faint)}
html[data-theme="dark"] .ins-dot{background:#31456d}
html[data-theme="dark"] .ins-dot.is-active{background:var(--sd-accent-2)}
html[data-theme="dark"] .ins-dot:focus-visible{outline-color:var(--sd-accent)}
/* Tombol carousel (panah < > dan tombol jeda/putar).
   Di mode pagi tombol ini sengaja dibuat putih tipis translusen di atas
   header berwarna. Di mode malam latarnya sudah gelap, jadi putih 12%
   terlihat sebagai tombol putih pudar yang tidak menyatu dengan tema.
   Di sini warnanya diselaraskan: latar panel gelap, teks biru muda. */
html[data-theme="dark"] .insight-arrow,
html[data-theme="dark"] .insight-play{
  background:var(--sd-chip);
  border-color:var(--sd-line);
  color:var(--sd-accent-2);
}
html[data-theme="dark"] .insight-arrow:hover,
html[data-theme="dark"] .insight-play:hover{
  background:#1b2a49;
  border-color:var(--sd-accent);
  color:var(--sd-accent-2);
}
html[data-theme="dark"] .insight-arrow:focus-visible,
html[data-theme="dark"] .insight-play:focus-visible{
  outline-color:var(--sd-accent);
}
/* Saat carousel sedang berhenti, tombol berubah jadi "putar".
   Aturan aslinya memakai selektor ber-ID (#insightCarousel,
   #manualInsight) yang lebih kuat, jadi di sini kekhususannya
   disamakan supaya tetap memakai warna tema malam. */
html[data-theme="dark"] #insightCarousel[data-playing="false"] .insight-play,
html[data-theme="dark"] #manualInsight[data-playing="false"] .insight-play,
html[data-theme="dark"] .insight-play.is-paused{
  background:var(--sd-accent-2);
  border-color:var(--sd-accent-2);
  color:#0b1120;
}
html[data-theme="dark"] .insight-progress{background:var(--sd-line-soft)}
html[data-theme="dark"] .ins-bars{border-bottom-color:var(--sd-line)}
html[data-theme="dark"] .ins-bar-val{color:var(--sd-accent-2)}
/* Gradasi tepi bawah daftar: putih di mode pagi, jadi gelap di mode malam. */
html[data-theme="dark"] .ins-list-wrap::after{background:linear-gradient(180deg,rgba(19,29,51,0),rgba(19,29,51,.96))}
html[data-theme="dark"] .ins-list-full::-webkit-scrollbar-track{background:var(--sd-panel-3)}
html[data-theme="dark"] .ins-list-full::-webkit-scrollbar-thumb{background:#31456d;border-color:var(--sd-panel-3)}
html[data-theme="dark"] .ins-list-full::-webkit-scrollbar-thumb:hover{background:#3c6699}
html[data-theme="dark"] .ins-sum-head-sep{border-top-color:var(--sd-line-soft)}
html[data-theme="dark"] ::-webkit-scrollbar-track{background:var(--sd-panel-3)}
html[data-theme="dark"] ::-webkit-scrollbar-thumb{background:#31456d;border-color:var(--sd-panel-3)}
html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover{background:#3c6699}
/* Pencarian & saring */
html[data-theme="dark"] .ins-search,
html[data-theme="dark"] .manual-search{background:var(--sd-panel-2);border-color:var(--sd-line);box-shadow:var(--sd-shadow-sm)}
html[data-theme="dark"] .ins-search:focus-within{border-color:var(--sd-accent);box-shadow:0 0 0 3px rgba(125,180,245,.16)}
html[data-theme="dark"] .ins-search-input,
html[data-theme="dark"] .manual-search-input{color:var(--sd-text)}
html[data-theme="dark"] .ins-search-input::placeholder,
html[data-theme="dark"] .manual-search-input::placeholder{color:var(--sd-text-faint)}
html[data-theme="dark"] .ins-search-clear,
html[data-theme="dark"] .manual-search-clear{background:var(--sd-chip);color:var(--sd-text-soft)}
html[data-theme="dark"] .ins-search-clear:hover{background:var(--sd-accent-2);color:#0b1120}
html[data-theme="dark"] .ins-chip{border-color:var(--sd-line);background:var(--sd-panel);color:var(--sd-text-soft)}
html[data-theme="dark"] .ins-chip b{color:var(--sd-accent-2)}
html[data-theme="dark"] .ins-chip:hover{border-color:#3c6699;background:#16223c}
html[data-theme="dark"] .ins-chip.is-active{background:#1d4e86;border-color:#1d4e86;color:#fff}
html[data-theme="dark"] .ins-chip.is-active b{color:#a9d3f5}
html[data-theme="dark"] .ins-kind.ann{background:#16223c;color:var(--sd-accent-2)}
html[data-theme="dark"] .ins-kind.upd{background:var(--sd-warn-bg);color:var(--sd-warn)}
html[data-theme="dark"] .ins-kind.rem{background:var(--sd-bad-bg);color:var(--sd-bad)}
html[data-theme="dark"] .ins-kind.inf{background:var(--sd-chip);color:var(--sd-text-soft)}
/* ---------- 10. Manual Book ---------- */
html[data-theme="dark"] .manual-search-input{background:var(--sd-input);border-color:var(--sd-line)}
html[data-theme="dark"] .manual-search-input:focus{border-color:var(--sd-accent);box-shadow:0 0 0 4px rgba(125,180,245,.15)}
html[data-theme="dark"] .manual-search-result,
html[data-theme="dark"] #manualSearchResult,
html[data-theme="dark"] .manual-no-result-text b,
html[data-theme="dark"] .manual-count,
html[data-theme="dark"] .manual-wrapper .announcement-readonly b{color:var(--sd-accent-2)}
html[data-theme="dark"] .manual-search-hint,
html[data-theme="dark"] .manual-no-result-text,
html[data-theme="dark"] .manual-footnote,
html[data-theme="dark"] .manual-footnote b{color:var(--sd-text-faint)}
html[data-theme="dark"] .manual-search-hint kbd,
html[data-theme="dark"] .ins-list-hint kbd{background:var(--sd-panel);border-color:var(--sd-line);color:var(--sd-text-soft)}
html[data-theme="dark"] .manual-count{background:var(--sd-chip)}
html[data-theme="dark"] .manual-no-result{background:var(--sd-panel-3);border-color:var(--sd-line)}
html[data-theme="dark"] .manual-no-result-btn{background:linear-gradient(110deg,#1d4e86,#0f766e)}
html[data-theme="dark"] .manual-mark{background:#4a3a18;color:#fde68a}
html[data-theme="dark"] .manual-match{background:var(--sd-panel-2);border-color:var(--sd-line);color:var(--sd-text-soft)}
html[data-theme="dark"] .manual-category-nama{color:var(--sd-accent-2)}
html[data-theme="dark"] .document-page .manual-wrapper .manual-card{border-bottom-color:var(--sd-line-soft)}
html[data-theme="dark"] .document-page .manual-wrapper .manual-card:hover{background:#16223c}
html[data-theme="dark"] .document-page .manual-wrapper .manual-card .ins-item-title{color:var(--sd-text)}
html[data-theme="dark"] .document-page .manual-wrapper .manual-card .ins-kind{background:var(--sd-chip);color:var(--sd-text-soft)}
html[data-theme="dark"] .document-page .manual-wrapper .manual-date-chip{background:#1b2a49;color:var(--sd-accent-2)}
html[data-theme="dark"] .document-page .manual-wrapper .manual-dl{background:#1d4e86;color:#fff}
html[data-theme="dark"] .document-page .manual-wrapper .manual-dl:hover{background:#2a63a6;color:#fff}
html[data-theme="dark"] .document-page .manual-wrapper .manual-dl:focus-visible{outline-color:var(--sd-accent)}
/* ---------- 11. Halaman utama: kartu rekap & trend ---------- */
html[data-theme="dark"] .rekap-total,
html[data-theme="dark"] .trend-panel,
html[data-theme="dark"] .rekap-filter-panel{
  background:linear-gradient(180deg,#18243d 0%,#131d33 100%);
  border-color:var(--sd-line);box-shadow:var(--sd-shadow);
}
html[data-theme="dark"] .rekap-total-overdue{background:linear-gradient(180deg,#1f1a24 0%,#161320 100%);border-color:var(--sd-bad-line)}
html[data-theme="dark"] .rekap-total-task,
html[data-theme="dark"] .trend-panel-task{background:linear-gradient(180deg,#14252b 0%,#101d24 100%);border-color:#1f4a4e}
html[data-theme="dark"] .rekap-total-label{color:var(--sd-text)}
html[data-theme="dark"] .rekap-total-value{color:var(--sd-accent-2)}
html[data-theme="dark"] .rekap-total-overdue .rekap-total-value{color:#fca5a5}
html[data-theme="dark"] .rekap-total-task .rekap-total-value{color:#5eead4}
html[data-theme="dark"] .rekap-total.is-error .rekap-total-value{color:var(--sd-text-faint)}
html[data-theme="dark"] .rekap-total-note,
html[data-theme="dark"] .rekap-total-note b{color:var(--sd-text-faint)}
html[data-theme="dark"] .rekap-total.is-error .rekap-total-value{font-size:34px}
html[data-theme="dark"] .rekap-total-icon{background:#1b2a49}
html[data-theme="dark"] .rekap-total-overdue .rekap-total-icon{background:var(--sd-bad-bg)}
html[data-theme="dark"] .rekap-total-task .rekap-total-icon{background:#0f2e33}
html[data-theme="dark"] .rekap-total-inbound .rekap-total-value{color:#5eead4}
html[data-theme="dark"] .rekap-total-inbound .rekap-total-icon{background:#0f2e33;color:#5eead4}
html[data-theme="dark"] .rekap-filter-head{border-bottom-color:var(--sd-line-soft)}
html[data-theme="dark"] .rekap-filter-title{color:var(--sd-accent-2)}
html[data-theme="dark"] .rekap-filter-row > .rekap-field > label,
html[data-theme="dark"] .rekap-date-range label{color:var(--sd-text-soft)}
html[data-theme="dark"] .rekap-date-range{background:var(--sd-panel-3);border-color:var(--sd-line)}
html[data-theme="dark"] .rekap-date-input{background:var(--sd-input);border-color:var(--sd-line);color:var(--sd-text)}
html[data-theme="dark"] .rekap-date-input:hover{border-color:#3c6699}
html[data-theme="dark"] .rekap-period{background:#1d4e86;border-color:#1a4577}
html[data-theme="dark"] .rekap-period:hover{background:#2a63a6}
html[data-theme="dark"] .rekap-export-btn{background:var(--sd-panel);color:var(--sd-accent-2);border-color:var(--sd-accent)}
html[data-theme="dark"] .rekap-export-btn:hover{background:#1b2a49}
html[data-theme="dark"] .rekap-apply-btn{background:#1d4e86;border-color:#1a4577}
html[data-theme="dark"] .rekap-apply-btn:hover{background:#2a63a6}
html[data-theme="dark"] .rekap-total-note.is-period{color:var(--sd-text-soft)}
html[data-theme="dark"] .trend-title{color:var(--sd-text)}
html[data-theme="dark"] .trend-sub,
html[data-theme="dark"] .trend-legend{color:var(--sd-text-soft)}
html[data-theme="dark"] .trend-yaxis,
html[data-theme="dark"] .trend-x,
html[data-theme="dark"] .trend-foot,
html[data-theme="dark"] .trend-empty{color:var(--sd-text-faint)}
html[data-theme="dark"] .trend-lines i{background:var(--sd-line-soft)}
html[data-theme="dark"] .trend-avg{border-top-color:var(--sd-line)}
html[data-theme="dark"] .trend-avg span{background:var(--sd-panel-2);color:var(--sd-text-soft)}
html[data-theme="dark"] .trend-col::before{background:var(--sd-line)}
html[data-theme="dark"] .trend-dot{border-color:var(--sd-panel-2)}
html[data-theme="dark"] .trend-legend-dot{border-color:var(--sd-panel-2)}
html[data-theme="dark"] .trend-legend-val{background:var(--sd-panel-2);color:var(--sd-text)}
html[data-theme="dark"] .trend-val{color:#7fb3e8}
html[data-theme="dark"] .trend-dot.is-zero{background:#44587a}
html[data-theme="dark"] .trend-chart.is-error .trend-empty{color:var(--sd-bad)}
/* ---------- 12. Halaman inbound ---------- */
html[data-theme="dark"] .inbound-filter,
html[data-theme="dark"] .inbound-form,
html[data-theme="dark"] .agent-page .inbound-form{background:var(--sd-panel-3);border-color:var(--sd-line)}
html[data-theme="dark"] .inbound-field label,
html[data-theme="dark"] .inbound-status,
html[data-theme="dark"] .inbound-status-inline,
html[data-theme="dark"] .agent-page .inbound-field label{color:var(--sd-text-soft)}
html[data-theme="dark"] .inbound-field input,
html[data-theme="dark"] .inbound-field select,
html[data-theme="dark"] .inbound-field textarea,
html[data-theme="dark"] .agent-page .inbound-field input,
html[data-theme="dark"] .agent-page .inbound-field select,
html[data-theme="dark"] .agent-page .inbound-field textarea{
  background:var(--sd-input);border-color:var(--sd-line);color:var(--sd-text);
}
html[data-theme="dark"] .agent-page .inbound-field select{
  background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239aabc4' d='M1.4 1.4 6 6l4.6-4.6'/%3E%3C/svg%3E");
}
html[data-theme="dark"] .inbound-field input:hover,
html[data-theme="dark"] .agent-page .inbound-field input:hover,
html[data-theme="dark"] .agent-page .inbound-field select:hover{border-color:#3c6699}
html[data-theme="dark"] .inbound-field input::placeholder,
html[data-theme="dark"] .agent-page .inbound-field input::placeholder{color:var(--sd-text-faint)}
html[data-theme="dark"] .agent-page .inbound-form-foot{border-top-color:var(--sd-line)}
html[data-theme="dark"] .ib-ts{background:linear-gradient(180deg,#16223c,#101a2e);border-color:var(--sd-line);color:var(--sd-text)}
html[data-theme="dark"] .ib-ts.is-kunci{background:linear-gradient(180deg,#101a2e,#0d1526);color:var(--sd-text-soft)}
html[data-theme="dark"] .ib-ts-note{color:var(--sd-text-faint)}
html[data-theme="dark"] .inbound-card,
html[data-theme="dark"] .inbound-break{background:var(--sd-panel);border-color:var(--sd-line)}
html[data-theme="dark"] .inbound-card strong{color:var(--sd-accent-2)}
html[data-theme="dark"] .inbound-card-label,
html[data-theme="dark"] .inbound-card-note,
html[data-theme="dark"] .inbound-break-empty{color:var(--sd-text-faint)}
html[data-theme="dark"] .inbound-break-title{color:var(--sd-text-soft)}
html[data-theme="dark"] .inbound-break-label{color:var(--sd-text-soft)}
html[data-theme="dark"] .inbound-break-bar{background:var(--sd-line-soft)}
html[data-theme="dark"] .inbound-status-inline.is-ok{color:var(--sd-ok)}
html[data-theme="dark"] .inbound-status-inline.is-err{color:var(--sd-bad)}
html[data-theme="dark"] .ib-denied{background:var(--sd-bad-bg);border-color:var(--sd-bad-line)}
html[data-theme="dark"] .ib-denied h2{color:var(--sd-bad)}
html[data-theme="dark"] .ib-denied p{color:#f0b4b0}
/* ---------- 13. Admin & akun ---------- */
html[data-theme="dark"] .dashboard-topbar-link{border-color:var(--sd-line);background:var(--sd-panel-2);color:var(--sd-accent-2)}
html[data-theme="dark"] .dashboard-topbar-link:hover{background:#2a63a6;border-color:#2a63a6;color:#fff}
html[data-theme="dark"] .dashboard-user{background:linear-gradient(180deg,#18243d,#131d33);border-color:var(--sd-line);color:var(--sd-text);box-shadow:none}
html[data-theme="dark"] .dashboard-user:hover{border-color:#3c6699;box-shadow:0 5px 14px rgba(0,0,0,.3)}
html[data-theme="dark"] .dashboard-user-name{color:var(--sd-text)}
html[data-theme="dark"] .dashboard-user-role{background:#0f766e}
html[data-theme="dark"] .dashboard-account-sep{background:linear-gradient(180deg,var(--sd-line),#1a2640)}
html[data-theme="dark"] .dashboard-logout{background:#13233c!important;border-color:var(--sd-line)!important;color:var(--sd-accent-2)}
html[data-theme="dark"] .dashboard-logout:hover{background:#2a63a6!important;border-color:#2a63a6!important;color:#fff!important}
html[data-theme="dark"] .dashboard-user-form,
html[data-theme="dark"] .dashboard-user-management{background:var(--sd-panel);border-color:var(--sd-line)}
html[data-theme="dark"] .dashboard-user-management .dashboard-section-head{border-bottom-color:var(--sd-line-soft)}
html[data-theme="dark"] .dashboard-input,
html[data-theme="dark"] .dashboard-select{background:var(--sd-input);border-color:var(--sd-line);color:var(--sd-text)}
html[data-theme="dark"] .dashboard-field label{color:var(--sd-text-soft)}
html[data-theme="dark"] .dashboard-form-message.is-error{background:var(--sd-bad-bg);border-color:var(--sd-bad-line);color:var(--sd-bad)}
html[data-theme="dark"] .dashboard-form-message.is-success{background:var(--sd-ok-bg);border-color:var(--sd-ok-line);color:var(--sd-ok)}
html[data-theme="dark"] .admin-error{background:var(--sd-bad-bg);border-color:var(--sd-bad-line);color:var(--sd-bad)}
/* ---------- 14. Kotak catatan ---------- */
html[data-theme="dark"] .db-warn{background:var(--sd-warn-bg);border-color:var(--sd-warn-line);color:var(--sd-warn);box-shadow:none}
html[data-theme="dark"] .db-warn p{color:var(--sd-warn)}
html[data-theme="dark"] .sheet-notice{background:var(--sd-note-bg);border-color:var(--sd-line);color:var(--sd-text-soft)}
html[data-theme="dark"] .sheet-notice strong,
html[data-theme="dark"] .sheet-notice em{color:var(--sd-accent-2)}
html[data-theme="dark"] .btn-action-row,
html[data-theme="dark"] .document-page .btn-action-row{border-bottom-color:var(--sd-line)}
html[data-theme="dark"] .iframe-container{background:var(--sd-panel);border-color:var(--sd-line)}
/* =============================================================
   16. Keterbacaan teks redup
   ------------------------------------------------------------
   Banyak berkas lama menuliskan warna redup (#627d98) secara langsung,
   jadi tidak ikut berubah ketika token --muted dinaikkan. Aturan di
   bawah menimpa daftar warna itu pada kedua mode.

   Semua angka rasio dihitung dengan rumus WCAG 2.1 dan sudah diuji
   ulang lewat audit kontras di peramban.
   ============================================================= */

/* --- Mode pagi: teks redup #627d98 -> #546e89 (4,81:1) --- */
html:not([data-theme="dark"]) footer,
html:not([data-theme="dark"]) .dashboard-footer,
html:not([data-theme="dark"]) .announcement-head p,
html:not([data-theme="dark"]) .announcement-status,
html:not([data-theme="dark"]) .inbound-head p,
html:not([data-theme="dark"]) .inbound-field label,
html:not([data-theme="dark"]) .inbound-status,
html:not([data-theme="dark"]) .inbound-status-inline,
html:not([data-theme="dark"]) .inbound-break-title,
html:not([data-theme="dark"]) .inbound-table .cell-remark,
html:not([data-theme="dark"]) .ib-modal-head p,
html:not([data-theme="dark"]) .ib-modal-ts small,
html:not([data-theme="dark"]) .ib-modal-msg,
html:not([data-theme="dark"]) .ins-mini-title,
html:not([data-theme="dark"]) .ins-date i,
html:not([data-theme="dark"]) .ins-sum-head p,
html:not([data-theme="dark"]) .ins-slide-head p,
html:not([data-theme="dark"]) .ins-item-meta,
html:not([data-theme="dark"]) .ins-list-hint,
html:not([data-theme="dark"]) .ins-stat span,
html:not([data-theme="dark"]) .ins-metric-label,
html:not([data-theme="dark"]) .document-page .page-description,
html:not([data-theme="dark"]) .document-page .card-section>p,
html:not([data-theme="dark"]) .document-page .sheet-wrapper p,
html:not([data-theme="dark"]) .rekap-sync-status,
html:not([data-theme="dark"]) .rekap-loading,
html:not([data-theme="dark"]) .rekap-tab span,
html:not([data-theme="dark"]) .home-rekap-panel .dashboard-section-head p,
html:not([data-theme="dark"]) .home-page .app-url,
html:not([data-theme="dark"]) .rekap-total-note.is-period,
html:not([data-theme="dark"]) .trend-sub,
html:not([data-theme="dark"]) .trend-legend,
html:not([data-theme="dark"]) .manual-search-hint,
html:not([data-theme="dark"]) .manual-footnote,
html:not([data-theme="dark"]) .manual-no-result-text,
html:not([data-theme="dark"]) .sheet-notice,
html:not([data-theme="dark"]) .personil-shift-time,
html:not([data-theme="dark"]) .dashboard-last-updated,
html:not([data-theme="dark"]) .dashboard-field label,
html:not([data-theme="dark"]) .dashboard-label,
html:not([data-theme="dark"]) .dashboard-hero p,
html:not([data-theme="dark"]) .dashboard-section-head p,
html:not([data-theme="dark"]) .dashboard-status,
html:not([data-theme="dark"]) .dashboard-access-label,
html:not([data-theme="dark"]) .dashboard-history-label,
html:not([data-theme="dark"]) .dashboard-empty,
html:not([data-theme="dark"]) .dashboard-nav a,
html:not([data-theme="dark"]) .admin-hero p,
html:not([data-theme="dark"]) .admin-section p,
html:not([data-theme="dark"]) .admin-stat-label,
html:not([data-theme="dark"]) .admin-status,
html:not([data-theme="dark"]) .trend-x,
html:not([data-theme="dark"]) .trend-foot{
  color:#546e89;
}
/* Lencana "System Online": hijau #059669 (3,58:1) -> #036b4c (6,21:1) */
html:not([data-theme="dark"]) .status-online{color:#036b4c}
/* Lencana shift: putih di atas warna latar lencana.
   Merah 3,82:1 -> 4,59 · biru 3,15:1 -> 4,55 · abu 2,56:1 -> 4,61 */
html:not([data-theme="dark"]) .personil-name-badge.shift-1{background:#d73c2c}
html:not([data-theme="dark"]) .personil-name-badge.shift-3{background:#177bbe}
html:not([data-theme="dark"]) .personil-name-badge.libur{background:#687879}
/* --- Mode malam: teks yang masih menulis #627d98 langsung --- */
html[data-theme="dark"] .announcement-head p,
html[data-theme="dark"] .announcement-status,
html[data-theme="dark"] .inbound-head p,
html[data-theme="dark"] .inbound-field label,
html[data-theme="dark"] .inbound-status,
html[data-theme="dark"] .inbound-status-inline,
html[data-theme="dark"] .inbound-break-title,
html[data-theme="dark"] .inbound-table .cell-remark,
html[data-theme="dark"] .ib-modal-head p,
html[data-theme="dark"] .ib-modal-ts small,
html[data-theme="dark"] .ib-modal-msg,
html[data-theme="dark"] .ins-mini-title,
html[data-theme="dark"] .ins-date i,
html[data-theme="dark"] .ins-sum-head p,
html[data-theme="dark"] .ins-slide-head p,
html[data-theme="dark"] .ins-item-meta,
html[data-theme="dark"] .ins-list-hint,
html[data-theme="dark"] .ins-stat span,
html[data-theme="dark"] .ins-metric-label,
html[data-theme="dark"] .document-page .page-description,
html[data-theme="dark"] .document-page .card-section>p,
html[data-theme="dark"] .document-page .sheet-wrapper p,
html[data-theme="dark"] .rekap-sync-status,
html[data-theme="dark"] .rekap-loading,
html[data-theme="dark"] .rekap-tab span,
html[data-theme="dark"] .home-rekap-panel .dashboard-section-head p,
html[data-theme="dark"] .home-page .app-url,
html[data-theme="dark"] .rekap-total-note.is-period,
html[data-theme="dark"] .trend-sub,
html[data-theme="dark"] .trend-legend,
html[data-theme="dark"] .trend-x,
html[data-theme="dark"] .trend-foot,
html[data-theme="dark"] .manual-search-hint,
html[data-theme="dark"] .manual-footnote,
html[data-theme="dark"] .manual-no-result-text,
html[data-theme="dark"] .sheet-notice,
html[data-theme="dark"] .personil-shift-time,
html[data-theme="dark"] .dashboard-last-updated,
html[data-theme="dark"] .dashboard-field label,
html[data-theme="dark"] .dashboard-label,
html[data-theme="dark"] .dashboard-hero p,
html[data-theme="dark"] .dashboard-section-head p,
html[data-theme="dark"] .dashboard-status,
html[data-theme="dark"] .dashboard-access-label,
html[data-theme="dark"] .dashboard-history-label,
html[data-theme="dark"] .dashboard-empty,
html[data-theme="dark"] .dashboard-nav a,
html[data-theme="dark"] .admin-hero p,
html[data-theme="dark"] .admin-section p,
html[data-theme="dark"] .admin-stat-label,
html[data-theme="dark"] .admin-status{
  color:var(--sd-text-faint);
}
/* Lencana shift di mode malam memakai warna yang lebih gelap supaya
   teks putihnya tetap terbaca di atas panel gelap. */
html[data-theme="dark"] .personil-name-badge{background:#1d4e86}
html[data-theme="dark"] .personil-name-badge.shift-1{background:#8f2a20}
html[data-theme="dark"] .personil-name-badge.shift-2{background:#8a6d12;color:#1a1206}
html[data-theme="dark"] .personil-name-badge.shift-3{background:#14507f}
html[data-theme="dark"] .personil-name-badge.double-shift{background:#4d2c66}
html[data-theme="dark"] .personil-name-badge.libur{background:#3d4a4a}
html[data-theme="dark"] .personil-name-badge .kode-shift{background:rgba(255,255,255,.18)}
/* Panel rekap di halaman utama: section ini punya aturan sendiri di
   responsive.css dan TIDAK memakai kelas .card-section, jadi perlu
   ditulis terpisah - tanpa ini panelnya tetap putih di mode malam. */
html[data-theme="dark"] .home-rekap-panel{background:var(--sd-panel);border-color:var(--sd-line);box-shadow:var(--sd-shadow)}
html[data-theme="dark"] .home-rekap-panel .dashboard-section-head h2{color:var(--sd-text)}
/* Teks meta di baris dokumen Manual Book memakai aturan manual-docs.css
   yang spesifisitasnya lebih tinggi, jadi ikut ditimpa di sini. */
html:not([data-theme="dark"]) .document-page .manual-wrapper .manual-card .ins-item-meta{color:#546e89}
html[data-theme="dark"] .document-page .manual-wrapper .manual-card .ins-item-meta{color:var(--sd-text-faint)}
/* --- Panel personil: gayanya ditulis inline di index.html (di dalam
   <body>), jadi tidak bisa di(tokenisasi). Perlu ditimpa satu per satu
   supaya tidak tetap putih di mode malam. --- */
html[data-theme="dark"] .shift-personil-list{background:var(--sd-panel);border:1px solid var(--sd-line)}
html[data-theme="dark"] .personil-shift-group{background:var(--sd-panel-2);border-color:var(--sd-line)}
html[data-theme="dark"] .personil-shift-header{border-bottom-color:var(--sd-line)}
html[data-theme="dark"] .personil-shift-title{color:var(--sd-accent-2)}
html[data-theme="dark"] .personil-loading,
html[data-theme="dark"] .personil-kosong{color:var(--sd-text-faint)}
html:not([data-theme="dark"]) .personil-loading{color:#546e89}
html:not([data-theme="dark"]) .personil-kosong{color:#5c6f80}
/* =============================================================
   17. Mode malam untuk dashboard
   ------------------------------------------------------------
   Mode gelap dashboard sudah ada sebelumnya, tapi beberapa warna
   masih memakai nilai mode pagi sehingga teksnya nyaris tak
   terlihat (contoh: 110 tautan "Unduh" hanya mencapai 1,89:1).
   Bagian ini menyelaraskannya dengan palet panel yang gelap.
   ============================================================= */
html[data-theme="dark"]{--ink:#e6edf7}
/* Aksen biru #3b82f6 hanya mencapai 3,87:1 di atas panel gelap,
   jadi dinaikkan ke #5b9df8 (5,17:1). */
html[data-theme="dark"] .dashboard-card a:not([class*="btn"]):not([class*="button"]),
html[data-theme="dark"] .content a:not([class*="btn"]):not([class*="button"]),
html[data-theme="dark"] .stat-ico.c-accent,
html[data-theme="dark"] .jad-sel.is-s1,
html[data-theme="dark"] .kolom-count,
html[data-theme="dark"] a.sb-item.is-active,
html[data-theme="dark"] .dashboard-small-button.secondary,
html[data-theme="dark"] .dashboard-link{
  color:#5b9df8;
}
/* Teal #0e7490 hanya 2,75:1 di atas #0d2c34 -> #22b8cf (6,18:1) */
html[data-theme="dark"] .jad-sel.is-dispen{color:#22b8cf}
/* Kartu logo SISI tetap putih agar mark tetap terbaca di mode gelap. */
html[data-theme="dark"] .sb-brand-icon{background:#fff}
/* Teks kecil */
html[data-theme="dark"] .backup-stat-label,
html[data-theme="dark"] .backup-foot span,
html[data-theme="dark"] .sb-foot-meta small,
html[data-theme="dark"] .sb-foot-meta,
html[data-theme="dark"] .dashboard-card small{color:#8a9cb8}
/* Lencana berlatar terang ikut gelap */
html[data-theme="dark"] .peng-sumber.is-sheets{background:#1b2a49;color:#9aabc4;border-color:#31456d}
html[data-theme="dark"] .peng-sumber.is-dashboard{background:#0f2e26;color:#6ee7b7;border-color:#1f5c48}
html[data-theme="dark"] .ins-kind.ann{background:#16223c;color:#7db4f5}
/* Lencana jenis berkas di kartu Manual Book.
   Aturan asli `manual-docs.css` memakai tiga kelas
   (".document-page .manual-wrapper .manual-card .ins-kind") sehingga
   MENGALAHKAN `html[data-theme="dark"] .ins-kind.inf` yang hanya satu
   kelas. Akibatnya lencana "PDF"/"EXCEL" tetap biru muda terang di
   tengah panel gelap. Aturan di bawah menyamakan kekhususannya. */
html[data-theme="dark"] .document-page .manual-wrapper .manual-card .ins-kind,
html[data-theme="dark"] .document-page .manual-wrapper .manual-card .ins-kind.inf,
html[data-theme="dark"] .document-page .manual-wrapper .manual-card .ins-kind.ann,
html[data-theme="dark"] .document-page .manual-wrapper .manual-card .ins-kind.upd,
html[data-theme="dark"] .document-page .manual-wrapper .manual-card .ins-kind.rem{
  background:var(--sd-chip);
  color:var(--sd-accent-2);
}
/* Lencana jenis pengumuman (Announcement / Update / Reminder / Info).
   Kelasnya `.peng-jenis` dengan warna latar pastel terang, dan modul
   tema sebelumnya BELUM punya aturan untuknya - inilah yang membuat
   lencana "PDF"/"2 Jam Lalu" tampak biru muda terang di panel gelap. */
html[data-theme="dark"] .peng-jenis.ann{background:#16223c;color:var(--sd-accent-2);border-color:#31456d}
html[data-theme="dark"] .peng-jenis.upd{background:var(--sd-warn-bg);color:var(--sd-warn);border-color:var(--sd-warn-line)}
html[data-theme="dark"] .peng-jenis.rem{background:var(--sd-bad-bg);color:var(--sd-bad);border-color:var(--sd-bad-line)}
html[data-theme="dark"] .peng-jenis.inf{background:var(--sd-chip);color:var(--sd-text-soft);border-color:var(--sd-line)}
/* Lencana format berkas di tabel Manual Book dashboard. */
html[data-theme="dark"] .mb-format{background:var(--sd-chip);color:var(--sd-accent-2);border-color:var(--sd-line)}
/* ---------- Wadah yang tertinggal terang di mode malam ----------
   Aturan gelap bawaan dashboard hanya mengubah border pada beberapa
   komponen ini, jadi latar putihnya masih terlihat. */
html[data-theme="dark"] .doc-cat{background:#1b2a49;border-color:#31456d;color:#cfe1f8}
html[data-theme="dark"] .doc-cat:hover{background:#24365c;border-color:#4a6ea8;color:#fff}
html[data-theme="dark"] .doc-cat.is-active{background:#1d4e86;border-color:#1d4e86;color:#fff}
html[data-theme="dark"] .doc-cat-badge.is-mb{background:#16223c;color:#7db4f5}
html[data-theme="dark"] .doc-cat-badge.is-ann{background:#0f2e26;color:#6ee7b7}
html[data-theme="dark"] .peng-form{background:#101a2e;border-color:var(--sd-line)}
html[data-theme="dark"] .peng-form .dashboard-field>span{color:var(--sd-text-soft)}
html[data-theme="dark"] .peng-form .dashboard-field>span small{color:var(--sd-text-faint)}
html[data-theme="dark"] .peng-form input[type="file"]::file-selector-button{color:var(--sd-text-soft)}
html[data-theme="dark"] .backup-bar{background:#16223c}
html[data-theme="dark"] .dashboard-error{background:#33201f;border-color:#6b3833;color:#fca5a5}
/* Form Akses Odoo (mode malam) */
html[data-theme="dark"] .odoo-field span{color:#a9bcd4}
html[data-theme="dark"] .odoo-field input{background:#0f1a2e;border-color:#31456d;color:#e4edf7}
html[data-theme="dark"] .odoo-field input:focus{border-color:#5b9df8;box-shadow:0 0 0 3px rgba(91,157,248,.2)}
html[data-theme="dark"] .odoo-field input::placeholder{color:#6b7f9c}
html[data-theme="dark"] .odoo-note,
html[data-theme="dark"] .odoo-hint{color:#8a9cb8}
html[data-theme="dark"] .odoo-success{background:#0f2e26;border-color:#1f5c48;color:#6ee7b7}
/* Daftar koneksi Odoo (multi-koneksi, mode malam) */
html[data-theme="dark"] .odoo-sub{color:#7db4f5}
html[data-theme="dark"] .odoo-count{color:#8a9cb8}
html[data-theme="dark"] .odoo-divider{background:#22314f}
html[data-theme="dark"] .odoo-list-empty{color:#8a9cb8}
html[data-theme="dark"] .odoo-item{background:#0f1a2e;border-color:#2a3a5c}
html[data-theme="dark"] .odoo-item-title{color:#cfe0f5}
html[data-theme="dark"] .odoo-item-title .odoo-tag{background:#1a2c4a;color:#9dc4f8}
html[data-theme="dark"] .odoo-item-title .odoo-tag.is-off{background:#232c3c;color:#8b98ab}
html[data-theme="dark"] .odoo-item-meta{color:#8a9cb8}
html[data-theme="dark"] .odoo-item-key{color:#6b7f9c}
html[data-theme="dark"] .odoo-add{background:#101c30;border-color:#2f4064}
html[data-theme="dark"] .odoo-add summary{color:#7db4f5}
html[data-theme="dark"] .dashboard-small-button.primary{background:#1d4e86;border-color:#1d4e86;color:#fff}
html[data-theme="dark"] .dashboard-small-button.primary:hover:not(:disabled){background:#2a5fa0;border-color:#2a5fa0}
html[data-theme="dark"] .ib-modal-ts{background:#16223c;border-color:var(--sd-line);color:var(--sd-accent-2)}
/* =============================================================
   18. Mode malam untuk panel Total Project
   ============================================================= */
html[data-theme="dark"] .home-project-panel{background:var(--sd-panel);border-color:var(--sd-line);box-shadow:var(--sd-shadow)}
html[data-theme="dark"] .home-project-panel h2{color:var(--sd-accent-2)}
html[data-theme="dark"] .home-project-panel .dashboard-section-head p{color:var(--sd-text-faint)}
html[data-theme="dark"] .project-box{background:linear-gradient(180deg,#18243d 0%,#131d33 100%);border-color:var(--sd-line)}
html[data-theme="dark"] .project-box-sub{background:linear-gradient(180deg,#14252b 0%,#101d24 100%);border-color:#1f4a4e}
html[data-theme="dark"] .project-box-label{color:var(--sd-text)}
html[data-theme="dark"] .project-box-value{color:var(--sd-accent-2)}
html[data-theme="dark"] .project-box-sub .project-box-value{color:#5eead4}
html[data-theme="dark"] .project-box-icon{background:#1b2a49}
html[data-theme="dark"] .project-box-sub .project-box-icon{background:#0f2e33;color:#5eead4}
html[data-theme="dark"] .project-box-note{color:var(--sd-text-faint)}
html[data-theme="dark"] .project-box.is-error .project-box-value{color:var(--sd-text-faint)}
/* =============================================================
   19. Mode malam untuk section Total Project di dashboard
   ============================================================= */
html[data-theme="dark"] .prj-stat{background:var(--sd-panel);border-color:var(--sd-line)}
html[data-theme="dark"] .prj-stat:nth-child(2){border-color:#1f4a4e}
html[data-theme="dark"] .prj-stat span{color:var(--sd-text-faint)}
html[data-theme="dark"] .prj-stat strong{color:var(--sd-accent-2)}
html[data-theme="dark"] .prj-stat:nth-child(2) strong{color:#5eead4}
html[data-theme="dark"] .prj-stat:nth-child(3) strong{color:#93c5fd}
html[data-theme="dark"] .prj-form{background:var(--sd-panel-3);border-color:var(--sd-line)}
html[data-theme="dark"] .prj-form .dashboard-field span{color:var(--sd-text-soft)}
html[data-theme="dark"] .prj-form .dashboard-field span small{color:var(--sd-text-faint)}
html[data-theme="dark"] .prj-tabel .prj-nama{color:var(--sd-text)}
html[data-theme="dark"] .prj-tabel .prj-company,
html[data-theme="dark"] .prj-tabel .prj-pm{color:var(--sd-text-soft)}
html[data-theme="dark"] .prj-tabel .prj-remark,
html[data-theme="dark"] .prj-tabel .prj-kosong{color:var(--sd-text-faint)}
html[data-theme="dark"] .prj-tabel .prj-col-no,
html[data-theme="dark"] .prj-tabel .prj-periode{color:var(--sd-accent-2)}
html[data-theme="dark"] .prj-tabel .prj-kosong{color:#5b6b83!important}
html[data-theme="dark"] .prj-tabel .prj-col-no .prj-kosong{color:var(--sd-text-faint)!important}
html[data-theme="dark"] .prj-btn{background:var(--sd-panel);border-color:var(--sd-line);color:var(--sd-accent-2)}
html[data-theme="dark"] .prj-btn:hover{background:#1b2a49;border-color:var(--sd-accent)}
html[data-theme="dark"] .prj-btn.is-danger{border-color:var(--sd-bad-line);color:var(--sd-bad)}
html[data-theme="dark"] .prj-btn.is-danger:hover{background:var(--sd-bad-bg)}
html[data-theme="dark"] .prj-flash{background:var(--sd-ok-bg);border-color:var(--sd-ok-line);color:var(--sd-ok)}
html[data-theme="dark"] .prj-flash.is-err{background:var(--sd-bad-bg);border-color:var(--sd-bad-line);color:var(--sd-bad)}
/* ---------- 15. Pergantian halus ---------- */
@media (prefers-reduced-motion:no-preference){
  body,header,footer,.card-section,.sheet-wrapper,.insight,.ins-summary-block,
  .rekap-total,.trend-panel,.rekap-filter-panel,.inbound-card,.inbound-break,
  .manual-search,.ins-search,.ins-card,.ins-stat,.tupoksi-item,.app-box,
  .shift-card,.manual-no-result,.inbound-filter,.inbound-form,.dashboard-user,
  .nato-table,.inbound-table-wrap,.announcement-table-wrap{
    transition:background-color .22s ease,border-color .22s ease,color .22s ease,box-shadow .22s ease;
  }
}
/* =========================================================
   Trend Tiket Harian — panel di bawah kartu Rekap (index)
   ========================================================= */

.trend-panel{
  --trend-h:210px;
  --dot:10px;
  --series:#0b3c74;
  --series-fill:#2f86d6;
  margin-top:20px;
  padding:22px 22px 18px;
  border:1px solid #e4edf5;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:0 10px 26px rgba(16,42,67,.08);
}
/* panel trend Task — aksen teal, selaras kartu Total Task */
.trend-panel-task{
  --series:#0b6a70;
  --series-fill:#0ea5a4;
  border-color:#d9eef0;
  background:linear-gradient(180deg,#ffffff 0%,#fbfeff 100%);
}
/* ---------- dua panel berdampingan (kanan–kiri) ---------- */
.trend-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.trend-grid .trend-panel{margin-top:0}
/* penyesuaian saat lebar separuh (hanya jika berdampingan) */
@media(min-width:1025px){
  .trend-grid .trend-panel{--trend-h:196px;padding:18px 16px 14px}
  .trend-grid .trend-yaxis{flex:0 0 30px;width:30px;font-size:9.5px}
  .trend-grid .trend-val{font-size:10px;bottom:calc(var(--pct,0) * 1% + 12px)}
  .trend-grid .trend-x{font-size:10px}
  .trend-grid .trend-title{font-size:15px}
  .trend-grid .trend-sub{font-size:12.5px}
  .trend-grid .trend-legend{font-size:12px}
  .trend-grid .trend-avg span{top:-16px;font-size:9.5px}
  .trend-grid .trend-foot{font-size:12px}
}
/* lebih kecil dari tablet: kembali bertumpuk */
@media(max-width:1024px){
  .trend-grid{grid-template-columns:minmax(0,1fr);gap:14px}
}
/* ---------- kepala ---------- */
.trend-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.trend-title{
  color:#102a43;
  font-size:16px;
  font-weight:800;
  line-height:1.3;
}
.trend-sub{
  margin-top:5px;
  color:#627d98;
  font-size:13px;
  font-weight:600;
  line-height:1.5;
}
.trend-legend{
  display:flex;
  align-items:center;
  gap:7px;
  color:#627d98;
  font-size:12.5px;
  font-weight:700;
  white-space:nowrap;
}
.trend-legend-dot{
  width:11px;height:11px;
  border-radius:50%;
  background:var(--series,#0b3c74);
  border:2px solid #fff;
  box-shadow:0 1px 4px rgba(11,60,116,.35);
}
/* Angka total pada keterangan grafik. */
.trend-legend-val{
  display:inline-block;
  min-width:22px;
  padding:1px 8px;
  border-radius:999px;
  background:var(--sd-panel-2,#eef4fa);
  color:var(--sd-text,#102a43);
  font-size:12px;
  font-weight:800;
  font-variant-numeric:tabular-nums;
  text-align:center;
}
/* ---------- kerangka grafik ---------- */
.trend-frame{
  display:flex;
  gap:8px;
  margin-top:20px;
}
.trend-yaxis{
  flex:0 0 36px;
  width:36px;
  height:var(--trend-h);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  align-items:flex-end;
  color:#829ab1;
  font-size:10.5px;
  font-weight:700;
}
.trend-main{
  flex:1;
  min-width:0;
}
.trend-area{
  position:relative;
  height:var(--trend-h);
}
.trend-lines{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.trend-lines i{
  position:absolute;
  left:0;right:0;
  height:1px;
  background:#eaf1f8;
}
/* garis rata-rata */
.trend-avg{
  position:absolute;
  left:0;right:0;
  height:0;
  border-top:1px dashed #9fb3c8;
  pointer-events:none;
  z-index:6;
}
.trend-avg span{
  position:absolute;
  left:0;
  right:auto;
  top:-17px;
  z-index:7;
  padding:1px 7px;
  border-radius:6px;
  background:#eef4fa;
  color:#486581;
  font-size:10.5px;
  font-weight:800;
  line-height:1.5;
}
/* ---------- garis & titik ---------- */
.trend-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  overflow:visible;
  pointer-events:none;
}
.trend-line{
  fill:none;
  stroke:var(--series,#0b3c74);
  stroke-width:3;
  stroke-linejoin:round;
  stroke-linecap:round;
}
.trend-fill{stroke:none}
.trend-gradient .stop-a{stop-color:var(--series-fill,#2f86d6);stop-opacity:.38}
.trend-gradient .stop-b{stop-color:var(--series-fill,#2f86d6);stop-opacity:0}
/* ---------- zona kolom (area hover) ---------- */
.trend-cols{
  position:absolute;
  inset:0;
  display:flex;
  gap:0;
}
.trend-col{
  position:relative;
  flex:1 1 0;
  min-width:0;
  height:100%;
}
.trend-col::before{
  content:"";
  position:absolute;
  left:50%;top:0;bottom:0;
  width:1px;
  background:#cbd9e6;
  opacity:0;
  transition:opacity .15s ease;
  pointer-events:none;
}
.trend-col:hover::before{opacity:1}
.trend-val{
  position:absolute;
  left:0;right:0;
  bottom:calc(var(--pct,0) * 1% + 13px);
  text-align:center;
  color:var(--series,#0b3c74);
  font-size:10.5px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  pointer-events:none;
}
/* Saat titik banyak, angka boleh sedikit keluar dari lebar kolomnya
   (transform) tetapi tetap rapat dan tidak menimpa tetangga karena
   kolomnya sempit; tanda angka ganjil digeser naik supaya tidak
   bertabrakan dengan angka genap di sebelahnya. */
.trend-chart.is-compact .trend-val{
  bottom:calc(var(--pct,0) * 1% + 11px);
  letter-spacing:-.3px;
}
.trend-chart.is-compact .trend-col:nth-child(even) .trend-val{
  bottom:calc(var(--pct,0) * 1% + 22px);
  opacity:.82;
}
.trend-dot{
  position:absolute;
  left:50%;
  bottom:calc(var(--pct,0) * 1% - var(--dot,10px) / 2);
  width:var(--dot,10px);
  height:var(--dot,10px);
  border-radius:50%;
  background:var(--series,#0b3c74);
  border:2px solid #fff;
  box-shadow:0 1px 5px rgba(11,60,116,.40);
  transform:translateX(-50%);
  transition:transform .15s ease, box-shadow .15s ease;
}
.trend-dot.is-zero{background:#b9c9d8}
.trend-col:hover .trend-dot{
  transform:translateX(-50%) scale(1.35);
  box-shadow:0 2px 9px rgba(11,60,116,.45);
}
/* ---------- label tanggal ---------- */
.trend-labels{
  display:flex;
  gap:0;
  margin-top:9px;
}
.trend-x{
  flex:1 1 0;
  min-width:0;
  overflow:hidden;
  text-align:center;
  color:#829ab1;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.trend-foot{
  margin-top:13px;
  color:#829ab1;
  font-size:12.5px;
  font-weight:600;
}
.trend-empty{
  padding:38px 12px;
  text-align:center;
  color:#9fb3c8;
  font-size:13.5px;
  font-weight:700;
}
.trend-chart.is-error .trend-empty{color:#b42318}
/* Angka data di atas setiap titik SELALU tampil (dulu disembunyikan saat
   data padat). Ukurannya dikecilkan bertahap agar tetap rapi dan tidak
   saling menimpa walau ada banyak titik. */
.trend-chart.is-compact .trend-line{stroke-width:2.5}
.trend-chart.is-compact .trend-dot{--dot:7px}
.trend-chart.is-compact .trend-val{font-size:9px}
.trend-chart.is-tiny .trend-dot{--dot:5px}
.trend-chart.is-tiny .trend-val{font-size:8px}
/* ---------------- responsive ---------------- */
@media(max-width:768px){
  .trend-panel{--trend-h:170px;--dot:9px;padding:18px 14px 15px;border-radius:15px}
  .trend-title{font-size:15px}
  .trend-sub{font-size:12.5px}
  .trend-frame{gap:6px;margin-top:16px}
  .trend-yaxis{flex:0 0 30px;width:30px;font-size:9.5px}
  .trend-val{font-size:9.5px;bottom:calc(var(--pct,0) * 1% + 11px)}
  .trend-line{stroke-width:2.5}
  .trend-x{font-size:10px}
  .trend-avg span{font-size:9.5px;top:-15px}
  .trend-foot{font-size:11.5px}
}
/* =========================================================
   Cegah panel trend mendorong halaman ke samping di layar kecil.
   "grid-template-columns:1fr" setara minmax(auto,1fr): lebar
   minimum ikut isi grafik, sehingga kolom melebar keluar wadahnya.
   ========================================================= */
.trend-grid > .trend-panel,
.trend-grid .trend-frame,
.trend-grid .trend-chart,
.trend-grid .trend-x,
.trend-grid .trend-foot{min-width:0}
/* .trend-svg memakai position:absolute + width/height:100%,
   jadi sudah mengikuti wadahnya sendiri. Jangan tetapkan height
   di sini karena akan menekan tinggi grafik. */
.trend-grid .trend-chart svg,
.trend-grid .trend-chart canvas{max-width:100%}
/* ---------- sumbu X pada layar sempit ----------
   13 label tanggal tidak muat di lebar ponsel, jadi tampilkan
   selang-seling supaya tidak saling tumpang tindih. */
@media(max-width:560px){
  .trend-grid .trend-labels .trend-x:nth-child(2n){display:none}
  .trend-grid .trend-labels .trend-x{font-size:9.5px}
}
/* =========================================================
   GRAFIK BATANG (Tiket per Service Desk / Assigned To)
   Dipakai di halaman index di bawah grafik trend.
   ========================================================= */
.bar-grid{margin-top:18px}
.bar-list{
  display:flex;
  flex-direction:column;
  gap:9px;
  margin-top:16px;
  /* Kotak bergulir: tinggi dikunci agar hanya 5 nama yang terlihat
     sekaligus, sisanya digulir di dalam kotak. */
  max-height:168px;
  overflow-y:auto;
  overflow-x:hidden;
  padding-right:4px;
  scrollbar-width:thin;
}
.bar-list::-webkit-scrollbar{width:9px}
.bar-list::-webkit-scrollbar-track{background:#f2f7fb;border-radius:999px}
.bar-list::-webkit-scrollbar-thumb{background:#c3d9ec;border-radius:999px;border:2px solid #f2f7fb}
.bar-list::-webkit-scrollbar-thumb:hover{background:#9fc0e0}
html[data-theme="dark"] .bar-list::-webkit-scrollbar-track{background:#101a2e}
html[data-theme="dark"] .bar-list::-webkit-scrollbar-thumb{background:#31456d;border-color:#101a2e}
.bar-row{
  display:grid;
  grid-template-columns:132px 1fr 46px;
  align-items:center;
  gap:10px;
}
.bar-name{
  text-align:right;
  font-size:12px;
  font-weight:700;
  color:var(--sd-text,#102a43);
  line-height:1.2;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.bar-track{
  position:relative;
  height:24px;
  border-radius:7px;
  background:var(--sd-panel-2,#eef4fa);
  overflow:hidden;
}
.bar-fill{
  position:absolute;
  left:0;top:0;bottom:0;
  border-radius:7px;
  background:linear-gradient(90deg,var(--series-fill,#2f86d6),var(--series,#0b3c74));
  transition:width .5s ease;
}
.trend-panel-task .bar-fill{
  background:linear-gradient(90deg,var(--series-fill,#0ea5a4),var(--series,#0b6a70));
}
.bar-val{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  font-size:11.5px;
  font-weight:800;
  color:var(--sd-text,#102a43);
  font-variant-numeric:tabular-nums;
  text-shadow:0 1px 2px var(--sd-panel,#fff), 0 0 6px var(--sd-panel,#fff);
}
.bar-share{
  font-size:11px;
  font-weight:700;
  color:var(--sd-text-faint,#829ab1);
  text-align:right;
  font-variant-numeric:tabular-nums;
}
.bar-empty{
  padding:44px 12px;
  text-align:center;
  color:#9fb3c8;
  font-size:13.5px;
  font-weight:700;
}
.bar-list.is-error .bar-empty{color:#b42318}
/* Mode malam: isian batang memakai warna lebih terang agar kontras. */
html[data-theme="dark"] .bar-track{background:rgba(255,255,255,.07)}
html[data-theme="dark"] .bar-name{color:var(--sd-text)}
html[data-theme="dark"] .bar-val{color:#dbe7f5;text-shadow:0 1px 2px rgba(0,0,0,.55),0 0 6px rgba(0,0,0,.55)}
html[data-theme="dark"] .bar-share{color:var(--sd-text-faint)}
html[data-theme="dark"] .trend-panel-bar .bar-fill{background:linear-gradient(90deg,#3b82f6,#1d4e86)}
html[data-theme="dark"] .trend-panel-task .bar-fill{background:linear-gradient(90deg,#14b8a6,#0f766e)}
/* Ponsel: nama pindah ke baris atas, bar mendatar penuh. */
@media(max-width:560px){
  .bar-row{grid-template-columns:1fr 42px;gap:4px 8px}
  .bar-name{grid-column:1 / -1;text-align:left;white-space:normal;font-size:12.5px}
  .bar-track{height:22px}
  .bar-share{align-self:center}
}
/* ============================================================
   Ringkasan Manual Book
   Memakai komponen visual yang sama dengan Ringkasan Pengumuman;
   hanya grafik bawah disesuaikan untuk kategori dokumen.
   ============================================================ */

.manual-summary-panel {
  margin-top: 16px;
}
/* Dua kategori membuat batang grafik lebih enak dilihat bila
   dipusatkan dan diberi lebar terbatas, bukan melebar penuh. */
.manual-summary-panel .ann-sum-bars {
  justify-content: center;
  gap: 28px;
}
.manual-summary-panel .ann-sum-bar {
  flex: 0 1 220px;
  max-width: 220px;
  padding: 0 10px;
}
.manual-summary-panel .ann-sum-bar-track i {
  width: 70%;
  max-width: 92px;
}
.manual-summary-panel .ann-sum-bar-lab {
  max-width: 190px;
  white-space: normal;
}
@media (max-width: 760px) {
  .manual-summary-panel .ann-sum-bars {
    justify-content: flex-start;
    gap: 0;
  }

  .manual-summary-panel .ann-sum-bar {
    flex: 1 0 50%;
    max-width: none;
    min-width: 120px;
    padding: 0 6px;
  }

  .manual-summary-panel .ann-sum-bar-track i {
    width: 62%;
    max-width: 70px;
  }
}
/* =========================================================
   TOTAL PROJECT - section dashboard administrator
   ------------------------------------------------------------
   Form tambah/ubah + tabel daftar project dengan tombol Ubah
   dan Hapus. Mengikuti gaya section pengumuman & inbound yang
   sudah ada (dashboard-*.css).
   ========================================================= */

.dashboard-section-head-actions{
  display:flex;align-items:center;gap:8px;flex-wrap:nowrap;
}
/* Judul boleh menyusut, area kontrol tetap utuh. Tanpa ini judul yang
   panjang akan mendorong kotak pencarian turun ke baris sendiri. */
#project .dashboard-section-head>div:first-child{min-width:0;flex:1 1 320px}
#project .dashboard-section-head-actions{flex:0 0 auto}
/* ---------- kotak pencarian ----------
   Lebarnya responsif, bukan angka tetap. Angka di bawah hasil
   pengukuran di peramban, bukan tebakan:
     - teks placeholder "Cari nama project, company, atau PM" = 264px
     - + padding kiri/kanan 2 x 12px                          = 288px
     - + tombol hapus bawaan Chrome (type="search")   ~24px    = 312px
   min-width 312px dipakai karena 264px pas-pasan tanpa kelonggaran
   sehingga huruf terakhir masih terpotong. Kalau layar memang tidak
   cukup, kepala section turun satu baris (flex-wrap) alih-alih
   memotong teks. */
.prj-cari{
  flex:1 1 312px;
  min-width:312px;
  max-width:360px;
  height:42px;
  padding:0 12px;
}
/* Di bawah 900px area kontrol turun ke baris penuh dan boleh membungkus,
   karena tidak ada lagi ruang untuk tiga kontrol dalam satu baris. */
@media (max-width:900px){
  #project .dashboard-section-head>div:first-child{flex:1 1 100%}
  #project .dashboard-section-head-actions{
    flex:1 1 100%;width:100%;flex-wrap:wrap;
  }
  .prj-cari{flex:1 1 100%;max-width:none;min-width:0}
  #project .dashboard-section-head-actions .dashboard-small-button{flex:0 0 auto}
}
/* ---------- tiga angka ringkas ---------- */
.prj-kartu{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:16px 0 4px;
}
.prj-stat{
  border:1px solid var(--sd-line,#d9e2ec);
  border-left:4px solid #0f4c81;
  border-radius:12px;
  padding:13px 15px;
  background:#fff;
}
.prj-stat:nth-child(2){border-left-color:#0ea5a4}
.prj-stat:nth-child(3){border-left-color:#145da0}
.prj-stat span{
  display:block;
  font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
  color:#546e89;
}
.prj-stat strong{
  display:block;margin-top:6px;
  font-size:26px;font-weight:800;line-height:1.1;
  color:#0b3c74;
  font-variant-numeric:tabular-nums;
}
/* ---------- form ---------- */
.prj-form{
  margin-top:16px;
  padding:16px;
  border:1px solid #dfe8f1;
  border-radius:14px;
  background:#f9fcfe;
  display:flex;flex-direction:column;gap:12px;
}
.prj-row{
  display:grid;
  grid-template-columns:110px minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);
  gap:12px;
}
.prj-form .dashboard-field span{
  font-size:12px;font-weight:800;color:#334e68;
}
.prj-form .dashboard-field span small{
  font-weight:600;color:#546e89;
}
.prj-aksi{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.prj-aksi .dashboard-button{height:42px;padding:0 18px}
/* ---------- tabel ---------- */
.prj-daftar-wrap{margin-top:16px;max-height:520px}
.prj-tabel{min-width:760px}
/* dashboard.css memberi white-space:nowrap ke semua sel .dashboard-table.
   Di sini dibalik supaya Nama Project & Remark boleh membungkus - kalau
   tidak, kolom Aksi terdorong keluar layar dan tombol Ubah/Hapus tidak
   terlihat tanpa menggeser tabel. */
.prj-tabel th,.prj-tabel td{white-space:normal}
.prj-tabel .prj-col-no{
  width:48px;text-align:center;
  color:#0f4c81;font-weight:800;
  font-variant-numeric:tabular-nums;
}
.prj-tabel td{vertical-align:top;padding:11px 10px}
.prj-tabel .prj-nama{
  min-width:200px;max-width:420px;
  color:#102a43;font-weight:600;
  overflow-wrap:anywhere;line-height:1.5;
}
.prj-tabel .prj-company{
  min-width:130px;max-width:220px;
  color:#334e68;
  overflow-wrap:anywhere;line-height:1.5;
}
.prj-tabel .prj-pm{white-space:nowrap;color:#334e68}
.prj-tabel .prj-periode{white-space:nowrap;color:#0f4c81;font-weight:700}
.prj-tabel .prj-remark{
  min-width:140px;max-width:240px;
  color:#546e89;
  overflow-wrap:anywhere;line-height:1.5;
}
.prj-tabel .prj-kosong{color:#9aa8b6;font-style:normal}
.prj-tabel .prj-col-aksi{width:112px;text-align:right;white-space:nowrap}
.prj-aksi-sel{
  display:flex;gap:5px;justify-content:flex-end;
}
.prj-btn{
  border:1px solid #c8dced;
  background:#fff;
  color:#0f4c81;
  border-radius:8px;
  padding:5px 8px;
  font:700 11.5px/1.4 inherit;
  cursor:pointer;
  min-width:50px;
  transition:background .12s,border-color .12s,color .12s;
}
.prj-btn:hover{background:#eaf2f9;border-color:#0f4c81}
.prj-btn:focus-visible{outline:2px solid #2f86d6;outline-offset:2px}
.prj-btn.is-danger{border-color:#f0c2c2;color:#b42318}
.prj-btn.is-danger:hover{background:#fff6f6;border-color:#b42318}
.prj-btn[disabled]{opacity:.5;cursor:not-allowed}
.prj-flash{
  display:none;
  padding:5px 11px;border-radius:999px;
  font-size:12px;font-weight:700;
  border:1px solid #b7e0c6;background:#eafaf0;color:#0a6b3d;
}
.prj-flash.is-on{display:inline-block}
.prj-flash.is-err{border-color:#f0c2c2;background:#fff6f6;color:#b42318}
/* ---------- responsive ---------- */
@media(max-width:900px){
  .prj-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .prj-kartu{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .prj-kartu{grid-template-columns:1fr;gap:10px}
  .prj-row{grid-template-columns:1fr}
  .prj-form{padding:14px}
  .prj-aksi{flex-direction:column;align-items:stretch}
  .prj-aksi .dashboard-button{width:100%}
  .prj-aksi .dashboard-small-button{width:100%}
  .prj-tabel{min-width:760px}
}
/* Komponen khusus Manajemen Pengguna Dashboard */
.dashboard-user-management{margin-top:22px;border-top:1px solid #d9e2ec;background:#fff}
.dashboard-user-management .dashboard-section-head{padding-bottom:18px;border-bottom:1px solid #e8f0f6}
.dashboard-user-form{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1.1fr) minmax(150px,.8fr) 170px;align-items:end;gap:14px;margin:18px 0 16px;padding:18px;border:1px solid #d9e2ec;border-radius:12px;background:#fff}
.dashboard-field label{color:#627d98;font-size:12px;font-weight:800;line-height:1.2}
.dashboard-input,.dashboard-select{width:100%;height:42px;min-width:0;padding:0 12px;border:1px solid #c8dced;border-radius:9px;background:#fff;color:#102a43;font:inherit}
.dashboard-input:focus,.dashboard-select:focus{outline:0;border-color:#145da0;box-shadow:0 0 0 3px #145da01f}
.dashboard-user-form .dashboard-button{width:100%;height:42px;margin:0;white-space:nowrap}
.dashboard-form-message{display:none;margin:0 0 14px;padding:10px;border-radius:8px;font-size:13px}
.dashboard-form-message.is-error{display:block;background:#fff1f0;color:#b42318;border:1px solid #ffd5d2}
.dashboard-user-list{overflow:auto;border:1px solid #d9e2ec;border-radius:12px}
.dashboard-user-list .dashboard-table{width:100%;min-width:760px;table-layout:fixed}
.dashboard-user-actions{display:flex;align-items:center;gap:9px;white-space:nowrap}
.dashboard-small-button{display:inline-flex;align-items:center;justify-content:center;min-width:124px;height:42px;padding:0 13px;border:0;border-radius:9px;background:#145da0;color:#fff;font:800 12px inherit;cursor:pointer;transition:.2s}
.dashboard-small-button:hover{background:#0f4c81;transform:translateY(-1px)}
.dashboard-small-button.danger:hover{background:#ffe8e5;color:#991b1b}
@media(max-width:700px){.dashboard-user-form{grid-template-columns:1fr;margin-top:14px;padding:14px}.dashboard-user-form .dashboard-button{width:100%}.dashboard-user-actions{flex-wrap:wrap}.dashboard-small-button{min-width:110px}.dashboard-user-list{margin-top:8px}}
:root{--navy:#0b2d4d;--blue:#0f4c81;--teal:#0ea5a4;--ink:#102a43;--muted:#627d98;--line:#d9e2ec;--bg:#f4f7fb;--danger:#b42318}
*{box-sizing:border-box}
body.dashboard-page{margin:0;min-height:100vh;background:linear-gradient(135deg,#f7fbff,#eef5fb);color:var(--ink);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.dashboard-topbar{background:#fff;color:var(--ink);padding:14px clamp(18px,5vw,72px);display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:1px solid var(--line);box-shadow:0 1px 6px #102a4308}
.dashboard-brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:17px;font-weight:800}
.dashboard-brand-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#e0f2fe;color:var(--blue);font-size:19px}
.dashboard-nav{display:flex;align-items:center;gap:18px;margin-left:auto}
.dashboard-nav a{color:var(--muted);font-size:13px;font-weight:700;text-decoration:none}
.dashboard-nav a:hover{color:var(--blue)}
.dashboard-user{margin-right:14px;color:var(--muted);font-size:13px}
.dashboard-logout,.dashboard-button{border:0;border-radius:9px;padding:10px 14px;background:var(--blue);color:#fff;font-weight:700;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.dashboard-logout{border:1px solid #bfdbfe;background:#eff6ff;color:var(--blue)}
.dashboard-logout:hover,.dashboard-button:hover{background:var(--teal);color:#fff}
.dashboard-main{max-width:1180px;margin:0 auto;padding:40px 24px 56px}
.dashboard-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}
.dashboard-kicker{color:var(--teal);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.dashboard-hero h1{margin:7px 0;color:var(--ink);font-size:clamp(28px,4vw,42px);letter-spacing:-.04em}
.dashboard-hero p{margin:0;color:var(--muted)}
.dashboard-status{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:13px;box-shadow:0 4px 15px #102a4310;white-space:nowrap}
.dashboard-status-dot{width:8px;height:8px;border-radius:50%;background:#f59e0b}
.dashboard-status.is-ok{color:#087f5b}
.dashboard-status.is-ok .dashboard-status-dot{background:#12b886}
.dashboard-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:18px}
.dashboard-card{padding:24px;border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 8px 24px #102a430f}
.dashboard-stat{position:relative;min-height:116px}
.dashboard-stat-icon{position:absolute;right:22px;top:22px;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#e8f4ff}
.dashboard-label{color:var(--muted);font-size:13px;font-weight:700}
.dashboard-value{margin-top:9px;color:var(--blue);font-size:32px;font-weight:800}
.dashboard-value.database{font-size:17px;margin-top:14px;max-width:170px;overflow:hidden;text-overflow:ellipsis}
.dashboard-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}
.dashboard-section-head h2{margin:0;font-size:18px;color:var(--ink)}
.dashboard-section-head p{margin:5px 0 0;color:var(--muted);font-size:13px}
.dashboard-actions{display:flex;flex-wrap:wrap;gap:8px}
.dashboard-table-wrap{overflow:auto;max-height:620px;border:1px solid var(--line);border-radius:12px}
.dashboard-table{width:100%;min-width:1500px;border-collapse:separate;border-spacing:0;background:#fff}
.dashboard-table th,.dashboard-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #edf2f7;font-size:12px;white-space:nowrap}
.dashboard-table th{position:sticky;top:0;z-index:1;background:#f4f8fc;color:var(--blue);font-size:11px;letter-spacing:.04em;text-transform:uppercase}
.dashboard-table tr:last-child td{border-bottom:0}
.dashboard-table tr:hover td{background:#f8fbfe}
.dashboard-empty{text-align:center!important;color:var(--muted);padding:24px!important}
.dashboard-error{display:none;margin-top:16px;padding:12px;border:1px solid #ffd5d2;border-radius:10px;background:#fff1f0;color:var(--danger);font-size:13px}
.dashboard-footer{padding:20px;border-top:1px solid var(--line);background:#fff;color:var(--muted);font-size:13px;text-align:center}
.dashboard-access{margin-top:22px}
.dashboard-access-row{display:grid;grid-template-columns:180px minmax(0,1fr);align-items:center;gap:22px;padding:14px 18px;border:1px solid #e3edf5;border-radius:10px;background:#fbfdff;font-size:14px;margin-top:9px}
.dashboard-access-row:last-child{border-bottom:1px solid #e3edf5}
.dashboard-access-label{display:block;color:var(--muted);font-weight:700;line-height:1.4}
.dashboard-access-label::after{content:':';margin-left:4px;color:#9fb3c8}
.dashboard-access-value{display:block;min-width:0;padding:7px 11px;border-radius:7px;background:#eef5fb;color:var(--blue);font-weight:800;text-align:left;overflow-wrap:anywhere}
.dashboard-user-form{display:grid;grid-template-columns:1.3fr 1fr 1fr auto;gap:10px;margin-bottom:16px}
.dashboard-input,.dashboard-select{width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font:inherit}
.dashboard-input:focus,.dashboard-select:focus{outline:0;border-color:var(--teal);box-shadow:0 0 0 3px #0ea5a41c}
.dashboard-form-message{display:none;margin-bottom:14px;padding:10px;border-radius:8px;font-size:13px}
.dashboard-form-message.is-error{display:block;background:#fff1f0;color:var(--danger);border:1px solid #ffd5d2}
.dashboard-form-message.is-success{display:block;background:#ecfdf5;color:#087f5b;border:1px solid #bbf7d0}
@media(max-width:700px){.dashboard-user-form{grid-template-columns:1fr}}
.dashboard-user-management{margin-top:22px;border-top:4px solid var(--blue)}
.dashboard-user-management .dashboard-section-head{padding-bottom:18px;border-bottom:1px solid #edf2f7}
.dashboard-user-form{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1.1fr) minmax(150px,.8fr) 170px;align-items:end;gap:14px;margin:18px 0 16px;padding:18px;border:1px solid #e3edf5;border-radius:12px;background:#f8fbfe}
.dashboard-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.dashboard-field label{color:var(--muted);font-size:12px;font-weight:800;line-height:1.2}
.dashboard-input,.dashboard-select{height:42px;min-width:0}
.dashboard-user-form .dashboard-button{width:100%;height:42px;min-height:42px;margin:0;white-space:nowrap}
.dashboard-form-message{margin-top:0}
.dashboard-user-list{margin-top:12px}
.dashboard-user-list .dashboard-table{min-width:760px;table-layout:fixed}
.dashboard-user-list .dashboard-table th:nth-child(1){width:30%}
.dashboard-user-list .dashboard-table th:nth-child(2){width:18%}
.dashboard-user-list .dashboard-table th:nth-child(3){width:27%}
.dashboard-user-list .dashboard-table th:nth-child(4){width:25%}
.dashboard-user-actions{display:flex;align-items:center;justify-content:flex-start;gap:9px;white-space:nowrap}
.dashboard-small-button{display:inline-flex;align-items:center;justify-content:center;min-width:124px;height:42px;padding:0 13px;border:0;border-radius:9px;background:var(--blue);color:#fff;font-size:12px;font-weight:800;cursor:pointer;transition:background .2s,transform .2s,box-shadow .2s}
.dashboard-small-button:hover{background:var(--teal);transform:translateY(-1px);box-shadow:0 5px 12px rgba(15,76,129,.15)}
.dashboard-small-button.danger{min-width:82px;border:1px solid #f0b7b0;background:#fff5f4;color:#b42318}
.dashboard-small-button.danger:hover{background:#ffe8e5;border-color:#e58d83;color:#991b1b}
.dashboard-user-actions .dashboard-small-button{font-family:inherit;line-height:1}
.dashboard-history{display:flex;align-items:center;gap:10px;margin:18px 0;padding:14px 16px;border:1px solid #d9e8f4;border-radius:10px;background:#f7fbff}
.dashboard-history-label{margin-right:auto;color:var(--muted);font-size:13px;font-weight:700}
.dashboard-history .dashboard-select,.dashboard-history .dashboard-input{width:auto;height:38px}
.dashboard-history .dashboard-button{height:38px;white-space:nowrap}
@media(max-width:700px){.dashboard-history{align-items:stretch;flex-direction:column}.dashboard-history-label{margin:0}.dashboard-history .dashboard-select,.dashboard-history .dashboard-input,.dashboard-history .dashboard-button{width:100%}}
@media(max-width:700px){.dashboard-topbar{padding:14px 18px}.dashboard-nav{display:none}.dashboard-user{display:none}.dashboard-main{padding:28px 15px 40px}.dashboard-hero{display:block}.dashboard-status{margin-top:18px}.dashboard-grid{grid-template-columns:1fr}.dashboard-card{padding:18px}.dashboard-section-head{align-items:flex-start;flex-direction:column}.dashboard-actions{width:100%}.dashboard-button{flex:1}.dashboard-user-form{grid-template-columns:1fr}.dashboard-access-row{grid-template-columns:1fr;gap:4px}.dashboard-access-value{text-align:left}}
.dashboard-topbar{padding-top:15px;padding-bottom:15px;box-shadow:0 2px 12px rgba(16,42,67,.08)}
.dashboard-brand{font-size:18px;letter-spacing:-.02em}
.dashboard-brand-icon{width:40px;height:40px;background:var(--blue);color:#fff;box-shadow:0 6px 14px rgba(15,76,129,.18)}
.dashboard-user{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid #c8dced;border-radius:999px;background:#f2f7fc;color:var(--blue);font-size:12px;font-weight:800}
.dashboard-logout,.dashboard-button{transition:transform .2s,background .2s,box-shadow .2s}
.dashboard-logout:hover,.dashboard-button:hover{transform:translateY(-1px);box-shadow:0 5px 12px rgba(15,76,129,.15)}
.dashboard-hero{padding:28px 30px;border:1px solid #d9e8f4;border-radius:18px;background:linear-gradient(135deg,#fff,#f1f7fc);box-shadow:0 10px 28px rgba(16,42,67,.07)}
.dashboard-card{box-shadow:0 10px 26px rgba(16,42,67,.07)}
.dashboard-last-updated{display:block;margin-top:8px;color:#627d98;font-size:12px;font-weight:600}
.dashboard-stat-note{display:block;margin-top:8px;color:var(--muted);font-size:11px;font-weight:600}
.dashboard-main>.dashboard-card{margin-top:26px}
.dashboard-main>.dashboard-grid{margin-bottom:0}
.dashboard-section-head{padding-bottom:4px}
.dashboard-card h2{line-height:1.35}
.dashboard-table-wrap{margin-top:6px}
.dashboard-history{margin-top:20px;margin-bottom:20px}
.dashboard-footer{margin-top:0}
@media(max-width:700px){.dashboard-user{display:none}.dashboard-hero{padding:22px 20px}}
.dashboard-grid{grid-template-columns:repeat(5,1fr)}
@media(max-width:1050px) and (min-width:701px){.dashboard-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:900px) and (min-width:701px){.dashboard-user-form{grid-template-columns:1fr 1fr}.dashboard-user-form .dashboard-button{width:auto}}
/* =========================================================
   Dashboard SISI - Layout sidebar + kartu statistik
   Menggantikan topbar lama. Token warna mendukung mode gelap.
   ========================================================= */

/* ---------- token ---------- */
:root{
  --bg:#eef2f7;
  /* Latar kerangka dipisah dari --bg: berkas theme.css lama memakai kelas
     .dashboard-page dan memetakan ulang --bg, sehingga latar jadi berbeda
     di halaman yang memuat theme.css. Token ini tidak ikut dipetakan. */
  --shell-bg:#eef2f7;
  --panel:#ffffff;
  --panel-2:#f8fafc;
  --sidebar:#ffffff;
  --text:#0f172a;
  --text-soft:#64748b;
  --text-faint:#94a3b8;
  --border:#e2e8f0;
  --border-soft:#eef2f7;
  --accent:#2563eb;
  --accent-ink:#ffffff;
  --accent-soft:#eff6ff;
  --green:#10b981; --green-soft:#ecfdf5;
  --red:#ef4444;   --red-soft:#fef2f2;
  --amber:#f59e0b; --amber-soft:#fffbeb;
  --violet:#8b5cf6;--violet-soft:#f5f3ff;
  --cyan:#06b6d4;  --cyan-soft:#ecfeff;
  --shadow:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.06);
  --shadow-sm:0 1px 3px rgba(15,23,42,.08);
  /* 284px: lebarnya diukur, bukan dikira-kira. Pada 246px dua menu
     ("Manual Book Service Desk" dan "Pengumuman Service Desk") tidak
     muat satu baris bersama lencana NEW, jadi teks membungkus dua
     baris - dan pembungkusan itu menambah tinggi menu sehingga
     scrollbar ikut muncul. 284px cukup untuk semua label satu baris
     DAN menu muat tanpa scrollbar di layar setinggi 768px.
     Sidebar lebih sempit bisa memakai tombol « (sb-collapsed). */
  --sb-w:284px;
  --radius:14px;
}
html[data-theme="dark"]{
  --bg:#0b1120;
  --shell-bg:#0b1120;
  --panel:#131d33;
  --panel-2:#18243d;
  --sidebar:#0f1729;
  --text:#e6edf7;
  --text-soft:#9aabc4;
  --text-faint:#7387a3;
  --border:#243352;
  --border-soft:#1c2841;
  --accent:#3b82f6;
  --accent-ink:#ffffff;
  --accent-soft:#1b2a49;
  --green:#34d399; --green-soft:#0f2e26;
  --red:#f87171;   --red-soft:#33201f;
  --amber:#fbbf24; --amber-soft:#33291a;
  --violet:#a78bfa;--violet-soft:#272043;
  --cyan:#22d3ee;  --cyan-soft:#0d2c34;
  --shadow:0 1px 2px rgba(0,0,0,.30),0 10px 30px rgba(0,0,0,.35);
  --shadow-sm:0 1px 3px rgba(0,0,0,.4);
}
/* ---------- kerangka ---------- */
body.dashboard-page{margin:0;background:var(--shell-bg);color:var(--text);font-family:Inter,"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif}
.app-shell{display:flex;min-height:100vh}
/* ---------- sidebar ---------- */
.sidebar{
  position:fixed;inset:0 auto 0 0;width:var(--sb-w);z-index:60;
  display:flex;flex-direction:column;
  background:var(--sidebar);border-right:1px solid var(--border);
  transition:width .2s ease,transform .22s ease;
}
.sb-brand{display:flex;align-items:center;gap:10px;padding:16px 16px 14px;border-bottom:1px solid var(--border-soft)}
.sb-brand-icon{
  flex:none;width:38px;height:38px;border-radius:10px;display:block;object-fit:contain;
  padding:2px;box-sizing:border-box;background:#fff;box-shadow:0 2px 7px rgba(16,42,67,.16);
}
.sb-brand-text{display:flex;flex-direction:column;line-height:1.2;min-width:0;overflow:hidden}
.sb-brand-text b{font-size:14.5px;font-weight:800;color:var(--text);white-space:nowrap}
.sb-brand-text small{font-size:9.5px;letter-spacing:.12em;color:var(--text-faint);font-weight:700}
.sb-collapse{
  margin-left:auto;flex:none;width:26px;height:26px;border-radius:7px;cursor:pointer;
  border:1px solid var(--border);background:var(--panel);color:var(--text-soft);font-size:13px;line-height:1;
}
.sb-collapse:hover{background:var(--panel-2);color:var(--text)}
.sb-nav{flex:1;overflow-y:auto;padding:12px 10px 14px}
.sb-label{margin:13px 8px 5px;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--text-faint)}
.sb-label:first-child{margin-top:2px}
.sb-item{
  display:flex;align-items:center;gap:10px;padding:8px 10px;margin-bottom:1px;border-radius:9px;
  color:var(--text-soft);text-decoration:none;font-size:13.5px;font-weight:600;
  border:0;background:transparent;width:100%;cursor:pointer;text-align:left;
  transition:background .15s,color .15s;
}
.sb-item:hover{background:var(--panel-2);color:var(--text)}
.sb-item.is-active{background:var(--accent-soft);color:var(--accent);font-weight:700}
/* Submenu di bawah Introduction (mis. PT SISI). Indentasi membuat
   hierarki terlihat tanpa perlu menu accordion tambahan. */
.sidebar .sb-subitem{width:calc(100% - 14px);margin-left:14px;padding-left:20px;font-size:12.5px}
.sidebar .sb-subitem .sb-ico{width:15px;font-size:12px}
body.sb-collapsed .sidebar .sb-subitem{width:100%;margin-left:0;padding-left:0}
/* Sidebar publik: semua item memakai satu tingkat indentasi yang sama
   dengan submenu Introduction, supaya hierarki tiap bagian konsisten. */
.home-page .sb-item:not(.sb-subitem),
.document-page .sb-item:not(.sb-subitem),
.login-page .sb-item:not(.sb-subitem){
  width:calc(100% - 14px);margin-left:14px;padding-left:20px;
}
.home-page .sb-item .sb-ico,
.document-page .sb-item .sb-ico,
.login-page .sb-item .sb-ico{width:15px}
.home-page.sb-collapsed .sb-item:not(.sb-subitem),
.document-page.sb-collapsed .sb-item:not(.sb-subitem),
.login-page.sb-collapsed .sb-item:not(.sb-subitem){
  width:100%;margin-left:0;padding-left:0;
}
.sb-ico{flex:none;width:18px;text-align:center;font-size:14px}
.sb-badge{margin-left:auto;padding:2px 7px;border-radius:999px;font-size:9.5px;font-weight:800;background:var(--violet-soft);color:var(--violet);text-transform:uppercase}
.sb-dot{margin-left:auto;width:7px;height:7px;border-radius:50%;background:var(--amber)}
.sb-foot{display:flex;align-items:center;gap:10px;padding:12px 14px;border-top:1px solid var(--border-soft);background:var(--panel-2)}
.sb-foot-avatar{
  flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;
  background:var(--accent);color:#fff;font-weight:800;font-size:13px;
}
.sb-foot-meta{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.sb-foot-meta b{font-size:13px;font-weight:700;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-foot-meta small{font-size:10.5px;color:var(--text-faint);text-transform:capitalize}
.sb-logout{margin-left:auto;flex:none;width:30px;height:30px;border-radius:8px;cursor:pointer;border:1px solid var(--border);background:var(--panel);color:var(--text-soft);font-size:14px}
.sb-logout:hover{background:var(--red-soft);color:var(--red);border-color:var(--red)}
/* sidebar ciut */
body.sb-collapsed{--sb-w:66px}
body.sb-collapsed .sb-brand-text,
body.sb-collapsed .sb-label,
body.sb-collapsed .sb-item span:not(.sb-ico),
body.sb-collapsed .sb-foot-meta,
body.sb-collapsed .sb-badge{display:none}
body.sb-collapsed .sb-brand{flex-direction:column;gap:8px;padding:10px 8px 8px}
body.sb-collapsed .sb-item{justify-content:center;padding:9px 0}
body.sb-collapsed .sb-collapse{margin:0}
body.sb-collapsed .sb-foot{justify-content:center}
body.sb-collapsed .sb-logout{margin:0}
.sb-scrim{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:55}
/* ---------- area utama ---------- */
.app-main{flex:1;min-width:0;margin-left:var(--sb-w);display:flex;flex-direction:column;transition:margin-left .2s ease}
.topbar{
  position:sticky;top:0;z-index:40;display:flex;align-items:center;gap:14px;
  padding:12px 22px;background:var(--panel);border-bottom:1px solid var(--border);
}
.tb-burger{display:none;width:34px;height:34px;border-radius:9px;border:1px solid var(--border);background:var(--panel);color:var(--text);cursor:pointer;font-size:15px}
.tb-crumb{font-size:13px;color:var(--text-faint);display:flex;align-items:center;gap:7px;white-space:nowrap}
.tb-crumb i{font-style:normal;opacity:.5}
.tb-crumb b{color:var(--text);font-weight:700}
.tb-search{
  margin-left:auto;display:flex;align-items:center;gap:8px;width:min(340px,38vw);
  padding:7px 11px;border:1px solid var(--border);border-radius:9px;background:var(--panel-2);
}
.tb-search-ico{font-size:12.5px;opacity:.6}
.tb-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:13px;color:var(--text)}
.tb-search input::placeholder{color:var(--text-faint)}
.tb-search kbd{flex:none;padding:2px 6px;border-radius:5px;border:1px solid var(--border);background:var(--panel);font-size:10px;color:var(--text-faint);font-family:inherit}
.tb-actions{display:flex;align-items:center;gap:8px}
/* Pil status - dipakai SEMUA halaman ber-kerangka dashboard */
.tb-online{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:700;
  color:var(--text-soft);padding:6px 11px;border:1px solid var(--border);border-radius:999px;
  background:var(--panel-2);white-space:nowrap}
.tb-online .status-dot{flex:none;width:8px;height:8px;border-radius:50%;background:var(--green);
  box-shadow:0 0 0 3px var(--green-soft);display:inline-block}
.tb-icon{
  position:relative;width:34px;height:34px;border-radius:9px;cursor:pointer;display:grid;place-items:center;
  border:1px solid var(--border);background:var(--panel);color:var(--text-soft);font-size:14px;line-height:1;
}
.tb-icon:hover{background:var(--panel-2);color:var(--text)}
.tb-icon:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.tb-badge-dot{position:absolute;top:6px;right:7px;width:7px;height:7px;border-radius:50%;background:var(--red);border:2px solid var(--panel)}
.tb-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#fff;font-weight:800;font-size:13px}
.content{padding:20px 22px 40px;flex:1;min-width:0}
/* Beri ruang untuk topbar lengket ketika scrollIntoView menuju sebuah section. */
.content > section[id]{scroll-margin-top:78px}
/* ---------- kepala halaman ---------- */
.page-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;margin-bottom:20px}
.page-date{margin:0 0 6px;font-size:10.5px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--text-faint);width:100%}
.page-title{margin:0;font-size:26px;font-weight:800;letter-spacing:-.02em;color:var(--text)}
.page-title span{color:var(--accent)}
.page-sub{margin:6px 0 0;font-size:13px;color:var(--text-soft);max-width:62ch;line-height:1.6}
.page-actions{margin-left:auto;display:flex;gap:9px;flex-wrap:wrap}
.btn-ghost,.btn-primary{
  display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border-radius:9px;cursor:pointer;
  font:inherit;font-size:13px;font-weight:700;transition:background .15s,transform .15s;
}
.btn-ghost{border:1px solid var(--border);background:var(--panel);color:var(--text)}
.btn-ghost:hover{background:var(--panel-2);transform:translateY(-1px)}
.btn-primary{border:1px solid var(--accent);background:var(--accent);color:#fff}
.btn-primary:hover{filter:brightness(1.07);transform:translateY(-1px)}
/* ---------- kartu statistik ---------- */
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}
.stat-card{
  position:relative;background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);
  padding:17px 18px;box-shadow:var(--shadow-sm);overflow:hidden;
  transition:transform .16s,box-shadow .16s;
}
.stat-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.stat-top{display:flex;align-items:center;gap:9px;margin-bottom:14px}
.stat-ico{flex:none;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;font-size:14px}
.stat-ico.c-green{background:var(--green-soft);color:var(--green)}
.stat-ico.c-red{background:var(--red-soft);color:var(--red)}
.stat-ico.c-amber{background:var(--amber-soft);color:var(--amber)}
.stat-ico.c-violet{background:var(--violet-soft);color:var(--violet)}
.stat-ico.c-cyan{background:var(--cyan-soft);color:var(--cyan)}
.stat-ico.c-accent{background:var(--accent-soft);color:var(--accent)}
.stat-label{font-size:12.5px;font-weight:700;color:var(--text-soft)}
.stat-trend{margin-left:auto;padding:3px 8px;border-radius:999px;font-size:10.5px;font-weight:800;white-space:nowrap}
.stat-trend.up{background:var(--green-soft);color:var(--green)}
.stat-trend.down{background:var(--red-soft);color:var(--red)}
.stat-trend.flat{background:var(--panel-2);color:var(--text-faint)}
/* Keadaan memuat: tiga titik yang berdenyut pelan, bukan "—" yang
   terlihat seperti tidak ada data. */
.stat-trend.is-loading{letter-spacing:1px;animation:sd-tren-muat 1.1s ease-in-out infinite}
@keyframes sd-tren-muat{0%,100%{opacity:.35}50%{opacity:.9}}
@media (prefers-reduced-motion:reduce){.stat-trend.is-loading{animation:none;opacity:.6}}
.stat-value{font-size:29px;font-weight:800;letter-spacing:-.025em;line-height:1.05;color:var(--text);font-variant-numeric:tabular-nums}
.stat-unit{font-size:15px;font-weight:700;color:var(--text-soft);margin-left:3px}
.stat-note{margin:9px 0 0;font-size:11.5px;color:var(--text-faint)}
.stat-note b{color:var(--text);font-weight:700}
/* ---------- panel ---------- */
.panel{
  background:var(--panel);border:1px solid var(--border);border-radius:var(--radius);
  padding:18px 20px 20px;margin-bottom:20px;box-shadow:var(--shadow-sm);
}
.panel-head{display:flex;align-items:flex-end;gap:12px;margin-bottom:16px}
.panel-kicker{margin:0 0 4px;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--text-faint)}
.panel-title{margin:0;font-size:17px;font-weight:800;color:var(--text);letter-spacing:-.015em}
.panel-link{margin-left:auto;font-size:12.5px;font-weight:700;color:var(--accent);text-decoration:none;white-space:nowrap}
.panel-link:hover{text-decoration:underline}
.dist-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 28px}
.dist-item{display:block}
.dist-head{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:700;color:var(--text)}
.dist-dot{width:7px;height:7px;border-radius:50%;flex:none}
.dist-val{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--text)}
.dist-pct{margin-left:6px;font-size:11px;font-weight:700;color:var(--text-faint)}
.dist-bar{margin-top:8px;height:6px;border-radius:999px;background:var(--panel-2);border:1px solid var(--border-soft);overflow:hidden}
.dist-bar i{display:block;height:100%;border-radius:999px}
.dist-empty{grid-column:1/-1;padding:18px;text-align:center;color:var(--text-faint);font-size:13px;font-weight:600}
/* ---------- mode gelap untuk bagian lama ---------- */
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .db-warn,
html[data-theme="dark"] .doc-form{background:var(--panel);border-color:var(--border);box-shadow:var(--shadow-sm)}
html[data-theme="dark"] .dashboard-card h2,
html[data-theme="dark"] .dashboard-card h3,
html[data-theme="dark"] .doc-title,
html[data-theme="dark"] .ins-stat-hero strong{color:var(--text)}
html[data-theme="dark"] .dashboard-card p,
html[data-theme="dark"] .dashboard-card small,
html[data-theme="dark"] .doc-desc,
html[data-theme="dark"] .doc-tags,
html[data-theme="dark"] .doc-sub{color:var(--text-soft)}
html[data-theme="dark"] .dashboard-table{background:var(--panel);color:var(--text)}
html[data-theme="dark"] .dashboard-table thead th{background:var(--panel-2);color:var(--text-soft);border-color:var(--border)}
html[data-theme="dark"] .dashboard-table td{border-color:var(--border-soft);color:var(--text)}
html[data-theme="dark"] .dashboard-table tbody tr:nth-child(even){background:var(--panel-2)}
html[data-theme="dark"] .dashboard-table tbody tr:hover{background:var(--accent-soft)}
html[data-theme="dark"] .dashboard-input,
html[data-theme="dark"] .dashboard-select,
html[data-theme="dark"] .doc-file{background:var(--panel-2);border-color:var(--border);color:var(--text)}
html[data-theme="dark"] .dashboard-input::placeholder{color:var(--text-faint)}
html[data-theme="dark"] .doc-table-wrap,
html[data-theme="dark"] .dashboard-table-wrap{border-color:var(--border)}
html[data-theme="dark"] .backup-stat{background:var(--panel-2);border-color:var(--border)}
html[data-theme="dark"] .backup-stat strong,
html[data-theme="dark"] .ins-stat strong{color:var(--text)}
html[data-theme="dark"] .backup-badge{background:var(--panel-2);color:var(--text-soft);border-color:var(--border)}
html[data-theme="dark"] .dashboard-history{background:var(--panel-2);border-color:var(--border)}
html[data-theme="dark"] .dashboard-empty{color:var(--text-faint)}
html[data-theme="dark"] .dashboard-small-button.secondary{background:var(--panel-2);color:var(--accent);border-color:var(--accent)}
html[data-theme="dark"] .dashboard-small-button.danger{background:var(--red-soft);color:var(--red);border-color:var(--red)}
html[data-theme="dark"] .dashboard-status{background:var(--panel-2);border-color:var(--border);color:var(--text-soft)}
html[data-theme="dark"] .doc-chip,
html[data-theme="dark"] .doc-cat,
html[data-theme="dark"] .dashboard-user-management .dashboard-table td{border-color:var(--border)}
html[data-theme="dark"] .sb-nav::-webkit-scrollbar{width:8px}
html[data-theme="dark"] .sb-nav::-webkit-scrollbar-thumb{background:var(--border);border-radius:8px}
/* ---------- mode gelap: blok Rekap Inbound ---------- */
html[data-theme="dark"] .inbound-card{background:var(--panel-2);border-color:var(--border)}
html[data-theme="dark"] .inbound-card strong{color:var(--text)}
html[data-theme="dark"] .inbound-card-note,
html[data-theme="dark"] .inbound-break-label,
html[data-theme="dark"] .inbound-break-empty,
html[data-theme="dark"] .inbound-foot,
html[data-theme="dark"] .inbound-status{color:var(--text-faint)}
html[data-theme="dark"] .inbound-filter{background:var(--panel-2);border-color:var(--border)}
html[data-theme="dark"] .inbound-table-wrap{border-color:var(--border);background:var(--panel)}
html[data-theme="dark"] .inbound-table{background:var(--panel);color:var(--text)}
html[data-theme="dark"] .inbound-table thead th{background:var(--panel-2);color:var(--text-soft);border-color:var(--border)}
html[data-theme="dark"] .inbound-table td{border-color:var(--border-soft);color:var(--text)}
html[data-theme="dark"] .inbound-table tbody tr:nth-child(even){background:var(--panel-2)}
html[data-theme="dark"] .inbound-table tbody tr:hover{background:var(--accent-soft)}
html[data-theme="dark"] .inbound-table .col-tgl{color:var(--accent)}
html[data-theme="dark"] .inbound-break{background:var(--panel-2);border-color:var(--border)}
html[data-theme="dark"] .inbound-break-title{color:var(--text-soft)}
html[data-theme="dark"] .inbound-break-bar{background:var(--border)}
html[data-theme="dark"] .inbound-btn{background:var(--panel-2);border-color:var(--border);color:var(--text-soft)}
html[data-theme="dark"] .inbound-btn:hover{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}
html[data-theme="dark"] .inbound-btn-primary{background:var(--accent);border-color:var(--accent);color:#fff}
html[data-theme="dark"] .inbound-empty{color:var(--text-faint)}
/* Footer memakai latar sendiri dari dashboard.css -> ikut Gelap. */
html[data-theme="dark"] .dashboard-footer{background:var(--panel);color:var(--text-soft);border-top-color:var(--border)}
html[data-theme="dark"] .maint-box{background:var(--panel);color:var(--text)}
/* ---------- section yang bisa ditutup ---------- */
.sec-toggle{
  display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;
  min-width:0;height:30px;padding:0 11px;border:1px solid var(--border);
  border-radius:8px;background:var(--panel-2);color:var(--text-soft);
  font:inherit;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap;
  transition:background .15s,border-color .15s,color .15s;
}
.sec-toggle:hover{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.sec-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.sec-caret{display:inline-block;font-size:10px;line-height:1;transition:transform .18s ease}
.sec-collapsed .sec-caret{transform:rotate(-90deg)}
/* Semua aksi di judul section (lencana status, tombol ekspor, tombol
   tutup/buka) dikumpulkan JS ke dalam satu grup ini. Grup didorong ke
   kanan dan isinya dirapatkan (gap 8px) sehingga tidak ada celah
   menganga antara lencana dan tombol Tutup. Judul section menempati
   sisa ruang dan tetap rata kiri. */
.dashboard-section-head-actions{
  display:flex;align-items:center;gap:8px;flex-wrap:nowrap;
  flex:0 0 auto;margin-left:auto;
}
/* Saat ruang menyempit, grup aksi turun satu baris penuh dan boleh
   membungkus alih-alih memaksa judul terpotong. */
@media (max-width:1024px){
  .tb-online{display:none}
}
@media (max-width:900px){
  .dashboard-section-head-actions{
    flex:1 1 100%;width:100%;margin-left:0;flex-wrap:wrap;
  }
}
/* Saat ditutup, hanya judul section yang tetap terlihat. */
.sec-collapsed > *:not(:first-child){display:none !important}
.sec-collapsed{padding-bottom:2px}
.sec-collapsed .dashboard-section-head{padding-bottom:0;margin-bottom:0}
/* ---------- batasi tinggi tabel yang panjang ---------- */
#tickets .dashboard-table-wrap{max-height:440px;overflow:auto}
#docSection .doc-table-wrap{max-height:520px;overflow:auto}
/* Saat masih ada dokumen di bawahnya, kotaknya dikunci tinggi
   (sekitar 5 baris) supaya SELALU bisa digulir. */
#docSection .doc-table-wrap.is-gulir{height:400px;max-height:400px}
#userManagement .dashboard-table-wrap{max-height:330px;overflow:auto}
#inbound .inbound-table-wrap{max-height:400px;overflow:auto}
#tickets .dashboard-table-wrap thead th,
#docSection .doc-table-wrap thead th,
#userManagement .dashboard-table-wrap thead th,
#inbound .inbound-table-wrap thead th{position:sticky;top:0;z-index:2}
html[data-theme="dark"] #tickets .dashboard-table-wrap thead th,
html[data-theme="dark"] #docSection .doc-table-wrap thead th,
html[data-theme="dark"] #userManagement .dashboard-table-wrap thead th,
html[data-theme="dark"] #inbound .inbound-table-wrap thead th{box-shadow:inset 0 -1px 0 var(--border)}
/* ---------- pengatur kolom tabel Tiket Odoo ---------- */
/* Warna baris disetel di <tr> supaya sel kolom terkunci (sticky)
   selalu punya latar yang sama, apa pun kondisi hover-nya. */
#tickets .dashboard-table{min-width:0}
#tickets .dashboard-table tbody tr{background:var(--panel)}
#tickets .dashboard-table tbody tr:hover{background:#f8fbfe}
#tickets .dashboard-table tbody tr:hover td{background:transparent}
html[data-theme="dark"] #tickets .dashboard-table tbody tr:hover{background:var(--accent-soft)}
.tk-sembunyi{display:none !important}
/* Kolom Ticket Number terkunci di tepi kiri.
   Spesifisitas sengaja dibuat di atas aturan hover agar warisan
   latar baris selalu berlaku. */
#tickets .dashboard-table th:first-child{position:sticky;left:0;z-index:3;box-shadow:inset -1px 0 0 var(--border)}
#tickets .dashboard-table tbody tr td:first-child{position:sticky;left:0;z-index:2;background-color:inherit;box-shadow:inset -1px 0 0 var(--border)}
#tickets .dashboard-table tbody tr td:first-child{font-weight:700;color:var(--text)}
html[data-theme="dark"] #tickets .dashboard-table tbody tr td:first-child{color:var(--accent)}
/* Kolom teks panjang dipotong dengan elipsis, teks penuhnya muncul lewat tooltip. */
#tickets .dashboard-table th.tk-4,#tickets .dashboard-table td.tk-4{max-width:330px;overflow:hidden;text-overflow:ellipsis}
#tickets .dashboard-table th.tk-7,#tickets .dashboard-table td.tk-7{max-width:190px;overflow:hidden;text-overflow:ellipsis}
#tickets .dashboard-table th.tk-8,#tickets .dashboard-table td.tk-8{max-width:170px;overflow:hidden;text-overflow:ellipsis}
#tickets .dashboard-table th.tk-12,#tickets .dashboard-table td.tk-12,
#tickets .dashboard-table th.tk-13,#tickets .dashboard-table td.tk-13{max-width:160px;overflow:hidden;text-overflow:ellipsis}
.ticket-hint{margin:8px 0 0;font-size:11.5px;color:var(--text-faint)}
/* tombol + daftar centang kolom */
.kolom-pilih{position:relative;flex:0 0 auto}
.kolom-tombol{display:inline-flex;align-items:center;gap:7px}
.kolom-count{padding:1px 7px;border-radius:999px;background:var(--accent-soft);color:var(--accent);font-size:11px;font-weight:800;font-variant-numeric:tabular-nums}
.kolom-menu{
  position:absolute;z-index:40;top:calc(100% + 8px);right:0;width:288px;max-width:calc(100vw - 40px);
  padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--panel);
  box-shadow:0 18px 40px rgba(16,42,67,.18);text-align:left;
}
.kolom-menu[hidden]{display:none}
.kolom-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;font-size:11.5px;font-weight:800;color:var(--text-soft);text-transform:uppercase;letter-spacing:.06em}
.kolom-menu-aksi{display:flex;gap:6px}
.kolom-aksi{padding:3px 8px;border:1px solid var(--border);border-radius:7px;background:var(--panel-2);color:var(--accent);font:inherit;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.kolom-aksi:hover{background:var(--accent-soft);border-color:var(--accent)}
.kolom-menu-list{max-height:290px;overflow:auto;border:1px solid var(--border-soft);border-radius:10px;padding:6px}
.kolom-item{display:flex;align-items:center;gap:9px;padding:6px 8px;border-radius:7px;font-size:12.5px;color:var(--text-soft);cursor:pointer}
.kolom-item:hover{background:var(--panel-2);color:var(--text)}
.kolom-item input{flex:none;width:15px;height:15px;accent-color:var(--accent);cursor:pointer}
.kolom-item.is-terkunci{color:var(--text);font-weight:700}
.kolom-item.is-terkunci input{cursor:not-allowed}
.kolom-item-kunci{margin-left:auto;font-style:normal;font-size:10px;font-weight:800;color:var(--text-faint);text-transform:uppercase;letter-spacing:.05em}
.kolom-menu-foot{margin:9px 0 0;font-size:11px;color:var(--text-faint)}
html[data-theme="dark"] .kolom-menu{background:var(--panel);border-color:var(--border)}
html[data-theme="dark"] .kolom-menu-list{border-color:var(--border-soft)}
/* ---------- responsif ---------- */
@media (max-width:1180px){
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  .dist-grid{grid-template-columns:1fr}
  .content{padding:16px 15px 34px}
  .topbar{padding:10px 15px}
}
@media (max-width:820px){
  .sidebar{transform:translateX(-100%);box-shadow:var(--shadow)}
  body.sb-open .sidebar{transform:none}
  .app-main{margin-left:0}
  .tb-burger{display:grid;place-items:center}
  .tb-crumb{display:none}
  .tb-search{width:auto;flex:1;margin-left:0}
  .tb-search kbd{display:none}
}
@media (max-width:560px){
  .stat-grid{grid-template-columns:1fr}
  .page-title{font-size:22px}
  .page-actions{width:100%}
  .page-actions .btn-ghost,.page-actions .btn-primary{flex:1;justify-content:center}
  .sec-toggle{height:28px;padding:0 9px}
}
@media (prefers-reduced-motion:reduce){
  .sidebar,.stat-card,.page-actions button,.sb-item{transition:none}
}
/* =========================================================
   RAPIKAN TATA LETAK (kerangka seragam + tampilan ponsel)
   ---------------------------------------------------------
   Semua halaman memakai kerangka dashboard (.topbar + .app-main).
   Sementara itu berkas lama (style.css, theme.css, theme-core.css,
   responsive.css) masih menyimpan aturan untuk kerangka LAMA
   (header logo + menu nav) dengan pemilih "header" polos:
   flex-direction:column, flex-wrap:wrap, align-items:flex-start,
   bahkan position:relative. Aturan itu ikut menimpa .topbar
   sehingga di layar kecil header jadi bertumpuk 2-3 baris dan
   tidak lengket. Berkas ini dimuat paling akhir dan .topbar lebih
   spesifik, jadi blok ini yang menang.
   ========================================================= */

/* 1. Topbar: satu baris, rata tengah, tetap lengket di semua ukuran.
      Jarak tepi disamakan dengan jarak isi halaman (22px di layar
      lebar, 15px di layar kecil) supaya remah, bar jam, dan kartu
      benar-benar rata satu garis. */
.topbar{
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  row-gap:0!important;
  position:sticky!important;
  top:0!important;
  z-index:40!important;
  padding:12px 22px!important;
  gap:14px;
}
.topbar .tb-crumb{min-width:0;overflow:hidden}
.topbar .tb-crumb > span,.topbar .tb-crumb > b{overflow:hidden;text-overflow:ellipsis}
.topbar .tb-burger{flex:0 0 auto}
.topbar .tb-actions{flex:0 0 auto}
/* Kotak pencarian boleh menyusut: tanpa ini min-width:auto membuatnya
   setidaknya selebar nilai bawaan input sehingga topbar luber di HP. */
.topbar .tb-search{min-width:0}
@media (max-width:900px){ .topbar{gap:12px!important;padding:10px 15px!important} }
@media (max-width:820px){ .topbar{gap:10px!important} }
@media (max-width:560px){ .topbar{gap:8px!important;padding:9px 15px!important} }
@media (max-width:560px){ .tb-actions{gap:6px} }
/* 2. Isi SEMUA halaman disejajarkan dengan topbar: selebar area konten
      dengan jarak yang sama seperti halaman dashboard, bukan terkunci
      1120px/1180px di tengah layar (dulu kartu tampak menjorok ke kanan
      dibanding judul di topbar). */
.dashboard-page .container{max-width:none!important;margin:0!important;padding:20px 22px 40px!important}
@media (max-width:900px){ .dashboard-page .container{padding:16px 15px 34px!important} }
/* 3. Tombol "Deteksi" pada kolom Odoo harus ikut lebar isinya.
      Aturan ponsel .dashboard-small-button{width:100%} membuatnya
      melebar penuh lalu keluar dari kartu (halaman luber 3px). */
.odoo-field-inline{flex-wrap:nowrap}
.odoo-field-inline .dashboard-small-button{width:auto!important;min-width:0!important;flex:0 0 auto}
/* 4. Grafik batang index: kolom nama lebih lega di layar lebar supaya
      nama service desk tidak terpotong elips. */
@media (min-width:1024px){ .bar-row{grid-template-columns:176px minmax(0,1fr) 46px} }
/* 5. Rincian inbound: label sedikit lebih lega (sebelumnya terpotong 3px). */
.inbound-break-label{width:118px}
/* ----------------------------------------------------------------
   Tabel Alfabet Fonetik NATO di layar kecil.
   Kolom "Cara Pelafalan" dulu disembunyikan di tiga tempat
   (theme.css <=700px, responsive.css <=768px, pages.css <=700px)
   sehingga justru informasi pelafalan yang hilang, dan tabelnya
   dipaksa bisa digeser ke samping. Sekarang tiap baris menjadi kartu
   kecil: lencana karakter di kiri, lalu kata kode beserta cara
   bacanya di kanan, jadi semua isi tetap terbaca. Sel "Kata Kode"
   tidak ditulis dua kali karena kata kodenya sudah ada di dalam sel
   cara pelafalan.
   ---------------------------------------------------------------- */
@media (max-width:768px){
  .document-page .nato-table{display:block!important;overflow-x:hidden!important;white-space:normal!important}
  .document-page .nato-table thead{display:none!important}
  .document-page .nato-table tbody{display:block!important}
  .document-page .nato-table tbody tr{
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr);
    column-gap:11px;row-gap:2px;align-items:center;
    padding:11px 13px!important;
    border-bottom:1px solid var(--sd-line-soft,#e7eef5);
  }
  .document-page .nato-table tbody tr:last-child{border-bottom:0}
  .document-page .nato-table tbody td{display:block!important;border:0!important;padding:0!important;font-size:13px!important;white-space:normal!important}
  .document-page .nato-table tbody td:nth-child(1){grid-area:1/1/2/2;align-self:center}
  .document-page .nato-table tbody td:nth-child(2){display:none!important}
  .document-page .nato-table tbody td:nth-child(3){grid-area:1/2/2/3;font-size:13.5px!important;color:var(--sd-text,#102a43)}
  .document-page .nato-table tbody tr:hover{background:var(--sd-panel-2,#f7fafd)}
  .document-page .nato-table tbody tr:hover td,
  html[data-theme="dark"] .document-page .nato-table tbody tr:hover td{background:transparent!important}
}
/* =========================================================
   FOOTER (dalam kolom konten)
   ------------------------------------------------------------
   Dulu footer berada DI LUAR kerangka .app-shell, jadi teksnya
   terpusat di seluruh lebar layar - tidak sejajar dengan isi
   halaman yang mulai setelah sidebar, dan sering menggantung di
   tengah layar. Sekarang footer berada di dalam .app-main
   (kolom konten) dan menempel di bawah.
   ========================================================= */
.app-main > footer{
  margin-top:auto;
  padding:16px 22px;
  text-align:center;
  font-size:12px;
  color:var(--text-faint);
  border-top:1px solid var(--border);
  background:var(--panel);
}
@media(max-width:768px){
  .app-main > footer{padding:14px 12px;font-size:11.5px}
}
/* =========================================================
   Carousel Pengumuman - tambahan gaya (ringkasan & jenis)
   ========================================================= */

/* ---------- ringkasan: kartu total besar ---------- */
.ins-stat-hero{
  padding:16px 14px;border-color:#cfe4f8;
  background:linear-gradient(180deg,#f7fbff,#eef6fd);
}
.ins-stat-hero span{
  font-size:12px;font-weight:800;color:#486581;letter-spacing:.06em;line-height:1.35;
}
.ins-stat-hero strong{
  margin-top:10px;font-size:30px;line-height:1.1;color:#0b3c74;letter-spacing:-.02em;
}
/* ---------- ringkasan: pemisah blok & grafik ---------- */
.ins-chart-block{margin-top:20px}
.ins-sum-head-sep{
  margin-top:24px;padding-top:20px;border-top:1px solid #e6edf4;
}
/* ---------- pencarian & saring daftar ---------- */
.ins-search{
  position:relative;display:flex;align-items:center;gap:8px;margin-bottom:10px;
  border:1px solid #cfdced;border-radius:12px;background:#fff;padding:0 12px;
  transition:border-color .18s,box-shadow .18s;
}
.ins-search:focus-within{border-color:#0f4c81;box-shadow:0 0 0 3px rgba(15,76,129,.12)}
.ins-search-ikon{flex:none;font-size:14px;line-height:1;opacity:.65}
.ins-search-input{
  flex:1;min-width:0;border:0;outline:0;background:transparent;padding:11px 0;
  font:inherit;font-size:13.5px;color:#102a43;
}
.ins-search-input::placeholder{color:#9fb3c8}
/* Sembunyikan tombol "x" bawaan browser agar tidak dobel dengan milik kita. */
.ins-search-input::-webkit-search-cancel-button,
.ins-search-input::-webkit-search-decoration{-webkit-appearance:none;appearance:none}
.ins-search-clear{
  flex:none;width:24px;height:24px;padding:0;border-radius:50%;border:0;cursor:pointer;
  background:#e9eef5;color:#486581;font-size:12px;line-height:1;display:grid;place-items:center;
}
.ins-search-clear:hover{background:#dbe4ee;color:#0b3c74}
.ins-search-clear:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
.ins-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.ins-chip{
  display:inline-flex;align-items:center;gap:6px;padding:6px 11px;cursor:pointer;
  border:1px solid #cfdced;border-radius:999px;background:#fff;
  font:inherit;font-size:12px;font-weight:700;color:#486581;line-height:1.3;
  transition:background .16s,border-color .16s,color .16s;
}
.ins-chip b{font-weight:800;color:#0f4c81}
.ins-chip:hover{border-color:#9fc0e0;background:#f4f9fd}
.ins-chip.is-active{background:#0b3c74;border-color:#0b3c74;color:#fff}
.ins-chip.is-active b{color:#a9d3f5}
.ins-chip:focus-visible{outline:3px solid #8bb9df;outline-offset:2px}
.ins-list-empty{
  padding:26px 12px;text-align:center;color:#829ab1;font-size:12.5px;font-weight:600;
}
/* ---------- daftar lengkap di bawah carousel ---------- */
/* Pembungkus supaya ada gradasi di tepi bawah: baris yang terpotong terlihat
   sengaja, bukan elemen yang keburu terclip. */
.ins-list-wrap{position:relative}
.ins-list-wrap::after{
  content:'';position:absolute;left:0;right:0;bottom:0;height:44px;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.96));
}
.ins-list-hint{
  margin:0 0 10px;font-size:11.5px;color:#829ab1;display:flex;align-items:center;gap:6px;flex-wrap:wrap;
}
.ins-list-hint b{color:#0f4c81;font-weight:800}
.ins-list-full{max-height:560px;overflow:auto;padding-top:2px}
.ins-list-full::-webkit-scrollbar{width:10px}
.ins-list-full::-webkit-scrollbar-track{background:#f2f7fb;border-radius:999px}
.ins-list-full::-webkit-scrollbar-thumb{background:#c3d9ec;border-radius:999px;border:2px solid #f2f7fb}
.ins-list-full::-webkit-scrollbar-thumb:hover{background:#9fc0e0}
.ins-list-full .ins-item{padding:10px 4px}
.ins-list-full .ins-date{width:112px}
@media (max-width:720px){
  .ins-list-wrap::after{display:none}
  .ins-list-full{max-height:none;height:auto;padding-bottom:8px}
  .ins-list-full .ins-item{padding:11px 2px}
}
/* ---------- slide ringkasan ---------- */
/* Kolom dibuat Explicit lebarnya: kolom tengah dibatasi 300px supaya nama
   pengirim dan angkanya tidak jauh terpisah di layar lebar. */
.ins-sum{
  display:grid;grid-template-columns:minmax(180px,210px) minmax(0,300px) minmax(0,1fr);
  gap:20px;align-items:stretch;
}
.ins-sum-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ins-stat{
  border:1px solid #e2ebf3;border-radius:12px;padding:11px 12px;background:#fff;
}
.ins-stat span{display:block;font-size:10.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#829ab1}
.ins-stat strong{display:block;margin-top:5px;font-size:15px;color:#0b3c74;line-height:1.35;word-break:break-word}
/* Kartu total ikut tinggi baris, tidak menggantung seperti kolom sebelah. */
.ins-sum-stats-hero{grid-template-columns:minmax(0,1fr)}
.ins-sum-stats-hero>.ins-stat{height:100%;display:flex;flex-direction:column;justify-content:center}
.ins-mini-title{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#627d98;margin-bottom:10px}
/* Batang lebih lebar & rapat supaya tidak terpencar di layar lebar. */
.ins-bars{display:flex;align-items:flex-end;gap:12px;height:140px;padding:6px 2px 0;border-bottom:1px solid #e2ebf3}
.ins-bar-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:5px;height:100%;min-width:0}
.ins-bar-val{font-size:11px;font-weight:800;color:#0f4c81}
.ins-bar-col{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center}
.ins-bar-col i{display:block;width:100%;max-width:64px;border-radius:6px 6px 0 0;background:linear-gradient(180deg,#38bdf8,#0f4c81);transition:height .3s ease}
.ins-bar-item:hover .ins-bar-col i{background:linear-gradient(180deg,#7fe3d4,#0b3c74)}
.ins-bar-lab{font-size:10.5px;color:#829ab1;white-space:nowrap}
.ins-sum-side .ins-mini-title{margin-top:0}
.ins-jenis{display:flex;align-items:center;gap:8px;margin-bottom:7px}
.ins-jenis-bar{flex:1;height:6px;border-radius:999px;background:#edf2f7;overflow:hidden}
.ins-jenis-bar i{display:block;height:100%;border-radius:999px;background:#2f86d6}
.ins-jenis b{font-size:12px;color:#334e68;min-width:26px;text-align:right}
.ins-sender{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#486581;padding:4px 0;border-bottom:1px dashed #edf2f7}
.ins-sender:last-child{border-bottom:0}
.ins-sender b{color:#0b3c74}
/* ---------- jenis pengumuman ---------- */
.ins-kind{
  display:inline-block;padding:2px 7px;border-radius:6px;font-size:10px;font-weight:800;
  letter-spacing:.03em;text-transform:uppercase;margin-right:6px;white-space:nowrap;
}
.ins-kind.ann{background:#e4f0fd;color:#0f4c81}
.ins-kind.upd{background:#fff3e0;color:#9a5b00}
.ins-kind.rem{background:#fdeaea;color:#b42318}
.ins-kind.inf{background:#e9eef5;color:#486581}
/* ---------- tanggal + jam ---------- */
.ins-date{display:flex;flex-direction:column;align-items:center;gap:1px}
.ins-date i{font-style:normal;font-size:10px;color:#627d98;font-weight:600}
@media (max-width:980px){
  .ins-sum{grid-template-columns:1fr}
  .ins-sum-stats{grid-template-columns:repeat(4,1fr)}
  .ins-sum-stats-hero{grid-template-columns:minmax(0,1fr)}
  .ins-bars{height:130px}
}
@media (max-width:640px){
  .ins-sum-stats{grid-template-columns:1fr 1fr}
  .ins-bars{height:120px;gap:5px}
  .ins-bar-lab{font-size:9.5px}
  .ins-bar-val{font-size:10px}
}
/* ---------- blok ringkasan statis di bawah carousel ---------- */
.ins-summary-block{
  margin-top:16px;border:1px solid #d9e2ec;border-radius:18px;background:#fff;
  box-shadow:0 10px 28px rgba(8,47,91,.08);padding:18px 20px 20px;
}
.ins-sum-head{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.ins-sum-ikon{
  width:42px;height:42px;flex:none;border-radius:12px;display:grid;place-items:center;font-size:20px;
  background:#eaf4fd;border:1px solid #cfe4f8;color:#0f4c81;
}
.ins-sum-head h3{margin:0;font-size:16px;color:#0b3c74;letter-spacing:-.01em}
.ins-sum-head p{margin:3px 0 0;font-size:12.5px;color:#627d98}
@media (max-width:720px){
  .ins-summary-block{padding:14px}
  .ins-sum-head h3{font-size:15px}
  .ins-sum-head p{font-size:11.5px}
}
/* ============================================================
   PENGUMUMAN SERVICE DESK - form & tabel di dashboard
   ============================================================ */
.peng-form{display:flex;flex-direction:column;gap:14px;margin-top:14px;padding:16px;border:1px solid #dbe7f2;border-radius:14px;background:#f7fbfd}
.peng-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.peng-row:nth-child(2){grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
.peng-form .dashboard-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.peng-form .dashboard-field>span{font-size:12.5px;font-weight:700;color:var(--text-soft)}
.peng-form .dashboard-field>span small{font-weight:600;color:var(--text-mute)}
.peng-form textarea.dashboard-input{min-height:64px;resize:vertical}
.peng-form input[type="file"].dashboard-input{padding:7px 10px;font-size:12.5px}
.peng-form input[type="file"]::file-selector-button{
  margin-right:10px;padding:6px 12px;border:1px solid #9fc0e0;border-radius:8px;
  background:#eaf3fe;color:#0f4c81;font:inherit;font-size:12px;font-weight:700;cursor:pointer;
}
.peng-aksi{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.peng-form .dashboard-form-message{font-size:12.5px;font-weight:600}
.peng-form .dashboard-form-message.is-ok{color:#047857}
.peng-form .dashboard-form-message.is-galat{color:#b42318}
/* Atribut `hidden` harus menang atas display dari .dashboard-small-button. */
.peng-aksi [hidden],.doc-form-actions [hidden]{display:none !important}
/* Judul panjang membungkus 3 baris, sisanya elips. */
.peng-judul{display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-weight:700;color:var(--text);line-height:1.4;overflow-wrap:anywhere}
.peng-meta{display:block;margin-top:3px;font-size:11.5px;color:var(--text-mute);overflow-wrap:anywhere;line-height:1.4}
/* Tabel pengumuman hanya 6 kolom, jadi TIDAK perlu min-width 1500px yang
   dipakai .dashboard-table (untuk tabel Tiket Odoo yang 17 kolom).
   Aturan global itu harus ditimpa di sini, kalau tidak kolom Sumber /
   Lampiran / Aksi terpotong keluar kartu. */
.peng-tabel{
  table-layout:fixed;
  width:100%;
  min-width:860px;
  max-width:100%;
}
.peng-tabel th,.peng-tabel td{padding:9px 12px;vertical-align:top}
.peng-tabel th:nth-child(1){width:104px}
.peng-tabel th:nth-child(2){width:134px}
.peng-tabel th:nth-child(3){width:auto}
.peng-tabel th:nth-child(4){width:106px}
.peng-tabel th:nth-child(5){width:112px}
.peng-tabel th:nth-child(6){width:148px}
/* Kolom Aksi: tombol Edit/Hapus diringkas dan sejajar satu baris.
   Dulu dipaksa 100% lebar sehingga menumpuk vertikal dan tiap baris
   tabel menjadi tinggi ( tombol Edit di atas, Hapus di bawahnya). */
.peng-tabel td:nth-child(6) .peng-aksi-sel{flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:nowrap}
.peng-tabel td:nth-child(6) .peng-aksi-sel .dashboard-small-button{width:auto;min-width:0;height:30px;padding:0 11px;font-size:11.5px;font-weight:800;border-radius:8px;justify-content:center;white-space:nowrap;flex:0 0 auto}
.peng-tabel th{white-space:nowrap}
.peng-daftar-wrap{overflow:auto}
/* Kontras teks judul & meta pada mode gelap.
   Tanpa aturan ini, zebra-row memberi latar --panel-2 sementara teks
   tetap gelap -> judul terlihat pucat hampir tak terbaca. */
html[data-theme="dark"] .peng-judul{color:var(--text)}
html[data-theme="dark"] .peng-meta{color:var(--text-soft)}
html[data-theme="dark"] .peng-tabel td{color:var(--text)}
html[data-theme="dark"] .peng-tabel tbody tr:nth-child(2n) td{color:var(--text)}
html[data-theme="dark"] .peng-tabel tbody tr:nth-child(2n) .peng-judul{color:var(--text)}
html[data-theme="dark"] .peng-tabel tbody tr:nth-child(2n) .peng-meta{color:var(--text-soft)}
html[data-theme="dark"] .peng-baca-saja{color:var(--text-soft)}
html[data-theme="dark"] .peng-tabel tbody tr:hover .peng-judul{color:var(--text)}
/* Kolom Sumber & Aksi: rapat, tidak bertele-tele. */
.peng-sumber{font-size:9.5px;padding:2px 7px}
.peng-baca-saja{font-size:10.5px}
/* Baris "Menampilkan N dari M" tidak boleh terlihat seperti baris data. */
.peng-tabel .dashboard-empty{text-align:center;font-style:italic}
/* ---- Manual Book: 6 kolom, tanpa min-width 1500px ---- */
.doc-table{table-layout:fixed;width:100%;min-width:880px;max-width:100%}
.doc-table th,.doc-table td{padding:9px 10px;vertical-align:top}
.doc-table th:nth-child(1){width:auto}
.doc-table th:nth-child(2){width:186px}
.doc-table th:nth-child(3){width:88px}
.doc-table th:nth-child(4){width:92px}
.doc-table th:nth-child(5){width:118px}
.doc-table th:nth-child(6){width:148px}
.doc-table th{white-space:nowrap}
/* Judul & subkategori boleh membungkus supaya tidak terpotong. */
.doc-table td:nth-child(1),.doc-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere}
.doc-table-wrap{overflow:auto}
/* Manual Book: sama seperti tabel pengumuman - tombol Edit/Hapus
   ringkas dan sejajar, tidak menumpuk vertikal. */
.doc-table td:nth-child(6) .peng-aksi-sel{flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:nowrap}
.doc-table td:nth-child(6) .peng-aksi-sel .dashboard-small-button{width:auto;min-width:0;height:30px;padding:0 11px;font-size:11.5px;font-weight:800;border-radius:8px;justify-content:center;white-space:nowrap;flex:0 0 auto}
html[data-theme="dark"] .doc-table td{color:var(--text)}
html[data-theme="dark"] .doc-table tbody tr:nth-child(2n) td{color:var(--text)}
html[data-theme="dark"] .doc-table tbody tr:nth-child(2n) .peng-judul{color:var(--text)}
html[data-theme="dark"] .doc-table tbody tr:nth-child(2n) .peng-meta{color:var(--text-soft)}
/* Badge jenis - meniru tampilan .ins-* di halaman /announcement */
.peng-jenis{
  display:inline-block;padding:2px 9px;border-radius:6px;
  font-size:10.5px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;
  white-space:nowrap;border:1px solid transparent;
}
.peng-jenis.ann{background:#e0f2fe;color:#075985;border-color:#bae6fd}
.peng-jenis.upd{background:#fef3c7;color:#92400e;border-color:#fde68a}
.peng-jenis.rem{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.peng-jenis.inf{background:#ede9fe;color:#5b21b6;border-color:#ddd6fe}
/* Lencana format berkas di tabel Manual Book ("PDF", "EXCEL", "WORD").
   Sebelumnya warna ditulis langsung sebagai `style` di dalam
   dashboard-manualbook.js. Karena inline style mengalahkan seluruh
   stylesheet, lencana ini mustahil digelapkan lewat CSS dan tetap
   biru muda terang di mode malam. Sekarang warnanya dipindahkan ke
   sini supaya bisa diatur tema. */
.mb-format{
  display:inline-block;padding:2px 8px;border-radius:999px;
  font-size:10px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;
  white-space:nowrap;border:1px solid transparent;
  background:#e0f2fe;color:#075985;border-color:#bae6fd;
}
/* Penanda asal data */
.peng-sumber{
  display:inline-block;padding:2px 8px;border-radius:999px;
  font-size:10px;font-weight:800;white-space:nowrap;border:1px solid transparent;
}
.peng-sumber.is-sheets{background:#f1f5f9;color:#64748b;border-color:#dbe3ec}
.peng-sumber.is-dashboard{background:#ecfdf5;color:#047857;border-color:#a7e3c5}
.peng-baca-saja{font-size:11px;color:var(--text-mute);font-weight:600;white-space:nowrap}
.peng-daftar-wrap{margin-top:16px;max-height:560px;overflow-y:auto}
.peng-tabel td{vertical-align:top}
.peng-judul:hover{color:var(--link,#0f4c81);cursor:pointer}
.peng-lamp{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.peng-lamp a{font-size:12px;font-weight:700;color:#0f4c81;text-decoration:none}
.peng-lamp a:hover{text-decoration:underline}
.peng-lamp span{font-size:11px;color:var(--text-mute)}
.peng-aksi-sel{display:flex;gap:6px;flex-wrap:wrap}
/* Baris yang sedang diedit diberi garis tepi, bukan latar kuningSolid.
   Latar #fffbeb terlalu terang untuk mode gelap dan membuat teks hampir
   tak terbaca. */
.peng-sedang-edit td{background:var(--accent-soft) !important}
.peng-sedang-edit .peng-judul{color:var(--text) !important}
.peng-sedang-edit .peng-meta{color:var(--text-soft) !important}
html[data-theme="dark"] .peng-sedang-edit td{background:#1b2c4a !important}
@media(max-width:900px){
  .peng-row,.peng-row:nth-child(2){grid-template-columns:1fr}
}
@media(max-width:560px){
  .peng-form{padding:13px}
  .peng-aksi{flex-direction:column;align-items:stretch}
  .peng-aksi .dashboard-button,.peng-aksi .dashboard-small-button{width:100%}
}
/* Shared responsive polish */
html{scroll-behavior:smooth}
img,iframe{max-width:100%}
button,a,input,select{font:inherit}
.section-title{line-height:1.35}
.section-title a{white-space:nowrap}
.dropdown{position:relative}
.dropbtn{min-height:36px;padding:8px 10px;border:1px solid transparent;border-radius:8px;transition:background .2s,color .2s}
.dropbtn:hover,.dropdown:focus-within .dropbtn{background:#eef5fb;color:#082f5b}
.dropdown-content{top:calc(100% + 8px)!important;left:0!important;min-width:235px!important;padding:7px!important;border:1px solid #d9e2ec!important;border-radius:12px!important;background:#fff!important;box-shadow:0 14px 30px rgba(8,47,91,.15)!important}
.dropdown-content::before{content:'';position:absolute;top:-6px;left:18px;width:10px;height:10px;background:#fff;border-left:1px solid #d9e2ec;border-top:1px solid #d9e2ec;transform:rotate(45deg)}
.dropdown-content a{position:relative;z-index:1;padding:10px 12px!important;border-radius:8px;font-size:13px!important;line-height:1.3}
.dropdown-content a:hover,.dropdown-content a.active{background:#eef5fb!important;color:#082f5b!important}
.dropdown:hover .dropdown-content,.dropdown:focus-within .dropdown-content{display:block}
@media(max-width:768px){
  header{padding:12px 16px!important;gap:12px!important;flex-wrap:wrap}.logo-area{font-size:16px!important;white-space:nowrap}.nav-menu{width:100%;display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 10px!important}.nav-menu a,.dropbtn{font-size:12px!important}.dropdown-content{left:0!important;right:auto!important;min-width:210px!important;z-index:20}.dropdown-content a{padding:11px 12px!important}.status-online{margin-left:auto;font-size:11px!important;padding:6px 9px!important}
  .sub-header{display:flex;flex-wrap:wrap;justify-content:space-between;line-height:1.4}.container{width:100%;padding:24px 14px!important}.card-section,.sheet-wrapper{width:100%;overflow:hidden}.grid-two{grid-template-columns:1fr!important}.grid-tupoksi,.app-grid{grid-template-columns:1fr!important}.section-title{font-size:18px!important;display:flex;flex-wrap:wrap;align-items:center;gap:8px}.document-page .btn-action-row{display:flex!important;flex-direction:column;align-items:stretch;gap:12px}.document-page .btn-external{width:100%;margin:0;text-align:center}.document-page .nato-table{display:block;overflow-x:auto;white-space:nowrap}.document-page .nato-table th,.document-page .nato-table td{padding:10px 11px;font-size:12px}.document-page .nato-table th:nth-child(3),.document-page .nato-table td:nth-child(3){display:none}.document-page footer{padding:18px 14px;text-align:center;font-size:12px}
  .home-page .hero-banner{padding:28px 20px!important}.home-page .hero-banner h1{font-size:30px!important}.home-page .hero-banner .quote,.home-page .hero-banner .desc{font-size:13px;line-height:1.7}.home-page .rekap-item{align-items:flex-start!important;flex-direction:column!important;gap:5px!important}.home-page .rekap-item strong{font-size:12px}.home-page .app-box{min-height:100px}
  .login-page header{align-items:center}.login-page .nav-menu{justify-content:space-between}.login-page .login-wrapper{min-height:calc(100vh - 130px);display:flex;align-items:center;padding:28px 14px!important}.login-page .login-card{width:100%;max-width:430px;padding:26px 20px!important}.login-page .login-title{font-size:22px!important}.login-page footer{font-size:12px;padding:16px}
  .announcement-head{display:flex!important;flex-direction:column!important}.announcement-readonly{width:max-content;max-width:100%;white-space:normal!important}.announcement-list{grid-template-columns:1fr!important}.announcement-card{padding:17px!important}.announcement-card h2{font-size:16px!important;line-height:1.45}.announcement-sender{overflow-wrap:anywhere}
  .dashboard-topbar{padding:12px 14px!important;gap:12px}.dashboard-brand{font-size:16px!important}.dashboard-brand-icon{width:34px;height:34px}.dashboard-topbar>div:last-child{display:flex;align-items:center;gap:8px}.dashboard-user{max-width:135px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px!important;padding:6px 8px!important;margin:0}.dashboard-logout{padding:8px 10px!important;font-size:12px}.dashboard-main{padding:24px 14px 36px!important}.dashboard-hero{padding:20px!important}.dashboard-hero h1{font-size:28px!important}.dashboard-hero p{font-size:13px;line-height:1.5}.dashboard-status{max-width:100%;white-space:normal!important;font-size:12px!important}.dashboard-grid{grid-template-columns:1fr!important;gap:12px!important}.dashboard-card{padding:17px!important;border-radius:14px}.dashboard-value{font-size:28px!important}.dashboard-section-head{gap:12px!important}.dashboard-actions{width:100%}.dashboard-actions>*{width:100%;flex:1}.dashboard-history{padding:13px!important}.dashboard-table-wrap{max-height:520px!important}.dashboard-user-form{padding:14px!important}.dashboard-user-actions{align-items:stretch;flex-direction:column}.dashboard-small-button{width:100%;min-width:0!important}
}
@media(min-width:769px) and (max-width:1100px){.container,.dashboard-main{padding-left:24px!important;padding-right:24px!important}.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* Rekap laporan yang bisa dibuka */
.rekap-group{width:100%}
.rekap-item{width:100%;background:#fff;border:0;border-bottom:1px solid #e7eef5;cursor:pointer;text-align:left;font:inherit;transition:background .18s,color .18s}
.rekap-item:hover{background:#f6faff}
.rekap-item.is-open{background:#eef5fb;color:#082f5b;border-bottom-color:transparent}
.rekap-group:last-child .rekap-item{border-bottom:0}
.rekap-group:last-child .rekap-detail{border-bottom:0}
.rekap-item strong{white-space:nowrap}
.rekap-item::after{content:'▾';margin-left:10px;color:#829ab1;font-size:12px;transition:transform .2s}
.rekap-item.is-open::after{transform:rotate(180deg)}
.rekap-detail{display:block;padding:4px 0 16px;border-bottom:1px solid #e7eef5;background:#fbfdff}
.rekap-detail[hidden]{display:none}
.rekap-loading{margin:12px 2px;color:#627d98;font-size:13px;font-weight:600}
.rekap-note{margin:10px 2px 0;color:#829ab1;font-size:11px;font-weight:600}
.rekap-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.rekap-table{width:100%;min-width:640px;border-collapse:collapse;background:#fff}
.rekap-table th,.rekap-table td{padding:9px 10px;border-bottom:1px solid #edf2f7;text-align:left;font-size:12px;vertical-align:top}
.rekap-table th{background:#f2f7fc;color:#0b3d73;font-weight:800;white-space:nowrap}
.rekap-table td{color:#334e68}
.rekap-table tr:nth-child(even) td{background:#fafcfe}
/* Panel rekap ala dashboard di halaman index */
.home-rekap-panel{width:100%;padding:24px;border:1px solid #d9e2ec;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(16,42,67,.06);margin-bottom:20px}
.home-rekap-panel .dashboard-section-head{align-items:flex-start;padding-bottom:4px}
.home-rekap-panel .dashboard-section-head h2{margin:0;font-size:18px;color:#102a43}
.home-rekap-panel .dashboard-section-head p{margin:6px 0 0;color:#627d98;font-size:13px}
.rekap-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:4px 0 18px}
.rekap-tab{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:13px 15px;border:1px solid #d9e2ec;border-radius:12px;background:#f8fbfe;cursor:pointer;text-align:left;transition:border-color .2s,background .2s,box-shadow .2s}
.rekap-tab span{color:#627d98;font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}
.rekap-tab strong{color:#0f4c81;font-size:15px;font-weight:800;white-space:nowrap}
.rekap-tab:hover{border-color:#7fb3d5;background:#f2f8fd}
.rekap-tab.is-active{border-color:#0f4c81;background:linear-gradient(135deg,#0f4c81,#145da0);box-shadow:0 8px 18px rgba(15,76,129,.18)}
.rekap-tab.is-active span{color:#d9ecfb}
.rekap-tab.is-active strong{color:#fff}
.home-rekap-panel .dashboard-error{margin-top:0}
.rekap-table-wrap{margin-top:0}
.rekap-table{min-width:1500px}
.dashboard-button-ghost{background:#eef5fb;color:#0f4c81;border:1px solid #c8dced}
.dashboard-button-ghost:hover{background:#0f4c81;color:#fff;border-color:#0f4c81}
@media(max-width:900px){.rekap-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:769px) and (max-width:1100px){.home-rekap-panel{padding:20px}}
@media(max-width:768px){
  .home-rekap-panel{padding:18px 16px;border-radius:14px}
  .home-rekap-panel .dashboard-section-head{gap:14px}
  .home-rekap-panel .dashboard-actions{width:100%}
  .home-rekap-panel .dashboard-actions>*{flex:1;width:100%}
  .rekap-tabs{grid-template-columns:1fr;gap:8px}
  .rekap-tab{flex-direction:row;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px}
  .rekap-table{min-width:1280px}
  .rekap-table th,.rekap-table td{padding:10px 11px;font-size:11px}
}
@media(max-width:520px){
  .home-page .rekap-item{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:8px!important;padding:13px 4px!important}
  .home-page .rekap-item::after{margin-left:0}
  .home-page .rekap-item span{font-size:12px!important;line-height:1.4}
  .home-page .rekap-item strong{font-size:12px}
  .home-page .rekap-detail{padding:6px 0 14px}
  .home-page .rekap-table{min-width:520px}
  .home-page .rekap-table th,.home-page .rekap-table td{padding:8px;font-size:11px}
}
.document-page>header,.home-page>header{min-height:68px}
.document-page>.container{max-width:1120px;margin:0 auto;padding:38px 20px 52px}
.document-page .card-section,.document-page .sheet-wrapper{background:#fff;border:1px solid #d9e2ec;border-radius:16px;box-shadow:0 10px 26px rgba(16,42,67,.06)}
.document-page .section-title{font-size:20px;font-weight:800;color:#082f5b;margin-bottom:10px}
.document-page .card-section>p,.document-page .sheet-wrapper p{color:#627d98;line-height:1.65}
.document-page .btn-open-pdf,.document-page .btn-external{min-height:40px;white-space:nowrap}
.home-page footer,.document-page footer{margin-top:auto}
@media(max-width:768px){.document-page>.container,.home-page>.container{width:100%;padding:24px 14px 38px!important}.document-page .section-title{font-size:18px!important}.document-page .card-section,.document-page .sheet-wrapper{padding:20px!important;border-radius:14px}.document-page .btn-action-row{display:flex!important;flex-direction:column;align-items:stretch;gap:12px}.document-page .btn-external{width:100%;margin:0;text-align:center}}
@media(max-width:520px){
  body{overflow-x:hidden}.document-page>header,.home-page>header{display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:11px 13px!important;gap:10px!important}.document-page .logo-area,.home-page .logo-area{justify-content:center;width:100%;font-size:15px!important}.document-page .nav-menu,.home-page .nav-menu{width:100%;display:flex!important;justify-content:center;align-items:center;gap:6px!important;overflow:visible!important;padding:0!important}.document-page .nav-menu>a,.home-page .nav-menu>a,.document-page .dropbtn,.home-page .dropbtn{padding:7px 6px!important;font-size:11px!important;white-space:nowrap}.document-page .status-online,.home-page .status-online{width:100%;justify-content:center;margin:0!important;font-size:10px!important;padding:5px 8px!important}.document-page .dropdown-content,.home-page .dropdown-content{left:50%!important;transform:translateX(-50%);min-width:210px!important;max-width:calc(100vw - 28px);top:calc(100% + 6px)!important}.document-page .dropdown-content::before,.home-page .dropdown-content::before{left:50%;margin-left:-5px}.sub-header{font-size:11px!important;padding:9px 13px!important}.sub-header>div{width:100%;text-align:center}.home-page .hero-banner{margin-bottom:18px!important}.home-page .hero-banner h1{font-size:27px!important}.home-page .card-section{margin-bottom:16px!important}.home-page .section-title{font-size:17px!important}.home-page .app-box{padding:16px!important}.home-page .app-name{font-size:13px}.home-page .app-url{font-size:11px}.document-page>.container,.home-page>.container{padding:18px 12px 30px!important}.document-page .card-section,.document-page .sheet-wrapper{padding:16px!important}.document-page .section-title{font-size:17px!important}.document-page .manual-card{padding:16px!important}.announcement-card{padding:15px!important}.announcement-card h2{font-size:15px!important}.announcement-detail{grid-template-columns:1fr!important}.dashboard-page .dashboard-topbar{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;padding:10px 12px!important}.dashboard-page .dashboard-brand{font-size:14px!important;min-width:0}.dashboard-page .dashboard-user{display:none!important}.dashboard-page .dashboard-topbar>div:last-child{flex:0 0 auto}.dashboard-page .dashboard-main{padding:18px 10px 30px!important}.dashboard-page .dashboard-hero{padding:17px!important}.dashboard-page .dashboard-hero h1{font-size:24px!important}.dashboard-page .dashboard-card{padding:15px!important}.dashboard-page .dashboard-section-head h2{font-size:17px!important}.dashboard-page .dashboard-table-wrap{margin-left:-2px;margin-right:-2px}.dashboard-page .dashboard-table{min-width:1280px}.dashboard-page .dashboard-history-label{font-size:12px!important}
}
/* =========================================================
   Header pada layar sempit-menengah (769-880px)
   ------------------------------------------------------------
   Pada rentang ini header masih memakai tata letak desktop,
   karena aturan @media(max-width:768px) belum aktif. Padahal
   isi nav + lencana "System Online" sudah tidak muat, sehingga
   muncul gulir horizontal 3-5px di halaman index, /announcement,
   /manual-book, dan /nato. Jarak serta ukuran huruf dikecilkan
   supaya semuanya muat tanpa menggulir.
   ========================================================= */
@media(min-width:769px) and (max-width:880px){
  header{gap:12px!important;padding:14px 18px!important}
  .logo-area{font-size:16px!important;gap:8px!important}
  .nav-menu{gap:13px!important;font-size:13px!important}
  .dropbtn{font-size:13px!important}
  .status-online{padding:5px 9px!important;font-size:11px!important;gap:5px!important}
}
@media(max-width:520px){
  body.dashboard-page{width:100%;overflow-x:hidden}.dashboard-page .dashboard-topbar{min-height:58px}.dashboard-page .dashboard-brand-icon{flex:0 0 34px}.dashboard-page .dashboard-brand span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dashboard-page .dashboard-logout{min-height:34px;padding:7px 11px!important}.dashboard-page .dashboard-main{width:100%;max-width:100%;margin:0;padding:16px 10px 28px!important}.dashboard-page .dashboard-hero{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin-bottom:14px;padding:16px!important}.dashboard-page .dashboard-hero h1{margin:5px 0;font-size:23px!important;line-height:1.2}.dashboard-page .dashboard-hero p{font-size:12px}.dashboard-page .dashboard-status{width:100%;justify-content:center;padding:8px 10px}.dashboard-page .dashboard-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important;margin-bottom:14px}.dashboard-page .dashboard-stat{width:100%;min-height:100px;padding:16px!important}.dashboard-page .dashboard-stat-icon{right:16px;top:16px;width:32px;height:32px}.dashboard-page .dashboard-label{max-width:75%;font-size:12px}.dashboard-page .dashboard-value{margin-top:7px;font-size:27px!important}.dashboard-page .dashboard-stat-note{font-size:10px}.dashboard-page .dashboard-card{width:100%;max-width:100%;padding:15px!important;margin-top:14px;border-radius:12px}.dashboard-page .dashboard-section-head{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:10px;margin-bottom:13px}.dashboard-page .dashboard-section-head h2{font-size:16px}.dashboard-page .dashboard-section-head p{font-size:12px;line-height:1.5}.dashboard-page .dashboard-actions{display:flex;flex-direction:column;width:100%;gap:8px}.dashboard-page .dashboard-actions .dashboard-button{width:100%;min-height:40px}.dashboard-page .dashboard-history{display:flex;flex-direction:column;align-items:stretch;width:100%;gap:8px;margin:14px 0;padding:12px!important}.dashboard-page .dashboard-history-label{display:block;margin:0;font-size:11px}.dashboard-page .dashboard-history .dashboard-select,.dashboard-page .dashboard-history .dashboard-input,.dashboard-page .dashboard-history .dashboard-button{width:100%!important;height:40px}.dashboard-page .dashboard-access-row{width:100%;padding:11px 12px!important}.dashboard-page .dashboard-user-form{display:flex!important;flex-direction:column;align-items:stretch;gap:10px;padding:12px!important}.dashboard-page .dashboard-user-form .dashboard-field,.dashboard-page .dashboard-user-form .dashboard-button{width:100%}.dashboard-page .dashboard-user-list{width:100%;overflow-x:auto}.dashboard-page .dashboard-table-wrap{width:100%;max-width:100%;overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch}.dashboard-page .dashboard-table{min-width:1280px}.dashboard-page .dashboard-user-list .dashboard-table{min-width:680px}.dashboard-page .dashboard-footer{font-size:11px;padding:16px 10px}.dashboard-page .dashboard-error{font-size:12px;overflow-wrap:anywhere}
}
/* ---------- kartu Total Laporan Masuk (Inbound) ---------- */
.rekap-total-inbound{border-left-color:#0e7490}
.rekap-total-inbound .rekap-total-icon{background:#e6f4f7;color:#0e7490}
.rekap-total-inbound .rekap-total-value{color:#0b5f6e}
/* =========================================================
   Kartu "Total Seluruh Tiket" — Rekap Laporan (index)
   ========================================================= */
/* =========================================================
   Tata letak Rekap Laporan (index) - lima kartu + dua grafik
   ------------------------------------------------------------
     baris 1  5 kotak sama lebar:
              Total Seluruh Tiket | Inbound | Total Overdue |
              Total Task | Total Project
     baris 2  2 grafik trend berdampingan (.trend-grid bawaan)

   Jumlah kolom selalu sama dengan jumlah kotaknya, jadi tidak
   pernah ada sel kosong:
     > 1060px  lima kartu dalam satu baris
     901-1060px enam jalur: tiga kartu atas (2 jalur) +
               dua kartu bawah (3 jalur) -> terisi penuh
     <= 900px  kartu turun ke satu kolom

   Lima kolom membuat tiap kartu hanya ~204px, jadi padding, ikon,
   dan ukuran angka diturunkan supaya "2.607" tetap muat utuh.
   ========================================================= */
.rekap-cards{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-auto-rows:1fr;
  gap:16px;
  margin-top:8px;
}
/* ---------- lima kolom: rapatkan isi kartu ----------
   Detail pengaturannya ada di akhir berkas, setelah aturan
   ".rekap-total-value{margin-top:auto}" supaya tidak tertimpa. */

/* ---------- baris status ringkasan project ---------- */
.rekap-project-status{margin-top:14px}
.rekap-total{
  position:relative;
  display:block;
  width:100%;
  padding:26px 28px 24px;
  border:1px solid #e4edf5;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:0 10px 26px rgba(16,42,67,.08);
}
.rekap-total-label{
  display:block;
  max-width:calc(100% - 70px);
  color:#334e68;
  font-size:15px;
  font-weight:800;
  line-height:1.4;
  letter-spacing:0;
}
.rekap-total-icon{
  position:absolute;
  top:22px;
  right:24px;
  display:grid;
  place-items:center;
  width:46px;height:46px;
  border-radius:14px;
  background:#e8f3fe;
  font-size:22px;
  line-height:1;
}
.rekap-total-value{
  display:block;
  margin-top:20px;
  color:#0b3c74;
  font-size:clamp(34px,4vw,48px);
  font-weight:800;
  line-height:1.02;
  letter-spacing:-.03em;
  white-space:nowrap;
}
.rekap-total-note{
  display:block;
  margin-top:16px;
  color:#829ab1;
  font-size:13.5px;
  font-weight:600;
  line-height:1.5;
}
/* saat gagal dimuat */
.rekap-total.is-error .rekap-total-value{color:#98a7b8;font-size:34px}
.rekap-total-note b{color:#486581;font-weight:800}
/* ---------- kartu Overdue ---------- */
.rekap-total-overdue{border-color:#f6ded9;background:linear-gradient(180deg,#ffffff 0%,#fffafa 100%)}
.rekap-total-overdue .rekap-total-icon{background:#fff1f0}
.rekap-total-overdue .rekap-total-value{color:#b42318}
.rekap-total-overdue.is-error .rekap-total-value{color:#c8b6b4}
/* ---------- kartu Total Task (Report Summary) ---------- */
.rekap-total-task{border-color:#d9eef0;background:linear-gradient(180deg,#ffffff 0%,#fbfeff 100%)}
.rekap-total-task .rekap-total-icon{background:#e6f7f7}
.rekap-total-task .rekap-total-value{color:#0b6a70}
.rekap-total-task.is-error .rekap-total-value{color:#b7ccce}
/* ---------------- responsive ---------------- */

/* 901-1060px: lima kartu tidak muat satu baris, jadi enam jalur
   dipakai agar lima kotak tetap terisi penuh (3 + 2). */
@media(min-width:901px) and (max-width:1060px){
  .rekap-cards{grid-template-columns:repeat(6,minmax(0,1fr))}
  .rekap-cards > .rekap-total:nth-child(-n+3){grid-column:span 2}
  .rekap-cards > .rekap-total:nth-child(n+4){grid-column:span 3}
  .rekap-total{padding:20px 18px 19px}
  .rekap-total-label{font-size:14px;max-width:calc(100% - 54px)}
  .rekap-total-icon{top:18px;right:18px;width:40px;height:40px;border-radius:12px;font-size:20px}
  .rekap-total-value{font-size:clamp(28px,4.4vw,40px)}
  .rekap-total-note{font-size:12.5px}
}
/* <=900px: kartu turun ke satu kolom supaya tidak ada kolom
   yang hanya terisi separuh. */
@media(max-width:900px){
  .rekap-cards{grid-template-columns:minmax(0,1fr);gap:12px}
}
@media(max-width:768px){
  .rekap-total{padding:20px 18px 19px;border-radius:15px}
  .rekap-total-label{font-size:14px;max-width:calc(100% - 60px)}
  .rekap-total-icon{top:17px;right:17px;width:40px;height:40px;border-radius:12px;font-size:19px}
  .rekap-total-value{margin-top:16px;font-size:clamp(34px,10vw,46px)}
  .rekap-total-note{margin-top:13px;font-size:12.5px}
}
/* ---------- panel filter & export (kotak baru di atas kartu rekap) ---------- */
.rekap-filter-panel{
  background:#fff;
  border:1px solid #e4edf5;
  border-radius:18px;
  box-shadow:0 10px 26px rgba(16,42,67,.08);
  padding:16px 20px 18px;
  margin-top:8px;
}
.rekap-filter-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  padding-bottom:12px;
  margin-bottom:14px;
  border-bottom:1px solid #e7eff6;
}
.rekap-filter-title{
  color:#082f5b;
  font-size:15px;
  font-weight:800;
  letter-spacing:0;
}
.rekap-filter-row{
  display:flex;
  align-items:flex-end;
  gap:12px 14px;
  flex-wrap:wrap;
}
.rekap-filter-row > .rekap-field{flex:0 0 auto;min-width:0}
.rekap-filter-row .rekap-date-range{flex:1 1 440px;min-width:min(100%,320px)}
.rekap-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.rekap-field > label{
  color:#486581;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  line-height:1.2;
}
.rekap-period-wrap{
  position:relative;
  display:inline-flex;
  max-width:100%;
}
.rekap-period-wrap::after{
  content:'▾';
  position:absolute;
  right:9px;
  top:50%;
  transform:translateY(-50%);
  color:#fff;
  font-size:11px;
  pointer-events:none;
}
.rekap-period{
  appearance:none;
  -webkit-appearance:none;
  background:#0f4c81;
  color:#fff;
  border:1px solid #0b3f6b;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  line-height:1.3;
  height:38px;
  padding:7px 30px 7px 13px;
  min-width:220px;
  max-width:100%;
  box-sizing:border-box;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(15,76,129,.22);
}
.rekap-period:hover{background:#125a9e}
.rekap-period:focus-visible{outline:2px solid #2f86d6;outline-offset:2px}
.rekap-export-btn{
  appearance:none;
  background:#fff;
  color:#0f4c81;
  border:1.5px solid #0f4c81;
  border-radius:10px;
  font-size:13px;
  font-weight:800;
  line-height:1.3;
  height:38px;
  padding:7px 16px;
  box-sizing:border-box;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(15,76,129,.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  white-space:nowrap;
}
.rekap-export-btn:hover{background:#eaf3fb}
.rekap-export-btn:focus-visible{outline:2px solid #2f86d6;outline-offset:2px}
.rekap-export-btn:disabled{opacity:.55;cursor:not-allowed}
.rekap-head-actions{display:inline-flex;gap:8px;flex-wrap:wrap;align-items:center}
.rekap-date-range[hidden]{display:none!important}
/* ---------- input rentang tanggal (di dalam panel filter) ---------- */
.rekap-date-range{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  gap:9px 10px;
  align-items:end;
  padding:11px 12px;
  background:#f7fbfd;
  border:1px solid #dbe7f2;
  border-radius:11px;
  max-width:100%;
}
.rekap-date-range .rekap-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.rekap-date-range label{
  color:#486581;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
  line-height:1.2;
}
.rekap-date-input{
  appearance:none;
  -webkit-appearance:none;
  font-family:inherit;
  background:#fff;
  color:#0b2240;
  border:1px solid #cddbec;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  height:38px;
  padding:7px 10px;
  width:100%;
  box-sizing:border-box;
}
.rekap-date-input:hover{border-color:#9fc0e0}
.rekap-date-input:focus-visible{outline:2px solid #2f86d6;outline-offset:1px}
.rekap-apply-btn{
  appearance:none;
  background:#0f4c81;
  color:#fff;
  border:1px solid #0b3f6b;
  border-radius:10px;
  font-size:13px;
  font-weight:800;
  line-height:1.3;
  height:38px;
  padding:7px 22px;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(15,76,129,.22);
  box-sizing:border-box;
  white-space:nowrap;
}
.rekap-apply-btn:hover{background:#125a9e}
.rekap-apply-btn:focus-visible{outline:2px solid #2f86d6;outline-offset:2px}
.rekap-date-range.is-loading .rekap-apply-btn,
.rekap-apply-btn.is-loading{opacity:.65;cursor:progress}
.rekap-total-note.is-period{margin-top:11px;color:#627d98;font-size:12.5px}
@media(max-width:768px){
  .rekap-filter-panel{padding:14px 14px 15px;border-radius:15px}
  .rekap-filter-head{padding-bottom:11px;margin-bottom:12px;gap:10px}
  .rekap-filter-title{font-size:14px}
  .rekap-export-btn{font-size:12px;height:38px}
  .rekap-filter-row{flex-direction:column;align-items:stretch;gap:10px}
  .rekap-filter-row > .rekap-field{flex:1 1 100%}
  .rekap-filter-row .rekap-date-range{flex:1 1 100%}
  .rekap-period{font-size:12.5px;min-width:0;width:100%;height:38px}
  .rekap-period-wrap{width:100%}
  .rekap-date-range{grid-template-columns:1fr;gap:10px;padding:10px}
  .rekap-date-input{width:100%;height:38px}
  .rekap-apply-btn{width:100%;font-size:13px}
  .rekap-total-note.is-period{margin-top:9px}
}
/* Tujuh kotak rekap: lebar & tinggi seragam, catatan rata bawah */
.rekap-total{display:flex;flex-direction:column;height:100%}
.rekap-total-note{margin-top:auto;padding-top:10px}
.rekap-total-value{margin-top:auto}
/* =========================================================
   Lima kolom (>=1061px) - harus ditulis SETELAH aturan di atas,
   karena di situ angka dikembalikan ke margin tetap supaya lima
   angka pada baris kartu sebaris, sementara catatan tetap rata
   bawah lewat margin-top:auto miliknya sendiri.
   ========================================================= */
@media(min-width:1061px){
  .rekap-total{padding:22px 18px 21px}
  .rekap-total-label{font-size:13.5px;max-width:calc(100% - 46px);min-height:38px}
  .rekap-total-value{margin-top:12px;font-size:34px}
  .rekap-total-icon{top:16px;right:14px;width:36px;height:36px;border-radius:11px;font-size:18px}
  .rekap-total-note{font-size:12.5px}
}
/* ============================================================
   RAPikan TATA LETAK PANEL REKAP (halaman index)
   ------------------------------------------------------------
   - Jarak antar blok dibuat seragam (filter -> kartu -> trend).
   - Pemisah tipis sebelum blok trend & blok grafik batang.
   - Keterangan kecil di samping baris filter trend.
   ============================================================ */
.rekap-divider{
  height:1px;border:0;margin:18px 0 16px;background:#e4edf5;
}
html[data-theme="dark"] .rekap-divider{background:#243a5e}
/* Kartu rekap: jarak dari panel filter sedikit lega. */
.home-rekap-panel .rekap-cards{margin-top:16px}
/* Baris "120 project - sumber ..." jadi keterangan kecil, rata kiri. */
.home-rekap-panel .rekap-project-status{
  margin:10px 2px 0;font-size:11.5px;line-height:1.5;color:#829ab1;
}
html[data-theme="dark"] .home-rekap-panel .rekap-project-status{color:#9fb3c8}
/* Keterangan di bawah baris filter trend (baris tanggalnya sendiri
   tetap lebar penuh, sama seperti filter utama di atas). */
.trend-filter-caption{
  margin:9px 2px 0;font-size:11.5px;line-height:1.5;color:#829ab1;
}
html[data-theme="dark"] .trend-filter-caption{color:#9fb3c8}
/* Jarak antara baris filter trend dan grafik trend. */
.home-rekap-panel .trend-grid{margin-top:16px}
/* Baris filter trend disamakan dengan baris tanggal filter utama:
   jarak kiri & kanan sama (20px, seperti padding panel filter utama)
   supaya lebar kolom tanggal dan posisi tombol Terapkan identik. */
#trendFilter{margin-left:20px;margin-right:20px}
@media(max-width:768px){
  #trendFilter{margin-left:14px;margin-right:14px}
}
/* Responsive dashboard fix */
html,
body {
  min-width: 320px;
  overflow-x: hidden;
}
#app,
.app,
.dashboard-layout,
.layout,
.shell {
  min-width: 320px;
}
.sidebar,
.side-nav,
aside {
  width: 240px;
  min-width: 240px;
  flex-shrink: 0;
}
.main,
.main-content,
.content,
.dashboard-content {
  min-width: 0;
  width: 100%;
}
@media (max-width: 700px) {
  .sidebar,
  .side-nav,
  aside {
    width: 220px;
    min-width: 220px;
  }

  /* Sidebar dashboard sudah off-canvas di mobile, jadi konten harus
     memakai lebar penuh. Sebelumnya dikurangi 220px sehingga konten
     mengecil (mis. /agent/profil hanya selebar 170px). */
  .main,
  .main-content,
  .content,
  .dashboard-content {
    width: 100%;
  }

  .topbar,
  header {
    min-width: 0;
  }

  table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}