:root{
  --bg-1:#07111f;
  --bg-2:#0d1630;
  --bg-3:#121b38;
  --surface: rgba(9, 16, 34, .68);
  --surface-strong: rgba(13, 20, 41, .88);
  --surface-light: rgba(255,255,255,.72);
  --border: rgba(255,255,255,.14);
  --border-strong: rgba(255,255,255,.22);
  --text: #eef4ff;
  --muted: rgba(238,244,255,.72);
  --accent1:#8b5cf6;
  --accent2:#22d3ee;
  --accent3:#f59e0b;
  --danger:#ef4444;
  --success:#10b981;
  --shadow: 0 18px 50px rgba(0,0,0,.36);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.22);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html, body { min-height: 100%; }
body.app-shell{
  font-family: 'Inter', sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(139,92,246,.34), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(34,211,238,.24), transparent 22%),
    radial-gradient(circle at 88% 88%, rgba(245,158,11,.16), transparent 20%),
    linear-gradient(145deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
}
body.theme-light{
  --surface: rgba(255,255,255,.76);
  --surface-strong: rgba(255,255,255,.94);
  --surface-light: rgba(255,255,255,.92);
  --border: rgba(15,23,42,.08);
  --border-strong: rgba(15,23,42,.14);
  --text: #0f172a;
  --muted: rgba(15,23,42,.64);
  background:
    radial-gradient(circle at 12% 10%, rgba(139,92,246,.14), transparent 26%),
    radial-gradient(circle at 86% 8%, rgba(34,211,238,.12), transparent 22%),
    linear-gradient(145deg, #f6f8ff 0%, #edf4ff 46%, #ffffff 100%);
}

.page-watermark{ position: relative; isolation: isolate; }
.page-watermark::before{
  content: "BRDB";
  position: fixed;
  right: -4rem;
  bottom: 8%;
  font-size: clamp(4.8rem, 16vw, 16rem);
  font-weight: 900;
  letter-spacing: .16em;
  opacity: .06;
  transform: rotate(-16deg);
  pointer-events: none;
  z-index: 0;
}
.page-watermark > *{ position: relative; z-index: 1; }

.glass-nav,
.glass-card,
.glass-modal,
.table-container,
.summary-card,
.form-card,
.hero-panel,
.panel-surface{
  background: var(--surface) !important;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(120%);
}
.glass-nav{
  background: rgba(7, 12, 25, .55) !important;
}
.theme-light .glass-nav{ background: rgba(255,255,255,.72) !important; }
.glass-nav .nav-link, .glass-nav .navbar-brand{ color: var(--text) !important; }
.theme-light .glass-nav .nav-link{ color: #0f172a !important; }

.brand-badge{
  width: 42px; height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 14px 30px rgba(139,92,246,.34);
  color: white;
}
.user-chip{
  display:flex; align-items:center; gap:.5rem;
  padding:.45rem .9rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
}
.theme-light .user-chip{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.08);
}
.btn-glass, .btn-outline-premium, .btn-outline-light{
  border-radius: 999px !important;
}
.theme-light .btn-outline-light{
  color: var(--text) !important;
  border-color: rgba(15,23,42,.16) !important;
  background: rgba(255,255,255,.58) !important;
}
.theme-light .btn-outline-light:hover{
  background: rgba(15,23,42,.06) !important;
  color: var(--text) !important;
}
.theme-light .btn-glass{ color: #0f172a !important; background: rgba(255,255,255,.78); border-color: rgba(15,23,42,.10); }
.btn-glass{
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  background: rgba(255,255,255,.08);
}
.btn-glass:hover{ color: var(--text); background: rgba(255,255,255,.12); }
.btn-premium{
  border: none !important;
  border-radius: 16px !important;
  color: white !important;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 14px 30px rgba(139,92,246,.30);
}
.btn-premium:hover{ color: white !important; filter: brightness(1.04); }
.btn-outline-premium{
  border: 1px solid rgba(139,92,246,.38) !important;
  background: rgba(139,92,246,.10) !important;
  color: var(--text) !important;
}
.btn-danger-soft{
  border:none !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg, #ef4444, #fb7185);
  box-shadow: 0 14px 30px rgba(239,68,68,.22);
}
.btn-danger-soft:hover{ color: #fff !important; filter: brightness(1.04); }

.glass-dropdown{
  background: rgba(6, 11, 24, .96) !important;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: .5rem;
}
.theme-light .glass-dropdown{ background: rgba(255,255,255,.98) !important; }
.dropdown-item{
  color: var(--text) !important;
  border-radius: 12px;
  padding: .7rem .8rem;
}
.dropdown-item:hover,
.dropdown-item.active{
  background: linear-gradient(90deg, rgba(139,92,246,.22), rgba(34,211,238,.20));
}

.hero-panel{
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  padding: .5rem .75rem !important;
  background:
    linear-gradient(135deg, rgba(139,92,246,.26), rgba(34,211,238,.14)),
    rgba(255,255,255,.06);
}
.hero-panel::after,
.summary-card::after,
.form-card::after,
.table-container::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.08), transparent);
  transform: translateX(-110%);
  animation: shine 10s infinite;
  pointer-events: none;
}
@keyframes shine{
  0%, 58%{ transform: translateX(-110%); }
  100%{ transform: translateX(110%); }
}

