/* Keep one focus indicator even under the legacy important shadow rule. */
.ui-warm :is(dialog,.modal-card) :is(input,textarea,select,button):focus-visible,.console-shell :is(input,textarea,select,button):focus-visible{box-shadow:none!important;outline:2px solid #bf6944;outline-offset:2px}
.ak-supplier-refresh,.customer-settings-action{position:relative}
.ak-supplier-refresh:after,.customer-settings-action:after{content:"";position:absolute;inset:-6px;border-radius:inherit}
.ui-agent .customer-table :is(th,td){padding-top:7px!important;padding-bottom:7px!important;font-size:12px}
.ui-agent .customer-table .customer-name-view{min-height:36px!important}
.ui-agent .customer-table .customer-identity{gap:3px!important}
.ui-agent .customer-table .customer-line-balances{gap:2px!important}
.ui-agent .customer-table .customer-settings-action{margin:0 6px}
.ui-agent .customer-table{min-width:1080px}
.ui-agent .customer-table th:nth-child(1){width:17%}.ui-agent .customer-table th:nth-child(2){width:10%}.ui-agent .customer-table th:nth-child(3){width:9%}.ui-agent .customer-table th:nth-child(4){width:12%}.ui-agent .customer-table th:nth-child(5){width:9%}.ui-agent .customer-table th:nth-child(6){width:9%}.ui-agent .customer-table th:nth-child(7){width:9%}.ui-agent .customer-table th:nth-child(8){width:13%}.ui-agent .customer-table th:nth-child(9){width:12%}
.ui-warm :is(.sale-value,.profit-value,.kpi-value,.overview-metric-strip strong,.overview-balance strong),.console-shell :is(.stat-value,.withdrawal-summary strong,.withdrawal-row>b,.order-row b){font-variant-numeric:tabular-nums}
.ui-agent :is(.customer-table,.finance-table,[data-page-panel=finance] table),.console-shell :is(.overview-metrics-grid strong,.supply-overview-list dd){font-variant-numeric:tabular-nums}
.console-shell>aside>nav{flex:1;min-height:0;overflow-y:auto;align-content:start}
.opt-finance-filter{padding:18px;border:1px solid #e8d9cd;border-radius:12px;background:#fffaf5;margin:0 0 16px}
.opt-finance-filter h2{margin:0 0 12px;font-size:15px;color:#5f4736}
.opt-filter-controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px}
.opt-filter-controls label{display:grid;gap:5px;flex:1 1 130px;font-size:11px;color:#8c7766}
.opt-filter-controls label:first-child{flex-basis:240px}
.opt-filter-controls :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:36px;padding:7px 9px;border:1px solid #dfcfc2;border-radius:8px;background:#fffdf9;color:#554334;font-size:13px;line-height:1.4}
.opt-filter-controls>button{min-height:36px;padding:7px 12px;border:1px solid #dfcfc2;border-radius:8px;background:#fffdf9;color:#755943;box-shadow:none;white-space:nowrap}
.opt-finance-filter p{margin:12px 0 5px;color:#70513d;font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.opt-finance-filter>small{font-size:11px;line-height:1.6;color:#9a8573}
.ui-warm [data-price-preview]{padding:10px 12px;background:#f7eee4;border-radius:8px;color:#77533a;font-size:12px;line-height:1.7}
.ui-warm [data-price-preview][data-invalid=true]{color:#a23b28;background:#fff0e9}
.ui-agent .invitation-columns,.ui-agent .invitation-row{grid-template-columns:minmax(120px,1fr) repeat(3,minmax(82px,.7fr)) minmax(165px,1.25fr) 125px;min-width:820px;column-gap:12px}
.ui-agent .invitation-actions{gap:6px}
.ui-agent .invitation-more{position:relative}
.ui-agent .invitation-more>summary{list-style:none;cursor:pointer;border:1px solid #e4d1c0;border-radius:8px;padding:6px 8px;font-size:12px;line-height:1.3}
.ui-agent .invitation-more>summary::-webkit-details-marker{display:none}
.ui-agent .invitation-more[open]>.invitation-delete{position:absolute;right:0;top:calc(100% + 4px);z-index:3;min-width:70px;padding:9px 14px;background:#fffaf5;border:1px solid #e4d1c0;box-shadow:0 4px 14px #39271c22}
@media(max-width:650px){
 .opt-finance-filter{padding:14px}.opt-filter-controls{gap:8px}.opt-filter-controls label{flex-basis:calc(50% - 8px)}.opt-filter-controls label:first-child{flex-basis:100%}
 .ui-agent :is(.customer-table,.finance-table,[data-page-panel=finance] .table-wrap>table){display:block!important;min-width:0!important;width:100%!important;table-layout:auto!important}
 .ui-agent :is(.customer-table,.finance-table,[data-page-panel=finance] .table-wrap>table)>thead{display:none!important}
 .ui-agent :is(.customer-table,.finance-table,[data-page-panel=finance] .table-wrap>table)>tbody{display:grid!important;gap:12px;width:100%}
 .ui-agent :is(.customer-table,.finance-table,[data-page-panel=finance] .table-wrap>table)>tbody>tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:14px!important;border:1px solid #e8d9cd;border-radius:12px;min-width:0;background:#fffaf5}
 .ui-agent :is(.customer-table,.finance-table,[data-page-panel=finance] .table-wrap>table)>tbody>tr>td{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:4px;padding:0!important;min-width:0!important;width:auto!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere}
 .ui-agent :is(.customer-table,.finance-table,[data-page-panel=finance] .table-wrap>table)>tbody>tr>td:before{content:attr(data-label);position:static!important;display:block;flex:0 0 auto!important;color:#9a8573;font-size:10px;font-weight:400}
 .ui-agent :is(.customer-table,.finance-table,[data-page-panel=finance] .table-wrap>table)>tbody>tr>td:first-child{grid-column:1/-1;width:auto!important}
 .ui-agent .customer-table :is(.customer-name-view,.customer-line-balances){width:100%;min-width:0!important}
 .ui-agent .customer-table .customer-name-view{grid-template-columns:minmax(0,1fr) 30px!important}
 .ui-agent .customer-table .customer-identity{overflow-wrap:anywhere}
 .ui-agent .customer-table .traffic-transfer-control{max-width:100%;flex:none}
 .ui-agent .customer-table td[colspan]{grid-column:1/-1}
 .ui-agent .invitation-columns{display:none!important}.ui-agent .invitation-list-scroll{overflow:visible;border:0}.ui-agent #agent-invite-links{display:grid!important;gap:12px;background:transparent}
 .ui-agent .invitation-row{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0!important;gap:12px;padding:14px;border:1px solid #e8d9cd;border-radius:12px;background:#fffaf5}
 .ui-agent .invitation-name,.ui-agent .invitation-code,.ui-agent .invitation-actions{grid-column:1/-1}.ui-agent .invitation-actions{justify-content:flex-end}
 .ui-agent .invitation-price:before{content:attr(data-column);color:#9a8573;font-size:10px}.ui-agent .invitation-flow-main{flex-wrap:wrap}
 .console-shell .order-head{display:none!important}.console-shell .order-row:not(.order-head){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;min-width:0!important;padding:14px!important}
 .console-shell .order-row:not(.order-head)>:first-child{grid-column:1/-1}.console-shell .order-row :is(strong,b,time,span,div){min-width:0;overflow-wrap:anywhere}
 .console-shell .order-row:not(.order-head)>[data-label]:before{content:attr(data-label);display:block;margin-bottom:4px;color:#9a8573;font-size:10px;font-weight:400}
}
