:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --primary: #0f172a;
  --soft: #eef2ff;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #d97706;
  --radius: 24px;
  --button-radius: 18px;
  --sidebar-width: 290px;
  --font-size: 14px;
  --shadow-strength: 8;
  --shadow: 0 20px 50px rgba(15, 23, 42, calc(var(--shadow-strength) / 100));
  --accent: #6366f1;
  --app-max-width: 1480px;
  --login-bg-start: #111827;
  --login-bg-end: #312e81;
}

body.dark {
  --bg: #0b1220;
  --card: #111827;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: #253042;
  --primary: #e5e7eb;
  --soft: #172033;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; font-size: var(--font-size); background: var(--bg); color: var(--text); }
a { color: inherit; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.layout-shell { max-width: var(--app-max-width); margin: 0 auto; padding: 24px; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); gap: 20px; }
.sidebar { min-height: calc(100vh - 48px); padding: 22px; display: flex; flex-direction: column; justify-content: space-between; position: sticky; top: 24px; }
.sidebar-brand h1, .brand-wrap h1, .page-title { margin: 0 0 6px; }
.brand-wrap { display: flex; align-items: center; gap: 16px; }
.brand-icon { width: 52px; height: 52px; border-radius: 18px; background: var(--primary); color: var(--card); display: grid; place-items: center; font-size: 24px; }
.sidebar-nav { display: grid; gap: 10px; margin-top: 24px; }
.nav-link { text-decoration: none; padding: 14px 16px; border-radius: 18px; color: var(--muted); font-weight: 700; background: transparent; }
.nav-link.active, .nav-link:hover { background: var(--soft); color: var(--text); }
.sidebar-footer { display: grid; gap: 14px; }
.user-card { display: grid; gap: 4px; padding: 14px 16px; background: var(--soft); border-radius: 18px; }
.user-card span { color: var(--muted); font-size: 14px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.main-content { min-width: 0; }
.topbar { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.topbar-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-box { display: flex; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--line); padding: 12px 14px; border-radius: 18px; min-width: 240px; }
.search-box input, .control, .text-input { border: 1px solid var(--line); outline: none; background: transparent; font-size: 14px; width: 100%; color: var(--text); }
.search-box input { border: 0; }
.control, .text-input { border-radius: var(--button-radius); padding: 12px 14px; min-width: 150px; }
.button { text-decoration: none; padding: 12px 18px; border-radius: var(--button-radius); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
.button.primary { background: var(--primary); color: var(--card); border-color: transparent; }
.button.ghost { background: transparent; }
.button-block { width: 100%; }
.metrics-grid, .two-col-layout { display: grid; gap: 18px; }
.metrics-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.metric-card { padding: 22px; display: flex; align-items: center; justify-content: space-between; }
.metric-card p, .brand-wrap p, .panel-head p, .metric-note { margin: 0; color: var(--muted); }
.metric-card h2 { margin: 10px 0 8px; font-size: 32px; }
.metric-icon { width: 54px; height: 54px; border-radius: 18px; background: var(--soft); display: grid; place-items: center; font-size: 24px; }
.two-col-layout { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); margin-bottom: 18px; }
.panel-large, .panel-side { padding: 24px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h3 { margin: 0 0 6px; font-size: 22px; }
.badge { background: var(--soft); color: var(--text); padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.line-chart { min-height: 320px; position: relative; overflow: hidden; }
.chart-svg { width: 100%; height: 320px; display: block; }
.axis-label { fill: var(--muted); font-size: 12px; }
.line-sales { fill: none; stroke: var(--accent); stroke-width: 3.5; }
.line-orders { fill: none; stroke: #63aef7; stroke-width: 3.5; }
.chart-grid { stroke: var(--line); stroke-dasharray: 4 4; }
.donut-wrap { position: relative; width: 240px; height: 240px; margin: 0 auto 18px; }
.donut-chart { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(#cbd5e1 0 100%); position: relative; }
.donut-chart::after { content: ""; position: absolute; inset: 28px; background: var(--card); border-radius: 50%; }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.legend-list, .bar-list, .summary-stack { display: grid; gap: 12px; }
.legend-item, .summary-box { background: var(--soft); border-radius: 18px; padding: 14px 16px; }
.legend-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.legend-left { display: flex; align-items: center; gap: 10px; }
.color-dot { width: 12px; height: 12px; border-radius: 50%; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 16px 10px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 700; }
.stock-pill, .status-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 700; }
.stock-pill { background: var(--soft); color: var(--text); }
.status-paid { background: #dcfce7; color: #166534; }
.status-refunded { background: #fee2e2; color: #991b1b; }
.status-pending { background: #fef3c7; color: #92400e; }
.staff-row { display: grid; gap: 8px; }
.staff-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.bar-track { height: 14px; background: linear-gradient(180deg, #edf3ff 0%, #e7eefb 100%); border-radius: 999px; overflow: hidden; border: 1px solid #e1e9fb; }
.bar-fill { height: 100%; background: linear-gradient(135deg, #5b69ff 0%, #5aa4ff 100%); border-radius: 999px; box-shadow: 0 6px 14px rgba(91,105,255,.18); }
.summary-box span, .summary-box small { color: var(--muted); display: block; }
.summary-box strong { font-size: 28px; display: block; margin-top: 6px; }
.empty-state { padding: 22px 0; color: var(--muted); }
.loading { min-height: 240px; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.55); display: grid; place-items: center; padding: 20px; z-index: 99; }
.modal.hidden { display: none; }
.modal-card { width: min(680px, 100%); padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label, .form-stack label { display: grid; gap: 8px; font-weight: 600; }
.full-width { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.login-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, var(--login-bg-start), var(--login-bg-end)); }
.login-card { width: min(460px, 100%); padding: 28px; }
.form-stack { display: grid; gap: 14px; margin-top: 24px; }
.login-hint { margin-top: 14px; color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 14px; margin-top: 18px; }
.alert.error { background: #fee2e2; color: #991b1b; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 14px 18px; background: var(--primary); color: var(--card); border-radius: 16px; box-shadow: var(--shadow); z-index: 120; }
@media (max-width: 1100px) {
  .layout-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; min-height: auto; }
  .metrics-grid, .two-col-layout { grid-template-columns: 1fr 1fr; }
  .two-col-layout.lower-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .layout-shell, .app-shell { padding: 16px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .topbar-actions { flex-direction: column; align-items: stretch; }
  .metrics-grid, .two-col-layout, .form-grid { grid-template-columns: 1fr; }
  .panel-large, .panel-side, .metric-card, .topbar, .sidebar { padding: 18px; }
  .metric-card h2 { font-size: 28px; }
}

.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.single-col { grid-template-columns: 1fr; }
.modal-small { width:min(520px,100%); }
@media (max-width: 900px) { .settings-grid { grid-template-columns:1fr; } }

.settings-grid-wide { margin-top: 18px; }
.full-span { grid-column: 1 / -1; }
.color-input { padding: 6px; min-height: 48px; }

.settings-lang-bar { margin-bottom: 18px; }
.panel-tight { margin-bottom: 12px; }
.lang-switch-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.settings-action-row { justify-content: space-between; }

.eyebrow{display:inline-block;margin-bottom:8px;padding:6px 12px;border-radius:999px;background:var(--soft);color:var(--accent);font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.loyverse-topbar{border:1px solid rgba(99,102,241,.08);background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--card) 80%, var(--soft)))}
.filter-bar{align-items:stretch}
.filter-bar .grow{min-width:220px;flex:1}
.loyverse-metrics .metric-card{border:1px solid var(--line);position:relative;overflow:hidden}
.metric-card--accent{background:linear-gradient(135deg,color-mix(in srgb,var(--card) 78%, var(--soft)),var(--card))}
.metric-card--accent::after{content:'';position:absolute;inset:auto -40px -40px auto;width:140px;height:140px;background:radial-gradient(circle,var(--accent) 0,transparent 65%);opacity:.12}
.mini-metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:18px}
.mini-summary{padding:18px 20px;border:1px solid var(--line)}
.mini-summary span{display:block;color:var(--muted);font-size:13px;margin-bottom:10px}.mini-summary strong{font-size:26px}
.manage-stats .mini-summary strong{font-size:24px}
.table-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:18px;flex-wrap:wrap}
.pagination{display:flex;gap:8px;flex-wrap:wrap}.page-btn{min-width:40px;height:40px;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:14px;font-weight:700;cursor:pointer}.page-btn.active,.page-btn:hover{background:var(--soft)}.page-btn:disabled{opacity:.45;cursor:not-allowed}
.action-group{display:flex;gap:8px;flex-wrap:wrap}.action-group .button{padding:10px 12px}
.modal-xl{width:min(980px,100%)}
.tx-items{display:grid;gap:12px}.tx-item-row{display:grid;grid-template-columns:minmax(220px,1.7fr) 110px 140px 110px;gap:10px;align-items:center}.tx-total-row{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:14px 16px;background:var(--soft);border-radius:18px;font-size:16px}.tx-total-row strong{font-size:28px}
.summary-stack .summary-box{border:1px solid var(--line)}
.card{border:1px solid rgba(15,23,42,.04)}
.sidebar{background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--card) 80%, var(--soft)))}
.topbar,.panel-large,.panel-side{border:1px solid rgba(15,23,42,.04)}
.search-box,.control,.text-input,.button{transition:.18s ease}.search-box:focus-within,.control:focus,.text-input:focus{border-color:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 14%, transparent)}
@media (max-width: 1100px){.mini-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tx-item-row{grid-template-columns:1fr 100px 120px 90px}}
@media (max-width: 780px){.mini-metrics-grid{grid-template-columns:1fr}.table-footer{align-items:stretch}.tx-item-row{grid-template-columns:1fr}.action-group{flex-direction:column}.action-group .button{width:100%}}

.drill-card{cursor:pointer}.payment-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.payment-card,.summary-link{text-decoration:none;color:inherit}.payment-card{display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--soft) 45%, white));}.payment-card strong{font-size:1.2rem}.tx-total-grid{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:10px}.tx-total-row{padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--soft)}.tx-total-row span{display:block;color:var(--muted);font-size:.85rem;margin-bottom:6px}.tx-total-row strong{font-size:1.1rem}.action-group{display:flex;flex-wrap:wrap;gap:8px}@media (max-width: 900px){.tx-total-grid{grid-template-columns:1fr 1fr}.payment-cards{grid-template-columns:1fr}}

.inline-field{display:grid;grid-template-columns:1fr 140px;gap:10px}.compact-select{min-width:120px}.legend-link,.staff-link,.table-link{text-decoration:none;color:inherit}.legend-link:hover,.staff-link:hover{background:var(--soft)}.table-link{font-weight:600}.chart-dot{fill:#fff;stroke:var(--accent);stroke-width:2;transition:.15s}.chart-dot-orders{stroke:#64748b}.chart-dot:hover{r:7}.receipt-switcher,.settings-note{font-size:12px;color:var(--muted)}

.report-topbar{position:sticky;top:0;z-index:2}
.reports-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;margin-top:18px}
.report-sidebar{padding:18px;align-self:start;position:sticky;top:110px}
.report-menu-title{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-bottom:12px}
.report-menu-list{display:grid;gap:8px}
.report-menu-item{border:1px solid var(--line);background:transparent;color:var(--text);padding:12px 14px;border-radius:16px;text-align:left;font:inherit;font-weight:600;cursor:pointer}
.report-menu-item.active{background:color-mix(in srgb,var(--primary) 12%, var(--card));border-color:color-mix(in srgb,var(--primary) 40%, var(--line));color:var(--primary)}
.report-content{display:grid;gap:18px}
.report-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.compact-chart{min-height:250px}
.bar-chart{display:grid;gap:14px;padding:8px 0}
.bar-row{display:grid;gap:8px}
.bar-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:13px;color:var(--muted)}
.report-filters .control{min-width:140px}
#reportTable a{color:var(--primary);text-decoration:none;font-weight:700}
#reportTable a:hover{text-decoration:underline}
@media (max-width: 1100px){.reports-layout{grid-template-columns:1fr}.report-sidebar{position:relative;top:auto}.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 700px){.report-kpis{grid-template-columns:1fr}.report-menu-list{grid-template-columns:1fr}.report-filters{display:grid;grid-template-columns:1fr 1fr}.report-filters .control,.report-filters .button{width:100%}}

.loyverse-report-shell{background:linear-gradient(180deg,color-mix(in srgb,var(--primary) 10%, white),var(--card));}
.report-title-block{display:grid;gap:6px}
.report-crumb{background:color-mix(in srgb,var(--primary) 16%, white);color:var(--primary)}
.filter-pill-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.nav-lite-btn{width:42px;height:42px;border-radius:12px;border:1px solid var(--line);background:var(--card);font-size:24px;line-height:1;cursor:pointer;color:var(--text)}
.report-action-row{display:flex;gap:10px;flex-wrap:wrap}
.loyverse-report-layout{align-items:start}
.loyverse-report-sidebar{background:linear-gradient(180deg,#fafafa,var(--card));}
.report-menu-item{display:flex;align-items:center;gap:10px}
.report-menu-icon{width:24px;text-align:center;opacity:.9}
.report-panel-head{align-items:flex-start}
.report-panel-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.report-chart-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:4px 0 14px}
.chart-mode-chip{border:1px solid var(--line);background:var(--card);color:var(--text);padding:8px 14px;border-radius:999px;font:inherit;font-weight:700;cursor:pointer}
.chart-mode-chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}
.chart-help-text{font-size:12px;color:var(--muted)}
.loyverse-bar-chart .bar-row{display:block;text-decoration:none;color:inherit;padding:10px 12px;border-radius:14px;border:1px solid transparent}
.loyverse-bar-chart .bar-row:hover{background:var(--soft);border-color:var(--line)}
.clickable-bar-row{cursor:pointer}
.report-chart-table{display:grid;gap:10px}
.report-chart-table-row{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border:1px solid var(--line);border-radius:16px;text-decoration:none;color:inherit;background:var(--card)}
.report-chart-table-row:hover{background:var(--soft)}
.loyverse-table-panel tbody tr.clickable-row{cursor:pointer}
.loyverse-table-panel tbody tr.clickable-row:hover td{background:color-mix(in srgb,var(--soft) 65%, white)}
#reportTable th{position:sticky;top:0;background:color-mix(in srgb,var(--soft) 35%, white);z-index:1}
@media (max-width: 900px){.report-action-row{width:100%}.report-action-row .button{flex:1}.report-panel-tools{width:100%;justify-content:flex-start}}


/* v13 compact report filters */
.report-topbar-compact{align-items:flex-start;gap:16px}
.report-filter-card{flex:1;min-width:0;background:color-mix(in srgb,var(--card) 92%, white);border:1px solid rgba(15,23,42,.06);border-radius:22px;padding:14px 16px;box-shadow:0 10px 30px rgba(15,23,42,.04)}
.report-filter-row{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.report-filter-row + .report-filter-row{margin-top:12px;padding-top:12px;border-top:1px solid color-mix(in srgb,var(--line) 72%, transparent)}
.filter-date-cluster{display:flex;align-items:center;gap:10px;flex:1 1 420px;min-width:280px}
.compact-filter-box{background:var(--bg);border:1px solid var(--line);border-radius:18px;padding:8px 10px}
.compact-date-inputs{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:10px;flex:1}
.compact-filter-field{display:grid;gap:6px;min-width:0}
.compact-filter-field span{font-size:11px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--muted);padding-left:2px}
.compact-control{min-width:0;padding:10px 12px;border-radius:14px;background:var(--card)}
.compact-select-field{flex:1 1 160px;min-width:150px}
.staff-select-field{flex:1.2 1 220px}
.report-preset-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;flex:0 1 auto}
.preset-chip{border:1px solid var(--line);background:var(--card);color:var(--muted);padding:9px 12px;border-radius:999px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;white-space:nowrap}
.preset-chip.active,.preset-chip:hover{background:color-mix(in srgb,var(--accent) 14%, white);color:var(--text);border-color:color-mix(in srgb,var(--accent) 32%, var(--line))}
.compact-action-row{margin-left:auto;justify-content:flex-end}
.compact-action-row .button{padding:10px 14px;min-height:42px}
.nav-lite-btn{width:38px;height:38px;border-radius:12px;font-size:22px;flex:0 0 38px}

