/* ── AUG TOP ENTERPRISE — Enterprise Design System ── */
:root {
    --blue-dark: #0A1F3F;
    --blue: #0C2D57;
    --blue-mid: #1A4B8C;
    --blue-light: #E8F0FA;
    --blue-border: #C5D5EA;
    /* Semantic aliases used across dashboards */
    --navy: #0A1F3F;
    --blue-soft: #E8F0FA;
    --white: #FFFFFF;
    --bg: #F5F7FA;
    --card: #FFFFFF;
    --text: #1E293B;
    --text-muted: #64748B;
    --green: #16A34A;
    --green-bg: #ECFDF5;
    --red: #DC2626;
    --red-bg: #FEF2F2;
    --orange: #D97706;
    --orange-bg: #FFF7ED;
    --shadow: 0 1px 3px rgba(10,31,63,0.08);
    --shadow-sm: 0 1px 2px rgba(10,31,63,0.06);
    --shadow-md: 0 4px 12px rgba(10,31,63,0.10);
    --radius: 8px;
    --radius-sm: 6px;
    --sidebar-w: 248px;
    --topbar-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg); color: var(--text); line-height: 1.5;
    min-height: 100vh; -webkit-font-smoothing: antialiased;
}

/* Inline SVG icons */
.ic { display: inline-block; flex-shrink: 0; vertical-align: middle; }

/* ── Auth Layout ── */
.auth-container { display: flex; min-height: 100vh; position: relative; }
.auth-container::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: url('/static/img/login-bg.jpg') center/cover no-repeat;
    opacity: 0.16;
}
.auth-left {
    flex: 1.15; background: linear-gradient(160deg, rgba(10,31,63,0.90) 0%, rgba(12,45,87,0.90) 60%, rgba(26,75,140,0.90) 100%);
    display: flex; align-items: center; justify-content: center; padding: 64px;
    color: white; position: relative; overflow: hidden;
}
.auth-left::before {
    content: ''; position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><g opacity="0.06" fill="white"><circle cx="180" cy="140" r="90"/><circle cx="960" cy="280" r="140"/><circle cx="600" cy="620" r="180"/><circle cx="280" cy="720" r="70"/></g></svg>') center/cover;
}
.auth-left-content { position: relative; z-index: 1; max-width: 460px; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-brand .brand-mark {
    width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.14);
    display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.2);
}
.auth-brand .brand-name { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.3px; line-height: 1.1; }
.auth-brand .brand-sub { font-size: 0.72rem; letter-spacing: 2px; opacity: 0.65; text-transform: uppercase; }
.auth-left-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.5px; line-height: 1.2; }
.auth-left-content .tagline { font-size: 1.05rem; opacity: 0.82; margin-bottom: 30px; line-height: 1.6; }
.auth-left-features { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.auth-left-features li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.auth-left-features li .icon {
    width: 34px; height: 34px; background: rgba(255,255,255,0.14); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: white;
    border: 1px solid rgba(255,255,255,0.18);
}
.auth-left-features li .f-title { font-weight: 600; display: block; }
.auth-left-features li .f-desc { font-size: 0.84rem; opacity: 0.75; }

.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.88); padding: 48px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .logo { font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 6px; letter-spacing: -0.3px; }
.auth-card .subtitle { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 30px; }
.auth-card label { display: block; font-size: 0.84rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-card select {
    width: 100%; padding: 12px 14px; border: 1.5px solid var(--blue-border); border-radius: var(--radius-sm);
    font-size: 0.95rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; background: var(--white); color: var(--text);
}
.auth-card input:focus, .auth-card select:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(26,75,140,0.12); }
.auth-card .btn { width: 100%; padding: 13px; border: none; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.auth-card .btn-primary { background: var(--blue); color: white; }
.auth-card .btn-primary:hover { background: var(--blue-dark); }
.auth-card .error { background: var(--red-bg); color: var(--red); padding: 12px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; margin-bottom: 16px; border: 1px solid #FECACA; }
.auth-card .form-group { margin-bottom: 18px; }
.auth-links { text-align: center; margin-top: 20px; font-size: 0.85rem; }
.auth-links a { color: var(--blue-mid); text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

/* ── App Layout ── */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-w); background: var(--blue-dark); color: white;
    position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto;
    display: flex; flex-direction: column; z-index: 100; padding-bottom: 16px;
}
.sidebar-header { padding: 20px 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
/* ── Outlet accent (per-outlet colour) ── */
.outlet-accent {
    width: calc(100% - 32px); margin: 0 16px 14px; padding: 9px 12px;
    border-radius: 8px; background: rgba(255,255,255,0.08);
    display: flex; align-items: center; gap: 9px; font-size: 0.78rem; font-weight: 600;
}
.outlet-accent .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }
.outlet-accent .oa-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-outlet {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
    border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.topbar-outlet .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.9); }
