@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --bg: #f2f1ed;
    --surface: #ffffff;
    --surface-2: #faf9f6;
    --ink: #211b16;
    --ink-soft: #5a5048;
    --ink-faint: #8c8377;
    --border: #e2ddd3;
    --border-strong: #cdc5b7;

    --ember: #c1440e;
    --ember-dark: #9c350a;
    --ember-tint: #fbe9e0;

    --olive: #57642f;
    --olive-tint: #eaeddd;

    --gold: #b9862c;
    --gold-tint: #f7ecd6;

    --slate: #3e5c76;
    --slate-tint: #e6edf2;

    --success: #2f7d4f;
    --success-tint: #e3f2e8;
    --danger: #b3261e;
    --danger-tint: #fbe6e4;

    --radius-s: 8px;
    --radius-m: 14px;
    --radius-l: 20px;
    --sidebar-w: 232px;

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

p { margin: 0 0 10px; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--ember);
    outline-offset: 2px;
}

.tabular { font-variant-numeric: tabular-nums; }

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

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--ink);
    color: #f1ece4;
    display: flex;
    flex-direction: column;
    padding: 22px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 22px;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ember), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-family: var(--font-display); font-size: 16px; }
.brand-text span { display: block; font-size: 11.5px; color: #c9c0b3; }

.nav-group { margin-bottom: 18px; }
.nav-group-label {
    font-size: 11px;
    color: #8f867a;
    padding: 0 12px 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-s);
    color: #ded6c8;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .12s ease, color .12s ease;
}
.nav-link:hover { background: #352c24; color: #fff; }
.nav-link.active { background: var(--ember); color: #fff; }
.nav-link svg { flex-shrink: 0; opacity: .9; }

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid #3a322a;
    padding-top: 14px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-s);
}
.user-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: #3a322a; color: #f1ece4;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.user-meta { line-height: 1.2; overflow: hidden; }
.user-meta strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta span { font-size: 11.5px; color: #a99; color: #b9ae9d; }

.logout-link {
    display: block;
    text-align: center;
    margin-top: 8px;
    font-size: 12.5px;
    color: #b9ae9d;
    padding: 6px;
    border-radius: var(--radius-s);
}
.logout-link:hover { background: #352c24; color: #fff; }

.main { flex: 1; min-width: 0; }
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 32px;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    position: sticky;
    top: 0;
    z-index: 5;
}
.topbar h1 { font-size: 19px; }
.topbar .sub { color: var(--ink-faint); font-size: 13px; }

.page { padding: 28px 32px 60px; max-width: 1180px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.card-header h2 { font-size: 16px; }
.card-header p { color: var(--ink-faint); font-size: 13px; margin: 0; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 16px 18px;
}
.kpi .label { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 6px; }
.kpi .value { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.kpi .value small { font-size: 14px; font-weight: 500; color: var(--ink-faint); }
.kpi.with-icon { display: flex; align-items: flex-start; gap: 12px; }
.kpi.with-icon .kpi-body { flex: 1; }

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--ink-faint);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.icon-badge {
    width: 38px; height: 38px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.icon-badge.ember  { background: var(--ember-tint); color: var(--ember-dark); }
.icon-badge.olive  { background: var(--olive-tint); color: var(--olive); }
.icon-badge.gold   { background: var(--gold-tint);  color: var(--gold); }
.icon-badge.slate  { background: var(--slate-tint); color: var(--slate); }
.icon-badge.ink    { background: var(--ink); color: #fff; }
.icon-badge.lg { width: 46px; height: 46px; border-radius: 13px; }

.action-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 18px;
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.action-card:hover {
    border-color: var(--border-strong);
    box-shadow: 0 14px 28px -18px rgba(33,27,22,.35);
    transform: translateY(-1px);
}
.action-card h3 { font-size: 14.5px; }
.action-card p { font-size: 12.5px; color: var(--ink-faint); margin: 0; flex: 1; }
.action-card .card-link {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ember);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.action-card .card-link:hover { color: var(--ember-dark); }

.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 16px; }
.detail-item .label { font-size: 11.5px; color: var(--ink-faint); margin-bottom: 3px; }
.detail-item .value { font-size: 14px; font-weight: 600; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: var(--radius-s);
    padding: 9px 16px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    background: var(--ink);
    color: #fff;
    transition: opacity .12s ease, transform .04s ease;
    white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ember); }
.btn.olive { background: var(--olive); }
.btn.gold { background: var(--gold); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn.ghost:hover { background: var(--surface-2); opacity: 1; }
.btn.danger { background: var(--danger); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-icon {
    width: 32px; height: 32px; padding: 0; border-radius: var(--radius-s);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--border); color: var(--ink-soft);
}
.btn-icon:hover { background: var(--border); }

.field { margin-bottom: 14px; }
.field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 5px;
}
.field .hint { font-size: 12px; color: var(--ink-faint); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=time], input[type=tel], input[type=file], select, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-s);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink);
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { border-color: var(--ember); }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.checkbox-row input { width: auto; }
.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--ink-faint); font-weight: 600; font-size: 12px; }
tbody tr:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}
.badge.libre { background: var(--success-tint); color: var(--success); }
.badge.ocupada { background: var(--ember-tint); color: var(--ember-dark); }
.badge.reservada { background: var(--gold-tint); color: var(--gold); }
.badge.recibido { background: var(--danger-tint); color: var(--danger); }
.badge.preparacion { background: var(--gold-tint); color: var(--gold); }
.badge.listo { background: var(--slate-tint); color: var(--slate); }
.badge.entregado { background: var(--success-tint); color: var(--success); }