.summary-card{
  border-radius: 18px;
  min-height: 150px;
  position: relative;
  overflow: hidden;
}
.summary-card::before{
  content:"";
  position: absolute;
  inset: auto -26px -26px auto;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), transparent 70%);
}
.summary-title{ color: var(--muted); font-size: .92rem; }
.summary-value{ font-size: clamp(1.7rem, 2.4vw, 2.4rem); font-weight: 800; line-height: 1.1; }
.summary-icon{
  width: 56px; height: 56px;
  border-radius: 18px;
  display:flex; align-items:center; justify-content:center;
  color:#fff;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  box-shadow: 0 16px 32px rgba(34,211,238,.18);
}
.summary-card .mini-note{ color: var(--muted); }

.table-container,
.form-card{
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}
.table-container{
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 210px);
}
.table-responsive{
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 330px);
  overflow: auto;
}
.table-responsive::-webkit-scrollbar{ width: 10px; height: 10px; }
.table-responsive::-webkit-scrollbar-thumb{ background: rgba(139,92,246,.35); border-radius: 999px; }
.table-responsive::-webkit-scrollbar-track{ background: transparent; }
.table{
  color: var(--text);
  margin-bottom: 0;
}
.table thead th{
  position: sticky;
  top: 0;
  z-index: 4;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.05));
  color: var(--text);
  border-color: rgba(255,255,255,.10) !important;
  white-space: nowrap;
  user-select: none;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: .01em;
  backdrop-filter: blur(12px);
}
.theme-light .table thead th{
  background: rgba(15,23,42,.03);
}
.table thead th:hover{ background: rgba(139,92,246,.12); }
.table tbody tr{ transition: background .18s ease, transform .18s ease; }
.table tbody tr:hover{ background: rgba(255,255,255,.05); }
.theme-light .table tbody tr:hover{ background: rgba(15,23,42,.03); }
.table td, .table th{
  border-color: rgba(255,255,255,.08) !important;
  vertical-align: middle;
}
.table tfoot td{
  background: rgba(34,211,238,.10);
  font-weight: 700;
  color: var(--text);
  position: sticky;
  bottom: 0;
  z-index: 3;
  backdrop-filter: blur(12px);
}
.table-footer-total{ margin-left: .6rem; }
.action-strip{
  gap: .5rem !important;
}
.action-strip .btn{
  min-height: 34px;
  padding: .36rem .7rem;
  font-size: .9rem;
  border-radius: 12px;
}
.action-strip .btn i{ font-size: .92rem; }

.form-control-sm,
.form-select-sm{
  min-height: 34px;
  padding: .34rem .65rem;
  font-size: .88rem;
}

.form-date-field{
  min-height: 34px;
}

.table-footer-note{ color: var(--muted); font-size: .9rem; }

