﻿:root {
  --navy: #243b53;
  --navy-hover: #172d42;
  --background: #f6f8fb;
  --white: #ffffff;
  --text: #243344;
  --muted: #718096;
  --border: #e4eaf0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

button, input, select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.app-container {
  max-width: 1500px;
  padding: 0 32px;
  margin: auto;
}

.header {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  font-size: 20px;
  font-weight: 700;
}

h1, h2, h3, p {
  margin: 0;
}

.brand h1 {
  font-size: 17px;
  font-weight: 650;
}

.brand p, .page-heading p,
.table-heading p {
  color: var(--muted);
  font-size: 13px;
}

.header-label {
  color: var(--muted);
  font-size: 12px;
}

main {
  padding-top: 35px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.page-heading h2 {
  font-size: 25px;
  letter-spacing: -.5px;
  margin-bottom: 5px;
}

.btn-primary {
  background: var(--navy);
  color: white;
  padding: 11px 18px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--navy-hover);
}

.btn-secondary {
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 500;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 23px;
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card h3 {
  font-size: 27px;
  font-weight: 700;
  margin: 8px 0 4px;
  letter-spacing: -.5px;
}

.stat-card small {
  color: var(--muted);
  font-size: 12px;
}

.table-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 23px;
}

.table-heading h3 {
  font-size: 16px;
  margin-bottom: 3px;
}

.table-actions {
  display: flex;
  gap: 10px;
}

input, select {
  outline: none;
  background: white;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}

input:focus, select:focus {
  border-color: #557a9e;
  box-shadow: 0 0 0 3px #557a9e20;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1200px;
}

th {
  text-align: left;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 15px 17px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 16px 17px;
  white-space: nowrap;
  border-bottom: 1px solid #edf1f5;
  font-size: 13px;
}

tbody tr:hover {
  background: #fafcff;
}

.status {
  display: inline-block;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
}

.draft {
  background: #edf1f5;
  color: #64748b;
}

.menunggu {
  background: #fff4dd;
  color: #946200;
}

.disetujui {
  background: #e8f7ee;
  color: #217647;
}

.ditolak {
  background: #fceaea;
  color: #a23b3b;
}

.btn-small {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  padding: 6px 11px;
  font-size: 12px;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 23px;
  color: var(--muted);
  font-size: 12px;
}

.footer {
  text-align: center;
  padding: 35px 0;
  color: var(--muted);
  font-size: 12px;
}

/* Modal */
.modal-overlay[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #18293c91;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal {
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 14px;
  padding: 26px;
}

.modal-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-heading h3 {
  font-size: 18px;
}

.close-modal {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 27px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
}

.form-group input,
.form-group select {
  width: 100%;
}

.form-group input[readonly] {
  background: #f4f7fa;
  color: #64748b;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
  margin-top: 27px;
  padding-top: 20px;
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .app-container {
    padding: 0 16px;
  }

  .page-heading, .table-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid {
    gap: 10px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-card h3 {
    font-size: 22px;
  }

  .table-actions {
    flex-direction: column;
  }

  .header-label {
    display: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 19px;
  }
}
/* Login Admin */
body:not(.admin-login) .app-container {
  display: none;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #f6f8fb;
}

body.admin-login .login-screen {
  display: none;
}

.login-card {
  width: 100%;
  max-width: 410px;
  background: white;
  padding: 35px;
  border: 1px solid #e4eaf0;
  border-radius: 16px;
}

.login-card h2 {
  font-size: 23px;
  margin: 0 0 5px;
}

.login-card p {
  color: #718096;
  margin-bottom: 25px;
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-card input {
  width: 100%;
}

.login-card button {
  margin-top: 10px;
  width: 100%;
}

.login-error {
  color: #b42318;
  font-size: 12px;
  min-height: 18px;
}

.logout-button {
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: white;
  padding: 9px 14px;
  color: #243344;
}
/* Perbaikan tampilan login */

body:not(.admin-login) .app-container {
  display: none;
}

body.admin-login .app-container {
  display: block;
}

body.admin-login .login-screen {
  display: none !important;
}

body:not(.admin-login) .login-screen {
  display: grid !important;
}

.login-screen {
  min-height: 100vh;
  place-items: center;
  background: #f6f8fb;
  padding: 24px;
}
/* SIDEBAR KASBON */

.layout-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.kasbon-sidebar {
  width: 245px;
  flex: 0 0 245px;
  background: #ffffff;
  border-right: 1px solid #e4eaf0;
  padding: 25px 15px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 5px 12px 25px;
  border-bottom: 1px solid #e4eaf0;
}

.sidebar-brand strong {
  display: block;
  font-size: 15px;
}

.sidebar-brand small {
  color: #718096;
}

.sidebar-caption {
  margin: 25px 12px 12px;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  border-radius: 9px;
  color: #64748b;
  font-weight: 500;
}

.sidebar-link:hover {
  background: #f5f7fa;
}

.sidebar-link.active {
  background: #eaf0f6;
  color: #243b53;
  font-weight: 650;
}

.sidebar-link .menu-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
}

.sidebar-footer {
  margin: 35px 12px 0;
  padding-top: 15px;
  border-top: 1px solid #e4eaf0;
  font-size: 12px;
  color: #94a3b8;
}

.layout-shell > .app-container {
  flex: 1;
  width: 0;
  min-width: 0;
  max-width: none;
  margin: 0;
}

body:not(.admin-login) .kasbon-sidebar {
  display: none;
}

body:not(.admin-login) .layout-shell {
  display: block;
}

/* Responsive */
@media (max-width: 800px) {
  .layout-shell {
    flex-direction: column;
  }

  .kasbon-sidebar {
    width: 100%;
    flex: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #e4eaf0;
  }

  .sidebar-brand,
  .sidebar-caption,
  .sidebar-footer {
    display: none;
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
  }

  .sidebar-link {
    width: auto;
    flex-shrink: 0;
    white-space: nowrap;
  }

  .layout-shell > .app-container {
    width: 100%;
  }
}

/* PENCARIAN MASTER KARYAWAN */

.master-search {
  position: relative;
}

.master-search input[type="search"] {
  width: 100%;
}

.hasil-karyawan[hidden] {
  display: none;
}

.hasil-karyawan {
  max-height: 245px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #dce3ea;
  border-radius: 9px;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.pilihan-karyawan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-bottom: 1px solid #edf1f5;
  background: white;
  text-align: left;
  color: #243344;
}

.pilihan-karyawan:hover {
  background: #f0f5fa;
}

.pilihan-karyawan strong {
  font-size: 13px;
  font-weight: 600;
}

.pilihan-karyawan small {
  color: #718096;
  margin-top: 2px;
}

.master-info {
  color: #718096;
  font-size: 12px;
}

#nama[readonly],
#jabatan[readonly] {
  background: #f4f7fa;
  color: #475569;
}

/* TOMBOL KONFIRMASI KASBON */

.btn-konfirmasi {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin: 3px;
  white-space: nowrap;
}

.btn-setuju {
  background: #e8f7ee;
  color: #217647;
  border-color: #c7ebd5;
}

.btn-setuju:hover {
  background: #d5f0df;
}

.btn-tolak {
  background: #fceaea;
  color: #a23b3b;
  border-color: #f5cdcd;
}

.btn-tolak:hover {
  background: #f9dddd;
}

/* MONITORING PEMOTONGAN */

.monitoring-panel[hidden],
#detailMonitoring[hidden] {
  display: none !important;
}