@media (max-width: 1180px){
  .report-topbar-compact{flex-direction:column}
  .report-filter-card{width:100%}
  .report-preset-chips{justify-content:flex-start}
}
@media (max-width: 780px){
  .report-filter-card{padding:12px}
  .filter-date-cluster{flex-direction:column;align-items:stretch;gap:8px;background:transparent;border:0;padding:0}
  .compact-date-inputs{grid-template-columns:1fr}
  .report-filter-row{gap:10px}
  .report-filter-row-secondary{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
  .compact-select-field,.staff-select-field{flex:auto;min-width:0}
  .compact-action-row{grid-column:1 / -1;margin-left:0;display:grid;grid-template-columns:1fr 1fr 1fr}
  .compact-action-row .button{width:100%}
  .report-preset-chips{width:100%;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}
}
@media (max-width: 560px){
  .report-filter-row-secondary{grid-template-columns:1fr}
  .compact-action-row{grid-template-columns:1fr}
  .report-filter-card{border-radius:18px}
  .preset-chip{padding:8px 10px}
}


/* v14 loyverse-like report filter */
.loyverse-report-shell{gap:18px}
.loyverse-filter-card{padding:12px 14px 10px;border-radius:24px;background:linear-gradient(180deg,#f8f8f8,#ffffff);border:1px solid #e8e8e8;box-shadow:0 8px 28px rgba(15,23,42,.06)}
.report-filter-strip{display:grid;grid-template-columns:minmax(330px,1.9fr) repeat(3,minmax(150px,.8fr)) auto;gap:10px;align-items:stretch}
.filter-pill{display:flex;align-items:center;gap:10px;min-height:54px;background:#fff;border:1px solid #e7e7e7;border-radius:16px;padding:8px 10px;box-shadow:0 1px 0 rgba(15,23,42,.03)}
.date-pill{padding:6px 8px}
.date-pill-body{display:grid;gap:3px;flex:1;min-width:0}
.pill-label{font-size:11px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#7b8190;padding-left:2px}
.compact-date-inputs{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}
.compact-date-control{border:0;background:#fff;padding:8px 4px;min-height:auto;box-shadow:none}
.compact-date-control:focus{outline:none}
.date-separator{font-size:12px;color:#8b93a7;font-weight:700}
.loyverse-nav-btn{width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#f4f5f7;border-color:#eceef2;color:#2f3442}
.loyverse-nav-btn:hover{background:#eceff3}
.select-pill{padding-inline:12px}
.pill-icon{font-size:15px;opacity:.8;flex:0 0 auto}
.loyverse-select-control{border:0;background:transparent;padding:8px 0;min-height:auto;color:#303545;font-weight:700;box-shadow:none}
.loyverse-select-control:focus{outline:none}
.staff-pill{min-width:190px}
.loyverse-action-row{display:flex;gap:8px;align-items:stretch;justify-content:flex-end}
.loyverse-action-button{min-height:54px;border-radius:16px;padding:0 14px;font-weight:800;white-space:nowrap}
.loyverse-action-row .button.ghost{background:#fff;border-color:#e7e7e7}
.loyverse-action-row .button.primary{background:#46a948;border-color:#46a948}
.loyverse-preset-chips{margin-top:10px;padding-left:2px;justify-content:flex-start;gap:7px}
.loyverse-preset-chips .preset-chip{background:#fff;border-color:#e7e7e7;color:#5b6578;padding:7px 11px;font-size:11px}
.loyverse-preset-chips .preset-chip.active,.loyverse-preset-chips .preset-chip:hover{background:#e9f6ea;border-color:#bfe2c2;color:#2f7d32}
.report-title-block{padding-top:4px}
.report-crumb{color:#6a7387}
@media (max-width: 1280px){
  .report-filter-strip{grid-template-columns:minmax(280px,1.8fr) repeat(2,minmax(140px,1fr)) auto;}
  .staff-pill{grid-column:2 / 4}
}
@media (max-width: 980px){
  .report-filter-strip{grid-template-columns:1fr 1fr;}
  .date-pill{grid-column:1 / -1}
  .staff-pill{grid-column:auto}
  .loyverse-action-row{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr 1fr}
}
@media (max-width: 640px){
  .report-topbar-compact{gap:12px}
  .loyverse-filter-card{padding:10px;border-radius:20px}
  .report-filter-strip{grid-template-columns:1fr;gap:8px}
  .filter-pill{min-height:50px;border-radius:14px}
  .date-pill{padding:8px}
  .compact-date-inputs{grid-template-columns:1fr;gap:4px}
  .date-separator{display:none}
  .loyverse-action-row{grid-column:auto;grid-template-columns:1fr 1fr}
  .mobile-hide-action{display:none}
  .loyverse-action-button{min-height:48px}
  .loyverse-preset-chips{margin-top:8px;overflow:auto;flex-wrap:nowrap;padding-bottom:2px}
}


/* v15 closer-to-Loyverse reports polish */
.v15-report-topbar{position:relative;overflow:hidden;border-radius:26px;background:linear-gradient(180deg,#f7f7f7 0%,#ffffff 100%);border:1px solid #e7e7e7;box-shadow:0 14px 36px rgba(15,23,42,.06)}
.v15-report-topbar::before{content:"";position:absolute;left:0;top:0;right:0;height:9px;background:#47a94b}
.v15-report-title-block{padding-top:8px}
.v15-report-title-block .page-title{font-size:34px;line-height:1.05;margin-bottom:4px}
.v15-report-title-block p{max-width:620px}
.report-mobile-filter-toggle{display:none;border-radius:14px;background:#fff;border-color:#dfe3e8;font-weight:800}
.v15-loyverse-filter-card{background:#fbfbfb;border-color:#e5e7eb;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 26px rgba(15,23,42,.05)}
.v15-loyverse-filter-card .filter-pill{border-radius:14px;background:#fff;border-color:#e3e5e8;min-height:50px}
.v15-loyverse-filter-card .date-pill{padding:6px 10px}
.v15-loyverse-filter-card .pill-label{font-size:10px;color:#8a90a0}
.v15-loyverse-filter-card .compact-date-control,.v15-loyverse-filter-card .loyverse-select-control{font-size:14px;font-weight:700;color:#2c3446}
.v15-loyverse-filter-card .loyverse-select-control{padding-right:18px}
.v15-loyverse-filter-card .loyverse-nav-btn{background:#f3f4f6;border-color:#e6e8ed}
.v15-loyverse-filter-card .loyverse-action-button{min-height:50px;border-radius:14px}
.v15-loyverse-filter-card .button.ghost{background:#fff}
.report-sidebar{border-radius:24px;border:1px solid #e7e7e7;padding:14px;background:linear-gradient(180deg,#f9f9f9 0%,#ffffff 100%);box-shadow:0 8px 24px rgba(15,23,42,.04)}
.report-sidebar-hint{font-size:12px;line-height:1.45;color:#7b8293;margin:-2px 0 12px}
.report-menu-title{margin-bottom:8px;color:#47a94b;font-size:12px;font-weight:900;letter-spacing:.09em}
.report-menu-list{gap:6px}
.report-menu-item{padding:12px 14px;border-radius:14px;border-color:#eceef2;background:#fff;font-weight:700;color:#31394a;transition:.16s ease}
.report-menu-item:hover{transform:translateY(-1px);border-color:#dfe4ea;background:#f7f8fa}
.report-menu-item.active{background:#eef7ef;border-color:#b9ddb9;color:#2f7d32;box-shadow:inset 0 0 0 1px rgba(71,169,75,.06)}
.report-menu-icon{width:26px;height:26px;display:grid;place-items:center;background:#f2f4f7;border-radius:9px}
.report-menu-item.active .report-menu-icon{background:#dff1e0}
.report-kpis{gap:14px}
.report-kpis .metric-card{padding:18px 18px 16px;border-radius:22px;border-color:#e8eaef;background:linear-gradient(180deg,#ffffff,#fafafa)}
.report-kpis .metric-card p{font-size:12px;font-weight:800;color:#6f7788;text-transform:uppercase;letter-spacing:.03em}
.report-kpis .metric-card h2{font-size:25px;margin:8px 0 5px}
.report-kpis .metric-icon{width:46px;height:46px;border-radius:16px;background:#f3f5f7;display:grid;place-items:center;font-size:22px}
.report-kpis .metric-card--accent{background:linear-gradient(135deg,#f7fff7,#ffffff);border-color:#cfe7cf}
.report-chart-panel,.loyverse-table-panel{border-radius:24px;border:1px solid #e8eaee;box-shadow:0 10px 28px rgba(15,23,42,.04)}
.report-chart-toolbar{padding:2px 0 12px;border-bottom:1px solid #f0f1f4;margin-bottom:6px}
.chart-mode-chip{background:#fff;border-color:#e6e8eb;color:#4b5565;padding:7px 13px}
.chart-mode-chip.active{background:#10233f;border-color:#10233f}
#reportTable th{background:#f6f7f8;color:#6a7284;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
#reportTable td{padding-top:14px;padding-bottom:14px}
.loyverse-table-panel tbody tr.clickable-row:hover td{background:#f7fbf7}
@media (max-width: 1100px){
  .v15-report-title-block .page-title{font-size:30px}
}
@media (max-width: 780px){
  .v15-report-topbar{border-radius:22px;padding-top:22px}
  .report-mobile-filter-toggle{display:inline-flex;align-items:center;justify-content:center}
  #reportFilterCard{display:none}
  #reportFilterCard.open{display:block;width:100%}
  .v15-loyverse-filter-card{margin-top:2px}
  .report-sidebar{position:relative;top:auto}
  .report-kpis .metric-card h2{font-size:22px}
}
@media (max-width: 640px){
  .v15-report-title-block .page-title{font-size:26px}
  .report-topbar-compact{gap:10px}
  .v15-loyverse-filter-card .filter-pill{min-height:48px}
  .report-kpis{gap:10px}
  .report-kpis .metric-card{padding:16px}
  .report-menu-item{padding:11px 12px}
}

/* v16 closer Loyverse reports */
#reportsPage{display:grid;gap:18px}
#reportsPage .reports-layout{grid-template-columns:260px minmax(0,1fr);gap:18px}
#reportsPage .report-topbar{padding:0;border:none;box-shadow:none;background:transparent}
#reportsPage .v15-report-topbar{background:transparent;border:none;box-shadow:none;border-radius:0;overflow:visible}
#reportsPage .report-title-block{display:none}
#reportsPage .report-mobile-filter-toggle{display:none}
#reportsPage .report-filter-card{position:relative}
#reportsPage .v15-loyverse-filter-card{padding:14px 16px 12px;border-radius:20px;background:#ffffff;border:1px solid #e6e7ea;box-shadow:0 10px 24px rgba(15,23,42,.05)}
#reportsPage .v15-loyverse-filter-card::before{content:"";position:absolute;left:0;right:0;top:0;height:42px;background:#49a84f;border-radius:20px 20px 0 0;z-index:0}
#reportsPage .report-filter-strip,
#reportsPage .loyverse-preset-chips{position:relative;z-index:1}
#reportsPage .report-filter-strip{margin-top:8px;grid-template-columns:minmax(360px,1.8fr) minmax(150px,.8fr) minmax(130px,.65fr) minmax(170px,.9fr) auto;gap:9px}
#reportsPage .filter-pill{border-radius:14px;min-height:48px;border:1px solid #e3e5e8;box-shadow:none}
#reportsPage .date-pill{background:#fff;border-color:#dfe2e6;padding:7px 8px}
#reportsPage .pill-label{font-size:10px;color:#7a828f}
#reportsPage .compact-date-control,#reportsPage .loyverse-select-control{font-size:14px;font-weight:700;color:#2c3342}
#reportsPage .compact-date-control{padding:6px 2px}
#reportsPage .loyverse-nav-btn{width:32px;height:32px;flex-basis:32px;border-radius:9px;background:#f3f4f6}
#reportsPage .loyverse-action-row{gap:7px}
#reportsPage .loyverse-action-button{min-height:48px;border-radius:14px;padding:0 13px;font-size:13px}
#reportsPage .loyverse-action-row .button.primary{background:#49a84f;border-color:#49a84f}
#reportsPage .loyverse-preset-chips{margin-top:9px;padding-left:0;display:flex;gap:6px;overflow:auto}
#reportsPage .loyverse-preset-chips .preset-chip{padding:6px 10px;border-radius:999px;background:#f6f7f8;font-size:11px;color:#596273;border-color:#eceef1}
#reportsPage .loyverse-preset-chips .preset-chip.active,
#reportsPage .loyverse-preset-chips .preset-chip:hover{background:#e7f4e8;border-color:#cfe6d1;color:#2f7d32}
#reportsPage .report-sidebar{top:16px;padding:0;border-radius:18px;border:1px solid #e5e7eb;overflow:hidden;background:#fff;box-shadow:0 10px 24px rgba(15,23,42,.04)}
#reportsPage .report-sidebar::before{content:"";display:block;height:42px;background:#49a84f}
#reportsPage .report-menu-title{padding:14px 16px 4px;font-size:14px;font-weight:800;color:#49a84f}
#reportsPage .report-sidebar-hint{padding:0 16px 14px;font-size:12px;color:#7b8190;border-bottom:1px solid #eef0f2}
#reportsPage .report-menu-list{padding:10px}
#reportsPage .report-menu-item{padding:11px 12px;border:none;border-radius:12px;background:transparent;color:#2e3442}
#reportsPage .report-menu-item:hover{background:#f5f6f8}
#reportsPage .report-menu-item.active{background:#eef6ef;color:#2f7d32;box-shadow:inset 3px 0 0 #49a84f}
#reportsPage .report-menu-icon{width:20px;font-size:15px}
#reportsPage .report-content{gap:16px}
#reportsPage .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#reportsPage .report-kpis .metric-card{border-radius:18px;border:1px solid #e7e8ea;box-shadow:0 8px 18px rgba(15,23,42,.04);padding:0;background:#fff}
#reportsPage .report-kpis .metric-card h2{font-size:24px}
#reportsPage .report-kpis .metric-card p{font-size:13px;color:#71798a}
#reportsPage .report-kpis .metric-icon{background:#f4f6f8;border:1px solid #eef0f2}
#reportsPage .report-kpis .metric-card--accent{background:linear-gradient(180deg,#f7fbf7,#ffffff);border-color:#dbeadf}
#reportsPage .report-chart-panel,
#reportsPage .loyverse-table-panel{border-radius:18px;border:1px solid #e7e8ea;box-shadow:0 10px 24px rgba(15,23,42,.04);background:#fff}
#reportsPage .report-panel-head{padding-bottom:10px;border-bottom:1px solid #eff1f3}
#reportsPage .report-panel-head h3{font-size:28px;line-height:1.1;margin-bottom:4px}
#reportsPage .report-panel-head p{font-size:13px;color:#768093}
#reportsPage #reportRangeBadge{background:#eef6ef;color:#2f7d32;border:1px solid #d6e9d7;font-weight:800}
#reportsPage .chart-mode-chip{padding:7px 12px;border-radius:999px;background:#fff;font-size:12px;color:#5f6677}
#reportsPage .chart-mode-chip.active{background:#49a84f;color:#fff;border-color:#49a84f}
#reportsPage .chart-help-text{margin-left:auto;font-size:12px}
#reportsPage .loyverse-bar-chart .bar-row{padding:8px 10px;border-radius:12px}
#reportsPage .bar-meta{font-size:12px;color:#6e7788}
#reportsPage .bar-fill{background:linear-gradient(90deg,#8ac657,#49a84f)}
#reportsPage .report-chart-table-row{border-radius:14px;padding:12px 14px;border-color:#e8eaed}
#reportsPage .table-wrap{border-radius:14px;overflow:auto;border:1px solid #edf0f3}
#reportsPage table th{font-size:12px;text-transform:none;color:#6d7587;background:#f8f9fb}
#reportsPage table td{font-size:13px}
#reportsPage table tbody tr:hover td{background:#fafcfa}
#reportsPage #reportTable th{position:sticky;top:0}
@media (max-width:1200px){
  #reportsPage .report-filter-strip{grid-template-columns:minmax(300px,1.6fr) repeat(2,minmax(140px,1fr)) auto}
  #reportsPage .staff-pill{grid-column:2 / 4}
  #reportsPage .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:900px){
  #reportsPage .reports-layout{grid-template-columns:1fr}
  #reportsPage .report-sidebar{position:relative;top:auto}
  #reportsPage .report-mobile-filter-toggle{display:inline-flex;align-self:flex-start;margin-bottom:4px}
}
@media (max-width:700px){
  #reportsPage .v15-loyverse-filter-card::before{height:34px;border-radius:18px 18px 0 0}
  #reportsPage .v15-loyverse-filter-card{padding:10px;border-radius:18px}
  #reportsPage .report-filter-strip{margin-top:6px;grid-template-columns:1fr;gap:8px}
  #reportsPage .date-pill{padding:8px}
  #reportsPage .compact-date-inputs{grid-template-columns:1fr;gap:4px}
  #reportsPage .date-separator{display:none}
  #reportsPage .staff-pill{grid-column:auto}
  #reportsPage .loyverse-action-row{display:grid;grid-template-columns:1fr 1fr}
  #reportsPage .mobile-hide-action{display:none}
  #reportsPage .report-kpis{grid-template-columns:1fr 1fr}
  #reportsPage .report-menu-list{display:grid;grid-template-columns:1fr 1fr}
}
@media (max-width:520px){
  #reportsPage .report-kpis,#reportsPage .report-menu-list{grid-template-columns:1fr}
  #reportsPage .loyverse-action-row{grid-template-columns:1fr}
  #reportsPage .report-panel-head h3{font-size:22px}
}

/* v17 closer Loyverse shell */
body{padding-top:58px;background:#f3f4f6}
.app-header-loyverse{position:fixed;top:0;left:0;right:0;height:58px;background:#48a84d;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px;z-index:50;box-shadow:0 1px 0 rgba(0,0,0,.08)}
.app-header-left,.app-header-right{display:flex;align-items:center;gap:14px}
.app-header-menu{border:0;background:transparent;color:#fff;font-size:22px;line-height:1;cursor:pointer;padding:6px 8px;border-radius:8px}
.app-header-menu:hover{background:rgba(255,255,255,.12)}
.app-header-title{font-size:14px;font-weight:800;letter-spacing:.01em}
.app-header-chip{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);padding:7px 12px;border-radius:999px;font-size:12px;font-weight:700}
.loyverse-site-shell{max-width:none;margin:0;padding:0 18px 18px;grid-template-columns:340px minmax(0,1fr);gap:18px}
.loyverse-sidebar-shell{display:grid;grid-template-columns:62px minmax(0,1fr);gap:0;align-self:start;position:sticky;top:76px}
.sidebar-rail{border-radius:18px 0 0 18px;padding:10px 0;display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border:1px solid #e4e6ea;border-right:0;min-height:calc(100vh - 94px);box-shadow:0 8px 24px rgba(15,23,42,.04)}
.rail-link{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;text-decoration:none;color:#708090;font-size:20px}
.rail-link:hover{background:#f4f5f7}
.rail-link.active{background:#ecf7ed;color:#2f7d32;box-shadow:inset 3px 0 0 #49a84f}
.sidebar-panel{border-radius:0 18px 18px 0;min-height:calc(100vh - 94px);padding:18px 16px 16px;background:#fff;border:1px solid #e4e6ea;border-left:0;box-shadow:0 8px 24px rgba(15,23,42,.04);display:flex;flex-direction:column;justify-content:space-between}
.loyverse-brand{padding-bottom:16px;border-bottom:1px solid #eef0f2;margin-bottom:14px}
.loyverse-brand .brand-icon{width:44px;height:44px;border-radius:14px;background:#0f1c44;color:#fff;display:grid;place-items:center;font-size:22px}
.loyverse-brand h1{font-size:17px;margin-bottom:2px}
.loyverse-brand p{font-size:12px;color:#7a8292}
.loyverse-sidebar-nav{gap:6px}
.loyverse-sidebar-nav .nav-link{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;color:#344054;font-weight:700;border:0;background:transparent}
.loyverse-sidebar-nav .nav-link:hover{background:#f5f6f8}
.loyverse-sidebar-nav .nav-link.active{background:#edf5ee;color:#2f7d32;box-shadow:inset 3px 0 0 #49a84f}
.nav-icon{width:22px;text-align:center;opacity:.92}
.loyverse-sidebar-footer{padding-top:14px;border-top:1px solid #eef0f2}
.loyverse-sidebar-footer .button{border-radius:12px}
.loyverse-main-content{padding-top:0}
.topbar.card,.panel-large,.panel-side,.metric-card,.report-sidebar,.report-chart-panel,.loyverse-table-panel,.mini-summary{border-radius:18px}
.button.primary{background:#48a84d;border-color:#48a84d}
.button.primary:hover{filter:brightness(.98)}
.button.ghost{background:#fff;border-color:#e3e5e8}
#reportsPage .report-sidebar::before,#reportsPage .v15-loyverse-filter-card::before{background:#48a84d}
#reportsPage .report-menu-item.active,#reportsPage .loyverse-preset-chips .preset-chip.active,#reportsPage .loyverse-preset-chips .preset-chip:hover,#reportsPage #reportRangeBadge{color:#2f7d32}
#reportsPage .chart-mode-chip.active,#reportsPage .loyverse-action-row .button.primary{background:#48a84d;border-color:#48a84d}
#reportsPage .bar-fill{background:linear-gradient(90deg,#90cb5a,#48a84d)}
#reportsPage .report-filter-strip{grid-template-columns:minmax(360px,1.7fr) minmax(150px,.75fr) minmax(130px,.65fr) minmax(180px,.9fr) auto}
#reportsPage .report-menu-list{padding:8px}
#reportsPage .report-menu-item{border-radius:10px}
#reportsPage .report-chart-panel{overflow:hidden}
#reportsPage .report-panel-head{padding-top:2px}
#reportsPage .report-panel-head h3{font-size:24px}
#reportsPage .report-chart-toolbar{padding-top:10px}
@media (max-width: 1100px){
  .loyverse-site-shell{grid-template-columns:1fr;padding:0 12px 12px}
  .loyverse-sidebar-shell{grid-template-columns:1fr;position:relative;top:auto}
  .sidebar-rail{display:none}
  .sidebar-panel{border-radius:18px;border-left:1px solid #e4e6ea;min-height:auto}
}
@media (max-width: 700px){
  body{padding-top:54px}
  .app-header-loyverse{height:54px;padding:0 12px}
  .app-header-title{font-size:13px}
  .app-header-chip{padding:6px 10px;font-size:11px}
  .sidebar-panel{padding:14px}
  .loyverse-sidebar-nav{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .loyverse-sidebar-nav .nav-link{padding:10px}
}

/* v18 layout fix: prevent squeezed/overlapping Loyverse shell */
html,body{max-width:100%;overflow-x:hidden}
body{background:#f3f4f6}
.layout-shell.loyverse-site-shell{
  width:100%;
  max-width:none;
  margin:0;
  padding:16px;
  grid-template-columns:300px minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.sidebar.loyverse-sidebar-shell{
  padding:0;
  min-height:auto;
  background:transparent;
  box-shadow:none;
  top:74px;
}
.loyverse-sidebar-shell{
  display:grid;
  grid-template-columns:60px minmax(0,1fr);
  gap:0;
  align-self:start;
}
.sidebar-rail{
  width:60px;
  min-height:auto;
}
.sidebar-panel{
  min-height:auto;
  max-height:calc(100vh - 96px);
  overflow:auto;
}
.main-content.loyverse-main-content{min-width:0;overflow:hidden}

#reportsPage{
  display:grid;
  gap:16px;
}
#reportsPage .reports-layout{
  grid-template-columns:220px minmax(0,1fr);
  gap:16px;
  align-items:start;
}
#reportsPage .report-sidebar{
  position:sticky;
  top:74px;
  max-height:calc(100vh - 96px);
  overflow:auto;
}
#reportsPage .report-topbar{
  position:relative;
  top:auto;
  z-index:1;
}
#reportsPage .v15-loyverse-filter-card{
  padding:12px 14px 10px;
}
#reportsPage .report-filter-strip{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:8px;
}
#reportsPage .date-pill{flex:1 1 360px;min-width:320px}
#reportsPage .select-pill{flex:0 1 170px;min-width:150px}
#reportsPage .staff-pill{flex:0 1 210px;min-width:180px}
#reportsPage .loyverse-action-row{
  margin-left:auto;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  flex:0 1 auto;
}
#reportsPage .loyverse-action-button{white-space:nowrap}
#reportsPage .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#reportsPage .report-kpis .metric-card{min-width:0}
#reportsPage .report-kpis .metric-card h2{font-size:20px;line-height:1.2}
#reportsPage .report-kpis .metric-card{padding:16px}
#reportsPage .report-kpis .metric-icon{width:42px;height:42px;font-size:18px}
#reportsPage .report-content{min-width:0}
#reportsPage .report-chart-panel,
#reportsPage .loyverse-table-panel,
#reportsPage .table-wrap,
#reportsPage table{width:100%;min-width:0}
#reportsPage .table-wrap{overflow:auto}
#reportsPage table{min-width:720px}

@media (max-width: 1280px){
  .layout-shell.loyverse-site-shell{grid-template-columns:280px minmax(0,1fr)}
  #reportsPage .reports-layout{grid-template-columns:200px minmax(0,1fr)}
  #reportsPage .date-pill{flex-basis:300px;min-width:280px}
}
@media (max-width: 1100px){
  .layout-shell.loyverse-site-shell{grid-template-columns:1fr;padding:12px}
  .loyverse-sidebar-shell{grid-template-columns:1fr}
  .sidebar-rail{display:none}
  .sidebar-panel{max-height:none;overflow:visible;border-left:1px solid #e4e6ea;border-radius:18px}
  #reportsPage .reports-layout{grid-template-columns:1fr}
  #reportsPage .report-sidebar{position:relative;top:auto;max-height:none}
}
@media (max-width: 780px){
  .app-header-chip{display:none}
  .sidebar-panel{padding:14px}
  .loyverse-sidebar-nav{grid-template-columns:1fr 1fr}
  #reportsPage .v15-loyverse-filter-card{padding:10px}
  #reportsPage .report-filter-strip{gap:8px}
  #reportsPage .date-pill,
  #reportsPage .select-pill,
  #reportsPage .staff-pill,
  #reportsPage .loyverse-action-row{flex:1 1 100%;min-width:0;margin-left:0}
  #reportsPage .date-pill{min-width:0}
  #reportsPage .compact-date-inputs{grid-template-columns:1fr}
  #reportsPage .date-separator{display:none}
  #reportsPage .loyverse-action-row{display:grid;grid-template-columns:1fr 1fr}
  #reportsPage .mobile-hide-action{display:none}
  #reportsPage .report-kpis{grid-template-columns:1fr 1fr}
}
@media (max-width: 560px){
  .layout-shell.loyverse-site-shell{padding:10px}
  .loyverse-sidebar-nav{grid-template-columns:1fr}
  #reportsPage .loyverse-action-row,
  #reportsPage .report-kpis,
  #reportsPage .report-menu-list{grid-template-columns:1fr}
}


/* v19 reports shell cleanup */
body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:72px minmax(0,1fr);padding:0 16px 16px;gap:16px;max-width:none}
body.page-reports .sidebar.loyverse-sidebar-shell{grid-template-columns:72px;position:sticky;top:74px}
body.page-reports .sidebar-panel{display:none}
body.page-reports .sidebar-rail{width:72px;border-radius:22px;min-height:calc(100vh - 96px);padding:14px 0;gap:8px;border-right:1px solid #e4e6ea;box-shadow:0 8px 22px rgba(15,23,42,.05)}
body.page-reports .rail-link{width:44px;height:44px;border-radius:14px;font-size:20px}
body.page-reports .main-content.loyverse-main-content{padding-top:16px}
body.page-reports #reportsPage{gap:14px}
body.page-reports #reportsPage .report-topbar{margin-top:0;border-radius:0 0 22px 22px;padding:14px 14px 12px;background:#fff;border:1px solid #e5e7eb;border-top:0;box-shadow:0 10px 24px rgba(15,23,42,.05)}
body.page-reports #reportsPage .report-topbar::before{height:0}
body.page-reports #reportsPage .report-filter-card{padding:0;background:transparent;border:0;box-shadow:none;width:100%}
body.page-reports #reportsPage .report-filter-strip{display:grid;grid-template-columns:minmax(340px,1.6fr) repeat(3,minmax(150px,.75fr)) auto;gap:10px;margin-top:0}
body.page-reports #reportsPage .date-pill{min-width:0;flex:none}
body.page-reports #reportsPage .select-pill, body.page-reports #reportsPage .staff-pill{min-width:0;flex:none}
body.page-reports #reportsPage .loyverse-action-row{margin-left:0;justify-content:stretch}
body.page-reports #reportsPage .loyverse-action-row .button, body.page-reports #reportsPage .loyverse-action-row a{justify-content:center}
body.page-reports #reportsPage .loyverse-preset-chips{margin-top:8px}
body.page-reports #reportsPage .reports-layout{grid-template-columns:280px minmax(0,1fr);gap:14px}
body.page-reports #reportsPage .report-sidebar{top:90px;max-height:calc(100vh - 112px);border-radius:22px;padding:12px}
body.page-reports #reportsPage .report-menu-title{display:none}
body.page-reports #reportsPage .report-sidebar-hint{display:none}
body.page-reports #reportsPage .report-menu-item{padding:11px 12px;font-size:14px;line-height:1.25}
body.page-reports #reportsPage .report-menu-item span:last-child{display:block}
body.page-reports #reportsPage .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.page-reports #reportsPage .metric-card{padding:14px}
body.page-reports #reportsPage .metric-card h2{font-size:18px}
body.page-reports #reportsPage .report-chart-panel, body.page-reports #reportsPage .loyverse-table-panel{border-radius:22px}
body.page-reports #reportsPage .panel-head h3{font-size:18px}
@media (max-width:1280px){body.page-reports #reportsPage .report-filter-strip{grid-template-columns:minmax(300px,1.3fr) repeat(2,minmax(140px,1fr)) auto} body.page-reports #reportsPage .staff-pill{grid-column:2/4} body.page-reports #reportsPage .reports-layout{grid-template-columns:240px minmax(0,1fr)}}
@media (max-width:1100px){body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr;padding:0 12px 12px} body.page-reports .sidebar.loyverse-sidebar-shell{display:none} body.page-reports #reportsPage .report-topbar{border-radius:0 0 20px 20px} body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr 1fr} body.page-reports #reportsPage .date-pill{grid-column:1/-1} body.page-reports #reportsPage .staff-pill{grid-column:auto} body.page-reports #reportsPage .reports-layout{grid-template-columns:1fr}}
@media (max-width:720px){body.page-reports .main-content.loyverse-main-content{padding-top:12px} body.page-reports #reportsPage .report-topbar{padding:12px 10px 10px} body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr} body.page-reports #reportsPage .loyverse-action-row{display:grid;grid-template-columns:1fr 1fr} body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr 1fr}}
@media (max-width:560px){body.page-reports .layout-shell.loyverse-site-shell{padding:0 10px 10px} body.page-reports #reportsPage .loyverse-action-row, body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr} body.page-reports #reportsPage .report-topbar{border-radius:0 0 16px 16px}}

/* v20 reports polish: cleaner, more orderly Loyverse-style reports page */
body.page-reports{background:#f4f5f7}
body.page-reports .main-content.loyverse-main-content{padding-top:18px}
body.page-reports #reportsPage{gap:18px}
body.page-reports #reportsPage .report-topbar{
  background:#fff;
  border:1px solid #e4e7eb;
  border-top:4px solid #49a84f;
  border-radius:20px;
  padding:14px 16px 12px;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
body.page-reports #reportsPage .report-title-block{margin-bottom:10px}
body.page-reports #reportsPage .report-title-block .eyebrow{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  background:#edf7ee;
  color:#2f7d32;
  font-weight:700;
  letter-spacing:.02em;
}
body.page-reports #reportsPage .report-title-block .page-title{font-size:26px;line-height:1.1;margin:8px 0 4px}
body.page-reports #reportsPage .report-title-block p{margin:0;color:#768093;font-size:13px}
body.page-reports #reportsPage .report-filter-strip{
  display:grid;
  grid-template-columns:minmax(320px,1.55fr) minmax(150px,.68fr) minmax(130px,.56fr) minmax(180px,.82fr) auto;
  gap:10px;
  align-items:stretch;
}
body.page-reports #reportsPage .filter-pill{
  background:#fbfcfd;
  border:1px solid #dfe5ea;
  border-radius:16px;
  min-height:54px;
}
body.page-reports #reportsPage .date-pill{padding:8px 10px}
body.page-reports #reportsPage .date-pill-body{gap:4px}
body.page-reports #reportsPage .pill-label{font-size:11px;font-weight:700;color:#7b8698}
body.page-reports #reportsPage .compact-date-control,
body.page-reports #reportsPage .loyverse-select-control{border:none;background:transparent;box-shadow:none;padding:0;min-height:auto;font-weight:700}
body.page-reports #reportsPage .loyverse-select-control{padding:0 28px 0 0}
body.page-reports #reportsPage .select-pill{padding:0 14px;gap:10px}
body.page-reports #reportsPage .staff-pill{padding:0 14px}
body.page-reports #reportsPage .pill-icon{opacity:.9;font-size:16px}
body.page-reports #reportsPage .nav-lite-btn{
  width:34px;height:34px;border-radius:12px;background:#f0f3f6;border:1px solid #dfe4ea;color:#334155;
}
body.page-reports #reportsPage .nav-lite-btn:hover{background:#e8edf2}
body.page-reports #reportsPage .loyverse-action-row{display:flex;gap:8px;align-items:stretch}
body.page-reports #reportsPage .loyverse-action-button{
  min-height:54px;
  padding:0 16px;
  border-radius:16px;
  font-weight:800;
}
body.page-reports #reportsPage .loyverse-preset-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
body.page-reports #reportsPage .preset-chip{
  padding:7px 12px;
  border-radius:999px;
  border:1px solid #e0e5ea;
  background:#f7f8fa;
  color:#5f6b7d;
  font-weight:700;
}
body.page-reports #reportsPage .preset-chip.active{background:#edf7ee;border-color:#cde7cf;color:#2f7d32}
body.page-reports #reportsPage .reports-layout{grid-template-columns:256px minmax(0,1fr);gap:18px}
body.page-reports #reportsPage .report-sidebar{
  padding:10px;
  background:#fff;
  border:1px solid #e4e7eb;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
body.page-reports #reportsPage .report-sidebar::before{height:8px;border-radius:16px 16px 0 0;margin:-10px -10px 10px}
body.page-reports #reportsPage .report-menu-title{
  display:block;
  padding:0 6px;
  margin:0 0 4px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  color:#49a84f;
  text-transform:uppercase;
}
body.page-reports #reportsPage .report-sidebar-hint{
  display:block;
  padding:0 6px 10px;
  margin:0 0 6px;
  font-size:12px;
  line-height:1.45;
  color:#7a8495;
  border-bottom:1px solid #edf0f3;
}
body.page-reports #reportsPage .report-menu-list{padding:4px;gap:6px;display:grid}
body.page-reports #reportsPage .report-menu-item{
  display:flex;align-items:flex-start;gap:10px;
  padding:12px 12px;
  border-radius:14px;
  color:#334155;
  font-weight:700;
}
body.page-reports #reportsPage .report-menu-item:hover{background:#f5f7f9}
body.page-reports #reportsPage .report-menu-item.active{
  background:#eef7ef;
  color:#2f7d32;
  box-shadow:inset 3px 0 0 #49a84f;
}
body.page-reports #reportsPage .report-menu-icon{
  width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:8px;background:#f3f6f9;flex:0 0 24px;font-size:13px;
}
body.page-reports #reportsPage .report-menu-item.active .report-menu-icon{background:#dff1e0}
body.page-reports #reportsPage .report-kpis{gap:14px}
body.page-reports #reportsPage .metric-card{
  min-height:104px;
  border:1px solid #e7ebef;
  box-shadow:0 6px 16px rgba(15,23,42,.03);
}
body.page-reports #reportsPage .metric-card p{font-size:12px;color:#728094;font-weight:700;margin-bottom:6px}
body.page-reports #reportsPage .metric-card h2{font-size:17px;margin-bottom:4px}
body.page-reports #reportsPage .metric-note{font-size:12px;color:#7c8798}
body.page-reports #reportsPage .metric-icon{background:#f3f6f9;border:1px solid #ebeff3}
body.page-reports #reportsPage .report-chart-panel,
body.page-reports #reportsPage .loyverse-table-panel{
  border:1px solid #e4e7eb;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
body.page-reports #reportsPage .report-chart-panel{padding:18px 20px}
body.page-reports #reportsPage .loyverse-table-panel{padding:16px 18px}
body.page-reports #reportsPage .panel-head{padding-bottom:12px;border-bottom:1px solid #edf0f3;margin-bottom:12px}
body.page-reports #reportsPage .panel-head h3{font-size:18px;margin:0 0 4px}
body.page-reports #reportsPage .panel-head p{font-size:12px;color:#7a8495;margin:0}
body.page-reports #reportsPage .report-panel-tools{display:flex;align-items:center;gap:10px}
body.page-reports #reportsPage #reportRangeBadge{background:#edf7ee;border:1px solid #cfe7d0;padding:8px 12px;font-weight:800}
body.page-reports #reportsPage .chart-mode-chip{border-radius:999px;padding:8px 14px;font-weight:800}
body.page-reports #reportsPage .chart-help-text{margin-left:auto;color:#7a8495;font-size:12px}
body.page-reports #reportsPage .compact-chart{min-height:300px;padding-top:6px}
body.page-reports #reportsPage .table-wrap{border:1px solid #edf0f3;border-radius:16px;overflow:auto}
body.page-reports #reportsPage table thead th{background:#f7f8fa;font-size:12px;color:#748094;padding:12px 14px}
body.page-reports #reportsPage table tbody td{padding:13px 14px}
body.page-reports #reportsPage table tbody tr:hover{background:#fafcfb}
@media (max-width:1280px){
  body.page-reports #reportsPage .reports-layout{grid-template-columns:230px minmax(0,1fr)}
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:minmax(280px,1.3fr) repeat(2,minmax(140px,1fr)) auto}
  body.page-reports #reportsPage .staff-pill{grid-column:2/4}
}
@media (max-width:1100px){
  body.page-reports #reportsPage .report-topbar{padding:12px}
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr 1fr}
  body.page-reports #reportsPage .date-pill{grid-column:1/-1}
  body.page-reports #reportsPage .staff-pill{grid-column:auto}
  body.page-reports #reportsPage .reports-layout{grid-template-columns:1fr}
  body.page-reports #reportsPage .report-sidebar{position:relative;top:auto;max-height:none}
}
@media (max-width:720px){
  body.page-reports #reportsPage .report-title-block .page-title{font-size:22px}
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr}
  body.page-reports #reportsPage .loyverse-action-row{display:grid;grid-template-columns:1fr 1fr}
  body.page-reports #reportsPage .mobile-hide-action{display:none}
  body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr 1fr}
  body.page-reports #reportsPage .report-chart-panel{padding:16px}
  body.page-reports #reportsPage .panel-head{gap:10px}
  body.page-reports #reportsPage .chart-help-text{margin-left:0;display:block;width:100%}
}
@media (max-width:560px){
  body.page-reports #reportsPage .loyverse-action-row,
  body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr}
  body.page-reports #reportsPage .date-pill{padding:8px}
  body.page-reports #reportsPage .compact-date-inputs{grid-template-columns:1fr}
  body.page-reports #reportsPage .date-separator{display:none}
  body.page-reports #reportsPage .report-chart-panel,
  body.page-reports #reportsPage .loyverse-table-panel{padding:14px}
}

/* v21 reports polish */
body.page-reports .main-content.loyverse-main-content{padding-top:18px}
body.page-reports #reportsPage{display:grid;gap:18px}
body.page-reports #reportsPage .report-topbar{padding:0;background:transparent;border:0;box-shadow:none}
body.page-reports #reportsPage .report-title-block{display:none}
body.page-reports #reportsPage .report-filter-card{
  padding:14px;
  background:#fff;
  border:1px solid #e6eaef;
  border-radius:22px;
  box-shadow:0 10px 28px rgba(15,23,42,.04);
}
body.page-reports #reportsPage .report-filter-strip{
  display:grid;
  grid-template-columns:minmax(340px,1.7fr) minmax(145px,.8fr) minmax(130px,.68fr) minmax(185px,.92fr) auto;
  gap:10px;
  align-items:stretch;
}
body.page-reports #reportsPage .filter-pill{
  background:#fbfcfd;
  border:1px solid #e4e8ee;
  border-radius:16px;
  min-height:56px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
body.page-reports #reportsPage .date-pill{padding:8px 10px 8px 8px}
body.page-reports #reportsPage .date-pill-body{gap:6px}
body.page-reports #reportsPage .pill-label{font-size:11px;font-weight:800;letter-spacing:.02em;color:#7b8796}
body.page-reports #reportsPage .compact-date-inputs{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}
body.page-reports #reportsPage .compact-control,
body.page-reports #reportsPage .loyverse-select-control{
  border:0;
  background:transparent;
  min-height:38px;
  padding:0 10px;
  font-size:15px;
  font-weight:700;
  color:#243042;
  box-shadow:none;
}
body.page-reports #reportsPage .nav-lite-btn{
  width:34px;height:34px;border-radius:12px;border:1px solid #e3e7ed;background:#fff;color:#516072;
}
body.page-reports #reportsPage .report-preset-chips{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap}
body.page-reports #reportsPage .preset-chip{
  border-radius:999px;
  height:32px;
  padding:0 12px;
  border:1px solid #e3e8ee;
  background:#f7f8fa;
  color:#5c6677;
  font-weight:800;
}
body.page-reports #reportsPage .preset-chip.active{background:#ebf7ec;border-color:#bfe2c2;color:#2f7d32}
body.page-reports #reportsPage .loyverse-action-row{display:grid;grid-template-columns:repeat(3,max-content);gap:8px;justify-content:end}
body.page-reports #reportsPage .loyverse-action-button{
  min-width:126px;
  height:56px;
  border-radius:16px;
  font-weight:800;
}
body.page-reports #reportsPage .reports-layout{
  display:grid;
  grid-template-columns:260px minmax(0,1fr);
  gap:18px;
  align-items:start;
}
body.page-reports #reportsPage .report-sidebar{
  position:sticky;
  top:84px;
  border-radius:22px;
  border:1px solid #e6eaef;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
  overflow:hidden;
}
body.page-reports #reportsPage .report-sidebar::before{
  content:"";
  display:block;
  height:16px;
  background:#49a84f;
}
body.page-reports #reportsPage .report-menu-title{
  display:block;
  padding:14px 16px 2px;
  margin:0;
  color:#49a84f;
  font-size:13px;
  font-weight:900;
}
body.page-reports #reportsPage .report-sidebar-hint{padding:0 16px 12px;font-size:12px;line-height:1.45;color:#7a8495}
body.page-reports #reportsPage .report-menu-list{padding:8px;gap:6px}
body.page-reports #reportsPage .report-menu-item{
  display:grid;
  grid-template-columns:28px 1fr;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:10px 12px;
  border-radius:14px;
  font-weight:800;
  color:#2d3647;
}
body.page-reports #reportsPage .report-menu-item span:last-child{line-height:1.25}
body.page-reports #reportsPage .report-menu-item.active{background:#eef6ef;box-shadow:inset 3px 0 0 #49a84f}
body.page-reports #reportsPage .report-content{display:grid;gap:18px}
body.page-reports #reportsPage .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body.page-reports #reportsPage .metric-card{
  min-height:96px;
  border-radius:20px;
  border:1px solid #e7ebf0;
  box-shadow:0 8px 18px rgba(15,23,42,.03);
}
body.page-reports #reportsPage .metric-card h2{font-size:22px;margin-top:4px}
body.page-reports #reportsPage .metric-note{font-size:12px;color:#788395;line-height:1.4}
body.page-reports #reportsPage .report-chart-panel,
body.page-reports #reportsPage .loyverse-table-panel{
  border-radius:24px;
  border:1px solid #e7ebf0;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  padding:20px 22px;
}
body.page-reports #reportsPage .report-panel-head,
body.page-reports #reportsPage .panel-head{padding-bottom:14px;margin-bottom:12px;border-bottom:1px solid #eef2f5}
body.page-reports #reportsPage .report-panel-head h3{font-size:18px;line-height:1.2}
body.page-reports #reportsPage .report-panel-head p,
body.page-reports #reportsPage .panel-head p{font-size:13px;color:#7a8495}
body.page-reports #reportsPage #reportRangeBadge{border-radius:999px;padding:9px 14px}
body.page-reports #reportsPage .chart-mode-chip{height:32px;padding:0 14px;border:1px solid #dfe5eb;background:#fff}
body.page-reports #reportsPage .chart-mode-chip.active{background:#49a84f;border-color:#49a84f;color:#fff}
body.page-reports #reportsPage .compact-chart{min-height:320px;padding-top:4px}
body.page-reports #reportsPage .table-wrap{border-radius:18px}
body.page-reports #reportsPage table thead th{position:sticky;top:0;z-index:1}
body.page-reports #reportsPage table tbody tr{transition:background .15s ease}
body.page-reports #reportsPage table tbody td{font-size:14px;color:#2c3442}

@media (max-width: 1340px){
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:minmax(320px,1.4fr) repeat(2,minmax(145px,1fr)) auto}
  body.page-reports #reportsPage .staff-pill{grid-column:2/4}
  body.page-reports #reportsPage .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 1120px){
  body.page-reports #reportsPage .reports-layout{grid-template-columns:1fr}
  body.page-reports #reportsPage .report-sidebar{position:relative;top:auto}
  body.page-reports #reportsPage .report-menu-list{grid-template-columns:1fr 1fr}
}
@media (max-width: 860px){
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr 1fr}
  body.page-reports #reportsPage .date-pill{grid-column:1/-1}
  body.page-reports #reportsPage .staff-pill{grid-column:auto}
  body.page-reports #reportsPage .loyverse-action-row{grid-template-columns:1fr 1fr 1fr}
}
@media (max-width: 640px){
  body.page-reports #reportsPage .report-filter-card{padding:12px;border-radius:18px}
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr}
  body.page-reports #reportsPage .loyverse-action-row{grid-template-columns:1fr 1fr}
  body.page-reports #reportsPage .loyverse-action-button{min-width:0;height:48px;border-radius:14px}
  body.page-reports #reportsPage .report-menu-list{grid-template-columns:1fr}
  body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr}
  body.page-reports #reportsPage .compact-date-inputs{grid-template-columns:1fr}
  body.page-reports #reportsPage .date-separator{display:none}
  body.page-reports #reportsPage .report-chart-panel,
  body.page-reports #reportsPage .loyverse-table-panel{padding:16px}
}

/* v22 reports closer to Loyverse */
body.page-reports{background:#f2f2f3}
body.page-reports .app-header-loyverse{
  height:42px;
  padding:0 14px;
  background:#49a84f;
  box-shadow:none;
}
body.page-reports .app-header-title{font-size:14px;font-weight:800}
body.page-reports .app-header-menu{width:28px;height:28px;border-radius:6px;background:transparent;border:none;color:#fff}
body.page-reports .app-header-chip{background:rgba(255,255,255,.18);border:none;padding:6px 12px;font-size:12px}
body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:62px minmax(0,1fr);padding:12px 10px 18px;gap:14px}
body.page-reports .sidebar.loyverse-sidebar-shell{grid-template-columns:62px;top:54px}
body.page-reports .sidebar-panel{display:none !important}
body.page-reports .sidebar-rail.card{
  border-radius:0;
  border:1px solid #dfe3e8;
  box-shadow:none;
  padding:8px 0;
  background:#fff;
}
body.page-reports .rail-link{
  width:40px;height:40px;margin:0 auto 6px;border-radius:0;color:#6b7280;background:transparent;border-left:3px solid transparent;font-size:20px;
}
body.page-reports .rail-link:hover{background:#f7f7f8}
body.page-reports .rail-link.active{background:#f5fbf5;color:#49a84f;border-left-color:#49a84f;border-radius:0}
body.page-reports .main-content.loyverse-main-content{padding-top:0}
body.page-reports #reportsPage{gap:14px}
body.page-reports #reportsPage .report-topbar{margin-top:6px}
body.page-reports #reportsPage .report-filter-card{
  padding:10px 12px 12px;
  border-radius:0 0 10px 10px;
  border:1px solid #dfe3e8;
  box-shadow:none;
  position:relative;
}
body.page-reports #reportsPage .report-filter-card::before{
  content:"";position:absolute;left:0;right:0;top:0;height:34px;background:#49a84f;border-radius:10px 10px 0 0;
}
body.page-reports #reportsPage .report-filter-strip,
body.page-reports #reportsPage .report-preset-chips{position:relative;z-index:1}
body.page-reports #reportsPage .report-filter-strip{grid-template-columns:minmax(360px,1.4fr) minmax(170px,.8fr) minmax(120px,.6fr) minmax(200px,.9fr) auto;gap:8px}
body.page-reports #reportsPage .filter-pill{
  min-height:48px;
  background:#fff;
  border:1px solid #d8dde3;
  border-radius:12px;
  box-shadow:none;
}
body.page-reports #reportsPage .date-pill{padding:6px 8px}
body.page-reports #reportsPage .nav-lite-btn{width:30px;height:30px;border-radius:6px;background:#f4f5f6;border-color:#dfe3e8}
body.page-reports #reportsPage .pill-label{font-size:10px;color:#7a7f89}
body.page-reports #reportsPage .compact-control,
body.page-reports #reportsPage .loyverse-select-control{font-size:13px;font-weight:700;color:#1f2937;min-height:32px}
body.page-reports #reportsPage .loyverse-select-control{padding-right:22px}
body.page-reports #reportsPage .loyverse-action-row{display:flex;gap:8px;justify-content:flex-end}
body.page-reports #reportsPage .loyverse-action-button{
  min-width:0;height:48px;padding:0 16px;border-radius:12px;font-size:13px;box-shadow:none;
}
body.page-reports #reportsPage .button.ghost{background:#fff}
body.page-reports #reportsPage .button.primary{background:#49a84f;border-color:#49a84f}
body.page-reports #reportsPage .report-preset-chips{margin-top:8px;gap:6px}
body.page-reports #reportsPage .preset-chip{height:28px;padding:0 10px;font-size:11px;border-radius:999px;background:#f6f7f8;border:1px solid #dfe3e8}
body.page-reports #reportsPage .preset-chip.active{background:#e8f5e9;border-color:#cfe8d2;color:#2f7d32}
body.page-reports #reportsPage .reports-layout{grid-template-columns:220px minmax(0,1fr);gap:14px}
body.page-reports #reportsPage .report-sidebar{
  border-radius:0;
  border:1px solid #dfe3e8;
  box-shadow:none;
  position:sticky;top:58px;
}
body.page-reports #reportsPage .report-sidebar::before{height:0;display:none}
body.page-reports #reportsPage .report-menu-title{
  padding:14px 14px 6px;
  color:#49a84f;
  font-size:14px;
}
body.page-reports #reportsPage .report-sidebar-hint{padding:0 14px 10px;font-size:12px;color:#808792;border-bottom:1px solid #edf0f2}
body.page-reports #reportsPage .report-menu-list{padding:6px 0;gap:0}
body.page-reports #reportsPage .report-menu-item{
  border-radius:0;
  padding:12px 14px;
  min-height:44px;
  grid-template-columns:26px 1fr;
  border-left:3px solid transparent;
}
body.page-reports #reportsPage .report-menu-item:hover{background:#f7f8f9}
body.page-reports #reportsPage .report-menu-item.active{background:#f5fbf5;box-shadow:none;border-left-color:#49a84f;color:#2f7d32}
body.page-reports #reportsPage .report-menu-icon{font-size:16px}
body.page-reports #reportsPage .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.page-reports #reportsPage .metric-card{
  min-height:88px;
  border-radius:0;
  border:1px solid #dfe3e8;
  box-shadow:none;
  padding:10px 12px;
}
body.page-reports #reportsPage .metric-card h2{font-size:17px;margin:2px 0}
body.page-reports #reportsPage .metric-card p{font-size:12px;color:#6f7782;margin:0}
body.page-reports #reportsPage .metric-note{font-size:11px;color:#8a919b}
body.page-reports #reportsPage .metric-icon{width:34px;height:34px;border-radius:8px;background:#f5f6f8;border:1px solid #e7eaee;font-size:16px}
body.page-reports #reportsPage .report-chart-panel,
body.page-reports #reportsPage .loyverse-table-panel{
  border-radius:0;
  border:1px solid #dfe3e8;
  box-shadow:none;
  padding:14px 18px 16px;
}
body.page-reports #reportsPage .panel-head,
body.page-reports #reportsPage .report-panel-head{padding-bottom:10px;margin-bottom:10px}
body.page-reports #reportsPage .panel-head h3,
body.page-reports #reportsPage .report-panel-head h3{font-size:15px;font-weight:800}
body.page-reports #reportsPage .panel-head p,
body.page-reports #reportsPage .report-panel-head p{font-size:12px}
body.page-reports #reportsPage #reportRangeBadge{padding:7px 12px;border-radius:999px;background:#f0f8f1;border-color:#d5ead8;font-size:12px}
body.page-reports #reportsPage .chart-mode-chip{height:30px;padding:0 12px;font-size:12px;border-radius:999px}
body.page-reports #reportsPage .compact-chart{min-height:240px}
body.page-reports #reportsPage .line-chart{padding:0}
body.page-reports #reportsPage .table-wrap{border-radius:0;border:1px solid #e2e6ea}
body.page-reports #reportsPage table thead th{background:#fafafa;font-size:12px;font-weight:700;color:#6b7280;border-bottom:1px solid #e3e7eb}
body.page-reports #reportsPage table tbody td{font-size:13px;border-bottom:1px solid #eef1f4}
body.page-reports #reportsPage table tbody tr:hover{background:#fafcfb}

@media (max-width: 1280px){
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:minmax(320px,1fr) minmax(160px,.8fr) minmax(120px,.6fr) minmax(180px,.85fr);}
  body.page-reports #reportsPage .loyverse-action-row{grid-column:1/-1;justify-content:flex-start}
}
@media (max-width: 980px){
  body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr;padding:10px}
  body.page-reports .sidebar.loyverse-sidebar-shell{display:none}
  body.page-reports #reportsPage .reports-layout{grid-template-columns:1fr}
  body.page-reports #reportsPage .report-sidebar{position:relative;top:auto}
  body.page-reports #reportsPage .report-menu-list{display:grid;grid-template-columns:1fr 1fr}
}
@media (max-width: 720px){
  body.page-reports .app-header-loyverse{height:40px;padding:0 10px}
  body.page-reports #reportsPage .report-filter-card{border-radius:0 0 8px 8px;padding:10px}
  body.page-reports #reportsPage .report-filter-card::before{border-radius:8px 8px 0 0;height:30px}
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr}
  body.page-reports #reportsPage .loyverse-action-row{display:grid;grid-template-columns:1fr 1fr;width:100%}
  body.page-reports #reportsPage .loyverse-action-button{width:100%;padding:0 12px}
  body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr 1fr}
}
@media (max-width: 560px){
  body.page-reports #reportsPage .report-menu-list{grid-template-columns:1fr}
  body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr}
  body.page-reports #reportsPage .compact-date-inputs{grid-template-columns:1fr}
  body.page-reports #reportsPage .date-separator{display:none}
  body.page-reports #reportsPage .loyverse-action-row{grid-template-columns:1fr}
}


/* v23 reports closer to Loyverse */
body.page-reports{background:#efefef;color:#2f2f2f}
body.page-reports .app-header-loyverse{height:42px;background:#4caf50;border-bottom:none;box-shadow:none}
body.page-reports .app-header-title{font-size:15px;font-weight:700}
body.page-reports .app-header-chip{background:rgba(255,255,255,.18);border:none;color:#fff;border-radius:14px;padding:6px 12px;font-size:12px}
body.page-reports .layout-shell.loyverse-site-shell{max-width:none;grid-template-columns:56px minmax(0,1fr);gap:14px;padding:12px 12px 18px}
body.page-reports .sidebar.loyverse-sidebar-shell{grid-template-columns:56px;position:sticky;top:54px;align-self:start}
body.page-reports .sidebar.loyverse-sidebar-shell .sidebar-panel{display:none}
body.page-reports .sidebar-rail.card{background:#fff;border:1px solid #e5e5e5;border-radius:2px;box-shadow:none;padding:0;overflow:hidden}
body.page-reports .sidebar-rail.card::before{content:"👤";display:grid;place-items:center;height:56px;font-size:28px;color:#9aa0a6;border-bottom:1px solid #ececec}
body.page-reports .rail-link{width:56px;height:50px;border-radius:0;font-size:22px;border-bottom:1px solid #ececec;color:#6b7280;background:#fff}
body.page-reports .rail-link:hover{background:#f7f7f7}
body.page-reports .rail-link.active{background:#fff;color:#4caf50;box-shadow:inset 4px 0 0 #4caf50}
body.page-reports .main-content.loyverse-main-content{padding-top:0;overflow:visible}
body.page-reports #reportsPage{display:grid;gap:14px}
body.page-reports #reportsPage .report-topbar{display:block;padding:8px;background:#fff;border:1px solid #e4e4e4;border-radius:2px;box-shadow:none}
body.page-reports #reportsPage .report-title-block,
body.page-reports #reportsPage .report-mobile-filter-toggle{display:none !important}
body.page-reports #reportsPage .report-filter-card{padding:0;background:transparent;border:none;box-shadow:none;border-radius:0}
body.page-reports #reportsPage .report-filter-card::before{display:none}
body.page-reports #reportsPage .report-filter-strip{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
body.page-reports #reportsPage .filter-pill{background:#fff;border:1px solid #dddddd;border-radius:2px;min-height:42px;padding:0 12px;box-shadow:none}
body.page-reports #reportsPage .date-pill{display:flex;align-items:center;gap:10px;min-width:276px;padding:0 10px}
body.page-reports #reportsPage .date-pill-body{display:flex;align-items:center;gap:10px;min-width:0}
body.page-reports #reportsPage .pill-label{display:none}
body.page-reports #reportsPage .compact-date-inputs{display:flex;align-items:center;gap:10px}
body.page-reports #reportsPage .compact-date-control{border:none;background:transparent;padding:0;height:auto;min-height:0;font-weight:600;color:#2b2b2b;width:140px}
body.page-reports #reportsPage .date-separator{color:#8f8f8f}
body.page-reports #reportsPage .loyverse-nav-btn{width:24px;height:24px;border-radius:2px;background:#fafafa;border:1px solid #e3e3e3;color:#777}
body.page-reports #reportsPage .select-pill{min-width:130px;display:flex;align-items:center;gap:8px;padding-right:34px;position:relative}
body.page-reports #reportsPage .select-pill::after{content:"▾";position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#777;font-size:12px;pointer-events:none}
body.page-reports #reportsPage .loyverse-select-control{appearance:none;-webkit-appearance:none;padding:0;min-height:0;height:auto;font-size:14px;background:transparent;border:none;font-weight:600;color:#2b2b2b;width:100%}
body.page-reports #reportsPage .pill-icon{font-size:15px;opacity:.8}
body.page-reports #reportsPage .loyverse-action-row{margin-left:auto;display:flex;gap:8px;align-items:center}
body.page-reports #reportsPage .loyverse-action-button{height:42px;min-height:42px;padding:0 16px;border-radius:2px;font-size:14px;font-weight:700}
body.page-reports #reportsPage .loyverse-action-row .button.ghost{background:#fff;border:1px solid #dddddd;color:#2d2d2d}
body.page-reports #reportsPage .loyverse-action-row .button.primary,
body.page-reports #reportsPage .loyverse-action-row a.button.primary{background:#4caf50;border-color:#4caf50;color:#fff}
body.page-reports #reportsPage .loyverse-preset-chips{margin-top:8px;display:flex;gap:8px}
body.page-reports #reportsPage .preset-chip{padding:6px 10px;border-radius:14px;border:1px solid #d9d9d9;background:#fff;color:#5d6369;font-size:12px}
body.page-reports #reportsPage .preset-chip.active{background:#eef8ee;border-color:#cfe6cf;color:#4b8d4d}
body.page-reports #reportsPage .reports-layout{display:grid;grid-template-columns:200px minmax(0,1fr);gap:14px;align-items:start}
body.page-reports #reportsPage .report-sidebar{background:#fff;border:1px solid #dfdfdf;border-radius:2px;box-shadow:none;padding:0;overflow:hidden}
body.page-reports #reportsPage .report-sidebar::before{content:"";display:block;height:0}
body.page-reports #reportsPage .report-menu-title{display:block;padding:14px 14px 2px;color:#5fae61;font-size:12px;font-weight:700;letter-spacing:0;text-transform:none}
body.page-reports #reportsPage .report-sidebar-hint{padding:0 14px 10px;color:#7f858b;font-size:12px;line-height:1.4;border-bottom:1px solid #efefef}
body.page-reports #reportsPage .report-menu-list{padding:4px 0;gap:0}
body.page-reports #reportsPage .report-menu-item{border:none;border-left:3px solid transparent;border-radius:0;background:#fff;padding:11px 14px;gap:10px;font-size:13px;font-weight:600;color:#2f2f2f}
body.page-reports #reportsPage .report-menu-item:hover{background:#f7f7f7}
body.page-reports #reportsPage .report-menu-item.active{background:#fff;border-left-color:#4caf50;color:#4caf50;box-shadow:none}
body.page-reports #reportsPage .report-menu-icon{width:18px;height:18px;background:transparent;border-radius:0;font-size:15px}
body.page-reports #reportsPage .report-content{display:grid;gap:14px}
body.page-reports #reportsPage .report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.page-reports #reportsPage .metric-card{background:#fff;border:1px solid #e0e0e0;border-radius:2px;box-shadow:none;padding:14px 16px;min-height:88px}
body.page-reports #reportsPage .metric-card p{font-size:12px;color:#6d7278;margin-bottom:4px}
body.page-reports #reportsPage .metric-card h2{font-size:23px;margin:0 0 4px;line-height:1.1}
body.page-reports #reportsPage .metric-icon{background:#f7f7f7;border:1px solid #ececec;border-radius:12px;width:34px;height:34px;font-size:16px}
body.page-reports #reportsPage .metric-note{font-size:12px;color:#7c8187}
body.page-reports #reportsPage .metric-card--accent{background:#fff}
body.page-reports #reportsPage .report-chart-panel,
body.page-reports #reportsPage .loyverse-table-panel{background:#fff;border:1px solid #dfdfdf;border-radius:2px;box-shadow:none;padding:0}
body.page-reports #reportsPage .panel-head{padding:14px 18px 10px;border-bottom:1px solid #eeeeee}
body.page-reports #reportsPage .panel-head h3{font-size:16px;margin:0 0 2px}
body.page-reports #reportsPage .panel-head p{font-size:12px;color:#7d848b;margin:0}
body.page-reports #reportsPage .report-panel-tools{display:flex;align-items:center;gap:10px}
body.page-reports #reportsPage #reportRangeBadge{background:#edf8ed;border:1px solid #d0e8d0;color:#4b8d4d;border-radius:16px;padding:6px 12px;font-size:12px;font-weight:700}
body.page-reports #reportsPage #reportPrintBtn{background:#fff;border:1px solid #dcdcdc;border-radius:16px;height:36px;padding:0 16px}
body.page-reports #reportsPage .report-chart-toolbar{padding:12px 18px;border-bottom:1px solid #f0f0f0;display:flex;align-items:center;gap:10px}
body.page-reports #reportsPage .chart-mode-chip{height:30px;padding:0 14px;border-radius:14px;border:1px solid #d7dbe0;background:#fff;color:#56606b;font-weight:700}
body.page-reports #reportsPage .chart-mode-chip.active{background:linear-gradient(135deg,#5b69ff,#5aa4ff);border-color:#5b69ff;color:#fff;box-shadow:0 8px 18px rgba(91,105,255,.22)}
body.page-reports #reportsPage .chart-help-text{margin-left:auto;color:#8a8f96;font-size:12px}
body.page-reports #reportsPage .compact-chart{padding:10px 18px 18px;min-height:340px}
body.page-reports #reportsPage .loyverse-bar-chart .bar-row{padding:8px 8px;border-radius:0;border:none}
body.page-reports #reportsPage .loyverse-bar-chart .bar-row:hover{background:#fafafa}
body.page-reports #reportsPage .bar-label{font-size:12px;color:#6f7780}
body.page-reports #reportsPage .bar-track{height:14px;background:linear-gradient(180deg,#edf3ff 0%,#e7eefb 100%);border-radius:999px;border:1px solid #e1e9fb}
body.page-reports #reportsPage .bar-fill{background:linear-gradient(135deg,#5b69ff 0%,#5aa4ff 100%);border-radius:999px;box-shadow:0 6px 14px rgba(91,105,255,.22)}
body.page-reports #reportsPage .bar-value{font-size:12px;font-weight:600;color:#5d6369}
body.page-reports #reportsPage .table-wrap{padding:0 0 10px}
body.page-reports #reportsPage table{width:100%;border-collapse:collapse}
body.page-reports #reportsPage th,body.page-reports #reportsPage td{padding:12px 18px;border-bottom:1px solid #efefef;font-size:13px;text-align:left}
body.page-reports #reportsPage th{font-size:12px;color:#7b8289;font-weight:700;background:#fff}
body.page-reports #reportsPage tbody tr:hover td{background:#fafafa}
@media (max-width: 1200px){body.page-reports #reportsPage .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 980px){body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr;padding:10px} body.page-reports .sidebar.loyverse-sidebar-shell{display:none} body.page-reports #reportsPage .reports-layout{grid-template-columns:1fr} body.page-reports #reportsPage .report-filter-strip{display:grid;grid-template-columns:1fr 1fr} body.page-reports #reportsPage .date-pill{grid-column:1/-1} body.page-reports #reportsPage .loyverse-action-row{grid-column:1/-1;margin-left:0;justify-content:flex-start}}
@media (max-width: 720px){body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr} body.page-reports #reportsPage .select-pill,body.page-reports #reportsPage .date-pill{min-width:0;width:100%} body.page-reports #reportsPage .compact-date-control{width:100%} body.page-reports #reportsPage .compact-date-inputs{width:100%} body.page-reports #reportsPage .loyverse-action-row{display:grid;grid-template-columns:1fr 1fr;width:100%} body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr} body.page-reports #reportsPage .panel-head,.body.page-reports #reportsPage th,.body.page-reports #reportsPage td{padding-left:12px;padding-right:12px}}
@media (max-width: 520px){body.page-reports #reportsPage .loyverse-action-row{grid-template-columns:1fr} body.page-reports #reportsPage .report-menu-list{grid-template-columns:1fr}}

/* v24 reports sidebar rework */
body.page-reports .layout-shell.loyverse-site-shell{
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  max-width: 100%;
}
body.page-reports .sidebar.loyverse-sidebar-shell{
  grid-template-columns: 56px;
  top: 54px;
}
body.page-reports .sidebar-rail.card{
  background:#fff;
  border:1px solid #d7d7d7;
  border-radius:0;
  box-shadow:none;
  padding:0;
  overflow:hidden;
  min-height:calc(100vh - 72px);
}
body.page-reports .sidebar-rail.card::before{
  content:"👤";
  display:grid;
  place-items:center;
  height:58px;
  font-size:28px;
  color:#8d949d;
  border-bottom:1px solid #e7e7e7;
  background:#fff;
}
body.page-reports .rail-link{
  width:56px;
  height:48px;
  border-radius:0;
  border-bottom:1px solid #ededed;
  font-size:22px;
  color:#6f7782;
  background:#fff;
}
body.page-reports .rail-link:hover{background:#f7f7f7}
body.page-reports .rail-link.active{
  background:#fff;
  color:#49a84f;
  box-shadow:inset 4px 0 0 #49a84f;
}
body.page-reports .main-content.loyverse-main-content{min-width:0}
body.page-reports #reportsPage .report-topbar{
  border-radius:0;
  border:1px solid #dbdbdb;
  box-shadow:none;
  padding:8px 10px 10px;
  background:#f3f3f3;
}
body.page-reports #reportsPage .reports-layout{
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 12px;
  align-items:start;
}
body.page-reports #reportsPage .report-sidebar{
  background:#efefef;
  border:1px solid #d7d7d7;
  border-radius:0;
  box-shadow:none;
  padding:0;
  overflow:hidden;
  position:sticky;
  top:80px;
  max-height:calc(100vh - 96px);
}
body.page-reports #reportsPage .report-account-card{
  display:grid;
  grid-template-columns:40px 1fr 18px;
  align-items:center;
  gap:10px;
  padding:12px 12px;
  background:#f7f7f7;
  border-bottom:1px solid #dddddd;
}
body.page-reports #reportsPage .report-account-avatar{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#fff;
  border:1px solid #dbdbdb;
  font-size:20px;
}
body.page-reports #reportsPage .report-account-meta strong{
  display:block;
  font-size:13px;
  font-weight:700;
  color:#333;
  line-height:1.2;
}
body.page-reports #reportsPage .report-account-meta span{
  display:block;
  font-size:11px;
  color:#6f7782;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.page-reports #reportsPage .report-account-caret{color:#888;font-size:12px}
body.page-reports #reportsPage .report-nav-group-title{
  padding:12px 14px;
  font-size:13px;
  font-weight:700;
  color:#444;
  border-bottom:1px solid #e1e1e1;
  background:#ededed;
}
body.page-reports #reportsPage .report-menu-title,
body.page-reports #reportsPage .report-sidebar-hint{display:none}
body.page-reports #reportsPage .report-menu-list{padding:0}
body.page-reports #reportsPage .report-menu-item{
  width:100%;
  display:grid;
  grid-template-columns:20px 1fr;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border:0;
  border-bottom:1px solid #e6e6e6;
  background:#efefef;
  color:#2d3136;
  font-size:13px;
  font-weight:600;
  border-radius:0;
  text-align:left;
  box-shadow:none;
}
body.page-reports #reportsPage .report-menu-item:hover{background:#f7f7f7}
body.page-reports #reportsPage .report-menu-item.active{
  background:#fff;
  color:#4caf50;
  box-shadow:inset 4px 0 0 #4caf50;
}
body.page-reports #reportsPage .report-menu-icon{
  width:18px;
  text-align:center;
  font-size:16px;
  opacity:.9;
}
body.page-reports #reportsPage .report-secondary-nav{
  border-top:1px solid #dcdcdc;
  background:#ededed;
}
body.page-reports #reportsPage .secondary-nav-link{
  display:grid;
  grid-template-columns:20px 1fr;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  font-size:13px;
  color:#4a4f57;
  text-decoration:none;
  border-bottom:1px solid #e4e4e4;
}
body.page-reports #reportsPage .secondary-nav-link:hover{background:#f7f7f7}
body.page-reports #reportsPage .report-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
body.page-reports #reportsPage .metric-card,
body.page-reports #reportsPage .report-chart-panel,
body.page-reports #reportsPage .loyverse-table-panel{
  border-radius:0;
  border:1px solid #dcdcdc;
  box-shadow:none;
}
body.page-reports #reportsPage .metric-card{padding:8px 10px}
body.page-reports #reportsPage .report-chart-panel,
body.page-reports #reportsPage .loyverse-table-panel{background:#fff}
body.page-reports #reportsPage .report-panel-head,
body.page-reports #reportsPage .panel-head{padding-bottom:8px;border-bottom:1px solid #ececec}
@media (max-width: 980px){
  body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr;padding:10px}
  body.page-reports .sidebar.loyverse-sidebar-shell{display:none}
  body.page-reports #reportsPage .reports-layout{grid-template-columns:1fr}
  body.page-reports #reportsPage .report-sidebar{position:relative;top:auto;max-height:none}
  body.page-reports #reportsPage .report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v25 single integrated reports sidebar like reference */
body.page-reports .layout-shell.loyverse-site-shell{
  grid-template-columns:270px minmax(0,1fr);
  padding:0 16px 16px;
  gap:0;
  max-width:none;
}
body.page-reports .sidebar.loyverse-sidebar-shell{
  grid-template-columns:64px minmax(0,1fr);
  position:sticky;
  top:74px;
  align-self:start;
}
body.page-reports .sidebar-rail{
  display:flex;
  width:auto;
  min-height:calc(100vh - 96px);
  border-radius:0;
  border:1px solid #dfe3e8;
  border-right:0;
  box-shadow:none;
  background:#f5f5f6;
  padding-top:8px;
  gap:0;
}
body.page-reports .rail-link{
  width:64px;height:56px;border-radius:0;font-size:22px;color:#667085;border-left:4px solid transparent;
}
body.page-reports .rail-link:hover{background:#eceff1}
body.page-reports .rail-link.active{background:#fff;color:#49a84f;box-shadow:none;border-left-color:#49a84f}
body.page-reports .sidebar-panel{
  display:flex;
  min-height:calc(100vh - 96px);
  border-radius:0;
  border:1px solid #dfe3e8;
  border-left:0;
  box-shadow:none;
  background:#f3f3f4;
  padding:0;
  overflow:hidden;
}
body.page-reports .reports-sidebar-panel{display:flex;flex-direction:column;justify-content:flex-start}
body.page-reports .reports-sidebar-combined{display:flex;flex-direction:column;min-height:100%}
body.page-reports .combined-account-card{
  margin:0;
  border:0;
  border-bottom:1px solid #dfe3e8;
  border-radius:0;
  background:#f3f3f4;
  padding:12px 14px;
}
body.page-reports .combined-account-card strong{font-size:14px}
body.page-reports .combined-account-card span{font-size:12px;color:#6f7785}
body.page-reports .report-nav-group-title{
  margin:0;
  padding:12px 14px;
  background:#ececed;
  border-bottom:1px solid #dfe3e8;
  color:#303545;
  font-size:14px;
  font-weight:800;
}
body.page-reports .combined-report-menu-list{display:block;padding:0;background:#fff;border-bottom:1px solid #dfe3e8}
body.page-reports .combined-report-menu-list .report-menu-item{
  width:100%;display:flex;align-items:center;gap:12px;text-align:left;
  border:0;border-bottom:1px solid #eceff3;border-radius:0;
  background:#fff;padding:12px 14px;font-size:14px;font-weight:700;color:#243041;
}
body.page-reports .combined-report-menu-list .report-menu-item:last-child{border-bottom:0}
body.page-reports .combined-report-menu-list .report-menu-item:hover{background:#f9fafb}
body.page-reports .combined-report-menu-list .report-menu-item.active{
  background:#fff;color:#49a84f;box-shadow:inset 4px 0 0 #49a84f;
}
body.page-reports .combined-report-menu-list .report-menu-item.active .report-menu-icon{background:transparent;color:#49a84f}
body.page-reports .report-menu-icon{width:22px;min-width:22px;background:transparent;border-radius:0;padding:0}
body.page-reports .secondary-group-title{margin-top:auto}
body.page-reports .combined-secondary-nav{display:block;background:#f3f3f4}
body.page-reports .combined-secondary-nav .secondary-nav-link{
  display:flex;align-items:center;gap:12px;padding:14px;color:#303545;text-decoration:none;border-bottom:1px solid #dfe3e8;background:#f3f3f4;font-weight:700
}
body.page-reports .combined-secondary-nav .secondary-nav-link:hover{background:#ececed}
body.page-reports #reportsPage .reports-layout.single-sidebar-layout{display:block}
body.page-reports #reportsPage .report-content{display:grid;gap:16px}
body.page-reports #reportsPage .report-topbar{margin-top:0;border-radius:0;padding:10px 10px 12px;background:#fff;border:1px solid #dfe3e8;border-top:0;box-shadow:none}
body.page-reports #reportsPage .report-filter-card{padding:0;background:transparent;border:0;box-shadow:none;width:100%}
body.page-reports #reportsPage .report-filter-strip{grid-template-columns:minmax(340px,1.6fr) repeat(3,minmax(150px,.8fr)) auto;gap:8px}
body.page-reports #reportsPage .report-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
body.page-reports #reportsPage .metric-card,
body.page-reports #reportsPage .report-chart-panel,
body.page-reports #reportsPage .loyverse-table-panel{border-radius:0;box-shadow:none;border:1px solid #dfe3e8}
body.page-reports #reportsPage .report-chart-panel,
body.page-reports #reportsPage .loyverse-table-panel{padding:14px 16px;background:#fff}
body.page-reports #reportsPage .table-wrap{border-radius:0}
body.page-reports .main-content.loyverse-main-content{padding-top:0}
@media (max-width:1200px){
  body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:240px minmax(0,1fr)}
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr 1fr;}
  body.page-reports #reportsPage .date-pill{grid-column:1 / -1}
}
@media (max-width:980px){
  body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr;padding:0 10px 10px}
  body.page-reports .sidebar.loyverse-sidebar-shell{display:none}
  body.page-reports #reportsPage .report-filter-strip{grid-template-columns:1fr}
  body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  body.page-reports #reportsPage .report-kpis{grid-template-columns:1fr}
  body.page-reports #reportsPage .loyverse-action-row{grid-template-columns:1fr}
}

/* v26 integrated loyverse-like reports sidebar fix */
body.page-reports .layout-shell.loyverse-site-shell{
  display:grid !important;
  grid-template-columns:270px minmax(0,1fr) !important;
  gap:0 !important;
  padding:0 16px 16px !important;
  align-items:start;
}
body.page-reports .sidebar.loyverse-sidebar-shell{
  display:grid !important;
  grid-template-columns:56px 214px !important;
  width:270px !important;
  min-width:270px !important;
  position:sticky !important;
  top:74px !important;
  align-self:start !important;
}
body.page-reports .sidebar-rail.card,
body.page-reports .sidebar-rail{
  display:flex !important;
  flex-direction:column !important;
  width:56px !important;
  min-width:56px !important;
  min-height:calc(100vh - 96px) !important;
  background:#f4f4f4 !important;
  border:1px solid #dcdfe3 !important;
  border-right:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:hidden !important;
}
body.page-reports .sidebar-rail::before{
  content:"👤";
  display:grid;
  place-items:center;
  height:58px;
  font-size:28px;
  color:#98a1ab;
  border-bottom:1px solid #e3e6e9;
  background:#f4f4f4;
}
body.page-reports .rail-link{
  width:56px !important;
  height:58px !important;
  display:grid !important;
  place-items:center !important;
  font-size:24px !important;
  border-left:4px solid transparent !important;
  border-radius:0 !important;
  color:#687280 !important;
  background:transparent !important;
}
body.page-reports .rail-link:hover{background:#ededed !important;}
body.page-reports .rail-link.active{
  background:#fff !important;
  color:#49a84f !important;
  border-left-color:#49a84f !important;
  box-shadow:none !important;
}
body.page-reports .sidebar-panel,
body.page-reports .sidebar.loyverse-sidebar-shell .sidebar-panel,
body.page-reports .reports-sidebar-panel{
  display:flex !important;
  flex-direction:column !important;
  width:214px !important;
  min-width:214px !important;
  min-height:calc(100vh - 96px) !important;
  background:#f3f3f3 !important;
  border:1px solid #dcdfe3 !important;
  border-left:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:hidden !important;
}
body.page-reports .reports-sidebar-combined{display:flex !important;flex-direction:column !important;min-height:100%;}
body.page-reports .combined-account-card{
  display:grid !important;
  grid-template-columns:28px 1fr 16px;
  align-items:center;
  gap:10px;
  padding:12px 14px !important;
  margin:0 !important;
  background:#f3f3f3 !important;
  border:0 !important;
  border-bottom:1px solid #e0e3e7 !important;
}
body.page-reports .report-account-avatar{font-size:24px;display:grid;place-items:center;color:#858f99;}
body.page-reports .report-account-meta strong{display:block;font-size:14px;font-weight:700;color:#2f3541;line-height:1.1;}
body.page-reports .report-account-meta span{display:block;font-size:12px;color:#7a838f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:150px;}
body.page-reports .report-account-caret{color:#7d8691;font-size:12px;justify-self:end;}
body.page-reports .report-nav-group-title{
  margin:0 !important;
  padding:10px 14px !important;
  font-size:13px !important;
  font-weight:700 !important;
  color:#303642 !important;
  background:#ececec !important;
  border-bottom:1px solid #dfe3e8 !important;
}
body.page-reports .combined-report-menu-list,
body.page-reports .combined-secondary-nav{display:block !important;background:#f3f3f3 !important;}
body.page-reports .combined-report-menu-list .report-menu-item,
body.page-reports .combined-secondary-nav .secondary-nav-link{
  display:flex !important;
  align-items:center !important;
  gap:12px !important;
  width:100% !important;
  padding:11px 14px !important;
  border:0 !important;
  border-bottom:1px solid #e7e8eb !important;
  border-radius:0 !important;
  background:#f3f3f3 !important;
  color:#2f3541 !important;
  font-size:13px !important;
  font-weight:600 !important;
  text-align:left !important;
  text-decoration:none !important;
  box-shadow:none !important;
}
body.page-reports .combined-report-menu-list .report-menu-item:hover,
body.page-reports .combined-secondary-nav .secondary-nav-link:hover{background:#ececec !important;}
body.page-reports .combined-report-menu-list .report-menu-item.active{
  background:#fff !important;
  color:#49a84f !important;
  box-shadow:inset 4px 0 0 #49a84f !important;
}
body.page-reports .report-menu-icon{width:22px;min-width:22px;display:grid;place-items:center;font-size:17px;background:transparent !important;color:inherit !important;}
body.page-reports .secondary-group-title{margin-top:auto !important;}
body.page-reports .main-content.loyverse-main-content{padding-top:0 !important;min-width:0;}
@media (max-width: 1100px){
  body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr !important;padding:10px !important;}
  body.page-reports .sidebar.loyverse-sidebar-shell{display:none !important;}
}

/* v27 reports sidebar unified like Loyverse */
body.page-reports .layout-shell.loyverse-site-shell{
  grid-template-columns: 272px minmax(0,1fr) !important;
  gap: 18px !important;
  padding: 10px 12px 18px !important;
  max-width: none !important;
}
body.page-reports .sidebar.loyverse-sidebar-shell{
  display:grid !important;
  grid-template-columns: 60px 212px;
  align-items:start;
  gap:0;
  min-height: calc(100vh - 86px);
  position: sticky;
  top: 56px;
}
body.page-reports .sidebar-rail,
body.page-reports .sidebar-rail.card{
  display:flex !important;
  flex-direction:column;
  width:60px;
  min-height: calc(100vh - 86px);
  background:#fafafa !important;
  border:1px solid #dddddd !important;
  border-right:0 !important;
  border-radius: 0 !important;
  box-shadow:none !important;
  overflow:hidden;
  padding:0 !important;
}
body.page-reports .sidebar-rail::before,
body.page-reports .sidebar-rail.card::before{
  content:"" !important;
  display:none !important;
}
body.page-reports .sidebar-rail .rail-link{
  height:56px;
  display:grid;
  place-items:center;
  font-size:26px;
  color:#80868b;
  border-bottom:1px solid #e7e7e7;
  border-left:4px solid transparent;
  background:#fafafa;
  border-radius:0 !important;
}
body.page-reports .sidebar-rail .rail-link:hover{background:#f2f2f2;color:#5f6368}
body.page-reports .sidebar-rail .rail-link.active{
  color:#49a84f;
  background:#fff;
  border-left-color:#49a84f;
}
body.page-reports .sidebar-panel,
body.page-reports .sidebar.loyverse-sidebar-shell .sidebar-panel,
body.page-reports .reports-sidebar-panel{
  display:flex !important;
  min-height: calc(100vh - 86px);
  background:#f4f4f4 !important;
  border:1px solid #dddddd !important;
  border-left:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:hidden;
}
body.page-reports .reports-sidebar-combined{
  display:flex !important;
  flex-direction:column;
  min-height:100%;
  width:100%;
}
body.page-reports .combined-account-card{
  display:grid !important;
  grid-template-columns: 34px 1fr 14px;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  background:#efefef !important;
  border-bottom:1px solid #dcdcdc !important;
  border-radius:0 !important;
  margin:0 !important;
}
body.page-reports .report-account-avatar{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;
  background:#d7d7d7;color:#6c6c6c;font-size:20px;
}
body.page-reports .combined-account-card strong{font-size:13px;line-height:1.1;color:#2b2b2b}
body.page-reports .combined-account-card span{font-size:12px;color:#6e6e6e}
body.page-reports .report-account-caret{justify-self:end;color:#7d7d7d;font-size:12px}
body.page-reports .report-nav-group-title{
  margin:0 !important;
  padding:12px 14px;
  background:#e9e9e9;
  color:#3a3a3a !important;
  font-size:13px;
  font-weight:700;
  border-top:1px solid #f7f7f7;
  border-bottom:1px solid #dcdcdc;
}
body.page-reports .secondary-group-title{margin-top:auto !important;border-top:1px solid #d7d7d7}
body.page-reports .combined-report-menu-list,
body.page-reports .combined-secondary-nav{
  display:block !important;
  background:#f4f4f4 !important;
  border-bottom:1px solid #dcdcdc;
}
body.page-reports .combined-report-menu-list .report-menu-item,
body.page-reports .combined-secondary-nav .secondary-nav-link{
  width:100%;
  display:grid;
  grid-template-columns:22px 1fr;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  margin:0;
  border:0 !important;
  border-left:4px solid transparent !important;
  border-bottom:1px solid #e6e6e6 !important;
  border-radius:0 !important;
  background:#f4f4f4 !important;
  color:#2f2f2f !important;
  font-size:12px !important;
  font-weight:600;
  line-height:1.25;
  text-align:left;
  text-decoration:none;
  box-shadow:none !important;
}
body.page-reports .combined-report-menu-list .report-menu-item:last-child,
body.page-reports .combined-secondary-nav .secondary-nav-link:last-child{border-bottom:0 !important}
body.page-reports .combined-report-menu-list .report-menu-item:hover,
body.page-reports .combined-secondary-nav .secondary-nav-link:hover{background:#eeeeee !important}
body.page-reports .combined-report-menu-list .report-menu-item.active{
  background:#ffffff !important;
  color:#49a84f !important;
  border-left-color:#49a84f !important;
}
body.page-reports .report-menu-icon,
body.page-reports .combined-secondary-nav .secondary-nav-link span:first-child{
  display:grid;place-items:center;width:18px;height:18px;font-size:16px;
  background:none !important;border-radius:0;color:inherit;
}
body.page-reports .main-content.loyverse-main-content{
  padding-top:0 !important;
}
@media (max-width: 1100px){
  body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr !important;padding:10px !important}
  body.page-reports .sidebar.loyverse-sidebar-shell{display:none !important}
}

/* v28 reports sidebar redesign: single integrated Loyverse-like sidebar */
body.page-reports{
  --reports-rail-width: 58px;
  --reports-sidebar-width: 272px;
}
body.page-reports .layout-shell.loyverse-site-shell{
  max-width:none;
  width:100%;
  margin:0;
  padding:10px 12px 16px;
  display:grid;
  grid-template-columns: var(--reports-sidebar-width) minmax(0,1fr);
  gap:14px;
  align-items:start;
}
body.page-reports .sidebar.loyverse-sidebar-shell{
  width:var(--reports-sidebar-width);
  min-width:var(--reports-sidebar-width);
  position:sticky;
  top:54px;
  display:grid;
  grid-template-columns: var(--reports-rail-width) 1fr;
  gap:0;
  padding:0;
  background:transparent;
  min-height:calc(100vh - 64px);
  border-radius:0;
  box-shadow:none;
}
body.page-reports .sidebar-rail,
body.page-reports .sidebar-rail.card{
  display:flex !important;
  flex-direction:column;
  align-items:stretch;
  gap:0;
  padding:0;
  margin:0;
  min-height:calc(100vh - 64px);
  background:#f3f3f3;
  border:1px solid #d9d9d9;
  border-right:none;
  border-radius:0;
  box-shadow:none;
  overflow:hidden;
}
body.page-reports .sidebar-rail::before,
body.page-reports .sidebar-rail.card::before{
  content:"👤";
  display:grid;
  place-items:center;
  height:62px;
  font-size:30px;
  color:#9aa0a6;
  border-bottom:1px solid #dddddd;
  background:#f7f7f7;
}
body.page-reports .sidebar-rail .rail-link{
  width:100%;
  height:58px;
  border-radius:0;
  border:none;
  border-left:4px solid transparent;
  border-bottom:1px solid #dddddd;
  display:grid;
  place-items:center;
  font-size:24px;
  color:#6e7681;
  background:#f3f3f3;
  text-decoration:none;
}
body.page-reports .sidebar-rail .rail-link:hover{background:#ededed;color:#60656c}
body.page-reports .sidebar-rail .rail-link.active{
  background:#fff;
  color:#49a84f;
  border-left-color:#49a84f;
  box-shadow:none;
}
body.page-reports .sidebar-panel,
body.page-reports .sidebar.loyverse-sidebar-shell .sidebar-panel,
body.page-reports .reports-sidebar-panel{
  display:block !important;
  min-height:calc(100vh - 64px);
  padding:0;
  margin:0;
  background:#f3f3f3;
  border:1px solid #d9d9d9;
  border-radius:0;
  border-left:none;
  box-shadow:none;
  overflow:hidden;
}
body.page-reports .reports-sidebar-combined{
  display:flex;
  flex-direction:column;
  min-height:100%;
}
body.page-reports .combined-account-card{
  display:grid;
  grid-template-columns:32px 1fr 18px;
  align-items:center;
  gap:10px;
  padding:12px 12px 10px;
  background:#ececec;
  border-bottom:1px solid #d8d8d8;
  border-radius:0;
}
body.page-reports .report-account-avatar{
  width:26px;
  height:26px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#d7d7d7;
  color:#626972;
  font-size:18px;
}
body.page-reports .report-account-meta strong{
  display:block;
  font-size:13px;
  line-height:1.1;
  color:#2a2a2a;
  font-weight:700;
}
body.page-reports .report-account-meta span{
  display:block;
  margin-top:2px;
  color:#6b7280;
  font-size:12px;
  line-height:1.2;
}
body.page-reports .report-account-caret{color:#7d828a;font-size:12px;justify-self:end}
body.page-reports .report-nav-group-title{
  padding:10px 12px;
  margin:0;
  background:#e8e8e8;
  border-top:1px solid #d9d9d9;
  border-bottom:1px solid #d9d9d9;
  color:#333;
  font-size:13px;
  font-weight:700;
}
body.page-reports .secondary-group-title{margin-top:auto}
body.page-reports .combined-report-menu-list,
body.page-reports .combined-secondary-nav{
  display:block;
  background:#f3f3f3;
}
body.page-reports .combined-report-menu-list .report-menu-item,
body.page-reports .combined-secondary-nav .secondary-nav-link{
  width:100%;
  display:grid;
  grid-template-columns:20px 1fr;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:none;
  border-left:4px solid transparent;
  border-bottom:1px solid #e0e0e0;
  border-radius:0;
  background:#f3f3f3;
  color:#222;
  text-align:left;
  font-size:12px;
  line-height:1.25;
  font-weight:600;
  text-decoration:none;
  box-shadow:none;
}
body.page-reports .combined-report-menu-list .report-menu-item:hover,
body.page-reports .combined-secondary-nav .secondary-nav-link:hover{background:#ededed}
body.page-reports .combined-report-menu-list .report-menu-item.active{
  background:#fff;
  color:#49a84f;
  border-left-color:#49a84f;
}
body.page-reports .combined-report-menu-list .report-menu-item:last-child,
body.page-reports .combined-secondary-nav .secondary-nav-link:last-child{border-bottom:none}
body.page-reports .report-menu-icon,
body.page-reports .combined-secondary-nav .secondary-nav-link span:first-child{
  display:grid;
  place-items:center;
  width:20px;
  color:#6b7280;
  background:transparent;
  border-radius:0;
  font-size:16px;
}
body.page-reports .combined-report-menu-list .report-menu-item.active .report-menu-icon{color:#49a84f}
body.page-reports #reportsPage .report-topbar{
  border-radius:0;
  box-shadow:none;
  border:1px solid #dddddd;
  padding:12px;
}
body.page-reports #reportsPage .report-title-block{display:none}
body.page-reports #reportsPage .report-filter-card{
  border:none;
  box-shadow:none;
  border-radius:0;
  padding:0;
}
body.page-reports #reportsPage .report-filter-strip{gap:8px}
body.page-reports #reportsPage .filter-pill,
body.page-reports #reportsPage .loyverse-action-row .button,
body.page-reports #reportsPage .compact-control{
  border-radius:0;
}
body.page-reports .main-content.loyverse-main-content{padding-top:2px}
@media (max-width:1100px){
  body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr;padding:8px}
  body.page-reports .sidebar.loyverse-sidebar-shell{display:none}
}

/* v29 rebuilt reports sidebar based on Loyverse reference */
body.page-reports .layout-shell.loyverse-site-shell{
  grid-template-columns: 272px minmax(0,1fr) !important;
  gap: 22px !important;
  padding: 12px 14px 20px !important;
  align-items: start;
}
body.page-reports .sidebar.loyverse-sidebar-shell{
  display:grid !important;
  grid-template-columns: 58px 214px !important;
  gap:0 !important;
  position:sticky;
  top:54px;
  align-self:start;
}
body.page-reports .sidebar-rail,
body.page-reports .sidebar-rail.card{
  display:flex !important;
  flex-direction:column;
  align-items:stretch;
  background:#f3f3f3 !important;
  border:1px solid #dddddd !important;
  border-right:none !important;
  border-radius:0 !important;
  min-height:calc(100vh - 70px) !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:hidden;
}
body.page-reports .sidebar-rail::before,
body.page-reports .sidebar-rail.card::before{display:none !important;content:none !important}
body.page-reports .sidebar-rail .rail-link{
  width:58px !important;
  height:48px !important;
  display:grid;
  place-items:center;
  border-radius:0 !important;
  border-bottom:1px solid #e2e2e2 !important;
  border-left:4px solid transparent;
  color:#5f6368 !important;
  font-size:24px !important;
  background:#f7f7f7 !important;
}
body.page-reports .sidebar-rail .rail-link:hover{background:#efefef !important;color:#42474d !important}
body.page-reports .sidebar-rail .rail-link.active{
  background:#fff !important;
  color:#4caf50 !important;
  border-left-color:#4caf50 !important;
  box-shadow:none !important;
}
body.page-reports .sidebar-panel,
body.page-reports .sidebar.loyverse-sidebar-shell .sidebar-panel,
body.page-reports .reports-sidebar-panel{
  display:flex !important;
  background:#f3f3f3 !important;
  border:1px solid #dddddd !important;
  border-left:none !important;
  border-radius:0 !important;
  min-height:calc(100vh - 70px) !important;
  box-shadow:none !important;
  padding:0 !important;
  overflow:hidden;
}
body.page-reports .reports-sidebar-combined.loyverse-fresh-sidebar{
  display:flex !important;
  flex-direction:column;
  width:100%;
  min-height:100%;
  background:#f3f3f3;
}
body.page-reports .loyverse-account-card{
  display:grid;
  grid-template-columns: 34px 1fr 18px;
  gap:10px;
  align-items:center;
  padding:12px 10px;
  background:#f3f3f3;
  border-bottom:1px solid #dddddd;
  border-radius:0 !important;
  box-shadow:none !important;
  margin:0 !important;
}
body.page-reports .loyverse-account-card .report-account-avatar{
  width:34px;height:34px;border-radius:50%;display:grid;place-items:center;
  background:#ececec;color:#9aa0a6;font-size:20px;
}
body.page-reports .loyverse-account-card .report-account-meta strong{
  display:block;font-size:13px;font-weight:600;color:#30343a;line-height:1.15;
}
body.page-reports .loyverse-account-card .report-account-meta span{
  display:block;font-size:12px;color:#7a7f86;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
body.page-reports .loyverse-account-card .report-account-caret{color:#8b8f94;font-size:12px;justify-self:end}
body.page-reports .report-section-block{
  border-bottom:1px solid #dddddd;
  background:#f3f3f3;
}
body.page-reports .report-section-head{
  width:100%;border:0;background:#f3f3f3;color:#333;font-weight:600;font-size:13px;
  display:flex;align-items:center;justify-content:space-between;padding:11px 10px;cursor:default;
}
body.page-reports .report-section-head .section-caret{color:#7f858c;font-size:12px}
body.page-reports .combined-report-menu-list.loyverse-report-list{
  display:flex;flex-direction:column;gap:0;background:#fff;border-top:1px solid #e3e3e3;
}
body.page-reports .loyverse-report-list .report-menu-item{
  width:100%;display:grid;grid-template-columns:24px 1fr;gap:10px;align-items:center;
  padding:9px 12px;background:#fff;border:0;border-bottom:1px solid #ececec;border-left:4px solid transparent;
  border-radius:0;text-align:left;color:#2d3135;font-size:13px;font-weight:500;box-shadow:none;
}
body.page-reports .loyverse-report-list .report-menu-item:hover{background:#fafafa}
body.page-reports .loyverse-report-list .report-menu-item.active{
  background:#fff;border-left-color:#4caf50;color:#4caf50;box-shadow:none;
}
body.page-reports .loyverse-report-list .report-menu-icon{font-size:18px;line-height:1}
body.page-reports .loyverse-side-groups{display:flex;flex-direction:column;flex:1;background:#f3f3f3}
body.page-reports .loyverse-side-row{
  display:grid;grid-template-columns:24px 1fr 16px;gap:10px;align-items:center;
  padding:11px 12px;color:#2e3338;text-decoration:none;font-size:13px;font-weight:500;
  border-bottom:1px solid #dddddd;background:#f3f3f3;
}
body.page-reports .loyverse-side-row:hover{background:#eeeeee}
body.page-reports .loyverse-side-row .row-icon{font-size:18px;line-height:1;display:grid;place-items:center}
body.page-reports .loyverse-side-row .row-caret{justify-self:end;color:#8a9096;font-size:12px}
body.page-reports .main-content.loyverse-main-content{min-width:0}

@media (max-width: 1100px){
  body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr !important;padding:10px !important}
  body.page-reports .sidebar.loyverse-sidebar-shell{display:none !important}
}

/* v30 reports single sidebar */
body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:280px minmax(0,1fr);gap:16px;padding:12px 14px 16px;align-items:start}
body.page-reports .loyverse-report-sidebar-single{position:sticky;top:58px;background:#f3f3f3;border:1px solid #d7d7d7;border-radius:0;box-shadow:none;min-height:calc(100vh - 74px)}
body.page-reports .loyverse-sidebar-single-inner{display:flex;flex-direction:column}
body.page-reports .loyverse-sidebar-profile{display:grid;grid-template-columns:40px 1fr 18px;align-items:center;gap:10px;padding:12px 14px;border-bottom:1px solid #dcdcdc;background:#efefef}
body.page-reports .profile-avatar{width:32px;height:32px;border-radius:50%;background:#d9d9d9;display:grid;place-items:center;font-size:18px}
body.page-reports .profile-copy{display:flex;flex-direction:column;line-height:1.2}
body.page-reports .profile-copy strong{font-size:13px;color:#202124}
body.page-reports .profile-copy span{font-size:12px;color:#6b7280;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.page-reports .profile-caret{font-size:11px;color:#7b7f84}
body.page-reports .loyverse-nav-group{border-bottom:1px solid #e1e1e1;background:#f7f7f7}
body.page-reports .loyverse-nav-group[open]{background:#f3f3f3}
body.page-reports .loyverse-nav-group summary{list-style:none;display:grid;grid-template-columns:22px 1fr 18px;align-items:center;gap:10px;padding:12px 14px;font-size:14px;font-weight:600;color:#2e3135;cursor:pointer}
body.page-reports .loyverse-nav-group summary::-webkit-details-marker{display:none}
body.page-reports .group-icon{display:grid;place-items:center;font-size:16px}
body.page-reports .group-caret{justify-self:end;font-size:11px;color:#7b7f84;transition:transform .2s ease}
body.page-reports .loyverse-nav-group[open] .group-caret{transform:rotate(180deg)}
body.page-reports .loyverse-group-items{display:flex;flex-direction:column;background:#fff;border-top:1px solid #e5e5e5}
body.page-reports .loyverse-group-items .report-menu-item, body.page-reports .loyverse-link-list a{display:grid;grid-template-columns:22px 1fr;align-items:center;gap:10px;padding:11px 14px;border:0;border-left:3px solid transparent;border-bottom:1px solid #efefef;background:#fff;color:#222;font-size:14px;text-align:left;text-decoration:none}
body.page-reports .loyverse-group-items .report-menu-item:hover, body.page-reports .loyverse-link-list a:hover{background:#fafafa}
body.page-reports .loyverse-group-items .report-menu-item.active{border-left-color:#4caf50;background:#f8fbf7;color:#2f7d32;font-weight:700}
body.page-reports .report-menu-icon{display:grid;place-items:center;font-size:15px}
body.page-reports .main-content.loyverse-main-content{min-width:0}
@media (max-width: 1100px){body.page-reports .layout-shell.loyverse-site-shell{grid-template-columns:1fr}body.page-reports .loyverse-report-sidebar-single{position:relative;top:auto;min-height:auto}}

/* v31 single-column loyverse sidebar */
.sidebar-app-single{
  width:280px;
  min-width:280px;
  background:#f2f2f2;
  border-right:1px solid #d8d8d8;
  padding:0;
  box-shadow:none;
  border-radius:0;
}
.sidebar-onepiece{
  display:grid;
  grid-template-columns:60px 1fr;
  min-height:calc(100vh - 66px);
  background:#f3f3f3;
}
.sidebar-rail-lite{
  background:#efefef;
  border-right:1px solid #d7d7d7;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  padding-top:10px;
}
.rail-profile-icon,
.rail-icon{
  width:100%;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  color:#666;
  text-decoration:none;
  border-bottom:1px solid #e1e1e1;
  background:#efefef;
}
.rail-profile-icon{font-size:28px;height:62px}
.rail-icon.active{
  background:#fff;
  color:#2faa49;
  box-shadow:inset 4px 0 0 #45ae48;
}
.sidebar-menu-shell{
  background:#f3f3f3;
  min-width:0;
}
.sidebar-account-head{
  display:grid;
  grid-template-columns:34px 1fr 18px;
  align-items:center;
  gap:10px;
  padding:14px 10px;
  border-bottom:1px solid #d8d8d8;
  background:#f3f3f3;
}
.sidebar-account-avatar{font-size:28px;color:#8b8b8b;line-height:1;text-align:center}
.sidebar-account-copy strong{display:block;font-size:13px;font-weight:700;color:#333}
.sidebar-account-copy span{display:block;font-size:12px;color:#777;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:165px}
.sidebar-account-caret,.sidebar-summary-caret{color:#888;font-size:12px}
.sidebar-dropdown{border-bottom:1px solid #dcdcdc}
.sidebar-dropdown summary{
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 10px;
  font-size:14px;
  font-weight:700;
  color:#444;
  cursor:pointer;
  background:#f1f1f1;
}
.sidebar-dropdown[open] summary{background:#efefef}
.sidebar-dropdown summary::-webkit-details-marker{display:none}
.sidebar-dropdown-list{background:#f6f6f6}
.sidebar-subitem{
  display:block;
  width:100%;
  border:0;
  background:transparent;
  text-align:left;
  padding:13px 14px 13px 18px;
  color:#2c2c2c;
  font:inherit;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  border-top:1px solid #ececec;
  position:relative;
}
.sidebar-subitem:hover{background:#f0f0f0}
.sidebar-subitem.active,
.sidebar-subitem.active-link{
  background:#fff;
  color:#70af2e;
}
.sidebar-subitem.active::before,
.sidebar-subitem.active-link::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#45ae48;
}
.sidebar-subitem.report-menu-item{border-radius:0;box-shadow:none}
.page-reports .reports-layout{grid-template-columns:1fr;margin-top:0}
.page-reports .report-content{max-width:none}
.page-reports .report-topbar{margin-top:12px}
.main-content.loyverse-main-content{min-width:0}
@media (max-width: 980px){
  .sidebar-app-single{width:240px;min-width:240px}
  .sidebar-onepiece{grid-template-columns:52px 1fr}
}
@media (max-width: 820px){
  .layout-shell.loyverse-site-shell{grid-template-columns:1fr}
  .sidebar-app-single{display:none}
}


/* v32 unified shell */
body{background:#f3f5f7;color:#253238}
.app-header-loyverse{position:sticky;top:0;z-index:50;height:56px;background:#2ab56f;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 18px;box-shadow:0 1px 0 rgba(0,0,0,.06)}
.app-header-left,.app-header-right{display:flex;align-items:center;gap:12px}.app-header-menu{width:34px;height:34px;border:0;background:transparent;color:#fff;font-size:20px;cursor:pointer;border-radius:8px}.app-header-title{font-size:20px;font-weight:700;line-height:1}.app-header-chip{background:rgba(255,255,255,.16);padding:7px 12px;border-radius:999px;font-size:12px;font-weight:700}
.loyverse-site-shell{max-width:none;margin:0;padding:20px 20px 24px;grid-template-columns:300px minmax(0,1fr);gap:18px}
.loyverse-main-content{display:grid;gap:18px;align-content:start}
.card,.topbar,.panel-large,.panel-side,.mini-summary,.metric-card{border:1px solid #dfe5e8 !important;box-shadow:none !important;border-radius:14px}
.topbar{padding:18px 20px;margin-bottom:0;background:#fff}
.topbar .page-title{font-size:28px;line-height:1.15;margin-bottom:6px}.topbar p{color:#6c7a80}
.eyebrow{background:#eef8f2;color:#1f8f58;font-size:11px;padding:5px 10px}
.filter-bar{gap:10px}.control,.text-input,.search-box{height:42px;border-radius:10px;border:1px solid #d7dfe3;background:#fff}.search-box{padding:0 12px}.button{height:42px;padding:0 14px;border-radius:10px;border:1px solid #d7dfe3;background:#fff}.button.primary{background:#2ab56f;color:#fff;border-color:#2ab56f}.button.ghost{background:#fff}
.metrics-grid,.two-col-layout,.mini-metrics-grid,.settings-grid,.settings-grid-wide{gap:16px}.panel-large,.panel-side{padding:20px}.panel-head{margin-bottom:14px}.panel-head h3{font-size:20px}
.table-wrap table{min-width:640px}.table-wrap th{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:#738088;background:#f8fafb}.table-wrap th,.table-wrap td{padding:14px 12px}
.mini-summary span,.metric-note,.panel-head p,.sidebar-user-copy span,.sidebar-brand-copy span{color:#738088}
.loyverse-accordion-sidebar{background:#eef1f3;border:1px solid #d8dee2;border-radius:14px;padding:14px;position:sticky;top:76px;min-height:calc(100vh - 96px);justify-content:flex-start;gap:14px}
.sidebar-header-card,.sidebar-user-panel{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #dde4e7;border-radius:12px;padding:12px 14px}
.sidebar-brand-mark{width:42px;height:42px;border-radius:12px;background:#2ab56f;color:#fff;display:grid;place-items:center;font-size:20px}
.sidebar-brand-copy strong,.sidebar-user-copy strong{display:block;font-size:14px}.sidebar-brand-copy span,.sidebar-user-copy span{display:block;font-size:12px;margin-top:2px}
.sidebar-user-avatar{width:38px;height:38px;border-radius:50%;background:#e6f5ec;color:#1f8f58;display:grid;place-items:center;font-weight:800}
.sidebar-accordion-nav{display:grid;gap:10px}
.sidebar-home-link,.sidebar-dropdown>summary,.sidebar-subitem{display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none;color:#2d3a40;border-radius:10px}
.sidebar-home-link,.sidebar-dropdown>summary{min-height:44px;padding:0 12px;background:#fff;border:1px solid #dde4e7;cursor:pointer;list-style:none;font-weight:700}.sidebar-dropdown>summary::-webkit-details-marker{display:none}
.summary-left{display:flex;align-items:center;gap:10px}.menu-icon{width:18px;text-align:center;color:#5b6870}
.sidebar-dropdown{background:#f6f8f9;border:1px solid #dde4e7;border-radius:12px;overflow:hidden}.sidebar-dropdown.open-current,.sidebar-home-link.active-link{border-color:#b7dbc8;background:#f6fcf8}
.sidebar-dropdown[open]>summary{background:#f6fcf8;color:#176c43}.sidebar-summary-caret{font-size:12px;color:#7a8790;transition:transform .18s}.sidebar-dropdown[open] .sidebar-summary-caret{transform:rotate(180deg)}
.sidebar-dropdown-list{display:grid;gap:4px;padding:8px}
.sidebar-subitem{width:100%;border:0;background:transparent;text-align:left;padding:10px 12px;font:inherit;font-size:13px;cursor:pointer;justify-content:flex-start}.sidebar-subitem:hover{background:#edf3f5}.sidebar-subitem.active,.sidebar-subitem.active-link{background:#2ab56f;color:#fff;font-weight:700}
#productsPage,#categoriesPage,#staffPage,#transactionsPage,#settingsPage,#dashboardPage,#reportsPage{display:grid;gap:16px}
.settings-grid>.card,.settings-grid-wide>.card{background:#fff}
.report-filter-card{padding:12px 14px;border-radius:14px;border:1px solid #dde4e7;background:#fff}.report-filter-strip{display:flex;flex-wrap:wrap;gap:10px;align-items:center}.filter-pill{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid #d8dee2;border-radius:12px;background:#f8fafb}.date-pill{flex:1 1 320px;justify-content:space-between}.date-pill-body{display:grid;gap:4px;flex:1}.pill-label{font-size:11px;font-weight:700;color:#738088;text-transform:uppercase}.compact-date-inputs{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:center}.date-separator{color:#738088}.select-pill{min-width:140px}.staff-pill{min-width:180px}.loyverse-action-row{margin-left:auto}.report-preset-chips{margin-top:10px}
.report-chart-panel,.loyverse-table-panel{background:#fff}
@media (max-width: 1100px){.loyverse-site-shell{grid-template-columns:1fr}.loyverse-accordion-sidebar{position:relative;top:auto;min-height:auto}.loyverse-main-content{order:2}}
@media (max-width: 720px){.loyverse-site-shell{padding:14px}.app-header-title{font-size:17px}.topbar{padding:16px}.topbar .page-title{font-size:24px}.report-filter-strip{display:grid;grid-template-columns:1fr}.date-pill{flex:auto}.loyverse-action-row{margin-left:0}.button,.control,.text-input{width:100%}.topbar-actions{display:grid;grid-template-columns:1fr}.sidebar-dropdown-list{padding:6px}.sidebar-home-link,.sidebar-dropdown>summary{min-height:42px}}

/* ===== v33 infographic dashboard theme ===== */
:root {
  --bg: #eef3fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #75809a;
  --line: #dde6f3;
  --primary: #3558e6;
  --soft: #f4f7fd;
  --accent: #5f7cff;
  --app-max-width: 1600px;
  --sidebar-width: 308px;
  --radius: 22px;
  --button-radius: 14px;
  --shadow: 0 18px 40px rgba(28, 47, 94, 0.08);
}

body {
  background:
    radial-gradient(circle at top left, rgba(95,124,255,.10), transparent 28%),
    radial-gradient(circle at right 15%, rgba(0,195,255,.09), transparent 24%),
    linear-gradient(180deg, #f4f7fc 0%, #edf2f9 100%);
  color: var(--text);
}

.card,
.topbar,
.panel-large,
.panel-side,
.mini-summary,
.metric-card,
.search-box,
.control,
.text-input,
.button,
.sidebar,
.table-wrap,
table,
.modal-content {
  box-shadow: var(--shadow);
}

.app-header-loyverse {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 18px;
  background: linear-gradient(90deg, #3659e9 0%, #4a7df2 55%, #53a6ff 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(53, 88, 230, 0.22);
}

.app-header-left,
.app-header-right,
.app-header-title-wrap { display:flex; align-items:center; gap:14px; }
.app-header-menu {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.app-header-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.app-header-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-weight: 700;
}

.layout-shell.loyverse-site-shell {
  max-width: 1680px;
  padding: 22px;
  grid-template-columns: 308px minmax(0, 1fr);
  gap: 22px;
}

.infographic-sidebar {
  top: 98px;
  min-height: calc(100vh - 120px);
  padding: 0;
  border: 1px solid rgba(223, 230, 243, .9);
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(246,249,255,.96) 100%);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.sidebar-stack {
  padding: 18px;
  display: grid;
  gap: 16px;
}
.sidebar-hero-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #3558e6 0%, #5c8cff 100%);
  color: #fff;
}
.sidebar-brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.18);
  font-size: 24px;
}
.sidebar-brand-copy strong { display:block; font-size: 1rem; }
.sidebar-brand-copy span { display:block; margin-top:4px; font-size:.82rem; color: rgba(255,255,255,.8); }
.infographic-user-panel {
  display:flex;
  align-items:center;
  gap:12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f5f8ff;
  border: 1px solid #e5ebf8;
}
.sidebar-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  background: linear-gradient(135deg, #6ec4ff, #6d7cff);
  color:#fff;
  font-weight:800;
}
.sidebar-user-copy strong{display:block;font-size:.95rem}
.sidebar-user-copy span{display:block;margin-top:3px;color:var(--muted);font-size:.78rem}

.infographic-nav {
  display: grid;
  gap: 12px;
}
.sidebar-section-caption {
  padding: 4px 6px 0;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8b95ab;
  font-weight: 800;
}
.nav-pill,
.sidebar-dropdown summary,
.sidebar-subitem {
  border-radius: 16px;
}
.sidebar-home-link,
.sidebar-dropdown summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-decoration:none;
  padding: 13px 14px;
  color: var(--text);
  font-weight: 700;
  background: #fff;
  border: 1px solid #e4eaf5;
  cursor: pointer;
  list-style: none;
}
.sidebar-dropdown summary::-webkit-details-marker { display: none; }
.summary-left { display:flex; align-items:center; gap:12px; }
.menu-icon {
  width: 30px;
  height: 30px;
  display:grid;
  place-items:center;
  border-radius: 10px;
  background: #edf3ff;
  color: #4f67da;
  font-size: 14px;
  flex: 0 0 30px;
}
.sidebar-home-link.active-link,
.sidebar-dropdown.open-current > summary {
  background: linear-gradient(90deg, rgba(53,88,230,.10), rgba(95,124,255,.02));
  border-color: rgba(53,88,230,.18);
}
.sidebar-summary-caret { color:#90a0bf; }
.sidebar-dropdown-list {
  display: grid;
  gap: 8px;
  padding: 10px 8px 4px 12px;
}
.sidebar-subitem {
  display:block;
  width:100%;
  border: 0;
  background: transparent;
  color: #5e6c87;
  text-align: left;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  text-decoration:none;
  cursor:pointer;
}
.sidebar-subitem:hover,
.sidebar-subitem.active,
.sidebar-subitem.active-link {
  background: #edf3ff;
  color: #3558e6;
}
.sidebar-insight-card {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f1f54, #263e8f);
  color:#fff;
  margin-top: 6px;
}
.sidebar-insight-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #63d4ff;
  box-shadow: 0 0 0 8px rgba(99,212,255,.14);
}
.sidebar-insight-card strong,
.sidebar-insight-card span { display:block; }
.sidebar-insight-card span { color: rgba(255,255,255,.72); font-size:.8rem; margin-top:2px; }

.main-content.loyverse-main-content {
  display: grid;
  gap: 20px;
}
.loyverse-topbar {
  position: relative;
  overflow: hidden;
  border: 1px solid #dfe8f5;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,250,255,.96));
  border-radius: 24px;
  padding: 24px 24px 20px;
}
.loyverse-topbar::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -70px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(95,124,255,.13), transparent 62%);
}
.page-title { font-size: 1.65rem; letter-spacing: -.02em; }
.topbar p,
.panel-head p { color: var(--muted); }
.eyebrow {
  background: #ebf1ff;
  color: #5570ea;
  font-size: .7rem;
  letter-spacing: .12em;
}
.filter-bar {
  display:flex;
  gap:12px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.search-box,
.control,
.text-input {
  border: 1px solid #dee6f4;
  background: rgba(255,255,255,.82);
  min-height: 46px;
}
.button {
  min-height: 46px;
  border: 1px solid #dce5f5;
  background: rgba(255,255,255,.9);
  font-weight: 800;
}
.button.primary {
  background: linear-gradient(135deg, #3558e6, #6480ff);
  color: #fff;
  border-color: transparent;
}
.button.ghost:hover,
.button:hover {
  transform: translateY(-1px);
}

.metrics-grid,
.report-kpis { gap: 16px; }
.metric-card {
  position: relative;
  padding: 22px;
  border: 1px solid #e1e8f5;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}
.metric-card p { font-size: .86rem; font-weight: 700; color:#7e8aa3; }
.metric-card h2 { margin-top: 14px; margin-bottom: 8px; font-size: 2rem; letter-spacing: -.03em; }
.metric-note { font-size:.78rem; }
.metric-icon {
  border-radius: 20px;
  background: linear-gradient(135deg, #edf3ff, #f7f9ff);
  border: 1px solid #e1e9f7;
}
.metric-card:nth-child(1) .metric-icon { background: linear-gradient(135deg, #e8f0ff, #eef9ff); }
.metric-card:nth-child(2) .metric-icon { background: linear-gradient(135deg, #eef2ff, #f3eeff); }
.metric-card:nth-child(3) .metric-icon { background: linear-gradient(135deg, #ebf9ff, #f0fbff); }
.metric-card:nth-child(4) .metric-icon { background: linear-gradient(135deg, #fff1f5, #fff8fb); }
.metric-card--accent {
  background: linear-gradient(135deg, #3558e6 0%, #5978f8 100%);
  color: #fff;
}
.metric-card--accent p,
.metric-card--accent .metric-note,
.metric-card--accent h2 { color: #fff; }
.metric-card--accent .metric-icon {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.22);
}
.mini-metrics-grid { gap: 16px; }
.mini-summary {
  border: 1px solid #e1e8f5;
  background: linear-gradient(180deg, #fff, #f9fbff);
}
.mini-summary strong { font-size: 1.6rem; letter-spacing:-.02em; }

.two-col-layout,
.settings-grid,
.form-grid { gap: 18px; }
.panel-large,
.panel-side,
.table-wrap {
  border: 1px solid #dfe7f4;
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,255,.98) 100%);
}
.panel-head h3 { font-size: 1.12rem; letter-spacing: -.02em; }
.badge {
  background: #edf2ff;
  color: #5069de;
  border: 1px solid #dfe6f8;
}
.legend-list > * { border-radius: 14px; }

.table-wrap { overflow: auto; }
table { border-collapse: separate; border-spacing: 0; overflow: hidden; }
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f5f8fe;
  color: #7f8aa3;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
th, td { padding: 15px 16px; border-bottom: 1px solid #ebf0f7; }
tbody tr:hover td { background: #f8fbff; }

.report-topbar {
  position: relative;
  top: auto;
  z-index: 1;
}
.report-filter-card {
  width: 100%;
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: #f7faff;
  border: 1px solid #e1e8f7;
}
.report-filter-strip {
  display: grid;
  grid-template-columns: minmax(280px,1.5fr) repeat(3, minmax(150px, .7fr)) auto;
  gap: 10px;
  align-items: stretch;
}
.filter-pill {
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #dce5f4;
}
.pill-label { font-size: .72rem; color:#8b97af; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.pill-icon { width: 30px; height:30px; display:grid; place-items:center; background:#eff4ff; border-radius:10px; }
.nav-lite-btn.loyverse-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #eff4ff;
  border-color: #dfe6f8;
  color: #5570ea;
}
.compact-control,
.loyverse-select-control {
  min-width: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 6px 2px;
}
.date-pill-body { display:grid; gap:4px; flex:1; }
.compact-date-inputs { display:flex; align-items:center; gap:8px; }
.date-separator { color:#a1acc3; }
.report-action-row.loyverse-action-row { display:flex; gap:10px; justify-content:flex-end; }
.loyverse-action-button { min-width: 120px; }
.report-preset-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top: 10px; }
.preset-chip {
  border: 1px solid #dce5f4;
  background: #fff;
  color: #58657e;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}
.preset-chip.active { background:#3558e6; color:#fff; border-color:#3558e6; }

#reportChart,
#lineChart,
#donutChart {
  background: linear-gradient(180deg, rgba(255,255,255,.58), rgba(242,247,255,.72));
  border-radius: 18px;
  border: 1px dashed #dbe5f6;
}

.form-grid label span,
.settings-grid label span { display:block; margin-bottom:8px; font-weight:700; color:#68748c; }
.form-actions { display:flex; gap:12px; flex-wrap:wrap; }
.modal-content,
.login-card {
  border: 1px solid #dfe7f4;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,255,.98));
}

@media (max-width: 1280px) {
  .report-filter-strip { grid-template-columns: 1fr 1fr; }
  .report-action-row.loyverse-action-row { grid-column: 1 / -1; justify-content: stretch; }
  .loyverse-action-button { flex: 1; }
}

@media (max-width: 1100px) {
  .layout-shell.loyverse-site-shell { grid-template-columns: 1fr; }
  .infographic-sidebar { top: 0; min-height: auto; }
  .sidebar-stack { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .app-header-loyverse { height: auto; padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .layout-shell.loyverse-site-shell { padding: 14px; }
  .sidebar-stack { padding: 14px; }
  .sidebar-hero-card,
  .infographic-user-panel,
  .sidebar-insight-card { border-radius: 18px; }
  .loyverse-topbar { padding: 18px; }
  .report-filter-strip { grid-template-columns: 1fr; }
  .report-action-row.loyverse-action-row,
  .filter-bar,
  .topbar-actions { flex-direction: column; align-items: stretch; }
  .button,
  .search-box,
  .control,
  .text-input { width: 100%; }
}


/* ===== v34 infographic refinement ===== */
:root{
  --shell-bg:#eef4fb;
  --shell-panel:#ffffff;
  --shell-panel-2:#f7faff;
  --shell-ink:#16213a;
  --shell-soft:#7c89a2;
  --shell-line:#dfe8f4;
  --shell-primary:#556bff;
  --shell-primary-2:#6a8dff;
  --shell-cyan:#52d1ff;
  --shell-purple:#7d5cff;
}
body{
  background:
    radial-gradient(circle at 6% 8%, rgba(82,209,255,.18), transparent 22%),
    radial-gradient(circle at 94% 4%, rgba(125,92,255,.13), transparent 18%),
    linear-gradient(180deg, #f4f8fd 0%, #eef4fb 42%, #edf2f8 100%) !important;
}
.app-header-loyverse{
  background:linear-gradient(90deg,var(--shell-primary) 0%, var(--shell-primary-2) 52%, #5ca8ff 100%) !important;
  min-height:72px;
  border-bottom:1px solid rgba(255,255,255,.12);
}
.app-header-menu{
  border:1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15);
}
.app-header-chip{
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(10px);
}
.app-header-chip--ghost{color:rgba(255,255,255,.88)}
.layout-shell.loyverse-site-shell{
  max-width:1700px;
  gap:24px;
  padding:24px;
  grid-template-columns:320px minmax(0,1fr);
}
.infographic-sidebar{
  position:sticky;
  top:96px;
  min-height:calc(100vh - 120px);
  background:linear-gradient(180deg, rgba(255,255,255,.94) 0%, rgba(245,249,255,.98) 100%) !important;
  border:1px solid var(--shell-line) !important;
  border-radius:26px !important;
  overflow:hidden;
  box-shadow:0 24px 48px rgba(40,66,120,.08) !important;
}
.sidebar-stack{padding:20px;gap:18px}
.sidebar-hero-card{
  border-radius:22px;
  padding:18px;
  background:linear-gradient(140deg, #5b69ff 0%, #6f8cff 58%, #59c7ff 100%) !important;
  box-shadow:0 18px 28px rgba(91,105,255,.25);
}
.sidebar-brand-mark{
  width:58px;height:58px;border-radius:18px;background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(6px);
}
.infographic-user-panel{
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%) !important;
  border:1px solid var(--shell-line) !important;
  border-radius:20px !important;
}
.sidebar-user-avatar{
  width:48px;height:48px;border-radius:16px;
  background:linear-gradient(135deg,#55cfff,#6d74ff) !important;
  box-shadow:0 10px 20px rgba(85,207,255,.18);
}
.infographic-nav{gap:14px}
.sidebar-section-caption{
  padding:2px 8px 0;
  color:#8b96ac;
  font-size:.7rem;
}
.sidebar-home-link,
.sidebar-dropdown{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}
.sidebar-home-link,
.sidebar-dropdown summary{
  min-height:50px;
  border-radius:18px !important;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%) !important;
  border:1px solid var(--shell-line) !important;
  padding:0 14px !important;
  box-shadow:0 10px 24px rgba(27,52,97,.05) !important;
}
.sidebar-dropdown.open-current>summary,
.sidebar-home-link.active-link{
  background:linear-gradient(90deg, rgba(85,107,255,.12) 0%, rgba(82,209,255,.08) 100%) !important;
  border-color:#cfdafe !important;
  color:#2b3fae !important;
}
.menu-icon{
  width:34px;height:34px;border-radius:12px;
  background:linear-gradient(135deg,#eff4ff,#f6fbff) !important;
  border:1px solid #dbe5fb;
  color:#5c6ef6 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}
.sidebar-dropdown-list{
  gap:8px;
  padding:10px 6px 2px 10px !important;
}
.sidebar-subitem{
  border-radius:14px !important;
  min-height:40px;
  padding:10px 12px !important;
  color:#63708b !important;
}
.sidebar-subitem:hover,
.sidebar-subitem.active,
.sidebar-subitem.active-link{
  background:linear-gradient(90deg, rgba(85,107,255,.12), rgba(82,209,255,.06)) !important;
  color:#2c3db8 !important;
}
.sidebar-insight-card{
  border-radius:20px !important;
  background:linear-gradient(145deg,#152246 0%,#283884 52%, #334db5 100%) !important;
  box-shadow:0 16px 28px rgba(21,34,70,.2) !important;
}
.main-content.loyverse-main-content{gap:22px}
.topbar,.panel-large,.panel-side,.mini-summary,.metric-card,.modal-content,.login-card{
  border-radius:24px !important;
  border:1px solid var(--shell-line) !important;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%) !important;
  box-shadow:0 20px 36px rgba(27,52,97,.06) !important;
}
.loyverse-topbar{
  padding:26px !important;
  background:linear-gradient(135deg, rgba(255,255,255,.98) 0%, rgba(245,249,255,.98) 100%) !important;
}
.loyverse-topbar::before{
  content:""; position:absolute; right:-60px; top:-72px; width:230px; height:230px;
  background:radial-gradient(circle, rgba(85,107,255,.14) 0%, rgba(82,209,255,.09) 34%, transparent 64%) !important;
}
.eyebrow{
  background:linear-gradient(135deg,#edf2ff,#f3fbff) !important;
  color:#5a6cf4 !important;
  border:1px solid #dbe4ff;
}
.page-title{font-size:1.9rem !important;font-weight:800;letter-spacing:-.03em;color:var(--shell-ink)}
.topbar p,.panel-head p,.metric-note{color:var(--shell-soft) !important}
.search-box,.control,.text-input{
  min-height:48px;
  border-radius:15px !important;
  border:1px solid var(--shell-line) !important;
  background:#fff !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75), 0 8px 18px rgba(27,52,97,.04) !important;
}
.search-box{padding-left:14px;padding-right:14px}
.button{
  min-height:48px;
  border-radius:15px !important;
  font-weight:800;
  box-shadow:0 12px 24px rgba(27,52,97,.08) !important;
}
.button.primary{
  background:linear-gradient(135deg,#5b69ff 0%,#5aa4ff 100%) !important;
}
.button.ghost{
  background:linear-gradient(180deg,#ffffff 0%,#f6f9ff 100%) !important;
}
.metrics-grid,.mini-metrics-grid,.settings-grid,.form-grid,.two-col-layout{gap:18px !important}
.metric-card{padding:22px !important;overflow:hidden;position:relative}
.metric-card::after{
  content:"";position:absolute;right:-24px;bottom:-30px;width:110px;height:110px;border-radius:30px;
  background:radial-gradient(circle, rgba(85,107,255,.11) 0%, transparent 66%);
}
.metric-card--accent::after{background:radial-gradient(circle, rgba(255,255,255,.18) 0%, transparent 66%)}
.metric-card h2{font-size:2rem !important}
.metric-icon{width:64px;height:64px;border-radius:20px !important}
.mini-summary{padding:20px !important;position:relative;overflow:hidden}
.mini-summary::before{content:"";position:absolute;left:0;top:0;right:0;height:6px;background:linear-gradient(90deg,#5b69ff,#59c7ff)}
.mini-summary strong{font-size:1.7rem !important}
.panel-head{margin-bottom:18px}
.badge{border-radius:999px !important;padding:9px 14px !important;font-weight:800}
.table-wrap{border-radius:18px;background:#fff}
table{background:transparent !important;box-shadow:none !important}
th{
  background:#f5f9ff !important;
  color:#7b87a0 !important;
}
tbody tr:hover td{background:#f8fbff !important}
.table-footer{
  padding-top:16px;border-top:1px solid #eaf0f6;
}
.report-topbar{padding:0 !important;background:transparent !important;border:none !important;box-shadow:none !important}
.report-filter-card{
  padding:16px !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,#f7faff 0%,#ffffff 100%) !important;
  border:1px solid var(--shell-line) !important;
  box-shadow:0 16px 28px rgba(27,52,97,.05) !important;
}
.report-filter-strip{grid-template-columns:minmax(290px,1.4fr) repeat(3,minmax(170px,.7fr)) auto !important;gap:12px !important}
.filter-pill{
  min-height:64px;
  border-radius:18px !important;
  background:#fff !important;
  border:1px solid var(--shell-line) !important;
  box-shadow:0 10px 18px rgba(27,52,97,.04);
}
.pill-icon,.nav-lite-btn.loyverse-nav-btn{
  width:36px;height:36px;border-radius:12px !important;background:#edf3ff !important;border:1px solid #dce6ff !important;color:#5d6ef6 !important;
}
.preset-chip{padding:9px 15px !important;box-shadow:0 8px 16px rgba(27,52,97,.04)}
.preset-chip.active{background:linear-gradient(135deg,#5b69ff,#5aa4ff) !important}
#reportChart,#lineChart,#donutChart{border-radius:18px !important;background:linear-gradient(180deg,#ffffff 0%, #f7fbff 100%) !important}
body.page-reports #reportsPage .report-kpis,
.report-kpis{gap:16px !important}
body.page-reports #reportsPage .metric-card,
#reportsPage .metric-card{min-height:118px !important}
.settings-grid-wide .panel-large.full-span{padding:24px !important}
.form-grid label,.settings-grid label{display:block}
.form-grid label span,.settings-grid label span{font-size:.84rem;font-weight:800;color:#6f7d96}
.pagination button,.pagination a{
  min-width:40px;height:40px;border-radius:12px;border:1px solid var(--shell-line);background:#fff;box-shadow:0 8px 16px rgba(27,52,97,.05)
}
@media (max-width: 1100px){
  .layout-shell.loyverse-site-shell{grid-template-columns:1fr !important;padding:16px !important}
  .infographic-sidebar{display:none}
  body.sidebar-open .infographic-sidebar{display:block;position:fixed;z-index:80;left:12px;right:12px;top:84px;min-height:auto;max-height:calc(100vh - 96px);overflow:auto}
}
@media (max-width: 780px){
  .app-header-loyverse{min-height:64px;padding:12px 14px !important}
  .app-header-right{width:100%;justify-content:flex-end}
  .app-header-chip--ghost{display:none}
  .page-title{font-size:1.5rem !important}
  .loyverse-topbar{padding:20px !important}
  .metric-card h2{font-size:1.6rem !important}
  .mini-summary strong{font-size:1.35rem !important}
  .report-filter-strip{grid-template-columns:1fr !important}
}


/* v35 infographic refinement */
:root{
  --shell-primary:#4f67ff;
  --shell-primary-2:#57c7ff;
  --shell-ink:#17203a;
  --shell-soft:#73809a;
  --shell-line:#e6edf8;
}
body{
  background:
    radial-gradient(circle at top left, rgba(87,199,255,.14), transparent 26%),
    radial-gradient(circle at top right, rgba(79,103,255,.12), transparent 24%),
    linear-gradient(180deg, #f4f7fd 0%, #eef4fb 100%);
}
body.dark{
  background:linear-gradient(180deg,#0b1220 0%, #101a2d 100%);
}
.app-header-loyverse{
  background:linear-gradient(90deg,#5668ff 0%,#4c84ff 45%,#57c7ff 100%) !important;
  box-shadow:0 14px 34px rgba(62,92,200,.22) !important;
}
.layout-shell.loyverse-site-shell{
  grid-template-columns:310px minmax(0,1fr);
  align-items:start;
  padding:28px;
  gap:26px;
}
.infographic-sidebar{
  background:linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(245,249,255,.98) 100%) !important;
}
.sidebar-stack{display:grid;gap:18px;padding:22px}
.sidebar-hero-card{display:grid;grid-template-columns:58px 1fr;gap:14px;align-items:center}
.sidebar-brand-copy strong{display:block;font-size:1.08rem;color:#fff;margin-bottom:4px}
.sidebar-brand-copy span{display:block;font-size:.82rem;color:rgba(255,255,255,.86);line-height:1.45}
.infographic-user-panel{display:grid;grid-template-columns:48px 1fr;gap:12px;align-items:center;padding:14px 16px}
.sidebar-user-copy strong{display:block;font-size:.96rem;color:var(--shell-ink)}
.sidebar-user-copy span{display:block;font-size:.8rem;color:var(--shell-soft);margin-top:3px}
.sidebar-accordion-nav{display:grid;gap:12px}
.sidebar-home-link,
.sidebar-dropdown summary{
  position:relative;
  font-weight:800;
  letter-spacing:-.01em;
}
.sidebar-home-link span:last-child,
.sidebar-dropdown summary span:last-child{line-height:1.2}
.sidebar-summary-caret{font-size:12px;color:#8b96ac}
.sidebar-dropdown[open] > summary .sidebar-summary-caret{transform:rotate(180deg)}
.sidebar-dropdown-list{display:grid;gap:8px}
.sidebar-subitem{
  background:transparent;
  border:1px dashed transparent;
  font-weight:700;
}
.sidebar-subitem:hover,
.sidebar-subitem.active,
.sidebar-subitem.active-link{
  border-style:solid;
}
.sidebar-insight-card{
  display:grid;
  grid-template-columns:10px 1fr;
  gap:14px;
  align-items:start;
  padding:16px 18px !important;
}
.sidebar-insight-dot{width:10px;height:10px;border-radius:50%;background:#69f0ff;box-shadow:0 0 0 8px rgba(105,240,255,.12)}
.sidebar-insight-card strong{display:block;margin-bottom:4px;color:#fff}
.sidebar-insight-card span{display:block;color:rgba(255,255,255,.74);font-size:.82rem;line-height:1.45}
.topbar,.panel-large,.panel-side,.mini-summary,.metric-card{
  position:relative; overflow:hidden;
}
.topbar::after,.panel-large::after,.panel-side::after{
  content:""; position:absolute; right:-80px; top:-80px; width:180px; height:180px; border-radius:50%;
  background:radial-gradient(circle, rgba(87,199,255,.12) 0%, rgba(79,103,255,.08) 42%, transparent 68%);
  pointer-events:none;
}
.loyverse-topbar{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
}
.topbar-actions.filter-bar{justify-content:flex-end}
.metric-card{min-height:138px}
.metric-card:nth-child(1) .metric-icon{background:linear-gradient(135deg,#eff5ff,#f6fbff) !important;color:#5067ff}
.metric-card:nth-child(2) .metric-icon{background:linear-gradient(135deg,#eefcff,#f2f7ff) !important;color:#0ea5e9}
.metric-card:nth-child(3) .metric-icon{background:linear-gradient(135deg,#f3f0ff,#f6f8ff) !important;color:#7c3aed}
.metric-card:nth-child(4) .metric-icon{background:linear-gradient(135deg,#fff4f3,#fff8f5) !important;color:#f97316}
.metric-card p{font-size:.84rem;font-weight:700;letter-spacing:.01em}
.mini-summary{min-height:102px;display:flex;flex-direction:column;justify-content:center}
.panel-head h3{font-size:1.18rem}
.table-wrap{padding:6px}
table{min-width:680px}
th,td{padding:15px 14px}
th:first-child,td:first-child{padding-left:18px}
th:last-child,td:last-child{padding-right:18px}
.stock-pill,.status-pill{font-size:12px;padding:8px 12px}
.button{
  border-color:#d9e3f8;
}
.button.primary{
  border:none !important;
  color:#fff !important;
}
.button.primary:hover{filter:brightness(1.02)}
.search-box span{font-size:15px;color:#7d8aac}
.control,.text-input, .search-box{color:var(--shell-ink)}
.settings-grid-wide .panel-large,
#dashboardPage .panel-large,
#dashboardPage .panel-side,
#transactionsPage .panel-large,
#productsPage .panel-large,
#categoriesPage .panel-large,
#staffPage .panel-large,
#settingsPage .panel-large,
#reportsPage .panel-large{
  backdrop-filter:blur(8px);
}
.report-filter-card{padding:18px 18px 16px !important}
.report-filter-row + .report-filter-row{margin-top:14px;padding-top:14px}
.preset-chip.active{color:#fff !important;border-color:transparent !important}
.pagination .page-btn.active,.pagination .page-btn:hover{background:linear-gradient(135deg,#5b69ff,#5aa4ff);color:#fff;border-color:transparent}
.modal-card{background:linear-gradient(180deg,#ffffff 0%, #f9fbff 100%) !important;border:1px solid var(--shell-line) !important;box-shadow:0 28px 60px rgba(23,32,58,.18) !important}
.login-card{background:linear-gradient(180deg,rgba(255,255,255,.96) 0%, rgba(248,251,255,.98) 100%) !important}
@media (max-width: 1100px){
  .layout-shell.loyverse-site-shell{padding:18px;grid-template-columns:1fr !important}
}
@media (max-width: 820px){
  .loyverse-topbar{grid-template-columns:1fr !important}
  .topbar-actions.filter-bar{justify-content:stretch}
  .metric-card{min-height:auto}
}

.sidebar-mini-badge{margin-left:10px;display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#eef3ff;color:#5067ff;font-style:normal;font-size:11px;font-weight:800;border:1px solid #d8e3ff}

/* v38 products toolbar + compact search + mobile polish */
.products-toolbar{
  display:grid !important;
  grid-template-columns:minmax(220px, 1.1fr) minmax(260px, .95fr) auto;
  gap:12px;
  align-items:start;
  width:100%;
}
.products-search-box{
  min-width:0;
  width:100%;
  height:44px;
  padding:0 14px;
  border-radius:14px;
  background:rgba(255,255,255,.9);
  box-shadow:0 8px 22px rgba(44,57,95,.06);
}
.products-search-box input{
  min-width:0;
  font-size:14px;
}
.products-search-box span{
  font-size:14px;
  color:#7b8ab7;
}
.products-filter-grid{
  display:grid;
  grid-template-columns:1.15fr 1fr .72fr;
  gap:10px;
}
.products-action-row{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
#productsPage .topbar.card{
  row-gap:18px;
}
#productsPage .control,
#productsPage .text-input,
#productsPage .button{
  min-width:0;
}
#productsPage .compact-control{
  min-height:44px;
  padding:0 14px;
  border-radius:14px;
  background:rgba(255,255,255,.96);
  box-shadow:0 8px 22px rgba(44,57,95,.05);
}
#productsPage .topbar-actions.filter-bar .button{
  height:44px;
  white-space:nowrap;
}
#productsPage .topbar-actions.filter-bar .button.primary{
  min-width:132px;
}
#productsPage .mini-metrics-grid.manage-stats{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
@media (max-width: 1320px){
  .products-toolbar{grid-template-columns:minmax(220px,1fr) minmax(240px,.9fr);}
  .products-action-row{grid-column:1/-1;justify-content:flex-start;}
}
@media (max-width: 980px){
  .products-toolbar{grid-template-columns:1fr;}
  .products-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  .products-action-row{grid-column:auto;}
  #productsPage .mini-metrics-grid.manage-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 720px){
  .products-search-box{height:42px;border-radius:12px;}
  .products-filter-grid{grid-template-columns:1fr;}
  .products-action-row{display:grid;grid-template-columns:1fr 1fr;}
  .products-action-row .button{width:100%;justify-content:center;}
  #productsPage .topbar.card{padding:16px;}
}
@media (max-width: 560px){
  .products-action-row{grid-template-columns:1fr;}
  #productsPage .mini-metrics-grid.manage-stats{grid-template-columns:1fr;}
  #productsPage .page-title{font-size:2rem;}
  #productsPage .topbar .eyebrow{margin-bottom:8px;display:inline-flex;}
}


#productsPage .topbar.card{overflow:visible !important;}
#productsPage .products-action-row{position:relative;z-index:8;isolation:isolate;}
#productsPage .products-action-row .button{position:relative;z-index:9;pointer-events:auto;}
#productsPage .products-toolbar,
#productsPage .products-filter-grid,
#productsPage .products-search-box{position:relative;z-index:2;}

/* Space rent module */
.page-space_rent .topbar-actions.rent-toolbar { flex-wrap: wrap; gap: 10px; }
.compact-search { min-width: 260px; max-width: 360px; }
.rent-metrics .metric-card { min-height: 124px; }
.rent-overview-grid { align-items: start; }
.rent-type-stack { display: grid; gap: 12px; }
.muted-row { color: var(--muted); font-size: 12px; margin-top: 4px; }
.modal-content-wide { width: min(960px, calc(100vw - 32px)); }
.status-active { background: rgba(34,197,94,.12); color: #15803d; }
.rent-bar-chart .bar-fill { background: linear-gradient(90deg, var(--accent), #60a5fa); }
@media (max-width: 768px) {
  .compact-search { min-width: 100%; max-width: none; }
  .page-space_rent .topbar-actions.rent-toolbar > * { width: 100%; }
  .page-space_rent .topbar-actions.rent-toolbar .button { width: 100%; justify-content: center; }
}

.rent-shell-header,.rent-filter-card,.rent-subnav{margin-bottom:16px}
.rent-subnav{display:flex;flex-wrap:wrap;gap:10px;padding:12px}
.rent-subnav-link{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:999px;background:var(--soft);color:var(--text);text-decoration:none;font-weight:600;font-size:.94rem;border:1px solid transparent}
.rent-subnav-link.active{background:linear-gradient(135deg,var(--primary),var(--accent));color:#fff;box-shadow:0 10px 24px rgba(37,99,235,.18)}
.rent-overview-tables{align-items:start}
.compact-kpis .metric-card h2{font-size:1.5rem}
.rent-header-actions{justify-content:flex-end}
@media (max-width: 900px){
  .rent-subnav{padding:10px;gap:8px;overflow:auto;flex-wrap:nowrap}
  .rent-subnav-link{white-space:nowrap;font-size:.9rem;padding:9px 12px}
  .rent-header-actions{width:100%;justify-content:stretch}
}

/* v46 desktop click + mobile support hardening */
:root{
  --shell-sidebar-w: 290px;
}
.app-header-loyverse,
.infographic-sidebar,
.main-content,
#spaceRentPage,
#productsPage,
#reportsPage,
#dashboardPage,
#transactionsPage,
#settingsPage,
#categoriesPage,
#staffPage{
  position:relative;
  isolation:isolate;
}
.topbar::before,
.topbar::after,
.panel-large::before,
.panel-large::after,
.panel-side::before,
.panel-side::after,
.metric-card::before,
.metric-card::after,
.mini-summary::before,
.mini-summary::after,
.infographic-sidebar::before,
.infographic-sidebar::after,
.sidebar-hero-card::before,
.sidebar-hero-card::after{
  pointer-events:none !important;
}
.topbar > *,
.panel-large > *,
.panel-side > *,
.metric-card > *,
.mini-summary > *,
.infographic-sidebar > *,
.sidebar-stack > *{
  position:relative;
  z-index:1;
}
.button,
a.button,
button,
a,
input,
select,
textarea,
label,
summary,
.search-box,
.control,
.text-input,
.table-wrap,
.table-wrap *{
  pointer-events:auto;
}
body.page-space_rent .layout-shell.loyverse-site-shell,
body.page-products .layout-shell.loyverse-site-shell,
body.page-reports .layout-shell.loyverse-site-shell,
body.page-dashboard .layout-shell.loyverse-site-shell,
body.page-transactions .layout-shell.loyverse-site-shell,
body.page-settings .layout-shell.loyverse-site-shell,
body.page-categories .layout-shell.loyverse-site-shell,
body.page-staff .layout-shell.loyverse-site-shell{
  grid-template-columns: minmax(250px,var(--shell-sidebar-w)) minmax(0,1fr) !important;
  align-items:start;
  gap:22px;
}
.infographic-sidebar{
  position:sticky;
  top:76px;
  z-index:20;
}
.main-content{
  min-width:0;
  z-index:5;
}
body.page-space_rent .rent-shell-header,
body.page-space_rent .rent-subnav,
body.page-space_rent .rent-filter-card,
body.page-space_rent .metrics-grid,
body.page-space_rent .mini-metrics-grid,
body.page-space_rent .two-col-layout,
body.page-space_rent .panel-large,
body.page-space_rent .panel-side{
  overflow:visible !important;
}
body.page-space_rent .rent-shell-header .topbar-actions,
body.page-space_rent .rent-filter-card .topbar-actions,
body.page-products .products-toolbar,
body.page-transactions .topbar-actions,
body.page-reports .report-filter-strip{
  position:relative;
  z-index:15;
}
body.page-space_rent .button,
body.page-space_rent .control,
body.page-space_rent .search-box,
body.page-products .button,
body.page-products .control,
body.page-products .search-box,
body.page-reports .button,
body.page-reports .control,
body.page-reports .search-box{
  position:relative;
  z-index:20;
}
body.page-space_rent .rent-subnav{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding:12px;
}
body.page-space_rent .rent-subnav-link{
  flex:0 0 auto;
}
body.page-space_rent .rent-filter-card .topbar-actions{
  display:grid;
  grid-template-columns:minmax(240px,1.4fr) 220px 160px;
  gap:12px;
  align-items:center;
}
body.page-space_rent .rent-shell-header{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
}
body.page-space_rent .rent-shell-header .topbar-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(150px,1fr));
  gap:12px;
}
body.page-space_rent .metrics-grid,
body.page-space_rent .mini-metrics-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
body.page-space_rent .two-col-layout{
  grid-template-columns:minmax(0,1.6fr) minmax(320px,.9fr);
}
body.page-space_rent .compact-kpis{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
body.page-space_rent table{min-width:760px;}
@media (max-width: 1200px){
  body.page-space_rent .rent-shell-header,
  body.page-products .loyverse-topbar,
  body.page-transactions .loyverse-topbar,
  body.page-settings .loyverse-topbar,
  body.page-dashboard .loyverse-topbar,
  body.page-reports .loyverse-topbar{
    grid-template-columns:1fr !important;
  }
  body.page-space_rent .rent-shell-header .topbar-actions{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width: 1100px){
  .layout-shell.loyverse-site-shell{
    grid-template-columns:1fr !important;
    padding:14px !important;
  }
  .infographic-sidebar{
    display:none;
    position:fixed;
    left:12px;
    right:12px;
    top:72px;
    bottom:12px;
    max-height:none;
    overflow:auto;
    z-index:90;
  }
  body.sidebar-open .infographic-sidebar{display:block !important;}
  .main-content{width:100%;}
}
@media (max-width: 900px){
  body.page-space_rent .rent-filter-card .topbar-actions,
  body.page-products .products-toolbar,
  body.page-transactions .topbar-actions,
  body.page-reports .report-filter-strip{
    grid-template-columns:1fr !important;
  }
  body.page-space_rent .metrics-grid,
  body.page-space_rent .mini-metrics-grid,
  body.page-space_rent .compact-kpis,
  body.page-products .metrics-grid,
  body.page-products .mini-metrics-grid,
  body.page-dashboard .metrics-grid,
  body.page-dashboard .mini-metrics-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  body.page-space_rent .two-col-layout,
  body.page-dashboard .two-col-layout{
    grid-template-columns:1fr !important;
  }
}
@media (max-width: 640px){
  .app-header-loyverse{padding:0 12px !important;height:58px;}
  .app-header-title{font-size:18px !important;}
  .app-header-chip--ghost{display:none !important;}
  .main-content{padding:0 !important;}
  .topbar,.panel-large,.panel-side,.metric-card,.mini-summary{border-radius:18px !important;}
  body.page-space_rent .rent-shell-header .topbar-actions,
  body.page-space_rent .rent-filter-card .topbar-actions,
  body.page-products .products-toolbar,
  body.page-transactions .topbar-actions,
  body.page-reports .report-filter-strip,
  .topbar-actions.filter-bar{
    grid-template-columns:1fr !important;
  }
  .button,.control,.text-input,.search-box{width:100% !important;}
  body.page-space_rent .metrics-grid,
  body.page-space_rent .mini-metrics-grid,
  body.page-space_rent .compact-kpis,
  body.page-products .metrics-grid,
  body.page-products .mini-metrics-grid,
  body.page-dashboard .metrics-grid,
  body.page-dashboard .mini-metrics-grid,
  body.page-reports .report-kpis{
    grid-template-columns:1fr !important;
  }
  body.page-space_rent .rent-subnav{
    flex-wrap:nowrap;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:6px;
  }
  body.page-space_rent .rent-subnav-link{
    white-space:nowrap;
  }
  body.page-space_rent table,
  body.page-products table,
  body.page-transactions table,
  body.page-reports table{
    min-width:640px;
  }
}

.chart-hint{display:flex;gap:16px;align-items:center;justify-content:flex-end;margin-top:10px;color:var(--muted);font-size:12px}.legend-line{display:inline-block;width:18px;height:3px;border-radius:999px;margin-right:6px;vertical-align:middle}.legend-sales{background:var(--accent)}.legend-profit{background:#63aef7}


/* v48 desktop header removal + fixed sidebar + dashboard gross sales fix */
body{padding-top:0 !important;}
.app-header-loyverse{display:none !important;}
.layout-shell.loyverse-site-shell{padding-top:18px !important;align-items:start;}
.sidebar.infographic-sidebar{position:sticky !important;top:18px !important;height:calc(100vh - 36px);overflow:auto;overscroll-behavior:contain;}
.sidebar.infographic-sidebar::-webkit-scrollbar{width:8px}.sidebar.infographic-sidebar::-webkit-scrollbar-thumb{background:#d7dfec;border-radius:999px}
.main-content.loyverse-main-content{min-width:0;}
body.page-dashboard .metric-card.drill-card{background:#fff !important;border:1px solid #dfe5e8 !important;}
body.page-dashboard .metric-card.drill-card p,
body.page-dashboard .metric-card.drill-card .metric-note,
body.page-dashboard .metric-card.drill-card h2{color:#111827 !important;}
body.page-dashboard .metric-card.drill-card .metric-icon{background:linear-gradient(135deg,#e8f0ff,#eef9ff) !important;color:#5067ff !important;}
body.page-dashboard .topbar.card{grid-template-columns:1.1fr 1.4fr;align-items:start;}
body.page-dashboard .topbar-actions.filter-bar{align-items:flex-start;}
@media (max-width: 980px){
  .app-header-loyverse{display:flex !important;position:sticky;top:0;z-index:80;height:56px;padding:0 12px;background:linear-gradient(90deg,#5d5fef 0%,#4ab3f4 100%) !important;}
  .layout-shell.loyverse-site-shell{padding-top:10px !important;}
  .sidebar.infographic-sidebar{position:relative !important;top:auto !important;height:auto;overflow:visible;}
}


/* v49 page isolation + desktop shell fixes */
:root{--desktop-shell-pad:16px;}
.page-shell{display:grid;gap:18px;}
[data-page-toolbar]{position:relative;z-index:3;}
body.page-dashboard #dashboardPage .metrics-grid .metric-card:first-child h2,
body.page-dashboard #dashboardPage .metrics-grid .metric-card:first-child p,
body.page-dashboard #dashboardPage .metrics-grid .metric-card:first-child .metric-note{color:#111827 !important;opacity:1 !important;text-shadow:none !important;filter:none !important;}
body.page-dashboard #dashboardPage .metrics-grid .metric-card:first-child{background:#fff !important;border:1px solid #dfe5e8 !important;}
@media (min-width: 981px){
  body{height:100vh;overflow:hidden;}
  .app-header-loyverse,.app-shell-header,.global-shell-header,.infographic-shell-header,.top-gradient-header{display:none !important;}
  .layout-shell.loyverse-site-shell{max-width:none !important;grid-template-columns:320px minmax(0,1fr) !important;gap:18px !important;padding:var(--desktop-shell-pad) !important;height:100vh;align-items:start;}
  .sidebar.infographic-sidebar{position:sticky !important;top:var(--desktop-shell-pad) !important;height:calc(100vh - (var(--desktop-shell-pad) * 2));overflow:auto;align-self:start;margin:0 !important;}
  .main-content.loyverse-main-content{height:calc(100vh - (var(--desktop-shell-pad) * 2));overflow:auto;padding:0 !important;margin:0 !important;scrollbar-gutter:stable;}
  .page-shell > .topbar.card.loyverse-topbar:first-child{margin-top:0 !important;}
}
@media (max-width: 980px){
  body{height:auto;overflow:auto;}
  .main-content.loyverse-main-content{height:auto;overflow:visible;}
}
.topbar.card.loyverse-topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;}
.topbar.card.loyverse-topbar > div:first-child{min-width:0;}
.topbar.card.loyverse-topbar .page-title{line-height:1.15;}
.topbar.card.loyverse-topbar [data-page-toolbar]{display:grid;grid-auto-flow:row;gap:12px;align-content:start;}
body.page-dashboard #dashboardActions{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr) auto auto;align-items:center;}
body.page-products #productsActions{grid-template-columns:minmax(220px,1.2fr) repeat(3,minmax(110px,auto)) auto auto auto;align-items:center;}
body.page-transactions #transactionsActions{grid-template-columns:repeat(6,minmax(110px,auto)) minmax(220px,1fr) auto auto;align-items:center;}
body.page-space_rent #spaceRentActions{grid-template-columns:minmax(220px,1fr) minmax(180px,220px) minmax(180px,220px) auto auto auto;align-items:center;}
body.page-space_rent .rent-subnav{display:flex;flex-wrap:wrap;gap:10px;}
body.page-space_rent .rent-subnav .button{min-width:0;}
@media (max-width: 1280px){
  body.page-dashboard #dashboardActions,
  body.page-products #productsActions,
  body.page-transactions #transactionsActions,
  body.page-space_rent #spaceRentActions{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 720px){
  .topbar.card.loyverse-topbar{grid-template-columns:1fr;}
  body.page-dashboard #dashboardActions,
  body.page-products #productsActions,
  body.page-transactions #transactionsActions,
  body.page-space_rent #spaceRentActions{grid-template-columns:1fr;}
}


/* v50 dashboard shell cleanup */
body.page-dashboard .metric-card--gross,
body.page-dashboard .metric-card--gross::after{background:#ffffff !important;opacity:1 !important;}
body.page-dashboard .metric-card--gross{border:1px solid #dfe5e8 !important;box-shadow:none !important;}
body.page-dashboard .metric-card--gross h2,
body.page-dashboard .metric-card--gross p,
body.page-dashboard .metric-card--gross .metric-note{color:#111827 !important;opacity:1 !important;visibility:visible !important;}
body.page-dashboard .dashboard-shell-head{background:#fff !important;border:1px solid #dfe5e8 !important;box-shadow:none !important;}
body.page-dashboard .dashboard-shell-head::before{display:none !important;}
@media (min-width:981px){
  body.page-dashboard .app-header-loyverse,
  body.page-dashboard .app-header-infographic,
  body.page-dashboard .site-topbar,
  body.page-dashboard .shell-topbar,
  body.page-dashboard .global-shell-header,
  body.page-dashboard .top-gradient-header{display:none !important;}
  body.page-dashboard .layout-shell.loyverse-site-shell{padding-top:12px !important;grid-template-columns:280px minmax(0,1fr) !important;}
  body.page-dashboard .sidebar.infographic-sidebar{position:sticky !important;top:12px !important;height:calc(100vh - 24px) !important;overflow:auto !important;}
  body.page-dashboard .main-content.loyverse-main-content{height:calc(100vh - 24px) !important;overflow:auto !important;padding:0 0 18px 0 !important;}
  body.page-dashboard #dashboardActions{display:grid !important;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto auto !important;gap:12px !important;align-items:center !important;}
}
@media (max-width:980px){
  body.page-dashboard #dashboardActions{display:grid !important;grid-template-columns:1fr !important;gap:10px !important;}
}


/* v53 view mode toggle + mobile preview */
.view-mode-card{margin-top:12px;padding:14px 16px;border:1px solid rgba(99,102,241,.10);border-radius:18px;background:linear-gradient(180deg,rgba(99,102,241,.05),rgba(90,164,255,.04));display:grid;gap:10px}
.view-mode-label{font-size:12px;font-weight:800;letter-spacing:.02em;color:var(--muted);text-transform:uppercase}
.view-mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.view-mode-btn{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:14px;padding:10px 12px;font-weight:800;cursor:pointer;transition:.2s ease}
.view-mode-btn.active{background:linear-gradient(135deg,#5b69ff 0%,#5aa4ff 100%);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(91,105,255,.18)}
.view-mode-hint{font-size:12px;line-height:1.45;color:var(--muted)}

body.force-mobile{background:linear-gradient(180deg,#eef5ff 0%,#f7f9fe 100%)}
body.force-mobile .layout-shell.loyverse-site-shell{grid-template-columns:1fr !important;max-width:460px;margin:0 auto;padding:12px;gap:12px}
body.force-mobile .sidebar.infographic-sidebar{position:relative;top:auto;min-height:auto;padding:0}
body.force-mobile .sidebar-stack{gap:12px}
body.force-mobile .sidebar-insight-card{display:none}
body.force-mobile .topbar,body.force-mobile .topbar-actions,body.force-mobile .filter-bar,body.force-mobile .report-filter-strip,body.force-mobile .compact-products-toolbar,body.force-mobile .products-toolbar-grid{flex-direction:column !important;align-items:stretch !important;display:flex}
body.force-mobile .metrics-grid,body.force-mobile .mini-metrics-grid,body.force-mobile .two-col-layout,body.force-mobile .form-grid,body.force-mobile .settings-grid,body.force-mobile .settings-grid-wide{grid-template-columns:1fr !important}
body.force-mobile .panel-large,body.force-mobile .panel-side,body.force-mobile .metric-card,body.force-mobile .topbar,body.force-mobile .sidebar,body.force-mobile .card{border-radius:18px}
body.force-mobile .page-shell{gap:12px}
body.force-mobile .search-box,body.force-mobile .control,body.force-mobile .text-input,.body.force-mobile .button{min-width:0;width:100%}
body.force-mobile .button{width:100%}
body.force-mobile .topbar-actions > *,body.force-mobile .report-action-row > *,body.force-mobile .products-action-row > *{width:100%}
body.force-mobile .table-wrap{overflow:auto;-webkit-overflow-scrolling:touch}
body.force-mobile table{min-width:560px}
body.force-mobile .sidebar-dropdown-list{max-height:none}
body.force-mobile .modal{padding:12px}
body.force-mobile .modal-card{width:min(100%,420px);padding:18px}
body.force-mobile .donut-wrap{width:210px;height:210px}
body.force-mobile .chart-svg{height:260px}
body.force-mobile .line-chart{min-height:260px}
body.force-mobile .report-preset-chips{overflow:auto;white-space:nowrap;display:flex}
body.force-mobile .report-subnav,body.force-mobile .rent-view-tabs{overflow:auto;white-space:nowrap}
body.force-mobile .pagination{overflow:auto}

body.force-desktop .layout-shell.loyverse-site-shell{grid-template-columns:var(--sidebar-width) minmax(0,1fr) !important;max-width:none;min-width:1280px;padding:24px;gap:20px}
body.force-desktop .sidebar.infographic-sidebar{position:sticky;top:24px;min-height:calc(100vh - 48px)}
body.force-desktop .main-content{min-width:0}

@media (max-width:980px){
  body.force-desktop{overflow-x:auto}
}

/* v54 mobile sidebar fix */
.mobile-sidebar-toggle{
  position:fixed;
  left:12px;
  bottom:12px;
  z-index:140;
  width:52px;
  height:52px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,#5b69ff 0%,#5aa4ff 100%);
  color:#fff;
  box-shadow:0 14px 28px rgba(53,88,230,.28);
  display:none;
  align-items:center;
  justify-content:center;
  font-size:22px;
  cursor:pointer;
}
.mobile-sidebar-backdrop{
  position:fixed;
  inset:0;
  background:rgba(16,24,40,.28);
  z-index:120;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
}
body.sidebar-open .mobile-sidebar-backdrop{opacity:1;pointer-events:auto;}

@media (max-width: 980px){
  .mobile-sidebar-toggle{display:flex;}
  .layout-shell.loyverse-site-shell{grid-template-columns:1fr !important;}
  .sidebar.infographic-sidebar{
    position:fixed !important;
    top:0 !important;
    left:0;
    width:min(86vw,320px);
    height:100vh;
    min-height:100vh !important;
    border-radius:0 !important;
    z-index:130;
    transform:translateX(-104%);
    transition:transform .22s ease;
    overflow:auto;
    padding:14px !important;
    box-shadow:0 20px 50px rgba(16,24,40,.24) !important;
  }
  body.sidebar-open .sidebar.infographic-sidebar{transform:translateX(0);}
  .main-content.loyverse-main-content{order:1;}
}

body.force-mobile .mobile-sidebar-toggle{display:flex;}
body.force-mobile .mobile-sidebar-backdrop{display:block;}
body.force-mobile .sidebar.infographic-sidebar{
  position:fixed !important;
  top:0 !important;
  left:0;
  width:min(86vw,320px);
  height:100vh;
  min-height:100vh !important;
  border-radius:0 !important;
  z-index:130;
  transform:translateX(-104%);
  transition:transform .22s ease;
  overflow:auto;
  padding:14px !important;
}
body.force-mobile.sidebar-open .sidebar.infographic-sidebar{transform:translateX(0);}
body.force-mobile .layout-shell.loyverse-site-shell{grid-template-columns:1fr !important;max-width:460px;margin:0 auto;padding:12px;gap:12px}
body.force-mobile .main-content.loyverse-main-content{order:1;}


/* v55 mobile sidebar real fix */
@media (max-width: 980px){
  body.force-desktop{overflow-x:hidden;}
  body.force-desktop .layout-shell.loyverse-site-shell{grid-template-columns:1fr !important;max-width:460px;margin:0 auto;padding:12px;gap:12px;min-width:0 !important;}
  body.force-desktop .sidebar.infographic-sidebar{
    position:fixed !important;top:0 !important;left:0;width:min(86vw,320px);height:100vh;min-height:100vh !important;
    border-radius:0 !important;z-index:130;transform:translateX(-104%);transition:transform .22s ease;overflow:auto;padding:14px !important;
    box-shadow:0 20px 50px rgba(16,24,40,.24) !important;
  }
  body.force-desktop.sidebar-open .sidebar.infographic-sidebar{transform:translateX(0);}
  body.force-desktop .mobile-sidebar-toggle{display:flex !important;}
  body.force-desktop .mobile-sidebar-backdrop{display:block;}
}


/* v56 auto responsive mode */
.view-mode-card{display:none !important;}
@media (max-width: 980px){
  body.force-desktop, body.force-mobile{overflow-x:hidden;}
}


/* v57 page-by-page polish: Dashboard mobile + Products toolbar */
.sidebar-mobile-head{display:none;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding:4px 2px 10px;border-bottom:1px solid var(--line)}
.sidebar-mobile-close{width:38px;height:38px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--text);font-size:22px;line-height:1;cursor:pointer}

body.page-dashboard .dashboard-shell-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px, 560px);align-items:start;gap:18px}
body.page-dashboard #dashboardActions{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) minmax(190px,1fr) auto auto;gap:12px;align-items:start;width:100%}
body.page-dashboard #dashboardActions .search-box{min-width:0;width:100%}
body.page-dashboard .metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body.page-dashboard .mini-metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
body.page-dashboard .mini-summary{min-height:124px;display:flex;flex-direction:column;justify-content:space-between}
body.page-dashboard .panel-large,body.page-dashboard .panel-side{overflow:hidden}

body.page-products .topbar.loyverse-topbar{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1fr);gap:18px;align-items:start}
body.page-products .products-toolbar{grid-template-columns:minmax(220px,1.2fr) minmax(240px,.95fr) auto;gap:12px;align-items:end}
body.page-products .products-search-box{height:46px;border-radius:16px}
body.page-products .products-search-box input{font-size:14px}
body.page-products .products-action-row{gap:10px;justify-content:flex-end;align-items:center}
body.page-products .products-action-row .button{height:46px;padding:0 16px}
body.page-products .mini-metrics-grid.manage-stats{grid-template-columns:repeat(5,minmax(0,1fr))}

@media (max-width: 1100px){
  body.page-dashboard .dashboard-shell-head{grid-template-columns:1fr}
  body.page-dashboard #dashboardActions{grid-template-columns:1fr 1fr;max-width:none}
  body.page-dashboard #dashboardActions .search-box{grid-column:1/-1}
  body.page-dashboard .metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.page-dashboard .mini-metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

  body.page-products .topbar.loyverse-topbar{grid-template-columns:1fr}
  body.page-products .products-toolbar{grid-template-columns:1fr}
  body.page-products .products-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  body.page-products .products-action-row{justify-content:flex-start}
  body.page-products .mini-metrics-grid.manage-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media (max-width: 780px){
  .sidebar-mobile-head{display:flex}
  body.page-dashboard .dashboard-shell-head{padding:18px}
  body.page-dashboard #dashboardActions{grid-template-columns:1fr;gap:10px}
  body.page-dashboard #dashboardActions .button,
  body.page-dashboard #dashboardActions .control,
  body.page-dashboard #dashboardActions .search-box{width:100%}
  body.page-dashboard .metrics-grid,
  body.page-dashboard .mini-metrics-grid{grid-template-columns:1fr 1fr;gap:12px}
  body.page-dashboard .metric-card{padding:18px;border-radius:20px}
  body.page-dashboard .metric-card h2{font-size:28px}
  body.page-dashboard .mini-summary{min-height:108px;padding:18px;border-radius:20px}
  body.page-dashboard .two-col-layout{grid-template-columns:1fr;gap:14px}
  body.page-dashboard .panel-large,body.page-dashboard .panel-side{padding:18px;border-radius:22px}
  body.page-dashboard .page-title{font-size:34px;line-height:1.05}

  body.page-products .topbar.loyverse-topbar{padding:18px}
  body.page-products .products-toolbar{gap:10px}
  body.page-products .products-filter-grid{grid-template-columns:1fr 1fr 1fr}
  body.page-products .products-action-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  body.page-products .products-action-row .button{width:100%}
  body.page-products .mini-metrics-grid.manage-stats{grid-template-columns:1fr 1fr;gap:12px}
  body.page-products .panel-large{padding:18px;border-radius:22px}
}

@media (max-width: 560px){
  body.page-dashboard .layout-shell.loyverse-site-shell,
  body.page-products .layout-shell.loyverse-site-shell{padding:10px !important;gap:10px !important}
  body.page-dashboard .dashboard-shell-head{padding:16px;border-radius:22px}
  body.page-dashboard .page-title{font-size:30px}
  body.page-dashboard #dashboardActions .search-box{display:none}
  body.page-dashboard .metrics-grid,
  body.page-dashboard .mini-metrics-grid{grid-template-columns:1fr}
  body.page-dashboard .metric-card h2{font-size:24px}
  body.page-dashboard .badge{font-size:12px;padding:8px 12px}
  body.page-dashboard .panel-head h3{font-size:20px}

  body.page-products .products-filter-grid{grid-template-columns:1fr}
  body.page-products .products-action-row{grid-template-columns:1fr}
  body.page-products .mini-metrics-grid.manage-stats{grid-template-columns:1fr}
  body.page-products .page-title{font-size:30px}
  body.page-products .products-search-box{height:42px}
}

@media (max-width: 980px){
  body.sidebar-open{overflow:hidden}
  .sidebar.infographic-sidebar{position:fixed !important;top:0;left:0;bottom:0;width:min(86vw,330px);max-width:330px;z-index:120;background:var(--card);border-radius:0 24px 24px 0;box-shadow:0 24px 60px rgba(15,23,42,.24);transform:translateX(-110%);transition:transform .25s ease;overflow:auto;padding:16px 14px 20px !important;min-height:100vh !important}
  body.sidebar-open .sidebar.infographic-sidebar{transform:translateX(0)}
  .sidebar.infographic-sidebar .sidebar-insight-card{display:none}
  .mobile-sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.38);z-index:110}
  body.sidebar-open .mobile-sidebar-backdrop{display:block}
  .mobile-sidebar-toggle{display:flex !important;position:fixed;left:12px;bottom:14px;z-index:130}
}

/* v58: Transactions + Space Rent polish */
#transactionsPage .topbar,
#spaceRentPage .topbar,
#spaceRentPage .rent-subnav,
#spaceRentPage .rent-filter-card,
#transactionsPage .panel-large,
#spaceRentPage .panel-large,
#spaceRentPage .panel-side,
#spaceRentPage .mini-summary,
#spaceRentPage .metric-card{
  border-radius: 18px;
}

#transactionsPage .topbar-actions,
#spaceRentPage .topbar-actions{
  display:grid;
  grid-template-columns: repeat(12, minmax(0,1fr));
  gap:12px;
  align-items:center;
}
#transactionsPage .topbar-actions .control,
#transactionsPage .topbar-actions .button,
#spaceRentPage .topbar-actions .control,
#spaceRentPage .topbar-actions .button,
#spaceRentPage .topbar-actions .search-box{
  min-width:0;
}
#transactionsPage #txDateFrom{grid-column:span 2;}
#transactionsPage #txDateTo{grid-column:span 2;}
#transactionsPage #txSearch{grid-column:span 2;}
#transactionsPage #txStatus{grid-column:span 2;}
#transactionsPage #txSortBy{grid-column:span 2;}
#transactionsPage #txSortDir{grid-column:span 1;}
#transactionsPage #txPerPage{grid-column:span 1;}
#transactionsPage #filterTxBtn{grid-column:span 12 / span 12; justify-self:start;}
#transactionsPage #openTransactionModal{grid-column:span 12 / span 12; justify-self:start;}
#spaceRentPage .rent-header-actions{grid-template-columns:repeat(12,minmax(0,1fr));}
#spaceRentPage .rent-header-actions .button:nth-child(1){grid-column:span 4;}
#spaceRentPage .rent-header-actions .button:nth-child(2){grid-column:span 4;}
#spaceRentPage .rent-header-actions .button:nth-child(3){grid-column:span 4;}
#spaceRentPage .rent-filter-card .topbar-actions{grid-template-columns:repeat(12,minmax(0,1fr));}
#spaceRentPage .rent-filter-card .search-box{grid-column:span 6;}
#spaceRentPage #rentTypeFilter{grid-column:span 3;}
#spaceRentPage #rentStatusFilter{grid-column:span 3;}
#spaceRentPage .rent-subnav{display:flex;gap:10px;overflow:auto;padding:10px;scrollbar-width:none;}
#spaceRentPage .rent-subnav::-webkit-scrollbar{display:none;}
#spaceRentPage .rent-subnav-link{white-space:nowrap;padding:10px 14px;border-radius:999px;background:#f3f6fb;border:1px solid #e2e8f0;color:#334155;font-weight:700;}
#spaceRentPage .rent-subnav-link.active{background:linear-gradient(135deg,#5b6cff,#53b8ff);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(79,110,255,.18);}

body.page-transactions #transactionsPage .table-wrap,
body.page-space_rent #spaceRentPage .table-wrap{overflow:auto; border-radius:16px;}
body.page-transactions #transactionsPage table,
body.page-space_rent #spaceRentPage table{min-width:980px;}

@media (max-width: 1180px){
  #transactionsPage .topbar-actions,
  #spaceRentPage .topbar-actions{grid-template-columns:repeat(6,minmax(0,1fr));}
  #transactionsPage #txDateFrom,
  #transactionsPage #txDateTo,
  #transactionsPage #txStatus,
  #transactionsPage #txSortBy,
  #transactionsPage #txSortDir,
  #transactionsPage #txPerPage{grid-column:span 2;}
  #transactionsPage #txSearch{grid-column:1 / -1;}
  #transactionsPage #filterTxBtn,
  #transactionsPage #openTransactionModal{grid-column:span 3;justify-self:stretch;}

  #spaceRentPage .rent-header-actions .button,
  #spaceRentPage .rent-filter-card .search-box,
  #spaceRentPage #rentTypeFilter,
  #spaceRentPage #rentStatusFilter{grid-column:span 3;}
}

@media (max-width: 980px){
  body.page-transactions .layout-shell,
  body.page-space_rent .layout-shell{display:block;}
  #transactionsPage .topbar,
  #spaceRentPage .topbar{padding:16px;}
  #transactionsPage .topbar > div:first-child,
  #spaceRentPage .topbar > div:first-child{margin-bottom:12px;}
  #transactionsPage .topbar-actions,
  #spaceRentPage .topbar-actions{grid-template-columns:1fr 1fr;gap:10px;}
  #transactionsPage #txDateFrom,
  #transactionsPage #txDateTo,
  #transactionsPage #txSearch,
  #transactionsPage #txStatus,
  #transactionsPage #txSortBy,
  #transactionsPage #txSortDir,
  #transactionsPage #txPerPage,
  #transactionsPage #filterTxBtn,
  #transactionsPage #openTransactionModal,
  #spaceRentPage .rent-header-actions .button,
  #spaceRentPage .rent-filter-card .search-box,
  #spaceRentPage #rentTypeFilter,
  #spaceRentPage #rentStatusFilter{grid-column:1 / -1;}
  #spaceRentPage .metrics-grid,
  #spaceRentPage .mini-metrics-grid,
  #transactionsPage .mini-metrics-grid{grid-template-columns:1fr 1fr;}
  #spaceRentPage .two-col-layout{grid-template-columns:1fr;}
}

@media (max-width: 680px){
  #transactionsPage .topbar-actions,
  #spaceRentPage .topbar-actions{grid-template-columns:1fr;}
  #spaceRentPage .metrics-grid,
  #spaceRentPage .mini-metrics-grid,
  #transactionsPage .mini-metrics-grid{grid-template-columns:1fr;}
  #spaceRentPage .rent-subnav{padding:6px 2px 8px;gap:8px;}
  #spaceRentPage .rent-subnav-link{padding:9px 12px;font-size:13px;}
}

/* v59: final page-by-page responsive polish */
:root{
  --page-max-width: 1520px;
}
.layout-shell,
.main-content,
.page-shell{
  min-width: 0;
}
.main-content{
  width: min(100%, var(--page-max-width));
}
#dashboardPage,
#productsPage,
#categoriesPage,
#staffPage,
#reportsPage,
#transactionsPage,
#spaceRentPage,
#settingsPage{
  display:grid;
  gap:18px;
  min-width:0;
}
#dashboardPage .topbar,
#productsPage .topbar,
#categoriesPage .topbar,
#staffPage .topbar,
#reportsPage .topbar,
#transactionsPage .topbar,
#spaceRentPage .topbar,
#settingsPage .topbar{
  padding:20px 22px;
}
#categoriesPage .topbar-actions,
#staffPage .topbar-actions,
#settingsPage .topbar-actions,
.compact-manage-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  min-width:0;
}
.compact-search-box{
  min-width:0;
  width:100%;
}
.compact-search-box .control{
  min-width:0;
}
.compact-action-row{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}
.settings-topbar .settings-topbar-note{
  max-width:360px;
  text-align:right;
  line-height:1.45;
}
#categoriesPage .panel-large,
#staffPage .panel-large,
#settingsPage .panel-large,
#reportsPage .panel-large,
#reportsPage .panel-side,
#dashboardPage .panel-large,
#dashboardPage .panel-side,
#productsPage .panel-large,
#transactionsPage .panel-large,
#spaceRentPage .panel-large,
#spaceRentPage .panel-side{
  padding:20px;
}
#categoriesPage .table-wrap,
#staffPage .table-wrap,
#settingsPage .table-wrap,
#reportsPage .table-wrap,
#dashboardPage .table-wrap,
#productsPage .table-wrap,
#transactionsPage .table-wrap,
#spaceRentPage .table-wrap{
  overflow:auto;
  border-radius:16px;
}
#categoriesPage table,
#staffPage table,
#reportsPage table,
#productsPage table,
#transactionsPage table,
#spaceRentPage table{
  min-width:820px;
}
#settingsPage .settings-grid,
#settingsPage .settings-grid-wide{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
}
#settingsPage .settings-grid-wide .full-span{
  grid-column:1 / -1;
}
#settingsPage .form-grid.single-col{
  display:grid;
  gap:10px;
}
#settingsPage .form-actions,
#settingsPage .lang-switch-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
#settingsPage .quick-language{
  min-width:124px;
}
#reportsPage .report-filter-card,
#reportsPage .report-topbar,
#spaceRentPage .rent-filter-card,
#spaceRentPage .rent-subnav{
  width:100%;
  min-width:0;
}
#reportsPage .report-filter-strip{
  display:grid;
  grid-template-columns:minmax(280px,1.6fr) repeat(3,minmax(140px,1fr)) auto;
  gap:10px;
  align-items:stretch;
}
#reportsPage .loyverse-action-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}
#reportsPage .panel-head,
#dashboardPage .panel-head,
#productsPage .panel-head,
#transactionsPage .panel-head,
#spaceRentPage .panel-head,
#settingsPage .panel-head{
  gap:12px;
}
#reportsPage .report-chart-toolbar,
#dashboardPage .panel-head,
#productsPage .table-footer,
#transactionsPage .table-footer,
#spaceRentPage .table-footer{
  flex-wrap:wrap;
}
#dashboardPage .metrics-grid,
#dashboardPage .mini-metrics-grid,
#productsPage .mini-metrics-grid.manage-stats,
#transactionsPage .mini-metrics-grid,
#spaceRentPage .mini-metrics-grid,
#spaceRentPage .metrics-grid,
#reportsPage .report-kpis{
  align-items:stretch;
}
#dashboardPage .metric-card,
#productsPage .mini-summary,
#transactionsPage .mini-summary,
#spaceRentPage .mini-summary,
#reportsPage .metric-card,
#settingsPage .panel-large{
  min-width:0;
}
@media (max-width: 1280px){
  #reportsPage .report-filter-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  #reportsPage .date-pill,
  #reportsPage .loyverse-action-row{
    grid-column:1 / -1;
  }
  #settingsPage .settings-grid,
  #settingsPage .settings-grid-wide{
    grid-template-columns:1fr;
  }
}
@media (max-width: 980px){
  #dashboardPage .topbar,
  #productsPage .topbar,
  #categoriesPage .topbar,
  #staffPage .topbar,
  #reportsPage .topbar,
  #transactionsPage .topbar,
  #spaceRentPage .topbar,
  #settingsPage .topbar{
    padding:16px;
  }
  #categoriesPage .topbar-actions,
  #staffPage .topbar-actions,
  #settingsPage .topbar-actions,
  .compact-manage-toolbar{
    grid-template-columns:1fr;
  }
  .compact-action-row{
    justify-content:stretch;
  }
  .compact-action-row .button{
    width:100%;
  }
  #settingsPage .settings-topbar .settings-topbar-note{
    max-width:none;
    text-align:left;
  }
  #categoriesPage table,
  #staffPage table,
  #productsPage table,
  #transactionsPage table,
  #spaceRentPage table,
  #reportsPage table{
    min-width:760px;
  }
  #dashboardPage .two-col-layout,
  #reportsPage .two-col-layout,
  #spaceRentPage .two-col-layout{
    grid-template-columns:1fr;
  }
}
@media (max-width: 720px){
  .main-content{
    width:100%;
  }
  #dashboardPage,
  #productsPage,
  #categoriesPage,
  #staffPage,
  #reportsPage,
  #transactionsPage,
  #spaceRentPage,
  #settingsPage{
    gap:14px;
  }
  #reportsPage .report-filter-strip,
  #transactionsPage .topbar-actions,
  #spaceRentPage .topbar-actions,
  #productsPage .products-toolbar{
    grid-template-columns:1fr;
  }
  #reportsPage .loyverse-action-row{
    grid-template-columns:1fr 1fr;
    display:grid;
    width:100%;
  }
  #reportsPage .loyverse-action-row .button,
  #settingsPage .form-actions .button,
  #settingsPage .lang-switch-row .button{
    width:100%;
  }
  #categoriesPage table,
  #staffPage table,
  #productsPage table,
  #transactionsPage table,
  #spaceRentPage table,
  #reportsPage table{
    min-width:680px;
  }
}
@media (max-width: 560px){
  #dashboardPage .topbar,
  #productsPage .topbar,
  #categoriesPage .topbar,
  #staffPage .topbar,
  #reportsPage .topbar,
  #transactionsPage .topbar,
  #spaceRentPage .topbar,
  #settingsPage .topbar,
  #categoriesPage .panel-large,
  #staffPage .panel-large,
  #settingsPage .panel-large,
  #reportsPage .panel-large,
  #reportsPage .panel-side,
  #dashboardPage .panel-large,
  #dashboardPage .panel-side,
  #productsPage .panel-large,
  #transactionsPage .panel-large,
  #spaceRentPage .panel-large,
  #spaceRentPage .panel-side{
    padding:14px;
  }
  #settingsPage .lang-switch-row,
  #settingsPage .form-actions,
  #reportsPage .loyverse-action-row{
    grid-template-columns:1fr;
    display:grid;
  }
  #dashboardPage .metrics-grid,
  #dashboardPage .mini-metrics-grid,
  #productsPage .mini-metrics-grid.manage-stats,
  #transactionsPage .mini-metrics-grid,
  #spaceRentPage .mini-metrics-grid,
  #spaceRentPage .metrics-grid,
  #reportsPage .report-kpis{
    grid-template-columns:1fr;
  }
}

.role-menu-card{border:1px solid var(--line);border-radius:16px;padding:16px;background:rgba(255,255,255,.75)}
.role-menu-card h4{margin:0 0 12px;font-size:15px}
.role-menu-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.check-pill{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:999px;background:var(--card);font-size:13px;color:var(--text)}
.check-pill input{accent-color:var(--accent)}

/* v-fix: space rent KPI visibility */
#spaceRentPage .metric-card--accent{
  background: linear-gradient(135deg, #5b6cff 0%, #53b8ff 100%) !important;
  border-color: transparent !important;
}
#spaceRentPage .metric-card--accent h2,
#spaceRentPage .metric-card--accent p,
#spaceRentPage .metric-card--accent .metric-note{
  color:#ffffff !important;
  opacity:1 !important;
}
#spaceRentPage .metric-card--accent .metric-icon{
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(255,255,255,.26) !important;
  color:#ffffff !important;
}

/* v60 dashboard layout restore after space-rent patch */
body.page-dashboard .dashboard-focus-grid,
#dashboardPage .dashboard-focus-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
body.page-dashboard .dashboard-focus-card,
#dashboardPage .dashboard-focus-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:18px 18px 16px;
  min-height:156px;
  border:1px solid #dfe7f4;
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 12px 26px rgba(27,52,97,.06);
}
body.page-dashboard .dashboard-focus-card .metric-icon-badge,
#dashboardPage .dashboard-focus-card .metric-icon-badge{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#edf3ff;
  border:1px solid #dae4ff;
  font-size:20px;
}
body.page-dashboard .dashboard-focus-card .metric-label,
#dashboardPage .dashboard-focus-card .metric-label{
  display:block;
  color:#64748b;
  font-weight:800;
  line-height:1.35;
}
body.page-dashboard .dashboard-focus-card .metric-value,
#dashboardPage .dashboard-focus-card .metric-value{
  display:block;
  font-size:2rem;
  line-height:1.05;
  color:#13233f;
}
body.page-dashboard .dashboard-focus-card .metric-desc,
#dashboardPage .dashboard-focus-card .metric-desc{
  display:block;
  color:#7b89a2;
  font-size:.9rem;
  line-height:1.5;
  margin-top:auto;
}
body.page-dashboard .dashboard-quick-grid,
#dashboardPage .dashboard-quick-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  align-items:stretch;
}
body.page-dashboard .dashboard-quick-grid .mini-summary,
#dashboardPage .dashboard-quick-grid .mini-summary{
  min-height:120px;
  border:1px solid #e3eaf6;
  background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%);
}
body.page-dashboard .dashboard-quick-grid .mini-summary span,
#dashboardPage .dashboard-quick-grid .mini-summary span{
  color:#68748c;
  font-weight:700;
}
body.page-dashboard .dashboard-quick-grid .mini-summary strong,
#dashboardPage .dashboard-quick-grid .mini-summary strong{
  display:block;
  margin:6px 0;
  font-size:1.55rem;
  color:#16213a;
}
body.page-dashboard .dashboard-quick-grid .mini-summary small,
#dashboardPage .dashboard-quick-grid .mini-summary small{
  color:#8090aa;
  line-height:1.45;
}
body.page-dashboard .dashboard-focus-footnote,
#dashboardPage .dashboard-focus-footnote{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 20px;
  border:1px solid #e2eaf5;
}
body.page-dashboard .dashboard-focus-footnote p,
#dashboardPage .dashboard-focus-footnote p{
  margin:8px 0 0;
  color:#6b7a92;
  line-height:1.55;
}
body.page-dashboard .dashboard-main-grid,
body.page-dashboard .dashboard-bottom-grid,
#dashboardPage .dashboard-main-grid,
#dashboardPage .dashboard-bottom-grid{
  align-items:start;
}
body.page-dashboard .dashboard-side-stack,
#dashboardPage .dashboard-side-stack{
  display:grid;
  gap:16px;
}
body.page-dashboard .dashboard-payment-block,
#dashboardPage .dashboard-payment-block{
  margin-top:14px;
  display:grid;
  gap:12px;
}
body.page-dashboard .dashboard-subtitle,
#dashboardPage .dashboard-subtitle{
  color:#64748b;
  font-weight:800;
  font-size:.88rem;
}
body.page-dashboard .dashboard-transactions-card,
#dashboardPage .dashboard-transactions-card{
  overflow:hidden;
}
body.page-dashboard .legend-link,
body.page-dashboard .staff-link,
body.page-dashboard .summary-box,
body.page-dashboard .payment-card,
body.page-dashboard .table-link,
#dashboardPage .legend-link,
#dashboardPage .staff-link,
#dashboardPage .summary-box,
#dashboardPage .payment-card,
#dashboardPage .table-link{
  text-decoration:none;
  color:inherit;
}
body.page-dashboard .summary-box,
body.page-dashboard .payment-card,
body.page-dashboard .legend-item,
body.page-dashboard .staff-row,
#dashboardPage .summary-box,
#dashboardPage .payment-card,
#dashboardPage .legend-item,
#dashboardPage .staff-row{
  border:1px solid #e2e9f5;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
}
body.page-dashboard .summary-box strong,
#dashboardPage .summary-box strong{
  font-size:1.35rem;
}
body.page-dashboard .payment-card small,
body.page-dashboard .summary-box small,
#dashboardPage .payment-card small,
#dashboardPage .summary-box small{
  color:#7b89a2;
}
body.page-dashboard .staff-meta,
#dashboardPage .staff-meta{
  align-items:center;
}
body.page-dashboard .table-wrap table thead th,
#dashboardPage .table-wrap table thead th{
  white-space:nowrap;
}
@media (max-width: 1360px){
  body.page-dashboard .dashboard-focus-grid,
  #dashboardPage .dashboard-focus-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width: 1100px){
  body.page-dashboard .dashboard-quick-grid,
  #dashboardPage .dashboard-quick-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 780px){
  body.page-dashboard .dashboard-focus-grid,
  body.page-dashboard .dashboard-quick-grid,
  #dashboardPage .dashboard-focus-grid,
  #dashboardPage .dashboard-quick-grid{
    grid-template-columns:1fr 1fr;
  }
  body.page-dashboard .dashboard-focus-footnote,
  #dashboardPage .dashboard-focus-footnote{
    flex-direction:column;
    align-items:flex-start;
  }
}
@media (max-width: 560px){
  body.page-dashboard .dashboard-focus-grid,
  body.page-dashboard .dashboard-quick-grid,
  #dashboardPage .dashboard-focus-grid,
  #dashboardPage .dashboard-quick-grid{
    grid-template-columns:1fr;
  }
  body.page-dashboard .dashboard-focus-card,
  #dashboardPage .dashboard-focus-card{
    min-height:auto;
  }
  body.page-dashboard .dashboard-focus-card .metric-value,
  #dashboardPage .dashboard-focus-card .metric-value{
    font-size:1.75rem;
  }
}

body.page-dashboard .product-compare-chart,
#dashboardPage .product-compare-chart{
  display:grid;
  gap:10px;
  margin:6px 0 18px;
}
body.page-dashboard .product-compare-list,
#dashboardPage .product-compare-list{
  display:grid;
  gap:10px;
}
body.page-dashboard .product-compare-row,
#dashboardPage .product-compare-row{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border:1px solid #e3eaf6;
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  text-decoration:none;
  color:inherit;
}
body.page-dashboard .product-compare-rank,
#dashboardPage .product-compare-rank{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-weight:800;
  color:#1d4ed8;
  background:#e8f0ff;
  border:1px solid #d8e4ff;
}
body.page-dashboard .product-compare-body,
#dashboardPage .product-compare-body{
  display:grid;
  gap:6px;
}
body.page-dashboard .product-compare-meta,
#dashboardPage .product-compare-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
body.page-dashboard .product-compare-meta strong,
#dashboardPage .product-compare-meta strong{
  font-size:.98rem;
}
body.page-dashboard .product-compare-meta span,
#dashboardPage .product-compare-meta span{
  color:#64748b;
  font-size:.88rem;
  text-align:right;
}
body.page-dashboard .product-compare-track,
#dashboardPage .product-compare-track{
  position:relative;
  width:100%;
  height:10px;
  border-radius:999px;
  background:#e7eef8;
  overflow:hidden;
}
body.page-dashboard .product-compare-fill,
#dashboardPage .product-compare-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,var(--accent) 0%,#60a5fa 100%);
}
@media (max-width: 780px){
  body.page-dashboard .product-compare-meta,
  #dashboardPage .product-compare-meta{
    flex-direction:column;
    align-items:flex-start;
  }
  body.page-dashboard .product-compare-meta span,
  #dashboardPage .product-compare-meta span{
    text-align:left;
  }
}

/* Inventory web module */
.page-shell-inventory{display:grid;gap:18px}
.inventory-topbar{display:grid;gap:14px}
.inventory-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.inventory-flash{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:16px}
.inventory-flash.success{background:#ecf8ee;border:1px solid #cde6d1;color:#2f7d32}
.inventory-flash.error{background:#fff1f2;border:1px solid #fecdd3;color:#b42318}
.inventory-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.inventory-layout-grid{display:grid;grid-template-columns:minmax(320px,410px) minmax(0,1fr);gap:18px;align-items:start}
.inventory-layout-grid.two-col-equal{grid-template-columns:repeat(2,minmax(0,1fr))}
.inventory-panel-main,.inventory-list-card,.inventory-form-card,.inventory-card-side{border-radius:20px;border:1px solid #e7e8ea;box-shadow:0 10px 24px rgba(15,23,42,.04);background:#fff}
.inventory-filter-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px;align-items:center}
.inventory-search-box{min-width:260px;flex:1 1 280px}
.inventory-table-wrap table td,.inventory-table-wrap table th{vertical-align:top}
.inventory-status.success{background:#e8f4ea;color:#2f7d32}
.inventory-status.warning{background:#fff7e6;color:#b26b00}
.inventory-status.danger{background:#ffeaea;color:#c62828}
.inventory-status.neutral{background:#f2f4f7;color:#475467}
.inventory-card-side{position:sticky;top:86px}
.inventory-stock-card-head{display:grid;gap:6px;padding:10px 0 14px;border-bottom:1px solid var(--line)}
.inventory-stock-meta{color:var(--muted);font-size:13px}
.inventory-movement-list{display:grid;gap:12px;padding-top:14px}
.inventory-movement-item{border:1px solid #e8eaee;border-radius:16px;padding:12px 14px;background:#fafafa}
.inventory-movement-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.inventory-movement-qty.in{color:#0f9d58;font-weight:800}.inventory-movement-qty.out{color:#c62828;font-weight:800}
.inventory-form-grid{gap:12px}
.inventory-line-builder{display:grid;gap:10px}
.inventory-line-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.inventory-lines{display:grid;gap:10px}
.inventory-inline-line{display:grid;grid-template-columns:2fr repeat(3,minmax(110px,1fr)) 1.4fr auto;gap:10px;align-items:end;padding:12px;border:1px solid #e7e8ea;border-radius:16px;background:#fbfbfb}
.inventory-inline-line label{display:grid;gap:6px}
.inventory-inline-line .inventory-line-note{grid-column:auto}
.inventory-remove-line{height:44px}
.inventory-product-select{margin-bottom:6px}
.inventory-stack-list{display:grid;gap:12px}
.inventory-doc-card{border:1px solid #e7e8ea;border-radius:18px;background:#fff;overflow:hidden}
.inventory-doc-card summary{list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 16px;cursor:pointer}
.inventory-doc-card summary::-webkit-details-marker{display:none}
.inventory-doc-card[open] summary{border-bottom:1px solid #eef0f3;background:#fafafa}
.inventory-doc-summary{display:grid;justify-items:end;gap:8px}
.inventory-doc-body{display:grid;gap:10px;padding:14px 16px}
.inventory-doc-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.inventory-line-tags{display:flex;flex-wrap:wrap;gap:8px}
.inventory-doc-actions,.inventory-inline-form{display:flex;flex-wrap:wrap;gap:8px}
.inventory-mini-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:12px}
.inventory-inline-product{display:grid;gap:4px}
.inventory-receive-line{grid-template-columns:1.4fr repeat(2,minmax(120px,1fr))}
.receive-order-group{display:grid;gap:10px}
.static-card .inventory-doc-body{padding:14px 16px}
@media (max-width: 1240px){
  .inventory-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .inventory-layout-grid,.inventory-layout-grid.two-col-equal{grid-template-columns:1fr}
  .inventory-card-side{position:relative;top:auto}
}
@media (max-width: 820px){
  .inventory-kpi-grid,.inventory-mini-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inventory-toolbar{justify-content:flex-start}
  .inventory-inline-line{grid-template-columns:1fr}
  .inventory-receive-line{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .inventory-kpi-grid,.inventory-mini-grid{grid-template-columns:1fr}
  .inventory-filter-row{display:grid;grid-template-columns:1fr}
}
.inventory-warehouse-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-top:14px}
.inventory-warehouse-summary.vertical{grid-template-columns:1fr;margin-top:0}
.inventory-warehouse-pill{border:1px solid #e7e8ea;border-radius:16px;padding:12px 14px;background:#fbfbfb;display:grid;gap:4px}
.inventory-warehouse-pill strong{font-size:14px}.inventory-warehouse-pill span{font-weight:700;color:#11422f}.inventory-warehouse-pill small{color:var(--muted)}
.inventory-subsection{margin-top:18px;padding-top:16px;border-top:1px solid var(--line);display:grid;gap:10px}
.inventory-subsection h4,.inventory-report-section h4{margin:0;font-size:15px}
.inventory-warehouse-form{display:grid;grid-template-columns:1fr auto;gap:10px}
.inventory-report-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.inventory-report-card{border:1px solid #e7e8ea;border-radius:18px;padding:14px 16px;background:linear-gradient(180deg,#ffffff 0%,#f8fbf9 100%);display:grid;gap:6px}
.inventory-report-card span{font-size:13px;color:var(--muted)}
.inventory-report-card strong{font-size:20px;color:#11422f}
.inventory-report-section{display:grid;gap:10px;margin-top:12px}
.inventory-report-side{display:grid;gap:16px}
.inventory-stack-list.compact,.inventory-movement-list.compact{gap:10px}
@media (max-width: 1080px){.inventory-report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 768px){.inventory-warehouse-form,.inventory-report-cards{grid-template-columns:1fr}}

/* settings UX refresh v16 */
#settingsPage .settings-section-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  align-items:flex-start;
  justify-content:space-between;
  margin-top:18px;
  padding:18px 20px;
}
#settingsPage .settings-toolbar-left{
  display:grid;
  gap:4px;
  max-width:680px;
}
#settingsPage .settings-toolbar-left strong{
  font-size:16px;
  color:var(--text);
}
#settingsPage .settings-toolbar-left span{
  font-size:13px;
  color:var(--muted);
}
#settingsPage .settings-toolbar-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
#settingsPage .settings-quick-jump{
  width:100%;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
#settingsPage .settings-jump-chip{
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  border-radius:999px;
  padding:8px 12px;
  font-size:12px;
  font-weight:700;
}
#settingsPage .settings-collapsible-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
#settingsPage .settings-head-actions{
  margin-left:auto;
  display:flex;
  gap:8px;
}
#settingsPage .settings-card-toggle{
  min-width:92px;
}
#settingsPage article.card.panel-large.is-collapsed{
  padding-bottom:18px !important;
}
#settingsPage article.card.panel-large.is-collapsed > :not(.panel-head){
  display:none;
}
#settingsPage .settings-mobile-builder .form-grid{
  gap:14px 16px;
}
#settingsPage .settings-mobile-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
#settingsPage .settings-summary-card{
  border:1px solid var(--line);
  background:linear-gradient(180deg,rgba(34,197,94,.08),rgba(34,197,94,.03));
  border-radius:16px;
  padding:14px 16px;
  display:grid;
  gap:6px;
}
#settingsPage .settings-summary-card strong{
  font-size:14px;
  color:var(--text);
}
#settingsPage .settings-summary-card span{
  font-size:12px;
  color:var(--muted);
  line-height:1.5;
}
#settingsPage .settings-form-group-title{
  border-top:1px dashed var(--line);
  padding-top:14px;
  margin-top:4px;
}
#settingsPage .settings-form-group-title:first-child{
  border-top:none;
  padding-top:0;
}
#settingsPage .settings-form-group-title h4{
  margin:0 0 4px;
  font-size:16px;
}
#settingsPage .settings-form-group-title p{
  margin:0;
  font-size:12px;
  color:var(--muted);
}
#settingsPage .mobile-toggle-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
#settingsPage .settings-toggle-card{
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(255,255,255,.8);
}
#settingsPage .settings-toggle-card span{
  margin:0;
  font-size:13px;
  font-weight:800;
  color:var(--text);
}
@media (max-width: 1200px){
  #settingsPage .settings-mobile-summary{grid-template-columns:1fr;}
  #settingsPage .mobile-toggle-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 760px){
  #settingsPage .settings-section-toolbar{padding:16px;}
  #settingsPage .settings-toolbar-actions{width:100%;}
  #settingsPage .settings-toolbar-actions .button{flex:1 1 180px;}
  #settingsPage .mobile-toggle-grid{grid-template-columns:1fr;}
}

/* v58 settings mobile app live preview */
.mobile-preview-card{
  margin:18px 0 22px;
  padding:18px;
  border:1px solid #dce7df;
  background:linear-gradient(180deg,#f7fbf8 0%,#edf7f0 100%);
  border-radius:24px;
}
.mobile-preview-topbar{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:16px}
.mobile-preview-topbar strong{display:block;font-size:1rem;color:#123226}
.mobile-preview-topbar span{display:block;color:#597166;margin-top:4px;font-size:.92rem;max-width:620px}
.mobile-preview-screen-switch{display:flex;gap:8px;flex-wrap:wrap}
.mobile-preview-switch{
  border:1px solid #cfe1d4;
  background:#fff;
  color:#234234;
  border-radius:999px;
  padding:8px 14px;
  font-weight:700;
  cursor:pointer;
}
.mobile-preview-switch.active{background:#19a463;color:#fff;border-color:#19a463;box-shadow:0 10px 20px rgba(22,163,74,.18)}
.mobile-preview-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(220px,1fr);gap:20px;align-items:start}
.mobile-preview-device{
  --mobile-preview-primary:#16a34a;
  --mobile-preview-accent:#dcfce7;
  background:#111827;
  border-radius:32px;
  padding:14px;
  box-shadow:0 24px 50px rgba(15,23,42,.18);
  position:relative;
}
.mobile-preview-notch{position:absolute;left:50%;top:10px;transform:translateX(-50%);width:118px;height:20px;border-radius:0 0 18px 18px;background:#0f172a;z-index:2}
.mobile-preview-screen{background:#f5f7f6;border-radius:24px;overflow:hidden;min-height:680px;display:flex;flex-direction:column}
.mobile-preview-statusbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px 8px;color:#ecfdf5;background:var(--mobile-preview-primary);font-size:.82rem;font-weight:700}
.mobile-preview-appbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--mobile-preview-primary);color:#fff;padding:10px 16px 16px}
.mobile-preview-appbar-copy{flex:1;min-width:0}
.mobile-preview-appbar-copy strong,.mobile-preview-appbar-copy small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mobile-preview-appbar-copy strong{font-size:1.02rem}
.mobile-preview-appbar-copy small{opacity:.86;font-size:.82rem;margin-top:2px}
.mobile-preview-appicon{width:28px;text-align:center;font-size:1rem;opacity:.95}
.mobile-preview-content{padding:14px;display:flex;flex-direction:column;gap:12px;flex:1}
.mobile-preview-search{background:#fff;border:1px solid #d9e3db;border-radius:16px;padding:12px 14px;color:#6b7f73;font-size:.92rem}
.mobile-preview-filter-row,.mobile-preview-view-switch{display:flex;gap:8px;flex-wrap:wrap}
.mobile-preview-chip{padding:7px 12px;border-radius:999px;background:#fff;border:1px solid #dbe6de;color:#315243;font-weight:700;font-size:.8rem}
.mobile-preview-chip.active{background:var(--mobile-preview-accent);border-color:transparent;color:#116237}
.mobile-preview-products{display:grid;gap:10px}
.mobile-preview-products.is-grid.cols-1{grid-template-columns:1fr}
.mobile-preview-products.is-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mobile-preview-products.is-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.mobile-preview-products.is-list{grid-template-columns:1fr}
.mobile-preview-product-card,.mobile-preview-list-card,.mobile-preview-settings-item{
  background:#fff;
  border:1px solid #e2ebe4;
  border-radius:18px;
  padding:12px;
}
.mobile-preview-product-card{display:flex;flex-direction:column;gap:10px;justify-content:space-between}
.mobile-preview-product-card.is-list{flex-direction:row;align-items:center}
.mobile-preview-product-card strong,.mobile-preview-list-card strong,.mobile-preview-settings-item strong{display:block;color:#173224;font-size:.95rem}
.mobile-preview-product-card span,.mobile-preview-list-card span,.mobile-preview-settings-item span{display:block;color:#607568;margin-top:4px;font-size:.82rem}
.mobile-preview-product-card small{display:block;color:#7d8f84;margin-top:6px;font-size:.76rem}
.mobile-preview-add{border:none;border-radius:999px;background:var(--mobile-preview-primary);color:#fff;font-weight:800;cursor:pointer;align-self:flex-start}
.mobile-preview-add-small{font-size:.72rem;padding:7px 10px}
.mobile-preview-add-medium{font-size:.78rem;padding:9px 13px}
.mobile-preview-add-large{font-size:.84rem;padding:11px 16px}
.mobile-preview-ticketbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 14px;background:#fff;border-top:1px solid #e3ece5}
.mobile-preview-ticketbar strong{display:block;color:#193527}
.mobile-preview-ticketbar span{display:block;color:#698074;font-size:.78rem;margin-top:2px}
.mobile-preview-ticket-button{border:none;background:var(--mobile-preview-primary);color:#fff;border-radius:999px;padding:10px 14px;font-weight:800}
.mobile-preview-ticket-button.is-hidden{opacity:.45}
.mobile-preview-navbar{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;padding:10px 10px 14px;background:#f7fbf8;border-top:1px solid #dce8de}
.mobile-preview-nav-item{background:transparent;border:none;border-radius:14px;padding:9px 4px;color:#617668;font-size:.74rem;font-weight:700;cursor:pointer}
.mobile-preview-nav-item.active{background:var(--mobile-preview-accent);color:#136a3e}
.mobile-preview-insight{display:grid;gap:12px}
.mobile-preview-insight-card{background:#fff;border:1px solid #e2ebe4;border-radius:18px;padding:14px}
.mobile-preview-insight-card span{display:block;color:#708478;font-size:.82rem;margin-bottom:6px}
.mobile-preview-insight-card strong{color:#173224;line-height:1.45}
.mobile-preview-login{margin-top:10px;padding:18px;border-radius:24px;background:linear-gradient(180deg,var(--mobile-preview-primary) 0%,#0d7c47 100%);color:#fff;display:flex;flex-direction:column;gap:12px;min-height:430px;justify-content:center}
.mobile-preview-login-badge{display:inline-flex;align-self:flex-start;padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.18);font-weight:700}
.mobile-preview-login h4{font-size:1.36rem;margin:0}
.mobile-preview-login p{margin:0;color:rgba(255,255,255,.85)}
.mobile-preview-login-field{padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2)}
.mobile-preview-login-button{border:none;border-radius:16px;padding:12px 14px;background:#fff;color:#0f7e49;font-weight:800}
.mobile-preview-login-link{text-align:center;font-size:.84rem;color:rgba(255,255,255,.88)}
.mobile-preview-stat-grid,.mobile-preview-rent-hero{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mobile-preview-rent-hero{grid-template-columns:repeat(3,minmax(0,1fr))}
.mobile-preview-stat-card,.mobile-preview-rent-pill{background:linear-gradient(180deg,var(--mobile-preview-primary) 0%,#119157 100%);color:#fff;border-radius:18px;padding:14px}
.mobile-preview-stat-card strong,.mobile-preview-rent-pill strong{display:block;font-size:1rem}
.mobile-preview-stat-card span,.mobile-preview-rent-pill span{display:block;opacity:.86;font-size:.78rem;margin-top:4px}
.mobile-preview-stack{display:grid;gap:10px}
.mobile-preview-list-card{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mobile-preview-inline{border:none;border-radius:12px;padding:8px 10px;background:var(--mobile-preview-accent);color:#156b3f;font-weight:800;white-space:nowrap}
.mobile-preview-settings-list{display:grid;gap:10px}
.mobile-preview-settings-item.is-action{background:linear-gradient(180deg,#ecfff4 0%,#dff8e8 100%)}
#settingsPage .settings-mobile-builder .form-grid{align-items:start}
@media (max-width: 1120px){
  .mobile-preview-layout{grid-template-columns:1fr}
  .mobile-preview-device{max-width:360px;margin:0 auto}
}
@media (max-width: 640px){
  .mobile-preview-card{padding:14px}
  .mobile-preview-screen-switch{width:100%}
  .mobile-preview-switch{flex:1 1 calc(50% - 8px);text-align:center}
  .mobile-preview-stat-grid,.mobile-preview-rent-hero{grid-template-columns:1fr}
}


/* rental hub actual db module */
.rental-hub-shell{display:flex;flex-direction:column;gap:18px}.rental-hub-subnav{display:flex;flex-wrap:wrap;gap:10px}.rental-hub-subnav a{padding:9px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);text-decoration:none;font-weight:600}.rental-hub-subnav a.active{background:var(--soft);border-color:var(--accent);color:var(--accent)}
.rental-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}.rental-kpi-card{padding:18px}.rental-kpi-label{font-size:12px;color:var(--muted);margin-bottom:8px}.rental-kpi-value{font-size:28px;font-weight:800;line-height:1.1}.rental-kpi-note{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.45}
.rental-grid-2{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px}.rental-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rental-form-grid .full{grid-column:1/-1}.rental-form-grid label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}.rental-form-grid input,.rental-form-grid select,.rental-form-grid textarea{width:100%;padding:11px 12px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--text)}.rental-form-grid textarea{min-height:90px;resize:vertical}
.rental-section-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.rental-section-title h3{margin:0}.rental-chip{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;background:var(--soft);color:var(--accent);font-size:12px;font-weight:700}.rental-flash{padding:12px 14px;border-radius:14px}.rental-flash.success{background:#ecfdf5;color:#166534;border:1px solid #bbf7d0}.rental-flash.error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca}
.rental-data-table td,.rental-data-table th{white-space:nowrap}.rental-data-table td.wrap{white-space:normal;max-width:260px}.rental-status{display:inline-flex;align-items:center;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:700}.rental-status-paid,.rental-status-active,.rental-status-closed{background:#ecfdf5;color:#166534}.rental-status-pending,.rental-status-partial{background:#eff6ff;color:#1d4ed8}.rental-status-overdue{background:#fef2f2;color:#b91c1c}.rental-status-daily,.rental-status-monthly,.rental-status-yearly{background:#f5f3ff;color:#6d28d9}
.sidebar-subgroup-title{padding:8px 14px 4px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}
@media (max-width: 1180px){.rental-grid-2{grid-template-columns:1fr}.rental-form-grid{grid-template-columns:1fr}}
.rental-scroll-box{max-height:440px;overflow:auto}
.rental-grid-balance{grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr)}
.rental-balance-stack{display:grid;gap:14px}
.rental-balance-box{border:1px solid var(--line);border-radius:18px;padding:18px 18px 16px;background:#fff}
.rental-balance-box.income{background:linear-gradient(180deg,#ecfdf5 0%,#ffffff 100%)}
.rental-balance-box.expense{background:linear-gradient(180deg,#fef2f2 0%,#ffffff 100%)}
.rental-balance-box strong{display:block;font-size:14px;margin-bottom:8px}
.rental-balance-box p{margin:8px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.rental-balance-amount{font-size:28px;font-weight:800;line-height:1.1}

.rental-status-draft{background:#fff7ed;color:#c2410c}.rental-status-issued,.rental-status-expiring{background:#eff6ff;color:#1d4ed8}.rental-status-cancelled,.rental-status-ended{background:#f3f4f6;color:#4b5563}


/* dashboard reference refresh v2 */
body.page-dashboard,
#dashboardPage,
body.page-dashboard .dashboard-reference-page,
#dashboardPage.dashboard-reference-page{
  --dashboard-surface:#f7f9fc;
  --dashboard-border:#dfe7f3;
  --dashboard-title:#15294a;
  --dashboard-muted:#7a88a2;
  --dashboard-purple:#676cf6;
  --dashboard-purple-dark:#4d5ff1;
  --dashboard-teal:#24c9c0;
  --dashboard-slate:#4f5c73;
  --dashboard-pale:#aeb7c6;
  display:grid;
  gap:18px;
}
body.page-dashboard .dashboard-header-card,
#dashboardPage .dashboard-header-card{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  min-height:138px;
  padding:20px 22px 18px;
  border:1px solid var(--dashboard-border);
  border-radius:28px;
  background:linear-gradient(180deg,#fbfcfe 0%,#f7f9fc 100%);
  box-shadow:0 10px 24px rgba(18,39,73,.035);
}
body.page-dashboard .dashboard-header-copy,
#dashboardPage .dashboard-header-copy{
  display:grid;
  gap:8px;
  max-width:680px;
}
body.page-dashboard .dashboard-header-copy p,
#dashboardPage .dashboard-header-copy p{
  margin:0;
  color:var(--dashboard-muted);
  line-height:1.5;
}
body.page-dashboard .dashboard-toolbar-reference,
#dashboardPage .dashboard-toolbar-reference{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  align-content:flex-start;
  gap:10px;
  margin-left:auto;
}
body.page-dashboard .dashboard-toolbar-reference .control,
#dashboardPage .dashboard-toolbar-reference .control{
  min-width:224px;
  height:42px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid #dbe4f1;
  background:#fff;
  color:#1c3356;
  font-weight:700;
  font-size:.95rem;
}
body.page-dashboard .dashboard-toolbar-reference .button,
#dashboardPage .dashboard-toolbar-reference .button{
  min-width:96px;
  height:42px;
  border-radius:16px;
  font-weight:800;
  box-shadow:none;
}
body.page-dashboard .dashboard-toolbar-reference .button.primary,
#dashboardPage .dashboard-toolbar-reference .button.primary{
  background:linear-gradient(135deg,#7aa2ff 0%,#6690ff 32%,#5e8df6 100%);
  border-color:transparent;
}
body.page-dashboard .dashboard-date-range,
#dashboardPage .dashboard-date-range{
  position:relative;
  min-width:300px;
}
body.page-dashboard .dashboard-date-trigger,
#dashboardPage .dashboard-date-trigger{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 14px;
  border-radius:18px;
  border:1.5px solid #6daef1;
  background:#fff;
  color:#1c3356;
  font-weight:700;
  box-shadow:0 2px 10px rgba(17,35,68,.04);
}
body.page-dashboard .dashboard-date-trigger-icon,
#dashboardPage .dashboard-date-trigger-icon{
  width:18px;
  height:18px;
  color:#2b4066;
  flex:0 0 auto;
}
body.page-dashboard .dashboard-date-trigger-icon svg,
#dashboardPage .dashboard-date-trigger-icon svg,
body.page-dashboard .dashboard-date-trigger-caret svg,
#dashboardPage .dashboard-date-trigger-caret svg{
  width:100%;
  height:100%;
  display:block;
}
body.page-dashboard .dashboard-date-trigger span,
#dashboardPage .dashboard-date-trigger span{ pointer-events:none; }
body.page-dashboard .dashboard-date-trigger-caret,
#dashboardPage .dashboard-date-trigger-caret{
  width:16px;
  height:16px;
  margin-left:auto;
  color:#5c6f8f;
}
body.page-dashboard .dashboard-date-range.is-open .dashboard-date-trigger,
#dashboardPage .dashboard-date-range.is-open .dashboard-date-trigger{
  border-color:#2e93e6;
  box-shadow:0 0 0 4px rgba(46,147,230,.12);
}
body.page-dashboard.dashboard-date-modal-open{
  overflow:hidden;
}
body.page-dashboard.dashboard-date-modal-open::before{
  content:none;
}
body.page-dashboard .dashboard-date-popover.hidden,
#dashboardPage .dashboard-date-popover.hidden{
  display:none;
}
body.page-dashboard .dashboard-date-popover,
#dashboardPage .dashboard-date-popover{
  position:fixed;
  inset:0;
  z-index:3000;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  overflow:auto;
  padding:90px 12px 16px;
  background:rgba(15, 23, 42, .16);
}
body.page-dashboard .dashboard-date-popover-panel,
#dashboardPage .dashboard-date-popover-panel{
  width:min(558px, calc(100vw - 24px));
  padding:8px 8px 10px;
  border-radius:6px;
  border:1px solid #d7dde5;
  background:#ffffff;
  box-shadow:0 20px 44px rgba(15,23,42,.14);
}
body.page-dashboard .dashboard-date-popover-grid,
#dashboardPage .dashboard-date-popover-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 122px;
  gap:8px;
}
body.page-dashboard .dashboard-date-picker-main,
#dashboardPage .dashboard-date-picker-main{
  display:grid;
  gap:8px;
}
body.page-dashboard .dashboard-date-selected-row,
#dashboardPage .dashboard-date-selected-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
body.page-dashboard .dashboard-date-selected-box,
#dashboardPage .dashboard-date-selected-box{
  min-height:34px;
  padding:0 10px;
  border:1px solid #c9d1db;
  border-radius:0;
  background:#ffffff;
  display:flex;
  align-items:center;
  gap:6px;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.page-dashboard .dashboard-date-selected-box,
#dashboardPage .dashboard-date-selected-box{
  position:relative;
}
body.page-dashboard .dashboard-date-native-input,
#dashboardPage .dashboard-date-native-input{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
  border:none;
  background:transparent;
  z-index:5;
}
body.page-dashboard .dashboard-date-picker-main,
#dashboardPage .dashboard-date-picker-main,
body.page-dashboard .dashboard-date-calendars,
#dashboardPage .dashboard-date-calendars,
body.page-dashboard .dashboard-calendar-grid,
#dashboardPage .dashboard-calendar-grid,
body.page-dashboard .dashboard-date-presets,
#dashboardPage .dashboard-date-presets,
body.page-dashboard .dashboard-calendar-day,
#dashboardPage .dashboard-calendar-day,
body.page-dashboard .dashboard-preset-btn,
#dashboardPage .dashboard-preset-btn,
body.page-dashboard .dashboard-date-actions .button,
#dashboardPage .dashboard-date-actions .button{
  position:relative;
  z-index:2;
  pointer-events:auto;
}
body.page-dashboard .dashboard-date-selected-box:hover,
#dashboardPage .dashboard-date-selected-box:hover{
  border-color:#9cc7eb;
}
body.page-dashboard .dashboard-date-selected-box.is-active,
#dashboardPage .dashboard-date-selected-box.is-active{
  border-color:#1b8edc;
  box-shadow:0 0 0 1px rgba(27,142,220,.08) inset;
}
body.page-dashboard .dashboard-date-selected-icon,
#dashboardPage .dashboard-date-selected-icon{
  width:12px;
  height:12px;
  color:#233956;
  flex:0 0 auto;
}
body.page-dashboard .dashboard-date-selected-icon svg,
#dashboardPage .dashboard-date-selected-icon svg{
  width:100%;
  height:100%;
  display:block;
}
body.page-dashboard .dashboard-date-selected-content,
#dashboardPage .dashboard-date-selected-content{
  min-width:0;
  display:grid;
}
body.page-dashboard .dashboard-date-selected-label,
#dashboardPage .dashboard-date-selected-label{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}
body.page-dashboard .dashboard-date-selected-box strong,
#dashboardPage .dashboard-date-selected-box strong{
  color:#112f54;
  font-size:.84rem;
  font-weight:700;
  letter-spacing:0;
}
body.page-dashboard .dashboard-date-calendar-toolbar,
#dashboardPage .dashboard-date-calendar-toolbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0;
  padding:0 2px;
}
body.page-dashboard .dashboard-calendar-nav,
#dashboardPage .dashboard-calendar-nav{
  width:24px;
  height:24px;
  border:none;
  border-radius:999px;
  background:transparent;
  color:#172e4d;
  font-size:1rem;
  font-weight:800;
  display:grid;
  place-items:center;
  cursor:pointer;
}
body.page-dashboard .dashboard-calendar-nav:hover,
#dashboardPage .dashboard-calendar-nav:hover{
  background:#eef4f9;
}
body.page-dashboard .dashboard-date-calendars,
#dashboardPage .dashboard-date-calendars{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
body.page-dashboard .dashboard-calendar-panel,
#dashboardPage .dashboard-calendar-panel{
  border:none;
  border-radius:0;
  padding:0;
  background:transparent;
}
body.page-dashboard .dashboard-calendar-month-title,
#dashboardPage .dashboard-calendar-month-title{
  text-align:center;
  font-size:.83rem;
  font-weight:800;
  color:#1d2e43;
  margin-bottom:4px;
}
body.page-dashboard .dashboard-calendar-grid,
#dashboardPage .dashboard-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  gap:2px;
}
body.page-dashboard .dashboard-calendar-weekday,
#dashboardPage .dashboard-calendar-weekday{
  text-align:center;
  font-size:.66rem;
  font-weight:800;
  color:#14283e;
  padding-bottom:1px;
}
body.page-dashboard .dashboard-calendar-day,
#dashboardPage .dashboard-calendar-day{
  min-height:26px;
  border:none;
  border-radius:4px;
  background:transparent;
  color:#182f4a;
  font-size:.8rem;
  font-weight:500;
  position:relative;
  cursor:pointer;
}
body.page-dashboard .dashboard-calendar-day:hover,
#dashboardPage .dashboard-calendar-day:hover{
  background:#f2f7fc;
}
body.page-dashboard .dashboard-calendar-day span,
#dashboardPage .dashboard-calendar-day span{
  position:relative;
  z-index:2;
}
body.page-dashboard .dashboard-calendar-day.is-outside,
#dashboardPage .dashboard-calendar-day.is-outside{
  color:#b9c1cd;
}
body.page-dashboard .dashboard-calendar-day.is-in-range,
#dashboardPage .dashboard-calendar-day.is-in-range{
  background:#ecf4ff;
  color:#15457d;
  border-radius:0;
}
body.page-dashboard .dashboard-calendar-day.is-start,
#dashboardPage .dashboard-calendar-day.is-start,
body.page-dashboard .dashboard-calendar-day.is-end,
#dashboardPage .dashboard-calendar-day.is-end,
body.page-dashboard .dashboard-calendar-day.is-single,
#dashboardPage .dashboard-calendar-day.is-single{
  background:#2b8fdb;
  color:#ffffff;
  border-radius:4px;
}
body.page-dashboard .dashboard-date-presets,
#dashboardPage .dashboard-date-presets{
  display:grid;
  gap:6px;
  align-content:start;
  padding-top:0;
}
body.page-dashboard .dashboard-preset-btn,
#dashboardPage .dashboard-preset-btn{
  min-height:28px;
  padding:0 10px;
  text-align:left;
  border:1px solid transparent;
  border-radius:3px;
  background:#f1f3f5;
  color:#1787d8;
  font-weight:600;
  font-size:.78rem;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}
body.page-dashboard .dashboard-preset-btn:hover,
#dashboardPage .dashboard-preset-btn:hover{
  background:#eceff2;
}
body.page-dashboard .dashboard-preset-btn.is-active,
#dashboardPage .dashboard-preset-btn.is-active{
  background:#1197e7;
  color:#ffffff;
}
body.page-dashboard .dashboard-date-actions,
#dashboardPage .dashboard-date-actions{
  display:flex;
  gap:5px;
  align-items:center;
  margin-top:2px;
}
body.page-dashboard .dashboard-date-actions .button,
#dashboardPage .dashboard-date-actions .button{
  min-width:0;
  width:auto;
  min-height:28px;
  padding:0 12px;
  border-radius:3px;
  font-size:.78rem;
  font-weight:700;
  box-shadow:none;
}
body.page-dashboard .dashboard-date-apply-btn,
#dashboardPage .dashboard-date-apply-btn{
  background:#17a34a;
  color:#ffffff;
  border:1px solid #148843;
}
body.page-dashboard .dashboard-date-cancel-btn,
#dashboardPage .dashboard-date-cancel-btn{
  background:#f1f1f1;
  color:#374151;
  border:1px solid #d4d7dc;
}
body.page-dashboard .dashboard-kpi-reference-grid,
#dashboardPage .dashboard-kpi-reference-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:16px;
}
body.page-dashboard .dashboard-kpi-card,
#dashboardPage .dashboard-kpi-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:146px;
  padding:18px 18px 14px;
  border-radius:24px;
  border:1px solid var(--dashboard-border);
  background:linear-gradient(180deg,#ffffff 0%,#f9fbff 100%);
  box-shadow:0 10px 22px rgba(19,35,63,.035);
}
body.page-dashboard .dashboard-kpi-card--net,
#dashboardPage .dashboard-kpi-card--net{
  background:linear-gradient(180deg,#f8fdf8 0%,#eff8ef 100%);
}
body.page-dashboard .dashboard-kpi-top,
#dashboardPage .dashboard-kpi-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
body.page-dashboard .dashboard-kpi-label,
#dashboardPage .dashboard-kpi-label{
  font-size:15px;
  font-weight:800;
  color:var(--dashboard-title);
}
body.page-dashboard .dashboard-kpi-value,
#dashboardPage .dashboard-kpi-value{
  font-size:2.2rem;
  line-height:1.05;
  letter-spacing:-.03em;
  color:#102748;
}
body.page-dashboard .dashboard-kpi-note,
#dashboardPage .dashboard-kpi-note{
  margin:0;
  color:#73829d;
  line-height:1.45;
  font-size:.92rem;
}
body.page-dashboard .dashboard-reference-grid,
#dashboardPage .dashboard-reference-grid{
  display:grid;
  grid-template-columns:minmax(0,1.76fr) minmax(340px,.94fr);
  gap:18px;
  align-items:start;
}
body.page-dashboard .dashboard-reference-grid--secondary,
#dashboardPage .dashboard-reference-grid--secondary{
  grid-template-columns:minmax(0,1.14fr) minmax(340px,.96fr);
}
body.page-dashboard .dashboard-panel,
#dashboardPage .dashboard-panel{
  padding:18px 20px 20px;
  border-radius:26px;
  border:1px solid var(--dashboard-border);
  background:linear-gradient(180deg,#ffffff 0%,var(--dashboard-surface) 100%);
  box-shadow:0 12px 24px rgba(19,35,63,.035);
}
body.page-dashboard .dashboard-panel-trend,
#dashboardPage .dashboard-panel-trend,
body.page-dashboard .dashboard-panel-payment,
#dashboardPage .dashboard-panel-payment{
  min-height:406px;
}
body.page-dashboard .dashboard-panel-timeslot,
#dashboardPage .dashboard-panel-timeslot{
  min-height:316px;
}
body.page-dashboard .dashboard-panel-head,
#dashboardPage .dashboard-panel-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
body.page-dashboard .dashboard-panel-head h3,
#dashboardPage .dashboard-panel-head h3{
  margin:0;
  font-size:1.1rem;
  color:var(--dashboard-title);
}
body.page-dashboard .dashboard-panel-head p,
#dashboardPage .dashboard-panel-head p{
  margin:4px 0 0;
  color:var(--dashboard-muted);
  line-height:1.45;
}
body.page-dashboard .dashboard-period-chip,
#dashboardPage .dashboard-period-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  border-radius:999px;
  background:#edf6e8;
  color:#5d7a46;
  font-weight:800;
  white-space:nowrap;
}
body.page-dashboard .dashboard-plot-frame,
#dashboardPage .dashboard-plot-frame{
  border:1px solid #dee6f3;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
  padding:14px 12px 10px;
}
body.page-dashboard .dashboard-line-reference,
#dashboardPage .dashboard-line-reference,
body.page-dashboard .cost-breakdown-reference,
#dashboardPage .cost-breakdown-reference,
body.page-dashboard .time-slot-reference,
#dashboardPage .time-slot-reference{
  display:grid;
  gap:12px;
}
body.page-dashboard .dashboard-line-scroll,
#dashboardPage .dashboard-line-scroll,
body.page-dashboard .dashboard-cost-scroll,
#dashboardPage .dashboard-cost-scroll,
body.page-dashboard .dashboard-slot-scroll,
#dashboardPage .dashboard-slot-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  padding-bottom:6px;
  scrollbar-color:#aeb9c9 transparent;
}
body.page-dashboard .dashboard-line-scroll::-webkit-scrollbar,
#dashboardPage .dashboard-line-scroll::-webkit-scrollbar,
body.page-dashboard .dashboard-cost-scroll::-webkit-scrollbar,
#dashboardPage .dashboard-cost-scroll::-webkit-scrollbar,
body.page-dashboard .dashboard-slot-scroll::-webkit-scrollbar,
#dashboardPage .dashboard-slot-scroll::-webkit-scrollbar,
body.page-dashboard .dashboard-product-list::-webkit-scrollbar,
#dashboardPage .dashboard-product-list::-webkit-scrollbar{
  height:8px;
  width:8px;
}
body.page-dashboard .dashboard-line-scroll::-webkit-scrollbar-thumb,
#dashboardPage .dashboard-line-scroll::-webkit-scrollbar-thumb,
body.page-dashboard .dashboard-cost-scroll::-webkit-scrollbar-thumb,
#dashboardPage .dashboard-cost-scroll::-webkit-scrollbar-thumb,
body.page-dashboard .dashboard-slot-scroll::-webkit-scrollbar-thumb,
#dashboardPage .dashboard-slot-scroll::-webkit-scrollbar-thumb,
body.page-dashboard .dashboard-product-list::-webkit-scrollbar-thumb,
#dashboardPage .dashboard-product-list::-webkit-scrollbar-thumb{
  background:#c0cad8;
  border-radius:999px;
}
body.page-dashboard .dashboard-line-svg,
#dashboardPage .dashboard-line-svg{
  width:100%;
  min-width:860px;
  height:288px;
  display:block;
}
body.page-dashboard .dashboard-grid-line,
#dashboardPage .dashboard-grid-line{
  stroke:#dbe4f1;
  stroke-dasharray:4 6;
}
body.page-dashboard .dashboard-axis-label,
#dashboardPage .dashboard-axis-label{
  fill:#8a97ae;
  font-size:12px;
  font-weight:700;
}
body.page-dashboard .dashboard-line,
#dashboardPage .dashboard-line{
  fill:none;
  stroke-width:3.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.page-dashboard .dashboard-line--gross,
#dashboardPage .dashboard-line--gross{ stroke:var(--dashboard-purple); }
body.page-dashboard .dashboard-line--net,
#dashboardPage .dashboard-line--net{ stroke:var(--dashboard-teal); }
body.page-dashboard .dashboard-dot,
#dashboardPage .dashboard-dot{
  stroke:#fff;
  stroke-width:2.2;
}
body.page-dashboard .dashboard-dot--gross,
#dashboardPage .dashboard-dot--gross{ fill:var(--dashboard-purple); }
body.page-dashboard .dashboard-dot--net,
#dashboardPage .dashboard-dot--net{ fill:var(--dashboard-teal); }
body.page-dashboard .dashboard-line-legend,
#dashboardPage .dashboard-line-legend,
body.page-dashboard .dashboard-cost-legend,
#dashboardPage .dashboard-cost-legend{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  align-items:center;
  color:#6f7f98;
  font-weight:700;
  font-size:.92rem;
}
body.page-dashboard .dashboard-line-legend,
#dashboardPage .dashboard-line-legend{
  justify-content:flex-end;
  padding-right:8px;
}
body.page-dashboard .legend-swatch,
#dashboardPage .legend-swatch{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  margin-right:8px;
}
body.page-dashboard .legend-swatch--gross,
#dashboardPage .legend-swatch--gross{ background:var(--dashboard-purple); }
body.page-dashboard .legend-swatch--net,
#dashboardPage .legend-swatch--net{ background:var(--dashboard-teal); }
body.page-dashboard .legend-swatch--cost,
#dashboardPage .legend-swatch--cost{ background:#5f7bef; }
body.page-dashboard .legend-swatch--rent,
#dashboardPage .legend-swatch--rent{ background:#33c7b7; }
body.page-dashboard .legend-swatch--discount,
#dashboardPage .legend-swatch--discount{ background:#f2a649; }
body.page-dashboard .dashboard-payment-reference,
#dashboardPage .dashboard-payment-reference{
  display:grid;
  grid-template-columns:196px minmax(0,1fr);
  gap:18px;
  align-items:center;
}
body.page-dashboard .dashboard-payment-visual,
#dashboardPage .dashboard-payment-visual{
  position:relative;
  width:176px;
  height:176px;
  margin:0 auto;
}
body.page-dashboard .payment-donut-reference,
#dashboardPage .payment-donut-reference{
  width:176px;
  height:176px;
  border-radius:50%;
  background:conic-gradient(#e7edf7 0 100%);
  position:relative;
  box-shadow:inset 0 0 0 1px #e4ebf6;
}
body.page-dashboard .payment-donut-reference::after,
#dashboardPage .payment-donut-reference::after{
  content:"";
  position:absolute;
  inset:28px;
  border-radius:50%;
  background:#fff;
  box-shadow:inset 0 0 0 1px #ebf0f7;
}
body.page-dashboard .payment-donut-center-reference,
#dashboardPage .payment-donut-center-reference{
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  text-align:center;
  z-index:1;
  padding:42px;
}
body.page-dashboard .payment-donut-center-reference strong,
#dashboardPage .payment-donut-center-reference strong{
  display:block;
  font-size:2rem;
  line-height:1.05;
  color:#13284b;
}
body.page-dashboard .payment-donut-center-reference span,
#dashboardPage .payment-donut-center-reference span{
  display:block;
  color:#7988a2;
}
body.page-dashboard .payment-method-list-reference,
#dashboardPage .payment-method-list-reference{
  display:grid;
  gap:10px;
}
body.page-dashboard .dashboard-payment-row,
#dashboardPage .dashboard-payment-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border:1px solid #e2e9f4;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  text-decoration:none;
  color:inherit;
}
body.page-dashboard .dashboard-payment-row-left,
#dashboardPage .dashboard-payment-row-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}
body.page-dashboard .dashboard-payment-dot,
#dashboardPage .dashboard-payment-dot{
  width:11px;
  height:11px;
  border-radius:999px;
  flex:0 0 auto;
}
body.page-dashboard .dashboard-payment-row strong,
#dashboardPage .dashboard-payment-row strong{
  display:block;
  color:#142848;
}
body.page-dashboard .dashboard-payment-row small,
#dashboardPage .dashboard-payment-row small{
  color:#7d8ba4;
}
body.page-dashboard .dashboard-payment-row-right,
#dashboardPage .dashboard-payment-row-right{
  text-align:right;
  flex:0 0 auto;
}
body.page-dashboard .dashboard-cost-columns,
#dashboardPage .dashboard-cost-columns{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(74px,74px);
  gap:14px;
  align-items:end;
  min-width:max-content;
  min-height:266px;
  padding:10px 2px 4px;
}
body.page-dashboard .dashboard-cost-column,
#dashboardPage .dashboard-cost-column{
  display:grid;
  justify-items:center;
  gap:10px;
}
body.page-dashboard .dashboard-cost-pill,
#dashboardPage .dashboard-cost-pill{
  width:46px;
  height:184px;
  border-radius:23px;
  background:#f0f4fb;
  border:1px solid #dce5f2;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  padding:0;
}
body.page-dashboard .dashboard-cost-fill,
#dashboardPage .dashboard-cost-fill{
  width:100%;
  display:flex;
  flex-direction:column-reverse;
  align-items:stretch;
}
body.page-dashboard .dashboard-cost-seg,
#dashboardPage .dashboard-cost-seg{
  display:block;
  width:100%;
}
body.page-dashboard .dashboard-cost-seg--cost,
#dashboardPage .dashboard-cost-seg--cost{ background:linear-gradient(180deg,#6d88ff 0%,#5873ef 100%); }
body.page-dashboard .dashboard-cost-seg--rent,
#dashboardPage .dashboard-cost-seg--rent{ background:linear-gradient(180deg,#48d2c8 0%,#32c4ba 100%); }
body.page-dashboard .dashboard-cost-seg--discount,
#dashboardPage .dashboard-cost-seg--discount{ background:linear-gradient(180deg,#f7bc69 0%,#f1a33f 100%); }
body.page-dashboard .dashboard-cost-column strong,
#dashboardPage .dashboard-cost-column strong{
  color:#15294a;
  font-size:1rem;
}
body.page-dashboard .dashboard-cost-column span,
#dashboardPage .dashboard-cost-column span{
  color:#8492aa;
  font-weight:700;
  font-size:.88rem;
}
body.page-dashboard .dashboard-product-list,
#dashboardPage .dashboard-product-list{
  display:grid;
  gap:10px;
  max-height:356px;
  overflow:auto;
  padding-right:4px;
}
body.page-dashboard .dashboard-product-row,
#dashboardPage .dashboard-product-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border:1px solid #e2e9f4;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  text-decoration:none;
  color:inherit;
}
body.page-dashboard .dashboard-product-rank,
#dashboardPage .dashboard-product-rank{
  width:32px;
  height:32px;
  border-radius:12px;
  display:grid;
  place-items:center;
  background:#e9efff;
  color:#2d4fd3;
  font-weight:800;
}
body.page-dashboard .dashboard-product-body,
#dashboardPage .dashboard-product-body{
  display:grid;
  gap:8px;
  min-width:0;
}
body.page-dashboard .dashboard-product-meta,
#dashboardPage .dashboard-product-meta,
body.page-dashboard .dashboard-product-foot,
#dashboardPage .dashboard-product-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
body.page-dashboard .dashboard-product-meta strong,
#dashboardPage .dashboard-product-meta strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.page-dashboard .dashboard-product-meta span,
#dashboardPage .dashboard-product-meta span,
body.page-dashboard .dashboard-product-foot small,
#dashboardPage .dashboard-product-foot small{
  color:#7d8ba4;
}
body.page-dashboard .dashboard-product-track,
#dashboardPage .dashboard-product-track{
  width:100%;
  height:8px;
  border-radius:999px;
  background:#e7eef8;
  overflow:hidden;
}
body.page-dashboard .dashboard-product-fill,
#dashboardPage .dashboard-product-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#627cff 0%,#6c6ef6 46%,#65a3ff 100%);
}
body.page-dashboard .dashboard-slot-bars,
#dashboardPage .dashboard-slot-bars{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:minmax(74px,74px);
  gap:18px;
  align-items:end;
  min-width:max-content;
  padding:8px 2px 2px;
}
body.page-dashboard .dashboard-slot-bar-item,
#dashboardPage .dashboard-slot-bar-item{
  display:grid;
  justify-items:center;
  align-items:end;
  gap:10px;
}
body.page-dashboard .dashboard-slot-bar-wrap,
#dashboardPage .dashboard-slot-bar-wrap{
  width:40px;
  height:176px;
  display:flex;
  align-items:flex-end;
}
body.page-dashboard .dashboard-slot-bar,
#dashboardPage .dashboard-slot-bar{
  width:100%;
  border-radius:18px 18px 10px 10px;
  background:linear-gradient(180deg,#7db4ff 0%,#5d89ff 60%,#57c79a 100%);
  box-shadow:0 12px 20px rgba(93,137,255,.16);
}
body.page-dashboard .dashboard-slot-bar-item strong,
#dashboardPage .dashboard-slot-bar-item strong{
  color:#1a3154;
  font-size:1rem;
}
body.page-dashboard .dashboard-slot-bar-item span,
#dashboardPage .dashboard-slot-bar-item span{
  color:#8391a8;
  font-weight:700;
  font-size:.88rem;
}
@media (max-width: 1380px){
  body.page-dashboard .dashboard-kpi-reference-grid,
  #dashboardPage .dashboard-kpi-reference-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}
@media (max-width: 1120px){
  body.page-dashboard .dashboard-header-card,
  #dashboardPage .dashboard-header-card,
  body.page-dashboard .dashboard-reference-grid,
  #dashboardPage .dashboard-reference-grid,
  body.page-dashboard .dashboard-reference-grid--secondary,
  #dashboardPage .dashboard-reference-grid--secondary{
    grid-template-columns:1fr;
  }
  body.page-dashboard .dashboard-header-card,
  #dashboardPage .dashboard-header-card{
    flex-direction:column;
  }
  body.page-dashboard .dashboard-toolbar-reference,
  #dashboardPage .dashboard-toolbar-reference{
    justify-content:flex-start;
  }
  body.page-dashboard .dashboard-date-popover,
  #dashboardPage .dashboard-date-popover{
    padding-top:96px;
  }
}
@media (max-width: 760px){
  body.page-dashboard .dashboard-kpi-reference-grid,
  #dashboardPage .dashboard-kpi-reference-grid{
    grid-template-columns:1fr 1fr;
  }
  body.page-dashboard .dashboard-toolbar-reference,
  #dashboardPage .dashboard-toolbar-reference{
    width:100%;
  }
  body.page-dashboard .dashboard-toolbar-reference .control,
  #dashboardPage .dashboard-toolbar-reference .control,
  body.page-dashboard .dashboard-toolbar-reference .button,
  #dashboardPage .dashboard-toolbar-reference .button,
  body.page-dashboard .dashboard-date-range,
  #dashboardPage .dashboard-date-range{
    width:100%;
  }
  body.page-dashboard .dashboard-date-popover,
  #dashboardPage .dashboard-date-popover{
    padding:72px 8px 10px;
  }
  body.page-dashboard .dashboard-date-popover-panel,
  #dashboardPage .dashboard-date-popover-panel{
    width:min(100%, 558px);
  }
  body.page-dashboard .dashboard-date-popover-grid,
  #dashboardPage .dashboard-date-popover-grid,
  body.page-dashboard .dashboard-date-calendars,
  #dashboardPage .dashboard-date-calendars{
    grid-template-columns:1fr;
  }
  body.page-dashboard .dashboard-date-actions,
  #dashboardPage .dashboard-date-actions{
    flex-wrap:wrap;
  }
  body.page-dashboard .dashboard-payment-reference,
  #dashboardPage .dashboard-payment-reference{
    grid-template-columns:1fr;
  }
}
@media (max-width: 540px){
  body.page-dashboard .dashboard-kpi-reference-grid,
  #dashboardPage .dashboard-kpi-reference-grid{
    grid-template-columns:1fr;
  }
  body.page-dashboard .dashboard-panel,
  #dashboardPage .dashboard-panel,
  body.page-dashboard .dashboard-header-card,
  #dashboardPage .dashboard-header-card{
    padding:16px;
  }
  body.page-dashboard .dashboard-kpi-value,
  #dashboardPage .dashboard-kpi-value{
    font-size:1.95rem;
  }
  body.page-dashboard .payment-donut-reference,
  #dashboardPage .payment-donut-reference,
  body.page-dashboard .dashboard-payment-visual,
  #dashboardPage .dashboard-payment-visual{
    width:156px;
    height:156px;
  }
}