.role-tag { padding: 2px 9px; border-radius: 100px; font-size: 11.5px; font-weight: 600; }
.role-admin { background: var(--ink); color: #fff; }
.role-mesero { background: var(--ember-tint); color: var(--ember-dark); }
.role-cocina { background: var(--olive-tint); color: var(--olive); }
.role-delivery { background: var(--slate-tint); color: var(--slate); }
.role-cliente { background: var(--gold-tint); color: var(--gold); }

.alert {
    padding: 12px 16px;
    border-radius: var(--radius-s);
    font-size: 13.5px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.alert.success { background: var(--success-tint); color: #1e5c38; border-color: #bfe3cc; }
.alert.error { background: var(--danger-tint); color: #8a1f19; border-color: #f0c4c0; }

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ink-faint);
    font-size: 13.5px;
}

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.tab {
    padding: 9px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink-faint);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
.tab.active { color: var(--ember); border-color: var(--ember); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip {
    padding: 7px 14px;
    border-radius: 100px;
    border: 1px solid var(--border-strong);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface);
    color: var(--ink-soft);
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    padding: 24px;
}
.auth-card {
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--surface);
    border-radius: var(--radius-l);
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.auth-visual {
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 40%),
        linear-gradient(160deg, var(--ember) 0%, var(--ember-dark) 55%, #6b2205 100%);
    color: #fff;
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-visual .brand-mark { background: rgba(255,255,255,.18); }
.auth-visual h2 { font-size: 24px; margin-top: 20px; line-height: 1.25; }
.auth-visual p { color: rgba(255,255,255,.82); font-size: 14px; }
.auth-visual ul { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.auth-visual li { font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; color: rgba(255,255,255,.92); }

.auth-form { padding: 40px 38px; }
.auth-form h1 { font-size: 22px; }
.auth-form .sub { color: var(--ink-faint); font-size: 13.5px; margin-bottom: 22px; }
.auth-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 100px; margin-bottom: 24px; }
.auth-tabs a {
    flex: 1; text-align: center; padding: 8px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--ink-faint);
}
.auth-tabs a.active { background: var(--ink); color: #fff; }
.auth-demo {
    margin-top: 20px; padding: 12px 14px; background: var(--surface-2);
    border-radius: var(--radius-s); font-size: 12px; color: var(--ink-soft); line-height: 1.6;
}
.auth-demo strong { color: var(--ink); }

@media (max-width: 760px) {
    .auth-card { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
}

.floor-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.floor-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-soft); }
.floor-legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.libre { background: var(--success); }
.dot.ocupada { background: var(--ember); }
.dot.reservada { background: var(--gold); }

.zones {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    grid-template-areas:
        "salon terraza"
        "barra terraza";
    gap: 16px;
    align-items: stretch;
}
.zone {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--zone-color);
    border-radius: var(--radius-m);
    padding: 18px;
}
.zone-salon { grid-area: salon; --zone-color: var(--ink); }
.zone-terraza { grid-area: terraza; --zone-color: var(--olive); }
.zone-barra { grid-area: barra; --zone-color: var(--gold); }
.zone-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.zone-head h2 { font-size: 15px; margin: 0; }
.zone-head p { font-size: 12px; color: var(--ink-faint); margin: 0; }
.zone-tables {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    align-content: start;
}
.zone-empty {
    padding: 22px 12px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-s);
    text-align: center;
    font-size: 12.5px;
    color: var(--ink-faint);
}

