.commercial-billing-page .commercial-customer-picker{display:block;padding:12px;margin:10px 0}
.commercial-customer-picker-fields{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(320px,1.1fr);align-items:end;gap:12px}
.commercial-customer-picker summary{display:none}
#app .commercial-billing-page>.panel{padding:22px;min-width:0}
#app .commercial-billing-page .commercial-account-tabs .button-primary{color:#fff!important}
#app .commercial-billing-page .commercial-list-head{padding:0 0 16px;gap:12px;flex-wrap:wrap}
#app .commercial-billing-page .commercial-customer-context{padding:14px 18px}
#app .commercial-billing-page .commercial-account-record{padding:16px 0}
#app .commercial-billing-page .commercial-account-tabs{margin-top:10px}
#app .commercial-billing-page .commercial-account-stats{margin:10px 0}
.commercial-billing-page .commercial-account-inline{display:flex;gap:12px 20px;align-items:center;flex-wrap:wrap;margin:6px 0;color:#41576a}
.commercial-billing-page .commercial-account-inline small{color:#63778a}
#app .commercial-billing-page .commercial-customer-picker select{width:100%;min-width:0}
.commercial-customer-picker form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.commercial-customer-picker form label{flex:1 1 180px}
.commercial-customer-picker-fields>p,.commercial-customer-picker-fields>small{grid-column:1/-1;margin:0;overflow-wrap:anywhere}
.commercial-customer-picker label{display:grid;gap:7px;min-width:0;flex:1}
.commercial-customer-picker input,.commercial-customer-picker select{font:inherit;padding:10px 12px;border:1px solid #d6e0e8;border-radius:8px;max-width:100%;width:100%;background:#fff;color:inherit}
.commercial-customer-context{padding:20px;margin:18px 0;overflow-wrap:anywhere}
.commercial-account-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
.commercial-account-stats>div{background:#f3f7f8;border-radius:8px;padding:16px;min-width:0}
.commercial-account-stats strong{display:block;font-size:24px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.commercial-account-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}
.commercial-account-record{padding:16px 0;border-top:1px solid #e2e8ef;overflow-wrap:anywhere}
.commercial-account-record p{margin:6px 0}.commercial-account-record small{display:block;color:#63778a}
.commercial-billing-page>.panel{padding:20px}.commercial-billing-page .commercial-list-head{gap:12px;flex-wrap:wrap}
.commercial-billing-page .commercial-list-wrap{overflow-x:auto}.commercial-billing-page .commercial-list td{overflow-wrap:anywhere}
.commercial-billing-page .button{white-space:nowrap;flex-shrink:0}.commercial-billing-page .commercial-detail{overflow-wrap:anywhere}
.commercial-history-filter{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));align-items:end;gap:10px;margin:14px 0;padding:12px;border:1px solid #e2e8ef;border-radius:9px;background:#fbfdfe;min-width:0}
.commercial-history-filter label{display:grid;gap:6px;min-width:0;color:#41576a;font-size:13px}
.commercial-history-filter input,.commercial-history-filter select{font:inherit;min-width:0;width:100%;max-width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid #d6e0e8;border-radius:7px;background:#fff;color:inherit}
.commercial-history-filter .button{justify-self:start}
.commercial-history-count,.commercial-history-end{color:#63778a;font-size:13px}
.commercial-task-detail{padding:16px;min-width:0;overflow-wrap:anywhere}
.commercial-task-detail dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px 12px}
.commercial-task-detail dl>div{min-width:0;padding:9px 10px;border-radius:7px;background:#f3f7f9}
.commercial-task-detail dt{font-size:12px;color:#63778a}.commercial-task-detail dd{margin:4px 0 0;overflow-wrap:anywhere;word-break:break-word}
.commercial-task-audit{margin-top:16px;padding-top:8px;border-top:1px solid #e2e8ef}
.commercial-task-audit article{display:grid;gap:3px;padding:8px 0;border-bottom:1px solid #eef1f4}
.commercial-task-audit small{color:#63778a;overflow-wrap:anywhere}
.commercial-billing-page :focus-visible,.audit-security-page :focus-visible{outline:3px solid #83bfb2;outline-offset:3px}
.commercial-recharge-panel{margin:12px 0;min-width:0;overflow-wrap:anywhere}
.commercial-recharge-panel .commercial-list-head{align-items:center}
.commercial-recharge-panel .commercial-recovery-enterprise-field{display:grid;gap:7px;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.commercial-recharge-panel .commercial-recovery-enterprise-field select{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.commercial-recharge-create{display:grid;grid-template-columns:minmax(220px,.55fr) minmax(260px,1fr) auto;align-items:end;gap:12px;padding:14px 0;border-bottom:1px solid #e2e8ef}
.commercial-recharge-create label,.commercial-recharge-associate label{display:grid;gap:7px;min-width:0}
.commercial-recharge-create input,.commercial-recharge-associate select{font:inherit;padding:10px 12px;border:1px solid #d6e0e8;border-radius:8px;max-width:100%;width:100%;min-width:0;background:#fff;color:inherit}
.commercial-recharge-create p,.commercial-recharge-associate small{margin:0;color:#63778a;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.commercial-recharge-order{margin-top:14px;padding:16px;border:1px solid #d6e0e8;border-radius:10px;background:#fff;min-width:0}
.commercial-recharge-order>.commercial-list-head>div{display:flex;gap:12px;align-items:center;flex-wrap:wrap;min-width:0}
.commercial-recharge-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:12px 0}
.commercial-recharge-facts>div{min-width:0;background:#f5f8fa;border-radius:8px;padding:10px 12px}
.commercial-recharge-facts dt{color:#63778a;font-size:12px}
.commercial-recharge-facts dd{margin:4px 0 0;font-weight:600;overflow-wrap:anywhere;word-break:break-word}
.commercial-recharge-associate{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:12px 0}
.commercial-recharge-associate small{grid-column:1/-1}
.commercial-recharge-check{display:flex;align-items:flex-start;gap:10px;margin:12px 0;line-height:1.5}
.commercial-recharge-check input{margin-top:4px;flex:0 0 auto}
.commercial-recharge-snapshot{display:grid;gap:6px;margin:12px 0;padding:12px;background:#eff8f4;border-radius:8px}
.commercial-recharge-snapshot span,.commercial-recharge-snapshot small,.commercial-recharge-audit li small{overflow-wrap:anywhere;word-break:break-word}
.commercial-recharge-history{margin-top:16px}
.commercial-recharge-history article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border-top:1px solid #e2e8ef;min-width:0}
.commercial-recharge-history article span{overflow-wrap:anywhere;min-width:0}
.commercial-recharge-audit{margin-top:14px;padding-top:10px;border-top:1px solid #e2e8ef}
.commercial-recharge-audit ol{padding-left:22px}
.commercial-recharge-audit li{padding:7px 0;overflow-wrap:anywhere}
.commercial-recharge-audit li small{display:block;color:#63778a;margin-top:3px}
.commercial-recharge-source-status{margin-top:16px;padding:12px;border:1px solid #d9e4eb;border-radius:10px;background:#fbfdfe;min-width:0}
.commercial-recharge-source-status>p,.commercial-recharge-source-status li span{overflow-wrap:anywhere;word-break:break-word}
.commercial-recharge-source-status ul{padding-left:20px;margin:8px 0}
.commercial-recharge-source-status li{display:grid;gap:6px;padding:9px 0;border-top:1px solid #e5ebef;min-width:0}
.commercial-recharge-source-audit{margin-top:12px;padding-top:10px;border-top:1px solid #dbe5eb;min-width:0}
.commercial-recharge-source-audit dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;margin:10px 0}
.commercial-recharge-source-audit dl>div{min-width:0;padding:8px;background:#f3f7f9;border-radius:7px}
.commercial-recharge-source-audit dt{font-size:12px;color:#63778a}
.commercial-recharge-source-audit dd{margin:3px 0 0;overflow-wrap:anywhere;word-break:break-word}
.commercial-recharge-source-audit .is-breakable{font-family:ui-monospace,Consolas,monospace;font-size:11px}
.commercial-recharge-unknown{padding:10px 12px;border-left:3px solid #bc812e;background:#fff8eb;overflow-wrap:anywhere}
.commercial-recharge-recovery{display:grid;gap:10px;margin:12px 0;padding:12px;border:1px solid #ead5b0;border-radius:8px;background:#fffbf4;min-width:0}
.commercial-recharge-recovery p{margin:0;line-height:1.5;overflow-wrap:anywhere}
.commercial-recharge-recovery label{display:grid;gap:6px;min-width:0}
.commercial-recharge-recovery textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:9px 10px;border:1px solid #d6e0e8;border-radius:8px;font:inherit;resize:vertical}
.commercial-recharge-attempt-history{margin:12px 0;padding:10px 12px;border:1px solid #e2e8ef;border-radius:8px;min-width:0}
.commercial-recharge-attempt-history ol{margin:8px 0 0;padding-left:22px}
.commercial-recharge-attempt-history li{padding:5px 0;overflow-wrap:anywhere}
.commercial-recharge-attempt-history small{display:block;color:#63778a;margin-top:3px}
.audit-security-page .audit-context{padding:14px 18px;margin:14px 0;border:1px solid #d6e0e8;border-radius:8px;overflow-wrap:anywhere;display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
@media(max-width:900px){.commercial-customer-picker-fields{grid-template-columns:1fr}.commercial-recharge-create{grid-template-columns:1fr}.commercial-recharge-associate{grid-template-columns:1fr}}
@media(min-width:701px) and (max-width:1000px){.commercial-account-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.commercial-account-stats strong{font-size:18px;white-space:nowrap;overflow-wrap:normal}}
@media(max-width:700px){.commercial-account-stats{grid-template-columns:1fr}.commercial-account-tabs .button{flex:1 1 42%;white-space:normal}.commercial-billing-page .commercial-detail-facts{grid-template-columns:1fr}.commercial-billing-page .commercial-detail-columns{grid-template-columns:1fr}.commercial-billing-page .commercial-list-head{display:flex}.commercial-customer-picker summary{display:flex;align-items:center;justify-content:space-between;min-height:32px;cursor:pointer;font-weight:600}.commercial-customer-picker:not([open]) .commercial-customer-picker-fields{display:none}.commercial-customer-picker[open] .commercial-customer-picker-fields{grid-template-columns:1fr;margin-top:12px}.commercial-customer-picker form .button{width:100%}.commercial-history-filter{grid-template-columns:1fr}.commercial-history-filter .button{width:100%;justify-self:stretch}.commercial-billing-page .commercial-detail-head{flex-wrap:wrap}.commercial-billing-page .commercial-dialog{max-width:calc(100vw - 24px)}.commercial-billing-page .commercial-dialog-form{grid-template-columns:1fr}.commercial-billing-page .commercial-field{min-width:0}.commercial-recharge-facts{grid-template-columns:1fr}.commercial-recharge-order{padding:12px}.commercial-recharge-history article{align-items:flex-start;flex-direction:column}.commercial-recharge-history article .button{width:100%}.commercial-recharge-source-audit dl{grid-template-columns:1fr}.commercial-recharge-source-status li>.button{width:100%}.commercial-billing-page .commercial-customer-context{padding:10px 12px;margin:8px 0}.commercial-customer-context>.commercial-list-head{align-items:flex-start;gap:6px;padding-bottom:8px}.commercial-customer-context>.commercial-list-head h2{font-size:16px;line-height:1.3;display:block;max-height:none;overflow:visible;overflow-wrap:anywhere}.commercial-billing-page .commercial-customer-context>.commercial-list-head .button{padding:6px 9px;font-size:12px}.commercial-billing-page .commercial-account-inline{gap:5px 10px;font-size:13px;margin:2px 0}.commercial-account-tabs{gap:6px!important;margin-top:6px!important}.commercial-account-tabs .button{flex:1 1 29%;min-width:0;padding:8px 5px;font-size:12px;line-height:1.25}}
@media(max-width:700px){
  .commercial-billing-page .commercial-account-record [data-history-task-open]{
    display:flex;
    width:100%;
    max-width:100%;
    min-width:0;
    white-space:normal;
    overflow-wrap:anywhere;
    justify-content:flex-start;
    text-align:left;
  }
}
/* Flat billing workspace, original Admin colors. */
.billing-flat{max-width:1440px;margin:auto;color:#17243e;padding-bottom:24px}
.bf-panel{padding:24px;background:#fff;border:1px solid #dce4f2;border-radius:12px;min-width:0}
.bf-tabs{display:flex;gap:16px;border-bottom:1px solid #e2e8f2;padding-bottom:18px;margin-bottom:24px;flex-wrap:wrap}
#app .bf-tabs button{background:transparent;border:0;box-shadow:none;color:#60708a;padding:10px 16px}
#app .bf-tabs button[aria-current=page]{color:#315bea;background:#eef3ff;font-weight:600}
.bf-toolbar,.bf-toolbar>form,.bf-toolbar>div,.bf-pagination,.bf-pagination>div,.bf-detail-heading,.bf-actions{display:flex;align-items:center;gap:12px;min-width:0;flex-wrap:wrap}
.bf-toolbar{justify-content:space-between;margin-bottom:20px}
.bf-toolbar input[type=search]{width:320px;min-width:0}.bf-toolbar select{min-width:140px}
.bf-toolbar label{display:flex;gap:12px;align-items:center}
.bf-table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:13px}
.main-content #app .bf-table th,.main-content #app .bf-table td{padding:13px 12px!important;border-bottom:1px solid #e7edf5;text-align:left;overflow-wrap:anywhere}
.bf-table th{background:#f5f7fc;color:#52637c;font-weight:500}
.bf-table th:first-child{width:21%}.bf-table th:last-child{width:17%}
.main-content #app .bf-table .button{font-size:12px!important;min-height:32px!important;padding:5px 10px!important;white-space:nowrap}
.bf-pagination{justify-content:space-between;margin-top:20px;color:#697a94;font-size:13px}
#app .bf-muted{font-size:12px;color:#6a7b92;margin:14px 0;line-height:1.6}
.bf-detail-heading{margin-bottom:24px}
#app .bf-panel h2{font-size:19px;margin:18px 0;color:#17243e;overflow-wrap:anywhere}
#app .bf-panel h3{font-size:16px;margin:26px 0 14px}
.bf-facts{display:flex;gap:20px;flex-wrap:wrap;border-bottom:1px solid #e7edf5;padding:0 0 20px;margin-bottom:20px;font-size:13px}
.bf-facts span{display:grid;gap:8px;color:#6a7b92}.bf-facts strong{font-weight:500;color:#17243e}
.bf-actions{margin:18px 0 24px}
.bf-form{display:grid;gap:18px;max-width:680px}
.bf-form label{display:grid;gap:8px;font-size:13px;min-width:0}
.bf-form input,.bf-form select{box-sizing:border-box;width:100%;min-width:0}
.bf-form input[type=hidden]{display:none}
.bf-form .bf-check{display:flex;align-items:flex-start;gap:8px}.bf-form .bf-check input{width:18px;height:18px;min-height:18px;flex:0 0 18px;margin-top:1px}
.bf-form>button{justify-self:start}
.bf-budget-fields{display:grid;gap:18px;border:0;padding:0}.bf-budget-fields>summary{display:none}
.billing-flat .commercial-account-stats{margin:18px 0}
.billing-flat .commercial-account-stats+small{display:block;font-size:12px;color:#6a7b92}
.billing-flat .commercial-account-record{border:0;border-bottom:1px solid #e7edf5;border-radius:0;background:transparent;padding:16px 0;box-shadow:none}
.billing-flat .commercial-recharge-panel{border:0;box-shadow:none;padding:0}
@media(max-width:1000px){.bf-toolbar input[type=search]{width:230px}.bf-panel{padding:20px 16px}.bf-table{font-size:12px}.main-content #app .bf-table td,.main-content #app .bf-table th{padding:12px 8px!important}}
@media(max-width:640px){.bf-panel{padding:14px 12px}.bf-tabs{gap:4px}.bf-tabs .button{font-size:13px;padding:8px!important}.bf-toolbar>form{width:100%;gap:8px}.bf-toolbar input[type=search]{flex:1;flex-basis:100%;width:100%}.bf-toolbar select{min-width:0;flex:1}.bf-toolbar button{flex-shrink:0;white-space:nowrap}.bf-table,.bf-table tbody{display:block}.bf-table thead{display:none}.bf-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;border-bottom:1px solid #e7edf5;padding:16px 0}.main-content #app .bf-table td{padding:0!important;border:0}.bf-table td:first-child{grid-column:1;grid-row:1;font-weight:600}.bf-table td:last-child{grid-column:2;grid-row:1 / span 2}.bf-table td:not(:first-child):not(:last-child){grid-column:1;font-size:12px;color:#60708a}.bf-pagination{align-items:flex-start}.bf-pagination>div{gap:8px}.bf-detail-heading h2{flex-basis:100%}.bf-form{width:100%}.bf-facts{gap:16px}}
.main-content #app .billing-flat .bf-tabs button[aria-current=page]{color:#2447c3!important;background:#eef3ff!important;font-weight:600!important;border-bottom:2px solid #315bea!important;border-radius:6px 6px 0 0}

@media(max-width:640px){.billing-flat .bf-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;color:#596b88;font-weight:400;margin-bottom:4px}.billing-flat .bf-table td[colspan]::before{display:none}}