/* v113 rental hub card header spacing cleanup */
body.page-rental_hub .rental-kpi-grid {
  gap: 16px;
  margin-bottom: 18px;
}
body.page-rental_hub .rental-kpi-card {
  padding: 20px 22px;
}
body.page-rental_hub .rental-grid-2 > .card,
body.page-rental_hub .rental-grid-balance > .card,
body.page-rental_hub .rental-hub-shell > section.card {
  padding: 20px 22px;
}
body.page-rental_hub .rental-section-title {
  margin: 0 0 14px;
  padding: 0 2px;
}
body.page-rental_hub .rental-section-title h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
}
body.page-rental_hub .rental-grid-2 > .card > p,
body.page-rental_hub .rental-grid-balance > .card > p,
body.page-rental_hub .rental-hub-shell > section.card > p {
  margin: 0 2px 14px;
}
body.page-rental_hub .rental-grid-2 > .card > .rental-form-grid,
body.page-rental_hub .rental-grid-balance > .card > .rental-form-grid,
body.page-rental_hub .rental-hub-shell > section.card > .rental-form-grid {
  padding: 0 2px;
}
body.page-rental_hub .rental-table-wrap {
  margin-top: 0;
}
body.page-rental_hub .rental-table-wrap .data-table thead th:first-child,
body.page-rental_hub .rental-table-wrap .data-table tbody td:first-child {
  padding-left: 18px;
}
body.page-rental_hub .rental-table-wrap .data-table thead th:last-child,
body.page-rental_hub .rental-table-wrap .data-table tbody td:last-child {
  padding-right: 18px;
}
@media (max-width: 900px) {
  body.page-rental_hub .rental-kpi-card,
  body.page-rental_hub .rental-grid-2 > .card,
  body.page-rental_hub .rental-grid-balance > .card,
  body.page-rental_hub .rental-hub-shell > section.card {
    padding: 18px 16px;
  }
  body.page-rental_hub .rental-table-wrap .data-table thead th:first-child,
  body.page-rental_hub .rental-table-wrap .data-table tbody td:first-child {
    padding-left: 14px;
  }
  body.page-rental_hub .rental-table-wrap .data-table thead th:last-child,
  body.page-rental_hub .rental-table-wrap .data-table tbody td:last-child {
    padding-right: 14px;
  }
}


