/* RestoPOS — preto, carvão e laranja-brasa. O talão de papel é o elemento de destaque. */
:root {
  --bg: #000;
  --coal: #15120e;
  --coal-2: #1e1a15;
  --coal-3: #29241d;
  --line: #312b23;
  --line-2: #433b30;
  --text: #f4eee4;
  --muted: #a89e90;
  --faint: #6f675c;
  --accent: #ff7a1a;
  --accent-ink: #140f0a;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --ok: #46b57e;
  --warn: #f2b33d;
  --danger: #f0574b;
  --paper: #f7f1e6;
  --paper-2: #efe7d8;
  --paper-ink: #1b1712;
  --paper-muted: #72685b;
  --ok-ink: #9fe3bf;
  --warn-ink: #ffd98c;
  --danger-ink: #ffbdb6;
  --danger-bg: #2b1612;
  --shadow-c: rgba(0,0,0,.72);
  --f-display: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;
  --f-ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-ticket: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --tap: 52px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { font-family: var(--f-ui); font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; overscroll-behavior: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
input, textarea, select { user-select: text; -webkit-user-select: text; }
#app { height: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; line-height: 1.15; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0; }
small { font-size: 13px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grow { flex: 1; }
.ic { flex: none; }
img, video { display: block; max-width: 100%; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

input[type=text], input[type=password], input[type=search], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=url], textarea, select {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--coal); color: var(--text); font: inherit; font-size: 16px;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=range] { width: 100%; accent-color: var(--accent); }
input[type=color] { width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--coal); padding: 4px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .12s, border-color .12s, transform .06s; border: 1px solid transparent; }
.btn:active:not(:disabled) { transform: scale(0.98); }
.btn:disabled { opacity: .4; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost { background: var(--coal-2); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--coal-3); }
.btn-quiet { color: var(--muted); }
.btn-quiet:hover:not(:disabled) { color: var(--text); background: var(--coal-2); }
.btn-danger { background: color-mix(in srgb, var(--danger) 16%, var(--coal-2)); color: var(--danger-ink); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { min-height: 58px; padding: 0 22px; font-size: 17px; }
.btn-xl { min-height: 68px; font-size: 19px; width: 100%; border-radius: var(--r-lg); }
.btn.is-busy { position: relative; color: transparent !important; }
.btn.is-busy::after { content: ''; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--text) transparent var(--text) transparent; animation: spin .8s linear infinite; }
.btn-primary.is-busy::after { border-color: var(--accent-ink) transparent var(--accent-ink) transparent; }
.icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); color: var(--muted); }
.icon-btn:hover { background: var(--coal-3); color: var(--text); }
.icon-btn.fav { color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--text); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.on.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.chip.sm { min-height: 32px; font-size: 13px; padding: 0 10px; }
.chip-lg { min-height: 50px; padding: 0 18px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.pill.sm { height: 24px; padding: 0 9px; font-size: 12px; }
.pill-quiet { background: var(--coal-2); color: var(--muted); }
.pill-ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok-ink); }
.pill-warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn-ink); }
.pill-danger { background: color-mix(in srgb, var(--danger) 20%, transparent); color: var(--danger-ink); }
.pill-test { background: color-mix(in srgb, #8b6cf0 24%, transparent); color: color-mix(in srgb, #8b6cf0 55%, var(--text)); }
.row-gap { display: flex; align-items: center; gap: 10px; }
.row-gap.wrap { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Estrutura ---------- */
.shell { height: 100%; display: grid; grid-template-rows: calc(64px + var(--sat)) 1fr; }
.topbar { display: flex; align-items: center; gap: 16px; padding: var(--sat) 14px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; min-width: 0; max-width: 200px; }
.brand img { height: 40px; width: auto; max-width: 200px; object-fit: contain; object-position: left; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 4px; height: 100%; }
.nav-btn { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--muted); font-weight: 600; position: relative; }
.nav-btn.on { color: var(--text); }
.nav-btn.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 4px; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-family: var(--f-display); flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 18px; }
.user-name { font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop { position: absolute; right: 0; top: 52px; width: 260px; background: var(--coal-2); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; z-index: 40; box-shadow: 0 20px 50px -10px var(--shadow-c); }
.menu-head { padding: 8px 10px 10px; display: flex; flex-direction: column; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.menu-head small { color: var(--muted); }
.menu-langs { display: flex; gap: 6px; padding: 4px 6px 8px; flex-wrap: wrap; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 10px; border-radius: var(--r-sm); font-weight: 600; }
.menu-item:hover { background: var(--coal-3); }
.main { min-height: 0; overflow: hidden; }
.center-screen { height: 100%; display: flex; align-items: center; justify-content: center; padding: 24px; }
.notice-card { max-width: 440px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--muted); }
.notice-card h1 { color: var(--text); }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ecrã de PIN ---------- */
.lock, .setup { position: relative; height: 100%; overflow: hidden; }
.lock-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lock-bg-default { background: radial-gradient(120% 90% at 85% 110%, color-mix(in srgb, var(--accent) 34%, transparent) 0%, transparent 55%), var(--bg); }
.lock-veil { position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 40%, color-mix(in srgb, var(--bg) 55%, transparent) 100%); }
.lock-inner { position: relative; height: 100%; display: grid; grid-template-columns: 1fr minmax(320px, 420px); gap: 40px; padding: calc(40px + var(--sat)) 56px calc(40px + var(--sab)); align-items: center; }
.lock-brand { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.lock-logo { max-width: 280px; max-height: 120px; object-fit: contain; object-position: left; margin-bottom: auto; }
.lock-name { font-size: 44px; margin-bottom: auto; font-weight: 700; }
.lock-clock { font-family: var(--f-display); font-size: 108px; font-weight: 300; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lock-date { font-size: 22px; color: var(--muted); text-transform: capitalize; }
.lock-device { display: flex; align-items: center; gap: 8px; color: var(--faint); margin-top: 18px; font-size: 14px; }
.lock-station { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.lock-pad { display: flex; flex-direction: column; gap: 18px; background: color-mix(in srgb, var(--coal) 84%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.lock-prompt { font-family: var(--f-display); font-size: 20px; text-align: center; }
.lock-langs { justify-content: center; padding: 0; }
.pin-dots { display: flex; justify-content: center; gap: 14px; min-height: 22px; }
.dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); transition: background .1s, border-color .1s; }
.dot.on { background: var(--accent); border-color: var(--accent); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.key { height: 72px; border-radius: 16px; background: var(--coal-2); border: 1px solid var(--line); font-family: var(--f-display); font-size: 30px; font-weight: 500; font-variant-numeric: tabular-nums; }
.key:active { background: var(--coal-3); border-color: var(--accent); }
.key-fn { font-size: 22px; color: var(--muted); }
.keypad-compact .key { height: 58px; font-size: 24px; border-radius: 12px; }
.pin-ok { width: 100%; }
.setup { display: grid; grid-template-columns: 1fr minmax(340px, 440px); gap: 48px; padding: calc(40px + var(--sat)) 56px 40px; align-items: center; background: radial-gradient(100% 80% at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), var(--bg); overflow: auto; }
.setup-intro { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.setup-intro h1 { font-size: 40px; }
.setup-intro p { color: var(--muted); font-size: 18px; }
.setup-brand { font-family: var(--f-display); font-size: 22px; color: var(--accent); font-weight: 600; }
.setup-logo { max-height: 90px; max-width: 240px; object-fit: contain; object-position: left; }
.setup-form { display: flex; flex-direction: column; gap: 16px; background: var(--coal); border: 1px solid var(--line); border-radius: 24px; padding: 26px; }

/* ---------- Campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-weight: 600; font-size: 14px; color: var(--muted); }
.field-hint { color: var(--faint); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.form-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 16px; }
.mini-field { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.mini-field input { width: 80px; min-height: 40px; }
.mini-field .money-input { width: 130px; }
.mini-field .money-input input { width: 100%; }
.toggle { display: flex; align-items: flex-start; gap: 14px; padding: 10px 0; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--coal-3); border: 1px solid var(--line-2); position: relative; transition: background .15s; margin-top: 1px; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.toggle input:checked + .toggle-track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); background: var(--accent-ink); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle-text { display: flex; flex-direction: column; font-weight: 500; }
.toggle-text small { color: var(--faint); font-weight: 400; }
.i18n-input { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.i18n-tabs { display: flex; gap: 4px; }
.i18n-tab { height: 26px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; color: var(--faint); border: 1px solid var(--line); }
.i18n-tab.filled { color: var(--muted); }
.i18n-tab.on { background: var(--coal-3); color: var(--text); border-color: var(--line-2); }
.money-input { position: relative; }
.money-input input { padding-right: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.money-input span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.media-picker { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.media-preview { width: 120px; height: 90px; flex: none; border-radius: var(--r-sm); background: var(--coal-2); border: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--faint); }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-actions { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.media-url { min-height: 38px !important; font-size: 13px !important; padding: 6px 10px !important; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 14%, transparent); }
.swatch.on { border-color: var(--text); }
.segmented { display: inline-flex; background: var(--coal); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; gap: 4px; flex-wrap: wrap; }
.seg { min-height: 40px; padding: 0 14px; border-radius: 9px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg.on { background: var(--coal-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.segmented.small .seg { min-height: 34px; font-size: 14px; }

/* ---------- Modais ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.66); display: flex; align-items: center; justify-content: center; padding: calc(16px + var(--sat)) 16px calc(16px + var(--sab)); animation: fade .12s ease-out; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--coal); border: 1px solid var(--line-2); border-radius: 20px; width: 100%; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 40px 90px -20px var(--shadow-c); animation: rise .16s ease-out; }
@keyframes rise { from { transform: translateY(10px); opacity: .6; } }
.modal-sm { max-width: 460px; }
.modal-md { max-width: 640px; }
.modal-lg { max-width: 920px; }
.modal-full { max-width: 1280px; height: 100%; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 18px 6px 24px; }
.modal-head h2 { flex: 1; font-size: 22px; }
.modal-body { padding: 10px 24px 20px; overflow: auto; flex: 1; min-height: 0; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dialog-msg { color: var(--muted); margin-bottom: 14px; }
.dialog-input { margin-top: 4px; }
.toasts { position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(560px, 92vw); }
.toast { background: var(--coal-3); border: 1px solid var(--line-2); padding: 14px 20px; border-radius: 14px; font-weight: 600; box-shadow: 0 20px 40px -10px var(--shadow-c); animation: rise .18s ease-out; text-align: center; }
.toast-ok { border-color: color-mix(in srgb, var(--ok) 55%, transparent); }
.toast-error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); background: var(--danger-bg); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 50px 20px; color: var(--faint); text-align: center; }
.empty-title { color: var(--muted); font-weight: 600; font-size: 17px; }
.empty-body { color: var(--muted); max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 16px; font-weight: 500; }
.banner.warn { background: color-mix(in srgb, var(--warn) 14%, var(--coal)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); cursor: pointer; }
.banner.danger { background: var(--danger-bg); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }
.banner .chip { margin-left: auto; }

/* ---------- Sala ---------- */
.floor { height: 100%; display: grid; grid-template-columns: 1fr 340px; }
.floor-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.floor-map { display: flex; flex-direction: column; flex: 1; min-height: 0; gap: 12px; }
.zone-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.zone-tab { height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; color: var(--muted); background: var(--coal); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; }
.zone-tab.on { color: var(--text); border-color: var(--text); }
.zone-tab.add { border-style: dashed; }
.zone-tab .count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }
.floor-canvas { position: relative; flex: 1; min-height: 360px; border-radius: var(--r-lg); background-color: var(--coal); background-size: cover; background-position: center;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 7%, transparent) 1px, transparent 0); background-size: 28px 28px; border: 1px solid var(--line); overflow: hidden; }
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; align-content: start; overflow: auto; padding-bottom: 16px; }
.floor-grid .tbl { position: relative; height: 110px; width: auto; left: auto; top: auto; }
.tbl { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--coal-2); color: var(--muted); transition: transform .08s; padding: 4px; overflow: visible; }
.tbl:active { transform: scale(0.97); }
.tbl.shape-round { border-radius: 50%; }
.tbl.shape-rect { border-radius: 12px; }
.tbl-name { font-family: var(--f-display); font-weight: 700; font-size: clamp(18px, 2.2vw, 28px); line-height: 1; color: var(--text); }
.tbl-seats, .tbl-meta { font-size: 12px; display: inline-flex; align-items: center; gap: 3px; }
.tbl-total { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.tbl.busy { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tbl.busy .tbl-name { color: var(--accent-ink); }
.tbl.busy .tbl-meta { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); }
.tbl.pending { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--text); }
.tbl-flag { position: absolute; top: -9px; right: -9px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.tbl-link { position: absolute; bottom: -9px; right: -9px; width: 24px; height: 24px; border-radius: 12px; background: var(--coal-3); color: var(--text); display: flex; align-items: center; justify-content: center; }
.tbl.bill { background: var(--warn); border-color: var(--warn); animation: billpulse 2.4s ease-in-out infinite; }
@keyframes billpulse { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--warn) 25%, transparent); } }
.tbl.disabled { opacity: .3; }
.tbl.picking.free:hover { border-color: var(--accent); color: var(--text); }
.floor-side { border-left: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; background: var(--coal); }
.side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.side-sum { font-family: var(--f-display); font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.side-empty { padding: 20px 0; }
.side-btn { width: 100%; }
.order-list { display: flex; flex-direction: column; gap: 6px; overflow: auto; flex: 1; min-height: 0; }
.order-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 't total' 'i total'; text-align: left; padding: 12px 14px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); gap: 2px 12px; }
.order-row.on { border-color: var(--accent); }
.order-row.has-pending { box-shadow: inset 3px 0 0 var(--text); }
.order-row.has-bill { box-shadow: inset 3px 0 0 var(--warn); }
.or-table { grid-area: t; font-weight: 700; font-family: var(--f-display); font-size: 17px; display: flex; align-items: center; gap: 8px; }
.or-info { grid-area: i; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-total { grid-area: total; align-self: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.or-total.debt { color: var(--warn); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.lg-free { border: 1.5px solid var(--line-2); background: var(--coal-2); }
.lg-busy { background: var(--accent); }
.lg-pending { background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--text); }
.lg-bill { background: var(--warn); }
.covers-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.cover-btn { height: 66px; border-radius: 14px; background: var(--coal-2); border: 1px solid var(--line); font-family: var(--f-display); font-size: 28px; font-weight: 600; }
.cover-btn:active, .cover-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.covers-custom { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; }
.covers-value { font-family: var(--f-display); font-size: 40px; text-align: center; }

/* ---------- Comanda ---------- */
.order { height: 100%; display: grid; grid-template-rows: auto 1fr; min-height: 0; }
.order-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.back { width: 48px; height: 48px; color: var(--text); background: var(--coal-2); border: 1px solid var(--line); }
.oh-title { min-width: 0; }
.oh-title h1 { font-size: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oh-title p { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.covers-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); font-weight: 700; font-variant-numeric: tabular-nums; }
.oh-actions { margin-left: auto; display: flex; gap: 8px; }
.order-body { display: grid; grid-template-columns: 1fr 390px; min-height: 0; }
.order-body.narrow { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding: 10px; gap: 10px; }
.order-body.narrow .segmented { width: 100%; }
.order-body.narrow .seg { flex: 1; justify-content: center; }
.catalog { display: grid; grid-template-columns: 210px 1fr; min-height: 0; }
.cat-rail { display: flex; flex-direction: column; gap: 4px; padding: 12px; overflow: auto; border-right: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 46px; border-radius: var(--r-sm); background: var(--coal); border: 1px solid var(--line-2); color: var(--muted); margin-bottom: 6px; }
.search input { border: 0 !important; background: none !important; min-height: 40px !important; padding: 0 !important; box-shadow: none !important; }
.cat-btn { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px 8px 14px; border-radius: var(--r-sm); text-align: left; font-weight: 600; color: var(--muted); position: relative; line-height: 1.2; }
.cat-btn::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 2px; background: var(--cat); opacity: .55; }
.cat-btn.on { background: var(--coal-2); color: var(--text); }
.cat-btn.on::before { opacity: 1; top: 6px; bottom: 6px; }
.cat-btn.has-sub svg { margin-left: auto; color: var(--faint); flex: none; }
.cat-btn.sub { min-height: 42px; margin-left: 14px; font-weight: 500; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 12px; overflow: auto; align-content: start; }
.tile { position: relative; display: flex; flex-direction: column; text-align: left; min-height: 96px; padding: 12px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); overflow: hidden; box-shadow: inset 0 -3px 0 var(--cat); }
.tile:active { transform: scale(0.97); border-color: var(--accent); }
.tile.has-img { padding: 0; }
.tile.has-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile.has-img .tile-name { padding: 8px 10px 0; }
.tile.has-img .tile-foot { padding: 4px 10px 10px; }
.tile-name { font-weight: 600; font-size: 15px; line-height: 1.25; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 6px; color: var(--muted); }
.tile-price { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.tile-tag { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.tile.sold-out { opacity: .45; }
/* produtos sem foto: lista compacta (ocupa a largura toda da grelha) */
.plist { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px; }
.plist.after-tiles { margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.prow { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px 8px 16px; border-radius: var(--r-sm); background: var(--coal-2); border: 1px solid var(--line); text-align: left; position: relative; overflow: hidden; color: var(--muted); }
.prow::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--cat); }
.prow:active { transform: scale(0.98); border-color: var(--accent); }
.prow-name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; }
.prow-price { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow.sold-out { opacity: .45; }
.prow-sold { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--danger); color: #fff; }
.tile-sold { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--danger); color: #fff; }

/* O talão: papel térmico sobre o preto */
.ticket-wrap { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-left: 1px solid var(--line); min-height: 0; background: var(--coal); }
.ticket { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--paper-ink); border-radius: 6px 6px 0 0; font-family: var(--f-ticket); position: relative; box-shadow: 0 16px 30px -18px var(--shadow-c); }
.ticket-head { display: flex; justify-content: space-between; padding: 14px 16px 10px; font-weight: 600; font-size: 14px; border-bottom: 1px dashed #cdbfa8; }
.ticket-lines { flex: 1; overflow: auto; padding: 6px 0; }
.ticket-empty { padding: 30px 16px; color: var(--paper-muted); font-size: 14px; text-align: center; font-family: var(--f-ui); }
.tgroup-title { padding: 10px 16px 4px; font-size: 12px; color: var(--paper-muted); font-family: var(--f-ui); font-weight: 600; }
.tgroup-new .tgroup-title { color: #b54d00; }
.tline { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; width: 100%; text-align: left; padding: 9px 16px; font-size: 14.5px; line-height: 1.3; color: var(--paper-ink); }
.tline:active { background: var(--paper-2); }
.tline.st-new { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 22%, transparent) 0 4px, transparent 4px); }
.tline.st-void { color: var(--paper-muted); text-decoration: line-through; }
.tline.offered .tl-price { color: #2d7a52; }
.tl-qty { font-weight: 700; }
.tl-main { display: flex; flex-direction: column; min-width: 0; }
.tl-name { font-weight: 600; }
.tl-sub { color: var(--paper-muted); font-size: 13px; }
.tl-note { color: #9a3d00; font-size: 13px; font-style: italic; }
.tl-paid { color: #2d7a52; font-size: 12px; font-weight: 600; }
.tl-price { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.tvoid-toggle { width: 100%; padding: 8px; font-size: 12px; color: var(--paper-muted); font-family: var(--f-ui); }
.ticket-totals { padding: 10px 16px 18px; border-top: 1px dashed #cdbfa8; }
.tt { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; font-variant-numeric: tabular-nums; }
.tt-total { font-family: var(--f-display); font-size: 26px; font-weight: 700; padding: 6px 0 2px; }
.tt-due { font-weight: 700; font-size: 17px; color: #b54d00; }
.ticket-edge { position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: linear-gradient(-45deg, transparent 6px, var(--paper) 0) 0 0 / 14px 10px repeat-x, linear-gradient(45deg, transparent 6px, var(--paper) 0) 0 0 / 14px 10px repeat-x; }
.ticket-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.ta-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; }
.ta-send { width: 100%; }

/* Diálogos da comanda */
.opt-group { margin: 14px 0; }
.opt-title { font-weight: 700; font-family: var(--f-display); font-size: 17px; margin-bottom: 4px; }
.opt-title small { font-family: var(--f-ui); font-weight: 500; color: var(--faint); font-size: 13px; margin-left: 6px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 4px; padding: 0 0 10px; border-radius: var(--r); background: var(--coal-2); border: 2px solid var(--line); overflow: hidden; font-weight: 600; min-height: 64px; }
.choice span, .choice small { padding: 0 10px; }
.choice span { padding-top: 10px; }
.choice img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.choice img + span { padding-top: 6px; }
.choice small { color: var(--accent); }
.choice.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--coal-2)); }
.note-input { margin-top: 4px; }
.qty-stepper { display: inline-flex; align-items: center; background: var(--coal-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-right: auto; }
.qty-stepper button { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.qty-stepper button:active { background: var(--coal-3); }
.qty-stepper span, .qty-stepper input { min-width: 44px; text-align: center; font-family: var(--f-display); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty-stepper input { width: 56px; min-height: 36px !important; padding: 0 !important; border: 0 !important; background: none !important; }
.qty-stepper.sm { margin: 0; }
.qty-stepper.sm button { width: 38px; height: 38px; }
.qty-stepper.sm span { min-width: 30px; font-size: 18px; }
.qty-stepper.lg { margin: 10px auto; }
.qty-stepper.lg button { width: 64px; height: 64px; }
.qty-stepper.lg span { min-width: 80px; font-size: 36px; }
.line-qty { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 10px 0 16px; }
.big-step { width: 72px; height: 72px; border-radius: 50%; background: var(--coal-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.big-qty { font-family: var(--f-display); font-size: 54px; font-weight: 600; min-width: 80px; text-align: center; }
.action-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.action-list .btn { justify-content: flex-start; min-height: 54px; }
.pick-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.pick-line { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 0; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.pick-line.on { border-color: var(--accent); }
.pl-name { flex: 1; display: flex; flex-direction: column; text-align: left; padding: 6px 14px; min-width: 0; }
.pl-name span { font-weight: 600; }
.pl-name small { color: var(--muted); }
.pick-hint { margin-bottom: 10px; }
.big-value { font-family: var(--f-display); font-size: 44px; font-weight: 600; text-align: center; padding: 10px 0; font-variant-numeric: tabular-nums; }

/* ---------- Pagamento ---------- */
.pay { display: grid; grid-template-columns: 1fr 440px; gap: 24px; height: 100%; min-height: 0; }
.pay-left { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: auto; }
.pay-right { display: flex; flex-direction: column; gap: 12px; background: var(--coal-2); border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 0; overflow: auto; }
.pay-confirm { position: sticky; bottom: 0; margin-top: auto; padding: 10px 0 18px; background: linear-gradient(transparent, var(--coal-2) 30%); }
.pay .keypad-compact .key { height: 48px; font-size: 22px; }
.pay .due { font-size: 48px; }
.pay .method { min-height: 56px; }
.pay-summary { display: flex; gap: 10px; }
.pay-summary div { flex: 1; display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.pay-summary span { color: var(--muted); font-size: 14px; }
.pay-summary strong { font-family: var(--f-display); font-size: 24px; font-variant-numeric: tabular-nums; }
.pay-summary .pay-rem { border-color: var(--accent); }
.due-label { color: var(--muted); font-weight: 600; }
.due { font-family: var(--f-display); font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.method { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 14px; border-radius: 14px; background: var(--coal); border: 2px solid var(--line); font-weight: 700; text-align: left; }
.method.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--coal)); }
.cash-box, .cust-box { display: flex; flex-direction: column; gap: 10px; }
.cash-line { display: flex; justify-content: space-between; align-items: baseline; font-variant-numeric: tabular-nums; }
.cash-line strong { font-family: var(--f-display); font-size: 24px; }
.cash-line.change { padding: 10px 14px; border-radius: var(--r); background: var(--coal); }
.cash-line.change.on { background: var(--accent); color: var(--accent-ink); }
.quick-amounts { display: flex; gap: 8px; flex-wrap: wrap; }
.amountpad { display: flex; flex-direction: column; gap: 10px; }
.cust-list { display: flex; flex-direction: column; gap: 6px; max-height: 240px; overflow: auto; }
.cust { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: var(--r-sm); background: var(--coal); border: 2px solid var(--line); text-align: left; font-weight: 600; }
.cust small { color: var(--muted); font-weight: 400; }
.cust.on { border-color: var(--accent); }
.split-box { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.split-each { text-align: center; font-family: var(--f-display); font-size: 22px; }
.pick2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; min-height: 280px; flex: 1; }
.pick2-col { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--coal-2); overflow: hidden; }
.pick2-ticket { border-color: var(--accent); background: var(--paper); color: var(--paper-ink); }
.pick2-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); min-height: 48px; }
.pick2-ticket .pick2-head { border-bottom: 1px dashed rgba(0,0,0,.25); }
.pick2-ticket .pick2-head .chip { color: var(--paper-ink); border-color: rgba(0,0,0,.25); background: transparent; }
.pick2-list { flex: 1; overflow: auto; padding: 6px; display: flex; flex-direction: column; gap: 4px; }
.pick2-empty { padding: 14px 8px; text-align: center; }
.pick2-ticket .pick2-empty { color: rgba(0,0,0,.5); }
.unit-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 10px; border-radius: 10px; background: var(--coal-3); border: 1px solid transparent; text-align: left; color: inherit; }
.unit-row:active { transform: scale(.98); }
.unit-row .ur-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-weight: 600; }
.unit-row .ur-name small { font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unit-row .ur-price { font-family: var(--f-ticket); font-variant-numeric: tabular-nums; }
.unit-row .icon { color: var(--accent); flex: none; }
.pick2-ticket .unit-row { background: rgba(0,0,0,.05); font-family: var(--f-ticket); }
.pick2-ticket .unit-row .ur-name small { color: rgba(0,0,0,.55); }
.pick2-ticket .unit-row .icon { color: rgba(0,0,0,.45); }
.pick2-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-top: 1px dashed rgba(0,0,0,.3); font-family: var(--f-ticket); }
.pick2-total strong { font-size: 22px; }
.pay-history { padding: 14px; border-radius: var(--r); border: 1px solid var(--line); }
.ph-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ph-row span { flex: 1; color: var(--muted); }
.done { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 16px 4px 4px; }
.done-check { width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #04130b; display: flex; align-items: center; justify-content: center; animation: pop .3s ease-out; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done h2 { font-size: 28px; }
.done-change-label { color: var(--muted); margin-top: 8px; }
.done-change { font-family: var(--f-display); font-size: 64px; font-weight: 700; color: var(--accent); line-height: 1; }
.done .action-list { width: 100%; }
.done .action-list .btn { justify-content: center; }

/* ---------- Páginas ---------- */
.page { height: 100%; overflow: auto; padding: 20px 24px 40px; }
.page-sub { padding-bottom: 30px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin-top: 4px; }
.split-page { height: 100%; display: grid; grid-template-columns: 340px 1fr; min-height: 0; }
.split-page.inner { height: auto; min-height: 400px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.list-pane { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; background: var(--coal); }
.detail-pane { padding: 20px 24px; overflow: auto; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 14px 18px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.kpi span { color: var(--muted); font-size: 14px; }
.kpi strong { font-family: var(--f-display); font-size: 26px; font-variant-numeric: tabular-nums; }
.kpi-main { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.kpi-main strong { color: var(--accent); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.rblock { padding: 16px 18px; border-radius: var(--r); background: var(--coal); border: 1px solid var(--line); }
.rblock h3 { margin-bottom: 8px; }
.rrow { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rrow:last-child { border-bottom: 0; }
.rrow small { color: var(--faint); margin-left: 6px; }
.rrow.head { color: var(--faint); font-size: 13px; }
.rrow.cols4, .rrow.head { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; text-align: right; }
.rrow.cols4 > :first-child, .rrow.head > :first-child { text-align: left; }
.rrow.sub { color: var(--muted); font-size: 14px; }
.rrow.total { font-weight: 700; }
.rrow.ok strong { color: var(--ok); }
.rrow.warn strong { color: var(--warn); }
.neg { color: var(--ok); }
.cash-open { height: 100%; display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: 40px; padding: 40px 56px; align-items: center; overflow: auto; }
.cash-open h1 { font-size: 38px; margin-bottom: 10px; }
.cash-open section { display: flex; flex-direction: column; gap: 14px; }
.cash-open .big-value { text-align: left; font-size: 64px; }
.close-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.close-diff { display: flex; align-items: baseline; gap: 10px; margin-right: auto; font-variant-numeric: tabular-nums; }
.close-diff strong { font-family: var(--f-display); font-size: 24px; }
.close-diff.ok strong { color: var(--ok); }
.close-diff.warn strong { color: var(--warn); }
.denoms { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; margin: 14px 0; }
.denom { display: grid; grid-template-columns: 64px auto 1fr; gap: 10px; align-items: center; }
.denom-v { font-weight: 700; }
.denom-sum { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { text-align: left; color: var(--faint); font-weight: 600; font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.job-error { display: block; color: var(--danger-ink); margin-top: 4px; }
.job-error + * { margin-top: 4px; }

/* ---------- Administração ---------- */
.admin { height: 100%; display: grid; grid-template-columns: 230px 1fr; min-height: 0; }
.admin-nav { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; background: var(--coal); overflow: auto; }
.admin-tab { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 14px; border-radius: var(--r-sm); font-weight: 600; color: var(--muted); text-align: left; }
.admin-tab.on { background: var(--coal-2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.admin-body { overflow: auto; padding: 20px 24px; min-width: 0; }
.catalog-admin { display: grid; grid-template-columns: 340px 1fr; gap: 0; height: calc(100% + 40px); margin: -20px -24px; }
.catalog-admin .list-pane { min-height: 0; }
.catalog-admin .detail-pane { overflow: auto; }
.cat-row { display: flex; align-items: center; gap: 2px; border-radius: var(--r-sm); }
.cat-row.on { background: var(--coal-2); }
.cat-row.off { opacity: .5; }
.cat-row.sub .cat-row-main { padding-left: 28px; font-weight: 500; }
.cat-row-main svg { color: var(--faint); flex: none; }
.cat-row-main { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 10px; text-align: left; font-weight: 600; min-width: 0; }
.cat-row-main span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-row-main small { color: var(--faint); }
.cat-row .icon-btn { width: 34px; height: 34px; }
.dotc { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.admin-products { display: flex; flex-direction: column; gap: 6px; }
.ap-row { display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 6px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.ap-row.off { opacity: .5; }
.ap-main { flex: 1; display: flex; align-items: center; gap: 14px; text-align: left; min-width: 0; }
.ap-thumb { width: 64px; height: 48px; border-radius: 8px; background: var(--coal-3); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--faint); flex: none; }
.ap-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ap-name { flex: 1; font-weight: 600; min-width: 0; }
.ap-price { font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 10px; }
.editor-list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.editor-card { padding: 14px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.editor-card-head { display: flex; gap: 10px; align-items: flex-end; }
.option-row { display: flex; gap: 10px; align-items: flex-end; }
.option-row .money-input { width: 130px; flex: none; }
.choice-name { flex: 1; font-weight: 600; align-self: center; }
.floor-admin .fa-body { display: grid; grid-template-columns: 1fr 280px; gap: 16px; margin-top: 12px; }
.floor-admin .floor-canvas { min-height: 520px; touch-action: none; }
.floor-canvas.editing .tbl { cursor: grab; touch-action: none; }
.tbl.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); color: var(--text); }
.fa-panel { padding: 16px; border-radius: var(--r); background: var(--coal); border: 1px solid var(--line); }
.fa-panel h3 { margin-bottom: 12px; }
.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; margin-bottom: 20px; }
.printer-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); text-align: left; color: var(--muted); }
.printer-card:hover { border-color: var(--line-2); }
.printer-card.off { opacity: .5; }
.pc-main { flex: 1; display: flex; flex-direction: column; min-width: 0; color: var(--text); }
.pc-main small { color: var(--muted); }
.pc-ip { font-size: 13px; font-variant-numeric: tabular-nums; }
.pc-ip.missing { color: var(--warn); }
.vat-badge { min-width: 64px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-family: var(--f-display); font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 8px; }
.help-box { padding: 18px 20px; border-radius: var(--r); background: var(--coal); border: 1px solid var(--line); color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.help-box h3 { color: var(--text); }
.help-box ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-col.wide-left { grid-template-columns: 1.4fr 1fr; }
.perm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 10px; }
.perm-group { padding: 14px 16px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.perm-group h3 { margin-bottom: 4px; }
.pin-edit { display: flex; flex-direction: column; gap: 12px; max-width: 320px; }
.pin-edit .pin-dots { justify-content: flex-start; }
.device-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-bottom: 20px; }
.device-card { padding: 16px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.device-card.current { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.dc-head { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.status-dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }

/* ---------- Ecrãs estreitos (telemóvel / tablet vertical) ---------- */
@media (max-width: 1100px) {
  .nav-btn span { display: none; }
  .oh-actions .btn span { display: none; }
  .oh-actions .btn { padding: 0 12px; }
  .user-name { display: none; }
  .user-chip { padding: 0 4px; }
}
@media (max-width: 1000px) {
  .catalog { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .cat-rail { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .cat-rail .search { min-width: 180px; margin: 0; }
  .cat-btn { white-space: nowrap; flex: none; }
  .cat-btn::before { left: 10px; right: 10px; top: auto; bottom: 4px; width: auto; height: 3px; }
  .ticket-wrap { border-left: 0; padding: 0; background: none; }
  .pay { grid-template-columns: 1fr; }
  .pick2 { min-height: 0; }
  .pick2-list { max-height: 46vh; }
  .pay-right { order: -1; }
}
@media (max-width: 900px) {
  .floor { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .floor-side { border-left: 0; border-top: 1px solid var(--line); max-height: 40vh; }
  .lock-inner, .setup, .cash-open { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .lock-brand { align-self: auto; }
  .lock-clock { font-size: 64px; }
  .lock-logo, .lock-name { margin-bottom: 0; }
  .split-page, .catalog-admin { grid-template-columns: 1fr; }
  .catalog-admin { height: auto; margin: 0; }
  .list-pane { border-right: 0; border-bottom: 1px solid var(--line); max-height: 45vh; }
  .admin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-nav { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .admin-tab { white-space: nowrap; flex: none; }
  .admin-tab span { display: none; }
  .admin-tab.on span { display: inline; }
  .form-cols, .two-col, .two-col.wide-left, .floor-admin .fa-body { grid-template-columns: 1fr; }
  .page, .admin-body, .detail-pane { padding: 16px; }
  .topbar-right .pill:not(.pill-danger) span, .topbar-right .pill { font-size: 0; gap: 0; padding: 0 10px; }
  .topbar-right .pill .ic { width: 18px; height: 18px; }
  .brand { max-width: 120px; }
  .oh-title h1 { font-size: 20px; }
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { border-radius: 20px 20px 0 0; max-height: 96%; }
  .modal-full { height: 96%; }
}
.order-body > *, .catalog, .catalog > *, .floor-main, .floor-map { min-width: 0; }
@media (max-width: 1000px) {
  .pay-right { overflow: visible; }
  .pay-left { overflow: visible; }
  .pay { height: auto; }
}
@media (max-width: 600px) {
  .topbar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .brand { display: none; }
  .nav { gap: 0; }
  .nav-btn { padding: 0 10px; }
  .topbar-right { gap: 4px; }
  .topbar-right .pill-ok, .topbar-right .pill-quiet:not(.pill-danger) { display: none; }
  .order-head { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .oh-title { flex: 1; }
  .oh-actions { width: 100%; margin-left: 0; overflow-x: auto; }
  .oh-actions .btn { flex: 1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px; gap: 8px; }
  .plist { grid-template-columns: 1fr; }
  .ticket-actions .ta-row { grid-template-columns: 1fr; }
  .methods { grid-template-columns: 1fr 1fr; }
  .lock-pad { padding: 18px; }
  .key { height: 62px; }
  .page-head .segmented { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Chamadas das mesas (equipa) ---------- */
.pill-call { background: var(--warn); color: #1a1205; font-weight: 700; animation: billpulse 2.4s ease-in-out infinite; }
.toast-call { background: var(--warn); color: #1a1205; border-color: var(--warn); }
.tbl-call { position: absolute; top: -10px; left: -10px; width: 28px; height: 28px; border-radius: 14px; background: var(--warn); color: #1a1205; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--bg); }
.tbl.calling { animation: billpulse 2.4s ease-in-out infinite; }
.zone-tab .count.call { background: var(--warn); color: #1a1205; }
.call-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--coal-2); border: 1px solid var(--line); }
.call-ic { width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); display: flex; align-items: center; justify-content: center; flex: none; }
.call-order .call-ic { background: var(--accent-soft); color: var(--accent); }
.call-main { flex: 1; display: flex; flex-direction: column; text-align: left; min-width: 0; }
.call-main strong { font-family: var(--f-display); font-size: 18px; }
.call-main small { color: var(--muted); }
.call-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--warn); color: #1a1205; font-weight: 700; font-size: 14px; }
.call-chip-ok { background: rgba(0,0,0,.18); border-radius: 999px; padding: 4px 10px; }
.tl-origin { color: var(--paper-muted); display: inline-flex; vertical-align: -2px; }
.setup-zone { margin-bottom: 4px; }
.setup-zone .chips { margin-top: 4px; }

/* ---------- Tablet do cliente ---------- */
.c-welcome { position: relative; height: 100%; overflow: hidden; cursor: pointer; background: #0b0907; color: #f6f1ea; }
.c-slides { position: absolute; inset: 0; }
.c-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.c-slide.on { opacity: 1; }
img.c-slide.on { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.c-welcome-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.25) 60%, rgba(0,0,0,.9) 100%); }
.c-welcome-inner { position: relative; height: 100%; display: flex; flex-direction: column; padding: calc(36px + var(--sat)) 48px calc(56px + var(--sab)); }
.c-logo { max-height: 110px; max-width: 280px; object-fit: contain; object-position: left; }
.c-name { font-family: var(--f-display); font-size: 34px; font-weight: 700; }
.c-welcome-text { margin-top: auto; max-width: 760px; }
.c-welcome-text h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1; letter-spacing: -0.03em; font-weight: 600; }
.c-welcome-text p { font-size: 22px; color: rgba(244,238,228,.86); margin-top: 14px; max-width: 560px; }
.c-welcome-text .c-now { font-size: 15px; color: var(--accent); margin-top: 20px; }
.c-welcome-foot { display: flex; align-items: center; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.c-table { height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); display: inline-flex; align-items: center; font-weight: 600; }
.c-langs { display: flex; gap: 6px; }
.c-lang { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); font-weight: 700; font-size: 14px; }
.c-lang.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.c-start { margin-left: auto; height: 56px; padding: 0 26px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; }

.c-app { height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: var(--bg); }
.c-top { display: flex; align-items: center; gap: 14px; padding: calc(10px + var(--sat)) 18px 10px; border-bottom: 1px solid var(--line); }
.c-brand { height: 52px; display: flex; align-items: center; font-family: var(--f-display); font-size: 22px; font-weight: 700; }
.c-brand img { height: 46px; width: auto; max-width: 180px; object-fit: contain; }
.c-table-chip { height: 36px; padding: 0 14px; border-radius: 999px; background: var(--coal-2); border: 1px solid var(--line); display: inline-flex; align-items: center; font-weight: 600; color: var(--muted); }
.c-top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.c-top .c-lang { width: 42px; height: 42px; border-color: var(--line-2); }
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 16px; background: var(--coal-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 16px; }
.c-btn:disabled { opacity: .45; }
.c-btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.c-btn-called { background: color-mix(in srgb, var(--warn) 22%, var(--coal-2)); border-color: var(--warn); color: var(--warn-ink); }
.c-body { display: grid; grid-template-columns: 220px 1fr 380px; min-height: 0; }
.c-body.no-cart { grid-template-columns: 220px 1fr; }
.c-cats { display: flex; flex-direction: column; gap: 4px; padding: 16px 10px; overflow: auto; border-right: 1px solid var(--line); }
.c-cat { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 14px; border-radius: 12px; text-align: left; font-weight: 600; font-size: 17px; color: var(--muted); position: relative; }
.c-cat::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 2px; background: var(--cat, var(--accent)); opacity: 0; }
.c-cat.on { background: var(--coal-2); color: var(--text); }
.c-cat.on::before { opacity: 1; }
.c-products { overflow: auto; padding: 18px 22px 40px; min-width: 0; }
.c-cat-title { font-size: 32px; margin-bottom: 16px; }
.c-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.c-card { display: flex; flex-direction: column; text-align: left; border-radius: 18px; background: var(--coal); border: 1px solid var(--line); overflow: hidden; }
.c-card:active { transform: scale(0.985); }
.c-card-img { position: relative; aspect-ratio: 4 / 3; background: var(--coal-2); overflow: hidden; }
.c-card-img img { width: 100%; height: 100%; object-fit: cover; }
.c-play { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; }
.c-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.c-card-name { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.2; }
.c-card-desc { color: var(--muted); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; }
.c-card-foot strong { font-size: 18px; }
.c-add { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.c-sold { font-size: 13px; font-weight: 700; color: var(--danger); }
.c-card.sold { opacity: .5; }
.c-card.no-img .c-card-body { min-height: 150px; }
/* tablet do cliente: produtos sem foto em lista */
.nl { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 0 28px; }
.nl.nl-after { margin-top: 26px; padding-top: 8px; border-top: 1px solid var(--line); }
.nl-item { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 4px; text-align: left; border-bottom: 1px solid var(--line); }
.nl-item:active { background: var(--coal-2); }
.nl-item.sold { opacity: .5; }
.nl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nl-name { font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; }
.nl-desc { color: var(--muted); font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-item .lp-price { font-size: 18px; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.nl-add { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; }
.cr-listcard { overflow-y: auto; padding: 26px 26px 14px; justify-content: flex-start; }
.nl-title { grid-column: 1 / -1; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-family: inherit; }
.cr-listcard .nl { grid-template-columns: 1fr; }
.cr-listcard-off { pointer-events: none; }
.cr-plain { padding: 14px 30px 40px; }
.cr-plain-next { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 0 22px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 17px; }
.cr-plain-next strong { color: var(--text); }

.c-cart { display: flex; flex-direction: column; min-height: 0; background: var(--paper); color: var(--paper-ink); border-left: 1px solid var(--line); }
.c-sheet .c-cart { border-left: 0; border-radius: 20px; max-height: 80vh; }
.c-cart-head { display: flex; align-items: center; gap: 10px; padding: 20px 20px 12px; border-bottom: 1px dashed #cdbfa8; }
.c-cart-head h2 { font-size: 22px; }
.c-count { min-width: 28px; height: 28px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; font-size: 14px; }
.c-cart-lines { flex: 1; overflow: auto; padding: 8px 0; }
.c-cart-empty { padding: 28px 20px; text-align: center; color: var(--paper-muted) !important; }
.c-cline { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid #e6dccb; }
.c-cline-main { display: flex; flex-direction: column; min-width: 0; }
.c-cline .n { font-weight: 600; }
.c-cline small { color: var(--paper-muted); font-size: 13px; }
.c-cline small.note { color: #9a3d00; font-style: italic; }
.c-cline .p { font-family: var(--f-ticket); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
.c-cart-foot { padding: 14px 20px calc(18px + var(--sab)); border-top: 1px dashed #cdbfa8; display: flex; flex-direction: column; gap: 10px; }
.c-cart-foot .c-muted { color: var(--paper-muted); text-align: center; }
.c-ttotal { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-size: 20px; }
.c-ttotal strong { font-size: 28px; }
.c-tpaid { display: flex; justify-content: space-between; color: var(--paper-muted); }
.c-send { min-height: 64px; font-size: 19px; }
.c-qty { display: inline-flex; align-items: center; background: var(--coal-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.c-qty button { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.c-qty span { min-width: 40px; text-align: center; font-family: var(--f-display); font-size: 22px; font-weight: 600; }
.c-qty.sm { background: #ece3d3; border-color: #ddd0bb; }
.c-qty.sm button { width: 36px; height: 36px; color: var(--paper-ink); }
.c-qty.sm span { min-width: 26px; font-size: 17px; color: var(--paper-ink); }
.c-cart-bar { position: fixed; left: 16px; right: 16px; bottom: calc(40px + var(--sab)); height: 64px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; gap: 12px; padding: 0 20px; font-weight: 700; font-size: 18px; z-index: 30; box-shadow: 0 20px 40px -10px var(--shadow-c); }
.c-cart-bar .c-count { background: var(--accent-ink); color: var(--accent); }
.c-cart-bar strong { margin-left: auto; }

.c-sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .15s ease-out; }
.c-sheet { width: min(980px, 100%); max-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: 1fr auto; background: var(--coal); border: 1px solid var(--line-2); border-radius: 24px; overflow: hidden; animation: rise .18s ease-out; }
.c-sheet-narrow { width: min(560px, 100%); grid-template-columns: 1fr; background: transparent; border: 0; }
.c-sheet-narrow .c-sheet-body { background: var(--coal); border: 1px solid var(--line-2); border-radius: 24px; max-height: 86vh; }
.c-sheet-media { grid-row: 1 / span 2; position: relative; background: var(--coal-2); min-height: 320px; }
.c-sheet-media img, .c-sheet-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-media-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 120px; color: var(--accent); opacity: .5; }
.c-close { position: absolute; top: 14px; left: 14px; width: 52px; height: 52px; border-radius: 50%; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; color: #fff; }
.c-close.static { position: static; background: var(--coal-2); }
.c-sheet.no-media { position: relative; width: min(600px, 100%); grid-template-columns: 1fr; }
.c-sheet.no-media .c-sheet-body { padding-right: 84px; }
.c-close-r { left: auto; right: 14px; background: var(--coal-2); color: var(--text); }
.c-sheet-body { padding: 26px 28px 10px; overflow: auto; min-height: 0; }
.c-sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.c-sheet-body h2 { font-size: 30px; line-height: 1.1; }
.c-desc { color: var(--muted); font-size: 17px; margin-top: 10px; line-height: 1.45; }
.c-allergens { margin-top: 12px; font-size: 14px; color: var(--muted); }
.c-allergens span { color: var(--warn); font-weight: 700; margin-right: 6px; }
.c-opt { margin-top: 20px; }
.c-opt-title { font-family: var(--f-display); font-weight: 600; font-size: 18px; margin: 16px 0 8px; }
.c-opt-title small { font-family: var(--f-ui); font-weight: 500; color: var(--faint); font-size: 13px; margin-left: 6px; }
.c-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.c-pill { min-height: 50px; padding: 0 18px; border-radius: 999px; background: var(--coal-2); border: 2px solid var(--line); font-weight: 600; font-size: 16px; }
.c-pill.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--coal-2)); }
.c-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.c-choice { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; border-radius: 14px; background: var(--coal-2); border: 2px solid var(--line); overflow: hidden; padding-bottom: 10px; font-weight: 600; min-height: 60px; }
.c-choice img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.c-choice span, .c-choice small { padding: 0 10px; }
.c-choice span { padding-top: 8px; }
.c-choice small { color: var(--accent); }
.c-choice .sold-tag { color: var(--danger); }
.c-choice.on { border-color: var(--accent); }
.c-choice.sold { opacity: .45; }
.c-input { margin-top: 2px; }
.c-sheet-foot { display: flex; align-items: center; gap: 14px; padding: 16px 28px calc(20px + var(--sab)); border-top: 1px solid var(--line); background: var(--coal); }
.c-sheet-foot .c-btn-primary { flex: 1; min-height: 60px; font-size: 18px; }
.c-ticket { background: var(--paper); color: var(--paper-ink); border-radius: 14px; padding: 8px 0 14px; margin-bottom: 18px; }
.c-tline { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; padding: 9px 16px; font-family: var(--f-ticket); font-size: 15px; }
.c-tline .q { font-weight: 700; }
.c-tline .n { display: flex; flex-direction: column; font-weight: 600; }
.c-tline small { font-weight: 400; color: var(--paper-muted); font-size: 13px; }
.c-tline small.pending { color: #b54d00; }
.c-ticket .c-ttotal, .c-ticket .c-tpaid { padding: 8px 16px 0; border-top: 1px dashed #cdbfa8; margin-top: 6px; }
.c-pay-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.c-pay-choices .c-btn { min-height: 64px; }
.c-done-note { display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: 14px; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok-ink); font-weight: 600; margin-bottom: 18px; }
.c-muted { color: var(--muted); }
.c-sent, .c-thanks { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 94%, transparent); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 30px; animation: fade .2s ease-out; }
.c-thanks { background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 60%), var(--bg); }
.c-sent h2, .c-thanks h1 { font-size: 40px; }
.c-sent p, .c-thanks p { color: var(--muted); font-size: 20px; }
.c-sent .done-check, .c-thanks .done-check { width: 110px; height: 110px; }

@media (max-width: 1000px) {
  .c-body, .c-body.no-cart { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .c-cats { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .c-cat { white-space: nowrap; flex: none; min-height: 46px; }
  .c-cat::before { left: 12px; right: 12px; top: auto; bottom: 4px; width: auto; height: 3px; }
  .c-products { padding-bottom: 110px; }
  .c-sheet { grid-template-columns: 1fr; grid-template-rows: 260px 1fr auto; }
  .c-sheet-media { grid-row: auto; min-height: 0; }
  .c-top { flex-wrap: wrap; }
  .c-top-actions { width: 100%; margin-left: 0; justify-content: flex-end; flex-wrap: wrap; }
  .c-welcome-inner { padding: 28px 24px 52px; }
}
@media (max-width: 600px) {
  .c-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .c-card-name { font-size: 16px; }
  .c-card-desc { display: none; }
  .nl { grid-template-columns: 1fr; }
  .nl-name { font-size: 17px; }
  .c-btn { min-height: 46px; padding: 0 14px; font-size: 14px; }
  .c-top .c-langs { display: none; }
  .c-sheet-bg { padding: 0; align-items: flex-end; }
  .c-sheet { border-radius: 22px 22px 0 0; max-height: 96%; }
  .c-pay-choices { grid-template-columns: 1fr; }
  .c-start { margin-left: 0; }
}

/* ---------- Fórmulas (preço por combinação) e juntar etapa ---------- */
.combo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin: 4px 0 6px; }
.combo { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--coal); text-align: center; transition: border-color .15s, background .15s; }
.combo strong { font-family: var(--f-display); font-size: 20px; }
.combo span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.combo.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--coal)); }
.combo.on strong { color: var(--accent); }
.upgrade-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 14px; }
.upgrade-head > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--coal); min-width: 0; }
.upgrade-head > div.on { border-color: var(--accent); }
.upgrade-head strong { font-family: var(--f-display); font-size: 16px; }
.upgrade-head span { font-family: var(--f-ticket); color: var(--accent); }
.upgrade-head .ic { color: var(--faint); }
.line-menu { list-style: none; margin: 4px 0 12px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.line-menu li { display: flex; gap: 10px; font-weight: 600; }
.line-menu li span { color: var(--faint); font-weight: 500; min-width: 80px; }
@media (max-width: 600px) { .upgrade-head { grid-template-columns: 1fr; } .upgrade-head .ic { transform: rotate(90deg); justify-self: center; } }
.combo-editor { margin-top: 14px; }
.combo-edit-row { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.combo-edit-row .chips { align-self: center; }
@media (max-width: 600px) { .combo-edit-row { grid-template-columns: 1fr auto; } .combo-edit-row .chips { grid-column: 1 / -1; } }
.c-combos { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 14px; }
.c-combo { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--coal); text-align: center; transition: border-color .15s, background .15s; }
.c-combo strong { font-family: var(--f-display); font-size: 21px; }
.c-combo span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.c-combo.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--coal)); }
.c-combo.on strong { color: var(--accent); }
.c-combo-hint { margin-top: 8px; font-size: 14px; }
.c-upgrade { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 600; font-size: 14px; align-self: flex-start; }
.c-wide { flex: 1; }
.c-sheet-up { width: min(720px, 100%); grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
.c-sheet-up .c-choices { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.subopts, .c-subopts { margin-top: 10px; padding: 12px 14px; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--coal)); border-radius: 0 var(--r-sm) var(--r-sm) 0; display: flex; flex-direction: column; gap: 10px; }
.subopt-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.subopt-title small { font-weight: 500; color: var(--faint); margin-left: 6px; font-size: 12px; }
.c-subopts .subopt-title { font-size: 16px; }
.group-printers { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.course-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.course-btn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; padding: 10px 12px; min-height: 58px; border-radius: var(--r); border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--coal)); color: var(--text); font-weight: 700; }
.course-btn .ic { grid-row: 1 / span 2; color: var(--accent); }
.course-btn small { font-weight: 500; color: var(--muted); font-size: 12px; }
.course-btn.fired { border-color: var(--line); background: var(--coal-2); }
.course-btn.fired .ic { color: var(--ok); }
.step-course { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
/* ---------- Impressora virtual ---------- */
.vtray { margin: 6px 0 18px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--coal); }
.vtray-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.vtray-head h2 { display: flex; align-items: center; gap: 8px; }
.vtray-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 14px; align-items: flex-start; }
.vtray-item { flex: none; display: flex; flex-direction: column; gap: 8px; }
.vtray-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.vtray-meta span { color: var(--muted); }
.vtray-meta .icon-btn { margin-left: auto; }
.vtray-paper { padding: 0; border: 0; background: none; text-align: left; zoom: .72; }
.vview { display: flex; justify-content: center; padding: 8px 0 16px; overflow-x: auto; }
.pc-ip.virtual { color: var(--accent); font-weight: 600; }

.tpaper{width:calc(var(--cols,48) * 1ch + 28px);font:15px/1.29 'RestoPOS Ticket',ui-monospace,Menlo,Consolas,monospace;background:#fbf8f2;color:#15120e;padding:16px 14px 10px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.tpaper .tp-l{white-space:pre;overflow:hidden;min-height:1.29em}
.tpaper .b{font-weight:700}.tpaper .c{text-align:center}.tpaper .r{text-align:right}
.tpaper .xx{font-size:2em;line-height:1.29}
.tpaper .tall{transform:scaleY(2);transform-origin:top left;margin-bottom:1.29em}
.tpaper .tall.c{transform-origin:top center}
.tpaper .inv{background:#15120e;color:#fbf8f2}
.tpaper .tp-cut{border-top:2px dashed #b9b0a2;margin:8px -14px 0;height:0}
.tpaper .tp-meta{color:#8a8072;font-style:italic}
.tpaper .tp-logo{display:flex;justify-content:center;margin:2px 0 8px;min-height:8px}.tpaper .tp-logo img{display:block;image-rendering:pixelated}
.done-prints { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* ---------- Comandas do dia (Relatórios) ---------- */
.history { display: flex; flex-direction: column; gap: 14px; }
.history-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.history-bar .search { flex: 1; min-width: 200px; }
.history-bar select { width: auto; min-width: 180px; }
.day-pick { display: flex; align-items: center; gap: 6px; }
.day-pick input { width: auto; }
.icon-btn.flip .ic { transform: scaleX(-1); }
.history-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hstat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--coal); text-align: left; }
.hstat span { color: var(--muted); font-size: 13px; }
.hstat strong { font-family: var(--f-display); font-size: 22px; }
.hstat.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--coal)); }
.hstat.total { border-style: dashed; }
.or-total .pill { margin-left: 8px; }
.hdetail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; margin-top: 12px; }
.paper-ticket { background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 16px 18px; font-family: var(--f-ticket); font-size: 14px; align-self: start; }
.pt-line { display: grid; grid-template-columns: 26px 1fr auto; gap: 6px; padding: 4px 0; }
.pt-line .n { display: flex; flex-direction: column; }
.pt-line small { color: var(--paper-muted); font-size: 12px; }
.pt-line em { font-style: normal; color: var(--paper-muted); }
.pt-line.void { opacity: .5; }
.pt-line.void .n > :first-child, .pt-line.void .q { text-decoration: line-through; }
.pt-line .void-note { color: #b4331f; text-decoration: none; }
.pt-sep { border-top: 1px dashed #b9b0a2; margin: 8px 0; }
.pt-kv { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.pt-kv.small { font-size: 12px; color: var(--paper-muted); }
.pt-total { font-weight: 700; font-size: 18px; }
.hdetail-side { display: flex; flex-direction: column; gap: 10px; }
.hdetail-side h3 { margin-top: 6px; }
.hjobs { display: flex; flex-direction: column; gap: 6px; }
.hjob { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--coal); }
.hj-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hj-main small { color: var(--muted); }
.htimeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; border-left: 2px solid var(--line); }
.htimeline li { display: flex; gap: 10px; padding-left: 12px; position: relative; font-size: 14px; }
.htimeline li::before { content: ''; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.htimeline time { font-family: var(--f-ticket); color: var(--muted); min-width: 44px; }
@media (max-width: 900px) { .hdetail-grid { grid-template-columns: 1fr; } .history-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ticket-reopened { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 6px 8px; border: 1px dashed #b4331f; border-radius: 4px; color: #b4331f; font-size: 12px; font-family: var(--f-ui); }
.reopened-note { margin-top: 14px; }
.zone-tab.add-table { border-style: dashed; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.cover-btn.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--coal-2)); color: var(--accent); }
.danger-text { color: var(--danger); }
.floor-canvas.can-add { -webkit-touch-callout: none; user-select: none; }
.press-ring { position: absolute; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; border: 3px solid var(--accent); pointer-events: none; animation: press-grow .65s linear forwards; }
@keyframes press-grow { from { transform: scale(.2); opacity: .2; } to { transform: scale(1); opacity: 1; background: color-mix(in srgb, var(--accent) 25%, transparent); } }
.tbl.temp { border-style: dashed; }
.tbl-temp-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.toggle-row.temp-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--coal); margin: 4px 0 10px; cursor: pointer; }
.toggle-row.temp-toggle input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin-top: 2px; }
.toggle-row.temp-toggle span { display: flex; flex-direction: column; gap: 2px; }
.toggle-row.temp-toggle small { color: var(--muted); }
.rcat summary { list-style: none; cursor: pointer; }
.rcat summary::-webkit-details-marker { display: none; }
.rcat summary span::before { content: '▸ '; color: var(--faint); }
.rcat[open] summary span::before { content: '▾ '; }
.rrow.ritem { padding-left: 18px; color: var(--muted); font-size: 14px; }
.rrow.rcomp { padding-left: 40px; color: var(--faint); font-size: 13px; }
/* ---------- Estatísticas ---------- */
.stats { display: flex; flex-direction: column; gap: 14px; }
.stats.busy { opacity: .55; pointer-events: none; transition: opacity .2s; }
.st-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.st-custom { display: flex; gap: 6px; align-items: center; }
.st-custom input { width: auto; min-height: 40px; }
.st-period { margin-top: -6px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--coal); min-width: 0; }
.kpi-l { color: var(--muted); font-size: 13px; }
.kpi-v { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-d { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi-d.up { color: var(--ok); } .kpi-d.down { color: var(--danger); } .kpi-d.flat { color: var(--faint); }
.kpi-h { color: var(--faint); font-size: 12px; }
.st-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--coal); padding: 16px 18px; min-width: 0; }
.st-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.st-head h2 { font-size: 17px; }
.st-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.st-cols.tight { gap: 18px; }
.st-sub { margin: 16px 0 8px; font-size: 14px; color: var(--muted); }
.st-menu + .st-menu { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.st-menu h3 { margin-bottom: 10px; } .st-menu h4 { font-size: 13px; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
.st-mini { margin-top: 10px; }
.st-total td { font-weight: 700; border-top: 1px solid var(--line-2); }
.st-table .data-table th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.st-table .data-table th.on { color: var(--text); }
.st-search { margin-bottom: 8px; }
.st-more { margin-top: 8px; }
.st-unsold { gap: 6px; } .st-unsold small { color: var(--faint); margin-left: 4px; }
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); }
@media (max-width: 1000px) { .st-cols { grid-template-columns: 1fr; } }
/* gráficos */
.ch-cols { position: relative; height: calc(var(--h) + 22px); padding-left: 64px; }
.ch-grid { position: absolute; left: 0; right: 0; top: 0; height: var(--h); pointer-events: none; }
.ch-gl { position: absolute; left: 64px; right: 0; border-top: 1px dashed var(--line); }
.ch-gl span { position: absolute; right: calc(100% + 6px); top: -8px; font-size: 11px; color: var(--faint); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ch-plot { position: relative; height: var(--h); display: flex; align-items: flex-end; gap: 2px; }
.ch-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; min-width: 0; cursor: default; }
.ch-bar { width: 100%; max-width: 46px; margin: 0 auto; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 1px; opacity: .85; transition: opacity .1s; }
.ch-col.on .ch-bar { opacity: 1; box-shadow: 0 0 0 2px var(--coal), 0 0 0 3px var(--accent); }
.ch-x { position: absolute; top: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--faint); white-space: nowrap; }
.ch-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); margin-left: 32px; background: var(--coal-3); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 6px 10px; display: flex; flex-direction: column; font-size: 13px; pointer-events: none; white-space: nowrap; z-index: 2; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.ch-tip span { font-family: var(--f-display); font-size: 16px; font-weight: 600; } .ch-tip small { color: var(--muted); }
.ch-hbars { display: flex; flex-direction: column; gap: 6px; }
.ch-hrow { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.ch-hl { display: flex; flex-direction: column; min-width: 0; } .ch-hl, .ch-hl small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-hl small { color: var(--faint); font-size: 12px; }
.ch-ht { height: 10px; background: var(--coal-2); border-radius: 3px; overflow: hidden; }
.ch-hb { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.ch-hv { font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; font-size: 13px; }
.ch-hgrid { display: grid; gap: 2px; font-size: 11px; }
.ch-hh { color: var(--faint); text-align: center; } .ch-hd { color: var(--muted); align-self: center; }
.ch-cell { aspect-ratio: 1.3; border-radius: 3px; background: color-mix(in srgb, var(--accent) calc(var(--f) * 100%), var(--coal-2)); }
.ch-cell.on { outline: 2px solid var(--text); outline-offset: 1px; }
.ch-heat-foot { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 20px; }
.ch-scale { display: inline-flex; align-items: center; gap: 8px; } .ch-scale i { width: 90px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, var(--coal-2), var(--accent)); }
.ch-sbar { display: flex; gap: 2px; height: 16px; border-radius: 4px; overflow: hidden; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; }
.ch-legend span { display: inline-flex; align-items: center; gap: 6px; } .ch-legend i { width: 10px; height: 10px; border-radius: 2px; } .ch-legend small { color: var(--faint); }

/* ---------- Modelos de carta do tablet do cliente ---------- */
.c-body.l-carousel, .c-body.l-magazine, .c-body.l-list { grid-template-columns: minmax(0, 1fr) 380px; }
.c-body.no-cart.l-carousel, .c-body.no-cart.l-magazine, .c-body.no-cart.l-list { grid-template-columns: minmax(0, 1fr); }
.c-pane { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.c-scroll { flex: 1; min-height: 0; overflow: auto; }
.c-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 22px 12px; flex: none; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.c-tabs::-webkit-scrollbar { display: none; }
.c-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 16px; white-space: nowrap; transition: background .15s, color .15s; }
.c-tab.on { background: var(--text); border-color: var(--text); color: var(--bg); }
/* subcategorias da categoria escolhida */
.c-subtabs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 22px; flex: none; scrollbar-width: none; border-bottom: 1px solid var(--line); background: var(--coal); }
.c-subtabs::-webkit-scrollbar { display: none; }
.c-subtab { flex: none; height: 42px; padding: 0 18px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 15px; white-space: nowrap; position: relative; }
.c-subtab.on { color: var(--accent); background: var(--accent-soft); }
.c-cat.has-sub svg { margin-left: auto; color: var(--faint); flex: none; }
.c-subcat { min-height: 46px; margin-left: 16px; font-size: 15px; font-weight: 500; }
.c-lswitch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); }
.c-lswitch button { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.c-lswitch button.on { background: var(--coal-3); color: var(--accent); }

/* Carrossel */
.cr { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 14px 0 12px; }
.cr-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 30px; }
.cr-head .c-cat-title { margin-bottom: 8px; }
.cr-count { color: var(--faint); font-variant-numeric: tabular-nums; font-weight: 600; }
.cr-stage { position: relative; flex: 1; min-height: 0; container-type: size; }
.cr-track { --cw: min(600px, 72cqw); display: flex; gap: 26px; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; padding: 6px calc((100cqw - var(--cw)) / 2) 10px; scrollbar-width: none; overscroll-behavior-x: contain; }
.cr-track::-webkit-scrollbar { display: none; }
.cr-card { flex: 0 0 var(--cw); scroll-snap-align: center; display: flex; flex-direction: column; text-align: left; border-radius: 26px; background: var(--coal); border: 1px solid var(--line); overflow: hidden; transform: scale(.92); opacity: .5; transition: transform .35s ease, opacity .35s ease, box-shadow .35s; }
.cr-card.on { transform: none; opacity: 1; box-shadow: 0 30px 60px -30px var(--shadow-c); }
.cr-card.sold.on { opacity: .6; }
.cr-img { position: relative; flex: 1; min-height: 140px; background: var(--coal-2); overflow: hidden; }
.cr-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cr-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 120px; color: var(--line-2); background: radial-gradient(80% 80% at 50% 40%, var(--coal-3), var(--coal-2)); }
.cr-sold { position: absolute; left: 16px; top: 16px; background: var(--danger); color: #fff; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.cr-body { padding: 20px 26px 22px; display: flex; flex-direction: column; gap: 8px; flex: none; }
.cr-body h2 { font-size: 30px; line-height: 1.1; }
.cr-body p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.lp-price { font-size: 24px; font-variant-numeric: tabular-nums; font-family: var(--f-display); }
.lp-price small { font-size: 14px; color: var(--muted); font-family: var(--f-ui); font-weight: 500; }
.cr-add { display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 17px; }
.cr-next { align-items: center; justify-content: center; gap: 10px; text-align: center; background: transparent; border-style: dashed; border-color: var(--line-2); }
.cr-next-k { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; }
.cr-next-n { font-family: var(--f-display); font-size: 40px; font-weight: 600; }
.cr-next-i { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.cr-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--coal-3) 88%, transparent); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); transition: opacity .2s; }
.cr-arrow.prev { left: 14px; } .cr-arrow.next { right: 14px; }
.cr-arrow:disabled { opacity: 0; pointer-events: none; }
.cr-dots { display: flex; justify-content: center; gap: 6px; padding-top: 10px; flex-wrap: wrap; }
.cr-dot { width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); transition: width .25s, background .25s; }
.cr-dot.on { width: 26px; background: var(--accent); }

