/* Directorio GRD publico: lo propio de esta pantalla (el resto viene de visor.css). Sin estilos en linea. */
table.tb-dir tbody tr[data-cat] { cursor: pointer; }
table.tb-dir tbody tr[data-cat]:hover { background: #f1f5f9; }
table.tb-dir tbody tr.on { background: #e0f2fe; }
table.tb-dir tbody tr.on td:first-child { color: #0369a1; font-weight: 800; }
table.tb-dir td, table.tb-dir th { padding: 7px 14px; }
table.tb-dir th:last-child, table.tb-dir td:last-child { text-align: center; width: 90px; }
.js-scope:empty { display: none; }
.nodo-h { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 7px; cursor: pointer; }
.nodo-h:hover { background: #f1f5f9; }
.nodo-h .chev { color: #94a3b8; font-size: 10px; width: 10px; text-align: center; transition: transform .15s; }
.nodo-h.open .chev { transform: rotate(90deg); color: #008397; }
.nodo-h .nom { flex: 1; font-weight: 600; color: #1a3038; font-size: 12.5px; }
.nodo-h .cnt { background: #e0f2fe; color: #0369a1; font-weight: 800; font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.nodo-hijos { margin-left: 7px; border-left: 1px dashed #e2e8f0; }
.nodo-hijos[hidden] { display: none; }
.plan-li { padding: 6px 8px 6px 12px; border-bottom: 1px dashed #eef2f6; font-size: 12px; color: #334155; }
.plan-li:last-child { border-bottom: none; }
.plan-li .ent-head { display: block; font-weight: 700; color: #1a3038; font-size: 12px; margin-bottom: 2px; }
.plan-li .plan-sub { padding: 3px 0 3px 10px; border-left: 2px solid #eef2f6; margin: 2px 0 2px 3px; color: #334155; }
.plan-li .plan-sub b { color: #1a3038; font-weight: 600; }
.plan-li .plan-sub .cgo { display: block; color: #64748b; font-size: 11px; line-height: 1.3; }
.plan-li .est-grd { font-size: 10px; font-weight: 700; color: #0369a1; background: #e0f2fe; padding: 1px 6px; border-radius: 8px; white-space: nowrap; }
.sangria-0 { padding-left: 12px; } .sangria-1 { padding-left: 24px; } .sangria-2 { padding-left: 36px; } .sangria-3 { padding-left: 48px; }
.nivel-0 { padding-left: 6px; } .nivel-1 { padding-left: 18px; } .nivel-2 { padding-left: 30px; }
.reg-label { background: transparent; border: none; box-shadow: none; padding: 0; color: #1a3038; font-weight: 700; font-size: 10px; white-space: nowrap; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.reg-label::before { display: none; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; margin-right: 6px; border: 1px solid rgba(0, 0, 0, .15); }
.ena-tipos .et-pill .et-lbl { white-space: nowrap; }
/* Cuadro del mapa: autoridades de la zona */
.leaflet-popup.dir-pop .leaflet-popup-content-wrapper { padding: 0; border-radius: 11px; overflow: hidden; }
.leaflet-popup.dir-pop .leaflet-popup-content { margin: 0; width: 290px !important; font-family: 'Inter', sans-serif; line-height: 1.4; }
.leaflet-popup.dir-pop a.leaflet-popup-close-button { color: #fff; top: 3px; right: 3px; }
.vt-card { width: 290px; white-space: normal; overflow: hidden; border-radius: 11px; font-family: 'Inter', sans-serif; }
.info-box .vt-card { margin: -10px -14px; }
.vt-head { background: #14606f; color: #fff; text-align: center; font-weight: 800; font-size: 11.5px; letter-spacing: .3px; padding: 7px 10px; white-space: nowrap; }
.vt-body { padding: 8px 14px 9px; }
.vt-name { text-align: center; font-weight: 800; font-size: 18px; color: #1a3038; line-height: 1.05; text-transform: uppercase; }
.vt-sub { text-align: center; color: #64748b; font-size: 10.5px; line-height: 1.2; margin: 2px 0 6px; }
.vt-src { margin-top: 5px; font-size: 9.5px; line-height: 1.2; color: #64748b; }
.dir-aut { max-height: 190px; overflow-y: auto; background: #f1f5f9; border-radius: 9px; padding: 2px 10px; white-space: normal; }
.dir-aut .da { padding: 5px 0; line-height: 1.25; }
.dir-aut .da + .da { border-top: 1px solid #e2e8f0; }
.dir-aut .da-n { display: block; font-weight: 800; font-size: 12px; color: #1a3038; }
.dir-aut .da-c { display: block; font-size: 10.5px; color: #0369a1; font-weight: 700; }
.dir-aut .da-e { display: block; font-size: 10px; color: #64748b; }
.dir-mas { margin-top: 5px; font-size: 10px; color: #64748b; line-height: 1.25; }
.dir-tot { margin-top: 7px; font-size: 10.5px; color: #334155; line-height: 1.45; white-space: normal; }
.dir-tot b { display: inline; font-size: 11px; margin: 0; }
@media (max-width: 900px) { .dir-aut { max-height: 120px; } .vt-card { width: 235px; } .info-box .vt-card { margin: -7px -10px; } }
