.matrix-card{padding:20px}.matrix-filters{display:flex;gap:12px;align-items:start;flex-wrap:wrap;margin:20px 0}.matrix-filters>.field{min-width:140px;flex:1}.matrix-multi{border:1px solid #ced8e8;border-radius:6px;padding:11px;background:white;font-size:12px;max-height:220px;overflow:auto;min-width:150px}.matrix-multi summary{cursor:pointer}.matrix-multi label{display:flex;gap:8px;margin:12px 0;white-space:normal}.matrix-multi input{width:auto}.matrix-card table{min-width:1700px}.matrix-card th{position:sticky;top:0;z-index:1}.matrix-card td{vertical-align:top;min-width:80px}.matrix-summary{white-space:pre-wrap;overflow-wrap:anywhere;min-width:160px;max-width:240px}.matrix-card tr.complete>td:not(.status-cell){background:#edf8ed}.matrix-card tr.pending>td:not(.status-cell){background:#fff8d9}.matrix-card tr.empty-row>td:not(.status-cell){background:#fff0f0}.matrix-card tr.late>td:not(.status-cell){background:#fff0dd}.matrix-card tr.unavailable>td:not(.status-cell){background:#edf0f3;color:#667080}.matrix-card td.status-cell{background:#fff}.row-actions{display:grid;gap:8px}.row-actions button{white-space:nowrap}.matrix-dialog{border:1px solid #cbd8e6;border-radius:14px;max-width:1000px;width:90vw;max-height:90vh;overflow:auto;padding:25px;color:#233d61}.matrix-dialog::backdrop{background:#142c4c88}.matrix-dialog .actions{position:sticky;bottom:-25px;background:#fff;padding:20px 0}.matrix-material-results{max-height:200px;overflow:auto;display:grid;gap:8px;margin-bottom:16px}.matrix-material-results button{text-align:left}.matrix-history{position:fixed;right:0;top:0;height:100vh;overflow:auto;z-index:30;width:min(720px,95vw);background:white;box-shadow:-10px 0 40px #1234;padding:24px}.matrix-history .history-entry p{white-space:pre-wrap;overflow-wrap:anywhere}.history-compare{display:grid;grid-template-columns:1fr 1fr;gap:15px}.history-compare>div{background:#f4f7fb;border-radius:8px;padding:12px;min-width:0}.draft-label{font-weight:700;color:#7046a1}.rodizio-dates{font-weight:650;color:#a12f3e;font-size:11px}.matrix-card td.missing-ficha{box-shadow:inset 0 0 0 1px #efb3b3}.matrix-legend .empty{background:#f4bcbc;padding:0}.matrix-legend .pending{background:#e9c65a}.matrix-legend .complete{background:#81b891}.matrix-legend .late{background:#eaa957}.matrix-legend .unavailable{background:#b5bdc6}.matrix-card .table-wrap{max-height:65vh}.matrix-dialog input[readonly],.matrix-dialog textarea[readonly]{background:#edf0f3}.matrix-dialog .preview{margin:18px 0}
.row-actions .template-import{background:#316ed0;color:#fff}
