﻿/* =========================================================
   Inventory UI System (clean + consistent)
   - Single source of truth for global UI styles
   - No business logic changes
   ========================================================= */

/* ---------- Tokens ---------- */
:root{
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;

  --border: #e6e8ee;
  --border2:#eef0f5;

  --shadow: 0 6px 18px rgba(16,24,40,.06);

  --primary: #2563eb;
  --primary2:#1d4ed8;
  --primarySoft: rgba(37,99,235,.14);

  --danger: #dc2626;
  --danger2:#b91c1c;

  --success:#16a34a;
  --success2:#15803d;

  --secondaryBg:#f3f4f6;
  --secondaryBorder:#d1d5db;

  --r10: 10px;
  --r12: 12px;
  --r14: 14px;

  --pad: 12px;
}

/* ---------- Base ---------- */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a{ color: inherit; }
main{
  padding: 12px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ---------- Header/Nav ---------- */
header{
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}
header a{
  color:#fff;
  text-decoration:none;
  opacity:.9;
}
header a:hover{
  opacity:1;
  text-decoration:underline;
}

/* ---------- Layout helpers ---------- */
/* removed duplicate .row (Bootstrap-lite owns .row now) */
.dash-filters-row > *{ flex:1 1 220px; }
.right{ text-align:right; }
.small{ font-size:12px; }
.muted{ color: var(--muted); }

.product-form-shell{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  gap:18px;
}

.product-form-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.product-form-header__actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.product-form-eyebrow{
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.10em;
  color:var(--muted);
  margin-bottom:3px;
}

.product-form-title{
  margin:0;
  font-size:22px;
  letter-spacing:-0.02em;
}

.product-form-subtitle{
  margin:4px 0 0;
  font-size:13px;
  color:var(--muted);
}

.product-form-grid{
  display:grid;
  gap:18px;
}

.product-form-section{
  padding:22px;
}

.product-form-section__label{
  font-size:11px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:var(--muted);
  margin-bottom:16px;
}

.product-form-fields{
  display:grid;
  gap:14px;
}

.product-form-fields--two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.product-form-fields--three{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.product-form-fields--four{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.product-form-fields--spaced{
  margin-top:14px;
}

.product-form-fields--align-end{
  align-items:end;
}

.catalog-bulk-actions{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:16px;
  padding:16px 18px;
  border:1px solid var(--border);
  border-radius:18px;
  background:linear-gradient(180deg,#fbfcff 0%, #ffffff 100%);
}

.catalog-bulk-actions__copy{
  display:grid;
  gap:6px;
  max-width:460px;
}

.catalog-bulk-actions__controls{
  margin-left:auto;
}

@media (max-width: 980px){
  .product-form-fields--four,
  .product-form-fields--three,
  .product-form-fields--two{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 680px){
  .product-form-fields--four,
  .product-form-fields--three,
  .product-form-fields--two{
    grid-template-columns:1fr;
  }

  .catalog-bulk-actions__controls{
    margin-left:0;
    width:100%;
  }
}

/* ---------- Cards ---------- */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r14);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card + .card{ margin-top: 12px; }

/* ---------- Form controls ---------- */
input, select, textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6dae5;
  border-radius: var(--r12);
  background: #fff;
  color: var(--text);
}
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primarySoft);
}

/* ---------- Buttons ---------- */
/* Default = PRIMARY */
button{
  width:auto;    border-radius: var(--r12);
  padding: 10px 14px;
  font-weight: 800;
  letter-spacing: .2px;
  cursor: pointer;
  border: 1px solid var(--primary);
  background: var(--primary);
  color:#fff;
  box-shadow: 0 4px 10px rgba(37,99,235,.12);
}
button:hover{
  background: var(--primary2);
  border-color: var(--primary2);
}
button:disabled{
  opacity:.55;
  cursor:not-allowed;
}

/* Secondary (neutral) */
button.secondary{
  background: var(--secondaryBg);
  border-color: var(--secondaryBorder);
  color: var(--text);
  box-shadow: none;
}
button.secondary:hover{
  background:#e5e7eb;
  border-color:#cbd5e1;
}

/* Success */
button.success{
  background: var(--success);
  border-color: var(--success);
  color:#fff;
  box-shadow: 0 4px 10px rgba(22,163,74,.14);
}
button.success:hover{
  background: var(--success2);
  border-color: var(--success2);
}

/* Danger */
button.danger{
  background: var(--danger);
  border-color: var(--danger);
  color:#fff;
  box-shadow: 0 4px 10px rgba(220,38,38,.14);
}
button.danger:hover{
  background: var(--danger2);
  border-color: var(--danger2);
}

/* If a button has both classes, danger must win */
button.danger,
button.danger.secondary{
  background: var(--danger) !important;
  border-color: var(--danger) !important;
  color:#fff !important;
}

/* Make links wrapping buttons behave */
a > button{ width:auto; }

/* ---------- Tables ---------- */
table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
}
thead th{
  background:#f8fafc;
  border-bottom:1px solid var(--border);
  font-weight: 900;
}
th, td{
  padding: 12px 12px;
  border-bottom: 1px solid var(--border2);
  text-align:left;
  font-size:14px;
}
tbody tr:hover td{
  background:#f7fbff;
}

/* ---------- Pills / chips ---------- */
.pill{
  display:inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background:#eef0f5;
  font-size: 12px;
}
.pill.ok{ background:#e7ffef; }
.pill.low{ background:#ffe8e8; }
.pill.danger{ background:#ffe8e8; color:#900; }

/* ---------- POS emphasis ---------- */
#total{
  color: var(--primary2);
  font-weight: 900;
  letter-spacing: .3px;
}

/* NOTE:
   Receipt/print popup CSS in sale_new.html JS stays isolated on purpose.
*/

/* === DASHBOARD_POLISH_v1 === */
/* Small, stable polish: make dashboard filters card feel anchored */
.card.dash-filters{
  max-width: 720px;
  margin-left: auto;
  margin-right: 0;
  margin-top: 8px;
  box-shadow: 0 10px 24px rgba(2,6,23,.08);
}
/* === /DASHBOARD_POLISH_v1 === */

/* === DASHBOARD_POLISH_v2 === */
/* Make filters match dashboard content width and alignment */
.card.dash-filters{
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
  box-shadow: 0 6px 18px rgba(2,6,23,.06);
}
/* === /DASHBOARD_POLISH_v2 === */

/* === NAV_COMPACT_v1 === */
/* Global header compacting (safe override)
   - reduces header height on ALL pages
   - does not change HTML or JS
*/
header{
  padding: 7px 12px;      /* was 12px 16px */
  gap: 12px;              /* was 16px */
}

header a{
  font-size: 13px;
}

header > div:first-child{
  font-size: 14px;        /* "Inventory" brand text */
  line-height: 1.1;
}

/* Health badge compact (inline styles exist, but id lets us override) */
#health-badge{
  padding: 1px 7px !important;
  font-size: 11px !important;
}
/* === /NAV_COMPACT_v1 === */

/* === UI_POLISH_v1 === */
/* Small, stable visual polish (no HTML changes) */

/* Header: softer enterprise look */
header{
  background: #0f172a; /* softer than #111 */
  border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Dashboard filters: reduce vertical bulk */
.card.dash-filters{
  padding: 12px 14px;
}

/* KPI cards: slightly tighter */
.row > .card{
  padding: 12px 14px;
}

/* Typography: reduce small text slightly */
.small{ font-size: 11px; }

/* Quick actions: make secondary buttons less tall */
button.secondary{
  padding: 9px 12px;
}

/* Tables: slightly clearer header */
thead th{
  font-size: 12px;
  letter-spacing: .2px;
}
/* === /UI_POLISH_v1 === */

/* === SHOP_BRANDING_v1 === */
header .brand{
  display:flex;
  align-items:baseline;
  gap:10px;
}

header .brand-title{
  font-weight:700;
}

header .brand-shop{
  font-weight:500;
  font-size:12px;
  opacity:0.85;
  white-space:nowrap;
  margin-left:10px;
}
/* === /SHOP_BRANDING_v1 === */



/* === DASH_FILTER_BRANDING_v6_RIGHT_LOGO === */
.card.dash-filters{
  position:relative;
}

/* kill any older small label behavior */
.card.dash-filters::before{
  content:"";
  display:none;
}

/* logo watermark (top-right, inside empty space) */
.card.dash-filters::after{
  content:"";
  position:absolute;
    left: auto;
top: 50%;
    transform: translateY(-50%);
right: 18px;

  width: 900px;
  height: 240px;

  background-image:none;
  background-repeat:no-repeat;
  background-position:right center;
  background-size:contain;

  opacity: 0.85;
  pointer-events:none;
}
/* === /DASH_FILTER_BRANDING_v6_RIGHT_LOGO === */

/* ---------- Admin Dashboard (from main.py, centralized) ---------- */

.admin-wrap{
  max-width: 1050px;
  margin: 0 auto;
  padding: 22px;
}

.admin-shell{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.admin-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 18px 18px 14px 18px;
  border-bottom: 1px solid var(--border2);
  background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.admin-title{ display:flex; flex-direction:column; gap:4px; }
.admin-title h1{ margin:0; font-size: 20px; letter-spacing: .2px; }
.admin-sub{ font-size: 13px; }

.admin-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.18);
  color: var(--primary2);
  font-weight: 900;
  white-space: nowrap;
}

.admin-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22,163,74,.12);
}

.admin-content{ padding: 16px 18px 18px 18px; }

.admin-section{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 12px;
}
.admin-h2{ font-weight: 900; }
.admin-hint{ font-size: 12px; }

.admin-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 820px){
  .admin-grid{ grid-template-columns: 1fr; }
}

.admin-tile{
  display:flex;
  gap:12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  text-decoration:none;
  background: #fff;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  min-height: 92px;
}
.admin-tile:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15,23,42,.08);
  border-color: rgba(37,99,235,.22);
}

