.rc-shell{display:grid;gap:14px;color:var(--text-color,#173154);font-size:13px}.rc-header{display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.rc-header h3{font-size:23px;margin:0 0 5px}.rc-header small{display:block;max-width:850px;color:#64748b}.rc-actions,.rc-nav,.rc-pager{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.rc-nav{border-bottom:1px solid #dce5ef;padding:0 0 10px}.rc-nav button{font-size:12px;padding:7px 12px}.rc-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end;background:#f6f8fc;border:1px solid #dce5ef;padding:12px;border-radius:12px}.rc-filters label,.rc-dialog label{display:grid;gap:4px;font-size:12px}.rc-filters input,.rc-filters select,.rc-dialog input:not([type=checkbox]),.rc-dialog select,.rc-dialog textarea{background:white;border:1px solid #cdd8e6;border-radius:7px;padding:8px;min-height:35px;color:#173154;max-width:100%}.rc-filters input{max-width:170px}.rc-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:10px}.rc-kpi{background:white;border:1px solid #e1e7ef;border-radius:12px;padding:14px;min-width:0}.rc-kpi small{display:block;color:#64748b;font-size:11px}.rc-kpi strong{display:block;font-size:20px;font-variant-numeric:tabular-nums;margin:6px 0;overflow-wrap:anywhere}.rc-podium{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:14px}.rc-winner{display:grid;gap:8px;background:white;border:1px solid #dce5ef;padding:18px;border-radius:14px;min-width:0}.rc-winner.first{background:linear-gradient(125deg,#5149cc,#726bee);color:white;border-color:transparent}.rc-winner>span{display:flex;align-items:center;gap:8px}.rc-winner h4{font-size:18px;margin:0;overflow-wrap:anywhere}.rc-winner strong{font-size:24px;overflow-wrap:anywhere}.rc-winner svg{width:26px;height:26px;color:#ffdb68}.rc-progress>div{background:#e6eaf1;border-radius:8px;height:7px;margin-top:5px;overflow:hidden}.rc-progress i{display:block;height:100%;background:var(--rc-tone,#94a3b8)}.rc-progress>span{font-size:12px;white-space:nowrap}.rc-shell .red,.rc-dialog .red{--rc-tone:#d94858}.rc-shell .orange,.rc-dialog .orange{--rc-tone:#cf8b20}.rc-shell .blue,.rc-dialog .blue{--rc-tone:#387bdc}.rc-shell .green,.rc-dialog .green{--rc-tone:#119b78}.rc-badge{font-size:11px;color:var(--rc-tone,#64748b);background:#f3f6fa;padding:4px 7px;border-radius:6px;white-space:nowrap}.rc-table{padding:14px}.rc-table header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.rc-table h4{margin:0;font-size:16px}.rc-table-scroll{overflow-x:auto;margin-top:12px}.rc-table table,.rc-dialog table{width:100%;border-collapse:collapse;font-size:12px}.rc-table th,.rc-table td,.rc-dialog th,.rc-dialog td{text-align:left;padding:10px 8px;border-bottom:1px solid #e7edf5;vertical-align:middle}.rc-table th{background:#f4f7fb}.rc-table th button{font-size:11px;border:0;background:none;color:inherit;padding:0}.rc-table td{white-space:nowrap;font-variant-numeric:tabular-nums}.rc-table td:nth-child(2){white-space:normal;min-width:170px}.rc-table td:nth-child(2) button{text-align:left;white-space:normal;font-weight:600;border:0;background:none;padding:0}.rc-table td small{display:block;color:#64748b}.rc-pager{justify-content:flex-end;padding-top:12px;font-size:12px}.rc-dialog{width:min(900px,95vw);max-height:92vh;border:1px solid #dce5ef;border-radius:15px;padding:0;color:#173154;background:white}.rc-dialog::backdrop{background:#0f172a70}.rc-dialog>header{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px;border-bottom:1px solid #e1e7ef}.rc-dialog h3{margin:0;font-size:18px}.rc-dialog-body{padding:16px;overflow:auto}.rc-dialog form{display:grid;gap:12px}.rc-dialog fieldset{max-height:240px;overflow:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;border:1px solid #dce5ef;border-radius:8px;padding:12px}.rc-dialog fieldset label,.rc-dialog label:has(input[type=checkbox]){display:flex;gap:8px;align-items:center}.rc-dialog table{margin:12px 0}.rc-dialog .rc-actions{margin-top:16px}
@media(max-width:700px){.rc-podium{grid-template-columns:1fr}.rc-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rc-header h3{font-size:20px}.rc-winner{padding:14px}.rc-kpi{padding:11px}.rc-kpi strong{font-size:18px}.rc-filters label{flex:1 1 120px}.rc-filters input{max-width:100%;width:100%}.rc-table-scroll{overflow:visible}.rc-table thead{display:none}.rc-table table,.rc-table tbody{display:block}.rc-table tbody{display:grid;gap:10px}.rc-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:10px;border:1px solid #dce5ef;border-radius:10px;padding:12px}.rc-table td{display:block;padding:0;border:0;white-space:normal;min-width:0!important;overflow-wrap:anywhere}.rc-table td:nth-child(2){grid-column:1/-1;grid-row:1}.rc-table td:before{content:attr(data-label);display:block;font-size:10px;color:#64748b;margin-bottom:3px}.rc-table td:last-child{grid-column:1/-1}.rc-dialog fieldset{grid-template-columns:1fr}.rc-dialog .rc-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rc-nav{gap:5px}.rc-nav button{font-size:11px;padding:6px 8px}}

.rc-chart{display:flex;gap:6px;align-items:end;height:135px;border-bottom:1px solid #dce5ef}.rc-chart>div{flex:1;display:flex;gap:2px;align-items:end;position:relative;padding-bottom:20px;min-width:0}.rc-chart small{position:absolute;bottom:0;left:0;font-size:10px}.rc-chart span,.rc-chart i{flex:1;min-width:2px;background:#446bdc;border-radius:3px 3px 0 0}.rc-chart i{background:#0e9b78}

.rc-shell,.rc-dialog{font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif}.rc-shell button,.rc-dialog button{font:inherit;font-size:12px;border:1px solid #ced8e8;border-radius:8px;padding:8px 11px;cursor:pointer;background:#fff;color:#264468}.rc-shell button.btn-primary,.rc-dialog button.btn-primary{background:#5146dc;color:#fff;border-color:#5146dc}.rc-shell button:hover,.rc-dialog button:hover{filter:brightness(.96)}.rc-shell h3,.rc-shell h4{margin:0 0 10px}.rc-winner.first button{background:#fff;color:#4937bd}.rc-dialog table{width:100%;border-collapse:collapse}.rc-dialog th,.rc-dialog td{text-align:left;padding:8px;border-bottom:1px solid #e2e8f0}.rc-dialog-body{overflow:auto}.rc-dialog fieldset{max-height:230px;overflow:auto}.rc-dialog fieldset label{display:flex;align-items:center;gap:8px}

/* Desktop report: keep each reseller record on one compact line. */
@media(min-width:701px){
 .rc-table th,.rc-table td{white-space:nowrap;vertical-align:middle}
 .rc-table td:nth-child(2),.rc-table td:nth-child(2) button{white-space:nowrap}
 .rc-table td small{display:inline;margin-left:6px}
 .rc-table td .rc-progress{display:flex;align-items:center;gap:8px;white-space:nowrap}
 .rc-table td .rc-progress>div{width:64px;min-width:64px;margin:0}
 .rc-table td .rc-progress.none>div{display:none}
 .rc-table td{padding-top:7px;padding-bottom:7px}
}

.rc-chart{height:190px;overflow-x:auto;align-items:end;padding-top:10px}.rc-chart>div{min-width:90px;height:160px}.rc-chart-value{position:absolute;top:0;left:0;font-size:10px;white-space:nowrap}.rc-chart-value em{display:block;font-style:normal;font-weight:400;color:#64748b;margin-top:3px}

/* Compact reseller workspace, 20261121. */
.rc-shell .rc-table th button.rc-sort{background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;border-radius:0;padding:0;min-height:0;color:inherit;font-size:11px;font-weight:600}
.rc-shell .rc-table th button.rc-sort:hover{text-decoration:underline;filter:none}

.rc-view-ranking>.rc-metrics{display:none}
.rc-seller-dialog{width:min(1180px,96vw);max-height:94dvh}
.rc-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.rc-dialog>header{flex-shrink:0}.rc-dialog-body{min-height:0;overflow:auto}
.rc-seller-dialog .rc-dialog-body{padding:12px 16px}
.rc-seller-dialog .rc-actions{margin:0 0 10px}.rc-detail-tabs{display:flex;gap:8px;margin-bottom:12px}
.rc-seller-dialog [hidden]{display:none!important}
.rc-seller-dialog .rc-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
.rc-seller-dialog .rc-kpi{padding:9px 12px}.rc-seller-dialog .rc-kpi strong{font-size:18px;margin:4px 0}
.rc-seller-dialog p{margin:8px 0}.rc-seller-dialog .rc-chart{height:170px;overflow:visible;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:5px}
.rc-seller-dialog .rc-chart>div{min-width:0;height:155px}.rc-seller-dialog .rc-chart-value{font-size:9px;white-space:normal;overflow-wrap:anywhere}
#resellerDetailModal .reseller-detail-panel{width:min(1180px,96vw);max-height:94dvh;display:flex;flex-direction:column;overflow:hidden;padding:16px}
#resellerDetailModal .reseller-detail-head{flex-shrink:0}
#resellerDetailBody{min-height:0;overflow:auto;margin-top:12px}
#resellerDetailBody .reseller-detail-tabs{display:flex;gap:8px;margin:12px 0}
#resellerDetailBody .reseller-detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#resellerDetailBody .reseller-detail-pager{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:12px}
#resellerDetailBody .reseller-order-card{padding:12px}
@media(max-width:700px){.rc-seller-dialog .rc-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rc-seller-dialog .rc-chart{grid-template-columns:repeat(6,minmax(0,1fr));height:330px}.rc-seller-dialog .rc-chart-value{font-size:8px}#resellerDetailBody .reseller-detail-list{grid-template-columns:1fr}.rc-seller-dialog .rc-actions{gap:4px}.rc-seller-dialog .rc-actions button{font-size:11px;padding:6px}}

/* One reseller navigation and compact ranking actions. */
.rc-shell .rc-table button.rc-action-link,.rc-shell .rc-winner button.rc-action-link{display:inline;background:none!important;background-image:none!important;border:0!important;box-shadow:none!important;min-height:0;padding:0 4px;border-radius:0;font-size:11px;line-height:1.3;color:#2458b5;text-decoration:underline;text-underline-offset:2px}
.rc-shell .rc-table td:last-child .rc-action-link+.rc-action-link{margin-left:8px}
.rc-shell .rc-podium{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.rc-shell .rc-winner{gap:5px;padding:12px 14px;border-radius:10px}
.rc-shell .rc-winner h4{font-size:14px;margin:0}.rc-shell .rc-winner strong{font-size:20px}.rc-shell .rc-winner svg{width:18px;height:18px}
.rc-shell .rc-winner button.rc-action-link{text-align:left;justify-self:start;margin-top:3px}
.rc-shell .rc-winner.first h4,.rc-shell .rc-winner.first button.rc-action-link{color:white}
.rc-shell .rc-winner .rc-progress>div{height:4px}.rc-shell .rc-winner small{font-size:10px}
.rc-shell.rc-legacy-page{display:grid;gap:14px}.rc-legacy-page>.rc-header{margin:0;padding:0;background:none;border:0;box-shadow:none}.rc-legacy-page>.rc-nav{margin:0}
.rc-legacy-page>.rc-header h3{font-size:23px;font-weight:400;margin:0 0 5px}
.rc-orders-page .rc-table th,.rc-orders-page .rc-table td{display:table-cell}
@media(max-width:700px){.rc-shell .rc-podium{grid-template-columns:1fr}.rc-shell .rc-winner{padding:10px 12px}.rc-orders-page .rc-table td{display:block}.rc-orders-page .rc-table td:last-child{grid-column:auto}}

/* Stable reseller history: shared table viewport and footer on all tabs. */
#resellerDetailModal .reseller-detail-panel{height:min(760px,94dvh);max-height:94dvh;box-sizing:border-box}
#resellerDetailBody{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:8px}
#resellerDetailBody>div,#resellerDetailBody>nav,#resellerDetailBody>footer,#resellerDetailBody>.reseller-detail-summary{flex-shrink:0}
#resellerDetailBody .reseller-detail-tabs{margin:4px 0}
#resellerDetailBody .reseller-detail-summary[open]{max-height:28dvh;overflow:auto}
#resellerDetailBody .reseller-detail-table-region{flex:1;min-height:0;overflow:auto;scrollbar-gutter:stable;border:1px solid #e1e7ef;border-radius:8px}
#resellerDetailBody table{width:100%;border-collapse:collapse;font-size:12px;margin:0;white-space:nowrap}
#resellerDetailBody th,#resellerDetailBody td{padding:8px 10px;text-align:left;border-bottom:1px solid #e1e7ef;vertical-align:middle;line-height:1.35}
#resellerDetailBody th{position:sticky;top:0;z-index:1;background:#f1f6fb;font-size:11px}
#resellerDetailBody .rd-money{font-variant-numeric:tabular-nums;text-align:right}
#resellerDetailBody .reseller-detail-order-link{border:0;background:none;box-shadow:none;padding:0;min-height:0;color:#2458b5;font-size:12px;text-decoration:underline;cursor:pointer}
#resellerDetailBody .reseller-detail-pager{margin:0;min-height:34px}
#resellerDetailBody tbody tr:nth-child(even){background:#f8fafc}
#resellerDetailBody td details div{white-space:normal;min-width:220px;max-width:380px;padding:4px 0}
@media(max-width:700px){#resellerDetailModal .reseller-detail-panel{height:94dvh;padding:12px}#resellerDetailBody .reseller-detail-pager{flex-wrap:wrap;font-size:11px;gap:6px}#resellerDetailBody th,#resellerDetailBody td{padding:7px 8px}}
