/* Tables and controls inherit the original v68/v69 modal palette. */
#rhCorrectionForm{grid-template-columns:minmax(150px,1fr) minmax(200px,2fr)}
#rhCorrectionPreview{grid-column:1/-1;overflow-wrap:anywhere}
#rhCorrectionForm>.work-save{grid-column:1/-1;justify-self:end}
.rh-note{overflow-wrap:anywhere}
@media(max-width:600px){#rhCorrectionForm{grid-template-columns:1fr}}
.modal-backdrop.rh-open .modal{width:min(1360px,calc(100vw - 32px));max-height:calc(100vh - 32px)}
.rh-shell{display:grid;gap:14px;min-width:0;color:var(--text,#ddd)}
.rh-history-filter{display:grid;grid-template-columns:minmax(240px,2fr) repeat(2,minmax(120px,1fr)) minmax(100px,1fr) auto;gap:10px;align-items:end}
.rh-report-filter{display:grid;grid-template-columns:repeat(2,minmax(125px,1fr)) repeat(2,minmax(180px,1.5fr)) minmax(145px,1fr) auto;gap:10px;align-items:end}
.rh-field{display:grid;gap:6px;margin:0;min-width:0}.rh-field>span{font-size:10px;color:var(--muted,#9298a1)}
.rh-field .control{width:100%;box-sizing:border-box}.rh-history-filter>.work-save,.rh-report-filter>.work-save,.rh-payment-form>.work-save{min-height:42px}
.rh-table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:9px}
.rh-table{width:100%;min-width:760px;border-collapse:collapse;font-size:12px;text-align:left}.rh-table th{padding:11px 12px;background:rgba(0,0,0,.13);font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.055em;color:var(--muted,#969ca3);white-space:nowrap}
.rh-table td{padding:12px;border-top:1px solid var(--line,rgba(255,255,255,.1));vertical-align:top;line-height:1.45}.rh-table tbody tr:nth-child(even){background:rgba(255,255,255,.018)}.rh-table tbody tr:hover{background:rgba(215,181,109,.05)}.rh-table strong{color:var(--gold,#d7b56d)}.rh-table small{display:block;font-size:10px;color:var(--muted,#9298a1);margin-top:3px;max-width:360px}.rh-table details summary{cursor:pointer;color:var(--gold,#d7b56d);white-space:nowrap}.rh-table details[open]>.rh-actions{margin-top:9px}
.rh-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px}.rh-shell .record-text-action,.rh-shell .rh-pdf{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 9px;border:1px solid rgba(215,181,109,.36);border-radius:7px;background:rgba(215,181,109,.06);color:var(--gold,#d7b56d);font-size:10px;font-weight:750;text-decoration:none;white-space:nowrap;cursor:pointer;box-sizing:border-box}.rh-shell .record-text-action:hover,.rh-shell .rh-pdf:hover{background:rgba(215,181,109,.15);border-color:var(--gold,#d7b56d)}.rh-shell button:disabled{opacity:.5;cursor:wait}
.rh-note{font-size:11px;color:var(--muted,#9298a1);line-height:1.55;margin:0}.rh-muted{color:var(--muted,#9298a1)}.rh-meta{display:flex;gap:20px;flex-wrap:wrap;padding:13px;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:9px}.rh-meta>span{display:grid;gap:4px;color:var(--muted,#9298a1);font-size:10px}.rh-meta strong{color:var(--text,#ddd);font-size:13px;font-weight:650}
.rh-totals{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:24px;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:9px;padding:15px}.rh-totals>span{display:grid;gap:7px;font-size:10px;color:var(--muted,#9298a1)}.rh-totals strong{font-size:17px;color:var(--gold,#d7b56d)}
.rh-shell .analytics-section{border-radius:10px}.rh-shell .analytics-section>.rh-note{padding:12px}.rh-shell .analytics-section>.rh-table-wrap{border-width:0;border-radius:0}.rh-section-head{padding:12px}.rh-section-head h3{font-size:13px;margin:0}.rh-payment-form{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));align-items:end;gap:12px;padding:15px;border:1px solid var(--line,rgba(255,255,255,.1));border-radius:10px}.rh-form-message{grid-column:1/-1;margin:0;font-size:12px;line-height:1.4}.rh-form-message.saved{color:#83bd96}.rh-tabs{display:flex;gap:6px;flex-wrap:wrap}.rh-tabs button{min-height:34px;padding:8px 13px;font-size:11px;border:1px solid var(--line,#494e56);border-radius:8px;background:#202329;color:#cfd2d6}.rh-tabs button.on{background:rgba(215,181,109,.13);border-color:rgba(215,181,109,.55);color:#efd89f}.rh-metrics{grid-template-columns:repeat(4,minmax(140px,1fr));margin-bottom:0}.rh-metrics .metric{border-radius:9px;padding:13px}.rh-metrics .metric strong{font-size:23px}.rh-metrics .metric>span{display:block;font-size:10px;color:var(--muted,#9298a1);margin-top:5px}
body[data-theme="light"] .rh-shell{color:#44484e}body[data-theme="light"] .rh-table th{background:#f5f2ec}body[data-theme="light"] .rh-table tbody tr:nth-child(even){background:#fbf9f5}body[data-theme="light"] .rh-table strong,body[data-theme="light"] .rh-totals strong{color:#735321}body[data-theme="light"] .rh-meta strong{color:#303238}body[data-theme="light"] .rh-tabs button{background:#fff;color:#60646a}body[data-theme="light"] .rh-tabs button.on,body[data-theme="light"] .rh-shell .record-text-action,body[data-theme="light"] .rh-shell .rh-pdf{background:#f7f0e2;color:#735321;border-color:#d1b986}
@media(max-width:1050px){.rh-history-filter,.rh-report-filter{grid-template-columns:repeat(3,minmax(0,1fr))}.rh-payment-form{grid-template-columns:repeat(2,minmax(0,1fr))}.rh-metrics{grid-template-columns:repeat(2,minmax(120px,1fr))}}
@media(max-width:640px){.modal-backdrop.rh-open .modal{width:calc(100vw - 12px)}.rh-history-filter,.rh-report-filter,.rh-payment-form{grid-template-columns:1fr 1fr}.rh-history-filter .rh-field:first-child{grid-column:1/-1}.rh-totals{justify-content:flex-start;gap:16px}.rh-table{min-width:650px}}

.rh-history-pages{justify-content:flex-start;flex-wrap:wrap;gap:10px}.rh-history-pages>span{font-size:12px}.rh-history-pages .rh-field{min-width:85px;margin-left:auto}

/* Invoice-only billing editor; shared theme surfaces and controls. */
.rh-open #rhInvoiceLinesFields{border:0;padding:0;min-width:0;display:grid;gap:14px}
.rh-open .rh-invoice-line{padding:14px;border:1px solid var(--line,#655a43);border-radius:10px;background:var(--panel2,var(--panel,#292a2d));display:grid;grid-template-columns:minmax(180px,1fr) minmax(110px,auto);gap:10px}
.rh-open .rh-invoice-line .rh-include,.rh-open .rh-line-prices,.rh-open .rh-invoice-line>small{grid-column:1/-1}
.rh-open .rh-line-prices{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}
.rh-open .rh-include{display:flex;align-items:center;gap:8px}
@media(max-width:650px){.rh-open .rh-invoice-line{grid-template-columns:1fr}}
.rh-open #rhInvoiceLinesForm,.rh-open #rhInvoiceDraftForm{grid-template-columns:1fr;align-items:stretch}
body[data-theme="light"] .rh-open .rh-invoice-line{background:#fffaf0;border-color:#d1b986}
/* SPEC114 P.2: patient card */
.pc-card .pc-group{margin:0 0 14px}.pc-card .pc-group h4{margin:0 0 6px;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted,#9298a1)}.pc-badge{display:inline-block;border:1px solid var(--line,rgba(255,255,255,.2));border-radius:5px;padding:1px 6px;font-size:10px;letter-spacing:.03em;color:var(--muted,#9298a1);white-space:nowrap;vertical-align:middle}.pc-badge.pc-current{border-color:#b78225;color:#d9c18d}.pc-watermark{opacity:.85}.pc-other .pc-name{font-style:italic}.pc-back{margin-bottom:8px}.pc-text{white-space:pre-wrap;overflow-wrap:anywhere}.patient-card-link{margin-inline-start:8px}

/* S56: batch selection uses the shared champagne accent. */
input[data-batch-case]{width:1rem;height:1rem;accent-color:var(--champ,#d7b56d);cursor:pointer}