.monitoring-panel {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.monitor-card {
  background: #ffffff;
  border: 1px solid #e4eaf0;
  border-radius: 12px;
  padding: 24px;
}

.monitor-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.monitor-card p,
.monitor-card span {
  color: #718096;
  font-size: 13px;
}

.monitor-card select {
  width: 100%;
  margin-top: 15px;
}

.monitor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.monitor-grid .monitor-card h3 {
  font-size: 21px;
  margin-top: 8px;
  overflow-wrap: anywhere;
}

#detailMonitoring {
  display: grid;
  gap: 20px;
}

.monitor-progress-title {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

#monitorProgress {
  width: 100%;
  height: 12px;
  accent-color: #416b91;
}

.monitor-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.monitor-form-full {
  grid-column: 1 / -1;
}

.monitor-confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.monitor-confirm input {
  width: auto;
  margin-top: 4px;
}

.monitor-table {
  min-width: 650px;
}

@media (max-width: 900px) {
  .monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .monitor-form {
    grid-template-columns: 1fr;
  }

  .monitor-card {
    padding: 16px;
  }
}

/* KOREKSI PEMOTONGAN */

#modalKoreksi[hidden] {
  display: none !important;
}

#modalKoreksi textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  padding: 12px;
  font: inherit;
}