.sidebar-brand { display: flex; align-items: center; gap: 10px; }
.sidebar-brand .brand-mark {
    width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
}
.sidebar-brand .company { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.2px; line-height: 1.15; }
.sidebar-brand .system { font-size: 0.68rem; opacity: 0.55; letter-spacing: 1.5px; text-transform: uppercase; }
.sidebar-nav { flex: 1; padding: 14px 0; }
.sidebar-section { padding: 14px 20px 6px; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 1.2px; opacity: 0.45; font-weight: 600; }
.sidebar-link {
    display: flex; align-items: center; gap: 11px; padding: 9px 20px; color: rgba(255,255,255,0.72);
    text-decoration: none; font-size: 0.88rem; transition: all 0.15s; margin: 1px 10px; border-radius: 6px;
    position: relative; font-weight: 500;
}
.sidebar-link:hover { background: rgba(255,255,255,0.08); color: white; }
.sidebar-link.active { background: rgba(255,255,255,0.12); color: white; }
.sidebar-link.active::before {
    content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px;
    background: var(--blue-mid); border-radius: 0 3px 3px 0;
}
.sidebar-link .sicon { display: flex; align-items: center; justify-content: center; width: 20px; opacity: 0.9; }
.sidebar-footer { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; }
.sidebar-footer .user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sidebar-footer .avatar {
    width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.14);
    display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.78rem;
    overflow: hidden; color: white;
}
.sidebar-footer .user-meta { flex: 1; min-width: 0; }
.sidebar-footer .user-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-footer .user-role { opacity: 0.55; font-size: 0.7rem; text-transform: capitalize; }
.sidebar-footer .logout-row { display: flex; gap: 12px; margin-top: 8px; align-items: center; }
.sidebar-footer .logout { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.76rem; display: inline-flex; align-items: center; gap: 5px; }
.sidebar-footer .logout:hover { color: white; }
.sidebar-footer .settings-link { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.76rem; display: inline-flex; align-items: center; gap: 5px; }
.sidebar-footer .settings-link:hover { color: white; }

.main-content { margin-left: var(--sidebar-w); flex: 1; padding: 0; min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.main-content::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: url('/static/img/app-bg.jpg') center/cover no-repeat;
    opacity: 0.14;
}
.main-content > * { position: relative; z-index: 1; }
.topbar {
    background: var(--white); border-bottom: 1px solid var(--blue-border);
    padding: 0 28px; height: var(--topbar-h); display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 50; gap: 16px;
}
.topbar .page-title { font-size: 1.15rem; font-weight: 600; color: var(--blue-dark); letter-spacing: -0.2px; }
.topbar .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-search { position: relative; }
.topbar-search input {
    padding: 8px 12px 8px 34px; border: 1px solid var(--blue-border); border-radius: 6px;
    font-size: 0.85rem; width: 200px; outline: none; transition: 0.15s; background: var(--bg);
}
.topbar-search input:focus { border-color: var(--blue-mid); background: white; box-shadow: 0 0 0 3px rgba(26,75,140,0.1); }
.topbar-search .search-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.user-pill {
    display: flex; align-items: center; gap: 10px; font-size: 0.83rem;
    color: var(--text); background: var(--bg); padding: 5px 12px 5px 6px; border-radius: 20px; border: 1px solid var(--blue-border);
}
.user-pill .avatar {
    width: 28px; height: 28px; border-radius: 50%; background: var(--blue-mid); color: white;
    display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.75rem; overflow: hidden;
}
.user-pill .up-name { font-weight: 600; }
.user-pill .up-role { color: var(--text-muted); font-size: 0.72rem; }
.content { padding: 26px 28px; flex: 1; }

/* ── Page header actions ── */
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.page-head .ph-desc { color: var(--text-muted); font-size: 0.88rem; margin-top: 2px; }

