#collaborators .measures-dashboard{display:grid;min-width:0;gap:14px}
#collaborators .measure-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
#collaborators .measure-kpis article{display:flex;align-items:center;gap:12px;min-height:104px;padding:15px;border:1px solid var(--sc-border);border-radius:14px;background:#fff;box-shadow:var(--sc-shadow-soft)}
#collaborators .measure-kpis i{display:grid;place-items:center;flex:0 0 50px;width:50px;height:50px;border-radius:50%;font-style:normal}.measure-kpis i.is-blue{background:#e5efff;color:#1768dd}.measure-kpis i.is-yellow{background:#fff5d6;color:#e5a400}.measure-kpis i.is-orange{background:#ffedd9;color:#f28a0a}.measure-kpis i.is-red{background:#ffe4e7;color:#ee344b}
#collaborators .measure-kpis svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}#collaborators .measure-kpis span,#collaborators .measure-kpis small{display:block;color:var(--sc-text-secondary);font-size:11px;font-weight:650}#collaborators .measure-kpis strong{display:block;margin-top:2px;font-size:25px;color:var(--sc-text-primary)}
#collaborators .measure-filter-card,#collaborators .measure-table-card{min-width:0;padding:16px;overflow:hidden}#collaborators .measure-filters{display:grid;grid-template-columns:minmax(150px,.9fr) minmax(230px,1.6fr) minmax(160px,.95fr) minmax(290px,1.35fr) auto;gap:11px;align-items:end}#collaborators .measure-filters label{display:grid;gap:6px;font-size:12px;font-weight:700}.measure-period span{display:grid;grid-template-columns:minmax(135px,1fr) minmax(135px,1fr);gap:8px}.measure-period input{min-width:0;font-size:13px}#collaborators .measure-filters .sc-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:42px}#collaborators .measure-filters svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2}
#collaborators .measure-table{min-width:1260px}#collaborators .measure-table th,#collaborators .measure-table td{text-align:center;vertical-align:middle}#collaborators .measure-table th:first-child,#collaborators .measure-table td:first-child{width:88px;white-space:nowrap}#collaborators .measure-table th:nth-child(3),#collaborators .measure-table td:nth-child(3){min-width:270px}#collaborators .measure-table .measure-reason{text-align:left;white-space:normal;min-width:190px}.measure-person-cell{display:flex;align-items:center;gap:9px;text-align:left;min-width:250px}.measure-avatar{width:38px;height:38px;border-radius:8px;object-fit:cover}.measure-photo-fallback{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:#edf3f5}.measure-photo-fallback svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.measure-badge{display:inline-flex;justify-content:center;min-width:75px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.measure-badge.is-leve{background:#fff3cb;color:#a26d00}.measure-badge.is-moderado{background:#ffe8ca;color:#d16600}.measure-badge.is-grave{background:#ffdce0;color:#d92038}.measure-pdf-link{display:inline-flex;align-items:center;gap:5px;color:#174ea6;text-decoration:none;font-weight:750}.measure-pdf-link svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.measure-actions{display:flex;justify-content:center;gap:5px}.measure-actions button{display:inline-flex;align-items:center;gap:4px;padding:6px 7px;border:1px solid #d6e3f8;border-radius:8px;background:#f6f9ff;color:#1760d2;font-weight:750}.measure-actions button.is-danger{border-color:#ffd1d5;background:#fff1f2;color:#d92d3d}.measure-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2}
#measure-form-dialog{width:min(660px,95vw);max-height:94vh;color:var(--sc-text-primary)}#measure-form-dialog .modal{padding:23px}#measure-detail-dialog{width:min(1080px,96vw);max-height:94vh;color:var(--sc-text-primary)}#measure-detail-dialog .modal{padding:22px}.measure-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.measure-modal-heading h3{margin:0;font-size:22px}.measure-modal-heading button{border:0;background:transparent;font-size:26px;color:var(--sc-text-primary)}
.measure-wide-label,.measure-form-grid label{display:grid;gap:6px;margin-bottom:15px;font-size:12px;font-weight:700}.measure-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.measure-form-grid label{margin-bottom:0}.measure-wide-label input,.measure-wide-label select,.measure-wide-label textarea,.measure-form-grid input{width:100%}.measure-levels{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0;padding:0;border:0}.measure-levels legend{grid-column:1/-1;margin-bottom:6px;font-size:12px;font-weight:700}.measure-levels label{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;border:1px solid var(--sc-border);border-radius:10px;font-weight:750}.measure-levels input{position:absolute;opacity:0}.measure-levels label:has(input:checked){border-color:#2563eb;box-shadow:0 0 0 2px #dbeafe}.measure-levels span{width:15px;height:15px;border-radius:50%}.measure-levels .is-leve{background:#facc15}.measure-levels .is-moderado{background:#fb8c00}.measure-levels .is-grave{background:#f43f5e}.measure-upload{display:grid;gap:7px;font-size:12px;font-weight:700}.measure-upload>span{display:grid;place-items:center;gap:5px;min-height:112px;border:1.5px dashed #abc8eb;border-radius:10px;background:#f7fbff;color:#1760d2}.measure-upload svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8}.measure-upload small{color:var(--sc-text-secondary);font-weight:500}.measure-upload input{width:100%;margin-top:7px}#measure-form-error{min-height:20px;margin:8px 0;color:var(--sc-danger)!important}
.measure-detail-grid{display:grid;grid-template-columns:1.25fr 1.05fr .9fr;gap:12px}.measure-detail-grid>section{overflow:hidden;border:1px solid var(--sc-border);border-radius:12px;background:#fff}.measure-detail-grid h4{margin:0;padding:10px 12px;background:#edf5f7;font-size:13px}.measure-detail-grid dl{display:grid;grid-template-columns:145px 1fr;gap:9px;margin:0;padding:14px;font-size:12px}.measure-detail-grid dt{font-weight:750}.measure-detail-grid dd{margin:0}.measure-detail-person{display:flex;gap:13px;padding:15px}.measure-detail-photo{width:100px;height:115px;border-radius:9px;object-fit:cover}.measure-detail-person>div{display:grid;align-content:start;gap:9px}.measure-detail-person strong{font-size:17px}.measure-detail-person span{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--sc-text-secondary)}.measure-detail-person svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.measure-document-card{display:grid;place-items:center;gap:8px;min-height:245px;padding:15px;text-align:center;background:#f7fafc}.measure-document-card>b{display:grid;place-items:center;width:52px;height:62px;border-radius:7px;background:#f43f5e;color:white}.measure-document-card strong{overflow-wrap:anywhere}.measure-document-card small{color:var(--sc-text-secondary)}.measure-document-card>div{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}.measure-document-card .sc-button{display:flex;align-items:center;gap:5px;padding:7px}.measure-document-card svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2}.measure-detail-actions{display:flex;justify-content:flex-end;margin-top:14px}.measure-loading{min-height:220px;display:grid;place-items:center}
@media(max-width:1450px){#collaborators .measure-kpis{grid-template-columns:repeat(3,1fr)}#collaborators .measure-filters{grid-template-columns:repeat(3,1fr)}}@media(max-width:1050px){.measure-detail-grid{grid-template-columns:1fr 1fr}.measure-detail-grid>section:last-child{grid-column:1/-1}}@media(max-width:700px){#collaborators .measure-kpis,#collaborators .measure-filters,.measure-form-grid,.measure-levels,.measure-detail-grid{grid-template-columns:1fr}.measure-period span{grid-template-columns:1fr}.measure-detail-grid>section:last-child{grid-column:auto}.measure-detail-grid dl{grid-template-columns:1fr}.measure-detail-grid dd{margin-bottom:5px}}

/* Master List density for Medidas administrativas */
#collaborators .measures-dashboard{gap:12px;padding:16px;overflow:visible}
#collaborators .measures-dashboard .collaborator-submodule-heading{margin-bottom:2px}
#collaborators .measure-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#collaborators .measure-kpis article{min-height:72px;padding:9px 10px;border-radius:12px;box-shadow:none}
#collaborators .measure-kpis i{flex-basis:38px;width:38px;height:38px}
#collaborators .measure-kpis svg{width:20px;height:20px}
#collaborators .measure-kpis span,#collaborators .measure-kpis small{font-size:10px}
#collaborators .measure-kpis strong{font-size:20px}
#collaborators .measure-filters{grid-template-columns:minmax(135px,.8fr) minmax(210px,1.35fr) minmax(145px,.85fr) minmax(250px,1.25fr) auto;gap:9px;padding:11px 12px;border:1px solid var(--sc-border);border-radius:12px;background:#f8fbfb}
#collaborators .measure-filters label{gap:5px;font-size:11px}
#collaborators .measure-filters .sc-input,#collaborators .measure-filters .sc-select,#collaborators .measure-filters .sc-button{height:38px;min-height:38px;padding-block:6px;font-size:12px}
#collaborators .measure-period span{grid-template-columns:repeat(2,minmax(115px,1fr));gap:6px}
#collaborators .measures-dashboard>.sc-data-table-wrap{border:1px solid var(--sc-border);border-radius:12px;overflow-x:auto}
#collaborators .measure-table{width:100%;min-width:0!important;table-layout:fixed}
#collaborators .measure-table th,#collaborators .measure-table td{height:46px;padding:7px 6px;font-size:10.5px;line-height:1.2;white-space:normal;overflow-wrap:break-word}
#collaborators .measure-table th{font-size:10.5px}
#collaborators .measure-table th:nth-child(1),#collaborators .measure-table td:nth-child(1){width:7%;min-width:0}
#collaborators .measure-table th:nth-child(2),#collaborators .measure-table td:nth-child(2){width:6%}
#collaborators .measure-table th:nth-child(3),#collaborators .measure-table td:nth-child(3){width:18%;min-width:0}
#collaborators .measure-table th:nth-child(4),#collaborators .measure-table td:nth-child(4){width:11%}
#collaborators .measure-table th:nth-child(5),#collaborators .measure-table td:nth-child(5){width:13%}
#collaborators .measure-table th:nth-child(6),#collaborators .measure-table td:nth-child(6){width:9%}
#collaborators .measure-table th:nth-child(7),#collaborators .measure-table td:nth-child(7){width:17%;min-width:0;text-align:center}
#collaborators .measure-table th:nth-child(8),#collaborators .measure-table td:nth-child(8){width:7%}
#collaborators .measure-table th:nth-child(9),#collaborators .measure-table td:nth-child(9){width:12%}
#collaborators .measure-person-cell{justify-content:flex-start;gap:7px;min-width:0;text-align:left}
#collaborators .measure-avatar,#collaborators .measure-photo-fallback{flex:0 0 30px;width:30px;height:30px}
#collaborators .measure-badge{min-width:0;padding:5px 7px;font-size:10px}
#collaborators .measure-pdf-link{display:inline-grid;place-items:center;width:30px;height:30px;margin:auto;padding:0;border:1px solid var(--sc-border);border-radius:8px;background:#fff}
#collaborators .measure-actions{display:flex;flex-flow:row nowrap;align-items:center;justify-content:center;gap:5px}
#collaborators .measure-actions button{display:inline-grid;place-items:center;width:30px;height:30px;padding:0;font-size:0}
#collaborators .measure-actions svg{width:15px;height:15px}
#collaborators .measure-empty-state{display:grid;place-items:center;gap:4px;min-height:88px;color:var(--sc-text-secondary);font-size:12px}
#collaborators .measure-empty-state svg{width:24px;height:24px;fill:none;stroke:#0d5cab;stroke-width:1.8}
#collaborators .measure-empty-state strong{color:var(--sc-text-primary);font-size:13px}
@media(max-width:1300px){#collaborators .measure-kpis{grid-template-columns:repeat(3,minmax(0,1fr))}#collaborators .measure-filters{grid-template-columns:repeat(3,minmax(0,1fr))}#collaborators .measure-table{min-width:980px!important}}
@media(max-width:700px){#collaborators .measures-dashboard{padding:12px}#collaborators .measure-kpis,#collaborators .measure-filters{grid-template-columns:1fr}}
