:root {
    --ink: #0f172a;
    --muted: #55647a;
    --forest: #2563eb;
    --forest-dark: #1d4ed8;
    --mint: #e8eeff;
    --surface: #f4f7fb;
    --paper: #fff;
    --line: #e2e8f0;
    --gold: #b45309;
    --warm: #fef3c7;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 15px/1.45 "Segoe UI", system-ui, sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.top { height: 70px; display: flex; align-items: center; gap: 22px; padding: 0 26px 0 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 780; letter-spacing: -.08em; font-size: 31px; line-height: .87; color: #0f172a; }
.brand .brand-icon { width: 37px; height: 37px; place-items: center; display: grid; border-radius: 11px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #ffffff; font-size: 24px; letter-spacing: 0; box-shadow: 0 3px 10px #2563eb33; }
.brand .brand-icon svg { width: 20px; height: 20px; color: #ffffff; }
.brand .brand-icon .ico-accent { stroke: #bae6fd; }
.brand .brand-icon .ico-fill { fill: #ffffff; fill-opacity: .18; }
.brand-dot { color: #38bdf8; }
.brand small { display: block; margin-top: 6px; font-size: 8px; color: #64748b; letter-spacing: .14em; }
.venue { display: flex; align-items: center; gap: 8px; font-size: 13px; border-left: 1px solid var(--line); padding-left: 22px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.demo-chip { background: #e8eeff; border: 1px solid #cfe0ff; border-radius: 20px; padding: 2px 8px; font-size: 11px; color: #1d4ed8; font-weight: 600; }
.operator { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.operator small { display: block; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: #e8eeff; color: #1d4ed8; font-weight: 700; }
.workspace { display: grid; min-height: calc(100vh - 70px); grid-template-columns: 84px 186px minmax(0,1fr); }
.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px 14px; color: #5b6b82; border-right: 1px solid #e5eaf2; background: #f8faff; }
.area { position: relative; width: 68px; min-height: 60px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 0; border-radius: 12px; color: #54647a; background: transparent; font-size: 11px; font-weight: 560; letter-spacing: -.01em; text-decoration: none; transition: background-color .16s ease, color .16s ease; }
.area span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 19px; line-height: 1; color: #475569; background: #eef3fb; transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease; }
.area span svg, .ui-ico { width: 21px; height: 21px; display: block; flex-shrink: 0; color: var(--ico-stroke, currentColor); }
.ui-ico .ico-fill { fill: var(--ico-fill, currentColor); fill-opacity: .2; stroke: none; transition: fill-opacity .16s ease; }
.ui-ico .ico-accent { stroke: var(--ico-accent, var(--ico-stroke, currentColor)); }
.ui-ico .ico-accent-fill { fill: var(--ico-accent, currentColor); fill-opacity: .24; stroke: none; transition: fill-opacity .16s ease; }
.ui-ico[data-ico="ventas"] { --ico-stroke: #1b6b46; --ico-fill: #34a867; --ico-accent: #d97706; }
.ui-ico[data-ico="caja"] { --ico-stroke: #b45309; --ico-fill: #f59e0b; --ico-accent: #15803d; }
.ui-ico[data-ico="catalogo"] { --ico-stroke: #1d4ed8; --ico-fill: #3b82f6; --ico-accent: #d97706; }
.ui-ico[data-ico="reportes"] { --ico-stroke: #6d28d9; --ico-fill: #8b5cf6; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="ajustes"] { --ico-stroke: #475569; --ico-fill: #94a3b8; --ico-accent: #0d9488; }
.ui-ico[data-ico="demos"] { --ico-stroke: #0f766e; --ico-fill: #14b8a6; --ico-accent: #e07a24; }
.ui-ico[data-ico="clientes"] { --ico-stroke: #0369a1; --ico-fill: #38bdf8; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="agenda"] { --ico-stroke: #be123c; --ico-fill: #fb7185; --ico-accent: #e11d48; }
.ui-ico[data-ico="salon"] { --ico-stroke: #0f766e; --ico-fill: #2dd4bf; --ico-accent: #d97706; }
.ui-ico[data-ico="reparto"] { --ico-stroke: #c2410c; --ico-fill: #fb923c; --ico-accent: #2563eb; }
.ui-ico[data-ico="taller"] { --ico-stroke: #3730a3; --ico-fill: #6366f1; --ico-accent: #d97706; }
.ui-ico[data-ico="ticket"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="dinero"] { --ico-stroke: #15803d; --ico-fill: #4ade80; --ico-accent: #d97706; }
.ui-ico[data-ico="tendencia"] { --ico-stroke: #6d28d9; --ico-fill: #a78bfa; --ico-accent: #10b981; }
.ui-ico[data-ico="buscar"] { --ico-stroke: #2563eb; --ico-fill: #60a5fa; --ico-accent: #d97706; }
.ui-ico[data-ico="cocina"] { --ico-stroke: #c2410c; --ico-fill: #fb923c; --ico-accent: #2563eb; }
.ui-ico[data-ico="promo"] { --ico-stroke: #be123c; --ico-fill: #fb7185; --ico-accent: #d97706; }
.ui-ico[data-ico="alerta"] { --ico-stroke: #b45309; --ico-fill: #fbbf24; --ico-accent: #dc2626; }
.ui-ico[data-ico="escudo"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #10b981; }
.ui-ico[data-ico="auto"] { --ico-stroke: #0369a1; --ico-fill: #38bdf8; --ico-accent: #d97706; }
.ui-ico[data-ico="obra"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #d97706; }
.ui-ico[data-ico="acopio"] { --ico-stroke: #0f766e; --ico-fill: #2dd4bf; --ico-accent: #2563eb; }
.ui-ico[data-ico="optica"] { --ico-stroke: #0f766e; --ico-fill: #2dd4bf; --ico-accent: #2563eb; }
.ui-ico[data-ico="receta"] { --ico-stroke: #2563eb; --ico-fill: #60a5fa; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="gym"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #d97706; }
.ui-ico[data-ico="joya"] { --ico-stroke: #0369a1; --ico-fill: #38bdf8; --ico-accent: #d97706; }
.ui-ico[data-ico="aula"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="helado"] { --ico-stroke: #0369a1; --ico-fill: #38bdf8; --ico-accent: #d97706; }
.ui-ico[data-ico="vet"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="tijera"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #d97706; }
.ui-ico[data-ico="spa"] { --ico-stroke: #0369a1; --ico-fill: #38bdf8; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="cancha"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="bici"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #d97706; }
.ui-ico[data-ico="pintura"] { --ico-stroke: #0369a1; --ico-fill: #38bdf8; --ico-accent: #e11d48; }
.ui-ico[data-ico="compu"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="vivero"] { --ico-stroke: #15803d; --ico-fill: #4ade80; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="servicios"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #d97706; }
.ui-ico[data-ico="presupuesto"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #d97706; }
.ui-ico[data-ico="alerta"] { --ico-stroke: #b45309; --ico-fill: #fbbf24; --ico-accent: #dc2626; }
.ui-ico[data-ico="bebidas"], .ui-ico[data-ico="musica"], .ui-ico[data-ico="jugueteria"] { --ico-stroke: #6d28d9; --ico-fill: #a78bfa; --ico-accent: #d97706; }
.ui-ico[data-ico="limpieza"], .ui-ico[data-ico="lavanderia"], .ui-ico[data-ico="lavadero"], .ui-ico[data-ico="vidrio"], .ui-ico[data-ico="congelados"] { --ico-stroke: #0369a1; --ico-fill: #38bdf8; --ico-accent: #0f9f6e; }
.ui-ico[data-ico="telas"], .ui-ico[data-ico="mueble"], .ui-ico[data-ico="madera"], .ui-ico[data-ico="panaderia"], .ui-ico[data-ico="pasta"], .ui-ico[data-ico="zapato"] { --ico-stroke: #b45309; --ico-fill: #fbbf24; --ico-accent: #1d4ed8; }
.ui-ico[data-ico="deportes"], .ui-ico[data-ico="agro"], .ui-ico[data-ico="farmacia"], .ui-ico[data-ico="salud"] { --ico-stroke: #15803d; --ico-fill: #4ade80; --ico-accent: #1d4ed8; }
.ui-ico[data-ico="papelera"], .ui-ico[data-ico="repuestos"], .ui-ico[data-ico="imprenta"], .ui-ico[data-ico="fabrica"], .ui-ico[data-ico="parking"], .ui-ico[data-ico="alquiler"], .ui-ico[data-ico="hotel"], .ui-ico[data-ico="constructora"], .ui-ico[data-ico="comex"], .ui-ico[data-ico="isp"], .ui-ico[data-ico="logistica"], .ui-ico[data-ico="combustible"], .ui-ico[data-ico="inmobiliaria"], .ui-ico[data-ico="contable"] { --ico-stroke: #1d4ed8; --ico-fill: #60a5fa; --ico-accent: #d97706; }
.area:has([data-ico="cocina"]) span { background: #feeee2; }
.area:has([data-ico="auto"]) span { background: #e4f3fc; }
.area:has([data-ico="obra"]) span { background: #e6f0fe; }
.area:has([data-ico="acopio"]) span { background: #e3f5f3; }
.area:has([data-ico="optica"]) span { background: #e3f5f3; }
.area:has([data-ico="receta"]) span { background: #e6f0fe; }
.area:has([data-ico="gym"]) span { background: #e6f0fe; }
.area:has([data-ico="joya"]) span { background: #e4f3fc; }
.area:has([data-ico="aula"]) span { background: #e6f0fe; }
.area:has([data-ico="helado"]) span { background: #e4f3fc; }
.area:has([data-ico="vet"]) span { background: #e6f0fe; }
.area:has([data-ico="tijera"]) span { background: #e6f0fe; }
.area:has([data-ico="spa"]) span { background: #e4f3fc; }
.area:has([data-ico="cancha"]) span { background: #e6f0fe; }
.area:has([data-ico="bici"]) span { background: #e6f0fe; }
.area:has([data-ico="pintura"]) span { background: #e4f3fc; }
.area:has([data-ico="compu"]) span { background: #e6f0fe; }
.area:has([data-ico="vivero"]) span { background: #e6f5ec; }
.area:has([data-ico="servicios"]) span { background: #e6f0fe; }
.area:has([data-ico="presupuesto"]) span { background: #e6f0fe; }
.area:has([data-ico="alerta"]) span { background: #fef3dc; }
.area:has([data-ico="ventas"]) span { background: #e6f5ec; }
.area:has([data-ico="caja"]) span { background: #fef3dc; }
.area:has([data-ico="catalogo"]) span { background: #e6f0fe; }
.area:has([data-ico="reportes"]) span { background: #f0eafd; }
.area:has([data-ico="ajustes"]) span { background: #eaeff4; }
.area:has([data-ico="demos"]) span { background: #e3f5f3; }
.area:has([data-ico="clientes"]) span { background: #e4f3fc; }
.area:has([data-ico="agenda"]) span { background: #fdeaf0; }
.area:has([data-ico="salon"]) span { background: #e3f5f3; }
.area:has([data-ico="reparto"]) span { background: #feeee2; }
.area:has([data-ico="taller"]) span { background: #eaeafd; }
.area:hover { background: #f0f4ff; color: #1d4ed8; }
.area:hover span { transform: translateY(-1px); box-shadow: 0 3px 8px #1d4ed818; }
.area.active { background: #e8eeff; font-weight: 700; color: #1d4ed8; }
.area.active::before { content: ''; position: absolute; left: -8px; top: 14px; bottom: 14px; width: 3.5px; border-radius: 0 4px 4px 0; background: #2563eb; }
.area.active span { background: #fff; box-shadow: 0 2px 7px #1d4ed81c, inset 0 0 0 1px #d4e0ff; }
.area.active .ui-ico .ico-fill { fill-opacity: .28; }
.area.active .ui-ico .ico-accent-fill { fill-opacity: .32; }
.switch-demo { margin-top: auto; padding-top: 10px; }
.switch-demo::after { content: ''; position: absolute; top: -6px; left: 10px; right: 10px; height: 1px; background: #e5eaf2; }
.section-nav { display: flex; flex-direction: column; gap: 10px; border-right: 1px solid #e5eaf2; background: #fff; padding: 24px 12px; }
.section-label { padding: 0 10px 6px; text-transform: uppercase; font-weight: 760; letter-spacing: .12em; font-size: 10.5px; color: #64748b; border-bottom: 1px solid #eef2f8; }
#submenus { display: grid; gap: 3px; }
.section-nav button { position: relative; padding: 9px 11px; text-align: left; color: #334155; background: transparent; border: 0; border-radius: 9px; font-size: 13px; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.section-nav button:hover { background: #f1f5ff; color: #1d4ed8; }
.section-nav button.selected { background: #e8eeff; color: #1d4ed8; font-weight: 680; }
.section-nav button.selected::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #2563eb; }
main { width: 100%; max-width: 1690px; padding: 27px 26px 40px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 20px; }
.overline { margin: 0 0 4px; color: #2563eb; font-size: 10px; font-weight: 790; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(27px,3vw,39px); line-height: 1.12; letter-spacing: -.055em; font-weight: 750; }
.intro > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; padding: 9px 13px; border: 1px solid transparent; text-decoration: none; font-weight: 650; font-size: 13px; white-space: nowrap; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: var(--forest-dark); }
.secondary { background: #fff; border-color: #cbd5e1; color: #1e3a8a; }
.secondary:hover { background: #f1f5ff; border-color: #93c5fd; }
.small { font-size: 12px; padding: 5px 9px; }
.full { width: 100%; }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin-bottom: 20px; }
.metrics > div { display: flex; align-items: center; gap: 11px; min-width: 0; background: var(--paper); padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; }
.metric-icon { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; font-size: 17px; }
.metric-icon svg { width: 18px; height: 18px; }
.metric-icon.occupied { background: var(--warm); color: var(--gold); }
.metric-icon.free { background: #e8eeff; color: var(--forest-dark); }
.metric-icon.account { background: #eef2f7; color: #475569; font-weight: 700; }
.metrics small { display: block; color: var(--muted); font-size: 11px; }
.metrics strong { font-size: 19px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.service-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(275px,325px); align-items: start; gap: 15px; }
.map-card, .account-card, .table-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 3px 14px #0f172a0d; }
.map-card { overflow: hidden; }
.map-head, .map-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px; }
.zones { display: flex; flex-wrap: wrap; gap: 5px; }
.zones button { border: 0; border-radius: 7px; padding: 6px 9px; background: #f1f5f9; color: var(--muted); font-size: 12px; font-weight: 560; white-space: nowrap; }
.zones button:hover { background: #e8eeff; color: var(--forest-dark); }
.zones button.active { background: #e8eeff; color: var(--forest-dark); font-weight: 710; box-shadow: inset 0 0 0 1px #c7d9fc; }
.legend { display: flex; gap: 9px; align-items: center; font-size: 11px; color: var(--muted); }
.legend span { white-space: nowrap; }
.legend i { width: 8px; height: 8px; display: inline-block; border: 1px solid #60a5fa; border-radius: 50%; background: #dbeafe; }
.legend span + span i { border-color: #d97706; background: #fef3c7; }
.floor { height: clamp(360px,49vh,530px); position: relative; overflow: hidden; background: #f5f8fd; border-block: 1px solid var(--line); background-image: radial-gradient(#cbd5e1 1px,transparent 1px); background-size: 16px 16px; isolation: isolate; }
.floor::before { content: ''; position: absolute; inset: 16px; border: 2px solid #d7e1ef; border-radius: 12px; pointer-events: none; }
.floor.terraza { background-color: #eef5fc; }
.floor.custom::before, .floor.custom .map-mark { display: none; }
.map-mark { position: absolute; color: #64748b; font-size: 9px; font-weight: 760; letter-spacing: .15em; pointer-events: none; }
.bar { top: 10%; right: 5%; height: 58%; width: 8%; border: 1px solid #cbd5e1; border-radius: 5px; background: #e2e8f0; display: grid; place-items: center; writing-mode: vertical-rl; }
.terraza .bar { display: none; }
.entrance { bottom: 5%; left: 50%; transform: translateX(-50%); padding: 2px 6px; background: var(--surface); }
.planter { bottom: 9%; right: 5.6%; height: 10%; width: 6%; background: #dbeafe; border: 1px solid #bfdbfe; border-radius: 13px 3px; }
.map-foot { color: var(--muted); font-size: 12px; padding-block: 10px; }
.map-foot span:first-child { font-weight: 640; }
.mesa { position: absolute; transform: translate(-50%,-50%); width: 78px; height: 63px; display: grid; place-content: center; justify-items: center; align-content: center; gap: 2px; color: #1e40af; background: #f4f8ff; border: 2px solid #93b4f5; border-radius: 10px; box-shadow: 0 3px 0 #c7d9fc; z-index: 1; }
.mesa::before, .mesa::after { content: ''; position: absolute; left: 28%; width: 44%; height: 7px; background: #dbeafe; border: 1px solid #bfdbfe; z-index: -1; }
.mesa::before { top: -11px; border-radius: 5px 5px 1px 1px; }
.mesa::after { bottom: -12px; border-radius: 1px 1px 5px 5px; }
.mesa.round { width: 65px; border-radius: 50%; }
.mesa.open { color: #92400e; border-color: #e0a35c; background: #fff3db; box-shadow: 0 3px 0 #f3cfa3; }
.mesa.open::before, .mesa.open::after { background: #fde6c4; border-color: #e8be8c; }
.mesa.selected { outline: 3px solid #2563eb; outline-offset: 3px; z-index: 2; }
.mesa .name { font-size: 19px; font-weight: 760; line-height: 1; }
.mesa .occupancy { font-size: 10px; white-space: nowrap; }
.editing .mesa { cursor: grab; touch-action: none; }
.editing .mesa:active { cursor: grabbing; }
.layout-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 8px 13px; background: #e8eeff; color: var(--forest-dark); font-size: 11px; }
.layout-tools span { margin-right: auto; }
.account-card { min-height: 326px; }
.empty-account { display: grid; place-items: center; align-content: center; min-height: 324px; padding: 25px 15px; text-align: center; }
.empty-account > span { display: grid; place-items: center; width: 49px; height: 49px; color: var(--forest-dark); border-radius: 13px; background: #e8eeff; font-size: 23px; }
.empty-account > span svg { width: 22px; height: 22px; }
.empty-account h2 { margin: 13px 0 4px; font-size: 18px; }
.empty-account p { margin: 0; color: var(--muted); font-size: 12px; }
.account-head { padding: 15px; border-bottom: 1px solid var(--line); }
.account-head h2 { font-size: 23px; margin: 0; letter-spacing: -.04em; }
.account-head p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.account-body { padding: 13px 15px 16px; }
.account-body > .button { margin-bottom: 10px; }
.account-body > .button:last-child { margin-bottom: 0; }
.line-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 7px; border-bottom: 1px solid #eef2f7; padding: 9px 0; font-size: 13px; }
.line-item strong, .line-item small { display: block; }
.line-item small, .muted { color: var(--muted); }
.line-item .qty { display: inline-flex; align-items: center; gap: 5px; }
.qty button { font-size: 17px; width: 24px; height: 24px; border-radius: 6px; border: 1px solid #cbd5e1; color: var(--forest-dark); background: #f8faff; line-height: 1; }
.qty button:hover { background: #e8eeff; }
.account-total, .checkout-total { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 13px 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.account-total strong,.checkout-total strong { font-size: 19px; color: var(--forest-dark); }
.form-fields label, #checkout-form label { display: block; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
input:not([type=file]), select { width: 100%; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: var(--ink); }
label input, label select { display: block; margin-top: 4px; }
.open-list { min-height: 300px; padding: 4px 13px; }
.open-list button { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; width: 100%; text-align: left; gap: 8px; border: 0; border-top: 1px solid var(--line); background: white; padding: 13px 2px; color: var(--ink); }
.open-list button:hover { background: #f1f5ff; }
.open-list small { display: block; color: var(--muted); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
td,th { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 13px; }
th { color: #475569; background: #f3f6fc; }
tr:last-child td { border-bottom: 0; }
td a { color: var(--forest); font-weight: 660; }
.table-card .empty { margin: 0; padding: 22px; color: var(--muted); }
dialog { width: min(560px,calc(100vw - 28px)); max-height: 88vh; border: 1px solid var(--line); padding: 0; border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 22px 90px #0f172a40; }
dialog::backdrop { background: #0f172a70; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; letter-spacing: -.04em; }
.close { font-size: 23px; border: 0; background: #eff4fb; color: var(--forest-dark); border-radius: 7px; width: 34px; height: 34px; }
.close:hover { background: #dbeafe; }
.dialog-body { padding: 14px 20px 20px; }
.menu-groups { margin: 10px 0; }
.menu-results { max-height: 46vh; overflow: auto; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.menu-item small { display: block; color: var(--muted); }
#checkout-dialog { width: min(405px,calc(100vw - 28px)); }
.checkout-total { margin: 0 0 13px; padding-top: 0; }
#checkout-error, #status.error { background: #fef2f2; color: #991b1b; padding: 10px; border-radius: 8px; }
#status { margin-bottom: 12px; }
#toast { position: fixed; z-index: 5; bottom: 18px; right: 18px; max-width: min(420px,calc(100vw - 36px)); padding: 10px 14px; background: #1e3a8a; color: white; border-radius: 9px; box-shadow: 0 6px 22px #1e3a8a45; font-size: 13px; }
#toast a { margin-left: 9px; color: #bfdbfe; font-weight: bold; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 1220px) { .workspace { grid-template-columns: 70px 150px minmax(0,1fr); } main { padding-inline: 17px; } .service-grid { grid-template-columns: minmax(0,1fr) minmax(240px,270px); } }
@media (max-width: 1020px) { .service-grid { grid-template-columns: 1fr; } .account-card { min-height: 200px; } .empty-account { min-height: 200px; } }
@media (max-width: 670px) {
    .top { height: 60px; gap: 13px; padding-inline: 12px; }
    .brand { font-size: 25px; }
    .brand small { font-size: 6px; }
    .brand .brand-icon { width: 30px; height: 30px; }
    .venue { gap: 5px; font-size: 11px; padding-left: 10px; white-space: nowrap; }
    .operator > span:last-child { display: none; }
    .workspace { display: block; min-height: calc(100vh - 60px); }
    .rail { flex-direction: row; gap: 6px; justify-content: start; padding: 6px 10px; border: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
    .area { width: auto; min-width: 58px; min-height: 48px; padding: 5px 8px; }
    .area.active::before, .switch-demo::after { display: none; }
    .area span { width: 26px; height: 26px; }
    .area span svg { width: 18px; height: 18px; }
    .switch-demo { margin-top: 0; margin-left: auto; padding-top: 5px; }
    .section-nav { padding: 6px 10px; border: 0; border-bottom: 1px solid var(--line); }
    .section-label { display: none; }
    #submenus { display: flex; flex-wrap: wrap; }
    .section-nav button { padding: 6px 9px; }
    main { padding: 15px 10px 30px; }
    .page-head { align-items: end; margin-bottom: 13px; }
    .page-head .button { padding: 7px 8px; }
    .metrics { gap: 5px; margin-bottom: 12px; }
    .metrics > div { padding: 8px 6px; gap: 5px; }
    .metrics strong { font-size: 14px; }
    .metrics > div > span:last-child { min-width: 0; }
    .metrics > div:last-child strong { font-size: clamp(11px,3.25vw,14px); overflow-wrap: anywhere; }
    .metrics small { font-size: 9px; }
    .metric-icon { min-width: 22px; height: 22px; font-size: 12px; }
    .floor { height: 330px; }
    .map-head,.map-foot { padding: 8px; }
    .mesa { width: 57px; height: 52px; }
    .mesa.round { width: 51px; }
    .mesa .name { font-size: 17px; }
    .mesa .occupancy { font-size: 9px; }
    .legend { font-size: 9px; gap: 5px; }
    .zones button { font-size: 11px; padding: 5px 7px; }
}
