.business-page [hidden]{display:none!important}.business-shell{max-width:1320px;margin:auto;padding:38px 30px 80px}.business-heading,.panel-heading,.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}.business-heading{align-items:flex-end;margin-bottom:22px}.business-page h1{max-width:none;font-size:clamp(30px,4vw,42px);line-height:1.15;margin:0}.business-page h2{font-size:22px;margin:0}.business-page h3{font-size:16px;margin:0 0 16px}.business-page p{margin:8px 0}.business-page .muted{color:var(--muted);font-size:13px;line-height:1.55}.business-status{font-size:13px;color:var(--muted);min-height:22px}.business-status.error,.form-error{color:#a41325}.business-page input,.business-page select,.business-page textarea{font:inherit;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);min-height:43px}.business-page label{display:grid;gap:6px;font-size:13px;font-weight:600}.business-page label .muted{display:inline;font-weight:400}.business-page input:focus,.business-page select:focus,.business-page textarea:focus{outline:2px solid var(--red);outline-offset:2px}.month-picker{min-width:170px}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0 28px}.metric{background:white;border:1px solid var(--line);border-radius:10px;padding:20px}.metric span{display:block;font-size:12px;font-weight:600;color:var(--muted)}.metric strong{display:block;font-size:27px;line-height:1.25;margin:9px 0 5px;letter-spacing:-.5px}.metric small{color:var(--muted);font-size:12px}.metric.emphasis{background:var(--red-soft);border-color:#ecd0d5}.metric.emphasis strong{color:var(--red-strong)}.business-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:26px;overflow-x:auto}.business-tabs button{border:0;border-bottom:3px solid transparent;background:none;padding:14px 20px;font-size:14px;font-weight:700;color:var(--muted);white-space:nowrap;cursor:pointer}.business-tabs .active{border-color:var(--red);color:var(--red-strong)}.business-panel{background:white;border:1px solid var(--line);border-radius:12px;padding:26px}.business-panel .panel-heading{margin-bottom:24px}.business-page .primary-button{background:var(--red);color:white;padding:10px 18px;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;font-size:13px}.business-page .ghost-button{font-size:13px}.business-page button:disabled{opacity:.5;cursor:not-allowed}.search-label{max-width:340px;margin:0 0 22px}.breadcrumbs{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:12px 0}.breadcrumbs button,.link-button{background:none;border:0;padding:4px 0;color:var(--red-strong);font:inherit;font-size:13px;cursor:pointer;text-align:left;font-weight:700}.breadcrumbs span{color:var(--muted)}.team-focus{background:#f3f5f5;border-radius:9px;padding:20px;display:flex;justify-content:space-between;gap:20px;align-items:center}.team-focus h3{font-size:19px;margin:0}.team-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:16px 0 30px}.team-card{padding:17px;border:1px solid var(--line);border-radius:8px}.team-card h3{margin:4px 0}.team-card .team-pv{display:block;font-size:21px;font-weight:700;margin-top:12px}.team-card .button-row{justify-content:flex-start;margin-top:12px}.team-card .link-button{margin-right:12px}.empty-state{padding:36px 20px;text-align:center;background:#f7f9f9;border:1px dashed var(--line);border-radius:8px;margin:12px 0}.empty-state h3{margin:0 0 6px}.table-scroll{overflow:auto}.business-table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}.business-table caption{text-align:left;font-size:15px;font-weight:700;margin:0 0 12px}.business-table th{background:#f6f8f8;color:var(--muted);font-weight:700;white-space:nowrap;font-size:11px;letter-spacing:.02em;text-transform:uppercase;padding:13px 12px;border-bottom:1px solid var(--line)}.business-table td{padding:15px 12px;border-bottom:1px solid #e9eeee;vertical-align:top}.business-table td small{display:block;color:var(--muted);font-size:11px;max-width:230px;margin-top:4px}.business-table .amount{font-variant-numeric:tabular-nums;white-space:nowrap}.business-table tr:last-child td{border-bottom:0}.business-table .actions{display:flex;gap:13px;align-items:center}.badge{display:inline-block;font-size:11px;font-weight:600;background:#edf6f0;color:#276345;padding:3px 8px;border-radius:20px;white-space:nowrap}.badge.review{background:#fff3dd;color:#8c5a09}.badge.neutral{background:#edf0f2;color:var(--muted)}.notice{background:#f5f7f7;border-left:3px solid var(--line);border-radius:4px;padding:14px 16px;margin:16px 0!important;font-size:13px}.notice.attention{background:#fff7e7;border-color:#d6a12f}.notice.negative{background:var(--red-soft);border-color:var(--red)}.button-row{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap}.plan-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:48px}.form-stack{display:grid;gap:17px}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-columns.thirds{grid-template-columns:1fr 1fr 1fr}.business-page .check-label{display:flex;align-items:flex-start;gap:10px}.check-label input{width:18px;min-height:18px;height:18px;flex:0 0 18px;margin-top:2px}.business-page dialog{border:0;border-radius:14px;padding:28px;width:min(620px,calc(100vw - 30px));max-height:90vh;overflow-y:auto;box-shadow:0 25px 100px #0004;color:var(--ink)}.business-page dialog::backdrop{background:#17212788}.business-page .wide-dialog{width:min(860px,calc(100vw - 30px))}.dialog-heading{margin-bottom:6px}.icon-button{background:#f0f3f3;border:0;border-radius:50%;font-size:24px;line-height:1;width:34px;height:34px;cursor:pointer;color:var(--muted);flex-shrink:0}.form-error:empty{display:none}.business-page .wide-dialog .notice{margin:16px 0 22px!important}.detail-total{display:flex;justify-content:space-between;padding:20px;background:var(--red-soft);color:var(--red-strong);border-radius:8px;margin-top:20px;font-weight:700}.detail-team-table{margin:20px 0}.business-page .nav [aria-current]{color:var(--red)}
@media(max-width:900px){.metric-grid{grid-template-columns:repeat(2,1fr)}.team-grid{grid-template-columns:repeat(2,1fr)}.plan-grid{grid-template-columns:1fr;gap:30px}.business-page .brand{max-width:240px}.business-page .nav{font-size:12px}.business-panel{padding:20px}}
@media(max-width:600px){.business-shell{padding:24px 14px 50px}.business-heading{align-items:flex-start;gap:18px;flex-direction:column}.month-picker{width:100%}.metric{padding:15px}.metric strong{font-size:23px}.business-page .topbar{position:static;flex-direction:column;gap:10px}.business-page .brand{max-width:230px}.business-tabs button{padding:12px}.panel-heading{align-items:flex-start;flex-direction:column;gap:12px}.team-grid{grid-template-columns:1fr}.team-focus{align-items:flex-start;flex-direction:column}.form-columns,.form-columns.thirds{grid-template-columns:1fr}.business-panel{padding:16px}.business-page dialog{padding:20px}.business-table{min-width:670px}.plan-grid .business-table{min-width:0}.business-page .wide-dialog .business-table{min-width:480px}.business-page .wide-dialog .bonus-table{min-width:0}.business-page .wide-dialog .bonus-table td{padding:10px 7px}.business-status{overflow-wrap:anywhere}}
@media(max-width:600px){#queuePanel .business-table{min-width:0}#queuePanel .business-table th:nth-child(2),#queuePanel .business-table td:nth-child(2){display:none}#queuePanel .business-table td small{overflow-wrap:anywhere}#queuePanel .business-table td:last-child{min-width:100px}}
.member-directory{min-width:1180px}.member-directory caption small{display:block;margin-top:5px;font-size:12px;font-weight:400;color:var(--muted)}.member-directory > tbody > .member-row > td:first-child{min-width:165px}.member-directory > tbody > .member-row > td:first-child small{overflow-wrap:anywhere}.member-directory .team-count{min-width:95px;font-variant-numeric:tabular-nums}.member-directory .income-cell{min-width:145px;font-variant-numeric:tabular-nums}.member-directory .income-link{font-weight:700;white-space:nowrap}.member-directory .qualification-cell{min-width:195px;max-width:220px}.member-directory .qualification-cell strong{display:block;margin-bottom:5px}.member-directory .actions{flex-wrap:wrap;min-width:85px}
.member-directory td .directory-context{display:none}
.directory-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;font-size:12px;color:var(--muted)}
.directory-pager .ghost-button{padding:7px 12px}
@media(max-width:600px){.directory-pager{align-items:flex-start;flex-direction:column}}
@media(max-width:1100px){.member-directory{min-width:740px}.member-directory > thead > tr > th,.member-directory > tbody > .member-row > td{padding-left:10px;padding-right:10px}.member-directory > thead > tr > th:nth-child(2),.member-directory > tbody > .member-row > td:nth-child(2),.member-directory > thead > tr > th:nth-child(3),.member-directory > tbody > .member-row > td:nth-child(3){display:none}.member-directory td .directory-context{display:block}.member-directory > tbody > .member-row > td:first-child{min-width:140px;max-width:180px}.member-directory .team-count{min-width:50px}.member-directory .income-cell{min-width:125px}.member-directory .qualification-cell{min-width:170px;max-width:190px}.member-directory .actions{min-width:65px}}

.member-directory > tbody > .member-bonus-row > td{padding:0 12px 20px;background:#f7f9f9}
.member-bonus-panel{border:1px solid var(--line);border-left:3px solid var(--red);border-radius:8px;background:white;padding:20px;margin:0 0 4px}
.member-bonus-panel h3{margin:0}
.member-bonus-panel > .muted{margin:5px 0 16px}
.member-bonus-panel .bonus-table{min-width:0;table-layout:fixed}
.bonus-table > thead > tr > th:first-child{width:26%}
.bonus-table > thead > tr > th:last-child{width:16%}
.bonus-table > thead > tr > th:last-child,.bonus-table .amount{text-align:right}
.member-bonus-panel .bonus-table td small{max-width:none;margin-top:0}
.member-bonus-panel .detail-total{margin-top:16px;padding:14px 12px}
.member-bonus-panel .full-calculation{margin-top:12px}
.bonus-calculation{margin-top:16px;border:1px solid var(--line);border-radius:7px;padding:12px}
.bonus-calculation summary{color:var(--red-strong);font-size:13px;font-weight:700;cursor:pointer}
.bonus-calculation .business-table{margin-top:12px;min-width:550px}
.member-directory .link-button:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:2px}
@media(max-width:1100px){.member-directory > tbody > .member-bonus-row > td{padding:0 10px 16px}.member-bonus-panel{padding:16px}}
.bonus-table{table-layout:fixed;min-width:0}
.bonus-table .bonus-type-heading th{padding:20px 12px 9px;text-align:left;font-size:14px;text-transform:none;letter-spacing:0;color:var(--red-strong);background:#f6f8f8;border-top:2px solid var(--line);white-space:normal}
.bonus-table .bonus-rule td{padding:8px 12px;color:var(--muted);font-size:12px;background:#fafbfb}
.bonus-table .bonus-entry td{padding:13px 12px;overflow-wrap:anywhere;line-height:1.5}
.bonus-table .bonus-subtotal td{background:#f3f6f5;font-weight:700;padding:10px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.bonus-evidence{margin:7px 0 0;padding-left:17px;font-size:12px;color:var(--muted)}
.bonus-evidence li{margin:3px 0}
.bonus-proof{margin-top:10px;font-size:12px}
.bonus-proof summary{cursor:pointer;color:var(--red-strong);font-weight:700}
.bonus-proof ul{padding-left:17px;max-height:280px;overflow:auto}
.bonus-proof li{margin:8px 0}
@media(max-width:600px){.bonus-table > thead > tr > th:first-child{width:25%}.bonus-table > thead > tr > th:last-child{width:24%}.bonus-table .bonus-entry td{padding:10px 7px}.bonus-table .amount{font-size:12px}}
#teamPayout{margin-top:12px}
.member-preview{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.member-preview[hidden]{display:none}
.member-preview a,.focus-actions a{color:var(--red-strong);font-weight:700;font-size:13px}
.focus-actions{display:flex;flex-direction:column;align-items:center;gap:10px}
.selected-payout-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 20px;border:1px solid #ecd0d5;border-radius:8px;background:var(--red-soft)}
.selected-payout-summary .eyebrow{margin:0 0 6px;font-size:11px}
.selected-payout-amount{display:block;color:var(--red-strong);font-size:26px;line-height:1.2;font-variant-numeric:tabular-nums}
.selected-payout-summary .muted{margin:6px 0 0}
.selected-payout-summary .ghost-button{flex-shrink:0;background:white}
#selectedPayoutDetails{margin-top:12px}
@media(max-width:600px){.selected-payout-summary{align-items:flex-start;flex-direction:column;gap:12px;padding:16px}#selectedPayoutDetails .member-bonus-panel{padding:12px}.selected-payout-summary .ghost-button{width:100%}}
.team-chart{margin:24px 0;scroll-margin-top:110px}
.chart-toolbar,.chart-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.chart-toolbar h3{margin:0;font-size:18px}
.chart-toolbar .muted{margin:5px 0 0}
.chart-navigation,.chart-zoom,.chart-team-picker{display:flex;align-items:center;gap:8px}
.chart-controls{margin-top:16px}
.chart-team-picker{align-items:flex-end;flex:1;max-width:500px}
.chart-team-picker label{flex:1;min-width:0}
.chart-team-picker select{min-width:0;text-overflow:ellipsis}
.chart-bracket-picker{min-width:150px;align-self:flex-end}
.chart-zoom{flex-wrap:wrap;justify-content:flex-end;align-self:flex-end}
.team-chart .ghost-button{padding:8px 12px;min-height:40px;white-space:nowrap}
.chart-arrow{font-size:22px!important;line-height:1;min-width:40px}
#chartZoomValue{min-width:42px;text-align:center;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
.chart-help{margin:12px 0!important}
.chart-viewport{height:min(68vh,640px);min-height:320px;overflow:auto;border:1px solid #d9dfe3;border-radius:10px;background:white;overscroll-behavior:contain;scrollbar-gutter:stable}
.chart-viewport:focus-visible{outline:2px solid var(--red);outline-offset:3px}
#chartSpace{position:relative;min-width:100%}
#chartStage{position:absolute;inset:0 auto auto 0;transform-origin:0 0}
.chart-band{position:absolute;left:0;right:0;border-top:1px dashed #bdc7d0;background:#fff}
.chart-band.alternate{background:#fafbfc}
.chart-band-label{position:absolute;z-index:4;display:block;white-space:nowrap;padding:5px 8px;border:1px solid #e0e5e8;border-radius:5px;background:#fff;color:#4a5d6c;font-size:11px;font-weight:700;transform-origin:0 0;box-shadow:0 2px 5px #24313c09;pointer-events:none}
.chart-connections{position:absolute;inset:0;z-index:1;overflow:visible;pointer-events:none}
.chart-connections path{fill:none;stroke:#b4c1cc;stroke-opacity:.4;stroke-width:1.2;vector-effect:non-scaling-stroke}
.chart-connections path.chart-highlight{stroke:var(--red);stroke-opacity:1;stroke-width:2}
.chart-member{position:absolute;z-index:2;width:144px;height:128px;display:flex;align-items:center;flex-direction:column;gap:2px;padding:3px 6px 6px;border:1px solid transparent;border-radius:9px;background:#ffffffed;color:var(--ink);cursor:pointer;font:inherit}
.chart-member img{display:block;flex-shrink:0;object-fit:contain;width:62px;height:62px;pointer-events:none}
.chart-member-name{font-size:12px;font-weight:700;line-height:15px;max-height:30px;max-width:100%;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}
.chart-member-pv{font-size:11px;line-height:15px;font-variant-numeric:tabular-nums;color:var(--red-strong);font-weight:600;white-space:nowrap}
.chart-root{border-color:#ddbdc4;background:#fff8fa}
.qualification-red{--qualification-color:#a91c31;--qualification-bg:#fff0f2}
.qualification-amber{--qualification-color:#865200;--qualification-bg:#fff4d6}
.qualification-green{--qualification-color:#16623b;--qualification-bg:#e8f7ee}
.qualification-blue{--qualification-color:#175ca6;--qualification-bg:#e9f2ff}
.qualification-unknown{--qualification-color:#52616e;--qualification-bg:#eef1f3}
.chart-member.qualification-green img{filter:hue-rotate(130deg) saturate(1.4) brightness(1.35)}
.chart-member.qualification-blue img{filter:hue-rotate(225deg) saturate(1.5) brightness(1.6)}
.chart-member.qualification-amber img{filter:hue-rotate(62deg) saturate(1.8) brightness(1.8)}
.chart-member.qualification-unknown img{filter:grayscale(1)}
.chart-member-status{font-size:10px;line-height:13px;border-radius:4px;padding:1px 4px;white-space:nowrap;color:var(--qualification-color);background:var(--qualification-bg)}
.chart-member img{width:50px;height:50px}
.chart-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:14px;font-size:12px}
.chart-legend span{display:inline-flex;align-items:center;gap:6px;color:var(--qualification-color)}
.chart-legend span::before{content:'';width:10px;height:10px;flex-shrink:0;border-radius:50%;background:var(--qualification-color)}
.chart-qualification-help{font-size:12px;margin:6px 0 0!important}
.chart-member{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.chart-member.is-dragging{cursor:grabbing;z-index:5;box-shadow:0 8px 24px #25374826;outline:2px solid var(--red)}
.chart-position-status:empty{display:none}
.chart-position-status{min-height:20px;margin:0 0 8px!important}
.team-chart:fullscreen,.team-chart.chart-fullscreen{box-sizing:border-box;width:100%;height:100dvh;max-width:none;margin:0;padding:22px;background:white;display:flex;flex-direction:column;gap:0;overflow:auto}
.team-chart.chart-fullscreen{position:fixed;inset:0;z-index:10000}
.team-chart:fullscreen .chart-viewport,.team-chart.chart-fullscreen .chart-viewport{flex:1;min-height:180px;height:auto}
.team-chart:fullscreen .chart-controls,.team-chart.chart-fullscreen .chart-controls{flex-shrink:0}
body.chart-modal-open{overflow:hidden}
@media(max-width:600px){.team-chart:fullscreen,.team-chart.chart-fullscreen{padding:12px}.team-chart:fullscreen .chart-help,.team-chart.chart-fullscreen .chart-help{font-size:12px}.team-chart:fullscreen .chart-toolbar,.team-chart.chart-fullscreen .chart-toolbar{gap:8px}}
.expense-filters{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:24px 0 14px}.expense-filters .search-label{margin:0;flex:1;min-width:220px}.expense-table{min-width:850px}.expense-table td{overflow-wrap:anywhere}.expense-table .actions{white-space:nowrap}.expense-history{margin-top:10px;font-size:12px;max-width:340px;min-width:100px}.expense-history summary,.expense-administrators>summary{cursor:pointer;font-weight:700;color:var(--red-strong)}.expense-history>div{padding:12px 0;border-bottom:1px solid var(--line)}.expense-history ul{padding-left:15px}.expense-history li{margin:6px 0}.expense-voided{background:#faf7f7}.expense-administrators{margin-top:30px;border-top:1px solid var(--line);padding-top:20px}.business-admin-entry{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line);font-size:14px}.business-admin-entry .muted{overflow-wrap:anywhere}.business-admin-entry .ghost-button{flex-shrink:0}#expenseMetrics .metric strong{font-size:24px}@media(max-width:600px){.business-admin-entry{align-items:flex-start;flex-direction:column}#expenseMetrics{grid-template-columns:1fr}.expense-filters .search-label{max-width:none}}
.chart-member:hover,.chart-member:focus-visible{outline:2px solid var(--red);outline-offset:2px;background:#fff5f7;z-index:3}
@media(max-width:600px){.team-chart{scroll-margin-top:20px}.chart-toolbar{align-items:flex-start}.chart-navigation{flex-wrap:wrap}.chart-team-picker{width:100%;max-width:none;flex-basis:100%}.chart-controls{gap:12px}.chart-zoom{width:100%;justify-content:flex-start}.chart-viewport{height:60vh;min-height:350px}.team-chart .ghost-button{padding:8px 10px}.chart-toolbar h3{font-size:16px}}
.ids-controls{display:flex;align-items:end;gap:20px;flex-wrap:wrap;margin:20px 0}.ids-controls label{min-width:200px}.ids-controls .muted{max-width:330px}.ids-section{margin-top:34px}.ids-section>h3{font-size:19px;margin-bottom:6px}.ids-section>.muted{max-width:900px;margin-bottom:16px}.ids-table{min-width:1040px}.ids-table th[scope="row"]{font-size:13px;text-transform:none;letter-spacing:0;white-space:normal;background:white;color:var(--ink);min-width:190px;vertical-align:top;border-bottom:1px solid #e9eeee}.ids-table td:not(:first-child){font-variant-numeric:tabular-nums}.ids-table .ids-average{font-weight:700;color:var(--red-strong);background:#fcf7f8}.ids-table .ids-empty-rank{color:var(--muted)}.ids-table .ids-empty-rank th{color:var(--muted)}.ids-table tfoot td,.ids-table tfoot th[scope="row"]{font-weight:700;background:#f3f5f5;border-top:2px solid var(--line)}.ids-method{margin-top:28px;border-top:1px solid var(--line);padding-top:22px;color:var(--muted);font-size:13px;line-height:1.6}.ids-method h3{color:var(--ink)}#idsMetrics .metric strong{font-size:24px}#idsStatus{min-height:24px}@media(max-width:600px){.ids-controls{align-items:stretch;flex-direction:column}.ids-controls label{min-width:0}.ids-controls .muted{max-width:none}#idsMetrics{grid-template-columns:1fr}.ids-table th,.ids-table td{padding:12px 10px}}
