:root {
  --sb-lebar: 250px;
  --sb-bg: #1f2a37;
  --sb-teks: #c7d0db;
  --sb-aktif: #2f9e6e;
  --latar: #f3f5f8;
}
body { background: var(--latar); font-size: .925rem; }

/* Semua input teks otomatis huruf besar (kecuali .no-upper, password, email) */
input.form-control:not([type=password]):not([type=email]):not([type=number]):not([type=date]):not([type=month]):not(.no-upper),
textarea.form-control:not(.no-upper) { text-transform: uppercase; }

/* Sidebar */
.sidebar { background: var(--sb-bg); color: var(--sb-teks); width: var(--sb-lebar); }
.sidebar.offcanvas-lg { --bs-offcanvas-width: var(--sb-lebar); --bs-offcanvas-bg: var(--sb-bg); --bs-offcanvas-color: var(--sb-teks); }
@media (min-width: 992px) {
  .sidebar.offcanvas-lg { position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 1030; background-color: var(--sb-bg) !important; }
  .utama { margin-left: var(--sb-lebar); }
}
@media (max-width: 575.98px) { .stat .nilai { font-size: 1.1rem; } .stat i { font-size: 1.3rem; } }
.sidebar-brand { display: flex; align-items: center; gap: .6rem; padding: 1rem 1.1rem; color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand img { max-height: 32px; max-width: 40px; }
.sidebar-brand > i { font-size: 1.5rem; color: var(--sb-aktif); }
.sidebar-menu { padding: .5rem .6rem 2rem; }
.sidebar-menu .nav-link { color: var(--sb-teks); border-radius: .4rem; padding: .5rem .75rem; display: flex; align-items: center; gap: .65rem; }
.sidebar-menu .nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-menu .nav-link.active { background: var(--sb-aktif); color: #fff; }
.sidebar-menu .nav-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; }
.sidebar-menu .nav-link { margin-bottom: 2px; }
.sidebar-menu .menu-induk .panah { margin-left: auto; font-size: .75rem; transition: transform .2s; }
.sidebar-menu .menu-induk:not(.collapsed) { color: #fff; }
.sidebar-menu .menu-induk:not(.collapsed) .panah { transform: rotate(180deg); }
.sidebar-menu .sub-menu { padding: 2px 0 6px 1.1rem; }
.sidebar-menu .sub-menu .nav-link { font-size: .875rem; padding: .4rem .75rem; }

/* Input uang rata kanan */
input.uang { text-align: right; }

/* Topbar & konten */
.topbar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: .55rem 1rem; display: flex; align-items: center; gap: .75rem; position: sticky; top: 0; z-index: 1020; }
.konten { padding: 1rem; min-height: calc(100vh - 110px); }
@media (min-width: 768px) { .konten { padding: 1.25rem 1.5rem; } }
.kaki-app { text-align: center; color: #8a94a3; font-size: .8rem; padding: .75rem; }

.card { border: 1px solid #e5e7eb; box-shadow: none; }
.card-header { background: #fff; font-weight: 600; }
.table { font-size: .875rem; }
.table th { white-space: nowrap; background: #f8f9fb; font-weight: 600; }
.table td { vertical-align: middle; }
.nowrap { white-space: nowrap; }

/* Kartu ringkasan */
.stat { border-radius: .6rem; padding: 1rem; background: #fff; border: 1px solid #e5e7eb; height: 100%; }
.stat .label { color: #6b7280; font-size: .8rem; }
.stat .nilai { font-size: 1.35rem; font-weight: 600; }
.stat i { font-size: 1.6rem; opacity: .8; }

/* Kartu produk beranda marketing */
.produk-kartu { height: 100%; }
.produk-kartu .foto { aspect-ratio: 4/3; background: #eef1f4; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: .375rem .375rem 0 0; }
.produk-kartu .foto img { width: 100%; height: 100%; object-fit: cover; }
.produk-kartu .foto i { font-size: 3rem; color: #b5bec9; }
.produk-kartu .harga { font-size: 1.05rem; font-weight: 600; color: #198754; }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: .3rem; background: #eef1f4; }

/* Login */
.halaman-login { background: linear-gradient(135deg, #1f2a37 0%, #2f9e6e 100%); min-height: 100vh; }
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1rem; }
.login-wrap .text-muted { color: rgba(255,255,255,.75) !important; }
.login-card { width: 100%; max-width: 380px; border: 0; border-radius: .8rem; }
.login-card .text-muted { color: #6b7280 !important; }
.login-ikon { font-size: 2.6rem; color: #2f9e6e; }

/* Baris item transaksi */
.tabel-item td { padding: .35rem; }
.tabel-item .form-control, .tabel-item .form-select { font-size: .875rem; }