/* dashboard chart color fix v101 */

/* v102 compact dashboard KPI cards */
body.page-dashboard .dashboard-focus-grid,
#dashboardPage .dashboard-focus-grid{
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
}
body.page-dashboard .dashboard-focus-card,
#dashboardPage .dashboard-focus-card{
  gap:8px;
  padding:16px 16px 14px;
  min-height:132px;
  border-radius:20px;
}
body.page-dashboard .dashboard-focus-card .metric-icon-badge,
#dashboardPage .dashboard-focus-card .metric-icon-badge{
  width:38px;
  height:38px;
  border-radius:12px;
  font-size:18px;
}
body.page-dashboard .dashboard-focus-card .metric-label,
#dashboardPage .dashboard-focus-card .metric-label{
  font-size:0.9rem;
  line-height:1.3;
}
body.page-dashboard .dashboard-focus-card .metric-value,
#dashboardPage .dashboard-focus-card .metric-value{
  font-size:1.65rem;
  line-height:1.02;
}
body.page-dashboard .dashboard-focus-card .metric-desc,
#dashboardPage .dashboard-focus-card .metric-desc{
  font-size:0.82rem;
  line-height:1.42;
}
@media (max-width: 1600px){
  body.page-dashboard .dashboard-focus-grid,
  #dashboardPage .dashboard-focus-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
  }
}
@media (max-width: 1360px){
  body.page-dashboard .dashboard-focus-grid,
  #dashboardPage .dashboard-focus-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}


/* v200 dashboard KPI aligned to report card style */
body.page-dashboard .dashboard-focus-grid,
#dashboardPage .dashboard-focus-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:14px;
  align-items:stretch;
}
body.page-dashboard .dashboard-focus-card,
#dashboardPage .dashboard-focus-card{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:8px;
  min-height:128px;
  padding:16px 16px 14px;
  border-radius:24px;
  border:1px solid #dfe7f4;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}
