/* Ofertas Cash Hellín · estilos comunes de la app y del backoffice */
:root {
  --azul: #0571D6; --azul2: #0457a8; --azul-claro: #e9f2fd; --linea: #c6daf2;
  --amar: #FFE200; --amar-claro: #fff9c9; --rojo: #C00000; --rojo-claro: #fde8e8;
  --naranja: #a84f00; --verde: #07743a; --verde-claro: #e2f4e8;
  --tinta: #0b1a2b; --tinta2: #16406e; --fondo: #f1f6fd;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fondo); color: var(--tinta); font: 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body.modal { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: var(--azul2); }
[hidden] { display: none !important; }
.oculto { display: none !important; }

/* ---------- botones y formularios */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px; border-radius: 12px; border: 0; font-weight: 800; font-size: 15px; text-decoration: none; text-align: center; }
.btn.pri { background: var(--azul); color: #fff; }
.btn.sec { background: #fff; color: var(--azul2); border: 1.5px solid var(--azul); }
.btn.pel { background: #fff; color: var(--rojo); border: 1.5px solid var(--rojo); }
.btn.ok { background: var(--verde); color: #fff; }
.btn.amar { background: var(--amar); color: #000; }
.btn.peq { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 9px; }
.btn[disabled] { opacity: .45; cursor: default; }
.botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.botones .btn { flex: 1 1 170px; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 4px; font-weight: 800; font-size: 13px; }
.form input, .form textarea, .form select { width: 100%; border: 1.5px solid var(--linea); border-radius: 10px; padding: 10px 12px; font-size: 16px; font-weight: 500; background: #fff; }
.form textarea { min-height: 64px; resize: vertical; }
.form .err { border-color: var(--rojo); }
.form .fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .form .fila2 { grid-template-columns: 1fr; } }
.sw { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }
.sw input { width: 18px; height: 18px; accent-color: var(--azul); margin: 0; }
.msg { margin-top: 10px; font-weight: 700; }
.msg.err { color: var(--rojo); }
.msg.ok { color: var(--verde); }
.nota { font-size: 12.5px; color: var(--tinta2); margin-top: 8px; }
.aviso { padding: 10px 12px; border-radius: 10px; background: var(--amar-claro); border: 1.5px solid #e2c800; font-weight: 700; margin: 10px 0; }
.aviso.err { background: var(--rojo-claro); border-color: var(--rojo); color: var(--rojo); }
.aviso.ok { background: var(--verde-claro); border-color: var(--verde); color: var(--verde); }
.etq { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 9px; background: var(--azul-claro); color: var(--azul2); white-space: nowrap; }
.etq.nueva { background: var(--amar); color: #000; }
.etq.verde, .etq.confirmado, .etq.activa, .etq.servido { background: var(--verde-claro); color: var(--verde); }
.etq.rojo, .etq.anulado, .etq.caducada, .etq.agotado { background: var(--rojo-claro); color: var(--rojo); }
.etq.pendiente, .etq.programada, .etq.borrador { background: var(--amar-claro); color: #6b5600; border: 1px solid #e2c800; }
.etq.archivada { background: #e8ecf2; color: var(--tinta2); }

/* ---------- acceso */
.acceso { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.acceso .caja { background: #fff; border-radius: 16px; padding: 22px; max-width: 420px; width: 100%; box-shadow: 0 4px 24px rgba(5, 113, 214, .15); }
.acceso .logo { width: 220px; max-width: 70%; height: auto; display: block; margin: 0 auto 10px; }
.acceso h1 { text-align: center; font-size: 19px; margin: 6px 0 14px; }
.acceso .canal { border: 0; padding: 0; margin: 0 0 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acceso .canal legend { font-weight: 800; font-size: 13px; padding: 0; margin-bottom: 6px; }
.acceso .canal label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1.5px solid var(--linea); border-radius: 10px; font-size: 15px; cursor: pointer; }
.acceso .canal label:has(input:checked) { border-color: var(--azul, #0571D6); background: #eaf3fc; }
.acceso .canal input { accent-color: var(--azul, #0571D6); width: auto; margin: 0; }
.acceso .captcha { min-height: 65px; display: flex; justify-content: center; }
.acceso .codigo { letter-spacing: 6px; text-align: center; font-size: 24px !important; font-weight: 800 !important; }
.condiciones ul { margin: 8px 0 14px; padding-left: 18px; font-size: 14.5px; line-height: 1.45; }
.condiciones li { margin: 6px 0; }

/* ---------- cabecera de la app */
.cab { background: #fff; border-bottom: 3px solid var(--azul); padding: 8px 12px; display: flex; align-items: center; gap: 10px; }
.cab .logo { height: 30px; width: auto; }
.cab .tit { flex: 1; min-width: 0; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab .tit small { display: block; font-weight: 600; font-size: 12px; color: var(--tinta2); }
.cab .menu { display: flex; gap: 6px; }
.cab .menu button, .cab .menu a { height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--azul); background: #fff; color: var(--azul); font-weight: 800; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none; }
.cab .volver { border: 0; background: var(--azul-claro); color: var(--azul2); height: 38px; padding: 0 12px; border-radius: 10px; font-weight: 800; }
.clibar { background: var(--azul); color: #fff; display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.clibar .nom { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clibar button { height: 34px; padding: 0 12px; border-radius: 9px; border: 0; background: var(--amar); color: #000; font-weight: 800; white-space: nowrap; }
.cola { background: var(--amar-claro); border-bottom: 1.5px solid #e2c800; padding: 8px 12px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.contenido { max-width: 1500px; margin: 0 auto; padding: 12px; }
.pie { text-align: center; font-size: 12px; padding: 14px 10px 24px; color: var(--tinta2); }

/* ---------- lista de ofertas */
.ofertas { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.oferta { background: #fff; border: 1.5px solid var(--linea); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; text-align: left; padding: 0; }
.oferta .img { aspect-ratio: 16 / 7; background: var(--azul-claro); display: flex; align-items: center; justify-content: center; }
.oferta .img img { max-height: 100%; max-width: 60%; object-fit: contain; }
.oferta .txt { padding: 10px 12px 12px; display: grid; gap: 5px; }
.oferta h2 { margin: 0; font-size: 16px; }
.oferta .fechas { font-size: 13px; font-weight: 700; color: var(--tinta2); }
.oferta .fechas.ultimo { color: var(--rojo); }
.vacio { text-align: center; padding: 40px 10px; font-weight: 700; color: var(--tinta2); }

/* ---------- catálogo de una oferta (mismo formato que los PDF) */
.ofcab { background: #fff; padding: 10px 12px; border-bottom: 1.5px solid var(--linea); }
.ofcab h1 { margin: 0; font-size: clamp(16px, 2.6vw, 21px); }
.ofcab .sub { font-size: 13px; color: var(--tinta2); font-weight: 600; margin-top: 2px; }
.herr { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 2px 8px rgba(5, 113, 214, .14); padding: 8px 10px 6px; }
.herr .f1 { display: flex; gap: 8px; align-items: center; max-width: 1500px; margin: 0 auto; }
.herr input[type=search] { flex: 1; min-width: 0; height: 40px; border: 1.5px solid var(--linea); border-radius: 10px; padding: 0 12px; font-size: 16px; background: var(--azul-claro); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; max-width: 1500px; margin: 0 auto; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; height: 32px; padding: 0 12px; border-radius: 16px; border: 1.5px solid var(--linea); background: #fff; font-size: 13px; font-weight: 600; color: var(--tinta2); }
.chip.fam { font-weight: 800; color: var(--azul2); }
.chip.on { background: var(--azul); border-color: var(--azul); color: #fff; }
.chips .sep { flex: 0 0 1.5px; background: var(--linea); margin: 4px 2px; }
.f3 { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; font-size: 13px; padding-top: 6px; max-width: 1500px; margin: 0 auto; }
.cuenta { margin-left: auto; color: var(--tinta2); font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; padding: 10px 10px 24px; max-width: 1500px; margin: 0 auto; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }
.card { background: #fff; border: 1.5px solid var(--linea); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 5px; content-visibility: auto; contain-intrinsic-size: auto 500px; }
.card.sel { border-color: var(--azul); box-shadow: inset 0 0 0 1.5px var(--azul); }
.card.agotado .ph img { opacity: .45; }
.ph { position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; border: 0; background: #fff; padding: 0; border-radius: 8px; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ph .es { position: absolute; top: 4px; right: 4px; background: var(--azul); color: #fff; font-weight: 800; font-size: 11px; padding: 2px 6px; border-radius: 5px; }
.ph .qb { position: absolute; left: 4px; top: 4px; background: var(--amar); color: #000; font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.ph .qb.pop { animation: pop .25s ease; }
.ph .mas1 { position: absolute; right: 6px; bottom: 6px; background: rgba(5, 113, 214, .92); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 7px; border-radius: 10px; }
.ph .ago { position: absolute; left: 0; right: 0; bottom: 8px; margin: auto; width: max-content; background: var(--rojo); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 10px; }
.ph .compr { position: absolute; left: 4px; bottom: 6px; background: var(--verde); color: #fff; font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 9px; }
@keyframes pop { 50% { transform: scale(1.3); } }
.nm { border: 0; background: none; padding: 0; text-align: left; font-size: 12.5px; line-height: 1.25; color: var(--tinta); min-height: 3.75em; }
.nm b { color: var(--azul2); }
.comp { font-size: 11.5px; background: var(--azul-claro); border-radius: 8px; padding: 4px 6px; }
.comp summary { font-weight: 800; cursor: pointer; color: var(--azul2); }
.comp ul { margin: 4px 0 2px; padding: 0; list-style: none; }
.comp li { padding: 3px 0; border-top: 1px dashed var(--linea); }
.comp li span { font-size: 11px; }
.ct { font-size: 11px; color: var(--tinta2); }
.cod { font-size: 11.5px; }
.idi { font-size: 10.5px; color: var(--tinta2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fila { border-top: 1.5px solid var(--linea); border-bottom: 1.5px solid var(--linea); padding: 4px 0; }
.fila .pre { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 0 2px 3px; }
.fila .pre small { font-size: 11.5px; color: var(--tinta2); font-weight: 700; }
.fila .pre b { font-size: 16px; white-space: nowrap; }
.fila .log { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; border-top: 1px dashed var(--linea); padding-top: 3px; }
.fila .log small { display: block; font-size: 10px; color: var(--tinta2); white-space: nowrap; }
.fila .log b { font-size: 13px; }
.stk { font-size: 12px; font-weight: 800; color: var(--azul); text-align: center; }
.stk.ago { color: var(--rojo); }
.cad { font-size: 11px; color: var(--rojo); text-align: center; font-weight: 700; }
.qty { display: grid; grid-template-columns: 42px 1fr 42px; gap: 6px; margin-top: auto; }
.qty button { height: 40px; border-radius: 10px; border: 0; background: var(--azul); color: #fff; font-size: 22px; font-weight: 800; line-height: 1; }
.qty button[data-act=menos] { background: var(--azul-claro); color: var(--azul2); }
.qty button[disabled] { opacity: .35; }
.qty input { height: 40px; min-width: 0; width: 100%; text-align: center; border: 1.5px solid var(--linea); border-radius: 10px; font-size: 17px; font-weight: 800; background: var(--amar-claro); }
.rap { display: flex; gap: 6px; }
.rap button { flex: 1; height: 30px; border-radius: 8px; border: 1.5px solid var(--linea); background: #fff; font-size: 12px; font-weight: 700; color: var(--azul2); padding: 0 4px; }
.lin { font-size: 12px; font-weight: 800; text-align: center; min-height: 1.3em; }
.card.over .lin, .w { color: var(--naranja); }

/* ---------- barra del pedido */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--azul); color: #fff; display: flex; align-items: center; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
.barra .res { flex: 1; min-width: 0; font-size: 13px; line-height: 1.25; }
.barra .res b { font-size: 16px; }
.barra .ed { display: block; font-size: 12px; font-weight: 700; color: var(--amar); }
.barra button { height: 46px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--amar); color: #000; font-weight: 800; font-size: 15px; white-space: nowrap; }

/* ---------- hojas (ventanas) */
.hoja { position: fixed; inset: 0; z-index: 50; background: rgba(3, 36, 74, .5); display: flex; justify-content: center; align-items: stretch; }
.hoja .pan { background: #fff; width: 100%; max-width: 840px; height: 100%; display: flex; flex-direction: column; }
.hoja.ancha .pan { max-width: 1240px; }
@media (min-width: 900px) { .hoja { align-items: center; padding: 24px; } .hoja .pan { height: auto; max-height: calc(100vh - 48px); border-radius: 16px; overflow: hidden; } }
.hoja header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 2px solid var(--azul); }
.hoja header h2 { margin: 0; font-size: 17px; flex: 1; }
.hoja header button { height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--azul); background: #fff; color: var(--azul); font-weight: 800; }
.hoja .cuerpo { overflow: auto; -webkit-overflow-scrolling: touch; padding: 12px 14px 28px; flex: 1; }
.dlg { position: fixed; inset: 0; z-index: 70; background: rgba(3, 36, 74, .5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.dlg .caja { background: #fff; border-radius: 14px; padding: 16px; max-width: 460px; width: 100%; }
.dlg p { margin: 0 0 12px; font-weight: 700; font-size: 15px; }
.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); background: #0b1a2b; color: #fff; padding: 9px 14px; border-radius: 12px; font-weight: 700; font-size: 13.5px; z-index: 80; max-width: 90vw; text-align: center; opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.on { opacity: 1; }

/* ---------- líneas del pedido */
.ed-banner { background: var(--amar-claro); border: 1.5px solid #e2c800; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lp { display: grid; grid-template-columns: 44px 1fr auto; grid-template-areas: "img txt x" "img qty imp"; gap: 4px 10px; align-items: center; padding: 8px 0; border-bottom: 1.5px solid var(--azul-claro); }
.lp img { grid-area: img; width: 44px; height: 44px; object-fit: contain; }
.lp .t { grid-area: txt; font-size: 13px; line-height: 1.25; }
.lp .t small { display: block; font-size: 12px; color: var(--tinta2); }
.lp .q { grid-area: qty; display: grid; grid-template-columns: 38px 64px 38px; gap: 5px; }
.lp .q button { height: 36px; border-radius: 9px; border: 0; background: var(--azul); color: #fff; font-size: 20px; font-weight: 800; }
.lp .q button[data-act=menos] { background: var(--azul-claro); color: var(--azul2); }
.lp .q input { height: 36px; width: 100%; text-align: center; border: 1.5px solid var(--linea); border-radius: 9px; font-size: 16px; font-weight: 800; background: var(--amar-claro); }
.lp .i { grid-area: imp; text-align: right; font-size: 13px; white-space: nowrap; }
.lp .i b { font-size: 14px; }
.lp .x { grid-area: x; justify-self: end; border: 0; background: none; color: var(--rojo); font-size: 13px; font-weight: 800; padding: 4px; }
.tot { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 12px 0; padding: 10px; background: var(--azul-claro); border-radius: 12px; text-align: center; }
.tot div { font-size: 12px; color: var(--tinta2); font-weight: 700; }
.tot b { display: block; font-size: 17px; color: var(--tinta); }
.ok-grande { text-align: center; padding: 12px 0; }
.ok-grande .tick { font-size: 44px; color: var(--verde); line-height: 1; }
.ok-grande h3 { margin: 6px 0; font-size: 20px; }

/* ---------- pedidos y clientes */
.ped { border: 1.5px solid var(--linea); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: #fff; }
.ped .h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ped .h b { font-size: 14px; }
.ped .meta { font-size: 13px; margin-top: 3px; }
.ped .acc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ped.anulado { opacity: .6; }
.cli { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1.5px solid var(--linea); border-radius: 12px; margin-bottom: 8px; background: #fff; text-align: left; width: 100%; }
.cli .d { flex: 1; min-width: 0; }
.cli .d b { display: block; }
.cli .d small { display: block; color: var(--tinta2); font-size: 12.5px; }
.cli.on { border-color: var(--azul); box-shadow: inset 0 0 0 1.5px var(--azul); }
table.t { border-collapse: collapse; width: 100%; font-size: 12.5px; }
table.t th, table.t td { padding: 6px 7px; border-bottom: 1px solid var(--azul-claro); text-align: left; vertical-align: middle; }
table.t th { background: var(--azul); color: #fff; font-weight: 800; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.t td.n, table.t th.n { text-align: right; white-space: nowrap; }
table.t tr.over td { color: var(--rojo); font-weight: 700; }
table.t tr.inactivo td { opacity: .5; }
table.t tfoot td { font-weight: 800; border-top: 2px solid var(--azul); }
table.t tbody tr.clic { cursor: pointer; }
table.t tbody tr.clic:hover td { background: var(--azul-claro); }
table.t td.d { min-width: 200px; }
table.t input.mini { width: 78px; height: 32px; border: 1.5px solid var(--linea); border-radius: 8px; padding: 0 6px; text-align: right; font-weight: 700; font-size: 14px; background: var(--amar-claro); }
table.t img.mini { width: 40px; height: 40px; object-fit: contain; display: block; }
.tabla { overflow: auto; max-width: 100%; border-radius: 10px; border: 1px solid var(--linea); background: #fff; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.kpi { background: #fff; border: 1.5px solid var(--linea); border-radius: 12px; padding: 10px; text-align: center; }
.kpi small { display: block; font-size: 12px; font-weight: 700; color: var(--tinta2); }
.kpi b { font-size: 20px; }
.ficha { display: grid; grid-template-columns: minmax(0, 240px) 1fr; gap: 16px; }
@media (max-width: 560px) { .ficha { grid-template-columns: 1fr; } }
.ficha .fimg { width: 100%; max-width: 240px; aspect-ratio: 1 / 1; object-fit: contain; justify-self: center; }
.ficha h3 { margin: 0 0 6px; font-size: 16px; }
table.kv { border-collapse: collapse; font-size: 13.5px; width: 100%; margin: 6px 0; }
table.kv th { text-align: left; padding: 4px 8px 4px 0; color: var(--tinta2); font-weight: 700; white-space: nowrap; vertical-align: top; }
table.kv td { padding: 4px 0; }
.ficha .qty { max-width: 260px; margin-top: 10px; }
.progreso { height: 10px; border-radius: 5px; background: var(--azul-claro); overflow: hidden; margin: 8px 0; }
.progreso i { display: block; height: 100%; background: var(--azul); width: 0; transition: width .2s; }

/* ---------- backoffice */
.bo { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.bo nav { background: #fff; border-right: 1.5px solid var(--linea); padding: 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.bo nav .logo { width: 170px; height: auto; display: block; margin: 4px auto 14px; }
.bo nav button { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 6px; height: 42px; padding: 0 12px; border-radius: 10px; border: 0; background: none; font-weight: 800; color: var(--tinta2); text-align: left; margin-bottom: 4px; }
.bo nav button.on { background: var(--azul); color: #fff; }
.bo nav .usu { font-size: 12px; color: var(--tinta2); margin-top: 16px; word-break: break-all; }
.bo main { padding: 16px; min-width: 0; }
.bo h1 { font-size: 20px; margin: 0 0 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bo h2 { font-size: 16px; margin: 18px 0 8px; }
.bo .barra-f { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 10px; }
.bo .barra-f label { display: grid; gap: 3px; font-size: 12px; font-weight: 800; color: var(--tinta2); }
.bo .barra-f input, .bo .barra-f select { height: 38px; border: 1.5px solid var(--linea); border-radius: 9px; padding: 0 8px; background: #fff; font-size: 14px; }
.bo .panel { background: #fff; border: 1.5px solid var(--linea); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.bo .cnt { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 11px; background: var(--amar); color: #000; font-size: 12px; text-align: center; }
@media (max-width: 1100px) {
  .bo { grid-template-columns: 1fr; }
  .bo nav { position: sticky; top: 0; z-index: 30; height: auto; display: flex; gap: 4px; overflow-x: auto; border-right: 0; border-bottom: 1.5px solid var(--linea); padding: 8px; }
  .bo nav .logo, .bo nav .usu { display: none; }
  .bo nav button { width: auto; flex: 0 0 auto; margin: 0; height: 38px; }
  .bo main { padding: 12px 10px; }
}

/* ---------- backoffice: extras */
.bo h1 small, .bo h2 small { font-size: 13px; font-weight: 700; color: var(--tinta2); }
.bo .acciones { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.bo .acciones .btn { flex: 0 0 auto; }
.bo nav a.app { width: 100%; margin-top: 10px; }
.bo nav .usu .btn { margin-top: 6px; }
a.kpi { display: block; text-decoration: none; color: inherit; }
a.kpi:hover { border-color: var(--azul); }
.mg { font-weight: 800; }
.mg.mal { color: var(--rojo); }
.mg.fino { color: var(--naranja); }
.bo-sel { position: sticky; top: 0; z-index: 5; background: var(--amar-claro); border: 1.5px solid #e2c800; border-radius: 10px; padding: 6px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; font-weight: 700; }
table.t td.c, table.t th.c { text-align: center; }
table.t input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--azul); margin: 0; vertical-align: middle; }
.fotobtn { border: 0; background: none; padding: 0; display: block; }
.lista-res { max-height: 300px; overflow: auto; border: 1px solid var(--linea); border-radius: 10px; margin-top: 6px; background: #fff; }
.lista-res .cli { border: 0; border-bottom: 1px solid var(--azul-claro); border-radius: 0; margin: 0; }
.lista-res .cli input { width: 18px; height: 18px; accent-color: var(--azul); }
.bq { width: 100%; height: 40px; border: 1.5px solid var(--linea); border-radius: 10px; padding: 0 12px; font-size: 16px; background: var(--azul-claro); }
.kv2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 16px; font-size: 13.5px; margin: 6px 0; }
.det { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 11.5px; word-break: break-all; max-width: 420px; }
.solic { border: 1.5px solid var(--linea); border-radius: 12px; padding: 10px; margin-bottom: 10px; background: var(--fondo); }
.dest { border: 1.5px solid var(--linea); border-radius: 10px; padding: 8px 12px; display: grid; gap: 8px; margin: 0; }
.dest legend { font-weight: 800; font-size: 13px; padding: 0 4px; }
.dest .sw { font-weight: 600; }
.dest select { margin-top: 4px; }
details > summary { cursor: pointer; margin: 8px 0; }
.varios { margin-top: 12px; }
.bo .chips { flex-wrap: wrap; overflow: visible; max-width: none; margin: 0 0 10px; }
.bo nav .salir-m { display: none; }
.form label.sw, .bo .barra-f label.sw { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; }
.bo .barra-f label.sw { height: 38px; }
table.t td.ofe { font-size: 11.5px; max-width: 170px; }
table.t td small { color: var(--tinta2); }
@media (max-width: 1100px) {
  .bo nav a.app { width: auto; flex: 0 0 auto; margin: 0; height: 38px; }
  .bo nav .salir-m { display: flex; }
  .bo-sel { top: 56px; }
}
