body.map-mode #mapView .map-attendance-summary.insights-panel{width:clamp(290px,26vw,380px);opacity:1;top:110px;bottom:30px}.insights-panel .map-summary-body{overflow:auto;padding:12px}.insights-unit{display:grid;gap:6px;font-size:12px;margin-bottom:12px}.insights-unit select{background:#122c49;color:#fff;border:1px solid #526880;border-radius:7px;padding:8px;width:100%}.insights-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.insight-card{width:100%;display:grid;grid-template-columns:1fr auto;gap:7px;text-align:left;color:#eaf4ff;background:#143250;border:1px solid #3b5a79;border-radius:10px;padding:11px;margin:0 0 8px;cursor:pointer;font:inherit}.insight-card:hover,.insight-card:focus-visible{background:#214966;border-color:#7dd3fc}.insight-card span{font-size:12px;line-height:1.35}.insight-card strong{font-size:24px;color:#7dd3fc}.insight-card small{grid-column:1/-1;line-height:1.5;font-size:10px;color:#c3d8e9}.insight-card em{grid-column:1/-1;font-style:normal;font-size:10px;color:#93c5fd}.insights-panel h4{font-size:12px;margin:16px 0 8px}.map-insights-dialog{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;padding:24px;background:#07182c;color:#eaf4ff;box-sizing:border-box;overflow:hidden}.map-insights-dialog[open]{display:flex;flex-direction:column;gap:18px}.map-insights-dialog::backdrop{background:#07182c}.map-insights-dialog header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.map-insights-dialog h2{margin:7px 0;font-size:24px}.map-insights-dialog p{margin:0;color:#aec7dc}.map-insights-dialog button{background:#214966;border:1px solid #5d829f;color:white;padding:10px 18px;border-radius:8px;cursor:pointer}.insights-tools{display:flex;gap:18px;flex-wrap:wrap}.insights-tools label{display:grid;gap:6px;font-size:12px}.insights-tools input,.insights-tools select{padding:10px;color:white;background:#143250;border:1px solid #526880;border-radius:7px;min-width:220px}.insights-table-wrap{flex:1;min-height:0;overflow:auto}.map-insights-dialog table{width:100%;border-collapse:collapse;font-size:13px}.map-insights-dialog th{text-align:left;position:sticky;top:0;background:#143250;padding:12px;z-index:1}.map-insights-dialog td{padding:12px;border-bottom:1px solid #29435b;vertical-align:top;line-height:1.6}.map-insights-dialog small{display:block;color:#aec7dc}.map-insights-dialog tr:hover td{background:#102c45}@media(max-width:700px){body.map-mode #mapView .map-attendance-summary.insights-panel{width:46vw;right:6px;top:150px}.insights-grid{grid-template-columns:1fr}.map-insights-dialog{padding:12px}.map-insights-dialog h2{font-size:19px}.insights-tools input,.insights-tools select{min-width:150px}.map-insights-dialog table{min-width:850px}}

