/* Pos IA · estilos de pantallas de gestión (panel, productos, configuración, IA, plataforma, ayuda). */

/* Gráficos */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font-ui); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .bar:hover path { filter: brightness(1.12); }
.chart-wrap { position: relative; }
.tip-box { position: absolute; pointer-events: none; background: var(--ink); color: var(--surface); font-size: 12px; padding: 6px 9px; border-radius: 8px; white-space: nowrap; translate: -50% -130%; font-variant-numeric: tabular-nums; z-index: 2; }
.dash-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; }
.hbar .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hbar .track { height: 12px; position: relative; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; background: var(--series-1); border-radius: 0 4px 4px 0; min-width: 2px; }
.hbar .v { text-align: right; font-weight: 500; }
.ask-box .help-answer { margin-top: 4px; }

/* Productos */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.prod-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px; }
.prod-card:hover { border-color: var(--brand); }
.prod-card.off { opacity: .55; }
.prod-card .pc-body { display: grid; gap: 2px; min-width: 0; }
.prod-card .pc-body b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--faint); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 26px; height: 26px; }
.thumb.big { width: 160px; height: 160px; gap: 4px; align-content: center; text-align: center; }
.prod-editor { display: grid; gap: 16px; }
.pe-top { display: flex; gap: 16px; align-items: start; flex-wrap: wrap; }
.pe-img { display: grid; gap: 8px; justify-items: start; }
.pe-img label.btn { cursor: pointer; }
.pe-top > .stack { min-width: 260px; }
.pe-top .row > label.f { flex: 1; }
fieldset.pe-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; display: grid; gap: 10px; min-width: 0; }
fieldset.pe-sec legend { padding: 0 6px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.price-f span { font-size: 12px; }
.pack-row, .mod-opt { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 6px; }
.mod-group { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 8px; background: var(--surface-2); }
.mod-opts { display: grid; gap: 8px; }
.rec-row { flex-wrap: nowrap; }
.rec-row select.grow { min-width: 0; }
.swatch-dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); vertical-align: middle; }

