.rt-comm-automatic_suspended{background:#fde9e9!important;color:#951b20!important;border-color:#efbcbc!important;font-weight:800}
.rt-actions{display:flex;gap:5px;flex-wrap:wrap;align-items:center}
.rt-note-cell{max-width:150px;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.rt-note-snippet{display:-webkit-box;color:var(--muted);overflow:hidden;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:3;cursor:default}
.rt-detail-row>td{padding:0}
.rt-detail-body{padding:16px 22px;background:#faf6f6;border-top:1px solid var(--line)}
.rt-note-full{background:#fff5df;border:1px solid #e7b760;border-radius:8px;padding:10px 14px;margin-bottom:14px;font-size:13px}
.rt-note-full b{display:block;margin-bottom:4px;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#84580c}
.rt-note-full p{margin:0;color:#5a3d0c}
.rt-inner-table{width:100%;border-collapse:collapse;font-size:13px}
.rt-inner-table th{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);padding:5px 8px;text-align:left;border-bottom:1px solid var(--line)}
.rt-inner-table th:last-child,.rt-inner-table td:last-child{width:310px;min-width:310px}
.rt-btn-cell{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:294px}
.rt-btn-cell .btn{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:40px;padding:8px 10px!important;font-size:11px!important;font-weight:750;line-height:1.2;text-align:center;white-space:normal;overflow-wrap:normal;word-break:normal}
.rt-edit-btn{color:#555!important;border-color:#ccc!important}.rt-override-badge{display:inline-block;font-size:11px;color:#7a5f30;background:#f5f0e8;border:1px solid #c8a96a;border-radius:3px;padding:0 4px;line-height:1.6;vertical-align:middle;cursor:default}
.rt-inner-table td{padding:7px 8px;border-bottom:1px solid #f0eded}
.rt-inner-table tr:last-child td{border-bottom:none}
.rt-inst-row.paid td{color:#999}
.rt-inst-row.overdue td{background:#fdf5f5}
.money{text-align:right;white-space:nowrap}
.rt-manual-overdue{display:flex!important;align-items:center;gap:10px;padding:12px 14px;border:1px solid #edcbc7;border-radius:11px;background:#fff7f6;color:#8f191d}.rt-manual-overdue input{width:auto!important;margin:0!important}.rt-insoluti-select{margin:0 0 14px}.rt-insoluti-select select{width:100%;margin-top:6px;border:1px solid #e4d6d2;border-radius:10px;padding:11px;background:#fff;color:#2a0909}
.rt-rate-filters{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(165px,1fr) minmax(165px,1fr) minmax(155px,.8fr) auto;align-items:center;margin-bottom:16px}
.rt-rate-filters input,.rt-rate-filters select{min-width:0;width:100%}
.rt-rate-filters .btn{min-height:46px;white-space:nowrap}
@media(max-width:1050px){.rt-rate-filters{grid-template-columns:1fr 1fr}.rt-rate-filters input{grid-column:1/-1}}
@media(max-width:620px){.rt-rate-filters{grid-template-columns:1fr}.rt-rate-filters input{grid-column:auto}}
@media(max-width:700px){.rt-inner-table th:last-child,.rt-inner-table td:last-child{width:260px;min-width:260px}.rt-btn-cell{grid-template-columns:1fr;min-width:244px}.rt-btn-cell .btn{min-height:44px}}
@media(max-width:700px){#rtRatesCard .rt-rates-table{min-width:1100px!important}}
.rt-client-row.rt-client-reconciliation>td{background:#fffaf0}.rt-reconciliation-pill{display:inline-flex;margin-top:6px;padding:4px 7px;border-radius:999px;background:#ffedc5;color:#84580c;font-size:9px;font-weight:800}.rt-inst-row.needs-reconciliation>td{background:#fff8e8;border-color:#efd7a6}.rt-reconciliation-alert{display:grid;gap:4px;min-width:250px;margin-bottom:7px;padding:9px 10px;border:1px solid #e8b85d;border-left:4px solid #c88617;border-radius:8px;background:#fff4d9;color:#674306;line-height:1.35}.rt-reconciliation-alert b{color:#84580c;font-size:10px;text-transform:uppercase;letter-spacing:.03em}.rt-reconciliation-alert span{font-size:10px;font-weight:600}.rt-reconciliation-alert small{color:#8b6b33;font-size:8px}.rt-reconcile-btn{border-color:#bd7b10!important;background:#fff4d9!important;color:#84580c!important;white-space:nowrap}.rt-reconcile-btn:hover{background:#ffe8b4!important}.rt-client-reconciliation .billing-status.rejected{white-space:nowrap}
.rt-pack-label{display:block;font-weight:750;color:#260205}.rt-pack-source{display:block;max-width:260px;margin-top:4px;color:#8b6d68;font-size:9px;font-weight:500;line-height:1.35;white-space:normal}.rt-inner-table .rt-pack-source{max-width:190px;font-size:8px}
.rt-purchase-date,.rt-purchase-date-head{min-width:0;white-space:normal}.rt-purchase-date b{font-weight:750;color:#260205}.rt-purchase-date small{margin-top:3px;color:#8b6d68;font-size:9px;font-weight:500}
.rt-archive-btn{border-color:#8b6d68!important;color:#5a4742!important;background:#fff!important}.rt-archive-btn:hover{background:#f5eeee!important}
.rt-archive-reason{display:grid;gap:8px;font-weight:750;color:#321012}.rt-archive-reason textarea{width:100%;min-height:150px;resize:vertical;border:1px solid #ddceca;border-radius:12px;padding:13px 14px;font:inherit;line-height:1.5;color:#260205;background:#fff}.rt-archive-reason textarea:focus{outline:2px solid rgba(177,18,24,.16);border-color:#b11218}
.rt-archived-filters{margin-bottom:16px}.rt-archived-filters input{width:min(620px,100%)}.rt-archived-table{min-width:1250px}.rt-archive-note{min-width:250px;max-width:390px;white-space:pre-wrap;line-height:1.45;color:#543d39}
#rtRatesCard .table-wrap{max-height:calc(100vh - 250px);overflow:auto;overscroll-behavior:contain}.rt-rates-table{width:100%;min-width:0!important;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:11px}.rt-rates-table th,.rt-rates-table td{padding-left:6px;padding-right:6px;overflow-wrap:anywhere}.rt-rates-table th:nth-child(1){width:13%}.rt-rates-table th:nth-child(2){width:8%}.rt-rates-table th:nth-child(3){width:7%}.rt-rates-table th:nth-child(4){width:10%}.rt-rates-table th:nth-child(5){width:8%}.rt-rates-table th:nth-child(6){width:8%}.rt-rates-table th:nth-child(7){width:7%}.rt-rates-table th:nth-child(8){width:8%}.rt-rates-table th:nth-child(9){width:11%}.rt-rates-table th:nth-child(10){width:9%}.rt-rates-table th:nth-child(11){width:11%}.rt-rates-table thead th{position:sticky;top:var(--rt-sticky-top,0);z-index:12;background:#fafbfa;box-shadow:0 1px 0 var(--line),0 5px 12px rgba(38,2,5,.06);white-space:normal;line-height:1.2}.rt-rates-table .rt-actions{gap:4px}.rt-rates-table .rt-actions .btn{padding:6px 7px;font-size:9px}.rt-sort-heading{display:inline-flex;align-items:center;gap:4px;width:100%;margin:-6px -4px;padding:6px 4px;border:0;background:transparent;color:inherit;font:inherit;font-weight:inherit;letter-spacing:inherit;line-height:1.2;white-space:normal;text-align:left;cursor:pointer}.rt-sort-heading:hover,.rt-sort-heading.active{color:#8f0d12}.rt-sort-indicator{display:inline-grid;flex:0 0 16px;place-items:center;min-width:16px;height:16px;border-radius:999px;background:#f1e4e2;color:#8f0d12;font-size:11px;font-weight:900}.rt-communication-summary{display:block;margin-top:7px;max-width:180px;color:#765f55;font-size:10px;line-height:1.35}.rt-comm-pill{display:block;margin:0 0 6px;padding:6px 8px;border-radius:8px;background:#edf3f8;color:#365a73;border:1px solid #cadbe7;font-size:10px}.rt-comm-missing_email,.rt-comm-missing_due_date,.rt-comm-awaiting_manual_overdue,.rt-comm-overdue_ready,.rt-comm-legal_notice_ready{background:#fff0dc;color:#965000;border-color:#f2c27d}.rt-comm-reminder_sent,.rt-comm-overdue_sent,.rt-comm-legal_notice_sent,.rt-comm-paid{background:#e3f4ed;color:#0f6b50;border-color:#b9dfd1}.rt-comm-paused{background:#f0eeee;color:#6d6262;border-color:#ddd6d6}.rt-legal-btn{border-color:#b11218!important;color:#8c0d12!important}
.rt-rate-email-history{display:grid;gap:6px;margin-top:8px;padding-top:8px;border-top:1px dashed #d7c9c6;min-width:270px}.rt-rate-email-history>b{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#7f6964}.rt-rate-email-entry{display:grid;grid-template-columns:minmax(150px,1fr) auto;gap:6px 12px;padding:8px;border:1px solid #dbe8e2;border-radius:10px;background:#f7fbf9;font-size:10px}.rt-rate-email-entry.failed{border-color:#efc8c8;background:#fff7f7}.rt-rate-email-entry span{display:grid;gap:2px}.rt-rate-email-entry small{display:block;color:#735f59}.rt-rate-email-entry em{grid-column:2;grid-row:1;font-style:normal;font-weight:800;color:#147052}.rt-rate-email-entry.failed em{color:#a12020}.rt-email-preview{margin:16px 0;padding:14px;border:1px solid #dfd2cf;border-radius:12px;background:#fbf8f7;min-height:90px}.rt-email-preview pre{white-space:pre-wrap;font:inherit;line-height:1.5}
.rt-path-email-modal{width:min(1180px,calc(100vw - 32px));max-width:none}.rt-path-email-modal #rtClientPathEmailSubtitle{margin:4px 0 0;color:var(--muted);font-size:12px}.rt-path-email-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}.rt-path-email-table{width:100%;min-width:940px;border-collapse:collapse;font-size:12px}.rt-path-email-table th{padding:9px 10px;background:#faf6f6;color:var(--muted);font-size:9px;letter-spacing:.07em;text-align:left;white-space:nowrap}.rt-path-email-table td{padding:10px;border-top:1px solid #f0e9e7;vertical-align:top}.rt-path-email-table td:nth-child(5){min-width:190px}.rt-path-email-table td b,.rt-path-email-table td small{display:block}.rt-path-email-table td small{margin-top:3px;color:var(--muted);font-size:10px}.rt-path-email-status{display:inline-block;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800;white-space:nowrap;background:#e3f4ed;color:#0f6b50}.rt-path-email-status.failed{background:#fde9e9;color:#a12020}@media(max-width:700px){.rt-path-email-modal{width:calc(100vw - 20px);padding:14px}.rt-path-email-modal .modal-head{align-items:flex-start}.rt-path-email-table{min-width:900px}}
.rt-practice-status{display:inline-flex;align-items:center;justify-content:center;min-width:82px;padding:6px 9px;border:1px solid transparent;border-radius:999px;font-size:10px;font-weight:850;line-height:1.2;text-align:center;white-space:nowrap}.rt-practice-status.neutral{background:#f1f0ef;border-color:#ddd8d6;color:#685d59}.rt-practice-status.overdue{background:#fff0dc;border-color:#f2c27d;color:#965000}.rt-practice-status.legal{background:#fde9e9;border-color:#efbcbc;color:#951b20}.rt-practice-status.agreement{background:#e3eefb;border-color:#b7cdea;color:#1d4f8f}.rt-agreement-note{color:#1d4f8f;font-weight:700}.rt-focused-rate{animation:rt-rate-focus 3.5s ease-out;border-radius:8px}@keyframes rt-rate-focus{0%,35%{background:#fff1c9;box-shadow:inset 4px 0 #c99528}100%{background:transparent;box-shadow:none}}.rt-practice-status-modal{width:min(560px,calc(100vw - 28px));max-width:560px}.rt-practice-alert{display:grid;gap:8px;padding:18px;border:1px solid;border-left-width:5px;border-radius:12px}.rt-practice-alert strong{font-size:17px}.rt-practice-alert p{margin:0;font-size:13px;line-height:1.55}.rt-practice-alert.overdue{background:#fff7ea;border-color:#e5a744;color:#6c4300}.rt-practice-alert.legal{background:#fff2f2;border-color:#c64247;color:#6e1014}@media(max-width:620px){.rt-practice-status{min-width:0;white-space:normal}.rt-practice-status-modal{width:calc(100vw - 20px);padding:16px}.rt-practice-status-modal .modal-head{align-items:flex-start}.rt-practice-alert{padding:15px}.rt-practice-status-modal .modal-actions .btn{width:100%}}
.rt-practice-email-tags{display:grid;gap:4px;margin-top:6px}.rt-practice-email-tags span{display:block;padding:4px 6px;border:1px solid #b9dfd1;border-radius:6px;background:#e3f4ed;color:#0f6b50;font-size:8px;font-weight:850;line-height:1.25;text-align:center;text-transform:uppercase}.rt-practice-open>td{background:#fff9f7!important;border-top:3px solid #b11218!important}.rt-practice-open>td:first-child{border-left:3px solid #b11218!important}.rt-practice-open>td:last-child{border-right:3px solid #b11218!important}.rt-detail-row.rt-detail-open>td{border-right:3px solid #b11218!important;border-bottom:3px solid #b11218!important;border-left:3px solid #b11218!important;box-shadow:0 10px 18px rgba(74,8,12,.12)}.rt-detail-row.rt-detail-open .rt-detail-body{background:#fff7f5;border-top:2px solid #e8c4c1}.rt-delete-btn{grid-column:1/-1!important;order:99!important;border-color:#c0392b!important;background:#fff7f7!important;color:#a31818!important}

/* Local Plan Recovery Modal */
.rt-recovery-modal {
  width: min(840px, calc(100vw - 28px));
  max-width: 840px;
}
.rt-recovery-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.rt-recovery-info-box {
  background: #f7fbf9;
  border: 1px solid #dbe8e2;
  border-radius: 10px;
  padding: 12px 14px;
}
.rt-recovery-info-box.highlight {
  background: #fff4d9;
  border-color: #e8b85d;
}
.rt-recovery-info-box small {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #735f59;
  margin-bottom: 4px;
}
.rt-recovery-info-box.highlight small {
  color: #84580c;
}
.rt-recovery-info-box b {
  font-size: 14px;
  color: #17211d;
}
.rt-recovery-info-box.highlight b {
  color: #674306;
}

.rt-recovery-alert {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  border-left: 4px solid transparent;
}
.rt-recovery-alert.info {
  background: #eef5fc;
  border-color: #a3c2e0;
  color: #26425a;
}
.rt-recovery-alert.warning {
  background: #fff7ea;
  border-color: #e5a744;
  color: #6c4300;
}
.rt-recovery-alert b {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.rt-recovery-alert p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.rt-recovery-table-wrap {
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.rt-recovery-rows {
  display: flex;
  flex-direction: column;
  background: #fafbfa;
}
.rt-recovery-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  align-items: flex-end;
}
.rt-recovery-row:last-child {
  border-bottom: none;
}
.rt-recovery-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rt-recovery-col span {
  font-size: 10px;
  font-weight: 700;
  color: #718078;
}
.rt-recovery-col input {
  width: 100%;
  margin: 0;
}
.rt-recovery-col:nth-child(1) { width: 60px; }
.rt-recovery-col:nth-child(2) { width: 140px; }
.rt-recovery-col-amount { width: 130px; }
.rt-recovery-col-notes { flex: 1; }
.rt-recovery-col-action { width: 36px; padding-bottom: 4px; }

#rtRecoveryAddRow {
  margin-bottom: 24px;
}

.rt-recovery-summary {
  background: #faf6f6;
  border-top: 1px solid var(--line);
  margin: 0 -24px -10px;
  padding: 18px 24px 0;
}
.rt-recovery-summary-totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rt-recovery-summary-totals span {
  font-size: 13px;
  color: #555;
  display: flex;
  align-items: center;
}
.rt-recovery-total {
  font-size: 18px;
  margin-left: 6px;
}
.rt-recovery-total.match { color: #1f6b4f; }
.rt-recovery-total.mismatch { color: #b6463c; }

.rt-recovery-diff {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.rt-recovery-diff.match { background: #dff1e8; color: #1f6b4f; }
.rt-recovery-diff.mismatch { background: #fae5e2; color: #b6463c; }

.rt-recovery-warning {
  font-size: 11px;
  line-height: 1.4;
  color: #8b6d68;
  background: #fdf5f5;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #edcbc7;
}
.rt-recovery-warning strong {
  color: #8f191d;
}

@media(max-width: 700px) {
  .rt-recovery-info { grid-template-columns: 1fr; }
  .rt-recovery-row { flex-wrap: wrap; }
  .rt-recovery-col-notes { min-width: 100%; order: 4; }
  .rt-recovery-col-action { order: 5; margin-top: -50px; margin-left: auto; }
}

.rt-recovery-panel{margin-bottom:16px;overflow:hidden;border-color:#e8d6d4}
.rt-recovery-panel .card-head{background:#fff8f7}
.rt-recovery-candidate-list{display:grid}
.rt-recovery-candidate{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 22px;border-top:1px solid var(--line)}
.rt-recovery-candidate-main{min-width:0}
.rt-recovery-kicker{display:block;margin-bottom:5px;color:#9f2025;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.rt-recovery-candidate h4{margin:0 0 4px;font-size:17px}
.rt-recovery-candidate p{margin:0 0 6px;color:var(--ink)}
.rt-recovery-candidate small{color:var(--muted)}
.rt-recovery-candidate-action{display:flex;justify-content:flex-end;flex:0 0 auto;max-width:360px}
.rt-recovery-blocked{color:#8a5b25;font-size:13px;line-height:1.4;text-align:right}
@media(max-width:700px){
  .rt-recovery-candidate{align-items:stretch;flex-direction:column;gap:14px;padding:18px}
  .rt-recovery-candidate-action{max-width:none}
  .rt-recovery-candidate-action .btn{width:100%}
  .rt-recovery-blocked{text-align:left}
}
