/* ==========================================================================
   RENTAL PS — DESIGN SYSTEM v2
   Precision-dark, red identity. Inspired by the restraint of Linear/Stripe/
   Vercel rather than "dark theme + neon glow". Sharper corners, hairline
   borders, tabular numerals, accent bars instead of soft glows.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* --- Brand red --- */
  --red-50:  #fef2f2;
  --red-100: #fee2e2;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --red-900: #7f1d1d;

  --primary: var(--red-600);
  --primary-strong: var(--red-700);
  --primary-soft: var(--red-400);
  --on-primary: #ffffff;

  /* --- Neutrals (warm near-black, default) --- */
  --bg: #0b0a0a;
  --bg-raised: #100f0f;
  --bg-inset: #151313;
  --surface: #141212;
  --surface-2: #191717;
  --surface-hover: #1d1a1a;
  --border: rgba(255, 255, 255, 0.075);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f2f0ef;
  --text-muted: #9c9694;
  --text-faint: #64605e;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger: var(--red-500);
  --info: #38bdf8;

  /* legacy tokens referenced by existing views */
  --text-main: var(--text);
  --accent-cyan: #38bdf8;
  --accent-amber: #f59e0b;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px -12px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 0 1px rgba(220, 38, 38, 0.3);

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sidebar-w: 260px;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f4;
  --bg-raised: #ffffff;
  --bg-inset: #eeecea;
  --surface: #ffffff;
  --surface-2: #f6f5f4;
  --surface-hover: #edebe9;
  --border: rgba(15, 15, 15, 0.08);
  --border-strong: rgba(15, 15, 15, 0.15);
  --text: #131110;
  --text-muted: #625d5a;
  --text-faint: #9b9592;
  --shadow-sm: 0 1px 2px rgba(15, 15, 15, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(15, 15, 15, 0.12);
  --shadow-lg: 0 30px 60px -20px rgba(15, 15, 15, 0.16);
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv05" 1;
}

body {
  background-image:
    linear-gradient(180deg, rgba(220,38,38,.05), transparent 320px),
    radial-gradient(1200px 500px at 100% -10%, rgba(220,38,38,.05), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--text); }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }

::selection { background: var(--primary); color: #fff; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================================================
   SHELL LAYOUT
   ========================================================================== */

.content {
  flex: 1;
  min-width: 0;
  margin-left: 0 !important;
  width: auto !important;
  background: var(--bg) !important;
}

.page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.page-header .icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--primary);
  color: var(--red-400); font-size: 1.05rem;
}
.page-header h4 { margin: 0; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.page-header p { margin: 2px 0 0; color: var(--text-faint); font-size: .82rem; }

/* --- Bento-style stat strip: first card wider, rest compact --- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 28px; }
.stat-strip .stat-card:first-child { grid-column: span 2; }
@media (max-width: 991px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat-card:first-child { grid-column: span 2; }
}

.stat-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface) !important;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color .2s var(--ease), transform .18s var(--ease);
}
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.stat-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border-strong); }
.stat-card:first-child::before { background: var(--primary); }
.stat-card .icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.stat-card .icon.i-indigo { color: #818cf8; }
.stat-card .icon.i-green  { color: #4ade80; }
.stat-card .icon.i-cyan   { color: #38bdf8; }
.stat-card .icon.i-amber  { color: #fbbf24; }
.stat-card .num { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card .lbl { color: var(--text-faint); font-size: .73rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

.bg-secondary {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg);
  color: var(--text);
}
.bg-secondary h1, .bg-secondary h2, .bg-secondary h3,
.bg-secondary h4, .bg-secondary h5, .bg-secondary h6,
.bg-secondary p, .bg-secondary span, .bg-secondary label { color: var(--text); }

/* Channel cards */
.bg-secondary.cnl, .bg-secondary.cnl2 {
  transition: border-color .2s var(--ease), transform .18s var(--ease), box-shadow .2s var(--ease);
  border-top: 3px solid var(--border-strong) !important;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bg-secondary.cnl:hover, .bg-secondary.cnl2:hover {
  border-color: rgba(220,38,38,.5) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.5);
}
.bg-secondary.cnl { border-top-color: var(--accent-amber) !important; }
.bg-secondary.cnl2 { border-top-color: var(--primary) !important; }
.bg-secondary.cnl2 h1 { color: var(--text) !important; font-weight: 800; letter-spacing: -.03em; font-family: var(--font-display); font-size: 1.6rem; }
.bg-secondary.cnl h1 { color: var(--accent-amber) !important; font-weight: 800; letter-spacing: -.03em; font-family: var(--font-display); font-size: 1.6rem; }

/* Channel card status badge */
.ch-status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 3px 8px; border-radius: var(--radius-sm);
  font-family: var(--font-mono);
}
.ch-status-badge.ready { background: rgba(34,197,94,.12); color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.ch-status-badge.ongoing { background: rgba(245,158,11,.12); color: var(--accent-amber); border: 1px solid rgba(245,158,11,.2); }
.ch-status-badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* Channel card action row */
.ch-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ch-actions .btn { padding: .35rem .7rem; font-size: .78rem; }

.payment-panel .summary-list th { color: var(--text) !important; border-color: var(--border) !important; background: transparent; font-size: .8rem; }
.payment-panel .summary-list td { color: var(--text) !important; border-color: var(--border) !important; background: transparent; font-size: .85rem; }
.payment-panel .total-callout {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 12px; margin-bottom: 12px;
}
.payment-panel .total-callout .lbl { color: var(--text-muted); font-size: .82rem; font-weight: 600; }
.payment-panel .total-callout .val { color: var(--text); font-weight: 800; font-size: 1.2rem; font-family: var(--font-display); color: var(--accent-amber); }

/* Payment panel section divider */
.panel-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--text-faint); font-family: var(--font-mono);
  margin: 16px 0 10px;
}
.panel-section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ==========================================================================
   SIDEBAR — precision rail, hairline borders, accent-bar active state
   ========================================================================== */

