/* ===== Tema biru muda Sistem Informasi Koperasi (di atas Tabler) ===== */
:root {
  --tblr-primary: #1e88e5;
  --tblr-primary-rgb: 30, 136, 229;
  --tblr-primary-fg: #ffffff;
  --kop-sidebar-bg: #e3f2fd;
  --kop-sidebar-active: #bbdefb;
  --kop-sidebar-text: #0d47a1;
  --kop-body-bg: #f4f9ff;
}

body { background-color: var(--kop-body-bg); }

/* Sidebar */
.navbar-vertical.kop-sidebar {
  background: var(--kop-sidebar-bg);
  border-right: 1px solid #cfe5fb;
}
.kop-sidebar .navbar-brand { padding: .75rem 0; }
.kop-sidebar .navbar-brand img.kop-logo { height: 40px; width: 40px; object-fit: contain; }
.kop-sidebar .kop-brand-text { color: var(--kop-sidebar-text); font-weight: 700; line-height: 1.1; font-size: .95rem; }
.kop-sidebar .kop-brand-text small { display: block; font-weight: 400; font-size: .7rem; color: #4f7bb3; }
.kop-sidebar .nav-link,
.kop-sidebar .dropdown-item { color: var(--kop-sidebar-text); }
.kop-sidebar .nav-link:hover,
.kop-sidebar .dropdown-item:hover { background: rgba(30, 136, 229, .08); }
.kop-sidebar .nav-item.active > .nav-link,
.kop-sidebar .dropdown-item.active {
  background: var(--kop-sidebar-active);
  color: #0b3c84;
  font-weight: 600;
}
.kop-sidebar .dropdown-menu { background: transparent; border: 0; box-shadow: none; }
.kop-sidebar .nav-link-icon i { font-size: 1.15rem; }

/* Topbar */
.kop-topbar { background: #ffffff; border-bottom: 1px solid #e3eef9; }

/* Halaman login */
.kop-login-bg { background: linear-gradient(160deg, #e3f2fd 0%, #ffffff 60%); min-height: 100vh; }
.kop-login-logo { height: 72px; width: 72px; object-fit: contain; }

/* Tabel & form */
.table thead th { background: #eef6fe; color: #2b4f7c; }
.form-label.required::after { content: " *"; color: #d63939; }
.money { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kop-menu-tree .kop-menu-group { border: 1px solid #e3eef9; border-radius: 6px; padding: .5rem .75rem; margin-bottom: .5rem; background: #fbfdff; }
.kop-json { background: #f6f8fa; padding: .75rem; border-radius: 6px; max-height: 420px; overflow: auto; font-size: .8rem; }

/* Tombol besar (dipakai layar POS) */
.btn-xl { padding: 1rem 1.5rem; font-size: 1.15rem; }

/* ---------- POS / layar kasir ---------- */
.pos-search { font-size: 1.25rem; height: 3.25rem; }
.pos-results { position: absolute; z-index: 1050; left: 0; right: 0; top: 100%; max-height: 420px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
.pos-results .list-group-item { padding: .75rem 1rem; }
.pos-cart-wrap { min-height: 320px; }
.pos-cart td { padding-top: .5rem; padding-bottom: .5rem; }
.pos-cart .input-group .btn { min-width: 2.75rem; font-size: 1.25rem; }
.pos-totals td { font-size: 1rem; }
.pos-grand td { font-size: 1.75rem; font-weight: 700; color: var(--tblr-primary); border-top: 2px solid var(--tblr-primary); }
.pos-methods .btn { font-weight: 600; }
.pos-paid { font-size: 1.5rem; }
.pos-change { font-size: 1.5rem; }
.pos-pay { font-size: 1.4rem; padding-top: 1rem; padding-bottom: 1rem; }
.pos-cart .input-group { min-width: 9.5rem; }
.pos-cart .input-group input { min-width: 3.5rem; font-weight: 600; font-size: 1.1rem; }
.pos-cart .input-group .btn { min-width: 2.6rem; padding-left: .4rem; padding-right: .4rem; }

/* ---------- Oksigen ---------- */
.oxygen-chips { display: flex; flex-wrap: wrap; gap: .3rem; max-height: 320px; overflow-y: auto; padding: .25rem 0; }
.oxygen-chips .btn { font-family: var(--tblr-font-monospace, monospace); padding: .15rem .45rem; }
.oxygen-stock td, .oxygen-stock th { padding: .3rem .5rem; }

/* ---------- Laporan ---------- */
.report-table td, .report-table th { padding-top: .3rem; padding-bottom: .3rem; }
.layout-editor .form-control-sm, .layout-editor .form-select-sm { min-width: 0; }
.report-label { white-space: pre-wrap; }
.report-scroll { max-height: 72vh; }
.report-scroll thead th { position: sticky; top: 0; background: var(--tblr-bg-surface, #fff); z-index: 1; }
.report-scroll thead tr:nth-child(2) th { top: 2rem; }
.chart-box { position: relative; height: 280px; }
.chart-box-sm { height: 240px; }
