/* ==========================================================================
   Prima UI: tema tampilan PT Bahagia Prima Property
   Dimuat setelah core.css dan theme-default.css, jadi menimpa warna bawaan.
   Palet: hijau tua (sidebar), hijau teal (aksi utama), kuning tanah (penanda).
   ========================================================================== */
:root {
  --p-ink: #0c3566;
  --p-ink-2: #134a8c;
  --p-primary: #0b63b8;
  --p-primary-dark: #084c8f;
  --p-primary-soft: #e1eefa;
  --p-accent: #f5a300;
  --p-accent-soft: #fdf1d3;
  --p-bg: #ecf0f1;
  --p-card: #ffffff;
  --p-line: #dde3e8;
  --p-text: #2c3e50;
  --p-muted: #6b7b8c;
  --p-ok: #27ae60;     --p-ok-soft: #dff5e8;
  --p-warn: #d68910;   --p-warn-soft: #fbf0d9;
  --p-bad: #e74c3c;    --p-bad-soft: #fde8e5;
  --p-info: #3498db;   --p-info-soft: #e3f1fc;
  --p-r-card: 14px;
  --p-r-ctl: 10px;
}

/* ---------- Dasar ---------- */
html body, button, input, select, textarea {
  font-family: "Plus Jakarta Sans", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body, .layout-wrapper, .layout-page, .content-wrapper { background: var(--p-bg) !important; color: var(--p-text); }
body { font-size: .9375rem; line-height: 1.55; }
h1, h2, h3, h4, h5, h6 { color: var(--p-text); letter-spacing: -.01em; }
.text-muted { color: var(--p-muted) !important; }
.text-primary { color: var(--p-primary) !important; }
.text-success { color: var(--p-ok) !important; }
.text-warning { color: var(--p-warn) !important; }
.text-danger  { color: var(--p-bad) !important; }
.text-info    { color: var(--p-info) !important; }
a { color: var(--p-primary); }
a:hover { color: var(--p-primary-dark); }
td, th, .stat-value, .num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid rgba(11, 99, 184, .35); outline-offset: 2px; }
.container-p-y { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }

