/* Read store totals, reconcile allocations, open the original evidence. */
.store-bonus-check{min-width:0;--sbc-green:#3c614b;--sbc-warn:#8b4529}
.sbc-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.sbc-heading h1{font-size:22px;font-weight:600;margin:0;line-height:1.35;letter-spacing:-.02em}
.sbc-heading .row-actions{flex:none}.sbc-heading .row-actions>.btn{min-height:30px;padding:4px 10px;font-size:12px}
.sbc-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 8px;border-bottom:1px solid var(--line);margin-bottom:8px}
.sbc-filter{display:flex;align-items:center;gap:8px;margin:0;font-size:12px;min-width:0;white-space:nowrap}
.sbc-filter input,.sbc-filter select{width:145px;min-height:30px;height:30px;padding:3px 8px;font-size:13px}
.sbc-filter select[data-store-bonus-field="storeId"]{width:190px;max-width:240px}.sbc-query-caption{font-size:12px;color:var(--muted);margin-left:auto}
.sbc-single-store{display:flex;align-items:center;gap:8px;margin-right:auto;font-size:14px}.sbc-single-store span{font-size:12px;color:var(--muted)}
.sbc-status{padding:40px 20px;text-align:center;color:var(--muted);line-height:1.7}.sbc-status b{font-size:16px;font-weight:500;color:var(--text)}.sbc-status p{font-size:13px;margin:8px 0 14px}
.sbc-context-line{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin-bottom:8px}
.sbc-detail-heading,.sbc-detail-heading>div{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sbc-detail-heading h2{font-size:15px;font-weight:600;margin:0}.sbc-detail-heading>div>span:last-child{font-size:12px;color:var(--muted)}.sbc-detail-heading>.btn{min-height:26px;font-size:12px;padding:2px 5px}
.sbc-state{display:inline-block;border:1px solid #dbe5dc;background:#f0f5ef;color:var(--sbc-green);border-radius:5px;padding:1px 6px;font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap}
.sbc-state.is-warning{border-color:#e6d8c2;background:#fbf3e7;color:var(--sbc-warn)}.sbc-state.is-empty{border-color:var(--line);background:#f3f4f0;color:var(--muted)}
.sbc-totals{display:grid;grid-template-columns:1.2fr repeat(5,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;background:var(--white);overflow:hidden}
.sbc-totals>div{padding:6px 10px;min-width:0;border-right:1px solid var(--line)}.sbc-totals>div:last-child{border:0}.sbc-totals span{display:block;font-size:12px;color:var(--muted);line-height:1.5}
.sbc-totals strong{font-size:20px;font-family:var(--font-number);font-weight:600;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums}.sbc-totals .sbc-main-total{background:var(--accent);color:white}.sbc-totals .sbc-main-total span{color:#e6e8df}
.sbc-balance-band{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:16px;padding:7px 1px;border-bottom:1px solid var(--line);margin-bottom:8px}
.sbc-balance-item{min-width:0}.sbc-balance-item>div{display:flex;align-items:baseline;gap:4px 8px;flex-wrap:wrap;margin-bottom:2px;font-size:12px}.sbc-balance-item>div>b{font-weight:600}.sbc-balance-item>div>span{color:var(--sbc-green)}
.sbc-balance-item>strong{font-size:13px;font-weight:500;line-height:1.4;font-variant-numeric:tabular-nums;white-space:normal;overflow-wrap:anywhere}.sbc-balance-item>div>small{font-size:12px;line-height:1.4;color:var(--muted);margin-top:1px}.sbc-balance-item.is-warning>div>span{color:var(--sbc-warn);font-weight:600}
.sbc-rule-line{font-size:12px;color:var(--muted);line-height:1.5;max-width:100%}.sbc-rule-line summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}.sbc-rule-line>div{border-top:1px solid var(--line);padding:6px 0}.sbc-rule-line[open]{flex-basis:100%;order:2}.sbc-rule-line p{margin:5px 0;max-width:90ch}.sbc-rule-line b{font-weight:500;color:var(--text)}
.sbc-tabs{display:flex;align-items:center;gap:6px;margin:0 0 6px;flex-wrap:wrap}.sbc-tabs>.btn{font-size:13px;min-height:30px;padding:3px 9px}.sbc-tabs>span{font-size:12px;color:var(--muted);margin-left:auto}
.sbc-section{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.sbc-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 12px}.sbc-section-heading h2{font-size:15px;font-weight:600;margin:0}.sbc-section-heading>span{font-size:12px;color:var(--muted);line-height:1.5}
.sbc-table-wrap{max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.sbc-table{width:100%;border-collapse:collapse;font-size:13px;line-height:1.4;font-variant-numeric:tabular-nums}
.sbc-table th,.sbc-table td{text-align:right;border-bottom:1px solid var(--line);padding:3px 10px;vertical-align:middle;white-space:nowrap}
.sbc-table thead th{font-size:12px;font-weight:500;color:var(--muted);background:#f4f5f1;line-height:1.45;padding-top:6px;padding-bottom:6px}
.sbc-table th:first-child,.sbc-table td:first-child{text-align:left}.sbc-table tbody th{font-weight:500}.sbc-table tbody tr:last-child td,.sbc-table tbody tr:last-child th{border-bottom:0}
.sbc-table tbody tr:not(.sbc-expanded-row):hover{background:#fafbf7}.sbc-table .sbc-total{font-weight:650;color:var(--text)}
.sbc-table small{display:block;font-size:12px;color:var(--muted);font-weight:400;line-height:1.45;margin-top:2px;white-space:normal}
.sbc-store-name.btn,.sbc-person-name.btn{padding:0;min-height:24px;font-size:13px;font-weight:600;color:var(--text);white-space:normal;max-width:180px;text-align:left}
.sbc-store-name.btn:hover,.sbc-person-name.btn:hover{text-decoration:underline;text-underline-offset:4px}.sbc-table td>.btn{font-size:12px;padding:2px 5px;min-height:24px}
.sbc-person-identity{display:flex;align-items:center;gap:8px}.sbc-person-identity>small{display:inline;margin:0;white-space:nowrap}
.sbc-footnote{font-size:12px;color:var(--muted);line-height:1.5;margin:0;padding:6px 10px;border-top:1px solid var(--line)}
.sbc-subtotal{background:#f2f4ee;font-weight:600}.sbc-nonemployee{color:#5a6259}.sbc-nonemployee th>small{display:inline;margin-left:6px;color:var(--muted)}
.sbc-empty-note{padding:8px 12px;border:1px solid var(--line);border-radius:8px;font-size:13px;background:var(--white);color:var(--muted);margin:0 0 6px}
.sbc-bonus-table{min-width:880px}.sbc-bonus-table thead th{max-width:155px;white-space:normal}.sbc-bonus-table td>strong{font-size:13px;font-weight:600}.sbc-bonus-table .sbc-bonus-total{background:#fbf6df}
.sbc-performance-table{min-width:690px}.sbc-record-table .sbc-table th:first-child{min-width:195px}.sbc-record-table .sbc-table tfoot{background:var(--white)}
.sbc-record-table .sbc-table tfoot th,.sbc-record-table .sbc-table tfoot td{border-bottom:0;border-top:1px solid var(--line)}
.sbc-record-table.is-long{max-height:min(520px,calc(100dvh - 420px))}.sbc-record-table.is-long .sbc-table thead{position:sticky;top:0;z-index:3;background:#f4f5f1}.sbc-record-table.is-long .sbc-table tfoot{position:sticky;bottom:0;z-index:2;box-shadow:0 -1px 0 var(--line)}
.sbc-expanded-row>td{white-space:normal;padding:0!important;background:#f7f8f3}.sbc-person-detail{padding:16px}
.sbc-person-detail>header{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:12px}.sbc-person-detail h3{font-size:15px;font-weight:600;margin:0}.sbc-person-detail header p{font-size:12px;color:var(--muted);margin:5px 0 0}.sbc-person-detail header .btn{font-size:12px}
.sbc-person-detail-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.sbc-person-detail-grid>div{min-width:0}.sbc-person-detail h4{font-size:13px;font-weight:600;margin:0 0 8px}.sbc-person-detail h4 span{font-size:12px;font-weight:400;color:var(--muted)}
.sbc-mini-table{width:100%;border-collapse:collapse;font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums}.sbc-mini-table th,.sbc-mini-table td{padding:7px;text-align:right;border-bottom:1px solid var(--line);white-space:normal}.sbc-mini-table th:first-child,.sbc-mini-table td:first-child{text-align:left}.sbc-mini-table th{font-weight:500}.sbc-mini-table thead th{font-size:12px;color:var(--muted);background:transparent;white-space:normal}
.sbc-person-orders{max-height:310px;overflow:auto}.sbc-person-orders>div{display:grid;grid-template-columns:1fr auto auto;gap:8px;padding:8px 0;border-bottom:1px solid var(--line);align-items:center}.sbc-person-orders span{min-width:0}.sbc-person-orders b{font-size:12px;font-weight:500;white-space:nowrap}.sbc-person-orders small{font-size:12px;color:var(--muted);line-height:1.6}.sbc-person-orders>.btn{font-size:12px}
.sbc-supporting{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.sbc-supporting>details[open]{grid-column:1/-1}
.sbc-income-details,.sbc-day-details{margin-top:6px;font-size:12px;color:var(--muted)}.sbc-income-details summary,.sbc-day-details summary{cursor:pointer;min-height:24px;line-height:1.6;color:var(--text)}.sbc-income-details>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 18px;padding:12px 0;border-top:1px solid var(--line)}.sbc-income-details>div>span{display:flex;gap:12px;justify-content:space-between;min-width:0;font-size:12px}.sbc-income-details b{font-weight:600;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap}.sbc-income-details p{margin:0 0 12px}.sbc-day-details .sbc-table-wrap{max-height:330px}
.sbc-read-time{font-size:12px;color:var(--muted);line-height:1.5;margin:6px 0 0}.sbc-warning{font-size:13px;color:var(--sbc-warn);line-height:1.65}.sbc-close-summary{font-size:12px;color:var(--muted);margin:0;line-height:1.5}
.store-bonus-check :focus-visible{outline:2px solid var(--text);outline-offset:3px}.sbc-table-wrap:focus-visible{outline-offset:-2px}
@media(max-width:1450px){.sbc-totals>div{padding:6px 9px}.sbc-totals strong{font-size:19px}.sbc-table th,.sbc-table td{padding:3px 8px}.sbc-store-table{min-width:970px}.sbc-balance-band{gap:14px}}
@media(max-width:1100px){.sbc-totals{grid-template-columns:repeat(3,minmax(0,1fr))}.sbc-totals>div:nth-child(3){border-right:0}.sbc-totals>div:nth-child(-n+3){border-bottom:1px solid var(--line)}.sbc-balance-band{grid-template-columns:1fr 1fr}.sbc-balance-item:first-child{grid-column:1/-1}.sbc-income-details>div{grid-template-columns:repeat(2,minmax(0,1fr))}.sbc-person-detail-grid{grid-template-columns:1fr;gap:20px}}
@media(max-width:700px){.sbc-heading{display:block}.sbc-heading .row-actions{margin-top:8px}.sbc-toolbar{gap:8px}.sbc-filter{flex:1;min-width:140px;display:grid;gap:4px}.sbc-filter input,.sbc-filter select{width:100%;height:auto;font-size:16px;min-height:40px}.sbc-filter:has(select[data-store-bonus-field="storeId"]){flex-basis:100%}.sbc-filter select[data-store-bonus-field="storeId"]{width:100%;max-width:none}.sbc-query-caption{width:100%;margin:0}.sbc-context-line{gap:8px}.sbc-rule-line{width:100%}.sbc-detail-heading>div>span:last-child{width:100%}.sbc-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.sbc-totals>div{padding:8px 10px;border-bottom:1px solid var(--line)}.sbc-totals>div:nth-child(3){border-right:1px solid var(--line)}.sbc-totals>div:nth-child(even){border-right:0}.sbc-totals>div:nth-last-child(-n+2){border-bottom:0}.sbc-totals strong{font-size:20px}.sbc-balance-band{gap:12px}.sbc-balance-item>strong{font-size:12px}.sbc-tabs>span{flex-basis:100%;margin:3px 0 0}.sbc-section-heading{display:block}.sbc-section-heading>span{display:block;margin-top:5px}.sbc-person-detail{padding:13px}.sbc-person-detail>header{display:block}.sbc-person-detail header .btn{margin-top:10px}.sbc-income-details>div{grid-template-columns:1fr}.sbc-person-identity{display:block}.sbc-person-identity>small{display:block}.sbc-table td>.btn,.sbc-person-name.btn{min-height:32px}.sbc-record-table.is-long{max-height:520px}.sbc-supporting{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.store-bonus-check *{scroll-behavior:auto!important}}
.nav-item[data-action="go:store-bonus-reconciliation"] .nav-item-label{white-space:normal;line-height:1.5;font-size:12px;overflow:visible}

.page-store-bonus-reconciliation>.workspace-foot{display:none}

/* Reset inherited form direction and native disclosure spacing in this workspace. */
.store-bonus-check .sbc-toolbar>.sbc-filter{flex-direction:row;align-items:center;margin:0;padding:0;gap:8px}
.store-bonus-check .sbc-toolbar>.sbc-filter>input,.store-bonus-check .sbc-toolbar>.sbc-filter>select{margin:0;flex:none}
.store-bonus-check .sbc-context-line>.sbc-rule-line{margin:0;padding:0}
.store-bonus-check .sbc-rule-line>summary{padding:0;margin:0;line-height:24px;min-height:24px;font-size:12px}
.store-bonus-check .sbc-supporting{grid-template-columns:auto auto minmax(0,1fr);column-gap:20px;align-items:start;margin-top:6px}
.store-bonus-check .sbc-supporting>details{margin:0;padding:0}
.store-bonus-check .sbc-supporting>details>summary{margin:0;padding:0;min-height:24px;line-height:24px;font-size:12px}
.store-bonus-check .sbc-supporting>.sbc-read-time{margin:0;line-height:24px;white-space:nowrap;text-align:right}
.store-bonus-check .sbc-bonus-table td>small{line-height:1.3;margin-top:0}
@media(max-width:700px){.store-bonus-check .sbc-toolbar>.sbc-filter{display:flex;flex-direction:column;align-items:stretch;gap:4px}.store-bonus-check .sbc-supporting{grid-template-columns:1fr;gap:4px}.store-bonus-check .sbc-supporting>.sbc-read-time{text-align:left;white-space:normal}}
.sbc-fee-band{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:6px 0;background:#dedfdc;border:1px solid #dedfdc;border-radius:10px;overflow:hidden}
.sbc-fee-band>div{display:grid;align-content:center;gap:1px;min-width:0;padding:6px 10px;background:#fbfbf8}
.sbc-fee-band span,.sbc-fee-band small{font-size:.78rem;line-height:1.3}
.sbc-fee-band small{color:#555b55;overflow-wrap:anywhere}
.sbc-fee-band strong{font-size:1rem;font-variant-numeric:tabular-nums}
.sbc-fee-band .sbc-fee-total{background:#fff2b3}
.sbc-overview-table{min-width:1050px;border-collapse:separate;border-spacing:0}
.sbc-overview-table :is(th,td){padding-inline:7px}
.sbc-overview-table tbody :is(th,td){padding-block:1px}
.sbc-overview-table thead .sbc-overview-group{text-align:left;font-weight:650;padding-block:4px;color:var(--text)}
.sbc-overview-table .sbc-overview-start,.sbc-overview-table .sbc-overview-group{border-left:1px solid var(--line)}
.sbc-overview-table .sbc-overview-store{position:sticky;left:0;z-index:1;min-width:112px;background:var(--white)}
.sbc-overview-table thead .sbc-overview-store{background:#f4f5f1}
.sbc-overview-table tbody th>small{display:inline;margin-left:5px}
.sbc-overview-table thead .sbc-overview-fee{background:#fbf6df}
.sbc-overview-table .sbc-overview-fee.sbc-overview-highlight{background:#fff2b3}
.sbc-overview-table .sbc-overview-check:last-child{text-align:center}
.sbc-overview-table tfoot :is(th,td){background:#edf0e7;border-block:1px solid var(--line);padding-block:5px;font-weight:650}
.sbc-overview-table tfoot .sbc-overview-fee.sbc-overview-highlight{background:#f6e38c}
.management-fee-settings>section+section{margin-top:12px}
.management-fee-settings fieldset{margin:0;padding:0;border:0;min-width:0}
.management-fee-toolbar,.management-fee-fields{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.management-fee-toolbar{justify-content:space-between;margin-bottom:10px}
.management-fee-fields .field{width:160px;max-width:100%;margin:0}
.management-fee-fields>span{margin:0 0 7px}
.management-fee-table{min-width:680px;border:1px solid var(--line);border-radius:8px;table-layout:fixed}
.management-fee-table th:first-child{width:20%;font-weight:600;white-space:normal}
.management-fee-table :is(th,td):last-child{width:25%;text-align:left;white-space:normal}
.management-fee-table input{width:100%;max-width:128px;min-height:30px;padding:2px 8px;text-align:right;font-variant-numeric:tabular-nums}
.management-fee-history summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.management-fee-history ul{list-style:none;margin:6px 0;padding:0;max-height:180px;overflow:auto}
.management-fee-history li{border-top:1px solid var(--line);padding:4px 0;display:grid;gap:1px}
.management-fee-history li span{font-size:12px;color:var(--muted)}
.management-fee-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.management-fee-actions p{margin:0}.management-fee-actions [role="alert"]{color:#8b4529}
@media(max-width:680px){.sbc-fee-band{grid-template-columns:repeat(2,minmax(0,1fr))}}
