:root { --eb-ink: #202124; --eb-muted: #6f7378; --eb-panel: #f4f5f5; --eb-line: #e6e7e8; --eb-blue: #079ad8; }
body { color: var(--eb-ink); background: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 238px; padding: 18px 12px; margin: 4px; background: var(--eb-panel); border-radius: 20px; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { color: var(--eb-blue); font-size: 1.4rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; padding: 0 9px 24px; }
.brand-logo { display: block; width: 150px; height: auto; }
.settings-logo { display: block; max-width: 220px; max-height: 110px; object-fit: contain; }
.side-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #909398; padding: 17px 11px 6px; }
.side-link { color: #5f6368; text-decoration: none; display: flex; gap: 12px; align-items: center; padding: 11px; border-radius: 999px; font-size: .88rem; font-weight: 650; }
.side-link.active { color: #202124; background: #d6f0fc; }
.side-link.coming { opacity: .45; cursor: default; }
.sidebar-footer { margin-top: auto; padding: 8px 11px; color: #74777b; font-size: .78rem; }
.main-area { width: 100%; max-width: 1550px; padding: 22px clamp(18px, 3vw, 48px); }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.topbar-title { font-size: 1.1rem; font-weight: 750; margin: 0; }
.user-dot { background: var(--eb-blue); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.eyebrow { color: var(--eb-muted); font-size: .86rem; font-weight: 650; margin-bottom: 4px; }
.hero-title { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.06em; font-weight: 760; margin: 0; }
.hero-copy { color: var(--eb-muted); font-weight: 550; margin-top: 5px; }
.status-pill { display: inline-flex; gap: 7px; align-items: center; border-radius: 999px; background: #e7f7ed; color: #167343; font-size: .78rem; font-weight: 750; padding: 8px 12px; }
.status-pill.warning { background: #fff0d8; color: #8c5500; }
.store-select { border: 1px solid var(--eb-line); border-radius: 999px; background-color: #fff; color: var(--eb-ink); font-weight: 700; min-width: 170px; padding: 8px 34px 8px 14px; }
.section-title { font-size: 1.2rem; letter-spacing: -.035em; font-weight: 750; margin: 36px 0 14px; }
.section-title-row { margin: 36px 0 14px; }
.section-title-row .section-title { margin: 0; }
.metric-card, .panel-card { border: 0; background: var(--eb-panel); border-radius: 14px; }
.metric-card { min-height: 174px; transition: transform .15s ease, box-shadow .15s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.05); }
.metric-top, .panel-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-weight: 720; }
.metric-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e2e4e5; color: #3e4245; }
.metric-value { font-size: clamp(1.75rem, 2.65vw, 2.35rem); line-height: 1.05; font-weight: 760; letter-spacing: -.055em; margin-top: 25px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.metric-value.currency-value { font-size: clamp(1.55rem, 2.3vw, 2.05rem); letter-spacing: -.06em; }
.metric-note { color: var(--eb-muted); font-size: .82rem; font-weight: 600; margin-top: auto; }
.chevron { color: #9ca0a3; }
.chart-wrap { height: 270px; position: relative; }
.product-row { border-bottom: 1px solid var(--eb-line); padding: 13px 0; }
.product-row:last-child { border: 0; }
.product-name { font-weight: 720; }
.product-meta { font-size: .78rem; color: var(--eb-muted); }
.product-amount { font-weight: 750; text-align: right; }
.category-bars { display: grid; gap: 16px; }
.category-bar-row { display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(160px, 2fr) minmax(90px, auto); gap: 16px; align-items: center; }
.category-bar-link { color: inherit; text-decoration: none; border-radius: 16px; padding: 10px 12px; margin: -10px -12px; transition: background .15s ease, box-shadow .15s ease, transform .15s ease; }
.category-bar-link:hover { color: inherit; background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.06); transform: translateX(2px); }
.category-bar-link:hover .product-meta span { color: var(--eb-blue); }
.category-bar-link.active { background: #e8f7fd; box-shadow: inset 0 0 0 1px #b9e8f8; }
.category-bar-track { height: 12px; border-radius: 999px; background: #dde1e3; overflow: hidden; }
.category-bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #079ad8, #09a95a); }
.product-table th { color: var(--eb-muted); font-size: .78rem; font-weight: 700; border-bottom-color: var(--eb-line); padding: 15px 20px; }
.product-table td { padding: 15px 20px; border-bottom-color: var(--eb-line); }
.numeric-cell { font-variant-numeric: tabular-nums; white-space: nowrap; }
.store-cell { min-width: 165px; }
.store-code { display: block; font-weight: 800; letter-spacing: .01em; }
.store-label { display: block; color: var(--eb-muted); font-size: .84rem; font-weight: 650; line-height: 1.2; margin-top: 2px; }
.sort-link { color: inherit; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.sort-link:hover { color: var(--eb-ink); text-decoration: underline; }
.sort-indicator { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; font-size: .72rem; line-height: 1; font-weight: 900; background: #dbe0e3; color: #4c5155; }
.sort-indicator.active { background: var(--eb-blue); color: #fff; }
.sort-indicator.inactive { opacity: .65; }
.sort-note { color: var(--eb-muted); font-size: .78rem; font-weight: 650; }
.status-grid small { display: block; color: var(--eb-muted); font-weight: 650; margin-bottom: 4px; }
.status-grid strong { font-size: .94rem; }
.drilldown-shell { position: fixed; inset: 0; z-index: 1050; }
.drilldown-backdrop { position: absolute; inset: 0; background: rgba(32,33,36,.32); backdrop-filter: blur(2px); }
.drilldown-drawer { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(1040px, calc(100vw - 260px)); min-width: 760px; background: #fff; border-radius: 24px; box-shadow: -18px 0 50px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden; animation: drawerIn .18s ease-out; }
.drilldown-header { padding: 24px 28px 18px; border-bottom: 1px solid var(--eb-line); display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; background: #fff; }
.context-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.context-chips span { border-radius: 999px; background: var(--eb-panel); color: var(--eb-muted); font-size: .72rem; font-weight: 750; padding: 5px 9px; }
.drilldown-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--eb-line); background: #fff; }
.drilldown-metrics > div { background: var(--eb-panel); border-radius: 16px; padding: 12px; }
.drilldown-metrics strong { display: block; font-size: .98rem; letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.drilldown-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 14px 18px; background: var(--eb-panel); border-bottom: 1px solid var(--eb-line); }
.drilldown-summary > div { background: #fff; border-radius: 14px; padding: 10px 12px; }
.summary-label { display: block; color: var(--eb-muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.drilldown-search { padding: 14px 18px; border-bottom: 1px solid var(--eb-line); background: #fff; }
.filter-note { color: var(--eb-muted); font-size: .78rem; font-weight: 650; }
.drilldown-table-wrap { overflow-y: auto; overflow-x: hidden; flex: 1 1 auto; }
.drilldown-table { width: 100%; table-layout: fixed; }
.drilldown-table thead th { position: sticky; top: 0; z-index: 2; background: #fff; box-shadow: inset 0 -1px 0 var(--eb-line); }
.drilldown-table th, .drilldown-table td { padding-left: 12px; padding-right: 12px; }
.drilldown-table td:first-child, .drilldown-table th:first-child { padding-left: 24px; width: 13%; }
.drilldown-table td:nth-child(2), .drilldown-table th:nth-child(2) { width: 30%; }
.drilldown-table td:nth-child(3), .drilldown-table th:nth-child(3) { width: 10%; }
.drilldown-table td:nth-child(4), .drilldown-table th:nth-child(4), .drilldown-table td:nth-child(5), .drilldown-table th:nth-child(5), .drilldown-table td:nth-child(6), .drilldown-table th:nth-child(6) { width: 13%; }
.drilldown-table td:nth-child(7), .drilldown-table th:nth-child(7) { width: 8%; padding-right: 18px; }
.drilldown-table tbody tr:hover, .product-table tbody tr.active-row { background: #eef8fc; }
.empty-state-title { color: var(--eb-ink); font-weight: 760; }
.drilldown-footer { padding: 14px 18px; border-top: 1px solid var(--eb-line); background: #fff; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
@keyframes drawerIn { from { transform: translateX(22px); opacity: .65; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 1399.98px) { .metric-value.currency-value { font-size: clamp(1.45rem, 2vw, 1.85rem); } }
@media (max-width: 767.98px) { .sidebar { width: 100%; height: auto; border-radius: 0; margin: 0; padding: 14px 16px; flex-direction: row; align-items: center; gap: 8px; overflow-x: auto; } .brand { padding: 0 8px 0 0; white-space: nowrap; } .side-label, .sidebar-footer, .side-link.coming { display: none; } .side-link { white-space: nowrap; padding: 8px 10px; } .app-shell { display: block; } .main-area { padding-top: 25px; } .topbar { margin-bottom: 28px; } .metric-value, .metric-value.currency-value { font-size: clamp(1.75rem, 9vw, 2.25rem); white-space: normal; } .category-bar-row { grid-template-columns: 1fr; gap: 8px; } .product-amount { text-align: left; } .product-table th, .product-table td { padding: 12px 10px; font-size: .82rem; } .product-table th { font-size: .68rem; } .store-summary-table th:first-child, .store-summary-table td:first-child { width: 42%; min-width: 120px; } .store-summary-table th:nth-child(2), .store-summary-table td:nth-child(2) { width: 40%; } .store-summary-table th:last-child, .store-summary-table td:last-child { width: 18%; } .store-cell { min-width: 120px; } .store-code { font-size: .82rem; } .store-label { font-size: .72rem; } .numeric-cell { font-size: .76rem; letter-spacing: -.015em; } }
