/* Selected #1 Invoice & Payment Desk. Scoped to Billing only. */
.ipd-root .ub-layout{display:block!important}.ipd-root .ub-main{min-width:0}.ipd-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,1fr);gap:18px;align-items:start}.ipd-grid>.ub-panel{margin:0!important}.ipd-root .ub-heading h2{font-size:30px!important}.ipd-root .ub-heading{margin-bottom:12px}.ipd-grid .ub-panel>header{padding:15px 18px}.ipd-grid .ub-panel h3{font-size:22px;margin:0}.ipd-grid .ub-pad{padding:18px}.ipd-selectors{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ipd-grid label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;min-width:0}.ipd-grid select,.ipd-grid input,.ipd-grid textarea{box-sizing:border-box;width:100%;max-width:100%;font:inherit;color:var(--sl-text);background:var(--sl-bg);border:1px solid var(--sl-line);border-radius:10px;padding:10px 12px}.ipd-student{display:flex;flex-direction:column;gap:6px;padding:18px 0}.ipd-student strong{font-size:20px}.ipd-student small,.ipd-grid .ub-hint{font-size:12px;color:var(--sl-sub);line-height:1.5}.ipd-grid table td,.ipd-grid table th{padding:11px 10px!important}.ipd-total,.ipd-after{display:flex;align-items:center;justify-content:space-between;gap:12px;background:color-mix(in srgb,var(--sl-purple) 15%,var(--sl-bg));padding:16px;border-radius:10px;margin:12px 0}.ipd-total strong,.ipd-after strong{font-size:25px;font-variant-numeric:tabular-nums}.ipd-totals{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:14px;border:1px solid var(--sl-line);border-radius:10px;margin:14px 0}.ipd-totals small{display:block;color:var(--sl-sub);line-height:1.5}.ipd-totals strong{display:block;font-size:25px;color:var(--sl-purple);margin-top:5px}.ipd-payment{display:grid;gap:12px}.ipd-payment>p:first-child{margin:0 0 2px}.ipd-payment-student{display:flex;flex-direction:column;gap:5px;padding-bottom:8px;color:var(--sl-text)}.ipd-payment-student small{color:var(--sl-sub);overflow-wrap:anywhere}.ipd-payment input[aria-label="Amount received"]{font-size:26px;font-weight:600;border-color:var(--sl-purple)}.ipd-payment fieldset{border:0;padding:0;margin:0;min-width:0}.ipd-payment legend{font-size:14px;font-weight:600;margin-bottom:8px}.ipd-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.ipd-grid .sl-button{padding:10px 12px!important;min-height:42px;font-size:14px!important;line-height:1.3}.ipd-save{width:100%;font-weight:600}.ipd-error{border-left:3px solid #ce5959;padding:10px;color:var(--sl-text)}.ipd-success{padding:12px;border:1px solid #56a786;border-radius:8px}.ipd-empty{padding:28px 10px;text-align:center;line-height:1.6}.ipd-grid .ub-actions{display:flex;flex-wrap:wrap;gap:8px}.ipd-payment-state{min-height:150px}.ipd-grid h4{margin:20px 0 12px}
body.light-theme .ipd-grid{--sl-bg:#fff;--sl-text:#30213f;--sl-sub:#62546f;--sl-purple:#7542a8;--sl-line:#d9cce8}.light-theme .ipd-grid>.ub-panel{background:#fff!important}.light-theme .ipd-grid>.ub-panel:last-child{background:#f7f1ff!important}.light-theme .ipd-grid .sl-button{background:linear-gradient(#fff,#eee3f8)!important;color:#402452!important;border-color:#c5aedc!important;box-shadow:inset 0 1px #fff,0 2px 4px #65408415!important}.light-theme .ipd-grid .sl-primary{background:linear-gradient(#e9d8ff,#bb91e8)!important;color:#301744!important}.ipd-grid .sl-button:focus-visible,.ipd-grid textarea:focus-visible{outline:3px solid #a68af1;outline-offset:2px}
@media(max-width:1150px){.ipd-grid{grid-template-columns:1fr}.ipd-root .ub-heading h2{font-size:26px!important}}@media(max-width:560px){.ipd-selectors{grid-template-columns:1fr}.ipd-grid .ub-pad{padding:13px}.ipd-methods{grid-template-columns:repeat(2,1fr)}.ipd-total strong,.ipd-after strong,.ipd-totals strong{font-size:22px}.ipd-total,.ipd-after{padding:12px}.ipd-grid .ub-actions>*{flex:1}.ipd-grid table{font-size:12px}.ipd-totals{padding:10px;gap:8px}}

.ipd-create-invoice{box-sizing:border-box;font-family:'School IBM Plex Sans',sans-serif!important}.ipd-create-help{font-size:14px;line-height:1.5}.light-theme .ipd-create-invoice{background:#fff!important;color:#30213f!important;border-color:#d9cce8!important}.light-theme .ipd-create-invoice input,.light-theme .ipd-create-invoice select{background:#fff!important;color:#30213f!important;border:1px solid #c5aedc!important}.light-theme .ipd-create-invoice button{background:linear-gradient(#f9f2ff,#dfc9f6)!important;color:#402452!important}.ipd-create-invoice input:focus-visible{outline:3px solid #a68af1}