.app-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-raised);
  border-right: 1px solid var(--border);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.app-sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.app-sidebar .brand img { width: 26px; height: 26px; }
.app-sidebar .brand span { font-family: var(--font-display); font-weight: 700; font-size: .98rem; letter-spacing: -0.01em; color: var(--text); }

.nav-group-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); font-weight: 500; padding: 20px 10px 8px; }

.app-nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500; font-size: .875rem;
  margin-bottom: 2px; position: relative; border-left: 2px solid transparent;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.app-nav-link i { font-size: 1rem; width: 20px; text-align: center; color: var(--text-faint); transition: color .15s var(--ease); flex-shrink: 0; }
.app-nav-link:hover { background: var(--surface-hover); color: var(--text); }
.app-nav-link:hover i { color: var(--text); }
.app-nav-link.active { background: var(--surface-2); color: var(--text); border-left-color: var(--primary); font-weight: 600; }
.app-nav-link.active i { color: var(--primary-soft); }

.sidebar-footer-card { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; padding: 14px 10px 4px; }
.sidebar-footer-card img { width: 32px; height: 32px; border-radius: var(--radius-sm); object-fit: cover; }
.sidebar-footer-card .name { font-size: .8rem; font-weight: 600; color: var(--text); }
.sidebar-footer-card .role { font-size: .7rem; color: var(--text-faint); font-family: var(--font-mono); }

/* ==========================================================================
   TOPBAR — detached, floating command strip
   ========================================================================== */

.app-topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 24px;
  background: rgba(11,10,10,.82);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
html[data-theme="light"] .app-topbar { background: rgba(246,245,244,.78); }

.app-topbar > a, .sidebar-toggler, #sidebarHome { color: var(--text) !important; }
.app-topbar > a:hover, .sidebar-toggler:hover { color: var(--primary-soft) !important; }

.sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .2s var(--ease); }
.sidebar-backdrop.show { opacity: 1; pointer-events: auto; }
@media (min-width: 992px) { .sidebar-backdrop { display: none; } }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: .78rem; font-weight: 500; color: var(--text-muted);
  font-family: var(--font-mono);
}
.pill i { color: var(--primary-soft); font-family: normal; }

.price-ticker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--border); border-top: 2px solid var(--primary);
  color: var(--text); border-radius: var(--radius-sm); padding: 6px 14px;
  font-weight: 600; font-size: .8rem; font-family: var(--font-mono);
}
.price-ticker i { color: var(--primary-soft); }

.avatar-btn { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; border-radius: var(--radius-sm); border: 1px solid transparent; }
.avatar-btn:hover { background: var(--surface-hover); border-color: var(--border); }
.avatar-btn img { width: 28px; height: 28px; border-radius: var(--radius-sm); object-fit: cover; }
.avatar-btn .name { font-size: .82rem; font-weight: 600; color: var(--text); }

.theme-toggle {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }

/* ==========================================================================
   SURFACES / CARDS
   ========================================================================== */

