:root {
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #f8f9ff;
    --card: #ffffff;
    --accent: #ffb600;
    --accent-dark: #011530;
    --sidebar: #011530;
    --good: #15803d;
    --warn: #b45309;
    --bad: #b91c1c;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--paper); font-weight: 300; }
a { color: var(--accent-dark); text-decoration: none; }
button, input, select { font: inherit; }

.app { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }
.shell { display: flex; flex: 1; min-height: 0; }
.sidebar {
    width: 250px;
    background: var(--sidebar);
    color: #fff;
    padding: 16px 0 24px;
    flex-shrink: 0;
    height: calc(100vh - 72px);
    position: sticky;
    top: 72px;
    overflow: auto;
}
.brand { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.brand strong { display: block; font-size: 18px; letter-spacing: .04em; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--sidebar); color: var(--accent); display: grid; place-items: center; font-weight: 700;
}
.brand small { display: block; color: var(--muted); font-size: 12px; }
.nav a, .nav-group summary {
    display: flex; align-items: center; min-height: 48px; color: #fff; padding: 0 16px;
    border-radius: 10px 0 0 10px; cursor: pointer; font-size: 16px; font-weight: 300;
}
.nav a:hover, .nav-group summary:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.active, .nav a.active:hover { background: var(--accent); color: var(--sidebar); font-weight: 500; }
.nav-label {
    display: flex; align-items: center; gap: 10px;
    color: #d2d5da; font-size: 12px; letter-spacing: .04em; padding: 18px 16px 8px;
}
.nav-label::before { content: ""; width: 29px; height: 1px; background: #4b5563; flex-shrink: 0; }
.nav-group { margin-bottom: 4px; }
.nav-group summary { list-style: none; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-sub { padding: 0 0 6px 10px; }
.nav-sub span { display: block; color: #a8a29e; font-size: 12px; padding: 4px 12px; }
.nav-sub a { font-size: 14px; min-height: 36px; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu div {
    position: absolute; right: 0; top: 28px; background: white; border: 1px solid var(--line);
    border-radius: 12px; min-width: 220px; padding: 8px; z-index: 5; box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.account-menu a, .account-menu button {
    display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--ink);
    padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.account-menu a:hover, .account-menu button:hover { background: #f5f5f4; }
.workspace { flex: 1; min-width: 0; background: var(--paper); }
.topbar {
    height: 72px; display: flex; justify-content: space-between; align-items: center;
    padding: 0 22px; background: white; border-bottom: 1px solid #eef0f6;
    position: sticky; top: 0; z-index: 30; gap: 12px;
}
.menu-btn, .close-nav, .nav-backdrop { display: none; }
.topbar .who { color: var(--muted); font-size: 14px; display: flex; gap: 12px; align-items: center; }
.pos-launch { display: flex; align-items: center; gap: 8px; color: #ffb600; font-size: 16px; font-weight: 500; }
.pos-launch svg { width: 22px; height: 22px; fill: currentColor; }
.pos-kicker { margin: 2px 0 0; font-size: 16px; font-weight: 300; color: #111827; }
.list-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pos-search-inline input { width: 180px; height: 36px; }
.pos-filter { margin: 8px 0 12px; }
.pos-filter summary { cursor: pointer; color: #374151; width: max-content; }
.pos-list h1 { margin-bottom: 0; }
.topbar .who form { margin: 0; }
.icon-btn, .account-menu summary {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: #111827; color: white;
}
.icon-btn { background: #2563eb; position: relative; }
.icon-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.icon-btn svg, .account-menu summary svg { width: 18px; height: 18px; fill: white; }
.account-menu summary { background: #111827; }
.content { padding: 28px 28px 48px; }
h1 { margin: 0 0 16px; font-size: 30px; font-weight: 700; }

.dash-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.dash-head h1 { margin: 0; font-size: 30px; font-weight: 700; color: #111827; }
.dash-welcome { margin: 6px 0 0; color: #111827; font-size: 18px; font-weight: 300; }
.dash-filters { display: flex; gap: 17px; align-items: center; flex-wrap: wrap; }
.dash-filters form { margin: 0; }
.dash-filters select, .dash-filters input[type="date"] {
    min-width: 240px; height: 48px; border-radius: 8px; border: 0; background: white;
    box-shadow: 0 2px 7px rgba(0,0,0,.1); padding: 0 12px;
}
.range-filter { position: relative; }
.range-filter summary {
    list-style: none; cursor: pointer; height: 48px; min-width: 110px; padding: 0 16px;
    display: flex; align-items: center; gap: 8px; background: white; color: #1f2937;
    border-radius: 8px; box-shadow: 0 2px 7px rgba(0,0,0,.1); font-weight: 400;
}
.range-filter summary::-webkit-details-marker { display: none; }
.range-filter summary svg { width: 16px; height: 16px; fill: #011530; }
.range-filter div {
    position: absolute; right: 0; top: 54px; z-index: 8; background: white; min-width: 220px;
    border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 6px;
}
.range-filter a { display: block; padding: 8px 10px; border-radius: 6px; color: #111827; }
.range-filter a.active, .range-filter a:hover { background: #ffb600; color: #011530; }
.custom-range { display: flex; gap: 8px; align-items: center; }
.kpi-strip {
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: white; border-radius: 8px; box-shadow: 0 2px 7px rgba(0,0,0,.1); padding: 32px 24px;
}
.kpi { background: transparent; border: 0; border-radius: 0; padding: 0 24px; min-height: 0; box-shadow: none; }
.kpi-strip .kpi + .kpi { border-left: 1px solid #eef0f6; }
.kpi-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.kpi-when { color: #1f2937; font-size: 14px; font-weight: 300; }
.kpi-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.kpi-icon svg { width: 22px; height: 22px; fill: currentColor; }
.kpi-icon.sky { background: #e0f2fe; color: #0369a1; }
.kpi-icon.sand { background: #fef3c7; color: #b45309; }
.kpi-icon.mint { background: #d1fae5; color: #047857; }
.kpi-icon.lilac { background: #ede9fe; color: #6d28d9; }
.kpi span { color: #1f2937; font-size: 14px; font-weight: 600; }
.kpi strong { display: block; margin-top: 0; font-size: 24px; font-weight: 700; letter-spacing: 0; color: #1f2937; }
.perf-title { margin: 28px 0 12px; font-size: 18px; font-weight: 600; color: #111827; }
.perf-card { display: grid; grid-template-columns: 1.7fr .7fr; gap: 0; padding: 20px 24px; border: 0; border-radius: 8px; box-shadow: 0 2px 7px rgba(0,0,0,.1); }
.side-kpis { display: grid; align-content: start; gap: 18px; padding-left: 18px; border-left: 1px solid #eef0f6; }
.chart-card h2 { margin: 0 0 4px; font-size: 18px; }
.chart-axis { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.sales-chart { width: 100%; height: auto; }
.tab-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-tabs { display: flex; background: white; border-radius: 8px; box-shadow: 0 2px 7px rgba(0,0,0,.1); overflow: auto; margin: 0; }
.section-tabs a { background: transparent; color: #9ca3af; border: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 22px; font-size: 14px; font-weight: 400; white-space: nowrap; }
.section-tabs a.active { color: #011530; border-bottom-color: #ffb600; }
.tab-add { background: #ffb600; color: #1f2937; border-radius: 4px; padding: 12px 24px; font-weight: 600; }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.list-head h1 { margin: 0; }
.show-per { margin: 0; }
.show-per select { min-width: 80px; }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.filter-grid h2, .filter-actions { grid-column: 1 / -1; }
.filter-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.filter-grid input, .filter-grid select { width: 100%; }
.row-menu { position: relative; }
.row-menu summary { list-style: none; cursor: pointer; border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px 8px; background: white; }
.row-menu summary::-webkit-details-marker { display: none; }
.row-menu div { position: absolute; right: 0; z-index: 4; background: white; border: 1px solid #e5e7eb; border-radius: 8px; min-width: 150px; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.row-menu a { display: block; padding: 8px 10px; color: #111827; }
.row-menu a:hover { background: #f8f9ff; }
tfoot td { font-weight: 700; }
.dash-lists { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; margin-top: 16px; }
.dash-lists .panel { border: 0; border-radius: 8px; box-shadow: 0 2px 7px rgba(0,0,0,.1); }
.dash-lists h2 { font-size: 18px; font-weight: 600; color: #111827; }
.pay-link {
    width: 28px; height: 28px; display: grid; place-items: center;
    background: #ffb600; color: #000; border-radius: 4px;
}
.pay-link svg { width: 16px; height: 16px; fill: currentColor; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.card, .panel { background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.card { padding: 16px 18px; }
.card span { color: var(--muted); font-size: 13px; }
.card strong { display: block; margin-top: 6px; font-size: 22px; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.panel { padding: 16px; }
.panel h2 { margin: 0 0 12px; font-size: 16px; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
tr:hover td { background: #fafaf9; }

.toolbar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
input[type="text"], input[type="password"], input[type="number"], select {
    border: 1px solid #d6d3d1; border-radius: 8px; padding: 9px 10px; background: white; min-width: 0;
}
.select2-container { font-size: 14px; }
.select2-container--default .select2-selection--single {
    height: 42px; border: 1px solid #e5e7eb; border-radius: 8px; background: white;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px; color: #111827; padding-left: 12px; padding-right: 28px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single { border-color: #ffb600; }
.select2-dropdown { border-color: #e5e7eb; border-radius: 8px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: #011530; }
.select2-search--dropdown .select2-search__field { border: 1px solid #e5e7eb; border-radius: 6px; }
.pos-customer .select2-container, .pos-location .select2-container { flex: 1; min-width: 0; width: auto !important; }
.filter-grid .select2-container, .modal-card .select2-container, .pos-products .select2-container { display: block; width: 100% !important; }
.show-per .select2-container { width: 90px !important; min-width: 90px; }
.btn {
    border: 0; border-radius: 8px; padding: 9px 14px; background: var(--accent); color: #011530; font-weight: 600; cursor: pointer;
}
a.btn.tab-add { background: #ffb600; color: #1f2937; border-radius: 4px; padding: 12px 24px; text-decoration: none; display: inline-block; }
.tab-actions { display: flex; align-items: center; gap: 14px; }
.print-labels { color: #011530; font-weight: 600; white-space: nowrap; }
.add-menu { position: relative; }
.add-menu summary { list-style: none; }
.add-menu summary::-webkit-details-marker { display: none; }
.add-menu div { position: absolute; right: 0; z-index: 6; min-width: 160px; background: white; border-radius: 8px; box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.add-menu a { display: block; padding: 10px 14px; color: #111827; }
.add-menu a:hover { background: #f8f9ff; }
.check-line { flex-direction: row; align-items: center; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.bulk-bar label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.row-menu form { margin: 0; padding: 8px; }
.row-menu .select2-container { width: 160px !important; }
.row-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; cursor: pointer; color: #111827; }
.label-sheet { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.label-sheet article { width: 180px; border: 1px dashed #111827; border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 4px; background: white; }
.btn.secondary { background: #44403c; }
.btn.ghost { background: white; color: var(--ink); border: 1px solid #d6d3d1; }
.badge { display: inline-block; border-radius: 3px; padding: 2px 6px; font-size: 11px; background: #e7e5e4; text-transform: uppercase; font-weight: 600; }
.badge.Paid, .badge.Received { background: #dcfce7; color: var(--good); }
.badge.Due { background: #f39c12; color: #fff; }
.badge.Partial { background: #00c0ef; color: #fff; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.flash.success { background: #dcfce7; }
.flash.error { background: #fee2e2; }
.pager { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pager a, .pager span { padding: 6px 10px; border-radius: 8px; background: white; border: 1px solid var(--line); }
.meta { color: var(--muted); margin-bottom: 12px; }
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: white; border-radius: 18px; padding: 28px; border: 1px solid var(--line); }
.login-card label { display: block; margin: 12px 0 6px; font-size: 14px; }
.login-card input { width: 100%; }
.login-card input[type="checkbox"] { width: auto; }
.login-card label.remember { display: flex; gap: 8px; align-items: center; }
.pos-screen {
    background: white; margin: -28px -28px -48px; padding: 8px 16px 24px; min-height: calc(100vh - 72px);
}
.pos-heading { display: flex; align-items: center; gap: 14px; padding: 8px 4px 12px; border-bottom: 1px solid #e5e7eb; flex-wrap: wrap; }
.pos-back {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid #dbeafe; display: grid; place-items: center;
    color: #011530; font-size: 22px; background: white;
}
.pos-title h1 { margin: 0; font-size: 30px; font-weight: 700; line-height: 1; }
.pos-title span { display: block; margin-top: 4px; font-size: 16px; font-weight: 300; }
.pos-location { margin-left: auto; display: flex; align-items: center; gap: 8px; font-weight: 700; }
.pos-location select { height: 40px; border-radius: 8px; border: 1px solid #e5e7eb; min-width: 220px; background: white; }
.pos-tools { display: flex; gap: 8px; }
.pos-icon {
    width: 36px; height: 36px; border: 0; background: white; color: #2563eb; font-size: 16px; cursor: pointer; border-radius: 8px;
}
.pos-content { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 12px; margin-top: 12px; }
.pos-customer, .pos-search, .pos-actions, .pos-adjust, .pos-mini { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pos-customer, .pos-search, .pos-adjust { margin-bottom: 12px; }
.pos-customer, .pos-search { position: relative; }
.pos-customer input, .pos-search input, #shelf-search, #brand, #customer-search {
    flex: 1; min-width: 0; height: 42px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 0 12px; background: white;
}
#brand { width: 100%; margin-bottom: 8px; }
.pos-actions.is-hidden { display: none; }
.pos-stat { border: 0; background: transparent; cursor: pointer; min-width: 88px; text-align: center; }
.pos-stat b { display: block; font-size: 11px; letter-spacing: .04em; color: #6b7280; }
.pos-stat strong { font-size: 20px; color: #111827; }
.pos-clock { font-size: 13px; color: #6b7280; white-space: nowrap; }
.qty-step { display: inline-flex; align-items: center; }
.qty-step button { width: 28px; height: 32px; border: 1px solid #e5e7eb; background: white; cursor: pointer; }
.qty-step input { width: 64px; height: 32px; text-align: center; border-radius: 0; }
.line-name { color: #2563eb; background: none; border: 0; cursor: pointer; padding: 0; font: inherit; text-align: left; }
.line-remove { border: 0; background: none; color: #dc2626; font-size: 18px; cursor: pointer; }
.pos-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #111827; color: white; padding: 10px 16px; border-radius: 8px; z-index: 40; }
.modal-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.modal-tabs button { border: 0; background: #f3f4f6; border-radius: 8px; padding: 8px 12px; cursor: pointer; }
.modal-tabs button.is-on { background: #011530; color: white; }
.pay-row { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 8px; margin-bottom: 8px; }
.check-line { display: flex; gap: 8px; align-items: center; }
.modal-card textarea { width: 100%; min-height: 72px; margin-bottom: 8px; }
#add-customer {
    width: 36px; height: 36px; border: 0; border-radius: 50%; background: #2563eb; color: white; font-size: 22px; cursor: pointer; line-height: 1;
}
.pos-table-wrap { min-height: 280px; border: 1px solid #d2d5da; background: white; }
.pos-table-wrap th { text-transform: none; letter-spacing: 0; background: #eff6ff; color: #374151; font-size: 12px; font-weight: 700; padding: 12px; }
.pos-table-wrap thead tr, .pos-table-wrap thead tr:hover td, .pos-table-wrap thead th { background: #eff6ff; }
.pos-table-wrap table input { width: 90px; }
.pos-mini { justify-content: space-between; margin-top: 10px; }
.pos-adjust { justify-content: space-between; background: white; border: 0; border-radius: 0; padding: 4px 0; }
.pos-adjust label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.payable { font-size: 20px; font-weight: 600; margin-left: auto; }
.pos-actions { margin-top: 8px; }
.pos-actions button {
    min-width: 90px; height: 35px; border-radius: 8px; border: 0; color: white; font-weight: 500; font-size: 16px; cursor: pointer; padding: 0 10px;
}
.pos-actions .pos-cancel { background: #dc2626; }
.pos-actions .pos-quote { background: #605ca8; }
.pos-actions .pos-draft { background: #0565e6; }
.pos-actions .pos-credit, .pos-actions .pos-suspend { background: #ffb600; }
.pos-actions .pos-multi { background: #011530; }
.pos-actions .pos-cash { background: #16a34a; height: 45px; min-width: 160px; margin-left: auto; }
.pos-screen table { min-width: 0; }
.pos-customer input, .pos-search input { min-width: 0; width: auto; }
#add-customer { flex: 0 0 36px; }
.pos-products { border-left: 1px solid #ededed; padding: 8px 12px; }
.pos-products h2 { margin: 0 0 10px; font-size: 18px; }
.product-shelf { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 640px; overflow: auto; margin-top: 10px; }
.product-shelf button {
    text-align: left; background: white; border: 1px solid #ededed; border-radius: 5px; padding: 10px; cursor: pointer; min-height: 72px;
}
.product-shelf button.out { opacity: .55; }
.product-shelf strong { display: block; font-size: 13px; font-weight: 500; }
.product-shelf span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.suggest { position: absolute; left: 0; right: 48px; top: 42px; background: white; border: 1px solid var(--line); border-radius: 10px; z-index: 6; max-height: 280px; overflow: auto; }
.suggest button, .product-grid button { display: block; width: 100%; text-align: left; background: white; border: 0; border-bottom: 1px solid var(--line); padding: 8px 10px; cursor: pointer; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.product-grid button { border: 1px solid var(--line); border-radius: 10px; min-height: 72px; }
.product-grid span { display: block; color: var(--muted); font-size: 12px; }
.modal { position: fixed; inset: 0; background: rgba(28,25,23,.45); display: grid; place-items: center; z-index: 20; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { background: white; border-radius: 16px; width: min(720px, 100%); max-height: 80vh; overflow: auto; padding: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-card label { display: block; margin: 8px 0 4px; }
.modal-card input, .modal-card select { width: 100%; margin-bottom: 8px; }
@media (max-width: 1100px) {
    .cards, .split, .filter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .menu-btn {
        display: grid; place-items: center; width: 40px; height: 40px;
        border: 0; background: none; color: #011530; cursor: pointer; padding: 0;
    }
    .menu-btn svg { width: 24px; height: 24px; fill: currentColor; }
    .sidebar {
        position: fixed; top: 0; left: 0; width: 250px; height: 100vh; z-index: 50;
        transform: translateX(-105%); transition: transform .2s ease;
    }
    body.nav-open .sidebar { transform: translateX(0); }
    .close-nav {
        display: grid; place-items: center; width: 32px; height: 32px; margin: 12px 12px 0 auto;
        border: 3px solid #dbeafe; border-radius: 50%; background: white; color: #011530;
        font-size: 20px; line-height: 1; cursor: pointer;
    }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(1, 21, 48, .45); z-index: 40; }
    body.nav-open .nav-backdrop { display: block; }
    .topbar { height: 64px; padding: 0 12px; }
    .brand small, .dash-welcome, .range-filter summary span { display: none; }
    .content { padding: 16px 12px 32px; }
    .dash-head { display: block; }
    .dash-head h1 { font-size: 20px; margin-bottom: 12px; }
    .dash-filters { width: 100%; justify-content: space-between; gap: 8px; }
    .dash-filters select, .dash-filters input[type="date"] { min-width: 0; width: 100%; height: 44px; }
    .dash-filters form { flex: 1; }
    .kpi-strip, .perf-card, .dash-lists, .cards, .split, .filter-grid { grid-template-columns: 1fr; }
    .kpi-strip { display: block; margin-top: 16px; padding: 8px 16px; }
    .kpi { padding: 14px 0; }
    .kpi-strip .kpi + .kpi { border-left: 0; border-top: 1px solid #d2d5da; padding-top: 14px; }
    .perf-card { display: block; }
    .side-kpis { border-left: 0; border-top: 1px solid #d2d5da; padding: 16px 0 0; margin-top: 12px; }
    .dash-lists .panel { margin-bottom: 16px; }
    .panel, .table-scroll { overflow-x: auto; }
    table { min-width: 640px; }
    .pos-screen { margin: -16px -12px -32px; }
    .pos-content { grid-template-columns: 1fr; }
    .pos-location { margin-left: 0; width: 100%; }
    .pos-location select { flex: 1; min-width: 0; }
    .pos-table-wrap { overflow-x: auto; }
    .pos-cash { margin-left: 0; }
    .pos-products { border-left: 0; border-top: 1px solid #ededed; }
    .product-shelf { max-height: 360px; }
}
body.pos-app .sidebar,
body.pos-app .nav-backdrop,
body.pos-app .menu-btn,
body.pos-app .close-nav { display: none !important; }
@media print {
    .sidebar, .topbar, .toolbar, .no-print { display: none !important; }
    .content { padding: 0; }
    body { background: white; }
}
