/* Módulo "OKR y proyectos del semestre" (usa los colores y componentes de pmdi.css) */
.tb .cab-acc{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;align-items:flex-end}
.tb .cab-acc>div:first-child{flex:1 1 520px}
.tb .rep-cab{border-bottom:3px solid var(--navy);padding-bottom:8px;margin-bottom:14px}
.tb .fuente{font-size:12.5px;color:var(--muted);margin-bottom:10px}
.tb .fuente.temporal{background:#fff7da;border:1px solid #ecd98a;border-radius:10px;padding:8px 12px;color:var(--navy);font-weight:600}
.tb #avisos ul{margin:6px 0 0;padding-left:18px}
.tb .sem{display:flex;gap:6px;margin-bottom:14px}
.tb .sem button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 18px;font-weight:800;cursor:pointer;color:var(--navy)}
.tb .sem button.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.tb .tab-num{font-size:11px;color:var(--blue);margin-right:2px}
.tb .tabs button{padding:10px 9px;font-size:13px}
.tb .cuenta{background:var(--bad);color:#fff;border-radius:999px;font-size:11px;padding:1px 7px;margin-left:4px}
.tb .section-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:14px}
.tb .section-title h2{font-size:22px}.tb .section-title p{margin:0}
.tb section>.grid,.tb section>.caja,.tb section>.hero,.tb #ficha>.grid,.tb #ficha>.card,.tb #compGrid>*,.tb section>.ind-grid,.tb .g-matriz .caja{margin-bottom:16px}
.tb .caja{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 18px;min-width:0}
.tb .caja-cab{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.tb .caja-cab h3{margin:0;font-size:15.5px;font-weight:800}
.tb .pill{background:#eef4f8;border-radius:999px;padding:3px 11px;font-size:12px;font-weight:700;color:var(--navy);white-space:nowrap}
.tb .vacio{padding:18px;text-align:center;color:var(--muted);font-size:13.5px}
.tb .g-2-1{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.tb .franja{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:22px 28px}
.tb .franja p{font-size:17px;max-width:880px}.tb .franja em{font-style:normal;color:var(--lime);font-weight:800}
.tb .franja strong{font-size:42px;font-weight:900;color:var(--lime);white-space:nowrap;position:relative}
.tb .estados{margin-bottom:14px;align-items:center;font-size:13px}
.tb .kpi{border-left:5px solid var(--blue)}.tb .kpi.k-ok{border-left-color:var(--ok)}.tb .kpi.k-warn{border-left-color:var(--warn)}.tb .kpi.k-danger{border-left-color:var(--bad)}
.tb .kpi b small{font-size:17px;font-weight:700;color:var(--muted)}
.tb .kpi span{display:block}.tb .kpi .kpi-label{font-weight:700;color:var(--navy)}
.tb .kpi .bx b{position:absolute;font-size:0}.tb .kpi .estado-tag{display:inline-block}
.tb .kpi-trend.danger{color:var(--bad)}.tb .kpi-trend.ok{color:var(--ok)}
.tb .leyenda .linea{width:3px;height:14px;background:var(--navy);border-radius:0}
/* barras */
.tb .bar-row{display:grid;grid-template-columns:62px minmax(0,1fr) 62px;gap:10px;align-items:center;width:100%;background:none;border:0;text-align:left;padding:7px 4px;border-radius:8px;cursor:pointer;color:var(--ink)}
.tb .bar-row:hover{background:#f2f7fa}.tb .bar-row .lbl{font-weight:800;font-size:12.5px}
.tb .bar-cuerpo,.tb .bar-nom{display:block;min-width:0}.tb .bar-nom{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:3px}
.tb .bar-track{display:block;position:relative;height:14px;background:#e7edf1;border-radius:6px}
.tb .bar-fill{display:block;height:100%;border-radius:6px;background:var(--blue)}
.tb .bar-fill.ok,.tb .ind-fill.ok{background:var(--ok)}.tb .bar-fill.warn,.tb .ind-fill.warn{background:var(--warn)}.tb .bar-fill.danger,.tb .ind-fill.danger{background:var(--bad)}.tb .ind-fill.info{background:var(--blue)}
.tb .bar-fill.nodata{background:repeating-linear-gradient(45deg,#d5dce1 0 6px,#e7edf1 6px 12px)}
.tb .bar-target{position:absolute;top:-4px;bottom:-4px;width:3px;margin-left:-1px;background:var(--navy)}
.tb .bar-value{font-weight:900;text-align:right;font-size:15px}
.tb .donut-wrap{display:flex;flex-direction:column;align-items:center;gap:14px}
.tb .d-num{font-size:32px;font-weight:900;fill:#172129}.tb .d-lbl{font-size:11px;fill:#5b6872}
.tb .donut-ley{width:100%}.tb .donut-ley b{margin-left:auto}
/* etiquetas */
.tb .estado-tag{display:inline-block;border-radius:999px;padding:2px 9px;font-size:11.5px;font-weight:800;white-space:nowrap;border:1px solid transparent}
.tb .estado-tag.completado{background:#e4f4ec;color:#1d6b47;border-color:#b9e2cc}
.tb .estado-tag.entiempo{background:#e5f4fc;color:#12638c;border-color:#bfe3f5}
.tb .estado-tag.enriesgo{background:#fdf3da;color:#8a6400;border-color:#efd991}
.tb .estado-tag.atrasado{background:#fdeae6;color:#a5321f;border-color:#f3c2b8}
.tb .estado-tag.noiniciado{background:#eef1f3;color:#5b6872}
.tb .estado-tag.sinreporte{background:#e9ecef;color:#4d5963;border:1px dashed #9aa6ae}
.tb .rep-tag,.tb .anexo-tag,.tb .frente-tag,.tb .tipo-pill{display:inline-block;font-size:11px;font-weight:700;border-radius:6px;padding:1px 7px;background:#eef4f8;color:var(--navy);vertical-align:1px}
.tb .rep-realizado{background:#e4f4ec;color:#1d6b47}.tb .rep-endesarrollo{background:#e5f4fc;color:#12638c}.tb .rep-sinreporte{background:#eef1f3;color:#5b6872}
.tb .frente-tag{background:var(--navy);color:#fff}.tb .anexo-tag.pend{background:#fdf3da;color:#8a6400}
.tb .mini.aviso-mini{background:#fdf3da;color:#8a6400}
.tb .mini{white-space:normal;display:inline-block;margin-bottom:3px}
/* misiones */
.tb .g-matriz{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:16px;align-items:start}
.tb table.matriz th span{font-weight:600}.tb table.matriz th.fil{white-space:normal}
.tb table.matriz td{height:50px}
.tb .barras .fila{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 48px;font-size:12.5px}
/* cronograma */
.tb .gantt{--g-nom:330px;position:relative}
.tb .gantt .g-fila{grid-template-columns:var(--g-nom) 1fr}
.tb .gantt .g-fila.l1{background:#e9f2f8;font-weight:900}.tb .gantt .g-fila.l2{font-weight:700;background:#f6f9fb}
.tb .gantt .g-fila.l3 .g-nom{padding-left:30px;color:var(--muted)}.tb .gantt .g-fila.l2 .g-nom{padding-left:18px}
.tb .gantt .g-cab{background:#f0f4f7;font-weight:800}
.tb .gantt .g-bar{cursor:help}.tb .gantt .g-bar i{border-radius:3px 0 0 3px}
.tooltip{position:fixed;z-index:70;max-width:320px;background:var(--navy);color:#fff;border-radius:10px;padding:10px 13px;font-size:12.5px;pointer-events:none;opacity:0;visibility:hidden}
.tooltip.show{opacity:1;visibility:visible}.tooltip .meta{color:var(--lime);font-weight:700;margin-top:3px}.tooltip .nota{margin-top:8px;border-top:1px solid rgba(255,255,255,.25);padding-top:8px}
/* ficha */
.tb .obj-selector{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin-bottom:16px}
.tb .obj-btn{text-align:left;background:#fff;border:1px solid var(--line);border-radius:14px;padding:11px 13px;cursor:pointer;color:var(--ink);display:flex;flex-direction:column;gap:4px}
.tb .obj-btn:hover{border-color:var(--blue)}.tb .obj-btn.active{background:var(--navy);color:#fff;border-color:var(--navy)}
.tb .obj-num{font-size:11.5px;font-weight:800;letter-spacing:.08em;color:var(--blue)}.tb .obj-btn.active .obj-num{color:var(--lime)}
.tb .obj-name{font-weight:700;font-size:13px;line-height:1.3;flex:1}.tb .obj-progress{font-size:12px;opacity:.75}
.tb .ficha-cab{border-left:5px solid var(--blue)}
.tb .ficha-tit{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap}.tb .ficha-tit>div{flex:1 1 480px}
.tb .ficha-tit h3{margin:2px 0 8px;font-size:21px;font-weight:900;line-height:1.25}
.tb dl{margin:0}.tb dt{font-size:11.5px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.tb dd{margin:1px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.tb .ficha-datos{display:flex;flex-wrap:wrap;gap:10px 34px;margin-top:12px;font-size:13.5px}
.tb .obs{font-size:13px;margin-bottom:0}.tb .nota-ficha{font-size:13px;margin:-4px 0 10px}
.tb .matrix{padding:6px 8px}
.tb .matrix-row{display:grid;grid-template-columns:minmax(0,1fr) 150px 56px 110px;gap:12px;align-items:center;padding:8px 10px;font-size:13.5px}
.tb .matrix-row.l2{background:#e9f2f8;border-radius:10px;font-weight:800;margin-top:6px}
.tb summary.matrix-row{cursor:pointer;list-style:none;border-bottom:1px solid var(--line)}.tb summary::-webkit-details-marker{display:none}
.tb summary.matrix-row:hover{background:#f7fafc}
.tb summary .matrix-name{padding-left:16px;position:relative}.tb summary .matrix-name::before{content:"▸";position:absolute;left:0;color:var(--blue)}.tb details[open] summary .matrix-name::before{content:"▾"}
.tb .matrix-mini-bar{display:block;height:9px;background:#e7edf1;border-radius:5px;overflow:hidden}.tb .matrix-mini-bar i{display:block;height:100%}
.tb .matrix-pct{text-align:right;font-weight:800}
.tb .act-det{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;padding:12px 16px 14px 36px;background:#f7fafc;font-size:13px}
/* indicadores e hitos */
.tb .fchips{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.tb .fchip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 13px;font-weight:700;cursor:pointer;color:var(--navy)}.tb .fchip.active{background:var(--navy);color:#fff}
.tb .ind-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.tb .ind-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;break-inside:avoid}
.tb .ind-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:6px}.tb .ind-kr{font-weight:800;font-size:13.5px}
.tb .ind-row{display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:12px;padding:9px 0;border-top:1px solid var(--line)}
.tb .ind-name{font-size:13.5px;font-weight:600}.tb .ind-sub,.tb .ind-note{font-size:12px;color:var(--muted);margin-top:2px}
.tb .ind-val{text-align:right;font-weight:900;font-size:18px}.tb .ind-val.sr{font-size:13px;color:var(--muted)}.tb .ind-meta{font-size:12px;font-weight:600;color:var(--muted)}
.tb .ind-bar{height:7px;background:#e7edf1;border-radius:4px;overflow:hidden;margin-top:5px}.tb .ind-fill{height:100%}.tb .ind-pct{font-size:11.5px;color:var(--muted)}
.tb .hito-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.tb .hito-date{text-align:center;background:#eef4f8;border-radius:10px;padding:4px}.tb .hito-date b{display:block;font-size:17px;line-height:1.1}.tb .hito-date span{font-size:11px;color:var(--muted)}
.tb .hito-name{font-weight:700;font-size:13.5px}.tb .hito-sub,.tb .hito-rel{font-size:12px;color:var(--muted)}.tb .hito-right{text-align:right}
/* pendientes y alertas */
.tb .buscador{margin-bottom:12px}.tb .buscador input[type=search]{flex:1 1 280px;width:auto}
.tb .tabla-wrap.alta{max-height:75vh;overflow:auto}
.tb td.larga{min-width:170px;white-space:pre-line;overflow-wrap:anywhere;font-size:12.5px}
.tb table.pend{min-width:760px;table-layout:fixed;width:100%}.tb table.pend th:nth-child(1){width:28%}.tb table.pend th:nth-child(2){width:14%}.tb table.pend th:nth-child(3){width:23%}
.tb table.pend td.pa-nom{white-space:normal}.tb table.pend td.pa-nom b,.tb table.pend td.pa-nom span{display:block}.tb table.pend td.pa-nom span{font-size:12px;margin:2px 0}.tb table.pend td.pa-est>*{display:table;margin-bottom:5px}
.tb .recorte{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}.tb .recorte.abierto{display:block}
.tb .ver-mas{border:0;background:none;padding:2px 0;color:var(--blue);font:inherit;font-weight:800;cursor:pointer}.tb td.fuerte{font-weight:700;min-width:200px;white-space:normal}.tb td.code{white-space:nowrap;color:var(--muted)}
.tb .link-btn{color:var(--blue);font-weight:800;text-decoration:none;white-space:nowrap}
.tb .alert-row{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.tb .alert-row.is-hito{border-left:3px solid var(--lime);padding-left:9px}
.tb .alert-name{font-weight:700;font-size:13.5px}.tb .alert-meta{font-size:12px;color:var(--muted);font-weight:500}
.tb .alert-days{text-align:right;font-size:20px;font-weight:900}.tb .alert-days.danger{color:var(--bad)}.tb .alert-days.warn{color:#b98300}.tb .alert-days.info{color:var(--blue)}
/* comparativo */
.tb .comp-big{font-size:40px;font-weight:900;line-height:1}.tb .comp-big small{font-size:20px;color:var(--muted)}
.tb .comp-nums{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:14px 0}.tb .comp-nums b{display:block;font-size:21px;font-weight:900}.tb .comp-nums span{font-size:12px;color:var(--muted)}
.tb .stack{display:flex;height:14px;border-radius:7px;overflow:hidden;background:#e7edf1}.tb .stack span{display:block}
.tb .stack-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;margin:8px 0 12px}.tb .stack-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px}
.tb .comp-obj{display:grid;grid-template-columns:52px minmax(0,1fr) 50px;gap:4px 10px;align-items:center;font-size:12.5px;margin-top:9px}.tb .comp-obj-n{font-weight:800}.tb .comp-obj b{text-align:right}
.tb .comp-obj .bar-track{height:10px}.tb .comp-obj-t{grid-column:2/-1;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb .tl-axis{display:grid;font-size:11.5px;color:var(--muted);border-bottom:1px solid var(--line)}.tb .tl-axis span{border-left:1px solid var(--line);padding-left:3px}
.tb .tl-track{position:relative;height:70px}.tb .tl-bar{position:absolute;height:24px;border-radius:7px;color:#fff;font-size:12px;font-weight:800;padding:2px 9px;overflow:hidden}.tb .tl-bar.s1{top:8px;background:var(--navy)}.tb .tl-bar.s2{top:38px;background:var(--blue)}.tb .tl-today{position:absolute;top:0;bottom:0;width:2px;background:var(--bad)}
body[data-sem="s1"] .col-rep{display:none}
/* guías */
.tb .guia-toggle{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 14px 6px 8px;font-weight:800;font-size:12.5px;cursor:pointer;color:var(--navy);white-space:nowrap}
.tb .guia-toggle .icon{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--blue);color:#fff;font-weight:900}
.tb .guia-toggle.active{background:var(--navy);color:#fff}
.tb .guia-box{display:none;background:#fff;border:1px solid #bfe3f5;border-left:5px solid var(--blue);border-radius:14px;padding:16px 22px;margin-bottom:18px;font-size:13.5px}
.tb .guia-box.show{display:block}.tb .guia-box h4{margin:14px 0 6px;font-size:14.5px}.tb .guia-box h4:first-child{margin-top:0}.tb .guia-box h4 em{font-style:normal;color:var(--blue)}
.tb .guia-box p{margin:0 0 8px}.tb .guia-box ul{margin:0 0 8px;padding-left:20px}.tb .guia-box code{background:#eef4f8;border-radius:5px;padding:0 5px}
.tb .guia-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tb .guia-card{background:var(--paper);border-radius:10px;padding:10px 13px}.tb .guia-card .ttl{font-weight:800}.tb .guia-card p{margin:3px 0 0}
.tb .guia-color-row{display:flex;gap:8px;align-items:center;margin:3px 0}.tb .guia-color-row .swatch{width:12px;height:12px;border-radius:3px;flex:none}
.tb .sin-datos{text-align:center;padding:40px;border:2px dashed var(--blue)}
@media (max-width:1000px){.tb .g-2-1,.tb .g-matriz{grid-template-columns:1fr}.tb .ind-grid{grid-template-columns:1fr}}
@media (max-width:760px){
  .tb .gantt{--g-nom:180px;min-width:620px}
  .tb .matrix-row{grid-template-columns:minmax(0,1fr) 52px}.tb .matrix-row .matrix-mini-bar,.tb .matrix-row>:last-child{display:none}
  .tb .act-det,.tb .guia-grid{grid-template-columns:1fr}.tb .comp-nums{grid-template-columns:repeat(2,1fr)}
  .tb .franja{flex-direction:column;align-items:flex-start}
}
/* guía para construir el Excel */
.tb main.con-guia #contenido,.tb main.con-guia #sinDatos{display:none!important}
.tb .gx-cab{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:flex-start;margin-bottom:12px}.tb .gx-cab>div:first-child{flex:1 1 420px}.tb .gx-cab h2{font-size:22px}
.tb .gx-indice{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:16px}
.tb .gx-sec{margin-bottom:16px;scroll-margin-top:12px}.tb .gx-sec h3{margin:0 0 10px;font-size:16px;font-weight:800}.tb .gx-sec .tabla-wrap{margin-bottom:10px}
.tb table.gx{table-layout:fixed;width:100%;min-width:600px}.tb table.gx th:nth-child(1){width:25%}.tb table.gx th:nth-child(2){width:43%}
.tb table.gx td,.tb table.gx td:first-child{white-space:normal;overflow-wrap:anywhere}.tb table.gx td:first-child{font-weight:700}
.tb .gx-sec li{margin-bottom:5px}.tb ul.gx-check{list-style:none;padding-left:0}.tb ul.gx-check li::before{content:"☐ ";font-weight:800}
@media print{
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .tb .guia-box,.tb .guia-toggle,.tooltip{display:none!important}
  .tb .tabla-wrap.alta{max-height:none;overflow:visible}
  .tb table.gx{min-width:0;font-size:11px}.tb .gx-sec{break-inside:auto}.tb .gx-sec h3{break-after:avoid}.tb .gx-sec tr{break-inside:avoid}
  .tb .recorte{display:block}.tb table.pend{min-width:0}
  .tb .caja{border-color:#ccc}.tb .matrix,.tb .tabla-wrap{overflow:visible}
  .tb .g-2-1,.tb .g-matriz{grid-template-columns:1fr}
  .tb .gantt{--g-nom:230px;min-width:0;font-size:10.5px}
  .tb .hero{background:#fff;color:var(--ink);border:2px solid var(--navy)}.tb .hero p{color:var(--ink)}.tb .franja em,.tb .franja strong{color:var(--navy)}.tb .hero::before{display:none}
  @page{margin:12mm}
}
