:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --navy-950: #0b1724;
    --navy-900: #102235;
    --navy-800: #183149;
    --ink-950: #101828;
    --ink-800: #26364a;
    --ink-600: #53647a;
    --ink-500: #718096;
    --line: #dfe6ee;
    --line-soft: #edf1f5;
    --canvas: #f5f7fa;
    --surface: #ffffff;
    --teal-700: #08766f;
    --teal-600: #0b8c83;
    --teal-100: #dff5f1;
    --green-700: #18864b;
    --green-100: #e3f6e9;
    --orange-700: #c75a13;
    --orange-100: #fff0df;
    --amber-700: #a86705;
    --amber-100: #fff5d8;
    --blue-700: #2563a7;
    --blue-100: #e4f0ff;
    --violet-700: #6d4ac7;
    --violet-100: #eee8ff;
    --red-700: #bd2d38;
    --red-100: #fde7e9;
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
    --shadow-sm: 0 5px 16px rgba(16, 24, 40, .07);
    --shadow-md: 0 14px 34px rgba(16, 24, 40, .10);
    --sidebar-width: 246px;
    --topbar-height: 68px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { min-height: 100vh; margin: 0; color: var(--ink-950); background: var(--canvas); }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, a, input, select, textarea { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(11, 140, 131, .18);
}
a { color: inherit; text-decoration: none; }
svg.icon { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
svg.icon-small { width: 15px; height: 15px; }
.muted { color: var(--ink-500); }
.text-danger { color: var(--red-700); }
.text-success { color: var(--green-700); }
.hide { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    color: #dbe7f2;
    background: var(--navy-950);
    border-right: 1px solid rgba(255, 255, 255, .06);
}
.brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 22px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--teal-600);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(11, 140, 131, .28);
}
.brand-mark .icon { width: 23px; height: 23px; stroke-width: 1.7; }
.brand-mark img { width: 100%; height: 100%; padding: 3px; object-fit: contain; border-radius: 7px; background: #fff; }
.brand-copy { display: grid; gap: 1px; min-width: 0; }
.brand-copy strong { max-width: 150px; overflow: hidden; font-size: 18px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.brand-copy small { color: #91a3b6; font-size: 11px; }
.sidebar-nav { flex: 1; padding: 24px 12px; overflow-y: auto; }
.nav-section-label {
    display: block;
    margin: 0 10px 10px;
    color: #74879b;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.nav-item {
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    margin-bottom: 4px;
    border-radius: 7px;
    color: #bfccda;
    font-size: 13px;
    font-weight: 560;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); transform: translateX(2px); }
.nav-item.is-active { color: #fff; background: #126b6c; box-shadow: inset 3px 0 0 #38c4b2; }
.nav-item.is-active .icon { color: #7ce2d4; }
.sidebar-footer { padding: 16px 18px 20px; border-top: 1px solid rgba(255, 255, 255, .08); }
.branch-compact { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.branch-compact > .icon { color: #68d3c5; }
.branch-compact span { display: grid; gap: 2px; min-width: 0; }
.branch-compact small, .version { color: #74879b; font-size: 10px; }
.branch-compact strong { color: #e8f0f7; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-scrim { display: none; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 28px;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.mobile-menu { display: none !important; }
.global-search {
    width: min(510px, 44vw);
    height: 39px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 11px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink-500);
}
.global-search:focus-within { background: #fff; border-color: #8ccbc5; box-shadow: 0 0 0 3px rgba(11, 140, 131, .10); }
.global-search input { width: 100%; border: 0; background: transparent; color: var(--ink-950); font-size: 13px; }
.global-search input::placeholder { color: #8795a7; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 15px; }
.live-clock { min-width: 62px; color: var(--ink-600); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }
.branch-switcher {
    height: 38px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink-800);
    font-size: 12px;
    font-weight: 600;
}
.user-menu { display: flex; align-items: center; gap: 9px; padding-left: 4px; }
.avatar {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--ink-800);
    font-size: 11px;
    font-weight: 750;
}
.user-copy { display: grid; gap: 1px; min-width: 110px; }
.user-copy strong { font-size: 12px; }
.user-copy small { color: var(--ink-500); font-size: 10px; }
.icon-button {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    color: var(--ink-600);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
    transition: .18s ease;
}
.icon-button:hover { color: var(--teal-700); border-color: #a8d4d0; background: #f4fbfa; }
.icon-button.ghost { border-color: transparent; background: transparent; }

.page { max-width: 1500px; margin: 0 auto; padding: 26px 28px 44px; }
.page-heading { min-height: 55px; display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; }
.eyebrow { display: block; margin-bottom: 4px; color: var(--teal-700); font-size: 11px; font-weight: 750; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 25px; line-height: 1.2; font-weight: 730; }
h2 { margin-bottom: 0; font-size: 16px; line-height: 1.35; }
h3 { margin-bottom: 0; font-size: 14px; line-height: 1.35; }
p { line-height: 1.55; }
.page-heading-actions, .action-row, .inline-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-xs); }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #fff; background: var(--teal-700); border-color: var(--teal-700); }
.button-primary:hover { background: #06665f; }
.button-secondary { color: var(--ink-800); background: #fff; border-color: var(--line); }
.button-secondary:hover { color: var(--teal-700); border-color: #9bcfca; }
.button-soft { color: var(--teal-700); background: var(--teal-100); border-color: transparent; }
.button-danger { color: var(--red-700); background: var(--red-100); border-color: transparent; }
.button-small { min-height: 32px; padding: 0 10px; }
.button-block { width: 100%; }

.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-xs); }
.surface-header {
    min-height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
}
.surface-title { display: flex; align-items: center; gap: 9px; }
.surface-title > .icon { color: var(--teal-700); }
.surface-body { padding: 16px; }
.surface-footer { padding: 12px 16px; border-top: 1px solid var(--line-soft); }
.content-grid { display: grid; gap: 16px; }
.content-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-grid.sidebar-main { grid-template-columns: minmax(250px, .72fr) minmax(0, 2.28fr); align-items: start; }
.content-grid.main-aside { grid-template-columns: minmax(0, 2fr) minmax(290px, .8fr); align-items: start; }
.stack { display: grid; gap: 16px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi-card {
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-xs);
}
.kpi-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 8px;
}
.kpi-icon.teal { color: var(--teal-700); background: var(--teal-100); }
.kpi-icon.blue { color: var(--blue-700); background: var(--blue-100); }
.kpi-icon.green { color: var(--green-700); background: var(--green-100); }
.kpi-icon.orange { color: var(--orange-700); background: var(--orange-100); }
.kpi-icon.violet { color: var(--violet-700); background: var(--violet-100); }
.kpi-icon.red { color: var(--red-700); background: var(--red-100); }
.kpi-icon .icon { width: 22px; height: 22px; }
.kpi-copy { display: grid; gap: 3px; min-width: 0; }
.kpi-value { color: var(--ink-950); font-size: 23px; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi-label { color: var(--ink-600); font-size: 12px; font-weight: 650; }
.kpi-note { color: var(--ink-500); font-size: 10px; }

.status-pill {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.success { color: var(--green-700); background: var(--green-100); }
.status-pill.info { color: var(--blue-700); background: var(--blue-100); }
.status-pill.warning { color: var(--amber-700); background: var(--amber-100); }
.status-pill.accent { color: var(--violet-700); background: var(--violet-100); }
.status-pill.danger { color: var(--red-700); background: var(--red-100); }
.status-pill.neutral { color: var(--ink-600); background: var(--line-soft); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.one { grid-template-columns: 1fr; }
.form-field { display: grid; gap: 6px; color: var(--ink-800); font-size: 11px; font-weight: 700; }
.form-field.span-2 { grid-column: span 2; }
.input, .select, .textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    color: var(--ink-950);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 450;
    transition: border .16s ease, box-shadow .16s ease;
}
.textarea { min-height: 82px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: #80c4be; box-shadow: 0 0 0 3px rgba(11, 140, 131, .10); }
.input::placeholder, .textarea::placeholder { color: #9aa7b6; }
.field-hint { color: var(--ink-500); font-size: 10px; font-weight: 450; }

.segmented { display: flex; gap: 3px; padding: 3px; background: #edf1f5; border-radius: 7px; overflow-x: auto; }
.segment {
    min-height: 31px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 0;
    border-radius: 5px;
    color: var(--ink-600);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.segment.is-active { color: var(--teal-700); background: #fff; box-shadow: var(--shadow-xs); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-search { position: relative; min-width: 230px; }
.toolbar-search .icon { position: absolute; top: 10px; left: 11px; color: var(--ink-500); width: 16px; height: 16px; }
.toolbar-search .input { padding-left: 35px; min-height: 36px; }

.empty-state { min-height: 180px; display: grid; place-items: center; padding: 32px; text-align: center; }
.empty-state > div { max-width: 360px; }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 12px; color: var(--teal-700); background: var(--teal-100); border-radius: 8px; }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { margin-bottom: 14px; color: var(--ink-500); font-size: 12px; }

.data-list { display: grid; }
.data-row {
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) repeat(3, minmax(100px, .75fr)) auto;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line-soft);
    transition: background .15s ease;
}
.data-row:last-child { border-bottom: 0; }
.data-row:hover { background: #fafcfd; }
.row-main { display: flex; align-items: center; gap: 11px; min-width: 0; }
.row-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 7px; color: var(--teal-700); background: var(--teal-100); }
.row-copy { display: grid; gap: 2px; min-width: 0; }
.row-copy strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-copy small, .data-label { color: var(--ink-500); font-size: 10px; }
.data-value { color: var(--ink-800); font-size: 12px; font-weight: 650; }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-action {
    min-height: 94px;
    display: grid;
    align-content: space-between;
    gap: 10px;
    padding: 13px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.quick-action:hover { transform: translateY(-2px); border-color: #add5d1; box-shadow: var(--shadow-sm); }
.quick-action .icon { color: var(--teal-700); }
.quick-action strong { display: block; margin-bottom: 2px; font-size: 12px; }
.quick-action small { color: var(--ink-500); font-size: 10px; }

.modal {
    width: min(520px, calc(100vw - 28px));
    padding: 0;
    color: var(--ink-950);
    background: #fff;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}
.modal::backdrop { background: rgba(7, 18, 30, .58); backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line-soft); }
.modal-body { padding: 18px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid var(--line-soft); }
.modal form { margin: 0; }

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 14px;
    border-radius: 7px;
    font-size: 12px;
}
.toast.error { color: var(--red-700); background: var(--red-100); border: 1px solid #f8c8cd; }

/* Dashboard */
.operation-strip { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr); gap: 16px; align-items: start; }
.order-stream { display: grid; }
.order-stream-item {
    min-height: 76px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto auto;
    gap: 13px;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line-soft);
}
.order-stream-item:last-child { border-bottom: 0; }
.table-badge { width: 48px; height: 48px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 8px; font-size: 13px; font-weight: 800; }
.stream-copy { min-width: 0; }
.stream-copy strong { display: block; margin-bottom: 4px; font-size: 13px; }
.stream-meta { display: flex; gap: 10px; color: var(--ink-500); font-size: 10px; }
.stream-total { min-width: 78px; text-align: right; font-size: 13px; font-weight: 750; }
.cash-overview { padding: 18px; }
.cash-state { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.cash-state-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--green-700); background: var(--green-100); border-radius: 8px; }
.cash-state strong, .cash-state small { display: block; }
.cash-state small { margin-top: 2px; color: var(--ink-500); font-size: 10px; }
.money-highlight { margin-bottom: 18px; }
.money-highlight span { color: var(--ink-500); font-size: 11px; }
.money-highlight strong { display: block; margin-top: 4px; font-size: 28px; }

/* Floor */
.floor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.floor-canvas {
    position: relative;
    min-height: 510px;
    padding: 28px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background-color: #eef2f0;
    background-image:
        linear-gradient(rgba(28, 66, 63, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 66, 63, .035) 1px, transparent 1px);
    background-size: 34px 34px;
    border: 1px solid #d8e1df;
    border-radius: 8px;
}
.floor-canvas::before, .floor-canvas::after { content: ""; position: absolute; pointer-events: none; }
.floor-canvas::before { inset: 12px; border: 6px solid rgba(32, 54, 58, .18); border-radius: 6px; }
.floor-canvas::after { width: 76px; height: 18px; right: 25%; bottom: 6px; background: #eef2f0; border-left: 2px solid rgba(32, 54, 58, .24); border-right: 2px solid rgba(32, 54, 58, .24); }
.floor-tables { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)); gap: 32px 38px; align-items: center; }
.floor-table {
    position: relative;
    min-height: 108px;
    display: grid;
    place-items: center;
    padding: 18px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(28, 44, 45, .10);
    text-align: center;
    transition: transform .16s ease, box-shadow .16s ease;
}
.floor-table:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(28, 44, 45, .15); }
.floor-table::before, .floor-table::after {
    content: "";
    position: absolute;
    left: 20%;
    right: 20%;
    height: 8px;
    border-radius: 4px;
    background: currentColor;
    opacity: .58;
}
.floor-table::before { top: -13px; }
.floor-table::after { bottom: -13px; }
.floor-table.success { color: var(--green-700); border-color: #8ed1a5; background: #f8fffa; }
.floor-table.info { color: var(--orange-700); border-color: #f2ae7f; background: #fffaf6; }
.floor-table.warning { color: var(--amber-700); border-color: #e7c76e; background: #fffdf6; }
.floor-table.accent { color: var(--violet-700); border-color: #b9a4ee; background: #fbf9ff; }
.floor-table.neutral { color: var(--ink-500); background: #f5f6f7; }
.floor-table strong { display: block; font-size: 16px; }
.floor-table small { display: block; margin-top: 4px; color: var(--ink-600); font-size: 10px; }
.floor-table-meta { margin-top: 8px; color: currentColor; font-size: 10px; font-weight: 700; }
.floor-table form { margin: 8px 0 0; }
.floor-table .table-open { color: currentColor; font-size: 10px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-600); font-size: 10px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.success { background: var(--green-700); }
.legend-dot.info { background: var(--orange-700); }
.legend-dot.warning { background: var(--amber-700); }
.legend-dot.accent { background: var(--violet-700); }
.legend-dot.neutral { background: var(--ink-500); }
.floor-side-list { display: grid; gap: 8px; padding: 12px; }
.mini-table {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
}
.mini-table:hover { border-color: #b8d6d3; background: #fbfdfd; }
.mini-table .table-badge { width: 38px; height: 38px; font-size: 11px; }
.mini-table-copy { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mini-table-copy strong { font-size: 11px; }
.mini-table-copy small { color: var(--ink-500); font-size: 9px; }

/* Orders */
.order-card-grid { display: grid; grid-template-columns: repeat(3, minmax(230px, 1fr)); gap: 14px; }
.order-card { display: grid; min-height: 190px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-xs); }
.order-card:hover { border-color: #a7d1cd; box-shadow: var(--shadow-sm); }
.order-card-head { display: flex; justify-content: space-between; gap: 10px; }
.order-card-table { display: flex; align-items: center; gap: 10px; }
.order-card-table .table-badge { width: 42px; height: 42px; }
.order-card-table strong { display: block; font-size: 13px; }
.order-card-table small { color: var(--ink-500); font-size: 10px; }
.order-card-body { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; align-self: center; padding: 15px 0; }
.order-card-stat span { display: block; color: var(--ink-500); font-size: 9px; }
.order-card-stat strong { display: block; margin-top: 3px; font-size: 12px; }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; align-self: end; padding-top: 11px; border-top: 1px solid var(--line-soft); }
.order-total { font-size: 16px; font-weight: 780; }

.pos-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .75fr); gap: 16px; align-items: start; }
.product-browser { min-height: 560px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 10px; }
.product-choice {
    position: relative;
    min-height: 124px;
    display: grid;
    align-content: space-between;
    gap: 10px;
    padding: 13px;
    color: var(--ink-950);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: .16s ease;
}
.product-choice:hover { transform: translateY(-2px); border-color: #85c8c2; box-shadow: var(--shadow-sm); }
.product-choice-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 7px; }
.product-choice strong { display: block; font-size: 12px; }
.product-choice small { color: var(--ink-500); font-size: 9px; }
.product-choice-price { color: var(--teal-700); font-size: 14px; font-weight: 800; }
.ticket-panel { position: sticky; top: calc(var(--topbar-height) + 16px); }
.ticket-summary { display: grid; gap: 8px; padding: 14px 16px; background: #f8fafc; border-top: 1px solid var(--line-soft); }
.summary-line { display: flex; justify-content: space-between; gap: 10px; color: var(--ink-600); font-size: 11px; }
.summary-line.total { padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink-950); font-size: 16px; font-weight: 800; }
.ticket-items { max-height: 390px; overflow-y: auto; }
.ticket-item { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); }
.ticket-item.is-void { opacity: .55; }
.ticket-item-head { display: flex; justify-content: space-between; gap: 10px; }
.ticket-item-head strong { font-size: 12px; }
.ticket-item-head span { font-size: 12px; font-weight: 750; white-space: nowrap; }
.ticket-item-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; color: var(--ink-500); font-size: 9px; }
.ticket-item-actions { margin-top: 10px; display: flex; gap: 6px; }
.ticket-item-actions form { display: contents; }
.compact-input { width: 62px; min-height: 31px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; }
.order-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; padding: 12px 16px 16px; }
.order-action-grid form { display: contents; }

/* Kitchen */
.kitchen-board { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.kitchen-column { min-height: 440px; background: #eef2f5; border: 1px solid var(--line); border-radius: 8px; }
.kitchen-column-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; }
.column-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 750; }
.column-count { min-width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--ink-600); font-size: 10px; font-weight: 750; }
.kitchen-cards { display: grid; gap: 9px; padding: 0 9px 9px; }
.kitchen-ticket { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow-xs); }
.kitchen-ticket.is-late { border-left: 3px solid var(--red-700); }
.kitchen-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kitchen-ticket-head strong { font-size: 14px; }
.station-label { display: block; margin-top: 2px; color: var(--teal-700); font-size: 9px; font-weight: 750; }
.ticket-age { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-500); font-size: 9px; }
.ticket-product { display: flex; gap: 10px; margin-bottom: 12px; }
.quantity-chip { min-width: 32px; height: 32px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 6px; font-weight: 800; font-size: 11px; }
.ticket-product strong { display: block; font-size: 12px; }
.ticket-note { margin-top: 3px; color: var(--orange-700); font-size: 10px; }
.kitchen-ticket form { margin: 0; }

/* Cash */
.cash-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 16px; align-items: start; }
.payment-orders { display: grid; gap: 9px; }
.payment-order {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
}
.payment-order:hover, .payment-order:has(input:checked) { border-color: #82c6bf; background: #f5fbfa; }
.payment-order input { accent-color: var(--teal-700); }
.payment-order strong { display: block; font-size: 12px; }
.payment-order small { color: var(--ink-500); font-size: 10px; }
.payment-order-total { font-weight: 800; }
.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.payment-method { position: relative; display: grid; gap: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; }
.payment-method .icon { color: var(--teal-700); }
.payment-method span { font-size: 10px; font-weight: 700; }
.payment-method input { width: 100%; min-height: 34px; border: 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.cash-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.cash-summary-item { padding: 11px; background: #f8fafc; border-radius: 7px; }
.cash-summary-item span { display: block; color: var(--ink-500); font-size: 9px; }
.cash-summary-item strong { display: block; margin-top: 4px; font-size: 13px; }

/* Catalog and reports */
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px; }
.catalog-card { min-height: 155px; display: grid; align-content: space-between; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.catalog-card:hover { border-color: #a4d2cd; box-shadow: var(--shadow-sm); }
.catalog-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.catalog-card-icon { width: 39px; height: 39px; display: grid; place-items: center; color: var(--orange-700); background: var(--orange-100); border-radius: 7px; }
.catalog-card h3 { margin-bottom: 3px; }
.catalog-card p { margin: 0; color: var(--ink-500); font-size: 10px; }
.catalog-price { font-size: 17px; font-weight: 800; }
.modal-wide { width: min(820px, calc(100vw - 28px)); }
.check-field { display: flex; align-items: center; gap: 9px; min-height: 42px; color: var(--ink-700); font-size: 11px; font-weight: 650; cursor: pointer; }
.check-field input { width: 16px; height: 16px; accent-color: var(--teal-700); }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-height: 52vh; overflow-y: auto; }
.permission-group { padding: 12px; border: 1px solid var(--line-soft); border-radius: 7px; background: #f9fbfc; }
.permission-group h3 { margin-bottom: 8px; color: var(--ink-700); font-size: 11px; text-transform: capitalize; }
.permission-group .check-field { min-height: 32px; font-size: 10px; }
.profile-hero { display: flex; align-items: center; gap: 18px; }
.profile-avatar { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; color: #fff; background: var(--teal-700); border-radius: 8px; font-size: 24px; font-weight: 800; }
.profile-details { display: grid; grid-template-columns: repeat(3, minmax(110px, 1fr)); gap: 12px; margin-top: 14px; }
.profile-details > span { padding: 10px; background: #f7fafb; border-radius: 6px; }
.profile-details small, .profile-details strong { display: block; }
.profile-details small { margin-bottom: 3px; color: var(--ink-500); font-size: 9px; }
.profile-details strong { font-size: 11px; }
.document-preview { width: min(760px, 100%); margin: 0 auto; padding: 28px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.document-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.document-brand-logo { width: 42px; height: 42px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--teal-700); border-radius: 7px; }
.document-brand-logo img { width: 100%; height: 100%; padding: 3px; object-fit: contain; background: #fff; }
.document-brand > div { min-width: 0; display: grid; gap: 3px; }
.document-brand strong { font-size: 13px; }
.document-brand small { color: var(--ink-500); font-size: 10px; }
.document-warning { margin: 16px 0; padding: 11px; border: 2px solid var(--orange-600); color: var(--orange-800); background: var(--orange-100); text-align: center; font-size: 11px; font-weight: 850; }
.document-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; padding: 12px 0; }
.document-meta > div { display: grid; gap: 3px; color: var(--ink-600); font-size: 10px; }
.document-meta strong { color: var(--ink-950); font-size: 12px; }
.document-items { display: grid; border-top: 1px solid var(--line); }
.document-item { display: grid; grid-template-columns: minmax(0, 1fr) 64px 86px 86px; align-items: start; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.document-item > span:nth-child(n+2) { text-align: right; white-space: nowrap; }
.document-item > span:first-child { min-width: 0; }
.document-item > span:first-child strong, .document-item > span:first-child small { display: block; overflow-wrap: anywhere; }
.document-item > span:first-child small { margin-top: 3px; color: var(--orange-700); font-size: 9px; }
.document-item-head { color: var(--ink-500); font-size: 9px; font-weight: 700; }
.document-totals { width: min(330px, 100%); display: grid; gap: 7px; margin: 16px 0 0 auto; }
.document-totals > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-600); font-size: 11px; }
.document-totals .grand-total { padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink-950); font-size: 16px; font-weight: 800; }
.document-notes { margin-top: 16px; padding: 11px; color: var(--ink-700); background: #f7fafb; border-radius: 6px; font-size: 10px; }
.ticket-frame { width: 100%; min-height: 680px; border: 0; background: #eef1f4; }
.payment-success { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 16px; padding: 15px 18px; color: var(--green-800); background: var(--green-100); border: 1px solid #b8e6cb; border-radius: 8px; }
.payment-success-icon { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--green-700); border-radius: 50%; }
.payment-success h2 { margin: 1px 0 2px; color: var(--ink-950); font-size: 16px; }
.payment-success p { margin: 0; color: var(--ink-600); font-size: 10px; }
.payment-success > strong { color: var(--ink-950); font-size: 22px; }
.payment-document-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 4px; text-transform: uppercase; }
.payment-document-title span { color: var(--ink-600); font-size: 10px; font-weight: 750; }
.payment-document-title strong { font-size: 14px; }
.payment-breakdown { display: grid; gap: 7px; margin-top: 18px; padding: 13px; background: #f7fafb; border-radius: 7px; }
.payment-breakdown h3 { margin-bottom: 2px; font-size: 11px; }
.payment-breakdown > div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-600); font-size: 10px; }
.payment-breakdown > div:last-child { padding-top: 7px; border-top: 1px solid var(--line); color: var(--ink-950); }
.inline-alert { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; }
.inline-alert.warning { color: var(--orange-800); background: var(--orange-100); border-color: #f3d39a; }
.inline-alert.success { color: var(--green-700); background: var(--green-100); border-color: #b8e6cb; }
.company-brand-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; margin-bottom: 16px; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--teal-600); background: #fff; }
.company-logo-preview { width: 72px; height: 72px; display: grid; place-items: center; overflow: hidden; color: var(--teal-700); background: var(--teal-100); border: 1px solid #b9dfda; border-radius: 8px; }
.company-logo-preview img { width: 100%; height: 100%; padding: 5px; object-fit: contain; background: #fff; }
.company-logo-preview .icon { width: 30px; height: 30px; }
.company-brand-hero h2 { margin: 3px 0; font-size: 19px; }
.company-brand-hero p { margin: 0; color: var(--ink-500); font-size: 10px; }
.company-brand-status { display: grid; justify-items: end; gap: 6px; }
.company-brand-status small { color: var(--ink-500); font-size: 9px; }
.company-settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.company-settings-main, .company-settings-side { display: grid; gap: 16px; }
.company-settings-side { position: sticky; top: calc(var(--topbar-height) + 16px); }
.logo-upload { min-height: 154px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 18px; border: 1px dashed #9bbab8; color: var(--ink-700); background: #f6fbfa; border-radius: 7px; text-align: center; cursor: pointer; }
.logo-upload:hover { border-color: var(--teal-600); background: #f0f9f7; }
.logo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.logo-upload-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 7px; }
.logo-upload strong { font-size: 11px; }
.logo-upload small { max-width: 220px; color: var(--ink-500); font-size: 9px; line-height: 1.45; }
.company-remove-logo { margin-top: 10px; color: var(--red-700); }
.company-ticket-sample { padding: 20px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.sample-brand { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding-bottom: 13px; border-bottom: 1px dashed var(--ink-500); }
.sample-logo { width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; color: #fff; background: var(--teal-700); border-radius: 6px; }
.sample-logo img { width: 100%; height: 100%; padding: 3px; object-fit: contain; background: #fff; }
.sample-brand strong, .sample-brand small { display: block; }
.sample-brand strong { font-size: 11px; }
.sample-brand small, .sample-footer { color: var(--ink-500); font-size: 8px; }
.sample-ticket-line, .sample-ticket-total { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 9px; }
.sample-ticket-total { margin-top: 7px; padding-top: 10px; border-top: 1px dashed var(--ink-500); font-size: 13px; }
.sample-footer { display: block; margin-top: 15px; text-align: center; }
.consumption-lines { display: grid; gap: 8px; margin: 6px 0 9px; }
.consumption-line { display: grid; grid-template-columns: minmax(0, 1fr) 110px 38px; gap: 8px; align-items: center; }
.report-bars { display: grid; gap: 14px; }
.report-bar-row { display: grid; grid-template-columns: 90px 1fr 80px; align-items: center; gap: 12px; }
.report-bar-label { color: var(--ink-600); font-size: 11px; font-weight: 650; }
.report-bar-track { height: 8px; overflow: hidden; background: #edf1f5; border-radius: 99px; }
.report-bar-fill { height: 100%; background: var(--teal-600); border-radius: 99px; }
.report-bar-value { text-align: right; font-size: 11px; font-weight: 750; }
.report-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.report-filters { display: flex; align-items: end; gap: 9px; }
.report-filters .form-field { min-width: 142px; }
.report-layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 14px; align-items: start; }
.report-catalog { padding: 9px; }
.report-group { display: grid; gap: 3px; padding: 7px 0; }
.report-group + .report-group { border-top: 1px solid var(--line-soft); }
.report-group-label { padding: 4px 8px; color: var(--ink-500); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.report-link { display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 8px; color: var(--ink-600); border-radius: 5px; font-size: 10px; font-weight: 650; }
.report-link:hover { color: var(--teal-700); background: #f1f8f7; }
.report-link.active { color: #fff; background: var(--teal-700); }
.report-results { min-width: 0; }
.report-table-wrap { width: 100%; overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th { padding: 9px 12px; color: var(--ink-500); background: #f7f9fb; border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 800; text-align: left; text-transform: uppercase; white-space: nowrap; }
.report-table td { max-width: 260px; padding: 11px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-700); font-size: 10px; overflow-wrap: anywhere; }
.report-table tbody tr:hover { background: #f8fbfb; }
.report-table .is-money { color: var(--ink-950); font-weight: 750; white-space: nowrap; }
.report-footer { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; color: var(--ink-500); border-top: 1px solid var(--line-soft); font-size: 9px; }
.toolbar-title { display: block; margin-top: 3px; font-size: 13px; }
.electronic-row { grid-template-columns: minmax(230px, 1.25fr) minmax(130px, .7fr) 100px auto auto; }
.electronic-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-bottom: 14px; padding: 16px 18px; border: 1px solid var(--line); border-left-width: 4px; background: #fff; border-radius: 8px; }
.electronic-hero.success { border-left-color: var(--green-700); }
.electronic-hero.info { border-left-color: var(--blue-600); }
.electronic-hero.warning { border-left-color: var(--orange-600); }
.electronic-hero.danger { border-left-color: var(--red-700); }
.electronic-hero-icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--teal-700); background: var(--teal-100); border-radius: 8px; }
.electronic-hero h2 { margin: 2px 0 3px; font-size: 16px; }
.electronic-hero p { margin: 0; color: var(--ink-500); font-size: 10px; }
.code-disclosure { margin-top: 16px; border: 1px solid var(--line-soft); border-radius: 7px; }
.code-disclosure summary { display: flex; align-items: center; gap: 7px; padding: 10px 12px; cursor: pointer; color: var(--ink-700); font-size: 10px; font-weight: 700; }
.code-disclosure pre { max-height: 360px; margin: 0; padding: 14px; overflow: auto; color: #dce7ee; background: #142330; font-size: 9px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Login */
.auth-page { display: grid; place-items: center; padding: 24px; background: #eef3f4; }
.auth-shell { width: min(920px, 100%); min-height: 580px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: #fff; border: 1px solid #d9e2e6; border-radius: 8px; box-shadow: var(--shadow-md); }
.auth-brand-panel { position: relative; display: grid; align-content: space-between; padding: 42px; color: #fff; background: var(--navy-950); overflow: hidden; }
.auth-brand-panel::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -110px;
    bottom: -90px;
    border: 54px solid rgba(39, 190, 171, .12);
    border-radius: 50%;
}
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.auth-brand .brand-mark { width: 44px; height: 44px; }
.auth-brand strong { display: block; font-size: 21px; }
.auth-brand small { color: #93a8bb; font-size: 11px; }
.auth-message { position: relative; z-index: 1; max-width: 330px; }
.auth-message h1 { margin-bottom: 12px; color: #fff; font-size: 31px; }
.auth-message p { color: #a8bacb; font-size: 13px; }
.auth-proof { position: relative; z-index: 1; display: flex; gap: 10px; color: #8fa5b8; font-size: 10px; }
.auth-form-panel { display: grid; align-content: center; padding: 48px; }
.auth-form-panel h2 { margin-bottom: 7px; font-size: 23px; }
.auth-form-panel > p { margin-bottom: 24px; color: var(--ink-500); font-size: 12px; }
.auth-form { display: grid; gap: 15px; }
.password-field { position: relative; }
.password-field .input { padding-right: 42px; }
.password-field .icon-button { position: absolute; top: 2px; right: 2px; border: 0; }
.demo-access { margin-top: 18px; padding: 11px; color: var(--ink-600); background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 7px; font-size: 10px; line-height: 1.55; }

@media (max-width: 1180px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .floor-layout, .operation-strip { grid-template-columns: 1fr; }
    .floor-side-list { grid-template-columns: repeat(3, 1fr); }
    .catalog-grid { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
    .user-copy, .live-clock { display: none; }
}

@media (max-width: 920px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); box-shadow: var(--shadow-md); }
    body.sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; z-index: 35; width: 100%; height: 100%; border: 0; background: rgba(7, 18, 30, .5); }
    .workspace { margin-left: 0; }
    .mobile-menu { display: inline-grid !important; }
    .topbar { padding: 0 16px; }
    .global-search { width: min(440px, 52vw); }
    .branch-switcher { display: none; }
    .page { padding: 22px 18px 38px; }
    .pos-layout, .cash-layout, .content-grid.main-aside, .content-grid.sidebar-main { grid-template-columns: 1fr; }
    .ticket-panel { position: static; }
    .kitchen-board { grid-template-columns: 1fr; }
    .kitchen-column { min-height: 180px; }
    .order-card-grid { grid-template-columns: repeat(2, minmax(230px, 1fr)); }
    .catalog-grid { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .permission-grid { grid-template-columns: 1fr; }
    .report-layout { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 640px) {
    :root { --topbar-height: 60px; }
    .topbar { gap: 9px; padding: 0 12px; }
    .global-search { width: 100%; }
    .topbar-actions .avatar, .topbar-actions .user-menu { display: none; }
    .page { padding: 18px 12px 34px; }
    .page-heading { min-height: 48px; margin-bottom: 16px; }
    h1 { font-size: 21px; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .kpi-card { min-height: 94px; padding: 12px; gap: 10px; }
    .kpi-icon { width: 36px; height: 36px; }
    .kpi-value { font-size: 19px; }
    .kpi-note { display: none; }
    .content-grid.two, .form-grid, .quick-actions { grid-template-columns: 1fr; }
    .form-field.span-2 { grid-column: span 1; }
    .surface-header { align-items: flex-start; flex-direction: column; }
    .toolbar { align-items: stretch; flex-direction: column; }
    .toolbar-search { min-width: 100%; }
    .floor-canvas { min-height: 450px; padding: 26px 20px; }
    .floor-tables { grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 30px 24px; }
    .floor-side-list { grid-template-columns: 1fr; }
    .floor-table { min-height: 96px; }
    .order-card-grid, .catalog-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
    .data-row { grid-template-columns: 1fr auto; }
    .data-row[style] { grid-template-columns: minmax(0, 1fr) auto !important; }
    .data-row > :not(.row-main):not(.row-actions) { display: none; }
    .order-stream-item { grid-template-columns: 48px minmax(0, 1fr) auto; }
    .order-stream-item > .status-pill { display: none; }
    .stream-total { grid-column: 3; }
    .payment-methods, .cash-summary-grid { grid-template-columns: 1fr 1fr; }
    .profile-hero { align-items: flex-start; flex-direction: column; }
    .profile-details, .document-meta { grid-template-columns: 1fr; }
    .document-preview { padding: 18px 14px; }
    .document-item { grid-template-columns: minmax(0, 1fr) 46px 62px 68px; gap: 6px; font-size: 10px; }
    .payment-success { grid-template-columns: auto 1fr; }
    .payment-success > strong { grid-column: 2; font-size: 18px; }
    .consumption-line { grid-template-columns: minmax(0, 1fr) 82px 38px; }
    .report-bar-row { grid-template-columns: 72px 1fr 68px; gap: 8px; }
    .report-toolbar, .report-filters { align-items: stretch; flex-direction: column; }
    .report-filters .form-field { min-width: 0; }
    .report-layout { grid-template-columns: 1fr; }
    .report-catalog { display: flex; gap: 6px; overflow-x: auto; }
    .report-group { display: flex; flex: 0 0 auto; padding: 0; }
    .report-group + .report-group { border-top: 0; }
    .report-group-label { display: none; }
    .report-link { white-space: nowrap; }
    .electronic-hero { grid-template-columns: auto 1fr; }
    .electronic-hero > .status-pill { grid-column: 2; justify-self: start; }
    .company-brand-hero { grid-template-columns: auto 1fr; }
    .company-brand-status { grid-column: 2; justify-items: start; }
    .company-settings-layout { grid-template-columns: 1fr; }
    .company-settings-side { position: static; }
    .auth-page { padding: 0; background: #fff; }
    .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
    .auth-brand-panel { min-height: 220px; padding: 26px; }
    .auth-message h1 { font-size: 25px; }
    .auth-proof { display: none; }
    .auth-form-panel { padding: 30px 24px 42px; }
}
