.oi-heading{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}.oi-heading h2{margin-top:0}.oi-scroll{overflow:auto}.oi-scroll table{width:100%;border-collapse:collapse}.oi-scroll td,.oi-scroll th{padding:12px;text-align:left;border-bottom:1px solid #dce5e9}.oi-dialog{width:min(1100px,94vw);max-height:92vh;overflow:auto;border:1px solid #d3dfe5;border-radius:16px;padding:24px;color:#243342;background:#fff}.oi-dialog::backdrop{background:#10293799}.oi-dialog fieldset{border:0;margin:0;padding:0;min-width:0}.oi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.oi-dialog label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;min-width:0}.oi-dialog input,.oi-dialog textarea,.oi-dialog select{box-sizing:border-box;width:100%;border:1px solid #b7c9ce;border-radius:7px;padding:9px;font:inherit;color:#243342;background:#fff}.oi-dialog textarea{resize:vertical}.oi-line{display:grid;grid-template-columns:3fr 1fr 1fr 1.3fr 1fr auto;gap:10px;align-items:end;border-bottom:1px solid #ddd;padding:12px 0}.oi-line textarea{min-height:75px}.oi-dialog .row-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.oi-dialog [data-total]{text-align:right;font-weight:700}.oi-preview{width:100%;height:620px;border:1px solid #ccd8dd;margin-top:20px;background:white}.oi-dialog [role=status]{white-space:pre-line}.oi-dialog [disabled]{opacity:.65}.oi-dialog h3{margin-bottom:0}@media(max-width:700px){.oi-dialog{padding:15px}.oi-grid{grid-template-columns:1fr}.oi-line{grid-template-columns:repeat(2,minmax(0,1fr))}.oi-line label:first-child{grid-column:1/-1}.oi-preview{height:450px}}

.oi-dialog .oi-actions{position:sticky;top:-24px;z-index:2;background:#fff;padding:12px 0;border-bottom:1px solid #d3dfe5}.oi-preview{scroll-margin-top:110px}@media(max-width:700px){.oi-dialog .oi-actions{top:-15px}}

.oi-preview-actions{scroll-margin-top:110px;padding:16px;background:#f0f7f6;border:1px solid #b8d6d0;border-radius:10px}.oi-preview-actions .row-actions{margin-bottom:0}

.oi-session-search{position:relative;min-width:0}.oi-session-search [role=listbox]{position:absolute;z-index:5;left:0;right:0;max-height:260px;overflow:auto;background:#fff;border:1px solid #a3bdb8;box-shadow:0 6px 18px #1233}.oi-session-search [role=option]{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #dce5e9;padding:12px;white-space:normal;cursor:pointer;color:#243342}.oi-session-search [role=option] span{display:block;font-size:12px}.oi-session-search [role=option]:hover,.oi-session-search [aria-selected=true]{background:#e6f3ef}.oi-session-search small{display:block;margin-top:5px}

.oi-drop-target{border-style:dashed!important}.oi-drop-hint{display:block;font-size:11px;font-weight:400}.oi-drop-target.dragging{background:#e6f3ef;outline:2px solid #24736d;outline-offset:2px}.oi-upload{padding:14px;border:1px dashed #24736d;border-radius:10px;background:#f4faf8;margin-bottom:18px}.oi-inline{box-sizing:border-box;width:100%;max-height:none;overflow:visible;margin:8px 0;text-align:left;white-space:normal}.oi-expanded-row>td{padding:12px!important}.oi-inline .oi-actions{position:static}.oi-expanded-row .oi-inline label{white-space:normal}@media(max-width:700px){.oi-expanded-row>td{display:block!important;width:100%;box-sizing:border-box}.oi-expanded-row>td:before{display:none!important}}

#organization-invoices .oi-heading{align-items:flex-start;margin-bottom:14px}#organization-invoices .oi-heading>div:first-child{flex:1;min-width:240px}#organization-invoices .oi-heading .row-actions{margin:0;display:flex;flex-wrap:wrap;gap:8px}#organization-invoices .oi-model-status{margin:0 0 14px}#organization-invoices .oi-invoice-table{width:100%;min-width:760px;table-layout:fixed;font-size:.8rem}#organization-invoices .oi-invoice-table th:nth-child(1){width:23%}#organization-invoices .oi-invoice-table th:nth-child(2){width:29%}#organization-invoices .oi-invoice-table th:nth-child(3){width:13%}#organization-invoices .oi-invoice-table th:nth-child(4){width:17%}#organization-invoices .oi-invoice-table th:nth-child(5){width:18%}#organization-invoices .oi-invoice-table th,#organization-invoices .oi-invoice-table td{padding:9px 8px;vertical-align:middle}#organization-invoices .oi-invoice-copy{min-width:0}#organization-invoices .oi-invoice-copy strong,#organization-invoices .oi-invoice-copy span{display:block;white-space:normal;overflow-wrap:anywhere}#organization-invoices .oi-invoice-copy span{color:var(--muted);font-size:.72rem;margin-top:4px}#organization-invoices .oi-amount{white-space:nowrap;font-variant-numeric:tabular-nums}#organization-invoices .oi-invoice-table .button{font-size:.72rem;padding:6px 9px;min-height:30px}#organization-invoices .oi-invoice-table .section-summary-badge{white-space:normal}#organization-invoices .oi-invoice-table .row-actions{margin:0}#organization-invoices .oi-invoice-table .help{display:block}@media(max-width:700px){#organization-invoices .oi-heading{flex-direction:column}#organization-invoices .oi-heading>div:first-child{min-width:0}#organization-invoices .billing-dashboard-kpis{grid-template-columns:1fr}}
@media(max-width:900px){#organization-invoices .oi-invoice-table{min-width:0}#organization-invoices .oi-invoice-table td{width:100%;max-width:none;box-sizing:border-box}#organization-invoices .oi-invoice-table tbody,#organization-invoices .oi-invoice-table tr{width:100%;box-sizing:border-box}#organization-invoices .oi-invoice-table .row-actions{flex-wrap:wrap}#organization-invoices .oi-invoice-table .oi-invoice-copy{width:100%}}

/* Keep billing actions inside their cell, including quote, upload and draft controls. */
#payer-invoice-tracking-section .trainer-invoice-table th:nth-child(1),#payer-invoice-tracking-section .trainer-invoice-table td:nth-child(1){width:23%;max-width:none}
#payer-invoice-tracking-section .trainer-invoice-table th:nth-child(2),#payer-invoice-tracking-section .trainer-invoice-table td:nth-child(2){width:17%;max-width:none}
#payer-invoice-tracking-section .trainer-invoice-table th:nth-child(3),#payer-invoice-tracking-section .trainer-invoice-table td:nth-child(3){width:12%;max-width:none}
#payer-invoice-tracking-section .trainer-invoice-table th:nth-child(4),#payer-invoice-tracking-section .trainer-invoice-table td:nth-child(4){width:14%;max-width:none}
#payer-invoice-tracking-section .trainer-invoice-table th:nth-child(5),#payer-invoice-tracking-section .trainer-invoice-table td:nth-child(5){width:14%;max-width:none}
#payer-invoice-tracking-section .trainer-invoice-table th:nth-child(6),#payer-invoice-tracking-section .trainer-invoice-table td:nth-child(6){width:20%;max-width:none}
#payer-invoice-tracking-section .trainer-invoice-table td{vertical-align:top}
#payer-invoice-tracking-section .row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0;min-width:0;max-width:100%;overflow:visible}
#payer-invoice-tracking-section .row-actions .button{flex:1 1 100%;box-sizing:border-box;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;height:auto;min-height:32px;padding:6px 8px;font-size:.74rem;line-height:1.35}
#payer-invoice-tracking-section .row-actions .icon-button{flex:0 0 30px;width:30px;height:30px;min-width:30px}
#payer-invoice-tracking-section .trainer-invoice-company-copy strong,#payer-invoice-tracking-section .trainer-invoice-company-copy span,#payer-invoice-tracking-section .trainer-invoice-party strong,#payer-invoice-tracking-section .trainer-invoice-party span{white-space:normal;overflow-wrap:anywhere}
#payer-invoice-tracking-section .trainer-invoice-payment-controls{flex-wrap:wrap}
@media(max-width:900px){
  #payer-invoice-tracking-section .trainer-invoice-table{min-width:0;width:100%}
  #payer-invoice-tracking-section .trainer-invoice-table tbody,#payer-invoice-tracking-section .trainer-invoice-table tr,#payer-invoice-tracking-section .trainer-invoice-table td{box-sizing:border-box;width:100%;max-width:none}
  #payer-invoice-tracking-section .trainer-invoice-table td{grid-template-columns:minmax(90px,32%) minmax(0,1fr)}
  #payer-invoice-tracking-section .trainer-invoice-table td[data-label="Actions"]{grid-template-columns:1fr}
  #payer-invoice-tracking-section .row-actions .button{flex:1 1 140px}
}
#payer-invoice-tracking-section .trainer-invoice-table .oi-expanded-row>td{width:auto;max-width:none}
@media(max-width:900px){#payer-invoice-tracking-section .trainer-invoice-table .oi-expanded-row>td{display:block;width:100%}#payer-invoice-tracking-section .trainer-invoice-table .oi-expanded-row>td::before{display:none}}
@media(max-width:900px){#payer-invoice-tracking-section .trainer-invoice-table td:nth-child(n){width:100%;max-width:none}}
#payer-invoice-tracking-section .trainer-invoice-table{min-width:0;width:100%}
@media(max-width:900px){#payer-invoice-tracking-section .trainer-invoice-table td:first-child{grid-template-columns:1fr}}
#payer-invoice-tracking-section .trainer-invoice-table th{white-space:normal;overflow-wrap:anywhere}
#payer-invoice-tracking-section .trainer-invoice-table td>.help{white-space:normal;overflow-wrap:anywhere}
