@font-face {
  font-family: Inter Variable;
  src: url("/static/vendor/inter-latin-wght-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #000;
  --text: #191817;
  --muted: #615d59;
  --subtle: #a39e98;
  --paper: #fff;
  --warm: #f6f5f4;
  --line: #0000001a;
  --wash: #0000000d;
  --primary: #0075de;
  --primary-pressed: #005bab;
  --link: #097fe8;
  --tint: #e6f3fe;
  --tint-hover: #f2f9ff;
  --good-bg: #d0f4d8;
  --good-text: #1a5e30;
  --warning-bg: #fff0d0;
  --warning-text: #785009;
  --error-bg: #fde8e4;
  --error-text: #9c3224;
  --violet-bg: #eadbfa;
  --r-small: 4px;
  --r-action: 8px;
  --r-container: 12px;
  --r-pill: 9999px;
  --lift: 0 .175px 1.041px #00000003, 0 .8px 2.925px #00000005,
          0 2.025px 7.847px #00000007, 0 4px 18px #0000000a;
  --float: var(--lift), 0 23px 52px #00000008, 0 36px 89px #0000000a;
  --gutter: clamp(22px, 4vw, 62px);
  --bar-height: 64px;
  color-scheme: light;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.5 "Inter Variable", Inter, system-ui, "Segoe UI", sans-serif;
}

body.dark {
  --ink: #faf9f7;
  --text: #f2f0ed;
  --muted: #c0bbb6;
  --subtle: #8e8984;
  --paper: #1e1d1c;
  --warm: #272624;
  --line: #ffffff25;
  --wash: #ffffff12;
  --primary-pressed: #0064be;
  --link: #83c3ff;
  --tint: #173955;
  --tint-hover: #22496b;
  --good-bg: #254830;
  --good-text: #bcebc7;
  --warning-bg: #4c381c;
  --warning-text: #f1cf92;
  --error-bg: #542d29;
  --error-text: #ffb8ad;
  --violet-bg: #443754;
  color-scheme: dark;
  background: var(--paper);
  color: var(--text);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; }
button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-action);
  background: var(--paper);
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
button:hover, .btn:hover { background: var(--warm); border-color: var(--subtle); }
button:disabled { opacity: .48; cursor: default; }
.primary, .primary:hover, .primary:focus-visible { color: white; }
.primary { background: var(--primary); border-color: var(--primary); }
.primary:hover, .primary:focus-visible { background: var(--primary-pressed); border-color: var(--primary-pressed); }
.btn.secondary {
  border-color: transparent;
  background: var(--tint);
  color: var(--primary-pressed);
}
body.dark .btn.secondary { color: var(--link); }
.btn.secondary:hover { background: var(--tint-hover); }
.small { min-height: 30px; padding: 4px 10px; border-radius: var(--r-small); font-size: .8125rem; }
.primary.small { border-radius: var(--r-action); }
.danger { color: var(--error-text); }
.iconbtn { padding: 8px; }
:where(button, a, select, input, textarea, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); }
h1 { margin-bottom: 10px; font-size: clamp(2rem, 3.65vw, 3.375rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { margin-bottom: 14px; font-size: 1.375rem; font-weight: 650; line-height: 1.25; letter-spacing: -.25px; }
h3 { margin-bottom: 8px; font-size: 1rem; font-weight: 650; line-height: 1.4; }
p { line-height: 1.5; }
small, .muted, .help { color: var(--muted); }
.num, .date, .stat strong, .moneyrow { font-variant-numeric: tabular-nums; }
.num { white-space: nowrap; }
.crumb { margin: 0 0 9px; color: var(--muted); font-size: .75rem; font-weight: 550; letter-spacing: .125px; }
.spread { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.row, .tools, .filters, .pills { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.spacer { margin-block: 18px; }
.wide { grid-column: 1 / -1; }

.shell { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: 100dvh; }
.shell aside {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 0 12px 20px;
  overflow: auto;
  background: var(--warm);
  border-inline-end: 1px solid var(--line);
  scrollbar-width: thin;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 1.3125rem; font-weight: 750; line-height: 1.12; letter-spacing: -.25px; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .6875rem; font-weight: 500; letter-spacing: .125px; }
.mark { display: inline-grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--line); border-radius: var(--r-action); background: var(--paper); color: var(--ink); }
.mark .icon { width: 22px; height: 22px; }
.sidebrand {
  display: flex;
  min-height: var(--bar-height);
  align-items: center;
  padding: 0 7px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.sidegroup { margin: 17px 9px 5px; color: var(--muted); font-size: .75rem; font-weight: 550; letter-spacing: .125px; }
.navlink {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 31px;
  padding: 4px 9px;
  border-radius: var(--r-small);
  color: var(--text);
  font-size: .84375rem;
  font-weight: 480;
  text-decoration: none;
}
.navlink:hover { background: var(--wash); }
.navlink.sel, .navlink.sel:hover { background: var(--tint); color: var(--primary-pressed); font-weight: 650; }
body.dark .navlink.sel { color: var(--link); }
.navlink .icon { width: 15px; height: 15px; opacity: .78; }
.stage { min-width: 0; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: var(--bar-height);
  padding: 8px var(--gutter);
  background: var(--paper);
  box-shadow: 0 1px var(--line);
  font-size: .875rem;
}
.topbar > .row { flex-wrap: nowrap; min-width: 0; }
.topbar b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.topbar .date { color: var(--muted); text-transform: capitalize; font-size: .75rem; white-space: nowrap; margin-inline-end: 5px; }
.topbar button { background: transparent; border-color: transparent; }
.topbar button:hover { background: var(--warm); }
.topbar .web-indicator {
  background: var(--good-bg);
  border-radius: var(--r-pill);
  color: var(--good-text);
  padding-inline: 11px;
  white-space: nowrap;
}
.topbar .web-indicator.closed { color: var(--muted); background: var(--warm); }
.topbar .web-indicator:hover { box-shadow: inset 0 0 0 1px currentColor; }
.topbar .web-indicator .icon { width: 14px; height: 14px; }
.profile, .topbar .profile { width: 34px; min-width: 34px; min-height: 34px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-action); background: var(--warm); font-weight: 650; }
.mobileMenu { display: none; }
.main { max-width: 1512px; padding: 38px var(--gutter) 72px; margin-inline: auto; }
.pagehead { margin-bottom: 24px; align-items: end; }
.pagehead > div:first-child { min-width: 0; }
.pagehead h1:last-child { margin-bottom: 0; }

.hero, .service-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 26px;
  padding: clamp(24px, 3.7vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--r-container);
  margin-bottom: 24px;
  background: var(--warm);
}
.service-hero h1 { max-width: 15ch; margin: 0 0 19px; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 600; line-height: 1.035; letter-spacing: -.049em; text-wrap: balance; }
.hero h2 { max-width: 22ch; margin-bottom: 16px; font-size: clamp(1.75rem, 4vw, 3.375rem); font-weight: 650; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.heroart {
  position: relative;
  width: clamp(126px, 19vw, 241px);
  aspect-ratio: 1.25;
  color: #24211f;
}
.service-dish {
  position: absolute;
  top: 15%;
  left: 8%;
  display: grid;
  width: 65%;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: var(--r-pill);
  background: #fff;
  transform: rotate(-13deg);
}
.service-dish::before { content: ""; position: absolute; inset: 11%; border: 1px solid currentColor; border-radius: var(--r-pill); }
.service-dish .icon { width: 34%; height: 34%; }
.service-slip {
  position: absolute;
  top: 16%;
  right: 2%;
  display: grid;
  align-content: center;
  gap: 9%;
  width: 31%;
  height: 66%;
  padding: 12%;
  padding-inline: 6%;
  border: 2px solid currentColor;
  border-radius: var(--r-small);
  background: #fff;
  box-shadow: var(--lift);
  transform: rotate(13deg);
}
.service-slip .icon { width: 66%; height: auto; aspect-ratio: 1; margin: 0 auto 8%; }
.service-slip b { display: block; height: 1px; background: currentColor; }
.service-slip b:last-child { width: 66%; }
.service-spot { position: absolute; top: 1%; left: 8%; width: 13%; aspect-ratio: 1; border-radius: var(--r-pill); background: #eadbfa; }
.service-spot:last-child { top: 84%; left: 77%; width: 10%; background: #ffb110; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 22px; }
.stat, .card, .panel, .empty {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-container);
  background: var(--paper);
}
.stat { display: grid; gap: 5px; padding: 17px 18px; min-height: 121px; }
.stat span { color: var(--muted); font-size: .8125rem; font-weight: 550; overflow-wrap: anywhere; }
.stat strong { color: var(--ink); font-size: clamp(1.45rem, 2.65vw, 2.25rem); font-weight: 600; line-height: 1.15; letter-spacing: -.036em; }
.stat small { font-size: .75rem; line-height: 1.35; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 8px; }
.card, .panel { padding: 21px; }
.card { display: flex; flex-direction: column; align-items: flex-start; }
.card > .row:last-child, .card > button:last-child { margin-top: auto; }
.panel { margin-bottom: 16px; }
.empty { padding: 24px 16px; background: var(--warm); color: var(--muted); font-size: .875rem; text-align: center; }
.panel .empty { border: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 16px; }
.two > * { min-width: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: var(--r-pill); background: var(--tint); color: var(--primary-pressed); font-size: .75rem; font-weight: 600; line-height: 1.3; }
body.dark .pill { color: var(--link); }
.pill.amber, body.dark .pill.amber { background: var(--warning-bg); color: var(--warning-text); }
.pill.red, body.dark .pill.red { background: var(--error-bg); color: var(--error-text); }
.pill.gray, body.dark .pill.gray { background: var(--warm); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: var(--r-pill); background: currentColor; }

.tools, .filters, .pills { margin-bottom: 16px; }
.pills button, .filters button { min-height: 34px; padding: 5px 11px; border-radius: var(--r-pill); }
.pills button.sel, .filters button.sel { border-color: transparent; background: var(--tint); color: var(--primary-pressed); font-weight: 650; }
body.dark .pills button.sel, body.dark .filters button.sel { color: var(--link); }
.tools label, .filters label { margin: 0; }
.tools input, .filters input, .tools select, .filters select { width: auto; min-width: 112px; max-width: 100%; }
.filters label { color: var(--muted); font-size: .875rem; }
.tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-container); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: var(--warm); color: var(--muted); font-size: .75rem; font-weight: 550; letter-spacing: .125px; }
tbody tr:hover { background: var(--tint-hover); }
tr:last-child td { border-bottom: 0; }
.tight td { padding: 8px; }
.barChart { display: flex; align-items: flex-end; gap: 8px; height: 153px; padding: 5px; border-radius: var(--r-action); background: var(--warm); }
.barChart > div { display: flex; flex: 1; min-width: 0; height: 100%; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.barChart i { width: min(74%, 40px); min-height: 3px; border-radius: var(--r-small) var(--r-small) 0 0; background: color-mix(in srgb, var(--primary) 36%, var(--paper)); }
.barChart > div:last-child i { background: var(--primary); }
.barChart small { font-size: .6875rem; white-space: nowrap; }
.ledger, .ticketline { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.ledger:last-child { border: 0; }
.bigtable { min-height: 132px; padding: 15px; flex-direction: column; align-items: stretch; justify-content: space-between; border-radius: var(--r-container); text-align: left; }
.bigtable > .spread { gap: 5px; }
.bigtable strong { color: var(--ink); font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; }
.bigtable.taken { background: var(--tint-hover); border-inline-start: 3px solid var(--primary); }
.listbtn { display: block; width: 100%; text-align: left; margin: 4px 0; }
.dish { min-height: 105px; padding: 13px; flex-direction: column; align-items: flex-start; justify-content: space-between; text-align: left; }
.dish img { width: 100%; height: 115px; margin: 0; border-radius: var(--r-small); object-fit: cover; }
.dish strong { font-size: .9375rem; }
.ticket { align-self: start; border-top: 3px solid var(--primary); }
.ticketline small { display: block; }
.ticketline .icon { width: 14px; height: 14px; }
.cancelled { text-decoration: line-through; opacity: .6; }
.moneyrow { font-size: 1.125rem; margin: 16px 0; }
.statusbar { display: flex; gap: 8px; align-items: center; }

dialog {
  width: min(640px, 94vw);
  max-height: 90dvh;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-container);
  background: var(--paper);
  color: var(--text);
  box-shadow: var(--float);
}
dialog::backdrop { background: #19181758; }
.modalhead { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.modalhead h2 { margin: 0; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; align-content: start; gap: 6px; color: var(--text); font-size: .875rem; font-weight: 550; }
.field small { font-weight: 400; }
input, select, textarea { width: 100%; min-width: 0; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: var(--r-action); background: var(--paper); color: var(--text); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .9; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input[type=color] { min-height: 39px; padding: 3px 5px; }
.check { display: flex; gap: 9px; align-items: center; min-height: 34px; font-size: .875rem; font-weight: 500; }
.check input { flex: none; width: 16px; height: 16px; min-height: 0; accent-color: var(--primary); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 4px; }
.formfoot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 15px; margin-top: 19px; }
.error, .notice { padding: 11px 14px; border-radius: var(--r-action); background: var(--error-bg); color: var(--error-text); font-size: .875rem; line-height: 1.45; }
.error:not(:empty) { margin-bottom: 12px; }
.error:empty { display: none; }
.notice { background: var(--tint); color: var(--primary-pressed); }
body.dark .notice { color: var(--link); }
.map { height: 220px; border-radius: var(--r-action); z-index: 0; }
.leaflet-container img { max-width: none; }
.link { color: var(--link); text-decoration: underline; }
#toast { position: fixed; z-index: 100; bottom: 20px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 12px 19px; border-radius: var(--r-action); background: #1e1d1c; color: white; box-shadow: var(--lift); font-size: .875rem; pointer-events: none; }
#toast:empty, #paper { display: none; }
.loading { padding: 12vh 8vw; }

.login { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr); }
.login-art { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 24px; padding: clamp(28px, 5vw, 80px); background: var(--warm); border-inline-end: 1px solid var(--line); }
.login-brand { margin-bottom: auto; }
.login-art .display { max-width: 11ch; margin: 30px 0 0; color: var(--ink); font-size: clamp(3rem, 6.55vw, 6rem); font-weight: 600; line-height: 1.05; letter-spacing: -.048em; text-wrap: balance; }
.login-art .heroart { align-self: center; width: min(70%, 330px); margin: 0 0 9% auto; }
.signin { display: grid; align-content: center; justify-items: center; padding: 32px clamp(24px, 5vw, 80px); }
.signin form { width: min(100%, 390px); }
.signin h1 { margin-bottom: 17px; font-size: clamp(2.2rem, 4vw, 3.375rem); }
.signin .field { margin: 13px 0; }
.signin .primary { width: 100%; margin-top: 8px; }

.publichead { min-height: var(--bar-height); padding: 10px clamp(18px, 6vw, 86px); border-bottom: 1px solid var(--line); background: var(--paper); }
.publichead > b { color: var(--ink); font-size: .875rem; font-weight: 600; }
.publichead .mark { border-bottom: 2px solid var(--restaurant-color, var(--primary)); }
.public { max-width: 1238px; padding: 34px clamp(16px, 4vw, 52px) 80px; margin-inline: auto; }
.menu-hero h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); font-weight: 600; letter-spacing: -.046em; }
.menu-hero .muted { font-size: clamp(1rem, 2vw, 1.25rem); }
.menu-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 34%); }
.menu-cart { position: sticky; top: 16px; align-self: start; }
.menu-cart:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-container); }
.public .card > .spread { width: 100%; }
.public .card .cover { aspect-ratio: 3 / 2; }
.cover { width: 100%; max-height: 240px; margin-bottom: 15px; border-radius: var(--r-container); object-fit: cover; }
.hero-logo { display: block; max-width: 72px; max-height: 72px; margin-bottom: 12px; border-radius: var(--r-action); }
.qrgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
.qrgrid img { width: 125px; height: 125px; }
.qrgrid article { padding: 10px; border: 1px dashed var(--line); text-align: center; break-inside: avoid; }
.scroll { max-height: 52vh; overflow: auto; }
.note { margin: 6px 0 0; color: var(--muted); font-size: .8125rem; }
.steps { display: grid; gap: 10px; }
.thumb { width: 48px; height: 43px; border-radius: var(--r-small); object-fit: cover; vertical-align: middle; }

