/* Radar de Licitaciones, un producto de Elipgo.
   Herramienta de trabajo: densa, tablas primero, sin adornos. Paleta y tipografía de Elipgo.
   IBM Plex Sans para la interfaz, Sora solo para la marca y el título de la ficha,
   IBM Plex Mono solo para códigos (número de proceso, expediente, CUIT, código de ítem). */

:root {
  --navy: #0B1B2B;   --navy-2: #0E2740;  --navy-3: #1B3550;
  --verde: #14A05A;  --verde-claro: #2ED37E; --verde-texto: #0D7A43; --verde-fondo: #E7F5EE;
  --azul: #2F6FE0;   --azul-osc: #1F55B8;
  --tinta: #1E2A38;  --muted: #5B6B7C;   --tenue: #8696A7;
  --linea: #E2E8F0;  --linea-2: #CBD5E1;
  --panel: #F4F7FA;  --blanco: #FFFFFF;
  --ambar: #9A5B00;  --ambar-fondo: #FFF4E0;
  --rojo: #C0362C;   --rojo-fondo: #FDECEA;
  --f-ui: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-marca: "Sora", "IBM Plex Sans", system-ui, sans-serif;
  --f-cod: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --radio: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--blanco); color: var(--tinta); font: 14px/1.5 var(--f-ui); -webkit-text-size-adjust: 100%;
  min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; }