.surface-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.surface-card:hover { border-color: var(--border-strong); }

/* ==========================================================================
   BUTTONS — flat, precise, hairline; no neon glow
   ========================================================================== */

.btn { border-radius: var(--radius-sm); font-weight: 600; font-size: .84rem; padding: .48rem 1.1rem; transition: all .15s var(--ease); border: 1px solid transparent; letter-spacing: -0.005em; }
.btn-sm { padding: .3rem .7rem !important; font-size: .78rem !important; }

.btn-primary, .btn-danger { background: var(--primary) !important; border-color: var(--primary) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover, .btn-danger:hover { background: var(--primary-strong) !important; border-color: var(--primary-strong) !important; }

.btn-success { background: var(--surface-2) !important; border-color: var(--border-strong) !important; color: #4ade80 !important; }
.btn-success:hover { background: var(--surface-hover) !important; }

.btn-info { background: var(--surface-2) !important; border-color: var(--border-strong) !important; color: #38bdf8 !important; }
.btn-info:hover { background: var(--surface-hover) !important; }

.btn-warning { background: var(--surface-2) !important; border-color: var(--border-strong) !important; color: #fbbf24 !important; }
.btn-warning:hover { background: var(--surface-hover) !important; }

.btn-outline-light, .btn-secondary { background: transparent !important; border-color: var(--border-strong) !important; color: var(--text) !important; }
.btn-outline-light:hover, .btn-secondary:hover { background: var(--surface-hover) !important; }

.btn-ghost { background: var(--surface-hover) !important; border-color: transparent !important; color: var(--text) !important; }

/* ==========================================================================
   FORMS / TABLES
   ========================================================================== */

.form-control, .form-select, textarea {
  background: var(--bg-inset) !important; border: 1px solid var(--border) !important; color: var(--text) !important;
  border-radius: var(--radius-sm) !important; padding: .6rem .9rem !important; font-size: .875rem;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.form-control:focus, .form-select:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(220,38,38,.15) !important; background: var(--bg-inset) !important; color: var(--text) !important; }
.form-control::placeholder { color: var(--text-faint) !important; }
.form-label { color: var(--text-muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; display: inline-block; margin-bottom: 6px; }
label { color: var(--text-muted); font-weight: 500; font-size: .85rem; }
.form-check { display: flex; align-items: center; gap: 8px; padding-left: 0; margin-bottom: 8px; }
.form-check-input { background-color: var(--bg-inset); border: 1px solid var(--border-strong); margin-top: 0; flex-shrink: 0; }
.form-check-input:checked { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.form-check-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,38,38,.15); }
.form-check-label { color: var(--text-muted); font-weight: 500; font-size: .84rem; margin: 0; }

/* Segmented radio group (snack/minuman/both) */
.segmented-toggle { align-items: center; }
.segmented-toggle .form-check {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 8px 12px; margin-bottom: 0;
}

/* Dashboard shortcut tiles */
.tile-btn {
  width: 100%; display: flex !important; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 20px 12px !important; height: auto !important;
  background: var(--surface-2) !important; border: 1px solid var(--border) !important;
  color: var(--text) !important; box-shadow: none !important;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .18s var(--ease) !important;
}
.tile-btn:hover { border-color: var(--primary) !important; background: var(--surface-hover) !important; transform: translateY(-2px); }
.tile-btn i { font-size: 1.4rem; color: var(--primary-soft); }
.tile-btn span { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }

.table { color: var(--text); border-collapse: collapse; }
.table thead th {
  background: var(--surface-2); color: var(--text-faint); font-size: .69rem; text-transform: uppercase; letter-spacing: .07em;
  font-weight: 700; border-bottom: 1px solid var(--border-strong) !important; border-top: none !important;
  padding: 11px 14px; font-family: var(--font-mono);
}
.table tbody td { border-color: var(--border) !important; padding: 11px 14px; vertical-align: middle; font-size: .87rem; }
.table tbody tr { transition: background .12s var(--ease); }
.table tbody tr:hover { background: var(--surface-2); }
.table-bordered, .table-bordered th, .table-bordered td { border: 1px solid var(--border) !important; }

.badge { border-radius: var(--radius-sm); font-weight: 600; padding: .3em .6em; font-size: .68rem; letter-spacing: .02em; }
.badge.bg-success { background: rgba(34,197,94,.12) !important; color: var(--success) !important; }
.badge.bg-danger  { background: rgba(239,68,68,.12) !important; color: var(--red-400) !important; }
.badge.bg-warning { background: rgba(245,158,11,.12) !important; color: var(--warning) !important; }
.badge.bg-primary { background: rgba(220,38,38,.12) !important; color: var(--red-400) !important; }

.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); border-top: 3px solid var(--primary); box-shadow: var(--shadow-lg); }
.modal-header { border-color: var(--border) !important; padding: 18px 22px; }
.modal-footer { border-color: var(--border) !important; padding: 14px 22px; }
.modal-body { padding: 20px 22px; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }

/* ==========================================================================
   LOGIN — split panel, geometric accent instead of blurred orbs
   ========================================================================== */

.login-wrap { min-height: 100vh; display: flex; }
.login-visual {
  flex: 1.1; position: relative; background: var(--bg-raised); padding: 64px;
  flex-direction: column; justify-content: center; overflow: hidden; border-right: 1px solid var(--border);
}
.login-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 20% 20%, black 0%, transparent 70%);
  opacity: .7;
}
.login-visual .orb { position: absolute; pointer-events: none; }
.login-visual .o1 { width: 3px; height: 220px; background: var(--primary); top: -20px; left: 90px; transform: rotate(18deg); box-shadow: 0 0 40px 4px rgba(220,38,38,.35); }
.login-visual .o2, .login-visual .o3 { display: none; }
.login-visual .content { position: relative; z-index: 2; max-width: 480px; }
.logo-chip { display: inline-flex; align-items: center; margin-bottom: 28px; }
.logo-chip img { width: 38px; }
.badge-live {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--border); border-left: 2px solid var(--primary);
  color: var(--text-muted); font-size: .76rem; font-weight: 600; font-family: var(--font-mono); padding: 6px 14px; border-radius: var(--radius-sm); margin-bottom: 24px;
}
.badge-live .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--red-400); box-shadow: 0 0 0 3px rgba(220,38,38,.2); }
.login-visual h1 { font-size: 2.35rem; font-weight: 700; color: var(--text); line-height: 1.18; margin-bottom: 16px; letter-spacing: -0.03em; }
.login-visual p { color: var(--text-muted); font-size: .96rem; line-height: 1.6; margin-bottom: 32px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature-item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: .82rem; font-weight: 500; }
.feature-item i { color: var(--red-400); }