.admin-ico{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(37,99,235,.10);
  border: 1px solid rgba(37,99,235,.16);
  flex: 0 0 40px;
}
.admin-ico svg{ width: 20px; height: 20px; fill: var(--primary2); }

.admin-t{ font-weight: 950; margin: 1px 0 4px 0; }
.admin-d{ font-size: 13px; margin:0; line-height: 1.35; }

.admin-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border2);
}

.admin-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  text-decoration:none;
  line-height: 1;
  border: 1px solid transparent;
}

.admin-btn.primary{
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  color:#fff;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.admin-btn.primary:hover{ filter: brightness(.98); transform: translateY(-1px); }

.admin-btn.ghost{
  background:#fff;
  border-color: var(--border);
  color: var(--text);
}
.admin-btn.ghost:hover{ background:#f8fafc; }

.admin-btn.danger{
  background:#fff;
  border-color: rgba(220,38,38,.18);
  color: var(--danger2);
}
.admin-btn.danger:hover{ background:#fff5f5; }

@media (max-width: 520px){
  .admin-wrap{ padding: 12px; }
  .admin-actions .admin-btn{ width: 100%; }
}

/* BUTTON SYSTEM (inventory) */

/* BOOTSTRAP-LITE COMPAT */
/* Minimal utilities used by templates (no Bootstrap CDN). */

/* Containers */
.container-fluid{
  width:100%;
  padding-left: 16px;
  padding-right: 16px;
}

/* Row + gap utilities */
.row{
  display:flex;
  flex-wrap:wrap;
  gap: 12px; /* default */
  align-items: stretch;
}
.g-2{ gap: 8px; }

/* Columns (minimal) */
.col-12{ flex: 0 0 100%; width:100%; }
.col-md-auto{ flex: 0 0 auto; width:auto; }

/* md breakpoint helpers */
@media (min-width: 768px){
  .col-md-7{ flex: 0 0 58.333333%; width:58.333333%; }
}

/* Spacing utilities (minimal) */
.mb-0{ margin-bottom:0 !important; }
.mb-1{ margin-bottom:.25rem !important; }
.mb-2{ margin-bottom:.5rem !important; }
.mb-4{ margin-bottom:1.5rem !important; }

.py-3{
  padding-top:1rem !important;
  padding-bottom:1rem !important;
}

/* Text */
.small{ font-size:.875em; }
.text-muted{ opacity:.72; }

/* Shadows */
.shadow-sm{ box-shadow: 0 6px 16px rgba(2,6,23,.08); }

/* Alerts (SaaS-grade) */
.fw-semibold{ font-weight: 600 !important; }

.alert{
  /* configurable palette per variant */
  --alert-accent: rgba(37,99,235,.85);
  --alert-bg: rgba(37,99,235,.06);
  --alert-border: rgba(37,99,235,.18);

  position: relative;
  background: var(--alert-bg);
  border: 1px solid var(--alert-border);
  border-radius: var(--r14);
  padding: 14px 16px 14px 44px;
  box-shadow: 0 10px 26px rgba(2,6,23,.06);
}

.alert::before{
  content:"";
  position:absolute;
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 999px;
  background: var(--alert-accent);
  box-shadow: 0 0 0 3px rgba(255,255,255,.75);
}

/* Title line used in templates (fw-semibold mb-1) */
.alert .fw-semibold{
  font-weight: 700 !important;
  letter-spacing: -0.1px;
}

/* Lists inside alerts (if present) */
.alert ul,
.alert ol{
  margin: 8px 0 0 0;
  padding-left: 18px;
}
.alert li{
  margin: 4px 0;
}
.alert li::marker{
  color: rgba(2,6,23,.55);
}

/* Variants */
.alert-warning{
  --alert-accent: rgba(245,158,11,.90);
  --alert-bg: rgba(245,158,11,.10);
  --alert-border: rgba(245,158,11,.26);
}

.alert-danger{
  --alert-accent: rgba(220,38,38,.90);
  --alert-bg: rgba(220,38,38,.08);
  --alert-border: rgba(220,38,38,.24);
}

/* Anchor buttons: force primary text to white even if a.btn sets color:inherit elsewhere */
a.btn.btn-primary{ color:#fff !important; }

/* END BOOTSTRAP-LITE COMPAT */


/* BULK PREVIEW UI (retail) */

/* Header */
.preview-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 14px;
}
.preview-title{
  margin:0;
  font-size: 28px;
  letter-spacing: -0.2px;
}
.preview-subtitle{
  margin-top: 4px;
  opacity: .72;
  font-size: 13px;
}
.preview-header__right{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* KPIs */
.kpi-strip{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 10px 0 14px;
}
.kpi{
  min-width: 160px;
  flex: 1 1 180px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 6px 16px rgba(2,6,23,.06);
}
.kpi__label{
  font-size: 12px;
  opacity: .68;
  margin-bottom: 4px;
}
.kpi__value{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
.kpi--ok{ border-color: rgba(16,185,129,.25); }
.kpi--warn{ border-color: rgba(245,158,11,.28); }
.kpi--info{ border-color: rgba(37,99,235,.22); }

/* Alerts */
.alert-danger{
  background: rgba(220,38,38,.06);
  border-color: rgba(220,38,38,.22);
}

/* Table */
.preview-table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
}
.preview-table thead th{
  text-align:left;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
  opacity: .75;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
}
.preview-table tbody td{
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15,23,42,.06);
  vertical-align: middle;
}
.preview-table tbody tr:hover td{
  background: rgba(2,6,23,.02);
}
.preview-table .text-end{ text-align:right; }

/* Footer action bar */
.preview-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(15,23,42,.08);
  background: #fff;
}
.preview-footer__left{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}
.preview-footer__right{
  opacity: .72;
  font-size: 12px;
  text-align:right;
}

/* END BULK PREVIEW UI */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.35rem;
  padding:.55rem 1.0rem;
  border-radius:12px;
  border:1px solid transparent;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  user-select:none;
  line-height:1.1;
  white-space:nowrap;
}
.btn-sm{
  padding:.40rem .75rem;
  border-radius:10px;
  font-size:.92rem;
}
.btn-primary{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
  box-shadow:0 8px 18px rgba(37,99,235,.18);
}
.btn-primary:hover{ filter:brightness(.97); }
.btn-outline-primary{
  background:#fff;
  border-color:#2563eb;
  color:#2563eb;
}
.btn-outline-primary:hover{ background:rgba(37,99,235,.08); }
a.btn{ color:inherit; }
a.btn.btn-primary{ color:#fff; }
a.btn.btn-primary:hover{ color:#fff; }
a.btn.btn-outline-primary{ color:#2563eb; }
a.btn.btn-outline-primary:hover{ color:#2563eb; }
a.btn:hover{ text-decoration:none; }
/* removed: button.btn background override (was breaking .btn-primary) */
.btn:disabled, .btn.disabled{
  opacity:.6;
  cursor:not-allowed;
  pointer-events:none;
}

/* group */
.btn-group{
  display:inline-flex;
  align-items:center;
}
.btn-group > .btn{
  border-radius:0;
}
.btn-group > .btn:first-child{
  border-top-left-radius:12px;
  border-bottom-left-radius:12px;
}
.btn-group > .btn:last-child{
  border-top-right-radius:12px;
  border-bottom-right-radius:12px;
}
.btn-group > .btn + .btn{
  margin-left:-1px; /* merge borders */
}










/* RETAIL PREVIEW POLISH */

/* Stronger KPI cards */
.kpi{
  background: linear-gradient(180deg,#ffffff,#f8fafc);
  transition: transform .15s ease, box-shadow .15s ease;
}
.kpi:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}
.kpi__value{
  font-size: 26px;
  font-weight: 900;
}

/* Action buttons stronger presence */
.preview-footer .btn-primary{
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(37,99,235,.25);
}
.preview-footer .btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37,99,235,.32);
}

/* Cleaner empty table state */
.preview-table tbody td[colspan]{
  text-align:center;
  padding: 28px 14px;
  font-size: 14px;
  opacity: .65;
  font-weight: 500;
}

/* END RETAIL PREVIEW POLISH */
/* ===== REPORTS_HTML_EXTRACTED_20260409 ===== */

/* REPORTS_TOTAL_ROW_V1 */
#reports_table tfoot td{
  position: sticky;
  bottom: 0;
  background: #ffffff;
  font-weight: 800;
  border-top: 2px solid #e6e8ee;
  z-index: 3;
}
#reports_table tfoot td:first-child{
  text-transform: uppercase;
  letter-spacing: .02em;
}rnrn/* REPORTS_ENH_V1 */
#rev_chart .bar.maxday span{ filter:saturate(1.3) brightness(.92); }
#rev_chart .bar.minday span{ background:linear-gradient(180deg,#fca5a5,#ef4444) !important; }

.rep-sortable th{
  cursor:pointer;
  user-select:none;
}
.rep-sortable th .sort-ind{
  font-size:11px;
  margin-left:6px;
  opacity:.55;
}

.rep-tfoot{
  position:sticky;
  bottom:0;
  background:#ffffff;
  box-shadow:0 -8px 18px rgba(18,38,63,.06);
}
.rep-tfoot td{
  font-weight:900;
  border-top:2px solid #e6e8ee;
}

.gp-low{ color:#b91c1c; font-weight:800; }
.gp-mid{ color:#b45309; font-weight:800; }
.gp-high{ color:#166534; font-weight:900; }

.rep-tip{
  position:fixed;
  z-index:99999;
  pointer-events:none;
  background:#111827;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-size:12px;
  line-height:1.35;
  box-shadow:0 18px 40px rgba(0,0,0,.25);
  min-width:180px;
  transform:translate(12px,12px);
  display:none;
}
.rep-tip .t{ font-weight:900; margin-bottom:6px; }
.rep-tip .r{ display:flex; justify-content:space-between; gap:12px; }
.rep-tip .k{ color:#cbd5e1; }
.rep-tip .v{ font-weight:800; }rnrn/* REPORTS_CHART_FIX_V1 */
#rev_chart{
  height:110px;
  display:flex;
  align-items:flex-end;
  gap:8px;
  padding:12px 12px 10px 12px;
  border:1px solid #eef1f6;
  border-radius:14px;
  background:#fff;
  overflow:hidden;
}
#rev_chart .bar{
  flex:1;
  height:100%;
  display:flex;
  align-items:flex-end;
  border-radius:10px;
  background:linear-gradient(180deg,#f8fafc,#ffffff);
  border:1px solid #eef1f6;
  overflow:hidden;
}
#rev_chart .bar span{
  display:block;
  width:100%;
  height:0%;
  background:linear-gradient(180deg,#3b82f6,#1d4ed8);
  border-radius:10px;
}rnrn.pro-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:10px 0 14px;flex-wrap:wrap}
  .preset-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
  .pill{display:inline-flex;align-items:center;justify-content:center;padding:8px 12px;border-radius:999px;border:1px solid #d9e0ea;background:#fff;color:#0f172a;font-weight:800;text-decoration:none;font-size:12px}
  .pill.active{border-color:#2563eb;color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
  .btn-primary{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;border:1px solid #1d4ed8;background:#2563eb;color:#fff;font-weight:900;text-decoration:none;cursor:pointer;min-width:120px}
  .btn-secondary{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:12px;border:1px solid #2563eb;background:#fff;color:#2563eb;font-weight:900;text-decoration:none;cursor:pointer;min-width:120px}
  .datebox{padding:10px 12px;border:1px solid #d9e0ea;border-radius:12px;outline:none}
  .datebox:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
  .kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
  .kpi{background:#fff;border:1px solid #e6edf7;border-radius:16px;padding:14px 14px;box-shadow:0 8px 24px rgba(2,6,23,.06)}
  .kpi .label{color:#64748b;font-weight:800;font-size:12px;margin-bottom:6px}
  .kpi .value{font-size:22px;font-weight:950;color:#0f172a}
  .kpi .sub{color:#64748b;font-weight:700;font-size:12px;margin-top:6px}
  .pro-table{width:100%;border-collapse:separate;border-spacing:0}
  .pro-table thead th{position:sticky;top:0;background:#f8fafc;z-index:2;border-bottom:1px solid #e6edf7;font-weight:950;color:#0f172a}
  .pro-table th,.pro-table td{padding:12px 12px;border-bottom:1px solid #eef2f7;font-size:14px}
  .pro-table tbody tr:hover{background:#f8fafc}
  .num{text-align:right;font-variant-numeric:tabular-nums}
  @media(max-width:900px){ .kpis{grid-template-columns:1fr} }rnrn/* REPORTS_UI_PRO_V1 */
.report-wrap{max-width:1200px;margin:24px auto;padding:0 16px}
.report-card{background:#fff;border:1px solid #e6e8ee;border-radius:14px;box-shadow:0 6px 22px rgba(18,38,63,.06)}
.report-head{padding:18px 18px 14px 18px;border-bottom:1px solid #eef1f6}
.report-title{font-size:26px;font-weight:900;margin:0}
.report-sub{color:#6b7280;margin-top:6px;font-size:13px}

.kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:14px}
.kpi{padding:14px;border:1px solid #eef1f6;border-radius:14px;background:#fbfcff;min-height:74px;display:flex;flex-direction:column;justify-content:space-between}
.kpi .label{font-size:12px;color:#6b7280;font-weight:700}
.kpi .value{font-size:22px;font-weight:950;text-align:right}
.kpi .hint{font-size:11px;color:#94a3b8;text-align:right;margin-top:2px}

.filters{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-top:14px}
.chips{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.chip{border:1px solid #d7dbe6;background:#f7f8fb;border-radius:999px;padding:7px 11px;font-size:13px;cursor:pointer;user-select:none;font-weight:700}
.chip:hover{background:#eef2ff}
.chip.active{background:#111;color:#fff;border-color:#111}

.righttools{margin-left:auto;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.pills{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pill{border:1px solid #e6e8ee;background:#fff;border-radius:999px;padding:6px 10px;font-size:12px;color:#475569;font-weight:700}
.dot{display:inline-block;width:8px;height:8px;border-radius:999px;margin-right:6px;background:#22c55e}

.dates{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.dates input{border:1px solid #d7dbe6;border-radius:10px;padding:8px 10px;font-size:13px;background:#fff;min-width:160px}
.btn{border-radius:10px;padding:9px 12px;font-size:13px;font-weight:800;border:1px solid #d7dbe6;background:#fff;cursor:pointer}
.btn.primary{background:#2563eb;border-color:#2563eb;color:#fff}
.btn.primary:hover{filter:brightness(.95)}
.btn.ghost:hover{background:#f6f7fb}
.btn.csv{background:#111;border-color:#111;color:#fff}
.btn.csv:hover{filter:brightness(.95)}

.section{padding:14px 18px 18px 18px}
.section-title{display:flex;align-items:center;justify-content:space-between;margin:2px 0 10px 0}
.section-title h3{margin:0;font-size:13px;letter-spacing:.02em;text-transform:uppercase;color:#475569}
.section-title .muted{color:#94a3b8;font-size:12px;font-weight:700}

.chartbox{border:1px solid #eef1f6;border-radius:14px;background:#fff;padding:12px}
.chart{height:90px;display:flex;gap:6px;align-items:flex-end}
.chart .bar{flex:1;border-radius:10px;background:#eef2ff;position:relative;overflow:hidden}
.chart .bar span{position:absolute;left:0;right:0;bottom:0;background:#2563eb;border-radius:10px}
.chartnote{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#94a3b8;font-weight:700}

.tablewrap{padding:10px 18px 18px 18px}
table.report-table{width:100%;border-collapse:separate;border-spacing:0}
.report-table th{position:sticky;top:0;background:#f8fafc;border-bottom:1px solid #e6e8ee;font-size:12px;letter-spacing:.02em;text-transform:uppercase;color:#475569;padding:12px 10px;text-align:left}
.report-table td{border-bottom:1px solid #f0f2f7;padding:12px 10px;font-size:14px}
.report-table tr:hover td{background:#fafcff}
.right{text-align:right}

@media (max-width:1100px){ .kpis{grid-template-columns:repeat(3,1fr)} }
@media (max-width:820px){ .kpis{grid-template-columns:1fr} .righttools{margin-left:0;width:100%} }
/* ===== POS_LAYOUT_EXTRACTED_20260409 ===== */

/* POS layout aligned to base.html theme */
  .pos-wrap{ max-width:1400px; margin:0 auto; }

  .pos-title{
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    margin:0 0 12px 0;
  }

  .pos-grid{ display:flex; gap:12px; align-items:flex-start; flex-wrap:wrap; }
  .pos-left{ flex: 1 1 880px; min-width: 520px; }
  .pos-right{ flex: 0 0 360px; min-width: 320px; position: sticky; top: 70px; }

  /* Make tables match dashboard cards */
  .pos-table-wrap{ overflow:auto; border:1px solid #eef0f5; border-radius:12px; }
  .pos-table-wrap table{ margin:0; }
  .pos-table-wrap th{ position: sticky; top: 0; background:#fff; z-index: 1; }

  /* Total strip like other pages */
  .pos-total{
    display:flex; align-items:baseline; justify-content:space-between;
    padding:12px; border:1px solid #e6e8ee; border-radius:12px; background:#fafbfc;
  }
  .pos-total .label{ font-weight:800; }
  .pos-total .value{ font-size:28px; font-weight:900; letter-spacing:.3px; }

  /* Small helper */
.pos-actions{ display:flex; gap:8px; flex-wrap:wrap; }

/* ===== POS_PRO_UPGRADE_20260418 ===== */
:root{
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;
  --text: #0f172a;
  --muted: #64748b;
  --border: #dbe3ef;
  --border-strong: #c8d4e3;
  --primary: #0f62fe;
  --primary-strong: #0b4ed1;
  --primary-soft: #dbe8ff;
  --success-soft: #e8f7ee;
  --warning-soft: #fff4d6;
  --danger-soft: #fee2e2;
  --shadow-lg: 0 20px 45px rgba(15, 23, 42, 0.08);
}

body{
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15,98,254,0.10), transparent 28%),
    linear-gradient(180deg, #f6f8fb 0%, #edf2f7 100%);
}

.app-main{
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.app-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(9, 18, 32, 0.92);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.app-header__inner{
  max-width: 1500px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.app-brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.app-brand__mark{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  background: linear-gradient(135deg, #0f62fe 0%, #1f7aff 100%);
  box-shadow: 0 12px 24px rgba(15,98,254,0.35);
}

.app-brand__title{
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}

.app-brand__subtitle{
  color: rgba(255,255,255,0.68);
  font-size: 12px;
}

.app-nav{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 520px;
  flex-wrap: wrap;
}

.app-nav__link{
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: .18s ease;
}

.app-nav__link:hover,
.app-nav__link.is-active{
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.app-header__actions{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,98,254,0.18);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: none;
}

button.status-chip{
  background: rgba(255,255,255,0.92) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15,98,254,0.18) !important;
  box-shadow: none !important;
}

.status-chip--alert{
  background: #fff1f2;
  border-color: #fecdd3;
  color: #b91c1c;
}

.status-chip--health{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

.status-chip--ghost{
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}

.flash-banner{
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid #dbe3ef;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.flash-banner--danger{
  background: #fff4f4;
  border-color: #fecaca;
  color: #991b1b;
}

.flash-banner--success{
  background: #edfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.dashboard-shell{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dashboard-hero{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15,98,254,0.95), rgba(11,78,209,0.92)),
    linear-gradient(180deg, #0f62fe 0%, #0b4ed1 100%);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-lg);
}

.dashboard-hero h1,
.sale-screen h1{
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.05;
}

.dashboard-hero p,
.sale-screen p{
  margin: 0;
  max-width: 760px;
  color: rgba(255,255,255,0.86);
}

.eyebrow{
  display: inline-block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 900;
  color: rgba(255,255,255,0.72);
}

.dashboard-hero__meta{
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  min-width: 430px;
}

.hero-stat{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 18px;
  padding: 16px;
}

.hero-stat__label{
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.72);
  margin-bottom: 8px;
}

.dashboard-toolbar{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 20px;
}

.dashboard-toolbar__presets,
.dashboard-toolbar__filters{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-toolbar__filters label{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.toolbar-chip,
.toolbar-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.toolbar-chip:hover,
.toolbar-link:hover{
  text-decoration: none;
  background: var(--primary-soft);
  border-color: #bfd3ff;
}

.kpi-grid,
.dashboard-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.kpi-card{
  grid-column: span 12;
  padding: 20px;
  border-radius: 18px;
}

.kpi-card__label{
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
}

.kpi-card__value{
  margin-top: 12px;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  line-height: 1;
}

.kpi-card__sub{
  margin-top: 10px;
  color: var(--muted);
}

.dashboard-panel{
  grid-column: span 12;
  padding: 20px;
}

.panel-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-title{
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
}

.panel-subtitle{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.panel-link{
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.action-grid,
.alert-stack,
.stat-grid{
  display: grid;
  gap: 12px;
}

.action-grid{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-tile,
.alert-card,
.stat-box,
.field-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
  padding: 16px;
}

.action-tile{
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 132px;
}

.action-tile--primary{
  background: linear-gradient(180deg, #eff5ff 0%, #e0ecff 100%);
  border-color: #c6d8ff;
}

.alert-card{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.alert-card--danger{
  background: #fff3f3;
  border-color: #fecaca;
}

.alert-card--warning{
  background: #fff9eb;
  border-color: #fde68a;
}

.alert-card--info{
  background: #eff6ff;
  border-color: #bfdbfe;
}

.stat-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-box__label{
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 900;
}

.stat-box strong{
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
}

.stat-box__meta{
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.payment-strip{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.payment-pill{
  min-width: 150px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid var(--border);
  padding: 14px 16px;
}

.payment-pill span,
.payment-pill small{
  display: block;
  color: var(--muted);
}

.payment-pill strong{
  display: block;
  margin: 6px 0;
  font-size: 18px;
}

.inventory-health{
  margin-top: 16px;
}

.inventory-health__bar{
  height: 14px;
  background: #e7edf5;
  border-radius: 999px;
  overflow: hidden;
}

.inventory-health__bar span{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0f62fe 0%, #3b82f6 100%);
  border-radius: inherit;
}

.inventory-health__meta{
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.table-shell{
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.row-danger td{
  background: #fff6f6;
}

.dashboard-footer-tools{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.receipt-quick-open{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.receipt-quick-open input{
  width: 180px;
}

.sale-screen{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sale-screen__header{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b1220 0%, #13325f 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.sale-screen__badges{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sale-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.sale-panel{
  padding: 20px;
}

.checkout-tool-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.checkout-tool-grid--secondary{
  margin-top: 12px;
  align-items: start;
}

.field-card{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-card--wide{
  grid-column: span 2;
}

.field-card__label{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: var(--muted);
}

.field-card small{
  color: var(--muted);
  font-size: 12px;
}

.inline-field{
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-field select{
  flex: 1;
}

.sale-delete-hold{
  margin-top: 4px;
}

.search-results{
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.sale-mini-summary{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sale-mini-summary strong{
  color: var(--text);
}

.sale-layout__sidebar{
  position: sticky;
  top: 96px;
}

.sale-panel--payment{
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.payment-summary{
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.payment-summary__row{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3f7fd;
  border: 1px solid #d9e6fb;
}

.payment-summary__row strong{
  font-size: 18px;
}

.sale-submit-btn{
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  font-size: 16px;
}

.sale-help-list{
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

@media (min-width: 700px){
  .kpi-card{ grid-column: span 6; }
}

@media (min-width: 1100px){
  .kpi-card{ grid-column: span 2; }
  .dashboard-grid--top > :first-child{ grid-column: span 7; }
  .dashboard-grid--top > :last-child{ grid-column: span 5; }
  .dashboard-grid > .dashboard-panel{ grid-column: span 6; }
}

@media (max-width: 1180px){
  .dashboard-hero,
  .sale-screen__header,
  .sale-layout{
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .dashboard-hero__meta{
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .stat-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sale-layout__sidebar{
    position: static;
  }
}

@media (max-width: 820px){
  .app-main{
    padding: 18px 14px 28px;
  }

  .dashboard-toolbar,
  .dashboard-hero,
  .sale-screen__header,
  .dashboard-footer-tools{
    padding: 16px;
  }

  .action-grid,
  .checkout-tool-grid,
  .stat-grid{
    grid-template-columns: 1fr;
  }

  .field-card--wide{
    grid-column: span 1;
  }

  .receipt-quick-open input,
  .receipt-quick-open button{
    width: 100%;
  }
}

/* ===== UI_REFINEMENT_20260508 ===== */
:root{
  --bg: #f5f1ea;
  --surface: rgba(255,255,255,0.88);
  --surface-alt: #fcfaf7;
  --surface-strong: #ffffff;
  --text: #162033;
  --muted: #6d7686;
  --border: rgba(22, 32, 51, 0.10);
  --border-strong: rgba(22, 32, 51, 0.16);
  --primary: #213a63;
  --primary-strong: #182b4a;
  --primary-soft: rgba(33, 58, 99, 0.10);
  --accent: #c5a46d;
  --accent-soft: rgba(197, 164, 109, 0.16);
  --shadow: 0 18px 50px rgba(30, 41, 59, 0.08);
  --shadow-lg: 0 28px 70px rgba(30, 41, 59, 0.12);
}

body.app-body{
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(197, 164, 109, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(33, 58, 99, 0.08), transparent 30%),
    linear-gradient(180deg, #f7f2eb 0%, #f2eee7 100%);
}

.app-header{
  background: rgba(13, 19, 32, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.app-header__inner{
  max-width: 1520px;
  padding: 16px 20px;
  align-items: center;
}

.app-brand__mark{
  background: linear-gradient(135deg, var(--accent) 0%, #e3c791 100%);
  color: #142033;
  box-shadow: 0 12px 24px rgba(197, 164, 109, 0.35);
}

.app-brand__title{
  letter-spacing: -0.02em;
}

.app-brand__subtitle{
  color: rgba(255,255,255,0.62);
}

.app-nav-shell{
  flex: 1 1 560px;
  min-width: 320px;
}

.app-nav{
  gap: 6px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.app-nav__link{
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.72);
}

.app-nav__link:hover,
.app-nav__link.is-active{
  background: rgba(255,255,255,0.12);
  border-color: transparent;
  color: #fff;
}

.status-chip{
  min-height: 36px;
  padding: 8px 12px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border-color: rgba(22, 32, 51, 0.08);
}

.status-chip--ghost{
  background: rgba(255,255,255,0.06) !important;
}

.status-chip--health{
  background: rgba(255,255,255,0.10);
}

.app-main{
  max-width: 1520px;
  padding: 28px 20px 40px;
}

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.dashboard-shell{
  gap: 22px;
}

.dashboard-hero{
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at top right, rgba(227, 199, 145, 0.24), transparent 30%),
    linear-gradient(135deg, #15213a 0%, #1d3153 56%, #243d66 100%);
  border: 1px solid rgba(255,255,255,0.08);
}

.dashboard-hero::after{
  content: "";
  position: absolute;
  inset: auto -8% -34% auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}

.dashboard-hero__copy{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-hero h1,
.sale-screen h1,
.page-title{
  letter-spacing: -0.04em;
}

.dashboard-hero p{
  max-width: 640px;
  font-size: 15px;
  line-height: 1.7;
}

.dashboard-hero__tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tag{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.84);
  font-size: 12px;
  font-weight: 700;
}

.dashboard-hero__meta{
  position: relative;
  z-index: 1;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.hero-stat{
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}

.hero-stat strong{
  display: block;
  font-size: 21px;
  line-height: 1.2;
}

.dashboard-toolbar{
  padding: 20px 22px;
  background: rgba(255,255,255,0.72);
}

.toolbar-chip,
.toolbar-link{
  background: var(--surface-strong);
  border-color: rgba(22, 32, 51, 0.10);
  font-weight: 700;
}

.toolbar-chip:hover,
.toolbar-link:hover{
  text-decoration: none;
  background: #f5efe5;
  border-color: rgba(197, 164, 109, 0.42);
}

.kpi-grid,
.dashboard-grid{
  gap: 20px;
}

.kpi-card,
.dashboard-panel,
.sale-panel,
.page-header,
.catalog-panel{
  background: rgba(255,255,255,0.82);
}

.kpi-card{
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.kpi-card::before{
  content: "";
  position: absolute;
  left: 22px;
  top: 20px;
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

.kpi-card__label{
  margin-top: 8px;
  color: var(--muted);
}

.kpi-card__value{
  font-size: clamp(26px, 3vw, 34px);
}

.panel-head{
  margin-bottom: 18px;
}

.panel-title{
  font-size: 19px;
  letter-spacing: -0.02em;
}

.panel-subtitle{
  color: var(--muted);
}

.action-grid{
  gap: 14px;
}

.action-tile,
.alert-card,
.stat-box,
.field-card,
.payment-pill,
.payment-summary__row{
  background: var(--surface-alt);
  border: 1px solid rgba(22, 32, 51, 0.08);
}

.action-tile{
  min-height: 146px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.action-tile:hover,
.alert-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(22, 32, 51, 0.08);
  border-color: rgba(33, 58, 99, 0.18);
}

.action-tile__eyebrow{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  font-weight: 800;
}

.action-tile strong,
.alert-card strong{
  font-size: 17px;
  letter-spacing: -0.02em;
}

.action-tile--primary{
  background: linear-gradient(180deg, #fffaf0 0%, #f7efdd 100%);
  border-color: rgba(197, 164, 109, 0.32);
}

.stat-grid{
  gap: 14px;
}

.stat-box strong{
  font-size: 24px;
}

.payment-pill{
  background: #fff;
}

.table-shell{
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

table thead th{
  background: rgba(247, 244, 238, 0.95);
  color: #4c5668;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

th,
td{
  padding: 14px 16px;
}

tbody tr:hover td{
  background: rgba(248,245,239,0.72);
}

.row-danger td{
  background: rgba(255, 244, 241, 0.9);
}

.dashboard-footer-tools{
  background: rgba(255,255,255,0.80);
}

.sale-screen{
  gap: 22px;
}

.sale-screen__header{
  background:
    radial-gradient(circle at top right, rgba(227, 199, 145, 0.18), transparent 28%),
    linear-gradient(135deg, #132038 0%, #1a2d4c 58%, #243f66 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 28px;
}

.sale-screen__badges .status-chip{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.16);
  color: #fff;
}

.sale-layout{
  gap: 20px;
}

.sale-panel{
  padding: 22px;
}

.field-card{
  border-radius: 18px;
}

.field-card__label{
  color: #5f6b7d;
}

.search-results{
  border-radius: 18px;
}

.payment-summary__row{
  border-radius: 18px;
}

.sale-submit-btn{
  background: linear-gradient(135deg, var(--primary) 0%, #294978 100%);
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(33, 58, 99, 0.20);
}

.page-header{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  padding: 24px 26px;
}

.page-eyebrow{
  color: rgba(33, 58, 99, 0.70);
}

.page-title{
  margin: 8px 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.02;
}

.page-subtitle{
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.page-header__actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.action-button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(22, 32, 51, 0.10);
  background: rgba(255,255,255,0.84);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.action-button:hover{
  text-decoration: none;
  background: #fff;
  border-color: rgba(33, 58, 99, 0.16);
}

.action-button--primary{
  background: linear-gradient(135deg, var(--primary) 0%, #294978 100%);
  border-color: transparent;
  color: #fff;
}

.action-button--primary:hover{
  color: #fff;
}

.catalog-shell{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.catalog-panel{
  padding: 22px;
}

.catalog-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.catalog-toolbar__status{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toolbar-caption{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  font-weight: 800;
}

.catalog-segments{
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #f2ede5;
  border: 1px solid rgba(22, 32, 51, 0.08);
}

.catalog-segment{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.catalog-segment.is-active{
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 16px rgba(22, 32, 51, 0.08);
}

.catalog-search{
  display: flex;
  gap: 10px;
  flex: 1 1 420px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.catalog-search input{
  flex: 1 1 280px;
  min-width: 220px;
  background: #fff;
}

.catalog-search button{
  min-width: 120px;
  background: linear-gradient(135deg, var(--primary) 0%, #294978 100%);
  border-color: transparent;
}

.catalog-table-shell{
  background: rgba(255,255,255,0.65);
}

.catalog-item{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 260px;
}

.catalog-item__media{
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  background: linear-gradient(135deg, #f5efe4 0%, #ede6db 100%);
  border: 1px solid rgba(22, 32, 51, 0.08);
  color: var(--primary);
  font-weight: 800;
}

.catalog-item__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-item__copy{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catalog-item__name{
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.catalog-item__name:hover{
  color: var(--primary);
}

.catalog-item__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.catalog-flag{
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(33, 58, 99, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.catalog-flag--warn{
  background: rgba(197, 164, 109, 0.16);
  color: #7d5a22;
}

.catalog-link{
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

.catalog-empty{
  text-align: center;
  padding: 34px 18px;
}

@media (max-width: 1180px){
  .dashboard-hero{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px){
  .page-header,
  .catalog-toolbar{
    align-items: flex-start;
  }

  .page-header__actions,
  .catalog-search{
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 820px){
  .app-header__inner,
  .app-main,
  .dashboard-hero,
  .dashboard-toolbar,
  .sale-screen__header,
  .sale-panel,
  .page-header,
  .catalog-panel{
    padding-left: 16px;
    padding-right: 16px;
  }

  .app-nav-shell{
    min-width: 0;
    width: 100%;
  }

  .app-nav{
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .dashboard-hero__meta{
    grid-template-columns: 1fr;
  }

  .catalog-segments{
    width: 100%;
    justify-content: space-between;
  }
}
/* ===== /UI_REFINEMENT_20260508 ===== */

/* ===== UI_UPGRADE_20260514 ===== */

/* ── Dropdown Nav ─────────────────────────────────────── */
.app-nav{
  flex-wrap: nowrap;   /* single row */
  overflow: visible;
  gap: 4px;
}

.nav-group{
  position: relative;
}

.nav-group__trigger{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: none;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  width: auto;
  letter-spacing: 0;
  transition: background .18s, color .18s, border-color .18s;
}
.nav-group__trigger:hover,
.nav-group:hover .nav-group__trigger,
.nav-group.is-active .nav-group__trigger{
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
}

.nav-caret{
  font-size: 10px;
  opacity: 0.6;
  transition: transform .2s ease;
  display: inline-block;
}
.nav-group:hover .nav-caret{
  transform: rotate(180deg);
}

.nav-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.nav-dropdown{
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: rgba(12, 18, 30, 0.97);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: 8px;
  box-shadow: 0 28px 56px rgba(0,0,0,0.38), 0 4px 12px rgba(0,0,0,0.20);
  z-index: 10000;
  flex-direction: column;
  gap: 2px;
}
.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown{
  display: flex;
}

.nav-dropdown a{
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,0.76);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .14s, color .14s;
}
.nav-dropdown a:hover{
  background: rgba(255,255,255,0.09);
  color: #fff;
  text-decoration: none;
}
.nav-dropdown a.is-active{
  background: rgba(197,164,109,0.18);
  color: #e3c791;
}

/* ── Status / badge chips in tables ──────────────────── */
.badge{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-success{ background: #dcfce7; color: #166534; }
.badge-warning{ background: #fef9c3; color: #854d0e; }
.badge-danger{  background: #fee2e2; color: #991b1b; }
.badge-info{    background: #dbeafe; color: #1e40af; }
.badge-muted{   background: #f1f5f9; color: #475569; }
.badge-gold{    background: #fef3c7; color: #92400e; }

/* ── Card hover lift ─────────────────────────────────── */
.card{
  transition: box-shadow .20s ease;
}

/* ── Forms — section labels + grouped fields ─────────── */
.form-section{
  margin-bottom: 22px;
}
.form-section__label{
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.form-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.form-grid--2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.form-grid--3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-span-2{ grid-column: span 2; }
.form-span-full{ grid-column: 1 / -1; }

.form-field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field label, .field-label{
  font-size: 12px;
  font-weight: 800;
  color: #4c5668;
  letter-spacing: 0.02em;
}
.form-field input,
.form-field select,
.form-field textarea{
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(22,32,51,0.14);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color .16s, box-shadow .16s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(33,58,99,0.10);
  background: #fff;
}

/* ── Action bar (bottom of forms) ────────────────────── */
.form-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ── Primary action button (consolidated) ────────────── */
.btn-save{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, #2e5080 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(33,58,99,0.22);
  transition: transform .16s, box-shadow .16s;
}
.btn-save:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(33,58,99,0.28);
  color: #fff;
}

.btn-del{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #991b1b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s;
}
.btn-del:hover{ background: #fee2e2; }

.btn-ghost{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(22,32,51,0.12);
  background: rgba(255,255,255,0.75);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .16s;
}
.btn-ghost:hover{ background: #fff; text-decoration: none; }

/* ── Table polish ─────────────────────────────────────── */
.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table thead th{
  background: rgba(247,244,238,0.95);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4c5668;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
}
.table td{
  padding: 13px 16px;
  border-bottom: 1px solid rgba(22,32,51,0.06);
  font-size: 14px;
  vertical-align: middle;
}
.table tbody tr:last-child td{ border-bottom: none; }
.table tbody tr:hover td{ background: rgba(248,245,239,0.72); }

/* ── Flash banner improvements ───────────────────────── */
.flash-banner{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
}
.flash-banner::before{
  content: "ℹ";
  font-size: 18px;
  flex-shrink: 0;
}
.flash-banner--danger::before{ content: "✕"; color: #991b1b; }
.flash-banner--success::before{ content: "✓"; color: #166534; }

/* =========================================================
   Shared premium workspace system
   ========================================================= */

.workspace-shell,
.ops-shell,
.page-stack{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-section{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workspace-grid{
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.workspace-grid > .workspace-main{
  grid-column: span 8;
}

.workspace-grid > .workspace-side{
  grid-column: span 4;
}

.ops-hero{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 26px;
  background:
    radial-gradient(circle at top right, rgba(227, 199, 145, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(19, 32, 56, 0.96) 0%, rgba(29, 48, 79, 0.96) 56%, rgba(42, 64, 101, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #f8fafc;
}

.ops-hero .page-eyebrow,
.ops-hero .page-subtitle{
  color: rgba(241, 245, 249, 0.78);
}

.ops-hero .page-title{
  color: #fff;
}

.hero-metrics{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  min-width: min(100%, 430px);
}

.hero-metric{
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-metric__label{
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.hero-metric strong{
  font-size: 18px;
  letter-spacing: -0.02em;
}

.surface-card{
  padding: 22px;
}

.surface-card--soft{
  background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(249, 246, 240, 0.88) 100%);
}

.section-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.section-title{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.section-subtitle{
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.field-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.field-grid--wide{
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.field .field-label{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #536074;
}

.field input,
.field select,
.field textarea{
  min-height: 46px;
  background: rgba(255,255,255,0.94);
}

.field-hint{
  font-size: 12px;
  color: var(--muted);
}

.search-stage{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pro-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(22, 32, 51, 0.12);
  background: rgba(255,255,255,0.88);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.pro-btn:hover{
  text-decoration: none;
  background: #fff;
  border-color: rgba(33, 58, 99, 0.16);
}

.pro-btn--primary{
  background: linear-gradient(135deg, var(--primary) 0%, #294978 100%);
  border-color: transparent;
  color: #fff;
}

.pro-btn--primary:hover{
  color: #fff;
}

.pro-btn--ghost{
  background: rgba(255,255,255,0.66);
}

.pill-stack{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stat-pill{
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(33, 58, 99, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.stat-pill.is-active{
  background: linear-gradient(135deg, var(--primary) 0%, #294978 100%);
  color: #fff;
  border-color: transparent;
}

.data-highlight{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.data-highlight__card{
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid rgba(22, 32, 51, 0.08);
}

.data-highlight__label{
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.data-highlight__value{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.inline-kpi{
  font-size: 13px;
  color: var(--muted);
}

.table-card{
  padding: 18px;
}

.table-card .table-shell{
  margin-top: 14px;
}

.status-badge{
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.status-badge--success{
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
  border-color: rgba(22, 163, 74, 0.18);
}

.status-badge--warn{
  background: rgba(245, 158, 11, 0.12);
  color: #9a3412;
  border-color: rgba(245, 158, 11, 0.18);
}

.status-badge--danger{
  background: rgba(220, 38, 38, 0.10);
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.18);
}

.status-badge--neutral{
  background: rgba(148, 163, 184, 0.14);
  color: #475569;
  border-color: rgba(148, 163, 184, 0.18);
}

.empty-state{
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 28px;
  border-radius: 18px;
  border: 1px dashed rgba(22, 32, 51, 0.16);
  background: linear-gradient(180deg, rgba(248, 245, 239, 0.72) 0%, rgba(255,255,255,0.88) 100%);
  text-align: center;
}

.empty-state strong{
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.sticky-table-head thead th{
  position: sticky;
  top: 0;
  z-index: 2;
}

.status-chip--success{
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.status-chip--danger{
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.status-chip--warn{
  background: #f59e0b;
  border-color: #f59e0b;
  color: #111827;
}

.motion-enabled .page-header,
.motion-enabled .dashboard-hero,
.motion-enabled .dashboard-toolbar,
.motion-enabled .kpi-card,
.motion-enabled .dashboard-panel,
.motion-enabled .card,
.motion-enabled .table-shell,
.motion-enabled .page-section{
  will-change: transform, opacity, filter;
  transform-origin: center top;
}

.report-filter-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}

.report-toolbar{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.report-toolbar__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sku-signals{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.sku-signal{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(22, 32, 51, 0.08);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.sku-signal__icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(33, 58, 99, 0.08);
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.sku-signal__label{
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sku-signal__value{
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sku-signal--danger{
  border-color: rgba(220, 38, 38, 0.16);
}

.sku-signal--warn{
  border-color: rgba(245, 158, 11, 0.18);
}

.sku-signal--success{
  border-color: rgba(22, 163, 74, 0.16);
}

.sku-signal--danger .sku-signal__icon{
  background: rgba(220, 38, 38, 0.10);
  color: #991b1b;
}

.sku-signal--warn .sku-signal__icon{
  background: rgba(245, 158, 11, 0.12);
  color: #9a3412;
}

.sku-signal--success .sku-signal__icon{
  background: rgba(22, 163, 74, 0.12);
  color: #166534;
}

.supplier-groups{
  display: grid;
  gap: 16px;
}

.supplier-group{
  overflow: hidden;
}

.supplier-group__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(22, 32, 51, 0.08);
  background: linear-gradient(180deg, rgba(248, 245, 239, 0.72) 0%, rgba(255,255,255,0.92) 100%);
}

.supplier-group__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supplier-group__title{
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.metric-pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(22, 32, 51, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.report-note{
  font-size: 12px;
  color: var(--muted);
}

.reorder-table td,
.reorder-table th{
  white-space: nowrap;
}

.reorder-table td:nth-child(2),
.reorder-table th:nth-child(2){
  white-space: normal;
  min-width: 220px;
}

.sku-report-table th[data-sortable="true"]{
  position: relative;
  cursor: pointer;
  padding-right: 28px;
}

.sku-report-table th[data-sortable="true"]::after{
  content: "<>";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: #7b8798;
}

.sku-report-table th[data-sort="asc"]::after{
  content: "^";
}

.sku-report-table th[data-sort="desc"]::after{
  content: "v";
}

@media (max-width: 960px){
  .workspace-grid > .workspace-main,
  .workspace-grid > .workspace-side{
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px){
  .ops-hero,
  .page-header{
    padding: 20px;
  }

  .surface-card,
  .catalog-panel,
  .table-card{
    padding: 18px;
  }

  .report-toolbar,
  .supplier-group__header{
    align-items: stretch;
  }

  .hero-metrics{
    width: 100%;
    min-width: 0;
  }
}

/* ── Quick search highlight ──────────────────────────── */
.search-box{
  position: relative;
  display: flex;
  align-items: center;
}
.search-box input{
  padding-left: 38px;
  background: rgba(255,255,255,0.85);
}
.search-box::before{
  content: "🔍";
  position: absolute;
  left: 12px;
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

/* ── Responsive nav fix ──────────────────────────────── */
@media (max-width: 900px){
  .app-nav{
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .nav-dropdown{
    /* on mobile, open downward and stay within screen */
    position: fixed;
    left: 10px !important;
    right: 10px;
    min-width: 0;
    width: auto;
  }
}
/* ===== /UI_UPGRADE_20260514 ===== */

/* ===== FUTURE_LEDGER_THEME_20260826 ===== */
:root{
  --bg:#07111f;--surface:#0d1b2f;--text:#eaf2ff;--muted:#8fa5c2;
  --border:#203654;--border2:#172b46;--shadow:0 18px 48px rgba(0,0,0,.28);
  --primary:#36d1ff;--primary2:#667cff;--primarySoft:rgba(54,209,255,.14);
  --success:#2de2a6;--danger:#ff5e7a;--secondaryBg:#12243c;--secondaryBorder:#2a4669;
}
body.app-body{background:radial-gradient(circle at 12% 0,rgba(44,112,190,.24),transparent 30%),radial-gradient(circle at 88% 8%,rgba(87,64,210,.20),transparent 27%),#07111f;color:var(--text)}
.app-header{background:rgba(5,13,26,.88)!important;border-bottom:1px solid rgba(83,151,215,.25);backdrop-filter:blur(22px)}
.app-main{max-width:1560px}.card,.surface-card,.data-highlight__card,.table-shell,.catalog-panel,.table-card{background:linear-gradient(145deg,rgba(16,34,57,.96),rgba(10,25,44,.96));border:1px solid var(--border);box-shadow:var(--shadow)}
.surface-card,.data-highlight__card,.table-shell,.catalog-panel,.table-card{border-radius:18px}.ops-hero{background:linear-gradient(125deg,rgba(24,65,105,.94),rgba(24,25,71,.92));border:1px solid rgba(87,197,255,.34)}
.data-highlight{gap:12px}.data-highlight__card{position:relative;overflow:hidden}.data-highlight__card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:linear-gradient(#37d5ff,#826cff)}
table{color:var(--text)}th{background:#10243d!important;color:#8edfff!important}td{border-color:var(--border2)!important}tbody tr:hover{background:rgba(54,209,255,.06)!important}
input,select,textarea{background:#09182a!important;color:var(--text)!important;border:1px solid #294768!important}input:focus,select:focus,textarea:focus{border-color:var(--primary)!important;box-shadow:0 0 0 3px rgba(54,209,255,.12)!important}
.pro-btn--primary,.action-button{background:linear-gradient(135deg,#19bde9,#626ff2)!important;color:white!important;border-color:transparent!important;box-shadow:0 10px 26px rgba(42,159,231,.23)}
.receive-panel{border-color:rgba(45,226,166,.38);background:linear-gradient(135deg,rgba(10,47,54,.96),rgba(13,29,51,.96))}.receive-panel__due{display:grid;text-align:right;gap:3px;color:var(--muted)}.receive-panel__due strong{font-size:24px;color:#4aefba}.receive-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr 1.3fr auto;gap:12px;align-items:end}.receive-grid__amount input{font-size:20px;font-weight:900;color:#4aefba!important}.receive-grid__button{min-height:44px;white-space:nowrap}.notice-box{padding:14px 18px;border-radius:14px;font-weight:800;margin:12px 0}.notice-box--success{background:rgba(45,226,166,.12);border:1px solid rgba(45,226,166,.42);color:#62f3c2}.notice-box--danger{background:rgba(255,94,122,.12);border:1px solid rgba(255,94,122,.42);color:#ff91a5}
@media(max-width:1000px){.receive-grid{grid-template-columns:1fr 1fr}.receive-grid__button{grid-column:1/-1}}@media(max-width:620px){.receive-grid{grid-template-columns:1fr}.receive-grid__button{grid-column:auto}.receive-panel__due{text-align:left}}
/* ===== /FUTURE_LEDGER_THEME_20260826 ===== */

/* ===== NEON_FUSION_PRO_20260826 ===== */
:root{
  --bg:#07101d;--surface:#0d1a2a;--surface-2:#112238;--text:#eef6ff;--muted:#92a8c2;
  --border:#203a58;--border2:#172c45;--primary:#22d3ee;--primary2:#7c6cff;
  --primarySoft:rgba(34,211,238,.13);--success:#2fe6a6;--danger:#ff6685;
  --warning:#ffbc5c;--shadow:0 18px 50px rgba(0,6,18,.38);
}
html{scrollbar-color:#2c5778 #07101d;scroll-behavior:smooth}
body.app-body{min-height:100%;background-color:var(--bg);background-image:linear-gradient(rgba(51,116,163,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(51,116,163,.035) 1px,transparent 1px),radial-gradient(circle at 8% -5%,rgba(34,211,238,.18),transparent 29%),radial-gradient(circle at 95% 2%,rgba(124,108,255,.18),transparent 28%);background-size:44px 44px,44px 44px,auto,auto;background-attachment:fixed}
body.app-body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:linear-gradient(115deg,transparent 30%,rgba(34,211,238,.025) 50%,transparent 70%)}
.app-header{padding:10px 18px!important;background:rgba(4,12,24,.9)!important;border-bottom:1px solid rgba(75,154,207,.25)!important;box-shadow:0 12px 42px rgba(0,0,0,.22);backdrop-filter:blur(24px) saturate(1.3)}
.app-brand__title{color:#f5fbff!important;letter-spacing:.01em}.app-brand__subtitle{color:#77cbe0!important}.app-brand__logo{border:1px solid rgba(110,216,255,.38);box-shadow:0 0 0 4px rgba(34,211,238,.07),0 10px 28px rgba(0,0,0,.32)}
.app-nav-shell{background:rgba(13,31,50,.7);border:1px solid #203b58;border-radius:16px;padding:4px}.app-nav__link,.nav-group__trigger{color:#b8cbe0!important;border-radius:11px!important}.app-nav__link:hover,.nav-group__trigger:hover,.nav-group.is-active>.nav-group__trigger,.app-nav__link.is-active{background:linear-gradient(135deg,rgba(34,211,238,.16),rgba(124,108,255,.13))!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(89,203,239,.24)}
.nav-dropdown{background:rgba(7,18,33,.97)!important;border:1px solid #294b6e!important;box-shadow:0 24px 60px rgba(0,0,0,.5)!important;backdrop-filter:blur(22px)}.nav-dropdown a{color:#c5d7e9!important;border-radius:9px}.nav-dropdown a:hover,.nav-dropdown a.is-active{color:#fff!important;background:linear-gradient(90deg,rgba(34,211,238,.16),rgba(124,108,255,.12))!important}
.status-chip{background:#10243a!important;color:#c7d8e9!important;border-color:#294765!important}.status-chip:hover{border-color:#38cbea!important;color:#fff!important}.status-chip--health{color:#69eec2!important}
.app-main{padding:22px!important}.card,.surface-card,.dashboard-panel,.kpi-card,.table-card,.catalog-panel{color:var(--text);background:linear-gradient(145deg,rgba(16,34,55,.94),rgba(9,23,40,.96))!important;border:1px solid rgba(48,82,116,.82)!important;box-shadow:0 18px 50px rgba(0,4,14,.28)!important}.card:hover,.surface-card:hover,.dashboard-panel:hover{border-color:rgba(67,149,194,.62)!important}
.dashboard-hero,.ops-hero,.page-header{position:relative;overflow:hidden;background:linear-gradient(120deg,rgba(15,57,79,.96),rgba(23,24,73,.94))!important;border-color:rgba(70,197,233,.42)!important}.dashboard-hero::before,.ops-hero::before{content:"";position:absolute;width:420px;height:420px;right:-180px;top:-270px;border-radius:50%;border:1px solid rgba(93,218,249,.24);box-shadow:0 0 0 42px rgba(86,126,255,.045),0 0 0 84px rgba(86,126,255,.035)}
.page-title,.section-title,.panel-title,.dashboard-hero h1{color:#f5fbff!important}.page-subtitle,.section-subtitle,.panel-subtitle,.muted{color:var(--muted)!important}.eyebrow,.page-eyebrow,.visual-kicker{color:#61ddf4!important}
.kpi-card{overflow:hidden;min-height:128px;position:relative}.kpi-card::before{width:100%!important;height:3px!important;inset:0 0 auto!important;background:linear-gradient(90deg,#22d3ee,#7c6cff,transparent)!important}.kpi-card::after{content:"";position:absolute;right:-30px;bottom:-42px;width:110px;height:110px;border-radius:50%;background:radial-gradient(circle,rgba(34,211,238,.12),transparent 68%)}.kpi-card__value{color:#fff!important;text-shadow:0 0 24px rgba(59,203,242,.18)}
.action-tile,.stat-box,.payment-pill,.alert-card,.hero-stat,.data-highlight__card{background:linear-gradient(145deg,rgba(19,42,67,.9),rgba(12,29,49,.92))!important;border:1px solid #244462!important;color:var(--text)!important;box-shadow:none!important}.action-tile:hover{transform:translateY(-3px);border-color:#37cae8!important;box-shadow:0 14px 30px rgba(0,9,20,.3)!important}.action-tile--primary{background:linear-gradient(135deg,rgba(19,144,173,.32),rgba(87,73,198,.35))!important}.action-tile span,.stat-box__meta,.payment-pill small{color:var(--muted)!important}
.table-shell{background:#0a192b!important;border-color:#23415f!important;overflow:hidden}table{background:transparent!important;color:var(--text)!important}thead th,th{background:#102943!important;color:#89e8fb!important;border-color:#2b4967!important;text-transform:uppercase;letter-spacing:.055em;font-size:11px}td{color:#d8e5f2!important;border-color:#1b334e!important}tbody tr:nth-child(even){background:rgba(19,45,70,.26)}tbody tr:hover{background:rgba(34,211,238,.075)!important}table a{color:#70dff4!important}
input,select,textarea{background:#071a2c!important;color:#edf8ff!important;border:1px solid #2c4f70!important}option{background:#0c1e32!important;color:#edf8ff!important}input::placeholder,textarea::placeholder{color:#7188a4!important}label{color:#b7cbe0}.btn,.pro-btn,.action-button,.toolbar-chip,.toolbar-link,button{transition:border-color .2s ease,background .2s ease,color .2s ease,box-shadow .2s ease,transform .2s ease}.pro-btn--primary,.btn-primary,.dashboard-toolbar button,.receive-grid__button{background:linear-gradient(135deg,#16bad7,#665df0)!important;color:#fff!important;border:0!important;box-shadow:0 10px 25px rgba(38,150,211,.25)!important}.btn:not(.btn-primary),.pro-btn--ghost,.action-button,.toolbar-chip{background:#102840!important;color:#dcecff!important;border:1px solid #2b506f!important}.btn:hover,.pro-btn:hover,.action-button:hover,.toolbar-chip:hover{border-color:#49d4ee!important;color:#fff!important;box-shadow:0 8px 22px rgba(0,14,31,.3)!important}
.status-badge--success{background:rgba(47,230,166,.12)!important;color:#69f0c2!important;border-color:rgba(47,230,166,.38)!important}.status-badge--danger{background:rgba(255,102,133,.12)!important;color:#ff91a8!important;border-color:rgba(255,102,133,.4)!important}.status-badge--warn{background:rgba(255,188,92,.12)!important;color:#ffd08c!important;border-color:rgba(255,188,92,.38)!important}.status-badge--neutral,.pill{background:rgba(112,148,184,.12)!important;color:#bfd0e2!important;border-color:#34516e!important}
.visual-command-grid{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:14px;margin:14px 0}.visual-card{padding:20px;min-height:282px;position:relative;overflow:hidden}.visual-card__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:20px}.visual-card__head h2{margin:4px 0 0;font-size:18px;color:#f5fbff}.visual-kicker{display:block;font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}.live-indicator,.visual-range{font-size:10px;color:#9fb4ca;background:#0b2136;border:1px solid #274765;padding:6px 9px;border-radius:999px}.live-indicator{color:#5becbd}.live-indicator i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#35e4a8;box-shadow:0 0 0 4px rgba(53,228,168,.12);margin-right:5px;animation:signalPulse 1.8s infinite}
.health-visual{display:flex;align-items:center;justify-content:space-around;gap:24px}.health-orbit{width:148px;height:148px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#26d5e9 calc(var(--health)*1%),#7368f5 0 calc(var(--health)*1% + 3%),#17344f 0);position:relative;box-shadow:0 0 38px rgba(34,211,238,.15)}.health-orbit::before{content:"";position:absolute;inset:12px;border-radius:50%;background:#0b1c2f;border:1px solid #294a67}.health-orbit>div{position:relative;display:grid;text-align:center}.health-orbit strong{font-size:28px;color:#fff}.health-orbit span{font-size:10px;color:#7edcf1;text-transform:uppercase;letter-spacing:.13em}.health-legend{display:grid;gap:13px;min-width:150px}.health-legend>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;font-size:11px;color:#9fb4ca}.health-legend strong{color:#fff}.legend-dot{width:8px;height:8px;border-radius:50%}.legend-dot--cyan{background:#22d3ee;box-shadow:0 0 10px #22d3ee}.legend-dot--amber{background:#ffbc5c}.legend-dot--pink{background:#ff6685}
.payment-visual{display:grid;gap:13px}.payment-visual__meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#acc1d6}.payment-visual__meta strong{color:#fff}.payment-visual__track{height:7px;border-radius:999px;background:#162f49;overflow:hidden;margin:6px 0 3px}.payment-visual__track i{display:block;height:100%;width:var(--bar-width,8%);border-radius:inherit;background:linear-gradient(90deg,#22d3ee,#7769f7);box-shadow:0 0 15px rgba(34,211,238,.45);transition:width .75s cubic-bezier(.2,.8,.2,1)}.payment-visual__row small{font-size:9px;color:#6f88a3}
.signal-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.signal-grid a{display:grid;gap:6px;text-decoration:none;padding:13px;border-radius:13px;background:rgba(12,35,56,.88);border:1px solid #24435f;transition:.2s}.signal-grid a:hover{transform:translateY(-2px);border-color:#3abdd9}.signal-grid span{font-size:10px;color:#91aac3}.signal-grid strong{font-size:23px;color:#fff}.signal-grid i{display:block;height:3px;border-radius:5px;background:linear-gradient(90deg,#2bd6e9 var(--signal),#1b3852 var(--signal));margin-top:3px}
@keyframes signalPulse{50%{opacity:.45;box-shadow:0 0 0 7px rgba(53,228,168,0)}}
@media(max-width:1180px){.visual-command-grid{grid-template-columns:1fr 1fr}.visual-card--signal{grid-column:1/-1}.signal-grid{grid-template-columns:repeat(4,1fr)}}@media(max-width:780px){.app-main{padding:12px!important}.visual-command-grid{grid-template-columns:1fr}.visual-card--signal{grid-column:auto}.signal-grid{grid-template-columns:1fr 1fr}.health-visual{flex-direction:column}.app-header__actions{gap:5px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.live-indicator i{animation:none}.payment-visual__track i{transition:none}}
/* ===== /NEON_FUSION_PRO_20260826 ===== */

/* ===== AURORA_LIGHT_PRO_20260826 ===== */
:root{
  --bg:#f4f7fc;--surface:#ffffff;--surface-2:#f8faff;--text:#17243a;--muted:#687a92;
  --border:#dce5f0;--border2:#e9eef6;--primary:#1677ff;--primary2:#7357e8;
  --primarySoft:rgba(22,119,255,.10);--success:#0eae78;--danger:#e84b68;
  --warning:#e89b25;--shadow:0 12px 34px rgba(31,56,88,.09);
}
html{scrollbar-color:#b9c9dc #edf2f8}
body.app-body{color:var(--text);background-color:#f4f7fc;background-image:radial-gradient(circle at 8% -5%,rgba(31,182,220,.15),transparent 27%),radial-gradient(circle at 94% 0%,rgba(116,87,232,.12),transparent 25%),linear-gradient(rgba(62,105,151,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(62,105,151,.035) 1px,transparent 1px);background-size:auto,auto,46px 46px,46px 46px}
body.app-body::before{background:linear-gradient(115deg,transparent 30%,rgba(22,119,255,.025) 50%,transparent 70%)}
.app-header{background:rgba(255,255,255,.92)!important;border-bottom:1px solid #dbe5f0!important;box-shadow:0 8px 30px rgba(28,55,88,.09);color:#17243a!important}.app-brand__title{color:#17243a!important}.app-brand__subtitle{color:#52708e!important}.app-brand__logo{background:#fff;border-color:#d7e5f2;box-shadow:0 7px 22px rgba(35,69,103,.12)}
.app-nav-shell{background:#f5f8fc;border-color:#dce6f1}.app-nav__link,.nav-group__trigger{color:#50647d!important}.app-nav__link:hover,.nav-group__trigger:hover,.nav-group.is-active>.nav-group__trigger,.app-nav__link.is-active{background:linear-gradient(135deg,#e4f6fc,#ece8ff)!important;color:#1765c1!important;box-shadow:inset 0 0 0 1px #cce6f2}.nav-dropdown{background:rgba(255,255,255,.98)!important;border-color:#d7e3ef!important;box-shadow:0 22px 55px rgba(24,51,83,.16)!important}.nav-dropdown a{color:#425a73!important}.nav-dropdown a:hover,.nav-dropdown a.is-active{color:#1363be!important;background:linear-gradient(90deg,#e9f7fb,#f0edff)!important}.nav-caret{color:#7289a1!important}.nav-badge{box-shadow:none!important}
.status-chip{background:#f4f7fb!important;color:#48617a!important;border-color:#d7e2ed!important}.status-chip:hover{background:#eaf5ff!important;border-color:#8acfee!important;color:#1265bf!important}.status-chip--health{background:#eafaf4!important;color:#098760!important;border-color:#bfead9!important}.status-chip--alert{background:#fff3f5!important;color:#c43e59!important;border-color:#f3ccd4!important}
.card,.surface-card,.dashboard-panel,.kpi-card,.table-card,.catalog-panel{color:var(--text);background:rgba(255,255,255,.94)!important;border-color:#dce5ef!important;box-shadow:0 12px 34px rgba(31,56,88,.08)!important}.card:hover,.surface-card:hover,.dashboard-panel:hover{border-color:#bdd5e9!important;box-shadow:0 16px 40px rgba(31,74,112,.11)!important}
.dashboard-hero,.ops-hero,.page-header{background:linear-gradient(120deg,#ffffff 0%,#eefaff 52%,#f1efff 100%)!important;border-color:#cfe4ef!important}.dashboard-hero::before,.ops-hero::before{border-color:rgba(48,166,203,.18);box-shadow:0 0 0 42px rgba(57,183,219,.035),0 0 0 84px rgba(116,87,232,.03)}
.page-title,.section-title,.panel-title,.dashboard-hero h1,.visual-card__head h2{color:#18283f!important}.page-subtitle,.section-subtitle,.panel-subtitle,.muted{color:#6a7b91!important}.eyebrow,.page-eyebrow,.visual-kicker{color:#1478bb!important}.hero-tag{background:#fff!important;color:#41627e!important;border-color:#d5e4ef!important}.hero-stat{background:rgba(255,255,255,.78)!important;border-color:#d6e5ef!important;color:#1f314a!important}
.kpi-card{background:linear-gradient(145deg,#fff,#f7fbff)!important}.kpi-card::before{background:linear-gradient(90deg,#18b8d4,#337cf0,#7659e8,transparent)!important}.kpi-card::after{background:radial-gradient(circle,rgba(34,164,211,.10),transparent 68%)}.kpi-card__label{color:#657b93!important}.kpi-card__value{color:#152942!important;text-shadow:none}.kpi-card__sub{color:#7d8da0!important}
.action-tile,.stat-box,.payment-pill,.alert-card,.data-highlight__card{background:linear-gradient(145deg,#fff,#f7fafe)!important;border-color:#dce6f0!important;color:#1c304a!important}.action-tile:hover{border-color:#7cc9e0!important;box-shadow:0 13px 28px rgba(39,94,128,.11)!important}.action-tile--primary{background:linear-gradient(135deg,#e6f9fd,#efecff)!important}.action-tile span,.stat-box__meta,.payment-pill small{color:#70839a!important}.stat-box strong,.payment-pill strong,.action-tile strong{color:#19314c!important}
.table-shell{background:#fff!important;border-color:#dbe5ef!important}table{color:#23344a!important}thead th,th{background:#eef4fa!important;color:#42627e!important;border-color:#d7e2ed!important}td{color:#2c4158!important;border-color:#e5ebf2!important}tbody tr:nth-child(even){background:#fafcff}tbody tr:hover{background:#edf8fc!important}table a{color:#126ec8!important}
input,select,textarea{background:#fff!important;color:#20364f!important;border-color:#ccd9e7!important}option{background:#fff!important;color:#20364f!important}input::placeholder,textarea::placeholder{color:#95a4b5!important}input:focus,select:focus,textarea:focus{border-color:#3b9fe0!important;box-shadow:0 0 0 3px rgba(41,151,218,.12)!important}label{color:#435c75!important}
.btn:not(.btn-primary),.pro-btn--ghost,.action-button,.toolbar-chip{background:#fff!important;color:#365875!important;border-color:#d4e0eb!important}.btn:hover,.pro-btn:hover,.action-button:hover,.toolbar-chip:hover{background:#edf8fd!important;border-color:#78c4df!important;color:#1267bd!important;box-shadow:0 8px 20px rgba(35,87,120,.10)!important}.pro-btn--primary,.btn-primary,.dashboard-toolbar button,.receive-grid__button{background:linear-gradient(135deg,#11a8d0,#496ee9)!important;box-shadow:0 9px 22px rgba(38,126,198,.20)!important}
.pill{background:#f4f7fb!important;color:#536b82!important;border-color:#d8e2ec!important}.status-badge--success{background:#eafaf4!important;color:#087c59!important;border-color:#bde8d8!important}.status-badge--danger{background:#fff0f3!important;color:#c63d59!important;border-color:#f1c7d0!important}.status-badge--warn{background:#fff7e8!important;color:#a96808!important;border-color:#f1dab0!important}.status-badge--neutral{background:#f2f6fa!important;color:#5d7186!important;border-color:#d8e2eb!important}
.visual-card{background:linear-gradient(145deg,#fff,#f7faff)!important}.live-indicator,.visual-range{color:#5d7188;background:#f3f7fb;border-color:#dae5ef}.live-indicator{color:#087b58;background:#eafaf4;border-color:#bde8d7}.health-orbit{background:conic-gradient(#19bbd5 calc(var(--health)*1%),#765be5 0 calc(var(--health)*1% + 3%),#e4ebf3 0);box-shadow:0 13px 30px rgba(39,120,160,.14)}.health-orbit::before{background:#fff;border-color:#dbe7ef}.health-orbit strong{color:#1b3049}.health-orbit span{color:#2885aa}.health-legend>div{color:#6d8095}.health-legend strong{color:#243a52}.payment-visual__meta{color:#60758d}.payment-visual__meta strong{color:#20354d}.payment-visual__track{background:#e5edf4}.payment-visual__row small{color:#8797aa}.signal-grid a{background:linear-gradient(145deg,#fff,#f5f9fd);border-color:#dce6ef}.signal-grid a:hover{border-color:#79c9df;box-shadow:0 9px 22px rgba(35,89,123,.10)}.signal-grid span{color:#6d8197}.signal-grid strong{color:#1d334c}.signal-grid i{background:linear-gradient(90deg,#23bad2 var(--signal),#e2eaf2 var(--signal))}
.receive-panel{background:linear-gradient(135deg,#f1fffa,#f4f9ff)!important;border-color:#bfe8da!important}.receive-panel__due{color:#638079}.receive-panel__due strong{color:#07815b}.receive-grid__amount input{color:#087e5b!important}.notice-box--success{background:#eafaf4;color:#087c59;border-color:#bde8d8}.notice-box--danger{background:#fff0f3;color:#bf3a55;border-color:#f0c5ce}
.flash-banner{background:#fff!important;color:#263d56!important;border-color:#d9e4ee!important;box-shadow:var(--shadow)}
/* ===== /AURORA_LIGHT_PRO_20260826 ===== */

