/* Panel de Tavola · pantallas: Hoy, Plano, Espera, Pedidos, Carta, Club, Avisos, Equipo. */
.datebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.datebar__pick { position: relative; flex: 1 1 160px; min-width: 0; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark); font: 600 18px var(--display); }
.datebar__pick span::first-letter { text-transform: uppercase; }
.datebar__pick input { position: absolute; inset: 0; opacity: 0; width: 100%; min-height: 0; cursor: pointer; }
.datebar__new { margin-left: auto; }
.view-title { font: 600 28px var(--display); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { padding: 14px 16px; border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark); display: grid; }
.kpi b { font: 600 40px/1 var(--display); letter-spacing: -.02em; }
.kpi span { color: var(--muted-dark); font-size: 13px; margin-top: 4px; }
.list { display: grid; gap: 10px; }
.group { display: grid; gap: 10px; margin-bottom: 14px; }
.group__title { display: flex; justify-content: space-between; align-items: baseline; font: 600 22px var(--display); padding: 6px 4px 0; }
.group__title span { font: 500 13px var(--sans); color: var(--muted-dark); }

/* reservas */
.rsv, .wrow, .mem, .alert, .staff, .item, .coupon, .day, .ord, .sheet-card {
  background: var(--ink-2); border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-dark);
}
.rsv { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 14px 16px; }
.rsv--arrived { background: linear-gradient(90deg, rgba(217, 160, 102, .2), var(--ink-2) 70%); box-shadow: inset 0 0 0 1.5px var(--pine); }
.rsv--seated { box-shadow: inset 3px 0 0 var(--orange), inset 0 0 0 1px var(--line-dark); }
.is-dim { opacity: .55; }
.rsv__time { font: 600 28px var(--display); letter-spacing: -.02em; }
.rsv__main { display: grid; gap: 6px; min-width: 0; }
.rsv__name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.rsv__party { display: inline-flex; align-items: center; gap: 4px; color: var(--pine); font-weight: 700; }
.rsv__party svg { width: 16px; height: 16px; }
.rsv__tel { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--muted-dark); }
.rsv__tel:hover { color: var(--paper); }
.rsv__acts { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.rsv__acts .btn { flex: 1 1 110px; max-width: 200px; }
@media (min-width: 900px) {
  .rsv { grid-template-columns: 72px minmax(0, 1fr) auto auto; }
  .rsv__acts { grid-column: auto; flex-wrap: nowrap; }
  .rsv__acts .btn { flex: none; }
}
.sheet-card { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 16px; align-items: center; }
.sheet-h { font: 600 18px var(--display); }
#app .modal .rsv__acts { justify-content: flex-start; }

/* espera */
.wrow { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; padding: 14px 16px; }
.wnum { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); font: 600 20px var(--display); color: var(--pine); flex: none; }
.wrow__main { flex: 1 1 200px; min-width: 0; display: grid; gap: 6px; font-size: 18px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.tgrid .btn { flex-direction: column; gap: 0; height: 64px; font-size: 18px; }
.modal .wrow { padding: 10px 12px; }

/* plano */
.floorbar { display: flex; gap: 8px; margin-bottom: 10px; }
.plan-scroll { overflow-x: auto; border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.plan {
  position: relative; aspect-ratio: 16 / 10; min-width: 620px; border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark);
  background-image: radial-gradient(rgba(246, 236, 223, .08) 1px, transparent 1px); background-size: 26px 26px;
}
.plan .empty { position: absolute; inset: 0; }
.tbl {
  position: absolute; width: calc(var(--w) * var(--s, 1) * 1px); height: calc(var(--h) * var(--s, 1) * 1px); transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  display: grid; place-items: center; background: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line-dark); transition: background-color .2s, box-shadow .2s;
}
.tbl--round { border-radius: 50%; }
.tbl--square, .tbl--rect { border-radius: 12px; }
.tbl__in { display: grid; justify-items: center; line-height: 1.1; transform: rotate(calc(var(--rot, 0deg) * -1)); pointer-events: none; }
.tbl__in b { font: 600 16px var(--display); }
.tbl__in small { font-size: 12px; opacity: .75; }
.tbl--soon { box-shadow: inset 0 0 0 2.5px var(--pine); }
.tbl--arrived { background: var(--pine); color: var(--ink); box-shadow: none; }
.tbl--seated { background: var(--orange); color: #fff; box-shadow: 0 8px 20px -8px rgba(224, 97, 28, .8); }
.tbl--edit { touch-action: none; cursor: grab; box-shadow: inset 0 0 0 2px var(--orange-2); }
.tbl--edit:active { cursor: grabbing; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; padding: 12px 4px; margin: 0; font-size: 13px; color: var(--muted-dark); }
.legend li { display: flex; align-items: center; gap: 6px; }
.dot { width: 14px; height: 14px; border-radius: 4px; background: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line-dark); }
.dot--soon { box-shadow: inset 0 0 0 2.5px var(--pine); }
.dot--arrived { background: var(--pine); box-shadow: none; }
.dot--seated { background: var(--orange); box-shadow: none; }

