/* =========================================================
   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}
}