.action-btn{
  width: 36px; height: 36px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 12px;
  margin-right: .25rem;
  transition: transform .16s ease, box-shadow .16s ease;
}
.action-btn:hover{ transform: translateY(-1px); }
.action-btn i{ pointer-events:none; }
.action-edit{ background: rgba(59,130,246,.16); color: #60a5fa; }
.action-delete{ background: rgba(239,68,68,.16); color: #f87171; }
.action-view{ background: rgba(16,185,129,.16); color: #34d399; }

.form-card{
  position: relative;
  padding: 1.4rem;
}
.form-card .form-control,
.form-card .form-select{
  background: rgba(255,255,255,.10);
}
.theme-light .form-card .form-control,
.theme-light .form-card .form-select{
  background: rgba(255,255,255,.94);
}
.form-card .btn{
  min-height: 34px;
  padding: .36rem .8rem;
}
.form-card h5, .table-container h5{ letter-spacing: -.02em; }
.form-label{
  color: var(--muted);
  font-weight: 700;
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .45rem;
}
.form-control,
.form-select{
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: .38rem .66rem;
  min-height: 34px;
  font-size: .88rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.form-control:disabled,
.form-control[readonly]{
  opacity: .92;
}
.theme-light .form-control,
.theme-light .form-select{
  background: rgba(255,255,255,.94);
  color: #0f172a;
  border-color: rgba(15,23,42,.10);
}
.form-control::placeholder{ color: rgba(255,255,255,.45); }
.theme-light .form-control::placeholder{ color: rgba(15,23,42,.36); }
.form-control:focus,
.form-select:focus{
  border-color: rgba(139,92,246,.54);
  box-shadow: 0 0 0 .22rem rgba(139,92,246,.14);
}
.form-check-input{
  width: 1.15rem; height: 1.15rem;
  background-color: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}
.theme-light .form-check-input{ background-color: rgba(15,23,42,.04); border-color: rgba(15,23,42,.18); }
.form-check-input:checked{ background-color: var(--accent1); border-color: var(--accent1); }
.form-check-label{ color: var(--text); font-weight: 600; }

.badge-soft{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  background: rgba(139,92,246,.14);
  color: #d8b4fe;
  border: 1px solid rgba(139,92,246,.18);
}
.theme-light .badge-soft{ color: #6b21a8; }

.search-box{ min-width: 260px; }
.mini-note{ color: var(--muted); font-size: .9rem; }

.table-container .no-print{
  position: sticky;
  bottom: 0;
  z-index: 3;
  padding-top: .75rem;
  margin-top: .75rem !important;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 85%, transparent));
}
.bulk-delete-trigger{
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  min-height: 46px;
  border-radius: 16px !important;
}
.btn-icon-only{
  width: 40px;
  height: 40px;
  padding: 0 !important;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  border-radius: 12px !important;
  flex: 0 0 auto;
}
.btn-icon-only i{
  margin: 0 !important;
  font-size: .95rem;
}
.action-strip-inline{
  flex-wrap: nowrap !important;
  overflow-x: auto;
  max-width: 100%;
}
.action-strip-inline::-webkit-scrollbar{ height: 6px; }
.action-strip-inline::-webkit-scrollbar-thumb{ background: rgba(139,92,246,.35); border-radius: 999px; }

.login-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 1rem;
}
.login-card{
  max-width: 980px;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
}
.login-art{
  background: linear-gradient(135deg, rgba(139,92,246,.98), rgba(34,211,238,.92));
  color: white;
  padding: 2rem;
}
.login-art .logo-circle{
  width: 82px; height: 82px;
  border-radius: 18px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.15);
  border:1px solid rgba(255,255,255,.18);
  font-size: 2rem;
}
.login-panel{
  padding: 2rem;
}

.drop-zone{
  border: 2px dashed rgba(255,255,255,.20);
  border-radius: 18px;
  padding: 2.1rem 1rem;
  text-align: center;
  background: rgba(255,255,255,.06);
  transition: .2s ease;
  cursor: pointer;
}
.drop-zone.dragover{
  background: rgba(139,92,246,.16);
  border-color: rgba(139,92,246,.56);
  transform: scale(1.01);
}
.drop-zone i{ font-size: 2.4rem; margin-bottom: .7rem; }

.table-menu{
  position: fixed;
  z-index: 2000;
  min-width: 330px;
  max-width: min(90vw, 420px);
  background: rgba(7, 11, 24, .98);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: .95rem;
  backdrop-filter: blur(18px);
}
.theme-light .table-menu{
  background: rgba(255,255,255,.98);
  border-color: rgba(15,23,42,.10);
}
.table-menu-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.5rem;
  font-weight: 800;
  margin-bottom: .75rem;
}
.table-menu-meta{ color: var(--muted); font-size: .82rem; font-weight: 600; }
.table-menu .form-label{ margin-bottom: .35rem; }
.table-menu .form-control,
.table-menu .form-select{
  min-height: 42px;
  padding: .65rem .85rem;
  border-radius: 14px;
}
.table-menu .btn{
  border-radius: 14px;
}
.combo-suggest{
  position: absolute;
  z-index: 2100;
  min-width: 240px;
  max-width: min(90vw, 420px);
  background: rgba(7, 11, 24, .98);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  border-radius: 16px;
  padding: .35rem;
  backdrop-filter: blur(18px);
}
.theme-light .combo-suggest{ background: rgba(255,255,255,.98); border-color: rgba(15,23,42,.10); }
.combo-suggest .combo-item{ padding: .7rem .85rem; border-radius: 12px; cursor: pointer; color: var(--text); }
.combo-suggest .combo-item:hover, .combo-suggest .combo-item.active{ background: rgba(139,92,246,.14); }