.btn-koreksi {
  color: #243b53;
  font-weight: 600;
  white-space: nowrap;
}

#daftarAuditKoreksi {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.audit-item {
  border: 1px solid #e4eaf0;
  border-radius: 9px;
  padding: 15px;
  background: #f8fafc;
}

.audit-item strong {
  display: block;
  margin-bottom: 8px;
}

.audit-item p {
  margin: 4px 0;
  color: #475569;
  font-size: 13px;
}

/* LAPORAN KASBON DAN PENGINGAT HRD */

.laporan-panel[hidden] {
  display: none !important;
}

.laporan-panel {
  display: grid;
  gap: 20px;
  padding-bottom: 30px;
}

.laporan-card {
  background: #ffffff;
  padding: 24px;
  border: 1px solid #e4eaf0;
  border-radius: 12px;
  min-width: 0;
}

.laporan-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.laporan-card p,
.laporan-info {
  color: #718096;
  font-size: 13px;
}

.laporan-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.laporan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.laporan-grid .laporan-card span {
  font-size: 13px;
  color: #718096;
}

.laporan-grid .laporan-card h3 {
  font-size: 20px;
  margin-top: 10px;
  overflow-wrap: anywhere;
}

.laporan-panel .table-scroll {
  margin-top: 15px;
}

.laporan-panel table {
  min-width: 900px;
}

@media (max-width: 800px) {
  .laporan-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .laporan-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .laporan-grid {
    grid-template-columns: 1fr;
  }
}

/* KETENTUAN KASBON - TAHAP 14A */

.ketentuan-box {
  margin: 4px 0 8px;
}

.ketentuan-help {
  color: #718096;
  font-size: 12px;
}

.ketentuan-hasil {
  background: #f8fafc;
  border: 1px solid #e4eaf0;
  border-radius: 10px;
  padding: 18px;
  margin-top: 12px;
}

.ketentuan-ringkasan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ketentuan-ringkasan small {
  display: block;
  color: #718096;
  font-size: 12px;
  margin-bottom: 5px;
}

.ketentuan-ringkasan strong {
  font-size: 15px;
  display: block;
}

#pesanKetentuan {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
  margin: 14px 0 0;
}

.ketentuan-sesuai {
  color: #217647;
}

.ketentuan-peringatan {
  color: #b45309;
}

@media(max-width: 500px) {
  .ketentuan-ringkasan {
    grid-template-columns: 1fr;
  }
}

/* INFORMASI PEMERIKSAAN TERSIMPAN */

.pemeriksaan-tersimpan[hidden] {
  display: none !important;
}

.pemeriksaan-tersimpan {
  background: #ffffff;
  border: 1px solid #dce6ef;
  border-radius: 10px;
  padding: 16px;
  margin-top: 15px;
}

.pemeriksaan-tersimpan > strong {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  color: #243b53;
}

.pemeriksaan-detail {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
}

.pemeriksaan-detail:last-child {
  border-bottom: none;
}

.pemeriksaan-detail span {
  color: #718096;
}

.pemeriksaan-detail strong {
  font-weight: 500;
  color: #243344;
  overflow-wrap: anywhere;
}

@media(max-width:500px) {
  .pemeriksaan-detail {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* FINALISASI STATUS KASBON */

.info-final-kasbon[hidden] {
  display: none !important;
}

.info-final-kasbon {
  background: #eef4fa;
  border: 1px solid #d5e4f0;
  color: #243b53;
  border-radius: 9px;
  padding: 12px 15px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
}

#formKasbon button[hidden] {
  display: none !important;
}

/* SEARCHABLE BANK */

#bank {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  background: #ffffff;
  color: #243344;
  padding: 10px 12px;
  font: inherit;
}

#bank:focus {
  border-color: #557a9e;
  outline: none;
  box-shadow: 0 0 0 3px #557a9e20;
}

.bank-helper {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #718096;
}

/* DESAIN SP KARYAWAN TAHAP 7 */