/* ---------- Sidebar ---------- */
.bg-menu-theme, .layout-menu.bg-menu-theme { background: var(--p-ink) !important; color: #c9d9ee; box-shadow: none !important; }
.layout-menu { border-right: 0; }
.bg-menu-theme .menu-inner-shadow { display: none; }
.menu .app-brand.demo { height: auto; margin: 0; padding: 1.25rem 1.25rem .75rem; }
.app-brand-link { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-name { display: block; color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; }
.brand-sub { display: block; color: #8fb0d6; font-size: .75rem; font-weight: 500; }
.menu-search { position: relative; margin: .5rem 1rem 1rem; }
.menu-search i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: #8fb0d6; font-size: 1.1rem; }
.menu-search input {
  width: 100%; height: 40px; padding: 0 .9rem 0 2.35rem; border: 1px solid #2a5a9a; border-radius: var(--p-r-ctl);
  background: rgba(255, 255, 255, .06); color: #fff; font-size: .875rem;
}
.menu-search input::placeholder { color: #8fb0d6; }
.menu-search input:focus { outline: none; background: rgba(255, 255, 255, .1); border-color: var(--p-accent); }
.bg-menu-theme .menu-header { margin: 1.25rem 0 .35rem; padding: 0 1.5rem; }
.bg-menu-theme .menu-header:before { display: none; }
.bg-menu-theme .menu-header .menu-header-text {
  color: #86a9d3 !important; font-size: .75rem; font-weight: 600; letter-spacing: .02em; text-transform: none;
}
.bg-menu-theme .menu-inner { padding: 0 .75rem; }
.bg-menu-theme .menu-link { color: #c9d9ee !important; font-weight: 500; font-size: .9rem; padding: .62rem .85rem; border-radius: 10px !important; margin-bottom: 2px; }
.bg-menu-theme .menu-link .menu-icon { color: #8fb0d6; font-size: 1.3rem; margin-right: .75rem; }
.bg-menu-theme .menu-item:not(.active) > .menu-link:hover { background: rgba(255, 255, 255, .07) !important; color: #fff !important; }
.bg-menu-theme .menu-item:not(.active) > .menu-link:hover .menu-icon { color: #fff; }
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) {
  background: var(--p-primary) !important; color: #fff !important; box-shadow: none;
}
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link .menu-icon { color: #fff; }
.layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner > .menu-item.active:before { display: none; }
.bg-menu-theme .menu-inner > .menu-item.open > .menu-link.menu-toggle,
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link.menu-toggle { background: rgba(255, 255, 255, .07) !important; color: #fff !important; }
.bg-menu-theme .menu-toggle:after { color: #8fb0d6; }
.bg-menu-theme .menu-sub { margin: 2px 0 6px; }
.bg-menu-theme .menu-sub > .menu-item > .menu-link { color: #b3c9e6 !important; font-size: .875rem; padding-left: 3.1rem; }
.bg-menu-theme .menu-sub > .menu-item > .menu-link:before { background: #5b86bd !important; }
.bg-menu-theme .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle) { background: transparent !important; color: #fff !important; font-weight: 700; }
.bg-menu-theme .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle):before {
  background: var(--p-accent) !important; box-shadow: none !important; border: 0 !important; left: 1.4375rem; width: .5rem; height: .5rem;
}
.menu-no-result { display: none; margin: 1rem 1.5rem; color: #8fb0d6; font-size: .85rem; }

/* ---------- Bilah atas ---------- */
.layout-navbar.navbar-detached, .bg-navbar-theme {
  background: transparent !important; box-shadow: none !important; border: 0; border-bottom: 1px solid var(--p-line);
  border-radius: 0; backdrop-filter: none; width: 100%; max-width: none; margin: 0; padding: .75rem 1.5rem;
}
.page-where small { display: block; color: var(--p-muted); font-size: .78rem; font-weight: 500; line-height: 1.2; }
.page-where strong { display: block; color: var(--p-text); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.nav-date { color: var(--p-muted); font-size: .85rem; margin-right: 1rem; }
.user-chip { display: flex; align-items: center; gap: .65rem; padding: .3rem .4rem .3rem .3rem; border-radius: 999px; border: 1px solid var(--p-line); background: var(--p-card); text-decoration: none; }
.user-chip:hover { border-color: var(--p-primary); }
.avatar-ini { width: 34px; height: 34px; border-radius: 50%; background: var(--p-primary); color: #fff; font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.user-chip .who { line-height: 1.15; padding-right: .6rem; text-align: left; }
.user-chip .who b { display: block; font-size: .85rem; color: var(--p-text); font-weight: 600; }
.user-chip .who span { font-size: .72rem; color: var(--p-muted); }
.dropdown-menu { border: 1px solid var(--p-line); border-radius: 12px; box-shadow: 0 12px 28px rgba(12, 53, 102, .12); padding: .4rem; }
.dropdown-item { border-radius: 8px; padding: .55rem .75rem; font-size: .9rem; }
.dropdown-item:hover { background: var(--p-primary-soft); color: var(--p-primary-dark); }

/* ---------- Kartu & judul halaman ---------- */
.card { background: var(--p-card); border: 1px solid var(--p-line); border-radius: var(--p-r-card); box-shadow: none; }
.card-header { background: transparent; border-bottom: 1px solid var(--p-line); padding: 1rem 1.25rem; }
.card-header h5, .card-header .h5 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 1.25rem; }
.page-head { padding: .25rem 0 1.25rem; margin: 0 !important; }
.page-head h4 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .15rem; }
.page-head .page-desc { color: var(--p-muted); font-size: .9rem; max-width: 62ch; display: block; }
.stat-card { height: 100%; padding: 1rem 1.15rem; display: flex; gap: .9rem; align-items: center; border-radius: var(--p-r-card); background: var(--p-card); border: 1px solid var(--p-line); }
.stat-card .stat-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.35rem; background: var(--p-primary-soft); color: var(--p-primary); }
.stat-card .stat-label { display: block; color: var(--p-muted); font-size: .8rem; font-weight: 500; }
.stat-card .stat-value { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.stat-card.tone-warning .stat-ico { background: var(--p-warn-soft); color: var(--p-warn); }
.stat-card.tone-danger  .stat-ico { background: var(--p-bad-soft);  color: var(--p-bad); }
.stat-card.tone-success .stat-ico { background: var(--p-ok-soft);   color: var(--p-ok); }
.stat-card.tone-info    .stat-ico { background: var(--p-info-soft); color: var(--p-info); }

/* ---------- Tombol ---------- */
.btn { border-radius: var(--p-r-ctl); font-weight: 600; font-size: .9rem; padding: .55rem 1.1rem; box-shadow: none !important; transition: background-color .15s, border-color .15s, color .15s; }
.btn-sm { padding: .35rem .65rem; font-size: .82rem; border-radius: 8px; }
.btn-primary { background: var(--p-primary); border-color: var(--p-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: var(--p-primary-dark) !important; border-color: var(--p-primary-dark) !important; color: #fff; }
.btn-outline-primary { color: var(--p-primary); border-color: #9cc6ee; background: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:active { background: var(--p-primary) !important; border-color: var(--p-primary) !important; color: #fff !important; }
.btn-outline-secondary { color: #4a5b6c; border-color: var(--p-line); background: var(--p-card); }
.btn-outline-secondary:hover { background: #e9eef2 !important; color: var(--p-text) !important; border-color: #c3ced6 !important; }
.btn-outline-danger { color: var(--p-bad); border-color: #efb9b5; background: transparent; }
.btn-outline-danger:hover { background: var(--p-bad) !important; border-color: var(--p-bad) !important; color: #fff !important; }
.btn-outline-warning { color: var(--p-warn); border-color: #ecce93; background: transparent; }
.btn-outline-warning:hover { background: var(--p-warn) !important; border-color: var(--p-warn) !important; color: #fff !important; }
.btn-outline-success { color: var(--p-ok); border-color: #a5d8bf; }
.btn-outline-success:hover { background: var(--p-ok) !important; border-color: var(--p-ok) !important; color: #fff !important; }
.btn-success { background: var(--p-ok); border-color: var(--p-ok); }
.btn-warning { background: var(--p-accent); border-color: var(--p-accent); color: #3a2704; }
.btn-danger { background: var(--p-bad); border-color: var(--p-bad); }
td .btn-sm i, td .btn-sm .bx { font-size: 1.05rem; vertical-align: middle; }

/* ---------- Tabel ---------- */
.table-responsive { border-radius: 0 0 var(--p-r-card) var(--p-r-card); }
.table { color: var(--p-text); margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem .85rem; border-bottom-color: var(--p-line); vertical-align: middle; }
.table > thead { background: #f4f7f9; vertical-align: middle; }
.table > thead th { font-size: .8rem; font-weight: 700; color: #546e7a; text-transform: none; letter-spacing: 0; white-space: nowrap; border-bottom: 1px solid var(--p-line); }
.table-hover > tbody > tr:hover > * { background: #eaf2fb; --bs-table-accent-bg: transparent; color: var(--p-text); }
.table-sm > :not(caption) > * > * { padding: .6rem .85rem; }
.table > :not(caption) > * > *:first-child { padding-left: 1.25rem; }
.table > :not(caption) > * > *:last-child { padding-right: 1.25rem; }
.card-header.d-flex { align-items: center; }
/* Kolom Aksi tetap terlihat di sisi kanan walau tabel lebar */
.table .col-aksi { position: sticky; right: 0; background: #fff; box-shadow: -8px 0 8px -8px rgba(12, 53, 102, .18); z-index: 1; }
.table > thead .col-aksi { background: #f4f7f9; }
.table-hover > tbody > tr:hover > .col-aksi { background: #eaf2fb; }
.table tbody tr:last-child > * { border-bottom: 0; }
tr.filter-empty td { text-align: center; color: var(--p-muted); padding: 2rem 1rem; }
.empty-state { text-align: center; padding: 2.25rem 1rem; color: var(--p-muted); }
.empty-state i { font-size: 2.2rem; color: #b0bec5; display: block; margin-bottom: .4rem; }

/* ---------- Badge status ---------- */
.badge { font-weight: 600; font-size: .75rem; text-transform: none; letter-spacing: 0; padding: .38em .8em; border-radius: 999px; }
.badge.bg-label-primary   { background: var(--p-primary-soft) !important; color: var(--p-primary-dark) !important; }
.badge.bg-label-success   { background: var(--p-ok-soft) !important;   color: #1e8449 !important; }
.badge.bg-label-warning   { background: var(--p-warn-soft) !important; color: #8a5a07 !important; }
.badge.bg-label-danger    { background: var(--p-bad-soft) !important;  color: #b03a2e !important; }
.badge.bg-label-info      { background: var(--p-info-soft) !important; color: #21618c !important; }
.badge.bg-label-secondary { background: #e6ebef !important; color: #546e7a !important; }
.bg-label-primary { background: var(--p-primary-soft) !important; color: var(--p-primary-dark) !important; }
.bg-label-warning { background: var(--p-warn-soft) !important; color: #8a5a07 !important; }
.bg-label-info    { background: var(--p-info-soft) !important; color: #21618c !important; }

/* ---------- Formulir ---------- */
.form-label { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .85rem; color: #34495e; margin-bottom: .35rem; }
.form-control, .form-select { min-height: 44px; border: 1px solid #cfd8dc; border-radius: var(--p-r-ctl); background-color: #fff; font-size: .9375rem; color: var(--p-text); box-shadow: none; }
textarea.form-control { min-height: 0; }
.form-control:hover, .form-select:hover { border-color: #b0bec5; }
.form-control:focus, .form-select:focus { border-color: var(--p-primary); box-shadow: 0 0 0 4px rgba(11, 99, 184, .15); }
.form-control[readonly] { background: #eef2f5; }
.form-control::placeholder { color: #95a5b4; }
.form-text { color: var(--p-muted); font-size: .8rem; }
.form-check-input:checked { background-color: var(--p-primary); border-color: var(--p-primary); }
.input-group-text { border-radius: var(--p-r-ctl); border-color: #cfd8dc; background: #eef2f5; }
.card-header input[type="search"] { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667774' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat .85rem center; padding-left: 2.4rem; }

/* ---------- Modal, alert, tab, paginasi ---------- */
.modal-content { border: 0; border-radius: 18px; box-shadow: 0 24px 60px rgba(12, 53, 102, .25); overflow: hidden; }
.modal-header { background: #f4f7f9; border-bottom: 1px solid var(--p-line); padding: 1.1rem 1.5rem; }
.modal-title { font-weight: 700; font-size: 1.1rem; }
.modal-body { padding: 1.5rem; }
.modal-footer { border-top: 1px solid var(--p-line); padding: 1rem 1.5rem; background: #f8fafb; }
.modal-backdrop.show { opacity: .45; background: var(--p-ink); }
.alert { border-radius: 12px; border: 1px solid transparent; border-left-width: 4px; padding: .9rem 1.1rem; font-size: .9rem; }
.alert-success { background: var(--p-ok-soft);   border-color: #bfe5d1; border-left-color: var(--p-ok);   color: #1b6b3f; }
.alert-warning { background: var(--p-warn-soft); border-color: #efd9a8; border-left-color: var(--p-accent); color: #6e4706; }
.alert-danger  { background: var(--p-bad-soft);  border-color: #f3c6c3; border-left-color: var(--p-bad);  color: #922b21; }
.alert-info    { background: var(--p-info-soft); border-color: #bfd9ee; border-left-color: var(--p-info); color: #1a5276; }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--p-primary); box-shadow: none; }
.nav-tabs .nav-link.active { color: var(--p-primary); border-bottom-color: var(--p-primary); }
.page-item.active .page-link { background: var(--p-primary); border-color: var(--p-primary); }
.list-group-item { border-color: var(--p-line); padding: .8rem 1.25rem; }
.progress-bar { background: var(--p-primary); }
.content-footer { background: transparent !important; box-shadow: none !important; color: var(--p-muted); font-size: .82rem; }
.footer-link { color: var(--p-muted); }

/* ---------- Home ---------- */
.hello { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: flex-end; margin-bottom: 1.5rem; }
.hello h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; margin: 0 0 .2rem; }
.hello p { margin: 0; color: var(--p-muted); }
.hello .role-chip { display: inline-block; font-size: .78rem; font-weight: 600; padding: .25rem .75rem; border-radius: 999px; background: var(--p-primary-soft); color: var(--p-primary-dark); margin-right: .5rem; }
.shortcuts { display: flex; flex-wrap: wrap; gap: .5rem; }
.sec-title { font-size: 1rem; font-weight: 700; margin: 0 0 .75rem; }
.sec-title small { font-weight: 500; color: var(--p-muted); margin-left: .5rem; font-size: .82rem; }

.todo-grid { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-bottom: 1.75rem; }
.todo { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; background: var(--p-card); border: 1px solid var(--p-line); border-left: 4px solid var(--p-accent); border-radius: var(--p-r-card); text-decoration: none; color: var(--p-text); transition: border-color .15s, background-color .15s; }
.todo:hover { background: #fffaf0; color: var(--p-text); border-color: var(--p-accent); }
.todo.t-danger { border-left-color: var(--p-bad); }
.todo.t-danger:hover { background: #fff6f5; border-color: var(--p-bad); }
.todo .n { flex: 0 0 auto; min-width: 2.6rem; height: 2.6rem; padding: 0 .5rem; display: grid; place-items: center; border-radius: 12px; font-size: 1.15rem; font-weight: 800; background: var(--p-accent-soft); color: #8a5a07; }
.todo.t-danger .n { background: var(--p-bad-soft); color: #b03a2e; }
.todo b { display: block; font-size: .92rem; line-height: 1.3; }
.todo span { display: block; font-size: .8rem; color: var(--p-muted); line-height: 1.35; }
.todo i.go { margin-left: auto; color: #95a5b4; font-size: 1.3rem; }
.all-clear { display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.25rem; background: var(--p-ok-soft); border: 1px solid #bfe5d1; border-radius: var(--p-r-card); color: #1b6b3f; margin-bottom: 1.75rem; }
.all-clear i { font-size: 1.8rem; color: var(--p-ok); }

.flow { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; padding: 1.5rem 1rem 1.25rem; }
.flow:before { content: ""; position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 3.15rem; height: 3px; background: var(--p-line); }
.flow-step { position: relative; text-align: center; padding: 0 .35rem; text-decoration: none; color: var(--p-text); }
.flow-step .dot { position: relative; z-index: 1; margin: 0 auto .7rem; width: 3.3rem; height: 3.3rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; font-weight: 800; background: #fff; border: 3px solid var(--p-line); color: var(--p-muted); transition: transform .15s; }
.flow-step.has .dot { background: var(--p-accent); border-color: var(--p-accent); color: #3a2704; }
.flow-step.done .dot { background: #fff; border-color: var(--p-primary); color: var(--p-primary); }
a.flow-step:hover .dot { transform: scale(1.06); }
.flow-step b { display: block; font-size: .85rem; line-height: 1.3; }
.flow-step span { display: block; font-size: .75rem; color: var(--p-muted); line-height: 1.35; margin-top: .15rem; }
.flow-step small.who { display: inline-block; margin-top: .4rem; font-size: .7rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: #e6ebef; color: #546e7a; }
@media (max-width: 991.98px) {
  .flow { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem; }
  .flow:before { left: 2.85rem; right: auto; top: 2rem; bottom: 2rem; width: 3px; height: auto; }
  .flow-step { display: grid; grid-template-columns: 3.3rem 1fr; gap: 0 1rem; text-align: left; align-items: center; }
  .flow-step .dot { margin: 0; grid-row: span 4; }
  .flow-step small.who { justify-self: start; }
}

.money-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .8rem 1.25rem; border-bottom: 1px solid var(--p-line); }
.money-row:last-child { border-bottom: 0; }
.money-row span { color: var(--p-muted); font-size: .88rem; }
.money-row strong { font-size: 1rem; font-weight: 700; }
.stock-bar { height: 6px; border-radius: 999px; background: #dfe6ea; overflow: hidden; min-width: 70px; }
.stock-bar i { display: block; height: 100%; border-radius: 999px; background: var(--p-ok); }
.stock-bar i.w { background: var(--p-accent); }
.stock-bar i.b { background: var(--p-bad); }

/* ---------- Halaman masuk ---------- */
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #fff !important; }
.login-side { position: relative; overflow: hidden; background: var(--p-ink); color: #fff; padding: 3rem clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: space-between; }
.login-side:after { content: ""; position: absolute; right: -90px; bottom: -90px; width: 360px; height: 360px; border-radius: 50%; border: 56px solid rgba(217, 144, 47, .16); pointer-events: none; }
.login-side h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; max-width: 16ch; margin: 0 0 1rem; }
.login-side p.lead { color: #bcd0ea; max-width: 42ch; margin: 0 0 2rem; }
.login-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; position: relative; z-index: 1; }
.login-steps li { display: flex; gap: .9rem; align-items: flex-start; }
.login-steps i { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .09); color: var(--p-accent); font-size: 1.25rem; }
.login-steps b { display: block; color: #fff; font-size: .95rem; }
.login-steps span { color: #a9c1e0; font-size: .85rem; }
.login-main { display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem; }
.login-box { width: 100%; max-width: 400px; }
.login-box h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .35rem; }
.login-box .sub { color: var(--p-muted); margin: 0 0 1.75rem; }
.login-box .btn-primary { width: 100%; padding: .8rem 1rem; font-size: 1rem; }
.pass-wrap { position: relative; }
.pass-wrap .toggle-pass { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--p-muted); width: 38px; height: 38px; border-radius: 8px; font-size: 1.25rem; }
.pass-wrap .toggle-pass:hover { background: #e9eef2; color: var(--p-text); }
.pass-wrap input { padding-right: 2.9rem; }
@media (max-width: 899.98px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-side { padding: 1.75rem 1.5rem; }
  .login-side h2, .login-side p.lead, .login-steps { display: none; }
  .login-side .brand-sub { display: block; }
}

/* ---------- Layar kecil & cetak ---------- */
@media (max-width: 767.98px) {
  .layout-navbar.navbar-detached { padding: .6rem 1rem; }
  .nav-date, .user-chip .who { display: none; }
  .user-chip { padding: .25rem; }
  .page-head h4 { font-size: 1.3rem; }
  .hello h1 { font-size: 1.4rem; }
  .table > :not(caption) > * > * { padding: .75rem .85rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .layout-menu, .layout-navbar, .content-footer, .btn { display: none !important; } .card { border: 0; } }

/* ---------- Notifikasi (CRUD tanpa muat ulang) ---------- */
#toastWadah { position: fixed; top: 1rem; right: 1rem; z-index: 2000; display: grid; gap: .6rem; width: min(380px, calc(100vw - 2rem)); }
.toast-prima { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; background: #fff; border: 1px solid var(--p-line); border-left: 4px solid var(--p-ok); box-shadow: 0 12px 28px rgba(12, 53, 102, .18); font-size: .9rem; animation: toast-masuk .2s ease-out; }
.toast-prima i { font-size: 1.35rem; color: var(--p-ok); }
.toast-prima div { flex: 1; padding-top: .1rem; }
.toast-prima button { border: 0; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--p-muted); }
.toast-prima.toast-warning { border-left-color: var(--p-accent); } .toast-prima.toast-warning i { color: var(--p-warn); }
.toast-prima.toast-danger { border-left-color: var(--p-bad); } .toast-prima.toast-danger i { color: var(--p-bad); }
.toast-prima.keluar { opacity: 0; transform: translateX(12px); transition: all .2s; }
@keyframes toast-masuk { from { opacity: 0; transform: translateY(-8px); } }

/* ==========================================================================
   FLAT UI: warna solid, tanpa bayangan dan gradasi, sudut tegas.
   Palet BTN: biru #0b63b8, biru tua #0c3566, oranye #f5a300.
   ========================================================================== */
:root { --p-r-card: 8px; --p-r-ctl: 6px; --p-orange: #f5a300; --p-orange-dark: #d98e00; }
*, *:before, *:after { box-shadow: none; }
.modal-content, .dropdown-menu, .toast-prima { box-shadow: 0 6px 0 rgba(12, 53, 102, .12); }

/* Sidebar: biru tua, menu aktif oranye solid */
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) { background: var(--p-orange) !important; color: #1b2a3a !important; font-weight: 700; }
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link .menu-icon { color: #1b2a3a; }
.bg-menu-theme .menu-link { border-radius: 6px !important; }
.menu-search input { border: 0; background: rgba(255, 255, 255, .1); border-radius: 6px; }
.menu-search input:focus { background: rgba(255, 255, 255, .16); box-shadow: inset 0 -3px 0 var(--p-orange); }

/* Bilah atas putih rata */
.layout-navbar.navbar-detached, .bg-navbar-theme { background: #fff !important; border-bottom: 0; box-shadow: inset 0 -3px 0 var(--p-primary) !important; }
.user-chip { border: 0; background: var(--p-bg); border-radius: 6px; }
.avatar-ini { border-radius: 6px; background: var(--p-orange); color: #1b2a3a; }

/* Kartu rata, tanpa garis tepi */
.card { border: 0; border-radius: var(--p-r-card); }
.card-header { border-bottom: 2px solid var(--p-bg); }
.modal-content { border-radius: 10px; }
.modal-header { background: var(--p-primary); color: #fff; border-bottom: 0; }
.modal-header .modal-title { color: #fff; }
.modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .9; }
.table > :not(caption) > * > * { border-bottom-color: #eef2f5; }
.table > thead { background: #eaf2fb; }
.table > thead th { color: var(--p-primary-dark); border-bottom: 0; }
.table-hover > tbody > tr:hover > * { background: #f3f8fd; }

/* Kartu ringkasan: blok warna solid */
.stat-card { border: 0; border-radius: var(--p-r-card); background: var(--p-primary); color: #fff; }
.stat-card .stat-ico { background: rgba(255, 255, 255, .2); color: #fff; border-radius: 8px; }
.stat-card .stat-label { color: rgba(255, 255, 255, .85); font-weight: 600; }
.stat-card .stat-value, .stat-card .stat-value * { color: #fff !important; }
.stat-card.tone-success { background: #27ae60; }
.stat-card.tone-warning { background: var(--p-orange); color: #1b2a3a; }
.stat-card.tone-warning .stat-label, .stat-card.tone-warning .stat-value, .stat-card.tone-warning .stat-value * { color: #1b2a3a !important; }
.stat-card.tone-warning .stat-ico { background: rgba(27, 42, 58, .12); color: #1b2a3a; }
.stat-card.tone-danger { background: #e74c3c; }
.stat-card.tone-info { background: #3498db; }
.stat-card.tone-success .stat-ico, .stat-card.tone-danger .stat-ico, .stat-card.tone-info .stat-ico { background: rgba(255, 255, 255, .2); color: #fff; }

/* Tombol: padat dan tegas; outline menjadi isi lembut */
.btn { border-radius: 6px; border-width: 0; font-weight: 700; }
.btn-primary { background: var(--p-primary); }
.btn-warning { background: var(--p-orange); color: #1b2a3a; }
.btn-warning:hover { background: var(--p-orange-dark) !important; color: #1b2a3a; }
.btn-outline-primary { background: var(--p-primary-soft); border-color: transparent; color: var(--p-primary-dark); }
.btn-outline-secondary { background: #e9eef2; border-color: transparent; color: #34495e; }
.btn-outline-secondary:hover { background: #d9e1e7 !important; border-color: transparent !important; }
.btn-outline-danger { background: #fde8e5; border-color: transparent; color: #c0392b; }
.btn-outline-warning { background: var(--p-accent-soft); border-color: transparent; color: #9a6500; }
.btn-outline-success { background: #dff5e8; border-color: transparent; color: #1e8449; }
.btn-outline-primary:hover, .btn-outline-danger:hover, .btn-outline-warning:hover, .btn-outline-success:hover { border-color: transparent !important; }
.btn-outline-warning:hover { color: #1b2a3a !important; background: var(--p-orange) !important; }

/* Formulir rata dengan garis bawah tebal saat fokus */
.form-control, .form-select { background: #f4f7f9; border: 2px solid #f4f7f9; border-radius: 6px; }
.form-control:hover, .form-select:hover { border-color: #dfe7ee; background: #f4f7f9; }
.form-control:focus, .form-select:focus { background: #fff; border-color: var(--p-primary); box-shadow: none; }
.form-control[readonly] { background: #e9eef2; }
.card-header input[type="search"] { background-color: #f4f7f9; }
.modal-footer { background: #f4f7f9; }

/* Status & peringatan */
.badge { border-radius: 4px; }
.alert { border-radius: 6px; border: 0; border-left: 6px solid; }
.toast-prima { border-radius: 6px; border: 0; border-left: 6px solid var(--p-ok); }
.toast-prima.toast-warning { border-left-color: var(--p-orange); } .toast-prima.toast-danger { border-left-color: var(--p-bad); }

/* Beranda */
.hello .role-chip { border-radius: 4px; background: var(--p-orange); color: #1b2a3a; font-weight: 700; }
.todo { border: 0; border-left: 8px solid var(--p-orange); border-radius: var(--p-r-card); background: #fff; }
.todo:hover { background: #fff8e6; border-color: var(--p-orange-dark); }
.todo.t-danger { border-left-color: #e74c3c; } .todo.t-danger:hover { background: #fdeeed; border-color: #c0392b; }
.todo .n { border-radius: 6px; background: var(--p-orange); color: #1b2a3a; }
.todo.t-danger .n { background: #e74c3c; color: #fff; }
.all-clear { border: 0; background: #27ae60; color: #fff; border-radius: var(--p-r-card); }
.all-clear i { color: #fff; }
.flow:before { height: 4px; background: #dfe6ea; }
.flow-step .dot { border: 0; background: #dfe6ea; color: #546e7a; }
.flow-step.has .dot { background: var(--p-orange); color: #1b2a3a; }
.flow-step.done .dot { background: #27ae60; color: #fff; border: 0; }
.flow-step small.who { border-radius: 4px; background: #e1eefa; color: var(--p-primary-dark); }
.stock-bar { border-radius: 2px; } .stock-bar i { border-radius: 2px; }
.money-row { border-bottom-color: #eef2f5; }

/* Halaman masuk: biru BTN solid, bentuk datar oranye */
.login-side { background: var(--p-primary-dark); }
.login-side:after { border: 0; background: var(--p-primary); width: 420px; height: 420px; right: -120px; bottom: -120px; }
.login-side:before { content: ""; position: absolute; right: 70px; bottom: 110px; width: 130px; height: 130px; background: var(--p-orange); border-radius: 50%; pointer-events: none; }
.login-steps i { background: rgba(255, 255, 255, .14); color: var(--p-orange); border-radius: 8px; }
.login-box .btn-primary { background: var(--p-primary); }
.login-box .btn-primary:hover { background: var(--p-primary-dark) !important; }
.pass-wrap .toggle-pass { border-radius: 6px; }
.table > thead .col-aksi { background: #eaf2fb; }
.table-hover > tbody > tr:hover > .col-aksi { background: #f3f8fd; }
.login-side:before { right: 60px; bottom: 70px; width: 110px; height: 110px; z-index: 1; }