a { color: var(--azul); text-decoration: none; }
a:hover { color: var(--azul-osc); text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.3; color: var(--tinta); font-weight: 600; text-wrap: balance; }
h1 { font-size: 1.43rem; letter-spacing: -.005em; }
h2 { font-size: 1.07rem; }
h3 { font-size: .93rem; }
p { margin: .45rem 0; }
ul, ol { margin: .4rem 0; padding-left: 1.2rem; }
small, .sub { color: var(--muted); font-size: .9286rem; }
.tenue { color: var(--tenue); }
.cod { font-family: var(--f-cod); font-size: .9em; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.der { text-align: right; }
.nowrap { white-space: nowrap; }
.t-ok { color: var(--verde-texto); }
.t-warn { color: var(--ambar); }
.t-mal { color: var(--rojo); }
.t-muted { color: var(--muted); }
.oculto-movil { }
.cont { max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 760px) { .cont { padding-inline: 28px; } }
main.cont { padding-block: 1.4rem 3rem; }

/* ── barra superior ── */
.barra { background: var(--navy); color: #fff; }
.barra .cont { display: flex; align-items: center; gap: 0 1.6rem; min-height: 52px; }
.marca { display: inline-flex; align-items: center; gap: .5rem; color: #fff; flex: none; }
.marca:hover { color: #fff; text-decoration: none; }
.marca svg { width: 20px; height: 20px; color: var(--verde-claro); }
.marca span { font: 600 1.07rem/1 var(--f-marca); letter-spacing: -.01em; }
.barra nav { display: flex; gap: .2rem; min-width: 0; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.barra nav::-webkit-scrollbar { display: none; }
.barra nav a { color: #B7C4D3; padding: 0 .65rem; display: flex; align-items: center; white-space: nowrap;
  font-weight: 500; border-bottom: 2px solid transparent; border-top: 2px solid transparent; }
.barra nav a:hover { color: #fff; text-decoration: none; }
.barra nav a.activa { color: #fff; border-bottom-color: var(--verde-claro); }
.barra .quien { margin-left: auto; display: flex; gap: .8rem; align-items: center; color: #B7C4D3; font-size: .9286rem; min-width: 0; }
.barra .quien span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 24ch; }
.barra .quien form { margin: 0; }
.barra .quien button { background: transparent; color: #DCE4EE; border: 1px solid var(--navy-3); padding: .3rem .7rem;
  font-weight: 500; min-height: 0; }
.barra .quien button:hover { background: var(--navy-2); border-color: #2C4A6B; color: #fff; }
@media (max-width: 900px) {
  .barra .cont { flex-wrap: wrap; gap: 0 1rem; }
  .barra .marca { min-height: 48px; }
  .barra nav { order: 3; flex-basis: 100%; margin-inline: -.65rem; min-height: 40px; border-top: 1px solid var(--navy-3); }
  .barra .quien span { max-width: 16ch; }
}

/* ── pie ── */
.pie { border-top: 1px solid var(--linea); color: var(--muted); font-size: .8571rem; }
.pie .cont { display: flex; gap: .4rem 1.4rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-block: .9rem; }
.firma { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); }
.firma:hover { text-decoration: none; color: var(--tinta); }
.firma svg { width: 14px; height: 14px; color: var(--navy); }
.firma b { font: 600 .93rem/1 var(--f-marca); color: var(--navy); letter-spacing: -.01em; }
.firma b i { font-style: normal; color: var(--verde); }

/* ── cabecera de página ── */
.pag-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: .6rem 1.5rem; flex-wrap: wrap;
  margin-bottom: 1rem; }
.pag-cab > div { min-width: 0; }
.pag-cab p { margin: .25rem 0 0; color: var(--muted); }
.volver { display: inline-block; font-size: .9286rem; margin-bottom: .5rem; }

/* ── avisos ── */
.aviso { border-left: 3px solid var(--linea-2); background: var(--panel); padding: .55rem .8rem; margin: 0 0 1rem;
  border-radius: 0 var(--radio) var(--radio) 0; }
.aviso.ok { border-left-color: var(--verde); background: var(--verde-fondo); }
.aviso.warn { border-left-color: #D9921A; background: var(--ambar-fondo); }
.aviso.mal { border-left-color: var(--rojo); background: var(--rojo-fondo); }
.aviso ul { margin: .25rem 0 0; }

/* ── botones y formularios ── */
button, .boton { font: 500 .9286rem/1.2 var(--f-ui); display: inline-flex; align-items: center; justify-content: center;
  gap: .35rem; min-height: 34px; padding: .45rem .95rem; border-radius: var(--radio); border: 1px solid var(--verde);
  background: var(--verde); color: #fff; cursor: pointer; white-space: nowrap; text-decoration: none; }
button:hover, .boton:hover { background: #108A4D; border-color: #108A4D; color: #fff; text-decoration: none; }
button.sec, .boton.sec { background: #fff; color: var(--tinta); border-color: var(--linea-2); }
button.sec:hover, .boton.sec:hover { background: var(--panel); border-color: #A9B6C5; color: var(--tinta); }
button.peligro { background: #fff; color: var(--rojo); border-color: #E3A39D; }
button.peligro:hover { background: var(--rojo-fondo); color: var(--rojo); border-color: var(--rojo); }
button.chico, .boton.chico { min-height: 28px; padding: .25rem .65rem; font-size: .8571rem; }
button:disabled { opacity: .55; cursor: default; }
input, select, textarea { font: inherit; color: var(--tinta); background: #fff; border: 1px solid var(--linea-2);
  border-radius: var(--radio); padding: .4rem .6rem; min-height: 34px; width: 100%; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 2px #D5E2FA; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--verde); margin: 0; }
input[type=file] { padding: .3rem; }
textarea { resize: vertical; line-height: 1.45; }
.form { display: grid; gap: .85rem; }
.form > div:last-child { margin: 0; }
.campo { display: grid; gap: .3rem; min-width: 0; }
.campo > span:first-child, .campo > .etq { font-weight: 500; font-size: .9286rem; }
.campo .ayuda { color: var(--muted); font-size: .8571rem; }
.casilla { display: inline-flex; gap: .45rem; align-items: center; cursor: pointer; }
.casilla input { flex: none; }
.acciones { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.opciones { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .35rem 1rem; }
.opciones label { display: flex; gap: .45rem; align-items: flex-start; }
.opciones label input { margin-top: .25rem; }
.campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .85rem; }
details > summary { cursor: pointer; color: var(--azul); }
details > summary:hover { color: var(--azul-osc); }

/* ── secciones (sin tarjetas) ── */
.seccion { padding-top: 1.1rem; margin-top: 1.4rem; border-top: 1px solid var(--linea); }
.seccion:first-child { margin-top: 0; }
.seccion > h2, .seccion-cab { margin-bottom: .6rem; }
.seccion-cab { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; flex-wrap: wrap; }
.seccion-cab h2 { margin: 0; }
.seccion h3 { margin: 1rem 0 .4rem; }
.cuenta-n { color: var(--muted); font-weight: 400; }
.fuente { color: var(--muted); font-size: .8571rem; margin: .7rem 0 0; }
.vacio { color: var(--muted); margin: .3rem 0; }
.columnas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 2.5rem; }
@media (min-width: 1000px) { .columnas { grid-template-columns: minmax(0, 1fr) 340px; } }
.columnas-2 { display: grid; gap: 0 2.5rem; }
@media (min-width: 900px) { .columnas-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.lateral { background: var(--panel); border-radius: var(--radio); padding: 1rem 1.1rem; align-self: start; margin-top: 1.4rem; }
.lateral .seccion { border-color: var(--linea-2); }
@media (min-width: 1000px) { .lateral { margin-top: 0; } }

/* ── tablas ── */
.tabla-cont { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; font-size: .8571rem; color: var(--muted); background: var(--panel);
  padding: .45rem .7rem; border-bottom: 1px solid var(--linea-2); white-space: nowrap; }
td { padding: .6rem .7rem; border-bottom: 1px solid var(--linea); vertical-align: top; }
tbody tr:last-child td { border-bottom-color: var(--linea-2); }
th.der, td.der { text-align: right; }
.tabla-compacta td { padding: .4rem .7rem; }
.tabla-sin-cab td:first-child { padding-left: 0; }

/* ── lista de licitaciones ── */
.resumen-lista { color: var(--muted); margin: .25rem 0 0; }
.resumen-lista b { color: var(--tinta); font-weight: 600; }
.filtros { display: grid; grid-template-columns: minmax(14rem, 2.2fr) repeat(3, minmax(8rem, 1fr)) auto; gap: .6rem; align-items: end;
  padding: .75rem; background: var(--panel); border-radius: var(--radio) var(--radio) 0 0; border: 1px solid var(--linea);
  border-bottom: 0; }
.filtros .campo > span:first-child { font-size: .8571rem; color: var(--muted); font-weight: 400; }
.filtros .casilla { min-height: 34px; color: var(--muted); }
@media (max-width: 900px) { .filtros { grid-template-columns: 1fr 1fr; } .filtros .buscar { grid-column: 1 / -1; } }
.lista { border: 1px solid var(--linea); border-top: 0; }
.lista th:first-child, .lista td:first-child { padding-left: .9rem; }
.lista tbody tr:hover { background: #FAFBFD; }
.lista tbody tr:last-child td { border-bottom: 0; }
.lista .col-afin { width: 6.5rem; }
.lista .col-ap { width: 9.5rem; }
.lista .col-monto { width: 10rem; }
.lista .col-estado { width: 11rem; }
.titulo-proc { color: var(--tinta); font-weight: 600; }
.titulo-proc:hover { color: var(--azul); }
.meta { color: var(--muted); font-size: .8571rem; margin-top: .15rem; }
.meta span + span::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--tenue);
  margin: 0 .45rem; vertical-align: middle; }
.porque { color: var(--muted); font-size: .8571rem; margin-top: .15rem; overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.porque.descartada { color: var(--rojo); }
.afin { display: grid; gap: .25rem; width: 3.6rem; }
.afin b { font-size: 1.07rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.afin i { display: block; height: 4px; background: var(--linea); border-radius: 2px; overflow: hidden; }
.afin i::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--tenue); }
.afin.alta b { color: var(--verde-texto); } .afin.alta i::after { background: var(--verde); }
.afin.media b { color: var(--ambar); } .afin.media i::after { background: #D9921A; }
.afin.baja b { color: var(--muted); }
.fecha { white-space: nowrap; font-variant-numeric: tabular-nums; }
.plazo { display: block; font-size: .8571rem; color: var(--muted); white-space: nowrap; }
.plazo.urgente, .plazo.vencida { color: var(--rojo); font-weight: 500; }
.estado-pliego { font-size: .9286rem; }
.estado-pliego .sub { display: block; font-size: .8571rem; }
.paginar { margin: .8rem 0 0; }
.portales { color: var(--muted); font-size: .8571rem; margin-top: .7rem; }
.portales .pausada { color: var(--ambar); }
@media (max-width: 720px) {
  .filtros { border-radius: var(--radio); border-bottom: 1px solid var(--linea); margin-bottom: .6rem; }
  .lista { border: 0; }
  .lista thead { display: none; }
  .lista tbody tr { display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .15rem .8rem; padding: .8rem 0;
    border-bottom: 1px solid var(--linea); }
  .lista tbody tr:hover { background: none; }
  .lista td { padding: 0; border: 0; }
  .lista td:first-child { padding-left: 0; grid-row: span 4; }
  .lista td.c-ap, .lista td.c-monto, .lista td.c-estado { grid-column: 2; font-size: .9286rem; }
  .lista td.c-ap { margin-top: .35rem; }
  .lista td.c-ap .plazo { display: inline; margin-left: .4rem; }
  .lista td.c-monto:empty { display: none; }
  .lista .etq-m { color: var(--muted); }
  .lista .estado-pliego .sub { display: inline; }
}
@media (min-width: 721px) { .etq-m { display: none; } }

/* ── ficha ── */
.ficha-cab { padding-bottom: 1rem; border-bottom: 1px solid var(--linea); }
.ficha-cab .ruta { font-size: .9286rem; color: var(--muted); margin-bottom: .35rem; }
.ficha-cab h1 { font-family: var(--f-marca); font-weight: 600; font-size: 1.5rem; letter-spacing: -.015em; max-width: 60rem; }
.ficha-cab .organismo { color: var(--muted); margin: .3rem 0 0; }
.datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: .8rem 1.5rem; margin: 1rem 0 0; }
.datos div { min-width: 0; }
.datos dt { color: var(--muted); font-size: .8571rem; }
.datos dd { margin: .1rem 0 0; font-weight: 500; overflow-wrap: anywhere; }
.datos dd .plazo { font-weight: 400; }
.datos dd.cod { font-weight: 500; font-size: .9286rem; }
.ficha-acc { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.ficha-acc .estado-guardada { color: var(--muted); font-size: .9286rem; }
.ficha-cab .fuente { margin-top: .8rem; }
.estado-analisis { display: flex; gap: .5rem; align-items: baseline; flex-wrap: wrap; margin: 0 0 .6rem; }
.estado-analisis b { font-weight: 600; }
.estado-analisis .t-warn::before, .estado-analisis .t-ok::before, .estado-analisis .t-muted::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: .4rem;
  vertical-align: .08em; }
.resumen-ia { font-size: 1rem; line-height: 1.6; max-width: 48rem; margin: .2rem 0 .4rem; }
.liviano { color: var(--tinta); max-width: 48rem; }

.faltan { margin: .9rem 0 .3rem; }
.faltan b { font-weight: 600; }
.docs-pedidos td:first-child { width: 40%; }
.docs-pedidos .leg { white-space: nowrap; font-size: .9286rem; }
.docs-pedidos .detalle { color: var(--muted); font-size: .8571rem; }
.cita { color: var(--muted); font-size: .8571rem; margin: .25rem 0 0; padding-left: .6rem; border-left: 2px solid var(--linea-2); }
.cita a, .pag { white-space: nowrap; }
details.citas { margin-top: .2rem; font-size: .8571rem; }
details.citas summary { font-size: .8571rem; }

.riesgos { list-style: none; padding: 0; margin: 0; }
.riesgos li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--linea); }
.riesgos li:last-child { border-bottom: 0; }
.riesgos .sev { font-size: .8571rem; font-weight: 600; padding-top: .1rem; }
.riesgos .sev.alta { color: var(--rojo); } .riesgos .sev.media { color: var(--ambar); } .riesgos .sev.baja { color: var(--muted); }
.riesgos .sev.portal { color: var(--muted); font-weight: 400; }

.desglose td { vertical-align: middle; }
.desglose .barra-p { display: block; width: 6rem; height: 4px; background: var(--linea); border-radius: 2px; overflow: hidden; }
.desglose .barra-p::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--azul); }
.desglose tfoot td { font-weight: 600; border-bottom: 0; }
#fb { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .8rem; }

.lateral h2 { font-size: .9286rem; margin-bottom: .5rem; }
.lateral .seccion { margin-top: 1rem; padding-top: .9rem; }
.lateral .seccion:first-child { margin-top: 0; padding-top: 0; border: 0; }
.hitos { list-style: none; padding: 0; margin: 0; }
.hitos li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; font-size: .9286rem; }
.hitos li span:first-child { color: var(--muted); }
.hitos li.ap span { font-weight: 600; color: var(--tinta); }
.notas { margin-top: .8rem; }
.nota { padding: .55rem 0; border-top: 1px solid var(--linea-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.nota .sub { display: block; white-space: normal; font-size: .8571rem; }

.ref-cod { color: var(--muted); font-size: .8571rem; }
.ganadora { color: var(--verde-texto); font-size: .8571rem; font-weight: 500; white-space: nowrap; }

/* tablas que en celular se apilan */
@media (max-width: 640px) {
  .apilable thead { display: none; }
  .apilable tr { display: block; padding: .55rem 0; border-bottom: 1px solid var(--linea); }
  .apilable td { display: flex; justify-content: space-between; gap: 1rem; padding: .1rem 0; border: 0; text-align: right; }
  .apilable td::before { content: attr(data-label); color: var(--muted); text-align: left; font-size: .8571rem; }
  .apilable td.principal { display: block; text-align: left; padding-bottom: .2rem; overflow-wrap: anywhere; }
  .apilable td.principal::before { content: none; }
  .apilable td:empty { display: none; }
}

/* ── guardadas ── */
.estado-g { font-weight: 500; white-space: nowrap; }
.estado-g.presentada, .estado-g.ganada { color: var(--verde-texto); }
.estado-g.descartada, .estado-g.perdida { color: var(--muted); }
.estado-g.evaluando, .estado-g.preparando { color: var(--ambar); }

/* ── alertas ── */
.palabras { display: flex; flex-wrap: wrap; gap: .3rem; margin: .25rem 0; }
.palabras span { font-size: .8571rem; background: var(--panel); border: 1px solid var(--linea); border-radius: 3px; padding: 0 .4rem; }
.resultados { list-style: none; padding: 0; margin: 0; }
.resultados li { padding: .55rem 0; border-bottom: 1px solid var(--linea); }
.resultados li:last-child { border-bottom: 0; }
.resultados .cita { margin-top: .3rem; }

/* ── legajo ── */
.legajo select { min-width: 9rem; }
.legajo input[type=date] { min-width: 9.5rem; }
.legajo td { vertical-align: middle; }

/* ── admin ── */
.pestanas { display: flex; gap: .2rem; border-bottom: 1px solid var(--linea-2); margin: 0 0 1rem; overflow-x: auto; scrollbar-width: none; }
.pestanas a { padding: .5rem .7rem; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.pestanas a:hover { color: var(--tinta); text-decoration: none; }
.pestanas a.activa { color: var(--tinta); border-bottom-color: var(--verde); }
.indicadores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); border: 1px solid var(--linea);
  border-radius: var(--radio); margin-bottom: .4rem; }
.indicadores > div { padding: .7rem .9rem; border-right: 1px solid var(--linea); border-bottom: 1px solid var(--linea); margin: 0 -1px -1px 0; }
.indicadores dt { color: var(--muted); font-size: .8571rem; }
.indicadores dd { margin: .1rem 0 0; font-size: 1.07rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.indicadores .sub { font-size: .8571rem; display: block; }
.medidor { display: block; height: 4px; background: var(--linea); border-radius: 2px; overflow: hidden; margin-top: .35rem; }
.medidor::after { content: ""; display: block; height: 100%; width: var(--p); background: var(--azul); }
.estado-f { font-weight: 500; white-space: nowrap; }
.estado-f.ok { color: var(--verde-texto); } .estado-f.warn { color: var(--ambar); } .estado-f.mal { color: var(--rojo); }
.error-linea { color: var(--rojo); font-size: .9286rem; margin: .3rem 0; overflow-wrap: anywhere; }
.fuente-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem 1rem; flex-wrap: wrap; }
.fuente-cab .url { font-size: .8571rem; overflow-wrap: anywhere; }
.fuente-cab form { margin: 0; }

/* ── ayuda ── */
.ayuda-grid { display: grid; gap: 0 3rem; }
@media (min-width: 960px) { .ayuda-grid { grid-template-columns: 13rem minmax(0, 46rem); } }
.indice { font-size: .9286rem; }
.indice ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.indice a { color: var(--muted); display: block; padding: .15rem 0; }
.indice a:hover { color: var(--tinta); }
@media (min-width: 960px) { .indice { position: sticky; top: 1rem; align-self: start; padding-top: .2rem; } }
@media (max-width: 959px) { .indice { margin-bottom: .5rem; } .indice ol { grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); } }
.texto { line-height: 1.6; }
.texto .seccion { scroll-margin-top: 1rem; }
.texto dl { margin: .4rem 0; }
.texto dt { font-weight: 600; margin-top: .6rem; }
.texto dd { margin: .1rem 0 0; }
.texto table td { padding: .4rem .6rem .4rem 0; }
.texto table td:first-child { white-space: nowrap; }
.texto .seccion > h2 { margin-bottom: .4rem; }

/* ── entrar ── */
.entrar-pagina { min-height: calc(100vh - 8rem); display: grid; place-items: center; padding: 2rem 0; }
.entrar { width: min(100%, 24rem); }
.entrar .marca-entrar { display: flex; align-items: center; gap: .55rem; margin-bottom: 1.4rem; }
.entrar .marca-entrar svg { width: 24px; height: 24px; color: var(--verde); }
.entrar .marca-entrar span { font: 600 1.43rem/1 var(--f-marca); letter-spacing: -.015em; color: var(--navy); }
.entrar h1 { font-size: 1.14rem; margin-bottom: .3rem; }
.entrar .form { margin-top: 1rem; }
.entrar .pie-entrar { margin-top: 1.4rem; padding-top: .9rem; border-top: 1px solid var(--linea); color: var(--muted); font-size: .8571rem; }

/* indicador de HTMX */
.htmx-request button, button.htmx-request { opacity: .6; }
@media (max-width: 720px) { .lista td.sin-monto { display: none; } .lista td.c-monto { text-align: left; } }
@media (max-width: 720px) {
  .lista.guardadas tbody tr { grid-template-columns: minmax(0, 1fr); }
  .lista.guardadas td:first-child { grid-row: auto; }
  .lista.guardadas td.c-ap, .lista.guardadas td.c-estado { grid-column: 1; }
  .lista.guardadas td.c-ap { margin-top: 0; }
}
.marco { border: 1px solid var(--linea); border-radius: var(--radio); }
.marco tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .marco { border: 0; }
  .legajo.apilable td { align-items: center; }
  .legajo.apilable td select, .legajo.apilable td input { width: 11rem; flex: none; }
}
.meta .cod { white-space: nowrap; }
/* Jurisdicción en recuadro (03/11): nacional, capital y provincia/estado se distinguen de un vistazo; el nombre va siempre */
.jur { display: inline-block; padding: 0 .4rem; margin-right: .45rem; border: 1px solid var(--linea-2); border-radius: var(--radio);
  background: var(--panel); color: var(--tinta); font-size: .7857rem; font-weight: 600; line-height: 1.5; white-space: nowrap;
  vertical-align: baseline; }
.jur-nac { border-color: #B9CDF5; background: #EAF1FD; color: var(--azul-osc); }
.jur-cap { border-color: #A9DCC2; background: var(--verde-fondo); color: var(--verde-texto); }
.meta .jur + span::before { display: none; }
.organismo .jur { margin-right: .5rem; }
@media (max-width: 640px) {
  .apilable td.largo { display: block; text-align: left; }
  .apilable td.largo::before { display: block; }
}
@media (max-width: 640px) {
  .datos { grid-template-columns: 1fr 1fr; }
  .docs-pedidos td:first-child { width: auto; }
}
.columnas > .seccion, .columnas-2 > .seccion { margin-top: 0; }
@media (max-width: 899px) { .columnas-2 > .seccion + .seccion, .columnas-2 > div + .seccion { margin-top: 1.4rem; } }
@media (max-width: 640px) { .apilable td.principal { min-width: 0 !important; } .apilable td:not(.principal) { flex-wrap: wrap; } .apilable td:not(.principal) > div.sub { flex-basis: 100%; text-align: right; } }

/* Documento solo en el portal (ComprasMX): subir la copia */
.subir-doc { margin: 0; }
.subir-doc label { display: flex; flex-direction: column; gap: .25rem; white-space: normal; }
.subir-doc input[type=file] { max-width: 100%; font-size: .8rem; }

/* Selector de empresa en la barra (personas con acceso a varias empresas) */
.barra .quien .cambiar-empresa select { background: transparent; color: #DCE4EE; border: 1px solid var(--navy-3);
  width: auto; min-height: 30px; padding: .25rem .4rem; font-size: .9286rem; max-width: 26ch; text-overflow: ellipsis;
  cursor: pointer; }
.barra .quien .cambiar-empresa select:hover { background-color: var(--navy-2); border-color: #2C4A6B; color: #fff; }
.barra .quien .cambiar-empresa option { color: var(--tinta); background: #fff; }
@media (max-width: 760px) { .barra .quien .cambiar-empresa select { max-width: 16ch; } }
.elegir-empresa { display: grid; gap: .6rem; margin-top: 1rem; }
.elegir-empresa button { width: 100%; justify-content: space-between; }
.elegir-empresa button .sub { color: inherit; opacity: .75; }

/* vista previa de alertas: la búsqueda en los pliegos tarda unos segundos */
#vista-previa.htmx-request { opacity: .55; }
#vista-previa.htmx-request::before { content: "Buscando…"; display: block; color: var(--muted); font-size: .8571rem; margin-bottom: .4rem; }