/* Configuración */
.sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); padding: 0; }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.logo-prev { width: 56px; height: 56px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); color: var(--faint); }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.logo-prev svg { width: 22px; height: 22px; }
.mini-logo { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.tabs a { display: inline-flex; gap: 6px; align-items: center; }
.tabs a svg { width: 16px; height: 16px; }
.cty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; align-items: start; }
.cty { border: 1px solid transparent; }
.cty.on { border-color: color-mix(in oklab, var(--brand) 45%, transparent); }
.cty h3 { font-size: 17px; }
.flag { display: inline-grid; place-items: center; min-width: 38px; height: 28px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 500; padding: 0 6px; }
.cty-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cty-facts > div { display: grid; gap: 2px; min-width: 0; }
.cty-facts b { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.cty details summary { cursor: pointer; color: var(--brand-fg); font-size: 14px; }
.cty-detail { margin-top: 10px; }
.dl { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 6px 14px; margin: 0; font-size: 13.5px; }
.dl dt { color: var(--faint); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.dl .chip { margin: 0 4px 4px 0; white-space: normal; }
ul.req { margin: 4px 0 0; padding-left: 1.2em; font-size: 13.5px; display: grid; gap: 2px; }
.warn-box { background: var(--warn-soft); color: var(--ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.warn-box b { color: var(--warn); }
.warn-box ul { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 2px; }
.cty-cfg { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 10px; }
.rcp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 12px; align-items: start; }
.rcp-preview { background: var(--surface-2); border-radius: 12px; padding: 16px; display: grid; justify-items: center; overflow: auto; max-height: 75vh; }
.rcpt-fallback { font-family: var(--font-mono); font-size: 12px; line-height: 1.5; background: #fffdf8; color: #1b1b1b; padding: 16px; width: 100%; max-width: 320px; box-shadow: 0 6px 18px rgb(0 0 0 / .12); }
.rcpt-fallback.rcpt-58mm { max-width: 240px; }
.rcpt-fallback.rcpt-A4, .rcpt-fallback.rcpt-letter { max-width: 560px; font-family: var(--font-ui); }
.rcpt-fallback.fs-sm { font-size: 11px; } .rcpt-fallback.fs-lg { font-size: 14px; }
.rcpt-fallback .c { text-align: center; } .rcpt-fallback .b { font-weight: 600; }
.rcpt-fallback .r { display: flex; justify-content: space-between; gap: 8px; }
.rcpt-fallback hr { border: 0; border-top: 1px dashed #999; margin: 8px 0; }
.rcpt-fallback .rlogo { max-height: 48px; display: block; margin: 0 auto 6px; }
.rcpt-fallback .qr-ph { border: 1px dashed #999; padding: 18px; margin: 8px auto; width: 90px; }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.int-card p { margin: 0; }
code.wh { font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; min-width: 0; }

/* IA */
.ai-chat { gap: 14px; }
.chat-log { display: grid; gap: 10px; max-height: 55vh; overflow: auto; padding-right: 4px; align-content: start; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; display: grid; gap: 2px; }
.msg.user { justify-self: end; background: var(--brand-soft); border-color: transparent; }
.ai-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ai-gallery figure { margin: 0; display: grid; gap: 6px; }
.ai-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); max-width: 100%; }
.ai-gallery figcaption { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Plataforma */
.json-editor { min-height: 50vh; font-size: 12.5px; line-height: 1.45; white-space: pre; }

/* Centro de ayuda */
.hc-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 12px; align-items: start; }
.hc-list { padding: 8px; display: grid; gap: 2px; position: sticky; top: 0; }
.hc-item { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; text-align: left; color: var(--muted); font-weight: 500; }
.hc-item svg { width: 18px; height: 18px; flex: none; }
.hc-item[aria-current="true"] { background: var(--brand-soft); color: var(--brand-fg); }
.hc-art { min-height: 240px; }
.hc-art h3 { font-size: 20px; }

/* ---------- v2: utilidades ---------- */
.sw-line { align-items: flex-start; gap: 12px; }
.sw-line .switch { margin-top: 2px; }
.logo-prev.big { width: 88px; height: 88px; }
.thumb.sm { width: 40px; height: 40px; border-radius: 8px; }
.thumb.sm svg { width: 18px; height: 18px; }
input[type="time"], input[type="color"] { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
input[type="time"] { width: 100%; padding: 9px 12px; min-height: 40px; }
.qr-fallback { display: grid; place-items: center; border: 1px dashed var(--line); color: var(--faint); }
.hbar .fill.self { background: var(--good); }

/* Fidelidad */
.ly-two { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 12px; align-items: start; }
.ly-side { position: sticky; top: 0; }
.ly-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ly-type { display: grid; gap: 4px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 12px; }
.ly-type[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.ly-chips { max-height: 160px; overflow: auto; }
.ly-stamps-prev { display: flex; flex-wrap: wrap; gap: 6px; }
.ly-stamps-prev span { width: 34px; height: 34px; border-radius: 50%; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--brand-fg); }
.ly-stamps-prev span.on { border-style: solid; border-color: var(--brand); background: var(--brand-soft); }
.ly-stamps-prev span.gift { border-style: solid; border-color: var(--good); color: var(--good); }
.ly-stamps-prev svg { width: 16px; height: 16px; }
.ly-ticket { background: var(--surface-2); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; }
.ly-tier, .ly-reward { box-shadow: none; border: 1px solid var(--line); }
.ly-joinqr { display: grid; place-items: center; padding: 12px; background: #fff; border-radius: 12px; border: 1px solid var(--line); justify-self: start; }
.ly-steps { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; }
.wcard-stage { display: grid; place-items: center; padding: 18px 8px; background: var(--surface-2); border-radius: 14px; }
.wcard { width: min(340px, 100%); background: var(--wbg); color: var(--wfg); border-radius: 20px; padding: 18px; display: grid; gap: 14px; box-shadow: 0 12px 30px rgb(0 0 0 / .25); }
.wcard .wc-h { display: flex; align-items: center; gap: 10px; }
.wcard .wc-h img, .wc-logo-ph { width: 40px; height: 40px; border-radius: 50%; object-fit: contain; background: rgb(255 255 255 / .15); display: grid; place-items: center; font-weight: 600; }
.wcard .wc-h b { font-size: 17px; font-weight: 600; }
.wcard .wc-row { display: flex; gap: 22px; }
.wcard .wc-row span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; opacity: .8; }
.wcard .wc-row strong { font-size: 20px; font-weight: 600; }
.wcard .wc-qr { justify-self: center; background: #fff; color: #222; border-radius: 12px; padding: 10px; display: grid; justify-items: center; gap: 4px; font: 11px var(--font-mono); }
.wcard.apple { border-radius: 14px; }
.wcard.apple .wc-h { justify-content: space-between; flex-direction: row-reverse; }
.wcard.apple .wc-h img, .wcard.apple .wc-logo-ph { border-radius: 8px; }
.wcard.apple .wc-h + .wc-row { background: rgb(0 0 0 / .18); margin: 0 -18px; padding: 14px 18px; }
.wcard.apple .wc-qr { border-radius: 6px; }

/* Autoservicio */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.ch-card { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; background: var(--surface); }
.ch-card.on { border-color: var(--brand); background: var(--brand-soft); }
.ch-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-fg); flex: none; }
.ch-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.ch-wide { grid-column: 1 / -1; }
.ch-link { flex-wrap: nowrap; }
.ch-how summary { cursor: pointer; color: var(--brand-fg); font-weight: 500; }
.ch-how h4 { margin-top: 10px; }
.ch-how ol { margin: 6px 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; }
.ch-iframe { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; height: 460px; background: var(--surface-2); }
.ch-iframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.ch-qr { background: #fff; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }
.ch-bubble { background: var(--good-soft); border-radius: 12px 12px 12px 2px; padding: 10px 12px; display: grid; gap: 4px; max-width: 460px; font-size: 14px; }
.tq-preview { background: var(--surface-2); border-radius: 12px; padding: 12px; overflow: auto; max-height: 65vh; }
.tq-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tq-card { background: #fff; color: #111; border-radius: 14px; border: 2px solid var(--tq); padding: 14px; display: grid; justify-items: center; gap: 6px; text-align: center; break-inside: avoid; }
.tq-head { height: 46px; display: grid; place-items: center; }
.tq-head img { max-height: 46px; max-width: 160px; object-fit: contain; }
.tq-title { font-weight: 600; font-size: 16px; color: var(--tq); }
.tq-qr svg { width: 170px; height: 170px; display: block; }
.tq-num { font-size: 24px; font-weight: 700; }
.tq-store { font-size: 11px; color: #666; }

/* Cartelera */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.st-grid > .empty { grid-column: 1 / -1; }
.st-card { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; text-align: left; border: 1px solid transparent; padding: 12px; }
.st-card:hover { border-color: var(--brand); }
.st-poster { width: 84px; aspect-ratio: 2 / 3; border-radius: 8px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: var(--faint); border: 1px solid var(--line); }
.st-poster img { width: 100%; height: 100%; object-fit: cover; }
.st-poster.big { width: 150px; }
.st-body { display: grid; gap: 4px; min-width: 0; align-content: start; }
.st-body b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-time { font-size: 20px; font-weight: 600; }
.st-occ { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.st-occ .track { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.st-occ .fill { display: block; height: 100%; background: var(--series-1); transition: width .3s; }
.st-occ .fill.hot { background: var(--warn); }
.st-editor { display: grid; gap: 16px; }
.seatmap-wrap { overflow-x: auto; padding-bottom: 4px; }
.seatmap { display: grid; gap: 4px; justify-content: center; min-width: max-content; }
.screen-bar { text-align: center; font-size: 11px; letter-spacing: .3em; color: var(--faint); border-top: 4px solid var(--line); border-radius: 50% 50% 0 0 / 14px 14px 0 0; padding-top: 6px; margin-bottom: 8px; }
.seat-row { display: flex; gap: 4px; align-items: center; }
.row-lbl { width: 22px; text-align: center; font-size: 11px; color: var(--faint); border: 0; background: none; padding: 0; font-weight: 600; }
button.row-lbl { cursor: pointer; border-radius: 6px; height: 22px; }
button.row-lbl.vip { background: #c9a227; color: #fff; }
.seat { width: 22px; height: 22px; border-radius: 6px 6px 3px 3px; border: 1px solid var(--line); background: var(--surface-2); padding: 0; flex: none; display: inline-block; }
.seat.vip { background: color-mix(in oklab, #c9a227 35%, var(--surface)); border-color: #c9a227; }
.seat.blocked { background: repeating-linear-gradient(45deg, var(--line), var(--line) 3px, transparent 3px, transparent 6px); border-style: dashed; }
.seat.aisle { margin-right: 14px; }
.seat-legend span { display: inline-flex; gap: 6px; align-items: center; }
.seat-legend i.seat { width: 16px; height: 16px; }

/* Productos v2 */
.attr-row { flex-wrap: nowrap; }
.var-tbl input { min-height: 34px; padding: 5px 8px; min-width: 90px; }
.var-tbl td { padding: 5px 6px; }
.scan-video { width: 100%; max-height: 50vh; border-radius: 12px; background: #000; object-fit: cover; }

/* Primeros pasos */
.ob-progress { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.ob-progress span { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.ob-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ob-steps button { width: 100%; border: 0; background: none; display: grid; justify-items: center; gap: 4px; padding: 6px 2px; color: var(--muted); font-size: 12.5px; border-radius: 10px; }
.ob-steps button.cur { color: var(--ink); background: var(--brand-soft); }
.ob-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); font-weight: 600; }
.ob-steps .cur .ob-dot { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.ob-steps .ok .ob-dot { border-color: var(--good); color: var(--good); }
.ob-lbl { text-align: center; line-height: 1.15; }
.ob-card { gap: 16px; }
.ob-card > h3 { font-size: 20px; display: flex; gap: 8px; align-items: center; }
.ob-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 14px; }
.ob-brand { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 18px; align-items: start; }
.ob-previews { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; align-items: start; }
.ob-previews figure { margin: 0; display: grid; gap: 6px; }
.ob-rcpt { max-width: 240px; font-size: 11px; justify-self: center; }
.kiosk-mock { border: 8px solid #1b1f24; border-radius: 18px; overflow: hidden; background: #fff; color: #111; display: grid; grid-template-rows: auto 1fr auto; aspect-ratio: 4 / 3; }
.km-head { background: var(--k); color: #fff; height: 44px; display: grid; place-items: center; }
.km-head img { max-height: 32px; max-width: 60%; object-fit: contain; }
.km-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 8px; align-content: start; }
.km-tile { border: 1px solid #e6e6e6; border-radius: 8px; overflow: hidden; display: grid; font-size: 10px; }
.km-tile img, .km-tile span { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: color-mix(in oklab, var(--k) 14%, #fff); display: block; }
.km-tile small { padding: 3px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.km-foot { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-top: 1px solid #eee; font-size: 11px; }
.km-pay { background: var(--k); color: #fff; border-radius: 8px; padding: 5px 12px; font-weight: 600; }
.ob-list { display: grid; gap: 6px; max-height: 52vh; overflow: auto; padding-right: 4px; }
.ob-prow { display: grid; grid-template-columns: 40px minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; }
.ob-photo img { max-height: 64px; border-radius: 8px; border: 1px solid var(--line); }
.ob-ai-tbl input[type="text"] { min-width: 140px; }
.ob-radio { display: flex; gap: 10px; align-items: flex-start; padding: 8px 4px; cursor: pointer; }
.ob-radio input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }
.ob-fiscal { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; }
.ob-done { display: grid; gap: 18px; }
.ob-hero { display: grid; justify-items: center; text-align: center; gap: 6px; }
.ob-hero svg { width: 48px; height: 48px; color: var(--brand-fg); }
.ob-hero h3 { font-size: 22px; }
.ob-links { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.ob-link { display: grid; gap: 6px; min-width: 0; }
.ob-qr { display: grid; gap: 8px; justify-items: center; }
.ob-qr > div { background: #fff; padding: 6px; border-radius: 10px; border: 1px solid var(--line); }
.ob-check ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.ob-check li.ok { color: var(--good); }

/* Configuración v2 */
.vert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.vert-card { display: grid; gap: 4px; justify-items: start; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.vert-card svg { color: var(--brand-fg); }
.vert-card[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 4px; align-content: start; }
.plan-card.cur { border-color: var(--brand); background: var(--brand-soft); }
.pt-wait, .pt-result { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 12px; }
.pt-spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: pt-spin 1s linear infinite; }
@keyframes pt-spin { to { transform: rotate(360deg); } }
.pt-result.ok svg { width: 40px; height: 40px; color: var(--good); }
.pt-result.ok h3 { color: var(--good); }
.pt-result.bad h3, .pt-result.bad p { color: var(--crit); }

/* Hojas impresas (QR de mesas y afiches) */
@media print {
  #print-root.print-sheet { color: #000; }
  #print-root .tq-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8mm; }
  #print-root .tq-card { border-width: 1.5mm; padding: 6mm; height: 120mm; align-content: center; break-inside: avoid; page-break-inside: avoid; }
  #print-root .tq-qr svg { width: 60mm; height: 60mm; }
  #print-root .tq-num { font-size: 22pt; }
  #print-root .poster { display: grid; justify-items: center; text-align: center; gap: 6mm; padding-top: 10mm; font-family: var(--font-ui); }
  #print-root .poster h1 { font-size: 34pt; margin: 0; }
  #print-root .poster p { font-size: 15pt; margin: 0; }
  #print-root .poster svg { width: 120mm; height: 120mm; }
  #print-root .poster-logo { max-height: 30mm; max-width: 90mm; }
  #print-root .poster-url { font-family: var(--font-mono); font-size: 10pt; }
}

@media (max-width: 1100px) {
  .dash-two, .rcp-layout, .ly-two, .ob-brand { grid-template-columns: minmax(0, 1fr); }
  .ly-side { position: static; }
  .ob-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .cty-grid { grid-template-columns: minmax(0, 1fr); }
  .cty-facts { grid-template-columns: minmax(0, 1fr); }
  .hc-layout { grid-template-columns: minmax(0, 1fr); }
  .hc-list { position: static; grid-auto-flow: column; overflow-x: auto; }
  .hc-item { white-space: nowrap; }
  .hbar { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .thumb.big { width: 120px; height: 120px; }
  .msg { max-width: 95%; }
  .rec-row { flex-wrap: wrap; }
  .ch-cols { grid-template-columns: minmax(0, 1fr); }
  .ch-link { flex-wrap: wrap; }
  .ch-iframe { height: 380px; }
  .ob-steps { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
  .ob-lbl { display: none; }
  .ob-steps button.cur .ob-lbl { display: block; font-size: 11px; }
  .ob-previews { grid-template-columns: minmax(0, 1fr); }
  .ob-prow { grid-template-columns: minmax(0, 1fr) 96px auto; }
  .ob-prow .thumb { display: none; }
  .ob-nav .btn.big { width: 100%; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .st-poster.big { width: 110px; }
  .attr-row { flex-wrap: wrap; }
  .tq-sheet { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .tq-qr svg { width: 130px; height: 130px; }
  .wcard .wc-row strong { font-size: 17px; }
}
#ob-body { display: grid; gap: 14px; align-content: start; }
#ob-cat { display: grid; gap: 12px; }

/* Factura electrónica El Salvador (Configuración → Factura electrónica SV) */
.dte .dte-head { gap: 10px; }
.dte-modes { flex-wrap: wrap; gap: 8px; }
.dte-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: end; }
.dte-stats .kpi { padding: 0; }
.dte-stats .kpi .v { font-size: 20px; }
.ob-steps.dte-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dte-est { display: grid; gap: 10px; }
.dte-puntos select, .dte-puntos input { min-width: 0; }
.dte-cred { gap: 10px; }
.dte-cred h4 { margin: 0; }
.dte-checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.dte-mandate { margin: 0; padding: 12px 14px; border-left: 4px solid var(--brand); background: var(--surface-2); border-radius: 0 10px 10px 0; line-height: 1.55; }
.dte-bars .hbar { grid-template-columns: minmax(110px, 190px) minmax(0, 1fr) auto; }
.dte-prod summary { cursor: pointer; }
.dte-prod ol { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 4px; }
.dte-doc-top { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 14px; align-items: start; }
.dte-qr { display: grid; gap: 4px; justify-items: center; }
.dte-qr svg { width: 160px; height: 160px; }
.dte-jws { max-height: 180px; }
.dte-evs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
@media (max-width: 560px) {
  .ob-steps.dte-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dte-doc-top { grid-template-columns: minmax(0, 1fr); }
  .dte-bars .hbar { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .dte-modes .seg { width: 100%; }
}
.chip.dte-wrap { white-space: normal; border-radius: 10px; }