.login-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.login-form-panel .form-box { width: 100%; max-width: 380px; }
.login-form-panel .form-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.02em; }
.login-form-panel .form-box .sub { color: var(--text-faint); font-size: .88rem; margin-bottom: 32px; }

@media (max-width: 767px) { .login-visual { display: none !important; } }

/* ==========================================================================
   UTIL
   ========================================================================== */

.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.fade-up { animation: fadeUp .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Dropdown */
.dropdown-menu {
  background: var(--surface-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 6px !important;
  min-width: 160px;
}
.dropdown-item {
  color: var(--text-muted) !important;
  font-size: .84rem; font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 8px 12px !important;
  transition: background .12s var(--ease), color .12s var(--ease);
}
.dropdown-item:hover { background: var(--surface-hover) !important; color: var(--text) !important; }
.dropdown-item i { color: var(--text-faint); }

/* Alert / flash messages */
.alert {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--border) !important;
  font-size: .85rem; padding: 12px 16px !important;
}
.alert-success { background: rgba(34,197,94,.1) !important; border-color: rgba(34,197,94,.25) !important; color: #4ade80 !important; }
.alert-danger  { background: rgba(239,68,68,.1) !important; border-color: rgba(239,68,68,.25) !important; color: var(--red-400) !important; }
.alert-warning { background: rgba(245,158,11,.1) !important; border-color: rgba(245,158,11,.25) !important; color: var(--warning) !important; }

/* Laporan date filter bar */
.filter-bar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 20px; margin-bottom: 20px;
}
.filter-bar .filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-bar label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); font-family: var(--font-mono); margin: 0; }
.filter-bar input[type=date] { min-width: 160px; }

/* Blink animation for expired timer */
.blink { animation: blink 1s step-start infinite; color: var(--red-400) !important; font-weight: 800; }
@keyframes blink { 50% { opacity: 0; } }

/* Page content padding */
.container-fluid.pt-4.px-4 { padding-top: 28px !important; padding-left: 28px !important; padding-right: 28px !important; }

@media (max-width: 991px) {
  .app-sidebar { position: fixed; z-index: 40; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .app-sidebar.open { transform: translateX(0); }
}
