:root {
    --app-canvas: #f4f6fa;
    --app-surface: #ffffff;
    --app-border: #e7ebf0;
    --app-text: #1e293b;
    --sidebar-background: #0b172a;
    --umara-navy: #0b172a;
    --umara-navy-active: #172b47;
    --umara-gold: #75663c;
    --umara-gold-hover: #625630;
    --umara-gold-accent: #b69a55;
    --umara-gold-soft: #f2efe6;
    --pos-blue: #356aa8;
    --pos-blue-deep: #244f82;
    --pos-blue-soft: #edf4fb;
    --nonpos-teal: #16847a;
    --nonpos-teal-deep: #126f68;
    --nonpos-teal-soft: #eaf7f4;
    --status-warning: #a46319;
    --status-warning-soft: #fff7e8;
    --status-danger: #b42318;
    --status-danger-soft: #fef3f2;
}

html[data-theme="umara-colorful"] {
    --app-canvas: #f7f5ff;
    --app-surface: #ffffff;
    --app-border: #e6def8;
    --app-text: #201a37;
    --sidebar-background: linear-gradient(180deg, #211747 0%, #302362 55%, #3b2b76 100%);
    --umara-navy: #241b4b;
    --umara-navy-active: #463a82;
    --umara-gold: #7c3aed;
    --umara-gold-hover: #6d28d9;
    --umara-gold-accent: #fb7185;
    --umara-gold-soft: #f3e8ff;
    --pos-blue: #2563eb;
    --pos-blue-deep: #1d4ed8;
    --pos-blue-soft: #eff6ff;
    --nonpos-teal: #0f9f86;
    --nonpos-teal-deep: #0f766e;
    --nonpos-teal-soft: #ecfdf5;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background: var(--app-canvas);
    color: var(--app-text);
}

html[data-theme="umara-colorful"] .hero {
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 58%, #eff6ff 100%);
    border-color: var(--app-border);
    box-shadow: 0 10px 30px rgba(76, 29, 149, 0.06);
}

html[data-theme="umara-colorful"] .panel,
html[data-theme="umara-colorful"] .kpis > div,
html[data-theme="umara-colorful"] .filter-form {
    border-color: var(--app-border);
    box-shadow: 0 8px 24px rgba(76, 29, 149, 0.045);
}

html[data-theme="umara-colorful"] .kpis > div:nth-child(4n + 1) { border-top: 3px solid #7c3aed; }
html[data-theme="umara-colorful"] .kpis > div:nth-child(4n + 2) { border-top: 3px solid #2563eb; }
html[data-theme="umara-colorful"] .kpis > div:nth-child(4n + 3) { border-top: 3px solid #0f9f86; }
html[data-theme="umara-colorful"] .kpis > div:nth-child(4n + 4) { border-top: 3px solid #f97316; }

html[data-theme="umara-colorful"] .multi-select-btn:focus-visible,
html[data-theme="umara-colorful"] select:focus-visible,
html[data-theme="umara-colorful"] input:focus-visible {
    outline: 2px solid rgba(124, 58, 237, 0.35);
    outline-offset: 2px;
}

#blazor-error-ui {
    background: var(--status-warning-soft);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

a, .btn-link {
    color: var(--pos-blue);
}

.btn-primary {
    color: #fff;
    background-color: var(--umara-gold) !important;
    border-color: var(--umara-gold) !important;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    color: #fff;
    background-color: var(--umara-gold-hover) !important;
    border-color: var(--umara-gold-hover) !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(117, 102, 60, 0.32);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid var(--status-danger);
}

.validation-message {
    color: var(--status-danger);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* --- Page-content design system (hero/KPI/panel/grid). Global, not CSS-isolated: these classes are
   used inside every routed page's own markup (Home, Sales, DataManagement, ...), not inside
   MainLayout.razor itself, so a MainLayout-scoped stylesheet can never match them - Blazor CSS
   isolation only stamps its scope attribute onto elements literally written in the owning component. --- */
.hero{display:flex;justify-content:space-between;align-items:flex-start;background:#fff;border:1px solid #e7ebf0;border-radius:18px;padding:30px 34px;margin-bottom:16px}
.hero .eyebrow{color:var(--umara-gold);font-weight:700;font-size:.75rem;letter-spacing:.08em;margin:0}
.hero h1{margin:8px 0;font-size:2.2rem;letter-spacing:-.035em}
.hero p{color:#667085;max-width:640px}
.status{color:var(--umara-gold);background:var(--umara-gold-soft);border-radius:999px;padding:8px 12px;font-size:.8rem}
.kpis,.grid{display:grid;gap:16px}
.kpis{grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.kpis>div,.panel{background:#fff;border:1px solid #e7ebf0;border-radius:14px;padding:22px}
.kpis span,.kpis small{display:block;color:#667085}
.kpis strong{display:block;font-size:2rem;letter-spacing:-.035em;margin:14px 0 7px;font-variant-numeric:tabular-nums}
.grid{grid-template-columns:minmax(0,2.15fr) minmax(320px,1fr);margin-top:16px}
.grid>.panel{min-width:0}
.panel h2{font-size:1.05rem;margin-top:0;letter-spacing:-.01em}
@media(max-width:760px){.kpis,.grid{grid-template-columns:1fr}.hero{display:block}.status{display:inline-block;margin-top:10px}}

/* --- Shared reporting UI (Data Management, Sales, Menu Analytics, Home) --- */
.data-table{width:100%;border-collapse:collapse;font-size:.875rem}
.data-table th,.data-table td{padding:10px 12px;text-align:left;border-bottom:1px solid #eef1f5;white-space:nowrap}
.data-table.compact-table th,.data-table.compact-table td{padding:5px 8px;font-size:.74rem}
.clickable-sales-row:hover td{background-color:#eff6ff !important}
.data-table thead th{color:#667085;font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.03em;position:sticky;top:0;background:#fff}
.data-table td.num,.data-table th.num{text-align:right;font-variant-numeric:tabular-nums}
.data-table td.mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.8rem;color:#475467}
.data-table tbody tr:hover{background:#f9fafb}
.data-table tr.row-bad{background:#fef3f2}
.data-table tr.row-bad:hover{background:#fee4e2}
.table-scroll{overflow-x:auto}
.empty{color:#667085;font-style:italic}
.kpis strong.ok{color:#0a7a72}
.kpis strong.bad{color:var(--status-danger)}
.panel{margin-top:16px}
.panel h2{display:flex;align-items:center;justify-content:space-between}
.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.72rem;font-weight:600}
.badge-ok{background:#e9f7f5;color:#0a7a72}
.badge-bad{background:var(--status-danger-soft);color:var(--status-danger)}
.badge-muted{background:#f2f4f7;color:#475467}
.filter-form{display:flex;flex-wrap:wrap;gap:12px;align-items:end;margin-bottom:16px;background:#fff;border:1px solid #e7ebf0;border-radius:14px;padding:16px 20px}
.filter-form label{display:flex;flex-direction:column;gap:5px;font-size:.84rem;color:#475467;font-weight:650}
.filter-form select,.filter-form input{border:1px solid #d8dee8;border-radius:8px;padding:9px 11px;font-size:.9rem;color:#182230;background:#fff}
.filter-form button{border:none;border-radius:8px;background:var(--umara-gold);color:#fff;padding:9px 16px;font-size:.85rem;font-weight:600;cursor:pointer}
.filter-form button.btn-secondary{background:#f1f5f9;color:#334155;border:1px solid #cbd5e1}
.filter-form button.btn-secondary:hover{background:#e2e8f0}
.btn-sm{border:1px solid #d8dee8;border-radius:6px;background:#fff;color:#334155;padding:4px 10px;font-size:.78rem;font-weight:600;cursor:pointer}
.btn-sm:hover{background:#f8fafc}
.btn-sm.btn-danger{background:#fff;border-color:#fca5a5;color:#b91c1c}
.btn-sm.btn-danger:hover{background:#fef2f2}
.filter-form .reset{background:#fff;color:#344054;border:1px solid #d8dee8}
.btn-back{display:inline-flex;align-items:center;gap:4px;background:#f1f5f9;color:#334155;border:1px solid #cbd5e1;border-radius:8px;padding:9px 14px;font-size:.84rem;font-weight:600;text-decoration:none;transition:all .15s ease}
.btn-back:hover{background:#e2e8f0;color:#0f172a;text-decoration:none}
.badge-payment{background:#f8fafc;border:1px solid #e2e8f0;color:#1e293b;font-size:.74rem;font-weight:600;padding:2px 7px;border-radius:4px;display:inline-block;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bars{display:flex;flex-direction:column;gap:10px}
.bar-row{display:grid;grid-template-columns:minmax(0,180px) 1fr 140px;gap:12px;align-items:center;font-size:.9rem}
.bar-row .bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.bar-track{background:#eef1f5;border-radius:6px;height:16px;overflow:hidden;display:block}
.bar-fill{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#1b6ec2,#2f8fe0)}
.bar-row .bar-value{text-align:right;font-variant-numeric:tabular-nums;color:#344054}

/* Category list container with localized vertical scrolling */
.category-list-wrap{max-height:540px;overflow-y:auto;overflow-x:hidden;padding-right:6px}
.category-list-wrap::-webkit-scrollbar{width:5px}
.category-list-wrap::-webkit-scrollbar-track{background:#f1f5f9;border-radius:4px}
.category-list-wrap::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}
.category-list-wrap::-webkit-scrollbar-thumb:hover{background:#94a3b8}

/* Stacked category bar items */
.category-bars{display:flex;flex-direction:column;gap:12px}
.category-bar-item{display:flex;flex-direction:column;gap:5px}
.category-bar-header{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.category-bar-label{font-size:.85rem;font-weight:600;color:#1e293b;line-height:1.25;word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-width:0;flex:1}
.category-bar-value{font-size:.82rem;font-weight:600;color:#334155;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;flex-shrink:0}
.category-bar-pct{font-weight:500;color:#64748b;font-size:.78rem;margin-left:2px}
.category-bar-track{background:#eef1f5;border-radius:4px;height:6px;overflow:hidden;width:100%;display:block}
.category-bar-fill{height:100%;border-radius:4px;background:linear-gradient(90deg,#1b6ec2,#2f8fe0);transition:width .3s ease;display:block}
.pill-row{display:flex;flex-wrap:wrap;gap:8px}
.pill{background:#f2f4f7;border-radius:999px;padding:6px 12px;font-size:.78rem;color:#344054}
.trend-svg{width:100%;height:auto}
.legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:.8rem;color:#475467}
.legend span.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}

/* --- Login --- */
.login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at center,#1b355a 0%,#0d1b2e 100%);padding:20px}
.login-card{background:#fff;border-radius:16px;padding:36px 32px 28px;width:100%;max-width:390px;box-shadow:0 20px 50px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.08)}
.login-card .brand{display:flex;align-items:center;gap:14px;margin-bottom:22px}
.login-card .brand .login-brand-logo{height:42px;width:auto;max-width:65px;object-fit:contain;flex-shrink:0}
.login-card .brand .brand-text{display:flex;flex-direction:column;line-height:1.25}
.login-card .brand .brand-company{font-size:0.68rem;font-weight:700;letter-spacing:0.08em;color:#926118;text-transform:uppercase;margin-bottom:2px}
.login-card .brand strong{font-size:1.08rem;color:#0f172a;font-weight:700}
.login-card .brand small{font-size:0.78rem;color:#64748b;font-weight:500}
.login-card h1{margin:0 0 4px;font-size:1.45rem;font-weight:700;color:#0f172a}
.login-card .login-subtitle{margin:0 0 18px;font-size:0.84rem;color:#64748b}
.login-card form{display:flex;flex-direction:column;gap:15px}
.login-card label{display:flex;flex-direction:column;gap:6px;font-size:.82rem;color:#334155;font-weight:600}
.login-card input{border:1px solid #cbd5e1;border-radius:8px;padding:10px 14px;font-size:.95rem;color:#0f172a;background-color:#f8fafc;transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease}
.login-card input:focus{outline:none;border-color:var(--umara-gold);background-color:#fff;box-shadow:0 0 0 3px rgba(117,102,60,.15)}
.login-card button{border:none;border-radius:8px;background:linear-gradient(180deg,var(--umara-gold) 0%,var(--umara-gold-hover) 100%);color:#fff;padding:12px;font-size:.95rem;font-weight:600;letter-spacing:.01em;cursor:pointer;margin-top:4px;box-shadow:0 2px 6px rgba(98,86,48,.3);transition:background .15s ease,transform .1s ease,box-shadow .15s ease}
.login-card button:hover{background:linear-gradient(180deg,#827044 0%,#554a2a 100%);box-shadow:0 4px 12px rgba(98,86,48,.34)}
.login-card button:active{transform:translateY(1px);box-shadow:0 1px 3px rgba(98,86,48,.3)}
.login-card .login-footer{margin-top:24px;padding-top:16px;border-top:1px solid #f1f5f9;text-align:center}
.login-card .login-footer small{font-size:0.72rem;color:#94a3b8;letter-spacing:0.01em}
.login-error{background:var(--status-danger-soft);color:var(--status-danger);border:1px solid #fecaca;border-radius:8px;padding:10px 12px;font-size:.85rem;margin-bottom:14px}
.must-change{background:var(--status-warning-soft);color:var(--status-warning);border-radius:8px;padding:10px 12px;font-size:.85rem;margin-bottom:16px}

/* --- Executive Dashboard Design System (Antigravity One-Screen Recomposition) --- */
.executive-dashboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-sizing: border-box;
  justify-content: flex-start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.dash-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.dash-title-group {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.dash-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.02em;
}

.dash-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  margin: 2px 0 0;
  font-weight: 500;
}

.dashboard-context-link {
  width: fit-content;
  margin-top: 4px;
  color: #4864a8;
  font-size: .71rem;
  font-weight: 700;
  text-decoration: none;
}
.dashboard-context-link:hover { color: #1b3e8b; text-decoration: underline; }

.dashboard-kpi-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  margin: 6px 0 9px;
  color: #5e6b83;
  font-size: .71rem;
}
.dashboard-kpi-context span { display: inline-flex; gap: 4px; }
.dashboard-kpi-context strong { color: #33415d; font-size: .67rem; letter-spacing: .03em; text-transform: uppercase; }

.dash-freshness-row {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.freshness-label {
  font-size: 0.63rem;
  color: #64748b;
  font-weight: 500;
}

.freshness-badge {
  font-size: 0.62rem;
  color: #334155;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 5px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.15;
}

.freshness-badge strong {
  color: #0f172a;
  font-weight: 600;
}

.card-link {
  font-size: 0.60rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 4px;
  border-radius: 4px;
  background: #eff6ff;
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.15;
}

.card-link:hover {
  background: #dbeafe;
  color: #1d4ed8;
  text-decoration: none;
}

.kpi-action-link {
  font-size: 0.60rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 3px;
  transition: color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.15;
}

.kpi-action-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* --- Non-POS Dashboard Version B: management-first compact overview --- */
.catering-dashboard-vb {
  --nonpos-accent: #16847a;
  --nonpos-ink: #24322f;
  --nonpos-olive: #7b8451;
  --nonpos-paper: #f7f5ef;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.catering-dashboard-vb > .dash-header-row {
  align-items: center;
  gap: 12px;
  margin-bottom: 0 !important;
  padding: 8px 10px;
  border: 1px solid #e3e5dc;
  border-radius: 12px;
  background: linear-gradient(115deg, #fff 0%, #f8faf5 100%);
  box-shadow: 0 5px 18px rgba(45, 58, 52, 0.055);
}

.catering-dashboard-vb .dash-title-group { min-width: 250px; }
.catering-dashboard-vb .nonpos-page-kicker {
  display: block;
  color: var(--nonpos-olive);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-transform: uppercase;
}
.catering-dashboard-vb .dash-title { color: var(--nonpos-ink); font-size: 1.45rem; line-height: 1.05; }
.catering-dashboard-vb .dash-subtitle { margin: 2px 0 0; color: #6b746f; font-size: 0.7rem; line-height: 1.25; }
.catering-dashboard-vb .dash-freshness-row { gap: 3px 5px; margin-top: 4px; }
.catering-dashboard-vb .freshness-label { color: #7b827d; font-size: 0.57rem; }
.catering-dashboard-vb .freshness-badge { padding: 2px 5px; border-color: #d9e1d5; background: #f4f7f1; color: #53615b; font-size: 0.55rem; }
.catering-dashboard-vb .freshness-badge strong { color: #2f514a; }
.catering-dashboard-vb .dash-filter-form { gap: 4px; padding: 4px; border-color: #dfe5dc; background: rgba(255,255,255,.86); }
.catering-dashboard-vb .dash-filter-form select,
.catering-dashboard-vb .dash-filter-form input,
.catering-dashboard-vb .dash-filter-form button { min-height: 30px; height: 30px; }

.catering-dashboard-vb .nonpos-view-switcher {
  margin-bottom: 0;
  padding: 4px 6px;
  border-color: #e2e6df;
  border-radius: 10px;
  box-shadow: none;
}
.catering-dashboard-vb .nonpos-view-tab { min-height: 30px; padding: 5px 11px; font-size: 0.7rem; }
.catering-dashboard-vb .nonpos-view-tab:hover { color: #126f68; background: #f4f8f5; }
.catering-dashboard-vb .nonpos-view-tab.active { color: #126f68; border-color: #9bc5bd; background: #eaf5f1; box-shadow: none; }
.catering-dashboard-vb .nonpos-view-tab:focus-visible,
.catering-dashboard-vb button:focus-visible { outline: 2px solid #16847a; outline-offset: 2px; }

.nonpos-vb-overview { display: flex; min-height: 0; flex-direction: column; gap: 8px; }
.nonpos-vb-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.nonpos-vb-kpi {
  display: flex;
  min-width: 0;
  min-height: 84px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 9px 10px;
  border: 1px solid #e1e5df;
  border-radius: 11px;
  background: #fff;
  color: var(--nonpos-ink);
  text-align: left;
  box-shadow: 0 4px 14px rgba(39, 54, 48, 0.045);
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nonpos-vb-kpi:hover { transform: translateY(-1px); border-color: #9bc5bd; box-shadow: 0 7px 18px rgba(39,54,48,.08); }
.nonpos-vb-kpi > span { overflow: hidden; width: 100%; color: #77807a; font-size: 0.61rem; font-weight: 800; letter-spacing: .055em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.nonpos-vb-kpi > strong { overflow: hidden; max-width: 100%; margin-top: 3px; color: #25332f; font-size: 1.08rem; font-weight: 800; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.nonpos-vb-kpi > small { overflow: hidden; width: 100%; margin-top: 5px; color: #7b827f; font-size: 0.57rem; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.nonpos-vb-kpi > small em { color: #16847a; font-style: normal; font-weight: 800; }
.nonpos-vb-kpi--hero { border-color: #9bcfc5; background: linear-gradient(145deg, #edf8f4, #fff); }
.nonpos-vb-kpi--hero > strong { color: #126f68; }
.nonpos-vb-kpi--pipeline { border-color: #cfd5ac; background: linear-gradient(145deg, #f5f6e9, #fff); }
.nonpos-vb-kpi--pipeline > strong { color: #6d7442; }

.nonpos-vb-performance { display: grid; grid-template-columns: 1.05fr .95fr; gap: 8px; min-height: 0; }
.nonpos-vb-panel,
.nonpos-vb-summary {
  min-width: 0;
  border: 1px solid #e1e5df;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(39,54,48,.04);
}
.nonpos-vb-panel { height: 176px; padding: 10px 11px; overflow: hidden; }
.nonpos-vb-panel > header,
.nonpos-vb-summary--agenda > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nonpos-vb-panel header span,
.nonpos-vb-summary header small { display: block; color: #8a928d; font-size: .56rem; font-weight: 800; letter-spacing: .07em; line-height: 1; text-transform: uppercase; }
.nonpos-vb-panel h2 { margin: 3px 0 0; color: var(--nonpos-ink); font-size: .88rem; line-height: 1.1; }
.nonpos-vb-panel header button,
.nonpos-vb-summary--agenda header button { min-height: 28px; padding: 3px 7px; border: 0; border-radius: 6px; background: #edf7f3; color: #126f68; font-size: .59rem; font-weight: 800; cursor: pointer; }
.nonpos-vb-ranked-list { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.nonpos-vb-ranked-list > button {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 3px;
  border: 0;
  border-top: 1px solid #f0f1ed;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.nonpos-vb-ranked-list > button:hover { background: #f7faf8; }
.nonpos-vb-rank,
.nonpos-vb-avatar { display: inline-flex; width: 25px; height: 25px; align-items: center; justify-content: center; border-radius: 8px; background: #eef4ef; color: #617068; font-size: .62rem; font-weight: 800; }
.nonpos-vb-avatar { border-radius: 50%; background: #e7f4f0; color: #16756d; }
.nonpos-vb-list-label,
.nonpos-vb-list-value { display: flex; min-width: 0; flex-direction: column; }
.nonpos-vb-list-label strong { overflow: hidden; color: #33403b; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.nonpos-vb-list-label small,
.nonpos-vb-list-value small { margin-top: 1px; color: #87908a; font-size: .55rem; }
.nonpos-vb-list-value { align-items: flex-end; text-align: right; }
.nonpos-vb-list-value strong { color: #273731; font-size: .67rem; }
.nonpos-vb-panel--sales .nonpos-vb-list-value small { color: #16847a; font-weight: 800; }
.nonpos-vb-empty { margin: 34px 0; color: #8b928e; font-size: .68rem; text-align: center; }

.nonpos-vb-lower { display: grid; grid-template-columns: .83fr 1.22fr 1fr; gap: 8px; }
.nonpos-vb-summary { height: 138px; padding: 10px 11px; overflow: hidden; }
button.nonpos-vb-summary { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-items: center; gap: 9px; color: inherit; text-align: left; cursor: pointer; }
button.nonpos-vb-summary:hover { border-color: #9bc5bd; }
.nonpos-vb-summary__icon { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: #e8f4ef; color: #126f68; font-size: .67rem; font-weight: 900; letter-spacing: .04em; }
.nonpos-vb-summary > span:not(.nonpos-vb-summary__icon) { display: flex; min-width: 0; flex-direction: column; }
.nonpos-vb-summary span > small { color: #89918c; font-size: .55rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.nonpos-vb-summary span > strong,
.nonpos-vb-summary--agenda header strong { margin-top: 3px; color: var(--nonpos-ink); font-size: .76rem; }
.nonpos-vb-summary span > em { margin-top: 6px; color: #126f68; font-size: .92rem; font-style: normal; font-weight: 800; }
.nonpos-vb-summary > b { grid-column: 2; color: #16847a; font-size: .57rem; }
.nonpos-vb-summary--pipeline { border-color: #d6dcc2; background: linear-gradient(145deg,#f7f8ee,#fff); }
.nonpos-vb-summary--pipeline .nonpos-vb-summary__icon { background: #ecefd8; color: #6b7443; }
.nonpos-vb-summary--agenda { padding: 9px 10px; }
.nonpos-vb-agenda-row {
  display: grid;
  grid-template-columns: 31px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 30px;
  padding: 3px 1px;
  border: 0;
  border-top: 1px solid #f0f1ed;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.nonpos-vb-agenda-row time { display: flex; flex-direction: column; align-items: center; padding: 2px; border-radius: 6px; background: #f1f6f3; color: #36534c; }
.nonpos-vb-agenda-row time strong { font-size: .68rem; line-height: 1; }
.nonpos-vb-agenda-row time small { margin-top: 1px; font-size: .47rem; text-transform: uppercase; }
.nonpos-vb-agenda-row > span { display: flex; min-width: 0; flex-direction: column; }
.nonpos-vb-agenda-row > span strong { overflow: hidden; color: #35413d; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.nonpos-vb-agenda-row > span small { color: #8a928d; font-size: .51rem; }
.nonpos-vb-agenda-row > em { color: #68726c; font-size: .55rem; font-style: normal; font-weight: 700; }
.nonpos-vb-agenda-empty { width: 100%; min-height: 65px; border: 0; background: transparent; color: #89918d; font-size: .64rem; cursor: pointer; }
.nonpos-vb-summary--finance { grid-template-rows: 1fr auto; }
.nonpos-vb-finance-chips { grid-column: 1 / -1; display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 3px; }
.nonpos-vb-finance-chips i { padding: 3px 5px; border-radius: 999px; background: #f5f3ec; color: #786f59; font-size: .51rem; font-style: normal; font-weight: 700; }

.drawer-outlet-list > button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #edf0ec;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.drawer-outlet-list > button:last-child { border-bottom: 0; }
.drawer-outlet-list > button:hover { background: #f7faf8; }
.drawer-outlet-list > button p { display: flex; min-width: 0; flex-direction: column; margin: 0; }
.drawer-outlet-list > button p strong { color: #333c4d; font-size: .72rem; }
.drawer-outlet-list > button p small { margin-top: 2px; color: #888f9c; font-size: .59rem; }
.executive-drawer__primary-action { font-family: inherit; cursor: pointer; }

@media (min-width: 1100px) and (max-height: 760px) {
  body:has(.catering-dashboard-vb.is-management-view) .main-content { overflow-y: hidden; }
  .catering-dashboard-vb { gap: 6px; padding-bottom: 4px; }
  .catering-dashboard-vb > .dash-header-row { min-height: 67px; padding: 6px 8px; }
  .catering-dashboard-vb .dash-title-group { flex: 0 1 300px; }
  .catering-dashboard-vb .dash-title { font-size: 1.27rem; }
  .catering-dashboard-vb .dash-subtitle { display: none; }
  .catering-dashboard-vb .dash-freshness-row { margin-top: 3px; }
  .catering-dashboard-vb .dash-controls { flex: 1 1 auto; min-width: 0; }
  .catering-dashboard-vb .dash-filter-form { flex-wrap: nowrap; width: 100%; }
  .catering-dashboard-vb .dash-filter-form > label { flex: 1 1 93px; min-width: 82px; }
  .catering-dashboard-vb .dash-filter-form > label:first-child { flex: 1.35 1 150px; min-width: 145px; }
  .catering-dashboard-vb .nonpos-view-switcher { min-height: 36px; }
  .nonpos-vb-kpi { min-height: 77px; padding: 7px 9px; }
  .nonpos-vb-kpi > strong { font-size: 1rem; }
  .nonpos-vb-panel { height: 166px; padding: 8px 10px; }
  .nonpos-vb-ranked-list { margin-top: 4px; }
  .nonpos-vb-ranked-list > button { min-height: 36px; }
  .nonpos-vb-summary { height: 126px; padding: 8px 9px; }
  .nonpos-vb-agenda-row { min-height: 27px; }
}

@media (max-width: 1099px) {
  .catering-dashboard-vb > .dash-header-row { align-items: stretch; }
  .nonpos-vb-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nonpos-vb-performance { grid-template-columns: 1fr; }
  .nonpos-vb-panel { height: auto; min-height: 176px; }
  .nonpos-vb-lower { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nonpos-vb-summary--finance { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .catering-dashboard-vb { gap: 8px; }
  .catering-dashboard-vb > .dash-header-row { padding: 10px; }
  .catering-dashboard-vb .dash-title-group { min-width: 0; }
  .catering-dashboard-vb .dash-title { font-size: 1.3rem; }
  .catering-dashboard-vb .dash-subtitle { display: block; font-size: .67rem; }
  .catering-dashboard-vb .dash-filter-form { grid-template-columns: 1fr 1fr; }
  .catering-dashboard-vb .nonpos-view-switcher { overflow-x: auto; }
  .catering-dashboard-vb .nonpos-view-tabs { min-width: max-content; }
  .catering-dashboard-vb .nonpos-view-tab { min-height: 40px; }
  .nonpos-vb-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nonpos-vb-kpi { min-height: 96px; }
  .nonpos-vb-performance,
  .nonpos-vb-lower { grid-template-columns: 1fr; }
  .nonpos-vb-panel,
  .nonpos-vb-summary { height: auto; min-height: 150px; }
  .nonpos-vb-summary--finance { grid-column: auto; }
}

button.kpi-action-link,
button.legend-mini-link {
  border: 0;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.btn-print {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  height: 32px;
  transition: all 0.15s ease;
}

.btn-print:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Print Icon Button */
.btn-print-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  color: #334155;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.btn-print-icon:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

/* Multi-Select Resto Dropdown */
.multi-select-wrap {
  position: relative;
  display: inline-block;
}

.multi-select-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 11px;
  height: 32px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  min-width: 175px;
  max-width: 220px;
  white-space: nowrap;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.multi-select-btn:hover {
  border-color: #94a3b8;
}

.multi-select-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  flex: 1 1 auto;
}

.multi-select-btn .chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.multi-select-btn .chevron.open {
  transform: rotate(180deg);
}

.multi-select-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 1000;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  min-width: 270px;
  width: max-content;
  max-width: min(340px, calc(100vw - 32px));
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.multi-select-head {
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  box-sizing: border-box;
}

.multi-select-all {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  cursor: pointer;
  user-select: none;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none !important;
  box-sizing: border-box !important;
}

.multi-select-list {
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 0;
  box-sizing: border-box;
}

.multi-select-item {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 8px 12px !important;
  font-size: 0.78rem !important;
  color: #334155 !important;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  flex: none !important;
  box-sizing: border-box !important;
}

.multi-select-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

/* Explicit Checkbox Sizing for Desktop, Mobile & Safari */
.multi-select-dropdown input[type="checkbox"],
.multi-select-head input[type="checkbox"],
.multi-select-list input[type="checkbox"],
.multi-select-all input[type="checkbox"],
.multi-select-item input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  accent-color: var(--umara-gold) !important;
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  box-sizing: border-box !important;
}

.multi-select-all span,
.multi-select-item span {
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  text-align: left !important;
}

.multi-select-footer {
  padding: 8px 12px 4px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  box-sizing: border-box;
}

.multi-select-footer .btn-done {
  background: var(--umara-gold);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.multi-select-footer .btn-done:hover {
  background: var(--umara-gold-hover);
}

.settings-scope-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 300px;
}

.settings-scope-label {
  color: #475467;
  font-size: .84rem;
  font-weight: 650;
}

.settings-scope-field .multi-select-wrap,
.settings-scope-field .multi-select-btn {
  width: 100%;
}

.settings-scope-field .multi-select-btn {
  height: 39px;
  max-width: none;
}

.settings-scope-field .multi-select-dropdown {
  min-width: 100%;
}

.settings-scope-panel {
  overflow: visible;
}

.settings-outlet-editor {
  border-top: 1px solid #e2e8f0;
  margin-top: 20px;
  padding-top: 20px;
}

.settings-outlet-editor:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.settings-outlet-editor > h2,
.settings-outlet-editor h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.settings-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.pill-toggle-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}

.btn-pill-toggle {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-pill-toggle:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-pill-toggle.active {
  background: var(--umara-gold);
  color: #ffffff;
  border-color: var(--umara-gold);
}

.btn-pill-toggle.pill-bottom.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

.pill-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-mini-resto {
  font-size: 0.60rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 3px;
  margin-right: 3px;
}

.legend-mini-link {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  padding: 1px 2px;
  transition: background 0.15s ease, color 0.15s ease;
}

.legend-mini-link:hover {
  background: #f1f5f9;
  color: #1d4ed8;
  text-decoration: none;
}

.legend-mini-link:hover .label {
  color: #1d4ed8;
  font-weight: 600;
}

.legend-mini-link-stacked {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  column-gap: 5px;
  row-gap: 1px;
  align-items: center;
}

.legend-mini-link-stacked .dot {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.legend-mini-link-stacked .label,
.legend-mini-link-stacked .val {
  grid-column: 2;
  margin-left: 0;
  padding-left: 0;
  white-space: nowrap;
}

.legend-mini-link-stacked .label {
  grid-row: 1;
  display: block;
  font-weight: 700;
  color: #1e293b;
}

.legend-mini-link-stacked .val {
  grid-row: 2;
  justify-self: start;
  font-size: 0.58rem;
}

.dash-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-filter-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.dash-filter-form label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
}

.dash-filter-form select,
.dash-filter-form input {
  padding: 3px 8px;
  font-size: 0.76rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #ffffff;
  color: #0f172a;
  height: 28px;
}

.dash-filter-form .btn-apply {
  padding: 3px 10px;
  font-size: 0.76rem;
  font-weight: 600;
  background: var(--umara-gold);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.12s;
}

.dash-filter-form .btn-apply:hover {
  background: var(--umara-gold-hover);
}

.dash-filter-form .btn-reset {
  padding: 3px 8px;
  font-size: 0.74rem;
  font-weight: 500;
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  text-decoration: none;
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.dash-filter-form .btn-reset:hover {
  background: #f1f5f9;
}

.dash-filter-form .btn-apply:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #94a3b8;
}

.dash-filter-form .btn-apply-icon {
  padding: 0 9px;
  background: var(--umara-gold);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}

.dash-filter-form .btn-apply-icon:hover {
  background: var(--umara-gold-hover);
}

.dash-filter-form .btn-apply-icon:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #94a3b8;
}

.dash-filter-form .btn-add-icon {
  padding: 0 9px;
  background: var(--umara-gold);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
}

.dash-filter-form .btn-add-icon:hover {
  background: var(--umara-gold-hover);
}

/* Glass / Translucent Date Validation Warning Box */
.date-validation-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(254, 242, 242, 0.94);
  backdrop-filter: blur(4px);
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 3px 8px;
  color: #991b1b;
  font-size: 0.65rem;
  line-height: 1.2;
  margin-top: 3px;
  box-shadow: 0 1px 3px rgba(239, 68, 68, 0.08);
}

.date-validation-box .warn-icon {
  flex-shrink: 0;
  color: #dc2626;
}

.date-validation-box .warn-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.date-validation-box .warn-text strong {
  font-weight: 700;
  color: #991b1b;
}

.date-validation-box .warn-text span {
  color: #7f1d1d;
}

/* View Mode Toggle */
.view-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 3px 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.toggle-text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.toggle-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.15;
}

.toggle-sub {
  font-size: 0.62rem;
  color: #64748b;
  line-height: 1.1;
}

.toggle-btn {
  width: 44px;
  height: 22px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px 3px;
  transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn.on {
  background: var(--umara-gold);
  justify-content: flex-end;
}

.toggle-btn.off {
  background: #cbd5e1;
  justify-content: flex-start;
}

.toggle-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  display: block;
}

.toggle-state-text {
  font-size: 0.58rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 3px;
}

/* Notice / Info Alert Banner */
.dash-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  flex-shrink: 0;
}

.dash-banner.banner-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

.dash-banner.banner-warning {
  background: #fefce8;
  border: 1px solid #fef08a;
  color: #854d0e;
}

.dash-banner svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* KPI Strip & Extensible Rail */
.kpi-section-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.kpi-toast-banner {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

:root {
  --kpi-gap: 8px;
  --kpi-card-width: calc((100% - (4 * var(--kpi-gap))) / 5);
}

.kpi-strip {
  display: flex;
  align-items: stretch;
  gap: var(--kpi-gap);
  flex-shrink: 0;
  width: 100%;
  position: relative;
  min-height: 68px;
}

/* Pinned 0: 0 pinned, 5 rail slots */
.kpi-strip.pinned-0 .kpi-pinned-group { display: none; }
.kpi-strip.pinned-0 .kpi-rail-container { width: 100%; }
.kpi-strip.pinned-0 .kpi-scroll-rail .kpi-card {
  flex: 0 0 calc((100% - (4 * var(--kpi-gap))) / 5);
  width: calc((100% - (4 * var(--kpi-gap))) / 5);
  min-width: calc((100% - (4 * var(--kpi-gap))) / 5);
  max-width: calc((100% - (4 * var(--kpi-gap))) / 5);
}

/* Pinned 1: 1 pinned slot, 4 rail slots */
.kpi-strip.pinned-1 .kpi-pinned-group {
  flex: 0 0 calc((100% - (4 * var(--kpi-gap))) / 5);
  width: calc((100% - (4 * var(--kpi-gap))) / 5);
}
.kpi-strip.pinned-1 .kpi-pinned-group .kpi-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}
.kpi-strip.pinned-1 .kpi-rail-container {
  flex: 0 0 calc((100% - (4 * var(--kpi-gap))) / 5 * 4 + (3 * var(--kpi-gap)));
  width: calc((100% - (4 * var(--kpi-gap))) / 5 * 4 + (3 * var(--kpi-gap)));
}
.kpi-strip.pinned-1 .kpi-scroll-rail .kpi-card {
  flex: 0 0 calc((100% - (3 * var(--kpi-gap))) / 4);
  width: calc((100% - (3 * var(--kpi-gap))) / 4);
  min-width: calc((100% - (3 * var(--kpi-gap))) / 4);
  max-width: calc((100% - (3 * var(--kpi-gap))) / 4);
}

/* Pinned 2: 2 pinned slots, 3 rail slots */
.kpi-strip.pinned-2 .kpi-pinned-group {
  flex: 0 0 calc((100% - (4 * var(--kpi-gap))) / 5 * 2 + (1 * var(--kpi-gap)));
  width: calc((100% - (4 * var(--kpi-gap))) / 5 * 2 + (1 * var(--kpi-gap)));
}
.kpi-strip.pinned-2 .kpi-pinned-group .kpi-card {
  flex: 0 0 calc((100% - (1 * var(--kpi-gap))) / 2);
  width: calc((100% - (1 * var(--kpi-gap))) / 2);
  min-width: calc((100% - (1 * var(--kpi-gap))) / 2);
  max-width: calc((100% - (1 * var(--kpi-gap))) / 2);
}
.kpi-strip.pinned-2 .kpi-rail-container {
  flex: 0 0 calc((100% - (4 * var(--kpi-gap))) / 5 * 3 + (2 * var(--kpi-gap)));
  width: calc((100% - (4 * var(--kpi-gap))) / 5 * 3 + (2 * var(--kpi-gap)));
}
.kpi-strip.pinned-2 .kpi-scroll-rail .kpi-card {
  flex: 0 0 calc((100% - (2 * var(--kpi-gap))) / 3);
  width: calc((100% - (2 * var(--kpi-gap))) / 3);
  min-width: calc((100% - (2 * var(--kpi-gap))) / 3);
  max-width: calc((100% - (2 * var(--kpi-gap))) / 3);
}

/* Pinned 3: 3 pinned slots, 2 rail slots */
.kpi-strip.pinned-3 .kpi-pinned-group {
  flex: 0 0 calc((100% - (4 * var(--kpi-gap))) / 5 * 3 + (2 * var(--kpi-gap)));
  width: calc((100% - (4 * var(--kpi-gap))) / 5 * 3 + (2 * var(--kpi-gap)));
}
.kpi-strip.pinned-3 .kpi-pinned-group .kpi-card {
  flex: 0 0 calc((100% - (2 * var(--kpi-gap))) / 3);
  width: calc((100% - (2 * var(--kpi-gap))) / 3);
  min-width: calc((100% - (2 * var(--kpi-gap))) / 3);
  max-width: calc((100% - (2 * var(--kpi-gap))) / 3);
}
.kpi-strip.pinned-3 .kpi-rail-container {
  flex: 0 0 calc((100% - (4 * var(--kpi-gap))) / 5 * 2 + (1 * var(--kpi-gap)));
  width: calc((100% - (4 * var(--kpi-gap))) / 5 * 2 + (1 * var(--kpi-gap)));
}
.kpi-strip.pinned-3 .kpi-scroll-rail .kpi-card {
  flex: 0 0 calc((100% - (1 * var(--kpi-gap))) / 2);
  width: calc((100% - (1 * var(--kpi-gap))) / 2);
  min-width: calc((100% - (1 * var(--kpi-gap))) / 2);
  max-width: calc((100% - (1 * var(--kpi-gap))) / 2);
}

/* Pinned 4: 4 pinned slots, 1 rail slot */
.kpi-strip.pinned-4 .kpi-pinned-group {
  flex: 0 0 calc((100% - (4 * var(--kpi-gap))) / 5 * 4 + (3 * var(--kpi-gap)));
  width: calc((100% - (4 * var(--kpi-gap))) / 5 * 4 + (3 * var(--kpi-gap)));
}
.kpi-strip.pinned-4 .kpi-pinned-group .kpi-card {
  flex: 0 0 calc((100% - (3 * var(--kpi-gap))) / 4);
  width: calc((100% - (3 * var(--kpi-gap))) / 4);
  min-width: calc((100% - (3 * var(--kpi-gap))) / 4);
  max-width: calc((100% - (3 * var(--kpi-gap))) / 4);
}
.kpi-strip.pinned-4 .kpi-rail-container {
  flex: 0 0 calc((100% - (4 * var(--kpi-gap))) / 5);
  width: calc((100% - (4 * var(--kpi-gap))) / 5);
}
.kpi-strip.pinned-4 .kpi-scroll-rail .kpi-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
}

.kpi-pinned-group {
  display: flex;
  align-items: stretch;
  gap: var(--kpi-gap);
  flex-shrink: 0;
}

.kpi-rail-container {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  position: relative;
}

.kpi-scroll-rail {
  display: flex;
  align-items: stretch;
  gap: var(--kpi-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.kpi-scroll-rail::-webkit-scrollbar {
  display: none;
}

.kpi-scroll-rail.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.kpi-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.kpi-nav-btn#kpi-rail-prev {
  left: 2px;
}

.kpi-nav-btn#kpi-rail-next {
  right: 2px;
}

.kpi-nav-btn.visible {
  opacity: 0.9;
  pointer-events: auto;
}

.kpi-nav-btn.visible:hover {
  opacity: 1;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  transform: translateY(-50%) scale(1.08);
}

.kpi-nav-btn.disabled {
  opacity: 0;
  pointer-events: none;
}

.kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  min-height: 68px;
  box-sizing: border-box;
  position: relative;
  flex: 0 0 var(--kpi-card-width);
  width: var(--kpi-card-width);
  min-width: var(--kpi-card-width);
  max-width: var(--kpi-card-width);
  scroll-snap-align: start;
}

.kpi-pinned-group .kpi-card {
  flex: 0 0 var(--kpi-card-width);
  width: var(--kpi-card-width);
}

.kpi-grid .kpi-card {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.kpi-pin-btn {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  opacity: 0.45;
  transition: all 0.15s ease;
  padding: 0;
  z-index: 3;
}

.kpi-card:hover .kpi-pin-btn {
  opacity: 0.85;
}

.kpi-pin-btn:hover {
  opacity: 1 !important;
  background: #f1f5f9;
  color: #0f172a;
}

.kpi-pin-btn.pinned {
  opacity: 1 !important;
  color: var(--umara-gold);
}

.kpi-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-wrap svg {
  width: 17px;
  height: 17px;
}

.kpi-icon-wrap.blue { background: #eff6ff; color: #1b6ec2; }
.kpi-icon-wrap.green { background: #ecfdf5; color: #059669; }
.kpi-icon-wrap.purple { background: #f5f3ff; color: #7c3aed; }
.kpi-icon-wrap.orange { background: #fffbeb; color: #d97706; }
.kpi-icon-wrap.yellow { background: #fefce8; color: #ca8a04; }
.kpi-icon-wrap.teal { background: #f0fdfa; color: #0d9488; }

.kpi-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.kpi-val {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin: 1px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-sub {
  font-size: 0.65rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* KPI Comparison Stack (Growth + YoY) */
.kpi-comp-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 1px;
}

.kpi-comp-row {
  font-size: 0.63rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 3px;
  line-height: 1.15;
}

/* Growth & YoY KPI Badge */
.growth-badge {
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 1.15;
}

.growth-badge.growth-pos {
  background: #ecfdf5;
  color: #047857;
}

.growth-badge.growth-neg {
  background: #fef2f2;
  color: #b91c1c;
}

.growth-badge.growth-na {
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.growth-subtext {
  font-size: 0.6rem;
  color: #64748b;
  font-weight: 500;
}

/* EOM Projection Row */
.kpi-proj-row {
  color: #64748b;
  font-size: 0.62rem;
  line-height: 1.15;
}

.kpi-proj-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-proj-val {
  color: #1e293b;
  font-weight: 700;
}

/* Card & Panels */
.dash-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.dash-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  flex-shrink: 0;
}

.dash-card .card-head h2 {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.badge-raw {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
}

.dash-card .card-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Middle Grid: 3 columns */
.dash-grid-mid {
  display: grid;
  grid-template-columns: minmax(0, 1.20fr) minmax(0, 1.20fr) minmax(0, 0.70fr);
  gap: 8px;
  height: clamp(232px, 34vh, 270px);
  flex-shrink: 0;
}

/* Lower Grid: 4 columns */
.dash-grid-low {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  height: auto;
  min-height: 0;
  flex: 1 1 0;
}

.dash-grid-low .lower-scroll-body {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dash-grid-low .lower-scroll-body::-webkit-scrollbar {
  display: none;
}

.dash-grid-low .lower-scroll-body:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
  border-radius: 4px;
}

.dash-grid-low .lower-scroll-body > .outlet-items-list,
.dash-grid-low .lower-scroll-body > .fiscal-compact-list {
  height: auto;
  overflow: visible;
}

/* Trend Chart */
.trend-svg {
  width: 100%;
  height: 100%;
  max-height: 160px;
  display: block;
}

.trend-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.64rem;
  color: #64748b;
  margin-right: 4px;
}

.trend-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trend-legend-line {
  display: inline-block;
  width: 10px;
  height: 2px;
  border-radius: 1px;
}

.trend-legend-line.current {
  background: #1b6ec2;
}

.trend-legend-line.previous {
  border-top: 2px dashed #94a3b8;
  height: 0;
}

.trend-legend-line.target {
  border-top: 2px dashed #10b981;
  height: 0;
}

.trend-legend-swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.trend-legend-swatch.weekend {
  background: #fef3c7;
  border: 1px solid #f59e0b;
}

/* Donut Layout */
.donut-mini-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.donut-mini-svg {
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}

.legend-mini-container {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.legend-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* Keep short legends centered, but anchor overflowing legends at the top so
     the first drill-down link never sits above the scrollable hit area. */
  justify-content: safe center;
  gap: 3.5px;
  min-width: 0;
  max-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.legend-mini-list::-webkit-scrollbar {
  display: none;
}

.legend-nav-btn {
  position: absolute;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 10;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.legend-nav-btn.legend-nav-up {
  top: 1px;
}

.legend-nav-btn.legend-nav-down {
  bottom: 1px;
}

.legend-nav-btn.visible {
  opacity: 0.92;
  pointer-events: auto;
}

.legend-nav-btn.visible:hover {
  opacity: 1;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.24);
  transform: scale(1.1);
}

.legend-mini-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.61rem;
  min-width: 0;
  line-height: 1.2;
}

.legend-mini-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-mini-item .label {
  color: #334155;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.legend-mini-item .val {
  color: #64748b;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.59rem;
  margin-left: auto;
  padding-left: 3px;
}

/* Notice Box / Safe States */
.notice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 8px;
  display: flex;
  gap: 7px;
  align-items: flex-start;
  height: 100%;
  box-sizing: border-box;
  color: #475569;
  font-size: 0.68rem;
  line-height: 1.3;
}

.notice-box svg {
  width: 16px;
  height: 16px;
  color: #1b6ec2;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Management Empty State Panel */
.dash-empty-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 48px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.dash-empty-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  max-width: 440px;
}

.dash-empty-box .empty-icon {
  color: #94a3b8;
  margin-bottom: 2px;
}

.dash-empty-box .empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.dash-empty-box .empty-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}


/* Fiscal Summary Compact List */
.fiscal-compact-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  height: 100%;
}

.fiscal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.65rem;
  line-height: 1.15;
}

.fiscal-label {
  color: #475569;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  line-height: 1.15;
}

.fiscal-label svg {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
}

.fiscal-val {
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-size: 0.65rem;
  line-height: 1.1;
}

.fiscal-val small {
  display: block;
  font-size: 0.54rem;
  font-weight: normal;
  color: #64748b;
  line-height: 1;
  margin-top: 1px;
}

.fiscal-note {
  font-size: 0.54rem;
  color: #94a3b8;
  margin-top: auto;
  font-style: italic;
  line-height: 1.1;
  padding-top: 2px;
}

/* Operational Badge */
.op-badge {
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.54rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.compliment-highlight-row {
  cursor: pointer;
  border-left: 2px solid #3b82f6;
  padding-left: 4px;
  border-radius: 2px;
  transition: background-color 0.15s ease;
}

.compliment-highlight-row:hover {
  background: #eff6ff;
}

.drill-link {
  color: #2563eb;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin-left: 2px;
}

.val-unsupported {
  color: #94a3b8;
  font-size: 0.6rem;
  font-style: italic;
  font-weight: 500;
}

/* Compliment Modal Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(2px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.15s ease-out;
}

.modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 980px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.modal-head {
  padding: 14px 18px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.modal-head h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.modal-subtitle {
  font-size: 0.72rem;
  color: #64748b;
  margin: 2px 0 0;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-kpi-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px 18px;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
}

.modal-kpi-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-kpi-item span {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.modal-kpi-item strong {
  font-size: 0.92rem;
  color: #0f172a;
  font-weight: 800;
}

.modal-table-wrap {
  flex: 1;
  overflow-y: auto;
  min-height: 160px;
  max-height: 48vh;
  padding: 0;
}

.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  text-align: left;
}

.modal-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  padding: 8px 12px;
  font-weight: 700;
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
  z-index: 10;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.modal-table td {
  padding: 7px 12px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.modal-table tr:hover {
  background: #f8fafc;
}

.modal-table td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  background: #f1f5f9;
  padding: 2px 4px;
  border-radius: 4px;
  color: #0f172a;
}

.badge-outlet {
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.64rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-method {
  background: #dbeafe;
  color: #1e40af;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.notes-cell {
  max-width: 240px;
  white-space: normal;
  line-height: 1.25;
  color: #475569;
  font-size: 0.68rem;
}

.modal-foot {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.modal-foot-note {
  font-size: 0.66rem;
  color: #64748b;
  font-style: italic;
}

.btn-modal-close {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-modal-close:hover {
  background: #334155;
}

/* Raw / Multi-Outlet Items & Categories */
.outlet-items-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.68rem;
  height: 100%;
  overflow-y: auto;
}

.outlet-items-group {
  margin-bottom: 2px;
}

.outlet-items-group strong {
  font-size: 0.68rem;
  color: #1e293b;
  display: block;
}

.outlet-items-group ol {
  margin: 2px 0 0 14px;
  padding: 0;
}

.outlet-items-group li {
  color: #475569;
  font-size: 0.65rem;
  line-height: 1.2;
}

.outlet-subnote {
  font-size: 0.6rem;
  color: #94a3b8;
  font-style: italic;
  margin-top: auto;
  line-height: 1.15;
}

/* Horizontal mini bars */
.mini-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  justify-content: center;
}

.mini-bar-row {
  display: grid;
  grid-template-columns: 75px 1fr 60px;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
}

.mini-bar-row .bar-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #334155;
  font-weight: 600;
}

.mini-bar-track {
  background: #e2e8f0;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  display: block;
}

.mini-bar-fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1b6ec2, #38bdf8);
}

.mini-bar-row .bar-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #475569;
  font-size: 0.65rem;
}

/* Footer note bar */
.dash-footer-bar {
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.68rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  line-height: 1.2;
}

.dash-footer-bar svg {
  width: 13px;
  height: 13px;
  color: #1b6ec2;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 1280px) {
  .dash-header-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    row-gap: 3px;
  }

  .dash-title-group {
    display: contents;
  }

  .dash-title {
    grid-column: 1;
    grid-row: 1;
  }

  .dash-controls {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .dash-freshness-row {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    white-space: normal;
    margin-top: 0;
  }
}

@media (max-width: 1024px) {
  .executive-dashboard {
    height: auto !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .dash-header-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
  }

  .dash-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .dash-title {
    font-size: 1.3rem !important;
    line-height: 1.2 !important;
  }

  .dash-subtitle {
    font-size: 0.76rem !important;
  }

  .dash-controls {
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-self: auto !important;
  }

  .dash-freshness-row {
    grid-column: auto;
    grid-row: auto;
  }

  .dash-filter-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .dash-filter-form > label,
  .dash-filter-form > .multi-select-wrap {
    flex: 1 1 calc(50% - 4px) !important;
    min-width: 130px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .dash-filter-form > label select,
  .dash-filter-form > label input,
  .dash-filter-form > .multi-select-wrap .multi-select-btn {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    font-size: 0.84rem !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .dash-filter-form .btn-apply {
    flex: 2 1 100px !important;
    height: 38px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
  }

  .dash-filter-form .btn-reset {
    flex: 1 1 60px !important;
    height: 38px !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .dash-filter-form .btn-print-icon {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 8px !important;
  }

  .date-validation-box {
    width: 100% !important;
    margin-top: 4px !important;
    padding: 6px 10px !important;
    box-sizing: border-box !important;
  }

  .view-toggle-wrap {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 6px 12px !important;
    box-sizing: border-box !important;
  }

  /* KPI Section on Tablet / Foldable */
  .kpi-section-container {
    width: 100% !important;
    gap: 6px !important;
  }

  .kpi-strip,
  .kpi-strip[class*="pinned-"] {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    height: auto !important;
  }

  .kpi-strip .kpi-pinned-group,
  .kpi-strip .kpi-rail-container,
  .kpi-strip .kpi-scroll-rail {
    display: contents !important;
    width: 100% !important;
  }

  .kpi-card,
  .kpi-pinned-group .kpi-card,
  .kpi-strip .kpi-scroll-rail .kpi-card {
    flex: 1 1 calc(33.333% - 8px) !important;
    width: auto !important;
    min-width: 180px !important;
    max-width: none !important;
    min-height: 74px !important;
    padding: 10px 12px !important;
  }

  .kpi-nav-btn {
    display: none !important;
  }

  .kpi-val {
    font-size: 1.2rem !important;
  }

  /* Mid and Low Content Grids */
  .dash-grid-mid,
  .dash-grid-low {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    height: auto !important;
  }

  .dash-grid-low {
    flex: 0 0 auto !important;
    min-height: auto !important;
  }

  .dash-card {
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .dash-card-head {
    margin-bottom: 12px !important;
  }

  .dash-card-title {
    font-size: 0.95rem !important;
  }

  .donut-wrap {
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
  }

  .donut-svg {
    width: 150px !important;
    height: 150px !important;
    flex-shrink: 0 !important;
  }

  .donut-legend {
    width: 100% !important;
    max-height: none !important;
  }

  .donut-item {
    font-size: 0.76rem !important;
    padding: 4px 0 !important;
  }

  .mini-bars {
    gap: 8px !important;
  }

  .mini-bar-row {
    grid-template-columns: minmax(70px, 120px) 1fr 65px !important;
    font-size: 0.76rem !important;
    gap: 8px !important;
  }

  .outlet-items-list {
    max-height: 360px !important;
  }

  .dash-footer-bar {
    flex-wrap: wrap !important;
    font-size: 0.72rem !important;
    padding: 8px 12px !important;
  }
}

/* Mobile Screens (<= 600px) */
@media (max-width: 600px) {
  /* 2-Column KPI Grid */
  .kpi-strip,
  .kpi-strip[class*="pinned-"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .kpi-strip .kpi-pinned-group,
  .kpi-strip .kpi-rail-container,
  .kpi-strip .kpi-scroll-rail {
    display: contents !important;
  }

  .kpi-card,
  .kpi-pinned-group .kpi-card,
  .kpi-strip .kpi-scroll-rail .kpi-card {
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 72px !important;
    padding: 8px 6px 8px 8px !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }

  .kpi-pin-btn {
    top: 3px !important;
    right: 3px !important;
    width: 18px !important;
    height: 18px !important;
  }

  .kpi-icon-wrap {
    width: 28px !important;
    height: 28px !important;
    flex-shrink: 0 !important;
  }

  .kpi-icon-wrap svg {
    width: 14px !important;
    height: 14px !important;
  }

  .kpi-label {
    font-size: 0.62rem !important;
    line-height: 1.15 !important;
    white-space: normal !important;
  }

  .kpi-val {
    font-size: clamp(0.92rem, 3.8vw, 1.15rem) !important;
    white-space: normal !important;
    line-height: 1.15 !important;
    margin: 2px 0 !important;
    word-break: break-word !important;
  }

  .kpi-sub,
  .kpi-comp-row,
  .growth-subtext,
  .kpi-proj-text {
    font-size: 0.58rem !important;
    line-height: 1.15 !important;
  }

  .growth-badge {
    font-size: 0.58rem !important;
    padding: 1px 3px !important;
  }

  /* Filters on small screens */
  .dash-filter-form > label,
  .dash-filter-form > .multi-select-wrap {
    flex: 1 1 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .dash-filter-form > label select,
  .dash-filter-form > label input,
  .dash-filter-form > .multi-select-wrap .multi-select-btn {
    width: 100% !important;
    max-width: 100% !important;
    height: 40px !important;
    font-size: 0.88rem !important;
    box-sizing: border-box !important;
  }

  .dash-filter-form .btn-apply {
    flex: 1 1 calc(50% - 28px) !important;
    height: 40px !important;
    font-size: 0.88rem !important;
  }

  .dash-filter-form .btn-reset {
    flex: 1 1 calc(30% - 20px) !important;
    height: 40px !important;
    font-size: 0.85rem !important;
  }

  .dash-filter-form .btn-print-icon {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
  }

  .multi-select-dropdown {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }

  /* Content Cards on small screens */
  .dash-card {
    padding: 12px 14px !important;
  }

  .mini-bar-row {
    grid-template-columns: minmax(60px, 90px) 1fr 58px !important;
    font-size: 0.68rem !important;
    gap: 6px !important;
  }

  .mini-bar-track {
    height: 6px !important;
  }

  .mini-bar-row .bar-val {
    font-size: 0.62rem !important;
  }

  .donut-svg {
    width: 130px !important;
    height: 130px !important;
  }
}

@media print {
  body {
    background: #ffffff !important;
    font-size: 10pt !important;
  }
  .sidebar,
  .dash-controls,
  .btn-print,
  .kpi-pin-btn,
  .kpi-nav-btn,
  .legend-nav-btn,
  .card-link,
  .kpi-action-link,
  .btn-back,
  .btn-pill-toggle,
  .date-validation-box {
    display: none !important;
  }
  .main-content,
  .executive-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .dash-header-row {
    margin-bottom: 12px !important;
  }
  .dash-grid-mid,
  .dash-grid-low {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    height: auto !important;
    gap: 10px !important;
  }
  .dash-card,
  .kpi-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }
}

/* Resto Unified Card (ss1: Donut & Target side-by-side) */
.resto-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 4px 5px 4px;
  margin-bottom: 5px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.72rem;
  line-height: 1.2;
}

.resto-summary-sales {
  font-weight: 800;
  color: #0f172a;
}

.resto-summary-target {
  font-weight: 600;
  color: #64748b;
}

.resto-summary-pct {
  font-weight: 700;
  font-size: 0.74rem;
}

.resto-summary-pct.target-pass {
  color: #16a34a;
}

.resto-summary-pct.target-track {
  color: #0284c7;
}

.resto-summary-pct.target-warn {
  color: #d97706;
}

.resto-summary-pct.target-danger {
  color: #ef4444;
}

.resto-summary-pct.unconfigured {
  color: #94a3b8;
  font-size: 0.68rem;
}

.resto-unified-body {
  display: grid;
  grid-template-columns: 114px 1fr;
  gap: 14px;
  align-items: center;
  height: calc(100% - 28px);
  min-height: 0;
}

/* Left Column: Compact Donut & Legend */
.resto-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

.resto-donut-svg {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  margin: 0 auto;
}

.resto-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.resto-donut-legend-item {
  display: flex;
  align-items: center;
  width: 100%;
}

.resto-donut-legend-link {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: 3px;
  padding: 1px 3px;
  font-size: 0.65rem;
  line-height: 1.2;
  transition: background 0.15s ease;
}

.resto-donut-legend-link:hover {
  background: #f1f5f9;
  color: #1d4ed8;
  text-decoration: none;
}

.resto-donut-legend-link .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.resto-donut-legend-link .resto-name {
  color: #475569;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resto-donut-legend-link .resto-share {
  color: #0f172a;
  font-weight: 700;
  white-space: nowrap;
  margin-left: auto;
}

/* Right Column: Outlet Targets */
.resto-right-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  height: 100%;
}

.resto-target-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.resto-target-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.resto-target-row1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.70rem;
}

.resto-target-name {
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resto-target-pct {
  font-weight: 700;
  font-size: 0.68rem;
  white-space: nowrap;
  min-width: 28px;
  text-align: right;
  flex-shrink: 0;
}

.resto-target-pct.target-pass {
  color: #16a34a;
}

.resto-target-pct.target-track {
  color: #0284c7;
}

.resto-target-pct.target-warn {
  color: #d97706;
}

.resto-target-pct.target-danger {
  color: #ef4444;
}

.resto-target-pct.unconfigured {
  color: #94a3b8;
  font-weight: 500;
  font-size: 0.68rem;
}

.resto-target-row2 {
  font-size: 0.62rem;
  color: #64748b;
  font-weight: 500;
}

.resto-target-row3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
}

.resto-target-track {
  flex: 1;
  height: 6px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.resto-target-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.resto-target-fill.target-pass {
  background: #10b981;
}

.resto-target-fill.target-track {
  background: #0284c7;
}

.resto-target-fill.target-warn {
  background: #f59e0b;
}

.resto-target-fill.target-danger {
  background: #ef4444;
}

/* KPI Card Mini Target Progress Bar */
.kpi-target-progress-bar {
  width: 100%;
  height: 4px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin: 3px 0 4px;
}

.kpi-target-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.kpi-target-progress-fill.target-pass {
  background: #10b981;
}

.kpi-target-progress-fill.target-track {
  background: #0284c7;
}

.kpi-target-progress-fill.target-warn {
  background: #f59e0b;
}

.kpi-target-progress-fill.target-danger {
  background: #ef4444;
}

/* ==========================================================================
   PRINT STYLES: Kwitansi A5 & Sales Invoice A4
   ========================================================================== */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .sidebar, .top-row, .dash-header-row, .dash-controls, .kpi-section-container,
  .btn-print-icon, .btn-primary, .btn-secondary, .btn-reset, .btn-apply,
  .date-validation-box, .nav-scrollable, header, nav, .card-head button {
    display: none !important;
  }

  #printableKwitansi {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    border: 2px solid #000 !important;
    box-shadow: none !important;
    page-break-after: avoid !important;
  }

  #printableInvoice {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    border: 1px solid #000 !important;
    box-shadow: none !important;
    page-break-after: avoid !important;
  }

  @page {
    size: auto;
    margin: 10mm;
  }
}

/* --- Thin Custom Scrollbar for Calendar and Compact Rails --- */
.calendar-day-events, .custom-scroll {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.calendar-day-events::-webkit-scrollbar, .custom-scroll::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.calendar-day-events::-webkit-scrollbar-track, .custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.calendar-day-events::-webkit-scrollbar-thumb, .custom-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.calendar-day-events::-webkit-scrollbar-thumb:hover, .custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* --- Dashboard Non-POS visual polish --- */
.catering-dashboard {
  --nonpos-accent: #4f46e5;
}

.nonpos-view-switcher {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.nonpos-view-tabs,
.nonpos-year-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nonpos-view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.nonpos-view-tab:hover {
  color: #3730a3;
  background: #f8fafc;
}

.nonpos-view-tab.active {
  color: #3730a3;
  background: #eef2ff;
  border-color: #818cf8;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.08);
}

.nonpos-view-tab:focus-visible,
.nonpos-calendar-nav-button:focus-visible,
.nonpos-calendar-today-button:focus-visible,
.nonpos-calendar-modes button:focus-visible,
.nonpos-day-events:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.nonpos-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.nonpos-insight-grid > .dash-card,
.nonpos-sales-card,
.nonpos-sales-card .card-body {
  min-width: 0;
}

.nonpos-trend-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 0 4px;
  color: #64748b;
  font-size: 0.65rem;
}

.nonpos-trend-peak {
  min-width: 0;
  overflow: hidden;
  color: #b45309;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nonpos-detail-hint {
  flex-shrink: 0;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.nonpos-transactions-card {
  margin-bottom: 20px;
}

.nonpos-transactions-toolbar {
  flex-wrap: wrap;
  gap: 8px 12px;
}

.nonpos-transaction-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.nonpos-filter-control {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 600;
}

.nonpos-search-control {
  width: 190px;
  min-width: 150px;
  height: 28px;
  padding: 2px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 0.74rem;
}

.nonpos-search-control::placeholder {
  color: #64748b;
  opacity: 1;
}

.nonpos-search-control:focus {
  border-color: var(--nonpos-teal);
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 132, 122, 0.12);
}

.nonpos-add-order {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 3px 10px;
  border: 0;
  border-radius: 6px;
  background: var(--umara-gold);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.nonpos-transaction-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.clickable-sales-row:focus-visible,
.nonpos-event-card:focus-visible {
  position: relative;
  outline: 2px solid var(--nonpos-teal);
  outline-offset: -2px;
}

.nonpos-sales-table-wrap {
  max-height: 190px;
  overflow-x: hidden;
  overflow-y: auto;
}

.nonpos-sales-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.68rem;
}

.nonpos-sales-table th,
.nonpos-sales-table td {
  overflow: hidden;
  padding: 4px 5px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nonpos-sales-table th:nth-child(1),
.nonpos-sales-table td:nth-child(1) { width: 27%; }
.nonpos-sales-table th:nth-child(2),
.nonpos-sales-table td:nth-child(2) { width: 12%; }
.nonpos-sales-table th:nth-child(3),
.nonpos-sales-table td:nth-child(3) { width: 14%; }
.nonpos-sales-table th:nth-child(4),
.nonpos-sales-table td:nth-child(4) { width: 32%; }
.nonpos-sales-table th:nth-child(5),
.nonpos-sales-table td:nth-child(5) { width: 15%; }

.nonpos-calendar-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 12px;
}

.nonpos-calendar-toolbar {
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.nonpos-calendar-heading,
.nonpos-calendar-navigation,
.nonpos-calendar-modes {
  display: inline-flex;
  align-items: center;
}

.nonpos-calendar-heading { gap: 6px; }
.nonpos-calendar-navigation { gap: 4px; }

.nonpos-calendar-nav-button,
.nonpos-calendar-today-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 27px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}

.nonpos-calendar-nav-button {
  width: 28px;
  padding: 0;
}

.nonpos-calendar-today-button { padding: 2px 9px; }

.nonpos-calendar-nav-button:hover,
.nonpos-calendar-today-button:hover {
  border-color: #9bc5bd;
  background: var(--nonpos-teal-soft);
  color: var(--nonpos-teal-deep);
}

.nonpos-calendar-modes {
  gap: 2px;
  padding: 2px;
  border-radius: 6px;
  background: #f1f5f9;
}

.nonpos-calendar-modes button {
  padding: 4px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.nonpos-calendar-modes button:hover { color: var(--nonpos-teal-deep); }

.nonpos-calendar-modes button.active {
  background: var(--nonpos-teal);
  color: #fff;
  box-shadow: 0 1px 2px rgba(22, 132, 122, 0.2);
}

.nonpos-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  min-height: 230px;
  flex-grow: 1;
}

.nonpos-day-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.nonpos-day-events {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
}

.nonpos-day-events::-webkit-scrollbar { display: none; }

.nonpos-event-card {
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid #bfdbfe;
  border-left-width: 3px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  font-size: 0.68rem;
  line-height: 1.25;
}

.nonpos-event-card > div,
.nonpos-event-card span { min-width: 0; }

.nonpos-semester-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.nonpos-semester-kpis > .dash-card { min-width: 0; }

.nonpos-semester-kpis > .dash-card strong {
  overflow: hidden;
  font-size: clamp(0.92rem, 1.22vw, 1.18rem) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1280px) and (min-width: 1025px) {
  .catering-dashboard .dash-title {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .catering-dashboard .dash-filter-form > label:first-child select {
    width: 205px;
    max-width: 205px;
  }

  .catering-dashboard .dash-subtitle {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .catering-dashboard .dash-freshness-row {
    grid-row: 3;
  }

  .nonpos-event-card > div:last-child { flex-wrap: wrap; }
  .nonpos-event-card > div:last-child > span,
  .nonpos-event-card > div:last-child > strong {
    width: 100%;
  }
  .nonpos-event-card > div:last-child > strong { text-align: right; }
}

@media (max-width: 1024px) {
  .nonpos-insight-grid { grid-template-columns: 1fr; }

  .nonpos-semester-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nonpos-calendar-toolbar {
    align-items: flex-start;
  }

  .nonpos-transactions-toolbar {
    align-items: flex-start;
  }

  .nonpos-transaction-filters {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .nonpos-view-switcher {
    align-items: stretch;
    flex-direction: column;
  }

  .nonpos-view-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .nonpos-view-tab {
    min-width: 0;
    padding: 7px 8px;
    font-size: 0.7rem;
  }

  .nonpos-year-filter { align-self: flex-end; }

  .nonpos-calendar-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .nonpos-calendar-heading,
  .nonpos-calendar-navigation {
    justify-content: space-between;
  }

  .nonpos-calendar-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nonpos-filter-control {
    flex: 1 1 145px;
  }

  .nonpos-filter-control select {
    flex: 1;
    min-width: 0;
  }

  .nonpos-search-control {
    flex: 1 1 100%;
    width: 100%;
  }

  .nonpos-add-order {
    flex: 1 1 100%;
    justify-content: center;
  }

  .nonpos-week-grid {
    display: grid;
    grid-auto-columns: minmax(170px, 76vw);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .nonpos-week-grid::-webkit-scrollbar { display: none; }
  .nonpos-day-column { min-height: 230px; scroll-snap-align: start; }
}

@media (max-width: 480px) {
  .nonpos-semester-kpis { grid-template-columns: 1fr; }
  .nonpos-trend-summary { grid-template-columns: 1fr 1fr; }
  .nonpos-trend-peak { grid-column: 1 / -1; grid-row: 1; }
  .nonpos-trend-summary > span:last-child { text-align: right; }
}

/* Non-POS order entry: readable, responsive, and intentionally scoped to the modal. */
.nonpos-order-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.58);
}

.nonpos-order-modal {
  width: min(1180px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.nonpos-order-form .form-control::placeholder {
  color: #64748b;
  opacity: 1;
}

.nonpos-order-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.nonpos-order-fields:disabled .form-control {
  color: #334155;
  background: #f8fafc;
  opacity: 1;
}

.nonpos-order-form .form-control:focus {
  border-color: var(--nonpos-teal) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 132, 122, 0.12);
}

.nonpos-form-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.nonpos-form-grid--event { grid-template-columns: 1.2fr 1fr 1fr 0.8fr; }
.nonpos-form-grid--client { grid-template-columns: 1.2fr 1fr 0.8fr; }
.nonpos-form-grid--order { grid-template-columns: 1fr 1fr 0.8fr; }
.nonpos-form-grid--financial,
.nonpos-form-grid--payment { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nonpos-form-grid--numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.nonpos-item-grid {
  display: grid;
  grid-template-columns: minmax(210px, 1.8fr) minmax(180px, 1.5fr) minmax(110px, 0.9fr) minmax(70px, 0.7fr) minmax(100px, 1.1fr) 30px;
  gap: 8px;
  align-items: center;
}

.nonpos-source-notice {
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid #9bc5bd;
  border-left: 4px solid var(--nonpos-teal);
  border-radius: 7px;
  background: var(--nonpos-teal-soft);
  color: #334155;
  font-size: 0.75rem;
  line-height: 1.45;
}

.nonpos-source-notice strong {
  display: block;
  color: var(--nonpos-teal-deep);
}

.nonpos-form-actions {
  position: sticky;
  bottom: -24px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 16px -24px -24px;
  padding: 12px 24px;
  border-top: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
}

.nonpos-form-actions > button { flex-shrink: 0; }

.nonpos-save-print {
  padding: 9px 14px;
  border: 1px solid #cfc5a7;
  border-radius: 6px;
  background: var(--umara-gold-soft);
  color: var(--umara-gold-hover);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.nonpos-save-print:disabled,
.invoice-type-tab:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.invoice-type-tab {
  padding: 3px 9px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.invoice-type-tab.active {
  background: var(--nonpos-teal);
  color: #fff;
}

@media (max-width: 980px) {
  .nonpos-form-grid--event,
  .nonpos-form-grid--financial,
  .nonpos-form-grid--payment { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nonpos-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nonpos-item-grid > div:last-child { justify-self: end; }
}

@media (max-width: 680px) {
  .nonpos-order-overlay { padding: 0; align-items: stretch; }
  .nonpos-order-modal { max-height: 100vh; padding: 18px 14px; border-radius: 0; }
  .nonpos-form-grid--event,
  .nonpos-form-grid--client,
  .nonpos-form-grid--order,
  .nonpos-form-grid--financial,
  .nonpos-form-grid--payment,
  .nonpos-form-grid--numbers,
  .nonpos-item-grid { grid-template-columns: 1fr; }
  .nonpos-form-actions {
    bottom: -18px;
    flex-wrap: wrap;
    margin: 16px -14px -18px;
    padding: 10px 14px;
  }
  .nonpos-form-actions > button { flex: 1 1 145px; }
}



/* --- Executive Integrated Dashboard V1 Comparative & Unavail Styles --- */
.exec-comparison-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.exec-compare-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
}

.exec-compare-card.pos-border {
  border-left: 3px solid #1b6ec2;
}

.exec-compare-card.nonpos-border {
  border-left: 3px solid #0d9488;
}

.exec-compare-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.exec-compare-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}

.exec-compare-desc {
  font-size: 0.65rem;
  color: #64748b;
}

.exec-unavail-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 14px 12px;
  text-align: center;
  margin: 10px 0;
}

.exec-unavail-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.exec-unavail-sub {
  font-size: 0.72rem;
  color: #92400e;
  margin-top: 3px;
}

.badge-unavail {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px dashed #cbd5e1;
}

.badge-partial {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #fde68a;
  white-space: nowrap;
  vertical-align: middle;
}

@media print {
  .badge-partial {
    border: 1px solid #d97706;
    color: #92400e !important;
    background: #fef3c7 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* --- Codex UI Lab: Executive Dashboard alternative --- */
.content:has(> .executive-lab) {
  padding-bottom: 0 !important;
}

.executive-lab {
  --exec-ink: #172033;
  --exec-muted: #697386;
  --exec-line: #e7e9ee;
  --exec-surface: #ffffff;
  --exec-canvas: #f6f6f3;
  --exec-brand: #75663c;
  --exec-brand-soft: #f2efe6;
  --exec-pos: #356aa8;
  --exec-pos-soft: #edf4fb;
  --exec-nonpos: #16847a;
  --exec-nonpos-soft: #eaf7f4;
  --exec-warning: #a46319;
  color: var(--exec-ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 5px 0 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.executive-lab *,
.executive-lab *::before,
.executive-lab *::after {
  box-sizing: border-box;
}

.executive-lab svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.executive-lab__masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}

.executive-lab__heading {
  flex: 1 1 410px;
  min-width: 280px;
}

.executive-lab__eyebrow,
.executive-panel__eyebrow,
.executive-stream__kicker {
  display: block;
  color: var(--exec-brand);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  line-height: 1.2;
  text-transform: uppercase;
}

.executive-lab__heading h1 {
  margin: 5px 0 3px;
  color: var(--exec-ink);
  font-size: clamp(1.55rem, 2.2vw, 2.05rem);
  font-weight: 760;
  letter-spacing: -0.042em;
  line-height: 1.05;
}

.executive-lab__heading p {
  max-width: 700px;
  margin: 0;
  color: var(--exec-muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.executive-lab__filters {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  flex: 0 1 auto;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--exec-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 18px rgba(35, 39, 47, 0.04);
}

.executive-lab__field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.executive-lab__field > span {
  padding-left: 2px;
  color: #7b8190;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.executive-lab__field select,
.executive-lab__field input {
  width: 124px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #dfe2e8;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #303849;
  font: inherit;
  font-size: 0.71rem;
}

.executive-lab__field--outlet select,
.executive-lab__field--outlet .multi-select-wrap,
.executive-lab__field--outlet .multi-select-btn { width: 175px; }
.executive-lab__field--outlet .multi-select-btn { height: 34px; min-height: 34px; font-size: 0.71rem; }
.executive-lab__field--outlet .multi-select-dropdown { min-width: 275px; }
.executive-lab__field--outlet .multi-select-item small { color: #64748b; font-size: 0.68rem; }
.period-preset-select { min-width: 156px; }
.executive-lab__field--period select { width: 156px; }
.executive-lab__field--date input { width: 122px; }

.executive-lab__field select:focus,
.executive-lab__field input:focus {
  border-color: #9c906e;
  box-shadow: 0 0 0 3px rgba(117, 102, 60, 0.1);
}

.executive-lab__apply,
.executive-lab__reset {
  height: 34px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.69rem;
  font-weight: 750;
}

.executive-lab__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 70px;
  padding: 0 12px;
  background: var(--exec-brand);
  color: #fff;
}

.executive-lab__apply:hover { background: #625630; }
.executive-lab__apply:disabled { cursor: not-allowed; opacity: 0.45; }

.executive-lab__reset {
  display: grid;
  place-items: center;
  width: 34px;
  flex: 0 0 34px;
  border: 1px solid #dfe2e8;
  background: #fff;
  color: #6d7483;
}

.executive-lab__reset:hover { background: #f7f7f5; color: var(--exec-brand); }
.executive-lab__reset svg { width: 15px; height: 15px; }

.executive-lab__validation {
  padding: 9px 12px;
  border: 1px solid #f3d8a8;
  border-radius: 9px;
  background: #fff8eb;
  color: #8b5515;
  font-size: 0.73rem;
  font-weight: 650;
}

.executive-lab__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 360px;
  border: 1px solid var(--exec-line);
  border-radius: 16px;
  background: var(--exec-surface);
  color: var(--exec-muted);
  font-size: 0.8rem;
}

.executive-lab__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ddd8c9;
  border-top-color: var(--exec-brand);
  border-radius: 50%;
  animation: executive-lab-spin 0.8s linear infinite;
}

@keyframes executive-lab-spin { to { transform: rotate(360deg); } }

.executive-lab__coverage {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) repeat(2, minmax(260px, 1fr));
  min-height: 58px;
  border: 1px solid var(--exec-line);
  border-radius: 13px;
  overflow: hidden;
  background: var(--exec-surface);
  box-shadow: 0 5px 16px rgba(35, 39, 47, 0.035);
}

.executive-lab__coverage-intro,
.executive-lab__coverage-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 14px;
}

.executive-lab__coverage-intro {
  background: #fafaf8;
  border-right: 1px solid var(--exec-line);
}

.executive-lab__coverage-intro > div,
.executive-lab__coverage-item > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.executive-lab__coverage-intro strong,
.executive-lab__coverage-item strong {
  color: #31394a;
  font-size: 0.73rem;
}

.executive-lab__coverage-intro span:not(.executive-lab__coverage-icon),
.executive-lab__coverage-item div > span {
  color: #7c8493;
  font-size: 0.62rem;
}

.executive-lab__coverage-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 9px;
  background: var(--exec-brand-soft);
  color: var(--exec-brand);
}

.executive-lab__coverage-icon svg { width: 17px; height: 17px; }

.executive-lab__coverage-item { border-right: 1px solid var(--exec-line); }
.executive-lab__coverage-item:last-child { border-right: 0; }

.executive-lab__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--exec-pos);
  box-shadow: 0 0 0 4px var(--exec-pos-soft);
}

.executive-lab__coverage-item--nonpos .executive-lab__dot {
  background: var(--exec-nonpos);
  box-shadow: 0 0 0 4px var(--exec-nonpos-soft);
}

.executive-lab__status {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.59rem;
  font-weight: 800;
  white-space: nowrap;
}

.executive-lab__status.is-full { background: #eaf6ed; color: #2d7340; }
.executive-lab__status.is-partial { background: #fff3dd; color: var(--exec-warning); }
.executive-lab__status.is-unavailable { background: #f0f1f4; color: #757d8c; }

.executive-lab__streams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.executive-stream {
  position: relative;
  min-width: 0;
  min-height: 246px;
  padding: 17px 18px 15px;
  overflow: hidden;
  border: 1px solid var(--exec-line);
  border-radius: 17px;
  background: var(--exec-surface);
  box-shadow: 0 9px 28px rgba(35, 39, 47, 0.055);
}

.executive-stream::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--exec-pos);
}

.executive-stream--nonpos::before { background: var(--exec-nonpos); }

.executive-stream::after {
  content: "";
  position: absolute;
  top: -78px;
  right: -60px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 106, 168, 0.08), rgba(53, 106, 168, 0));
  pointer-events: none;
}

.executive-stream--nonpos::after {
  background: radial-gradient(circle, rgba(22, 132, 122, 0.09), rgba(22, 132, 122, 0));
}

.executive-stream__topline,
.executive-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.executive-stream__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.executive-stream__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 10px;
  background: var(--exec-pos-soft);
  color: var(--exec-pos);
}

.executive-stream--nonpos .executive-stream__icon {
  background: var(--exec-nonpos-soft);
  color: var(--exec-nonpos);
}

.executive-stream__icon svg { width: 19px; height: 19px; }
.executive-stream--pos .executive-stream__kicker { color: var(--exec-pos); }
.executive-stream--nonpos .executive-stream__kicker { color: var(--exec-nonpos); }

.executive-stream h2,
.executive-panel h2 {
  margin: 3px 0 0;
  color: var(--exec-ink);
  font-size: 0.98rem;
  font-weight: 770;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.executive-stream__link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #dce4ed;
  border-radius: 999px;
  background: #fff;
  color: var(--exec-pos);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 750;
  white-space: nowrap;
}

.executive-stream--nonpos .executive-stream__link { color: var(--exec-nonpos); }
.executive-stream__link:hover { border-color: currentColor; text-decoration: none; }
.executive-stream__link svg { width: 12px; height: 12px; }

.executive-stream__basis {
  margin: 9px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f3;
  color: #858c99;
  font-size: 0.62rem;
  line-height: 1.35;
}

.executive-stream__headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  margin-bottom: 14px;
}

.executive-stream__headline > div:first-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.executive-stream__headline > div:first-child > span,
.executive-stream__target span,
.executive-stream__pipeline span {
  color: #7d8492;
  font-size: 0.62rem;
  font-weight: 650;
}

.executive-stream__headline > div:first-child > strong {
  margin-top: 3px;
  color: #1a2638;
  font-size: clamp(1.35rem, 2.35vw, 2rem);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.executive-stream__target,
.executive-stream__pipeline {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 9px;
  background: #f7f8fa;
  text-align: right;
}

.executive-stream__target strong,
.executive-stream__pipeline strong {
  color: var(--exec-nonpos);
  font-size: 0.86rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.executive-stream__target strong.target-danger { color: #b64d4d; }
.executive-stream__target strong.target-warn { color: var(--exec-warning); }
.executive-stream__target strong.target-track { color: #3f6f9d; }
.executive-stream__target strong.target-pass { color: #2d7b4a; }

.executive-stream__activity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.executive-stream__activity > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f7f8fa;
}

.executive-stream__activity span {
  color: #7c8491;
  font-size: 0.59rem;
  font-weight: 650;
}

.executive-stream__activity strong {
  color: #30394a;
  font-size: 0.75rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.executive-stream__supporting {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  margin-top: 11px;
  color: #858c99;
  font-size: 0.59rem;
}

.executive-stream__supporting strong {
  margin-left: 3px;
  color: #535c6d;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}

.executive-stream__segments {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e5e8ed;
}

.executive-stream__segments-label {
  display: block;
  margin-bottom: 6px;
  color: #6b7280;
  font-size: 0.58rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.executive-stream__segments > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.executive-stream__segment-pill {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid #dceae6;
  border-radius: 7px;
  background: #f5faf8;
  color: #22665d;
  font-size: 0.59rem;
}

.executive-stream__segment-pill strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.executive-stream__segment-pill em {
  flex: 0 0 auto;
  color: #61706e;
  font-size: 0.55rem;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.executive-stream__notice {
  margin: -4px 0 9px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #fff6e6;
  color: #976020;
  font-size: 0.61rem;
  font-weight: 650;
}

.executive-stream__unavailable {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  border: 1px dashed #d9dce2;
  border-radius: 11px;
  background: #fafafa;
}

.executive-stream__unavailable strong { color: #505969; font-size: 0.82rem; }
.executive-stream__unavailable span { margin-top: 4px; color: #858c99; font-size: 0.68rem; }

.executive-operational-target {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) auto minmax(360px, 1fr);
  gap: 22px;
  align-items: center;
  margin: 12px 0;
  padding: 15px 18px;
  border: 1px solid #dbe4f0;
  border-left: 4px solid #857533;
  border-radius: 15px;
  background: linear-gradient(105deg, #fffdf5 0%, #f8fbff 65%);
}
.executive-operational-target__eyebrow { color: #857533; font-weight: 800; font-size: .68rem; letter-spacing: .11em; }
.executive-operational-target h2 { margin: 3px 0 2px; font-size: 1.05rem; color: #17284c; }
.executive-operational-target p { margin: 0; color: #65728a; font-size: .76rem; line-height: 1.45; }
.executive-operational-target__total { min-width: 125px; text-align: right; }
.executive-operational-target__total span, .executive-operational-target__total small { display: block; color: #6e7890; font-size: .72rem; }
.executive-operational-target__total strong { display: block; margin: 1px 0; font-size: 1.55rem; color: #1c8b68; }
.executive-operational-target__split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.executive-operational-target__split span { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.72); color: #34415d; font-size: .75rem; }
.executive-operational-target__split strong { color: #536bab; font-size: .69rem; }
.executive-operational-target__unavailable { display: grid; gap: 3px; color: #667085; font-size: .78rem; }
.executive-operational-target__unavailable strong { color: #34415d; }

@media (max-width: 760px) {
  .executive-operational-target { grid-template-columns: 1fr; gap: 12px; }
  .executive-operational-target__total { text-align: left; }
}

.executive-lab__lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.25fr) minmax(290px, 0.75fr);
  gap: 14px;
  min-width: 0;
}

.executive-panel {
  min-width: 0;
  border: 1px solid var(--exec-line);
  border-radius: 15px;
  background: var(--exec-surface);
  box-shadow: 0 7px 22px rgba(35, 39, 47, 0.045);
}

.executive-panel--outlets { padding: 15px 16px 8px; }
.executive-panel--pipeline,
.executive-panel--entities { padding: 9px 12px; }

.executive-panel__header { align-items: center; }
.executive-panel__hint { color: #8a919d; font-size: 0.6rem; }

.executive-outlets {
  width: 100%;
  margin-top: 9px;
  overflow-x: auto;
}

.executive-outlets table {
  width: 100%;
  min-width: 610px;
  border-collapse: collapse;
}

.executive-outlets th {
  padding: 7px 9px;
  border-bottom: 1px solid #e9ebef;
  color: #858c98;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.executive-outlets th:nth-child(2),
.executive-outlets th:nth-child(3),
.executive-outlets td:nth-child(2),
.executive-outlets td:nth-child(3) { text-align: right; }

.executive-outlets td {
  height: 48px;
  padding: 7px 9px;
  border-bottom: 1px solid #f0f1f3;
  color: #31394a;
  font-size: 0.69rem;
  vertical-align: middle;
}

.executive-outlets tbody tr:last-child td { border-bottom: 0; }
.executive-outlets tbody tr:hover { background: #fafaf8; }

.executive-outlets td > strong,
.executive-outlets td > span:not(.executive-lab__no-data) {
  display: block;
}

.executive-outlets td > strong {
  font-size: 0.71rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.executive-outlets td > span:not(.executive-lab__no-data) {
  margin-top: 2px;
  color: #888f9c;
  font-size: 0.58rem;
}

.executive-lab__mini-status {
  display: inline-block;
  margin-top: 3px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #fff1d8;
  color: #955c18;
  font-size: 0.52rem;
  font-style: normal;
  font-weight: 750;
}

.executive-lab__no-data {
  color: #8c93a0 !important;
  font-size: 0.62rem !important;
  font-weight: 650;
}

.executive-outlets__actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.executive-outlets__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 7px;
  border: 1px solid #e0e3e8;
  border-radius: 6px;
  background: #fff;
  color: #5e6879;
  text-decoration: none;
  font-size: 0.56rem;
  font-weight: 750;
  white-space: nowrap;
}

.executive-outlets__actions a:hover { border-color: var(--exec-brand); color: var(--exec-brand); }

.executive-lab__management-rail {
  display: grid;
  grid-template-rows: auto;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.executive-panel__round-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--exec-nonpos-soft);
  color: var(--exec-nonpos);
}

.executive-panel__round-icon svg { width: 16px; height: 16px; }

.executive-panel__pipeline-value {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 2px 10px;
  margin-top: 5px;
  padding: 6px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f4faf8, #eef7f5);
}

.executive-panel__pipeline-value > span {
  color: #6e807d;
  font-size: 0.61rem;
  font-weight: 750;
  text-transform: uppercase;
}

.executive-panel__pipeline-value > strong {
  margin-top: 0;
  color: #146f68;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.executive-panel__pipeline-value small { grid-column: 1 / -1; margin-top: 1px; color: #71817e; font-size: 0.55rem; }

.executive-panel__wide-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  margin-top: 4px;
  border: 1px solid #cfe6e1;
  border-radius: 8px;
  background: #fff;
  color: var(--exec-nonpos);
  text-decoration: none;
  font-size: 0.61rem;
  font-weight: 750;
}

.executive-panel__wide-link:hover { background: var(--exec-nonpos-soft); text-decoration: none; }

.executive-entities {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}

.executive-entities > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 3px 6px;
  border: 1px solid #eeece5;
  border-radius: 9px;
  background: #fcfcfa;
}

.executive-entities > div > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 7px;
  background: var(--exec-brand-soft);
  color: var(--exec-brand);
  font-size: 0.58rem;
  font-weight: 850;
}

.executive-entities p {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.executive-entities strong { color: #424a59; font-size: 0.65rem; }
.executive-entities small { margin-top: 2px; color: #868d99; font-size: 0.55rem; }

/* Executive: perubahan vs periode sebelumnya, bar kontribusi outlet */
.executive-stream__valuerow {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  min-width: 0;
}

.executive-stream__valuerow > strong { min-width: 0; }

.exec-delta {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: help;
}

.exec-delta.is-up { background: #e3f4ea; color: #2d7b4a; }
.exec-delta.is-down { background: #fbe7e7; color: #b64d4d; }
.exec-delta.is-flat { background: #eef0f3; color: #6b7280; }

.executive-outlets td { position: relative; }

.executive-outlets__bar {
  position: absolute;
  right: 9px;
  bottom: 3px;
  display: block;
  max-width: calc(100% - 18px);
  height: 3px;
  border-radius: 3px;
  opacity: 0.7;
}

.executive-outlets__bar--pos { background: var(--exec-brand, #0f766e); }
.executive-outlets__bar--nonpos { background: var(--exec-nonpos, #146f68); }

.executive-entities strong,
.executive-entities small { font-variant-numeric: tabular-nums; }

/* Executive: sparkline tren, tombol On Hand, tata letak tanpa kolom kanan */
.exec-spark {
  flex: 1 1 60px;
  align-self: center;
  min-width: 48px;
  max-width: 170px;
  height: 26px;
  overflow: visible;
}

.exec-spark__line { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.exec-spark__area { stroke: none; opacity: 0.12; }
.exec-spark--pos .exec-spark__line { stroke: var(--exec-brand, #75663c); }
.exec-spark--pos .exec-spark__area { fill: var(--exec-brand, #75663c); }
.exec-spark--nonpos .exec-spark__line { stroke: var(--exec-nonpos, #16847a); }
.exec-spark--nonpos .exec-spark__area { fill: var(--exec-nonpos, #16847a); }

button.executive-stream__pipeline {
  border: 0;
  font: inherit;
  cursor: pointer;
}

button.executive-stream__pipeline:hover { background: var(--exec-nonpos-soft, #eef7f5); }

.executive-stream__headline { flex-wrap: nowrap; }
.executive-stream__headline > .executive-stream__target,
.executive-stream__headline > .executive-stream__pipeline { flex: 0 0 auto; }

.executive-lab__lower-grid--single { grid-template-columns: minmax(0, 1fr) !important; }

@media (max-width: 900px) {
  .exec-spark { display: none; }
}

/* Executive: baris total gabungan di sebelah chip data terakhir */
.executive-lab__combined {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-left: auto;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-wrap: nowrap;
  white-space: nowrap;
  color: #5b6372;
  font-size: 0.64rem;
  font-weight: 650;
  cursor: help;
}

.executive-lab__combined strong { color: #1a2638; font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.executive-lab__combined em { font-style: normal; font-weight: 800; }
.executive-lab__combined em.target-danger { color: #b64d4d; }
.executive-lab__combined em.target-warn { color: var(--exec-warning, #b7791f); }
.executive-lab__combined em.target-track { color: #3f6f9d; }
.executive-lab__combined em.target-pass { color: #2d7b4a; }
@media (max-width: 1250px) { .executive-lab__combined small { display: none; } }
.executive-lab__combined em.executive-lab__combined-tag { padding: 1px 6px; border-radius: 999px; background: #fff1d8; color: #955c18; font-size: 0.56rem; }
.executive-lab__combined small { color: #8a919d; font-size: 0.58rem; font-weight: 600; }

@media (max-width: 1380px) {
  .executive-lab__masthead { align-items: flex-start; }
  .executive-lab__filters { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr auto auto; }
  .executive-lab__field select,
  .executive-lab__field input,
  .executive-lab__field--outlet select,
  .executive-lab__field--outlet .multi-select-wrap,
  .executive-lab__field--outlet .multi-select-btn,
  .executive-lab__field--date input { width: 100%; }
}

@media (max-width: 900px) {
  .executive-lab__masthead { flex-direction: column; gap: 12px; }
  .executive-lab__heading { flex-basis: auto; min-width: 0; }
  .executive-lab__filters { width: 100%; }
  .executive-lab__lower-grid { grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.8fr); }
}

@media (max-width: 1024px) {
  .executive-lab { gap: 12px; padding-top: 1px; }
  .executive-lab__coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .executive-lab__coverage-intro { display: none; }
  .executive-lab__lower-grid { grid-template-columns: 1fr; }
  .executive-lab__management-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
}

@media (max-width: 760px) {
  .executive-lab__heading h1 { font-size: 1.55rem; }
  .executive-lab__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .executive-lab__field--outlet { grid-column: 1 / -1; }
  .executive-lab__apply { min-height: 38px; }
  .executive-lab__reset { width: 100%; min-height: 38px; }
  .executive-lab__streams { grid-template-columns: 1fr; }
  .executive-stream { min-height: 0; }
  .executive-lab__management-rail { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .executive-lab { gap: 10px; padding-bottom: 6px; }
  .executive-lab__eyebrow { font-size: 0.59rem; }
  .executive-lab__heading p { font-size: 0.72rem; }
  .executive-lab__filters { gap: 8px; padding: 9px; }
  .executive-lab__field--date input { min-width: 0; font-size: 0.67rem; }
  .executive-lab__coverage { grid-template-columns: 1fr; }
  .executive-lab__coverage-item { border-right: 0; border-bottom: 1px solid var(--exec-line); }
  .executive-lab__coverage-item:last-child { border-bottom: 0; }
  .executive-stream { padding: 15px 14px 13px; border-radius: 14px; }
  .executive-stream__topline { align-items: flex-start; }
  .executive-stream__identity { gap: 8px; }
  .executive-stream__icon { width: 33px; height: 33px; flex-basis: 33px; }
  .executive-stream h2 { font-size: 0.88rem; }
  .executive-stream__link { min-height: 27px; padding: 0 7px; font-size: 0.59rem; }
  .executive-stream__headline { align-items: flex-start; flex-direction: column; gap: 9px; }
  .executive-stream__target,
  .executive-stream__pipeline { align-items: flex-start; width: 100%; text-align: left; }
  .executive-stream__headline > div:first-child > strong { font-size: 1.55rem; }
  .executive-stream__supporting { flex-direction: column; gap: 5px; }
  .executive-panel--outlets { padding: 14px 12px 9px; }
  .executive-panel__hint { display: none; }
  .executive-outlets { overflow: visible; }
  .executive-outlets table,
  .executive-outlets tbody,
  .executive-outlets tr,
  .executive-outlets td { display: block; width: 100%; min-width: 0; }
  .executive-outlets thead { display: none; }
  .executive-outlets tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 12px; padding: 11px 2px; border-bottom: 1px solid #eceef1; }
  .executive-outlets tbody tr:last-child { border-bottom: 0; }
  .executive-outlets td { height: auto; padding: 0; border: 0; text-align: left !important; }
  .executive-outlets td:first-child,
  .executive-outlets td:last-child { grid-column: 1 / -1; }
  .executive-outlets td:nth-child(2)::before,
  .executive-outlets td:nth-child(3)::before {
    display: block;
    margin-bottom: 3px;
    color: #9298a3;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    text-transform: uppercase;
  }
  .executive-outlets td:nth-child(2)::before { content: "POS Sales"; }
  .executive-outlets td:nth-child(3)::before { content: "Non-POS Net"; }
  .executive-outlets__actions { justify-content: flex-start; }
  .executive-outlets__actions a { min-height: 30px; }
}

@media print {
  .executive-lab__filters,
  .executive-stream__link,
  .executive-outlets__actions,
  .executive-panel__wide-link { display: none !important; }
  .executive-lab { gap: 10px; }
  .executive-stream,
  .executive-panel,
  .executive-lab__coverage { box-shadow: none; break-inside: avoid; }
}

/* --- Executive Version B: polish and reusable detail drawer --- */
.executive-stream__link,
.executive-panel__wide-link,
.executive-outlets__row-trigger,
.executive-outlets__actions button {
  font-family: inherit;
  cursor: pointer;
}

.executive-stream__link {
  appearance: none;
}

.executive-stream__basis > span {
  color: #a0a5af;
}

.executive-stream__unavailable {
  align-items: center;
  padding: 13px 16px;
  text-align: center;
}

.executive-stream__unavailable-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 7px;
  border-radius: 10px;
  background: var(--exec-pos-soft);
  color: var(--exec-pos);
}

.executive-stream__unavailable-icon svg {
  width: 18px;
  height: 18px;
}

.executive-lab__mini-status {
  border: 1px solid transparent;
}

.executive-lab__mini-status.is-available {
  border-color: #d6eadb;
  background: #edf7ef;
  color: #397349;
}

.executive-lab__mini-status.is-partial {
  border-color: #f4dfb9;
  background: #fff4df;
  color: #955c18;
}

.executive-lab__mini-status.is-unavailable {
  border-color: #e2e4e8;
  background: #f3f4f6;
  color: #7d8491;
}

.executive-outlets__row-trigger {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 1px 0;
  border: 0;
  background: transparent;
  color: #30394a;
  font-size: 0.71rem;
  font-weight: 780;
  line-height: 1.2;
  text-align: left;
}

.executive-outlets__row-trigger svg {
  width: 12px;
  height: 12px;
  color: #9aa0aa;
  transition: transform 0.15s ease, color 0.15s ease;
}

.executive-outlets__row-trigger:hover,
.executive-outlets__row-trigger:focus-visible {
  color: var(--exec-brand);
  outline: none;
}

.executive-outlets__row-trigger:hover svg,
.executive-outlets__row-trigger:focus-visible svg {
  color: var(--exec-brand);
  transform: translateX(2px);
}

.executive-outlets tbody tr {
  transition: background-color 0.15s ease;
}

.executive-outlets tbody tr:focus-within {
  background: #fafaf7;
}

.executive-outlets__actions button {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid #e0e3e8;
  border-radius: 6px;
  background: #fff;
  color: #5e6879;
  font-size: 0.56rem;
  font-weight: 750;
  white-space: nowrap;
}

.executive-outlets__actions button:hover,
.executive-outlets__actions button:focus-visible {
  border-color: var(--exec-brand);
  color: var(--exec-brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(117, 102, 60, 0.09);
}

.executive-panel__wide-link {
  width: 100%;
  padding: 0 8px;
}

body.executive-drawer-open {
  overflow: hidden !important;
}

body.executive-drawer-open .page,
body.executive-drawer-open .main-content {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.executive-drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 2500;
  overflow: hidden;
}

.executive-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 39, 0.38);
  backdrop-filter: blur(1.5px);
  animation: executive-overlay-in 0.18s ease-out both;
}

.executive-drawer {
  --drawer-accent: #75663c;
  --drawer-accent-soft: #f2efe6;
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: clamp(470px, 43vw, 680px);
  height: 100dvh;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  background: #fff;
  color: #172033;
  box-shadow: -22px 0 52px rgba(15, 23, 42, 0.18);
  outline: none;
  animation: executive-drawer-in 0.22s cubic-bezier(0.22, 0.78, 0.24, 1) both;
}

.executive-drawer--pos {
  --drawer-accent: #356aa8;
  --drawer-accent-soft: #edf4fb;
}

.executive-drawer--nonpos {
  --drawer-accent: #16847a;
  --drawer-accent-soft: #eaf7f4;
}

.executive-drawer__header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e8eaee;
  background: linear-gradient(135deg, var(--drawer-accent-soft), #fff 58%);
}

.executive-drawer__header::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--drawer-accent);
}

.executive-drawer__eyebrow {
  display: block;
  color: var(--drawer-accent);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.executive-drawer__header h2 {
  margin: 5px 0 0;
  color: #172033;
  font-size: 1.42rem;
  font-weight: 780;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.executive-drawer__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid #dfe2e7;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: #606978;
  cursor: pointer;
}

.executive-drawer__close:hover,
.executive-drawer__close:focus-visible {
  border-color: var(--drawer-accent);
  color: var(--drawer-accent);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--drawer-accent) 12%, transparent);
}

.executive-drawer__close svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.executive-drawer__body {
  min-height: 0;
  padding: 22px 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.executive-drawer__footer {
  padding: 14px 24px;
  border-top: 1px solid #e8eaee;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.035);
}

.drawer-coverage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #356aa8;
  border-radius: 10px;
  background: #f8fafc;
}

.drawer-coverage--nonpos { border-left-color: #16847a; }

.drawer-coverage > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drawer-coverage > div span {
  color: #7d8593;
  font-size: 0.65rem;
  font-weight: 650;
}

.drawer-coverage > div strong {
  color: #30394a;
  font-size: 0.79rem;
}

.drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin-top: 18px;
  padding: 28px;
  border: 1px dashed #d9dce2;
  border-radius: 13px;
  background: #fafafa;
  text-align: center;
}

.drawer-empty__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 11px;
  border-radius: 13px;
  background: #edf4fb;
  color: #356aa8;
}

.drawer-empty__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.drawer-empty > strong { color: #3d4656; font-size: 0.9rem; }
.drawer-empty > p { margin: 5px 0 0; color: #7e8694; font-size: 0.72rem; }

.drawer-notice {
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid #f3dfb7;
  border-radius: 9px;
  background: #fff7e8;
  color: #925b1d;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.4;
}

.drawer-primary-metric {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
  padding: 17px 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, #edf4fb, #f8fbfe);
}

.drawer-primary-metric--nonpos {
  background: linear-gradient(135deg, #eaf7f4, #f7fcfb);
}

.drawer-primary-metric > span {
  color: #687587;
  font-size: 0.68rem;
  font-weight: 750;
}

.drawer-primary-metric > strong {
  margin-top: 5px;
  color: #20334b;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.drawer-primary-metric--nonpos > strong { color: #126f68; }
.drawer-primary-metric > small { margin-top: 7px; color: #748092; font-size: 0.64rem; }

.drawer-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.drawer-metric-grid--fiscal {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.drawer-metric-grid > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #eaecf0;
  border-radius: 10px;
  background: #fff;
}

.drawer-metric-grid span {
  color: #7d8593;
  font-size: 0.63rem;
  font-weight: 650;
}

.drawer-metric-grid strong {
  color: #343d4d;
  font-size: 0.8rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.drawer-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8eaee;
}

.drawer-section__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.drawer-section__heading > span {
  color: #323b4b;
  font-size: 0.81rem;
  font-weight: 780;
}

.drawer-section__heading > small { color: #8a919d; font-size: 0.61rem; }

.drawer-outlet-list {
  border: 1px solid #e8eaee;
  border-radius: 11px;
  overflow: hidden;
}

.drawer-outlet-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 9px 12px;
  border-bottom: 1px solid #eceef1;
}

.drawer-outlet-list > div:last-child { border-bottom: 0; }
.drawer-outlet-list p { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.drawer-outlet-list p strong { color: #333c4d; font-size: 0.72rem; }
.drawer-outlet-list p small { margin-top: 2px; color: #888f9c; font-size: 0.59rem; }
.drawer-outlet-list__value { align-items: flex-end; text-align: right; }

.drawer-outlet-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid #e8e5dc;
  border-radius: 11px;
  background: #faf9f5;
}

.drawer-outlet-identity > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background: #f0ecdf;
  color: #75663c;
  font-size: 0.64rem;
  font-weight: 850;
}

.drawer-outlet-identity > div { display: flex; flex-direction: column; }
.drawer-outlet-identity strong { color: #343c4c; font-size: 0.8rem; }
.drawer-outlet-identity small { margin-top: 3px; color: #858c99; font-size: 0.64rem; }

.drawer-stream-section {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #356aa8;
  border-radius: 11px;
}

.drawer-stream-section--nonpos { border-left-color: #16847a; }

.drawer-stream-section__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drawer-stream-section__header > div > span {
  color: #356aa8;
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.drawer-stream-section--nonpos .drawer-stream-section__header > div > span { color: #16847a; }
.drawer-stream-section__header h3 { margin: 3px 0 0; color: #2d3646; font-size: 0.9rem; }
.drawer-stream-section__cutoff { margin: 6px 0 0; color: #858d99; font-size: 0.62rem; }

.drawer-stream-section__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.drawer-stream-section__metrics > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f8fa;
}

.drawer-stream-section__metrics span { color: #7e8693; font-size: 0.6rem; }
.drawer-stream-section__metrics strong { color: #30394a; font-size: 0.77rem; font-variant-numeric: tabular-nums; }
.drawer-stream-section__empty { margin: 12px 0 0; padding: 12px; border-radius: 8px; background: #f7f8fa; color: #7c8492; font-size: 0.68rem; }

.drawer-context-note {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  background: #fafafa;
  color: #707988;
  font-size: 0.67rem;
  line-height: 1.5;
}

.executive-drawer__primary-action,
.executive-drawer__split-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--drawer-accent);
  border-radius: 9px;
  background: var(--drawer-accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 780;
}

.executive-drawer__primary-action { gap: 8px; width: 100%; }
.executive-drawer__primary-action:hover,
.executive-drawer__split-actions a:hover { color: #fff; filter: brightness(0.94); text-decoration: none; }

.executive-drawer__split-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.executive-drawer__split-actions a:first-child { border-color: #356aa8; background: #356aa8; }
.executive-drawer__split-actions a:last-child { border-color: #16847a; background: #16847a; }

@keyframes executive-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes executive-drawer-in {
  from { transform: translateX(42px); opacity: 0.72; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 1024px) {
  .executive-drawer { width: min(68vw, 650px); }
}

@media (max-width: 640px) {
  body.executive-drawer-open .page { height: 100dvh !important; }
  .executive-drawer { width: 100vw; max-width: none; border-left: 0; }
  .executive-drawer__header { padding: 18px 17px 15px; }
  .executive-drawer__header h2 { font-size: 1.25rem; }
  .executive-drawer__body { padding: 16px 16px 24px; }
  .executive-drawer__footer { padding: 11px 16px max(11px, env(safe-area-inset-bottom)); }
  .drawer-metric-grid,
  .drawer-stream-section__metrics { grid-template-columns: 1fr; }
  .drawer-empty { min-height: 190px; }
}

@media print {
  .executive-drawer-layer { display: none !important; }
}

/* --- Codex UI Lab Phase 2: POS Dashboard Version B quick draft --- */
.pos-dashboard-vb {
  --pos-blue: #356aa8;
  --pos-blue-deep: #244f82;
  --pos-blue-soft: #eef4fb;
  --pos-olive: #747b42;
  --pos-ink: #2c3544;
  --pos-muted: #78818e;
  height: auto;
  min-height: 100%;
  overflow: visible;
  gap: 18px;
  padding: 2px 0 30px;
}

body:has(.pos-dashboard-vb) .main-content,
body:has(.pos-dashboard-vb) .main-content.is-dashboard {
  overflow-x: hidden;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

body:has(.pos-dashboard-vb) article.content,
body:has(.pos-dashboard-vb) article.content.dashboard-content {
  height: auto !important;
  min-height: 100%;
  overflow: visible !important;
}

.pos-dashboard-vb .pos-dashboard-header {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 22px;
  padding: 20px 22px;
  border: 1px solid #e8e9e3;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #fbfbf8 100%);
  box-shadow: 0 10px 28px rgba(46, 51, 44, 0.045);
}

.pos-dashboard-vb .dash-title-group { display: flex; gap: 2px; }

.pos-page-kicker,
.pos-card-eyebrow {
  color: var(--pos-olive);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.pos-dashboard-vb .dash-title {
  color: var(--pos-ink);
  font-size: clamp(1.55rem, 2vw, 2.05rem);
  font-weight: 780;
  letter-spacing: -0.035em;
}

.pos-page-subtitle {
  margin: 2px 0 6px;
  color: var(--pos-muted);
  font-size: 0.76rem;
}

.pos-dashboard-vb .dash-freshness-row { gap: 6px; margin-top: 1px; }
.pos-dashboard-vb .freshness-label { color: #858b83; }
.pos-dashboard-vb .freshness-badge {
  border-color: #e4e7dc;
  border-radius: 999px;
  background: #f5f6f0;
  color: #666d49;
  padding: 3px 7px;
}
.pos-dashboard-vb .freshness-badge strong { color: #454b35; }

.pos-dashboard-vb .dash-controls { width: 100%; max-width: none; }
.pos-dashboard-vb .dash-filter-form {
  justify-content: flex-end;
  gap: 7px;
  padding: 7px;
  border: 1px solid #e4e6df;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(47, 53, 44, 0.04);
}
.pos-dashboard-vb .dash-filter-form select,
.pos-dashboard-vb .dash-filter-form input,
.pos-dashboard-vb .multi-select-btn,
.pos-dashboard-vb .btn-print-icon { height: 34px; border-color: #dfe3da; border-radius: 8px; }
.pos-dashboard-vb .dash-filter-form .btn-apply {
  height: 34px;
  border-radius: 8px;
  background: var(--umara-gold);
  padding-inline: 13px;
}
.pos-dashboard-vb .dash-filter-form .btn-reset { height: 34px; border-color: transparent; color: #737b87; }

.pos-section-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 7px 2px -1px;
}

.pos-section-heading > div { min-width: 0; }
.pos-section-heading span {
  display: block;
  color: var(--pos-olive);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}
.pos-section-heading h2 {
  margin: 2px 0 0;
  color: var(--pos-ink);
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: -0.025em;
}
.pos-section-heading p {
  margin: 0;
  color: #858d98;
  font-size: 0.69rem;
  text-align: right;
}
.pos-section-heading--overview { margin-bottom: -9px; }

.pos-dashboard-vb .kpi-section-container { gap: 8px; }
.pos-dashboard-vb .kpi-strip { min-height: 112px; gap: 11px; }
.pos-dashboard-vb .kpi-pinned-group,
.pos-dashboard-vb .kpi-scroll-rail { gap: 11px; }
.pos-dashboard-vb .kpi-card {
  min-height: 112px;
  border-color: #e4e8eb;
  border-radius: 14px;
  padding: 15px 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(40, 55, 73, 0.045);
}
.pos-dashboard-vb .kpi-card:first-child { border-top: 3px solid var(--pos-blue); }
.pos-dashboard-vb .kpi-label { color: #7c8490; font-size: 0.66rem; letter-spacing: 0.015em; }
.pos-dashboard-vb .kpi-val { color: var(--pos-ink); font-size: 1.32rem; letter-spacing: -0.035em; }
.pos-dashboard-vb .kpi-icon-wrap { border-radius: 10px; }
.pos-dashboard-vb .kpi-action-link { color: var(--pos-blue); }
.pos-dashboard-vb .kpi-pax-sub {
  margin-top: 1px;
  color: var(--pos-olive);
  font-size: 0.66rem;
  letter-spacing: 0.01em;
}
.pos-dashboard-vb .kpi-pax-sub strong { font-weight: 780; }

.pax-drawer-total {
  display: block;
  margin-top: 7px;
  color: var(--pos-olive);
  font-size: 1.02rem;
  font-weight: 820;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pax-drawer-metric-grid { margin-top: 12px; }

.pos-dashboard-vb .dash-card {
  border-color: #e5e8e9;
  border-radius: 15px;
  padding: 17px 18px;
  background: #fff;
  box-shadow: 0 9px 26px rgba(45, 54, 66, 0.045);
}
.pos-dashboard-vb .dash-card .card-head { align-items: flex-start; margin-bottom: 13px; }
.pos-dashboard-vb .dash-card .card-head h2 {
  color: var(--pos-ink);
  font-size: 0.86rem;
  font-weight: 740;
  letter-spacing: -0.015em;
}
.pos-dashboard-vb .card-link {
  padding: 4px 7px;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  background: var(--pos-blue-soft);
  color: var(--pos-blue-deep);
}

.pos-dashboard-vb .pos-performance-grid,
.pos-dashboard-vb .pos-insight-grid {
  display: grid;
  height: auto;
  min-height: 0;
  flex: none;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 13px;
}
.pos-dashboard-vb .pos-card-trend { grid-column: span 7; min-height: 300px; }
.pos-dashboard-vb .pos-card-resto { grid-column: span 5; min-height: 300px; }
.pos-dashboard-vb .pos-card-menu,
.pos-dashboard-vb .pos-card-category,
.pos-dashboard-vb .pos-card-channel,
.pos-dashboard-vb .pos-card-payment { grid-column: span 6; min-height: 286px; }
.pos-dashboard-vb .pos-card-operational { grid-column: 1 / -1; min-height: 180px; }
.pos-dashboard-vb .trend-svg { max-height: 230px; }

.pos-dashboard-vb .resto-donut-legend-link,
.pos-dashboard-vb .resto-target-item {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pos-dashboard-vb .resto-donut-legend-link { background: transparent; }
.pos-dashboard-vb .resto-target-item { background: #fafbfc; }
.pos-dashboard-vb .resto-donut-legend-link:hover,
.pos-dashboard-vb .resto-target-item:hover { background: var(--pos-blue-soft); }
.pos-dashboard-vb .resto-donut-legend-link:focus-visible,
.pos-dashboard-vb .resto-target-item:focus-visible,
.pos-data-row:focus-visible,
.pos-drawer-shortcuts button:focus-visible {
  outline: 2px solid #7da7d1;
  outline-offset: 2px;
}

.pos-dashboard-vb .outlet-items-list ol { margin: 0 !important; padding: 0 !important; list-style: none; }
.pos-dashboard-vb .outlet-items-list li { margin: 0; padding: 0; }
.pos-data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-bottom: 1px solid #eef0f1;
  border-radius: 7px;
  background: transparent;
  color: #4d5664;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pos-data-row:hover { background: var(--pos-blue-soft); }
.pos-data-row > span { display: flex; flex-direction: column; min-width: 0; }
.pos-data-row > span:last-child,
.pos-data-row > strong { flex: 0 0 auto; color: #3e5875; font-size: 0.67rem; text-align: right; }
.pos-data-row strong { color: #303947; font-weight: 720; }
.pos-data-row small { color: #8a919b; font-size: 0.58rem; font-weight: 500; }
.pos-dashboard-vb button.mini-bar-row {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.pos-dashboard-vb button.mini-bar-row:hover { background: var(--pos-blue-soft); }

.pos-mix-card__body { display: grid !important; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.pos-mix-card .donut-mini-wrap { justify-content: center; }
.pos-mix-card .legend-mini-container { display: none; }
.pos-mix-card .donut-mini-svg { width: 142px; height: 142px; }
.pos-drawer-shortcuts { display: flex; flex-direction: column; min-width: 0; }
.pos-drawer-shortcuts button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 10px;
  padding: 8px 7px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 7px;
  background: transparent;
  color: #505967;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pos-drawer-shortcuts button:hover { background: var(--pos-blue-soft); }
.pos-drawer-shortcuts span { overflow: hidden; font-size: 0.69rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.pos-drawer-shortcuts strong { color: var(--pos-blue-deep); font-size: 0.67rem; }
.pos-drawer-shortcuts small { grid-column: 1 / -1; color: #8a919b; font-size: 0.58rem; }

.pos-dashboard-vb .pos-card-operational .fiscal-compact-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 14px;
}
.pos-dashboard-vb .pos-card-operational .fiscal-row { min-width: 0; }
.pos-dashboard-vb button.fiscal-row {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.pos-dashboard-vb .compliment-highlight-row { cursor: pointer; }
.pos-dashboard-vb button.fiscal-row:hover { background: var(--pos-blue-soft); }
.pos-dashboard-vb button.fiscal-row:focus-visible { outline: 2px solid #7da7d1; outline-offset: 2px; }

.pos-compliment-list { display: flex; flex-direction: column; }
.pos-compliment-list article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid #edf0f2;
}
.pos-compliment-list article > div { display: flex; flex-direction: column; min-width: 0; }
.pos-compliment-list article > div:last-child { flex: 0 0 auto; text-align: right; }
.pos-compliment-list article strong { color: #354052; font-size: 0.7rem; }
.pos-compliment-list article small { color: #858d99; font-size: 0.6rem; }

@media (max-width: 1180px) {
  .pos-dashboard-vb .dash-controls { max-width: none; }
  .pos-dashboard-vb .dash-filter-form { width: 100%; }
  .pos-dashboard-vb .pos-card-trend,
  .pos-dashboard-vb .pos-card-resto { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .pos-dashboard-vb { gap: 16px; }
  .pos-dashboard-vb .pos-performance-grid,
  .pos-dashboard-vb .pos-insight-grid { display: flex !important; gap: 13px !important; }
  .pos-dashboard-vb .pos-section-heading { width: 100%; }
  .pos-dashboard-vb .pos-card-trend,
  .pos-dashboard-vb .pos-card-resto,
  .pos-dashboard-vb .pos-card-menu,
  .pos-dashboard-vb .pos-card-category,
  .pos-dashboard-vb .pos-card-channel,
  .pos-dashboard-vb .pos-card-payment,
  .pos-dashboard-vb .pos-card-operational { min-height: 260px !important; }
}

@media (max-width: 640px) {
  .pos-dashboard-vb { gap: 14px; padding-bottom: 20px; }
  .pos-dashboard-vb .pos-dashboard-header { padding: 17px 15px; border-radius: 13px; }
  .pos-dashboard-vb .dash-title { font-size: 1.5rem; }
  .pos-page-subtitle { font-size: 0.7rem; }
  .pos-dashboard-vb .dash-freshness-row { align-items: flex-start; flex-wrap: wrap; white-space: normal; }
  .pos-dashboard-vb .dash-filter-form { padding: 8px; }
  .pos-section-heading { align-items: flex-start; flex-direction: column; gap: 3px; margin-top: 6px; }
  .pos-section-heading p { text-align: left; }
  .pos-dashboard-vb .dash-card { border-radius: 13px; padding: 15px !important; }
  .pos-dashboard-vb .pos-card-trend,
  .pos-dashboard-vb .pos-card-resto,
  .pos-dashboard-vb .pos-card-menu,
  .pos-dashboard-vb .pos-card-category,
  .pos-dashboard-vb .pos-card-channel,
  .pos-dashboard-vb .pos-card-payment,
  .pos-dashboard-vb .pos-card-operational { min-height: 0 !important; }
  .pos-mix-card__body { grid-template-columns: 1fr; }
  .pos-mix-card .donut-mini-svg { width: 132px; height: 132px; }
  .pos-dashboard-vb .pos-card-operational .fiscal-compact-list { grid-template-columns: 1fr; }
}

@media print {
  .pos-dashboard-vb { display: block; }
  .pos-dashboard-vb .pos-section-heading { margin-top: 14px; }
}

/* --- POS Dashboard Version B: one-screen compaction pass --- */
.pos-dashboard-vb {
  gap: 9px;
  padding-bottom: 10px;
}

.pos-insight-details {
  display: none !important;
}

.pos-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.pos-summary-strip .pos-section-heading {
  grid-column: 1 / -1;
  margin: 0 2px -2px;
}

.pos-summary-card {
  min-width: 0;
  min-height: 146px;
  padding: 11px 12px !important;
}

.pos-summary-card .card-head {
  min-height: 28px;
  margin-bottom: 5px !important;
}

.pos-summary-card .card-head > div {
  min-width: 0;
}

.pos-summary-card .card-head h2 {
  margin-top: 1px;
  font-size: 0.8rem !important;
}

.pos-card-link-button {
  font: inherit;
  cursor: pointer;
}

.pos-summary-list {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pos-summary-list button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 3px;
  border: 0;
  border-bottom: 1px solid #edf0f2;
  border-radius: 5px;
  background: transparent;
  color: #394455;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pos-summary-list button:last-child {
  border-bottom-color: transparent;
}

.pos-summary-list button:hover,
.pos-fiscal-summary button:hover {
  background: var(--pos-blue-soft);
}

.pos-summary-list button:focus-visible,
.pos-fiscal-summary button:focus-visible,
.pos-card-link-button:focus-visible {
  outline: 2px solid #7da7d1;
  outline-offset: 1px;
}

.pos-summary-list button > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pos-summary-list strong {
  overflow: hidden;
  font-size: 0.66rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-summary-list small {
  color: #8b929c;
  font-size: 0.54rem;
  line-height: 1.15;
}

.pos-summary-list b {
  color: var(--pos-blue-deep);
  font-size: 0.65rem;
  font-weight: 760;
  white-space: nowrap;
}

.pos-fiscal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.pos-fiscal-summary button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 5px 7px;
  border: 1px solid #edf0f2;
  border-radius: 7px;
  background: #fafbfc;
  color: #717985;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pos-fiscal-summary button.is-compliment {
  border-color: #dfe9f7;
  background: #f4f8fd;
}

.pos-fiscal-summary span {
  overflow: hidden;
  font-size: 0.56rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-fiscal-summary strong {
  overflow: hidden;
  color: #344154;
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 1281px) and (min-height: 850px) {
  body:has(.pos-dashboard-vb) .main-content,
  body:has(.pos-dashboard-vb) .main-content.is-dashboard {
    overflow-y: hidden !important;
  }

  .pos-dashboard-vb {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .pos-dashboard-vb .pos-dashboard-header {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 9px 11px;
    border-radius: 13px;
  }

  .pos-dashboard-vb .dash-title-group {
    flex: 0 1 265px;
    min-width: 230px;
    gap: 0;
  }

  .pos-dashboard-vb .dash-title {
    font-size: 1.48rem;
    line-height: 1.05;
  }

  .pos-dashboard-vb .pos-page-subtitle {
    display: none;
  }

  .pos-dashboard-vb .dash-freshness-row {
    flex-wrap: wrap;
    gap: 3px 4px;
    margin-top: 4px;
    white-space: normal;
  }

  .pos-dashboard-vb .freshness-label,
  .pos-dashboard-vb .freshness-badge {
    font-size: 0.55rem;
  }

  .pos-dashboard-vb .freshness-badge {
    padding: 2px 5px;
  }

  .pos-dashboard-vb .dash-controls {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pos-dashboard-vb .dash-filter-form {
    flex-wrap: nowrap;
    width: 100%;
    gap: 5px;
    padding: 5px;
  }

  .pos-dashboard-vb .dash-filter-form > label {
    min-width: 0;
  }

  .pos-dashboard-vb .dash-filter-form > label:nth-of-type(1) {
    flex: 0 0 84px;
  }

  .pos-dashboard-vb .dash-filter-form > label:nth-of-type(2),
  .pos-dashboard-vb .dash-filter-form > label:nth-of-type(3) {
    flex: 1 1 118px;
  }

  .pos-dashboard-vb .multi-select-wrap {
    flex: 1.35 1 190px;
    min-width: 170px;
  }

  .pos-dashboard-vb .multi-select-btn,
  .pos-dashboard-vb .dash-filter-form select,
  .pos-dashboard-vb .dash-filter-form input {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: 32px;
    font-size: 0.69rem;
  }

  .pos-dashboard-vb .dash-filter-form .btn-apply,
  .pos-dashboard-vb .dash-filter-form .btn-reset,
  .pos-dashboard-vb .btn-print-icon {
    height: 32px;
  }

  .pos-dashboard-vb .pos-section-heading {
    min-height: 22px;
    margin: 0 2px -2px;
  }

  .pos-dashboard-vb .pos-section-heading h2 {
    margin-top: 0;
    font-size: 0.94rem;
  }

  .pos-dashboard-vb .pos-section-heading p {
    font-size: 0.62rem;
  }

  .pos-dashboard-vb .pos-section-heading--overview {
    margin-bottom: -7px;
  }

  .pos-dashboard-vb .kpi-strip {
    min-height: 84px;
    gap: 8px;
  }

  .pos-dashboard-vb .kpi-pinned-group,
  .pos-dashboard-vb .kpi-scroll-rail {
    gap: 8px;
  }

  .pos-dashboard-vb .kpi-strip.pinned-0 .kpi-scroll-rail .kpi-card {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6);
    width: calc((100% - (5 * var(--kpi-gap))) / 6);
    min-width: calc((100% - (5 * var(--kpi-gap))) / 6);
    max-width: calc((100% - (5 * var(--kpi-gap))) / 6);
  }

  .pos-dashboard-vb .kpi-strip.pinned-1 .kpi-pinned-group {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6);
    width: calc((100% - (5 * var(--kpi-gap))) / 6);
  }

  .pos-dashboard-vb .kpi-strip.pinned-1 .kpi-rail-container {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6 * 5 + (4 * var(--kpi-gap)));
    width: calc((100% - (5 * var(--kpi-gap))) / 6 * 5 + (4 * var(--kpi-gap)));
  }

  .pos-dashboard-vb .kpi-strip.pinned-1 .kpi-scroll-rail .kpi-card {
    flex-basis: calc((100% - (4 * var(--kpi-gap))) / 5);
    width: calc((100% - (4 * var(--kpi-gap))) / 5);
    min-width: calc((100% - (4 * var(--kpi-gap))) / 5);
    max-width: calc((100% - (4 * var(--kpi-gap))) / 5);
  }

  .pos-dashboard-vb .kpi-strip.pinned-2 .kpi-pinned-group {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6 * 2 + var(--kpi-gap));
    width: calc((100% - (5 * var(--kpi-gap))) / 6 * 2 + var(--kpi-gap));
  }

  .pos-dashboard-vb .kpi-strip.pinned-2 .kpi-rail-container {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6 * 4 + (3 * var(--kpi-gap)));
    width: calc((100% - (5 * var(--kpi-gap))) / 6 * 4 + (3 * var(--kpi-gap)));
  }

  .pos-dashboard-vb .kpi-strip.pinned-2 .kpi-scroll-rail .kpi-card {
    flex-basis: calc((100% - (3 * var(--kpi-gap))) / 4);
    width: calc((100% - (3 * var(--kpi-gap))) / 4);
    min-width: calc((100% - (3 * var(--kpi-gap))) / 4);
    max-width: calc((100% - (3 * var(--kpi-gap))) / 4);
  }

  .pos-dashboard-vb .kpi-strip.pinned-3 .kpi-pinned-group {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6 * 3 + (2 * var(--kpi-gap)));
    width: calc((100% - (5 * var(--kpi-gap))) / 6 * 3 + (2 * var(--kpi-gap)));
  }

  .pos-dashboard-vb .kpi-strip.pinned-3 .kpi-rail-container {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6 * 3 + (2 * var(--kpi-gap)));
    width: calc((100% - (5 * var(--kpi-gap))) / 6 * 3 + (2 * var(--kpi-gap)));
  }

  .pos-dashboard-vb .kpi-strip.pinned-3 .kpi-scroll-rail .kpi-card {
    flex-basis: calc((100% - (2 * var(--kpi-gap))) / 3);
    width: calc((100% - (2 * var(--kpi-gap))) / 3);
    min-width: calc((100% - (2 * var(--kpi-gap))) / 3);
    max-width: calc((100% - (2 * var(--kpi-gap))) / 3);
  }

  .pos-dashboard-vb .kpi-strip.pinned-4 .kpi-pinned-group {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6 * 4 + (3 * var(--kpi-gap)));
    width: calc((100% - (5 * var(--kpi-gap))) / 6 * 4 + (3 * var(--kpi-gap)));
  }

  .pos-dashboard-vb .kpi-strip.pinned-4 .kpi-rail-container {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6 * 2 + var(--kpi-gap));
    width: calc((100% - (5 * var(--kpi-gap))) / 6 * 2 + var(--kpi-gap));
  }

  .pos-dashboard-vb .kpi-strip.pinned-4 .kpi-scroll-rail .kpi-card {
    flex-basis: calc((100% - var(--kpi-gap)) / 2);
    width: calc((100% - var(--kpi-gap)) / 2);
    min-width: calc((100% - var(--kpi-gap)) / 2);
    max-width: calc((100% - var(--kpi-gap)) / 2);
  }

  .pos-dashboard-vb .kpi-card {
    min-height: 84px;
    padding: 9px 10px;
    border-radius: 11px;
  }

  .pos-dashboard-vb .kpi-val {
    font-size: 1.12rem;
  }

  .pos-dashboard-vb .kpi-sub {
    font-size: 0.56rem;
    line-height: 1.15;
  }

  .pos-dashboard-vb .kpi-icon-wrap {
    width: 28px;
    height: 28px;
  }

  .pos-dashboard-vb .kpi-action-link {
    font-size: 0.55rem;
  }

  .pos-dashboard-vb .pos-performance-grid {
    gap: 8px 10px;
  }

  .pos-dashboard-vb .pos-card-trend,
  .pos-dashboard-vb .pos-card-resto {
    min-height: 252px;
    height: 252px;
    padding: 12px 13px;
  }

  .pos-dashboard-vb .dash-card .card-head {
    margin-bottom: 7px;
  }

  .pos-dashboard-vb .trend-svg {
    max-height: 195px;
  }

  .pos-dashboard-vb .resto-summary-bar {
    margin-bottom: 2px;
    padding-bottom: 3px;
  }

  .pos-dashboard-vb .resto-unified-body {
    gap: 8px;
  }

  .pos-dashboard-vb .resto-donut-svg {
    width: 74px;
    height: 74px;
  }

  .pos-dashboard-vb .resto-target-item {
    padding: 3px 5px;
  }

  .pos-summary-card {
    min-height: 172px;
    height: 172px;
  }
}

@media (max-width: 1280px) {
  .pos-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pos-summary-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pos-summary-strip .pos-section-heading {
    margin-top: 5px;
  }

  .pos-summary-card {
    min-height: 0;
  }
}

/* --- Real laptop target: 1920x1200 at Windows 150% / Chrome 100% --- */
@media (min-width: 1100px) and (max-height: 760px) {
  body:has(.executive-lab) .main-content,
  body:has(.executive-lab) .main-content.is-dashboard,
  body:has(.pos-dashboard-vb) .main-content,
  body:has(.pos-dashboard-vb) .main-content.is-dashboard {
    overflow-x: hidden;
    overflow-y: hidden !important;
  }

  body:has(.executive-lab) article.content,
  body:has(.executive-lab) article.content.dashboard-content,
  body:has(.pos-dashboard-vb) article.content,
  body:has(.pos-dashboard-vb) article.content.dashboard-content {
    height: 100% !important;
    min-height: 0;
    overflow: hidden !important;
  }

  .executive-lab {
    height: 100%;
    min-height: 0;
    gap: 7px;
    padding-top: 0;
    overflow: hidden;
  }

  .executive-lab__masthead {
    align-items: center;
    gap: 14px;
  }

  .executive-lab__heading {
    flex: 1 1 270px;
    min-width: 250px;
  }

  .executive-lab__eyebrow {
    font-size: 0.58rem;
  }

  .executive-lab__heading h1 {
    margin: 2px 0 0;
    font-size: 1.42rem;
  }

  .executive-lab__heading p {
    display: none;
  }

  .executive-lab__filters {
    flex: 1 1 720px;
    grid-template-columns: 1.35fr 0.9fr 1fr 1fr auto auto;
    gap: 5px;
    padding: 5px;
    border-radius: 10px;
  }

  .executive-lab__field {
    gap: 1px;
  }

  .executive-lab__field > span {
    font-size: 0.52rem;
  }

  .executive-lab__field select,
  .executive-lab__field input,
  .executive-lab__apply,
  .executive-lab__reset {
    height: 30px;
    min-height: 30px;
  }

  .executive-lab__coverage {
    grid-template-columns: minmax(165px, 0.7fr) repeat(2, minmax(220px, 1fr));
    min-height: 44px;
    border-radius: 10px;
  }

  .executive-lab__coverage-intro,
  .executive-lab__coverage-item {
    gap: 8px;
    padding: 6px 10px;
  }

  .executive-lab__coverage-icon {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .executive-lab__coverage-intro span:not(.executive-lab__coverage-icon),
  .executive-lab__coverage-item div > span {
    font-size: 0.56rem;
  }

  .executive-lab__coverage-intro strong,
  .executive-lab__coverage-item strong {
    font-size: 0.67rem;
  }

  .executive-lab__status {
    padding: 3px 7px;
    font-size: 0.55rem;
  }

  .executive-lab__streams {
    gap: 9px;
  }

  .executive-stream {
    min-height: 0;
    padding: 10px 13px 9px;
    border-radius: 13px;
  }

  .executive-stream__icon {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .executive-stream h2,
  .executive-panel h2 {
    margin-top: 1px;
    font-size: 0.86rem;
  }

  .executive-stream__link {
    min-height: 25px;
    padding-inline: 8px;
    font-size: 0.59rem;
  }

  .executive-stream__basis {
    margin: 5px 0 7px;
    padding-bottom: 5px;
    font-size: 0.57rem;
  }

  .executive-stream__headline {
    margin-bottom: 7px;
  }

  .executive-stream__headline > div:first-child > strong {
    font-size: 1.42rem;
  }

  .executive-stream__target,
  .executive-stream__pipeline {
    padding: 5px 7px;
  }

  .executive-stream__activity {
    gap: 6px;
  }

  .executive-stream__activity > div {
    gap: 1px;
    padding: 6px 8px;
  }

  .executive-stream__supporting {
    gap: 4px 12px;
    margin-top: 6px;
    font-size: 0.55rem;
  }

  .executive-stream__notice {
    margin: -2px 0 5px;
    padding: 4px 7px;
    font-size: 0.56rem;
  }

  .executive-lab__lower-grid {
    grid-template-columns: minmax(0, 2.35fr) minmax(255px, 0.65fr);
    gap: 9px;
    min-height: 0;
  }

  .executive-panel {
    border-radius: 12px;
  }

  .executive-panel--outlets {
    padding: 9px 11px 5px;
  }

  .executive-panel--pipeline,
  .executive-panel--entities {
    padding: 7px 9px;
  }

  .executive-panel__hint {
    font-size: 0.55rem;
  }

  .executive-outlets {
    margin-top: 4px;
  }

  .executive-outlets th {
    padding: 4px 7px;
    font-size: 0.53rem;
  }

  .executive-outlets td {
    height: 38px;
    padding: 4px 7px;
    font-size: 0.63rem;
  }

  .executive-outlets td > strong {
    font-size: 0.66rem;
  }

  .executive-outlets td > span:not(.executive-lab__no-data) {
    margin-top: 0;
    font-size: 0.54rem;
  }

  .executive-lab__mini-status {
    margin-top: 1px;
    font-size: 0.49rem;
  }

  .executive-outlets__actions button {
    min-height: 23px;
    padding-inline: 6px;
    font-size: 0.53rem;
  }

  .executive-lab__management-rail {
    gap: 6px;
  }

  .executive-panel__round-icon {
    width: 26px;
    height: 26px;
  }

  .executive-panel__pipeline-value {
    margin-top: 3px;
    padding: 4px 6px;
  }

  .executive-panel__pipeline-value > strong {
    font-size: 0.83rem;
  }

  .executive-panel__pipeline-value small {
    display: none;
  }

  .executive-panel__wide-link {
    min-height: 22px;
    margin-top: 3px;
    font-size: 0.56rem;
  }

  .executive-entities {
    gap: 3px;
    margin-top: 3px;
  }

  .executive-entities > div {
    gap: 5px;
    padding: 2px 5px;
  }

  .executive-entities > div > span {
    width: 21px;
    height: 21px;
    flex-basis: 21px;
  }

  .executive-entities strong {
    font-size: 0.59rem;
  }

  .executive-entities small {
    margin-top: 0;
    font-size: 0.51rem;
  }

  .pos-dashboard-vb {
    height: 100%;
    min-height: 0;
    gap: 6px;
    padding: 0 0 5px;
    overflow: hidden;
  }

  .pos-dashboard-vb .pos-dashboard-header {
    flex-direction: row;
    align-items: center;
    gap: 9px;
    min-height: 68px;
    padding: 7px 9px;
    border-radius: 11px;
  }

  .pos-dashboard-vb .dash-title-group {
    flex: 0 1 230px;
    min-width: 205px;
    gap: 0;
  }

  .pos-dashboard-vb .dash-title {
    font-size: 1.3rem !important;
    line-height: 1.05 !important;
  }

  .pos-dashboard-vb .pos-page-subtitle {
    display: none;
  }

  .pos-dashboard-vb .dash-freshness-row {
    flex-wrap: wrap;
    gap: 2px 3px;
    margin-top: 3px;
    white-space: normal;
  }

  .pos-dashboard-vb .freshness-label,
  .pos-dashboard-vb .freshness-badge {
    font-size: 0.5rem;
  }

  .pos-dashboard-vb .freshness-badge {
    padding: 1px 4px;
  }

  .pos-dashboard-vb .dash-controls {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pos-dashboard-vb .dash-filter-form {
    flex-wrap: nowrap !important;
    align-items: center !important;
    width: 100%;
    gap: 4px !important;
    padding: 4px;
  }

  .pos-dashboard-vb .dash-filter-form > .multi-select-wrap {
    flex: 1.25 1 155px !important;
    min-width: 145px !important;
  }

  .pos-dashboard-vb .dash-filter-form > label {
    flex: 1 1 98px !important;
    min-width: 82px !important;
  }

  .pos-dashboard-vb .dash-filter-form > label:nth-of-type(1) {
    flex: 0 0 67px !important;
  }

  .pos-dashboard-vb .dash-filter-form > label select,
  .pos-dashboard-vb .dash-filter-form > label input,
  .pos-dashboard-vb .dash-filter-form > .multi-select-wrap .multi-select-btn,
  .pos-dashboard-vb .dash-filter-form .btn-apply,
  .pos-dashboard-vb .dash-filter-form .btn-reset,
  .pos-dashboard-vb .dash-filter-form .btn-print-icon {
    height: 30px !important;
    min-height: 30px !important;
    padding: 3px 6px !important;
    font-size: 0.66rem !important;
  }

  .pos-dashboard-vb .dash-filter-form .btn-apply {
    flex: 0 0 78px !important;
  }

  .pos-dashboard-vb .dash-filter-form .btn-reset {
    flex: 0 0 43px !important;
  }

  .pos-dashboard-vb .dash-filter-form .btn-print-icon {
    flex: 0 0 30px !important;
    width: 30px !important;
  }

  .pos-dashboard-vb .pos-section-heading {
    min-height: 18px;
    margin: 0 2px -3px;
  }

  .pos-dashboard-vb .pos-section-heading span {
    font-size: 0.53rem;
  }

  .pos-dashboard-vb .pos-section-heading h2 {
    margin-top: 0;
    font-size: 0.84rem;
  }

  .pos-dashboard-vb .pos-section-heading p {
    font-size: 0.56rem;
  }

  .pos-dashboard-vb .pos-section-heading--overview {
    margin-bottom: -6px;
  }

  .pos-dashboard-vb .kpi-strip {
    min-height: 74px;
    gap: 6px;
  }

  .pos-dashboard-vb .kpi-pinned-group,
  .pos-dashboard-vb .kpi-scroll-rail {
    gap: 6px;
  }

  .pos-dashboard-vb .kpi-strip.pinned-0 .kpi-scroll-rail .kpi-card {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6);
    width: calc((100% - (5 * var(--kpi-gap))) / 6);
    min-width: calc((100% - (5 * var(--kpi-gap))) / 6);
    max-width: calc((100% - (5 * var(--kpi-gap))) / 6);
  }

  .pos-dashboard-vb .kpi-strip.pinned-1 .kpi-pinned-group {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6);
    width: calc((100% - (5 * var(--kpi-gap))) / 6);
  }

  .pos-dashboard-vb .kpi-strip.pinned-1 .kpi-rail-container {
    flex-basis: calc((100% - (5 * var(--kpi-gap))) / 6 * 5 + (4 * var(--kpi-gap)));
    width: calc((100% - (5 * var(--kpi-gap))) / 6 * 5 + (4 * var(--kpi-gap)));
  }

  .pos-dashboard-vb .kpi-strip.pinned-1 .kpi-scroll-rail .kpi-card {
    flex-basis: calc((100% - (4 * var(--kpi-gap))) / 5);
    width: calc((100% - (4 * var(--kpi-gap))) / 5);
    min-width: calc((100% - (4 * var(--kpi-gap))) / 5);
    max-width: calc((100% - (4 * var(--kpi-gap))) / 5);
  }

  .pos-dashboard-vb .kpi-card {
    min-height: 74px;
    padding: 7px 8px;
    border-radius: 10px;
  }

  .pos-dashboard-vb .kpi-icon-wrap {
    width: 25px;
    height: 25px;
  }

  .pos-dashboard-vb .kpi-label {
    font-size: 0.58rem;
  }

  .pos-dashboard-vb .kpi-val {
    font-size: 1rem;
  }

  .pos-dashboard-vb .kpi-sub {
    font-size: 0.51rem;
    line-height: 1.08;
  }

  .pos-dashboard-vb .kpi-action-link {
    font-size: 0.51rem;
  }

  .pos-dashboard-vb .pos-performance-grid {
    gap: 6px 8px;
  }

  .pos-dashboard-vb .pos-card-trend,
  .pos-dashboard-vb .pos-card-resto {
    height: 205px;
    min-height: 205px;
    padding: 9px 10px;
    border-radius: 11px;
  }

  .pos-dashboard-vb .dash-card .card-head {
    margin-bottom: 4px;
  }

  .pos-dashboard-vb .dash-card .card-head h2 {
    font-size: 0.75rem;
  }

  .pos-dashboard-vb .trend-svg {
    max-height: 154px;
  }

  .pos-dashboard-vb .resto-summary-bar {
    margin-bottom: 1px;
    padding-bottom: 2px;
    font-size: 0.62rem;
  }

  .pos-dashboard-vb .resto-unified-body {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 6px;
  }

  .pos-dashboard-vb .resto-donut-svg {
    width: 62px;
    height: 62px;
  }

  .pos-dashboard-vb .resto-donut-legend-link {
    padding-block: 0;
    font-size: 0.56rem;
  }

  .pos-dashboard-vb .resto-target-item {
    padding: 2px 4px;
  }

  .pos-dashboard-vb .resto-target-row1,
  .pos-dashboard-vb .resto-target-row2,
  .pos-dashboard-vb .resto-target-row3 {
    line-height: 1.05;
  }

  .pos-summary-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
  }

  .pos-summary-strip .pos-section-heading {
    margin-bottom: -3px;
  }

  .pos-summary-card {
    height: 144px;
    min-height: 144px;
    padding: 8px 9px !important;
    border-radius: 10px !important;
  }

  .pos-summary-card .card-head {
    min-height: 24px;
    margin-bottom: 3px !important;
  }

  .pos-summary-card .card-head h2 {
    font-size: 0.72rem !important;
  }

  .pos-summary-card .card-link {
    padding: 3px 6px;
    font-size: 0.54rem;
  }

  .pos-summary-list button {
    min-height: 27px;
    padding: 2px 3px;
  }

  .pos-summary-list strong,
  .pos-summary-list b {
    font-size: 0.6rem;
  }

  .pos-summary-list small {
    font-size: 0.5rem;
  }

  .pos-fiscal-summary {
    gap: 4px;
  }

  .pos-fiscal-summary button {
    min-height: 33px;
    padding: 3px 5px;
  }

  .pos-fiscal-summary span {
    font-size: 0.51rem;
  }

  .pos-fiscal-summary strong {
    font-size: 0.61rem;
  }
}

/* --- Non-POS Version B: visual harmonization for operational/report views --- */
.catering-dashboard-vb {
  --nonpos-accent: #16847a;
  --nonpos-accent-dark: #126f68;
  --nonpos-olive: #7b8451;
  --nonpos-navy: #2c3d3a;
  --nonpos-border: #e1e5df;
  --nonpos-canvas: #f5f6f3;
  --nonpos-muted: #747e78;
  color: #2f3b37;
}

.catering-dashboard-vb .btn-apply-icon,
.catering-dashboard-vb .nonpos-add-order {
  border-color: var(--umara-gold) !important;
  background: var(--umara-gold) !important;
  color: #fff !important;
}

.catering-dashboard-vb .btn-apply-icon:hover,
.catering-dashboard-vb .nonpos-add-order:hover {
  border-color: var(--umara-gold-hover) !important;
  background: var(--umara-gold-hover) !important;
}

.catering-dashboard-vb .btn-add-icon {
  border-color: var(--umara-gold) !important;
  background: var(--umara-gold) !important;
  color: #fff !important;
}

.catering-dashboard-vb.is-operations-view,
.catering-dashboard-vb.is-semester-view {
  gap: 8px;
}

.catering-dashboard-vb.is-operations-view .dash-card,
.catering-dashboard-vb.is-semester-view .dash-card,
.catering-dashboard-vb.is-operations-view .kpi-card {
  border-color: var(--nonpos-border);
  border-radius: 11px;
  box-shadow: 0 4px 14px rgba(39, 54, 48, 0.045);
}

.catering-dashboard-vb.is-operations-view .dash-card:hover,
.catering-dashboard-vb.is-operations-view .kpi-card:hover {
  border-color: #c9d7d1;
  box-shadow: 0 7px 18px rgba(39, 54, 48, 0.07);
}

.catering-dashboard-vb.is-operations-view .kpi-section-container {
  margin-bottom: 0;
}

.catering-dashboard-vb.is-operations-view .kpi-strip {
  gap: 7px;
}

.catering-dashboard-vb.is-operations-view .kpi-card {
  min-height: 72px;
  padding: 8px 10px;
}

.catering-dashboard-vb.is-operations-view .kpi-label {
  color: #77807a;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.035em;
}

.catering-dashboard-vb.is-operations-view .kpi-val {
  color: #25332f;
  font-size: 1.05rem;
}

.catering-dashboard-vb.is-operations-view .kpi-sub {
  color: #808984;
  font-size: 0.56rem;
}

.catering-dashboard-vb.is-operations-view .kpi-pin-btn.pinned {
  color: #16847a;
}

.catering-dashboard-vb.is-operations-view .kpi-icon-wrap.purple {
  background: #eef1df !important;
  color: #737b49 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-insight-grid {
  gap: 8px;
  margin-bottom: 8px;
}

.catering-dashboard-vb.is-operations-view .nonpos-insight-grid > .dash-card {
  overflow: hidden;
  padding: 9px 10px;
}

.catering-dashboard-vb.is-operations-view .card-head {
  margin-bottom: 5px;
}

.catering-dashboard-vb.is-operations-view .card-head h2,
.catering-dashboard-vb.is-semester-view .card-head h2 {
  color: #2c3935 !important;
  font-size: 0.8rem !important;
  font-weight: 800;
  line-height: 1.15;
}

.catering-dashboard-vb.is-operations-view .nonpos-detail-hint {
  background: #eaf5f1;
  color: #126f68;
}

.catering-dashboard-vb.is-operations-view .nonpos-sales-table thead {
  background: #f5f7f4 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-sales-table th,
.catering-dashboard-vb.is-operations-view .nonpos-transaction-table th {
  color: #6f7973 !important;
  font-size: 0.63rem !important;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.catering-dashboard-vb.is-operations-view .nonpos-sales-table td:first-child {
  color: #126f68 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-sales-table td:first-child svg,
.catering-dashboard-vb.is-semester-view .semester-table tbody td:first-child svg {
  stroke: #16847a !important;
}

.catering-dashboard-vb.is-operations-view .clickable-sales-row:hover {
  background: #f3f8f5 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-card {
  margin-bottom: 8px;
  padding: 0;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-toolbar {
  margin-bottom: 4px;
  padding: 9px 12px;
  border-bottom-color: #e7ebe6;
  background: #fbfcfa;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-heading > h2 svg {
  stroke: #16847a !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-heading > span {
  background: #f0f3e8 !important;
  color: #737b49 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-nav-button,
.catering-dashboard-vb.is-operations-view .nonpos-calendar-today-button {
  min-height: 29px;
  border-color: #dce3de;
  border-radius: 7px;
  color: #52605a;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-nav-button:hover,
.catering-dashboard-vb.is-operations-view .nonpos-calendar-today-button:hover {
  border-color: #9bc5bd;
  background: #edf7f3;
  color: #126f68;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-modes {
  border-radius: 8px;
  background: #eef1ed;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-modes button {
  min-height: 27px;
  border-radius: 6px;
  color: #68736d;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-modes button:hover {
  color: #126f68;
}

.catering-dashboard-vb.is-operations-view .nonpos-calendar-modes button.active {
  background: #16847a;
  color: #fff;
  box-shadow: 0 2px 5px rgba(22, 132, 122, 0.2);
}

.catering-dashboard-vb.is-operations-view .nonpos-day-column {
  border-color: #e2e7e2 !important;
  border-radius: 8px;
  background: #f8faf8 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-day-column.is-weekend {
  background: #faf9f4 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-day-column.is-today {
  border-color: #8fc2b8 !important;
  background: #eef7f3 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-day-column button[title^="Tambah pesanan"] {
  border-color: #b9d8d1 !important;
  background: #eaf5f1 !important;
  color: #126f68 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-event-card:not(.is-cancelled),
.catering-dashboard-vb.is-operations-view .nonpos-today-event:not(.is-cancelled) {
  border-color: #cbe0da !important;
  border-left-color: #16847a !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-event-card {
  border-radius: 7px;
  box-shadow: 0 2px 7px rgba(39, 54, 48, 0.05);
}

.catering-dashboard-vb.is-operations-view .nonpos-event-card > div:first-child,
.catering-dashboard-vb.is-operations-view .nonpos-event-card > div:first-child span,
.catering-dashboard-vb.is-operations-view .nonpos-today-event strong,
.catering-dashboard-vb.is-operations-view .nonpos-today-event span[style*="#2563eb"] {
  color: #31524a !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-event-card > div:last-child > span,
.catering-dashboard-vb.is-operations-view .nonpos-today-event span[style*="#dbeafe"] {
  background: #e9f4f0 !important;
  color: #126f68 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-month-day.has-events {
  border-color: #c5ddd7 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-month-day.is-today {
  border-color: #16847a !important;
  background: #edf7f3 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-search-control:focus {
  border-color: #16847a;
  box-shadow: 0 0 0 3px rgba(22, 132, 122, 0.12);
}

.catering-dashboard-vb.is-operations-view .nonpos-transactions-card {
  border-radius: 11px;
}

.catering-dashboard-vb.is-operations-view .nonpos-transaction-table thead {
  background: #f5f7f4 !important;
}

.catering-dashboard-vb.is-operations-view .nonpos-transaction-table tbody tr:hover {
  background: #f3f8f5 !important;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-view {
  gap: 9px !important;
  margin-bottom: 18px !important;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-kpis {
  gap: 7px;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-kpis > .dash-card {
  min-height: 82px;
  padding: 10px 12px !important;
  border-left-width: 3px !important;
  border-left-color: #16847a !important;
  background: linear-gradient(145deg, #fff, #fbfcfa);
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-kpis > .dash-card:nth-child(2) { border-left-color: #7b8451 !important; }
.catering-dashboard-vb.is-semester-view .nonpos-semester-kpis > .dash-card:nth-child(3) { border-left-color: #397b70 !important; }
.catering-dashboard-vb.is-semester-view .nonpos-semester-kpis > .dash-card:nth-child(4) { border-left-color: #68756f !important; }
.catering-dashboard-vb.is-semester-view .nonpos-semester-kpis > .dash-card:nth-child(5) { border-left-color: #9a7a4c !important; }

.catering-dashboard-vb.is-semester-view .nonpos-semester-kpis > .dash-card > span:first-child {
  color: #7a8258 !important;
  font-size: 0.62rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-kpis > .dash-card > strong {
  margin-top: 4px !important;
  color: #293732 !important;
  font-size: clamp(0.9rem, 1.12vw, 1.08rem) !important;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-kpis > .dash-card > span:last-child {
  color: #77817b !important;
  font-size: 0.59rem !important;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-report {
  padding: 0;
  border-radius: 12px;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-report-head {
  margin: 0;
  padding: 10px 13px !important;
  border-bottom-color: #e1e6e1 !important;
  background: #f8faf7 !important;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-report-head h2 {
  color: #2c3d3a !important;
  font-size: 0.83rem !important;
  letter-spacing: 0.015em;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-report-head h2 svg {
  stroke: #16847a !important;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-report-head > div:first-child > span {
  color: #7b847e !important;
  font-size: 0.63rem !important;
}

.catering-dashboard-vb.is-semester-view .nonpos-semester-report-head .btn-preset {
  min-height: 30px;
  padding: 4px 10px !important;
  border: 1px solid #b8d5ce !important;
  border-radius: 7px;
  background: #edf7f3 !important;
  color: #126f68 !important;
  font-size: 0.66rem !important;
}

.catering-dashboard-vb.is-semester-view .semester-table {
  color: #34423d;
  font-size: 0.7rem !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:first-child {
  background: #2c3d3a !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:first-child th:first-child {
  border-right-color: #4a5e59 !important;
  background: #263633 !important;
  color: #fff !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:first-child th:nth-child(2) {
  border-color: #707b51 !important;
  background: #596443 !important;
  color: #f2f5e8 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:first-child th:nth-child(3) {
  border-color: #258e83 !important;
  background: #126f68 !important;
  color: #eaf7f3 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:first-child th:nth-child(4) {
  background: #344844 !important;
  color: #fff !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) {
  background: #40544f !important;
  color: #f4f7f5 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th {
  color: inherit !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(7),
.catering-dashboard-vb.is-semester-view .semester-table tbody td:nth-child(8) {
  border-left-color: #aab58a !important;
  background: #e5ead5 !important;
  color: #4f5b35 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(8),
.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(9),
.catering-dashboard-vb.is-semester-view .semester-table tbody td:nth-child(9),
.catering-dashboard-vb.is-semester-view .semester-table tbody td:nth-child(10) {
  background: #f0f3e8 !important;
  color: #5f6848 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(16),
.catering-dashboard-vb.is-semester-view .semester-table tbody td:nth-child(17) {
  border-left-color: #9bc8bf !important;
  background: #dceee9 !important;
  color: #245f57 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(17),
.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(18),
.catering-dashboard-vb.is-semester-view .semester-table tbody td:nth-child(18),
.catering-dashboard-vb.is-semester-view .semester-table tbody td:nth-child(19) {
  background: #edf6f3 !important;
  color: #356b63 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(19),
.catering-dashboard-vb.is-semester-view .semester-table tbody td:nth-child(20) {
  border-left-color: #78938b !important;
  background: #cadbd5 !important;
  color: #263f3a !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(20),
.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(21),
.catering-dashboard-vb.is-semester-view .semester-table tbody td:nth-child(21),
.catering-dashboard-vb.is-semester-view .semester-table tbody td:nth-child(22) {
  background: #e7efec !important;
  color: #3c554f !important;
}

.catering-dashboard-vb.is-semester-view .semester-table tbody tr.is-metric > td:first-child {
  background: #f1f5f2 !important;
  color: #126f68 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table tbody tr.is-segment > td:first-child {
  color: #5e6848 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table tbody tr.is-total > td {
  border-top: 2px solid #40544f !important;
  border-bottom: 2px solid #40544f !important;
  font-weight: 800 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table tbody tr.is-total > td:first-child {
  background: #dce5e1 !important;
  color: #263b36 !important;
}

.catering-dashboard-vb.is-semester-view .semester-table tbody tr:hover > td:not(:first-child) {
  filter: brightness(0.985);
}

.catering-dashboard-vb.is-semester-view .nonpos-year-filter label {
  color: #53605a !important;
  font-size: 0.68rem !important;
}

.catering-dashboard-vb.is-semester-view .nonpos-year-filter select {
  border-color: #cdd9d4;
  color: #315149;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(-n+6) {
  background: #6c7850 !important;
  color: #fff !important;
}

.catering-dashboard-vb.is-semester-view .semester-table thead tr:nth-child(2) th:nth-child(n+10):nth-child(-n+15) {
  background: #16847a !important;
  color: #fff !important;
}

/* Final contextual-drawer consistency pass */
.pos-dashboard-vb .kpi-card:first-child {
  border-top-color: #e4e8eb;
}

.pos-dashboard-vb .kpi-scroll-rail .kpi-card:first-child {
  border-top: 1px solid #e4e8eb;
}

.pos-dashboard-vb .kpi-pinned-group .kpi-card {
  border-top: 3px solid var(--pos-blue);
}

.catering-dashboard-vb .nonpos-vb-kpi > small em { margin-left: 4px; }

.pos-dashboard-vb .kpi-action-link,
.pos-dashboard-vb .pos-card-link-button,
.executive-lab .executive-stream__link,
.executive-lab .executive-panel__wide-link,
.executive-lab .executive-outlets__actions button {
  min-height: 25px;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.6rem;
  line-height: 1.1;
}

.drawer-back-button {
  min-height: 29px;
  margin: 0 0 10px;
  padding: 5px 9px;
  border: 1px solid #dce3ea;
  border-radius: 7px;
  background: #f8fafc;
  color: #365f8c;
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.drawer-back-button:hover { background: #eef5fb; }

.drawer-target-progress {
  display: block;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf2;
}

.drawer-target-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d7fb8, #55a47f);
}

.drawer-target-missing {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #f4d79e;
  border-radius: 8px;
  background: #fff9ea;
  color: #8a5a12;
  font-size: .75rem;
}
.drawer-target-missing strong { font-size: .74rem; }
.drawer-target-missing a { color: #6f5925; font-weight: 800; text-decoration: none; white-space: nowrap; }
.drawer-target-missing a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .drawer-target-missing { grid-template-columns: 1fr; gap: 4px; }
}

.drawer-target-list > div {
  position: relative;
  min-height: 68px;
  padding-bottom: 15px;
}

.drawer-target-list > div > .drawer-target-progress {
  position: absolute;
  right: 12px;
  bottom: 7px;
  left: 12px;
  width: auto;
  height: 3px;
}

/* --- Umara semantic color harmonization --- */
.pos-dashboard-vb .kpi-icon-wrap {
  background: var(--pos-blue-soft) !important;
  color: var(--pos-blue) !important;
}

.catering-dashboard-vb .kpi-icon-wrap {
  background: var(--nonpos-teal-soft) !important;
  color: var(--nonpos-teal) !important;
}

.catering-dashboard-vb .kpi-card [style*="color:#dc2626"] {
  color: var(--nonpos-teal) !important;
}

.catering-dashboard-vb [style*="color:#2563eb"],
.catering-dashboard-vb [style*="color:#1d4ed8"],
.catering-dashboard-vb [style*="color:#1e40af"],
.catering-dashboard-vb [style*="color:#0369a1"] {
  color: var(--nonpos-teal-deep) !important;
}

.catering-dashboard-vb [style*="background:#2563eb"] {
  background: var(--nonpos-teal) !important;
}

.catering-dashboard-vb [style*="background:#eff6ff"],
.catering-dashboard-vb [style*="background:#dbeafe"],
.catering-dashboard-vb [style*="background:#e0f2fe"],
.catering-dashboard-vb [style*="background:#f0f9ff"] {
  background: var(--nonpos-teal-soft) !important;
}

.catering-dashboard-vb [style*="border-left-color:#2563eb"],
.catering-dashboard-vb [style*="border-left:4px solid #2563eb"],
.catering-dashboard-vb [style*="border-left:3px solid #2563eb"],
.catering-dashboard-vb [style*="border-top:3px solid #3b82f6"] {
  border-color: var(--nonpos-teal) !important;
}

.catering-dashboard-vb button[style*="background:#2563eb"] {
  background: var(--umara-gold) !important;
  color: #fff !important;
}

.catering-dashboard-vb button[style*="background:#eff6ff"] {
  border-color: #cfc5a7 !important;
  background: var(--umara-gold-soft) !important;
  color: var(--umara-gold-hover) !important;
}

.catering-dashboard-vb svg[stroke="#2563eb"],
.catering-dashboard-vb svg[stroke="#1d4ed8"],
.catering-dashboard-vb svg[stroke="#1e40af"],
.catering-dashboard-vb svg[stroke="#3b82f6"],
.catering-dashboard-vb svg[stroke="#0369a1"] {
  stroke: var(--nonpos-teal) !important;
}

.executive-drawer__primary-action,
.executive-drawer__split-actions a,
.executive-drawer__split-actions a:first-child,
.executive-drawer__split-actions a:last-child {
  border-color: var(--umara-gold);
  background: var(--umara-gold);
}

.executive-drawer__primary-action:hover,
.executive-drawer__split-actions a:hover {
  background: var(--umara-gold-hover);
}

/* Data Management Invoicing: keep page actions and tabs on the Umara/Non-POS palette. */
.invoicing-dashboard-link,
a[href="/catering-sales"].invoicing-dashboard-link {
  border-color: var(--umara-gold) !important;
  background: var(--umara-gold) !important;
  color: #fff !important;
}

.invoicing-dashboard-link:hover,
.invoicing-dashboard-link:focus-visible {
  border-color: var(--umara-gold-hover) !important;
  background: var(--umara-gold-hover) !important;
  color: #fff !important;
}

.invoicing-import-tabs > button {
  border-bottom-color: transparent !important;
  color: #64748b !important;
}

.invoicing-import-tabs > button[style*="var(--nonpos-teal)"],
.invoicing-import-tabs > button[style*="#2563eb"] {
  border-bottom-color: var(--nonpos-teal) !important;
  color: var(--nonpos-teal-deep) !important;
}

.invoicing-import-tabs > button:focus-visible {
  outline: 2px solid var(--nonpos-teal);
  outline-offset: 2px;
}

/* Executive overview: keep both stream snapshots compact so the outlet contribution
   remains visible in the initial desktop viewport. */
.executive-lab__streams {
  align-items: stretch;
}

.executive-stream {
  height: 312px;
  min-height: 312px;
  padding: 15px 16px 13px;
}

.executive-stream__basis {
  margin: 7px 0 10px;
  padding-bottom: 8px;
}

.executive-stream__headline {
  margin-bottom: 10px;
}

.executive-stream__activity--pos-pax {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.executive-stream__activity > div {
  padding: 8px 9px;
}

.executive-stream__supporting {
  margin-top: 9px;
}

.executive-stream--nonpos .executive-stream__segments {
  display: none;
}

@media (max-width: 900px) {
  .executive-stream {
    height: auto;
    min-height: 0;
  }
}

/* Keep the Executive cutoff on the same compact strip used by the other dashboards. */
.executive-lab__cutoffs {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 22px;
  padding: 0 7px 3px;
  border-bottom: 1px solid var(--exec-line);
  color: #727b8b;
  font-size: 0.62rem;
}

.executive-lab__cutoffs-label {
  color: #7b6d3b;
  font-size: 0.57rem;
  font-weight: 780;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.executive-lab__cutoff {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.executive-lab__cutoff i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--exec-pos);
  box-shadow: 0 0 0 3px var(--exec-pos-soft);
}

.executive-lab__cutoff--nonpos i {
  background: var(--exec-nonpos);
  box-shadow: 0 0 0 3px var(--exec-nonpos-soft);
}

.executive-lab__cutoff--alert {
  color: #b42318;
  font-weight: 700;
}

.executive-lab__cutoff--alert i {
  background: #d92d20;
  box-shadow: 0 0 0 3px #fee4e2;
}

.executive-lab__cutoff--alert strong {
  color: #b42318;
}

.executive-lab__cutoff strong {
  margin-left: 3px;
  color: #354053;
  font-weight: 760;
}

@media (min-width: 1100px) and (max-height: 760px) {
  .executive-lab__masthead {
    flex-wrap: wrap;
    row-gap: 2px;
  }

  .executive-lab__cutoffs {
    min-height: 22px;
    padding: 0 5px;
    font-size: 0.56rem;
  }

  .executive-lab__cutoffs-label {
    font-size: 0.51rem;
  }

  .executive-lab__cutoff i {
    width: 6px;
    height: 6px;
  }

  .executive-stream {
    height: 270px;
    min-height: 270px;
  }
}

/* POS header: mirror the Executive title/filter row and separate freshness strip. */
@media (min-width: 1200px) {
  .pos-dashboard-vb .pos-dashboard-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    min-height: 56px;
    flex-wrap: nowrap;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .pos-dashboard-vb .dash-title-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 260px;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
  }

  .pos-dashboard-vb .pos-page-kicker {
    font-size: 0.66rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  .pos-dashboard-vb .dash-title {
    font-size: 1.38rem !important;
    line-height: 1.02 !important;
  }

  .pos-dashboard-vb .pos-page-subtitle,
  .pos-dashboard-vb .dashboard-context-link {
    display: none;
  }

  .pos-dashboard-vb .dash-controls {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-right: 8px;
  }

  .pos-dashboard-vb .dash-filter-form {
    width: auto;
    flex: 0 0 auto;
    align-items: flex-end !important;
    justify-content: flex-end;
    gap: 5px !important;
    padding: 8px !important;
    border: 1px solid #e4e6df;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(47, 53, 44, 0.04);
  }

  .pos-dashboard-vb .pos-filter-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .pos-dashboard-vb .pos-filter-field > span {
    padding-left: 2px;
    color: #7b8190;
    font-size: 0.57rem;
    font-weight: 750;
    letter-spacing: 0.065em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .pos-dashboard-vb .dash-filter-form > .pos-filter-field--outlet {
    flex: 0 0 160px !important;
    min-width: 160px !important;
  }

  .pos-dashboard-vb .dash-filter-form > .pos-filter-field--period {
    flex: 0 0 120px !important;
    min-width: 120px !important;
  }

  .pos-dashboard-vb .dash-filter-form > .pos-filter-field--date {
    flex: 0 0 122px !important;
    min-width: 122px !important;
  }

  .pos-dashboard-vb .pos-filter-field--outlet .multi-select-wrap,
  .pos-dashboard-vb .pos-filter-field--outlet .multi-select-btn {
    width: 100%;
  }

  .pos-dashboard-vb .pos-filter-field select,
  .pos-dashboard-vb .pos-filter-field input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    box-sizing: border-box;
  }

  .pos-dashboard-vb .period-preset-select {
    padding-right: 24px !important;
  }

  .pos-dashboard-vb .dash-filter-form .btn-apply,
  .pos-dashboard-vb .dash-filter-form .btn-reset,
  .pos-dashboard-vb .dash-filter-form .btn-print-icon {
    height: 34px !important;
    min-height: 34px !important;
  }

  .pos-dashboard-vb .dash-filter-form .btn-reset,
  .pos-dashboard-vb .dash-filter-form .btn-print-icon {
    flex: 0 0 34px !important;
    width: 34px;
    padding: 0 !important;
  }

  .pos-dashboard-vb .pos-header-freshness {
    width: 100%;
    min-height: 22px;
    min-width: 0;
    align-items: center;
    flex-wrap: nowrap !important;
    gap: 5px;
    margin: -3px 0 0;
    padding: 0 7px 3px;
    border-bottom: 1px solid #e4e8ee;
    overflow: visible;
    white-space: nowrap;
  }

  .pos-dashboard-vb .freshness-label,
  .pos-dashboard-vb .freshness-badge {
    flex: 0 0 auto;
    font-size: 0.5rem;
  }

  .pos-dashboard-vb .freshness-badge {
    padding: 1px 4px;
  }
}

/* Keep outlet scope choices concise throughout the application. */
.multi-select-item small {
  display: none;
}

/* Non-POS header: use the same compact title/filter rhythm as Executive and POS. */
@media (min-width: 1200px) {
  .catering-dashboard-vb > .dash-header-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .catering-dashboard-vb > .dash-header-row .dash-title-group {
    display: flex;
    flex: 1 1 auto;
    min-width: 250px;
    flex-direction: column;
    justify-content: center;
  }

  .catering-dashboard-vb > .dash-header-row .dash-title {
    font-size: 1.38rem;
    line-height: 1.02;
  }

  .catering-dashboard-vb > .dash-header-row .dash-subtitle,
  .catering-dashboard-vb > .dash-header-row .dashboard-context-link {
    display: none;
  }

  .catering-dashboard-vb > .dash-header-row .dash-controls {
    width: auto;
    flex: 0 0 auto;
    justify-content: flex-end;
    margin-right: 8px;
  }

  .catering-dashboard-vb > .dash-header-row .dash-filter-form {
    width: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 5px;
    padding: 8px;
    border: 1px solid #e4e6df;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(47, 53, 44, 0.04);
  }

  .catering-dashboard-vb .nonpos-filter-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    margin: 0;
    box-sizing: border-box;
  }

  .catering-dashboard-vb .nonpos-filter-field > span {
    padding-left: 2px;
    color: #7b8190;
    font-size: 0.57rem;
    font-weight: 750;
    letter-spacing: 0.065em;
    line-height: 1.1;
    text-transform: uppercase;
  }

  .catering-dashboard-vb .dash-filter-form > .nonpos-filter-field--outlet {
    flex: 0 0 160px;
    min-width: 160px;
  }

  .catering-dashboard-vb .dash-filter-form > .nonpos-filter-field--period {
    flex: 0 0 120px;
    min-width: 120px;
  }

  .catering-dashboard-vb .dash-filter-form > .nonpos-filter-field--date {
    flex: 0 0 122px;
    min-width: 122px;
  }

  .catering-dashboard-vb .nonpos-filter-field--outlet .multi-select-wrap,
  .catering-dashboard-vb .nonpos-filter-field--outlet .multi-select-btn {
    width: 100%;
  }

  .catering-dashboard-vb .nonpos-filter-field select,
  .catering-dashboard-vb .nonpos-filter-field input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 34px;
    min-height: 34px;
    box-sizing: border-box;
  }

  .catering-dashboard-vb .period-preset-select {
    padding-right: 24px;
  }

  .catering-dashboard-vb .dash-filter-form .btn-apply,
  .catering-dashboard-vb .dash-filter-form .btn-reset,
  .catering-dashboard-vb .dash-filter-form .btn-print-icon,
  .catering-dashboard-vb .dash-filter-form .btn-add-icon {
    height: 34px;
    min-height: 34px;
  }

  .catering-dashboard-vb .dash-filter-form .btn-reset,
  .catering-dashboard-vb .dash-filter-form .btn-print-icon,
  .catering-dashboard-vb .dash-filter-form .btn-add-icon {
    flex: 0 0 34px;
    width: 34px;
    padding: 0;
  }

  .catering-dashboard-vb .nonpos-header-freshness {
    width: 100%;
    min-height: 22px;
    min-width: 0;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    margin: -3px 0 0;
    padding: 0 7px 3px;
    border-bottom: 1px solid #e4e8ee;
    overflow: visible;
    white-space: nowrap;
  }

  .catering-dashboard-vb .nonpos-header-freshness .freshness-label,
  .catering-dashboard-vb .nonpos-header-freshness .freshness-badge {
    flex: 0 0 auto;
    font-size: 0.5rem;
  }

  .catering-dashboard-vb .nonpos-header-freshness .freshness-badge {
    padding: 1px 4px;
  }

  .catering-dashboard-vb .dashboard-kpi-context {
    display: none;
  }
}

/* Executive filter columns: fixed compact widths prevent label/control overlap. */
@media (min-width: 1200px) {
  .executive-lab__masthead {
    column-gap: 18px;
    flex-wrap: nowrap;
  }

  .executive-lab__filters {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 160px 120px 122px 122px 86px 34px;
    align-items: end;
    gap: 5px;
    margin-right: 8px;
    padding: 8px;
    border-radius: 13px;
  }

  .executive-lab__field,
  .executive-lab__field--outlet,
  .executive-lab__field--period,
  .executive-lab__field--date {
    width: 100%;
    min-width: 0;
  }

  .executive-lab__field select,
  .executive-lab__field input,
  .executive-lab__field--outlet .multi-select-wrap,
  .executive-lab__field--outlet .multi-select-btn,
  .executive-lab__field--period select,
  .executive-lab__field--date input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .executive-lab__apply,
  .executive-lab__reset {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   Audit UI 30 Sep 2026 - perbaikan layout (Claude)
   Ditaruh di akhir file (awalan "html body" supaya menang atas aturan lama).
   ========================================================================== */

/* 1. Filter bar: kotak "Lingkup" mengisi kolomnya sendiri, tidak menabrak
      kotak Periode, dan tingginya sama dengan kontrol filter lain. */
html body .pos-filter-field--outlet .multi-select-wrap,
html body .nonpos-filter-field--outlet .multi-select-wrap,
html body .executive-lab__field--outlet .multi-select-wrap {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
}

html body .pos-filter-field--outlet .multi-select-btn,
html body .nonpos-filter-field--outlet .multi-select-btn,
html body .executive-lab__field--outlet .multi-select-btn {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html body .pos-dashboard-vb .dash-filter-form .multi-select-btn,
html body .pos-dashboard-vb .dash-filter-form select,
html body .pos-dashboard-vb .dash-filter-form input:not([type=checkbox]),
html body .pos-dashboard-vb .dash-filter-form .btn-apply,
html body .pos-dashboard-vb .dash-filter-form .btn-reset,
html body .pos-dashboard-vb .dash-filter-form .btn-print-icon,
html body .catering-dashboard-vb .dash-filter-form .multi-select-btn,
html body .catering-dashboard-vb .dash-filter-form select,
html body .catering-dashboard-vb .dash-filter-form input:not([type=checkbox]),
html body .catering-dashboard-vb .dash-filter-form .btn-apply,
html body .catering-dashboard-vb .dash-filter-form .btn-reset,
html body .catering-dashboard-vb .dash-filter-form .btn-print-icon,
html body .catering-dashboard-vb .dash-filter-form .btn-add-icon,
html body .executive-lab__filters .multi-select-btn,
html body .executive-lab__filters select,
html body .executive-lab__filters input:not([type=checkbox]),
html body .executive-lab__filters .executive-lab__apply,
html body .executive-lab__filters .executive-lab__reset {
  height: 32px !important;
  min-height: 32px !important;
  box-sizing: border-box !important;
}

/* 2. Kartu KPI Dashboard POS: tombol pin tidak menutupi judul,
      teks boleh turun baris alih-alih terpotong. */
html body .kpi-card .kpi-pin-btn {
  top: auto !important;
  bottom: 6px !important;
}

html body .kpi-card .kpi-label,
html body .kpi-card .kpi-sub {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.25 !important;
}

html body .kpi-card .kpi-comp-row {
  flex-wrap: wrap !important;
}

/* 3. Legenda donut "Penjualan per Resto": nama resto tampil utuh. */
html body .resto-donut-legend-link .resto-name {
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  flex: 1 0 auto !important;
}

/* 4. Kartu KPI Dashboard Non-POS: label boleh turun baris, tidak terpotong. */
html body .nonpos-vb-kpi > span {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

/* 5. Tabel Laporan Penjualan: lebih ringkas supaya kolom uang terlihat,
      kolom No. Transaksi tetap terlihat saat tabel digeser. */
html body .sales-table th,
html body .sales-table td {
  padding: 7px 8px !important;
  font-size: 0.76rem !important;
}

html body .sales-table th:first-child,
html body .sales-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 1px 0 0 #e5e7eb;
}

/* 6. Filter Laporan Penjualan & Analitik Menu: semua kotak filter sama tinggi. */
html body form.filter-form select,
html body form.filter-form input:not([type=checkbox]):not([type=file]),
html body form.filter-form .multi-select-btn,
html body form.filter-form > button,
html body form.filter-form .btn-primary,
html body form.filter-form .btn-secondary {
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

/* 7. Paginasi standar (komponen Pager.razor) - dipakai di semua tabel yang datanya bertambah. */
.app-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 2px 2px;
  font-size: 0.78rem;
  color: #475569;
}

.app-pager__info strong {
  color: #0f172a;
  font-weight: 700;
}

.app-pager__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.app-pager__btn {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.app-pager__btn:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
}

.app-pager__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.app-pager__page {
  padding: 0 6px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
}

/* Pemilih resto satu-per-satu untuk halaman pengaturan */
.scope-picker {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.scope-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.scope-tab {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.scope-tab:hover { color: #126f68; background: #fff; }

.scope-tab.active {
  color: #126f68;
  background: #eaf5f1;
  border-color: #9bc5bd;
}

.scope-tab:focus-visible { outline: 2px solid #126f68; outline-offset: 1px; }

.scope-single {
  font-weight: 700;
  color: #1e293b;
  padding: 8px 0;
}

.scope-single small { color: #64748b; font-weight: 500; }

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}


/* Jam ramai (Dashboard POS) */
.peak-hours { margin-top: 12px; }
.peak-hours__summary { color: #4b5563; font-size: 0.78rem; }
.peak-hours__summary strong { color: var(--pos-blue-deep); font-weight: 800; }
.peak-hours__bars { display: flex; align-items: flex-end; gap: 6px; height: 132px; margin-top: 10px; padding: 0 2px; }
.peak-hours__col { display: flex; flex: 1 1 0; min-width: 0; height: 100%; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.peak-hours__bar { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: #b9d0e8; }
.peak-hours__col.is-peak .peak-hours__bar { background: var(--pos-blue); }
.peak-hours__col > span { color: #6b7280; font-size: 0.66rem; font-variant-numeric: tabular-nums; }
.peak-hours__col.is-peak > span { color: var(--pos-blue-deep); font-weight: 800; }
.peak-hours__note { display: block; margin-top: 8px; color: #6b7280; font-size: 0.7rem; line-height: 1.3; }

.pos-card-peak { display: flex; flex-direction: column; }
.pos-card-peak .card-body { display: flex; flex: 1 1 auto; min-height: 0; flex-direction: column; }
.peak-card__summary { color: #4b5563; font-size: 0.78rem; }
.peak-card__summary strong { color: var(--pos-blue-deep); font-weight: 800; }
.peak-card__bars { flex: 1 1 auto; min-height: 0; height: auto; margin-top: 8px; }

.pos-card-flip { position: relative; }
.card-flip-btn { position: absolute; top: 50%; z-index: 10; display: flex; width: 26px; height: 26px; align-items: center; justify-content: center; padding: 0; transform: translateY(-50%); border: 1px solid #cbd5e1; border-radius: 50%; background: rgba(255, 255, 255, 0.95); color: #334155; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14); cursor: pointer; opacity: 0.9; transition: all 0.2s ease; }
.card-flip-btn:hover { opacity: 1; background: #ffffff; color: #0f172a; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22); transform: translateY(-50%) scale(1.08); }
.card-flip-btn--next { right: 2px; }
.card-flip-btn--prev { left: 2px; }
.peak-card__content { display: flex; min-height: 0; flex: 1 1 auto; flex-direction: column; }

/* --- Cetak 1 lembar (menu tombol cetak) --- */
.print-menu { position: relative; display: inline-flex; flex-shrink: 0; }
.print-menu__list {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 80;
  min-width: 150px; padding: 4px; display: flex; flex-direction: column; gap: 2px;
  background: #fff; border: 1px solid #dfe3da; border-radius: 8px;
  box-shadow: 0 8px 22px rgba(30, 36, 28, 0.14);
}
.print-menu__list[hidden] { display: none; }
.print-menu__item {
  border: 0; background: transparent; text-align: left; cursor: pointer;
  padding: 7px 10px; border-radius: 6px; font: inherit; font-size: 0.78rem; color: #2c3544; white-space: nowrap;
}
.print-menu__item:hover { background: #f1f4ee; }

@media print {
  .print-menu { display: none !important; }
}

/* --- Non-POS Ikhtisar: rel KPI geser kiri/kanan + pin (maks. 5); 6 kartu terlihat --- */
.nonpos-vb-kpi-strip { position: relative; display: flex; gap: 7px; min-width: 0; container-type: inline-size; }
.nonpos-vb-kpi-pinned { display: flex; flex: 0 0 auto; gap: 7px; }
.nonpos-vb-kpi-rail { position: relative; flex: 1 1 0; min-width: 0; }
.nonpos-vb-kpi-item { position: relative; display: flex; flex: 0 0 auto; width: calc((100cqw - 35px) / 6); min-width: 0; }
.nonpos-vb-kpi-item > .nonpos-vb-kpi { flex: 1 1 auto; }
.nonpos-vb-kpi-item .nonpos-vb-kpi > span { padding-right: 16px; box-sizing: border-box; }
.nonpos-vb-kpi-item:hover .kpi-pin-btn { opacity: 0.85; }
.nonpos-vb-kpi--static { cursor: default; }
.nonpos-vb-kpi--static:hover { transform: none; border-color: #e1e5df; box-shadow: 0 4px 14px rgba(39, 54, 48, 0.045); }
.nonpos-vb-kpi-rail .kpi-nav-btn#nonpos-kpi-prev { left: 2px; }
.nonpos-vb-kpi-rail .kpi-nav-btn#nonpos-kpi-next { right: 2px; }
.nonpos-vb-kpi-toast {
  position: absolute; top: 6px; left: 50%; z-index: 30; transform: translateX(-50%);
  padding: 5px 11px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #9a3412;
  font-size: 0.72rem; font-weight: 600; white-space: nowrap; box-shadow: 0 6px 16px rgba(30, 36, 28, 0.14);
}
@media (min-width: 1100px) {
  .nonpos-vb-kpi-rail .nonpos-vb-kpis {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0 8px;
    margin: -2px 0 -8px;
  }
  .nonpos-vb-kpi-rail .nonpos-vb-kpis::-webkit-scrollbar { display: none; }
  .nonpos-vb-kpi-rail .nonpos-vb-kpis { cursor: grab; user-select: none; -webkit-user-select: none; }
  .nonpos-vb-kpi-rail .nonpos-vb-kpis.dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
  .nonpos-vb-kpi-rail .nonpos-vb-kpi-item { scroll-snap-align: start; }
}
@media (max-width: 1099px) {
  .nonpos-vb-kpi-strip { display: block; container-type: normal; }
  .nonpos-vb-kpi-pinned { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-bottom: 7px; }
  .nonpos-vb-kpi-item { width: auto; }
  .nonpos-vb-kpi-rail .kpi-nav-btn { display: none; }
}
@media (max-width: 700px) {
  .nonpos-vb-kpi-pinned { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .nonpos-vb-kpi-rail .kpi-nav-btn, .nonpos-vb-kpi-item .kpi-pin-btn { display: none !important; }
}

/* --- Non-POS Operasional: kartu analitik geser + pin (maks. 2); 3 kartu terlihat --- */
.nonpos-insight-strip { --ins-gap: 12px; position: relative; display: flex; gap: var(--ins-gap); min-width: 0; margin-bottom: 12px; container-type: inline-size; }
.catering-dashboard-vb.is-operations-view .nonpos-insight-strip { --ins-gap: 8px; margin-bottom: 8px; }
.nonpos-insight-pinned { display: flex; flex: 0 0 auto; gap: var(--ins-gap); }
.nonpos-insight-rail-wrap { position: relative; display: flex; flex: 1 1 0; min-width: 0; }
.nonpos-insight-rail { display: flex; flex: 1 1 auto; gap: var(--ins-gap); min-width: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.nonpos-insight-rail::-webkit-scrollbar { display: none; }
.nonpos-insight-rail.dragging { scroll-snap-type: none; scroll-behavior: auto; }
.nonpos-insight-item { position: relative; display: flex; flex: 0 0 auto; width: calc((100cqw - (var(--ins-cols, 3) - 1) * var(--ins-gap)) / var(--ins-cols, 3)); min-width: 0; scroll-snap-align: start; }
.nonpos-insight-item > .dash-card { flex: 1 1 auto; min-width: 0; }
.catering-dashboard-vb.is-operations-view .nonpos-insight-item > .dash-card { overflow: hidden; padding: 9px 10px; }
.nonpos-insight-item .kpi-pin-btn { top: 4px; right: 5px; z-index: 5; }
.nonpos-insight-item:hover .kpi-pin-btn { opacity: 0.85; }
.nonpos-insight-item .card-head { padding-right: 22px !important; }
.nonpos-insight-rail-wrap .kpi-nav-btn#nonpos-insight-prev { left: 2px; }
.nonpos-insight-rail-wrap .kpi-nav-btn#nonpos-insight-next { right: 2px; }
@media (max-width: 1099px) {
  .nonpos-insight-strip { display: block; container-type: normal; }
  .nonpos-insight-pinned, .nonpos-insight-rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ins-gap); overflow: visible; }
  .nonpos-insight-pinned { margin-bottom: var(--ins-gap); }
  .nonpos-insight-item { width: auto; }
  .nonpos-insight-rail-wrap .kpi-nav-btn { display: none; }
}
@media print {
  .nonpos-insight-rail-wrap .kpi-nav-btn, .nonpos-insight-item .kpi-pin-btn { display: none !important; }
}

/* --- Ikhtisar: panel performa (2 slot terlihat, pin maks. 1) --- */
.nonpos-insight-strip--two { --ins-cols: 2; --ins-gap: 8px; margin-bottom: 0; }
.nonpos-insight-rail-wrap .kpi-nav-btn#nonpos-perf-prev { left: 2px; }
.nonpos-insight-rail-wrap .kpi-nav-btn#nonpos-perf-next { right: 2px; }
.nonpos-insight-item > .nonpos-vb-panel { flex: 1 1 auto; }
.nonpos-insight-item > .nonpos-vb-panel > header { padding-right: 22px; }
.nonpos-vb-ranked-list > .nonpos-vb-static-row {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 4px 3px;
  border-top: 1px solid #f0f1ed;
}

/* --- Ikhtisar: panel Kategori (5 segmen, baris kompak, tinggi panel tetap) --- */
.nonpos-vb-seg-list { display: flex; flex-direction: column; margin-top: 4px; }
.nonpos-vb-seg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 8px;
  height: 23px;
  padding: 0 3px;
  border-top: 1px solid #f0f1ed;
  font-size: .7rem;
}
.nonpos-vb-seg-name { color: #0f766e; font-weight: 800; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nonpos-vb-seg-val { color: #16a34a; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.nonpos-vb-seg-pct { color: #0f172a; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 1100px) { .nonpos-vb-lower--two { grid-template-columns: .83fr 1.22fr; } }

/* --- Laporan & Analisis: KPI ringkas, pencarian, urut kolom, ekspor --- */
.kpis--report { margin-bottom: 16px; }
.kpis--report > div { padding: 16px 18px; }
.kpis--report strong { font-size: 1.45rem; margin: 8px 0 5px; }
.kpis--report strong.kpi-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.2rem; }
.report-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.report-panel-head h2 { margin: 0; }
.report-search { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #667085; }
.report-search input { height: 34px; width: 210px; border: 1px solid #cbd5e1; border-radius: 8px; padding: 0 10px; font: inherit; font-size: .82rem; }
.th-sort { all: unset; cursor: pointer; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
.th-sort:hover, .th-sort:focus-visible { color: #0f766e; text-decoration: underline; }
.btn-export { height: 36px; padding: 0 16px; border: 1px solid #0f766e; border-radius: 8px; background: #fff; color: #0f766e; font-weight: 700; font-size: .85rem; cursor: pointer; }
.btn-export:hover:not(:disabled) { background: #e6f4f1; }
.btn-export:disabled { opacity: .45; cursor: not-allowed; }
.data-table .empty { text-align: center; color: #667085; }
.data-table tfoot .total-row td { background: #f8fafc; font-weight: 800; border-top: 2px solid #e2e8f0; position: sticky; bottom: 0; }

/* --- Menu Engineering dan peta panas jam --- */
.menu-eng, .heat-panel { margin-bottom: 16px; }
.menu-eng__sub { font-size: .76rem; color: #667085; }
.menu-eng__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.menu-eng__card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.menu-eng__card header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.menu-eng__card header strong { font-size: .95rem; }
.menu-eng__card header span { font-size: .72rem; font-weight: 700; color: #475569; }
.menu-eng__card small { font-size: .7rem; font-weight: 700; color: #475569; }
.menu-eng__card p { margin: 0; font-size: .78rem; color: #475569; }
.menu-eng__card--star { background: #ecfdf5; border-color: #a7f3d0; } .menu-eng__card--star header strong { color: #047857; }
.menu-eng__card--volume { background: #eff6ff; border-color: #bfdbfe; } .menu-eng__card--volume header strong { color: #1d4ed8; }
.menu-eng__card--potential { background: #fffbeb; border-color: #fde68a; } .menu-eng__card--potential header strong { color: #b45309; }
.menu-eng__card--review { background: #fef2f2; border-color: #fecaca; } .menu-eng__card--review header strong { color: #b91c1c; }
.menu-eng__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.menu-eng__chips span { background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-eng__card details summary { cursor: pointer; font-size: .74rem; font-weight: 700; color: #0f766e; margin-top: 4px; }
.heat-table { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 520px; }
.heat-table th { font-size: .66rem; font-weight: 700; color: #667085; text-align: center; padding: 0; }
.heat-table tbody th { text-align: left; width: 38px; color: #475569; font-size: .72rem; }
.heat-table td { height: 26px; border-radius: 4px; padding: 0; }
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; font-size: .72rem; color: #667085; }
.heat-legend i { width: 140px; height: 8px; border-radius: 999px; background: linear-gradient(90deg, rgba(15,118,110,.12), rgba(15,118,110,1)); }
.heat-legend strong { margin-left: auto; color: #0f172a; font-weight: 700; }
