/* ============ Penomoran Otomatis (SIMORIS) ============ */
html body .penomoran-page .next-number-card{
  display:grid;grid-template-columns:minmax(0,auto) minmax(0,1fr) auto;align-items:center;gap:clamp(16px,3vw,40px);
  margin-bottom:14px;padding:18px 22px;border-radius:8px;background:var(--color-maroon);box-shadow:none;color:#fff
}
.next-number-card__main>span{display:block;margin:0 0 4px;font-size:12px;font-weight:600;letter-spacing:0;opacity:.75}
.next-number-card__value{display:flex;align-items:center;gap:8px;min-width:0}
html body .next-number-card__value strong{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:clamp(19px,1.6vw + 6px,26px);font-weight:700;letter-spacing:0;white-space:nowrap}
html body .next-number-card__copy{display:inline-grid;place-items:center;width:32px;height:32px;min-height:32px;padding:0;border:1px solid rgba(255,255,255,.28);border-radius:6px;background:transparent;color:#fff;cursor:pointer;transition:background .15s}
.next-number-card__copy:hover,.next-number-card__copy:focus-visible{background:rgba(255,255,255,.14)}
.next-number-card__stats{display:flex;gap:clamp(16px,2.5vw,36px);margin:0;padding-left:clamp(16px,3vw,40px);border-left:1px solid rgba(255,255,255,.2);min-width:0}
.next-number-card__stats>div{min-width:0}
.next-number-card__stats dt{font-size:12px;font-weight:500;opacity:.7}
.next-number-card__stats dd{margin:2px 0 0;font-size:15px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.next-number-card__stats small{display:block;font-size:11.5px;opacity:.65}
html body .penomoran-page .next-number-card .btn-primary{background:#fff;color:var(--color-maroon);border-color:#fff;white-space:nowrap}
html body .penomoran-page .next-number-card .btn-primary:hover{background:#f6e6eb}

/* Bilah tindakan massal menyatu di kartu tabel */
html body .number-ledger{overflow:hidden}
html body .number-ledger .number-bulk-bar{display:flex;align-items:center;gap:12px;margin:0;padding:10px 16px;border:0;border-bottom:1px solid var(--color-border);border-radius:0;background:transparent;box-shadow:none;font-size:12.5px;color:var(--color-text-muted)}
html body .number-ledger .number-bulk-bar.is-active{background:var(--color-primary-soft,#f6e6eb);color:var(--color-text)}
html body .number-ledger .number-bulk-bar .table-check-all{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--color-text)}
html body .number-ledger .number-bulk-bar>.btn{margin-left:auto}

/* Tabel nomor */
html body .number-table td{vertical-align:middle}
html body .number-table .number-table__nomor{white-space:nowrap}
html body .number-table .number-table__nomor code{display:inline-block;padding:3px 8px;border-radius:5px;background:var(--color-primary-soft,#f6e6eb);color:var(--color-maroon);font-size:12.5px;font-weight:600}
html body .number-table .number-table__perihal{font-weight:600;color:var(--color-text);min-width:200px}
html body .number-table .number-table__tanggal{white-space:nowrap;color:var(--color-text-muted)}
html body .number-table .table-row-actions{display:flex;gap:6px;justify-content:flex-end;flex-wrap:nowrap}
html body .number-table .table-row-actions>button{width:32px;height:32px;min-height:32px;padding:0;display:inline-grid;place-items:center;border-radius:6px}

/* Widget mengambang hanya di layar lebar; di layar kecil kartu nomor sudah cukup */
@media (max-width:1024px){html body .penomoran-page .simoris-widget{display:none}}

@media (max-width:1180px){
  html body .penomoran-page .next-number-card{grid-template-columns:minmax(0,1fr) auto}
  html body .penomoran-page .next-number-card__stats{grid-column:1/-1;grid-row:2;padding:12px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.2)}
}
@media (max-width:600px){
  html body .penomoran-page .next-number-card{grid-template-columns:minmax(0,1fr);gap:12px;padding:16px}
  html body .penomoran-page .next-number-card__stats{grid-row:auto}
  html body .penomoran-page .next-number-card .btn-primary{width:100%;justify-content:center}
  html body .number-ledger .number-bulk-bar{padding:10px 12px;flex-wrap:wrap}
  html body .number-ledger .number-bulk-bar>.btn{width:auto}
  /* Baris tabel jadi kartu ringkas: nomor + aksi, perihal di bawah */
  html body .number-table thead{display:none}
  html body .number-table,html body .number-table tbody{display:block;width:100%}
  html body .number-table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;padding:12px 14px;border-bottom:1px solid var(--color-border)}
  html body .number-table tbody td{display:block!important;padding:0!important;border:0!important;min-width:0!important;text-align:left!important}
  html body .number-table tbody td::before{display:none!important;content:none!important}
  html body .number-table tbody td.number-table__nomor{grid-column:1;grid-row:1}
  html body .number-table tbody td.number-table__perihal{grid-column:1/-1;grid-row:2;font-size:13.5px;line-height:1.4}
  html body .number-table tbody td:last-child{grid-column:2;grid-row:1}
  html body .number-table tbody tr>td[colspan]{grid-column:1/-1}
}
html body .number-ledger .table-toolbar{margin:0;padding:10px 16px;border:0;border-bottom:1px solid var(--color-border);border-radius:0;background:transparent}
html body .number-ledger .table-scroll{border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
html body .number-table .number-table__nomor code{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
@media (max-width:600px){
  html body .number-ledger .table-toolbar{padding:10px 12px}
  html body .number-table thead{display:none!important}
  html body .number-table tbody tr{padding:12px 14px!important;margin:0!important;border:0!important;border-bottom:1px solid var(--color-border)!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
}
html body .number-table td.number-table__tanggal{white-space:nowrap!important}
html body .penomoran-page{padding-bottom:56px}
@media (max-width:600px){html body .number-ledger .table-pagination{padding-left:12px;padding-right:12px}}
html body .publish-number-preview>span{font-size:12px;font-weight:600;letter-spacing:0;text-transform:none}