/* Editorial */
.mg { padding: 8px 30px 60px; }
.mg-hero { display: flex; align-items: center; gap: 22px; margin: 18px 0 26px; }
.mg-hero h1 { font-size: 46px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.mg-rule { flex: 1; height: 1px; background: var(--line-2); }
.mg-item { width: 100%; display: grid; grid-template-columns: 1.15fr 1fr; text-align: left; background: var(--coal); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-bottom: 22px; min-height: 320px; }
.mg-item.flip .mg-img { order: 2; }
.mg-item.no-img { grid-template-columns: 1fr; min-height: 0; }
.mg-item.sold { opacity: .55; }
.mg-img { position: relative; min-height: 260px; background: var(--coal-2); }
.mg-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mg-text { padding: 34px 38px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.mg-num { color: var(--accent); font-family: var(--f-display); font-size: 15px; letter-spacing: .22em; font-weight: 600; }
.mg-text h2 { font-size: 34px; line-height: 1.08; font-weight: 600; }
.mg-text p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.mg-foot { display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.mg-add { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font-weight: 700; }

/* Carta (lista elegante) */
.ct { max-width: 1120px; margin: 0 auto; padding: 22px 40px 70px; }
.ct-head { text-align: center; margin: 14px 0 28px; }
.ct-head h1 { font-size: 48px; font-weight: 500; letter-spacing: .01em; }
.ct-orn { display: block; color: var(--accent); font-size: 18px; margin-top: 8px; letter-spacing: .4em; }
.ct-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.ct-item { display: flex; align-items: flex-start; gap: 16px; text-align: left; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.ct-item.sold { opacity: .5; }
.ct-thumb { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line-2); }
.ct-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ct-line { display: flex; align-items: baseline; gap: 10px; }
.ct-name { font-family: var(--f-display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.ct-dots { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line-2); transform: translateY(-5px); }
.ct-price { font-weight: 600; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ct-desc { color: var(--muted); font-style: italic; font-size: 15px; line-height: 1.45; }

@media (max-width: 1000px) {
  .c-body.l-carousel, .c-body.l-magazine, .c-body.l-list, .c-body.no-cart.l-carousel, .c-body.no-cart.l-magazine, .c-body.no-cart.l-list { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .c-pane { padding-bottom: 0; }
  .c-pane .c-scroll, .c-pane .cr { padding-bottom: 96px; }
  .cr-track { --cw: 84cqw; gap: 16px; }
  .cr-arrow { display: none; }
  .mg { padding: 4px 16px 40px; }
  .mg-item, .mg-item.flip { grid-template-columns: 1fr; }
  .mg-item.flip .mg-img { order: 0; }
  .mg-img { min-height: 0; aspect-ratio: 16 / 10; }
  .mg-text { padding: 22px; }
  .ct { padding: 16px 18px 40px; }
  .ct-list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .cr-body h2 { font-size: 24px; } .mg-hero h1, .ct-head h1 { font-size: 34px; } .mg-text h2 { font-size: 26px; }
  .c-lswitch { display: none; }
}

/* ---------- Escolha de tema / modelo nas configurações ---------- */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.theme-card { text-align: left; border-radius: 16px; border: 2px solid var(--line); overflow: hidden; background: var(--coal); transition: border-color .15s; }
.theme-card.on { border-color: var(--accent); }
.theme-prev { height: 108px; padding: 12px; display: grid; grid-template-columns: 34px 1fr; gap: 8px; }
.theme-prev .tp-side { border-radius: 8px; display: flex; flex-direction: column; gap: 5px; padding: 6px; }
.theme-prev .tp-side i { height: 6px; border-radius: 3px; display: block; opacity: .55; }
.theme-prev .tp-main { border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.theme-prev .tp-title { font-size: 19px; line-height: 1; font-weight: 600; }
.theme-prev .tp-row { display: flex; gap: 6px; align-items: center; margin-top: auto; }
.theme-prev .tp-row span { height: 22px; flex: 1; border-radius: 6px; }
.theme-prev .tp-row b { height: 22px; width: 46px; border-radius: 999px; }
.theme-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; font-weight: 600; font-size: 14px; }
.theme-meta small { color: var(--muted); font-weight: 500; }
.layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.layout-card { text-align: left; border-radius: 14px; border: 2px solid var(--line); background: var(--coal); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.layout-card.on { border-color: var(--accent); }
.layout-card strong { font-size: 14px; } .layout-card small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.lo { height: 84px; border-radius: 8px; background: var(--coal-2); padding: 7px; display: flex; gap: 5px; overflow: hidden; }
.lo i { display: block; border-radius: 4px; background: var(--line-2); }
.lo .a { background: var(--accent); opacity: .8; }
.lo-rail .side { width: 20%; display: flex; flex-direction: column; gap: 4px; } .lo-rail .side i { height: 7px; }
.lo-rail .cells { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.lo-carousel { flex-direction: column; } .lo-carousel .tabs { display: flex; gap: 3px; } .lo-carousel .tabs i { height: 6px; width: 18px; border-radius: 3px; }
.lo-carousel .strip { flex: 1; display: flex; gap: 5px; align-items: stretch; } .lo-carousel .strip i { flex: 0 0 22%; opacity: .5; } .lo-carousel .strip .big { flex: 1; opacity: 1; }
.lo-magazine { flex-direction: column; } .lo-magazine .r { flex: 1; display: flex; gap: 4px; } .lo-magazine .r i:first-child { flex: 1.2; } .lo-magazine .r i:last-child { flex: 1; background: transparent; border: 1px solid var(--line-2); }
.lo-magazine .r.f { flex-direction: row-reverse; }
.lo-list { flex-direction: column; gap: 6px; padding: 9px 12px; } .lo-list .l { display: flex; align-items: center; gap: 5px; } .lo-list .l i:first-child { width: 10px; height: 10px; border-radius: 50%; } .lo-list .l i:nth-child(2) { width: 30%; height: 6px; } .lo-list .l i:nth-child(3) { flex: 1; height: 0; border-bottom: 1px dotted var(--line-2); background: none; } .lo-list .l i:last-child { width: 14%; height: 6px; }
.lp-price, .ct-price, .c-card-foot strong, .c-ttotal strong, .kpi-v { font-variant-numeric: lining-nums tabular-nums; }
:root[data-mode="light"] .modal-bg, :root[data-mode="light"] .c-sheet-bg { background: rgba(40,32,24,.4); }
@media (max-width: 900px) and (max-height: 760px) {
  .lock-inner { gap: 12px; padding-top: calc(16px + var(--sat)); }
  .lock-clock { font-size: 44px; } .lock-date, .lock-device { display: none; }
  .lock-pad { gap: 12px; } .key { height: 54px; }
}

/* ---------- Decoração da planta (só orientação) ---------- */
.decor { position: absolute; z-index: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 4px; }
.decor.edit { pointer-events: auto; cursor: grab; touch-action: none; }
.decor.selected { outline: 2px solid var(--accent); outline-offset: 2px; }
.floor-canvas .tbl { z-index: 1; }
.decor-in { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; max-width: 100%; padding: 0 4px; }
.decor.vert .decor-in { writing-mode: vertical-rl; }
.decor.vert .decor-in svg { transform: rotate(90deg); }
.decor-column { background: var(--line-2); border-radius: 3px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 10%, transparent); }
.decor-wall { background: var(--line-2); border-radius: 2px; }
.decor-door { background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 10px); opacity: .75; color: var(--accent); }
.decor-door.vert { background: repeating-linear-gradient(0deg, var(--accent) 0 6px, transparent 6px 10px); }
.decor-window { background: repeating-linear-gradient(90deg, color-mix(in srgb, #6fa8dc 70%, transparent) 0 10px, transparent 10px 12px); border: 1px solid color-mix(in srgb, #6fa8dc 60%, transparent); }
.decor-window.vert { background: repeating-linear-gradient(0deg, color-mix(in srgb, #6fa8dc 70%, transparent) 0 10px, transparent 10px 12px); }
.decor-bar, .decor-cashdesk { background: color-mix(in srgb, var(--text) 7%, transparent); border: 1.5px solid var(--line-2); border-radius: 8px; }
.decor-kitchen, .decor-wc { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--text) 5%, transparent) 0 6px, transparent 6px 12px); border: 1.5px dashed var(--line-2); border-radius: 8px; }
.decor-stairs { background: repeating-linear-gradient(0deg, var(--line-2) 0 2px, transparent 2px 9px); border: 1.5px solid var(--line-2); border-radius: 4px; }
.decor-plant { background: radial-gradient(circle, color-mix(in srgb, #5f9e5a 60%, transparent) 0 55%, transparent 56%); color: #7fbf78; }
.decor-label { color: var(--muted); }
.decor-label .decor-in { font-size: 13px; text-transform: none; letter-spacing: 0; }
.decor-palette { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; margin-top: 10px; border-radius: var(--r); background: var(--coal); border: 1px solid var(--line); }
.decor-pick { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.decor-pick:active { border-color: var(--accent); }
.decor-swatch { position: relative; width: 22px; height: 16px; display: inline-block; border-radius: 3px; }
.decor-swatch.decor-door, .decor-swatch.decor-window, .decor-swatch.decor-wall { height: 6px; }
.decor-swatch.decor-column { width: 10px; } .decor-swatch.decor-plant { width: 16px; } .decor-swatch.decor-label { border: 1px dashed var(--line-2); }
.size-steps { display: flex; gap: 8px; }
.size-step { flex: 1; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid var(--line-2); font-weight: 700; color: var(--muted); }
.size-step i { display: block; border: 1.5px solid currentColor; }
.size-step.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.fa-apply { margin: 6px 0 14px; padding: 12px; border-radius: 10px; background: var(--coal-2); }
.fa-apply .field-label { margin: 0 0 8px; }
.fa-fine { margin: -4px 0 12px; color: var(--muted); font-size: 14px; }
.fa-fine summary { cursor: pointer; padding: 4px 0; }
.fa-panel { max-height: calc(100vh - 220px); overflow: auto; }
.lock-warn { position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--warn); color: #1a1205; font-weight: 700; font-size: 17px; box-shadow: 0 16px 40px -10px var(--shadow-c); animation: rise .2s ease-out; cursor: pointer; }
.lock-warn span { font-weight: 500; opacity: .8; }
.decor-tag { position: absolute; top: calc(100% + 3px); left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; opacity: .85; }
.decor-door .decor-tag { color: var(--accent); }
.decor.vert .decor-tag { top: 50%; left: calc(100% + 4px); transform: translateY(-50%); }
.decor-tag.up { top: auto; bottom: calc(100% + 3px); }

/* ---------- Pessoas (1–10 +), escolha de mesa por zona, menu do tablet de mesa ---------- */
.covers-quick.ten { grid-template-columns: repeat(4, 1fr); }
.cover-more { font-size: 32px; color: var(--accent); }
.cover-more.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.covers-custom > div { display: flex; flex-direction: column; gap: 10px; }
.covers-ok { min-height: 50px; }
.table-pick { display: flex; flex-direction: column; gap: 12px; }
.tp-zones { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.tp-zones .zone-tab { flex: none; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; max-height: 46vh; overflow: auto; padding: 2px; }
.tp-table { height: 56px; border-radius: 14px; background: var(--coal-2); border: 1px solid var(--line); font-family: var(--f-display); font-weight: 700; font-size: 18px; }
.tp-table.current { border-style: dashed; color: var(--muted); }
.tp-table.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.zone-move { display: inline-flex; gap: 2px; align-items: center; }
.zone-move .icon-btn:disabled { opacity: .3; }
button.c-table-chip { cursor: pointer; }
.tm { padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; max-width: 460px; }
.tm h2 { font-size: 24px; padding-right: 56px; }
.tm .c-muted { margin: -6px 0 4px; }
.tm-close { left: auto; right: 14px; background: var(--coal-3); color: var(--text); }
.tm-actions { display: grid; gap: 10px; }
.tm .pin-dots { justify-content: center; }
.c-sheet.tm { display: flex; background: var(--coal); border: 1px solid var(--line-2); overflow: auto; max-height: 92vh; }
.covers-quick.ten { grid-template-columns: repeat(5, 1fr); }
.cover-more { grid-column: 1 / -1; height: 52px; font-family: var(--f-ui); font-size: 16px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cover-more span { font-size: 26px; line-height: 1; }
.install-help { display: flex; flex-direction: column; gap: 10px; }
.install-steps { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; user-select: text; }
.install-ok { display: flex; align-items: center; gap: 8px; color: var(--ok); margin: 0; font-weight: 600; }
.setup-install { margin-top: 28px; max-width: 460px; }
.tm-install { border-top: 1px solid var(--line); padding-top: 14px; }
.agent-help .agent-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.agent-row { display: flex; align-items: center; gap: 8px; }
.agent-row small { color: var(--muted); }
.agent-row { flex-wrap: wrap; }
.agent-row .agent-old { color: var(--accent); flex-basis: 100%; padding-left: 16px; }
.dot-status { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.dot-status.on { background: var(--ok); }
.agent-cmd { margin: 6px 0 4px; padding: 8px 10px; border-radius: 8px; background: var(--coal-3); font-family: var(--f-ticket); font-size: 12.5px; white-space: pre-wrap; word-break: break-all; user-select: text; }
.agent-help ol li { margin-bottom: 8px; }
/* ---------- Relatórios: uso do tablet do cliente ---------- */
.st-tablet .st-kpi4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 14px; }
.st-tablet .st-big { font-family: var(--f-display); font-size: 30px; margin: 4px 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.st-tablet .st-big small { font-family: var(--f-ui, inherit); font-size: 13px; }
@media (max-width: 900px) { .st-tablet .st-kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ---------- Assinatura Technou (tablet do cliente) ---------- */
.tn-credit { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 5px 12px calc(5px + var(--sab, 0px)); font-size: 11px; letter-spacing: .02em; color: var(--muted); opacity: .75; border-top: 1px solid var(--line); background: var(--bg); white-space: nowrap; overflow: hidden; }
.tn-credit strong { font-weight: 600; color: var(--text); opacity: .85; }
.tn-credit .tn-dot { opacity: .6; }
.tn-mark { display: block; flex: none; }
.c-welcome .tn-credit.on-photo { position: absolute; left: 0; right: 0; bottom: 0; background: none; border: 0; color: rgba(246,241,234,.6); padding-bottom: calc(8px + var(--sab, 0px)); pointer-events: none; }
.c-welcome .tn-credit.on-photo strong { color: rgba(246,241,234,.85); }

/* ---------- Suporte remoto ---------- */
.dc-remote { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rm-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.rm-chips.stale { opacity: .55; }
.rm-chip { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--coal-3, rgba(255,255,255,.06)); border: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rm-chip.warn { color: var(--warn-ink); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.rm-chip.bad { color: var(--danger, #e5484d); border-color: color-mix(in srgb, var(--danger, #e5484d) 45%, transparent); }
.rm-chip.quiet { color: var(--muted); }
.rm-modal .modal-body { display: flex; flex-direction: column; gap: 16px; }
.rm-grid { display: grid; grid-template-columns: 1fr 260px; gap: 20px; align-items: start; }
.rm-dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.rm-dl dt { color: var(--muted); }
.rm-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rm-ua { display: block; margin-top: 10px; font-size: 11px; overflow-wrap: anywhere; }
.rm-actions { display: flex; flex-direction: column; gap: 6px; }
.rm-actions .btn { justify-content: flex-start; width: 100%; text-align: left; white-space: normal; height: auto; min-height: 42px; }
.rm-shot { flex: none; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.rm-shot img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.rm-shot figcaption { font-size: 12px; }
.rm-errs { flex: none; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-height: 280px; overflow: auto; }
.rm-errs-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rm-errs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rm-errs li { display: flex; gap: 8px; align-items: baseline; font-size: 12px; }
.rm-errs time { color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.rm-errs code { overflow-wrap: anywhere; white-space: pre-wrap; }
.rm-note { font-size: 12px; margin: 0; }
@media (max-width: 720px) { .rm-grid { grid-template-columns: 1fr; } .rm-actions { display: grid; grid-template-columns: 1fr 1fr; } }

/* mensagens mostradas no próprio aparelho */
.rm-overlay { position: fixed; inset: 0; z-index: 99999; display: grid; place-items: center; background: rgba(0,0,0,.55); padding: 24px; animation: rm-in .25s ease; }
.rm-box { max-width: 560px; background: #141416; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 28px 32px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.rm-box p { margin: 0; font-size: 22px; line-height: 1.4; }
.rm-ident { border: 3px solid var(--accent, #ff7a1a); }
.rm-ident small { display: block; text-transform: uppercase; letter-spacing: .12em; color: var(--accent, #ff7a1a); font-size: 13px; margin-bottom: 8px; }
.rm-ident strong { font-size: 44px; }
.rm-flash { animation: rm-in .25s ease, rm-flash 1s ease-in-out 3; }
@keyframes rm-in { from { opacity: 0; } }
@keyframes rm-flash { 50% { background: color-mix(in srgb, var(--accent, #ff7a1a) 45%, rgba(0,0,0,.55)); } }
