/* FM-CUSTOMER-UI-R2: shared page chrome and customer directory presentation. */
.app-shell .topbar{height:50px;min-height:50px;flex:0 0 50px;padding:0 14px}
.workspace-tab-bar{display:flex;align-items:center;min-width:0;height:30px;min-height:30px;flex:0 0 30px;background:#f1f1f1;padding:0 4px;gap:2px;border-bottom:1px solid #e4e7eb}
.workspace-tab-scroll{display:flex;flex:1;min-width:0;height:30px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;align-items:flex-end;gap:2px}
.workspace-tab-scroll::-webkit-scrollbar{display:none}
.workspace-tab{display:flex;align-items:center;flex:none;height:28px;border-radius:5px 5px 0 0;color:#606266}
.workspace-tab.active{background:#fff;color:#303133}
.workspace-tab button{border:0;background:transparent;color:inherit;cursor:pointer;font:13px/28px Arial,"Microsoft YaHei",sans-serif;padding:0 12px;white-space:nowrap}
.workspace-tab .workspace-tab-close{padding:0 8px 0 0;color:#92969d;font-size:15px}
.workspace-tab button:focus-visible,.workspace-tab-arrow:focus-visible{outline:2px solid #409eff;outline-offset:-2px}
.workspace-tab-arrow{display:grid;place-items:center;flex:0 0 24px;width:24px;height:26px;border:0;background:transparent;color:#92969d;font:18px Arial;cursor:pointer}
.app-shell *{scrollbar-color:#8c8c8c transparent;scrollbar-width:thin}
.app-shell ::-webkit-scrollbar,.el-overlay ::-webkit-scrollbar{width:8px;height:8px}
.app-shell ::-webkit-scrollbar-thumb,.el-overlay ::-webkit-scrollbar-thumb{background:#8c8c8c;border-radius:4px}
.app-shell .el-scrollbar__thumb{background:#8c8c8c;opacity:1}
.customer-ui-main{--el-font-size-base:13px;--el-text-color-regular:#606266;--el-table-header-text-color:#606266;font-size:13px}
.app-shell .customer-ui-main .el-pagination{--el-pagination-font-size:12px;--el-pagination-button-height:28px;--el-pagination-button-width:28px;align-items:center;flex-wrap:nowrap;gap:0;margin:0;font-size:12px;color:#606266}
.customer-ui-main .el-pagination__sizes .el-select{width:80px!important;min-width:80px}
.customer-ui-main .el-pagination .el-select__wrapper,.customer-ui-main .el-pagination .el-input__wrapper{min-height:28px;height:28px;font-size:12px;box-sizing:border-box}
.customer-ui-main .el-pagination .el-pagination__editor{width:42px;min-width:42px}
.customer-ui-main .el-pagination .el-input__inner{height:26px;font-size:12px;text-align:center}
.customer-ui-main .el-pagination__jump{margin-left:4px}
.customer-ui-main .el-pagination__total{white-space:nowrap;margin-right:8px}
.crm-total-pages{white-space:nowrap;margin-left:4px;color:#606266}
.customer-ui-main .el-table{font-size:13px;--el-table-header-bg-color:#f6f6f6;--el-table-border-color:#e8ebef;--el-table-text-color:#606266}
.customer-ui-main .el-table th.el-table__cell{height:36px;padding:4px 0;font-weight:400;color:#606266}
.customer-ui-main .el-table td.el-table__cell{height:40px;padding:5px 0}
.customer-ui-main .el-table .cell{line-height:24px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.customer-ui-main .el-table .cell .el-scrollbar{overflow:visible}
.customer-ui-main .customer-list-tools{gap:2px;min-height:38px;white-space:nowrap}
.customer-ui-main .customer-list-tools>.el-button,.customer-ui-main .customer-list-tools>.el-dropdown>.el-button{padding:6px 8px;font-size:12px;margin:0}
.customer-ui-main .customer-tag-management>.el-button{padding:6px 8px;border:0;box-shadow:none;font-size:12px}
.crm-display-settings{font-size:18px!important;padding:4px 6px!important;min-width:28px}
.crm-directory-grid{display:grid;grid-template-columns:180px minmax(0,1fr);gap:6px 12px!important;align-content:start;position:relative}
.crm-directory-grid>*{grid-column:2;min-width:0}
.crm-directory-grid>.crm-directory-sidebar{grid-column:1;grid-row:1/span 20;border-right:1px solid #e8ebef;padding:0 10px 12px 0;min-height:calc(100dvh - 120px)}
.crm-directory-grid.crm-directory-collapsed{grid-template-columns:minmax(0,1fr)}
.crm-directory-grid.crm-directory-collapsed>*{grid-column:1}
.crm-directory-sidebar h4{font-size:13px;font-weight:500;margin:18px 8px 10px;color:#606266}
.crm-directory-sidebar .el-select{width:100%;margin:0 0 10px}
.crm-sidebar-all,.crm-sidebar-choice{width:100%;min-height:34px;padding:7px 10px;text-align:left;background:#fff;border:0;color:#606266;cursor:pointer;font:13px Arial,"Microsoft YaHei",sans-serif}
.crm-sidebar-all{border:1px solid #e1e5eb;border-radius:4px}
.crm-sidebar-choice.active{background:#f3f3f3;color:#409eff}
.customer-ui-main .crm-directory-grid>.business-module-toolbar{padding-right:145px;margin:0;min-height:34px;flex-wrap:nowrap}
.customer-ui-main .crm-directory-grid>.business-module-header>div:first-child{display:none}
.customer-ui-main .crm-directory-grid>.business-module-header .el-button:first-child{display:none}
.customer-ui-main [data-module-key="supplierPool"]>.business-module-header{display:none}
.crm-top-pagination{position:absolute;right:0;top:40px;z-index:2;min-height:28px;display:flex;align-items:center;background:#fff}
.crm-directory-grid .supplier-followup-follow-controls{min-height:38px;padding-right:390px;box-sizing:border-box}
.customer-ui-main .supplier-followup-follow-controls .el-button{border:0;background:none;padding:6px 8px;margin:0;font-size:12px}
.customer-ui-main .supplier-contact-list-layout{grid-template-columns:180px minmax(0,1fr);gap:12px;margin-top:0}
.customer-ui-main .supplier-contact-list-layout>aside{padding-right:10px;border-right:1px solid #e8ebef;gap:0}
.customer-ui-main .supplier-contact-list-heading h2{display:none}
.customer-ui-main .supplier-contact-list-heading .el-button:first-child{display:none}
.customer-ui-main .supplier-contact-list-tools{min-height:38px;gap:0;flex-wrap:nowrap;padding-right:390px}
.customer-ui-main .supplier-contact-list-tools .el-button{border:0;background:none;margin:0;padding:6px 8px;font-size:12px}
.customer-ui-main .supplier-contact-list-pagination{position:absolute;right:0;top:40px;margin:0;min-height:28px}
.customer-ui-main .supplier-contact-list-pagination .el-button{font-size:18px;padding:4px 6px}
.customer-ui-main .supplier-parity-search{padding-right:80px}
.customer-ui-main .supplier-contact-list-table .cell,.customer-ui-main .supplier-directory-table .cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-ui-main .customer-pool-directory{grid-template-columns:180px minmax(0,1fr);gap:6px 12px;position:relative}
.customer-ui-main .customer-pool-directory>.el-pagination{position:absolute;right:0;top:40px;background:white}
.customer-ui-main .customer-pool-directory>.supplier-followup-follow-controls{min-height:38px;padding-right:390px;box-sizing:border-box}
.customer-ui-main .customer-pool-table td{border-right:0}
.customer-ui-main .customer-pool-table .cell{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-height:24px}
.customer-ui-main .customer-pool-directory .pool-parity-sidebar{min-height:0;max-height:calc(100dvh - 110px);overflow-y:auto;overflow-x:hidden}
.customer-enterprise-query{display:flex;gap:8px;margin-bottom:20px}
.customer-enterprise-query>.el-input{flex:1}
.customer-record-drawer .el-drawer__header{padding:14px 20px;font-weight:400}
.customer-record-drawer .el-drawer__title{font-weight:400;font-size:14px}
.customer-record-drawer .el-form-item{margin-bottom:18px}
.customer-record-drawer .el-form-item__label{font-size:12px;line-height:18px;height:auto;margin-bottom:6px}
.customer-record-drawer .customer-record-section-title{font-weight:500;font-size:14px;margin-bottom:18px}
.customer-record-drawer .el-input-group__append{padding:0 9px;background:white;color:#409eff}
.followup-record-drawer{top:50px!important;height:calc(100% - 50px)!important}
.followup-record-drawer .followup-field-content textarea{height:150px;min-height:150px;background:#f5f5f5}
.followup-record-drawer .followup-field-content{margin-bottom:22px}
.followup-record-drawer .el-drawer__footer{padding:10px 16px;text-align:right}
.customer-column-settings-dialog .ccs-columns{grid-template-columns:minmax(220px,.9fr) minmax(0,1.6fr)}
.customer-column-settings-dialog .ccs-all{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}
.customer-column-settings-dialog .ccs-row{grid-template-columns:16px minmax(100px,1fr) 80px 64px 30px;padding:4px 0;font-size:12px}
.customer-column-settings-dialog .ccs-fixed .el-checkbox__label{font-size:11px}
.customer-column-settings-dialog .ccs-move{flex-direction:column}
.customer-column-settings-dialog .ccs-move .el-button{height:14px;padding:0;font-size:11px}
.customer-column-settings-dialog .ccs-move>.el-button{height:26px;font-size:20px;padding:0 5px}
.trade-focused[data-operation-kind="complaint"]{padding-top:0}
.trade-focused[data-operation-kind="complaint"]>.business-module-toolbar{min-height:34px;padding-right:130px;margin-bottom:44px}
.crm-record-count{font-size:12px;color:#606266;padding:8px 0}
.customer-ui-main .crm-with-condition-sidebar{grid-template-columns:180px minmax(0,1fr);gap:6px 12px}
.customer-ui-main .crm-condition-sidebar{width:180px;min-width:0;padding:0 10px 8px 0;border-right:1px solid #e8ebef;font-size:13px}
.crm-competitor-sidebar{grid-column:1;grid-row:1/span 20}
.crm-competitor-sidebar h4{margin:18px 8px 8px;font-size:13px;font-weight:500}
.crm-parity-page .crm-shared-top-pagination{position:absolute;right:28px;top:42px;background:#fff;z-index:3}
.crm-parity-page [data-testid$="follow-tools"]{min-height:38px;box-sizing:border-box;padding-right:410px;padding-top:3px;padding-bottom:3px;border-top:0;flex-wrap:nowrap}
.crm-parity-page [data-testid="contact-follow-tools"]>.el-button:first-child,.crm-parity-page [data-testid="contact-follow-tools"]>.el-button:nth-child(2),.crm-parity-page [data-testid="contact-follow-tools"]>span{display:none}
.customer-ui-main .level-badge{height:22px;min-width:22px;padding:0 4px;line-height:22px;border-radius:3px;font-weight:400;font-size:12px}
.customer-cohort-sidebar{overflow-x:hidden}
.customer-cohort-sidebar>.crm-condition-sidebar{width:100%;min-width:0;padding:0;border:0;overflow-x:hidden}
.customer-sidebar-extra-tools{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin-top:8px}
.customer-sidebar-extra-tools .el-button{padding:4px 8px;font-size:12px;color:#909399}
.customer-sidebar-extra-tools #customer-filter-actions{display:contents}
.customer-ui-main .supplier-management-page{position:relative}
.customer-ui-main .supplier-management-page.crm-with-condition-sidebar{grid-template-columns:180px minmax(0,1fr)}
.customer-ui-main .supplier-management-page>.supplier-profile-form{right:0}
.customer-ui-main .supplier-management-toolbar{padding-right:90px;margin-bottom:0}
.customer-ui-main .supplier-management-toolbar>span{display:none}
.customer-ui-main .supplier-crm-list-tools{display:flex;gap:2px;align-items:center;min-height:38px;padding:0}
.customer-ui-main .supplier-crm-list-tools .el-button{font-size:12px;padding:6px 8px;margin:0}
.customer-ui-main .supplier-management-list>.supplier-list-pagination{position:static;margin:0}
.customer-ui-main .supplier-management-list .el-table__body .cell{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
.customer-ui-main .supplier-management-list .el-table__body .cell>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:100%}
.customer-ui-main .supplier-management-list{border:0;padding:0;border-radius:0}
.customer-country-cell{display:inline-flex;align-items:center;gap:6px;max-width:100%;white-space:nowrap}
.customer-country-cell img{flex:none;object-fit:cover;border:1px solid #e8ebef;box-sizing:content-box}
.customer-ui-main .el-table__body td .cell{color:#606266}
.customer-ui-main .el-button.is-link,.customer-ui-main .customer-text-link{color:#409eff}
.el-modal-drawer:has(.customer-record-drawer,.followup-record-drawer){pointer-events:none}
.el-modal-drawer:has(.customer-record-drawer,.followup-record-drawer) .el-drawer{pointer-events:auto}
@media(max-width:900px){
 .app-shell .sidebar.mobile-open{z-index:5000}
 .workspace-tab-bar{position:relative;z-index:3000}
 body:has(.el-overlay.quotation-close-confirm:not([style*="display: none"])) .workspace-tab-bar{visibility:hidden;pointer-events:none}
 .customer-record-drawer,.followup-record-drawer{top:80px!important;height:calc(100% - 80px)!important}
 .crm-directory-grid,.customer-ui-main .crm-with-condition-sidebar,.customer-ui-main .customer-pool-directory{grid-template-columns:minmax(0,1fr)!important}
 .crm-directory-grid>*,.crm-directory-grid>.crm-directory-sidebar,.crm-competitor-sidebar{grid-column:1;grid-row:auto}
 .crm-directory-grid>.crm-directory-sidebar,.customer-ui-main .crm-condition-sidebar{width:100%;max-height:180px;min-height:0;overflow:auto;border-right:0;border-bottom:1px solid #e8ebef}
 .customer-ui-main .supplier-contact-list-layout{grid-template-columns:minmax(0,1fr)}
 .customer-ui-main .supplier-contact-list-layout>aside{flex-direction:row;overflow:auto;border:0}
 .crm-top-pagination,.crm-parity-page .crm-shared-top-pagination,.customer-ui-main .supplier-contact-list-pagination,.customer-ui-main .customer-pool-directory>.el-pagination{position:static;grid-column:1;overflow:auto;max-width:100%}
 .crm-directory-grid .supplier-followup-follow-controls,.customer-ui-main .supplier-contact-list-tools,.customer-ui-main .customer-pool-directory>.supplier-followup-follow-controls,.crm-parity-page [data-testid$="follow-tools"]{padding-right:0;flex-wrap:wrap}
 .customer-column-settings-dialog .ccs-columns{grid-template-columns:minmax(0,1fr)}
 .customer-column-settings-dialog .ccs-all{max-height:160px}
}
@media(min-width:901px){
 .settings-center-layout{grid-template-rows:50px 30px minmax(0,1fr)!important}
 .settings-center-layout>.workspace-tab-bar{grid-column:1/-1;grid-row:2}
 .app-shell .settings-center-layout>.secondary-navigation,.settings-center-layout>.main-content{grid-row:3}
 .app-shell .main-content.customer-ui-main{padding:12px 12px 8px;background:#fff}
 .customer-list-workspace{grid-template-columns:180px minmax(0,1fr);gap:12px}
 .customer-list-main .customer-search-bar{min-height:34px;margin-bottom:3px}
 .customer-list-main .customer-search-primary{flex-basis:260px;max-width:300px}
}
@media(max-width:900px){
 .workspace-tab-bar{max-width:100%;box-sizing:border-box}
 .workspace-tab button{padding-left:9px;padding-right:9px;font-size:12px}
 .customer-ui-main .customer-list-tools{flex-wrap:wrap;white-space:normal}
 .customer-ui-main .customer-list-pagination{max-width:100%;overflow-x:auto}
}

/* Unified group navigation: the compact child menu also fits the mobile drawer. */
@media(max-width:900px){
 .mobile-child-menu{min-width:0;box-sizing:border-box;margin:6px;border:1px solid #d8e4fa;border-radius:12px;background:#fff}
 .mobile-child-menu button{gap:8px;border-radius:8px;color:#747475;font-size:13px;overflow-wrap:anywhere;white-space:normal}
 .mobile-child-menu button>span{display:flex;align-items:center;gap:10px;min-width:0}
 .mobile-child-menu button>span::before{content:"";flex:0 0 5px;width:5px;height:5px;border-radius:50%;background:#d8dce2}
 .mobile-child-menu button:hover,.mobile-child-menu button.active{background:#ebebeb;color:#0d0d0d}
}

.business-navigation-flyout button>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
