/* BIIS global typography standard — mobile-first */
:root{--biis-font:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;--biis-text:14px;--biis-small:12px;--biis-heading:20px;--biis-line:1.45}
html{font-family:var(--biis-font)!important;font-size:14px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body,button,input,select,textarea,table{font-family:var(--biis-font)!important}
body{font-size:14px!important;line-height:var(--biis-line)}
button,input,select,textarea{font-size:14px!important;line-height:1.4}
button,.btn,[type=submit],[type=button]{font-size:13px!important;line-height:1.35;font-weight:650}
label,th,small,.muted,.text-muted,.help-text,.form-text{font-size:12px!important}
input,select,textarea{min-height:40px;padding:9px 11px}
h1{font-size:clamp(20px,2.8vw,24px)!important;line-height:1.25;font-weight:750}
h2{font-size:19px!important;line-height:1.3;font-weight:720}
h3{font-size:16px!important;line-height:1.35;font-weight:700}
h4,h5,h6{font-size:14px!important;line-height:1.4;font-weight:700}
p{line-height:1.5}
/* Keep data tables compact and readable */
table{font-size:13px!important}th{font-size:12px!important}td{font-size:13px!important}
/* Avoid oversized action buttons inherited from page-specific styles */
a.btn,button.btn,.actions .btn{font-size:13px!important;min-height:36px;padding:8px 11px}
@media(max-width:650px){html{font-size:14px!important}body{font-size:14px!important}h1{font-size:21px!important}h2{font-size:18px!important}h3{font-size:15px!important}button,.btn,[type=submit],[type=button]{font-size:13px!important}input,select,textarea{font-size:14px;min-height:40px}}


/* BIIS global table standard: compact, readable, consistent */
table{width:100%;max-width:100%;border-collapse:separate;border-spacing:0;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;background:#fff;font-variant-numeric:tabular-nums}
thead th{background:#f1f5f9;color:#475569;font-size:12px!important;font-weight:700;line-height:1.35;padding:10px 11px;text-align:left;vertical-align:middle;border-bottom:1px solid #dbe3ec;white-space:normal}
tbody td{font-size:13px!important;line-height:1.4;padding:10px 11px;vertical-align:middle;border-bottom:1px solid #edf1f5;overflow-wrap:anywhere}
tbody tr:last-child td{border-bottom:0}
tbody tr:nth-child(even){background:#f8fafc}
tbody tr:hover{background:#f1f5f9}
table a{font-weight:650}
td .btn,td button{margin:2px 3px 2px 0;min-height:32px;padding:6px 9px;font-size:12px!important;white-space:normal}
/* Horizontal scrolling is contained within the table region, not the whole page */
.table-responsive,.table-wrap,.table-container,.table-scroll{display:block;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;border-radius:10px}
.table-responsive table,.table-wrap table,.table-container table,.table-scroll table{min-width:640px}
@media(max-width:650px){
  table{font-size:12px!important;border-radius:9px}
  thead th{font-size:11px!important;padding:9px 8px;white-space:normal;min-width:84px}
  tbody td{font-size:12px!important;padding:9px 8px;min-width:72px}
  td .btn,td button{font-size:12px!important;min-height:32px;padding:6px 8px}
  .table-responsive table,.table-wrap table,.table-container table,.table-scroll table{min-width:620px}
  /* Keep common data tables usable on narrow screens without stretching the page */
  .card:has(>table),.card:has(>.table-responsive),.card:has(>.table-wrap),.card:has(>.table-container),.card:has(>.table-scroll){min-width:0;max-width:100%}
}


/* Prevent awkward word-by-word wrapping in horizontally scrollable data tables */
.table-responsive,.table-wrap,.table-container,.table-scroll{overflow-x:auto!important;overflow-y:hidden!important;}
.table-responsive table,.table-wrap table,.table-container table,.table-scroll table{width:max-content!important;min-width:720px!important;table-layout:auto!important;}
.table-responsive th,.table-responsive td,.table-wrap th,.table-wrap td,.table-container th,.table-container td,.table-scroll th,.table-scroll td{min-width:110px;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important;}
.table-responsive th:first-child,.table-responsive td:first-child,.table-wrap th:first-child,.table-wrap td:first-child,.table-container th:first-child,.table-container td:first-child,.table-scroll th:first-child,.table-scroll td:first-child{min-width:180px;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important;}
.table-responsive th:last-child,.table-responsive td:last-child,.table-wrap th:last-child,.table-wrap td:last-child,.table-container th:last-child,.table-container td:last-child,.table-scroll th:last-child,.table-scroll td:last-child{min-width:150px;}
/* In standalone tables, avoid forcing every word into a narrow column */
table:not(.responsive-cards){table-layout:auto;}
table:not(.responsive-cards) td{word-break:normal;hyphens:none;}
@media(max-width:650px){
  .table-responsive table,.table-wrap table,.table-container table,.table-scroll table{min-width:720px!important;width:max-content!important;}
  .table-responsive th,.table-responsive td,.table-wrap th,.table-wrap td,.table-container th,.table-container td,.table-scroll th,.table-scroll td{min-width:110px;white-space:nowrap!important;}
  .table-responsive th:first-child,.table-responsive td:first-child,.table-wrap th:first-child,.table-wrap td:first-child,.table-container th:first-child,.table-container td:first-child,.table-scroll th:first-child,.table-scroll td:first-child{min-width:180px;white-space:normal!important;}
}

/* Explicit wrapper for the WNA table on the Penjamin detail page */
.biis-table-scroll{display:block!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;overscroll-behavior-x:contain!important;border:1px solid #e2e8f0;border-radius:10px;background:#fff}
.biis-table-scroll table.biis-wide-table{width:max-content!important;min-width:900px!important;max-width:none!important;table-layout:auto!important;margin:0!important;border:0!important;border-radius:0!important}
.biis-table-scroll table.biis-wide-table th,.biis-table-scroll table.biis-wide-table td{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;min-width:100px!important}
.biis-table-scroll table.biis-wide-table th:nth-child(1),.biis-table-scroll table.biis-wide-table td:nth-child(1){min-width:190px!important;white-space:normal!important}
.biis-table-scroll table.biis-wide-table th:nth-child(4),.biis-table-scroll table.biis-wide-table td:nth-child(4){min-width:220px!important}
.biis-table-scroll table.biis-wide-table th:nth-child(6),.biis-table-scroll table.biis-wide-table td:nth-child(6){min-width:145px!important}
.biis-table-scroll table.biis-wide-table th:nth-child(7),.biis-table-scroll table.biis-wide-table td:nth-child(7){min-width:180px!important}
@media(max-width:650px){.biis-table-scroll table.biis-wide-table{min-width:900px!important}.biis-table-scroll table.biis-wide-table th,.biis-table-scroll table.biis-wide-table td{font-size:12px!important;padding:9px 10px!important}.biis-table-scroll table.biis-wide-table td:nth-child(6){white-space:nowrap!important;min-width:145px!important}}

/* === Header halaman seragam (14 Nov 2026) ===
   Navigasi utama dan tombol Keluar ada di bilah atas bersama (#biis-nav, app/biis_nav.php).
   Aturan hanya berlaku untuk .head yang berada setelah bilah itu, jadi kop surat di halaman cetak tidak terpengaruh. */
#biis-nav~.head,#biis-nav~header.head{background:#0b2d5b!important;color:#fff!important;padding:14px 0 16px!important;margin:0!important;border:0!important;box-shadow:none!important;width:auto!important;text-align:left!important}
#biis-nav~.head .wrap{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 14px;padding-top:0!important;padding-bottom:0!important}
#biis-nav~.head .brand,#biis-nav~.head .wrap>strong{font-size:18px!important;font-weight:800!important;line-height:1.3;color:#fff!important;margin:0!important;display:block}
#biis-nav~.head .brand img{display:none!important}
#biis-nav~.head .sub,#biis-nav~.head .wrap>div:not(.brand):not(.nav){flex-basis:100%;font-size:13px!important;opacity:.85!important;margin:0!important;color:#dbe4f0}
#biis-nav~.head .nav{flex-basis:100%;display:flex!important;flex-wrap:wrap;gap:8px!important;margin:6px 0 0!important}
#biis-nav~.head .nav:not(:has(a:not([href="dashboard.php"]):not([href="index.php"]))){display:none!important}
#biis-nav~.head .wrap a[href="dashboard.php"],#biis-nav~.head .wrap a[href="index.php"],#biis-nav~.head form[action="logout.php"]{display:none!important}
#biis-nav~.head .wrap>div:not(.brand):not(.nav):has(>a.btn){display:flex!important;flex-wrap:wrap;gap:8px;opacity:1!important}
#biis-nav~.head .wrap>div:not(.brand):not(.nav):has(>a.btn):not(:has(>a.btn:not([href="dashboard.php"]):not([href="index.php"]))){display:none!important}
#biis-nav~.head .wrap .btn{background:transparent!important;color:#fff!important;border:1px solid #4a6a96!important;box-shadow:none!important;text-decoration:none!important}
#biis-nav~.head .wrap .btn.gold,#biis-nav~.head .wrap .btn[style*="d4a84f"]{background:#d4af37!important;color:#061b35!important;border-color:#d4af37!important}
#biis-nav~.head .wrap .btn{box-sizing:border-box!important;display:inline-flex!important;align-items:center;flex:0 0 auto!important;width:auto!important;max-width:100%;white-space:nowrap;min-height:36px!important;height:auto!important;padding:7px 12px!important;margin:0!important;line-height:1.3!important}
#biis-nav~.head .wrap{column-gap:6px!important}
/* Blok tanda tangan laporan: satu kolom di layar HP (tampilan cetak tidak berubah). */
@media screen and (max-width:650px){.sign{grid-template-columns:1fr!important;gap:16px!important}.sign .line{min-width:0!important;width:min(220px,100%)!important}}
/* Kolom isian tidak melebar melewati wadah (beberapa halaman belum memakai border-box). */
input,select,textarea{box-sizing:border-box;max-width:100%}
/* Satu tombol emas per kelompok: tombol emas berikutnya dalam wadah yang sama tampil sebagai tombol sekunder. */
main :is(div,p,nav,section):has(> .btn.gold ~ .btn.gold) > .btn.gold ~ .btn.gold{background:#fff!important;color:#061b35!important;border:1px solid #cbd5e1!important;box-shadow:none!important}
#biis-nav~.head .wrap>h1{flex-basis:100%;margin:2px 0 0!important;color:#fff}
