:root {
  color-scheme: light;
  --ink: #1a242d;
  --muted: #5d6975;
  --quiet: #6e7883;
  --surface: #fff;
  --canvas: #f6f6f4;
  --line: #e3e6e8;
  --coal: #181f25;
  --copper: #a24d2d;
  --copper-hover: #823b22;
  --radius: 14px;
  font: 15px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box }
body { margin: 0; min-width: 280px }
[hidden] { display: none !important }
h1, h2, h3, p, ul, ol { margin: 0 }
button, input, select, textarea { font: inherit }
button, a { -webkit-tap-highlight-color: transparent }
button, a.button-link { cursor: pointer }
button:disabled { opacity: .58; cursor: wait }
a { color: #934527; text-underline-offset: 3px }
:focus-visible { outline: 3px solid #b85b36; outline-offset: 3px }
::selection { color: #25201b; background: #f1c9ab }
.sr-only, .sprite { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.skip { position: fixed; top: 8px; left: 8px; z-index: 10; padding: .6rem 1rem; color: #fff; background: var(--coal); transform: translateY(-130%) }
.skip:focus { transform: translateY(0) }
.icon { display: inline-block; flex: none; width: 19px; height: 19px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round }
.eyebrow { font-size: .69rem; font-weight: 760; letter-spacing: .15em; color: var(--copper) }
.mono { font-family: ui-monospace, "SF Mono", monospace; font-size: .8rem; overflow-wrap: anywhere }
button, .button-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 40px; padding: .53rem .9rem; border: 1px solid transparent; border-radius: 8px;
  font-weight: 650; line-height: 1.25; text-align: center; text-decoration: none;
  background: var(--copper); color: #fff;
}
button:hover, .button-link:hover { background: var(--copper-hover) }
button.secundario, .button-link { background: #fff; color: var(--ink); border-color: #d7dce0 }
button.secundario:hover, .button-link:hover { background: #f5f3f0 }
button.text-button { color: var(--copper); background: transparent; padding-inline: 0 }
button.text-button:hover { color: var(--copper-hover); text-decoration: underline; text-underline-offset: 3px }
button.icon-button { padding: .4rem; min-width: 38px; color: var(--ink); background: transparent }
button.icon-button:hover { background: #eae8e4 }
label { display: grid; gap: .38rem; min-width: 0; color: var(--ink); font-size: .84rem; font-weight: 620 }
input, select, textarea {
  width: 100%; min-width: 0; min-height: 41px; border: 1px solid #cfd5da; border-radius: 8px;
  padding: .57rem .7rem; background: #fff; color: var(--ink); font-weight: 400;
}
input::placeholder { color: var(--quiet); opacity: 1 }
select[multiple] { min-height: 100px }
textarea { min-height: 96px; resize: vertical }
input[type=file] { padding: .25rem; min-height: 42px }
input::file-selector-button { margin-right: .65rem; border: 0; padding: .44rem .65rem; border-radius: 5px; background: #f0efed; color: var(--ink); font: inherit; cursor: pointer }
form { display: grid; gap: .9rem }
form > button { justify-self: start }
.acciones { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center }
#mensaje:empty { display: none }
#mensaje { position: fixed; z-index: 8; bottom: 22px; right: 24px; max-width: min(440px, calc(100% - 40px)); padding: .85rem 1.05rem; border: 1px solid #b7d6c8; border-left: 4px solid #2c755a; border-radius: 9px; color: #174c39; background: #f3fbf7; box-shadow: 0 8px 28px #18251f23; overflow-wrap: anywhere }
#mensaje[data-error="true"] { border-color: #ddaaa4; border-left-color: #a53528; color: #792c22; background: #fff6f4 }
.workspace { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr) }
.sidebar { position: sticky; top: 0; height: 100dvh; overflow: auto; display: flex; flex-direction: column; gap: 25px; padding: 27px 17px 17px; color: #cdd4da; background: var(--coal) }
.marca { display: flex; align-items: center; gap: .7rem; color: #fff; font-weight: 710; line-height: 1.12; letter-spacing: -.025em }
.sidebar .marca { padding: 0 8px }
.marca > span:last-child > span { display: block; margin-top: .19em; color: #b7bec4; font-size: .83em; font-weight: 530; letter-spacing: .012em }
.marca-icono { display: inline-grid; place-items: center; flex: none; width: 39px; height: 39px; border-radius: 9px; color: #251e1a; background: #dda680 }
.marca-icono .icon { width: 28px; height: 28px }
.org { display: flex; gap: .64rem; align-items: center; padding: .62rem .64rem; border: 1px solid #3a434d; border-radius: 10px; min-width: 0 }
.org-icono, .avatar { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 7px; color: #f5d0b5; background: #49382e; font-size: .72rem; font-weight: 800 }
.org strong, .perfil-lateral strong, .entorno strong { display: block; color: #f0f2f3; font-size: .84rem; overflow-wrap: anywhere }
.org small, .perfil-lateral small, .entorno small { display: block; font-size: .72rem; color: #adb7bf }
.nav { display: grid; gap: 4px }
.nav-titulo { color: #aab4bd; font-size: .62rem; font-weight: 730; letter-spacing: .12em; padding: 0 .68rem .33rem }
.nav-secundario { margin-top: 1rem }
.nav button { justify-content: flex-start; width: 100%; min-height: 42px; background: transparent; color: #c7d0d7; font-size: .88rem; font-weight: 560; padding-left: .67rem; text-align: left }
.nav button:hover { background: #2c363e; color: #fff }
.nav button[aria-current="page"] { background: #393532; color: #ffdac1; border-color: #685144 }
.nav button[aria-current="page"] .icon { color: #edb58d }
.sidebar-pie { display: grid; gap: .75rem; margin-top: auto }
.entorno { display: flex; gap: .62rem; align-items: center; padding: .65rem; border-bottom: 1px solid #38414a }
.entorno > span, .dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: #8acaab }
.perfil-lateral { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .52rem; padding: .25rem .18rem }
.perfil-lateral button { padding: .35rem; min-height: 36px; color: #c8d2da; background: transparent }
.perfil-lateral button:hover { background: #38424c }
.avatar { background: #343f48; color: #e7edf0; border-radius: 50% }
.superficie { min-width: 0 }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 64px; padding: 0 clamp(18px, 3vw, 43px); border-bottom: 1px solid var(--line); background: #fdfdfc }
.ruta, .ambiente { display: flex; gap: .63rem; align-items: center; font-size: .82rem; color: var(--muted) }
.ruta strong { color: var(--ink); font-weight: 650 }
.ruta .icon { width: 12px; height: 12px }
.ambiente > span:first-child, .chip { display: inline-flex; align-items: center; padding: .19rem .5rem; border: 1px solid var(--line); border-radius: 6px; color: #4d5964; font-size: .7rem; font-weight: 680; line-height: 1.4; white-space: nowrap }
#salir-movil { display: none }
.contenido { width: min(100%, 1540px); margin-inline: auto; padding: 29px clamp(18px, 3vw, 43px) 48px }
.vista { display: grid; gap: 20px; min-width: 0 }
.cabecera { display: flex; justify-content: space-between; align-items: end; gap: 1.1rem; margin: .25rem 0 .12rem }
.cabecera h1 { margin: .2rem 0 .3rem; font-size: clamp(1.8rem, 3.1vw, 2.65rem); font-weight: 740; line-height: 1.12; letter-spacing: -.051em }
.cabecera p:not(.eyebrow), .panel-cabecera p:not(.eyebrow) { color: var(--muted); margin-top: .18rem; font-size: .87rem }
.cabecera > button { flex: none }
.banner { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: space-between; align-items: end; gap: 1rem; min-height: 192px; padding: 22px 27px; border-radius: var(--radius); color: #f7f8f8; background: linear-gradient(115deg, #202a33 8%, #25303a 53%, #31343a 100%) }
.banner-arte, .lineas { pointer-events: none; position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.banner-arte i, .lineas i { position: absolute; display: block; width: 380px; height: 240px; top: -40px; right: -55px; transform: rotate(-32deg) skewX(9deg); border: 1px solid #d7a98460; border-radius: 28px }
.banner-arte i:nth-child(2), .lineas i:nth-child(2) { translate: -29px 18px; opacity: .77 }
.banner-arte i:nth-child(3), .lineas i:nth-child(3) { translate: -58px 37px; opacity: .58 }
.banner-arte i:nth-child(4), .lineas i:nth-child(4) { translate: -87px 56px; opacity: .4 }
.banner-arte i:nth-child(5), .lineas i:nth-child(5) { translate: -116px 75px; opacity: .23 }
.banner .eyebrow { color: #f3c5a7; display: flex; align-items: center; gap: .45rem; margin-bottom: 1rem }
.banner .dot { width: 6px; height: 6px; background: #e5aa80 }
.banner-etiqueta { color: #d7dce0; font-size: .88rem }
.banner strong { display: block; font-size: clamp(2.05rem, 4.25vw, 3.2rem); line-height: 1.17; letter-spacing: -.055em; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere }
.banner #kpi-contexto { color: #c3cbd2; font-size: .79rem; margin-top: .34rem }
.banner-cta { flex: none; color: #fff; background: #1f2831; border-color: #82919c; min-height: 38px; font-size: .82rem }
.banner-cta:hover { background: #3d4953 }
.indicadores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px }
.indicador, .panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 1px 2px #1d252c05 }
.indicador { display: flex; align-items: flex-start; gap: .72rem; padding: 16px }
.indicador div { min-width: 0 }
.indicador p { color: var(--muted); font-size: .81rem; font-weight: 590 }
.indicador strong { display: block; font-size: 1.55rem; line-height: 1.25; letter-spacing: -.035em; font-variant-numeric: tabular-nums }
.indicador small { color: var(--quiet); font-size: .72rem }
.insignia { display: inline-grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 9px }
.insignia.cobre { color: #9c4b30; background: #f8ebe2 }
.insignia.verde { color: #31664f; background: #e9f3ed }
.insignia.azul { color: #455d82; background: #ecf1f8 }
.informe-grid { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr); gap: 14px }
.panel { padding: 19px 22px }
.panel-cabecera { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .92rem }
.panel-cabecera h2 { font-size: 1.13rem; line-height: 1.28; letter-spacing: -.022em }
.panel-cabecera > .icon { color: var(--muted) }
.panel-cabecera .eyebrow { margin-bottom: .32rem }
.panel-cabecera .mono { margin-top: .38rem }
.modulos-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 8px }
.modulos-admin-grid button { display: grid; align-content: start; justify-items: start; gap: .24rem; min-width: 0;
  padding: .65rem .8rem; text-align: left; line-height: 1.25; color: var(--ink); background: var(--surface); border: 1px solid var(--line) }
.modulos-admin-grid button:hover { color: var(--ink); background: var(--canvas); border-color: var(--muted) }
.modulos-admin-grid button span { color: var(--muted); font-size: .77rem; font-weight: 400 }
.panel.listado { padding-inline: 0 }
.listado .panel-cabecera, .listado .filtros, .listado > .empty, #revisar { margin-inline: 22px }
.distribucion { display: grid; gap: .69rem }
.distribucion-fila { display: grid; grid-template-columns: minmax(74px, 93px) minmax(45px, 1fr) 1.8rem; gap: .65rem; align-items: center; color: var(--muted); font-size: .83rem }
.distribucion-fila strong { text-align: right; color: var(--ink) }
.distribucion-fila progress { width: 100%; height: 8px; border: 0; border-radius: 20px; background: #efefed; appearance: none; color: var(--barra, #a3674b) }
.distribucion-fila progress::-webkit-progress-bar { border-radius: 20px; background: #efefed }
.distribucion-fila progress::-webkit-progress-value { border-radius: 20px; background: var(--barra, #a3674b) }
.distribucion-fila progress::-moz-progress-bar { border-radius: 20px; background: var(--barra, #a3674b) }
.distribucion-fila[data-estado="activo"] { --barra: #4c806a }
.distribucion-fila[data-estado="solicitado"] { --barra: #bc7348 }
.distribucion-fila[data-estado="aprobado"] { --barra: #57769e }
.distribucion-fila[data-estado="liquidado"] { --barra: #797995 }
.distribucion-fila[data-estado="rechazado"] { --barra: #a47777 }
.ultimo-corte { display: grid; gap: .34rem; justify-items: start }
.ultimo-corte .corte-fecha { font-size: 1.15rem; font-weight: 720 }
.ultimo-corte .corte-monto { font-size: .84rem; color: var(--muted) }
.estado { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .58rem; border-radius: 50px; color: #4f5b66; background: #f0f1f3; font-size: .75rem; font-weight: 650; white-space: nowrap }
.estado::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: "" }
.estado[data-estado="activo"], .estado[data-estado="aceptar"], .estado[data-estado="autorizar"], .estado[data-estado="cumple"] { color: #285e49; background: #e8f3ed }
.estado[data-estado="solicitado"], .estado[data-estado="pendiente"], .estado[data-estado="observar"] { color: #8a4a23; background: #fcf0e1 }
.estado[data-estado="aprobado"] { color: #345681; background: #eaf0f9 }
.estado[data-estado="rechazado"], .estado[data-estado="no-cumple"] { color: #873f3a; background: #faece9 }
.tabla { max-width: 100%; overflow: auto }
.tabla table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: .85rem; font-variant-numeric: tabular-nums }
.tabla th, .tabla td { padding: .72rem .9rem; border-bottom: 1px solid #edf0f1; text-align: right }
.tabla th { background: #f7f8f8; color: #505d69; font-size: .73rem; font-weight: 700 }
.tabla th:first-child, .tabla td:first-child { text-align: left; padding-left: 22px }
.tabla th:last-child, .tabla td:last-child { padding-right: 22px }
.tabla tbody tr:last-child td { border-bottom: 0 }
.tabla tbody tr:hover { background: #faf9f7 }
.lista-tabla th:nth-child(2), .lista-tabla td:nth-child(2) { text-align: left }
.lista-tabla td:first-child { width: 38% }
.lista-tabla td:first-child strong, .lista-tabla td:first-child small { display: block }
.lista-tabla td:first-child small { color: var(--quiet); margin-top: .1rem }
.lista-tabla .text-button { min-height: 33px; padding: .28rem .35rem; font-size: .79rem }
.filtros { display: flex; gap: .67rem; flex-wrap: wrap; margin-bottom: .95rem }
.busqueda { position: relative; flex: 0 1 330px }
.busqueda .icon { position: absolute; top: 11px; left: 10px; color: var(--muted) }
.busqueda input { padding-left: 34px }
.filtro-estado { min-width: 163px }
.empty { color: var(--muted); font-size: .86rem; padding: .8rem 0 }
.tabla .empty { text-align: left; padding-block: 1rem }
.regreso { margin-bottom: .55rem }
#cartera-detalle > .panel + .panel, #corte-expediente > .panel + .panel { margin-top: 13px }
.datos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr)); gap: .7rem }
.dato { border: 1px solid var(--line); border-radius: 8px; padding: .68rem .75rem; background: #fafbfa; min-width: 0 }
.dato p { color: var(--muted); font-size: .77rem }
.dato strong { font-size: 1.03rem; font-weight: 690; overflow-wrap: anywhere; font-variant-numeric: tabular-nums }
.timeline, .documentos { display: grid; gap: .6rem; list-style: none; padding: 0 }
.timeline > li, .documentos > li { background: #fafbfa; border: 1px solid #e9ebec; border-radius: 8px; padding: .7rem .86rem; overflow-wrap: anywhere }
.timeline li p, .documentos li p { color: var(--muted); font-size: .8rem; margin-top: .28rem }
.timeline li .partidas { margin: .52rem 0 0 }
.partidas table { font-family: inherit }
.originacion-grid { display: grid; grid-template-columns: minmax(275px, .85fr) minmax(0, 1.15fr); gap: 15px; align-items: start }
#operacion, #preparar, #revisar, #revisar-b5, #cargar-evidencia { max-width: 560px }
#operador, #preparar-b5 > p { color: var(--muted); font-size: .85rem }
#revisar, #revisar-b5, #cargar-evidencia, #preparar-b5 { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem }
.subnav { display: flex; flex-wrap: wrap; gap: .32rem; margin: 15px 0 9px; border-bottom: 1px solid var(--line); padding-bottom: .38rem }
.subnav button { padding: .5rem .72rem; font-size: .83rem; background: transparent; color: var(--muted); border-radius: 7px }
.subnav button:hover { background: #eeeeea }
.subnav button[aria-pressed="true"] { background: #f4e6dc; color: #883e25 }
.integridad { margin-top: .85rem; color: var(--muted); font-size: .8rem }
.integridad summary { cursor: pointer; width: fit-content }
.integridad p { margin-top: .4rem }
.selector-version { max-width: 300px; margin-bottom: .95rem }
#evaluaciones, #mayor-corte { overflow-wrap: anywhere }
#evaluaciones fieldset { min-inline-size: 0; margin: 0 0 .8rem; padding: .8rem; display: grid; gap: .7rem; border: 1px solid var(--line); border-radius: 8px }
#evaluaciones legend { font-size: .8rem; font-weight: 680; padding-inline: .3rem }
#evaluaciones fieldset button { justify-self: start }
#detalle-b5 { display: grid; gap: .85rem }
#detalle-b5 > button { justify-self: start }
#detalle-b5 > p { color: var(--muted); font-size: .82rem }
#detalle-b5 .portafolio { display: grid; gap: .38rem; padding: .85rem; border: 1px solid var(--line); border-radius: 8px }
.portafolio-cabecera { display: flex; align-items: center; justify-content: space-between; gap: .45rem; flex-wrap: wrap }
.portafolio h3 { font-size: .97rem }
.portafolio p { color: var(--muted); font-size: .84rem }
.documentos .documento-enlace { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650 }
.mayor-resumen { margin-bottom: .8rem; color: var(--muted); font-size: .82rem }
#mayor-corte .timeline { margin-top: .9rem }
.acceso { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) }
.acceso-arte { display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; position: relative; overflow: hidden; min-height: 100dvh; padding: clamp(28px, 5.6vw, 78px); color: #fff; background: radial-gradient(ellipse at 89% 58%, #394653, transparent 65%), #181f25 }
.acceso-arte .marca { font-size: 1.25rem }
.acceso-titulo .eyebrow { color: #edb896; margin-bottom: 1.1rem }
.acceso-titulo p:last-child { font-size: clamp(2.7rem, 5vw, 5.3rem); line-height: 1.02; font-weight: 660; letter-spacing: -.067em }
.acceso-titulo em { color: #edb896; font-style: normal }
.lineas i { width: 485px; height: 350px; top: 26%; right: -173px; opacity: .77; border-radius: 37px }
.acceso-pie { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 1rem; border-top: 1px solid #54616a; color: #cbd2d8; font-size: .76rem }
.acceso-pie .icon { width: 16px; height: 16px; margin-right: .22rem }
.acceso-contenido { display: grid; place-items: center; padding: 33px clamp(20px, 5vw, 74px); background: #fbfaf8 }
.acceso-caja { width: min(100%, 370px) }
.acceso-caja h1 { font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.06em; line-height: 1.08; margin: .3rem 0 .62rem }
.acceso-caja > p:not(.eyebrow) { color: var(--muted) }
.acceso-caja form { margin-top: 1.6rem; gap: 1rem }
.acceso-caja form button { justify-self: stretch; justify-content: space-between; padding: .72rem .9rem }
.acceso-nota { margin-top: 1.25rem; font-size: .75rem }
.acceso-nota .icon { width: 15px; height: 15px }
.movil-marca { display: none }
@media (max-width: 1050px) {
  .workspace { grid-template-columns: 195px minmax(0, 1fr) }
  .sidebar { padding-inline: 12px }
  .indicador { padding: 12px; gap: .55rem }
  .indicador .insignia { width: 31px; height: 31px }
  .informe-grid .chip { display: none }
}
@media (max-width: 790px) {
  .workspace { display: block }
  .sidebar { position: static; height: auto; overflow: visible; padding: 10px 14px 8px; gap: .7rem }
  .sidebar .marca { padding: 0 }
  .sidebar .marca-icono { width: 33px; height: 33px }
  .sidebar .marca-icono .icon { width: 23px; height: 23px }
  .sidebar .marca > span:last-child > span { display: inline; margin-left: .25rem }
  .sidebar .org, .sidebar-pie, .nav-titulo { display: none }
  .nav { display: flex; flex-wrap: wrap; gap: .25rem }
  .nav button { min-height: 36px; width: auto; gap: .3rem; padding: .28rem .51rem; font-size: .78rem }
  .nav .icon { width: 15px; height: 15px }
  .topbar { min-height: 49px; padding-inline: 14px; gap: .4rem }
  #salir-movil { display: inline-flex }
  .contenido { padding: 18px 14px 35px }
  .vista { gap: 13px }
  .cabecera { align-items: start; flex-wrap: wrap; gap: .65rem }
  .banner { padding: 17px; min-height: 171px }
  .banner-arte i { right: -168px }
  .originacion-grid { grid-template-columns: minmax(0, 1fr) }
}
@media (max-width: 560px) {
  .acceso { grid-template-columns: minmax(0, 1fr) }
  .acceso-arte { display: none }
  .movil-marca { display: inline-grid; margin-bottom: 1rem }
  .ambiente > span:first-child { display: none }
  .ruta, .ambiente { font-size: .72rem; gap: .35rem }
  .indicadores { gap: .38rem }
  .indicador { display: block; padding: .55rem }
  .indicador .insignia { margin-bottom: .25rem }
  .indicador p { font-size: .72rem }
  .indicador small { display: none }
  .informe-grid { grid-template-columns: minmax(0, 1fr); gap: .65rem }
  .banner { align-items: start; flex-direction: column; gap: .7rem }
  .banner .eyebrow { margin-bottom: .5rem }
  .panel { padding: 14px }
  .panel-cabecera { flex-wrap: wrap; gap: .5rem }
  .listado .panel-cabecera, .listado .filtros, .listado > .empty, #revisar { margin-inline: 14px }
  .tabla th:first-child, .tabla td:first-child { padding-left: 14px }
  .tabla th:last-child, .tabla td:last-child { padding-right: 14px }
  .filtros > label { flex: 1 1 100% }
  .lista-tabla td:first-child { width: auto }
}
@media (prefers-reduced-motion: no-preference) {
  button, a.button-link { transition: background-color .15s, color .15s, border-color .15s }
}

.informe-grid.sin-cortes { grid-template-columns: minmax(0, 1fr) }
#detalle-b5 .portafolio > .estado { justify-self: start }

/* Contain off-screen table content, including visually hidden headings. */
.tabla { position: relative }
[tabindex="-1"]:focus { outline: none }
#sin-conexion { max-width: 440px; margin: 14vh auto; padding: 1.5rem; text-align: center }
#sin-conexion h1 { font-size: 1.4rem }
#sin-conexion p { margin: .5rem 0 1rem; color: var(--muted) }
@media (max-width: 560px) {
  .lista-tabla { white-space: normal !important }
  .lista-tabla th:nth-child(3), .lista-tabla td:nth-child(3) { display: none }
  .lista-tabla th, .lista-tabla td { padding: .57rem .35rem }
  .lista-tabla td:first-child strong { overflow-wrap: anywhere }
  .lista-tabla td:nth-child(3) ~ td:nth-child(4) { white-space: nowrap }
  .lista-tabla .text-button { min-width: 34px; font-size: 0; gap: 0 }
  .lista-tabla th:last-child, .lista-tabla td:last-child { padding-right: .55rem }
  #cortes-listado .lista-tabla th:nth-child(3), #cortes-listado .lista-tabla td:nth-child(3) { display: table-cell }
  #cortes-listado .lista-tabla th:nth-child(4), #cortes-listado .lista-tabla td:nth-child(4) { display: none }
}

.vista { grid-template-columns: minmax(0, 1fr) }
#cartera-detalle, #corte-expediente { min-width: 0 }
.timeline, .documentos { grid-template-columns: minmax(0, 1fr) }
.timeline > li, .documentos > li { min-width: 0 }
.distribucion-fila .text-button { font-size: inherit; min-height: 21px; justify-content: flex-start; padding: 0; gap: .18rem }
.distribucion-fila .text-button .icon { width: 12px; height: 12px }

.cierre-archivos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: .85rem }
#cierre-detalle > .panel { margin-bottom: .78rem }
#cierre-detalle { min-width: 0 }
#cierre-fuentes { margin-top: .55rem }
#cierre-reservas > p, #cierre-acta { margin-block: .65rem; color: var(--muted); overflow-wrap: anywhere }
#cierre-bitacora { margin-top: .55rem }
#form-revision-cierre { max-width: 35rem; margin-block: .65rem }
@media (max-width: 560px) {
  .tabla-cierres th:nth-child(3), .tabla-cierres td:nth-child(3) { display: table-cell }
  .tabla-cierres th:nth-child(4), .tabla-cierres td:nth-child(4) { display: none }
}

#b5-cierre { overflow-wrap: anywhere }
#b5-cierre form { margin-block: 1rem; max-width: 46rem }
#b5-captura { display: grid; gap: .75rem }
#b5-captura fieldset {
  display: grid;
  gap: .75rem;
  min-inline-size: 0;
  margin: 0;
  padding: .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
#b5-captura legend { padding-inline: .35rem; font-weight: 650 }
#b5-version-detalle, #b5-cierre-documentos { margin-block: .6rem }
#b5-version-detalle .documentos { margin-top: .5rem }
#b5-version-detalle .documentos .estado { margin-inline-start: .55rem }

#entrega-b5 { overflow-wrap: anywhere }
#entrega-b5 form { max-width: 46rem; margin-block: 1rem }
#entrega-b5-resumen { display: grid; gap: .5rem }
#entrega-b5-resumen button { justify-self: start }

#vista-previa-cierre { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; overflow-wrap: anywhere }
#vista-previa-cierre > p, #vista-previa-cierre > .acciones { margin-block: .65rem }
#revision-cierre-fuentes { margin-top: .5rem }

#acreditados-lista, #acreditado-documentos, #pld-historial, #pld-panel form, #acreditado-adjuntar,
#mayor-operativo, #auditoria-control, #auditoria-mas { margin-top: 1rem }
#acreditado-datos { margin-bottom: 1rem }
#acreditado-ref, #pld-estado { color: var(--muted); overflow-wrap: anywhere }
.expediente-credito { margin-block-start: .85rem; overflow-wrap: anywhere }
.expediente-solicitudes { list-style: none; margin: 0; padding: 0 }
.expediente-solicitudes li {
  display: grid; grid-template-columns: minmax(0, 1fr) max-content max-content; gap: .75rem;
  align-items: center; padding: .65rem 0; border-top: 1px solid var(--line);
}
.expediente-solicitudes li p { color: var(--muted); font-size: .84rem }
.expediente-metricas { margin-bottom: .8rem }
.expediente-requisitos { display: grid; gap: .46rem }
.expediente-seccion { margin-block-start: .62rem }
.expediente-seccion .timeline { margin-block: .68rem 0 }
.expediente-formulario, .expediente-cifras, .expediente-lista { margin-block: .68rem 0 }
.expediente-formulario > button { justify-self: start }
.expediente-formulario :is(input,select,textarea) { min-width: 0; max-inline-size: 100% }
.expediente-lista { list-style: none; padding: 0 }
.expediente-lista > li { border-top: 1px solid var(--line); padding-block: .57rem }
.expediente-requisito {
  display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .35rem .75rem;
}
.expediente-documento { margin-block-start: .45rem; padding-inline-start: .6rem; border-inline-start: 2px solid var(--line) }
.expediente-documento p { font-size: .86rem; color: var(--muted) }
.expediente-documento .text-button { max-inline-size: 100%; text-align: left }
#operacion .expediente-confirma { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .45rem }
#operacion .expediente-confirma input { width: auto; margin-top: .2rem }
@media (max-width: 560px) {
  .expediente-solicitudes li { grid-template-columns: minmax(0, 1fr) max-content }
  .expediente-solicitudes li button { justify-self: start }
}
.pld-tabs { margin-block: 0; }
.pld-control { display: grid; gap: .85rem; align-items: start; }
.pld-control .panel-cabecera { margin-bottom: 0; }
.pld-control .integridad { margin-top: 0; }
.pld-control form { margin-top: .6rem; }
.pld-control h3 { font-size: 1rem; }
.pld-resultados { display: grid; gap: .75rem; min-width: 0; overflow-wrap: anywhere; }
.pld-resultados:empty { display: none; }
.pld-encabezado { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; }
.pld-nota { font-size: .83rem; color: var(--muted); overflow-wrap: anywhere; }
.pld-alerta { border-left: 3px solid #b17a2f; padding: .55rem .7rem; background: #fbf2e2; color: #68451d; }
.pld-alerta p + p { margin-top: .35rem; }
.pld-campos { display: grid; gap: .75rem; }
.pld-campos fieldset { min-inline-size: 0; display: grid; gap: .65rem; margin: 0; padding: .8rem; border: 1px solid var(--line); border-radius: 9px; }
.pld-campos legend { padding-inline: .35rem; font-size: .85rem; font-weight: 650; }
.pld-campos button { justify-self: start; }
.pld-campos .cierre-archivos + .cierre-archivos { margin-top: .5rem; }
.pld-resultados details { margin-block: .4rem; }
.pld-resultados .timeline li p { overflow-wrap: anywhere; }
.estado[data-estado="listo"], .estado[data-estado="vigente"], .estado[data-estado="bajo"] { color: #285e49; background: #e8f3ed; }
.estado[data-estado="pendiente"], .estado[data-estado="escalado"], .estado[data-estado="medio"], .estado[data-estado="incompleto"], .estado[data-estado="vencido"] { color: #8a4a23; background: #fcf0e1; }
.estado[data-estado="impedido"], .estado[data-estado="alto"] { color: #873f3a; background: #faece9; }
#vista-acreditados .panel { margin-bottom: .6rem }

.contab-nav { margin-block: 0 }
.contab-seccion, .contab-resultados { display: grid; grid-template-columns: minmax(0, 1fr); gap: .82rem; min-width: 0 }
.contab-resultados:not(:empty) { margin-top: .82rem }
.contab-filtros { display: flex; flex-wrap: wrap; align-items: end; gap: .6rem .85rem }
.contab-filtros label { display: grid; gap: .24rem; max-width: 100%; min-width: 0 }
.contab-filtros button { align-self: end }
.contab-accesos { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(205px,100%),1fr)); gap: .58rem }
.contab-accesos .panel { display: grid; gap: .23rem; justify-items: start; text-align: start; padding: .75rem .78rem }
.contab-accesos span, .contab-nota { color: var(--muted); font-size: .81rem; overflow-wrap: anywhere }
.contab-tabla { min-width: 0; border: 1px solid var(--line); border-radius: 8px }
.contab-tabla:focus-visible { outline-offset: 3px }
.contab-tabla th[data-tipo="texto"], .contab-tabla td[data-tipo="texto"] { text-align: left }
.contab-tabla td small { display: block; color: var(--muted) }
.contab-tabla td .contab-nombre-cuenta { display: inline-block; padding-inline-start: var(--contab-sangria, 0rem) }
.contab-tabla .contab-total { font-weight: 650; background: var(--canvas) }
.contab-tabla td .text-button { min-height: 2rem; padding-block: .22rem; font-size: .81rem }
.contab-edicion > summary, .contab-resultados details > summary { cursor: pointer; font-weight: 650 }
.contab-edicion > form { margin-top: .75rem }
.contab-cuentas-edicion, .contab-datos-edicion { display: grid; gap: .55rem; min-width: 0 }
.contab-fila-edicion { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(130px,100%),1fr)); align-items: end; gap: .45rem }
.contab-fila-edicion, .contab-detalle { min-inline-size: 0; margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: .63rem .72rem }
.contab-fila-edicion legend { padding-inline: .28rem; font-size: .81rem; font-weight: 650 }
.contab-fila-edicion label { min-width: 0 }
.contab-fila-edicion button { align-self: end }
.contab-forma-revision { display: grid; gap: .53rem; max-width: 37rem; margin-block-start: .6rem }
.contab-forma-revision button { justify-self: start }
.contab-detalle > :not(summary) { margin-block-start: .6rem }
.contab-estado { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem }
.contab-fuentes { padding-inline-start: 1.2rem; display: grid; gap: .32rem; font-size: .82rem }

.emision-listado { display: grid; grid-template-columns: minmax(0,1fr); gap: .55rem }
.emision-cabecera { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem .7rem }
.emision-cabecera strong { overflow-wrap: anywhere }
.emision-metadatos { display: grid; grid-template-columns: minmax(0,1fr); gap: .22rem }
.emision-estado { padding: .7rem .82rem; border: 1px solid var(--line); background: var(--canvas); border-radius: 8px }
.emision-estado[data-estado="listo"] { background: #eaf4ef; border-color: #b8d7c7 }
.emision-estado[data-estado="observado"] { background: #fcf2e2; border-color: #e4c9a1 }
.emision-estado p + p { margin-top: .23rem }
.emision-estado ul { padding-inline-start: 1.12rem; margin-top: .32rem; overflow-wrap: anywhere }
.emision-formato pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: .68rem; background: var(--canvas); border-radius: 8px }
.emision-formato select, .emision-formato input[type="file"] { max-inline-size: min(100%,36rem) }
#emision-regulatorios-resultados, #emision-estados-resultados, #emision-papeles-resultados { margin-top: 0 }
