@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap');
* { box-sizing: border-box; }
  /* ===== TEMA BIRU (DEFAULT) ===== */
.app-root.theme-blue, .login-screen, .app-loading {
  --primary: #2F6FED;
  --primary-dark: #1E52C4;
  --primary-light: rgba(47,111,237,0.1);
  --bg: #F4F6FB;
  --card: #FFFFFF;
  --border: #E4E9F2;
  --ink: #1E293B;
  --ink-soft: #64748B;
  --green: #16A34A;
  --green-light: rgba(22,163,74,0.1);
  --amber: #D97706;
  --amber-light: rgba(217,119,6,0.1);
  --red: #DC2626;
  --red-light: rgba(220,38,38,0.1);
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
}

/* ===== TEMA HIJAU (SAGE GREEN - Dari Screenshot) ===== */
.app-root.theme-green {
  --primary: #3D6B5B;
  --primary-dark: #2D5245;
  --primary-light: rgba(61,107,91,0.1);
  --bg: #F8F5F0;
  --card: #FFFFFF;
  --border: #E5E0D8;
  --ink: #2C3E3A;
  --ink-soft: #6B7280;
  --green: #16A34A;
  --green-light: rgba(22,163,74,0.1);
  --amber: #D97706;
  --amber-light: rgba(217,119,6,0.1);
  --red: #DC2626;
  --red-light: rgba(220,38,38,0.1);
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.app-root.theme-green .topbar {
  background: #3D6B5B;
  border-bottom-color: #2D5245;
}

.app-root.theme-green .bottom-nav {
  background: #FFFFFF;
  border-top-color: #E5E0D8;
}

.app-root.theme-green .nav-item.active {
  color: #3D6B5B;
}

.app-root.theme-green .btn-primary {
  background: #3D6B5B;
}

.app-root.theme-green .btn-primary:hover:not(:disabled) {
  background: #2D5245;
}

.app-root.theme-green .btn-outline {
  color: #3D6B5B;
  border-color: #3D6B5B;
}

.app-root.theme-green .btn-outline:hover:not(:disabled) {
  background: rgba(61,107,91,0.1);
}

.app-root.theme-green .chip.active {
  background: #3D6B5B;
  border-color: #3D6B5B;
}

.app-root.theme-green .login-card {
  background: #FFFFFF;
  box-shadow: 0 12px 32px rgba(61,107,91,0.15);
}

.app-root.theme-green .login-logo {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
}

.app-root.theme-green .dash-hero {
  background: linear-gradient(135deg, #3D6B5B, #2D5245);
}

.app-root.theme-green .kasir-cart-bar {
  background: #3D6B5B;
}

.app-root.theme-green .pay-hero {
  background: rgba(22,163,74,0.1);
  border-color: rgba(22,163,74,0.25);
}

.app-root.theme-green .pay-hero-label {
  color: #16A34A;
}

.app-root.theme-green .pay-hero-value {
  color: #16A34A;
}

.app-root.theme-green .pay-method-tile.active {
  border-color: #3D6B5B;
  color: #3D6B5B;
  background: rgba(61,107,91,0.1);
}

.app-root.theme-green .method-tile.active {
  border-color: #3D6B5B;
  color: #3D6B5B;
  background: rgba(61,107,91,0.1);
}

.app-root.theme-green .sidebar-cat.active {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
  border-left-color: #3D6B5B;
}

.app-root.theme-green .subnav-item.active {
  background: #3D6B5B;
}

.app-root.theme-green .toggle-pill.on {
  background: rgba(22,163,74,0.1);
  color: #16A34A;
}

.app-root.theme-green .margin-pill.positive {
  background: rgba(22,163,74,0.1);
  color: #16A34A;
}

.app-root.theme-green .laporan-stat-card.highlight {
  background: rgba(61,107,91,0.1);
  border-color: rgba(61,107,91,0.25);
}

.app-root.theme-green .laporan-stat-card.highlight .summary-value {
  color: #3D6B5B;
}

.app-root.theme-green .net-profit-card {
  border-color: #16A34A;
}

.app-root.theme-green .net-profit-value {
  color: #16A34A;
}

.app-root.theme-green .receipt-row.bold {
  color: #3D6B5B;
}

.app-root.theme-green .settings-menu-icon {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
}

.app-root.theme-green .settings-profile-avatar {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
}

.app-root.theme-green .about-logo {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
}

.app-root.theme-green .printer-hero {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
}

.app-root.theme-green .upload-box:hover {
  border-color: #3D6B5B;
  color: #3D6B5B;
}

.app-root.theme-green .found-product-card {
  background: rgba(61,107,91,0.1);
  border-color: #3D6B5B;
}

.app-root.theme-green .produk-card-thumb {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
}

.app-root.theme-green .kasir-product-thumb {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
}

.app-root.theme-green .cart-thumb {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
}

.app-root.theme-green .search-box {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .inline-add-form {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .category-manager {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .settings-form-card {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .settings-profile-card {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .settings-menu-list {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .about-card {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .logout-confirm-box {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .modal {
  background: #FFFFFF;
}

.app-root.theme-green .struk-card {
  background: #FFFFFF;
}

.app-root.theme-green .produk-subnav {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .kasir-sidebar {
  background: #FFFFFF;
  border-right-color: #E5E0D8;
}

.app-root.theme-green .debt-summary-card {
  background: rgba(217,119,6,0.1);
  border-color: #D97706;
}

.app-root.theme-green .top-customers-box {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .top-customer-row {
  background: #F8F5F0;
  border-color: #E5E0D8;
}

.app-root.theme-green .riwayat-footer {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .riwayat-detail {
  background: #F8F5F0;
  border-color: #E5E0D8;
}

.app-root.theme-green .cash-row {
  background: #F8F5F0;
  border-color: #E5E0D8;
}

.app-root.theme-green .kas-awal-row {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .stat-card {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .riwayat-date-box {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .return-item-row {
  background: #F8F5F0;
  border-color: #E5E0D8;
}

.app-root.theme-green .category-chip-row {
  background: #F8F5F0;
  border-color: #E5E0D8;
}

.app-root.theme-green .pelanggan-select-box,
.app-root.theme-green .new-customer-form {
  background: #F8F5F0;
  border-color: #E5E0D8;
}

.app-root.theme-green .ledger-box {
  background: #F8F5F0;
}

.app-root.theme-green .adj-input-group select,
.app-root.theme-green .adj-input-group input {
  background: #F8F5F0;
  border-color: #E5E0D8;
}

.app-root.theme-green .quick-cash button {
  background: #F8F5F0;
  border-color: #E5E0D8;
}

.app-root.theme-green .qty-control button {
  background: #F8F5F0;
  border-color: #E5E0D8;
}

.app-root.theme-green .login-input,
.app-root.theme-green .pay-input,
.app-root.theme-green .pay-select,
.app-root.theme-green .cell-input,
.app-root.theme-green .cell-select {
  background: #FFFFFF;
  border-color: #E5E0D8;
  color: #2C3E3A;
}

.app-root.theme-green .login-input:focus,
.app-root.theme-green .pay-input:focus {
  border-color: #3D6B5B;
}

.app-root.theme-green .search-box input {
  color: #2C3E3A;
}

.app-root.theme-green .kasir-product-card {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .cart-row-full {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .cart-summary-box {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .pay-method-tile,
.app-root.theme-green .method-tile {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .chip {
  background: #FFFFFF;
  border-color: #E5E0D8;
  color: #6B7280;
}

.app-root.theme-green .btn-outline {
  background: #FFFFFF;
  color: #3D6B5B;
  border-color: #3D6B5B;
}

.app-root.theme-green .btn-outline:hover:not(:disabled) {
  background: rgba(61,107,91,0.1);
}

.app-root.theme-green .btn-ghost-sm {
  background: transparent;
  border-color: #E5E0D8;
  color: #2C3E3A;
}

.app-root.theme-green .toggle-pill.off {
  background: rgba(220,38,38,0.1);
  color: #DC2626;
}

.app-root.theme-green .margin-pill.negative {
  background: rgba(220,38,38,0.1);
  color: #DC2626;
}

.app-root.theme-green .pay-tag.tunai {
  background: rgba(22,163,74,0.1);
  color: #16A34A;
}

.app-root.theme-green .pay-tag.qris {
  background: rgba(61,107,91,0.1);
  color: #3D6B5B;
}

.app-root.theme-green .pay-tag.piutang {
  background: rgba(217,119,6,0.1);
  color: #D97706;
}

.app-root.theme-green .pay-tag.transfer {
  background: rgba(124,58,237,0.1);
  color: #7C3AED;
}

.app-root.theme-green .ledger-type.transaksi {
  background: rgba(220,38,38,0.1);
  color: #DC2626;
}

.app-root.theme-green .ledger-type.cicilan {
  background: rgba(22,163,74,0.1);
  color: #16A34A;
}

.app-root.theme-green .dash-quick-tile {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .dash-quick-tile:hover {
  background: rgba(61,107,91,0.1);
}

.app-root.theme-green .dash-stat {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .laporan-stat-card {
  background: #FFFFFF;
  border-color: #E5E0D8;
}

.app-root.theme-green .laporan-stat-card.profit {
  background: rgba(22,163,74,0.1);
  border-color: rgba(22,163,74,0.25);
}

.app-root.theme-green .laporan-stat-card.expense {
  background: rgba(220,38,38,0.1);
  border-color: rgba(220,38,38,0.25);
}

.app-root.theme-green .net-profit-card.negative {
  border-color: #DC2626;
}

.app-root.theme-green .bar-track {
  background: #F8F5F0;
}

.app-root.theme-green .receipt-body {
  background: #FFFFFF;
  color: #2C3E3A;
}

.app-root.theme-green .receipt-title,
.app-root.theme-green .receipt-item-name,
.app-root.theme-green .receipt-row {
  color: #2C3E3A;
}

.app-root.theme-green .receipt-sub,
.app-root.theme-green .receipt-item-detail,
.app-root.theme-green .receipt-thanks {
  color: #6B7280;
}

.app-root.theme-green .receipt-line {
  border-color: #E5E0D8;
}

/* ===== TEMA DARK NAVY ===== */
.app-root.theme-dark {
  --primary: #60A5FA;
  --primary-dark: #3B82F6;
  --primary-light: rgba(96,165,250,0.15);
  --bg: #0B1120;
  --card: #162032;
  --border: #1E293B;
  --ink: #F1F5F9;
  --ink-soft: #94A3B8;
  --green: #4ADE80;
  --green-light: rgba(74,222,128,0.15);
  --amber: #FBBF24;
  --amber-light: rgba(251,191,36,0.15);
  --red: #F87171;
  --red-light: rgba(248,113,113,0.15);
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--ink);
}

.app-root.theme-dark .topbar {
  background: #162032;
  border-bottom-color: #1E293B;
}

.app-root.theme-dark .bottom-nav {
  background: #162032;
  border-top-color: #1E293B;
}

.app-root.theme-dark .login-card {
  background: #162032;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.app-root.theme-dark .modal {
  background: #162032;
}

.app-root.theme-dark .struk-card {
  background: #162032;
}

.app-root.theme-dark .produk-subnav {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .settings-menu-list {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .settings-profile-card {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .settings-form-card {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .kasir-sidebar {
  background: #162032;
  border-right-color: #1E293B;
}

.app-root.theme-dark .search-box {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .inline-add-form {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .category-manager {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .logout-confirm-box {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .about-card {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .debt-summary-card {
  background: rgba(251,191,36,0.15);
  border-color: #FBBF24;
}

.app-root.theme-dark .pay-hero {
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.3);
}

.app-root.theme-dark .transfer-box {
  background: rgba(96,165,250,0.15);
  border-color: rgba(96,165,250,0.3);
}

.app-root.theme-dark .pelanggan-select-box,
.app-root.theme-dark .new-customer-form {
  background: #0B1120;
  border-color: #1E293B;
}

.app-root.theme-dark .ledger-box {
  background: #0B1120;
}

.app-root.theme-dark .top-customers-box {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .top-customer-row {
  background: #0B1120;
  border-color: #1E293B;
}

.app-root.theme-dark .riwayat-footer {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .riwayat-detail {
  background: #0B1120;
  border-color: #1E293B;
}

.app-root.theme-dark .cash-row {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .kas-awal-row {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .stat-card {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .riwayat-date-box {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .adj-input-group select,
.app-root.theme-dark .adj-input-group input {
  background: #0B1120;
  border-color: #1E293B;
}

.app-root.theme-dark .quick-cash button {
  background: #0B1120;
  border-color: #1E293B;
}

.app-root.theme-dark .qty-control button {
  background: #0B1120;
  border-color: #1E293B;
}

.app-root.theme-dark .return-item-row {
  background: #0B1120;
  border-color: #1E293B;
}

.app-root.theme-dark .category-chip-row {
  background: #0B1120;
  border-color: #1E293B;
}

.app-root.theme-dark .found-product-card {
  background: rgba(96,165,250,0.15);
  border-color: #60A5FA;
}

.app-root.theme-dark .upload-box {
  border-color: #1E293B;
}

.app-root.theme-dark .upload-box:hover {
  border-color: #60A5FA;
  color: #60A5FA;
}

.app-root.theme-dark .login-input,
.app-root.theme-dark .pay-input,
.app-root.theme-dark .pay-select,
.app-root.theme-dark .cell-input,
.app-root.theme-dark .cell-select {
  background: #0B1120;
  border-color: #1E293B;
  color: var(--ink);
}

.app-root.theme-dark .login-input:focus,
.app-root.theme-dark .pay-input:focus {
  border-color: #60A5FA;
}

.app-root.theme-dark .search-box input {
  color: var(--ink);
}

.app-root.theme-dark .kasir-product-card {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .cart-row-full {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .cart-summary-box {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .pay-method-tile,
.app-root.theme-dark .method-tile {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .pay-method-tile.active,
.app-root.theme-dark .method-tile.active {
  border-color: #60A5FA;
  color: #60A5FA;
  background: rgba(96,165,250,0.15);
}

.app-root.theme-dark .chip {
  background: #162032;
  border-color: #1E293B;
  color: var(--ink-soft);
}

.app-root.theme-dark .chip.active {
  background: #60A5FA;
  color: #0B1120;
  border-color: #60A5FA;
}

.app-root.theme-dark .btn-outline {
  background: #162032;
  color: #60A5FA;
  border-color: #60A5FA;
}

.app-root.theme-dark .btn-outline:hover:not(:disabled) {
  background: rgba(96,165,250,0.15);
}

.app-root.theme-dark .btn-ghost-sm {
  background: transparent;
  border-color: #1E293B;
  color: var(--ink);
}

.app-root.theme-dark .toggle-pill.on {
  background: rgba(74,222,128,0.15);
  color: #4ADE80;
}

.app-root.theme-dark .toggle-pill.off {
  background: rgba(248,113,113,0.15);
  color: #F87171;
}

.app-root.theme-dark .margin-pill.positive {
  background: rgba(74,222,128,0.15);
  color: #4ADE80;
}

.app-root.theme-dark .margin-pill.negative {
  background: rgba(248,113,113,0.15);
  color: #F87171;
}

.app-root.theme-dark .pay-tag.tunai {
  background: rgba(74,222,128,0.15);
  color: #4ADE80;
}

.app-root.theme-dark .pay-tag.qris {
  background: rgba(96,165,250,0.15);
  color: #60A5FA;
}

.app-root.theme-dark .pay-tag.piutang {
  background: rgba(251,191,36,0.15);
  color: #FBBF24;
}

.app-root.theme-dark .pay-tag.transfer {
  background: rgba(167,139,250,0.15);
  color: #A78BFA;
}

.app-root.theme-dark .ledger-type.transaksi {
  background: rgba(248,113,113,0.15);
  color: #F87171;
}

.app-root.theme-dark .ledger-type.cicilan {
  background: rgba(74,222,128,0.15);
  color: #4ADE80;
}

.app-root.theme-dark .sidebar-cat.active {
  background: rgba(96,165,250,0.15);
  color: #60A5FA;
  border-left-color: #60A5FA;
}

.app-root.theme-dark .dash-quick-tile {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .dash-quick-tile:hover {
  background: rgba(96,165,250,0.15);
}

.app-root.theme-dark .dash-stat {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .laporan-stat-card {
  background: #162032;
  border-color: #1E293B;
}

.app-root.theme-dark .laporan-stat-card.highlight {
  background: rgba(96,165,250,0.15);
  border-color: rgba(96,165,250,0.3);
}

.app-root.theme-dark .laporan-stat-card.profit {
  background: rgba(74,222,128,0.15);
  border-color: rgba(74,222,128,0.3);
}

.app-root.theme-dark .laporan-stat-card.expense {
  background: rgba(248,113,113,0.15);
  border-color: rgba(248,113,113,0.3);
}

.app-root.theme-dark .net-profit-card {
  background: #162032;
  border-color: #4ADE80;
}

.app-root.theme-dark .net-profit-card.negative {
  border-color: #F87171;
}

.app-root.theme-dark .bar-track {
  background: #0B1120;
}

.app-root.theme-dark .receipt-body {
  background: #F1F5F9;
  color: #1E293B;
}

.app-root.theme-dark .receipt-title,
.app-root.theme-dark .receipt-item-name,
.app-root.theme-dark .receipt-row {
  color: #1E293B;
}

.app-root.theme-dark .receipt-sub,
.app-root.theme-dark .receipt-item-detail,
.app-root.theme-dark .receipt-thanks {
  color: #64748B;
}

.app-root.theme-dark .receipt-line {
  border-color: #CBD5E1;
}

/* ===== THEME PICKER ===== */
.theme-picker-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 16px;
  backdrop-filter: blur(4px);
}

.theme-picker {
  background: var(--card);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.theme-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.theme-picker-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.theme-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.theme-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.theme-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(47,111,237,0.2);
}

.theme-preview {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.theme-preview-blue {
  background: #F4F6FB;
}

.theme-preview-blue .theme-preview-bar {
  background: #2F6FED;
  height: 12px;
}

.theme-preview-blue .theme-preview-body {
  background: #FFFFFF;
  height: 30px;
  margin: 4px;
  border-radius: 4px;
}

.theme-preview-green {
  background: #F0FDF4;
}

.theme-preview-green .theme-preview-bar {
  background: #16A34A;
  height: 12px;
}

.theme-preview-green .theme-preview-body {
  background: #FFFFFF;
  height: 30px;
  margin: 4px;
  border-radius: 4px;
}

.theme-preview-dark {
  background: #0B1120;
}

.theme-preview-dark .theme-preview-bar {
  background: #162032;
  height: 12px;
}

.theme-preview-dark .theme-preview-body {
  background: #162032;
  height: 30px;
  margin: 4px;
  border-radius: 4px;
  border: 1px solid #1E293B;
}

.theme-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.theme-desc {
  font-size: 10px;
  color: var(--ink-soft);
  text-align: center;
}
.app-root { min-height: 100vh; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; position: relative; }
.app-loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-soft); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.app-screen { flex: 1; overflow-y: auto; padding-bottom: 76px; }
.screen-pad { padding: 0 16px 16px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px; background: var(--primary); border-bottom: 1px solid var(--primary-dark); position: sticky; top: 0; z-index: 5; }
.screen-pad > .topbar { margin: 0 -16px 16px; }
.topbar h1 { font-size: 17px; font-weight: 700; margin: 0; flex: 1; text-align: center; color: #fff; }
.topbar-back, .topbar-icon-btn { border: none; background: transparent; color: #fff; cursor: pointer; padding: 4px; display: flex; }
.topbar-spacer { width: 26px; }
.topbar-right { display: flex; align-items: center; min-width: 26px; justify-content: flex-end; }
.bottom-nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; display: flex; background: var(--card); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 20; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; border: none; background: transparent; color: var(--ink-soft); font-size: 10.5px; padding: 6px 2px; cursor: pointer; border-radius: 10px; }
.nav-item.active { color: var(--primary); }
.nav-item span { font-weight: 600; }
.btn-primary { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; border: none; padding: 13px; border-radius: 12px; font-size: 14px; font-weight: 700; cursor: pointer; width: auto; }
.btn-primary.full { width: 100%; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-outline { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); padding: 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn-outline.full { width: 100%; }
.btn-outline.sm { padding: 6px 10px; font-size: 12px; flex: none; }
.btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-outline:hover:not(:disabled) { background: var(--primary-light); }
.btn-ghost-sm { background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; color: var(--ink); }
.btn-danger-sm { background: var(--red); color: #fff; border: none; border-radius: 8px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.btn-whatsapp-flat { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: #25D366; color: #fff; border: none; padding: 12px; border-radius: 12px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.btn-whatsapp-flat.full { width: 100%; }
.link-btn { border: none; background: transparent; color: var(--primary); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 0; text-decoration: underline; align-self: flex-start; }
.icon-btn { border: none; background: transparent; cursor: pointer; color: var(--ink-soft); padding: 4px; display: flex; }
.bottom-action-row { display: flex; gap: 10px; margin-top: 14px; }
.empty-note { color: var(--ink-soft); font-size: 13px; padding: 10px 0; text-align: center; }
.field-label { font-size: 12px; color: var(--ink-soft); font-weight: 600; display: block; margin-bottom: 5px; }
.settings-desc { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 12px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chip { border: 1px solid var(--border); background: var(--card); color: var(--ink-soft); padding: 7px 13px; border-radius: 999px; font-size: 12.5px; cursor: pointer; font-weight: 600; }
.chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.confirm-row { display: flex; gap: 6px; align-items: center; }
.warn-icon { color: var(--amber); margin-left: 4px; vertical-align: middle; }
.margin-pill { display: inline-block; font-size: 11.5px; font-family: 'IBM Plex Mono', monospace; padding: 3px 8px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.margin-pill.positive { background: var(--green-light); color: var(--green); }
.margin-pill.negative { background: var(--red-light); color: var(--red); }
.search-box { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; color: var(--ink-soft); }
.search-box input { border: none; outline: none; background: transparent; font-size: 14px; width: 100%; color: var(--ink); font-family: inherit; }
.scan-inline-btn { border: none; background: var(--primary-light); color: var(--primary); border-radius: 8px; padding: 6px; display: flex; cursor: pointer; }
.barcode-hidden-input { position: absolute; opacity: 0; height: 0; width: 0; pointer-events: none; }
.cell-input, .cell-select { border: 1px solid var(--border); background: var(--card); padding: 6px 8px; border-radius: 8px; font-size: 12.5px; font-family: inherit; width: 100%; }
.cell-input.num { font-family: 'IBM Plex Mono', monospace; }
.barcode-cell { font-family: 'IBM Plex Mono', monospace; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-size: 13px; z-index: 100; box-shadow: 0 8px 20px rgba(0,0,0,0.18); }
.toast.error { background: var(--red); }
.toast.success { background: var(--green); }
.modal-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal { background: var(--card); border-radius: 16px; padding: 20px; width: 100%; max-width: 380px; max-height: 90vh; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; }
.modal-body { margin-bottom: 6px; }
.export-error { color: var(--red); font-size: 12px; margin: 8px 0 0; }
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login-card { background: var(--card); border-radius: 20px; padding: 32px 26px; width: 100%; max-width: 360px; text-align: center; box-shadow: 0 12px 32px rgba(30,82,196,0.1); }
.login-logo { width: 64px; height: 64px; background: var(--primary-light); color: var(--primary); border-radius: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.login-card h1 { font-size: 20px; margin: 0 0 4px; }
.login-sub { color: var(--ink-soft); font-size: 13px; margin: 0 0 22px; }
.login-form { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.login-input { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 14px; font-family: inherit; outline: none; width: 100%; margin-bottom: 6px; }
.login-input:focus { border-color: var(--primary); }
.login-pin-wrap { position: relative; display: flex; align-items: center; }
.login-pin-wrap .login-input, .login-pin-wrap .pay-input { padding-right: 42px; }
.pin-eye { position: absolute; right: 10px; border: none; background: transparent; color: var(--ink-soft); cursor: pointer; }
.login-error { color: var(--red); font-size: 12.5px; margin: 2px 0; }
.login-remember { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); margin: 8px 0 16px; }
.login-btn { margin-top: 2px; }
.login-forgot { align-self: center; margin-top: 10px; }
.login-version { color: var(--ink-soft); font-size: 11px; margin-top: 20px; }
.dash-hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-radius: 18px; padding: 20px; position: relative; margin-bottom: 14px; }
.dash-hero-label { font-size: 12.5px; opacity: 0.85; }
.dash-hero-value { font-size: 28px; font-weight: 800; margin-top: 4px; font-family: 'IBM Plex Mono', monospace; }
.dash-hero-icon { position: absolute; top: 20px; right: 20px; opacity: 0.85; }
.dash-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dash-stat { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.dash-stat.warn .dash-stat-value { color: var(--amber); }
.custom-date-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 12.5px; color: var(--ink-soft); }
.custom-date-row input[type="date"] { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; font-family: inherit; }
.kas-awal-row { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; cursor: pointer; }
.kas-awal-label { font-size: 13px; color: var(--ink-soft); flex: 1; }
.kas-awal-value { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 14px; color: var(--ink); }
.kas-awal-chevron { color: var(--ink-soft); }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.stat-card.in { border-color: rgba(22,163,74,0.3); }
.stat-card.in svg, .stat-card.in .stat-value { color: var(--green); }
.stat-card.out { border-color: rgba(220,38,38,0.3); }
.stat-card.out svg, .stat-card.out .stat-value { color: var(--red); }
.stat-value { font-size: 15px; font-weight: 800; font-family: 'IBM Plex Mono', monospace; }
.stat-label { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; }
.dash-hero.negative { background: linear-gradient(135deg, var(--red), #B91C1C); }
.cash-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cash-row { display: flex; align-items: center; justify-content: space-between; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; gap: 8px; }
.cash-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cash-row-desc { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cash-row-date { font-size: 10.5px; color: var(--ink-soft); }
.cash-row-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cash-amount { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 13px; }
.cash-amount.in { color: var(--green); }
.cash-amount.out { color: var(--red); }
.dash-stat-value { font-size: 19px; font-weight: 800; font-family: 'IBM Plex Mono', monospace; }
.dash-stat-label { font-size: 10.5px; color: var(--ink-soft); font-weight: 600; }
.dash-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.panel-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-card-head h3 { margin: 0; }
.dash-card h3 { margin: 0 0 12px; font-size: 14.5px; font-weight: 700; }
.dash-section-title { font-size: 14.5px; font-weight: 700; margin: 6px 0 10px; }
.dash-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.dash-quick-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 6px; cursor: pointer; color: var(--primary); font-size: 11.5px; font-weight: 600; }
.dash-quick-tile:hover { background: var(--primary-light); }
.dash-quick-tile span { color: var(--ink); }
.dash-footer { text-align: center; color: var(--ink-soft); font-size: 11px; margin-top: 6px; }
.chart-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-soft); margin-bottom: 10px; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.legend-dot.revenue { background: var(--primary); }
.legend-dot.profit { background: var(--green); }
.mini-chart-wrap { position: relative; padding-top: 8px; height: 140px; }
.chart-trend-line { position: absolute; top: 0; left: 0; width: 100%; height: 85%; pointer-events: none; z-index: 1 !important; }
.mini-chart-bar-pair { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.mini-chart-bar.revenue { background: var(--primary); width: 11px; max-width: none; }
.mini-chart-bar.profit { background: var(--green); width: 11px; max-width: none; }
.mini-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; overflow-x: auto; padding-top: 6px; position: relative; z-index: 2 !important; }
.mini-chart-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 34px; flex: 1; height: 100%; justify-content: flex-end; position: relative; }
.mini-chart-bar { width: 100%; max-width: 22px; background: var(--primary); border-radius: 5px 5px 0 0; min-height: 3px; }
.mini-chart-bar.gradient { background: linear-gradient(180deg, var(--primary) 0%, #60A5FA 50%, #93C5FD 100%); box-shadow: 0 2px 6px rgba(47,111,237,0.3); border-radius: 5px 5px 2px 2px; transition: all 0.2s ease; }
.mini-chart-bar.gradient:hover { filter: brightness(1.15); box-shadow: 0 4px 12px rgba(47,111,237,0.45); transform: scaleY(1.03); transform-origin: bottom; }
.mini-chart-label { font-size: 9.5px; color: var(--ink-soft); white-space: nowrap; }
.chart-tooltip { position: absolute; bottom: 100%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 10px; font-size: 11px; white-space: nowrap; z-index: 10; pointer-events: none; box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.chart-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.chart-tooltip-date { font-size: 10px; color: rgba(255,255,255,0.7); margin-bottom: 2px; }
.chart-tooltip-value { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 13px; }
.chart-tooltip-status { font-size: 10px; margin-top: 2px; }
.chart-tooltip { position: absolute; bottom: 100%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 10px; font-size: 11px; white-space: nowrap; z-index: 10; pointer-events: none; box-shadow: 0 6px 16px rgba(0,0,0,0.2); }
.chart-tooltip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
.chart-tooltip-date { font-size: 10px; color: rgba(255,255,255,0.7); margin-bottom: 2px; }
.chart-tooltip-value { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 13px; }
.chart-tooltip-status { font-size: 10px; margin-top: 2px; }
/* ===== TOOLTIP CHART DARK THEME ===== */
.app-root.theme-dark .chart-tooltip {
  background: #1E293B;
  color: #0F172A;
  border: 1px solid #334155;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.app-root.theme-dark .chart-tooltip::after {
  border-top-color: #1E293B;
}

.app-root.theme-dark .chart-tooltip-date {
  color: #475569;
  font-weight: 600;
}

.app-root.theme-dark .chart-tooltip-value {
  color: #0F172A;
}

.app-root.theme-dark .chart-tooltip-status {
  color: #1E293B;
  border-top: 1px solid #334155;
  padding-top: 2px;
  margin-top: 2px;
}

/* ===== TOOLTIP CHART HIJAU THEME ===== */
.app-root.theme-green .chart-tooltip {
  background: #14532D;
  color: #F0FDF4;
  border: 1px solid rgba(22,163,74,0.3);
}

.app-root.theme-green .chart-tooltip::after {
  border-top-color: #14532D;
}

.app-root.theme-green .chart-tooltip-date {
  color: rgba(240,253,244,0.7);
}

.app-root.theme-green .chart-tooltip-value {
  color: #F0FDF4;
}
.kasir-screen { display: flex; flex-direction: column; height: calc(100vh - 76px); }
.kasir-search-row { padding: 10px 16px 0; position: relative; }
.kasir-body { display: flex; flex: 1; overflow: hidden; margin-top: 10px; }
.kasir-sidebar { width: 84px; flex-shrink: 0; background: var(--card); border-right: 1px solid var(--border); overflow-y: auto; padding: 6px 0; }
.sidebar-cat { display: block; width: 100%; border: none; background: transparent; text-align: left; padding: 12px 10px; font-size: 11.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer; border-left: 3px solid transparent; }
.sidebar-cat.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); }
.kasir-grid-wrap { flex: 1; overflow-y: auto; padding: 10px; }
.kasir-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.kasir-product-card { position: relative; text-align: left; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.kasir-product-card:disabled { opacity: 0.5; cursor: not-allowed; }
.kasir-product-thumb { width: 36px; height: 36px; background: var(--primary-light); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.badge-out, .badge-low { position: absolute; top: 8px; right: 8px; font-size: 9.5px; padding: 2px 7px; border-radius: 999px; font-weight: 700; }
.badge-out { background: var(--red); color: #fff; }
.badge-low { background: var(--amber); color: #fff; }
.p-name { font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.p-price { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--primary); font-weight: 700; }
.p-stock { font-size: 10.5px; color: var(--ink-soft); }
.kasir-cart-bar { display: flex; align-items: center; justify-content: space-between; background: var(--primary); color: #fff; border: none; padding: 14px 18px; font-size: 13px; font-weight: 700; margin: 10px 16px; border-radius: 14px; cursor: pointer; }
.kasir-cart-bar:disabled { opacity: 0.4; cursor: not-allowed; }
.kasir-cart-bar-right { display: flex; align-items: center; gap: 6px; font-family: 'IBM Plex Mono', monospace; }
.cart-list-full { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-row-full { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.cart-thumb { width: 36px; height: 36px; background: var(--primary-light); color: var(--primary); border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.cart-info { display: flex; flex-direction: column; min-width: 0; }
.cart-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-unit { font-size: 10.5px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-control button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qty-control button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-input { width: 46px; text-align: center; border: 1px solid var(--border); border-radius: 7px; background: var(--bg); font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 13px; padding: 4px 2px; outline: none; color: var(--ink); }
.qty-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary-light); }
.cart-line-total { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 700; text-align: right; }
.cart-adjustments { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--border); margin-top: 4px; }
.adj-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.adj-checkbox { display: flex; align-items: center; gap: 6px; color: var(--ink); cursor: pointer; user-select: none; font-weight: 500; }
.adj-checkbox input[type="checkbox"] { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
.adj-input-group { display: flex; align-items: center; gap: 5px; }
.adj-input-group select { border: 1px solid var(--border); border-radius: 7px; padding: 5px 7px; font-size: 11.5px; font-family: inherit; background: var(--bg); }
.adj-input-group input { width: 74px; border: 1px solid var(--border); border-radius: 7px; padding: 5px 7px; font-size: 12px; font-family: 'IBM Plex Mono', monospace; text-align: right; }
.adj-prefix, .adj-suffix { font-size: 11.5px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }
.cart-summary-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.cart-subtotal-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 13px; color: var(--ink-soft); }
.cart-subtotal-row.discount { color: var(--red); }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 10px; border-top: 1.5px solid var(--border); font-weight: 700; font-size: 14px; }
.total-amount { font-family: 'IBM Plex Mono', monospace; font-size: 18px; color: var(--primary); }
.pay-hero { background: var(--green-light); border: 1px solid rgba(22,163,74,0.25); border-radius: 16px; padding: 18px; text-align: center; margin: 14px 0 18px; }
.pay-hero-label { display: block; font-size: 12.5px; color: var(--green); font-weight: 600; }
.pay-hero-value { display: block; font-size: 26px; font-weight: 800; color: var(--green); font-family: 'IBM Plex Mono', monospace; margin-top: 4px; }
.pay-method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.pay-method-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 4px; cursor: pointer; color: var(--ink-soft); font-size: 10.5px; font-weight: 600; }
.pay-method-tile.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pay-input { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-family: 'IBM Plex Mono', monospace; outline: none; margin-bottom: 10px; }
.pay-input:focus { border-color: var(--primary); }
.pay-select { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; font-size: 13px; font-family: inherit; outline: none; margin-bottom: 8px; }
.quick-cash { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.quick-cash button { border: 1px solid var(--border); background: var(--bg); border-radius: 8px; padding: 7px 11px; font-size: 12px; cursor: pointer; font-family: 'IBM Plex Mono', monospace; }
.change-box { display: flex; justify-content: space-between; align-items: center; background: var(--green-light); border-radius: 12px; padding: 14px 16px; margin-top: 4px; }
.change-box span:first-child { font-size: 12.5px; color: var(--green); font-weight: 600; }
.change-box.negative { background: var(--red-light); }
.change-box.negative span:first-child { color: var(--red); }
.change-amount { font-family: 'IBM Plex Mono', monospace; font-size: 18px; font-weight: 800; color: var(--green); }
.change-box.negative .change-amount { color: var(--red); }
.qris-pay-box { text-align: center; }
.transfer-box { background: var(--primary-light); border: 1px solid rgba(47,111,237,0.25); border-radius: 12px; padding: 16px; text-align: center; }
.transfer-box p { margin: 2px 0; font-size: 13px; }
.transfer-num { font-family: 'IBM Plex Mono', monospace; font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: 1px; margin: 4px 0 !important; }
.qris-pay-img { width: 100%; max-width: 220px; border-radius: 12px; border: 1px solid var(--border); margin: 0 auto 10px; display: block; }
.qris-hint { font-size: 12px; color: var(--ink-soft); }
.piutang-box { display: flex; flex-direction: column; }
.pelanggan-select-box { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 14px; }
.new-customer-form { display: flex; flex-direction: column; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.new-customer-form input { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font-size: 13px; font-family: inherit; outline: none; }
.new-customer-actions { display: flex; gap: 8px; justify-content: flex-end; }
.struk-card { background: var(--card); border-radius: 16px; overflow: hidden; margin: 14px 0; box-shadow: 0 4px 16px rgba(30,41,59,0.06); }
.struk-success-banner { display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--green); color: #fff; font-size: 12.5px; font-weight: 700; padding: 9px; }
.receipt-zigzag-top, .receipt-zigzag-bottom { height: 10px; background: linear-gradient(135deg, var(--card) 50%, transparent 50%), linear-gradient(-135deg, var(--card) 50%, transparent 50%); background-size: 14px 14px; background-position: bottom; }
.receipt-zigzag-bottom { transform: rotate(180deg); }
.receipt-body { padding: 20px 22px; }
.receipt-title { text-align: center; margin: 0 0 2px; font-size: 17px; font-weight: 800; }
.receipt-shop-info { text-align: center; font-size: 10.5px; color: var(--ink-soft); margin: 0 0 8px; line-height: 1.4; }
.receipt-shop-info p { margin: 0; }
.receipt-sub { text-align: center; font-size: 11px; color: var(--ink-soft); margin: 2px 0; }
.receipt-items { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-family: 'IBM Plex Mono', monospace; }
.receipt-item-block { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.receipt-item-block:last-child { border-bottom: none; padding-bottom: 0; }
.receipt-item-name { font-weight: 500; font-size: 11px; color: var(--ink); font-family: 'IBM Plex Mono', monospace; }
.receipt-item-detail { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.receipt-line { border-top: 1px dashed var(--border); margin: 10px 0; }
.receipt-row { display: flex; justify-content: space-between; font-size: 13px; font-family: 'IBM Plex Mono', monospace; margin-bottom: 4px; }
.receipt-row.bold { font-weight: 700; color: var(--primary); }
.receipt-thanks { text-align: center; font-size: 11.5px; color: var(--ink-soft); margin: 14px 0 0; font-style: italic; line-height: 1.5; }

@media print {
  /* ===== RESET SEMUA CSS VARIABLES KE HITAM/PUTIH ===== */
  :root {
    --primary: #000000 !important;
    --primary-dark: #000000 !important;
    --primary-light: transparent !important;
    --bg: #FFFFFF !important;
    --card: #FFFFFF !important;
    --border: #000000 !important;
    --ink: #000000 !important;
    --ink-soft: #333333 !important;
    --green: #000000 !important;
    --green-light: transparent !important;
    --amber: #000000 !important;
    --amber-light: transparent !important;
    --red: #000000 !important;
    --red-light: transparent !important;
  }
  
  body * { visibility: hidden; }
  .struk-card, .struk-card * { visibility: visible; }
  .modal, .modal-overlay {
    position: static !important;
    background: transparent !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .struk-card {
position: static !important;
inset: auto !important;
margin: 0 auto !important;
border-radius: 0 !important;
box-shadow: none !important;
width: 58mm !important;
max-width: 58mm !important;
padding: 0 !important;
background: #FFFFFF !important;
color: #000000 !important;
display: block !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
/* Buka scroll & batas tinggi agar seluruh isi struk ikut tercetak */
.struk-card .receipt-body {
max-height: none !important;
overflow: visible !important;
height: auto !important;
flex: none !important;
}
.modal.struk-card,
.modal-overlay {
display: block !important;
height: auto !important;
max-height: none !important;
overflow: visible !important;
}
.app-root,
.app-screen {
display: block !important;
height: auto !important;
overflow: visible !important;
}
  .no-print { display: none !important; }
  
  /* ===== STRUK BODY ===== */
  .receipt-body { 
    padding: 20px 22px; 
    background: #FFFFFF !important;
    color: #000000 !important;
  }
  .receipt-title { 
    font-size: 17px; 
    margin: 0 0 2px; 
    color: #000000 !important;
  }
  .receipt-logo {
    max-width: 60px;
    max-height: 60px;
    margin: 0 auto 8px;
    display: block;
  }
  .receipt-shop-info { 
    font-size: 10.5px; 
    color: #333333 !important;
  }
  .receipt-shop-info p { color: #333333 !important; }
  .receipt-sub { 
    font-size: 11px; 
    margin: 2px 0; 
    color: #333333 !important;
  }
  .receipt-items { 
    font-size: 12.5px; 
    gap: 6px; 
    color: #000000 !important;
  }
  .receipt-item-block {
    color: #000000 !important;
  }
  .receipt-item-name { 
    font-size: 12px; 
    color: #000000 !important;
  }
  .receipt-item-detail { 
    font-size: 12px; 
    color: #333333 !important;
  }
  .receipt-item-detail span {
    color: #000000 !important;
  }
  .receipt-line { 
    margin: 10px 0; 
    border-color: #000000 !important;
  }
  
  /* ===== BARIS TOTAL, DISKON, PAJAK, DLL ===== */
  .receipt-row { 
    font-size: 13px; 
    margin-bottom: 4px; 
    color: #000000 !important;
  }
  .receipt-row span {
    color: #000000 !important;
  }
  .receipt-row.bold { 
    font-size: 13px; 
    color: #000000 !important;
    font-weight: 700 !important;
  }
  .receipt-row.bold span {
    color: #000000 !important;
  }
  .receipt-thanks { 
    font-size: 11.5px; 
    color: #333333 !important;
  }
  
  /* ===== STRUK SUCCESS BANNER ===== */
  .struk-success-banner {
    background: #000000 !important;
    color: #FFFFFF !important;
  }
  .struk-success-banner * {
    color: #FFFFFF !important;
  }
  
  /* ===== OVERRIDE SEMUA ELEMEN DI DALAM STRUK ===== */
  .struk-card * {
    color: #000000 !important;
    background: transparent !important;
    border-color: #000000 !important;
  }
  
  .struk-success-banner * {
    color: #FFFFFF !important;
    background: #000000 !important;
  }
  
  .receipt-logo {
    background: transparent !important;
  }
}
 
.camera-modal { max-width: 340px; }
.camera-region { width: 100%; min-height: 220px; border-radius: 12px; overflow: hidden; background: #000; }
.camera-error { font-size: 12.5px; color: var(--red); margin-top: 10px; line-height: 1.5; }
.riwayat-filter-row { display: flex; align-items: center; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.riwayat-date-box { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; color: var(--ink-soft); }
.riwayat-date-box input { border: none; background: transparent; font-size: 12.5px; font-family: inherit; outline: none; }
.riwayat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.riwayat-row { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; }
.riwayat-row-main { display: flex; flex-direction: column; gap: 2px; }
.riwayat-row-id { font-size: 11px; font-family: 'IBM Plex Mono', monospace; color: var(--ink-soft); }
.riwayat-row-time { font-size: 12.5px; font-weight: 600; }
.riwayat-row-cust { font-size: 11px; color: var(--primary); }
.riwayat-row-right { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.riwayat-row-total { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 13px; }
.pay-tag { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 2px 7px; border-radius: 999px; }
.pay-tag.tunai { background: var(--green-light); color: var(--green); }
.pay-tag.qris { background: rgba(41,98,235,0.12); color: var(--primary); }
.pay-tag.piutang { background: var(--amber-light); color: var(--amber); }
.pay-tag.transfer { background: rgba(124,58,237,0.12); color: #7C3AED; }
.riwayat-detail { list-style: none; margin: 6px 0 0; padding: 10px 12px; background: var(--bg); border: 1px dashed var(--border); border-radius: 10px; font-size: 12px; display: flex; flex-direction: column; gap: 4px; font-family: 'IBM Plex Mono', monospace; }
.riwayat-detail li { display: flex; justify-content: space-between; }
.riwayat-detail-debt { color: var(--amber); font-style: italic; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.method-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--card); border: 1.5px solid var(--border); border-radius: 14px; padding: 12px 4px; cursor: pointer; color: var(--ink-soft); font-size: 10.5px; font-weight: 600; }
.method-tile.active { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.kembalian-card { display: flex; justify-content: space-between; align-items: center; background: var(--green-light); border-radius: 12px; padding: 14px 16px; }
.kembalian-card span:first-child { font-size: 12.5px; color: var(--green); font-weight: 600; }
.kembalian-card span:last-child { font-family: 'IBM Plex Mono', monospace; font-size: 18px; font-weight: 800; color: var(--green); }
.kembalian-card.negative { background: var(--red-light); }
.kembalian-card.negative span { color: var(--red) !important; }
.retur-history { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed var(--border); }
.retur-history-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--amber); }
.detail-actions-row { display: flex; gap: 8px; margin-top: 8px; }
.detail-actions-row .btn-outline.sm { flex: 1; }
.return-item-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.return-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.return-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.return-item-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.return-item-sub { font-size: 10.5px; color: var(--ink-soft); }
.riwayat-footer { display: flex; justify-content: space-between; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; margin-top: 14px; }
.riwayat-footer-label { display: block; font-size: 11px; color: var(--ink-soft); }
.riwayat-footer-value { display: block; font-size: 16px; font-weight: 800; font-family: 'IBM Plex Mono', monospace; margin-top: 2px; }
.inline-add-form { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin: 12px 0; }
.inline-add-form input, .inline-add-form select { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font-size: 13px; font-family: inherit; outline: none; }
.inline-add-form input:focus, .inline-add-form select:focus { border-color: var(--primary); }
.inline-add-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pelanggan-list { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pelanggan-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.pelanggan-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pelanggan-name { font-size: 14px; font-weight: 700; }
.pelanggan-phone { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.pelanggan-address { font-size: 11.5px; color: var(--ink-soft); margin-top: 1px; }
.pelanggan-spending { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 2px; font-family: 'IBM Plex Mono', monospace; }
.top-customers-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.top-customers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.top-customer-row { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.top-customer-rank { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.top-customer-info { flex: 1; min-width: 0; }
.top-customer-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-customer-meta { font-size: 10.5px; color: var(--ink-soft); }
.top-customer-spending { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.debt-summary-card { display: flex; align-items: center; gap: 12px; background: var(--amber-light); border: 1.5px solid var(--amber); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.debt-summary-card svg { color: var(--amber); flex-shrink: 0; }
.pelanggan-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ledger-box { background: var(--bg); border-radius: 10px; padding: 12px; margin-top: 10px; }
.ledger-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ledger-list li { display: grid; grid-template-columns: 90px 62px 1fr auto; align-items: center; gap: 6px; font-size: 11px; }
.ledger-date { color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-size: 10px; }
.ledger-type { font-size: 9px; font-weight: 700; text-transform: uppercase; padding: 2px 5px; border-radius: 5px; text-align: center; }
.ledger-type.transaksi { background: var(--red-light); color: var(--red); }
.ledger-type.cicilan { background: var(--green-light); color: var(--green); }
.ledger-desc { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger-amount { font-family: 'IBM Plex Mono', monospace; font-weight: 700; text-align: right; }
.produk-screen { padding-bottom: 60px; }
.produk-subnav { display: flex; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 14px; gap: 2px; }
.subnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; border: none; background: transparent; border-radius: 9px; color: var(--ink-soft); font-size: 10px; padding: 8px 2px; cursor: pointer; }
.subnav-item.active { color: #fff; background: var(--primary); }
.subnav-item span { font-weight: 600; }
.inline-add-form .inline-add-row-2 select { width: 100%; }
.produk-list { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.produk-card { display: flex; align-items: flex-start; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 12px; flex-wrap: wrap; }
.produk-card.inactive { opacity: 0.55; }
.produk-card.expired { border-color: var(--red); background: var(--red-light); }
.produk-card-thumb { width: 38px; height: 38px; background: var(--primary-light); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.produk-card-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.produk-card-name { font-size: 13.5px; font-weight: 700; }
.produk-card-meta { font-size: 11px; color: var(--ink-soft); }
.produk-card-price { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--primary); font-weight: 700; }
.produk-card-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.toggle-pill { border: none; border-radius: 999px; padding: 4px 10px; font-size: 10.5px; font-weight: 700; cursor: pointer; }
.toggle-pill.on { background: var(--green-light); color: var(--green); }
.toggle-pill.off { background: var(--red-light); color: var(--red); }
.produk-edit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 8px; }
.edit-field { display: flex; flex-direction: column; gap: 4px; }
.edit-label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.category-manager { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin: 12px 0; }
.category-manager h3 { margin: 0 0 10px; font-size: 14.5px; font-weight: 700; }
.category-add-row { display: flex; gap: 6px; margin-bottom: 10px; }
.category-add-row input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; font-family: inherit; outline: none; min-width: 0; }
.category-add-row input:focus { border-color: var(--primary); }
.category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.category-chip-row { display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; }
.category-chip-name { font-size: 12.5px; font-weight: 600; flex: 1; }
.category-chip-count { font-size: 11px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }
.found-product-card { display: flex; align-items: center; gap: 10px; background: var(--primary-light); border: 1px solid var(--primary); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.upload-box { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1.5px dashed var(--border); border-radius: 12px; padding: 26px; cursor: pointer; color: var(--ink-soft); font-size: 13px; }
.upload-box:hover { border-color: var(--primary); color: var(--primary); }
.qris-preview-wrap { text-align: center; }
.logo-preview-wrap { text-align: center; }
.logo-preview-img { max-width: 150px; max-height: 150px; border-radius: 12px; border: 1px solid var(--border); margin: 0 auto; display: block; object-fit: contain; }
.laporan-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 12px 0; }
.laporan-stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 13px; display: flex; flex-direction: column; gap: 4px; }
.laporan-stat-card.highlight { background: var(--primary-light); border-color: rgba(47,111,237,0.25); }
.laporan-stat-card.highlight .summary-value { color: var(--primary); }
.laporan-stat-card.profit { background: var(--green-light); border-color: rgba(22,163,74,0.25); }
.laporan-stat-card.profit .summary-value { color: var(--green); }
.laporan-stat-card.expense { background: var(--red-light); border-color: rgba(220,38,38,0.25); }
.laporan-stat-card.expense .summary-value { color: var(--red); }
.laporan-stat-card.debt { background: var(--amber-light); border-color: rgba(217,119,6,0.25); }
.laporan-stat-card.debt .summary-value { color: var(--amber); }
.laporan-stat-card.asset { background: rgba(14,165,233,0.1); border-color: rgba(14,165,233,0.25); }
.laporan-stat-card.asset .summary-value { color: #0EA5E9; }
.net-profit-card { background: var(--card); border: 2px solid var(--green); border-radius: 16px; padding: 18px; margin: 14px 0; text-align: center; }
.net-profit-card.negative { border-color: var(--red); }
.net-profit-card.negative .net-profit-value { color: var(--red); }
.net-profit-label { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--ink-soft); font-weight: 600; margin-bottom: 6px; }
.net-profit-value { font-size: 28px; font-weight: 800; font-family: 'IBM Plex Mono', monospace; color: var(--green); }
.net-profit-formula { font-size: 11px; color: var(--ink-soft); margin-top: 6px; font-family: 'IBM Plex Mono', monospace; }
.receipt-logo { max-width: 60px; max-height: 60px; margin: 0 auto 8px; display: block; object-fit: contain; }
.summary-label { font-size: 11px; color: var(--ink-soft); font-weight: 600; }
.summary-value { font-family: 'IBM Plex Mono', monospace; font-size: 16px; font-weight: 800; }
.bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bar-list li { display: grid; grid-template-columns: 16px 84px 1fr auto; align-items: center; gap: 8px; font-size: 12px; }
.bar-rank { color: var(--ink-soft); font-weight: 700; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.bar-track { background: var(--bg); border-radius: 6px; height: 9px; overflow: hidden; }
.bar-fill { background: var(--primary); height: 100%; border-radius: 6px; }
.bar-value { text-align: right; font-family: 'IBM Plex Mono', monospace; font-weight: 600; font-size: 11px; color: var(--ink-soft); white-space: nowrap; }
.settings-profile-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin: 12px 0 16px; }
.settings-profile-avatar { width: 44px; height: 44px; background: var(--primary-light); color: var(--primary); border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.settings-profile-name { font-size: 14.5px; font-weight: 700; }
.settings-profile-role { font-size: 11.5px; color: var(--ink-soft); }
.settings-menu-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.settings-menu-list li + li { border-top: 1px solid var(--border); }
.settings-menu-item { width: 100%; display: flex; align-items: center; gap: 12px; background: transparent; border: none; padding: 14px 16px; cursor: pointer; text-align: left; }
.settings-menu-item.danger { background: var(--card); border: 1px solid var(--border); border-radius: 14px; width: 100%; margin-bottom: 20px; }
.settings-menu-item.danger .settings-menu-label { color: var(--red); }
.settings-menu-icon { width: 34px; height: 34px; background: var(--primary-light); color: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.settings-menu-item.danger .settings-menu-icon { background: var(--red-light); color: var(--red); }
.settings-menu-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.settings-menu-label { font-size: 13.5px; font-weight: 600; }
.settings-menu-sub { font-size: 11px; color: var(--ink-soft); }
.settings-menu-chevron { color: var(--ink-soft); flex-shrink: 0; }
.logout-confirm-box { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 20px; text-align: center; }
.logout-confirm-box p { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; }
.logout-confirm-box .confirm-row { justify-content: center; }
.settings-form-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin: 12px 0; }
.settings-form-card h3 { margin: 0 0 8px; font-size: 14.5px; font-weight: 700; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; font-weight: 500; }
.toggle-row input[type="checkbox"] { accent-color: var(--primary); width: 20px; height: 20px; cursor: pointer; }
.printer-hero { width: 56px; height: 56px; background: var(--primary-light); color: var(--primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.about-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px 20px; margin-top: 14px; text-align: center; }
.about-logo { width: 60px; height: 60px; background: var(--primary-light); color: var(--primary); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.about-card h2 { margin: 0 0 2px; font-size: 18px; }
.about-version { color: var(--ink-soft); font-size: 12px; margin: 0 0 16px; }
.about-card .settings-desc { text-align: left; }
.about-divider { height: 1px; background: var(--border); margin: 16px 0; }
.about-developer { display: flex; flex-direction: column; gap: 10px; }
.about-developer-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; }
.about-developer-label { color: var(--ink-soft); font-weight: 600; }
.about-developer-value { font-weight: 600; color: var(--ink); }
.about-phone-link { color: var(--primary); text-decoration: none; }
.about-phone-link:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .app-root { max-width: 720px; }
  .kasir-product-grid { grid-template-columns: repeat(3, 1fr); }
  .dash-quick-grid { grid-template-columns: repeat(4, 1fr); }
  .laporan-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .bottom-nav { max-width: 720px; }
}
@media (min-width: 1024px) {
  .app-root { max-width: 900px; }
  .kasir-product-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .dash-quick-grid { grid-template-columns: repeat(5, 1fr); }
  .produk-list, .pelanggan-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bottom-nav { max-width: 900px; }
  .modal { max-width: 420px; }
}
@media (min-width: 1440px) {
  .app-root { max-width: 1100px; }
  .kasir-product-grid { grid-template-columns: repeat(5, 1fr); }
  .dash-quick-grid { grid-template-columns: repeat(6, 1fr); }
  .bottom-nav { max-width: 1100px; }
}
@media print {
  .app-root { max-width: none !important; }
  .bottom-nav { display: none !important; }
}
@keyframes barGrow { from { height: 0 !important; opacity: 0; } to { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.mini-chart-bar { animation: barGrow 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; transform-origin: bottom; }
.mini-chart-col:nth-child(1) .mini-chart-bar { animation-delay: 0.05s; }
.mini-chart-col:nth-child(2) .mini-chart-bar { animation-delay: 0.1s; }
.mini-chart-col:nth-child(3) .mini-chart-bar { animation-delay: 0.15s; }
.mini-chart-col:nth-child(4) .mini-chart-bar { animation-delay: 0.2s; }
.mini-chart-col:nth-child(5) .mini-chart-bar { animation-delay: 0.25s; }
.mini-chart-col:nth-child(6) .mini-chart-bar { animation-delay: 0.3s; }
.mini-chart-col:nth-child(7) .mini-chart-bar { animation-delay: 0.35s; }
.dash-card { animation: fadeIn 0.5s ease-out; }
.mini-chart-col { transition: transform 0.2s ease; }
.mini-chart-col:hover { transform: scale(1.05); }
.mini-chart-col:hover .mini-chart-bar.gradient { filter: brightness(1.15); box-shadow: 0 4px 12px rgba(47,111,237,0.45); }
.mini-chart-bar.profit { background: linear-gradient(180deg, var(--green) 0%, #4ADE80 50%, #86EFAC 100%); box-shadow: 0 2px 6px rgba(22,163,74,0.3); border-radius: 5px 5px 2px 2px; transition: all 0.2s ease; }
.mini-chart-bar.profit:hover { filter: brightness(1.15); box-shadow: 0 4px 12px rgba(22,163,74,0.45); }
.mini-chart-bar-pair { gap: 4px; }
/* ===== PERBAIKAN TOOLTIP DARK THEME ===== */
.app-root.theme-dark .chart-tooltip {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5) !important;
}

.app-root.theme-dark .chart-tooltip::after {
  border-top-color: #E2E8F0 !important;
}

.app-root.theme-dark .chart-tooltip-date {
  color: #475569 !important;
  font-weight: 600 !important;
}

.app-root.theme-dark .chart-tooltip-value {
  color: #0F172A !important;
  font-weight: 800 !important;
}

.app-root.theme-dark .chart-tooltip-status {
  color: #334155 !important;
  border-top: 1px solid #CBD5E1 !important;
  padding-top: 3px !important;
  margin-top: 3px !important;
}

/* Fix juga untuk chart.js tooltip */
.app-root.theme-dark .chartjs-tooltip {
  background: #E2E8F0 !important;
  color: #0F172A !important;
  border: 1px solid #CBD5E1 !important;
}
  /* ===== PERBAIKAN CHIP FILTER TEMA HIJAU ===== */
.app-root.theme-green .chip.active {
  color: #fff !important;
  background: #3D6B5B !important;
  border-color: #3D6B5B !important;
  font-weight: 700 !important;
}

.app-root.theme-green .chip.active:hover {
  background: #2D5245 !important;
  border-color: #2D5245 !important;
}

/* Pastikan chip non-aktif tetap terbaca di tema hijau */
.app-root.theme-green .chip {
  color: #2C3E3A !important;
  border-color: #E5E0D8 !important;
  background: #FFFFFF !important;
}

.app-root.theme-green .chip:hover {
  border-color: #3D6B5B !important;
  color: #3D6B5B !important;
}

/* ===== PERBAIKAN SUBNAV PRODUK TEMA HIJAU ===== */
.app-root.theme-green .produk-subnav {
  background: #FFFFFF !important;
  border-color: #E5E0D8 !important;
}

.app-root.theme-green .subnav-item {
  color: #6B7280 !important;
}

.app-root.theme-green .subnav-item.active {
  background: #3D6B5B !important;
  color: #fff !important;
}

/* ===== PERBAIKAN CHIP TEMA DARK NAVY ===== */
.app-root.theme-dark .chip.active {
  color: #0B1120 !important;
  background: #60A5FA !important;
  border-color: #60A5FA !important;
}

.app-root.theme-dark .chip {
  color: #94A3B8 !important;
  border-color: #1E293B !important;
  background: #162032 !important;
}

.app-root.theme-dark .chip:hover {
  border-color: #60A5FA !important;
  color: #60A5FA !important;
}

.app-root.theme-dark .subnav-item.active {
  background: #60A5FA !important;
  color: #0B1120 !important;
}

/* ===== PERBAIKAN WARNA TANGGAL DI DARK THEME ===== */

/* Riwayat Transaksi - semua teks harus terang */
.app-root.theme-dark .riwayat-row-time {
  color: #F1F5F9 !important;
  font-weight: 600 !important;
}

.app-root.theme-dark .riwayat-row-id {
  color: #94A3B8 !important;
}

.app-root.theme-dark .riwayat-row-cust {
  color: #60A5FA !important;
}

.app-root.theme-dark .riwayat-row-total {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .riwayat-footer-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .riwayat-footer-value {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .riwayat-detail {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .riwayat-detail li {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .riwayat-detail-debt {
  color: #FBBF24 !important;
}

/* Laporan - bar value (Terjual X) */
.app-root.theme-dark .bar-value {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .bar-rank {
  color: #94A3B8 !important;
}

.app-root.theme-dark .bar-label {
  color: #F1F5F9 !important;
}

/* Laporan - summary label & value */
.app-root.theme-dark .summary-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .summary-value {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .laporan-stat-card.highlight .summary-value {
  color: #60A5FA !important;
}

.app-root.theme-dark .laporan-stat-card.profit .summary-value {
  color: #4ADE80 !important;
}

.app-root.theme-dark .laporan-stat-card.expense .summary-value {
  color: #F87171 !important;
}

.app-root.theme-dark .net-profit-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .net-profit-value {
  color: #4ADE80 !important;
}

.app-root.theme-dark .net-profit-formula {
  color: #94A3B8 !important;
}

.app-root.theme-dark .net-profit-card.negative .net-profit-value {
  color: #F87171 !important;
}

/* Cash Timeline */
.app-root.theme-dark .cash-row-desc {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .cash-row-date {
  color: #94A3B8 !important;
}

.app-root.theme-dark .cash-amount.in {
  color: #4ADE80 !important;
}

.app-root.theme-dark .cash-amount.out {
  color: #F87171 !important;
}

/* Kas Awal */
.app-root.theme-dark .kas-awal-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .kas-awal-value {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .kas-awal-chevron {
  color: #94A3B8 !important;
}

/* Stat Card */
.app-root.theme-dark .stat-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .stat-value {
  color: #F1F5F9 !important;
}

/* Dashboard */
.app-root.theme-dark .dash-stat-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .dash-stat-value {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .dash-footer {
  color: #94A3B8 !important;
}

.app-root.theme-dark .dash-quick-tile span {
  color: #F1F5F9 !important;
}

/* Chart */
.app-root.theme-dark .mini-chart-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .chart-legend {
  color: #94A3B8 !important;
}

.app-root.theme-dark .legend-item {
  color: #94A3B8 !important;
}

/* Produk */
.app-root.theme-dark .produk-card-meta {
  color: #94A3B8 !important;
}

.app-root.theme-dark .produk-card-name {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .produk-card-price {
  color: #60A5FA !important;
}

.app-root.theme-dark .edit-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .category-chip-name {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .category-chip-count {
  color: #94A3B8 !important;
}

/* Pelanggan */
.app-root.theme-dark .pelanggan-name {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .pelanggan-phone {
  color: #94A3B8 !important;
}

.app-root.theme-dark .pelanggan-address {
  color: #94A3B8 !important;
}

.app-root.theme-dark .pelanggan-spending {
  color: #4ADE80 !important;
}

.app-root.theme-dark .top-customer-name {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .top-customer-meta {
  color: #94A3B8 !important;
}

.app-root.theme-dark .top-customer-spending {
  color: #60A5FA !important;
}

.app-root.theme-dark .ledger-date {
  color: #94A3B8 !important;
}

.app-root.theme-dark .ledger-desc {
  color: #94A3B8 !important;
}

.app-root.theme-dark .ledger-amount {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .ledger-type.transaksi {
  background: rgba(248,113,113,0.15) !important;
  color: #F87171 !important;
}

.app-root.theme-dark .ledger-type.cicilan {
  background: rgba(74,222,128,0.15) !important;
  color: #4ADE80 !important;
}

/* Keranjang */
.app-root.theme-dark .cart-name {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .cart-unit {
  color: #94A3B8 !important;
}

.app-root.theme-dark .cart-line-total {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .cart-subtotal-row {
  color: #94A3B8 !important;
}

.app-root.theme-dark .cart-subtotal-row.discount {
  color: #F87171 !important;
}

.app-root.theme-dark .total-amount {
  color: #60A5FA !important;
}

/* Kasir */
.app-root.theme-dark .p-name {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .p-price {
  color: #60A5FA !important;
}

.app-root.theme-dark .p-stock {
  color: #94A3B8 !important;
}

.app-root.theme-dark .sidebar-cat {
  color: #94A3B8 !important;
}

.app-root.theme-dark .sidebar-cat.active {
  color: #60A5FA !important;
}

/* Pengaturan */
.app-root.theme-dark .settings-menu-label {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .settings-menu-sub {
  color: #94A3B8 !important;
}

.app-root.theme-dark .settings-profile-name {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .settings-profile-role {
  color: #94A3B8 !important;
}

.app-root.theme-dark .about-developer-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .about-developer-value {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .about-version {
  color: #94A3B8 !important;
}

/* Receipt */
.app-root.theme-dark .receipt-sub {
  color: #94A3B8 !important;
}

.app-root.theme-dark .receipt-item-detail {
  color: #94A3B8 !important;
}

.app-root.theme-dark .receipt-thanks {
  color: #94A3B8 !important;
}

.app-root.theme-dark .receipt-row {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .receipt-row.bold {
  color: #60A5FA !important;
}

/* Empty note */
.app-root.theme-dark .empty-note {
  color: #94A3B8 !important;
}

/* Toast */
.app-root.theme-dark .toast {
  color: #0B1120 !important;
}

/* ===== PERBAIKAN TOMBOL QTY CONTROL DI DARK THEME ===== */
.app-root.theme-dark .qty-control button {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}

.app-root.theme-dark .qty-control button:hover:not(:disabled) {
  background: #334155 !important;
  border-color: #60A5FA !important;
}

.app-root.theme-dark .qty-control button:disabled {
  opacity: 0.3 !important;
  background: #0F172A !important;
}

.app-root.theme-dark .qty-control span {
  color: #F1F5F9 !important;
  font-weight: 700 !important;
}

/* ===== PERBAIKAN TOMBOL QUICK CASH DI DARK THEME ===== */
.app-root.theme-dark .quick-cash button {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}

.app-root.theme-dark .quick-cash button:hover {
  background: #334155 !important;
  border-color: #60A5FA !important;
}

/* ===== PERBAIKAN INPUT FIELD DI DARK THEME ===== */
.app-root.theme-dark .pay-input {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}

.app-root.theme-dark .pay-input::placeholder {
  color: #64748B !important;
}

.app-root.theme-dark .pay-select {
  background: #1E293B !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}

/* ===== PERBAIKAN CHANGE BOX DI DARK THEME ===== */
.app-root.theme-dark .change-box {
  background: rgba(74,222,128,0.15) !important;
  border: 1px solid rgba(74,222,128,0.3) !important;
}

.app-root.theme-dark .change-box.negative {
  background: rgba(248,113,113,0.15) !important;
  border: 1px solid rgba(248,113,113,0.3) !important;
}

.app-root.theme-dark .change-box span:first-child {
  color: #4ADE80 !important;
}

.app-root.theme-dark .change-box.negative span:first-child {
  color: #F87171 !important;
}

.app-root.theme-dark .change-amount {
  color: #4ADE80 !important;
}

.app-root.theme-dark .change-box.negative .change-amount {
  color: #F87171 !important;
}

/* ===== PERBAIKAN PAY HERO DI DARK THEME ===== */
.app-root.theme-dark .pay-hero {
  background: rgba(74,222,128,0.15) !important;
  border-color: rgba(74,222,128,0.3) !important;
}

.app-root.theme-dark .pay-hero-label {
  color: #4ADE80 !important;
}

.app-root.theme-dark .pay-hero-value {
  color: #4ADE80 !important;
}

/* ===== PERBAIKAN PAY METHOD TILE DI DARK THEME ===== */
.app-root.theme-dark .pay-method-tile {
  background: #1E293B !important;
  border-color: #334155 !important;
}

.app-root.theme-dark .pay-method-tile.active {
  background: rgba(96,165,250,0.15) !important;
  border-color: #60A5FA !important;
  color: #60A5FA !important;
}

.app-root.theme-dark .pay-method-tile span {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .pay-method-tile.active span {
  color: #60A5FA !important;
}

/* ===== PERBAIKAN METHOD TILE DI DARK THEME ===== */
.app-root.theme-dark .method-tile {
  background: #1E293B !important;
  border-color: #334155 !important;
}

.app-root.theme-dark .method-tile.active {
  background: rgba(96,165,250,0.15) !important;
  border-color: #60A5FA !important;
  color: #60A5FA !important;
}

.app-root.theme-dark .method-tile span {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .method-tile.active span {
  color: #60A5FA !important;
}

/* ===== PERBAIKAN KEMBALIAN CARD DI DARK THEME ===== */
.app-root.theme-dark .kembalian-card {
  background: rgba(74,222,128,0.15) !important;
  border: 1px solid rgba(74,222,128,0.3) !important;
}

.app-root.theme-dark .kembalian-card.negative {
  background: rgba(248,113,113,0.15) !important;
  border: 1px solid rgba(248,113,113,0.3) !important;
}

.app-root.theme-dark .kembalian-card span:first-child {
  color: #4ADE80 !important;
}

.app-root.theme-dark .kembalian-card.negative span:first-child {
  color: #F87171 !important;
}

.app-root.theme-dark .kembalian-card span:last-child {
  color: #4ADE80 !important;
}

.app-root.theme-dark .kembalian-card.negative span:last-child {
  color: #F87171 !important;
}

/* ===== PERBAIKAN PELANGGAN SELECT BOX DI DARK THEME ===== */
.app-root.theme-dark .pelanggan-select-box {
  background: #1E293B !important;
  border-color: #334155 !important;
}

.app-root.theme-dark .pelanggan-select-box .field-label {
  color: #94A3B8 !important;
}

.app-root.theme-dark .new-customer-form {
  background: #1E293B !important;
  border-color: #334155 !important;
}

.app-root.theme-dark .new-customer-form input {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}

.app-root.theme-dark .link-btn {
  color: #60A5FA !important;
}

/* ===== PERBAIKAN PIUTANG BOX DI DARK THEME ===== */
.app-root.theme-dark .piutang-box .export-error {
  color: #F87171 !important;
}

/* ===== PERBAIKAN QRIS & TRANSFER BOX DI DARK THEME ===== */
.app-root.theme-dark .qris-pay-box .qris-hint {
  color: #94A3B8 !important;
}

.app-root.theme-dark .transfer-box {
  background: rgba(96,165,250,0.15) !important;
  border-color: rgba(96,165,250,0.3) !important;
}

.app-root.theme-dark .transfer-box p {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .transfer-num {
  color: #60A5FA !important;
}

/* ===== PERBAIKAN ADJ ROW DI DARK THEME ===== */
.app-root.theme-dark .adj-row {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .adj-checkbox {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .adj-checkbox input[type="checkbox"] {
  accent-color: #60A5FA !important;
}

.app-root.theme-dark .adj-input-group select {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}

.app-root.theme-dark .adj-input-group input {
  background: #0F172A !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}

.app-root.theme-dark .adj-prefix,
.app-root.theme-dark .adj-suffix {
  color: #94A3B8 !important;
}

/* ===== PERBAIKAN CART SUMMARY BOX DI DARK THEME ===== */
.app-root.theme-dark .cart-summary-box {
  background: #1E293B !important;
  border-color: #334155 !important;
}

.app-root.theme-dark .cart-subtotal-row {
  color: #94A3B8 !important;
}

.app-root.theme-dark .cart-subtotal-row.discount {
  color: #F87171 !important;
}

.app-root.theme-dark .cart-total-row {
  border-top-color: #334155 !important;
  color: #F1F5F9 !important;
}

.app-root.theme-dark .total-amount {
  color: #60A5FA !important;
}

/* ===== PERBAIKAN CART ROW DI DARK THEME ===== */
.app-root.theme-dark .cart-row-full {
  background: #1E293B !important;
  border-color: #334155 !important;
}

.app-root.theme-dark .cart-name {
  color: #F1F5F9 !important;
}

.app-root.theme-dark .cart-unit {
  color: #94A3B8 !important;
}

.app-root.theme-dark .cart-line-total {
  color: #F1F5F9 !important;
}

/* ===== PERBAIKAN BTN OUTLINE DI DARK THEME ===== */
.app-root.theme-dark .btn-outline {
  background: #1E293B !important;
  border-color: #60A5FA !important;
  color: #60A5FA !important;
}

.app-root.theme-dark .btn-outline:hover:not(:disabled) {
  background: rgba(96,165,250,0.15) !important;
}

.app-root.theme-dark .btn-outline:disabled {
  opacity: 0.4 !important;
}

/* ===== PERBAIKAN BTN PRIMARY DI DARK THEME ===== */
.app-root.theme-dark .btn-primary {
  background: #60A5FA !important;
  color: #0F172A !important;
}

.app-root.theme-dark .btn-primary:hover:not(:disabled) {
  background: #3B82F6 !important;
}

.app-root.theme-dark .btn-primary:disabled {
  opacity: 0.4 !important;
  background: #334155 !important;
  color: #64748B !important;
}

/* ===== PERBAIKAN BTN GHOST SM DI DARK THEME ===== */
.app-root.theme-dark .btn-ghost-sm {
  background: transparent !important;
  border-color: #334155 !important;
  color: #F1F5F9 !important;
}

.app-root.theme-dark .btn-ghost-sm:hover {
  border-color: #60A5FA !important;
  color: #60A5FA !important;
}

/* ===== PERBAIKAN BTN DANGER SM DI DARK THEME ===== */
.app-root.theme-dark .btn-danger-sm {
  background: #F87171 !important;
  color: #0F172A !important;
}

/* ===== PERBAIKAN BTN WHATSAPP DI DARK THEME ===== */
.app-root.theme-dark .btn-whatsapp-flat {
  background: #25D366 !important;
  color: #0F172A !important;
}

/* ===== STRUK PREVIEW - SELALU PUTIH HITAM DI SEMUA TEMA ===== */

/* Pastikan struk card selalu putih */
.struk-card {
  background: #FFFFFF !important;
  color: #000000 !important;
}

/* Body struk selalu putih */
.struk-card .receipt-body {
  background: #FFFFFF !important;
  color: #000000 !important;
}

/* Judul toko */
.struk-card .receipt-title {
  color: #000000 !important;
}

/* Info toko (alamat, telepon) */
.struk-card .receipt-shop-info,
.struk-card .receipt-shop-info p {
  color: #555555 !important;
}

/* Sub info (no transaksi, tanggal, kasir) */
.struk-card .receipt-sub {
  color: #555555 !important;
}

/* Items produk */
.struk-card .receipt-items {
  color: #000000 !important;
}

.struk-card .receipt-item-block {
  color: #000000 !important;
}

.struk-card .receipt-item-name {
  color: #000000 !important;
}

.struk-card .receipt-item-detail {
  color: #333333 !important;
}

.struk-card .receipt-item-detail span {
  color: #000000 !important;
}

/* Garis pemisah */
.struk-card .receipt-line {
  border-color: #CCCCCC !important;
}

/* Baris Subtotal, Diskon, Pajak, Ongkos Kirim, Kemasan, Total, Bayar, Kembali */
.struk-card .receipt-row {
  color: #000000 !important;
}

.struk-card .receipt-row span {
  color: #000000 !important;
}

.struk-card .receipt-row.bold {
  color: #000000 !important;
  font-weight: 700 !important;
}

.struk-card .receipt-row.bold span {
  color: #000000 !important;
}

/* Terima kasih */
.struk-card .receipt-thanks {
  color: #555555 !important;
}

/* Override semua elemen di dalam struk */
.struk-card * {
  color: #000000 !important;
}

/* Kecuali teks sekunder */
.struk-card .receipt-thanks,
.struk-card .receipt-sub,
.struk-card .receipt-shop-info,
.struk-card .receipt-shop-info p,
.struk-card .receipt-item-detail {
  color: #555555 !important;
}

/* Zigzag border tetap terlihat */
.struk-card .receipt-zigzag-top,
.struk-card .receipt-zigzag-bottom {
  background: linear-gradient(135deg, #FFFFFF 50%, transparent 50%), 
              linear-gradient(-135deg, #FFFFFF 50%, transparent 50%) !important;
}

/* Success banner */
.struk-card .struk-success-banner {
  background: #16A34A !important;
  color: #FFFFFF !important;
}

.struk-card .struk-success-banner * {
  color: #FFFFFF !important;
}

/* ===== PERBAIKAN CHIP FILTER - HIJAU & DARK THEME ===== */

/* Tema Hijau - Chip Filter */
.app-root.theme-green .chip {
  color: #2C3E3A !important;
  border-color: #E5E0D8 !important;
  background: #FFFFFF !important;
}

.app-root.theme-green .chip:hover {
  border-color: #3D6B5B !important;
  color: #3D6B5B !important;
  background: #F8F5F0 !important;
}

.app-root.theme-green .chip.active {
  color: #FFFFFF !important;
  background: #3D6B5B !important;
  border-color: #3D6B5B !important;
}

.app-root.theme-green .chip.active:hover {
  color: #FFFFFF !important;
  background: #2D5245 !important;
  border-color: #2D5245 !important;
}

/* Tema Dark Navy - Chip Filter */
.app-root.theme-dark .chip {
  color: #94A3B8 !important;
  border-color: #1E293B !important;
  background: #162032 !important;
}

.app-root.theme-dark .chip:hover {
  border-color: #60A5FA !important;
  color: #60A5FA !important;
  background: #1E293B !important;
}

.app-root.theme-dark .chip.active {
  color: #0B1120 !important;
  background: #60A5FA !important;
  border-color: #60A5FA !important;
}

.app-root.theme-dark .chip.active:hover {
  color: #0B1120 !important;
  background: #3B82F6 !important;
  border-color: #3B82F6 !important;
}

/* ===== PERBAIKAN FINAL: ICON DI TOMBOL CETAK ULANG & RETUR - DARK THEME ===== */

/* Pastikan semua icon di dalam btn-outline terlihat di dark theme */
.app-root.theme-dark button.btn-outline svg,
.app-root.theme-dark button.btn-outline .icon-btn svg {
  color: #60A5FA !important;
  stroke: #60A5FA !important;
}

/* Khusus untuk tombol cetak ulang dan retur barang */
.app-root.theme-dark .detail-actions-row button svg {
  color: #60A5FA !important;
  stroke: #60A5FA !important;
}

/* Hover state */
.app-root.theme-dark .detail-actions-row button:hover svg {
  color: #FFFFFF !important;
  stroke: #FFFFFF !important;
}

/* Pastikan icon printer khususnya */
.app-root.theme-dark .detail-actions-row button:first-child svg {
  color: #60A5FA !important;
}

/* Pastikan icon retur khususnya */
.app-root.theme-dark .detail-actions-row button:last-child svg {
  color: #60A5FA !important;
}

/* ===== MODAL RECEIPT SCROLLABLE ===== */
.modal-overlay .modal {
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay .modal .receipt-body {
  max-height: calc(90vh - 120px);
  overflow-y: auto;
  flex: 1;
}

.modal-overlay .modal .bottom-action-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* Responsive untuk mobile */
@media (max-width: 480px) {
  .modal-overlay .modal {
    max-height: 95vh;
    margin: 8px;
  }
  
  .modal-overlay .modal .receipt-body {
    max-height: calc(95vh - 140px);
  }
}

/* ===== PERBAIKAN TOPBAR TEMA HIJAU ===== */
.app-root.theme-green .topbar {
  background: #3D6B5B !important;
  border-bottom-color: #2D5245 !important;
}

.app-root.theme-green .topbar h1 {
  color: #FFFFFF !important;
}

.app-root.theme-green .topbar-back,
.app-root.theme-green .topbar-icon-btn {
  color: #FFFFFF !important;
}

/* ===== PERBAIKAN TOPBAR TEMA DARK NAVY ===== */
.app-root.theme-dark .topbar {
  background: #162032 !important;
  border-bottom-color: #1E293B !important;
}

.app-root.theme-dark .topbar h1 {
  color: #FFFFFF !important;
}

.app-root.theme-dark .topbar-back,
.app-root.theme-dark .topbar-icon-btn {
  color: #FFFFFF !important;
}

/* ===== PERBAIKAN TOPBAR TEMA BIRU (DEFAULT) ===== */
.app-root.theme-blue .topbar {
  background: #2F6FED !important;
  border-bottom-color: #1E52C4 !important;
}

.app-root.theme-blue .topbar h1 {
  color: #FFFFFF !important;
}

.app-root.theme-blue .topbar-back,
.app-root.theme-blue .topbar-icon-btn {
  color: #FFFFFF !important;
}

/* ===== TOMBOL EXPORT STICKY BOTTOM ===== */
/* Hanya tombol aksi utama HALAMAN (langsung di bawah screen-pad), bukan di dalam modal */
.screen-pad > .bottom-action-row {
position: sticky;
bottom: 0;
background: var(--bg);
padding: 12px 0;
margin-top: 14px;
z-index: 5;
border-top: 1px solid var(--border);
}
.screen-pad > .btn-whatsapp-flat.full {
position: sticky;
bottom: 0;
z-index: 5;
}
@media (max-width: 520px) {
.screen-pad > .bottom-action-row,
.screen-pad > .btn-whatsapp-flat.full {
bottom: 76px; /* tinggi bottom nav */
}
}
@media (min-width: 521px) {
.screen-pad > .bottom-action-row,
.screen-pad > .btn-whatsapp-flat.full {
bottom: 0;
}
}

/* ===== SPLASH SCREEN ANIMASI ===== */
.splash-overlay {
position: fixed; inset: 0; z-index: 200;
background: linear-gradient(135deg, #2F6FED, #1E52C4);
display: flex; align-items: center; justify-content: center;
animation: splashFade 0.5s ease 1.2s forwards;
}
.splash-content { text-align: center; color: #fff; animation: splashPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
.splash-logo {
width: 84px; height: 84px; margin: 0 auto 14px;
background: rgba(255,255,255,0.15); border-radius: 24px;
display: flex; align-items: center; justify-content: center;
animation: splashLogo 0.8s ease infinite alternate;
box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.splash-title { margin: 0 0 10px; font-size: 22px; font-weight: 800; letter-spacing: 0.5px; }
.splash-bar { width: 140px; height: 4px; margin: 0 auto; background: rgba(255,255,255,0.25); border-radius: 999px; overflow: hidden; }
.splash-bar-fill { height: 100%; width: 0; background: #fff; border-radius: 999px; animation: splashLoad 1.1s ease forwards; }
.splash-tagline { margin: 8px 0 0; font-size: 11px; opacity: 0.8; }
@keyframes splashLoad { to { width: 100%; } }
@keyframes splashPop { from { opacity: 0; transform: scale(0.8) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splashLogo { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes splashFade { to { opacity: 0; visibility: hidden; } }

/* ===== UI POLISH PACK — TAMPILAN LEBIH HIDUP ===== */
html, body { -webkit-tap-highlight-color: transparent; }
.btn-primary, .btn-outline, .btn-ghost-sm, .btn-danger-sm, .btn-whatsapp-flat,
.chip, .nav-item, .dash-quick-tile, .kasir-product-card, .produk-card,
.settings-menu-item, .pay-method-tile, .method-tile, .toggle-pill {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:active:not(:disabled), .btn-outline:active:not(:disabled),
.btn-whatsapp-flat:active, .dash-quick-tile:active,
.kasir-product-card:active:not(:disabled), .pay-method-tile:active, .method-tile:active {
  transform: scale(0.96);
}
@media (hover: hover) {
  .dash-quick-tile:hover, .kasir-product-card:hover:not(:disabled),
  .produk-card:hover, .settings-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  }
}
.dash-hero {
  background-size: 200% 200% !important;
  animation: gradientShift 8s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.dash-hero-value { text-shadow: 0 2px 14px rgba(0,0,0,0.25); letter-spacing: -0.5px; }
.nav-item { position: relative; }
.nav-item.active { background: var(--primary-light); border-radius: 12px; }
.nav-item.active::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--primary);
}
.toast { animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 24px) scale(0.9); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.app-screen > * { animation: screenIn 0.25s ease-out; }
@keyframes screenIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.modal { animation: modalIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.92) translateY(10px); } to { opacity: 1; transform: none; } }
.modal-overlay { animation: overlayIn 0.2s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.login-card { animation: modalIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.dash-card, .settings-form-card, .produk-card, .pelanggan-card,
.stat-card, .dash-stat, .cart-summary-box, .pay-hero {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.topbar { box-shadow: 0 2px 14px rgba(15, 23, 42, 0.1); }
.bottom-nav { box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06); }
.search-box:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.pay-input:focus, .login-input:focus, .cell-input:focus, .cell-select:focus {
  box-shadow: 0 0 0 3px var(--primary-light);
}
.chip.active { box-shadow: 0 3px 10px var(--primary-light); }
.badge-low, .badge-out { animation: badgePulse 2s ease infinite; }
@keyframes badgePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }
::selection { background: var(--primary); color: #fff; }
.total-amount, .pay-hero-value, .net-profit-value { letter-spacing: -0.5px; }

/* ===== LOGO STRUK 1.5x LEBIH BESAR (60px -> 90px) ===== */
.receipt-logo {
max-width: 90px !important;
max-height: 90px !important;
}

/* ===== PERBAIKAN CETAK STRUK: COMPACT, MULAI DARI ATAS, TANPA SPASI KOSONG ===== */
@media print {
  @page { margin: 4mm; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  .app-root { max-width: none !important; margin: 0 !important; min-height: 0 !important; }
  .app-screen { padding: 0 !important; height: auto !important; overflow: visible !important; }
  .bottom-nav, .theme-picker-overlay, .toast { display: none !important; }

  /* Buang semua isi halaman kecuali struk (hilangkan spasi kosong) */
  .screen-pad > *:not(.struk-card):not(.modal-overlay):not(.label-print-root) { display: none !important; }

  .modal-overlay {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .struk-card, .modal.struk-card {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 58mm !important;
    max-width: 58mm !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .struk-card .receipt-body {
    max-height: none !important;
    overflow: visible !important;
  }
  .receipt-zigzag-top, .receipt-zigzag-bottom { display: none !important; }
}
/* ===== FIX MODAL PREVIEW STRUK: hilangkan kotak hitam & rapikan tombol ===== */
.modal.struk-card .bottom-action-row {
position: static !important;
background: transparent !important;
border-top: none !important;
}
.modal.struk-card .btn-outline {
background: #FFFFFF !important;
color: #1E293B !important;
border-color: #CBD5E1 !important;
}

/* ===== CETAK LABEL HARGA & BARCODE ===== */
.label-sheet { display: flex; flex-wrap: wrap; gap: 3mm; padding: 2mm; background: #fff; border: 1px dashed var(--border); border-radius: 8px; margin-top: 12px; }
.price-label { background: #fff; color: #000; border: 1px solid #bbb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 2mm; text-align: center; overflow: hidden; box-sizing: border-box; }
.price-label > * { flex-shrink: 0; max-width: 100%; }
.price-label.kecil .label-barcode { max-height: 18px; }
.price-label.sedang .label-barcode { max-height: 26px; }
.price-label.kecil { width: 40mm; height: 30mm; }
.price-label.sedang { width: 58mm; height: 40mm; }
.label-store { font-size: 7.5px; color: #444; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.label-name { font-size: 9px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.label-price { font-family: 'IBM Plex Mono', monospace; font-weight: 800; font-size: 12px; }
.price-label.sedang .label-store { font-size: 9px; }
.price-label.sedang .label-name { font-size: 11px; }
.price-label.sedang .label-price { font-size: 16px; } 
.label-barcode { max-width: 92%; height: auto; }
@media print {
  .label-print-root, .label-print-root * { visibility: visible !important; }
  .label-print-root .no-print { display: none !important; }
  .label-sheet { border: none !important; margin: 0 !important; padding: 0 !important; gap: 2mm !important; background: #fff !important; }
  .price-label { border: 1px dashed #ccc !important; }
}

/* ===== PERBAIKAN AKHIR: TOMBOL EXPORT & TOMBOL MODAL STRUK ===== */
/* Tombol "Bagikan Ringkasan" tidak lagi sticky menimpa tombol export */
.screen-pad > .btn-whatsapp-flat.full {
position: static !important;
bottom: auto !important;
z-index: auto !important;
margin-top: 8px;
}
/* Baris tombol di dalam modal struk tidak sticky & tanpa kotak hitam */
.modal.struk-card .bottom-action-row {
position: static !important;
background: transparent !important;
border-top: none !important;
bottom: auto !important;
}
.modal.struk-card .btn-outline {
background: #FFFFFF !important;
color: #1E293B !important;
border-color: #CBD5E1 !important;
}

/* ===== CONFETTI SAAT TRANSAKSI SUKSES ===== */
.confetti-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.confetti-piece { position: absolute; top: -24px; opacity: 0.95; animation: confettiFall linear forwards; }
@keyframes confettiFall {
0% { transform: translate3d(0, -6vh, 0) rotate(0deg); opacity: 1; }
100% { transform: translate3d(var(--sway, 0px), 112vh, 0) rotate(720deg); opacity: 0.6; }
}

/* ===== LONCENG NOTIFIKASI ===== */
.notif-badge { position: absolute; top: -4px; right: -4px; background: var(--red); color: #fff; border-radius: 999px; min-width: 16px; height: 16px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-section { margin-bottom: 14px; }
.notif-section-title { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.notif-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; font-size: 12px; }
.notif-row-name { font-weight: 600; }
.notif-row-sub { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }
.notif-row-value { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 11px; white-space: nowrap; }


/* ===== PAGINATION PRODUK & OPNAME ===== */
.pagination-row { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.pagination-info { flex: 1; text-align: center; font-size: 11px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.pagination-row .btn-ghost-sm { flex: none; padding: 8px 12px; }
.pagination-row .btn-ghost-sm:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== FIX TEMA GELAP: TANGGAL PUTIH & TERLIHAT ===== */
.theme-dark  input[type="date"] { color: #FFFFFF; }
.theme-dark input[type="date"]::-webkit-datetime-edit { color: #FFFFFF; }
.theme-dark input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.85; }
.theme-dark .hist-date,
.theme-dark .tx-date,
.theme-dark .riwayat-date { color: #E6EDF7; }

/* ===== RAPIKAN KERANJANG ===== */
.cart-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cart-row-full { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.cart-thumb { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; flexShrink: 0; }
.cart-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; text-align: left; }
.cart-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-unit { font-size: 10.5px; color: var(--ink-soft); font-family: 'IBM Plex Mono', monospace; }
.qty-control { display: flex; align-items: center; gap: 6px; }
.qty-control button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.cart-line-total { font-family: 'IBM Plex Mono', monospace; font-weight: 700; font-size: 12.5px; min-width: 72px; text-align: right; }
.cart-summary { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink); }
.cart-summary-row span:last-child { font-family: 'IBM Plex Mono', monospace; font-weight: 700; }
.cart-summary-row.total { font-weight: 800; font-size: 15px; border-top: 1px dashed var(--border); padding-top: 8px; }
.cart-summary-row.total span:last-child { color: var(--primary); }

/* ===== TOTAL KERANJANG SELALU TERLIHAT (LAYAR KECIL) ===== */
.cart-summary-row.total { display: flex !important; justify-content: space-between !important; align-items: center; width: 100%; flex-wrap: nowrap; font-weight: 800; font-size: 15px; border-top: 1px dashed var(--border); padding-top: 8px; color: var(--ink); }
.cart-summary-row.total span:last-child { color: var(--primary); font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
@media (max-width: 480px) {
  .cart-summary { padding: 10px 12px; }
  .cart-summary-row { font-size: 12.5px; }
  .cart-summary-row.total { font-size: 14px; }
  .bottom-action-row { flex-wrap: wrap; gap: 8px; }
  .bottom-action-row > button { flex: 1 1 auto; min-width: 96px; }
  .cart-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}

/* ===== NAMA PRODUK OPTIMAL DI HP ===== */
@media (max-width: 480px) {
  .cart-row-full {
    grid-template-columns: 40px 1fr auto;
    grid-template-areas:
      "thumb info info"
      "thumb qty total";
    row-gap: 8px;
  }
  .cart-thumb { grid-area: thumb; }
  .cart-info { grid-area: info; }
  .qty-control { grid-area: qty; justify-self: start; }
  .cart-line-total { grid-area: total; justify-self: end; align-self: center; }
  .cart-name {
    white-space: normal;
    display: block;
    overflow: visible;
    text-overflow: clip;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
  }
}

/* ===== latar kotak dialog konfirmasi ===== */
.modal-overlay .modal {
  background: var(--card, #ffffff);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}