/* Tables & QR + Reservations (pages/Tables.tsx, pages/Reservations.tsx). Ink, cards #F5F5F7, hairlines #E5E5EA; no orange. */
.tq-hero{margin-bottom:16px}.tq-hero .row{padding:18px 20px}.tq-hero .hint{padding:0 20px 14px;margin:0}
.tq-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:start}
.tq-side{display:flex;flex-direction:column;gap:16px}
.tq-main .card-h .actions{display:flex;gap:8px;align-items:center}
.tq-tbl,.rv-list{width:100%;border-collapse:collapse;font-size:14px}
.tq-tbl th,.rv-list th{text-align:start;font-size:12px;font-weight:600;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line)}
.tq-tbl td,.rv-list td{padding:0 12px;height:56px;border-bottom:1px solid var(--line)}
.tq-tbl tr,.rv-list tbody tr{cursor:pointer}.tq-tbl tr.on td,.rv-list tr.on td{background:var(--fill)}
.tq-tbl td.r{text-align:end}
.tq-mini{display:inline-block;width:28px;height:28px}.tq-mini svg{width:28px;height:28px;display:block}
.tq-card{display:flex;flex-direction:column;align-items:center;gap:8px;margin-bottom:14px}
.tq-card-in{width:220px;aspect-ratio:105/148;border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-shadow:0 8px 24px rgba(0,0,0,.06);color:#1D1D1F}
.tq-card.tent .tq-card-in{width:280px;aspect-ratio:210/74;gap:3px;flex-direction:column}
.tq-card.tent .tq-qr{width:72px;height:72px}.tq-card.tent .tq-tname{font-size:16px}.tq-card.tent .tq-langs,.tq-card.tent .tq-by{display:none}
.tq-brand{display:flex;align-items:center;gap:6px;font-size:12px}.tq-logo{width:18px;height:18px;border-radius:5px;background:#111;color:#fff;font-size:10px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.tq-tname{font-size:22px;font-weight:700;letter-spacing:-.01em}
.tq-qr{width:110px;height:110px}.tq-qr svg{width:100%;height:100%;display:block}
.tq-scan{font-size:13px;font-weight:600}.tq-langs{font-size:10.5px;color:#6E6E73}.tq-by{font-size:9px;color:#8E8E93}
.tq-cap{font-size:12px;color:var(--muted)}
.tq-cardbar{display:flex;justify-content:center;margin-bottom:12px}
.tq-codes{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:8px}.tq-codes .hint{margin:4px 0 0;width:100%}
.tq .btn.block,.rv .btn.block{width:100%;justify-content:center;min-height:48px}.tq .mt8{margin-top:8px}.tq .mb12{margin-bottom:12px}
.row.tq-col{flex-direction:column;align-items:stretch;gap:10px}
.floor{position:relative;width:100%;aspect-ratio:16/9;background:var(--fill);border-radius:14px;overflow:hidden;touch-action:none;background-image:radial-gradient(circle,#D8D8DC 1px,transparent 1px);background-size:24px 24px}
.ft{position:absolute;width:9%;min-width:64px;aspect-ratio:1;border-radius:12px;background:#fff;border:1px solid #D1D1D6;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:13px;user-select:none;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.floor.edit .ft{cursor:grab}.floor.edit .ft:active{cursor:grabbing;box-shadow:0 8px 20px rgba(0,0,0,.14)}
.ft.round{border-radius:50%}.ft.long{width:15%;min-width:104px;aspect-ratio:2/1}
.ft b{font-size:14px}.ft span{font-size:11px;color:var(--muted)}
/* reservations */
.rv .btn.sq{width:44px;padding:0;justify-content:center}
.rv-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.rv-stats.five{grid-template-columns:repeat(5,minmax(0,1fr))}
.rv-stats .st{padding:14px 16px;display:flex;flex-direction:column;gap:2px}.rv-stats .st span{font-size:12.5px;color:var(--muted);font-weight:500}
.rv-stats .st b{font-size:22px;font-weight:700;letter-spacing:-.01em}.rv-stats .st small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rv-body{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}.rv-body.with{grid-template-columns:minmax(0,1fr) 340px}
.rv-main{padding:12px 16px 16px;overflow:hidden}
.rv-closed{margin:10px 0 0}
.rv-main .tl{position:relative;display:block;grid-template-columns:none;gap:0;padding:0;background:none} /* .tl is also a grid elsewhere in the back office */
.tl-hours{position:relative;height:26px;margin-left:64px;font-size:11.5px;color:var(--muted)}.tl-hours span{position:absolute;top:4px;transform:translateX(-50%)}.tl-hours .tl-lab{display:none}
.tl-rows{position:relative}
.tl-row{display:flex;align-items:center;height:44px;border-top:1px solid var(--line)}
.tl-lab{width:64px;flex:none;display:flex;flex-direction:column;line-height:1.1}.tl-lab b{font-size:13px}.tl-lab small{font-size:11px;color:var(--muted)}
.tl-lane{position:relative;flex:1;height:100%}
.tl-b{position:absolute;top:6px;bottom:6px;border-radius:8px;border:0;background:#E8E8ED;color:#1D1D1F;font:inherit;font-size:12px;font-weight:600;text-align:start;padding:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}
.tl-b.confirmed,.tl-b.booked{background:#1D1D1F;color:#fff}.tl-b.seated{background:#3A3A3C;color:#fff}.tl-b.walk_in{background:#D1D1D6;color:#1D1D1F}
.tl-b.requested,.tl-b.held{background:#fff;border:1.5px dashed #8E8E93}.tl-b.no_show{background:#FBEAEA;color:#B42318;text-decoration:line-through}.tl-b.done{background:#F2F2F7;color:#8E8E93}
.tl-b.on{outline:2px solid var(--brand);outline-offset:2px}
.tl-closed{position:absolute;top:0;bottom:0;background:repeating-linear-gradient(135deg,rgba(142,142,147,.10) 0 6px,transparent 6px 12px);border-inline:1px solid var(--line);pointer-events:none;z-index:0}
.tl-closed span{position:absolute;top:4px;left:6px;font-size:11px;color:var(--muted);font-weight:600}
.tl-now{position:absolute;top:-26px;bottom:0;width:0;border-left:2px solid #1D1D1F;z-index:2;pointer-events:none}.tl-now span{position:absolute;top:0;left:4px;font-size:11px;font-weight:700;background:#1D1D1F;color:#fff;border-radius:6px;padding:1px 5px}
.tl-unplaced{margin-top:12px;display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:13px}
.rv-side{padding:18px}.rv-side-h{display:flex;justify-content:space-between;align-items:flex-start}.rv-side-h h3{margin:0 0 6px;font-size:19px}
.rv-side .x{border:0;background:var(--fill);width:32px;height:32px;border-radius:16px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.rv-when{font-size:14px;color:var(--muted);margin:10px 0 6px}
.rv-side .row{gap:10px;justify-content:flex-start;min-height:40px}.rv-side .row .r{margin-inline-start:auto}
.rv-msg .t1{font-size:13px;color:var(--muted)}
.rv-acts{display:flex;flex-direction:column;gap:8px;margin-top:14px}.rv-acts .btn{min-height:48px;justify-content:center}
.pks{display:flex;flex-wrap:wrap;gap:6px}
.pk{border:1px solid var(--line);background:var(--surface);border-radius:999px;min-height:40px;padding:0 14px;font:inherit;font-size:13.5px;cursor:pointer;color:var(--ink)}
.pk.on{background:var(--brand);border-color:var(--brand);color:var(--brand-on)}.pk:disabled{opacity:.35;text-decoration:line-through;cursor:default}
.rv-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px;align-items:start}.rv-cols>div{display:flex;flex-direction:column;min-width:0}
.rv-set .field.rv-sel{width:auto;min-width:150px;max-width:100%}
@media (max-width:1099px){.tq-grid,.rv-body.with,.rv-cols{grid-template-columns:minmax(0,1fr)}}
/* touch redesign: toolbar row under the header, the timeline scrolls inside its card, phone list rows, booking sheet */
.rv-tlwrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.rv-rows{margin:-4px -16px -8px}
.rv-hm{font-size:14px;font-variant-numeric:tabular-nums}
.rv .lrow-ico:has(.rv-hm){width:52px;background:none;justify-content:start}
.rv-none{padding:16px}
.sheet .rv-acts{margin-top:16px}
.sheet .rv-when{margin-top:0}
.sheet .rows.compact .row{gap:10px;justify-content:flex-start;min-height:44px}
.rv-stats .st b{font-variant-numeric:tabular-nums}
@media (min-width:700px) and (max-width:1099px){.rv-stats.five{grid-template-columns:repeat(5,minmax(0,1fr))}.rv-stats .st{padding:12px 14px}.rv-stats .st b{font-size:20px}}
@media (max-width:699px){
  .rv-stats,.rv-stats.five{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .rv-stats .st{padding:12px 14px}.rv-stats .st b{font-size:20px}
  .rv-bar .ops-daynav{flex:1 1 100%}
  .rv-bar .ops-daynav b{flex:1}
  .rv-bar .seg{display:flex;width:100%}.rv-bar .seg button{flex:1}
  .rv-main{padding:8px 16px 12px}
}
@media (max-width:1099px),(pointer:coarse){.pk{min-height:44px;padding:0 16px;font-size:15px}.tl-unplaced .pk{min-height:40px}}
/* Tables & QR (touch redesign): phone list rows open the table's sheet; settings as grouped lists */
.tq-rows{margin:-14px -16px -16px}
.tq-main .card-b{overflow-x:auto}
.tq .lgroup:first-of-type{margin-bottom:20px}
.tq-set{margin-top:24px;max-width:760px}
.tq-sheetqr{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.tq-codes .disc{margin:0}
.tq .disc{margin:8px 0 0}
.tq-main .card-h .seg{flex-shrink:1}
@media (max-width:699px){.tq-side .card-b{padding:14px 16px 16px}}
@media (max-width:1099px),(pointer:coarse){.tl-row{height:52px}.tl-b{top:5px;bottom:5px}}
.tq-block{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:4px 0 8px}
.tq-block p{font-size:14px;color:var(--muted);line-height:1.45}
/* timeline: the "now" tag sits under the hour labels instead of covering one; labels column stays opaque */
.tl-now span{top:auto;bottom:-20px}
.tl-lab{position:relative;z-index:1;background:var(--surface)}
.rv-tlwrap .tl{padding-bottom:24px}
.rv-sub{padding:14px 16px 6px;font-size:13px;font-weight:600;color:var(--muted)}
.rv .rv-off{opacity:.5}
.rv-list tr.rv-off td{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--line-2)}
.rv-main .tl::before,.rv-main .tl::after{content:none;display:none} /* another page's .tl draws a vertical line with ::before */
