:root {
  --crema: #FAF7F5; --guinda: #8B1E2D; --vino: #5C0F1C; --rosa: #F6D5DA; --gris: #5B4B4E; --suave: #8A7A7D;
  --blanco: #FFFFFF; --linea: #E8DFE0; --fondo: #F6F2F1; --verde: #15803D; --ambar: #B45309;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--crema); color: #1F1A1C;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
.oculto { display: none !important; }
button { font: inherit; cursor: pointer; }

/* ---------- portada ---------- */
.portada { display: flex; height: 100vh; }
.p-izq { flex: 0 0 68%; position: relative; background: var(--crema); }
.p-der { flex: 1; position: relative; background: var(--guinda); }
.p-saludo { position: absolute; left: 56px; top: 48px; }
.p-sistema { color: var(--guinda); font-weight: 700; font-size: 13px; }
.p-fecha { color: var(--gris); font-size: 13px; margin-top: 3px; }
/* marca como el logo original: QUADRA · lema del MISMO ancho · línea dorada GRUPO QUADRA CONTABLE línea dorada */
.p-marca { position: absolute; left: 8%; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column;
  align-items: stretch; gap: 30px; }
.p-marca-fila { display: flex; align-items: center; gap: 26px; }
.p-logo { width: 190px; height: auto; }
.p-textos { display: inline-flex; flex-direction: column; }
.p-quadra { font-family: "Segoe UI Black", "Arial Black", sans-serif; font-weight: 900; font-size: 84px;
  letter-spacing: .03em; margin-right: -.03em; color: #6E1424; line-height: .95; }
.p-lema { color: #3F3A3B; font-size: 24px; margin-top: 4px; white-space: nowrap; text-align: justify; text-align-last: justify; }
.p-grupo { display: flex; align-items: center; gap: 22px; }
.p-grupo i { flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #B8862F, #E2B65A 50%, #B8862F); }
.p-grupo span { color: #6E1424; font-size: 22px; letter-spacing: .32em; margin-right: -.32em; white-space: nowrap; font-weight: 500; }
.p-pie { position: absolute; left: 56px; bottom: 32px; color: var(--suave); font-size: 12px; }
.p-marca-blanca { position: absolute; left: 50%; top: 24%; transform: translate(-50%, -50%); text-align: center; }
.p-logo-b { width: 120px; height: auto; }
.p-quadra-b { color: #fff; font-family: "Segoe UI Black", "Arial Black", sans-serif; font-weight: 900; font-size: 36px;
  letter-spacing: .12em; margin-top: 10px; }
.ingreso { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); width: min(260px, 80%);
  display: flex; flex-direction: column; gap: 10px; text-align: center; }
.ingreso label { color: var(--rosa); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.ingreso input { border: 1px solid #fff; border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 15px;
  color: #111; background: #fff; outline: none; }
.ingreso input:focus { box-shadow: 0 0 0 2px var(--rosa); }
.f-ver { flex-direction: row !important; align-items: center; justify-content: center; gap: 6px !important; cursor: pointer; }
.f-error { color: #FECACA; font-size: 12px; font-weight: 700; min-height: 16px; }
.ingreso button { align-self: center; background: linear-gradient(#A52A3C, #7E1A28); color: #fff; border: 0;
  border-radius: 999px; padding: 8px 28px; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.ingreso button:hover { background: linear-gradient(#BD3247, #8B1E2D); }
.ingreso button:disabled { opacity: .6; cursor: default; }

/* ---------- programa ---------- */
.app { display: flex; flex-direction: column; height: 100vh; }
.barra { display: flex; align-items: center; gap: 10px; background: var(--guinda); color: #fff; padding: 8px 16px; }
.b-logo { width: 26px; height: 26px; }
.b-quadra { font-weight: 900; letter-spacing: .12em; }
.b-esp { flex: 1; }
.b-yo { font-size: 13px; opacity: .95; text-align: right; }
.b-salir { background: #fff; color: var(--guinda); border: 0; border-radius: 999px; padding: 5px 16px; font-weight: 700; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 22px; }
.cuerpo { flex: 1; display: flex; min-height: 0; }
.lado { width: 212px; background: #3B1219; color: #F3E9EB; overflow-y: auto; padding: 10px 0; flex-shrink: 0; }
.l-grupo { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #C9A9AE; padding: 12px 18px 4px; }
.l-mod { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: inherit;
  text-align: left; padding: 7px 18px; font-size: 14px; border-left: 3px solid transparent; }
.l-mod:hover { background: rgba(255,255,255,.07); }
.l-mod.activo { background: rgba(255,255,255,.12); border-left-color: #E5A0AB; }
.l-mod.bloq { color: #A9898E; }
.l-ico { width: 20px; text-align: center; }
.l-candado { margin-left: auto; font-size: 12px; }
.area { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--fondo); }
.contenido { flex: 1; overflow-y: auto; padding: 18px 16px; }
h1 { color: var(--guinda); font-size: 22px; margin: 0 0 6px; }
.sub { color: var(--gris); margin: 0 0 18px; }
.tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: 18px 20px; margin-bottom: 16px; }
.vitrina ul { margin: 10px 0 0; padding-left: 20px; }
.vitrina li { margin: 4px 0; }
.candado-grande { font-size: 30px; }
.aviso { color: var(--ambar); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
table.lista { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.lista th { text-align: left; background: #F3ECEC; color: var(--guinda); padding: 8px; }
.lista td { border-top: 1px solid var(--linea); padding: 7px 8px; }
.form-fila { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.form-fila label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--gris); }
.form-fila input, .form-fila select, td select { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #D6CACC; border-radius: 6px; }
.btn { background: #fff; color: var(--guinda); border: 1px solid #DDD3D1; border-radius: 999px; padding: 6px 14px; }
.btn.prim { background: linear-gradient(#A52A3C, #7E1A28); color: #fff; border: 0; font-weight: 700; }
.msj { font-size: 13px; margin-top: 8px; min-height: 18px; }
.msj.ok { color: var(--verde); } .msj.mal { color: #B42318; }
.estado-off { color: #B42318; font-weight: 600; }
.errores { border-top: 2px solid var(--guinda); background: #1E1416; color: #F3E9EB; max-height: 34vh; display: flex; flex-direction: column; }
.e-cab { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: #2A1A1D; font-size: 13px; cursor: pointer; }
.e-ayuda { color: #A9898E; font-size: 11px; }
.e-lista { overflow-y: auto; padding: 6px 14px; font-family: Consolas, monospace; font-size: 12px; }
.e-item { border-bottom: 1px solid #3A2A2D; padding: 6px 0; white-space: pre-wrap; word-break: break-word; }
.e-org { color: #F2B8C1; font-weight: 700; }
.errores.plegado .e-lista { display: none; }

/* ---------- Compras / Ventas SIRE ---------- */
.s-barra { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.s-barra label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--gris); }
.s-barra input, .s-barra select { font: inherit; font-size: 14px; padding: 6px 8px; border: 1px solid #D6CACC; border-radius: 6px; background: #fff; }
#s-cli { width: min(340px, 80vw); }
.s-chk { flex-direction: row !important; align-items: center; gap: 6px !important; padding-bottom: 8px; }
.s-info { font-size: 12px; color: var(--gris); padding-bottom: 8px; }
.s-tabla { overflow-x: auto; border: 1px solid var(--linea); border-radius: 8px; background: #fff; max-height: calc(100vh - 330px); overflow-y: auto; }
.s-tabla .tarjeta { margin: 0; border: 0; }
table.sire th { position: sticky; top: 0; z-index: 1; white-space: nowrap; }
table.sire td { white-space: nowrap; }
table.sire tbody tr { cursor: pointer; }
table.sire tbody tr:hover { background: #FBF0F2; }
.lista .n { text-align: right; }
.s-duda { color: var(--ambar); }
.s-ssco { background: #FEE2E2; }
.s-total { font-size: 13px; padding: 8px 4px; color: #1F1A1C; }
.s-log { font-family: Consolas, monospace; font-size: 12px; background: #fff; border: 1px solid var(--linea); border-radius: 8px; padding: 8px 10px; color: var(--gris); }
.btn:disabled { opacity: .6; cursor: default; }
.modal-fondo { position: fixed; inset: 0; background: rgba(30, 10, 15, .45); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.modal { background: #fff; border-radius: 12px; width: min(760px, 100%); max-height: 88vh; overflow-y: auto; padding: 18px 20px; }
.m-cab { display: flex; justify-content: space-between; align-items: center; font-size: 16px; color: var(--guinda); }
.m-x { background: none; border: 0; font-size: 18px; color: var(--suave); }
.m-datos { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; margin: 12px 0 8px; color: var(--gris); }
.m-nombre { background: #EEF4FB; border-radius: 8px; padding: 8px 12px; font-weight: 700; margin-bottom: 12px; }
.m-tot { text-align: right; margin-top: 12px; font-size: 14px; }

/* ---------- barra superior y menú lateral (igual al escritorio) ---------- */
.barra { padding: 6px 14px; gap: 12px; }
.b-quadra { font-size: 22px; letter-spacing: .06em; }
.b-sep { width: 1px; height: 22px; background: rgba(255,255,255,.35); }
.b-panel { font-size: 14px; opacity: .9; }
.b-iconos { display: flex; gap: 4px; }
.b-ico { background: none; border: 0; color: #fff; font-size: 18px; padding: 2px 6px; border-radius: 6px; }
.b-ico:hover { background: rgba(255,255,255,.12); }
.b-pill { background: #fff; color: var(--guinda); border: 0; border-radius: 999px; padding: 6px 18px; font-weight: 800; font-size: 13px; }
.b-badge { background: #DC2626; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.lado { width: 236px; background: #2A0E14; color: #F3E9EB; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.l-cli { padding: 12px 14px 6px; }
.l-cli-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.l-cli-cab b { font-size: 15px; letter-spacing: .02em; }
.l-add { background: #55232D; color: #F3E9EB; border: 1px solid #8A6A71; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 10px; }
#l-cliente { width: 100%; border: 0; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.l-dest-caja { padding: 4px 8px 8px; }
.l-dest { width: 100%; display: flex; align-items: center; gap: 10px; background: #7A1A28; color: #fff; border: 0; border-left: 4px solid #D4AF37;
  border-radius: 10px; padding: 7px 10px; text-align: left; }
.l-dest:hover { background: #9B2335; }
.l-dest-ico { width: 28px; height: 28px; border-radius: 50%; background: #D4AF37; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.l-dest-txt { display: flex; flex-direction: column; flex: 1; line-height: 1.15; }
.l-dest-txt b { font-size: 15px; letter-spacing: .02em; }
.l-dest-txt small { font-size: 10.5px; color: #F2C9CF; }
.l-dest-fl { color: #D4AF37; font-size: 18px; }
.l-linea { height: 1px; background: #4A1E26; margin: 2px 0; }
.l-desp { flex: 1; overflow-y: auto; padding-bottom: 6px; scrollbar-color: #6A3A44 transparent; }
.l-fijo { flex-shrink: 0; }
.lado .l-grupo { display: flex; justify-content: space-between; cursor: pointer; padding: 10px 14px 3px 16px; font-size: 11px; font-weight: 800; color: #D9A7AF; letter-spacing: .04em; text-transform: uppercase; }
.lado .l-grupo:hover { color: #fff; }
.lado .l-mod { padding: 5px 16px 5px 22px; font-size: 14px; color: #F3E9EB; border-left: 3px solid transparent; }
.lado .l-mod.activo { background: rgba(255,255,255,.10); border-left-color: #C23048; font-weight: 700; }
.lado .l-mod.bloq { color: #A9898E; }
.l-op { margin: 2px 10px 6px 26px; background: #3B1219; border-radius: 8px; overflow: hidden; }
.l-op-b { display: flex; flex-direction: column; width: 100%; text-align: left; background: none; border: 0; color: #F3E9EB; padding: 6px 10px; }
.l-op-b:hover { background: rgba(255,255,255,.08); }
.l-op-b small { color: #C9A9AE; font-size: 11px; }
.l-op-b.bloq { color: #A9898E; }
#l-plame-op .l-op { margin: 6px 0 0; }
.l-venc { padding: 4px 12px 12px; }
.v-card { background: #fff; color: #111827; border-radius: 16px; padding: 10px 12px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.v-cab { display: flex; justify-content: space-between; font-size: 11px; color: #6B7280; margin-bottom: 6px; }
.v-cab a { color: var(--guinda); text-decoration: none; font-size: 11px; }
.v-fila { display: flex; gap: 9px; align-items: flex-start; }
.v-sep { height: 1px; background: #EEF0F3; margin: 6px 0; }
.v-ficha { background: #EEF0F3; border-radius: 4px; padding: 2px 6px; text-align: center; min-width: 32px; }
.v-ficha b { display: block; font-size: 15px; line-height: 1.1; } .v-ficha small { font-size: 9px; font-weight: 700; }
.v-ficha.hoy { background: #DC2626; color: #fff; } .v-ficha.man { background: #F59E0B; color: #fff; }
.v-est { font-size: 13px; color: #6B7280; } .v-est.hoy { color: #DC2626; } .v-est.man { color: #B45309; }
.v-txt small { color: #6B7280; font-size: 10.5px; }
.v-cli { font-size: 11px; color: #111827; }

/* ---------- Inicio (igual al escritorio) ---------- */
.ini { background: #fff; padding: 22px 30px; min-height: 100%; }
.contenido:has(.ini) { padding: 0; background: #fff; }
.ini-cab { display: flex; align-items: flex-end; gap: 14px; border-bottom: 2px solid var(--guinda); padding-bottom: 8px; }
.ini-logo { width: 56px; height: 56px; }
.ini-nom small { color: var(--guinda); font-weight: 800; font-size: 11px; }
.ini-nom div { font-family: Georgia, serif; font-size: 28px; color: #2A0E14; }
.ini-der { text-align: right; font-size: 13px; color: #6B7280; display: flex; flex-direction: column; gap: 4px; }
.ini-der select { font: inherit; padding: 4px 8px; border-radius: 999px; border: 1px solid #D6CACC; margin: 0 8px; }
.ini-der b { color: #1F2937; }
.ini-tc { color: var(--guinda); }
.ini-cols { display: grid; grid-template-columns: 3fr 2fr; gap: 28px; margin-top: 16px; }
.ini h3 { color: var(--guinda); font-size: 12px; font-weight: 800; letter-spacing: .02em; margin: 6px 0 6px; }
.ini h3.sep { margin-top: 22px; }
.ini-t { width: 100%; border-collapse: collapse; font-size: 13px; }
.ini-t th { text-align: left; font-size: 10px; color: #6B7280; padding: 6px 6px; border-bottom: 1px solid #9CA3AF; }
.ini-t td { padding: 9px 6px; border-bottom: 1px solid #ECECEC; }
.ini-t .n { text-align: right; }
.ini-clic { cursor: pointer; } .ini-clic:hover { background: #FAF5F6; }
.ini-barra { display: inline-block; width: 70px; height: 5px; background: #E5E7EB; border-radius: 3px; vertical-align: middle; overflow: hidden; }
.ini-barra i { display: block; height: 100%; background: #374151; }
.ini-pct { margin-left: 18px; }
.ini-gris { color: #9CA3AF; }
.ini .verde { color: #2F6B3F; } .ini .ambar { color: #9A5B00; } .ini .rojo { color: #A11D2B; } .ini .guinda { color: var(--guinda); }
.ini-ver { color: var(--guinda); font-size: 12px; }
.ini-ven { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid #ECECEC; font-size: 13px; }
.ini-ven small { color: #6B7280; }
.ini-f { width: 34px; text-align: center; } .ini-f small { font-size: 10px; font-weight: 800; display: block; } .ini-f b { font-family: Georgia, serif; font-size: 19px; font-weight: 400; }
.ini-vit { background: #FBF7F7; border: 1px solid #E8DADC; padding: 10px 14px; font-size: 13px; }
.ini-vit span { color: #6B7280; } .ini-vit a { color: var(--guinda); font-weight: 700; }
.ini-pie { border-top: 1px solid #D4D4D4; margin-top: 26px; padding-top: 10px; display: flex; gap: 20px; flex-wrap: wrap; }
.ini-pie a { color: #374151; text-decoration: none; font-size: 13px; }
kbd { font-family: Consolas, monospace; font-size: 11px; border: 1px solid #BDBDBD; padding: 1px 5px; margin-right: 4px; }
.crono { overflow-x: auto; } .crono table { border-collapse: collapse; font-size: 13px; background: #E5E7EB; }
.crono th { background: var(--guinda); color: #fff; padding: 5px 10px; } .crono td { background: #fff; padding: 3px 10px; text-align: center; border: 1px solid #E5E7EB; }
.crono td:first-child { text-align: left; } .cr-cli td { background: #FBF3F4; font-size: 11px; }
.crono .cr-hoy { background: #FECACA; font-weight: 700; } .crono .cr-pronto { background: #FEF3C7; font-weight: 700; } .crono .cr-paso { background: #F3F4F6; color: #9CA3AF; }
@media (max-width: 760px) { .ini-cols { grid-template-columns: 1fr; } .b-panel, .b-sep { display: none; } .lado { width: 260px; } }

/* ---------- Compras / Ventas SIRE (igual al escritorio) ---------- */
.sb-barra { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; background: #FBF3F4; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; }
.sb-g { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--guinda); }
.sb-g input, .sb-g select { font: inherit; font-weight: 400; color: #111; font-size: 14px; padding: 7px 9px; border: 1px solid #D6CACC; border-radius: 8px; background: #fff; }
#s-cli { width: min(320px, 80vw); }
.btn.alerta { background: linear-gradient(#FFF7ED, #FDE7C8); border: 1px solid #D97706; color: #9A3412; font-weight: 700; }
.tc-caja { background: #fff; border: 1px solid #E7D3D7; border-radius: 12px; padding: 5px 12px; text-align: left; }
.tc-t { font-size: 9px; font-weight: 700; color: var(--gris); }
.tc-v { display: flex; gap: 10px; align-items: center; }
.tc-v b { color: var(--guinda); font-size: 17px; }
.tc-v span { font-size: 10px; color: var(--gris); line-height: 1.2; }
.tc-ver { display: block; text-align: center; font-size: 11px; color: var(--guinda); text-decoration: none; margin-top: 2px; }
.sb-subido { background: #EFF6FF; border: 1px solid #93C5FD; border-radius: 8px; padding: 6px 12px; margin-bottom: 8px; font-size: 13px; }
.sb-filtros { border: 1px solid #D9CFCC; border-radius: 16px; background: #fff; padding: 6px 12px 10px; margin: 0 0 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.sb-filtros legend { color: var(--guinda); font-weight: 800; font-size: 13px; padding: 0 6px; }
.sb-fl { flex: 1; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; }
.fg { display: grid; grid-template-columns: auto auto; column-gap: 8px; font-size: 12px; }
.fg > span { grid-column: 1 / 3; color: #111827; margin-bottom: 3px; }
.fg > span.rojo { color: var(--guinda); font-weight: 700; }
.fg > div { grid-column: 1 / 3; display: flex; gap: 8px; }
.fg input, .fg select { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid #D6CACC; border-radius: 7px; background: #fff; }
.fg input.m { width: 90px; text-align: right; }
.fg small { color: var(--suave); font-size: 10px; padding-left: 8px; }
.fg small.h { grid-column: 2; } .fg small.h2 { grid-column: 2; }
.caja-detr, .caja-cuad, .caja-ssco { border-radius: 18px; padding: 6px 12px; font-size: 11px; display: flex; flex-direction: column; gap: 4px; }
.caja-detr > div, .caja-cuad > div { display: flex; gap: 6px; align-items: center; }
.caja-detr select, .caja-cuad select { font: inherit; font-size: 13px; padding: 5px 7px; border-radius: 7px; border: 1px solid #D6CACC; background: #fff; }
.caja-detr { background: #FFF7ED; border: 1px solid #FDBA74; color: #9A3412; }
.caja-detr a { color: #9A3412; font-size: 12px; }
.caja-cuad { background: #EFF6FF; border: 1px solid #93C5FD; color: #1E40AF; }
.caja-cuad .btn { color: #1E40AF; }
.caja-ssco { cursor: pointer; border-radius: 4px; }
.caja-ssco.ok { background: #ECFDF5; border: 1px solid #6EE7B7; color: #047857; }
.caja-ssco.mal { background: #FEF2F2; border: 1px solid #FCA5A5; color: #B91C1C; }
.caja-ssco.gris { background: #F9FAFB; border: 1px solid #D1D5DB; color: #6B7280; }
#ssco-t { font-size: 15px; font-weight: 800; }
.caja-ssco small { color: #374151; }
.btn.naranja { background: #C2410C; color: #fff; border-color: #C2410C; }
.btn.activo { background: var(--guinda); color: #fff; }
.sb-der { display: flex; flex-direction: column; gap: 6px; min-width: 130px; }
.sb-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: #EEF0FB; border: 1px solid #DCE0F5; border-radius: 16px; padding: 7px 10px; margin-bottom: 6px; }
.sb-sel .btn { font-size: 13px; padding: 5px 12px; }
.chk { font-size: 12px; display: flex; align-items: center; gap: 4px; color: #374151; }
.sb-resumen { display: inline-block; background: #F3EFEE; border-radius: 999px; padding: 3px 14px; font-size: 13px; font-weight: 700; margin: 2px 0 6px; white-space: pre; }
.sb-tabla { border: 1px solid #E7E1DE; border-radius: 14px; background: #fff; overflow: auto; max-height: calc(100vh - 380px); min-height: 220px; }
.sb-tabla .tarjeta { border: 0; margin: 0; }
table.sire2 th { position: sticky; top: 0; z-index: 1; background: #F3ECEC; white-space: nowrap; cursor: pointer; user-select: none; }
table.sire2 td { white-space: nowrap; padding: 5px 8px; }
table.sire2 .al-e { text-align: right; } table.sire2 .al-c { text-align: center; } table.sire2 .al-w { text-align: left; }
table.sire2 .chk-c { width: 30px; text-align: center; cursor: default; }
table.sire2 tr.par td { background: #FAFAFB; }
table.sire2 tr.marcado td { background: #FBEFF1; }
table.sire2 tr.fisico td { color: #9CA3AF; }
table.sire2 tr.porasignar td { color: #B91C1C; font-weight: 700; }
table.sire2 tr.cuadredif td { color: #C2410C; }
table.sire2 tr.ssco td { background: #FECACA; color: #7F1D1D; font-weight: 700; }
table.sire2 { font-size: 12.5px; }
table.sire2 th, table.sire2 td { padding: 5px 6px; }
table.sire2 td.corto { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
table.sire2 td.cta { cursor: pointer; text-decoration: underline dotted #C9A9AE; }
table.sire2 td.cta.duda { color: var(--ambar); }
table.sire2 tbody tr:hover td { background: #FBF0F2; }
.sb-suma { background: #F3F4F6; text-align: right; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 0 0 10px 10px; white-space: pre-line; }
.sb-log { background: #fff; border: 1px solid var(--linea); border-radius: 10px; margin-top: 8px; }
.sb-log-cab { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--linea); font-size: 13px; }
#s-log-l { max-height: 180px; overflow-y: auto; font-family: Consolas, monospace; font-size: 12px; padding: 6px 10px; color: #374151; }
.barra-av { width: 180px; height: 8px; background: #F1ECEC; border-radius: 99px; overflow: hidden; }
.barra-av div { height: 100%; width: 0; background: var(--guinda); transition: width .3s; }
.menu-cta { position: fixed; z-index: 30; background: #fff; border: 1px solid #D6CACC; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); max-height: 320px; overflow-y: auto; min-width: 200px; }
.menu-cta div { padding: 7px 14px; cursor: pointer; font-size: 14px; }
.menu-cta div:hover { background: #FBF3F4; color: var(--guinda); }
.menu-cta div.sel { font-weight: 700; color: var(--guinda); }
.m-texto { white-space: pre-wrap; font-size: 14px; margin-top: 10px; }
.m-texto.mal { color: #B42318; }
.m-h { color: var(--guinda); font-size: 14px; margin: 14px 0 6px; }
.entregas, .carp { display: flex; flex-direction: column; gap: 6px; }
.carp a { color: #1F1A1C; text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.carp a:hover { background: #FBF3F4; }
.carp small { color: var(--suave); margin-left: 6px; }
.ssco-grande { background: #FEF2F2; border: 3px solid #DC2626; border-radius: 10px; padding: 16px; }
.ssco-titulo { color: #DC2626; font-size: 20px; font-weight: 800; margin-bottom: 6px; }

/* detalle del comprobante (igual al escritorio) */
.dt-tit { font-size: 18px; color: #111827; }
.dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 14px 0 6px; }
.dt-c { background: #F7F7F9; padding: 10px 14px; display: flex; justify-content: space-between; font-size: 14px; }
.dt-c span { color: #6B7280; }
.dt-rs { background: #EEF4FB; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; margin: 6px 0 12px; }
.dt-rs span { color: #6B7280; } .dt-rs b { text-align: right; }
.dt-sub { color: #6B7280; font-size: 13px; margin-bottom: 4px; }
.dt-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.dt-tab th { text-align: left; border-bottom: 1px solid #D1D5DB; padding: 6px 4px; }
.dt-tab td { padding: 8px 4px; }
.dt-tab .n { text-align: right; }
.dt-total td { background: #F3F4F6; font-weight: 700; }
.dt-notas { color: #6B7280; font-size: 13px; margin-top: 10px; }
.dt-pie { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: #9CA3AF; font-size: 12px; }

/* ---------- Facturas y Guías ---------- */
.subir { border: 2px dashed #D6CACC; border-radius: 10px; padding: 16px; margin: 12px 0; background: #FCFAFA; }
.subir.sobre { border-color: var(--guinda); background: #FBEFF1; }
.e-arch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.e-arch a { color: #B42318; text-decoration: none; margin-left: 4px; }
.pasos { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.paso { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #F1ECEC; color: var(--suave); }
.paso.hecho { background: #DCFCE7; color: var(--verde); }
.paso.ahora { background: var(--guinda); color: #fff; }
.e-texto { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.e-texto.mal { color: #B42318; }
.girando { color: var(--gris); margin: 10px 0; }
.previa { display: block; max-width: 100%; border: 1px solid var(--linea); border-radius: 8px; margin: 12px 0; }
.pre h3 { color: var(--guinda); font-size: 15px; margin: 16px 0 6px; }
.g-mas { margin: 10px 0; }
.g-mas summary { cursor: pointer; color: var(--guinda); }
a.btn { text-decoration: none; display: inline-block; }

/* ---------- Entrar a SOL (igual a la ventana del escritorio) ---------- */
.sol-cab { display: flex; align-items: center; gap: 14px; background: var(--guinda); color: #fff; padding: 12px 20px; border-radius: 10px 10px 0 0; flex-wrap: wrap; }
.sol-cab b { font-family: Georgia, serif; font-size: 20px; }
.sol-cab > span { color: #F2C9CF; font-size: 13px; }
.sol-donde { color: #fff !important; display: flex; gap: 12px; align-items: center; }
.sol-cuerpo { display: flex; gap: 16px; background: #fff; padding: 14px 16px; border: 1px solid var(--linea); border-top: 0; border-radius: 0 0 10px 10px; }
.sol-izq { width: 280px; flex-shrink: 0; background: #F7F7F9; border: 1px solid #E5E7EB; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.sol-izq small { font-size: 11px; font-weight: 800; color: #6B7280; }
.sol-izq .sol-mas { color: #B45309; margin-top: 6px; display: block; }
#sol-q { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid #D6CACC; border-radius: 6px; margin: 2px 0 8px; }
.sol-lista { background: #fff; max-height: 420px; overflow-y: auto; margin-bottom: 6px; }
.sol-lista.top { background: #FFFBEB; max-height: none; font-weight: 700; }
.sol-cli { padding: 4px 8px; cursor: pointer; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sol-cli:hover { background: #FBF3F4; } .sol-cli.sel { background: var(--guinda); color: #fff; }
.sol-ayuda { font-weight: 400 !important; margin-top: 4px; }
.sol-der { flex: 1; min-width: 0; }
.sol-nom { font-size: 21px; font-weight: 800; color: #111827; }
.sol-datos { color: #6B7280; font-size: 13px; }
.sol-falta { color: #B45309; font-size: 13px; text-decoration: underline; }
.sol-ficha { border-bottom: 1px solid #E5E7EB; padding-bottom: 10px; margin-bottom: 10px; }
.sol-zona { display: grid; grid-template-columns: 2fr 4fr; gap: 14px; }
.sol-tit { display: block; font-size: 13px; color: #111827; margin-bottom: 8px; }
.sol-ing { width: 100%; background: var(--guinda); color: #fff; border: 0; font-weight: 800; font-size: 15px; padding: 10px; box-shadow: 2px 3px 0 #C9CBD3; margin-bottom: 12px; }
.sol-ing:hover { background: #6E1724; }
.sol-mosaicos { display: grid; gap: 7px 8px; } .sol-mosaicos.uno { grid-template-columns: 1fr; } .sol-mosaicos.dos { grid-template-columns: 1fr 1fr; }
.sol-mos { display: flex; align-items: center; gap: 8px; text-align: left; background: #F7F7F9; border: 1px solid #E5E7EB; box-shadow: 2px 3px 0 #C9CBD3; padding: 7px 10px; font-size: 13px; color: #111827; }
.sol-mos span { font-size: 15px; }
.sol-mos:hover { background: #FBF3F4; border-color: var(--guinda); color: var(--guinda); }
.sol-mos.pulsado { background: var(--guinda); color: #fff; }
.sol-acc-t { display: block; color: #0F766E; font-size: 11px; margin: 12px 0 4px; }
.sol-acc { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 8px 12px; margin-bottom: 7px; }
.sol-acc > span:first-child { font-size: 18px; }
.sol-acc span { display: flex; flex-direction: column; } .sol-acc small { color: #4B5563; font-size: 11px; }
.sol-acc.verde { background: #E6F4F2; border: 1px solid #0F766E; color: #0F766E; box-shadow: 2px 3px 0 #9CC9C3; }
.sol-acc.verde:hover, .sol-acc.verde.pulsado { background: #0F766E; color: #fff; } .sol-acc.verde:hover small { color: #E6F4F2; }
.sol-acc.azul { background: #E8F0FA; border: 1px solid #1D4E89; color: #1D4E89; box-shadow: 2px 3px 0 #A9C1E0; }
.sol-acc.azul:hover { background: #1D4E89; color: #fff; } .sol-acc.azul:hover small { color: #E8F0FA; }
@media (max-width: 900px) { .sol-cuerpo { flex-direction: column; } .sol-izq { width: auto; } .sol-zona { grid-template-columns: 1fr; } }

/* (visor remoto de SOL) */
.sol-barra, .sol-teclado { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.sol-barra select { max-width: 280px; font: inherit; padding: 5px; border-radius: 6px; border: 1px solid #D6CACC; }
#sol-texto { flex: 1; min-width: 200px; font: inherit; font-size: 15px; padding: 7px 10px; border: 1px solid #D6CACC; border-radius: 6px; }
.sol-pantalla { background: #fff; border: 1px solid var(--linea); border-radius: 8px; overflow: hidden; max-width: 860px; }
#sol-img { display: block; width: 100%; height: auto; cursor: pointer; user-select: none; }
.chip.activo { background: var(--guinda); color: #fff; }
button.chip { cursor: pointer; }
.aviso-sol { border-color: #F59E0B; background: #FFFBEB; }

/* ---------- celular ---------- */
@media (max-width: 760px) {
  .portada { flex-direction: column; }
  .p-izq { flex: 0 0 auto; min-height: 42vh; }
  .p-saludo { left: 16px; top: 16px; }
  .p-marca { left: 16px; right: 16px; gap: 14px; }
  .p-logo { width: 84px; }
  .p-quadra { font-size: 40px; }
  .p-lema { font-size: 14px; }
  .p-grupo { gap: 10px; } .p-grupo span { font-size: 12px; letter-spacing: .2em; margin-right: -.2em; }
  .p-pie { display: none; }
  .p-der { min-height: 58vh; }
  .p-marca-blanca { top: 18%; }
  .menu-btn { display: block; }
  .b-yo { display: none; }
  .lado { position: fixed; top: 46px; bottom: 0; left: 0; z-index: 5; transform: translateX(-100%); transition: transform .2s; }
  .lado.abierto { transform: none; }
  .contenido { padding: 16px; }
}

/* ---------- PDT PLAME (igual a la ventana del escritorio) ---------- */
.contenido:has(.pl) { padding: 0; background: #fff; }
.pl { display: flex; flex-direction: column; min-height: 100%; height: 100%; background: #fff; }
.pl-cab { background: #1D4E89; color: #fff; display: flex; align-items: center; gap: 14px; padding: 10px 18px; flex: 0 0 auto; }
.pl-tit { font-family: "Segoe UI Semibold", "Segoe UI", sans-serif; font-weight: 700; font-size: 19px; white-space: nowrap; }
.pl-centro { flex: 1; text-align: center; display: flex; flex-direction: column; }
.pl-centro b { font-size: 21px; } .pl-centro small { color: #D6E4F5; font-size: 12px; }
.pl-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pl-lado small { color: #D6E4F5; font-size: 11px; font-weight: 700; align-self: flex-start; padding-left: 4px; }
.pl-lado input { width: 260px; font: inherit; font-size: 13px; padding: 5px 8px; border: 0; border-radius: 4px; }
.pl-lado a { color: #BFD7F2; font-size: 11px; text-decoration: none; padding-right: 4px; }
.pl-lado a:hover { color: #fff; text-decoration: underline; }
.pl-lado a.grabando { color: #FCA5A5; }
.pl-vacio { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; color: #6B7280; font-size: 15px; }
.pl-cuerpo { flex: 1; display: flex; flex-direction: column; padding: 12px 18px 0; min-height: 0; }
.pl-fila { display: flex; align-items: center; gap: 12px; }
.pl-per { background: #FEF3C7; border: 2px solid #D97706; padding: 5px 10px; display: flex; flex-direction: column; }
.pl-per small { color: #92400E; font-size: 11px; font-weight: 700; }
.pl-per select { font: inherit; font-size: 21px; font-weight: 700; color: #7C2D12; background: #FFFBEB; border: 1px solid #E5C98A; padding: 2px 6px; min-width: 210px; }
.pl-nota-per { font-weight: 700; font-size: 13px; }
.btn.sunat { background: linear-gradient(#DA2A33, #B3121B); color: #fff; border: 0; font-weight: 700; font-size: 14px; padding: 8px 18px; border-radius: 6px; }
.btn.sunat:hover { background: linear-gradient(#E5393F, #C4161C); }
.btn.verde { background: linear-gradient(#2BAA62, #15803D); color: #fff; border: 0; font-weight: 700; font-size: 14px; padding: 7px 18px; border-radius: 6px; }
.btn.caqui { background: linear-gradient(#E6CF83, #CFAE4E); color: #3D3004; border: 1px solid #A88A2E; font-weight: 700; font-size: 12px; padding: 4px 14px; border-radius: 6px; }
.btn.azul { background: linear-gradient(#F0F7FF, #DCEBFE); color: #1D4ED8; border: 1px solid #7FB0F5; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.btn.azul.hecho { color: #15803D; }
.btn.chico { font-size: 12px; padding: 4px 10px; border-radius: 6px; color: #1F1A1C; }
.pl .btn.prim { border-radius: 6px; }
.pl-tabs { display: flex; gap: 2px; margin-top: 10px; border-bottom: 1px solid #D6CCCA; }
.pl-tab-b { background: #F3EFEE; border: 1px solid #D6CCCA; border-bottom: 0; padding: 6px 16px; font-size: 13px; border-radius: 4px 4px 0 0; margin-bottom: -1px; white-space: pre; }
.pl-tab-b.activa { background: #fff; font-weight: 700; }
.pl-tab { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 8px 8px 0; }
#pl-t-imp { overflow-y: auto; display: block; padding: 4px 8px; }
.pl-barra { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 6px; }
.pl-izq { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 6px; padding-top: 2px; }
.pl-g { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.pl-g select, .pl-g input { font: inherit; font-size: 12.5px; padding: 3px 4px; border: 1px solid #D6CCCA; border-radius: 3px; }
.pl-g select { max-width: 260px; }
.pl-buscar { display: inline-flex; align-items: center; border: 1px solid #D6CCCA; background: #fff; padding: 0 6px; color: #6B7280; }
.pl-buscar:focus-within { border-color: #8B1E2D; }
.pl-buscar input { border: 0; width: 200px; padding: 4px; outline: none; }
.pl-buscar b { color: #9CA3AF; cursor: pointer; font-weight: 400; }
.pl-sep { display: inline-block; width: 1px; height: 24px; background: #E5DEDB; margin: 0 6px; }
.pl-der { display: flex; flex-direction: column; align-items: stretch; gap: 6px; border-left: 1px solid #E5DEDB; padding-left: 12px; min-width: 190px; }
.pl-der .btn.chico { align-self: center; }
.pl-der-f { display: flex; gap: 6px; justify-content: center; }
.pl-carp-l { color: #1D4E89; font-size: 11px; text-align: center; }
.pl-est { font-size: 12.5px; font-weight: 700; padding: 0 10px; border-radius: 4px; }
.pl-est.visible { padding: 5px 10px; margin-bottom: 4px; }
.pl-hoja { flex: 1; min-height: 160px; overflow: auto; border: 1px solid #E5DEDB; position: relative; outline: none; }
.pl-hoja:focus { border-color: #B9C8E6; }
table.pl-t { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; }
table.pl-t th { position: sticky; top: 0; z-index: 2; background: #F1EAE8; color: #3F3437; font-size: 11px; font-weight: 700; height: 40px;
  padding: 2px; text-align: center; line-height: 1.15; border-right: 1px solid #DCCFCC; border-bottom: 1px solid #DCCFCC; overflow: hidden; }
table.pl-t th.calc { color: #6B6265; }
table.pl-t td { height: 26px; padding: 0 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative;
  border-bottom: 1px solid #F3EEEC; cursor: cell; user-select: none; }
table.pl-t tr.par td { background: #FAF7F6; }
table.pl-t td.izq { text-align: left; } table.pl-t td.cen { text-align: center; } table.pl-t td.der { text-align: right; }
table.pl-t td.sel { box-shadow: inset 0 0 0 2px #2563EB; }
.pl-ed { position: absolute; inset: 0; width: 100%; height: 100%; font: inherit; font-size: 12px; border: 1px solid #1F2937; padding: 0 4px; outline: none; }
.pl-ed.der { text-align: right; }
.pl-lista { position: absolute; z-index: 5; background: #fff; border: 1px solid #1F2937; font-size: 12px; outline: none; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.pl-lista div { padding: 3px 6px; cursor: pointer; white-space: pre; }
.pl-lista div.sel, .pl-lista div:hover { background: #8B1E2D; color: #fff; }
.pl-tot { background: #F6F1EF; color: #1F1A1C; font-size: 12px; font-weight: 700; padding: 5px 10px; margin-top: 4px; white-space: pre-wrap; }
.pl-nota { font-size: 12.5px; color: #6B7280; padding: 4px 2px 6px; min-height: 22px; }
.pl-paso { color: #1D4E89; font-size: 14px; margin: 14px 0 2px; white-space: pre; }
.pl-ayuda { color: #6B7280; font-size: 12.5px; margin: 0 0 4px; max-width: 900px; line-height: 1.4; }
.pl-bts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 2px; }
.pl-falta { color: #B45309; font-size: 12.5px; }
.pl-l-est { font-size: 12.5px; max-width: 900px; }
.pl-imp-caja { margin-top: 6px; border: 1px solid #E5DEDB; max-height: 240px; overflow: auto; }
table.pl-imp { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.pl-imp th { background: #F3EFEE; text-align: left; padding: 4px 6px; position: sticky; top: 0; }
table.pl-imp td { padding: 4px 6px; border-bottom: 1px solid #F3EEEC; }
table.pl-imp .der { text-align: right; }
table.pl-imp tr.mal td { color: #B42318; } table.pl-imp tr.bien td { color: #15803D; }
.pi-carpeta { display: block; color: #111827; font-weight: 700; font-size: 12.5px; margin: 6px 0 2px; text-decoration: none; }
.pl-act { border-top: 1px solid #E5DEDB; background: #FBFAF9; margin: 4px -18px 0; padding: 4px 18px; max-height: 150px; display: flex; flex-direction: column; }
.pl-act-cab { display: flex; font-size: 12px; color: #1D4E89; } .pl-act-cab a { font-size: 11px; color: #6B7280; }
#pl-log { overflow-y: auto; font-family: Consolas, monospace; font-size: 11.5px; color: #374151; }
.pl-pie { display: flex; justify-content: flex-end; padding: 8px 18px; border-top: 1px solid #F1ECEA; flex: 0 0 auto; }
.pl-toast { position: fixed; left: 50%; top: 60px; transform: translateX(-50%); z-index: 50; background: #FEF3C7; color: #92400E;
  border: 2px solid #F59E0B; padding: 10px 16px; font-weight: 700; font-size: 14px; max-width: 460px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.pl-entregas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pl-entregas .btn, .pl-carp-lista a { text-decoration: none; }
.pl-carp-lista { display: flex; flex-direction: column; border: 1px solid #E5DEDB; max-height: 340px; overflow-y: auto; }
.pl-carp-lista a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 10px; color: #1F1A1C; border-bottom: 1px solid #F3EEEC; font-size: 13px; }
.pl-carp-lista a:hover { background: #F6F1EF; } .pl-carp-lista small { color: #6B7280; white-space: nowrap; }
.plc-arriba { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 8px 0 6px; }
.plc-arriba select { font: inherit; font-size: 13px; padding: 3px 6px; }
.plc-sigue { background: #FEF3C7; color: #92400E; font-weight: 700; font-size: 13px; padding: 5px 10px; margin-bottom: 6px; }
.plc-sigue.listo { background: #DCFCE7; color: #15803D; }
.plc-caja { max-height: 360px; overflow-y: auto; border: 1px solid #E5DEDB; outline: none; }
table.plc-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.plc-t th { background: #F3EFEE; position: sticky; top: 0; padding: 4px 6px; text-align: left; }
table.plc-t td { padding: 4px 6px; border-bottom: 1px solid #F3EEEC; cursor: default; }
table.plc-t .cen { text-align: center; }
table.plc-t tr.ok td { color: #15803D; } table.plc-t tr.falta td { color: #B91C1C; }
table.plc-t tr.proceso td { color: #B45309; } table.plc-t tr.no td { color: #6B7280; }
table.plc-t tr.sigue td { background: #FEF3C7; font-weight: 700; }
table.plc-t tr.elegida td { background: #DBEAFE; }
.plc-pie { color: #6B7280; font-size: 11.5px; margin: 6px 0 0; }

/* ---------- AFP Declaración (igual a la ventana del escritorio) ---------- */
.contenido:has(.afp) { background: #fff; }
.afp { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.afp-cab { display: flex; align-items: center; gap: 12px; }
.afp-emb { width: 46px; height: 46px; }
.afp-tit { color: #8B1E2D; font-size: 22px; font-weight: 700; }
.afp-sub { color: #6B7280; font-size: 12px; }
.afp-per-t { color: #6B7280; font-size: 12.5px; }
#afp-per { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid #D6CCCA; border-radius: 4px; }
.afp-linea { height: 2px; background: #8B1E2D; margin: 10px 0; }
.afp-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; }
.afp-barra input { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #D6CCCA; border-radius: 4px; width: 220px; margin-right: 6px; }
.afp .btn { border-radius: 6px; font-size: 13px; }
.afp-nueva { background: #F3F7FB; border: 1px solid #C9D6E6; padding: 10px 14px; margin-bottom: 8px; }
.afp-nueva > b { color: #1D4E89; font-size: 12.5px; }
.afp-acc { background: #FBF3F4; border: 1px solid #E7D3D7; padding: 10px 14px; margin-bottom: 8px; }
.afp-acc > b { color: #8B1E2D; font-size: 12.5px; }
.afp-campos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; font-size: 12.5px; }
.afp-campos label { display: inline-flex; align-items: center; gap: 6px; }
.afp-campos input[type=text], .afp-campos input:not([type]), .afp-campos input[type=password] { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid #D6CCCA; border-radius: 3px; }
.afp-nota { color: #6B7280; font-size: 11.5px; }
.afp-err { color: #A11D2B; font-size: 11.5px; margin-top: 4px; }
.afp-chk { display: flex; align-items: center; gap: 4px; font-size: 12.5px; margin-bottom: 4px; }
.afp-chk button { background: #F3F4F6; border: 0; font-size: 11px; padding: 3px 8px; }
.afp-chk label { margin-left: 14px; display: inline-flex; align-items: center; gap: 4px; }
.afp-caja { flex: 1; min-height: 180px; overflow: auto; border: 1px solid #E5DEDB; outline: none; }
.afp-caja:focus { border-color: #B9C8E6; }
table.afp-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.afp-t th { background: #F3EFEE; position: sticky; top: 0; padding: 5px 6px; text-align: center; z-index: 1; }
table.afp-t td { padding: 4px 6px; border-bottom: 1px solid #F3EEEC; cursor: default; white-space: nowrap; }
table.afp-t .cen { text-align: center; }
table.afp-t td.afp-rev { cursor: pointer; font-size: 15px; }
table.afp-t tr.externo td { background: #F7FAFD; }
table.afp-t tr.falta td { color: #A11D2B; } table.afp-t tr.ok td { color: #2F6B3F; }
table.afp-t tr.decl td { color: #9A5B00; } table.afp-t tr.na td { color: #9CA3AF; }
table.afp-t tr.elegida td { background: #DBEAFE; }
.afp-pie { color: #6B7280; font-size: 12px; padding: 8px 0 4px; }
.afp-act { margin: 0; padding: 4px 0; max-height: 130px; }
.afp-menu { position: fixed; z-index: 60; background: #fff; border: 1px solid #D1D5DB; box-shadow: 0 8px 24px rgba(0,0,0,.18); padding: 4px 0; font-size: 13px; min-width: 300px; }
.afp-menu div { display: flex; justify-content: space-between; gap: 18px; padding: 5px 14px; cursor: pointer; }
.afp-menu div:hover { background: #8B1E2D; color: #fff; }
.afp-menu div.apagado { color: #9CA3AF; cursor: default; } .afp-menu div.apagado:hover { background: none; color: #9CA3AF; }
.afp-menu small { color: inherit; opacity: .7; } .afp-menu hr { border: 0; border-top: 1px solid #E5E7EB; margin: 4px 0; }
#afp-log { overflow-y: auto; font-family: Consolas, monospace; font-size: 11.5px; color: #374151; }

/* ---------- Control total (igual a la ventana del escritorio) ---------- */
.contenido:has(.ct) { background: #fff; }
.ct { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ct-tit { color: #8B1E2D; font-size: 20px; font-weight: 700; }
.ct-tabs { display: flex; gap: 6px; margin: 6px 0 8px; }
.ct-tabs button { background: #F7EEF0; color: #8B1E2D; border: 0; font-weight: 700; font-size: 13px; padding: 6px 12px; }
.ct-tabs button.activa { background: #8B1E2D; color: #fff; }
.ct-sep { height: 1px; background: #E7D3D7; margin-bottom: 6px; }
#ct-hoja, #ct-vida { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ct-ayuda { color: #6B7280; font-size: 12px; margin: 0 0 6px; }
.ct-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 6px; font-size: 12.5px; }
.ct-barra label { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.ct-barra label.chk { font-weight: 400; }
.ct-barra select, .ct-barra input:not([type]) { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid #D6CCCA; border-radius: 3px; font-weight: 400; }
.ct .btn { border-radius: 6px; }
.ct-grilla { flex: 1; min-height: 200px; overflow: auto; border: 1px solid #D8CFD1; outline: none; position: relative; }
table.ct-t { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12px; user-select: none; }
table.ct-t th { background: #8B1E2D; color: #fff; font-size: 12px; height: 26px; padding: 0 2px; position: sticky; top: 0; z-index: 3; border-right: 1px solid #6E1724; text-align: center; overflow: hidden; white-space: nowrap; }
table.ct-t th.ct-mes { cursor: s-resize; border-left: 3px solid #7A1E2B; }
table.ct-t th.ct-mes.hoy { background: #C23048; }
table.ct-t thead tr:nth-child(2) th { top: 26px; background: #F3E8EA; color: #4B2A30; font-size: 11px; border-right: 1px solid #D8CFD1; cursor: s-resize; }
table.ct-t th.ct-campo.ini { border-left: 3px solid #7A1E2B; }
table.ct-t th.ct-iz { z-index: 5; position: sticky; }
table.ct-t th.ct-notas-h { border-left: 3px solid #7A1E2B; }
table.ct-t th.selcol { box-shadow: inset 0 0 0 2px #1D4ED8; }
.ct-borde { position: absolute; right: -2px; top: 0; bottom: 0; width: 7px; cursor: col-resize; z-index: 2; }
table.ct-t th { position: sticky; }
table.ct-t td { height: 26px; border-bottom: 1px solid #E5E1E2; border-right: 1px solid #E5E1E2; padding: 0; text-align: center; overflow: hidden; white-space: nowrap; }
table.ct-t td.ct-iz { position: sticky; z-index: 2; background: #fff; padding: 0 4px; cursor: default; }
table.ct-t td.ct-iz.nom { text-align: left; font-weight: 700; padding-left: 6px; text-overflow: ellipsis; }
table.ct-t tr.sub td.ct-iz { background: #FBF7F8; color: #6B7280; font-weight: 400; white-space: pre; }
table.ct-t td.selnom { box-shadow: inset 0 0 0 2px #93C5FD; }
table.ct-t td.ct-c { position: relative; cursor: cell; }
table.ct-t td.ct-c.ini { border-left: 3px solid #7A1E2B; }
table.ct-t td.ct-c.fin { border-right: 1px solid #9CA3AF; }
table.ct-t td.ct-c.sel { box-shadow: inset 0 0 0 2px rgba(29,78,216,.55); filter: brightness(.96); }
table.ct-t td.ct-c.cur { box-shadow: inset 0 0 0 3px #1D4ED8; }
table.ct-t td.ct-notas { text-align: left; color: #7C2D12; font-size: 11px; padding: 0 6px; border-left: 3px solid #7A1E2B; text-overflow: ellipsis; }
.ct-chico { font-size: 9px; }
.ct-nota-m { position: absolute; right: 0; top: 0; border-top: 8px solid #8B1E2D; border-left: 8px solid transparent; }
.ct-ic { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; font-size: 11px; font-weight: 700; line-height: 1; border: 1px solid; }
.ct-check { background: #DCFCE7; border-color: #86EFAC; color: #16A34A; }
.ct-check_fp { background: #FFEDD5; border-color: #FDBA74; color: #C2410C; }
.ct-alerta { background: #FEE2E2; border-color: #FCA5A5; color: #DC2626; }
.ct-no { background: #E5E7EB; border-color: #D1D5DB; color: #6B7280; }
.ct-proceso { background: #FEF3C7; border-color: #FCD34D; color: #B45309; }
.ct-cero { background: #F3F4F6; border-color: #D1D5DB; color: #6B7280; }
.ct-ic.pint { background: transparent !important; border: 0; color: #fff; font-size: 13px; }
.ct-ic.ct-cero.pint { color: #4B5563; }
.ct-pie { display: flex; align-items: center; gap: 10px; padding-top: 6px; flex-wrap: wrap; }
.ct-ley { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11px; color: #374151; }
.ct-ley-i { display: inline-flex; align-items: center; gap: 4px; }
.ct-ley-i .ct-ic.pint { width: 18px; height: 18px; border-radius: 2px; }
.ct-ley-i .ct-ic.pint.ct-check { background: #22A35A !important; } .ct-ley-i .ct-ic.pint.ct-check_fp { background: #F97316 !important; }
.ct-ley-i .ct-ic.pint.ct-alerta { background: #DC2626 !important; } .ct-ley-i .ct-ic.pint.ct-no { background: #9CA3AF !important; }
.ct-ley-i .ct-ic.pint.ct-proceso { background: #F59E0B !important; } .ct-ley-i .ct-ic.pint.ct-cero { background: #E5E7EB !important; }
.ct-vence { color: #B45309; font-size: 9px; font-weight: 700; }
.ct-na-l { display: inline-block; width: 16px; height: 14px; background: #E5E7EB; border: 1px solid #D1D5DB; }
.ct-res { color: #8B1E2D; font-size: 13px; }
.ct-guia { position: fixed; top: 0; bottom: 0; width: 0; border-left: 2px dashed #1D4ED8; z-index: 70; pointer-events: none; }
.ct-ficha { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.ct-ficha label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ct-ficha label.chk { justify-content: flex-start; }
.ct-ficha input:not([type=checkbox]), .ct-ficha select { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid #D6CCCA; border-radius: 3px; }
.ct-tarj { display: flex; align-items: center; gap: 12px; border: 2px solid #D8CFD1; padding: 10px 12px; margin: 6px 0; cursor: pointer; }
.ct-tarj .ct-tc { width: 28px; height: 28px; background: #F3F4F6; color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ct-tarj .ct-tt { flex: 1; display: flex; flex-direction: column; } .ct-tarj small { color: #6B7280; font-size: 11px; }
.ct-tarj label { font-size: 11px; color: #6B7280; display: flex; align-items: center; gap: 4px; }
.ct-tarj input { font: inherit; font-size: 12.5px; padding: 3px 5px; }
.ct-tarj[data-c=decl].on { background: #FFF4E8; border-color: #C2410C; } .ct-tarj[data-c=decl].on .ct-tc { background: #C2410C; }
.ct-tarj[data-c=pago].on { background: #ECFDF3; border-color: #15803D; } .ct-tarj[data-c=pago].on .ct-tc { background: #15803D; }
.ct-quedara { display: block; margin-top: 10px; font-size: 13px; }
.ct-vida-caja { flex: 1; overflow: auto; border: 1px solid #E5DEDB; min-height: 200px; }
.vl-t tr.vl-vencida td { background: #FDECEA; color: #B42318; } .vl-t tr.vl-pronto td { background: #FEF3C7; color: #92400E; }
.vl-t tr.vl-vigente td { background: #ECFDF3; color: #166534; } .vl-t tr.vl-sin td { color: #9CA3AF; }
.vl-t tr.vl-na td { background: #F3F4F6; color: #6B7280; } .vl-t tr.elegida td { background: #DBEAFE; }
.vl-res { align-self: flex-end; padding-top: 6px; }
.btn.prim.chico { color: #fff; }

/* ---------- Contabilidad (igual al módulo del escritorio) ---------- */
.contenido:has(.co) { padding: 0; background: #fff; }
.co { display: flex; flex-direction: column; min-height: 100%; background: #fff; }
.co-top { background: #8B1E2D; color: #fff; display: flex; align-items: center; gap: 12px; padding: 8px 14px; flex-wrap: wrap; }
.co-top b { font-size: 15px; }
.co-sel { color: #F6D5DA; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; }
.co-sel select { font: inherit; font-size: 12.5px; padding: 2px 4px; margin-right: 8px; }
.co-cerr { background: #6E1724; padding: 2px 10px; font-weight: 700; font-size: 12px; }
.co-aj { color: #F6D5DA; font-size: 12px; }
.co-x { background: none; border: 0; color: #fff; font-weight: 700; font-size: 13px; padding: 4px 12px; }
.co-x:hover { background: #6E1724; }
.co-tabs { background: #FAF7F7; display: flex; flex-wrap: wrap; border-bottom: 1px solid #E5E1E2; }
.co-tabs button { background: none; border: 0; color: #6B7280; font-size: 13px; padding: 7px 12px; border-bottom: 2px solid transparent; }
.co-tabs button.on { color: #8B1E2D; font-weight: 700; border-bottom-color: #8B1E2D; }
.co-cinta { display: flex; align-items: stretch; flex-wrap: wrap; padding: 4px 8px; border-bottom: 1px solid #E5E1E2; }
.co-g { display: flex; flex-direction: column; align-items: center; margin-right: 6px; }
.co-gb { display: flex; }
.co-gt { color: #9CA3AF; font-size: 10px; }
.co-gsep { width: 1px; background: #E5E1E2; margin: 0 6px; }
.co-cb { background: none; border: 0; display: flex; flex-direction: column; align-items: center; padding: 2px 6px; }
.co-cb span { background: #FBEAED; color: #8B1E2D; font-weight: 700; font-size: 13px; min-width: 36px; padding: 2px 0; }
.co-cb small { font-size: 11px; color: #111827; }
.co-cb:hover { background: #FBEAED; }
.co-pasos { background: #FAF7F7; display: flex; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #E5E1E2; }
.co-paso { flex: 1; background: #fff; border: 1px solid #E5E1E2; padding: 3px 8px; cursor: pointer; display: flex; flex-direction: column; }
.co-paso b { font-size: 12.5px; color: #111827; } .co-paso small { font-size: 11px; color: #6B7280; }
.co-paso.ok { background: #DCFCE7; border-color: #86EFAC; } .co-paso.ok b, .co-paso.ok small { color: #15803D; }
.co-paso.now { border: 2px solid #8B1E2D; } .co-paso.now b { color: #8B1E2D; }
.co-main { padding: 10px 14px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.co-h { color: #8B1E2D; font-size: 17px; margin: 0; }
.co-sub { color: #6B7280; font-size: 12.5px; margin: 2px 0 6px; white-space: pre-wrap; }
.co-cards { display: flex; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.co-card { flex: 1; min-width: 170px; background: #F8F5F5; padding: 8px 12px; display: flex; flex-direction: column; }
.co-card small { color: #6B7280; font-size: 12px; } .co-card b { font-size: 19px; color: #111827; }
.co-ok { color: #15803D !important; } .co-mal { color: #B91C1C !important; } .co-am { color: #B45309 !important; }
.co-aviso { background: #FEF3C7; color: #B45309; font-size: 12.5px; padding: 6px 10px; white-space: pre-wrap; margin: 4px 0; }
.co-bots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.co-bt { background: #fff; color: #8B1E2D; border: 1px solid #E5E1E2; font-weight: 700; font-size: 12.5px; padding: 5px 12px; }
.co-bt.p { background: #8B1E2D; color: #fff; border-color: #8B1E2D; }
.co-chk { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; margin: 4px 0; }
.co-chk select { font: inherit; font-size: 12.5px; }
.co-tcaja { flex: 1; overflow: auto; border: 1px solid #E5E1E2; min-height: 160px; margin-top: 4px; }
table.co-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; }
table.co-t th { background: #F3EFEE; position: sticky; top: 0; padding: 4px 6px; text-align: left; z-index: 1; }
table.co-t td { padding: 3px 6px; border-bottom: 1px solid #F3EEEC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.co-t .der { text-align: right; } table.co-t .cen { text-align: center; }
table.co-t tr.cab td { background: #FAF7F7; font-weight: 700; }
table.co-t tr.am td { background: #FEF3C7; color: #B45309; }
table.co-t tr.tot td { background: #FBEAED; font-weight: 700; }
table.co-t tr.ok td { color: #15803D; }
table.co-t tr[data-id] { cursor: pointer; }
table.co-t tr.elegida td { background: #DBEAFE !important; }
.co-busca { font: inherit; font-size: 13px; padding: 5px 8px; border: 1px solid #D6CCCA; margin: 4px 0; }
.co-exp { display: grid; grid-template-columns: auto 130px 1fr auto 130px 1fr; gap: 4px 8px; align-items: center; font-size: 12.5px; margin: 4px 0; }
.co-exp input { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid #D6CCCA; }
.co-exp small { color: #6B7280; font-size: 11px; }
.co-st { display: block; font-size: 12.5px; margin-top: 8px; }
.co-nb { display: flex; gap: 2px; border-bottom: 1px solid #D6CCCA; margin-top: 4px; }
.co-nb button { background: #F3EFEE; border: 1px solid #D6CCCA; border-bottom: 0; padding: 5px 12px; font-size: 12.5px; margin-bottom: -1px; }
.co-nb button.on { background: #fff; font-weight: 700; }
#co-nbc { flex: 1; display: flex; flex-direction: column; min-height: 0; }
table.co-nm { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
table.co-nm th { text-align: left; } table.co-nm td { padding: 1px 2px; }
table.co-nm td.nm-n { color: #6B7280; font-size: 11.5px; width: 46%; }
table.co-nm input { font: inherit; font-size: 12.5px; padding: 2px 4px; width: 100%; }
table.co-nm input.der { text-align: right; }
.pc-fondo { position: fixed; inset: 0; background: rgba(30,10,15,.45); z-index: 15; display: flex; padding: 24px; }
.pc { background: #fff; flex: 1; display: flex; flex-direction: column; padding: 14px 18px; border-radius: 10px; min-height: 0; }
.pc-cab { display: flex; align-items: center; }
.pc-cab b { color: #8B1E2D; font-size: 20px; display: block; } .pc-cab small { color: #6B7280; font-size: 12px; }
.co-x.pcx { color: #8B1E2D; }
.pc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 8px; font-size: 12.5px; }
.pc-bar input, .pc-bar select { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid #D6CCCA; }
.pc-bar .btn { border-radius: 6px; font-size: 13px; }
.pc-mini { background: #F3F4F6; border: 0; font-size: 12px; padding: 3px 8px; }
.pc-caja { flex: 1; overflow: auto; border: 1px solid #E5DEDB; outline: none; }
table.pc-t tr.clase td { color: #8B1E2D; font-weight: 700; background: #F7EEF0; }
table.pc-t tr.titulo td { font-weight: 700; }
.pc-fl { display: inline-block; width: 16px; color: #6B7280; cursor: pointer; }
.pc-pie { color: #6B7280; font-size: 12px; padding-top: 8px; }

/* ---------- Liquidaciones (igual a la ventana del escritorio) ---------- */
.contenido:has(.lq) { padding: 0; background: #fff; }
.lq { display: flex; flex-direction: column; height: 100%; min-height: 0; background: #fff; }
.lq-cab { background: #8B1E2D; color: #fff; padding: 8px 18px; }
.lq-cab b { font-family: Georgia, serif; font-size: 20px; } .lq-cab span { color: #F2C9CF; font-size: 13px; }
.lq-barra { background: #FBF3F4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 18px; font-size: 13px; }
.lq-barra.dos { padding-top: 0; color: #6B7280; font-size: 12px; }
.lq-barra b { color: #8B1E2D; }
.lq-barra select, .lq-barra input { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid #D6CCCA; }
.lq-b { background: #fff; color: #8B1E2D; border: 1px solid #8B1E2D; padding: 5px 12px; font-size: 13px; }
.lq-b.p { background: #8B1E2D; color: #fff; font-weight: 700; border-color: #8B1E2D; }
.lq-b:hover { background: #FBF3F4; } .lq-b.p:hover { background: #6E1724; }
.lq-kpis { display: flex; gap: 10px; padding: 10px 18px; flex-wrap: wrap; }
.lq-kpi { flex: 1; min-width: 180px; border: 1px solid #E5D5D7; padding: 8px 14px; display: flex; flex-direction: column; }
.lq-kpi small { color: #6B7280; font-size: 11px; font-weight: 700; } .lq-kpi b { color: #8B1E2D; font-size: 21px; } .lq-kpi span { color: #6B7280; font-size: 11px; }
.lq-tabla { margin: 0 18px; overflow: auto; border: 1px solid #E5E7EB; height: 46vh; min-height: 120px; resize: vertical; }
table.lq-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; }
table.lq-t th { background: #F3F4F6; position: sticky; top: 0; padding: 5px 6px; cursor: pointer; white-space: nowrap; z-index: 1; }
table.lq-t th.tot { background: #8B1E2D; color: #fff; }
table.lq-t td { padding: 4px 6px; border-bottom: 1px solid #F1F1F3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
table.lq-t .izq { text-align: left; } table.lq-t .cen { text-align: center; } table.lq-t .der { text-align: right; }
table.lq-t td.tot { background: #FBEAED; color: #8B1E2D; font-weight: 700; font-size: 13.5px; }
table.lq-t .lq-chk { text-align: center; cursor: pointer; font-size: 15px; color: #8B1E2D; }
table.lq-t tr.par td { background: #FAFAFB; } table.lq-t tr.par td.tot { background: #FBEAED; }
table.lq-t tr.enviado td { color: #15803D; } table.lq-t tr.sindatos td { color: #9CA3AF; }
table.lq-t tr.elegido td { background: #F3C9D0; font-weight: 700; color: #111827; }
table.lq-t tr.elegido td.tot { background: #8B1E2D; color: #fff; }
.lq-act { flex: 1; min-height: 80px; display: flex; flex-direction: column; padding: 6px 18px; }
.lq-act small { color: #9CA3AF; font-size: 10px; align-self: flex-end; } .lq-act b { color: #6B7280; font-size: 11px; }
#lq-log { flex: 1; overflow-y: auto; background: #F9FAFB; border: 1px solid #E5E7EB; font-family: Consolas, monospace; font-size: 12px; color: #374151; padding: 4px 8px; min-height: 60px; }
.lq-pie { background: #F3F4F6; display: flex; align-items: center; gap: 8px; padding: 10px 18px; }
.lq-msg { flex: 1; color: #6B7280; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lq-g { font-family: Georgia, serif; font-size: 19px; color: #8B1E2D; }
.me-cuerpo { display: flex; gap: 16px; }
.me-izq, .me-der { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.me-t { color: #6B7280; font-size: 11px; font-weight: 700; }
.me-fmt { display: flex; align-items: center; gap: 4px; } .me-fmt button { background: #F3F4F6; border: 0; width: 34px; padding: 3px; }
.me-fmt span { color: #6B7280; font-size: 11px; }
#me-txt { font: inherit; font-size: 14px; border: 1px solid #D1D5DB; padding: 8px 10px; resize: vertical; }
#me-txt:focus { outline: 1px solid #8B1E2D; }
.me-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.me-chips button { background: #F3F4F6; color: #374151; border: 0; padding: 5px; font-size: 12.5px; }
.me-chips button.usado { background: #8B1E2D; color: #fff; }
.me-fila { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6B7280; }
.me-fila select, .me-fila input { font: inherit; font-size: 13px; padding: 3px 6px; }
.me-chat { background: #EFEAE2; padding: 14px; flex: 1; min-height: 200px; display: flex; justify-content: flex-end; align-items: flex-start; }
.me-burbuja { background: #D9FDD3; color: #111B21; font-size: 14px; padding: 8px 12px; white-space: pre-wrap; max-width: 92%; border-radius: 8px; }
.me-hora { display: block; text-align: right; color: #667781; font-size: 11px; }
.me-estado { font-size: 12.5px; } .me-estado.ok { color: #15803D; } .me-estado.mal { color: #B91C1C; } .me-estado.am { color: #B45309; }
table.ce-t input { font: inherit; font-size: 13px; padding: 3px 6px; border: 1px solid #D1D5DB; }
table.ce-t input[readonly] { background: #fff; border-color: #EEE; }
.ce-est { font-size: 11.5px; color: #6B7280; } .ce-est.ok { color: #15803D; } .ce-est.mal { color: #B91C1C; } .ce-est.am { color: #B45309; }

/* ---------- Calculadora de multas e intereses (igual a la del escritorio) ---------- */
.contenido:has(.mu) { background: #fff; }
.mu { max-width: 1060px; }
.mu-tit { color: #8B1E2D; font-size: 22px; margin: 0; }
.mu-sub { color: #6B7280; font-size: 12.5px; margin: 2px 0 0; }
.mu-arriba { display: flex; gap: 16px; align-items: flex-start; }
.mu-g { display: grid; grid-template-columns: auto auto auto auto; gap: 4px 8px; align-items: center; font-size: 12.5px; flex: 1; }
.mu-g b.mu-d { padding-left: 18px; }
.mu-g input { font: inherit; font-size: 13px; padding: 4px 7px; border: 1px solid #D6CCCA; border-radius: 4px; justify-self: start; }
.mu-g #mu-cli { grid-column: span 3; }
.mu-per { cursor: pointer; background: #fff; }
.mu-caso { grid-column: span 3; display: flex; gap: 14px; }
.mu-caso label { display: inline-flex; gap: 4px; align-items: center; }
.mu-bots { display: flex; flex-direction: column; gap: 8px; }
.mu-bots .btn { border-radius: 6px; }
.mu-rect { display: grid; grid-template-columns: auto auto auto 1fr; gap: 4px 12px; align-items: center; font-size: 12.5px; margin-top: 8px; }
.mu-rect input:not([type=checkbox]) { font: inherit; font-size: 13px; padding: 4px 7px; border: 1px solid #D6CCCA; border-radius: 4px; }
.mu-h { color: #8B1E2D; }
.mu-chk { display: inline-flex; align-items: center; gap: 4px; }
.mu-grad { grid-column: span 3; justify-self: start; font: inherit; font-size: 13px; padding: 3px 6px; }
.mu-tarde { display: flex; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 8px; }
.mu-tarde input { font: inherit; font-size: 13px; padding: 4px 7px; border: 1px solid #D6CCCA; border-radius: 4px; }
.mu-res { background: #FBF7F7; font-family: Consolas, monospace; font-size: 13.5px; padding: 10px 12px; min-height: 340px; white-space: pre-wrap; margin-top: 10px; }
.mu-cal { position: fixed; z-index: 60; background: #fff; border: 1px solid #C9CED6; padding: 8px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.mu-cal-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; color: #1F2937; }
.mu-cal-cab button { background: none; border: 0; font-size: 16px; color: #0B63CE; padding: 0 8px; }
.mu-cal-m { display: grid; grid-template-columns: repeat(4, 46px); gap: 4px; }
.mu-cal-m button { background: #fff; border: 0; padding: 5px 0; color: #1F2937; font-size: 13px; }
.mu-cal-m button:hover:not(:disabled) { background: #E8F0FB; }
.mu-cal-m button.sel { background: #0B63CE; color: #fff; font-weight: 700; }
.mu-cal-m button:disabled { color: #B0B6BE; cursor: default; }

/* ---------- Control de ingresos ---------- */
.contenido:has(.ig) { background: #fff; }
.ig { max-width: 700px; }
.ig-sub { color: #6B7280; font-size: 12.5px; margin: 2px 0 12px; }
.ig-arch { font-weight: 700; font-size: 13px; word-break: break-all; }
.ig-bar { display: flex; gap: 8px; margin: 14px 0 8px; } .ig-bar .btn { border-radius: 6px; }
.ig-estado { color: #166534; font-size: 13px; } .ig-estado a { margin-left: 8px; }

/* ---------- Buzón SOL (igual a la ventana del escritorio) ---------- */
.contenido:has(.bz) { padding: 0; background: #fff; }
.bz { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.bz-cab { background: #8B1E2D; color: #fff; padding: 6px 16px; display: flex; align-items: center; gap: 14px; }
.bz-cab b { font-size: 19px; } .bz-cab span { color: #F6D5DA; font-size: 13px; }
.bz-barra { background: #FBF3F4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 14px; font-size: 12.5px; }
.bz-barra label { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.bz-barra select { font: inherit; font-size: 12.5px; }
.bz-cuerpo { flex: 1; display: flex; gap: 12px; padding: 10px 12px; min-height: 0; }
.bz-izq { flex: 0 0 540px; display: flex; flex-direction: column; min-height: 0; }
.bz-izq .bz-t { color: #8B1E2D; font-size: 14px; } .bz-izq small { color: #6B7280; font-size: 11px; }
.bz-tn { display: flex; gap: 4px; margin: 4px 0; } .bz-tn button { background: #F3F4F6; border: 0; font-size: 11px; padding: 3px 8px; }
.bz-der { flex: 1; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.bz-fil { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; margin-bottom: 4px; }
.bz-fil select, .bz-fil input { font: inherit; font-size: 12.5px; padding: 2px 5px; border: 1px solid #D6CCCA; }
.bz-quien { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 2px 0 6px; color: #6B7280; font-size: 13px; }
.bz-quien b { color: #8B1E2D; font-size: 15px; }
.bz-caja { flex: 1; overflow: auto; border: 1px solid #E5E7EB; min-height: 120px; }
table.bz-tc, table.bz-tm { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; }
.bz-caja th { background: #F3F4F6; position: sticky; top: 0; padding: 5px 6px; text-align: left; z-index: 1; }
.bz-caja th.ord { cursor: pointer; } .bz-caja th.ult { background: #8B1E2D; color: #fff; text-align: center; }
.bz-caja td { padding: 4px 6px; border-bottom: 1px solid #F1F1F3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: default; }
.bz-caja .cen { text-align: center; }
table.bz-tc td.ult { background: #FBEAED; color: #8B1E2D; font-weight: 700; }
table.bz-tc .bz-vig { text-align: center; cursor: pointer; font-size: 15px; color: #8B1E2D; }
table.bz-tc tr.nuevo td { color: #8B1E2D; font-weight: 700; } table.bz-tc tr.error td { color: #B45309; }
table.bz-tc tr.off td { color: #9CA3AF; }
table.bz-tm tr.nuevo td { background: #FDECEE; color: #111827; font-weight: 700; } table.bz-tm tr.visto td { color: #4B5563; }
table.bz-tm tr.aviso td { color: #1D4E89; font-weight: 700; cursor: pointer; } table.bz-tm tr.err td { color: #B42318; font-weight: 700; }
table.bz-tm td.bz-pdfc { cursor: pointer; color: #1D4E89; }
.bz-caja tr.elegida td { background: #DBEAFE !important; }
.bz-ayuda { color: #6B7280; font-size: 11px; margin-top: 4px; }
.bz-log { max-height: 110px; overflow-y: auto; background: #F9FAFB; border: 1px solid #E5E7EB; font-family: Consolas, monospace; font-size: 11.5px; padding: 4px 8px; margin-top: 4px; }
.bz-ins { background: #B91C1C; color: #fff; border-radius: 9px; font-size: 11px; font-weight: 700; padding: 1px 6px; margin-left: 6px; }

/* ---------- Proveedores SSCO (igual a la ventana del escritorio) ---------- */
.contenido:has(.ss) { background: #fff; }
.ss { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.ss-tit { color: #B91C1C; font-family: Georgia, serif; font-size: 21px; margin: 0; }
.ss-info { color: #6B7280; font-size: 12.5px; margin: 2px 0 8px; }
.ss-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; font-size: 12.5px; }
.ss-barra input:not([type]), .ss-barra select { font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid #D6CCCA; }
.ss-barra label { display: inline-flex; align-items: center; gap: 4px; }
.ss-barra .ss-sep { margin-left: 16px; } .ss .btn { border-radius: 6px; }
.ss-caja { flex: 1; overflow: auto; border: 1px solid #E5E7EB; min-height: 200px; }
table.ss-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.ss-t th { background: #F3F4F6; position: sticky; top: 0; padding: 5px 6px; text-align: left; }
table.ss-t td { padding: 4px 6px; border-bottom: 1px solid #F1F1F3; }
table.ss-t tr.alerta td { background: #FECACA; color: #7F1D1D; } table.ss-t tr.aviso td { color: #B45309; }
.ss-lista { display: flex; flex-direction: column; max-height: 380px; overflow-y: auto; border: 1px solid #E5E7EB; padding: 4px 8px; font-size: 13px; }
.ss-lista label { padding: 2px 0; display: flex; gap: 6px; align-items: center; }

/* ---------------- Detracciones SPOT (igual a ventana_spot del escritorio) */
.sp { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.sp-tit { color: var(--guinda); font-family: Georgia, serif; font-size: 21px; margin: 0; }
.sp-ayuda { color: #6B7280; font-size: 12px; margin: 2px 0 8px; }
.sp-form { background: #FBF3F4; padding: 12px 18px; display: grid; grid-template-columns: auto auto 1fr; gap: 8px 30px; align-items: center; font-size: 12.5px; color: #111827; }
.sp-c4 { display: flex; align-items: center; gap: 6px; }
.sp-ancho { min-width: 380px; font: inherit; font-size: 12.5px; padding: 3px 6px; border: 1px solid #D6CCCA; background: #fff; }
.sp-ver { justify-self: start; display: inline-flex; gap: 6px; align-items: center; margin-left: 20px; }
.sp-fechas .sp-hasta { margin-left: 24px; }
.sp-ent { display: inline-flex; border: 1px solid #D6CCCA; background: #fff; }
.sp-ent input { border: 0; font: inherit; font-size: 13px; padding: 3px 6px; width: 96px; outline: none; }
.sp-ent input:disabled { background: #ECE7E8; color: #9CA3AF; }
.sp-calb { border: 0; border-left: 1px solid #E5E0E1; background: #fff; padding: 0 6px; cursor: pointer; font-size: 13px; }
.sp-gris { color: #6B7280; margin: 0 4px 0 8px; }
.sp-limpiar { color: var(--guinda); font-size: 11.5px; text-decoration: underline; cursor: pointer; margin-left: 10px; }
.sp-aviso { color: #6B7280; font-size: 11.5px; }
.sp-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 6px; }
.sp .btn { border-radius: 6px; }
.sp-estado { color: #6B7280; font-size: 12.5px; margin-left: 8px; }
.sp-caja { flex: 1; overflow: auto; border: 1px solid #E5E7EB; min-height: 200px; }
table.sp-t { border-collapse: collapse; font-size: 12px; }
table.sp-t th { background: #F3F4F6; position: sticky; top: 0; padding: 5px 6px; text-align: center; white-space: nowrap; z-index: 1; }
table.sp-t td { padding: 4px 8px; border-bottom: 1px solid #F1F1F3; line-height: 1.3; vertical-align: middle; }
table.sp-t tr.ok td { color: #15803D; }
table.sp-t tbody tr:hover td { background: #FBF6F7; }
table.sp-t th.sp-pdf { background: var(--guinda); color: #fff; position: sticky; right: 0; z-index: 2; }
table.sp-t td.sp-pdf { background: #FFF7E6; position: sticky; right: 0; text-align: center; white-space: nowrap; }
.sp-pdf-b { border: 1px solid #E2C88E; background: #fff; border-radius: 5px; padding: 3px 10px; font-size: 12px; cursor: pointer; color: #1F2937; }
.sp-pdf-b:hover { background: #FDEFD2; }
.sp-pdf-b.ok { color: #15803D; border-color: #86EFAC; }
.sp-pdf-b.err { color: #B91C1C; border-color: #FCA5A5; }
.sp-pie { text-align: right; color: var(--guinda); font-weight: 700; font-size: 13px; padding-top: 6px; min-height: 18px; }
.sp-cal-d { display: grid; grid-template-columns: repeat(7, 30px); gap: 2px; text-align: center; font-size: 12.5px; }
.sp-cal-d span { color: #6B7280; font-size: 11px; padding: 2px 0; }
.sp-cal-d button { background: #fff; border: 0; padding: 4px 0; color: #1F2937; cursor: pointer; }
.sp-cal-d button:hover { background: #E8F0FB; }
.sp-cal-d button.hoy { outline: 1px solid #0B63CE; }
.sp-cal-d button.sel { background: #0B63CE; color: #fff; font-weight: 700; }

/* portada: aviso discreto para ingresar (Enter / espacio / toque), como el escritorio */
.p-toque { position: absolute; left: 0; right: 0; bottom: 40px; text-align: center; color: rgba(255,255,255,.55); font-size: 12.5px; letter-spacing: .04em; pointer-events: none; }
.portada { cursor: default; -webkit-tap-highlight-color: transparent; }

/* ---------------- Ficha RUC · Reporte Tributario para Terceros (igual a PaginaTramite del escritorio) */
.trm { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.trm-tit { color: var(--guinda); font-family: Georgia, serif; font-size: 23px; margin: 0; }
.trm-desc { color: #6B7280; font-size: 12.5px; margin: 2px 0 10px; }
.trm-correo { display: flex; align-items: center; gap: 10px; background: #FBF3F4; border: 1px solid #E8B4BD; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
.trm-correo b { color: var(--guinda); } .trm-correo span { color: #111827; }
.trm-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; font-size: 12.5px; }
.trm .btn { border-radius: 6px; }
.trm-grabar { border: 1px solid var(--guinda); color: var(--guinda); background: #fff; }
.trm-caja { flex: 1; overflow: auto; border: 1px solid #E5E7EB; min-height: 200px; }
table.trm-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.trm-t th { background: #F3F4F6; position: sticky; top: 0; padding: 6px; text-align: left; z-index: 1; }
table.trm-t td { padding: 6px; border-bottom: 1px solid #F1F1F3; cursor: pointer; }
table.trm-t td.c { text-align: center; }
table.trm-t .trm-c { width: 48px; text-align: center; cursor: pointer; }
.trm-box { display: inline-flex; width: 16px; height: 16px; border: 1.5px solid #9CA3AF; border-radius: 3px; align-items: center; justify-content: center; font-size: 12px; color: #fff; background: #fff; vertical-align: middle; }
.trm-box.si { background: var(--guinda); border-color: var(--guinda); }
table.trm-t tr.marcado td { background: #FBF3F4; }
table.trm-t tr.ok td { color: #047857; } table.trm-t tr.err td { color: #B45309; }
table.trm-t tr.trab td { color: var(--guinda); font-weight: 700; }
.trm-pdf-b { border: 1px solid #E2C88E; background: #fff; border-radius: 5px; padding: 2px 10px; font-size: 12px; cursor: pointer; color: #1F2937; }
.trm-pdf-b:hover { background: #FDEFD2; }
.trm-pie { color: #6B7280; font-size: 11.5px; margin: 6px 0 0; }
.trm-form { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; font-size: 13px; }
.trm-form b { color: var(--guinda); } .trm-form small { color: #6B7280; }
.trm-form input { font: inherit; padding: 5px 8px; border: 1px solid #D6CCCA; border-radius: 4px; }

/* ingreso: «¿Olvidó su contraseña?» y «Registrar mi empresa» */
.f-extra { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 4px; }
.ingreso .f-extra button { background: none; border: 0; color: var(--rosa); font-size: 12.5px; padding: 2px 4px; text-decoration: underline; cursor: pointer; box-shadow: none; }
.ingreso .f-extra button:hover { background: none; color: #fff; }
.ingreso .f-extra #f-registro { margin-top: 6px; border: 1px solid rgba(255,255,255,.6); border-radius: 18px; padding: 6px 16px; text-decoration: none; color: #fff; font-weight: 600; }
.ingreso .f-extra #f-registro:hover { background: rgba(255,255,255,.12); }

/* pedidos de contraseña nueva (👥 Usuarios) */
.b-ico.con-n { position: relative; }
.b-ico.con-n::after { content: attr(data-n); position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; border-radius: 8px; background: #F59E0B; color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px; }
#u-olv { border: 2px solid #F59E0B; }
.u-olv-acc { white-space: nowrap; } .u-olv-acc .btn { margin: 2px 4px 2px 0; }
.u-olv-clave { margin-bottom: 4px; } .u-olv-clave b { font-family: Consolas, monospace; font-size: 15px; color: var(--guinda); letter-spacing: .04em; }

/* ---------------- Clientes (Administrar clientes + ficha Cliente del escritorio) */
.cla { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cla-tit { color: var(--guinda); font-size: 16px; margin: 0 0 4px; }
.cla .chk { font-size: 12.5px; margin-bottom: 8px; }
.cla-lista { flex: 1; overflow: auto; border: 1px solid #D6CCCA; background: #fff; min-height: 260px; outline: none; }
.cla-f { padding: 5px 10px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.cla-f:hover { background: #FBF6F7; }
.cla-f.sel { background: #FBF3F4; color: var(--guinda); font-weight: 600; }
.cla-falta { margin-left: 8px; font-size: 10.5px; color: #B45309; border: 1px solid #FCD34D; border-radius: 8px; padding: 0 6px; font-weight: 400; }
.cla-pie { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.cla .btn { border-radius: 6px; } .cla-n { color: #6B7280; font-size: 12px; }
.cf-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; font-size: 13px; }
.cf-grid input:not([type=checkbox]) { font: inherit; padding: 5px 8px; border: 1px solid #D6CCCA; border-radius: 4px; }
.cf-marcas { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.cf-ayuda { color: #6B7280; font-size: 11.5px; margin: 10px 0 4px; }
.cf-guia { color: var(--guinda); text-decoration: underline; cursor: pointer; font-size: 12.5px; }
.cg-tabla { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; background: #F9FAFB; border: 1px solid #E5E7EB; padding: 8px 10px; margin: 0 0 8px 22px; font-size: 13px; }
.cg-tabla span { color: #6B7280; }

/* ---------------- Configuración (igual a configuracion.Configuracion del escritorio) */
.cfg { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.cfg-tit { color: var(--guinda); font-family: Georgia, serif; font-size: 21px; margin: 0 0 6px; }
.cfg-tabs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-bottom: 1px solid #E7D3D7; padding-bottom: 8px; margin-bottom: 10px; }
.cfg-tab { background: #F7EEF0; color: var(--guinda); border: 0; font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 4px; cursor: pointer; }
.cfg-tab.on { background: var(--guinda); color: #fff; }
.cfg-pc { font-size: 12px; } .cfg-pc.ok { color: #15803D; } .cfg-pc.off { color: #B45309; }
.cfg-cuerpo { flex: 1; overflow: auto; padding-right: 8px; font-size: 13px; }
.cfg-h { color: var(--guinda); font-size: 15px; margin: 0 0 2px; }
.cfg-sub { color: #6B7280; font-size: 12px; margin: 0 0 8px; }
.cfg-linea { height: 1px; background: #E5E7EB; margin: 16px 0; }
.cfg-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; max-width: 720px; }
.cfg-grid b { color: var(--guinda); } .cfg-grid small { color: #6B7280; }
.cfg-cuerpo input:not([type=checkbox]):not([type=range]), .cfg-cuerpo select { font: inherit; padding: 4px 8px; border: 1px solid #D6CCCA; border-radius: 4px; }
.cfg-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0; }
.cfg-botones { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.cfg .btn { border-radius: 6px; }
.cfg-chk { display: flex; gap: 6px; margin: 3px 0; }
.cfg-estado { font-weight: 700; margin: 4px 0 6px; } .cfg-estado.ok { color: #15803D; } .cfg-estado.falta { color: #B45309; }
.cfg-nota { color: #6B7280; font-size: 12px; margin: 4px 0; }
.cfg-caja { border: 1px solid #E7D3D7; border-radius: 14px; padding: 12px 16px; margin: 10px 0; }
.cfg-conqr { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.cfg-caja-t { color: var(--guinda); font-size: 13px; }
.cfg-url { font-family: Consolas, monospace; font-weight: 700; color: var(--guinda); font-size: 15px; margin: 4px 0; }
.cfg-et { display: block; color: var(--guinda); font-size: 12px; margin: 12px 0 2px; }
.cfg-qr { width: 150px; height: 150px; image-rendering: pixelated; }
.cfg-sonido { font-size: 14px; color: #374151; }

/* «QUADRA para Chrome» en Entrar a SOL */
.sol-ext { background: #FFF7E6; border: 1px solid #E2C88E; border-radius: 8px; padding: 8px 12px; font-size: 13px; margin: 6px 0; }
.sol-ext a { color: var(--guinda); text-decoration: underline; cursor: pointer; margin-left: 6px; font-weight: 600; }
.sol-pasos { font-size: 13.5px; line-height: 1.7; padding-left: 22px; }
.sol-pasos .btn { margin-right: 6px; }

/* Configuración › Mis datos (empresa registrada) · Mis clientes (estudio) */
.md-grid { grid-template-columns: 220px minmax(240px, 420px); }
.md-grid .md-sub { color: var(--guinda); margin-top: 10px; }
.mcl-barra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; }
.mcl-cupo { font-weight: 700; color: var(--guinda); }
.mcl-cupo.lleno { color: #B45309; }

table.lista tr.mcl-f { cursor: pointer; } table.lista tr.mcl-f.sel td { background: #FBF3F4; }
.md-grid .cfg-fila input { flex: 1; min-width: 0; }