.table-toolbar{
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.table-toolbar .toolbar-actions{ display:flex; gap:.4rem; flex-wrap:nowrap; overflow-x:auto; padding-bottom:.15rem; }
.table-toolbar .toolbar-actions::-webkit-scrollbar{ height: 6px; }
.table-toolbar .toolbar-actions::-webkit-scrollbar-thumb{ background: rgba(139,92,246,.35); border-radius: 999px; }

.modal-content.glass-modal{
  border-radius: 28px;
  overflow: hidden;
}
.modal-header, .modal-footer{
  border-color: rgba(255,255,255,.08) !important;
}
.theme-light .modal-header, .theme-light .modal-footer{
  border-color: rgba(15,23,42,.08) !important;
}

.navbar .dropdown-toggle::after{ margin-left: .5rem; }

@media (max-width: 992px){
  .search-box{ min-width: 100%; }
  .table-menu{ min-width: 280px; }
}

@media (max-width: 576px){
  .hero-panel, .table-container, .form-card, .summary-card, .login-card{ border-radius: 22px; }
  .brand-badge{ width: 38px; height: 38px; border-radius: 12px; }
  .login-art, .login-panel{ padding: 1.25rem; }
  .table-menu{ min-width: calc(100vw - 1rem); left: .5rem !important; right: .5rem !important; max-width: none; }
}

@media print{
  body{ background: #fff !important; color: #000 !important; }
  .glass-nav, .btn, .search-box, .no-print, .dropdown, .modal, .table-menu{ display:none !important; }
  .table-container, .form-card, .summary-card, .hero-panel{ box-shadow:none !important; background:#fff !important; border:1px solid #ddd !important; }
  .table{ color:#000 !important; }
  .table td, .table th, .table tfoot td{ color:#000 !important; border-color:#ddd !important; }
}


.hero-panel{ display: none !important; }

.page-inline-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .75rem;
  margin-bottom: .85rem;
  border-radius: 18px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(120%);
}
.theme-light .page-inline-toolbar{ background: rgba(255,255,255,.82); }
.page-inline-toolbar .toolbar-left,
.page-inline-toolbar .toolbar-right{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
}
.page-inline-toolbar .toolbar-title{
  display:flex;
  flex-direction:column;
  gap:.15rem;
}
.page-inline-toolbar .toolbar-title h5,
.page-inline-toolbar .toolbar-title .mini-note{
  margin:0;
}
.page-inline-toolbar .toolbar-title h5{ font-size:1rem; font-weight:800; }
.page-inline-toolbar .toolbar-title .mini-note{ font-size:.8rem; }
.page-inline-toolbar .btn,
.page-inline-toolbar .form-control,
.page-inline-toolbar .form-select{
  min-height: 34px;
}
.page-inline-toolbar .form-control,
.page-inline-toolbar .form-select{
  padding-top: .34rem;
  padding-bottom: .34rem;
}
.page-inline-toolbar .btn-icon-only{
  width: 36px;
  height: 36px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.page-inline-toolbar .btn-icon-only i{ margin:0 !important; }
.page-inline-toolbar .report-range-form{
  display:flex;
  align-items:center;
  gap:.5rem;
  flex-wrap:wrap;
}
.page-inline-toolbar .report-range-form .btn,
.page-inline-toolbar .report-range-form .form-control{
  border-radius: 12px !important;
}
.page-inline-toolbar .report-range-form .btn:not(.btn-premium):not(.btn-icon-only){
  padding-left: .85rem;
  padding-right: .85rem;
}
.theme-light .page-inline-toolbar .btn-outline-light{
  color: var(--text) !important;
  border-color: rgba(15,23,42,.16) !important;
  background: rgba(255,255,255,.9) !important;
}

body.page-dashboard{
  --bg-1:#07111f; --bg-2:#0d1630; --bg-3:#121b38;
  --accent1:#8b5cf6; --accent2:#22d3ee; --accent3:#f59e0b;
}
body.page-material{
  --bg-1:#06111a; --bg-2:#0a1d34; --bg-3:#11264a;
  --accent1:#06b6d4; --accent2:#8b5cf6; --accent3:#f97316;
}
body.page-vendor{
  --bg-1:#1b1020; --bg-2:#2a1730; --bg-3:#402048;
  --accent1:#fb7185; --accent2:#f59e0b; --accent3:#22d3ee;
}
body.page-head{
  --bg-1:#041a16; --bg-2:#0c2c24; --bg-3:#123e34;
  --accent1:#10b981; --accent2:#14b8a6; --accent3:#84cc16;
}
body.page-expense{
  --bg-1:#1a0f14; --bg-2:#33111c; --bg-3:#4b1626;
  --accent1:#ef4444; --accent2:#f59e0b; --accent3:#fb7185;
}
body.page-payment{
  --bg-1:#081423; --bg-2:#10233d; --bg-3:#16345a;
  --accent1:#3b82f6; --accent2:#8b5cf6; --accent3:#22d3ee;
}
body.page-sale{
  --bg-1:#0e1b0a; --bg-2:#153019; --bg-3:#1f4322;
  --accent1:#84cc16; --accent2:#22c55e; --accent3:#14b8a6;
}
body.page-stock-purchase{
  --bg-1:#101324; --bg-2:#1d2340; --bg-3:#312b5a;
  --accent1:#6366f1; --accent2:#f59e0b; --accent3:#06b6d4;
}
body.page-stock-issue{
  --bg-1:#1e1020; --bg-2:#32142d; --bg-3:#4b1735;
  --accent1:#ec4899; --accent2:#8b5cf6; --accent3:#f97316;
}
body.page-stock-balance{
  --bg-1:#06161a; --bg-2:#0b2b33; --bg-3:#14404b;
  --accent1:#14b8a6; --accent2:#22c55e; --accent3:#06b6d4;
}
body.page-report-profit-loss{
  --bg-1:#120f24; --bg-2:#23163d; --bg-3:#3a1e5a;
  --accent1:#a855f7; --accent2:#f59e0b; --accent3:#22d3ee;
}
body.page-report-stock-available{
  --bg-1:#0b1721; --bg-2:#123041; --bg-3:#184d5f;
  --accent1:#06b6d4; --accent2:#6366f1; --accent3:#22c55e;
}
body.page-report-vendor-dues{
  --bg-1:#210d16; --bg-2:#3c1324; --bg-3:#5e1731;
  --accent1:#fb7185; --accent2:#ef4444; --accent3:#f59e0b;
}
body.page-report-headwise-expense{
  --bg-1:#071b14; --bg-2:#103629; --bg-3:#15513d;
  --accent1:#22c55e; --accent2:#14b8a6; --accent3:#84cc16;
}
body.page-report-modewise-payment{
  --bg-1:#0b1628; --bg-2:#12294a; --bg-3:#1d3d69;
  --accent1:#3b82f6; --accent2:#8b5cf6; --accent3:#06b6d4;
}
body.page-report-vendor-totals{
  --bg-1:#1a1208; --bg-2:#33210f; --bg-3:#4f2f14;
  --accent1:#f59e0b; --accent2:#fb7185; --accent3:#22d3ee;
}
body.page-user-create{
  --bg-1:#111827; --bg-2:#1f2937; --bg-3:#374151;
  --accent1:#8b5cf6; --accent2:#3b82f6; --accent3:#22d3ee;
}
body.page-user-access{
  --bg-1:#120d1d; --bg-2:#23153b; --bg-3:#3a1d56;
  --accent1:#ec4899; --accent2:#8b5cf6; --accent3:#22d3ee;
}
body.page-change-password{
  --bg-1:#071a18; --bg-2:#10312d; --bg-3:#174a44;
  --accent1:#14b8a6; --accent2:#22c55e; --accent3:#f59e0b;
}


.bill-upload-shell{ background: rgba(255,255,255,.05); border:1px dashed rgba(255,255,255,.18); border-radius:18px; padding: .9rem; }
.theme-light .bill-upload-shell{ background: rgba(255,255,255,.82); border-color: rgba(15,23,42,.14); }
.bill-inline-toolbar .btn{ min-height: 32px; }
.bill-upload-btn{ min-height: 32px; padding-inline: 1rem; }
.bill-dropzone{ border:1px dashed rgba(255,255,255,.22); border-radius:20px; padding: 1rem; text-align:center; cursor:pointer; background: rgba(255,255,255,.04); }
.theme-light .bill-dropzone{ background: rgba(255,255,255,.9); border-color: rgba(15,23,42,.14); }
.bill-dropzone.is-dragover{ background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.5); }
.bill-dropzone-inner i{ font-size: 2rem; opacity:.9; }
.bill-crop-wrap{ background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.08); border-radius:22px; padding: 1rem; }
.bill-crop-stage-modal{ max-width: 100%; width: min(100%, 640px); margin: 0 auto; }
.bill-crop-stage-modal img{ position:absolute; top:0; left:0; user-select:none; pointer-events:none; transform-origin: top left; }
.bill-crop-stage-modal{ touch-action: none; }
.theme-light .bill-crop-wrap{ background: rgba(255,255,255,.88); border-color: rgba(15,23,42,.10); }
.bill-crop-stage{ position:relative; width:100%; max-width: 420px; aspect-ratio: 1 / 1; margin: 0 auto; overflow:hidden; border-radius:24px; background: #0b1020; border:1px solid rgba(255,255,255,.12); cursor: grab; }
.theme-light .bill-crop-stage{ background: #f8fafc; border-color: rgba(15,23,42,.12); }
.bill-crop-stage.is-dragging{ cursor: grabbing; }
.bill-crop-stage img{ position:absolute; top:0; left:0; user-select:none; pointer-events:none; transform-origin: top left; }
.bill-crop-overlay{ position:absolute; inset:0; box-shadow: inset 0 0 0 9999px rgba(0,0,0,.18), inset 0 0 0 2px rgba(255,255,255,.22); pointer-events:none; }
.theme-light .bill-crop-overlay{ box-shadow: inset 0 0 0 9999px rgba(15,23,42,.08), inset 0 0 0 2px rgba(15,23,42,.12); }

.bill-crop-modal{ z-index: 3000 !important; }
.bill-crop-modal.show{ display: block; }
.bill-crop-modal .modal-dialog{ z-index: 3001; }
.bill-crop-modal .modal-content{ pointer-events: auto; }
.bill-crop-modal .modal-backdrop{ z-index: 2990 !important; }
.modal-backdrop.show{ opacity: .78; }
