:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --ink: #1e293b;
    --muted: #64748b;
    --line: #d9e0e8;
    --primary: #0f766e;
    --primary-strong: #0b5f58;
    --primary-soft: #e6f4f1;
    --accent: #b45309;
    --danger: #dc2626;
    --success: #15803d;
    --shadow: 0 10px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Arial, Helvetica, sans-serif; background: var(--bg); color: var(--ink); }
a { text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid rgba(15, 118, 110, .24); outline-offset: 2px; }
.security-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: #101820; color: #fff; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-backdrop { display: none; }
.brand { display: flex; gap: 12px; align-items: center; padding: 6px 8px 22px; }
.brand-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; background: var(--primary); font-size: 22px; }
.brand strong, .brand small { display: block; }
.brand small { color: #b8c4ce; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar a { color: #dbe5ed; padding: 10px 12px; border-radius: 8px; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.sidebar a i { width: 20px; text-align: center; color: #9fb1bf; }
.sidebar a.active, .sidebar a:hover { background: #20303b; color: #fff; }
.sidebar a.active i, .sidebar a:hover i { color: #7dd3c7; }

.main { padding: 24px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.topbar > div:first-of-type { min-width: 0; }
.topbar h1 { font-size: 26px; margin: 0; }
.topbar span { color: var(--muted); font-size: 14px; }
.sidebar-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 24px; flex: 0 0 auto; }
.user-pill { display: flex; align-items: center; gap: 9px; background: var(--panel); border: 1px solid var(--line); padding: 9px 12px; border-radius: 8px; }
.user-pill a { color: var(--accent); font-weight: 700; }

.panel, .metric { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; box-shadow: var(--shadow); }
.table { margin-bottom: 0; }
.table thead th { background: #f8fafc; color: var(--muted); font-size: 12px; text-transform: uppercase; vertical-align: middle; }
.table td { vertical-align: middle; }
.table tbody tr:hover { background: #fbfcfd; }
.table-responsive { width: 100%; }
.form-control, .form-select, .btn { min-height: 40px; border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(15, 118, 110, .14); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 700; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--primary); border-color: var(--primary); }
.alert { border-radius: 8px; border-width: 1px; box-shadow: var(--shadow); }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-title h2 { font-size: 18px; margin: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric span { display: block; color: var(--muted); font-size: 14px; }
.metric strong { display: block; margin-top: 8px; font-size: 28px; }
.content-grid { display: grid; grid-template-columns: minmax(280px, 390px) 1fr; gap: 16px; align-items: start; }
.wide-panel { min-width: 0; }
.user-management-grid { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.panel-stack { display: grid; gap: 16px; min-width: 0; }
.password-reset-form { display: grid; grid-template-columns: minmax(130px, 1fr) auto; gap: 8px; align-items: center; min-width: 240px; }
.password-reset-form .form-control { min-width: 0; }
.status { display: inline-flex; align-items: center; gap: 5px; background: var(--primary-soft); color: var(--primary); border: 1px solid #b6ddd6; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.shortcut-grid, .qr-grid, .kitchen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.shortcut-grid a { border: 1px solid var(--line); padding: 14px; border-radius: 8px; color: var(--ink); font-weight: 700; background: #f8fafc; transition: border-color .18s ease, transform .18s ease; }
.shortcut-grid a:hover { border-color: var(--primary); transform: translateY(-1px); }
.payment-row, .filter-bar { display: flex; gap: 8px; align-items: center; }
.payment-row .form-select { max-width: 150px; }
.payment-row .form-control { max-width: 110px; }
.ticket { background: #fffdf7; border: 1px solid #f1d39b; border-left: 5px solid var(--accent); border-radius: 8px; padding: 16px; }
.ticket strong, .ticket span { display: block; }
.ticket p { min-height: 44px; margin: 12px 0; }
.kitchen-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.kitchen-toolbar strong { font-size: 26px; }
.kitchen-toolbar span { color: var(--muted); }
.kitchen-actions { display: flex; align-items: center; gap: 10px; }
.kitchen-board { display: grid; gap: 16px; }
.kitchen-lane { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.kitchen-lane h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 18px; margin: 0 0 12px; }
.kitchen-lane h2 span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 999px; background: #eef2f7; color: var(--muted); font-size: 13px; }
.kitchen-lane-atencao { border-color: #f1d39b; }
.kitchen-lane-atrasado { border-color: #f3b3b3; }
.ticket-normal { border-left-color: var(--primary); }
.ticket-atencao { border-left-color: #d97706; background: #fff8ed; }
.ticket-atrasado { border-left-color: #dc2626; background: #fff5f5; }
.wait-pill { display: inline-block; margin-top: 10px; background: #eef2f7; color: var(--ink); border-radius: 999px; padding: 4px 9px; font-size: 12px; font-weight: 700; }
.empty-lane { color: var(--muted); margin: 0; }
.stock-alert, .report-line { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.delivery-list { display: grid; gap: 12px; }
.delivery-list article { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfcfd; }
.delivery-list strong, .delivery-list span { display: block; }
.delivery-tracking-link { margin: 10px 0; }
.delivery-tracking-link .form-label { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.delivery-tracking-link .form-control { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.delivery-fees { display: grid; gap: 10px; }
.delivery-fee-row { display: grid; grid-template-columns: 1fr 110px 130px 78px 76px; gap: 8px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.delivery-fee-row .form-check { display: flex; gap: 6px; align-items: center; margin: 0; }
.permission-grid { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 14px; }
.permission-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfcfd; }
.permission-card h3 { font-size: 16px; margin: 0 0 12px; }
.permission-option { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #edf1f5; cursor: pointer; }
.permission-option:last-child { border-bottom: 0; }
.permission-option span { font-size: 14px; }
.module-picker { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fbfcfd; max-height: 360px; overflow: auto; }
.print-actions { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 16px; }
.receipt-print { width: min(760px, 100%); margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; box-shadow: 0 10px 24px rgba(15, 23, 42, .05); }
.receipt-header { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.receipt-header strong, .receipt-header span { display: block; }
.receipt-header strong { font-size: 22px; }
.receipt-header span { color: var(--muted); }
.receipt-header h2 { margin: 8px 0 0; font-size: 28px; }
.receipt-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.receipt-meta div, .receipt-block, .receipt-totals { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.receipt-meta span { display: block; color: var(--muted); font-size: 12px; }
.receipt-meta strong { display: block; margin-top: 3px; }
.receipt-block { margin-bottom: 14px; }
.receipt-block h3 { font-size: 16px; margin: 0 0 8px; }
.receipt-block p { margin: 4px 0; }
.receipt-table { width: 100%; border-collapse: collapse; }
.receipt-table th, .receipt-table td { border-bottom: 1px solid var(--line); padding: 9px 6px; text-align: left; vertical-align: top; }
.receipt-table th:nth-child(n+2), .receipt-table td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.receipt-table small { display: block; color: var(--muted); margin-top: 3px; }
.receipt-totals { display: grid; gap: 8px; margin-left: auto; width: min(360px, 100%); }
.receipt-totals div { display: flex; justify-content: space-between; gap: 12px; }
.receipt-grand-total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 20px; }
.receipt-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; margin-top: 16px; padding-top: 12px; text-align: center; overflow-wrap: anywhere; }
.qr-card { text-align: center; }
.qr-card img { width: 160px; height: 160px; margin: 8px auto 14px; display: block; }
.product-preview { width: 160px; height: 110px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; display: block; }
.product-thumb { width: 70px; height: 52px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; display: inline-grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.product-thumb.empty { background: #f8fafc; padding: 6px; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(135deg, #102027, #0f766e); }
.login-card { width: min(900px, 100%); display: grid; grid-template-columns: 1fr 380px; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.login-hero { padding: 46px; background: #101820; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.login-hero span { color: #7dd3c7; font-weight: 700; }
.login-hero h1 { font-size: 42px; margin: 12px 0; }
.login-form { padding: 38px; }

.menu-page { background: #f5f0e8; }
.menu-wrap { width: min(820px, 100%); margin: 0 auto; padding: 24px 16px; }
.menu-wrap header { margin-bottom: 18px; }
.delivery-hero { background: #101820; color: #fff; border-radius: 8px; padding: 22px; box-shadow: 0 18px 42px rgba(16, 24, 32, .18); }
.delivery-hero span { color: #b8c4ce; }
.delivery-hero h1 { font-size: 34px; margin: 4px 0 6px; }
.delivery-hero p { color: #dbe5ed; margin: 0; }
.delivery-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.delivery-hero-meta strong, .delivery-hero-meta span { display: inline-flex; align-items: center; min-height: 30px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 5px 10px; font-size: 13px; color: #eaf2f7; }
.delivery-hero-meta strong { background: var(--primary); border-color: var(--primary); color: #fff; }
.menu-wrap h2 { font-size: 20px; margin: 0; color: var(--ink); }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border: 1px solid #eadcc9; border-radius: 8px; background: #fffdf8; }
.menu-thumb-wrap { flex: 0 0 92px; }
.menu-thumb { width: 92px; height: 74px; object-fit: cover; border-radius: 8px; border: 1px solid #eadcc9; background: #fff; display: grid; place-items: center; color: var(--muted); font-size: 12px; text-align: center; }
.menu-thumb-empty { padding: 8px; }
.delivery-order { padding-bottom: 28px; }
.order-section, .order-success { background: #fff; border: 1px solid #eadcc9; border-radius: 8px; padding: 18px; margin-bottom: 16px; box-shadow: 0 10px 28px rgba(97, 68, 32, .07); }
.order-section-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.order-section-heading p { color: var(--muted); margin: 4px 0 0; }
.menu-category { position: sticky; top: 0; z-index: 3; background: #fff; border-bottom: 1px solid #eadcc9; padding: 12px 0 8px; margin: 12px 0 10px; font-size: 15px; color: var(--accent); }
.order-success h2 { margin: 0 0 14px; font-size: 20px; color: var(--ink); }
.order-item { align-items: center; }
.order-item .item-info { min-width: 0; flex: 1; }
.order-item .item-info strong { display: block; font-size: 16px; line-height: 1.25; }
.product-description { color: var(--muted); font-size: 13px; line-height: 1.35; margin: 5px 0 0; }
.order-item span { color: var(--muted); }
.product-price { display: inline-block; margin-top: 5px; color: var(--primary) !important; font-weight: 800; }
.qty-stepper { display: inline-grid; grid-template-columns: 42px 42px 42px; width: 126px; align-items: center; border: 1px solid #d7dee7; border-radius: 8px; overflow: hidden; flex: 0 0 126px; background: #fff; }
.qty-btn { width: 42px; height: 38px; border: 0; background: #f8fafc; color: var(--primary); font-size: 22px; font-weight: 700; line-height: 1; }
.qty-btn:hover { background: var(--primary-soft); }
.qty-value { display: grid; place-items: center; height: 38px; border-left: 1px solid #d7dee7; border-right: 1px solid #d7dee7; font-weight: 700; }
.qty-stepper.has-items { border-color: var(--primary); }
.troco-group[hidden] { display: none; }
.payment-warning { border-left: 4px solid #d97706; background: #fff8ed; border-radius: 0 8px 8px 0; padding: 12px 14px; color: var(--ink); }
.payment-warning[hidden] { display: none; }
.payment-warning strong { display: block; color: #b45309; margin-bottom: 4px; }
.payment-warning p { margin: 4px 0; }
.order-total { position: sticky; bottom: 14px; z-index: 20; width: 100%; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: #101820; color: #fff; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 12px; box-shadow: 0 18px 45px rgba(0,0,0,.2); }
.order-total span, .order-total small { display: block; color: #b8c4ce; }
.order-total strong { font-size: 22px; }
.success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.tracking-page .order-section p, .tracking-page .order-success p { margin: 6px 0; }
.tracking-live { display: block; color: var(--muted); margin: -4px 0 10px; }
.tracking-sound { margin-bottom: 10px; }
.tracking-updated .tracking-summary { animation: trackingPulse .9s ease; }
@keyframes trackingPulse {
    0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, .25); }
    100% { box-shadow: 0 0 0 12px rgba(15, 118, 110, 0); }
}
.tracking-summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tracking-summary span { color: var(--muted); font-weight: 700; }
.tracking-search { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.tracking-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tracking-step { position: relative; min-height: 92px; border: 1px solid var(--line); border-radius: 8px; padding: 14px 10px; background: #f8fafc; text-align: center; }
.tracking-step span { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 50%; background: #e2e8f0; color: var(--muted); font-weight: 700; }
.tracking-step strong { display: block; margin-top: 8px; font-size: 14px; }
.tracking-step.done, .tracking-step.active { border-color: #8ecfc4; background: #eefaf8; }
.tracking-step.done span, .tracking-step.active span { background: var(--primary); color: #fff; }
.tracking-step.active { box-shadow: 0 0 0 3px rgba(15, 118, 110, .12); }
.tracking-items { display: grid; gap: 8px; }
.tracking-items div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eadcc9; padding: 10px 0; }
.tracking-items div:last-child { border-bottom: 0; }
.tracking-items span { color: var(--muted); white-space: nowrap; }
.access-state { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #f6f2eb; }
.access-card { width: min(560px, 100%); background: #fff; border: 1px solid #eadcc9; border-radius: 8px; padding: 30px; box-shadow: 0 18px 50px rgba(15, 23, 42, .08); }
.access-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff8ed; color: #b45309; border: 1px solid #f1d39b; font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.access-eyebrow { display: block; color: #b45309; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.access-card h1 { font-size: 32px; margin: 0 0 8px; color: var(--ink); }
.access-lead { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.access-details { display: grid; gap: 10px; margin: 18px 0; }
.access-details div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #f8fafc; }
.access-details span { display: block; color: var(--muted); font-size: 13px; }
.access-details strong { display: block; margin-top: 4px; color: var(--ink); }
.access-note { border-left: 4px solid var(--accent); background: #fff8ed; padding: 12px 14px; margin: 18px 0; border-radius: 0 8px 8px 0; }

@media (max-width: 1200px) {
    .app-shell { grid-template-columns: 220px 1fr; }
    .sidebar { padding: 18px 12px; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .content-grid { grid-template-columns: 340px 1fr; }
}

@media (max-width: 980px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: min(310px, 86vw); height: 100vh; z-index: 1040; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 40px rgba(0,0,0,.25); }
    body.nav-open { overflow: hidden; }
    body.nav-open .sidebar { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; display: block; background: rgba(15, 23, 42, .45); opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 1030; }
    body.nav-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
    .sidebar-toggle { display: grid; place-items: center; }
    .main { padding: 18px; }
    .topbar { align-items: center; justify-content: flex-start; }
    .topbar .user-pill { margin-left: auto; }
    .metric-grid, .content-grid, .user-management-grid { grid-template-columns: 1fr; }
    .topbar, .payment-row, .filter-bar { align-items: stretch; flex-direction: column; }
    .topbar { align-items: stretch; }
    .topbar .sidebar-toggle { align-self: flex-start; }
    .topbar .user-pill { margin-left: 0; width: 100%; justify-content: space-between; }
    .panel-title { align-items: stretch; flex-direction: column; }
    .kitchen-toolbar, .kitchen-actions { align-items: stretch; flex-direction: column; }
    .payment-row .form-select, .payment-row .form-control { max-width: none; }
    .receipt-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .delivery-fee-row { grid-template-columns: 1fr 1fr; }
    .permission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .delivery-fee-row .btn { width: 100%; }
    .login-card { grid-template-columns: 1fr; }
    .login-hero { padding: 30px; }
    .login-hero h1 { font-size: 34px; }
    .login-form { padding: 30px; }
    .order-total { grid-template-columns: 1fr; align-items: stretch; }
    .tracking-summary, .tracking-search { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
    .tracking-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu-thumb-wrap { flex-basis: 72px; }
    .menu-thumb { width: 72px; height: 58px; }
    .qty-stepper { grid-template-columns: 38px 38px 38px; width: 114px; flex-basis: 114px; }
    .qty-btn, .qty-value { width: 38px; height: 36px; }
}

@media (max-width: 720px) {
    .main { padding: 14px; }
    .topbar h1 { font-size: 22px; overflow-wrap: anywhere; }
    .panel, .metric { padding: 14px; }
    .metric-grid, .shortcut-grid, .qr-grid, .kitchen-grid { grid-template-columns: 1fr; gap: 12px; }
    .metric strong { font-size: 24px; }
    .panel > .table, .panel table { display: block; width: 100%; overflow-x: auto; white-space: nowrap; }
    .table-responsive .table { min-width: 760px; }
    .password-reset-form { min-width: 220px; }
    .payment-row { width: 100%; }
    .payment-row .btn, .filter-bar .btn { width: 100%; }
    .print-actions { flex-direction: column; }
    .receipt-print { padding: 14px; }
    .receipt-meta { grid-template-columns: 1fr; }
    .stock-alert, .report-line { align-items: flex-start; flex-direction: column; gap: 4px; }
    .delivery-list article .d-flex { flex-direction: column; }
    .delivery-fee-row { grid-template-columns: 1fr; }
    .permission-grid { grid-template-columns: 1fr; }
    .product-preview { width: 100%; height: 180px; }
    .product-thumb { width: 58px; height: 46px; }
    .menu-wrap { padding: 14px 10px; }
    .delivery-hero { padding: 18px; }
    .delivery-hero h1 { font-size: 28px; }
    .delivery-hero-meta { gap: 6px; }
    .order-section, .order-success { padding: 14px; }
    .order-item { align-items: center; flex-wrap: wrap; }
    .order-item .item-info { flex-basis: calc(100% - 92px); }
    .qty-stepper { margin-left: auto; }
    .order-total { bottom: 8px; }
    .tracking-items div { align-items: flex-start; flex-direction: column; gap: 2px; }
    .access-state { align-items: start; padding: 16px; }
    .access-card { padding: 20px; }
    .access-card h1 { font-size: 26px; }
}

@media (max-width: 460px) {
    .main { padding: 10px; }
    .topbar { gap: 10px; margin-bottom: 14px; }
    .user-pill { align-items: flex-start; flex-wrap: wrap; }
    .login-page { padding: 10px; }
    .login-hero { padding: 22px; }
    .login-hero h1 { font-size: 28px; }
    .login-form { padding: 22px; }
    .menu-item { gap: 10px; padding: 12px; }
    .menu-thumb-wrap { flex-basis: 64px; }
    .menu-thumb { width: 64px; height: 54px; }
    .order-item .item-info { flex-basis: calc(100% - 76px); }
    .qty-stepper { width: 100%; flex-basis: 100%; grid-template-columns: 1fr 1fr 1fr; margin-left: 0; }
    .qty-btn, .qty-value { width: 100%; }
    .tracking-steps { grid-template-columns: 1fr; }
}

@media print {
    body { background: #fff; }
    .sidebar, .sidebar-backdrop, .topbar, .print-actions { display: none !important; }
    .app-shell { display: block; min-height: auto; }
    .main { padding: 0; }
    .receipt-print { width: 80mm; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; padding: 0; font-size: 12px; }
    .receipt-header h2 { font-size: 18px; }
    .receipt-meta { grid-template-columns: 1fr 1fr; gap: 4px; }
    .receipt-meta div, .receipt-block, .receipt-totals { border: 0; border-radius: 0; border-bottom: 1px dashed #999; padding: 6px 0; }
    .receipt-table th, .receipt-table td { padding: 5px 2px; border-bottom: 1px dashed #bbb; }
    .receipt-totals { width: 100%; }
}