body.page-dashboard .dashboard-focus-card .metric-icon-badge,
#dashboardPage .dashboard-focus-card .metric-icon-badge{
  position:absolute;
  top:16px;
  right:16px;
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  border:1px solid #dbe4f4;
  background:#f6f9ff;
  font-size:20px;
}
body.page-dashboard .dashboard-focus-card .metric-label,
#dashboardPage .dashboard-focus-card .metric-label{
  display:block;
  max-width:calc(100% - 56px);
  color:#64748b;
  font-size:.88rem;
  font-weight:800;
  line-height:1.35;
}
body.page-dashboard .dashboard-focus-card .metric-value,
#dashboardPage .dashboard-focus-card .metric-value{
  display:block;
  font-size:1.65rem;
  line-height:1.05;
  color:#13233f;
}
body.page-dashboard .dashboard-focus-card .metric-desc,
#dashboardPage .dashboard-focus-card .metric-desc{
  display:block;
  margin-top:auto;
  color:#8190a7;
  font-size:.82rem;
  line-height:1.42;
}
@media (max-width: 1680px){
  body.page-dashboard .dashboard-focus-grid,
  #dashboardPage .dashboard-focus-grid{grid-template-columns:repeat(5,minmax(0,1fr));}
}
@media (max-width: 1360px){
  body.page-dashboard .dashboard-focus-grid,
  #dashboardPage .dashboard-focus-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}

/* ============================================================
   v201 — Global responsive hardening (mobile & tablet).
   Appended last so it wins source order over the many
   duplicated/legacy grid rules above. Stops content from
   spilling past the screen edge on phones / iPad / tablets.
   ============================================================ */
@media (max-width: 980px){
  html, body { max-width: 100%; overflow-x: hidden; }
  img, svg, video, canvas { max-width: 100%; }

  /* let the main content column actually shrink to the screen */
  .layout-shell, .loyverse-site-shell { grid-template-columns: 1fr !important; }
  .main-content, .loyverse-main-content { min-width: 0 !important; }

  /* page headers / toolbars stack vertically instead of overflowing */
  .topbar, .loyverse-topbar, .dashboard-shell-head, .inventory-topbar,
  .rent-shell-header, .topbar-actions, .filter-bar, .products-toolbar,
  .compact-toolbar, .compact-products-toolbar, .products-toolbar-grid,
  .rent-header-actions, .inventory-toolbar, .dashboard-header-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-template-columns: 1fr !important;
  }

  /* collapse multi-column content grids to 2 columns on tablets */
  .metrics-grid, .mini-metrics-grid, .inventory-kpi-grid,
  .dashboard-focus-grid, .dashboard-quick-grid,
  .inventory-warehouse-summary, .inventory-report-cards,
  .inventory-warehouse-grid {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }

  /* full-width single-column for the larger composite grids */
  .two-col-layout, .dashboard-reference-grid, .inventory-stock-hero,
  .inventory-warehouse-form, .form-grid, .settings-grid,
  .settings-grid-wide, .rental-grid-2, .rental-form-grid {
    grid-template-columns: 1fr !important;
  }

  /* horizontal tab / sub navigation becomes swipeable */
  .rent-subnav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  /* keep inputs/buttons inside the column */
  .search-box, .control, .text-input, .button { min-width: 0; max-width: 100%; }

  /* Cap page-shell tracks so nested min-content grids cannot push the
     whole column wider than the screen (root cause of edge overflow).
     `1fr` tracks grow to a child's min-content unless every nested
     grid/flex item is allowed to shrink, so zero min-width down the
     descendant chain inside the content shell. */
  .page-shell, [class*="page-shell"] { grid-template-columns: 1fr !important; min-width: 0 !important; }
  [class*="page-shell"] *, .main-content *, .loyverse-main-content * { min-width: 0; }

  /* Dashboard reference / chart sub-grids: collapse their min-content
     tracks to the container width. */
  body.page-dashboard [class*="reference"],
  body.page-dashboard .dashboard-product-list,
  body.page-dashboard .dashboard-line-reference,
  body.page-dashboard .product-compare-chart {
    grid-template-columns: 1fr !important;
    min-width: 0;
  }

  /* Horizontal bar/column chart strips scroll inside their card
     instead of stretching the layout. */
  .dashboard-cost-scroll, .dashboard-slot-scroll,
  .dashboard-cost-columns, .dashboard-slot-bars {
    min-width: 0;
  }
  .dashboard-cost-scroll, .dashboard-slot-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px){
  .metrics-grid, .mini-metrics-grid, .inventory-kpi-grid,
  .dashboard-focus-grid, .dashboard-quick-grid,
  .inventory-warehouse-summary, .inventory-report-cards,
  .inventory-warehouse-grid, .tx-total-grid {
    grid-template-columns: 1fr !important;
  }
  .topbar, .loyverse-topbar { padding: 16px !important; }
}

/* Tablet / iPad (600–980px): use the full screen width instead of the
   narrow phone-style 460px column, so the layout actually fills the
   device. Phones (<600px) keep the centered phone column. */
@media (min-width: 600px) and (max-width: 980px){
  body.force-mobile .layout-shell.loyverse-site-shell,
  .layout-shell.loyverse-site-shell {
    max-width: 100% !important;
    padding: 18px !important;
  }
  .dashboard-focus-grid, .inventory-kpi-grid, .mini-metrics-grid,
  .metrics-grid, .dashboard-quick-grid, .inventory-warehouse-summary {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }
}

