/* Estilos propios de Presupuestos y obras (la base visual viene de app.css, compartida con Contabilidad) */
:root {
  --e-cot: #00669e; --e-adj: #8a63b8; --e-eje: #1f7a4d; --e-ter: #5a6b7b; --e-no: #b42318;
}
[data-estado="Cotización"] { --e: var(--e-cot); --e-f: #e3f0f9; }
[data-estado="Adjudicado"] { --e: var(--e-adj); --e-f: #efe8f7; }
[data-estado="En ejecución"] { --e: var(--e-eje); --e-f: #e6f4ec; }
[data-estado="Terminado"] { --e: var(--e-ter); --e-f: #edf1f4; }
[data-estado="No adjudicado"] { --e: var(--e-no); --e-f: #fdecea; }
.chip.estado { background: var(--e-f); color: var(--e); }
.punto-estado { width: 10px; height: 10px; border-radius: 50%; background: var(--e); flex: none; display: inline-block; }
.chico-txt { font-size: 13px; }
.separa-chico { margin-top: 6px; }
kbd { font: 600 11px var(--ui); border: 1px solid var(--linea-2); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--tinta-2); background: #fff; }

/* barra: botón de búsqueda */
.buscar-btn { gap: 8px; color: var(--tinta-2); border: 1.5px solid var(--linea) !important; background: #fff !important; min-width: 170px; justify-content: flex-start; }
.buscar-btn span { flex: 1; text-align: left; font-weight: 500; }
@media (max-width: 760px) { .buscar-btn { min-width: 0; } .buscar-btn span, .buscar-btn kbd { display: none; } }

/* número de proyecto como sello */
.num-proy { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border-radius: 11px; background: var(--noche); color: #fff; font: 700 15px var(--serif); flex: none; }
.num-proy.grande { min-width: 64px; height: 64px; font-size: 22px; border-radius: 16px; }

/* inicio */
.recientes { display: grid; gap: 6px; }
.reciente { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; text-decoration: none; color: inherit; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; }
.reciente:hover { background: #f6fafd; border-color: var(--linea); transform: translateX(3px); }
.reciente .num-proy { min-width: 36px; height: 36px; font-size: 13px; border-radius: 9px; }
.r-txt { flex: 1; min-width: 0; display: grid; }
.r-txt b { color: var(--noche); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-txt small { color: var(--tinta-2); }
.ruta { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
.ruta li { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; position: relative; }
.ruta li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 36px; bottom: -6px; width: 2px; background: var(--linea); }
.ruta-n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #fff; border: 2px solid var(--linea); color: var(--tinta-2); font-weight: 700; font-size: 13px; position: relative; z-index: 1; }
.ruta li.listo .ruta-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.ruta li.sigue .ruta-n { border-color: var(--azul); color: var(--azul); box-shadow: 0 0 0 4px var(--marca-tinte); }
.ruta b { color: var(--noche); font-size: 14px; }
.ruta small { display: block; color: var(--tinta-2); font-size: 12.5px; line-height: 1.4; }
.ruta li:not(.listo):not(.sigue) b { color: var(--tinta-2); }

/* lista de proyectos */
.chips-filtro { display: flex; gap: 6px; flex-wrap: wrap; }
.chips-filtro button { border: 1.5px solid var(--linea); background: #fff; border-radius: 20px; padding: 5px 12px; font: 600 13px var(--ui); color: var(--tinta-2); cursor: pointer; }
.chips-filtro button span { background: var(--hielo); border-radius: 10px; padding: 0 7px; margin-left: 3px; font-size: 12px; }
.chips-filtro button.activo { border-color: var(--azul); color: var(--azul); background: var(--marca-tinte); }
.chips-filtro button:hover { border-color: var(--celeste); }
.filtros input[type=search] { flex: 1; min-width: 260px; max-width: 460px; }
.proyectos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.proy-tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 16px 18px 14px; text-decoration: none; color: inherit; display: grid; gap: 6px; position: relative; overflow: hidden; box-shadow: var(--sombra-chica); transition: transform .18s, box-shadow .18s, border-color .18s; }
.proy-tarjeta::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--e); }
.proy-tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: var(--celeste-claro); }
.proy-tarjeta b { font: 700 16.5px/1.3 var(--serif); color: var(--noche); }
.pt-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.pt-pie { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--tinta-3); border-top: 1px solid #edf2f7; padding-top: 9px; margin-top: 6px; }
.pt-pie span { display: inline-flex; align-items: center; gap: 5px; }
.pt-pie .icono { width: 14px; height: 14px; }

/* formulario de proyecto */
.rejilla-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.rejilla-form .ancho-total { grid-column: 1 / -1; }
.rejilla-form .corto { grid-column: span 1; }
@media (min-width: 700px) { .rejilla-form { grid-template-columns: 110px repeat(2, minmax(0, 1fr)); } .rejilla-form .largo { grid-column: span 2; } }
@media (max-width: 560px) { .rejilla-form { grid-template-columns: minmax(0, 1fr); } }

/* cabecera del proyecto */
.volver { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--tinta-2); margin-bottom: 12px; }
.volver:hover { color: var(--azul); }
.proy-cab { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; border-left: 5px solid var(--e); }
.pc-txt { flex: 1; min-width: 0; }
.pc-txt h1 { font-size: clamp(20px, 2.6vw, 27px); overflow-wrap: anywhere; }
.pc-acc { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.sel-estado { width: auto; min-height: 32px; height: 32px; padding: 2px 8px; font-weight: 600; color: var(--e); border-color: var(--e-f); background: var(--e-f); }
.pestanas button { display: inline-flex; align-items: center; gap: 7px; }
.pestanas button[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 760px) { .proy-cab { flex-wrap: wrap; } .pc-acc { justify-content: flex-start; } }

/* explorador */
.explorador { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.arbol { padding: 12px 10px; position: sticky; top: calc(var(--barra) + 14px); max-height: calc(100vh - var(--barra) - 40px); overflow: auto; }
.arbol-cab { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--celeste); font-weight: 700; padding: 0 8px 8px; }
.arbol ul { list-style: none; margin: 0; padding: 0; }
.arbol ul ul { padding-left: 14px; }
.arbol a { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 8px; text-decoration: none; color: var(--tinta); font-size: 13.5px; border: 1.5px dashed transparent; }
.arbol a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arbol a .icono { color: #d4a72c; fill: #f6dc8a; flex: none; }
.arbol a:hover { background: #f6fafd; }
.arbol a.activo { background: var(--marca-tinte); color: var(--azul); font-weight: 600; }
.panel-arch { padding: 14px 16px 16px; min-height: 420px; }
.arch-barra { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.migas { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: 14px; min-width: 0; }
.migas a { color: var(--azul); text-decoration: none; font-weight: 600; padding: 3px 6px; border-radius: 6px; border: 1.5px dashed transparent; }
.migas a:hover { background: var(--marca-tinte); }
.migas span { font-weight: 700; color: var(--noche); padding: 3px 6px; }
.migas i { color: var(--tinta-3); font-style: normal; }
.sel-barra { display: flex; gap: 8px; align-items: center; background: var(--marca-tinte); border-radius: 10px; padding: 6px 10px; margin-bottom: 10px; flex-wrap: wrap; animation: subir .2s ease; }
.sel-barra span { font-weight: 700; color: var(--azul); margin-right: auto; font-size: 13.5px; }
.zona-arch { position: relative; border-radius: 12px; min-height: 320px; }
.soltar-aqui { position: absolute; inset: 0; border: 3px dashed var(--azul); border-radius: 12px; background: rgba(227, 240, 249, .92); display: none; place-items: center; text-align: center; color: var(--azul); pointer-events: none; z-index: 3; }
.soltar-aqui div { display: grid; gap: 4px; justify-items: center; }
.soltar-aqui .icono { width: 42px; height: 42px; animation: flotar 1s ease-in-out infinite alternate; }
.soltar-aqui b { font: 700 19px var(--serif); }
@keyframes flotar { to { transform: translateY(-6px); } }
.zona-arch.encima .soltar-aqui { display: grid; }
.tabla-arch { font-size: 14px; }
.tabla-arch th { position: static; }
.tabla-arch td { vertical-align: middle; padding: 5px 10px; }
.tabla-arch .c-sel { width: 34px; }
.tabla-arch .c-acc { width: 44px; text-align: right; }
.tabla-arch tr[draggable] { cursor: grab; }
.nombre-arch { display: flex; align-items: center; gap: 10px; border: none; background: none; padding: 4px 0; cursor: pointer; text-align: left; color: var(--noche); font-weight: 500; max-width: 100%; }
.nombre-arch span:last-child { overflow-wrap: anywhere; }
.nombre-arch:hover span:last-child { color: var(--azul); text-decoration: underline; }
.es-carpeta .nombre-arch { font-weight: 600; }
.ic-carpeta .icono { width: 26px; height: 26px; color: #d4a72c; fill: #f6dc8a; stroke-width: 1.6; }
.ic-tipo { width: 26px; height: 30px; border-radius: 4px 9px 4px 4px; display: grid; place-items: end center; padding-bottom: 3px; font: 800 8.5px var(--ui); color: #fff; flex: none; letter-spacing: .02em; }
.ic-tipo.pdf { background: #d14b3f; } .ic-tipo.xls { background: #1f7a4d; } .ic-tipo.doc { background: #2b5fb4; }
.ic-tipo.img { background: #8a63b8; } .ic-tipo.cad { background: #c9862a; } .ic-tipo.zip { background: #5a6b7b; } .ic-tipo.otro { background: #7d8c99; }
.destino-on { background: var(--marca-tinte) !important; border-color: var(--azul) !important; outline: 2px dashed var(--azul); outline-offset: -2px; }
tr.destino-on td { background: var(--marca-tinte) !important; }
@media (max-width: 980px) { .explorador { grid-template-columns: minmax(0, 1fr); } .arbol { position: static; max-height: 260px; } }
@media (max-width: 640px) { .tabla-arch th:nth-child(4), .tabla-arch td:nth-child(4) { display: none; } }

/* menú flotante de acciones */
.menu-flot { position: absolute; z-index: 60; background: #fff; border-radius: 12px; box-shadow: var(--sombra); border: 1px solid var(--linea); padding: 6px; min-width: 200px; display: grid; animation: subir .15s ease; }
.menu-flot button { display: flex; gap: 10px; align-items: center; border: none; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; color: var(--noche); }
.menu-flot button:hover { background: var(--hielo); }
.menu-flot button.peligro { color: var(--peligro); }
.menu-flot hr { border: none; border-top: 1px solid var(--linea); margin: 4px 2px; }
.lista-destinos { display: grid; max-height: 50vh; overflow: auto; border: 1px solid var(--linea); border-radius: 10px; padding: 4px; }
.lista-destinos button { display: flex; gap: 8px; align-items: center; border: none; background: none; padding: 8px 12px; text-align: left; border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--noche); }
.lista-destinos button:hover { background: var(--marca-tinte); }
.lista-destinos .icono { color: #d4a72c; fill: #f6dc8a; }

/* panel de subidas */
.subidas { position: fixed; right: 22px; bottom: 22px; width: min(380px, calc(100vw - 32px)); max-height: 46vh; background: #fff; border-radius: 14px; border-top: 4px solid var(--azul); box-shadow: var(--sombra); z-index: 50; display: flex; flex-direction: column; animation: subir .25s ease; }
.sub-cab { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--linea); }
.sub-cab b { font-family: var(--serif); color: var(--noche); }
.sub-lista { overflow: auto; padding: 6px 14px 12px; display: grid; gap: 8px; }
.sub-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 13px; }
.sub-nombre { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sub-fila .medidor { grid-column: 1 / -1; height: 6px; }
.sub-fila.ok .medidor i { background: var(--ok); }
.sub-fila.ok .sub-estado { color: var(--ok); }
.sub-fila.error .medidor i { background: var(--peligro); width: 100% !important; }
.sub-fila.error .sub-estado { color: var(--peligro); }

/* visor de archivos */
.dialogo-visor { width: min(1100px, calc(100vw - 32px)); height: calc(100vh - 40px); }
.visor { display: flex; flex-direction: column; height: 100%; }
.visor-cab { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--linea); }
.visor-cab b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--noche); }
.visor iframe { flex: 1; border: none; width: 100%; background: #525659; }
.visor-img { flex: 1; display: grid; place-items: center; background: #1d2b38; overflow: auto; }
.visor-img img { max-width: 100%; max-height: calc(100vh - 110px); }

/* búsqueda rápida */
.paleta-dialogo { width: min(620px, calc(100vw - 32px)); margin-top: 12vh; border-top-width: 0; }
.paleta input { border: none; border-bottom: 1px solid var(--linea); border-radius: 0; font-size: 17px; padding: 18px 20px; min-height: 60px; }
.paleta input:focus { box-shadow: none; }
.paleta-lista { max-height: 50vh; overflow: auto; padding: 6px; display: grid; }
.paleta-lista a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--tinta); }
.paleta-lista a span { display: grid; min-width: 0; }
.paleta-lista a b { color: var(--noche); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paleta-lista a small { color: var(--tinta-2); }
.paleta-lista a.sel, .paleta-lista a:hover { background: var(--marca-tinte); }
.paleta-lista .icono { color: var(--azul); }
.paleta-pie { border-top: 1px solid var(--linea); padding: 8px 16px; font-size: 12px; color: var(--tinta-3); display: flex; gap: 4px; align-items: center; }

/* próximas etapas */
.proxima { text-align: center; padding: 36px 24px; display: grid; gap: 10px; justify-items: center; max-width: 720px; margin: 0 auto; }
.prox-ic { font-size: 46px; animation: flotar 1.6s ease-in-out infinite alternate; }
.prox-lista { text-align: left; display: grid; gap: 8px; margin: 6px 0 0; padding-left: 20px; }

/* ajustes */
.ajustes-menu a { justify-content: flex-start; }
.ajustes-menu a.activo { background: #fff; color: var(--azul); box-shadow: var(--sombra-chica); }
.carpetas-txt { font-family: var(--ui); line-height: 1.7; }
.alerta b { color: var(--noche); }

/* ===================== etapa 2: APU y presupuestos ===================== */
.pestanas a { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; font-weight: 600; color: var(--tinta-2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1.5px; }
.pestanas a:hover { color: var(--noche); }
.pestanas a.activa { color: var(--azul); border-bottom-color: var(--azul); }
.d-block { display: block; }
.fuerte { font-weight: 700; color: var(--noche); }
.azul { color: var(--azul); }
.marca { color: var(--alerta); font-weight: 700; }
.enlace-chico { background: none; border: none; color: var(--azul); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.paleta-grupo { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--celeste); font-weight: 700; padding: 10px 12px 4px; }
.sec-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.sec-cab h3, .sec-cab h2 { display: flex; align-items: center; gap: 8px; }
.sub { color: var(--tinta-2); font-size: 13.5px; margin-bottom: 10px; }

/* tarjetas de plantillas */
.grupo-tit { margin: 22px 0 10px; font-size: 17px; }
.plantillas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pl-tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: 14px; box-shadow: var(--sombra-chica); display: flex; flex-direction: column; overflow: hidden; transition: transform .18s, box-shadow .18s, border-color .18s; }
.pl-tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra); border-color: var(--celeste-claro); }
.pl-cuerpo { padding: 14px 16px 10px; display: grid; gap: 6px; text-decoration: none; color: inherit; flex: 1; }
.pl-cod { font-size: 12px; font-weight: 700; color: var(--celeste); letter-spacing: .06em; }
.pl-cuerpo b { font: 700 15.5px/1.3 var(--serif); color: var(--noche); }
.pl-pu { font-size: 22px; font-weight: 700; color: var(--noche); font-variant-numeric: tabular-nums; }
.pl-pu small { font-size: 13px; color: var(--tinta-2); font-weight: 600; }
.pl-barra, .barra-apilada { display: flex; height: 8px; border-radius: 5px; overflow: hidden; background: var(--hielo); }
.pl-barra i, .barra-apilada i { display: block; height: 100%; transition: width .4s; }
.pl-acc { display: flex; justify-content: flex-end; gap: 2px; padding: 4px 8px; border-top: 1px solid #edf2f7; }

/* editor de APU */
.apu-editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.apu-form { display: grid; gap: 16px; min-width: 0; }
.apu-sec h3 { margin-bottom: 8px; }
.apu-datos { display: grid; grid-template-columns: 110px minmax(0, 2fr) minmax(0, 1fr) 110px 170px; gap: 12px; align-items: end; }
.apu-tabla { font-size: 13.5px; }
.apu-tabla th { position: static; }
.apu-tabla td { vertical-align: middle; padding: 5px 8px; }
.apu-tabla td.c, .apu-tabla th.c { text-align: center; }
.apu-tabla input[type=text] { min-height: 32px; padding: 4px 8px; font-size: 13.5px; }
.apu-tabla input.corto { width: 70px; }
input.in-num { width: 92px; min-height: 32px !important; padding: 4px 8px !important; text-align: right; font-size: 13.5px !important; }
input.in-num.corto { width: 66px; }
.in-unidad { display: inline-flex; align-items: center; gap: 5px; }
.in-unidad small { color: var(--tinta-2); white-space: nowrap; }
.item-btn { border: none; background: none; padding: 0; text-align: left; color: var(--noche); font-weight: 600; cursor: pointer; font-size: 13.5px; }
.item-btn:hover { color: var(--azul); text-decoration: underline; }
.apu-resumen { position: sticky; top: calc(var(--barra) + 14px); display: grid; gap: 12px; border-top: 4px solid var(--azul); }
.pu-grande { font: 700 32px var(--ui); color: var(--noche); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pu-grande small { font-size: 15px; color: var(--tinta-2); }
.resumen-lista, .mo-split { display: grid; gap: 5px; font-size: 13.5px; }
.resumen-lista div { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: center; }
.resumen-lista i { width: 12px; height: 12px; border-radius: 3px; }
.mo-split { background: var(--hielo); border-radius: 10px; padding: 10px 12px; }
.mo-split .sub { margin: 0 0 2px; font-size: 12.5px; }
.mo-split div, .dato-res { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.dato-res b { color: var(--noche); }
.nota-res { font-size: 12.5px; color: var(--tinta-2); }
.pu-ajustado { display: grid; gap: 2px; border: 1.5px solid var(--linea); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.pu-ajustado b { font-size: 19px; color: var(--noche); }
.pu-ajustado.alerta-on { border-color: #f0dca0; background: var(--resaltador-suave); }
.pu-ajustado.alerta-on b { color: var(--alerta); }
.alerta .icono { width: 18px; height: 18px; flex: none; color: var(--alerta); }
.campo-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--noche); }
@media (max-width: 1100px) { .apu-editor { grid-template-columns: minmax(0, 1fr); } .apu-resumen { position: static; } .apu-datos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .apu-datos .ancho2 { grid-column: 1 / -1; } }
@media (max-width: 760px) { .apu-sec { overflow-x: auto; } .apu-tabla { min-width: 620px; } }

/* bases de datos */
.base-tabla { max-height: 64vh; }
.base-tabla input.largo { min-width: 240px; }
.base-tabla input.medio { min-width: 140px; }
.base-tabla input.muy-corto { width: 60px; min-width: 60px; }
.base-tabla input.num-corto { width: 84px; min-width: 84px; text-align: right; }
.base-tabla input.num-medio { width: 112px; min-width: 112px; text-align: right; }
.base-tabla input:disabled { background: var(--hielo); color: var(--tinta-3); border-color: transparent; }
.barra-guardar { position: sticky; bottom: 16px; margin-top: 12px; display: flex; gap: 10px; align-items: center; background: var(--noche); color: #fff; padding: 10px 14px; border-radius: 12px; box-shadow: var(--sombra); z-index: 5; animation: subir .2s ease; }
.barra-guardar span { flex: 1; font-weight: 600; }
.mo-param .rejilla { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* presupuesto del proyecto */
.tabla-pres td { vertical-align: middle; }
.tabla-pres th { position: static; }
.enlace-partida { font-weight: 600; color: var(--noche); text-decoration: none; }
.enlace-partida:hover { color: var(--azul); text-decoration: underline; }
.acc-partida { white-space: nowrap; text-align: right; }
.acc-partida .btn { padding: 0 7px; }
.pu-alerta { display: inline-flex; align-items: center; gap: 5px; color: var(--alerta); font-weight: 700; background: var(--resaltador-suave); border-radius: 8px; padding: 2px 8px; }
.pu-alerta .icono { width: 14px; height: 14px; }
.opciones-pres { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 24px; margin-top: 14px; }
.opciones-pres .icono { width: 14px; height: 14px; vertical-align: -2px; }
.rec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rec-grid > div { min-width: 0; overflow-x: auto; }
.rec-grid .rec-mat { grid-column: 1 / -1; }
.rec-grid h3 { margin-bottom: 6px; }
@media (max-width: 900px) { .rec-grid { grid-template-columns: minmax(0, 1fr); } }
.rec-grid .tabla { font-size: 13px; }
.rec-grid .tabla th { position: static; }
@media print { .impresion .salto { page-break-before: always; } }
.base-tabla select { min-width: 132px; min-height: 32px; padding: 4px 7px; font-size: 13px; }

.tabla-desliza { overflow-x: auto; max-width: 100%; }
.apu-editor > * { min-width: 0; }
.apu-form { grid-template-columns: minmax(0, 1fr); }
.apu-form > * { min-width: 0; }

/* Etapa 3-4: valorizado, gastos generales, carátula, equipos propios */
input.in-num.pct { width: 64px; }
.car-lista { margin-top: 16px; }
.car-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; align-items: start; margin: 6px 0; }
.car-item textarea { width: 100%; resize: vertical; font: inherit; padding: 6px 8px; border: 1px solid var(--linea, #c3d3e0); border-radius: 8px; }
.car-n { font-weight: 700; color: var(--azul); text-align: right; padding-top: 7px; }
.car-acc { display: flex; gap: 2px; }
.carga-eq { margin-top: 4px; font-size: 12.5px; }
.carga-eq select { font-size: 12.5px; padding: 2px 4px; }
.mini-barra { display: block; height: 5px; background: var(--hielo, #eef4f9); border-radius: 3px; margin-top: 3px; overflow: hidden; min-width: 90px; }
.mini-barra i { display: block; height: 100%; background: var(--azul); }
.res-precios { max-height: 46vh; overflow: auto; margin: 10px 0; }
#impresion .datos-oferta { width: 100%; margin: 6px 0 14px; font-size: 12px; }
#impresion .datos-oferta td { padding: 2px 6px; vertical-align: top; }
#impresion .incluye { font-size: 11px; color: #0070c0; }
#impresion .rojo-tit { color: #c00000; text-align: center; margin-top: 18px; }
#impresion .clausulas { font-size: 11.5px; padding-left: 22px; }
#impresion .clausulas li { margin: 3px 0; }
#impresion .firma { margin: 40px 0 0 auto; width: 300px; text-align: center; border-top: 1px solid #333; padding-top: 6px; font-size: 12px; }
.gg-card input[data-g="nombre"] { width: 100%; min-width: 220px; }
.gg-card input[data-g="unidad"] { width: 72px; }
.tabla-pres td:nth-child(2) { min-width: 180px; }

/* Etapa 5: carta Gantt */
.gantt { display: grid; grid-template-columns: auto minmax(0, 1fr); border: 1px solid #d5e0ea; border-radius: 10px; overflow: hidden; margin-top: 12px; background: #fff; }
.g-tabla { overflow-x: auto; border-right: 2px solid #c3d3e0; max-width: 58vw; }
.g-graf { overflow-x: auto; }
.g-t { margin: 0; white-space: nowrap; }
.g-t th, .g-t td { padding: 0 6px; vertical-align: middle; font-size: 12.5px; }
.g-t thead th { vertical-align: bottom; padding-bottom: 6px; }
.g-t input { border: 1px solid transparent; background: transparent; padding: 3px 4px; border-radius: 5px; font: inherit; }
.g-t input:hover, .g-t input:focus { border-color: #c3d3e0; background: #fff; }
.g-t input[data-c="nombre"] { width: 240px; }
.g-t input.g-pred { width: 82px; }
.g-t input.in-num { width: 58px; }
.g-t tr.critica td:nth-child(2) input { color: #c0392b; font-weight: 600; }
.g-manual { color: #d98a00; font-style: normal; font-size: 11px; margin-left: 2px; }
.g-acc { white-space: nowrap; }
.g-svg { display: block; font-family: 'Segoe UI', Arial, sans-serif; }
.g-finde { fill: #eef2f6; }
.g-linea { stroke: #edf1f5; }
.g-linea2 { stroke: #c3d3e0; }
.g-sem { stroke: #dde6ee; }
.g-mes { fill: #0b2a4a; stroke: #fff; }
.g-mes-t { fill: #fff; font-size: 11px; font-weight: 600; }
.g-dia { fill: #5a6b7b; font-size: 10px; text-anchor: middle; }
.g-barra { fill: #4398c8; }
.g-crit { fill: #c0392b; }
.g-av { fill: #0b2a4a; opacity: .75; }
.g-hito { fill: #c0392b; }
.g-et { fill: #5a6b7b; font-size: 10.5px; }
.g-flecha { fill: none; stroke: #7b8a99; stroke-width: 1.2; }
.g-punta { fill: #7b8a99; }
.g-hoy { stroke: #d98a00; stroke-width: 1.5; stroke-dasharray: 4 3; }
.g-hoy-t { fill: #d98a00; font-size: 10px; }
.gantt-opc { margin-top: 6px; }
@media (max-width: 900px) { .gantt { grid-template-columns: minmax(0, 1fr); } .g-tabla { max-width: none; border-right: 0; } }
#impresion .gantt-print { font-family: 'Segoe UI', Arial, sans-serif; color: #111; }
#impresion .gp-cab { display: flex; gap: 14px; align-items: center; border-bottom: 3px solid #00669e; padding-bottom: 6px; margin-bottom: 8px; font-size: 11px; }
#impresion .gp-cab img { height: 54px; }
#impresion .gp-cab h1 { font-family: 'Book Antiqua', serif; font-size: 20px; margin: 0; color: #0b2a4a; }
#impresion .gp-ley { margin-left: auto; font-size: 10px; display: flex; gap: 6px; align-items: center; }
#impresion .gp-ley span { display: inline-block; width: 18px; height: 8px; border-radius: 2px; }
#impresion .l-crit { background: #c0392b; } #impresion .l-barra { background: #4398c8; } #impresion .l-av { background: #0b2a4a; }
#impresion .gantt.gp { border: 1px solid #ccc; border-radius: 0; grid-template-columns: auto auto; }
#impresion .g-pt { border-collapse: collapse; font-size: 9.5px; }
#impresion .g-pt th { background: #0b2a4a; color: #fff; text-align: left; padding: 0 5px 4px; vertical-align: bottom; }
#impresion .g-pt td { padding: 0 5px; border-bottom: 1px solid #eee; white-space: nowrap; max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
#impresion .g-pt tr.critica td:nth-child(2) { color: #c0392b; font-weight: 600; }
#impresion .gp-pie { font-size: 9px; color: #666; margin-top: 6px; }
#impresion .g-svg * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* Etapa 6: control de obra */
.c-svg { width: 100%; height: auto; display: block; font-family: 'Segoe UI', Arial, sans-serif; }
.c-grid { stroke: #e6edf3; }
.c-cero { stroke: #5a6b7b; stroke-width: 1; }
.c-ey { fill: #5a6b7b; font-size: 11px; text-anchor: end; }
.c-ex { fill: #5a6b7b; font-size: 11px; text-anchor: middle; }
.c-linea { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.c-marca { stroke: #d98a00; stroke-dasharray: 4 3; }
.c-marca-t { fill: #d98a00; font-size: 11px; }
.c-ley { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #5a6b7b; margin-top: 4px; }
.c-ley i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.c-resumen { margin-top: 10px; font-size: 13px; color: #33475b; background: var(--hielo, #eef4f9); border-radius: 8px; padding: 8px 12px; }
.uso { display: inline-block; width: 60px; height: 6px; background: #e6edf3; border-radius: 3px; margin-right: 6px; vertical-align: middle; overflow: hidden; }
.uso i { display: block; height: 100%; background: #4398c8; } .uso.rojo i { background: #c0392b; }
.rojo-txt { color: #c0392b; font-weight: 600; } .verde-txt { color: #2e7d32; font-weight: 600; }
.aviso-linea { background: #fff4e0; border-left: 4px solid #d98a00; padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.gasto-form { display: grid; grid-template-columns: 140px 150px minmax(140px, 1fr) minmax(180px, 2fr) 110px 130px auto; gap: 8px; align-items: center; }
.gasto-form input, .gasto-form select { font: inherit; padding: 7px 8px; border: 1px solid #c3d3e0; border-radius: 8px; min-width: 0; }
.gasto-form input.in-num { width: auto; }
@media (max-width: 1000px) { .gasto-form { grid-template-columns: 1fr 1fr; } }

/* Balance de obra */
.bal-cat { margin: 18px 0 6px; display: flex; justify-content: space-between; font-size: 15px; }
.bal-tabla tr.destacada td { background: #eef4f9; font-weight: 600; }
.bal-tabla tr.total td { background: #0b2a4a; color: #fff; font-weight: 700; }
.bal-tabla tr.total td.rojo-txt, .bal-tabla tr.total td.verde-txt { color: #fff; }

/* Carta Gantt: tabla arriba, gráfico abajo con nombres fijos; PDF por páginas */
.gantt { display: block; border: 0; background: transparent; overflow: visible; }
.g-tabla { max-width: none; border: 1px solid #d5e0ea; border-radius: 10px; overflow-x: auto; background: #fff; }
.g-graf { margin-top: 14px; border: 1px solid #d5e0ea; border-radius: 10px; background: #fff; overflow: hidden; }
.g-scroll { display: grid; overflow-x: auto; }
.g-scroll > * { grid-area: 1 / 1; }
.g-fijo { position: sticky; left: 0; z-index: 2; overflow: hidden; background: #fff; box-shadow: 2px 0 4px rgba(11,42,74,.08); }
.g-etq-fondo { fill: #fff; }
.g-etq-cab { font-size: 11px; font-weight: 700; fill: #0b2a4a; }
.g-etq-n { font-size: 11px; fill: #5a6b7b; }
.g-etq-t { font-size: 11.5px; fill: #1d2b38; } .g-etq-t.crit { fill: #c0392b; font-weight: 600; }
.g-t input[data-c="dur"] { width: 72px; }
.gantt-opc select[data-hoja] { font: inherit; padding: 7px 8px; border: 1px solid #c3d3e0; border-radius: 8px; }
#impresion .gp-pag { break-after: page; }
#impresion .gp-pag:last-child { break-after: auto; }
#impresion .g-pt { width: 100%; }
#impresion .g-pt td { max-width: 330px; }
#impresion .gp-graf { border: 1px solid #ccc; }
#impresion .gp-graf .g-svg { width: 100%; height: auto; }
#impresion .gp-nota { font-size: 9.5px; color: #555; margin-top: 8px; }

/* Ventana «Gasto ejecutado»: dos columnas parejas, cada campo dentro de su celda */
.form-gasto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form-gasto .campo { min-width: 0; }
.form-gasto .campo input, .form-gasto .campo select { width: 100%; min-width: 0; box-sizing: border-box; }
.form-gasto .largo { grid-column: 1 / -1; }
.form-gasto input[type="file"] { border: 0; padding: 4px 0; }
@media (max-width: 560px) { .form-gasto { grid-template-columns: minmax(0, 1fr); } }

/* ---------- PDF del presupuesto, estilo B ---------- */
#impresion .cb { font-family: 'Segoe UI', Arial, sans-serif; color: #1d2b3a; font-size: 11.5px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#impresion .cb-franja { position: fixed; left: 0; top: 0; width: 2in; height: 100%; box-sizing: border-box; border-radius: 12px; background: linear-gradient(170deg, #0b2a4a 0%, #0d3d66 60%, #00669e 100%); color: #fff; padding: .4in .22in .4in; display: flex; flex-direction: column; overflow: hidden; }
#impresion .cb-franja svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#impresion .cb-logo { position: relative; background: #fff; border-radius: 10px; padding: 10px; }
#impresion .cb-logo img { width: 100%; display: block; }
#impresion .cb-lema { position: relative; margin-top: .35in; font-size: 13px; line-height: 1.5; color: #cfe3f2; border-left: 3px solid #4398c8; padding-left: 10px; }
#impresion .cb-cont { position: relative; margin-top: auto; font-size: 11px; line-height: 1.7; color: #cfe3f2; }
#impresion .cb-cuerpo { margin-left: 2in; padding: 0 .5in 0 .35in; }
#impresion .cb-etq { font-size: 12px; letter-spacing: 3px; color: #4398c8; font-weight: 700; }
#impresion .cb h1 { font-size: 30px; color: #0b2a4a; line-height: 1.15; margin: .08in 0 .06in; font-weight: 800; }
#impresion .cb-cli { font-size: 13px; color: #5a6b7c; margin-bottom: .3in; line-height: 1.5; }
#impresion .cb-tarj { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 12px; margin-bottom: .3in; }
#impresion .cb-t { border-radius: 10px; padding: 12px 14px; background: #eef4f9; border-top: 4px solid #4398c8; }
#impresion .cb-t small { display: block; font-size: 10.5px; letter-spacing: 1.5px; color: #00669e; font-weight: 700; }
#impresion .cb-t b { display: block; font-size: 18px; color: #0b2a4a; margin-top: 6px; white-space: nowrap; }
#impresion .cb-t i { font-style: normal; font-size: 11px; color: #5a6b7c; }
#impresion .cb-t.tot { background: #0b2a4a; }
#impresion .cb-t.tot small { color: #9cc8e6; } #impresion .cb-t.tot b { color: #fff; font-size: 23px; } #impresion .cb-t.tot i { color: #cfe3f2; }
#impresion .cb-uf { font-size: 11px; color: #00669e; margin: -.18in 0 .2in; }
#impresion .cb h3 { font-size: 14px; color: #0b2a4a; margin: .25in 0 .1in; letter-spacing: 1px; break-after: avoid; }
#impresion .cb-tabla { width: 100%; border-collapse: collapse; font-size: 11.5px; }
#impresion .cb-tabla th { background: #0b2a4a; color: #fff; font-weight: 600; padding: 6px; text-align: left; font-size: 10.5px; }
#impresion .cb-tabla td { padding: 6px; border-bottom: 1px solid #dde6ee; vertical-align: top; }
#impresion .cb-tabla tbody tr { break-inside: avoid; }
#impresion .cb-tabla tbody tr:nth-child(even):not(.cb-neto) td { background: #eef4f9; }
#impresion .cb-tabla .n { text-align: right; white-space: nowrap; }
#impresion .cb-tabla .cb-i { color: #4398c8; font-weight: 700; }
#impresion .cb-tabla tr.cb-neto td { font-weight: 700; color: #0b2a4a; border-top: 2px solid #0b2a4a; border-bottom: 0; }
#impresion .cb-incl { margin: 3px 0 0; padding: 0; list-style: none; font-size: 10px; color: #5a6b7c; }
#impresion .cb-incl li:before { content: '› '; color: #4398c8; font-weight: 700; }
#impresion .cb-lista { margin: 0; padding-left: 20px; font-size: 11px; line-height: 1.45; }
#impresion .cb-lista li { margin: 3px 0; break-inside: avoid; }
#impresion .cb-lista.excl { list-style: none; padding-left: 0; }
#impresion .cb-lista.excl li { position: relative; padding-left: 26px; color: #3c5068; }
#impresion .cb-lista.excl li:before { content: '✕'; position: absolute; left: 0; top: 0; width: 17px; height: 17px; border-radius: 50%; background: #e8edf2; color: #7a8a9a; font-size: 9px; text-align: center; line-height: 17px; }
#impresion .cb-firma { margin: .3in 0 0 auto; width: 260px; text-align: center; font-size: 12px; break-inside: avoid; }
#impresion .cb-firma-img { display: block; height: 80px; margin: 0 auto -14px; position: relative; }
#impresion .cb-firma-linea { border-top: 1px solid #333; margin-bottom: 6px; }
#impresion .cb-sello { display: flex; align-items: center; gap: 16px; border-top: 1px solid #d5dde5; padding-top: 12px; margin-top: .35in; break-inside: avoid; }
#impresion .cb-sello img { height: .75in; } #impresion .cb-sello p { font-size: 11.5px; color: #5a6b7c; line-height: 1.5; margin: 0; } #impresion .cb-sello b { color: #0b2a4a; }

/* ---------- PDF de la Carta Gantt, estilo B ---------- */
#impresion .gantt-b { font-family: 'Segoe UI', Arial, sans-serif; color: #1d2b3a; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
#impresion .gb-pag { display: flex; flex-direction: column; overflow: hidden; break-after: page; }
#impresion .gb-pag:last-child { break-after: auto; }
#impresion .gb-cab { display: flex; align-items: center; gap: 16px; height: 78px; flex: none; background: linear-gradient(100deg, #0b2a4a 0%, #0d3d66 65%, #00669e 100%); border-radius: 12px; padding: 8px 12px; color: #fff; position: relative; overflow: hidden; }
#impresion .gb-ond { position: absolute; inset: 0; width: 100%; height: 100%; }
#impresion .gb-caja { background: #fff; border-radius: 8px; padding: 5px 7px; position: relative; display: flex; align-items: center; }
#impresion .gb-logo { height: 58px; } #impresion .gb-icri { height: 52px; }
#impresion .gb-tit { flex: 1; position: relative; min-width: 0; }
#impresion .gb-tit small { font-size: 10px; letter-spacing: 3px; color: #9cc8e6; font-weight: 700; }
#impresion .gb-tit h1 { font-size: 20px; line-height: 1.15; margin: 2px 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#impresion .gb-tit div { font-size: 11px; color: #cfe3f2; }
#impresion .gb-tarj { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 8px; height: 54px; flex: none; }
#impresion .gb-t { background: #eef4f9; border-top: 3px solid #4398c8; border-radius: 8px; padding: 6px 10px; }
#impresion .gb-t small { display: block; font-size: 9.5px; letter-spacing: 1.3px; color: #00669e; font-weight: 700; }
#impresion .gb-t b { font-size: 16px; color: #0b2a4a; }
#impresion .gb-t.osc { background: #0b2a4a; } #impresion .gb-t.osc small { color: #9cc8e6; } #impresion .gb-t.osc b { color: #fff; }
#impresion .gb-ley { display: flex; gap: 16px; align-items: center; font-size: 10px; color: #5a6b7c; height: 26px; flex: none; padding: 0 2px; }
#impresion .gb-ley i { display: inline-block; width: 20px; height: 9px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
#impresion .gb-ley i.gb-rombo { width: 9px; height: 9px; background: #0b2a4a; transform: rotate(45deg); border-radius: 0; }
#impresion .gb-esc { margin-left: auto; }
#impresion .gb-zona { flex: 1; min-height: 0; }
#impresion .gb-svg { display: block; }
#impresion .gb-pie { display: flex; justify-content: space-between; font-size: 9px; color: #5a6b7c; border-top: 1px solid #d5dde5; padding-top: 5px; height: 22px; flex: none; }
#impresion .gb-anexo { font-size: 14px; color: #0b2a4a; margin: 12px 0 8px; }

/* ---------- Estados de pago ---------- */
.ep-params { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 16px; margin: 8px 0; }
.ep-params label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--tinta, #1d2b38); }
.ep-params label > span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #5a6b7c; }
.ep-params label.ancho { grid-column: span 2; }
.ep-params input:not(.in-num), .ep-params select { width: 100%; }
.ep-tabla td { vertical-align: middle; white-space: nowrap; }
.ep-tabla select { min-width: 108px; }
.ep-tabla .ep-nom { min-width: 220px; width: 100%; } .ep-tabla .ep-item { width: 52px; } .ep-tabla .ep-ud { width: 52px; }
.ep-tabla .ep-act { background: #fff6e0; }
.ep-tabla tr.ep-exceso td { background: #fde8e8; }
.ep-tabla tfoot td { font-weight: 700; border-top: 2px solid #0b2a4a; }
.ep-liq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ep-liq tr.sub td { font-weight: 700; border-top: 1px solid #0b2a4a; }
.ep-liq tr.total td { background: #0b2a4a; color: #fff; font-weight: 700; font-size: 15px; }
.chip.ep-borrador { background: #eef1f4; color: #5a6b7c; } .chip.ep-enviado { background: #e3f0fa; color: #00669e; }
.chip.ep-aprobado { background: #fff2cc; color: #7a5b00; } .chip.ep-pagado { background: #e2efda; color: #2e6b1f; }
@media (max-width: 760px) { .ep-liq { grid-template-columns: 1fr; } .ep-params label.ancho { grid-column: auto; } }
#impresion .ep-pdf .gb-tarj { margin-bottom: 6px; }
#impresion .ep-barra { height: 5px; background: #d5e3ef; border-radius: 3px; margin-top: 3px; overflow: hidden; } #impresion .ep-barra span { display: block; height: 100%; background: #c0392b; }
#impresion .gb-t i { font-style: normal; font-size: 9.5px; color: #5a6b7c; margin-left: 4px; } #impresion .gb-t.osc i { color: #cfe3f2; }
#impresion .ep-t { width: 100%; border-collapse: collapse; font-size: 9.4px; }
#impresion .ep-t th { background: #0b2a4a; color: #fff; font-weight: 600; padding: 4px 5px; text-align: right; white-space: nowrap; }
#impresion .ep-t thead tr:first-child th { background: #00669e; text-align: center; border-left: 2px solid #fff; } #impresion .ep-t thead tr:first-child th.v { background: #0b2a4a; }
#impresion .ep-t th.l, #impresion .ep-t td.l { text-align: left; }
#impresion .ep-t td { padding: 3px 5px; border-bottom: 1px solid #e3eaf1; text-align: right; white-space: nowrap; }
#impresion .ep-t td.l:nth-child(2) { white-space: normal; }
#impresion .ep-t tbody tr:nth-child(even) td { background: #f6f9fc; }
#impresion .ep-t td.g { border-left: 2px solid #d5e0ea; } #impresion .ep-t td.act { background: #fff6e0 !important; font-weight: 600; }
#impresion .ep-t td.i { color: #4398c8; font-weight: 700; }
#impresion .ep-t tr { break-inside: avoid; }
#impresion .ep-t tr.sec td { background: #eef4f9 !important; color: #00669e; font-weight: 700; text-align: left; font-size: 8.8px; letter-spacing: 1px; }
#impresion .ep-t tr.tot td { background: #0b2a4a !important; color: #fff; font-weight: 700; }
#impresion .ep-bajo { display: grid; grid-template-columns: 1.15fr 1fr 1.25fr; gap: 14px; margin-top: 8px; break-inside: avoid; }
#impresion .ep-bajo h3 { font-family: 'Segoe UI', Arial, sans-serif; font-weight: 700; font-size: 10.5px; letter-spacing: 1.5px; color: #0b2a4a; margin: 0 0 4px; }
#impresion .ep-liq-t { width: 100%; border-collapse: collapse; font-size: 10px; }
#impresion .ep-liq-t td { padding: 2px 6px; border-bottom: 1px solid #e3eaf1; } #impresion .ep-liq-t td:last-child { text-align: right; white-space: nowrap; }
#impresion .ep-liq-t tr.ep-sub td { font-size: 10px;  font-weight: 700; color: #0b2a4a; border-top: 1.5px solid #0b2a4a; }
#impresion .ep-liq-t tr.ep-fin td { background: #0b2a4a; color: #fff; font-weight: 700; font-size: 11.5px; }
#impresion .ep-nota { font-size: 9px; color: #5a6b7c; margin-top: 4px; }
#impresion .ep-firmas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
#impresion .ep-firmas > div { text-align: center; font-size: 9px; color: #3c5068; }
#impresion .ep-firmas img { height: 46px; display: block; margin: 0 auto -8px; position: relative; }
#impresion .ep-firmas .l { border-top: 1px solid #333; padding-top: 3px; margin-top: 46px; } #impresion .ep-firmas img + .l { margin-top: 0; }
#impresion .ep-firmas b { display: block; color: #0b2a4a; }
#impresion .ep-pdf .gb-pie { margin-top: 8px; }
