:root { --app: #0f6e73; --app-dark: #0b5458; }
body { background: #f3f6f8; font-size: .9rem; }
.app-nav { background: var(--app); }
.app-nav .nav-link.active { background: rgba(255,255,255,.18); border-radius: .375rem; }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card-header { background: #fff; }
.btn-primary { background: var(--app); border-color: var(--app); }
.btn-primary:hover, .btn-primary:focus { background: var(--app-dark); border-color: var(--app-dark); }
.btn-outline-primary { color: var(--app); border-color: var(--app); }
.btn-outline-primary:hover { background: var(--app); border-color: var(--app); }
a { color: var(--app); }
.text-primary { color: var(--app) !important; }
.bg-primary { background-color: var(--app) !important; }

/* kartu statistik */
.stat { border-left: 4px solid var(--app); }
.stat-green { border-left-color: #198754; } .stat-red { border-left-color: #dc3545; }
.stat-amber { border-left-color: #f0ad4e; } .stat-blue { border-left-color: #2f80ed; } .stat-gray { border-left-color: #6c757d; }
.stat-lbl { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: #6c757d; }
.stat-val { font-size: 1.15rem; font-weight: 700; white-space: nowrap; }

/* tabel komponen */
.batas-mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: #212529; }
.tbl-komp td { padding-top: .45rem; padding-bottom: .45rem; }

/* halaman data */
.filter-card { position: sticky; top: 70px; }
.filter-body { max-height: calc(100vh - 230px); overflow-y: auto; }
.ms-menu { width: 100%; max-height: 300px; overflow-y: auto; }
.ms-filter .dropdown-toggle::after { margin-left: .4rem; }
.table-wrap { overflow: auto; max-height: calc(100vh - 235px); }
.tbl-data { font-size: .82rem; }
.tbl-data thead th { position: sticky; top: 0; z-index: 2; background: #e9f2f2; white-space: nowrap; }
.tbl-data thead th a { color: #212529; text-decoration: none; }
.tbl-data tfoot td { position: sticky; bottom: 0; z-index: 1; }
.tbl-data tfoot tr:first-child td { bottom: 31px; }
.cell-wrap { min-width: 160px; max-width: 280px; }
.row-ditolak td { background: #fff5f5; }
.row-ditolak td.fw-semibold { text-decoration: line-through; text-decoration-color: rgba(220,53,69,.5); }
.row-menunggu td { background: #fffbea; }
tr.terpilih td { background: #e3f2fd !important; }
.toolbar .form-select, .toolbar .form-control { max-width: 260px; }
body.tanpa-filter #kolFilter { display: none; }
body.tanpa-filter #kolTabel { flex: 0 0 100%; max-width: 100%; }

/* chip ringkasan */
.chip { display: inline-flex; flex-direction: column; background: #fff; border-radius: .5rem; padding: .3rem .7rem; box-shadow: 0 1px 2px rgba(0,0,0,.08); text-decoration: none; color: #212529; line-height: 1.2; }
.chip span { font-size: .7rem; color: #6c757d; }
.chip b { font-size: .85rem; }
.chip-disetujui { border-left: 3px solid #198754; } .chip-ditolak { border-left: 3px solid #dc3545; } .chip-menunggu { border-left: 3px solid #f0ad4e; }

/* login */
.login-bg { background: linear-gradient(135deg, #0f6e73, #2f80ed); }
.login-ico { width: 56px; height: 56px; border-radius: 50%; background: #e9f2f2; color: var(--app); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }

@media (max-width: 991.98px) { .filter-card { position: static; } .filter-body { max-height: none; } .table-wrap { max-height: 70vh; } }
.ms-txt { flex: 1 1 auto; min-width: 0; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