.table-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 14px 12px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.table-tile::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--state-color);
}
.table-tile.libre { --state-color: var(--success); }
.table-tile.ocupada { --state-color: var(--ember); }
.table-tile.reservada { --state-color: var(--gold); }
.table-tile:hover {
    border-color: var(--border-strong);
    box-shadow: 0 14px 26px -18px rgba(33,27,22,.45);
    transform: translateY(-1px);
}
.table-tile .num { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.table-tile .cap { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-soft); }
.table-tile .cap svg { width: 13px; height: 13px; }
.table-tile .badge { margin-top: 4px; padding: 2px 9px; font-size: 11px; }
.table-tile .when { font-size: 11.5px; color: var(--ink-faint); }

@media (max-width: 880px) {
    .zones {
        grid-template-columns: 1fr;
        grid-template-areas:
            "salon"
            "terraza"
            "barra";
    }
}

.menu-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 980px) { .menu-layout { grid-template-columns: 1fr; } }

.dish-section { margin-bottom: 28px; }
.dish-section h3 { font-size: 15px; margin-bottom: 12px; }
.dish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dish-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    overflow: hidden;
    background: var(--surface);
    display: flex;
    flex-direction: column;
}
.dish-photo {
    height: 110px;
    background: linear-gradient(135deg, var(--olive-tint), var(--gold-tint));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--olive);
    position: relative;
}
.dish-photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-tag {
    position: absolute; top: 8px; left: 8px;
    background: rgba(255,255,255,.92); color: var(--ink);
    font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 100px;
}
.dish-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish-body h4 { font-size: 14px; }
.dish-body .desc { font-size: 12px; color: var(--ink-faint); flex: 1; min-height: 30px; }
.dish-body .row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.dish-price { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-control button {
    width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong);
    background: var(--surface); font-weight: 700; cursor: pointer; line-height: 1;
}
.qty-control span { min-width: 16px; text-align: center; font-weight: 600; }
.dish-admin-actions { display: flex; gap: 6px; padding: 0 14px 12px; }
.dish-unavailable { opacity: .5; }

.cart-panel {
    position: sticky; top: 90px;
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    background: var(--surface);
    padding: 18px;
}
.cart-panel h3 { font-size: 15px; margin-bottom: 4px; }
.cart-context { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.cart-item .name { font-weight: 600; }
.cart-item .line-price { color: var(--ink-faint); font-size: 12px; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 14px 0; }
.context-picker { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
@media (max-width: 980px) { .kanban { grid-template-columns: 1fr; } }
.kanban-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 14px; }
.kanban-col-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kanban-col-header h3 { font-size: 13.5px; }
.count-pill { background: var(--surface); border: 1px solid var(--border); border-radius: 100px; padding: 1px 9px; font-size: 12px; font-weight: 700; }
.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    padding: 12px 13px;
    margin-bottom: 10px;
}
.order-card .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.order-card .id { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; }
.order-card .meta { font-size: 12px; color: var(--ink-faint); margin-bottom: 8px; }
.order-card ul { font-size: 12.5px; margin-bottom: 8px; }
.order-card li { display: flex; justify-content: space-between; padding: 2px 0; color: var(--ink-soft); }
.order-card .foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.order-card .total { font-weight: 700; font-family: var(--font-display); }
.order-card .actions { display: flex; gap: 6px; }
.order-card .notes { font-size: 11.5px; color: var(--gold); background: var(--gold-tint); padding: 4px 8px; border-radius: 6px; margin-bottom: 8px; }