/* ── KPI Cards ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi-card {
    background: var(--card); border-radius: var(--radius); padding: 18px 20px;
    box-shadow: var(--shadow-sm); border: 1px solid var(--blue-border); position: relative; overflow: hidden;
}
.kpi-card .kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.kpi-card .kpi-icon {
    width: 34px; height: 34px; border-radius: 8px; background: var(--blue-light); color: var(--blue-mid);
    display: flex; align-items: center; justify-content: center;
}
.kpi-card.accent .kpi-icon { background: var(--orange-bg); color: var(--orange); }
.kpi-card.green .kpi-icon { background: var(--green-bg); color: var(--green); }
.kpi-card.red .kpi-icon { background: var(--red-bg); color: var(--red); }
.kpi-card .kpi-label { font-size: 0.76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.kpi-card .kpi-value { font-size: 1.65rem; font-weight: 700; color: var(--blue-dark); letter-spacing: -0.5px; }
.kpi-card .kpi-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ── Cards & Panels ── */
.card {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    border: 1px solid var(--blue-border); margin-bottom: 20px; overflow: hidden;
}
.card-header {
    padding: 15px 20px; border-bottom: 1px solid var(--blue-border); font-weight: 600; font-size: 0.92rem;
    color: var(--blue-dark); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-header .ch-left { display: flex; align-items: center; gap: 8px; }
.card-header .ch-left .ic { color: var(--blue-mid); }
.card-body { padding: 20px; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; }
.data-table th {
    background: var(--blue-light); color: var(--blue-dark); font-weight: 600; padding: 11px 14px; text-align: left;
    font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.4px; white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid #E2E8F0; vertical-align: middle; }
.data-table tbody tr { transition: background 0.12s; }
.data-table tbody tr:hover { background: #F8FAFC; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .mono { font-family: 'SF Mono', 'Roboto Mono', monospace; font-size: 0.78rem; }

/* ── Badges ── */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px;
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap;
}
.badge-success { background: var(--green-bg); color: #15803D; }
.badge-warning { background: var(--orange-bg); color: #B45309; }
.badge-danger { background: var(--red-bg); color: #B91C1C; }
.badge-info { background: var(--blue-light); color: var(--blue-mid); }
.badge-muted { background: #F1F5F9; color: var(--text-muted); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-group .hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 3px; }
.form-input, .form-select {
    width: 100%; padding: 10px 13px; border: 1.5px solid var(--blue-border);
    border-radius: var(--radius-sm); font-size: 0.9rem; outline: none; transition: 0.15s; background: white; color: var(--text);
}
.form-input:focus, .form-select:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(26,75,140,0.1); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
select.form-select, select.form-input { appearance: none; background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2364748B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m6 9 6 6 6-6"/></svg>'); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: var(--radius-sm);
    font-size: 0.87rem; font-weight: 600; border: 1.5px solid transparent; cursor: pointer; transition: all 0.15s; text-decoration: none;
    line-height: 1.2; white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: white; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); }
.btn-outline { background: white; color: var(--blue); border-color: var(--blue-border); }
.btn-outline:hover:not(:disabled) { background: var(--blue-light); border-color: var(--blue-mid); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover:not(:disabled) { background: #B91C1C; }
.btn-success { background: var(--green); color: white; }
.btn-success:hover:not(:disabled) { background: #15803D; }
.btn-warning { background: var(--orange); color: white; }
.btn-warning:hover:not(:disabled) { background: #B45309; }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--bg); color: var(--text); }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 14px 26px; font-size: 1rem; }

/* ── Sales Interface ── */
.sales-layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.scan-area {
    background: white; border: 2px dashed var(--blue-border); border-radius: var(--radius);
    padding: 32px 28px; text-align: center; transition: border-color 0.15s; position: relative;
}
.scan-area.active { border-color: var(--blue-mid); border-style: solid; background: #FBFCFF; }
.scan-area .scan-icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--blue-mid); }
.scan-area .scan-text { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 18px; }
.scan-area input[type="text"] {
    width: 100%; max-width: 420px; padding: 14px 18px; border: 1.5px solid var(--blue-border);
    border-radius: var(--radius); font-size: 1.05rem; text-align: center; outline: none; transition: 0.15s;
}
.scan-area input[type="text"]:focus { border-color: var(--blue-mid); box-shadow: 0 0 0 3px rgba(26,75,140,0.1); }
.scan-result { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.scan-result.found { background: var(--green-bg); color: #15803D; border: 1px solid #BBF7D0; }
.scan-result.not-found { background: var(--red-bg); color: #B91C1C; border: 1px solid #FECACA; }

.cart-panel { }
.cart-items { flex: 1; overflow-y: auto; max-height: 360px; }
.cart-item {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 11px 0; border-bottom: 1px solid #E2E8F0; font-size: 0.87rem; gap: 10px;
}
.cart-item:last-child { border-bottom: none; }
.cart-item .item-name { font-weight: 600; }
.cart-item .item-qty { color: var(--text-muted); font-size: 0.8rem; }
.cart-item .item-total { font-weight: 600; }
.cart-item .item-remove { color: var(--red); cursor: pointer; font-size: 0.78rem; background: none; border: none; font-weight: 500; display: inline-flex; align-items: center; gap: 3px; }
.cart-item .item-remove:hover { text-decoration: underline; }
.cart-summary { border-top: 2px solid var(--blue); padding-top: 14px; margin-top: auto; }
.cart-summary .summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cart-summary .total { font-size: 1.45rem; font-weight: 700; color: var(--blue-dark); letter-spacing: -0.5px; }
.payment-options { display: flex; gap: 8px; margin: 12px 0; }
.payment-option {
    flex: 1; padding: 10px; border: 1.5px solid var(--blue-border); border-radius: 6px; text-align: center;
    cursor: pointer; font-size: 0.82rem; font-weight: 600; transition: 0.15s;
}
.payment-option:hover { border-color: var(--blue-mid); }
.payment-option.selected { background: var(--blue); color: white; border-color: var(--blue); }

/* ── Stock Taking ── */
.stock-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: center; }
.stock-compare .col { background: var(--bg); border-radius: var(--radius); padding: 16px; border: 1px solid var(--blue-border); }
.stock-compare .col .label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stock-compare .col .value { font-size: 1.4rem; font-weight: 700; }
.stock-compare .col.variance .value { color: var(--red); }
.stock-compare .col.variance.match .value { color: var(--green); }

/* ── Dashboard Charts ── */
.chart-bar { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.chart-bar .bar { flex: 1; background: var(--blue-mid); border-radius: 4px 4px 0 0; min-height: 4px; transition: height 0.3s; position: relative; }
.chart-bar .bar.profit-bar { background: var(--green); }
.chart-bar .bar.profit-bar:hover { background: #0e8a3e; }
.chart-bar .bar:hover { background: var(--blue); }
.chart-bar .bar .bar-label { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 0.65rem; color: var(--text-muted); white-space: nowrap; }

/* ── Modal ── */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(10,31,63,0.5); z-index: 200;
    align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px);
}
.modal-overlay.show { display: flex; }
.modal {
    background: white; border-radius: var(--radius); width: 90%; max-width: 560px; max-height: 88vh; overflow-y: auto;
    box-shadow: var(--shadow-md); animation: modalIn 0.16s ease;
}
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--blue-border); font-weight: 600; display: flex; justify-content: space-between; align-items: center; color: var(--blue-dark); position: sticky; top: 0; background: white; z-index: 1; }
.modal-body { padding: 20px; }
.modal-close {
    background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted);
    width: 30px; height: 30px; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: 0.15s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Toast ── */
.toast {
    position: fixed; top: 20px; right: 20px; padding: 13px 20px; border-radius: var(--radius); color: white;
    font-weight: 600; font-size: 0.88rem; z-index: 300; animation: slideIn 0.25s ease; box-shadow: var(--shadow-md);
    display: flex; align-items: center; gap: 8px;
}
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .empty-icon { display: flex; justify-content: center; margin-bottom: 12px; color: var(--blue-border); }
.empty-state .empty-title { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.empty-state .empty-desc { font-size: 0.85rem; margin-top: 4px; }

/* ── Segmented control ── */
.segmented { display: inline-flex; background: var(--bg); border: 1px solid var(--blue-border); border-radius: 6px; padding: 3px; gap: 3px; }
.segmented button { border: none; background: transparent; padding: 7px 16px; border-radius: 4px; font-size: 0.84rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.15s; }
.segmented button.active { background: white; color: var(--blue); box-shadow: var(--shadow-sm); }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .sidebar { width: 210px; }
    .main-content { margin-left: 210px; }
    .sales-layout { grid-template-columns: 1fr; }
    .cart-panel { position: static; }
}
.hidden { display: none !important; }
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; }
    .auth-left { display: none; }
    .auth-right { width: 100%; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .content { padding: 18px 14px; }
    .topbar { padding: 0 16px; }
    .stock-compare { grid-template-columns: 1fr; }
    .topbar-search input { width: 140px; }
}