.sp7-panel[hidden] {
  display: none !important;
}

body.halaman-data-sp .table-panel,
body.halaman-data-sp .stats-grid,
body.halaman-data-sp #btnTambah {
  display: none !important;
}

.sp7-panel {
  padding-bottom: 30px;
}

.sp7-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}

.sp7-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.sp7-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}

.sp7-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.sp7-toolbar input {
  flex: 1 1 280px;
}

.sp7-toolbar input,
.sp7-toolbar select,
.sp7-toolbar button {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #dce3ea;
  border-radius: 8px;
  font: inherit;
}

.sp7-toolbar button {
  background: #edf3f9;
  color: #243b53;
  cursor: pointer;
}

.sp7-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

.sp7-table-wrap table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.sp7-table-wrap th,
.sp7-table-wrap td {
  padding: 12px;
  border-bottom: 1px solid #e8edf2;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

.sp7-table-wrap th {
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
}

.sp7-table-wrap td:last-child {
  min-width: 250px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.sp7-form-info {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid #dce5ee;
  border-radius: 10px;
  margin-bottom: 18px;
}

.sp7-form-info > strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.sp7-form-info > p {
  font-size: 13px;
  line-height: 1.6;
}

.sp7-form-info[data-kondisi="ditahan"] {
  border-color: #e7ada7;
  background: #fff5f4;
}

.sp7-form-info[data-kondisi="verifikasi"] {
  border-color: #edce8a;
  background: #fffbf0;
}

.sp7-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  margin-top: 10px;
}

.sp7-item strong {
  font-size: 13px;
}

.sp7-item p {
  margin: 7px 0 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .sp7-card {
    padding: 16px;
  }

  .sp7-toolbar {
    flex-direction: column;
  }
}

/* JALUR PENGAJUAN NOMINAL */

.jalur-pengajuan[hidden] {
  display: none !important;
}

.jalur-pengajuan {
  margin: 20px 0 24px;
}

.jalur-pengajuan h2 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 650;
}

.jalur-desc {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.jalur-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.jalur-kartu {
  background: #ffffff;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}

.jalur-kartu h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.jalur-total {
  font-weight: 650;
  font-size: 14px;
  margin: 14px 0;
  color: #243b53;
}

.jalur-kartu ul {
  padding-left: 20px;
  margin: 10px 0 0;
}

.jalur-kartu li {
  font-size: 13px;
  line-height: 1.7;
  color: #475569;
  overflow-wrap: anywhere;
}

@media(max-width: 700px) {
  .jalur-grid {
    grid-template-columns: 1fr;
  }
}

/* JALUR PENGAJUAN CHECKLIST FINAL */

.jalur-pengajuan[hidden] {
  display: none !important;
}

.jalur-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.jalur-header h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.jalur-header .jalur-desc {
  margin: 0;
}

#cariJalurPengajuan {
  width: min(100%, 290px);
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid #dce4ed;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}

.jalur-checkgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.jalur-list-card {
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  padding: 20px;
  min-width: 0;
}

.jalur-list-heading h3 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 650;
}

.jalur-list-heading p {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

.jalur-ringkasan {
  font-size: 14px;
  font-weight: 600;
  margin: 15px 0;
}

.jalur-pilihsemua {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.jalur-list {
  max-height: 420px;
  overflow-y: auto;
  margin: 10px 0;
}

.jalur-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 8px;
  border-bottom: 1px solid #edf1f5;
  cursor: pointer;
}

.jalur-item:hover {
  background: #f8fafc;
}

.jalur-item:has(input:checked) {
  background: #f0f7fc;
}

.jalur-cek,
.jalur-pilihsemua input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: #365f85;
  cursor: pointer;
}

.jalur-identitas {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.jalur-identitas strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.jalur-identitas small {
  font-size: 12px;
  color: #64748b;
}

.jalur-nominal {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.jalur-dipilih {
  font-size: 12px;
  color: #64748b;
  margin: 12px 0 0;
}

.jalur-kosong {
  color: #64748b;
  font-size: 13px;
  text-align: center;
  padding: 20px 8px;
}

.jalur-footer {
  margin-top: 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.jalur-footer strong {
  font-size: 15px;
}

.jalur-footer p {
  color: #64748b;
  font-size: 13px;
  margin: 5px 0 0;
}

.jalur-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.jalur-actions button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  border: 1px solid #dce4ed;
}

#kosongkanPilihanJalur {
  background: #fff;
  color: #334155;
}

#cetakPilihanJalur {
  background: #365f85;
  color: #fff;
  border-color: #365f85;
}

#cetakPilihanJalur:disabled {
  opacity: .5;
  cursor: not-allowed;
}

