.school-documents{color:#1e3459;font-family:inherit;font-size:16px;min-width:0}.doc-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.doc-heading h1{font-size:30px;font-weight:800;letter-spacing:-.03em}.doc-heading p{color:#64748b;margin-top:6px}.doc-eyebrow{font-size:11px!important;letter-spacing:.16em;font-weight:800}.doc-panel{padding:22px;background:#fff;border:1px solid #e0e7f0;border-radius:18px;margin-top:18px;min-width:0}.doc-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end}.doc-field{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:600;min-width:0}.doc-field>span{color:#536580}.doc-field input,.doc-field textarea{font-size:16px;min-height:44px}.doc-filter-actions,.doc-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.doc-filter-actions{grid-column:1/-1}.doc-actions button{min-height:40px}.doc-tabs{height:auto;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:5px}.doc-tabs button{padding:12px 16px}.doc-table-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:16px}.doc-table-heading h2{font-weight:800;font-size:18px}.doc-table-heading>span,.doc-muted{color:#64748b;font-size:13px}.doc-muted{display:block;margin-top:4px}.doc-pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:20px}.doc-pager>span{margin-right:auto;color:#64748b;font-size:14px}.doc-status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:5px 11px;font-size:13px;font-weight:700;white-space:nowrap}.doc-status svg{width:16px;height:16px}.doc-status.delivered{background:#eaf8ef;color:#16803c}.doc-status.pending{background:#fff4d7;color:#845410}.doc-note{padding:12px 14px;background:#f4f7fb;border-radius:10px;color:#536580;font-size:14px;line-height:1.6;margin-bottom:16px}.doc-error{background:#fff4d7;color:#744a12;padding:12px 16px;border-radius:12px;margin:12px 0;font-size:15px}.doc-empty{padding:36px 12px;text-align:center;color:#64748b}.doc-dialog{max-height:90dvh;overflow-y:auto;width:min(94vw,720px)!important;max-width:720px!important;z-index:100!important}.doc-student-dialog{width:min(96vw,1120px)!important;max-width:1120px!important}.doc-concept-form{display:grid;gap:18px}.doc-check-group{display:flex;gap:12px 22px;flex-wrap:wrap;font-size:14px}.doc-check-group legend{margin-bottom:10px;font-weight:700}.doc-check-group label{display:flex;gap:9px;align-items:center;min-height:32px}.doc-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.doc-student-title{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 20px}.doc-student-title h2{font-size:23px;font-weight:800}.doc-student-title p{color:#64748b;margin-top:4px}.doc-document-list{display:grid;gap:14px}.doc-document-card{border:1px solid #dce4ef;border-radius:14px;padding:20px;background:#fff}.doc-document-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.doc-document-head h3{font-size:16px;font-weight:800}.doc-document-head small{font-size:12px;color:#64748b}.doc-document-card>p{font-size:14px;margin:10px 0}.doc-file-meta{display:flex;gap:6px 18px;flex-wrap:wrap;font-size:13px;margin-bottom:16px;color:#64748b}.doc-file-meta strong{flex-basis:100%;color:#1e3459;overflow-wrap:anywhere}.doc-expired{color:#9a5d00;font-weight:700}.doc-internal-note{padding:9px 12px;background:#f7f9fc;border-left:3px solid #ffd445;overflow-wrap:anywhere}.doc-version{padding:14px 0;border-bottom:1px solid #e2e8f0}.doc-version p{font-size:13px;color:#64748b;margin:6px 0 10px}.doc-json{background:#f7f9fc;padding:14px;border-radius:8px;font-size:12px;overflow:auto;max-height:32vh;white-space:pre-wrap;overflow-wrap:anywhere}.doc-preview{width:min(96vw,1080px)!important;max-width:1080px!important}.doc-preview iframe{width:100%;height:65dvh;border:0}.doc-preview img{max-height:70dvh;max-width:100%;object-fit:contain}.school-documents table{min-width:700px}.school-documents button svg{width:16px;height:16px}.school-documents button{cursor:pointer}.school-documents button:disabled{cursor:not-allowed}.school-documents :focus-visible{outline:3px solid #ffd445;outline-offset:2px}@media(max-width:1000px){.doc-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.doc-heading,.doc-table-heading{align-items:flex-start;flex-direction:column}.doc-heading h1{font-size:26px}.doc-panel{padding:16px}.doc-filters,.doc-form-grid{grid-template-columns:minmax(0,1fr)}.doc-document-head{flex-direction:column}.doc-document-card{padding:16px}.doc-student-title h2{font-size:20px}.doc-dialog{padding:20px!important}.doc-actions button{min-height:44px}.doc-tabs{width:100%}.doc-tabs button{flex:1;white-space:normal}}.doc-audit-changes{overflow:auto}.doc-audit-changes table{min-width:440px}.doc-audit-changes td{white-space:normal;overflow-wrap:anywhere;max-width:260px}body:has(.doc-dialog) [data-slot=dialog-overlay]{z-index:90}.doc-dialog~[data-slot=select-content],body:has(.doc-dialog) [data-slot=select-content]{z-index:120}.doc-dialog{isolation:isolate}

.school-documents .doc-document-list{display:flex;flex-direction:column;gap:10px}
.school-documents details.doc-compact-document{display:block;padding:0;border:1px solid #dce4ee;border-radius:10px;background:#fff;overflow:hidden}
.school-documents .doc-compact-document summary{display:flex;align-items:center;gap:12px;padding:14px 18px;margin:0;cursor:pointer;list-style:none;min-height:62px}
.school-documents .doc-compact-document summary::-webkit-details-marker{display:none}
.school-documents .doc-compact-document summary:before{content:'▣';font-size:25px;color:#1e3459}
.school-documents .doc-compact-document summary:after{content:'+';font-size:21px;width:28px;height:28px;display:grid;place-items:center;border:1px solid #8493a7;border-radius:50%;color:#1e3459;flex-shrink:0}
.school-documents .doc-compact-document[open] summary:after{content:'−'}
.school-documents .doc-compact-document[open] summary{background:#f4f6fa;border-bottom:1px solid #dce4ee}
.school-documents .doc-compact-document summary>div{flex:1}
.school-documents .doc-compact-document summary h3{font-size:14px;margin:0;font-weight:700}
.school-documents .doc-compact-document summary small{font-size:11px;color:#64748b}
.school-documents .doc-compact-document>*:not(summary){margin:12px 18px}
.school-documents .doc-add-optional{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:15px 0;font-size:13px;color:#64748b}
.school-documents .doc-type-picker input,.school-documents .doc-type-picker select{display:block;width:100%;border:1px solid #cbd5e1;background:#fff;color:#1e3459;border-radius:8px;padding:12px;margin-top:8px;font:inherit}
@media(max-width:600px){.school-documents .doc-add-optional{align-items:stretch;flex-direction:column}.school-documents .doc-compact-document summary{padding:12px;gap:8px}.school-documents .doc-compact-document summary .doc-status{font-size:10px}}

/* Los diálogos se montan en un portal fuera de .school-documents. */
.doc-dialog{background:#fff!important;color:#1e3459;font-family:inherit;padding:26px!important;gap:20px!important}
.doc-dialog [data-slot=dialog-title]{font-size:21px;line-height:1.3;padding-right:20px;overflow-wrap:anywhere}
.doc-dialog [data-slot=dialog-description]{font-size:14px;line-height:1.55;white-space:normal;overflow-wrap:anywhere;color:#64748b}
.doc-dialog .doc-concept-form{gap:20px;min-width:0}
.doc-dialog .doc-field{gap:9px}
.doc-dialog .doc-field>span{font-size:14px}
.doc-dialog input,.doc-dialog textarea{background:#fff;color:#1e3459;min-width:0}
.doc-dialog .doc-field input[type=file]{white-space:normal;height:auto;min-height:50px;padding:10px;max-width:100%}
.doc-dialog .doc-actions{gap:10px;padding-top:4px}
.doc-dialog .doc-actions button{height:auto;min-height:44px;white-space:normal;padding:10px 16px;line-height:1.4}
.doc-dialog .doc-actions button svg{flex-shrink:0;width:17px;height:17px}
.doc-dialog :focus-visible{outline:3px solid #ffd445;outline-offset:2px}
.doc-type-picker{display:grid;gap:12px;border:0;padding:0;margin:0;min-width:0}
.doc-type-picker legend{font-size:14px;font-weight:700;margin-bottom:12px;line-height:1.5}
.doc-type-picker input[type=search]{display:block;box-sizing:border-box;width:100%;min-height:46px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;color:#1e3459;padding:11px 14px;font:inherit;font-size:15px}
.doc-type-picker input::placeholder{color:#6b7c92;opacity:1}
.doc-type-options{max-height:220px;overflow:auto;border:1px solid #dce4ee;border-radius:10px;background:#fff;scrollbar-gutter:stable}
.doc-type-option{display:flex;align-items:center;text-align:left;gap:12px;width:100%;padding:12px 14px;border:0;border-bottom:1px solid #e5eaf1;background:#fff;color:#1e3459;cursor:pointer;box-sizing:border-box;font:inherit;white-space:normal!important;height:auto!important}
.doc-type-option:last-child{border-bottom:0}
.doc-type-option:hover{background:#f4f7fb}
.doc-type-option[aria-pressed=true]{background:#eef3fa}
.doc-type-option>span:last-child{min-width:0;flex:1}
.doc-type-option strong{display:block;font-size:14px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.doc-type-option small{display:block;font-size:12px;color:#64748b;line-height:1.5;margin-top:3px}
.doc-type-indicator{width:22px;height:22px;flex:0 0 22px;border:1px solid #a5b1c1;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:700}
.doc-type-option[aria-pressed=true] .doc-type-indicator{border-color:#1e3459;background:#1e3459;color:#fff}
.doc-type-selected{margin:0;border-left:3px solid #ffd445;border-radius:5px;padding:10px 12px;background:#f7f9fc;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.doc-type-empty{padding:16px;font-size:14px;line-height:1.6;color:#64748b}
@media(max-width:600px){.doc-dialog{padding:20px!important}.doc-type-options{max-height:180px}.doc-dialog .doc-actions button{flex:1}.doc-type-option{padding:12px 10px}}
