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