@media (max-width: 1060px) {
  .shell { grid-template-columns: 198px minmax(0, 1fr); }
  .two { grid-template-columns: 1fr; }
  .menu-cart { position: static; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .shell aside { display: none; }
  .shell.openmenu aside { display: block; position: fixed; z-index: 10; inset: 0 auto 0 0; width: min(262px, 82vw); box-shadow: 0 0 0 100vmax #19181755; }
  .mobileMenu { display: inline-flex; min-height: 44px; padding-inline: 8px; }
  .topbar { padding-inline: 12px; }
  .topbar .date { display: none; }
  .topbar > .row { gap: 4px; }
  .topbar .web-indicator { padding-inline: 7px; }
  .topbar .iconbtn, .topbar .profile { width: 32px; min-width: 32px; }
  .topbar .iconbtn { padding: 4px; }
  .main { padding: 24px 16px 52px; }
  .pagehead { margin-bottom: 19px; }
  .hero, .service-hero { padding: 22px 18px; margin-bottom: 17px; gap: 10px; }
  .service-hero h1 { margin-bottom: 14px; }
  .heroart { width: clamp(72px, 21vw, 145px); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 145px), 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { min-height: 99px; padding: 12px; }
  .card, .panel { padding: 14px; }
  .tablewrap th, .tablewrap td { padding: 9px 10px; }
  .public { padding-top: 20px; }
  .publichead { position: sticky; top: 0; z-index: 2; }
  .menu-cart { scroll-margin-top: calc(var(--bar-height) + 12px); }
  .public .two .grid { grid-template-columns: 1fr; }
  .login { display: block; }
  .login-art { min-height: 0; padding: 18px 24px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .login-art .display, .login-art .heroart { display: none; }
  .signin { align-content: start; padding-top: 11vw; }
  .formfoot { position: sticky; bottom: -24px; padding-bottom: 8px; background: var(--paper); }
}
@media (max-width: 380px) {
  .service-hero, .hero { grid-template-columns: minmax(0, 1fr); }
  .service-hero > .heroart, .hero > .heroart { display: none; }
  .topbar .web-indicator .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  button, .btn { transition: none; }
}

/* ---------- Ayudas de texto, aviso de logo y salón ---------- */
.hint { margin: 0 0 12px; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.tools .hint, td .hint { margin: 0; font-size: .8125rem; }
.nudge { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-container); background: var(--tint); }
.nudge > .icon { flex: none; width: 22px; height: 22px; color: var(--primary); }
.nudge b { color: var(--ink); }
.nudge p { margin: 2px 0 0; color: var(--text); font-size: .875rem; line-height: 1.45; }
.nudge > button { flex: none; margin-left: auto; }
@media (max-width: 640px) { .nudge { flex-wrap: wrap; } .nudge > button { margin-left: 0; } }
.signals { display: flex; flex-wrap: wrap; gap: 4px; }
.bigtable.joined { opacity: .8; border-inline-start-style: dashed; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); }
.dot.taken { border-color: var(--primary); background: var(--tint-hover); }
.steps-list { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; }
.steps-list li + li { margin-top: 6px; }
.steps-list code { padding: 1px 6px; border-radius: var(--r-small); background: var(--warm); font-size: .8125rem; }
.card.danger-zone { border-color: var(--error-bg); }
.card.danger-zone h2 { color: var(--error-text); }


/* ---------- Tabla de la carta ---------- */
.tablecard { border: 1px solid var(--line); border-radius: var(--r-container); background: var(--paper); overflow: hidden; }
.tablecard .tablewrap { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.tablecard > .empty { border-top: 1px solid var(--line); }
.tablebar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 16px; }
.tablebar > input[type=search] { width: min(280px, 100%); padding-left: 34px; background: var(--paper) url("/static/vendor/icons/search.svg") 10px 50% / 16px no-repeat; }
body.dark .tablebar > input[type=search] { background-image: none; padding-left: 10px; }
.tablebar .pills { margin: 0; }
.tablebar.sub { padding-top: 0; }
.tablebar .hint { margin: 0; }
.row.end { justify-content: flex-end; flex-wrap: nowrap; }
/* Editar y eliminar siempre a la vista: la última columna queda fija a la derecha aunque la tabla se desplace */
.tablecard th:last-child, .tablecard td:last-child { position: sticky; right: 0; z-index: 1; width: 1%; white-space: nowrap; }
.tablecard td:last-child { background: var(--paper); box-shadow: -8px 0 8px -8px #0000001f; }
.tablecard th:last-child { background: var(--warm); }
.tablecard .iconbtn { flex: none; }
.dishcell { display: flex; align-items: center; gap: 12px; min-width: 200px; max-width: 360px; }
.dishcell > div { min-width: 0; }
.dishcell b { color: var(--ink); font-weight: 650; }
.dishcell small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .8125rem; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dishcell .thumb { flex: none; width: 48px; height: 48px; }
.thumb.ph { display: inline-grid; place-items: center; background: var(--warm); color: var(--subtle); }
.thumb.ph .icon { width: 20px; height: 20px; }
.star { display: inline-flex; margin-left: 5px; vertical-align: -2px; color: #dd5b00; }
.star .icon { width: 14px; height: 14px; }
.price { display: flex; flex-direction: column; align-items: flex-start; white-space: nowrap; }
.price b { font-variant-numeric: tabular-nums; font-weight: 650; color: var(--ink); }
.price s, .price small { color: var(--muted); font-size: .75rem; }
.iconbtn { display: inline-grid; place-items: center; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); }
.iconbtn:hover { color: var(--ink); }
.iconbtn.danger:hover { background: var(--error-bg); color: var(--error-text); }
.iconbtn .icon { width: 17px; height: 17px; }

/* Interruptor (para la web de cada plato y la recepción de pedidos) */
.switch { position: relative; display: inline-flex; flex: none; width: 38px; min-width: 38px; height: 22px; min-height: 22px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--line); transition: background-color 160ms ease; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px #0003; transition: transform 160ms ease; }
button.switch:hover { background: var(--subtle); }
.switch[aria-checked=true], [aria-checked=true] > .switch, button.switch[aria-checked=true]:hover { background: var(--primary); }
.switch[aria-checked=true] i, [aria-checked=true] > .switch i { transform: translateX(16px); }

/* ---------- Barra superior ---------- */
.topbar .date b { color: var(--ink); font-weight: 650; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--good-text); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live.off { color: var(--error-text); }
.webctl { display: inline-flex; align-items: center; gap: 2px; padding: 2px 2px 2px 4px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.topbar .webswitch { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 2px 6px; border-radius: var(--r-pill); color: var(--good-text); font-weight: 600; white-space: nowrap; }
.webctl.closed .webswitch { color: var(--muted); }
.webswitch .icon { width: 15px; height: 15px; }
.webctl .iconbtn { width: 30px; min-width: 30px; height: 30px; min-height: 30px; border-radius: var(--r-pill); }
.topbar .notifybtn { border-color: var(--warning-bg); background: var(--warning-bg); color: var(--warning-text); white-space: nowrap; }
.topbar .notifybtn .icon { width: 15px; height: 15px; }
.bell { position: relative; }
.bell .badge { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-pill); background: var(--error-text); color: #fff; font-size: .625rem; font-weight: 700; line-height: 17px; text-align: center; }
.topbar .salonbtn, .topbar .salonbtn:hover { background: var(--primary); border-color: transparent; color: #fff; white-space: nowrap; }
.topbar .salonbtn:hover { background: var(--primary-pressed); }
.salonbtn kbd { margin-left: 2px; padding: 0 5px; border-radius: 4px; background: #ffffff33; font: inherit; font-size: .6875rem; }
.pending { display: grid; gap: 8px; }
.pending button { justify-content: space-between; width: 100%; min-height: 48px; text-align: left; }
@media (max-width: 1100px) { .topbar .date, .webswitch > span:not(.switch) { display: none; } }
@media (max-width: 900px) { .topbar .notifybtn { display: none; } }
@media (max-width: 760px) { .live, .salonbtn kbd, .webctl .iconbtn { display: none; } }

/* ---------- Pie del menú lateral: quién está conectado ---------- */
@media (min-width: 761px) { .shell aside { display: flex; flex-direction: column; } }
.shell aside nav { flex: 1; }
.whoami { position: sticky; bottom: -20px; display: flex; align-items: center; gap: 9px; margin: 14px -12px -20px; padding: 12px 12px 14px 16px; border-top: 1px solid var(--line); background: var(--warm); }
.whoami > div:not(.row) { flex: 1; min-width: 0; }
.whoami b, .whoami small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami b { color: var(--ink); font-size: .875rem; }
.whoami small { color: var(--muted); font-size: .75rem; }
.avatar { display: inline-grid; flex: none; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; }
.whoami .iconbtn { width: 30px; min-width: 30px; height: 30px; min-height: 30px; }
@media (max-width: 760px) { .shell.openmenu aside { display: flex; flex-direction: column; } }


/* ---------- Tomar pedido: carta y cuenta lado a lado ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; }
.order-layout.single { grid-template-columns: minmax(0, 560px); }
.menu-head { position: sticky; top: 0; z-index: 2; display: grid; gap: 10px; padding: 0 0 12px; background: var(--paper); }
.menu-head input[type=search] { width: 100%; padding-left: 34px; background: var(--paper) url("/static/vendor/icons/search.svg") 10px 50% / 16px no-repeat; }
body.dark .menu-head input[type=search] { background-image: none; padding-left: 10px; }
.menu-head .pills { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding-bottom: 2px; scrollbar-width: thin; }
.menu-head .pills button { flex: none; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 8px; }
.mcard { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 10px; align-items: start; min-height: 84px; padding: 10px; text-align: left; border-radius: var(--r-container); transition: border-color .14s ease, box-shadow .14s ease, transform .1s ease; }
.mcard:active:not(:disabled) { transform: scale(.98); }
.mcard.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.mphoto { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: var(--r-small); object-fit: cover; }
.mphoto.ph { display: grid; place-items: center; background: var(--warm); color: var(--subtle); }
.mphoto.ph .icon { width: 20px; height: 20px; }
.mname { color: var(--ink); font-weight: 600; font-size: .875rem; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.mfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; align-self: end; }
.mfoot b { color: var(--ink); font-variant-numeric: tabular-nums; font-size: .875rem; }
.mfoot small { padding: 1px 6px; border-radius: var(--r-pill); background: var(--warning-bg); color: var(--warning-text); font-size: .6875rem; font-weight: 600; }
.mcount { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; line-height: 22px; text-align: center; }
.cart { position: sticky; top: 12px; display: flex; flex-direction: column; min-height: min(70dvh, 620px); padding: 16px; border-top: 3px solid var(--primary); }
.chead { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 2px; color: var(--muted); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.chead:not(:first-child) { margin-top: 14px; }
.cline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 34px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cline.new { grid-template-columns: auto minmax(0, 1fr) auto 0; }
.cqty { min-width: 22px; color: var(--ink); text-align: center; }
.cname { display: block; color: var(--ink); font-weight: 600; font-size: .875rem; overflow-wrap: anywhere; }
.cline small { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.cline .pill { padding: 1px 7px; font-size: .6875rem; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.stepper b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.stepper .iconbtn { width: 28px; min-width: 28px; height: 28px; min-height: 28px; border-radius: var(--r-pill); }
.stepper .iconbtn .icon { width: 14px; height: 14px; }
.linkbtn { min-height: 0; padding: 0; border: 0; background: none; color: var(--link); font-size: .8125rem; font-weight: 500; text-decoration: none; }
.linkbtn:hover { background: none; text-decoration: underline; }
.linkbtn.danger { color: var(--error-text); }
.cline .linkbtn { display: block; margin-top: 2px; font-size: .75rem; color: var(--muted); }
.cempty { display: grid; place-items: center; gap: 8px; flex: 1; padding: 36px 12px; color: var(--muted); text-align: center; }
.cempty .icon { width: 28px; height: 28px; padding: 6px; border: 1.5px dashed var(--subtle); border-radius: var(--r-small); box-sizing: content-box; }
.cempty p { margin: 0; font-size: .875rem; }
.cfoot { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; }
.cfoot > .spread { color: var(--muted); font-size: .875rem; }
.ctotal { padding-top: 6px; color: var(--ink) !important; font-size: 1rem !important; font-weight: 600; }
.ctotal b { font-size: 1.5rem; font-weight: 750; letter-spacing: -.02em; }
.ctotal small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.cactions { display: grid; gap: 8px; }
.big { min-height: 46px; font-size: .9375rem; font-weight: 650; }
.ghost { border-color: transparent; background: var(--warm); }
.paybtn, .paybtn:hover { border-color: transparent; background: var(--ink); color: var(--paper); }
.paybtn:hover { opacity: .9; }
.clinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; padding-top: 4px; }
.cinfo { margin: 0 0 8px; color: var(--text); font-size: .875rem; line-height: 1.45; }
.row.wrap { flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; pointer-events: none; }
.chip span { display: inline-grid; place-items: center; min-width: 48px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-action); background: var(--paper); color: var(--ink); font-weight: 600; cursor: pointer; }
.chip span:hover { background: var(--warm); }
.chip input:checked + span { border-color: var(--primary); background: var(--primary); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 1000px) { .order-layout { grid-template-columns: 1fr; } .cart { position: static; min-height: 0; } }

.change { min-height: 1.5em; margin: 8px 0 0; font-size: 1rem; color: var(--ink); }
.change b { font-size: 1.25rem; }
.field[hidden] { display: none; }

/* Cocina: comandas por pedido en tres columnas */
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: 16px; }
.kcol { background: var(--warm); border-radius: var(--r-container); padding: 12px; min-height: 160px; }
.kcol h2 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 2px 4px 12px; }
.kcol h2 .count { min-width: 24px; padding: 1px 8px; border-radius: var(--r-pill); background: var(--paper); font-size: .8rem; text-align: center; color: var(--muted); }
.kempty { color: var(--subtle); text-align: center; padding: 28px 8px; margin: 0; }
.kticket { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--primary); border-radius: var(--r-container); padding: 12px; margin-bottom: 12px; box-shadow: var(--lift); display: grid; gap: 8px; }
.kticket.late { border-top-color: #dd5b00; }
.kticket.late .ktime { background: var(--warning-bg); color: var(--warning-text); }
.kticket header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kticket header b { overflow-wrap: anywhere; }
.ktime { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); background: var(--wash); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.ktime .icon { width: 14px; height: 14px; }
.kmeta { color: var(--muted); margin-top: -4px; }
.kline { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: start; padding: 8px 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
.kline small { display: block; color: var(--muted); font-size: .8rem; }
.kline .note { color: var(--error-text); font-weight: 600; font-size: .85rem; }
.kticket > button.big { width: 100%; justify-content: center; }
@media (max-width: 900px) { .kds { grid-template-columns: 1fr; } }

/* Salón y toma de pedido en pantallas angostas */
.bigtable:not(.taken) { border-style: dashed; }
.paneswitch { display: none; }
@media (max-width: 1000px) {
  .paneswitch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--warm); border-radius: var(--r-container); position: sticky; top: 0; z-index: 3; }
  .paneswitch button { border: 0; background: transparent; min-height: 40px; font-weight: 600; color: var(--muted); }
  .paneswitch button.sel { background: var(--paper); color: var(--ink); box-shadow: var(--lift); }
  .order-layout.pane-carta .cart, .order-layout.pane-cuenta .menu { display: none; }
}

/* ---------- Carta digital ---------- */
.pstrip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 7px clamp(16px, 5vw, 64px); background: var(--warm); border-bottom: 1px solid var(--line); color: var(--text); font-size: .8125rem; font-weight: 500; }
.pstrip > span { display: inline-flex; align-items: center; gap: 6px; }
.pstrip .icon { width: 15px; height: 15px; }
.pstatus { margin-inline-start: auto; color: var(--muted); }
.pstatus::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.pstatus.on { color: var(--good-text); }
.pstatus.on::before { background: var(--good-text); }
.phead { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 64px; padding: 8px clamp(16px, 5vw, 64px); background: var(--paper); border-bottom: 1px solid var(--line); }
.pbrand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.pbrand > span { display: grid; min-width: 0; }
.pbrand b { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.011em; }
.pbrand small { color: var(--muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34ch; }
.plogo { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r-action); background: var(--restaurant-color, var(--primary)); color: #fff; font-weight: 700; font-size: 1.125rem; object-fit: cover; }
.psearch { display: flex; align-items: center; gap: 8px; justify-self: center; width: min(100%, 440px); padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-action); background: var(--warm); }
.psearch:focus-within { border-color: var(--primary); background: var(--paper); }
.psearch .icon { color: var(--muted); width: 17px; height: 17px; flex: none; }
.psearch input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 40px; padding: 0; outline: none; }
.pcartbtn { position: relative; gap: 8px; min-height: 40px; }
.pbadge { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--r-pill); background: var(--ink); color: var(--paper); font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.pcats { position: sticky; top: 64px; z-index: 4; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 8px clamp(16px, 5vw, 64px); background: var(--paper); border-bottom: 1px solid var(--line); }
.pcats::-webkit-scrollbar { display: none; }
.pcat { flex: none; min-height: 34px; padding: 4px 14px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--paper); font-size: .875rem; font-weight: 500; white-space: nowrap; }
.pcat:hover { background: var(--warm); }
.pcat .icon { width: 15px; height: 15px; }
.pmain { max-width: 1240px; margin-inline: auto; padding: 20px clamp(16px, 5vw, 64px) 96px; }
.phero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: clamp(20px, 4vw, 40px); border-radius: var(--r-container); background: var(--warm); overflow: hidden; }
.phero h1 { margin: 12px 0 6px; font-size: clamp(2.25rem, 1.2rem + 4vw, 4rem); font-weight: 600; line-height: 1.05; letter-spacing: -.04em; color: var(--ink); }
.phero p { margin: 0 0 12px; color: var(--muted); font-size: clamp(1rem, .9rem + .4vw, 1.25rem); }
.phcover { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-container); }
.phero .heroart { justify-self: end; }
.pstate { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--paper); color: var(--muted); font-size: .75rem; font-weight: 600; }
.pstate::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--subtle); }
.pstate.on { color: var(--good-text); }
.pstate.on::before { background: var(--good-text); }
.pinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-container); background: var(--paper); box-shadow: var(--lift); }
.pinfo > div { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.pinfo > div + div { border-inline-start: 1px solid var(--line); }
.pinfo .ibox { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--primary); }
.pinfo .ibox .icon { width: 20px; height: 20px; }
.pinfo span { display: grid; }
.pinfo small { color: var(--muted); }
.pmain > .notice { margin-top: 14px; }
.playout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 28px; align-items: start; margin-top: 28px; }
.psec { scroll-margin-top: 124px; margin-bottom: 32px; }
.psec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; font-size: 1.375rem; font-weight: 700; letter-spacing: -.011em; color: var(--ink); }
.psec h2 small { color: var(--muted); font-size: .8125rem; font-weight: 500; letter-spacing: 0; }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.dcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-container); background: var(--paper); overflow: hidden; transition: box-shadow .2s cubic-bezier(.23, 1, .32, 1); }
.dcard:hover { box-shadow: var(--lift); }
.dcard.out { opacity: .7; }
.dopen { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; width: 100%; padding: 12px 12px 4px; border: 0; background: transparent; text-align: left; color: inherit; min-height: 0; border-radius: 0; font-weight: 400; }
.dopen:hover { background: transparent; }
.dimg { width: 88px; height: 88px; border-radius: var(--r-action); object-fit: cover; }
.dimg.ph { display: grid; place-items: center; background: var(--warm); color: var(--subtle); }
.dtxt { display: grid; gap: 4px; min-width: 0; }
.dtxt b { color: var(--ink); font-size: 1rem; font-weight: 600; line-height: 1.3; }
.dtxt small { color: var(--muted); font-size: .8125rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 6px 12px 12px; }
.dprice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.dprice b { color: var(--ink); font-size: 1rem; font-variant-numeric: tabular-nums; }
.dprice del { color: var(--muted); font-size: .8125rem; }
.dprice small { color: var(--warning-text); font-size: .75rem; font-weight: 600; }
.padd { background: var(--tint); color: var(--primary-pressed); border-color: transparent; }
.padd:hover { background: var(--tint-hover); }
.dcard .stepper .iconbtn { width: 32px; min-width: 32px; height: 32px; min-height: 32px; }
.pcart { position: sticky; top: 124px; display: grid; gap: 12px; }
.pcart:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-container); }
.pcart .panel h2, .pmini h2 { font-size: 1.125rem; margin: 0 0 6px; }
.pcart .cline, .pcartbody .cline { grid-template-columns: auto minmax(0, 1fr) auto 0; }
.pcart .big, .pcartbody .big { width: 100%; justify-content: center; margin-top: 12px; }
.pmini p { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.pmini .row { margin-top: 8px; flex-wrap: wrap; }
.pbar { display: none; }
.pfoot { padding: 24px; text-align: center; color: var(--muted); font-size: .75rem; border-top: 1px solid var(--line); }
.dvimg { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r-container); margin-bottom: 12px; }
#co-map .map { margin: 6px 0; }
#co-map[hidden] { display: none; }
@media (max-width: 900px) {
  .playout { grid-template-columns: 1fr; }
  .pcart { display: none; }
  .pbar { position: fixed; z-index: 6; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: var(--r-action); box-shadow: var(--float); }
  .pbar span { flex: 1; text-align: left; }
  .phero { grid-template-columns: 1fr; }
  .phero .heroart { display: none; }
  .pinfo > div + div { border-inline-start: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .phead { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .psearch { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; width: 100%; }
  .pcats { top: 113px; }
  .psec { scroll-margin-top: 170px; }
  .pbrand small { max-width: 22ch; }
  .pstatus { margin-inline-start: 0; }
}

/* Cobrar */
.paysum { background: var(--warm); border-radius: var(--r-container); padding: 12px 14px; margin: 4px 0 14px; display: grid; gap: 4px; }
.paysum .ctotal { font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.check[hidden] { display: none; }

/* Tickets */
.tkwrap { background: var(--warm); border-radius: var(--r-container); padding: 16px; max-height: 62vh; overflow: auto; }
.tk { width: 72mm; max-width: 100%; margin: 0 auto; padding: 12px 10px; background: #fff; color: #000; font: 12px/1.4 ui-monospace, "Cascadia Mono", "Courier New", monospace; box-shadow: var(--lift); }
.tk58 { width: 48mm; font-size: 11px; }
.tk hr { border: 0; border-top: 1px dashed #000; margin: 6px 0; }
.tkc { text-align: center; }
.tkname { font-size: 16px; letter-spacing: .02em; }
.tkbig { font-size: 15px; }
.tkrow { display: flex; justify-content: space-between; gap: 10px; }
.tkrow span:last-child { white-space: nowrap; text-align: right; }
.tktotal { font-size: 17px; font-weight: 700; margin-top: 2px; }
.tksmall { font-size: 11px; }
.tkqr img { width: 128px; height: 128px; margin: 6px auto 0; display: block; image-rendering: pixelated; }
.tk-kitchen .tkline { font-size: 15px; padding: 3px 0; }
.tk-kitchen i { font-weight: 700; }

@media print {
  body > * { display: none !important; }
  #paper { display: block !important; color: #000; background: white; font: 13px monospace; }
  #paper .tk { box-shadow: none; padding: 0; margin: 0; }
  #paper .qrgrid { display: grid; }
  #paper h2 { color: #000; font-size: 20px; }
  #paper a { color: #000; }
  #paper img { max-width: 100%; }
  @page { margin: 7mm; }
}