.timeline-card { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 16px; margin-bottom: 14px; background: var(--surface); }
.timeline-steps { display: flex; align-items: center; margin: 14px 0 4px; }
.timeline-step { flex: 1; text-align: center; position: relative; font-size: 11px; color: var(--ink-faint); }
.timeline-step .node { width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 6px; font-size: 11px; font-weight: 700; }
.timeline-step.done .node { background: var(--success); }
.timeline-step.current .node { background: var(--ember); }
.timeline-step:not(:last-child)::after {
    content: ''; position: absolute; top: 11px; left: 50%; width: 100%; height: 2px; background: var(--border); z-index: -1;
}
.timeline-step.done:not(:last-child)::after { background: var(--success); }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--border-strong); padding: 0; line-height: 1; }
.star-input button.on { color: var(--gold); }
.review-card { border: 1px solid var(--border); border-radius: var(--radius-m); padding: 14px 16px; margin-bottom: 10px; }
.review-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.review-card .name { font-weight: 700; font-size: 13.5px; }
.review-card .comment { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.modal-backdrop {
    position: fixed; inset: 0; background: rgba(20,16,12,.55);
    display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--surface); border-radius: var(--radius-l); width: 100%; max-width: 440px;
    max-height: 90vh; overflow-y: auto; padding: 24px;
}
.modal.wide { max-width: 620px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-head h3 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--ink-faint); line-height: 1; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.flex { display: flex; }
.flex.between { justify-content: space-between; }
.flex.center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.text-faint { color: var(--ink-faint); }
.text-sm { font-size: 12.5px; }
.hidden { display: none !important; }

.bill-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-m);
    padding: 16px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.bill-card-head { display: flex; align-items: center; justify-content: space-between; }
.bill-card .num { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.bill-card-total { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 6px 0 12px; }

.charge-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.charge-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-s);
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease;
}
.charge-row:has(.charge-check:checked) { border-color: var(--ember); background: var(--ember-tint); }
.charge-check { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--ember); flex-shrink: 0; }
.charge-info { flex: 1; min-width: 0; }
.charge-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 13.5px; }
.charge-items { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.charge-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 3px; }
.charge-item { align-items: center; cursor: default; }
.charge-item .qty-control { flex-shrink: 0; }
.charge-qty {
    width: 34px;
    text-align: center;
    border: none;
    background: none;
    font-weight: 600;
    padding: 0;
    -moz-appearance: textfield;
}
.charge-qty::-webkit-outer-spin-button, .charge-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.receipt-head { text-align: center; padding-bottom: 14px; border-bottom: 1px dashed var(--border-strong); margin-bottom: 14px; }
.receipt-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-faint); margin-bottom: 14px; }
.receipt-order { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.receipt-line { display: flex; justify-content: space-between; font-size: 13px; padding: 2px 0; }
.receipt-totals { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border-strong); }
.receipt-line.total { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-top: 4px; }
.receipt { margin-bottom: 20px; }

.sidebar-toggle { display: none; }
@media (max-width: 880px) {
    .shell { flex-direction: column; }
    .sidebar { position: fixed; z-index: 50; height: 100vh; transform: translateX(-100%); transition: transform .18s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 36px; height: 36px; border-radius: var(--radius-s); border: 1px solid var(--border);
        background: var(--surface); margin-right: 10px; cursor: pointer;
    }
    .page { padding: 22px 18px 50px; }
    .topbar { padding: 14px 18px; }
    .kanban { grid-template-columns: 1fr; }
    .menu-layout { grid-template-columns: 1fr; }
    .cart-panel { position: static; }
}
