:root { --sc-biru: #14506b; --sc-garis: #dfe4e8; }
body { background: #f4f6f8; color: #1d2a33; }
.sc-nav { background: var(--sc-biru); }
.sc-main { max-width: 1500px; }
.sc-login { max-width: 420px; margin: 8vh auto 0; }
.sc-narrow { max-width: 620px; }
.sc-stat { background: #fff; border: 1px solid var(--sc-garis); border-radius: 8px; padding: .85rem 1rem; height: 100%; }
.sc-stat span { display: block; color: #5a6b76; font-size: .82rem; }
.sc-stat strong { display: block; font-size: 1.15rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sc-stat small { color: #5a6b76; }
.sc-status { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid var(--sc-garis); border-radius: 8px; padding: .6rem .8rem; text-decoration: none; color: inherit; }
.sc-status:hover { border-color: var(--sc-biru); }
.sc-card { background: #fff; border: 1px solid var(--sc-garis); border-radius: 8px; }
.table-sc { background: #fff; margin-bottom: 0; font-size: .9rem; }
.table-sc th { white-space: nowrap; background: #eef2f5; font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sc-qr canvas, .sc-qr img { display: block; }
.sc-kunci { word-break: break-all; }
.sc-baris { border: 1px solid var(--sc-garis); border-radius: 8px; padding: .75rem; margin-bottom: .75rem; background: #fbfcfd; }
.sc-timeline { list-style: none; padding: 0; margin: 0; }
.sc-timeline li { border-left: 2px solid var(--sc-garis); padding: 0 0 .85rem .85rem; }
.text-selisih { color: #b02a37; font-weight: 600; }
.hanya-cetak { display: none; }
@media print {
  .no-print { display: none !important; }
  .hanya-cetak { display: block; }
  body { background: #fff; font-size: 11px; }
  .sc-main { max-width: none; padding: 0; }
  .table-responsive { overflow: visible; }
  @page { size: A4 landscape; margin: 10mm; }
}
.sc-formlebar { max-width: 900px; }
.sc-catatan { min-width: 160px; }
.sc-nav .nav-link { white-space: nowrap; font-size: .9rem; }
@media (max-width: 1500px) { .sc-nav .navbar-nav .nav-link .bi { display: none; } }
.sc-rincian td { white-space: normal; }
.sc-rincian th:nth-child(1), .sc-rincian td:nth-child(1) { min-width: 240px; }
.sc-nominal { min-width: 120px; }
.sc-baris-akun td { background: #f6f8fa; }
.sc-pegawai { max-height: 220px; overflow-y: auto; border: 1px solid var(--sc-garis); border-radius: 6px; padding: .5rem .75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 1rem; }
.sc-notif-baru { background: #fff8e6; }
/* Pemilih nomor surat SIMAS (revisi 9) */
.sc-surat-terpilih:empty { display: none; }
.sc-surat-chip { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; border: 1px solid var(--sc-garis); border-left: 3px solid var(--sc-biru); border-radius: 6px; padding: .4rem .6rem; margin-bottom: .4rem; background: #fbfcfd; }
.sc-surat-chip-isi { min-width: 0; overflow-wrap: anywhere; }
.sc-surat-hasil { position: absolute; z-index: 1050; left: 0; right: 0; top: calc(100% + 2px); max-height: 320px; overflow-y: auto; }
.sc-surat-opsi.active { background: #e7f0f5; color: inherit; }
.sc-surat-baca li { margin-bottom: .2rem; }
/* Form pengajuan di layar ponsel (revisi 9): rincian ditumpuk agar kolom isian tidak tersembunyi */
@media (max-width: 575.98px) {
  .sc-main { padding-left: .75rem; padding-right: .75rem; }
  .sc-rincian thead { display: none; }
  .sc-rincian, .sc-rincian tbody, .sc-rincian tr, .sc-rincian td { display: block; width: 100%; }
  .sc-rincian tr { border: 1px solid var(--sc-garis); border-radius: 8px; padding: .5rem .6rem; margin-bottom: .5rem; background: #fff; }
  .sc-rincian td { border: 0; padding: .15rem 0; }
  .sc-rincian th:nth-child(1), .sc-rincian td:nth-child(1) { min-width: 0; }
  .sc-rincian td.num { display: flex; justify-content: space-between; text-align: right; }
  .sc-rincian td[data-label]::before { content: attr(data-label); color: #5a6b76; font-size: .85rem; text-align: left; }
  .sc-rincian td.sc-rincian-isian::before { display: block; margin: .25rem 0 .15rem; }
  .sc-rincian .sc-nominal { min-width: 0; width: 100%; font-size: 1rem; }
  .sc-baris { padding: .6rem; }
  .sc-baris .form-select-sm { font-size: .95rem; }
}
/* Daftar sebagai kartu di layar ponsel (revisi 9) */
@media (max-width: 575.98px) {
  .sc-tabel-kartu thead { display: none; }
  .sc-tabel-kartu, .sc-tabel-kartu tbody, .sc-tabel-kartu tr, .sc-tabel-kartu td { display: block; width: 100%; }
  .sc-tabel-kartu tr { padding: .55rem .75rem; border-bottom: 1px solid var(--sc-garis); }
  .sc-tabel-kartu td { border: 0; padding: .1rem 0; background: transparent !important; }
  .sc-tabel-kartu td[data-label] { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; }
  .sc-tabel-kartu td[data-label]::before { content: attr(data-label); color: #5a6b76; }
  .sc-tabel-kartu .sc-kartu-judul { display: flex; justify-content: space-between; align-items: center; font-weight: 600; }
  .sc-tabel-kartu .sc-kartu-penuh { padding-bottom: .2rem; }
  .sc-tabel-kartu td.d-none { display: none !important; }
}