/* pedidos */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cols--done { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 14px; }
.col { display: grid; gap: 12px; }
.col__title { display: flex; justify-content: space-between; font: 600 22px var(--display); }
.col__title i { font: 600 14px var(--sans); font-style: normal; min-width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 999px; background: var(--ink-3); }
.col__empty { color: var(--muted-dark); padding: 6px 4px; }
.ord { display: grid; gap: 10px; padding: 16px; }
.ord--received { box-shadow: inset 0 0 0 1.5px var(--orange); }
.ord--ready { box-shadow: inset 0 0 0 1.5px var(--basil); }
.ord__head { display: flex; justify-content: space-between; align-items: baseline; }
.ord__code { font: 600 24px var(--display); }
.ord__lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 17px; }
.ord__lines b { color: var(--pine); }
.ord__note { padding: 8px 12px; border-radius: var(--radius-sm); background: rgba(224, 97, 28, .14); color: #ffb287; font-size: 14px; }
.ord .muted svg { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; }
.ord__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ord__name { color: var(--muted-dark); font-size: 14px; }
.ord__total { font: 600 24px var(--display); }
.ord__acts { display: grid; gap: 8px; }
.toggle-done { margin-top: 18px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } }

/* club, avisos, equipo */
.search { position: relative; display: block; margin-bottom: 12px; }
.search svg { position: absolute; left: 16px; top: 14px; opacity: .6; }
.search input:not([type=checkbox]):not([type=hidden]) { padding-left: 46px; border-radius: 999px; }
.mem, .staff, .alert { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.mem__main { flex: 1; min-width: 0; display: grid; gap: 4px; font-size: 18px; }
.mem__pts { text-align: right; display: grid; }
.mem__pts b { font: 600 36px/1 var(--display); color: var(--pine); }
.mem__pts span { font-size: 12px; color: var(--muted-dark); }
.alert { align-items: flex-start; }
.alert__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); flex: none; }
.alert__main { min-width: 0; display: grid; gap: 6px; }
.alert__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.alert__main p { overflow-wrap: anywhere; font-size: 15px; }
.alert__err { color: #ff9a8b; font-size: 13px; }
.staff { flex-wrap: wrap; }
.staff__main { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; font-size: 17px; }
.staff select { width: auto; min-width: 140px; }

/* carta y ajustes */
.settings { display: grid; gap: 12px; align-content: start; margin-top: 4px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr) 110px auto 44px; align-items: center; gap: 10px; padding: 10px 12px; }
.item input:not([type=checkbox]) { background: transparent; }
.money { position: relative; display: block; }
.money input:not([type=hidden]) { padding-right: 30px; text-align: right; }
.money span { position: absolute; right: 12px; top: 12px; color: var(--muted-dark); }
.day { padding: 12px 16px; display: grid; gap: 8px; }
.day__head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.day__shifts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.shift { display: flex; align-items: center; gap: 8px; }
.shift input { width: 130px; }
.coupon { padding: 16px; display: grid; gap: 12px; }
.coupon .btn { justify-self: start; }
.savebar { position: sticky; bottom: calc(var(--tabs-h) + 8px); display: grid; margin-top: 18px; }
.savebar .btn { box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .8), 0 10px 28px -12px rgba(224, 97, 28, .8); }
@media (min-width: 761px) { .savebar { bottom: 16px; justify-items: end; } }
@media (max-width: 760px) {
  .plan { min-width: 0; aspect-ratio: 4 / 3; --s: .8; }
  .tbl__in b { font-size: 14px; }
  .tbl__in small { font-size: 11px; }
}
@media (max-width: 600px) {
  .rsv { grid-template-columns: 58px minmax(0, 1fr); }
  .rsv__time { align-self: start; font-size: 24px; }
  .rsv__tel { grid-column: 2; justify-self: start; height: 34px; padding: 0; }
  .datebar__pick { font-size: 16px; white-space: nowrap; }
  .datebar__new { margin-left: 0; flex: 1 1 100%; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .item { grid-template-columns: 110px minmax(0, 1fr) 44px; }
  .item__name { grid-column: 1 / 3; }
  .item .icon-btn { grid-column: 3; grid-row: 1; }
  .item .switch { grid-column: 2 / 4; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.wrow__main > .pill { justify-self: start; }

/* plano: mobiliario, selección y mesas unidas */
.fx {
  position: absolute; width: calc(var(--w) * var(--s, 1) * 1px); height: calc(var(--h) * var(--s, 1) * 1px); transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  display: grid; place-items: center; border-radius: 8px; background: rgba(246, 236, 223, .05); box-shadow: inset 0 0 0 1px var(--line-dark);
  color: var(--muted-dark); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; overflow: hidden;
}
.fx__in { display: inline-flex; align-items: center; gap: 4px; transform: rotate(calc(var(--rot, 0deg) * -1)); white-space: nowrap; }
.fx svg { width: 14px; height: 14px; }
.fx--entrance { background: rgba(111, 138, 58, .16); box-shadow: inset 0 0 0 1.5px rgba(111, 138, 58, .6); color: #b9d680; }
.fx--restroom { background: rgba(120, 160, 200, .12); box-shadow: inset 0 0 0 1px rgba(120, 160, 200, .4); color: #a9c6e4; }
.fx--bar { background: rgba(217, 160, 102, .14); box-shadow: inset 0 0 0 1px rgba(217, 160, 102, .5); color: var(--pine); }
.fx--kitchen { background: rgba(224, 97, 28, .12); box-shadow: inset 0 0 0 1px rgba(224, 97, 28, .45); color: #ffb287; }
.fx--plant { border-radius: 50%; background: rgba(111, 138, 58, .28); box-shadow: none; color: #b9d680; }
.fx--wall { background: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(246, 236, 223, .22); border-radius: 3px; }
.fx--window { background: rgba(160, 200, 230, .16); box-shadow: inset 0 0 0 1px rgba(160, 200, 230, .5); border-radius: 3px; }
.fx--edit { pointer-events: auto; touch-action: none; cursor: grab; outline: 2px dashed var(--orange-2); outline-offset: 2px; }
.tbl--sel { box-shadow: 0 0 0 3px var(--paper), 0 8px 22px -8px rgba(246, 236, 223, .5); }
.tbl--sel.tbl--soon { box-shadow: 0 0 0 3px var(--paper), inset 0 0 0 2.5px var(--pine); }
.dot--sel { box-shadow: 0 0 0 2px var(--paper); background: transparent; }
.selbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 4px; min-height: 44px; }
.selbar--on { padding: 12px 14px; border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--paper); }
.selbar__sp { flex: 1 1 8px; }

/* selector de mesas y buscador de socios */
.pickbar { min-height: 30px; font-size: 17px; }
.tgrid--wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tgrid--wide .btn { flex-direction: row; gap: 8px; height: 56px; font-size: 15px; }
.tchip { position: relative; display: block; cursor: pointer; }
.tchip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tchip span { display: grid; place-items: center; height: 64px; border-radius: var(--radius-sm); background: var(--ink-3); box-shadow: inset 0 0 0 1.5px var(--line-dark); transition: background-color .15s; }
.tchip b { font: 600 18px var(--display); }
.tchip small { font-size: 12px; opacity: .7; }
.tchip input:checked + span { background: var(--orange); color: #fff; box-shadow: none; }
.tchip input:focus-visible + span { outline: 2px solid var(--orange-2); outline-offset: 2px; }
.tchip.is-off { opacity: .35; pointer-events: none; }
.guest { display: grid; gap: 8px; }
.guest .search { margin: 0; }
.hits { display: grid; gap: 4px; padding: 6px; border-radius: var(--radius-sm); background: var(--ink-3); }
.hit { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: 10px; text-align: left; width: 100%; }
.hit:hover, .hit:focus-visible { background: rgba(246, 236, 223, .1); }
.hit__av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--pine); color: var(--ink); font: 700 13px var(--sans); }
.hit__main { display: grid; min-width: 0; }
.hit__main small { color: var(--muted-dark); font-size: 12.5px; }
.hits__none { padding: 10px; }
.day__name::first-letter { text-transform: uppercase; }

.plan__links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plan__links line { stroke: var(--orange-2); stroke-width: 5; stroke-linecap: round; opacity: .55; vector-effect: non-scaling-stroke; }

/* SEO */
.seo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seo-head .chips { padding-bottom: 0; }
.seo-kpi { gap: 6px; align-content: start; }
.seo-kpi small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); }
.seo-kpi span { margin-top: 0; }
.seo-box { display: grid; gap: 10px; padding: 16px; margin-bottom: 14px; border-radius: var(--radius); background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-dark); }
.seo-box .group__title { padding: 0; }
.seo-box .kpi { background: var(--ink-3); }
.seo-funnel { display: flex; gap: 8px; align-items: stretch; }
.seo-funnel .kpi { flex: 1 1 0; min-width: 0; }
.seo-arrow { flex: none; display: grid; place-items: center; color: var(--muted-dark); }
.seo-scroll { overflow-x: auto; }
.seo-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.seo-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-dark); padding: 8px 10px; border-bottom: 1px solid var(--line-dark); }
.seo-table td { padding: 10px; border-bottom: 1px solid var(--line-dark); }
.seo-table th:first-child { width: 46%; }
.seo-table tr:last-child td { border-bottom: 0; }
.seo-table .is-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seo-hit { color: var(--pine); }
@media (max-width: 760px) {
  .seo-funnel { flex-direction: column; }
  .seo-arrow { transform: rotate(90deg); height: 20px; }
}