@media (max-width: 1000px) {
  .jalur-checkgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .jalur-header,
  .jalur-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #cariJalurPengajuan {
    width: 100%;
  }

  .jalur-nominal {
    white-space: normal;
    text-align: right;
  }

  .jalur-list-card {
    padding: 14px;
  }
}

/* ALIGNMENT JALUR PENGAJUAN FINAL */

#jalurPengajuanKasbon {
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

#jalurPengajuanKasbon .jalur-header h2 {
  margin-top: 0;
  margin-bottom: 6px;
}

#jalurPengajuanKasbon .jalur-header .jalur-desc {
  margin: 0;
}

@media (max-width: 640px) {
  #jalurPengajuanKasbon {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* TOMBOL SIMPAN PDF KASBON */

#simpanPdfJalur {
  background: #eaf2f9;
  color: #274b6b;
  border: 1px solid #bcd0e0;
  font-weight: 600;
}

#simpanPdfJalur:hover:not(:disabled) {
  background: #dcebf6;
}

#simpanPdfJalur:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* DOKUMEN PDF KASBON LANGSUNG */

.kasbon-pdf-root {
  width: 1010px;
  padding: 10px;
  margin: 0;
  background: white;
  color: #111827;
  font-family: Calibri, Carlito, Arial, sans-serif;
  font-size: 12pt;
  line-height: 1.45;
  box-sizing: border-box;
}

.kasbon-pdf-root * {
  box-sizing: border-box;
}

.kasbon-pdf-kepala {
  text-align: center;
  margin-bottom: 20px;
}

.kasbon-pdf-kepala h1,
.kasbon-pdf-kepala p {
  font-size: 12pt;
  font-weight: bold;
  margin: 0 0 5px;
}

.kasbon-pdf-root table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  background: white;
}

.kasbon-pdf-root th,
.kasbon-pdf-root td {
  border: 1px solid #333;
  padding: 7px 4px;
  font-size: 12pt;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
  word-break: normal;
}

.kasbon-pdf-root th {
  background: #edf1f5;
  font-weight: bold;
}

.kasbon-pdf-root tr {
  break-inside: avoid;
  page-break-inside: avoid;
}

.kasbon-pdf-total td {
  background: #f5f7fa;
  font-weight: bold;
}

.kasbon-pdf-keterangan {
  margin-top: 22px;
  text-align: left;
  line-height: 1.6;
}

.kasbon-pdf-keterangan h2 {
  font-size: 12pt;
  font-weight: bold;
  margin: 0 0 12px;
}

.kasbon-pdf-keterangan p {
  font-size: 12pt;
  margin: 10px 0;
}

.kasbon-pdf-ttd {
  width: 210px;
  margin: 34px 0 0 auto;
  text-align: center;
  break-inside: avoid;
  page-break-inside: avoid;
}

.kasbon-pdf-ruang-ttd {
  height: 65px;
}

.kasbon-pdf-nama-ttd {
  font-weight: bold;
  text-decoration: underline;
}

/* KASBON SYSTEM FONT FINAL */

:root,
body,
button,
input,
select,
textarea,
table {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif !important;
}


/* CANCEL KASBON FINAL */

button.btn-cancel-kasbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin: 4px;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

button.btn-cancel-kasbon:hover:not(:disabled) {
    background: #e2e6ea;
}

button.btn-cancel-kasbon:disabled {
    opacity: 0.55;
    cursor: wait;
}

.riwayat-cancel-section {
    margin-top: 28px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.riwayat-cancel-section h3 {
    font-size: 18px;
    margin: 0 0 6px;
}

.riwayat-cancel-section p {
    color: #667085;
    margin: 0 0 18px;
}

.riwayat-cancel-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.riwayat-cancel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.riwayat-cancel-table th,
.riwayat-cancel-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.riwayat-cancel-table th {
    background: #f8fafc;
    font-weight: 600;
}

