/* Override Metronic 8 untuk brand BSU: primary = navy logo, aksen merah. */
:root, [data-bs-theme=light] {
  --bs-primary: #2B3990; --bs-primary-rgb: 43, 57, 144; --bs-primary-active: #1E2A6E;
  --bs-primary-light: #EEF0FA; --bs-text-primary: #2B3990; --bs-primary-inverse: #fff;
  --bs-link-color: #2B3990; --bs-link-hover-color: #1E2A6E;
  --bsu-red: #E3262E; --bsu-red-light: #FDECEC;
}
[data-bs-theme=dark] {
  --bs-primary: #6F7DD6; --bs-primary-rgb: 111, 125, 214; --bs-primary-active: #5A68C2; --bs-primary-light: #1F2340;
  --bs-text-primary: #8F9BE5;
}
.btn.btn-primary { --bs-btn-bg: var(--bs-primary); --bs-btn-border-color: var(--bs-primary); --bs-btn-hover-bg: var(--bs-primary-active); --bs-btn-active-bg: var(--bs-primary-active); }
.text-bsu-red { color: var(--bsu-red) !important; }
.bg-bsu-red-light { background: var(--bsu-red-light) !important; }
.app-sidebar-logo .brand-name { line-height: 1.1; }
.table > :not(caption) > * > * { vertical-align: middle; }
.table thead th { white-space: nowrap; }
.lines-table td { padding-top: .4rem !important; padding-bottom: .4rem !important; }
.lines-table .form-control, .lines-table .form-select { padding: .45rem .7rem; font-size: .925rem; }
.totals-box { background: var(--bs-gray-100); border-radius: .75rem; padding: 1.25rem; }
.totals-box .row-total { font-size: 1.15rem; font-weight: 700; color: var(--bs-primary); }
.doc-paper { background: #fff; max-width: 820px; margin: 0 auto; padding: 48px; box-shadow: 0 12px 32px rgba(15,26,61,.12); border-radius: 4px; color: #071437; }
[data-bs-theme=dark] .doc-paper { background: #fff; }
.signature-pad { border: 1px dashed var(--bs-gray-400); border-radius: .75rem; background: #fff; touch-action: none; width: 100%; height: 180px; }
.stat-icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.min-w-0 { min-width: 0; }
@media (max-width: 991.98px) { .app-content { padding-top: 15px; } }
