@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
  color-scheme: light;
  --bg:#f6f5f3; --card:#fff; --surface:#f0efec; --ink:#202023; --muted:#66666c;
  --line:#e3e1dd; --brand:#a8440c; --brand-ink:#fff; --accent:#fff0e5;
  --action:#ed7a2f; --action-ink:#21140c; --peach:#fff0e5; --warm:#93400f;
  --danger:#b52f31; --shadow:0 8px 30px #18181b06; --ok:#f9eadf; --ok-ink:#854019;
  --hero:#202023; --hero-muted:#c4c2c0; --ring:#b34a10; --sidebar:#202023;
  --heading:'DM Serif Display',Georgia,serif;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg:#111113; --card:#1b1b1e; --surface:#242427; --ink:#f4f3f1; --muted:#afadb2;
  --line:#363538; --brand:#ffad76; --brand-ink:#21140c; --accent:#35271f;
  --action:#f48c45; --action-ink:#21140c; --peach:#39291f; --warm:#ffb581;
  --danger:#ff999b; --shadow:0 8px 30px #0002; --ok:#36281f; --ok-ink:#ffc49c;
  --hero:#1b1b1e; --hero-muted:#bfbdc2; --ring:#ffad76; --sidebar:#18181b;
}
* {box-sizing:border-box}
html {scroll-behavior:smooth;scroll-padding-top:24px}
body {margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 'DM Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea {font:inherit}
button {cursor:pointer;touch-action:manipulation}
button:disabled {cursor:not-allowed;opacity:.48}
a {color:inherit;text-decoration:none;touch-action:manipulation}
h1,h2,h3,p {margin:0}
h1,h2,h3 {line-height:1.2}
h4 {line-height:1.4}
img {display:block;max-width:100%}
svg.icon {width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hidden {display:none!important}
.muted {color:var(--muted)}
.error-text {color:var(--danger);font-size:13px}
.eyebrow {font-size:10px;letter-spacing:.15em;font-weight:700;color:var(--brand);margin-bottom:9px}
:focus-visible {outline:2px solid var(--ring);outline-offset:4px}
.skip-link {position:fixed;left:16px;top:-100px;z-index:200;background:var(--card);padding:12px 18px;border:2px solid var(--brand);border-radius:8px}
.skip-link:focus {top:12px}
.topbar {background:var(--card);border-bottom:1px solid var(--line)}
.topbar-inner {max-width:1320px;min-height:82px;margin:auto;padding:14px 32px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand {display:inline-flex;align-items:center;gap:12px;min-width:0}
.brand>span:last-child {min-width:0}
.brand strong {display:block;font-family:var(--heading);font-size:25px;font-weight:400;letter-spacing:-.02em;overflow-wrap:anywhere;line-height:1.12}
.brand small {display:block;font-size:9px;font-weight:600;letter-spacing:.23em;color:var(--muted);margin-top:5px}
.brand-mark {display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:var(--action);color:var(--action-ink);overflow:hidden;flex:none}
.brand-mark svg.icon {width:25px;height:25px}
.brand-mark img {width:100%;height:100%;object-fit:cover}
.top-actions {display:flex;align-items:center;gap:14px;flex:none}
.theme-toggle {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;border:1px solid transparent;background:transparent;color:var(--muted);padding:8px;border-radius:9px;font-size:12px;font-weight:500;white-space:nowrap}
.theme-toggle:hover {background:var(--surface);color:var(--ink)}
.theme-toggle svg.icon {width:18px;height:18px}
.theme-sun {display:none}
[data-theme=dark] .theme-sun {display:block}
[data-theme=dark] .theme-moon {display:none}
.switch-track {display:block;position:relative;width:30px;height:18px;border-radius:20px;background:#aaa7a3;flex:none}
.switch-track:after {content:'';position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background:#fff;transition:transform .2s}
[aria-pressed=true] .switch-track {background:var(--action)}
[aria-pressed=true] .switch-track:after {transform:translateX(12px);background:var(--action-ink)}
.text-link {font-size:12px;color:var(--muted);padding:10px 0 10px 20px;border-left:1px solid var(--line)}
.text-link:hover {color:var(--brand)}
.customer-wrap {max-width:1320px;margin:auto;padding:30px 32px 40px}
.welcome {position:relative;isolation:isolate;background:var(--hero);color:#fff;border:1px solid #ffffff0d;border-radius:18px;min-height:290px;display:grid;grid-template-columns:1.15fr 1fr;overflow:hidden}
.welcome-copy {padding:36px 42px;position:relative;z-index:2}
.welcome .eyebrow {color:#ffad76;letter-spacing:.18em}
.welcome h1 {font:400 clamp(34px,3.5vw,48px)/1.1 var(--heading);letter-spacing:-.025em}
.welcome h1 em {color:#ffad76;font-weight:400;font-style:normal}
.welcome p:not(.eyebrow) {color:var(--hero-muted);margin-top:15px;font-size:13px;max-width:480px;overflow-wrap:anywhere}
.welcome-meta {display:flex;align-items:center;gap:14px;margin-top:23px;flex-wrap:wrap}
.pill {display:inline-flex;align-items:center;gap:5px;border-radius:6px;background:var(--ok);color:var(--ok-ink);padding:5px 9px;font-size:11px;font-weight:600}
.pill.paused {background:var(--peach);color:var(--warm)}
.welcome .pill {background:#ffffff12;color:#ffceac;border:1px solid #ffffff15}
.welcome .pill.paused {color:#e0d9d4}
.table-label {font-size:12px;color:#d5d2cf}
.welcome-art {position:relative;min-height:100%;overflow:hidden}
.welcome-art:after {content:'';position:absolute;inset:0;background:linear-gradient(90deg,var(--hero),transparent 50%),linear-gradient(0deg,#0007,transparent 40%)}
.welcome-art img {width:100%;height:100%;position:absolute;inset:0;object-fit:cover;object-position:center 54%}
.welcome-art span {position:absolute;bottom:22px;right:26px;z-index:1;font-size:9px;letter-spacing:.23em;color:#fff}
.menu-layout {display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:30px;margin-top:38px;align-items:start}
.menu-main {min-width:0}
.section-heading,.panel-heading,.line-heading {display:flex;justify-content:space-between;gap:14px;align-items:center}
.line-heading>*,.section-heading>*,.panel-heading>* {min-width:0}
.line-heading strong:first-child {overflow-wrap:anywhere}
.line-heading strong:last-child {flex-shrink:0}
.section-heading h2,.panel-heading h2 {font:400 30px var(--heading);letter-spacing:-.02em}
#product-count {font-size:12px;white-space:nowrap}
.category-nav {display:flex;flex-wrap:wrap;gap:8px;margin:22px 0 28px}
.category-nav button,.filter-button {border:1px solid var(--line);color:var(--muted);background:var(--card);border-radius:8px;padding:10px 16px;font-weight:600;font-size:12px;min-height:44px;overflow-wrap:anywhere}
.category-nav button:hover,.filter-button:hover {color:var(--brand);border-color:var(--brand)}
.category-nav button.active,.filter-button.active {background:var(--ink);color:var(--card);border-color:var(--ink)}
.menu-group {margin-bottom:28px}
.group-header {display:flex;align-items:center;gap:14px;margin-bottom:14px}
.group-header h3 {font-size:15px;font-weight:600;letter-spacing:.01em}
.group-header:after {content:'';height:1px;background:var(--line);flex:1}
.product-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.product-card {position:relative;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:18px;min-height:184px;display:grid;grid-template-columns:minmax(0,1fr) 88px;gap:16px;transition:border-color .15s,box-shadow .15s}
.product-card:hover {border-color:var(--brand);box-shadow:var(--shadow)}
.product-info {min-width:0;display:flex;flex-direction:column}
.product-card h4 {margin:0 0 7px;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.product-card p {font-size:12px;line-height:1.6;color:var(--muted);flex:1;overflow-wrap:anywhere}
.product-card .price {margin-top:18px;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.product-image {width:88px;height:88px;border-radius:9px;object-fit:cover;background:var(--surface)}
.product-placeholder {display:grid;place-items:center;color:var(--brand);font-size:28px;background:var(--accent)}
.add-product {position:absolute;right:18px;bottom:15px;width:44px;height:44px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;font-size:23px;line-height:1}
.add-product:hover {background:var(--action);color:var(--action-ink);border-color:var(--action)}
.order-panel,.panel {background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
.order-panel {padding:24px;position:sticky;top:20px;scroll-margin-top:18px}
.order-panel .panel-heading h2 {font-size:27px}
.round-icon {display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--accent);color:var(--brand)}
.empty {padding:32px 12px;text-align:center;color:var(--muted);font-size:12px}
.empty strong {display:block;color:var(--ink);font-size:14px;margin-bottom:6px}
.notice {border:1px solid var(--line);border-radius:8px;background:var(--accent);padding:12px;color:var(--brand);font-size:12px;line-height:1.6;margin:16px 0;overflow-wrap:anywhere}
.notice.warning {background:var(--peach);color:var(--warm)}
.cart-line,.account-line {padding:16px 0;border-bottom:1px solid var(--line)}
.cart-line strong,.account-line strong {font-size:13px}
.line-sub {font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.qty-row {display:flex;gap:10px;align-items:center;margin-top:10px}
.qty-row button,.icon-button {display:inline-grid;place-items:center;min-width:44px;height:44px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--ink);flex:none}
.qty-row .remove {margin-left:auto;color:var(--danger);width:auto;padding:0 8px;font-size:11px}
.totals-row {display:flex;justify-content:space-between;gap:10px;padding:8px 0;font-size:13px;font-variant-numeric:tabular-nums}
.totals-row.total {font-weight:700;font-size:17px;border-top:1px solid var(--line);padding-top:14px;margin-top:6px}
#checkout {margin-top:20px}
.service-actions {display:grid;gap:9px;margin-top:20px;border-top:1px solid var(--line);padding-top:20px}
.primary,.secondary,.danger-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:8px;padding:10px 15px;font-weight:600;font-size:12px;text-align:center;line-height:1.4}
.primary {background:var(--action);color:var(--action-ink);border:1px solid var(--action)}
.primary:hover {filter:brightness(1.06)}
.secondary {border:1px solid var(--line);background:var(--card);color:var(--ink)}
.secondary:hover {background:var(--surface);border-color:var(--muted)}
.danger-button {border:1px solid var(--line);background:transparent;color:var(--danger)}
.danger-button:hover {border-color:var(--danger)}
.wide {width:100%}
.customer-footer {border-top:1px solid var(--line);color:var(--muted);font-size:11px;text-align:center;padding:25px 20px}
.customer-footer a {margin-left:10px;text-decoration:underline;text-underline-offset:3px}
.toast {position:fixed;z-index:100;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 18px;background:var(--ink);color:var(--card);border-radius:9px;box-shadow:var(--shadow);font-size:13px;font-weight:500;opacity:0;pointer-events:none;transition:opacity .2s;max-width:min(90vw,500px);width:max-content;overflow-wrap:anywhere}
.toast.show {opacity:1}
.modal {color:var(--ink);background:var(--card);border:1px solid var(--line);border-radius:14px;padding:0;width:min(580px,calc(100% - 32px));max-height:min(88vh,850px);max-height:min(88dvh,850px);box-shadow:0 24px 90px #0005;overscroll-behavior:contain}
.modal::backdrop {background:#101013b8;backdrop-filter:blur(3px)}
.modal-inner {padding:28px}
.modal-head {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px}
.modal-head>div {min-width:0}
.modal-head h2 {font:400 29px var(--heading);overflow-wrap:anywhere}
.modal-head p.muted {margin-top:9px;font-size:13px;overflow-wrap:anywhere}
.modal-close {display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;width:44px;height:44px;font-size:22px;flex:none}
.form-stack {display:grid;gap:16px}
.form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.form-stack label,.form-grid label,.field-label {font-size:12px;font-weight:600;color:var(--ink);display:grid;gap:7px;min-width:0}
input:not([type=checkbox]):not([type=radio]),select,textarea {width:100%;min-width:0;min-height:44px;background:var(--card);color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:10px 12px;outline:none}
input::placeholder,textarea::placeholder {color:var(--muted);opacity:1}
input:focus,select:focus,textarea:focus {border-color:var(--brand);box-shadow:0 0 0 3px var(--accent)}
textarea {resize:vertical;min-height:88px}
.check-row {display:flex!important;align-items:center;gap:11px!important;font-size:13px!important;font-weight:500!important;min-height:36px;overflow-wrap:anywhere}
.check-row input {accent-color:var(--action);width:19px;height:19px;flex:none}
.choice-group {min-width:0;border:1px solid var(--line);border-radius:9px;padding:14px;margin:18px 0}
.choice-group legend {max-width:100%;font-weight:600;font-size:13px;padding:0 7px;overflow-wrap:anywhere}
.choice-group .check-row {margin:6px 0}
.choice-hint {font-size:11px;color:var(--muted);font-weight:400}
.modal-actions {display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:24px}
.row-buttons {display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.badge {border-radius:5px;padding:5px 8px;background:var(--surface);color:var(--muted);font-size:10px;font-weight:600;white-space:nowrap}
.badge.received,.badge.bill_requested {background:var(--peach);color:var(--warm)}
.badge.ready,.badge.delivered {background:var(--ok);color:var(--ok-ink)}
.mobile-order-bar {display:none}

/* Administração */
.login-screen {min-height:100vh;min-height:100dvh;display:grid;place-items:center;padding:100px 18px 40px;position:relative;background:radial-gradient(ellipse at 50% 35%,var(--accent),transparent 65%)}
.back-link {position:absolute;left:28px;top:28px;color:var(--muted);font-size:12px;padding:8px 0}
.login-theme {position:absolute;right:24px;top:23px}
.login-card {background:var(--card);border:1px solid var(--line);border-top:3px solid var(--action);border-radius:14px;padding:34px;width:min(100%,430px);box-shadow:var(--shadow)}
.login-lock {display:grid;place-items:center;background:var(--accent);color:var(--brand);width:44px;height:44px;border-radius:10px;margin:32px 0 21px}
.login-card h1 {font:400 30px var(--heading);margin-bottom:10px}
.login-card form {margin-top:25px}
.admin-shell {display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}
.sidebar {position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:var(--sidebar);color:#f7f6f4;border-right:1px solid #ffffff0a;padding:28px 16px}
.sidebar .brand {padding:0 7px}
.sidebar .brand strong {font-size:23px}
.sidebar .brand small {color:#b5b1ad}
.side-label {font-size:9px;letter-spacing:.14em;font-weight:500;color:#a9a5a1;margin:45px 12px 14px}
.side-nav {display:grid;gap:6px}
.nav-short {display:none}
.side-nav button {width:100%;min-height:46px;border:1px solid transparent;background:transparent;color:#c2bfbc;border-radius:8px;padding:12px;text-align:left;font-size:12px;font-weight:500;display:flex;gap:12px;align-items:center}
.side-nav button:hover {background:#ffffff08;color:#fff}
.side-nav button.active {background:#f48c451c;color:#ffb17b;border-color:#f48c4520}
.side-nav svg.icon {width:19px;height:19px}
.sidebar-link {margin-top:auto;background:transparent;color:#ddd8d4;border-color:#49474a;font-weight:500}
.sidebar-link:hover {background:#ffffff09;color:#fff;border-color:#787276}
.sidebar-foot {font-size:10px;color:#a9a5a1;margin:18px 8px 0;line-height:1.7}
.admin-main {min-width:0}
.admin-top {min-height:76px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 34px;background:var(--card);border-bottom:1px solid var(--line);font-size:12px}
.admin-top .top-actions {margin-left:auto}
.admin-content {padding:32px 34px;max-width:1500px;margin:auto}
.page-heading {margin-bottom:28px}
.page-heading h1 {font:400 36px var(--heading);letter-spacing:-.02em;margin:4px 0 10px}
.page-heading>p:last-child {color:var(--muted);font-size:13px;max-width:650px}
.stats {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}
.stat {background:var(--card);border:1px solid var(--line);border-radius:10px;padding:19px;min-width:0}
.stat p {color:var(--muted);font-size:12px}
.stat strong {font-size:28px;font-weight:600;letter-spacing:-.04em;display:block;margin-top:9px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.stats .stat:first-child {border-top:2px solid var(--action)}
.panel {padding:24px;margin-bottom:18px}
.panel h2 {font-size:18px;font-weight:600}
.toolbar {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px}
.toolbar-group {display:flex;gap:8px;align-items:center;flex-wrap:wrap;min-width:0}
.toolbar input {max-width:260px}
.order-grid,.table-grid {display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:14px}
.admin-card {border:1px solid var(--line);border-radius:10px;background:var(--card);padding:19px;min-width:0}
.admin-card .row-buttons {margin-top:16px}
.order-detail {border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:14px 0;margin:14px 0}
.order-detail p {font-size:12px;margin-top:7px;overflow-wrap:anywhere}
.data-table-wrap {overflow-x:auto}
.data-table {border-collapse:collapse;width:100%;min-width:620px;text-align:left}
.data-table th {color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:600}
.data-table td,.data-table th {padding:16px 12px;border-bottom:1px solid var(--line)}
.data-table td {font-size:12px}
.data-table tr:last-child td {border:0}
.data-table small {display:block;color:var(--muted);max-width:300px;font-size:11px;margin-top:4px;overflow-wrap:anywhere}
.table-amount {font-size:28px;font-weight:600;letter-spacing:-.03em;margin:20px 0 8px;font-variant-numeric:tabular-nums}
.settings-panel {max-width:760px}
.icon-preview {width:76px;height:76px;display:grid;place-items:center;border-radius:12px;background:var(--accent);overflow:hidden;color:var(--brand);font-size:30px}
.icon-preview img {width:100%;height:100%;object-fit:cover}
.icon-preview svg.icon {width:30px;height:30px}
.finance-controls {display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:20px}
.finance-month {display:flex;align-items:end;gap:8px;flex-wrap:wrap}
.finance-month label {font-size:11px;color:var(--muted);display:grid;gap:5px}
.finance-month input {min-width:160px}
.finance-report {padding:24px}
.finance-totals {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}
.finance-totals .stat:last-child {background:var(--accent);border-color:var(--action)}
.finance-calendar {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-top:22px}
.finance-weekday {text-align:center;color:var(--muted);font-size:11px;font-weight:600;padding:8px}
.finance-day {background:var(--surface);border:1px solid var(--line);border-radius:7px;min-height:100px;padding:10px;display:grid;align-content:start;gap:10px;min-width:0}
.finance-day strong {font-size:12px;overflow-wrap:anywhere}
.finance-day small {font-size:10px;color:var(--muted)}
.finance-day.has-value {background:var(--ok)}
.finance-day.has-value strong {color:var(--ok-ink)}
.mobile-day {display:none}
.finance-foot {font-size:11px;color:var(--muted);margin-top:18px}
.qr-print img {margin:18px auto}

@media(max-width:1100px) {
  .menu-layout {gap:22px;grid-template-columns:minmax(0,1fr) 300px}
  .product-grid {grid-template-columns:1fr}
  .product-card {min-height:160px;grid-template-columns:minmax(0,1fr) 96px}
  .product-image {width:96px;height:85px}
  .welcome-copy {padding:34px}
  .admin-shell {grid-template-columns:216px minmax(0,1fr)}
  .admin-content {padding:28px 24px}
  .stats {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px) {
  html {scroll-padding-top:18px}
  .topbar-inner {min-height:72px;padding:12px 18px;gap:10px}
  .brand {gap:10px}
  .brand strong {font-size:23px}
  .brand-mark {width:40px;height:40px;border-radius:10px}
  .top-actions {gap:7px}
  .theme-toggle {padding:8px;gap:7px}
  .theme-toggle>span {display:none}
  .desktop-only {display:none!important}
  .customer-wrap {padding:18px 18px 28px}
  .welcome {min-height:245px;grid-template-columns:1fr;border-radius:12px}
  .welcome-copy {padding:28px;max-width:100%}
  .welcome h1 {font-size:clamp(31px,5.5vw,40px);max-width:460px}
  .welcome p:not(.eyebrow) {max-width:75%;font-size:12px}
  .welcome-meta {gap:10px;margin-top:20px}
  .welcome-art {position:absolute;inset:0 0 0 40%;z-index:-1;opacity:.3}
  .welcome-art:after {background:linear-gradient(90deg,var(--hero),transparent),linear-gradient(0deg,var(--hero),transparent 80%)}
  .welcome-art span {display:none}
  .menu-layout {display:flex;flex-direction:column;gap:16px;margin-top:28px}
  .menu-main,.order-panel {width:100%}
  .section-heading h2 {font-size:29px}
  .category-nav {gap:7px;margin:18px 0 24px}
  .category-nav button {font-size:12px;padding:10px 13px;min-height:44px;max-width:100%}
  .product-grid {gap:11px}
  .product-card {min-height:157px;padding:17px;grid-template-columns:minmax(0,1fr) 94px;gap:18px}
  .product-image {width:94px;height:78px}
  .product-card h4 {font-size:15px}
  .product-card p {font-size:12px}
  .add-product {width:44px;height:44px;bottom:14px;right:17px}
  .order-panel {position:static;padding:22px;margin-top:3px}
  .mobile-order-bar {position:fixed;z-index:40;bottom:0;left:0;right:0;display:flex;align-items:center;gap:12px;padding:13px 18px calc(13px + env(safe-area-inset-bottom,0px));background:var(--card);color:var(--ink);border-top:1px solid var(--line);box-shadow:0 -4px 25px #00000008;min-height:76px}
  .mobile-order-count {display:grid;place-items:center;border-radius:8px;background:var(--action);color:var(--action-ink);width:40px;height:40px;flex:none;font-size:14px;font-weight:700}
  .mobile-order-copy {min-width:0;flex:1}
  .mobile-order-copy strong {display:block;font-size:13px}
  .mobile-order-copy small {display:block;color:var(--muted);font-size:10px;margin-top:2px;overflow-wrap:anywhere}
  #mobile-order-total {font-size:13px;white-space:nowrap}
  .mobile-order-bar>.icon {width:18px;height:18px;color:var(--brand)}
  .customer-page {padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
  .customer-page .toast {bottom:calc(92px + env(safe-area-inset-bottom,0px))}
  .customer-footer {font-size:10px}
  .qty-row button,.icon-button {min-width:44px;height:44px}
  .primary,.secondary,.danger-button,.filter-button {min-height:44px}
  input:not([type=checkbox]):not([type=radio]),select,textarea {font-size:16px}
  .check-row {min-height:44px}
  .modal {width:calc(100% - 20px);max-height:calc(100dvh - 24px);border-radius:12px}
  .modal-inner {padding:21px}
  .modal-head {margin-bottom:21px;gap:10px}
  .modal-head h2 {font-size:27px}
  .modal-close {width:44px;height:44px}
  .modal-actions {position:sticky;bottom:0;margin:20px -21px -21px;padding:16px 21px calc(16px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:var(--card);z-index:1}
  .modal-actions>.primary {flex:1}
  .form-grid {grid-template-columns:1fr}
  .admin-shell {display:flex;flex-direction:column}
  .sidebar {position:static;height:auto;padding:18px 18px 12px;border:0}
  .sidebar .brand {padding:0}
  .side-label,.sidebar-link,.sidebar-foot {display:none}
  .side-nav {grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-top:18px}
  .side-nav button {font-size:10px;padding:10px 2px 9px;justify-content:flex-start;flex-direction:column;gap:7px;min-height:68px;text-align:center;line-height:1.35}
  .side-nav button span {overflow-wrap:anywhere}
  .side-nav .nav-full {display:none}
  .side-nav .nav-short {display:inline}
  .side-nav svg.icon {width:19px;height:19px}
  .admin-top {min-height:58px;padding:7px 18px}
  .admin-top .theme-toggle span {display:inline}
  .admin-content {padding:26px 18px}
  .page-heading h1 {font-size:32px}
  .page-heading {margin-bottom:22px}
  .stats {gap:10px}
  .stat {padding:16px}
  .stat strong {font-size:26px}
  .panel {padding:18px}
  .toolbar {align-items:stretch}
  .toolbar>.primary {width:100%}
  .toolbar-group {width:100%}
  .toolbar-group input {max-width:none;flex-basis:100%}
  .toolbar>.toolbar-group>.secondary {flex:1}
  .order-grid,.table-grid {grid-template-columns:1fr}
  .data-table-wrap {overflow:visible;padding:0;background:none;border:0;box-shadow:none}
  .data-table {min-width:0;display:block}
  .data-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .data-table tbody {display:grid;gap:12px}
  .data-table tr {display:grid;grid-template-columns:minmax(0,1fr) auto;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:18px;gap:10px 15px}
  .data-table td,.data-table tr:last-child td {display:block;min-width:0;border:0;padding:0}
  .data-table td:first-child {grid-column:1/-1;font-size:14px}
  .data-table small {max-width:none;font-size:12px;margin-top:7px}
  .data-table td:nth-child(2) {font-size:11px;color:var(--muted)}
  .data-table td:nth-child(3) {grid-column:2;grid-row:2;text-align:right}
  .data-table td:nth-child(4) {grid-column:1/-1;border-top:1px solid var(--line);padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
  .data-table td:nth-child(4):before {content:'Disponível no cardápio';font-size:12px;color:var(--muted)}
  .data-table td:nth-child(5) {grid-column:1/-1}
  .data-table .row-buttons>* {flex:1}
  .finance-totals {grid-template-columns:1fr;gap:9px}
  .finance-totals .stat {display:flex;align-items:center;justify-content:space-between;gap:10px}
  .finance-totals .stat strong {font-size:21px;margin:0}
  .finance-report>.line-heading {flex-direction:column;align-items:flex-start;gap:8px}
  .finance-calendar {grid-template-columns:1fr;gap:8px}
  .finance-weekday,.finance-spacer {display:none}
  .finance-day {min-height:66px;grid-template-columns:1fr auto;align-items:center;gap:3px 10px;padding:12px}
  .finance-day strong {grid-column:2;grid-row:1/3;font-size:15px}
  .mobile-day {display:inline}
  .finance-controls,.finance-month {width:100%}
  .finance-month {display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .finance-month label {grid-column:1/-1;grid-row:1}
  .finance-controls .toolbar-group>* {flex:1}
  .login-card {padding:27px}
  .back-link {left:18px;top:22px}
  .login-theme {right:12px;top:20px}
}
@media(max-width:360px) {
  .customer-wrap {padding:14px}
  .welcome-copy {padding:23px}
  .welcome h1 {font-size:30px}
  .welcome p:not(.eyebrow) {max-width:100%}
  .product-card {grid-template-columns:minmax(0,1fr) 76px;gap:12px;padding:14px}
  .product-image {width:76px;height:76px}
  .add-product {right:14px}
  .side-nav button {font-size:9px}
  .mobile-order-bar {gap:9px;padding-left:14px;padding-right:14px}
  .mobile-order-bar>.icon {display:none}
  .brand strong {font-size:21px}
  .switch-track {display:none}
}
@media(prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto}
  *,*:before,*:after {transition:none!important;animation:none!important}
}

@page {size:A4 landscape;margin:10mm}
@media print {
  :root,:root[data-theme=dark] {color-scheme:light;--ink:#111;--card:#fff;--muted:#444;--line:#aaa;--bg:#fff;--surface:#fff;--brand:#111}
  body:has(.finance-report) {background:#fff;color:#111}
  .sidebar,.admin-top,.page-heading,.finance-controls,.toast,.mobile-order-bar {display:none!important}
  .admin-shell {display:block}
  .admin-content {padding:0;max-width:none}
  .finance-report {padding:0;border:0;box-shadow:none;color:#111;background:#fff}
  .finance-totals {grid-template-columns:repeat(3,1fr)!important;gap:6px}
  .finance-totals .stat {display:block!important;background:#fff!important;color:#111;border:1px solid #aaa;padding:8px}
  .finance-totals strong {font-size:17px!important;color:#111}
  .finance-calendar {grid-template-columns:repeat(7,1fr)!important;gap:4px;margin-top:12px}
  .finance-weekday,.finance-spacer {display:block!important}
  .finance-day {display:grid!important;min-height:17mm;background:#fff!important;border-color:#aaa;padding:5px;color:#111;gap:3px;break-inside:avoid}
  .finance-day strong {grid-column:auto!important;grid-row:auto!important;color:#111!important;font-size:11px!important}
  .finance-day small,.finance-foot,.muted {color:#444!important}
  .mobile-day {display:none!important}
  body:has(.qr-print) .admin-shell,body:has(.qr-print) .modal-head,body:has(.qr-print) .modal-actions {display:none!important}
  body:has(.qr-print) .modal {display:block!important;position:static!important;width:auto;max-height:none;border:0;box-shadow:none;color:#111;background:#fff}
  .qr-print {color:#111}
  .qr-print .notice {background:#fff;color:#111}
}

