/* Companion Hub v3: one deliberate scroll owner and member-first benefit wording. */
.companion-hub,.ch-panel,.ch-financial-overview,.ch-table-wrap,.ch-tabs-scroll{min-width:0;max-width:100%}.ch-financial-overview{overflow:visible}.ch-financial-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#8fcfab #edf6f0;contain:none}.ch-financial-scroll::-webkit-scrollbar{height:10px}.ch-financial-scroll::-webkit-scrollbar-track{background:#edf6f0;border-radius:99px}.ch-financial-scroll::-webkit-scrollbar-thumb{background:#8fcfab;border:2px solid #edf6f0;border-radius:99px}.ch-financial-table{min-width:2020px}.ch-financial-table th:first-child,.ch-financial-table td:first-child{width:190px;min-width:190px;max-width:190px}.ch-financial-table th:nth-child(2),.ch-financial-table td:nth-child(2){width:120px;min-width:120px;max-width:120px;left:190px}.ch-overview-tools{display:flex;gap:10px;align-items:center}.ch-financial-overview .ch-overview-tools>input{flex:1 1 auto;min-width:0}.ch-overview-sort{flex:0 0 170px;width:170px;max-width:170px}.ch-overview-limit{flex:0 0 94px;width:94px;max-width:94px}.ch-overview-search{position:relative;flex:1 1 340px;min-width:220px}.ch-overview-search input{width:100%;height:44px;padding:0 40px;border:1px solid var(--ch-line);border-radius:13px;background:var(--ch-card);font:inherit}.ch-overview-search input:focus{outline:0;border-color:#39b54a;box-shadow:0 0 0 3px rgba(57,181,74,.14)}.ch-overview-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#537467;font-size:21px;pointer-events:none}.ch-search-clear{position:absolute;right:7px;top:50%;transform:translateY(-50%);display:none;width:30px;height:30px;border:0;border-radius:50%;background:#eff6f1;color:#456558;font-size:22px;line-height:1;cursor:pointer}.ch-search-clear.is-visible{display:block}.ch-scroll-actions{display:flex;gap:6px}.ch-scroll-actions .btn{min-width:42px}.ch-scroll-actions .is-muted{opacity:.45}.ch-scroll-hint{margin:0 0 8px;color:#668176;font-size:12px;text-align:center}.ch-benefit-grid .ch-benefit:first-child{background:linear-gradient(135deg,#edf9f1,#fff);border-color:#bfe7cf}.ch-benefit-grid .ch-benefit:first-child span{color:#078c45;font-weight:800;letter-spacing:.04em}.ch-benefit-grid .ch-benefit small{line-height:1.45}@media (max-width:1023px){.ch-overview-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,170px) 94px}.ch-overview-search{grid-column:1/-1}.ch-overview-search input{min-width:0}.ch-benefit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:767px){.ch-overview-sort,.ch-overview-limit{width:100%;max-width:none;min-width:0}.ch-financial-table th:first-child,.ch-financial-table td:first-child,.ch-financial-table th:nth-child(2),.ch-financial-table td:nth-child(2){position:static;width:auto;min-width:0;max-width:none}.ch-overview-tools{grid-template-columns:minmax(0,1fr) auto}.ch-scroll-actions{justify-content:flex-end}.ch-overview-tools select{min-width:96px}.ch-benefit-grid{grid-template-columns:1fr}.ch-scroll-hint{display:block}.ch-financial-scroll{margin-inline:0;border-radius:12px}.ch-financial-table{min-width:2020px}}@media (max-width:430px){.ch-overview-tools{grid-template-columns:1fr 1fr}.ch-overview-search{grid-column:1/-1}.ch-scroll-actions{justify-content:flex-end}.ch-overview-tools select{width:100%}}
/* Responsive Companion Hub: content tables fit; only the tab rail may scroll. */
.ch-financial-scroll{overflow:visible!important}.ch-financial-table{min-width:0!important;width:100%;table-layout:fixed}.ch-financial-table th,.ch-financial-table td{min-width:0!important}.ch-money,.ch-number,.ch-percent{white-space:nowrap;word-break:keep-all;overflow-wrap:normal;font-variant-numeric:tabular-nums}.ch-table td{font-variant-numeric:tabular-nums}.ch-benefit-locks{display:grid;gap:0}.ch-benefit-lock-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--ch-line)}.ch-benefit-lock-item:last-child{border-bottom:0}.ch-benefit-lock-item b,.ch-benefit-lock-item small{display:block}.ch-benefit-lock-item small{margin-top:6px}.ch-benefit-state{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:999px;background:#e7f7eb;color:#08783a;font-size:12px;font-weight:700}.ch-benefit-state.locked{background:#fff0e9;color:#b54818}.ch-rights-summary{border:0;background:#eef8f1;color:#08783a;border-radius:999px;padding:6px 10px;font:inherit;font-weight:700;white-space:nowrap;cursor:pointer}.ch-detail-trigger{border:0;background:transparent;color:#08783a;padding:0;font:inherit;cursor:pointer;text-decoration:underline}.ch-mobile-card-table{width:100%}
.ch-modal-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid var(--ch-line)}.ch-modal-row span{min-width:0}.ch-modal-row b,.ch-modal-row small{display:block}.ch-modal-row small{margin-top:6px}.ch-modal-row .btn.light{border-color:#39b54a;color:#08783a}
@media(max-width:1365px){.ch-financial-table th:nth-child(2),.ch-financial-table td:nth-child(2),.ch-financial-table th:nth-child(3),.ch-financial-table td:nth-child(3),.ch-financial-table th:nth-child(4),.ch-financial-table td:nth-child(4),.ch-financial-table th:nth-child(7),.ch-financial-table td:nth-child(7),.ch-financial-table th:nth-child(8),.ch-financial-table td:nth-child(8),.ch-financial-table th:nth-child(9),.ch-financial-table td:nth-child(9),.ch-financial-table th:nth-child(10),.ch-financial-table td:nth-child(10),.ch-financial-table th:nth-child(11),.ch-financial-table td:nth-child(11),.ch-financial-table th:nth-child(12),.ch-financial-table td:nth-child(12),.ch-financial-table th:nth-child(13),.ch-financial-table td:nth-child(13),.ch-financial-table th:nth-child(14),.ch-financial-table td:nth-child(14){display:none}.ch-maintenance-table th:nth-child(5),.ch-maintenance-table td:nth-child(5),.ch-maintenance-table th:nth-child(10),.ch-maintenance-table td:nth-child(10),.ch-maintenance-table th:nth-child(11),.ch-maintenance-table td:nth-child(11){display:none}.gb-admin-table th:nth-child(7),.gb-admin-table td:nth-child(7),.gb-admin-table th:nth-child(11),.gb-admin-table td:nth-child(11){display:none}}
@media(max-width:1023px){.gb-admin-table th:nth-child(1),.gb-admin-table td:nth-child(1),.gb-admin-table th:nth-child(3),.gb-admin-table td:nth-child(3),.gb-admin-table th:nth-child(5),.gb-admin-table td:nth-child(5),.gb-admin-table th:nth-child(9),.gb-admin-table td:nth-child(9),.gb-admin-table th:nth-child(12),.gb-admin-table td:nth-child(12),.gb-admin-table th:nth-child(13),.gb-admin-table td:nth-child(13){display:none}.ch-maintenance-table th:nth-child(4),.ch-maintenance-table td:nth-child(4),.ch-maintenance-table th:nth-child(6),.ch-maintenance-table td:nth-child(6),.ch-maintenance-table th:nth-child(9),.ch-maintenance-table td:nth-child(9){display:none}}
@media(max-width:767px){.ch-table-wrap{overflow:visible!important}.ch-mobile-card-table,.ch-mobile-card-table tbody,.ch-mobile-card-table tr,.ch-mobile-card-table td{display:block!important;width:100%!important}.ch-mobile-card-table thead{display:none!important}.ch-mobile-card-table tr{margin:0 0 12px;padding:12px;border:1px solid var(--ch-line);border-radius:14px;background:var(--ch-card)}.ch-mobile-card-table td{min-width:0!important;padding:7px 0!important;border:0!important;text-align:right;white-space:nowrap}.ch-mobile-card-table td:before{content:attr(data-label);float:left;max-width:46%;color:#668176;font-size:11px;font-weight:700;text-align:left;white-space:normal}.ch-mobile-card-table td[data-label="Thành viên"]{text-align:left;font-size:14px}.ch-mobile-card-table td[data-label="Thành viên"]:before{display:none}.ch-mobile-card-table td[data-label="Thao tác"] .btn{width:100%;margin-top:4px}.ch-financial-table,.ch-maintenance-table,.gb-admin-table{table-layout:auto}.ch-benefit-lock-item{gap:10px;padding:12px 0}.ch-benefit-lock-item .btn{min-width:86px}.ch-modal{width:calc(100vw - 20px)!important;max-height:86dvh;overflow-y:auto}.ch-maintenance-tools,.ch-overview-tools,.gb-filter-grid{grid-template-columns:1fr 1fr!important}.ch-maintenance-tools input,.ch-overview-tools input,.gb-filter-search{grid-column:1/-1!important}}
/* Financial overview intentionally scrolls inside its own shell on desktop/tablet. */
.ch-financial-scroll{overflow-x:auto!important;overflow-y:hidden!important}.ch-financial-table{min-width:2020px!important;width:auto!important;table-layout:auto!important}.ch-financial-table th:first-child,.ch-financial-table td:first-child{width:190px!important;min-width:190px!important;max-width:190px!important}.ch-financial-table th:nth-child(2),.ch-financial-table td:nth-child(2){width:120px!important;min-width:120px!important;max-width:120px!important}
@media(max-width:767px){.ch-financial-scroll{overflow:visible!important}.ch-financial-table{min-width:0!important;width:100%!important;table-layout:auto!important}}
/* Overview is intentionally a seven-column summary, never a 2020px ledger. */
.ch-financial-overview{container-type:inline-size}.ch-financial-overview .ch-financial-scroll{overflow:visible!important}.ch-financial-overview .ch-financial-table{width:100%!important;min-width:0!important;table-layout:fixed!important}.ch-financial-overview .ch-financial-table th,.ch-financial-overview .ch-financial-table td{display:table-cell!important;min-width:0!important;vertical-align:middle}.ch-financial-overview .ch-financial-table th:nth-child(1){width:20%}.ch-financial-overview .ch-financial-table th:nth-child(2){width:13%}.ch-financial-overview .ch-financial-table th:nth-child(3){width:18%}.ch-financial-overview .ch-financial-table th:nth-child(4){width:14%}.ch-financial-overview .ch-financial-table th:nth-child(5){width:11%}.ch-financial-overview .ch-financial-table th:nth-child(6){width:12%}.ch-financial-overview .ch-financial-table th:nth-child(7){width:12%}.ch-member-cell{display:grid;gap:3px;min-width:0}.ch-member-cell strong{font-size:13px;line-height:1.25}.ch-member-cell small,.ch-col-sales small,.ch-col-commission small{display:block;color:#668176;font-size:11px;line-height:1.35}.ch-overview-rank{line-height:1.25;max-width:100%;font-weight:700}.ch-overview-primary-money{font-weight:800;margin-bottom:2px}.ch-overview-action .btn{white-space:nowrap;min-width:max-content}.ch-overview-detail h4{margin:14px 0 6px}.ch-overview-detail p{margin:6px 0}
.ch-financial-detail-modal{display:grid;gap:12px}.ch-financial-detail-modal h4{margin:2px 0}.ch-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ch-detail-grid>div,.ch-financial-line{border:1px solid #dcebe1;border-radius:12px;padding:12px;background:#fff}.ch-financial-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:start}.ch-financial-line small{grid-column:1/-1;color:#668176}.ch-product-entitlement{display:inline-block;color:#8a5a00!important;font-weight:800;background:#fff6d8;border:1px solid #f2d994;border-radius:8px;padding:3px 7px;line-height:1.35}
@container (max-width:1000px){.ch-financial-overview .ch-financial-table th:nth-child(2),.ch-financial-overview .ch-financial-table td:nth-child(2),.ch-financial-overview .ch-financial-table th:nth-child(5),.ch-financial-overview .ch-financial-table td:nth-child(5){display:none!important}.ch-financial-overview .ch-financial-table th:nth-child(1){width:27%}.ch-financial-overview .ch-financial-table th:nth-child(3){width:25%}.ch-financial-overview .ch-financial-table th:nth-child(4){width:18%}.ch-financial-overview .ch-financial-table th:nth-child(6){width:15%}.ch-financial-overview .ch-financial-table th:nth-child(7){width:15%}}
@media(max-width:767px){.ch-financial-overview .ch-financial-table,.ch-financial-overview .ch-financial-table tbody,.ch-financial-overview .ch-financial-table tr,.ch-financial-overview .ch-financial-table td{display:block!important;width:100%!important}.ch-financial-overview .ch-financial-table thead{display:none!important}.ch-financial-overview .ch-financial-table tr{margin:0 0 12px;padding:12px;border:1px solid var(--ch-line);border-radius:14px}.ch-financial-overview .ch-financial-table td{padding:7px 0!important;text-align:right}.ch-financial-overview .ch-financial-table td:before{content:attr(data-label);float:left;color:#668176;font-size:11px;font-weight:700}.ch-financial-overview .ch-financial-table td:first-child{text-align:left}.ch-financial-overview .ch-financial-table td:first-child:before{display:none}.ch-financial-overview .ch-financial-table td:nth-child(2),.ch-financial-overview .ch-financial-table td:nth-child(5){display:none!important}.ch-financial-overview .ch-financial-table .ch-overview-action .btn{width:100%}}
/* Semantic Overview columns: all seven stay visible in the compact desktop table. */
.ch-overview-compact .ch-col-member{width:20%}.ch-overview-compact .ch-col-rank{width:13%}.ch-overview-compact .ch-col-sales{width:18%}.ch-overview-compact .ch-col-commission{width:14%}.ch-overview-compact .ch-col-benefits{width:11%}.ch-overview-compact .ch-col-total{width:12%}.ch-overview-compact .ch-col-action{width:12%}
@container (max-width:1000px){.ch-overview-compact .ch-col-member{width:27%}.ch-overview-compact .ch-col-rank,.ch-overview-compact .ch-col-benefits{display:none!important}.ch-overview-compact .ch-col-sales{width:25%}.ch-overview-compact .ch-col-commission{width:18%}.ch-overview-compact .ch-col-total{width:15%}.ch-overview-compact .ch-col-action{width:15%}}
.ch-financial-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.ch-financial-actions .btn{padding:7px 10px;font-size:12px;white-space:nowrap}.ch-financial-actions .danger{color:#b42318;border-color:#f7b9b2;background:#fff5f3}.ch-financial-actions .btn:disabled{opacity:.42;cursor:not-allowed}.ch-financial-source{display:none;grid-column:1/-1;border-top:1px dashed var(--ch-line);padding-top:10px;color:#4b6658}.ch-financial-line.is-source-open .ch-financial-source{display:block}.ch-financial-source h5{margin:0 0 5px;font-size:13px}.ch-financial-source ul{margin:0;padding-left:18px}.ch-financial-source li{display:flex;justify-content:space-between;gap:14px;padding:3px 0;font-size:12px;overflow-wrap:anywhere}.ch-financial-source b{font-weight:700;text-align:right}@media(max-width:720px){.ch-financial-line{display:flex;flex-direction:column;align-items:stretch}.ch-financial-actions{justify-content:stretch}.ch-financial-actions .btn{flex:1 1 calc(50% - 6px)}.ch-detail-grid{grid-template-columns:1fr}.ch-financial-source li{display:block}.ch-financial-source b{display:block;text-align:left}}
.ch-financial-hero{display:grid;gap:4px;padding:16px 18px;border:1px solid #bce8ca;border-radius:15px;background:linear-gradient(120deg,#eefbf2,#dff6e7);color:#124b2a}.ch-financial-hero span{font-size:11px;font-weight:800;letter-spacing:.06em;color:#087f3c}.ch-financial-hero strong{font-size:27px;line-height:1.1;color:#087f3c}.ch-financial-hero small{color:#567767;line-height:1.45}.ch-benefit-hero{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:10px;border:1px solid #dcebe1;border-radius:14px;background:#fbfefc}.ch-benefit-hero>div{display:grid;gap:4px;padding:10px;border-radius:10px;background:#f1faf4}.ch-benefit-hero span{font-size:11px;color:#547364}.ch-benefit-hero b{color:#087f3c;font-size:14px;white-space:nowrap}@media(max-width:720px){.ch-benefit-hero{grid-template-columns:repeat(2,minmax(0,1fr))}.ch-financial-hero strong{font-size:23px}}@media(max-width:390px){.ch-benefit-hero{grid-template-columns:1fr}}
/* Global financial overview: source data is supplied by financial_summary. */
.ch-financial-summary{container-type:inline-size;display:grid;gap:14px;margin:0 0 16px;padding:18px;border:1px solid #cfe8d8;border-radius:18px;background:#fbfefc;box-shadow:0 8px 24px rgba(22,82,47,.05)}
.ch-financial-summary-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.ch-financial-summary h3{margin:0;color:#174e34;font-size:16px}.ch-financial-summary p{margin:5px 0 0;color:#667085;font-size:13px;line-height:1.45}.ch-financial-summary-head>small{padding:6px 9px;border-radius:999px;background:#edf8f0;color:#31724e;font-size:11px;font-weight:700;white-space:nowrap}
.ch-financial-hero-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.ch-financial-hero-card{display:grid;min-width:0;min-height:150px;align-content:start;gap:7px;padding:14px;border:1px solid #deece2;border-radius:14px;background:#fff;color:#174e34;text-align:left;box-shadow:0 3px 10px rgba(22,82,47,.035);cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.ch-financial-hero-card:hover,.ch-financial-hero-card:focus-visible{border-color:#93d4a7;box-shadow:0 8px 18px rgba(22,82,47,.1);outline:0;transform:translateY(-1px)}.ch-financial-hero-card>span{color:#537464;font-size:11px;font-weight:800;letter-spacing:.035em;line-height:1.35}.ch-financial-hero-card strong{min-width:0;color:#087443;font-size:clamp(20px,2.15cqi,28px);line-height:1.18;white-space:nowrap;font-variant-numeric:tabular-nums}.ch-financial-hero-card small{color:#3d6850;font-size:12px;font-weight:800}.ch-financial-hero-card em{margin-top:auto;color:#718178;font-size:11px;font-style:normal;line-height:1.35}.ch-financial-hero-card.is-total{grid-column:span 2;min-height:168px;padding:17px;border-color:#b9e1c5;background:#f4fbf6}.ch-financial-hero-card.is-total strong{font-size:clamp(25px,2.7cqi,34px)}.ch-financial-hero-card.is-product{border-color:#eedeb2;background:#fffdf8}.ch-financial-hero-card.is-product strong{color:#8a5a00}.ch-financial-hero-card.is-benefit strong{color:#28764a}.ch-financial-summary--error{display:flex;align-items:center;justify-content:space-between;gap:12px}.ch-financial-summary--error p{margin-bottom:0}
@container (max-width:860px){.ch-financial-hero-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ch-financial-hero-card.is-total{grid-column:span 2}}
@media(max-width:600px){.ch-financial-summary{padding:14px;border-radius:16px}.ch-financial-summary-head{display:grid;gap:7px}.ch-financial-summary-head>small{justify-self:start;white-space:normal}.ch-financial-hero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ch-financial-hero-card{min-height:142px;padding:12px}.ch-financial-hero-card strong{font-size:clamp(18px,6.2vw,24px);letter-spacing:-.02em}.ch-financial-hero-card.is-total{min-height:154px;padding:14px}.ch-financial-hero-card.is-total strong{font-size:clamp(22px,7.1vw,29px)}.ch-financial-hero-card em{font-size:10px}.ch-financial-summary--error{align-items:flex-start;flex-direction:column}.ch-financial-summary--error .btn{width:100%;min-height:42px}}
@media(max-width:390px){.ch-financial-hero-grid{grid-template-columns:1fr}.ch-financial-hero-card.is-total{grid-column:auto}.ch-financial-hero-card{min-height:132px}.ch-financial-hero-card em{display:none}}

/* V164Q: canonical sort controls for Companion Hub read models. */
.ch-sort-select{min-width:180px;max-width:250px;height:40px;padding:0 36px 0 12px;border:1px solid #d8e6dd;border-radius:12px;background:#fff;color:#173b2c;font:inherit}
.ch-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media (max-width: 760px){
  .ch-panel-head{align-items:stretch}
  .ch-head-actions{width:100%;justify-content:stretch}
  .ch-head-actions .ch-sort-select{width:100%;max-width:none;min-width:0;flex:1 1 100%}
  .ch-head-actions .btn{flex:1 1 auto}
}

/* V164S - canonical commission source drill-down.  Presentation only; all
   relationship/rate/base facts are supplied by CommissionQueryService. */
.ch-financial-help{font-size:12px;color:#607a6e;background:#f5faf7;border:1px solid #e0eee6;border-radius:10px;padding:9px 11px;margin:-2px 0 4px}
.ch-commission-source-card{display:grid;gap:10px;background:#f9fcfa;border:1px solid #dcebe1;border-radius:10px;padding:10px}
.ch-source-title{display:flex;justify-content:space-between;gap:12px;align-items:center}.ch-source-title span{font-weight:800;color:#173d2e}.ch-source-title b{font-size:11px;color:#087a43;background:#e9f8ef;border-radius:999px;padding:4px 8px;white-space:nowrap}
.ch-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}.ch-source-grid>div{min-width:0}.ch-source-grid small,.ch-source-formula small{display:block;color:#6b8177;font-size:11px;margin-bottom:2px}.ch-source-grid strong{display:block;font-size:12px;color:#1f3e32;overflow-wrap:anywhere}.ch-source-formula{border-top:1px dashed #d3e6da;padding-top:8px}.ch-source-formula b{display:block;font-size:12px;color:#173d2e;overflow-wrap:anywhere}.ch-source-empty{font-size:12px;color:#6b8177}
@media(max-width:720px){.ch-source-title{align-items:flex-start;flex-direction:column}.ch-source-grid{grid-template-columns:1fr}.ch-source-title b{white-space:normal}}

/* V287 — Compact overview has EIGHT columns since the V283 checkbox was added.
   Set all eight widths together; do not let the checkbox inherit auto table width. */
.ch-financial-overview .ch-overview-desktop .ch-overview-compact{width:100%!important;table-layout:fixed!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-select{width:4%!important;min-width:0!important;max-width:none!important;text-align:center;white-space:nowrap;padding-left:5px!important;padding-right:5px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-member{width:17%!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-rank{width:12%!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-sales{width:19%!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-commission{width:13%!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-benefits{width:12%!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-total{width:10%!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-action{width:13%!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact th,
.ch-financial-overview .ch-overview-desktop .ch-overview-compact td{box-sizing:border-box;overflow-wrap:break-word;vertical-align:middle}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-select input{margin:0;vertical-align:middle}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-action .btn{max-width:100%;min-width:0;font-size:12px;padding:9px 10px;white-space:normal;line-height:1.25}
/* V288: eight-column overview — override legacy sticky 190px/120px widths.
   Header and body use the same columns; percentages are of remaining space. */
@media (min-width:768px){
.ch-financial-overview .ch-overview-desktop .ch-overview-compact{table-layout:fixed!important;width:100%!important;border-collapse:collapse}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td){position:static!important;left:auto!important;min-width:0!important;max-width:none!important;box-sizing:border-box;vertical-align:middle;overflow-wrap:normal}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(1){width:44px!important;min-width:44px!important;max-width:44px!important;text-align:center!important;padding-inline:6px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(2){width:calc((100% - 44px) * .19)!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(3){width:calc((100% - 44px) * .12)!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(4){width:calc((100% - 44px) * .20)!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(5){width:calc((100% - 44px) * .14)!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(6){width:calc((100% - 44px) * .12)!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(7){width:calc((100% - 44px) * .10)!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(8){width:calc((100% - 44px) * .13)!important;text-align:right}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(2){display:table-cell!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact :is(th,td):nth-child(5){display:table-cell!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact .ch-col-action .btn{white-space:nowrap!important;max-width:100%;font-size:12px;padding:9px 7px}
}

/* V290: one-row financial items; unique item class avoids the summary dashboard CSS. */
.ch-financial-detail-modal .ch-financial-line:has(> .ch-financial-item-summary){
 display:grid;grid-template-columns:18px minmax(0,1fr) auto;
 align-items:center;column-gap:8px;row-gap:0;min-width:0;padding:9px 10px;
}
.ch-financial-detail-modal .ch-financial-bulk-check{grid-column:1;grid-row:1;margin:0;width:16px;height:16px}
.ch-financial-detail-modal .ch-financial-item-summary{
 grid-column:2;grid-row:1;display:flex;align-items:center;gap:6px;
 min-width:0;overflow:hidden;white-space:nowrap;margin:0;padding:0;
 border:0;background:none;box-shadow:none;
}
.ch-financial-detail-modal .ch-financial-item-title{
 min-width:0;flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 font-size:12px;font-weight:700;
}
.ch-financial-detail-modal .ch-financial-order-code{
 flex:0 0 auto;max-width:100px;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;color:#42765b;font-size:11px;font-weight:700;
 font-variant-numeric:tabular-nums;
}
.ch-financial-detail-modal .ch-financial-item-amount{
 flex:0 0 auto;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums;
}
.ch-financial-detail-modal .ch-financial-line:has(> .ch-financial-item-summary) .ch-financial-actions{
 grid-column:3;grid-row:1;display:flex;align-items:center;justify-content:flex-end;
 flex-wrap:nowrap;gap:4px;width:auto;min-width:0;
}
.ch-financial-detail-modal .ch-financial-actions .ch-icon-action{
 flex:0 0 28px;width:28px;height:30px;min-width:28px;min-height:30px;
 padding:0;display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1;
}
.ch-financial-detail-modal .ch-financial-actions .ch-icon-action:focus-visible{outline:2px solid #009a50;outline-offset:2px}
.ch-financial-detail-modal .ch-financial-line:has(> .ch-financial-item-summary) .ch-financial-source{grid-column:1/-1;grid-row:2;min-width:0;margin-top:9px}
@media(max-width:600px){
 .ch-financial-detail-modal .ch-financial-line:has(> .ch-financial-item-summary){column-gap:5px;padding-inline:6px}
 .ch-financial-detail-modal .ch-financial-item-title,.ch-financial-detail-modal .ch-financial-item-amount{font-size:11px}
 .ch-financial-detail-modal .ch-financial-actions .ch-icon-action{flex-basis:26px;width:26px;min-width:26px;height:28px;min-height:28px}
}

.gb-tier-audit{padding:14px;border:1px solid #cfe8d8;border-radius:12px;background:#f7fcf8;margin-bottom:14px}
.gb-tier-audit p{margin:8px 0;line-height:1.5}
.gb-tier-audit .ch-table-wrap{overflow-x:auto}
.gb-tier-audit .ch-table{min-width:520px}

/* V327: the note is a SIBLING of the financial item grid, never a grid child.
   Previous V324 CSS could not reliably override nested component grid rules. */
.ch-financial-detail-modal .ch-benefit-projection {
 display:block;box-sizing:border-box;width:100%;min-width:0;
 white-space:normal;overflow-wrap:anywhere;line-height:1.5;
 padding:6px 12px 10px;margin:-4px 0 10px;
 color:#246b49;font-size:12px;
}
.ch-financial-detail-modal .ch-financial-estimate-warning {
  display:block;
  margin-top:7px;
  line-height:1.45;
}

/* V346: isolate overview table from legacy financial table sticky widths. */
.ch-financial-overview .ch-overview-desktop .ch-table-wrap{width:100%;max-width:100%;overflow-x:auto!important;overflow-y:visible!important;scrollbar-width:thin}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact{min-width:1330px!important;width:100%!important;table-layout:fixed!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact col:nth-child(1){width:42px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact col:nth-child(2){width:170px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact col:nth-child(3){width:130px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact col:nth-child(4){width:160px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact col:nth-child(5){width:170px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact col:nth-child(6){width:185px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact col:nth-child(7){width:310px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact col:nth-child(8){width:163px!important}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact th,.ch-financial-overview .ch-overview-desktop .ch-overview-compact td{position:static!important;min-width:0!important;max-width:none!important;width:auto!important;overflow-wrap:normal;box-sizing:border-box}
.ch-financial-overview .ch-overview-desktop .ch-overview-compact td:last-child .btn{max-width:100%;white-space:normal;overflow-wrap:break-word}
