:root {
    --bg: #eeeeef;
    --card: #ffffff;
    --ink: #06070b;
    --ink-soft: #243859;
    --muted: #abb2b5;
    --blue: #3a4eb5;
    --blue-deep: #122896;
    --green: #46b65b;
    --orange: #e74915;
    --teal: #4ecdc4;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 0 0 1px rgba(6, 7, 11, 0.04);
    --font: "Noto Sans TC", "Cairo", sans-serif;
    --num: "Cairo", "Noto Sans TC", sans-serif;
    --sidebar: 260px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
}

a,
a:link,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none;
}

.num { font-family: var(--num); }

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar);
    background: var(--card);
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-right: 1px solid #ececee;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    flex-shrink: 0;
    transition: width 0.2s ease, padding 0.2s ease;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    flex: 1;
}
.brand small { display: block; color: var(--muted); font-size: 12px; }
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--teal);
    color: #083b38;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.sidebar-user {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: var(--bg);
    border-radius: 16px;
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}
.sidebar-user small { display: block; color: var(--muted); font-size: 12px; }

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.side-link {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
}
.side-link:hover { background: #f4f5f8; }
.side-link.is-active {
    background: var(--blue);
    color: #fff;
}
.side-logout {
    margin-top: 8px;
    color: var(--muted);
}
.sidebar-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: var(--bg);
    color: var(--ink-soft);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    flex-shrink: 0;
}
.sidebar-toggle:hover { background: #f4f5f8; }
.sidebar-toggle-side {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    flex: 0 0 36px;
}
.sidebar-toggle-icon {
    width: 20px;
    text-align: center;
    font-size: 22px;
    line-height: 1;
}
.sidebar-toggle-top {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 6px 16px rgba(58, 78, 181, 0.22);
}
.sidebar-toggle-top:hover { background: var(--blue-deep); color: #fff; }
.sidebar-toggle-top .sidebar-toggle-icon {
    width: auto;
    font-size: 22px;
}
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 11, 0.28);
    z-index: 25;
}
.sidebar-backdrop[hidden] { display: none; }

html.sidebar-collapsed .sidebar { display: none; }
html.sidebar-collapsed .sidebar-toggle-top { display: inline-flex; }
html.sidebar-collapsed .topbar,
html.sidebar-collapsed .topbar-title { align-items: center; }

