/* Production integration only: scoped components, complete legacy routes retained. */
#modal.v4-scope{position:fixed;inset:auto;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;display:none;height:auto;min-height:0;max-height:calc(100dvh - 32px)}#modal.v4-scope[open]{display:block}#modal.v4-scope.customer-detail[open]{display:flex}.v4-shell #content.v4-scope{height:auto;min-height:0}
.v4-scope .card{padding:0}.v4-scope .card::before,.v4-scope .card::after{display:none}
.layout.v4-shell{grid-template-columns:208px minmax(0,1fr);min-height:100dvh}.v4-shell aside{padding:28px 16px 20px;background:#173e32}.v4-shell .logo{font-size:20px}.v4-shell .nav{gap:7px}.v4-shell .nav button{min-height:44px;border-radius:7px;font-size:14px}.v4-shell .nav button.active{background:#e3f0e7;color:#184832}.v4-shell .topbar{padding:16px 30px;min-height:76px;background:white}.v4-shell #content{padding:28px 30px;max-width:1480px;margin:auto}.v4-shell .org-selector{height:40px;min-height:40px}.v4-shell .heading{gap:16px;margin-bottom:24px}.v4-shell .heading h1{font-size:27px;line-height:1.3;margin-bottom:7px}.v4-shell .heading .eyebrow{display:none}.v4-shell .heading .actions{flex-wrap:wrap}.v4-shell .heading .muted{font-size:13px;color:#697970}.v4-shell .identity{flex-wrap:wrap}.v4-scope .heading{display:flex;justify-content:space-between;align-items:center}.v4-scope .v4-tablewrap{width:100%;max-width:100%;overflow:visible}.v4-scope .v4-ledger{width:100%;min-width:0;table-layout:fixed;margin:0}.v4-scope .v4-ledger th,.v4-scope .v4-ledger td{width:auto;padding:14px;vertical-align:middle;white-space:normal;border-color:#e1e8e3}.v4-scope .v4-ledger th{padding-block:12px}.v4-scope .v4-ledger [data-col=recharge],.v4-scope .v4-ledger [data-col=consumed]{text-align:center}.v4-scope .v4-ledger [data-col=actions] .cell-value{display:flex;justify-content:center;gap:6px;align-items:center;flex-wrap:wrap}.v4-scope .status-button{font-size:12px;min-height:32px;padding:4px 8px;gap:5px}.v4-scope .status-button svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:1.6}.v4-scope .status-button:disabled{opacity:.8;cursor:default}.v4-scope .v4-contact{display:block}.v4-scope .v4-ledger.management .col-customer{width:24%}.v4-scope .v4-ledger.management .col-phone{width:17%}.v4-scope .v4-ledger.management .col-source{width:17%}.v4-scope .v4-ledger.management .col-registration{width:16%}.v4-scope .v4-ledger.management .col-membership{width:12%}.v4-scope .v4-ledger.management .col-actions{width:14%}.v4-scope .customer-card-v4{overflow:visible}.v4-scope .toolbar{margin:0;display:flex;align-items:center}.v4-scope .month-field input{width:160px;min-height:38px}.v4-scope #filters{margin:0}.v4-scope .advanced-filter label{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}.v4-scope .advanced-filter select{max-width:240px}.v4-scope .export-panel{margin-top:16px;background:white}.v4-scope .export-panel summary{cursor:pointer;padding:10px}.v4-scope .audit-list{padding:12px;font-size:12px;max-height:320px;overflow:auto}.v4-scope .audit-list small{display:block;overflow-wrap:anywhere}.v4-scope .row-more{position:relative;display:inline-block}.v4-scope .row-more summary{cursor:pointer;list-style:none;padding:7px 4px;min-height:32px;font-size:12px;color:#607667;white-space:nowrap}.v4-scope .row-more summary:after{content:' ▾'}.v4-scope .row-more>div{position:absolute;right:0;top:100%;z-index:12;min-width:170px;padding:6px;background:white;border:1px solid #d9e3dc;border-radius:7px;box-shadow:0 8px 24px #15382222;text-align:left}.v4-scope .row-more>div button{display:block;width:100%;text-align:left}.v4-scope .danger-text{color:#a4463e}.v4-scope .v4-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.v4-scope .v4-stats .card{padding:20px}.v4-scope .v4-stats small{color:#697e6f;font-size:12px}.v4-scope .v4-stats strong{font-size:29px;margin-top:7px}.v4-scope .v4-home-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.v4-scope .team-picker.with-hq{grid-template-columns:repeat(3,1fr)}.v4-scope .team-choice .choice-count{margin-left:8px}.v4-scope .employee-table th,.v4-scope .employee-table td{width:25%}.v4-scope .employee-table .account-actions{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap}.v4-scope .employee-table th:last-child{text-align:center}.v4-scope .v4-org-select{display:flex;align-items:center;gap:12px;padding:0 20px 18px;font-size:12px}.v4-scope .v4-org-select select{max-width:420px}.v4-scope .button-line{flex-wrap:wrap;justify-content:flex-end}.v4-scope .agent-grid{margin-top:12px}.v4-scope .agent-card{min-width:0}.v4-scope .agent-card strong,.v4-scope .agent-card h3{overflow-wrap:anywhere}.v4-scope .card-head h2{font-size:17px}.v4-scope .card-head p{font-size:12px}.v4-scope .primary-text{font-size:13px}.v4-scope .account-more{font-size:12px;min-height:32px;background:transparent}.v4-scope .customer-hero h2{font-size:22px}.v4-scope .customer-facts dd{overflow-wrap:anywhere}
#modal.v4-scope{background:white;color:#20392f}#modal.v4-scope .modal-top{display:flex;justify-content:space-between;align-items:center;background:#fff;border-bottom:1px solid #e1e8e3;padding:18px 24px}#modal.v4-scope #modal-body{padding:24px}#modal.v4-scope.customer-detail #modal-body{padding:0}#modal.v4-scope .field{display:block;margin-bottom:18px;font-size:13px;color:#425f4b}#modal.v4-scope .field .form-control,#modal.v4-scope .field .form-select{display:block;width:100%;margin-top:8px;border-radius:6px;min-height:42px;font-size:14px}#modal.v4-scope .field textarea{min-height:90px}#modal.v4-scope .v4-radio-field{border:0;padding:0;margin:20px 0}#modal.v4-scope legend{float:none;width:auto;font-size:13px;font-weight:550;margin-bottom:10px}#modal.v4-scope .status-choices{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}#modal.v4-scope .form-selectgroup-item{margin:0}#modal.v4-scope .button-row{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}#modal.v4-scope .form-hint{font-size:12px;color:#687f6e}#modal.v4-scope .permission-note{display:block;border:1px solid #e1e8e3;border-radius:6px;padding:12px;font-size:12px}#modal.v4-scope .secret-link{overflow-wrap:anywhere}#modal.v4-scope .check{display:flex;align-items:flex-start;gap:9px}#modal.v4-scope .check input{flex:none;width:18px;height:18px;margin-top:2px}#modal.v4-scope.registration-dialog{max-width:520px}#modal.v4-scope .error{margin-bottom:12px;color:#aa3c33}
@media(max-width:1200px){.layout.v4-shell{grid-template-columns:168px minmax(0,1fr)}.v4-shell aside{padding-inline:10px}.v4-shell .nav button{font-size:13px;padding:10px 8px}.v4-shell #content{padding:24px}.v4-scope .v4-ledger th,.v4-scope .v4-ledger td{padding-inline:10px}.v4-scope .team-picker.with-hq{gap:10px}.v4-scope .team-choice{padding:15px}.v4-shell .topbar{padding:14px 24px}.v4-shell .heading{align-items:flex-start;flex-direction:column}.v4-scope .heading .actions{align-self:flex-end}}
@media(max-width:900px){.v4-scope .v4-ledger,.v4-scope .v4-ledger tbody,.v4-scope .v4-ledger tr{display:block;width:100%}.v4-scope .v4-ledger colgroup,.v4-scope .v4-ledger thead{display:none}.v4-scope .v4-ledger td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;width:100%;padding:7px 0;align-items:center;text-align:left!important}.v4-scope .v4-ledger td[data-col=customer]{display:block}.v4-scope .v4-ledger [data-col=actions] .cell-value{justify-content:flex-start}.v4-scope .employee-table td:first-child{display:block}.v4-scope .employee-table td:first-child:before{display:none}.v4-scope .employee-table .account-actions{justify-content:flex-start}.v4-scope .status-button{min-height:44px}.v4-scope .row-more summary,.v4-scope .row-link{min-height:40px}.v4-scope .v4-ledger .row-more>div{right:auto;left:0}.v4-scope .advanced-filter label{width:100%}.v4-scope .advanced-filter select{max-width:100%;width:100%}.v4-scope .team-picker.with-hq{grid-template-columns:1fr 1fr}.v4-scope .team-picker.with-hq>.team-choice:last-child{grid-column:1/-1}.v4-scope .v4-org-select{flex-wrap:wrap}.v4-scope .card-head{flex-wrap:wrap}.v4-scope .card-head .button-line{justify-content:flex-start}.v4-scope .employee-table tr{border-top:1px solid #e1e8e3;padding:14px}}
@media(max-width:700px){.layout.v4-shell{display:block}.v4-shell aside{position:static;width:100%;padding:14px;gap:12px}.v4-shell .nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:6px}.v4-shell .nav button{white-space:normal;min-height:44px;text-align:center}.v4-shell .nav button:last-child:nth-child(odd){grid-column:1/-1}.v4-shell .topbar{padding:14px 16px}.v4-shell #content{padding:22px 14px}.v4-shell .heading .actions{align-self:flex-start}.v4-shell .heading h1{font-size:24px}.v4-scope .v4-stats{gap:8px}.v4-scope .v4-stats .card{padding:14px 10px}.v4-scope .v4-stats strong{font-size:24px}.v4-scope .toolbar{gap:8px}.v4-scope .month-field{width:100%}.v4-scope .month-field input{width:auto;flex:1}.v4-scope .search-field{width:100%;min-width:0;max-width:none;flex-basis:100%}.v4-scope .toolbar button{min-height:40px}.v4-scope .v4-ledger td{grid-template-columns:80px minmax(0,1fr)}#modal.v4-scope #modal-body{padding:18px}#modal.v4-scope.customer-detail #modal-body{padding:0}#modal.v4-scope .field .form-control,#modal.v4-scope .field .form-select{font-size:16px}.v4-scope .team-choice small{font-size:11px}.v4-scope .team-choice strong{font-size:14px}}
