:root {
  --sissae-azul-900: #004c8c;
  --sissae-turquesa-600: #2497b2;
  --sissae-turquesa-300: #5cd3d6;
  --sissae-fondo-calido: #f8f5f3;
  --sissae-tinta: #18323f;
  --sissae-texto-secundario: #5e7480;
  --sissae-borde: #d6e3e8;
  --sissae-blanco: #ffffff;
  --sissae-exito: #167a5b;
  --sissae-advertencia: #a66000;
  --sissae-error: #b42318;
  --sissae-radio-sm: 8px;
  --sissae-radio-md: 14px;
  --sissae-radio-lg: 20px;
  --sissae-sombra: 0 8px 24px rgb(0 76 140 / 10%);
  --sissae-transicion: 180ms ease;
  --sissae-fuente: Inter, Aptos, Arial, sans-serif;
}

.sissae-button-primary {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: var(--sissae-radio-sm);
  background: var(--sissae-azul-900);
  color: var(--sissae-blanco);
  font: 700 1rem/1.25 var(--sissae-fuente);
  transition: background var(--sissae-transicion), transform var(--sissae-transicion);
}

.sissae-button-primary:hover { background: #003c70; }
.sissae-button-primary:focus-visible { outline: 3px solid var(--sissae-turquesa-300); outline-offset: 3px; }
.sissae-card { border: 1px solid var(--sissae-borde); border-radius: var(--sissae-radio-md); background: var(--sissae-blanco); box-shadow: var(--sissae-sombra); }
.sissae-input { min-height: 44px; border: 1px solid #9fb5bf; border-radius: var(--sissae-radio-sm); color: var(--sissae-tinta); font: 1rem var(--sissae-fuente); }
.sissae-alert-success { border-left: 4px solid var(--sissae-exito); }
.sissae-alert-warning { border-left: 4px solid var(--sissae-advertencia); }
.sissae-alert-error { border-left: 4px solid var(--sissae-error); }

@media (prefers-color-scheme: dark) {
  :root { --sissae-fondo-calido: #0d1d26; --sissae-tinta: #f4f8fa; --sissae-texto-secundario: #b7c8cf; --sissae-borde: #294550; --sissae-blanco: #132a35; }
}

@font-face { font-family: Inter; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/manrope-latin-wght-normal.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
:root { --grad: linear-gradient(90deg, #004C8C, #10749F, #2497B2); --head: Manrope, Aptos, Arial, sans-serif; --azul2: #10749F; --link: #004C8C; --chip: #EAF3F6; --okbg: #E7F4EE; --warnbg: #FBF0E1; --errbg: #FBE9E7; --deep: #0D1D26; color-scheme: light dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--sissae-fuente); color: var(--sissae-tinta); background: var(--sissae-fondo-calido); min-height: 100dvh; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: 1.3rem; font-weight: 800; } h3 { font-size: 1.05rem; font-weight: 800; }
a { color: var(--link); } p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sissae-turquesa-300); outline-offset: 2px; }
.muted { color: var(--sissae-texto-secundario); } .small { font-size: .85rem; } .tiny { font-size: .76rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Encabezado: logo integrado (sin placa) ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--deep); color: #fff; padding: 8px 14px; padding-top: max(8px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 12px; min-height: 60px; }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }
.top .logo { height: 40px; width: auto; max-width: 46vw; object-fit: contain; display: block; }
.top .appname { margin: 0; font: 800 .98rem/1.15 var(--head); letter-spacing: .1px; }
.top .appsub { margin: 0; font-size: .76rem; color: #B7C8CF; overflow-wrap: anywhere; }
.top .titles { min-width: 0; flex: 1; border-left: 1px solid rgb(255 255 255 / .22); padding-left: 12px; }
.top.custom { background: #fff; color: var(--sissae-tinta); box-shadow: 0 2px 10px rgb(0 76 140 / 8%); }
.top.custom .titles { border-left-color: #D6E3E8; } .top.custom .appname { color: #004C8C; } .top.custom .appsub { color: #5E7480; }
.top.custom .logo { height: 46px; max-width: 40vw; }
.iconbtn { min-width: 44px; min-height: 44px; border-radius: 10px; border: 1px solid var(--sissae-borde); background: transparent; cursor: pointer; font-size: 1.1rem; }
.top .iconbtn { border-color: rgb(255 255 255 / .3); color: #fff; } .top.custom .iconbtn { border-color: #D6E3E8; color: #18323F; }

/* ---------- Navegación ---------- */
.nav { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sissae-blanco); border-top: 1px solid var(--sissae-borde); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgb(0 76 140 / 8%); }
.nav button { border: 0; background: transparent; min-height: 58px; padding: 6px 2px; display: grid; justify-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--sissae-texto-secundario); cursor: pointer; transition: color var(--sissae-transicion); }
.nav button .ico { font-size: 1.25rem; line-height: 1; }
.nav button[aria-current="page"] { color: var(--link); box-shadow: inset 0 3px 0 #2497B2; }
main { padding: 16px 14px 96px; max-width: 1180px; margin: 0 auto; }
.view > h2 { margin-top: 4px; }
@media (min-width: 900px) {
  .nav { position: sticky; top: 63px; bottom: auto; grid-auto-flow: column; justify-content: center; grid-auto-columns: max-content; gap: 4px; border-top: 0; border-bottom: 1px solid var(--sissae-borde); box-shadow: none; padding: 0 12px; z-index: 19; }
  .nav button { grid-auto-flow: column; gap: 8px; font-size: .9rem; min-height: 50px; padding: 0 14px; align-items: center; }
  .nav button[aria-current="page"] { box-shadow: inset 0 -3px 0 #2497B2; }
  main { padding: 24px 24px 48px; }
  .top { padding: 10px 24px; } .top .logo { height: 48px; } .top.custom .logo { height: 52px; } .top .appname { font-size: 1.1rem; }
}

/* ---------- Tarjetas, formularios ---------- */
.card { padding: 16px; margin-bottom: 14px; }
.card h3 { color: var(--link); }
.grid { display: grid; gap: 14px; } .g2, .g3 { grid-template-columns: minmax(0, 1fr); } .grid > *, .split > * { min-width: 0; }
@media (min-width: 700px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 18px; align-items: start; } }
label.f { display: grid; gap: 4px; font-weight: 600; font-size: .92rem; }
label.f .hint { font-weight: 400; font-size: .8rem; color: var(--sissae-texto-secundario); }
.sissae-input, select.sissae-input, textarea.sissae-input { width: 100%; padding: 9px 12px; background: var(--sissae-blanco); }
textarea.sissae-input { min-height: 84px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: #004C8C; }
.btn-sec { min-height: 44px; padding: 9px 16px; border-radius: var(--sissae-radio-sm); border: 1.5px solid #004C8C; background: transparent; color: var(--link); font-weight: 700; cursor: pointer; transition: background var(--sissae-transicion); }
.btn-sec:hover { background: var(--chip); }
.btn-danger { min-height: 44px; padding: 9px 16px; border-radius: var(--sissae-radio-sm); border: 1.5px solid #B42318; background: transparent; color: #B42318; font-weight: 700; cursor: pointer; }
.sissae-button-primary { cursor: pointer; } .sissae-button-primary:disabled, .btn-sec:disabled { opacity: .5; cursor: not-allowed; }
.big { min-height: 52px; font-size: 1.05rem; width: 100%; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; } .btnrow > * { flex: 1 1 160px; }
.note { padding: 10px 12px; border-radius: 10px; background: var(--sissae-blanco); font-size: .9rem; margin: 10px 0; }
.note.sissae-alert-success { background: var(--okbg); } .note.sissae-alert-warning { background: var(--warnbg); } .note.sissae-alert-error { background: var(--errbg); }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: 84px; background: var(--sissae-blanco); color: var(--sissae-tinta); padding: 12px 16px; border-radius: 12px; box-shadow: var(--sissae-sombra); max-width: 92vw; font-weight: 600; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.dlg { border: 1px solid var(--sissae-borde); padding: 18px; max-width: 420px; color: var(--sissae-tinta); }
.dlg::backdrop { background: rgb(13 29 38 / .55); }

/* pasos / KPIs */
.steps { counter-reset: s; display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; text-align: left; border: 1px solid var(--sissae-borde); border-radius: var(--sissae-radio-md); background: var(--sissae-blanco); cursor: pointer; transition: border-color var(--sissae-transicion), transform var(--sissae-transicion); width: 100%; }
.step:hover { border-color: #2497B2; }
.step .n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font: 800 1rem var(--head); }
.step b { display: block; } .step small { color: var(--sissae-texto-secundario); }
.step .st { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--chip); color: var(--link); white-space: nowrap; }
.step .st.ok { background: var(--okbg); color: #167A5B; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 12px; border-radius: var(--sissae-radio-md); background: var(--sissae-blanco); border: 1px solid var(--sissae-borde); }
.kpi b { display: block; font: 800 1.6rem/1.1 var(--head); color: var(--link); } .kpi span { font-size: .82rem; color: var(--sissae-texto-secundario); }
.kpi.ok b { color: #167A5B; } .kpi.err b { color: #B42318; } .kpi.warn b { color: #A66000; }
.bar { height: 12px; border-radius: 99px; background: var(--sissae-borde); overflow: hidden; display: flex; }
.bar i { display: block; height: 100%; }

/* listas */
.list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--sissae-borde); border-radius: 12px; background: var(--sissae-blanco); }
.item.click { cursor: pointer; text-align: left; width: 100%; transition: border-color var(--sissae-transicion); } .item.click:hover { border-color: #2497B2; }
.item .t { font-weight: 700; overflow-wrap: anywhere; } .item .s { font-size: .82rem; color: var(--sissae-texto-secundario); overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--chip); color: var(--link); white-space: nowrap; }
.tag.ok { background: var(--okbg); color: #167A5B; } .tag.err { background: var(--errbg); color: #B42318; } .tag.warn { background: var(--warnbg); color: #8A5000; } .tag.na { background: transparent; border: 1px solid var(--sissae-borde); color: var(--sissae-texto-secundario); }
.badge { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 800 .72rem var(--head); color: #fff; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.chip { min-height: 38px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--sissae-borde); background: var(--sissae-blanco); cursor: pointer; font-size: .88rem; font-weight: 600; }
.chip[aria-pressed="true"] { background: #004C8C; color: #fff; border-color: #004C8C; }

/* segmentado Sí/No/NA */
.q { padding: 10px 0; border-bottom: 1px solid var(--sissae-borde); display: grid; gap: 8px; }
.q:last-child { border-bottom: 0; }
.q .qt { font-weight: 600; } .q .ref { font-size: .76rem; color: var(--sissae-texto-secundario); }
.seg { display: inline-grid; grid-auto-flow: column; border: 1px solid var(--sissae-borde); border-radius: 10px; overflow: hidden; width: max-content; }
.seg button { min-width: 64px; min-height: 42px; border: 0; background: var(--sissae-blanco); cursor: pointer; font-weight: 700; font-size: .9rem; border-left: 1px solid var(--sissae-borde); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"][data-v="si"], .seg button[aria-pressed="true"][data-v="cumple"] { background: #167A5B; color: #fff; }
.seg button[aria-pressed="true"][data-v="no"], .seg button[aria-pressed="true"][data-v="nocumple"] { background: #B42318; color: #fff; }
.seg button[aria-pressed="true"][data-v="na"] { background: #5E7480; color: #fff; }
.seg button[aria-pressed="true"][data-v="accion"] { background: #A66000; color: #fff; }
@media (min-width: 700px) { .q { grid-template-columns: 1fr auto; align-items: center; } }

/* fotos */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--sissae-borde); background: #000; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph button { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgb(13 29 38 / .75); color: #fff; cursor: pointer; }
.addph { aspect-ratio: 1; border: 2px dashed #9fb5bf; border-radius: 10px; display: grid; place-items: center; text-align: center; font-size: .82rem; font-weight: 700; color: var(--link); cursor: pointer; background: var(--sissae-blanco); padding: 6px; }
.addph input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.logoPrev { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logoPrev img { max-height: 60px; max-width: 200px; object-fit: contain; }

/* firma */
.sig { width: 100%; height: 150px; border: 1.5px dashed #9fb5bf; border-radius: 10px; background: #fff; display: block; }

/* tablas */
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { padding: 8px; border-bottom: 1px solid var(--sissae-borde); text-align: left; vertical-align: top; }
.tbl th { font-size: .78rem; text-transform: uppercase; letter-spacing: .3px; color: var(--sissae-texto-secundario); }
.tblwrap { overflow-x: auto; }

/* ---------- Visor 3D / AR ---------- */
html.modal-open { overflow: hidden; }
.arModal { position: fixed; inset: 0; z-index: 40; background: var(--sissae-fondo-calido); display: flex; flex-direction: column; overflow: auto; }
.arHead { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--deep); color: #fff; position: sticky; top: 0; z-index: 2; }
.arHead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); }
.arHead h2 { margin: 0; font-size: 1.08rem; color: #fff; } .arHead p { margin: 0; color: #B7C8CF; font-size: .8rem; }
.arHead .iconbtn { color: #fff; border-color: rgb(255 255 255 / .35); }
.arBody { padding: 12px 14px 24px; display: grid; gap: 14px; }
@media (min-width: 960px) { .arBody { grid-template-columns: minmax(0, 1.3fr) minmax(340px, .9fr); padding: 20px 24px; align-items: start; } }
.tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.tabs button { min-height: 40px; padding: 6px 14px; border-radius: 99px; border: 1px solid var(--sissae-borde); background: var(--sissae-blanco); font-weight: 700; cursor: pointer; font-size: .88rem; }
.tabs button[aria-selected="true"] { background: #004C8C; color: #fff; border-color: #004C8C; }
.arStage { position: relative; height: 46dvh; min-height: 300px; border-radius: var(--sissae-radio-md); overflow: hidden; background: radial-gradient(ellipse at 50% 30%, #ffffff, #E6EEF1); border: 1px solid var(--sissae-borde); }
@media (min-width: 960px) { .arStage { height: 62dvh; } }
.viewport, .viewport canvas { width: 100%; height: 100%; display: block; touch-action: none; }
#mvWrap, #mvBox, #mv { height: 100%; } #mvWrap p { position: absolute; left: 8px; right: 8px; bottom: 6px; margin: 0; }
model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.mvbtn { position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%); }
.arActions { display: grid; gap: 8px; margin-top: 10px; }
.caps ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; font-size: .88rem; } .caps li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--sissae-borde); padding: 4px 0; } .caps b.ok { color: #167A5B; }
.caps summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 32px; }
.arSide .card { margin-bottom: 12px; }
.readout { font-size: .95rem; } .readout b { font-family: var(--head); }
.verdict { padding: 10px 12px; border-radius: 10px; font-weight: 700; }
.verdict.ok { background: var(--okbg); color: #167A5B; } .verdict.err { background: var(--errbg); color: #B42318; } .verdict.warn { background: var(--warnbg); color: #8A5000; }
input[type=range] { width: 100%; accent-color: #004C8C; min-height: 32px; }
.arOverlay { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; justify-content: space-between; pointer-events: auto; touch-action: none; font-family: var(--sissae-fuente); }
.arOverlay > * { pointer-events: auto; }
.arTop { display: flex; gap: 10px; align-items: flex-start; padding: 12px; padding-top: max(12px, env(safe-area-inset-top)); }
.arHint { margin: 0; padding: 8px 12px; background: rgb(13 29 38 / .82); color: #fff; border-radius: 12px; font-size: .9rem; flex: 1; }
.arRead { margin: 0 12px auto; padding: 8px 12px; background: rgb(13 29 38 / .78); color: #fff; border-radius: 12px; font-size: .92rem; width: max-content; max-width: calc(100% - 24px); }
.arRead:empty { display: none; }
.arBtn { min-height: 46px; min-width: 46px; padding: 8px 14px; border-radius: 12px; border: 1px solid rgb(255 255 255 / .35); background: rgb(0 76 140 / .92); color: #fff; font: 700 .9rem var(--sissae-fuente); cursor: pointer; }
.arbar { padding: 10px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgb(13 29 38 / .85), rgb(13 29 38 / 0)); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
html.in-ar, html.in-ar body { background: transparent !important; }
html.in-ar .arModal, html.in-ar .top, html.in-ar .nav, html.in-ar main { visibility: hidden; }

footer.site { text-align: center; font-size: .8rem; color: var(--sissae-texto-secundario); padding: 18px 12px 100px; }
@media (min-width: 900px) { footer.site { padding-bottom: 24px; } }
@media (prefers-color-scheme: dark) {
  :root { --link: #5CD3D6; --chip: #173845; --okbg: #12372c; --warnbg: #3d2c12; --errbg: #3f1714; }
  .tag.ok, .step .st.ok, .kpi.ok b, .verdict.ok { color: #6FD3A8; } .tag.err, .kpi.err b, .verdict.err { color: #FF9D8F; } .tag.warn, .kpi.warn b, .verdict.warn { color: #F5C16C; }
  .arStage { background: radial-gradient(ellipse at 50% 30%, #1d3a47, #0d1d26); }
  .btn-sec { border-color: #5CD3D6; } .chip[aria-pressed="true"], .tabs button[aria-selected="true"] { background: #10749F; border-color: #10749F; }
  .sig { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .nav, .top .iconbtn { display: none; } }

img, canvas, video, svg { max-width: 100%; }
.card, .item, .q, label.f { min-width: 0; overflow-wrap: anywhere; }
input, select, textarea { min-width: 0; max-width: 100%; }
.top .appsub.long { font-size: .7rem; line-height: 1.25; }
@media (max-width: 899px) { .top { position: relative; } .top .appname { font-size: .9rem; } .top.custom .logo { max-width: 32vw; height: 40px; } }
.item { grid-template-columns: auto minmax(0, 1fr) auto; } .item .t, .item .s { display: block; }
.logoPrev { flex-wrap: wrap; } .logoPrev img { max-width: min(220px, 100%); } button { overflow-wrap: normal; }
@media (max-width: 599px) { .item > .row { grid-column: 1 / -1; justify-content: flex-end; display: flex; gap: 8px; } }
/* Zoom del visor 3D y escala en AR */
.zoomBar { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.zbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgb(24 50 63 / .18); background: rgb(255 255 255 / .92); color: var(--sissae-azul-marino, #004C8C); font: 700 1.25rem/1 var(--sissae-fuente); cursor: pointer; box-shadow: 0 2px 8px rgb(13 29 38 / .12); }
.zbtn:focus-visible { outline: 3px solid #5CD3D6; outline-offset: 2px; }
.zoomBar[hidden], .arScale[hidden] { display: none; }
.arScale { display: flex; gap: 6px; align-self: flex-end; margin: 0 12px; }
.arScale .arBtn { min-width: 48px; font-size: 1.1rem; }
.arPct { min-width: 72px !important; font-size: .95rem !important; }
.arPct.warn { background: rgb(166 96 0 / .95); }
.ver { display: inline-block; margin-left: 6px; opacity: .7; font-size: .8em; white-space: nowrap; }

.backbtn { display: none; }
@media (max-width: 999px) { .revsplit.has-sel .listcol { display: none; } .revsplit .backbtn { display: inline-block; } .split > * + * { margin-top: 14px; } }
@media (min-width: 1000px) { .revsplit .detcol { position: sticky; top: 130px; max-height: calc(100dvh - 150px); overflow: auto; border-radius: var(--sissae-radio-md); } }
.checks { margin-top: 8px; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.subtabs button { border: 1px solid var(--sissae-borde, #D6E3E8); background: #fff; color: #18323F; border-radius: 999px; padding: 8px 14px; font-weight: 600; min-height: 40px; cursor: pointer; }
.subtabs button[aria-selected="true"] { background: #004C8C; color: #fff; border-color: #004C8C; }
.matrix { display: grid; grid-template-columns: 26px repeat(5, minmax(0, 1fr)); gap: 3px; font-size: 12px; max-width: 360px; }
.matrix > span { display: grid; place-items: center; min-height: 34px; border-radius: 6px; font-weight: 700; color: #fff; }
.matrix > span.ax { color: #5E7480; background: transparent; font-weight: 600; }
.matrix > span.sel { outline: 3px solid #18323F; outline-offset: 1px; }
.lvl { display: inline-block; padding: 3px 10px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 13px; }
.chk912 { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.chk912 li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px; font-size: 14px; align-items: start; }
.chk912 li b.okc { color: #167A5B; } .chk912 li b.noc { color: #B42318; }
.areas-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 10px; }
.segl { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; padding: 0; list-style: none; }
.segl li { font-size: 13px; border-left: 3px solid #2497B2; padding: 2px 8px; background: #F8F5F3; border-radius: 0 6px 6px 0; }
.qtr { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.areabars .r { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 48px; gap: 8px; align-items: center; font-size: 14px; margin: 4px 0; }
.areabars .bar { height: 12px; }
.seg button[aria-pressed="true"][data-v="abierto"] { background: #B42318; color: #fff; }
.seg button[aria-pressed="true"][data-v="proceso"] { background: #A66000; color: #fff; }
.seg button[aria-pressed="true"][data-v="cerrado"] { background: #167A5B; color: #fff; }
.seg button[aria-pressed="true"][data-v="ordinario"], .seg button[aria-pressed="true"][data-v="extraordinario"] { background: #004C8C; color: #fff; }
.seg { max-width: 100%; }
.seg button { padding: 0 10px; }
.between { justify-content: space-between; align-items: center; }
.lvlrow { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 4px 0 10px; color: #18323F; }
