/* ==========================================================
   Día a Día · Frutería Las Cerezas
   Colores base: cereza #B3122E · hoja #3F8F3A · crema #FFF8F2
   ========================================================== */
:root {
  --brand: #B3122E; --brand2: #3F8F3A; --accent: var(--brand);
  --bg: #FBF6F1; --card: #fff; --ink: #2B2320; --muted: #857A73; --line: #EDE3DB;
  --ok: #2E7D32; --ok-bg: #E8F5E9; --warn: #D97706; --warn-bg: #FFF4E0; --bad: #C62828; --bad-bg: #FDECEC; --info-bg: #EAF4FB;
  --r: 14px; --sh: 0 1px 2px rgba(60, 30, 20, .06), 0 6px 20px rgba(60, 30, 20, .06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box }
html { -webkit-text-size-adjust: 100% }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg) }
a { color: var(--accent) }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em }
h1 { font-size: clamp(1.5rem, 4vw, 2rem) } h2 { font-size: 1.25rem } h3 { font-size: 1.05rem }
.muted { color: var(--muted) } .small { font-size: .88rem }
.wrap { max-width: 1100px; margin: 0 auto; padding: 20px 16px 40px }
.wrap.narrow { max-width: 760px }
[hidden] { display: none !important }
code { background: #f3ece6; padding: 1px 6px; border-radius: 6px }

/* ---------- Barra superior pública ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 3px solid var(--accent); padding: 10px 16px }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); max-width: 1100px; margin: 0 auto }
.logo span { display: flex; flex-direction: column; line-height: 1.15 } .logo small { color: var(--muted); font-size: .78rem }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 20px }

/* ---------- Tarjetas y botones ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--sh); padding: 22px; margin-bottom: 16px; border: 1px solid var(--line) }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 11px 18px; font: 600 .95rem var(--font); background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; transition: transform .1s, filter .15s, box-shadow .15s; min-height: 44px }
.btn:hover { filter: brightness(1.07); box-shadow: 0 4px 14px rgba(0, 0, 0, .12) } .btn:active { transform: scale(.98) }
.btn.ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line) }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent) }
.btn.sm { padding: 6px 12px; min-height: 34px; font-size: .85rem }
.btn.danger { background: var(--bad) } .btn.green { background: var(--ok) }
.btn.big { width: 100%; padding: 15px; font-size: 1.05rem; margin-top: 10px }
.btn:disabled { opacity: .55; pointer-events: none }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; padding: 4px 0; font-size: .88rem }

/* ---------- Campos ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: 400 1rem var(--font); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent) }
textarea { resize: vertical; min-height: 90px }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px }
@media (max-width: 620px) { .grid2, .grid3 { grid-template-columns: 1fr } }
.req { color: var(--bad); font-style: normal }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500 }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent) }

/* ---------- Alertas ---------- */
.alert { padding: 12px 14px; border-radius: 10px; margin: 10px 0; font-size: .93rem; border-left: 4px solid }
.alert.warn { background: var(--warn-bg); border-color: var(--warn) } .alert.danger { background: var(--bad-bg); border-color: var(--bad) }
.alert.ok { background: var(--ok-bg); border-color: var(--ok) } .alert.info { background: var(--info-bg); border-color: #1E88A8 }

/* ---------- Portal ---------- */
.hero { padding: 18px 0 8px } .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--accent); font-weight: 700; margin: 0 0 6px }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; font: 600 .88rem var(--font); cursor: pointer; color: var(--ink) }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand) }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 18px }
.form-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: var(--r); padding: 18px; text-decoration: none; color: var(--ink); box-shadow: var(--sh); border: 1px solid var(--line); border-top: 5px solid var(--accent); transition: transform .15s, box-shadow .15s }
.form-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(60, 30, 20, .12) }
.fc-icon { font-size: 2rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, #fff); flex: none }
.fc-body { flex: 1; display: flex; flex-direction: column; gap: 4px } .fc-body small { color: var(--muted) }
.fc-go { font-size: 1.4rem; color: var(--accent); align-self: center }
.fc-meta, .fc-sedes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px }
.pill, .sd { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: #F4EEE9; font-weight: 600 }
.pill.warn { background: var(--warn-bg); color: var(--warn) }
.sd.done { background: var(--ok-bg); color: var(--ok) } .sd.pend { color: var(--muted) }

/* ---------- Formulario por pasos ---------- */
.form-head { margin-bottom: 14px } .form-head h1 span { margin-right: 4px }
.back { text-decoration: none; font-weight: 600; font-size: .9rem; display: inline-block; margin-bottom: 10px }
.progress { height: 6px; background: var(--line); border-radius: 9px; overflow: hidden; margin-bottom: 10px }
.progress .bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--brand2)); transition: width .35s }
.steps-nav { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; flex-wrap: wrap }
.steps-nav button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); background: #fff; font-weight: 700; color: var(--muted); cursor: pointer }
.steps-nav li.done button { background: var(--brand2); border-color: var(--brand2); color: #fff }
.steps-nav li.cur button { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent) }
.step { animation: fadeIn .3s }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px) } to { opacity: 1 } }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #F4EEE9; color: var(--muted); margin: 0 6px 8px 0; vertical-align: middle }
.tag.crit { background: var(--bad-bg); color: var(--bad) } .tag.rnd { background: #EFE8FB; color: #6A3FB3 }
.instr { background: var(--info-bg); border-radius: 10px; padding: 12px 14px; margin: 6px 0 16px; font-size: .93rem }
.nota { background: #FFF8E1; border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: .9rem; font-weight: 600 }

.q { border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 14px; transition: border-color .2s, background .2s }
.q.bad { border-color: var(--bad); background: #FFF8F8 }
.q.shake { animation: shake .4s } @keyframes shake { 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
.q-head { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 6px } .q-head .tag { margin: 0 }
.q-title { font-weight: 700; flex: 1 1 260px }
.q-help { color: var(--muted); font-size: .88rem; margin: 0 0 10px }
.q-info { border: 0; padding: 0 }
.q-alert { margin-top: 12px; padding: 10px 12px; border-radius: 9px; font-size: .88rem; animation: fadeIn .25s }
.q-alert.warn { background: var(--warn-bg) } .q-alert.crit { background: var(--bad-bg); color: #8E1B1B }
.q.now-req { border-color: var(--warn); background: #FFFCF6 }
.cond-note { font-size: .8rem; color: var(--muted); margin: 6px 0 0 }

.opts { display: flex; gap: 10px; flex-wrap: wrap }
.opt { flex: 1 1 140px; margin: 0; cursor: pointer; position: relative }
.opt input, .gopt input { position: absolute; opacity: 0; pointer-events: none }
.opt span { display: block; text-align: center; padding: 13px 10px; border: 2px solid var(--line); border-radius: 11px; font-weight: 700; transition: all .15s; user-select: none }
.opt:hover span { border-color: #d6c8bd }
.opt.st-ok input:checked + span { background: var(--ok); border-color: var(--ok); color: #fff }
.opt.st-fail input:checked + span { background: var(--bad); border-color: var(--bad); color: #fff }
.opt.st-na input:checked + span { background: #6B625C; border-color: #6B625C; color: #fff }
.opt input:focus-visible + span, .gopt input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 40%, transparent) }
.detalle { margin-top: 12px } .detalle label { margin: 0 }
.money-in { display: flex; align-items: center; gap: 6px } .money-in b { color: var(--muted); margin-top: 6px } .money-in input { flex: 1 }

.grid-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px }
.grid-count { font-size: .8rem; font-weight: 700; color: var(--muted); background: #F4EEE9; padding: 2px 9px; border-radius: 999px }
.grow, .nrow { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px dashed var(--line); flex-wrap: wrap }
.grow.missing { background: #FFF3F3; border-radius: 8px; padding: 10px 8px } .grow.is-fail .glabel b { color: var(--bad) }
.glabel { display: flex; flex-direction: column; flex: 1 1 180px } .glabel small { color: var(--muted); font-size: .8rem }
.glabel small.esp { color: var(--accent); font-weight: 700 }
.gopts { display: flex; gap: 6px; flex-wrap: wrap }
.gopt { margin: 0; cursor: pointer; position: relative }
.gopt span { display: inline-block; padding: 7px 11px; border-radius: 9px; border: 1.5px solid var(--line); font-size: .82rem; font-weight: 600; user-select: none; transition: all .12s }
.gopt.st-ok input:checked + span { background: var(--ok); color: #fff; border-color: var(--ok) }
.gopt.st-fail input:checked + span { background: var(--bad); color: #fff; border-color: var(--bad) }
.gopt.st-na input:checked + span { background: #6B625C; color: #fff; border-color: #6B625C }
.nin { display: flex; align-items: center; gap: 8px }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden }
.stepper input { width: 70px !important; margin: 0 !important; border: 0 !important; text-align: center; border-radius: 0 !important; box-shadow: none !important }
.st-btn { width: 40px; height: 44px; border: 0; background: #F7F1EC; font-size: 1.3rem; cursor: pointer; color: var(--ink) }
.nstate { font-size: .8rem; font-weight: 700; min-width: 70px } .nrow.is-ok .nstate { color: var(--ok) } .nrow.is-fail .nstate { color: var(--bad) }
.nrow .money-in input { width: 150px; margin-top: 0 }
.calc-q .crow { display: grid; grid-template-columns: 1.4fr 1fr 1fr .8fr; gap: 8px; align-items: center; padding: 6px 0 }
.calc-q .chead { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase }
.calc-q input { margin: 0 !important; text-align: center }
.calc-q output, .calc-q .ctotal span { text-align: center; font-weight: 800; font-size: 1.1rem; color: var(--accent) }
.calc-q .ctotal { border-top: 2px solid var(--line); margin-top: 4px } .calc-q .ctotal span { color: var(--ink) }
@media (max-width: 520px) { .calc-q .crow { grid-template-columns: 1fr 1fr 1fr; } .calc-q .crow > b, .calc-q .chead > span:first-child { grid-column: 1 / -1 } }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px }
.thumb { position: relative; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; box-shadow: var(--sh); animation: fadeIn .2s }
.thumb img { width: 100%; height: 100%; object-fit: cover }
.thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 1rem; cursor: pointer }
.photo-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px } .photo-btns label { margin: 0 }
.info-box { background: #FFF8F2; border: 1px dashed #E9C9B4; border-radius: 12px; padding: 14px }
.tbl-wrap { overflow-x: auto } table.ref { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .87rem }
table.ref th, table.ref td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top }
table.ref th { background: #F7EFE9 }

.nav-btns { display: flex; gap: 10px; justify-content: space-between; position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%) }
.nav-btns .btn { flex: 1 } .nav-btns #prevBtn { flex: 0 1 150px }
.btn.send { background: var(--brand2) }

.score-ring { position: relative; width: 150px; height: 150px; margin: 6px auto 14px }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg) }
.score-ring circle { fill: none; stroke-width: 11 } .score-ring .bg { stroke: var(--line) }
.score-ring .fg { stroke: var(--ok); stroke-linecap: round; transition: stroke-dashoffset .8s }
.score-ring.low .fg { stroke: var(--warn) }
.score-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center }
.score-ring b { font-size: 1.9rem } .score-ring small { color: var(--muted) }
.novedades { list-style: none; padding: 0 } .novedades li { padding: 10px 12px; border-radius: 9px; background: var(--warn-bg); margin-bottom: 6px; display: flex; flex-direction: column }
.novedades li.crit { background: var(--bad-bg) } .novedades small { color: var(--muted) }
.done { text-align: center; animation: fadeIn .4s } .done-icon { font-size: 4rem }
.done.st-ok { border-top: 6px solid var(--ok) } .done.st-alerta { border-top: 6px solid var(--warn) } .done.st-critico { border-top: 6px solid var(--bad) }
.sending { position: fixed; inset: 0; background: rgba(255, 255, 255, .85); display: grid; place-items: center; z-index: 100; text-align: center; font-weight: 600 }
.spinner { width: 46px; height: 46px; border: 5px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 12px }
@keyframes spin { to { transform: rotate(360deg) } }

/* ---------- Notificaciones ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)) }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #2B2320; color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(12px); transition: all .3s; font-size: .92rem; border-left: 5px solid #888 }
.toast.in { opacity: 1; transform: none }
.toast.t-ok { border-color: #4CAF50 } .toast.t-error { border-color: #EF5350 } .toast.t-warn { border-color: #FFA726 } .toast.t-crit { border-color: #FF1744; background: #4A1010 } .toast.t-info { border-color: #4FC3F7 }
.toast .tm { flex: 1 } .toast .tx { background: none; border: 0; color: #fff; font-size: 1.2rem; cursor: pointer; opacity: .7 }
@media (max-width: 600px) { .toasts { left: 16px; right: 16px; bottom: 80px } }
.modal { position: fixed; inset: 0; background: rgba(30, 15, 10, .45); display: grid; place-items: center; z-index: 150; opacity: 0; transition: opacity .2s; padding: 16px }
.modal.in { opacity: 1 } .modal-card { background: #fff; border-radius: 16px; padding: 22px; max-width: 460px; width: 100%; box-shadow: 0 20px 50px rgba(0, 0, 0, .3) }
.mf { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px }

/* ---------- Instalador / login ---------- */
.brand-head { display: flex; gap: 14px; align-items: center; margin: 20px 0 } .brand-head h1 { margin: 0 }
.ok-card { border-top: 6px solid var(--ok) }
.login-page { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #FBE9E7, #FFF8F2 50%, #E8F5E9) }
.login-card { width: min(400px, 92vw) }

/* ==================== ADMINISTRADOR ==================== */
.admin { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh }
.side { background: #2B1A1D; color: #F1E6E1; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto }
.side .logo { color: #fff; margin-bottom: 20px } .side .logo small { color: #C9B4AD }
.side nav a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; color: #E8D9D3; text-decoration: none; font-weight: 600; font-size: .93rem; margin-bottom: 2px }
.side nav a:hover { background: rgba(255, 255, 255, .07) } .side nav a.on { background: var(--brand); color: #fff }
.side nav .sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #A8928A; margin: 16px 12px 6px }
.side .badge { margin-left: auto; background: #fff; color: var(--brand); border-radius: 999px; padding: 0 8px; font-size: .75rem }
.main { padding: 22px 26px 40px; min-width: 0 }
.main-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px }
.main-head h1 { margin: 0 }
.menu-btn { display: none }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr } .side { position: fixed; left: -260px; width: 250px; z-index: 50; transition: left .25s } .side.open { left: 0; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4) }
  .menu-btn { display: inline-flex } .main { padding: 16px }
}
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; background: #fff; padding: 12px; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 16px }
.filters label { margin: 0; font-size: .78rem; color: var(--muted) } .filters input, .filters select { margin-top: 3px; padding: 8px 10px; font-size: .9rem; min-width: 140px }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px }
.kpi { background: #fff; border-radius: var(--r); padding: 16px; border: 1px solid var(--line); box-shadow: var(--sh); position: relative; overflow: hidden }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c, var(--brand)) }
.kpi small { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em }
.kpi b { display: block; font-size: 1.9rem; margin-top: 2px } .kpi span { font-size: .8rem; color: var(--muted) }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px }
@media (max-width: 520px) { .charts { grid-template-columns: 1fr } }
.chart-box { position: relative; height: 280px }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r); border: 1px solid var(--line) }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem }
table.data th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; background: #FBF7F4; border-bottom: 1px solid var(--line); white-space: nowrap }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle }
table.data tr:hover td { background: #FFFBF8 } table.data a.rowlink { font-weight: 600; text-decoration: none }
.st { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap }
.st.ok, .st.resuelta { background: var(--ok-bg); color: var(--ok) } .st.alerta, .st.en_proceso { background: var(--warn-bg); color: var(--warn) }
.st.critico, .st.abierta { background: var(--bad-bg); color: var(--bad) } .st.na { background: #F2EEEB; color: var(--muted) }
.pct { font-weight: 800 } .pct.lo { color: var(--bad) } .pct.mid { color: var(--warn) } .pct.hi { color: var(--ok) }
.matrix td.cell { text-align: center; font-weight: 700 } .matrix .m-ok { background: var(--ok-bg); color: var(--ok) } .matrix .m-al { background: var(--warn-bg); color: var(--warn) } .matrix .m-cr { background: var(--bad-bg); color: var(--bad) } .matrix .m-no { color: #bbb }
.bars .b { display: grid; grid-template-columns: 1fr 120px 42px; gap: 8px; align-items: center; font-size: .86rem; padding: 6px 0; border-bottom: 1px dashed var(--line) }
.bars .track { height: 8px; background: var(--line); border-radius: 9px; overflow: hidden } .bars .fill { height: 100%; background: var(--bad) }
.ans { padding: 12px 0; border-bottom: 1px solid var(--line) } .ans.fail { background: linear-gradient(90deg, var(--bad-bg), transparent 70%); padding-left: 10px; border-radius: 8px }
.ans small { color: var(--muted) }
.gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px }
.gallery a { width: 110px; height: 110px; border-radius: 10px; overflow: hidden; display: block; box-shadow: var(--sh) } .gallery img { width: 100%; height: 100%; object-fit: cover }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); display: grid; place-items: center; z-index: 300; cursor: zoom-out } .lightbox img { max-width: 95vw; max-height: 92vh; border-radius: 8px }
.editor .sec { border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; background: #fff }
.editor .sec-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap }
.editor .qrow { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; background: #FFFCFA }
.editor .qrow.off { opacity: .5 } .editor .qrow .qt { flex: 1; min-width: 0 } .editor .qrow .qt small { color: var(--muted); display: block }
.handle { cursor: grab; color: var(--muted); font-size: 1.2rem; user-select: none } .dragging { opacity: .4 }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 14px }
.qr-card { text-align: center } .qr-card canvas, .qr-card img { margin: 8px auto }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap } .tabs a { padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink) } .tabs a.on { background: var(--brand); color: #fff; border-color: var(--brand) }
details.help { background: var(--info-bg); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: .9rem } details.help summary { cursor: pointer; font-weight: 700 }
@media print { .side, .filters, .main-head .btn, .menu-btn, .no-print { display: none !important } .admin { display: block } .card { box-shadow: none } }