/* Resumen compacto, con la apariencia del panel original. */
body.map-mode #mapView .map-attendance-summary.insights-panel{width:clamp(270px,23vw,325px);bottom:45px;background:linear-gradient(180deg,rgba(7,24,45,.95),rgba(8,34,64,.92));border-color:rgba(123,166,218,.22);border-radius:18px}
.insights-panel .map-summary-head{padding:14px 15px 10px}.insights-panel .map-summary-head h3{font-size:16px}.insights-panel .map-summary-body{padding:8px 12px}.insights-unit{font-size:10px;color:#9eb9d1;gap:5px;margin:2px 0 10px}.insights-unit select{background:rgba(20,50,80,.45);padding:7px 9px;border-color:#294763;font-size:11px}
.insights-grid{display:block}.insight-card{position:relative;display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;column-gap:8px;row-gap:3px;padding:10px 2px;margin:0;border:0;border-bottom:1px solid rgba(125,168,205,.13);border-radius:0;background:transparent;box-shadow:none;transition:background .15s}
.insight-card::before{content:'↗';grid-column:1;grid-row:1;color:#78a7cd;font-size:14px;text-align:center}.insight-card[data-insight="planned"]::before{content:'◷'}.insight-card[data-insight="marked"]::before{content:'✓';color:#78e4ba}.insight-card[data-insight="marks"]::before{content:'≡'}.insight-card[data-insight="absent"]::before{content:'+'}.insight-card[data-insight="unplanned"]::before,.insight-card[data-insight="rest-marked"]::before{content:'!';color:#e8bc75}.insight-card[data-insight^="place:"]::before{content:'⌖'}.insight-card[data-insight^="absence:"]::before{content:'+'}
.insight-card span{grid-column:2;grid-row:1;font-size:11px;line-height:1.4;color:#deebf5}.insight-card strong{grid-column:3;grid-row:1;font-size:19px;line-height:1.2;color:#b9dcff;font-weight:700}.insight-card small{grid-column:2/4;color:#7f9bb5;font-size:8px;line-height:1.5}.insight-card em{display:none}.insight-card:hover,.insight-card:focus-visible{background:rgba(66,128,170,.14);border-color:rgba(125,168,205,.25);outline:1px solid rgba(125,168,205,.25);outline-offset:-1px;border-radius:6px}
.insight-card[data-insight="marked"]{margin:5px 0;padding:11px 8px;border:1px solid rgba(93,195,176,.12);border-radius:9px;background:rgba(18,59,85,.62)}.insight-card[data-insight="marked"] strong{font-size:25px;color:#78e4ba}.insights-panel h4{font-size:9px;color:#78a7cd;letter-spacing:1px;text-transform:uppercase;margin:16px 2px 4px;font-weight:600}
@media(max-width:700px){body.map-mode #mapView .map-attendance-summary.insights-panel{width:46vw;right:6px}.insight-card{column-gap:5px;grid-template-columns:15px minmax(0,1fr) auto}.insight-card span{font-size:10px}.insight-card small{font-size:7px}.insight-card strong{font-size:17px}}

.insight-place-row{position:relative}.insight-place-row .insight-card{padding-right:48px}.place-list-button{position:absolute;right:0;top:50%;transform:translateY(-50%);border:1px solid #365675;background:rgba(20,50,80,.65);border-radius:5px;padding:5px 4px;font-size:9px;color:#a9c8e2;cursor:pointer}.place-list-button:hover,.place-list-button:focus-visible{color:white;background:#214966}.insight-card.place-selected{background:rgba(56,189,248,.12);border-radius:6px;outline:1px solid rgba(56,189,248,.35)}

.insight-card[data-insight="contact"],.insight-card[data-insight="extra-marked"]{margin:5px 0;padding:11px 8px;border-radius:9px;border:1px solid rgba(232,188,117,.23);background:rgba(93,64,27,.17)}.insight-card[data-insight="contact"]::before{content:'☎';color:#ffd596}.insight-card[data-insight="contact"] strong{color:#ffd596}.insight-card[data-insight="extra-marked"]::before{content:'!';color:#c4b5fd}.insight-card[data-insight="extra-marked"]{border-color:rgba(196,181,253,.23);background:rgba(78,60,115,.17)}.insight-card[data-insight="extra-marked"] strong{color:#c4b5fd}

.map-reconciliation{padding:9px;border:1px solid #36536b;border-radius:8px;background:rgba(21,48,70,.7);margin-bottom:10px}.map-reconciliation h4{margin:0 0 7px}.map-reconciliation p{font-size:11px;margin:6px 0}.map-reconciliation button{display:block;width:100%;text-align:left;padding:5px 0;background:transparent;border:0;color:#d5e7f4;font-size:11px;cursor:pointer}.map-reconciliation button b{display:inline-block;min-width:23px;color:#a7d8ff}.map-reconciliation small{display:block;font-size:9px;line-height:1.5;color:#9cb5c9;margin-top:7px}

/* Slim, dark scrollbar matching the map panel. */
.insights-panel .map-summary-body{scrollbar-width:thin;scrollbar-color:#527b96 #10283c;scrollbar-gutter:stable;overscroll-behavior:contain;color-scheme:dark;padding-right:12px}
.insights-panel .map-summary-body::-webkit-scrollbar{width:10px;height:10px}
.insights-panel .map-summary-body::-webkit-scrollbar-track{background:#10283c;border-radius:10px}
.insights-panel .map-summary-body::-webkit-scrollbar-thumb{background:#527b96;border:2px solid #10283c;border-radius:10px;min-height:40px}
.insights-panel .map-summary-body::-webkit-scrollbar-thumb:hover{background:#80a8c0}
.insights-panel .map-summary-body::-webkit-scrollbar-button{display:none;width:0;height:0}
.insights-panel .map-summary-body::-webkit-scrollbar-corner{background:transparent}

/* Agrupar el turno esperado y separar marcas adicionales y planificación. */
.insights-panel .attendance-today,.insights-panel .attendance-other,.insights-panel .attendance-planning{margin:12px 0 16px;padding:0 0 12px;border-bottom:1px solid rgba(125,168,205,.2)}
.insights-panel .attendance-today h4,.insights-panel .attendance-other h4,.insights-panel .attendance-planning h4{font-size:11px;line-height:1.4;letter-spacing:.2px;text-transform:none;color:#bdd5ea;margin:0 0 8px}
.insights-panel .attendance-today>.insight-card[data-insight="planned"]{background:rgba(31,71,108,.42);border:1px solid #345879;border-radius:9px;padding:12px 8px}
.insights-panel .attendance-today>.insight-card[data-insight="planned"] strong{font-size:25px}
.insights-panel .attendance-parts{margin:7px 0 0 13px;padding-left:10px;border-left:2px solid #345879}
.insights-panel .attendance-parts .insight-card{padding:11px 7px;margin:6px 0;border-radius:8px}
.insights-panel .insight-card[data-insight="planned-marked"]{background:rgba(18,70,65,.35);border:1px solid rgba(93,195,176,.25)}
.insights-panel .insight-card[data-insight="planned-marked"]::before{content:'✓';color:#78e4ba}.insights-panel .insight-card[data-insight="planned-marked"] strong{font-size:24px;color:#78e4ba}
.insights-panel .attendance-other .insight-card[data-insight="marked"]{padding:9px 7px;background:transparent;border:0;margin:4px 0}
.insights-panel .attendance-other .insight-card[data-insight="marked"] strong{font-size:19px;color:#b9dcff}.insights-panel .attendance-other .insight-card[data-insight="marked"]::before{color:#78a7cd}
.insights-panel .insight-card span{font-size:12px}.insights-panel .insight-card small{font-size:10px;line-height:1.5;color:#9fb9cf}
.insights-panel .attendance-equation{font-size:11px;line-height:1.6;margin:9px 3px 0;padding:8px;background:rgba(38,74,104,.25);border-radius:6px;color:#c8dced}
.insights-panel .attendance-equation b{color:#fff;font-weight:700}.insights-panel .attendance-planning-note{font-size:10px;line-height:1.5;margin:6px 4px;color:#9eb8cc}
.insights-panel .attendance-planning .insight-card{border:1px dashed #496681;border-radius:8px;padding:10px 7px}

/* Listados con datos directos y contraste uniforme. */
.map-insights-dialog table{min-width:900px;table-layout:fixed}
.map-insights-dialog thead th{background:#173b58;color:#e1edf7;border-bottom:1px solid #3a5d79;padding:12px 14px;font-size:12px;letter-spacing:.2px}
.map-insights-dialog tbody tr{background:#0d2339}.map-insights-dialog tbody tr:nth-child(even){background:#112d47}.map-insights-dialog tbody tr:hover{background:#183d5c}
.map-insights-dialog tbody td{color:#e5eff7;padding:12px 14px;border-bottom:1px solid #29465f;line-height:1.5;overflow-wrap:anywhere}
.map-insights-dialog th:not(:last-child),.map-insights-dialog td:not(:last-child){border-right:1px solid #29465f}
.map-insights-dialog tbody td b{color:#f1f6fa;font-size:13px}.map-insights-dialog tbody td small{font-size:11px;color:#adc7db;margin-top:3px}
.map-insights-dialog th:nth-child(1){width:23%}
.map-insights-dialog th:nth-child(2){width:7%}
.map-insights-dialog th:nth-child(3){width:11%}
.map-insights-dialog th:nth-child(4){width:12%}
.map-insights-dialog th:nth-child(5){width:16%}
.map-insights-dialog th:nth-child(6){width:12%}
.map-insights-dialog th:nth-child(7){width:19%}
.map-insights-dialog .person-incident{min-width:0}

.insights-panel .attendance-missing-breakdown{margin:0 0 0 10px;padding-left:8px;border-left:1px solid #51647a}
.insights-panel .attendance-missing-breakdown .insight-card{padding:6px 8px;margin:4px 0;min-height:36px}
.insights-panel .attendance-missing-breakdown .insight-card strong{font-size:17px}
.insights-panel .attendance-missing-breakdown .insight-card[data-insight="contact-justified"] strong{color:#9fe2c6}
.insights-panel .attendance-missing-breakdown .insight-card[data-insight="contact-unjustified"] strong{color:#ffd596}
.insights-panel .attendance-missing-breakdown .insight-card:disabled{opacity:.65;cursor:default}