.main { flex: 1; min-width: 0; }
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 28px 32px 8px;
    gap: 16px;
}
.topbar-title {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-width: 0;
}
.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}
.topbar h1 {
    margin: 4px 0 0;
    font-size: 30px;
}
.topbar-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.content { padding: 16px 32px 40px; }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.kpi {
    border-radius: var(--radius);
    padding: 22px;
    color: #fff;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.kpi span, .kpi small { opacity: 0.9; }
.kpi .num {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
}
.kpi-orange { background: var(--orange); }
.kpi-green { background: var(--green); }
.kpi-blue { background: var(--blue); }
.kpi-teal { background: #1aa39a; }

.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.card-head h2 { margin: 0; font-size: 18px; }
.pill {
    background: #eef0f8;
    color: var(--blue);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}
.plain-list { margin: 0; padding-left: 18px; line-height: 1.9; }
.lead { font-size: 16px; color: var(--ink-soft); }
.muted { color: var(--muted); }

.data-table {
    width: 100%;
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f3;
}
.data-table th {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}
.data-table .num-col { text-align: right; }
.data-table tbody tr:last-child td { border-bottom: 0; }

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}
.login-card {
    width: min(420px, 100%);
    background: var(--card);
    border-radius: 28px;
    padding: 32px;
    box-shadow: var(--shadow);
}
.login-card h1 { margin: 20px 0 8px; font-size: 28px; }
.login-lead, .login-hint { color: var(--muted); }
.login-card label {
    display: block;
    margin: 14px 0;
    font-size: 14px;
    color: var(--ink-soft);
}
.login-card input {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #e4e6ea;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font: inherit;
}
.btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 700;
}
.btn-primary {
    width: 100%;
    margin-top: 8px;
    background: var(--blue);
    color: #fff;
}
.search-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.search-row input {
    flex: 1;
    min-width: 180px;
    border: 1px solid #e4e6ea;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
}
.search-row .btn-primary { width: auto; margin: 0; }
.search-row select {
    border: 1px solid #e4e6ea;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
}
.search-row .btn-ghost { width: auto; margin: 0; padding: 10px 14px; }
.chip-row form { margin: 0; }
.tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.tag-chip { padding: 6px 10px; font-size: 13px; line-height: 1.2; }
.tag-chip.tag-blue { background: #eef0f8; color: var(--blue); border-color: #d9deef; }
.tag-chip.tag-blue.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.tag-chip.tag-orange { background: #fde8e1; color: var(--orange); border-color: #f5c8b8; }
.tag-chip.tag-orange.is-on { background: var(--orange); color: #fff; border-color: var(--orange); }
.tag-chip.tag-green { background: #e6f6ea; color: #2d8a3e; border-color: #c9e6d0; }
.tag-chip.tag-green.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.tag-chip.tag-teal { background: #e4f7f5; color: #16756f; border-color: #c5ebe7; }
.tag-chip.tag-teal.is-on { background: var(--teal); color: #083b38; border-color: var(--teal); }
.tag-manage {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f3;
    flex-wrap: wrap;
}
.tag-manage:last-child { border-bottom: 0; }
.tag-manage-form { margin: 0; flex: 1; min-width: 240px; }
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.pager-status {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}
.pager-pages { justify-content: center; margin-top: 10px; }
.chip.is-off {
    cursor: default;
    opacity: 0.45;
}
.member-results { display: flex; flex-direction: column; gap: 6px; }
.member-pick {
    width: 100%;
    text-align: left;
    border: 1px solid #ececee;
    background: #f7f7f9;
    border-radius: 12px;
    padding: 10px 12px;
    font: inherit;
    cursor: pointer;
}
.member-pick small { display: block; color: var(--muted); margin-top: 2px; }
.member-bound { margin-top: 8px; }
.member-bound strong { display: block; }
.member-bound small { color: var(--ink-soft); }
.chip.is-on#member-discount,
#member-discount.is-on { background: var(--green); color: #fff; border-color: var(--green); }

.form-error { color: var(--orange); font-weight: 700; }
.pos-ok { color: var(--green); font-weight: 700; }
.text-btn {
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    cursor: pointer;
    font-weight: 700;
}
.btn-ghost {
    background: #eef0f8;
    color: var(--blue);
}
.btn-ticket {
    margin-top: 10px;
    background: var(--teal);
    color: #083b38;
}
.btn-checkout { flex: 1; }
.checkout-row { display: flex; gap: 10px; }

.pos-note {
    margin: 0 0 16px;
    color: var(--ink-soft);
}
.pos-board {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 360px;
    gap: 16px;
    align-items: start;
}
.pos-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 16px; }
.pos-card { margin-bottom: 16px; }
.pos-side .pos-card { margin-bottom: 0; }
.pos-zone { margin-bottom: 12px; }
.pos-zone-label, .pos-cat {
    display: block;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .product-btn {
    border: 1px solid #ececee;
    background: #f7f7f9;
    border-radius: 14px;
    padding: 10px 12px;
    font: inherit;
    cursor: pointer;
    color: var(--ink);
}
.chip.is-on, .product-btn:hover { background: #eef0f8; border-color: #d9deef; }
.chip.is-on { background: var(--blue); color: #fff; border-color: var(--blue); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.product-btn {
    text-align: left;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.product-btn strong { font-size: 15px; }
.product-btn small, .product-btn em, .product-code { color: var(--muted); font-size: 12px; font-style: normal; }
.product-btn.is-sold { opacity: 0.45; cursor: not-allowed; }
.pos-ticket-title { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.pos-ticket-hint { margin: 10px 0 0; }
.pos-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 12px;
}
.pos-meta { margin: 0; color: var(--ink-soft); }
.cart-lines { min-height: 72px; }
.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f1f3;
}
.cart-line strong, .cart-line small { display: block; }
.cart-line small { color: var(--muted); margin-top: 4px; }
.qty-box { display: flex; align-items: center; gap: 6px; }
.qty-box button {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 50%;
    background: #eef0f8;
    cursor: pointer;
}
.cart-totals { margin: 16px 0; }
.cart-totals div { display: flex; justify-content: space-between; margin: 6px 0; color: var(--ink-soft); }
.cart-totals .is-total { color: var(--ink); font-size: 20px; font-weight: 700; }
.pos-today-sum { margin: 0 0 12px; }
.today-order { padding: 12px 0; border-bottom: 1px solid #f0f1f3; }
.today-order:last-child { border-bottom: 0; }
.today-order-head { display: flex; justify-content: space-between; }
.today-order p { margin: 4px 0 0; font-size: 13px; }
.pos-overlay {
    position: fixed;
    inset: 0;
    background: rgba(6, 7, 11, 0.35);
    display: grid;
    place-items: center;
    z-index: 20;
}
.pos-overlay[hidden] { display: none; }
.pos-dialog {
    width: min(360px, calc(100% - 32px));
    background: #fff;
    border-radius: 22px;
    padding: 24px;
}
.pos-dialog-wide { width: min(520px, calc(100% - 32px)); }
.pos-dialog p { margin: 0 0 16px; font-weight: 700; }
.variant-row { flex-wrap: wrap; }
.variant-row .btn,
.variant-row .btn-primary {
    width: auto;
    margin-top: 0;
    flex: 1;
    min-width: 72px;
}
#table-overlay .pos-zone { margin-bottom: 10px; }
#table-overlay .text-btn { margin-top: 8px; }

@media (max-width: 1100px) {
    .pos-board { grid-template-columns: 1fr; }
    .pos-side { position: static; }
}

.ticket-kpi { margin: 16px 0 0; }
.data-table a { color: var(--blue); font-weight: 600; }
.data-table a.text-btn { padding: 0; }
.data-table .btn { width: auto; margin: 0; padding: 8px 12px; }
.data-table form { margin: 0; display: inline; }
.data-table td .text-btn { margin-right: 8px; }
.data-table tr.is-on-day td { font-weight: 700; }
.search-row input[type="date"] { min-width: 150px; }
.settings-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: end;
    margin-top: 8px;
}
.settings-form label {
    display: block;
    font-size: 13px;
    color: var(--ink-soft);
}
.settings-form input,
.settings-form select,
.settings-form textarea {
    width: 100%;
    margin-top: 6px;
    border: 1px solid #e4e6ea;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font: inherit;
}
.settings-form .btn { width: auto; margin: 0; }
.settings-form .check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1 / -1;
}
.settings-form .check-row input { width: auto; margin: 0; }
.settings-form .span-all { grid-column: 1 / -1; }
.settings-form > table,
.settings-form > .table-wrap,
.settings-form > .btn { grid-column: 1 / -1; }
.settings-form textarea { min-height: 88px; resize: vertical; }
.table-wrap {
    width: 100%;
    overflow-x: auto;
}
.line-split {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
    gap: 16px;
    margin-top: 16px;
}
.line-layout-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.line-layout-pick .check-row { grid-column: auto; width: auto; }
.line-hotspots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.line-tag-box {
    border: 1px solid #e4e6ea;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 0;
}
.line-tag-box legend { padding: 0 6px; }
.line-tag-box .check-row { grid-column: auto; width: auto; }
@media (max-width: 900px) {
    .line-split { grid-template-columns: 1fr; }
}
.stock-receive { display: flex; flex-direction: column; gap: 16px; }
.stock-receive .settings-form { margin-top: 0; }
.stock-table { min-width: 640px; }
.stock-table th,
.stock-table td { padding: 10px 12px 10px 0; vertical-align: middle; }
.stock-table th:last-child,
.stock-table td:last-child { padding-right: 0; }
.stock-table th:nth-child(2),
.stock-table td:nth-child(2) { width: 96px; }
.stock-table th:nth-child(3),
.stock-table td:nth-child(3) { width: 120px; }
.stock-table th:nth-child(4),
.stock-table td:nth-child(4) { width: 140px; }
.stock-table td strong {
    display: block;
    font-weight: 600;
    word-break: keep-all;
}
.stock-table .stock-group td {
    padding-top: 18px;
    padding-bottom: 4px;
    border-bottom: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.stock-table .stock-group:first-child td { padding-top: 0; }
.stock-qty,
.stock-cost {
    width: 100%;
    max-width: 140px;
    margin: 0;
    border: 1px solid #e4e6ea;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font: inherit;
    text-align: right;
}
.stock-actions {
    display: flex;
    justify-content: flex-end;
}
.stock-actions .btn { width: auto; margin: 0; }
.stock-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 16px;
    margin-top: 16px;
}
@media (max-width: 980px) {
    .stock-split { grid-template-columns: 1fr; }
}
.inline-form { display: inline; margin: 0; }
.inline-form .text-btn {
    border: 0;
    background: none;
    cursor: pointer;
    font: inherit;
    padding: 0;
}
.shop-items {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
    color: var(--ink-soft);
    line-height: 1.5;
}
.shop-note { margin-top: 6px; font-size: 12px; }
.inline-form {
    display: flex;
    gap: 6px;
    align-items: center;
}
.inline-form input[type="text"] {
    width: 88px;
    border: 1px solid #e4e6ea;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    font: inherit;
}
.inline-form .btn { width: auto; margin: 0; padding: 8px 12px; }

.report-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.report-bar {
    display: grid;
    grid-template-columns: 108px 1fr 84px;
    gap: 10px;
    align-items: center;
    margin: 8px 0;
    font-size: 13px;
    color: var(--ink-soft);
}
.report-bar-track {
    background: #eef0f8;
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
}
.report-bar-fill {
    height: 100%;
    background: var(--blue);
    border-radius: inherit;
}
.report-bar-fill.is-orange { background: var(--orange); }
.report-bar strong { text-align: right; font-size: 14px; }
.trend-row {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 140px;
}
.trend-col {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
}
.trend-col span {
    display: block;
    width: 100%;
    max-width: 18px;
    background: var(--blue);
    border-radius: 6px 6px 0 0;
}
.trend-col small {
    font-size: 10px;
    color: var(--muted);
}
.settle-kpi {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 12px 0 16px;
}
.settle-kpi div {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}
.settle-kpi span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 4px;
}
.settle-kpi strong { font-size: 22px; }
.settle-table th,
.settle-table td { font-size: 13px; }
.data-table tfoot th,
.data-table tfoot td {
    border-bottom: 0;
    padding-top: 14px;
    color: var(--ink);
}
.data-table tr.is-quiet td { color: var(--muted); }
.account-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.account-card .account-bal {
    font-size: 28px;
    font-weight: 700;
    margin: 4px 0 8px;
}

@media (max-width: 1100px) {
    .kpi-grid { grid-template-columns: 1fr 1fr; }
    .report-split { grid-template-columns: 1fr; }
    .settle-kpi { grid-template-columns: 1fr 1fr; }
    .account-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
    .app-shell { flex-direction: column; }
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 30;
        width: min(260px, 86vw);
        height: 100vh;
        box-shadow: 16px 0 40px rgba(6, 7, 11, 0.12);
    }
    .topbar { align-items: center; padding: 18px 16px 8px; }
    .topbar h1 { font-size: 24px; }
    .content { padding: 16px; }
    .kpi-grid { grid-template-columns: 1fr; }
}
.ticket-list,
.hold-list { display: grid; gap: 8px; }
.ticket-pick,
.hold-pick {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid #e4e6ea;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    cursor: pointer;
    font: inherit;
}
.ticket-pick strong,
.hold-pick { display: block; }
.ticket-pick small { display: block; color: var(--ink-soft); margin-top: 4px; }
.today-order.is-void { opacity: 0.55; }
.kitchen-order {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}
.kitchen-order.is-ready { opacity: 0.55; }
#cash-overlay label { display: block; margin: 12px 0; }
#cash-overlay input { width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; }
.receipt-body { background: #fff; }
.receipt {
    width: 80mm;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.5;
}
.receipt h1 { margin: 0; font-size: 20px; text-align: center; }
.receipt p { margin: 2px 0; text-align: center; }
.receipt-line { display: flex; justify-content: space-between; gap: 8px; }
.receipt-line.is-total { font-weight: 700; font-size: 16px; }
@media print {
    .sidebar, .topbar, .side-logout, .sidebar-toggle, .sidebar-backdrop { display: none !important; }
    .app-shell { display: block; }
    .main { margin: 0; }
    .receipt { width: 80mm; }
}

.floor-tag {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #eef0f8;
    color: var(--blue);
}
.floor-tag.is-open { background: #fff3e8; color: var(--orange); }
.floor-tag.is-done { background: #e8f7ec; color: var(--green); }
.floor-tag.is-none { background: #eef0f8; color: var(--ink-soft); }

.page-floor,
.page-station {
    background: var(--bg);
    color: var(--ink);
}
.floor-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.floor-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card);
    border-bottom: 1px solid #ececee;
    position: sticky;
    top: 0;
    z-index: 5;
}
.floor-brand {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: var(--teal);
    color: #083b38;
    display: grid;
    place-items: center;
    font-weight: 700;
}
.floor-nav {
    display: flex;
    gap: 8px;
    flex: 1;
}
.floor-nav a,
.floor-out {
    color: var(--ink-soft);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
}
.floor-nav a:hover,
.floor-out:hover { background: #f4f5f8; }
.floor-nav a.is-on {
    background: var(--blue);
    color: #fff;
}
.floor-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}
.floor-sales {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}
.floor-sales strong {
    font-family: var(--num);
    font-size: 22px;
    color: var(--ink);
}
.floor-clock {
    font-family: var(--num);
    font-size: 22px;
    color: var(--ink);
}
.page-station .floor-main { padding: 16px 20px 28px; }
.page-station .pos-note { margin-top: 0; }
.page-station .pos-side { top: 12px; }
.floor-main { padding: 16px; }
.floor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.floor-head p { margin: 0; color: var(--muted); }
.floor-count {
    min-width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--orange);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--num);
    font-size: 28px;
    font-weight: 700;
}
.floor-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.floor-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--muted);
    padding: 48px 16px;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.floor-card {
    background: #fff;
    color: var(--ink);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow);
}
.floor-card.wait-warn { box-shadow: 0 0 0 3px #f3c39a; }
.floor-card.wait-late { box-shadow: 0 0 0 3px var(--orange); }
.floor-card.is-complete {
    opacity: 0.72;
    background: #f4f5f8;
}
.floor-card-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}
.floor-card-head strong { display: block; font-size: 22px; }
.floor-card-head span { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.floor-card-head em {
    font-style: normal;
    font-weight: 700;
    color: var(--blue);
    white-space: nowrap;
}
.floor-card.wait-warn .floor-card-head em,
.floor-card.wait-late .floor-card-head em { color: var(--orange); }
.floor-items { display: grid; gap: 8px; }
.floor-item {
    width: 100%;
    text-align: left;
    border: 1px solid #e4e6ea;
    background: var(--bg);
    border-radius: 16px;
    padding: 12px 14px;
    font: inherit;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    min-height: 56px;
}
.floor-item b { font-size: 16px; }
.floor-item small { color: var(--ink-soft); font-weight: 700; }
.floor-item.kind-hot { border-left: 6px solid #e74915; }
.floor-item.kind-ice { border-left: 6px solid #3a4eb5; }
.floor-item.kind-pickup { border-left: 6px solid #46b65b; }
.floor-item.is-ready { background: #e8f7ec; border-color: #cfeed6; }
.floor-item.is-done { background: #eef0f8; opacity: 0.72; }
.floor-item.is-making { opacity: 0.7; cursor: default; }
.floor-item.is-pickup { background: #fff6e8; border-color: #f3c39a; }
.floor-item:disabled { cursor: default; }
.floor-card-actions { display: flex; flex-direction: column; gap: 8px; }
.floor-card-actions .btn { width: 100%; margin: 0; }
.floor-card-actions .btn:disabled {
    background: #d5d8e2;
    color: #6b7280;
    cursor: default;
}
@media (max-width: 700px) {
    .floor-top { gap: 8px; padding: 10px 12px; }
    .floor-nav a, .floor-out { padding: 8px 10px; }
    .floor-clock,
    .floor-sales strong { font-size: 16px; }
    .floor-board { grid-template-columns: 1fr; }
}
