.expedient-panel{margin:24px 0;padding:24px}.expedient-panel h2,.expedient-panel h3{margin:0 0 16px}.expedient-panel p{margin:12px 0}.expedient-actions{display:flex;gap:12px;flex-wrap:wrap;margin:20px 0}.expedient-panel .field-grid{margin:20px 0}.expedient-panel .data-grid{margin:16px 0}.expedient-panel .table-scroll{margin:16px 0;max-width:100%}.expedient-panel td:first-child{white-space:nowrap}.expedient-panel details{margin:20px 0}.expedient-panel summary{cursor:pointer;padding:12px 0}.expedient-dialog{width:min(800px,95vw);max-height:90vh;overflow:auto}.expedient-dialog form{padding:8px}.expedient-dialog .field-grid{margin:20px 0}.expedient-dialog label{line-height:1.5}.expedient-dialog [data-preview-summary]{padding:16px;margin:20px 0;border:1px solid var(--border);border-radius:12px}.expedient-dialog .dialog-actions{gap:12px;margin-top:24px}.expedient-dialog .info-note{margin:16px 0}.expedient-dialog [hidden]{display:none!important}.expedient-id{overflow-wrap:anywhere}.expedient-panel .economy-totals{display:flex;flex-wrap:wrap;gap:20px;margin:20px 0}.expedient-panel .economy-totals div{padding:16px;border:1px solid var(--border);border-radius:12px}.expedient-panel .economy-totals strong{display:block;font-size:1.3rem;margin:8px 0}
/* Compact enrolment card, with the original controls and validation intact. */
.student-contract-card>.section-title{flex-wrap:wrap;gap:12px;margin-bottom:20px}
.student-contract-permit{margin-left:auto;padding:8px 12px;border:1px solid var(--line);border-radius:9px;color:var(--ink);background:var(--surface-raised);font-weight:700;text-align:right}
.student-contract-card .student-contract-grid{display:flex;flex-direction:column;gap:16px}
.student-contract-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.student-contract-row .field,.student-contract-card .transfer-box{margin:0;min-width:0}
.student-contract-card .transfer-box{padding:12px 14px}.student-contract-card #previous-school{margin-top:10px}
.student-contract-card #tariff-description{margin:0;font-size:12px}
.student-initial-services{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start;min-width:0}
.student-contract-card .student-initial-services{padding:16px 0 0;border-top:1px solid var(--line);margin:0}
.student-contract-service-list,.student-contract-total{min-width:0}.student-contract-service-list h3{margin:0 0 10px;font-size:15px}
.student-contract-service-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
.student-contract-service-list h3,.student-contract-service-list [data-service-empty]{grid-column:1/-1}
.student-contract-service-list [data-fixed-services],.student-contract-service-list [data-selectable-services]{display:contents}
.student-contract-service-list fieldset{padding:0;margin:0;border:0;min-width:0}
.student-contract-service-list [data-initial-service]>legend{display:block;width:100%;padding:0;margin:0}
.student-contract-service-list legend label,.student-contract-fixed{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;margin:0;text-align:left}
.student-contract-service-list input[type=checkbox]{width:17px;height:17px;min-height:0;flex-shrink:0;accent-color:var(--accent)}
.student-contract-service-list legend span,.student-contract-fixed span{flex:1;min-width:0;overflow-wrap:anywhere}
.student-contract-service-list small{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.student-contract-service-list strong{font-size:13px;white-space:nowrap}
.student-contract-service-list [data-service-empty]:empty{display:none}
.student-contract-total{grid-column:1/-1;width:100%;padding:16px 18px;background:var(--surface-raised);border:1px solid var(--line);border-radius:12px;text-align:center}
.student-contract-total>span{display:block;font-size:13px;color:var(--muted)}
.student-contract-total>strong{display:block;font-size:clamp(24px,2.8vw,40px);line-height:1.15;overflow-wrap:anywhere;margin:14px 0;color:var(--ink)}
.student-contract-total>div{font-size:12px;line-height:1.6}.student-contract-total>small{display:block;color:var(--muted);font-size:11px;line-height:1.6;margin-top:14px}
.student-contract-additional{border-top:1px solid var(--line);padding-top:14px}.student-contract-additional>summary{cursor:pointer;font-size:13px;color:var(--muted)}
.student-contract-additional>.field{margin-top:14px}.student-contract-card [hidden],.student-initial-services [hidden]{display:none!important}
@media(max-width:750px){.student-contract-row,.student-initial-services,.student-contract-service-list{grid-template-columns:minmax(0,1fr)}.student-contract-permit{font-size:13px}.student-contract-service-list .field-grid{grid-template-columns:minmax(0,1fr)}}
.student-enrolment-card{padding:24px}.student-enrolment-card>.section-title{margin-bottom:20px}
.student-enrolment-card .student-enrolment-grid{display:flex;flex-direction:column;gap:18px}
.student-enrolment-main,.student-enrolment-registration,.student-enrolment-dates{display:grid;gap:16px;align-items:start;min-width:0}
.student-enrolment-main{grid-template-columns:minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr)}
.student-enrolment-registration{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,.8fr)}
.student-enrolment-dates{grid-template-columns:repeat(2,minmax(0,220px));padding-top:16px;border-top:1px solid var(--line)}
.student-enrolment-card label{margin:0;min-width:0}.student-enrolment-card input,.student-enrolment-card select{width:100%;min-width:0}
.student-enrolment-card #section-context{padding:0;margin:-6px 0 0;border:0;background:transparent;font-size:12px;line-height:1.5;color:var(--muted)}
.student-enrolment-card [hidden]{display:none!important}
@media(max-width:700px){.student-enrolment-main,.student-enrolment-registration{grid-template-columns:repeat(2,minmax(0,1fr))}.student-enrolment-main>label:first-child,.student-enrolment-registration>label:first-child{grid-column:1/-1}.student-enrolment-dates{grid-template-columns:repeat(2,minmax(0,1fr))}.student-enrolment-card{padding:18px}}
@media(max-width:400px){.student-enrolment-main,.student-enrolment-registration,.student-enrolment-dates{grid-template-columns:minmax(0,1fr)}}
.student-account-status{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 24px;width:100%;box-sizing:border-box;padding:16px 20px;margin:14px 0 20px;border-radius:10px;background:#111;color:#fff}
.student-account-status[data-account-status=debt]{background:#a3212b}
.student-account-status[data-account-status=credit]{background:#176b3b}
.student-account-status>span{font-weight:600}.student-account-status>strong{font-size:22px;color:#fff;font-variant-numeric:tabular-nums}.student-account-status>small{flex-basis:100%;font-size:12px;line-height:1.5;color:#fff}
@media(max-width:480px){.student-account-status{padding:14px 16px}.student-account-status>strong{font-size:20px}}
.student-charge-menu{margin:16px 0 24px}.student-charge-menu[hidden]{display:none}
.student-charge-menu-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:14px}.student-charge-menu-heading h4{margin:0}.student-charge-menu-heading p{margin:6px 0 0;color:var(--muted);font-size:13px}
.student-charge-columns{display:grid;grid-template-columns:repeat(var(--charge-columns,5),minmax(0,1fr));gap:12px}
.student-charge-column{--charge-heading:#426b93;display:flex;flex-direction:column;min-width:0;border:1px solid var(--line);border-top:3px solid var(--charge-heading);border-radius:12px;background:var(--surface);overflow:hidden}
.student-charge-column[data-charge-group=teorica]{--charge-heading:#466c32}.student-charge-column[data-charge-group=destreza]{--charge-heading:#635b88}.student-charge-column[data-charge-group=circulacion]{--charge-heading:#286d78}.student-charge-column[data-charge-group=renovacion]{--charge-heading:#86631d}
.student-charge-column>h5{margin:0;padding:14px 12px;background:var(--charge-heading);color:#fff;font-size:14px;line-height:1.4}
.student-charge-items{display:grid;gap:8px;padding:12px;align-content:start;flex:1}.student-charge-items>p{font-size:12px}
.student-charge-item{display:flex;flex-direction:column;align-items:start;justify-content:space-between;gap:8px;min-width:0;min-height:80px;width:100%;padding:12px;text-align:left;border:1px solid color-mix(in srgb,var(--charge-heading) 55%,var(--line));border-radius:9px;background:color-mix(in srgb,var(--charge-heading) 12%,var(--surface));color:var(--text);font-size:13px;line-height:1.4;white-space:normal;overflow-wrap:anywhere}
.student-charge-item strong{font-variant-numeric:tabular-nums}.student-charge-item:hover{border-color:var(--charge-heading);background:color-mix(in srgb,var(--charge-heading) 22%,var(--surface))}.student-charge-item:focus-visible{outline:2px solid var(--charge-heading);outline-offset:2px}
.student-charge-column>[data-new-charge]{margin:4px 12px 12px;font-size:12px;min-height:40px;white-space:normal}
.expedient-actions :is([data-charge],[data-payment])[aria-expanded=true],.expedient-actions [data-balance][aria-pressed=true]{background:var(--primary,#85d600);border-color:var(--primary,#85d600);color:#172008;box-shadow:0 0 0 2px var(--primary,#85d600)}
.student-payment-menu{margin:18px 0}.student-payment-menu h4{margin:0}.student-payment-menu form{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft)}
.student-balance{margin-top:18px}.student-balance h4{margin:0 0 14px}.student-balance-table{width:100%;table-layout:fixed}.student-balance-table th:first-child{width:16%}.student-balance-table th:nth-child(2){width:36%}.student-balance-table th:last-child{width:20%}.student-balance-table td,.student-balance-table th{padding:10px 12px;vertical-align:middle;overflow-wrap:anywhere;text-align:left}.student-balance-table td:nth-child(n+3),.student-balance-table th:nth-child(n+3){text-align:right}.student-balance-table small{display:inline;margin-left:8px;color:var(--muted);font-size:12px;white-space:nowrap}.student-balance-table tfoot{border-top:2px solid var(--line);font-weight:650;background:var(--surface-soft)}.student-running-balance{color:#fff;font-variant-numeric:tabular-nums;white-space:nowrap}.student-running-balance[data-balance-tone=debt]{color:#ff737b}.student-running-balance[data-balance-tone=credit]{color:#9bda78}.student-running-balance[data-balance-tone=zero]{color:#fff}
.student-balance .balance-void-action{margin-inline-start:.7em;font-size:12px}
.balance-concept-layout{display:flex;align-items:center;justify-content:space-between;gap:12px}
.balance-concept-text{flex:1;min-width:0}
.balance-inline-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;white-space:nowrap}
.student-balance .balance-concept-layout>.balance-void-action{flex-shrink:0}
.student-balance .balance-inline-actions .balance-void-action{margin:0;padding:4px 6px;min-height:28px}
.student-balance .balance-source{display:block;margin:5px 0 0;font-size:11px;color:var(--muted)}
.balance-import-note{margin:0 0 14px;color:var(--muted);font-size:12px;line-height:1.5}
.student-balance-table.has-discounts th:first-child{width:15%}.student-balance-table.has-discounts th:nth-child(2){width:32%}.student-balance-table.has-discounts th:last-child{width:17%}
.student-balance-table tr[data-voided=true]>td{position:relative;color:var(--muted)}
.student-balance-table tr[data-voided=true]>td::after{content:"";position:absolute;inset-inline:0;top:50%;border-top:1px solid currentColor;pointer-events:none}
.student-balance-table [data-balance-consult]{position:relative;z-index:1;background:var(--surface);color:var(--ink)}
.balance-audit>div{margin-bottom:12px}.balance-audit dt{font-size:12px;color:var(--muted)}.balance-audit dd{margin:3px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}

.student-balance-table td:nth-child(2){white-space:normal;overflow-wrap:anywhere}
@media(max-width:650px){.student-balance-table{min-width:600px}.student-balance .table-scroll{overflow-x:auto}}
.student-payment-methods{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;border:0;margin:0 0 22px;padding:0}.student-payment-methods legend{font-weight:650;margin-bottom:12px}.student-payment-methods label{display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;cursor:pointer}.student-payment-methods label:has(:checked){border-color:var(--accent);background:var(--selection);color:var(--selection-text)}.student-payment-methods input{width:auto;margin:0;accent-color:var(--accent)}
.student-payment-fields{grid-template-columns:minmax(140px,1fr) minmax(110px,.6fr) minmax(150px,1fr);align-items:start}.student-payment-fields>label:last-child{grid-column:1/-1}.student-payment-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:18px}
@media(max-width:650px){.student-payment-menu form{padding:14px}.student-payment-fields{grid-template-columns:1fr 1fr}.student-payment-fields>label:nth-child(3){grid-column:1/-1}.student-payment-methods{grid-template-columns:1fr 1fr;gap:8px}.student-payment-methods label{padding:12px;font-size:13px}}
.student-charge-column>h5{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.student-charge-column>h5 strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.student-charge-item[aria-pressed=true]{border:2px solid var(--charge-heading);background:color-mix(in srgb,var(--charge-heading) 30%,var(--surface))}.student-charge-item small:empty{display:none}
.student-charge-selection{margin-top:16px;padding:16px;border:1px solid var(--line);border-radius:12px}.student-charge-selection[hidden]{display:none}.student-charge-selection h4{margin:0 0 12px}
.student-charge-selected-row{display:flex;align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid var(--line)}.student-charge-selected-row>span{flex:1;min-width:0;overflow-wrap:anywhere}.student-charge-selected-row small{display:block;color:var(--muted)}.student-charge-selected-row>strong{white-space:nowrap}.student-charge-selected-row button{padding:6px 10px;min-height:36px}
.student-charge-selection-footer{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin-top:16px}.student-charge-selection-footer>span{display:inline-flex;align-items:center;gap:12px}.student-charge-selection-footer strong{font-size:24px;white-space:nowrap}
@media(max-width:1100px){.student-charge-columns{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.student-charge-columns{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.student-charge-columns{grid-template-columns:minmax(0,1fr)}}
.directory-balance-scope{display:block;white-space:normal;font-size:10px;color:var(--muted)}
.directory-balance-link{font-size:11px;min-height:30px;padding:4px 0}
dialog.student-balance-dialog{width:min(800px,95vw);max-height:90vh;overflow:auto;padding:24px}
.student-balance-heading,.sw-balance-scope{display:flex;align-items:center;justify-content:space-between;gap:16px}
.student-balance-heading h2{margin:0}.student-balance-heading button{flex-shrink:0}
.student-balance-list{display:grid;gap:12px;margin-top:20px}
.student-balance-list article{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised)}
.student-balance-list small,.sw-balance-scope small{display:block;color:var(--muted);margin-top:6px}
.student-balance-list strong{overflow-wrap:anywhere}.student-balance-amount{text-align:right}
.sw-balance-scope{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface-raised)}
.sw-balance-scope button{flex-shrink:0}.exp-payment-total{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
@media(max-width:600px){dialog.student-balance-dialog{padding:16px}.student-balance-list article{grid-template-columns:minmax(0,1fr) auto}.student-balance-list article button{grid-column:1/-1}.sw-balance-scope{align-items:stretch;flex-direction:column}.student-balance-heading h2{font-size:1.2rem}}
dialog.payment-ticket-dialog{width:min(660px,95vw);max-width:min(660px,95vw);max-height:92vh;padding:24px;overflow:auto}
.payment-ticket-heading,.payment-ticket-tools,.payment-ticket-links{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.payment-ticket-heading h2{margin:0}.payment-ticket-heading .eyebrow{margin:0 0 6px}
.payment-ticket-tools{padding:16px;background:var(--surface-raised);border:1px solid var(--line);border-radius:12px;margin:18px 0}
.payment-ticket-tools .field{margin:0;min-width:130px}.payment-ticket-tools a{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-size:14px;min-height:44px;border-radius:9px}
.payment-ticket-tools a[aria-disabled=true]{opacity:.5;pointer-events:none}
.payment-ticket-links{justify-content:flex-start;gap:10px}
.payment-ticket-help{font-size:13px;color:var(--muted);line-height:1.6}
.payment-ticket-preview{display:flex;justify-content:center;padding:22px 10px;background:var(--surface-raised);border:1px solid var(--line);border-radius:12px;overflow:auto;min-height:100px}
.payment-ticket-preview canvas{display:block;width:80mm;max-width:100%;height:auto;align-self:flex-start;box-shadow:0 4px 18px #0003;background:white}
.payment-ticket-dialog[data-ticket-width="58"] .payment-ticket-preview canvas{width:58mm}
[data-payment-ticket]{white-space:nowrap;margin:4px 8px 4px 0}
@media(max-width:600px){dialog.payment-ticket-dialog{padding:16px}.payment-ticket-tools{align-items:stretch}.payment-ticket-tools .field{width:100%}.payment-ticket-links{width:100%;flex-direction:column;align-items:stretch}.payment-ticket-preview{padding:16px 6px}}
