/* Local Tabler adaptation; retain native controls and incumbent green. */
.v3-table col.v3-col-23{width:23%}.v3-table col.v3-col-17{width:17%}.v3-table col.v3-col-21{width:21%}.v3-table col.v3-col-13{width:13%}.v3-table col.v3-col-10{width:10%}.v3-table col.v3-col-16{width:16%}.v3-table col.v3-col-27{width:27%}.v3-table col.v3-col-15{width:15%}.v3-table col.v3-col-20{width:20%}.v3-table col.v3-col-18{width:18%}
/* Focused detail sheet: bounded size, one reading order, independent scroll. */
.account-cell-value{min-width:0;overflow-wrap:anywhere}
.relative-workspace .org-navigation{display:block}
#modal.customer-detail[open]{display:flex;flex-direction:column;width:min(760px,calc(100% - 24px));max-height:calc(100dvh - 32px);overflow:hidden}
#modal.customer-detail .modal-top{flex:none;padding:16px 24px}
#modal.customer-detail #modal-body{padding:0;display:flex;flex-direction:column;min-height:0;overflow:hidden}
.customer-detail-scroll{padding:24px;overflow-y:auto;min-height:0;overscroll-behavior:contain}
.section-kicker{font-size:12px;color:#53675c;margin:0 0 8px;letter-spacing:.04em}
.customer-hero h2{font-size:22px;line-height:1.5;margin:0 0 12px;overflow-wrap:anywhere}
.customer-contact{display:flex;gap:20px;align-items:center;flex-wrap:wrap}.customer-contact .v3-contact{display:flex;align-items:center;gap:10px}
.customer-section{border-top:1px solid #dce4df;margin-top:20px;padding-top:18px}.customer-section h3{font-size:14px;margin:0 0 12px}.section-title{display:flex;justify-content:space-between;gap:12px}.section-title>span{color:#53675c;font-size:13px}
.customer-facts{margin:0;display:grid;gap:10px}.customer-facts>div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:12px;font-size:13px;line-height:1.6}.customer-facts dt{color:#53675c}.customer-facts dd{margin:0;overflow-wrap:anywhere}
.customer-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.customer-metrics>div{background:#f1f6f3;padding:14px;border-radius:6px}.customer-metrics small{display:block;color:#53675c;font-size:12px}.customer-metrics strong{display:block;margin-top:8px;font-size:20px;overflow-wrap:anywhere}.customer-metrics .v3-number small{display:inline;font-size:12px}.customer-metrics .v3-missing{font-size:14px;font-weight:400}
.customer-audit{margin-top:20px;border-top:1px solid #dce4df}.customer-audit summary{padding:14px 0;cursor:pointer;color:#42584a;font-size:13px;min-height:44px;box-sizing:border-box}
.customer-detail-footer{flex:none;padding:14px 24px;border-top:1px solid #dce4df;background:#f8faf8;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.customer-detail-footer summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:13px}.customer-detail-footer .actions{flex-wrap:wrap}.customer-detail-footer button{min-height:44px}
.registration-transition{display:flex;align-items:center;gap:20px;background:#f1f6f3;padding:16px;margin:18px 0}.registration-dialog textarea{min-height:100px}.registration-dialog .button-row{justify-content:flex-end}
.relative-workspace .org-workspace{border-radius:10px;overflow:hidden;min-height:420px;grid-template-columns:260px minmax(0,1fr)}
.relative-workspace .org-directory{padding:20px 12px}.relative-workspace .org-directory h2{margin:0 10px 16px;font-size:14px;color:#53675c}
.relative-workspace .org-specials{padding-bottom:12px;margin-bottom:12px;border-bottom:1px solid #dce4df}
.relative-workspace .org-navigation [data-organization]{padding:8px;line-height:1.45;border-radius:5px;min-height:48px}.relative-workspace .org-navigation em{display:inline!important;margin-left:8px;font-size:11px;font-weight:400;color:#53675c}
.relative-workspace .org-members{padding:24px;min-width:0}.relative-workspace .members-heading{align-items:center;margin-bottom:20px;gap:12px}.relative-workspace .members-heading h2{font-size:20px;margin:0;line-height:1.5}.relative-workspace .members-heading .section-kicker{margin-bottom:4px}
.relative-workspace .account-tablewrap{border:1px solid #dce4df;border-radius:6px}.relative-workspace .account-table td{vertical-align:top}.relative-workspace .account-table td:first-child{font-weight:600}.relative-workspace .account-table small{font-weight:400}.relative-workspace .empty-state{padding:36px 16px;background:#f8faf8;border-radius:6px}.relative-workspace .empty-state h3{font-size:16px;color:#20372b}
@media(max-width:700px){.customer-detail-scroll{padding:18px}.customer-hero h2{font-size:18px}.customer-metrics{grid-template-columns:1fr}.customer-metrics>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px}.customer-metrics strong{margin:0;font-size:18px}.customer-facts>div{grid-template-columns:80px minmax(0,1fr);gap:8px}.customer-detail-footer{padding:12px 18px}.relative-workspace .org-directory{max-height:280px;overflow:auto}.relative-workspace .org-members{padding:16px}.relative-workspace .account-table tr{padding:12px;border-bottom:1px solid #dce4df}.relative-workspace .account-table td{border:0}.relative-workspace .heading .actions{width:100%}.relative-workspace .heading .actions button{flex:1;min-height:44px}}
/* Approved same-scope customer views: local rendering, no duplicate fetch. */
.customer-views{display:flex;gap:8px;margin:16px 0 12px;flex-wrap:wrap}
.customer-views button{min-height:44px;padding:10px 20px;background:#fff;color:#42584a;border:1px solid #a9b9af}
.customer-views button[aria-pressed="true"]{background:#176348;color:#fff;border-color:#176348}
.customer-views button:focus-visible{outline:3px solid #9d6c14;outline-offset:3px}
.v3-workspace[data-active-customer-view="jidou"] .v3-monthbar{background:#eef3ef;padding:12px 16px;border-radius:6px}
@media(min-width:1001px){.v3-workspace .v3-table.v3-table .monthly-number{text-align:right}.v3-workspace .v3-table.v3-table :is(th,td){padding:14px 10px}.v3-workspace .v3-actions{gap:4px}}
@media(max-width:1000px){.v3-workspace .management-table tr{display:flex!important;flex-direction:column}.management-table .customer-identity{order:0}.management-table td[data-label="手机号"]{order:1}.management-table .v3-registration{order:2}.management-table td[data-label="会员等级"]{order:3}.management-table .invite-cell{order:4}.management-table td[data-label="操作"]{order:5}.v3-workspace .v3-table.v3-table td.empty-state{display:block}.v3-workspace .v3-table.v3-table td.empty-state::before{display:none}.customer-views button{flex:1;padding-inline:12px}}

.secondary-filters{display:block;grid-column:1/-1}.secondary-filters>summary{display:list-item;cursor:pointer;min-height:44px;padding:10px 0}.secondary-filter-fields{display:flex;flex-wrap:wrap;gap:12px}.secondary-filters:not([open])>.secondary-filter-fields{display:none}
@media(max-width:1000px){.secondary-filters{display:block;grid-column:1/-1}.secondary-filters>summary{display:list-item;cursor:pointer;padding:10px 0;min-height:24px}.secondary-filters:not([open])>.secondary-filter-fields{display:none}.secondary-filter-fields{display:grid;gap:10px}.v3-workspace #filters{display:flex;flex-wrap:wrap;gap:8px}.v3-workspace #filters>.filter-field{flex:1 1 100%;min-width:0}.v3-workspace #filters>.secondary-filters{flex:1 1 100%}}

.v3-workspace .v3-table.v3-table{min-width:0;width:100%;table-layout:fixed}
.v3-workspace .v3-table.v3-table :is(th,td){padding:10px 7px;text-align:left;white-space:normal}
.v3-workspace .v3-table.v3-table :is(th,td):last-child{padding-inline:6px;text-align:center}
.v3-workspace .v3-table.v3-table td:nth-child(2){padding-right:7px}
.v3-workspace .v3-table.v3-table th.jx-group{text-align:center;border-bottom:1px solid #cbd9d0}
.v3-workspace .v3-contact{display:flex;flex-wrap:wrap;gap:2px}
.v3-workspace .v3-actions{flex-wrap:wrap;gap:2px}
#content.v3-workspace .registration-select{box-sizing:border-box;width:104px;max-width:100%;min-width:0;height:34px;min-height:34px;padding:4px 8px;font-size:13px;line-height:1.4;color:#53675c;border:1px solid #c5d1ca;border-radius:5px;background:#fff;cursor:pointer}
#content.v3-workspace .registration-select:has(option[value="registered"]:checked){color:#176348}
#content.v3-workspace .registration-select:has(option[value="revoked"]:checked){width:140px}
#content.v3-workspace .registration-select:hover{border-color:#80988a;background:#f8faf8}
#content.v3-workspace .registration-select:focus-visible{outline:2px solid #176348;outline-offset:2px}
@media(max-width:1000px),(pointer:coarse){#content.v3-workspace .registration-select{height:44px;min-height:44px;font-size:14px;padding-block:8px}}
.registration-error{color:#953328!important}.v3-number{white-space:normal;overflow-wrap:anywhere}
.monthly-detail dl>div{display:flex;gap:16px;padding:8px 0;border-bottom:1px solid #e2e8e4}.monthly-detail dt{min-width:100px}.monthly-detail dd{margin:0;overflow-wrap:anywhere}
.relative-workspace .org-workspace{grid-template-columns:minmax(210px,28%) minmax(0,1fr)}
.relative-workspace .account-table{min-width:0!important;width:100%;table-layout:fixed}
.relative-workspace .account-table :is(th,td){white-space:normal!important;overflow-wrap:anywhere;padding:12px 8px!important;width:auto!important}
.relative-workspace .org-navigation button span{white-space:normal;overflow-wrap:anywhere}
.relative-workspace .org-navigation em{display:block;font-style:normal;font-size:12px;color:#53675c}
.relative-workspace .relative-empty{padding:48px 20px;text-align:center;border:1px solid #dce4df;background:white}
.relative-workspace .own-members{margin-top:20px;padding:16px;border:1px solid #dce4df;background:white}
.relative-workspace .own-members summary{cursor:pointer;min-height:44px}
.relative-workspace .members-heading{flex-wrap:wrap}.relative-workspace .members-heading h2{overflow-wrap:anywhere}
@media(max-width:1000px){
.v3-workspace .v3-table.v3-table,.v3-table tbody,.v3-table tr,.v3-table td{display:block;width:100%}
.v3-table colgroup,.v3-table thead{display:none}
.v3-workspace .v3-table.v3-table tr{padding:14px;border-bottom:1px solid #cbd9d0;box-sizing:border-box}
.v3-workspace .v3-table.v3-table td{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px;border:0;padding:6px 0;text-align:left}
.v3-workspace .v3-table.v3-table td::before{content:attr(data-label);color:#53675c;font-size:12px;align-self:center}
.v3-workspace .v3-table.v3-table td.customer-identity{display:block;padding-bottom:12px}.v3-table td.customer-identity::before{display:none}
.v3-workspace .v3-contact{flex-wrap:nowrap}.v3-workspace .v3-actions{justify-content:flex-start;gap:8px}
.relative-workspace .org-workspace{display:block}.relative-workspace .org-directory{border-right:0;border-bottom:1px solid #dce4df}
.relative-workspace .org-navigation{display:block!important}
.relative-workspace .account-table thead{display:none}.relative-workspace .account-table,.relative-workspace .account-table tbody,.relative-workspace .account-table tr{display:block;width:100%}
.relative-workspace .account-table td{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px}.relative-workspace .account-table td::before{content:attr(data-label);font-size:12px;color:#53675c}
}
/* Detail source strings may include unbroken invite names. */
#modal .detail-grid>div,#modal .monthly-detail dd{min-width:0;overflow-wrap:anywhere}
@media(max-width:480px){.layout main,.layout .main,#content{min-width:0}.layout .heading,.layout .topbar{flex-wrap:wrap}.layout .heading .actions{flex-wrap:wrap}.layout .filter-panel{grid-template-columns:minmax(0,1fr)}.v3-workspace .v3-table.v3-table td{grid-template-columns:80px minmax(0,1fr)}.v3-workspace .v3-phone{font-size:12px}.v3-workspace .v3-table.v3-table tr{padding:10px}.relative-workspace .org-members{padding:12px}.relative-workspace .account-table td{grid-template-columns:80px minmax(0,1fr)}}
