:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;color:#20324b;background:#f3f6fb;font-size:14px;line-height:1.55;--blue:#225bd6;--border:#e3e9f2;--muted:#748198}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{border:1px solid #dce4ef;background:#fff;border-radius:7px;padding:8px 14px;color:#35455c;cursor:pointer;white-space:nowrap}button:hover{background:#edf3ff;border-color:#9cb8ed}button:disabled{opacity:.5;cursor:not-allowed}.primary{background:var(--blue);color:white;border-color:var(--blue)}.primary:hover{background:#1649b5;color:white}.danger{color:#c53535;border-color:#f0c7c7}.wide{width:100%}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}input,select,textarea{width:100%;min-width:0;border:1px solid #d8e1ee;border-radius:7px;background:#fff;color:#20324b;padding:9px 10px;outline:none}input:focus,select:focus,textarea:focus{border-color:#5e8be9;box-shadow:0 0 0 3px #225bd612}input[type=checkbox],input[type=radio]{width:17px;height:17px;accent-color:var(--blue);flex-shrink:0}label{display:flex;flex-direction:column;gap:6px;font-weight:500;font-size:13px}textarea{resize:vertical;min-height:90px}h1,h2,h3,p{margin-top:0}h1{font-size:25px;margin-bottom:0}h2{font-size:19px;margin-bottom:16px}h3{font-size:16px}.muted{color:var(--muted)}.small{font-size:12px}.error{color:#c53535;white-space:pre-wrap}.login-wrap{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at top,#dfebff,#f3f6fb 65%)}.login-card{width:100%;max-width:400px;border:1px solid #e2e9f4;border-radius:18px;padding:35px;background:#fff;box-shadow:0 20px 70px #16336010}.login-card label{margin-top:19px}.login-card h1{margin:18px 0 7px}.login-card .small{margin:20px 0 0;text-align:center}.brand-icon{display:inline-grid;place-items:center;background:var(--blue);color:white;font-weight:700;border-radius:11px;width:44px;height:44px;font-size:23px}.app-layout{display:grid;grid-template-columns:180px minmax(0,1fr);min-height:100dvh}.sidebar{padding:26px 16px;background:white;border-right:1px solid var(--border);position:sticky;top:0;height:100dvh;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;margin:0 5px 36px}.brand strong{font-size:16px}.brand small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.brand .brand-icon{width:36px;height:36px;font-size:20px}nav{display:grid;gap:7px}nav button{text-align:left;border:0;padding:12px 15px;background:transparent}nav button.active{background:#eaf1ff;color:var(--blue);font-weight:650}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--border);padding:18px 6px 0;overflow-wrap:anywhere}.account-actions{display:flex;gap:12px;margin-top:12px}.account-actions button{padding:0;border:0;font-size:12px;color:var(--muted)}main{padding:30px 34px;min-width:0;max-width:1800px;width:100%;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px;gap:15px}.eyebrow{font-size:10px;letter-spacing:2px;color:#8493aa;margin-bottom:6px}.badge{display:inline-block;padding:4px 10px;border-radius:5px;font-size:12px;background:#eaf1ff;color:var(--blue);white-space:nowrap}.badge.pending{background:#fff3d8;color:#a06a0b}.badge.shipped,.badge.ready{background:#e5f5ed;color:#258159}.badge.cancelled,.badge.duplicate{background:#edf0f4;color:#728097}.badge.conflict,.badge.unmatched{background:#ffeded;color:#c54c4c}.panel{background:white;border:1px solid var(--border);border-radius:11px;padding:20px;margin-bottom:20px;min-width:0}.filter-grid{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.filter-grid label{width:145px}.filter-grid .search-label{flex:1;min-width:200px}.filter-grid button{height:40px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}.toolbar h2,.toolbar p{margin:0}.actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.table-wrap{overflow:auto;max-width:100%;border:1px solid var(--border);border-radius:8px}table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}th{background:#f7f9fc;font-weight:550;color:#738198;text-align:left}th,td{padding:12px;border-bottom:1px solid #edf0f5;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcff}td button{padding:4px 9px;font-size:12px}td .secondary{display:block;font-size:11px;color:var(--muted);margin-top:3px}.address-cell{max-width:230px;white-space:normal;overflow-wrap:anywhere}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px;flex-wrap:wrap}.empty{text-align:center;padding:55px 15px;color:var(--muted)}.stats-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px;margin-bottom:20px}.stat-card{padding:21px;background:white;border:1px solid var(--border);border-radius:10px;overflow-wrap:anywhere}.stat-label{color:var(--muted);font-size:12px}.stat-value{font-size:25px;font-weight:650;margin-top:10px;color:#173767}.ranking-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;min-width:0}.hint{padding:12px 14px;background:#f0f5ff;color:#456393;border-radius:7px;font-size:13px;margin-bottom:17px}.warning{background:#fff7e8;color:#936511}.checkbox-label,.radio-label{flex-direction:row;align-items:center;gap:9px;font-weight:400}.radio-label{padding:13px;border:1px solid var(--border);border-radius:8px;margin:10px 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-grid .span-2{grid-column:1/-1}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;flex-wrap:wrap}.money-total{background:#f3f7ff;border-radius:8px;padding:12px;display:flex;justify-content:space-between}.product-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product-options label{margin:0}.inline-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.inline-form label{flex:1;min-width:180px}.upload-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.upload-row input{max-width:370px}.download-link{display:inline-block;padding:9px 14px;border-radius:7px;background:#eaf1ff;font-weight:600}dialog{width:min(680px,calc(100% - 28px));max-height:90dvh;padding:24px;border:0;border-radius:13px;box-shadow:0 22px 80px #10284b40;color:#20324b;overflow:auto}dialog::backdrop{background:#152b4e70;backdrop-filter:blur(2px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px}.dialog-heading h2{margin:0}.icon-button{font-size:24px;padding:0 9px;border:0}.detail-grid{display:grid;grid-template-columns:110px 1fr;gap:12px;overflow-wrap:anywhere}.detail-grid dt{color:var(--muted)}.detail-grid dd{margin:0}#notice{position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:100;background:#203b64;color:white;padding:11px 22px;border-radius:8px;box-shadow:0 8px 25px #203b6430;max-width:calc(100% - 30px);overflow-wrap:anywhere;transition:opacity .5s ease}#notice.notice-fade{opacity:0}footer{color:#8a96aa;font-size:11px;text-align:center;padding:20px 0 5px}[hidden]{display:none!important}@media(max-width:1150px){main{padding:24px 20px}.app-layout{grid-template-columns:180px minmax(0,1fr)}.stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ranking-grid{grid-template-columns:1fr}.brand{gap:7px}.brand strong{font-size:14px}}@media(max-width:700px){.app-layout{display:block}.sidebar{position:relative;height:auto;padding:14px 16px;border-right:0;border-bottom:1px solid var(--border)}.brand{margin:0 0 13px}.sidebar nav{display:flex;overflow-x:auto;gap:5px;padding-bottom:4px;max-width:100%}nav button{padding:8px 12px;font-size:13px;flex-shrink:0}.sidebar-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0 0;margin-top:8px;font-size:12px}.account-actions{margin:0;flex-shrink:0}main{padding:20px 14px}.topbar{margin-bottom:18px}h1{font-size:22px}.panel{padding:14px}.filter-grid{gap:10px}.filter-grid label{width:calc(50% - 5px)}.filter-grid .search-label{min-width:100%;width:100%}.filter-grid button{flex:1}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:15px}.stat-value{font-size:22px}.form-grid,.product-options{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.table-wrap{border:0;overflow:visible}.responsive-table thead{display:none}.responsive-table,.responsive-table tbody,.responsive-table tr,.responsive-table td{display:block;white-space:normal;width:100%}.responsive-table tr{border:1px solid var(--border);border-radius:9px;padding:10px 12px;margin:10px 0}.responsive-table td{border:0;padding:5px 0;overflow-wrap:anywhere;display:flex;gap:12px;align-items:flex-start;justify-content:space-between;text-align:right}.responsive-table td:before{content:attr(data-label);color:#8390a3;font-size:12px;flex-shrink:0;text-align:left;min-width:64px}.responsive-table td>div{min-width:0}.responsive-table .address-cell{max-width:none}.responsive-table td .actions{justify-content:flex-end}.responsive-table td:empty{display:none}.pagination{justify-content:center}.detail-grid{grid-template-columns:82px 1fr}dialog{padding:20px}.inline-form{align-items:stretch}.inline-form label{min-width:100%}.upload-row input{max-width:100%}.toolbar .actions{width:100%}.login-card{padding:28px}.hint{overflow-wrap:anywhere}}

/* Sales orders retain a spreadsheet layout on every screen size. */
.sales-orders .sales-table-wrap{overflow:auto;max-width:100%;max-height:65vh;border:1px solid var(--border);border-radius:8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.sales-table{min-width:1420px;border-collapse:separate;border-spacing:0}
.sales-table th{position:sticky;top:0;z-index:2;text-align:center;background:#edf3fc;color:#425a7b;font-weight:650;box-shadow:0 1px 0 var(--border)}
.sales-table th,.sales-table td{padding:14px 12px;border-right:1px solid #edf0f5;text-align:center}
.sales-table th:last-child,.sales-table td:last-child{border-right:0}
.sales-table tbody tr:nth-child(even){background:#f8faff}.sales-table tbody tr:hover{background:#edf4ff}
.sales-table .sales-address{min-width:240px;max-width:320px;white-space:normal;overflow-wrap:anywhere;text-align:left}
.sales-table td.sales-money{font-variant-numeric:tabular-nums;text-align:center;min-width:100px}
.sales-table .sales-number{font-variant-numeric:tabular-nums}.sales-table .sales-total{font-weight:650;color:#225bd6}
.sales-table .sales-tracking{max-width:240px;white-space:normal;overflow-wrap:anywhere;min-width:150px}
.sales-table .actions{flex-wrap:nowrap;justify-content:center}.sales-table .sales-time{min-width:165px;font-variant-numeric:tabular-nums}

.badge.in_transit{background:#e0edff;color:#2456a6}.badge.signed{background:#dcfce7;color:#166534}.badge.refused{background:#fee2e2;color:#991b1b}.logistics-timeline{padding-left:24px;overflow-wrap:anywhere}.logistics-timeline li{padding:8px 0;border-bottom:1px solid #e5e7eb}#logistics-form textarea{width:100%}#modal-body{overflow-wrap:anywhere}

/* Compact workspace, shared by sales and administration. */
:root{background:#f4f6fa;color:#26354b;--border:#e4e9f1;--muted:#7a8799}
.sidebar{padding:22px 12px;background:linear-gradient(180deg,#fff,#f9fbff);box-shadow:1px 0 8px #223b6203}
.brand{gap:8px;margin:0 2px 28px}.brand strong{font-size:14px;letter-spacing:-.3px}.brand small{font-size:10px}.brand .brand-icon{width:31px;height:31px;font-size:18px;flex-shrink:0;border-radius:9px;box-shadow:0 4px 9px #225bd622}
nav{gap:5px}nav button{padding:10px 12px;font-size:13px;border-radius:8px;color:#617087;transition:background .15s,color .15s}nav button.active{background:#eaf1ff;color:#2158c5;box-shadow:inset 3px 0 #225bd6;font-weight:650}
.sidebar-bottom{padding:15px 2px 0;font-size:12px}.account-actions{gap:10px}
main{padding:24px;min-width:0}.topbar{margin-bottom:20px}h1{font-size:23px;letter-spacing:-.5px}.eyebrow{letter-spacing:1.5px;margin-bottom:4px}h2{font-size:17px}
.panel{padding:17px;border-radius:12px;margin-bottom:16px;box-shadow:0 2px 7px #243b5a04}.filter-panel{padding:15px 17px}.filter-grid{gap:10px}.filter-grid label{width:126px;font-size:12px;gap:5px}.filter-grid .search-label{min-width:185px}.filter-grid button{height:36px}
button{padding:7px 12px;font-size:13px}input,select,textarea{padding:7px 9px;font-size:13px}button:focus-visible,a:focus-visible{outline:2px solid #5e8be9;outline-offset:3px}.primary{box-shadow:0 2px 4px #225bd617}
.toolbar{margin-bottom:13px}.toolbar h2{font-size:17px}.toolbar .small{margin-top:3px}.actions{gap:6px}.badge{padding:3px 8px;font-size:11px}
th,td{padding:9px 10px}th{text-align:center}.table-wrap{border-radius:9px}.sales-table{min-width:1320px}.sales-table th,.sales-table td{padding:10px 9px}.sales-table th{font-size:12px;background:#f0f4fa;color:#52657f}.sales-table td{font-size:12px}.sales-table .sales-address{min-width:205px;max-width:270px}.sales-table .sales-time{min-width:148px;font-size:11px}.sales-table td.sales-money{min-width:72px}.sales-table .sales-tracking{min-width:180px;max-width:240px;text-align:left}.sales-table td button{padding:4px 7px;font-size:12px}.sales-table tbody tr:nth-child(even){background:#fbfcfe}.sales-table tbody tr:hover{background:#f2f6fd}
.sales-table .logistics-link{border:0;background:transparent;box-shadow:none;padding:0;border-radius:2px;text-align:left;color:#285cb5;white-space:normal;overflow-wrap:anywhere;line-height:1.5;max-width:100%}.sales-table .logistics-link:hover{color:#1649b5;text-decoration:underline}.sales-table .logistics-summary{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:500}.sales-table .logistics-meta{display:inline;font-size:10px;color:#8190a5;margin-right:7px}.logistics-time{font-size:10px;color:#929cad;white-space:nowrap}.sales-table .tracking-link{font-size:12px;font-variant-numeric:tabular-nums}
.pagination{margin-top:14px;font-size:12px}.stats-grid{gap:12px;margin-bottom:16px}.stat-card{padding:17px;border-radius:12px;box-shadow:0 2px 7px #243b5a04}.stat-value{font-size:24px;margin-top:7px}.ranking-grid{gap:16px}footer{padding-top:12px}
@media(min-width:701px) and (max-width:1150px){main{padding:20px 16px}.filter-grid label{width:120px}}
@media(max-width:700px){.sidebar{padding:13px 14px}.brand{margin:0 0 12px}.sidebar nav{gap:5px}nav button{padding:8px 11px}.sidebar-bottom{padding:10px 0 0}.account-actions{gap:10px}main{padding:17px 12px}.topbar{margin-bottom:15px}h1{font-size:21px}.panel,.filter-panel{padding:13px;border-radius:10px}.filter-grid label{width:calc(50% - 5px)}.filter-grid .search-label{min-width:100%}.filter-grid button{flex:1}.toolbar .actions{gap:6px}.toolbar .actions button{padding:7px 9px;font-size:12px}.stat-card{padding:14px}.sales-table th,.sales-table td{padding:9px 8px}}

/* Management tables: center both headings and values without changing form labels. */
#page-content table:not(.sales-table) th,#page-content table:not(.sales-table) td{text-align:center;vertical-align:middle}
#page-content table:not(.sales-table) td .actions{justify-content:center}
#page-content .stat-value{text-align:center;font-variant-numeric:tabular-nums}
@media(max-width:700px){
  #page-content .responsive-table td{display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center}
  #page-content .responsive-table td:before{text-align:center;min-width:0}
  #page-content .responsive-table td>div{text-align:center}
  #page-content .table-wrap:has(.team-stats-table){overflow:auto}
}

/* Simple sign-in. */
.login-wrap{min-height:100vh;min-height:100dvh;padding:28px 20px;background:#f3f5f9;display:grid;place-items:center}
.login-card{width:100%;max-width:390px;padding:36px 32px 32px;background:#fff;border:1px solid #e5e9f0;border-radius:16px;box-shadow:0 12px 40px #20324b0a}
.login-card h1{text-align:center;font-size:24px;font-weight:650;margin:0 0 30px;color:#20324b}
.login-card label{margin-top:20px;font-size:13px;gap:8px}
.login-card input{height:46px;padding:10px 12px;border-radius:8px;background:#fcfdff}
.login-card input::placeholder{color:#a0a9b8}
.login-card input:focus{background:#fff;border-color:#5e8be9;box-shadow:0 0 0 3px #225bd612}
.login-card .error{min-height:20px;font-size:12px;margin:10px 0}
.login-card .primary{height:46px;border-radius:8px;font-weight:600}
.brand strong{font-size:13px;white-space:nowrap}.brand small{font-size:10px}
@media(max-width:360px){.login-wrap{padding:20px 14px}.login-card{padding:30px 24px}.login-card h1{font-size:22px}}

/* Account information and actions live in the top-right disclosure. */
.topbar{position:relative;z-index:20}.topbar>div:first-child{min-width:0}.profile{position:relative;flex-shrink:0;max-width:55%}.profile-trigger{display:flex;align-items:center;gap:9px;max-width:100%;padding:5px 8px;border-color:transparent;background:transparent}.profile-avatar{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:50%;background:#e5edfc;color:#225bd6;font-size:16px;font-weight:650}.profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.profile-chevron{color:#748198}.profile-trigger:focus-visible{outline:2px solid #225bd6;outline-offset:3px}.profile-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:290px;max-width:calc(100vw - 24px);padding:18px;background:white;border:1px solid var(--border);border-radius:12px;box-shadow:0 12px 36px #20324b26;overflow-wrap:anywhere;text-align:left}.profile-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-heading strong{min-width:0}.profile-details{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;margin:16px 0;font-size:13px}.profile-details dt{color:var(--muted)}.profile-details dd{margin:0}.profile-actions{display:grid;gap:5px;border-top:1px solid var(--border);padding-top:10px}.profile-actions button{text-align:left;border:0;padding:9px 10px}.profile-actions #logout-button{color:#c53535}@media(max-width:700px){.topbar{gap:8px}.profile-trigger{gap:6px;padding:4px}.profile-avatar{width:32px;height:32px}.profile-name{font-size:13px}.profile-dropdown{top:calc(100% + 8px)}}

/* Generated avatar with the employee name underneath. */
.profile{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:64px;max-width:130px}
.profile-trigger{display:block;padding:0;border:0;border-radius:50%;background:transparent;width:48px;height:48px;box-shadow:0 2px 8px #273f5d12;transition:box-shadow .15s,transform .15s}
.profile-trigger:hover{background:transparent;box-shadow:0 0 0 3px #dce8fa;transform:translateY(-1px)}
.profile-avatar{display:block;width:48px;height:48px;object-fit:cover;border-radius:50%;border:2px solid #fff}
.profile-name{display:block;max-width:130px;font-size:12px;line-height:18px;font-weight:550;text-align:center;color:#43516a}
@media(max-width:700px){.profile{min-width:58px;max-width:100px;gap:4px}.profile-name{max-width:100px;font-size:12px}.profile-trigger,.profile-avatar{width:44px;height:44px}}

/* Customer-service spreadsheet stays scrollable on narrow screens. */
.cs-filters{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:15px}.cs-filters label:first-child{flex:1;min-width:180px}.cs-filters label:nth-child(2){min-width:125px}
.cs-panel .cs-table-wrap,.cs-preview-wrap{overflow:auto;max-height:65vh;border:1px solid var(--border);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.cs-table{min-width:0;border-collapse:separate;border-spacing:0;table-layout:fixed}.cs-table th,.cs-table td{padding:8px 7px;text-align:center;vertical-align:middle;border-right:1px solid #edf0f5;font-size:12px;overflow:visible}.cs-table th{position:sticky;top:0;z-index:2;background:#f0f4fa;box-shadow:0 1px 0 var(--border)}
.cs-table td{overflow-wrap:anywhere;white-space:normal}.cs-table .cs-time{font-variant-numeric:tabular-nums}.cs-table tbody tr:nth-child(even){background:#fbfcfe}.cs-table .cs-follow-button{display:block;width:100%;border:0;background:transparent;color:#285cb5;text-align:center;white-space:normal;padding:3px;line-height:1.5}.cs-follow-button span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap}.cs-table td .cs-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:center;position:relative}.cs-actions button{padding:4px 6px}.cs-actions [aria-pressed=true]{background:#e5f5ed;color:#258159;border-color:#b9e1ce}.cs-history article{padding:14px 0;border-bottom:1px solid var(--border)}.cs-history time{display:block;color:var(--muted);font-size:12px;margin:4px 0 12px}.cs-history h3{font-size:13px;margin-bottom:8px}.cs-history dl{display:grid;grid-template-columns:55px minmax(0,1fr);gap:8px}.cs-history dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.cs-history dt{color:var(--muted)}.cs-preview-table{min-width:520px;white-space:normal}.cs-preview-table th{position:sticky;top:0;background:#f0f4fa}.cs-preview-table td{overflow-wrap:anywhere}.cs-preview-table td:first-child{width:65px;text-align:center}.cs-preview-table td:nth-child(2){width:145px}.cs-preview-table td:nth-child(3){min-width:260px}
@media(max-width:700px){.cs-filters label:first-child{flex-basis:100%}.cs-filters label:nth-child(2){flex:1}.cs-panel .pagination span{font-size:11px}}

.cs-follow-time{display:block;color:#94a3b8;font-size:11px;line-height:1.5;font-weight:400}.cs-follow-entry{padding:8px 0;border-bottom:1px solid #eef2f6;white-space:pre-wrap;overflow-wrap:anywhere}.cs-follow-entries{max-height:40vh;overflow:auto;margin-bottom:14px}.cs-row-updated{animation:cs-update-flash 1.6s ease-out}@keyframes cs-update-flash{from{background:#e8f3ff}to{background:transparent}}

/* Semantic colgroup widths keep administrator selection/owner columns independent. */
.cs-panel .cs-table-wrap{max-height:360px;overflow:auto;max-width:100%}
/* Customer pool columns: fixed semantic widths, with only address/product/follow-up taking flexible room. */
.cs-panel .cs-table{width:100%;min-width:0!important;table-layout:fixed}
.cs-panel .cs-table .cs-col-import-date{width:120px!important}
.cs-panel .cs-table .cs-col-target{width:106px!important}
.cs-panel .cs-table .cs-col-cs-owner{width:92px!important}
.cs-panel .cs-table .cs-col-time{width:145px!important}
.cs-panel .cs-table .cs-col-carrier{width:76px!important}
.cs-panel .cs-table .cs-col-tracking{width:132px!important}
.cs-panel .cs-table .cs-col-recipient{width:88px!important}
.cs-panel .cs-table .cs-col-phone{width:108px!important}
.cs-panel .cs-table .cs-col-address{width:clamp(190px,18vw,270px)!important}
.cs-panel .cs-table .cs-col-product{width:clamp(150px,14vw,220px)!important}
.cs-panel .cs-table .cs-col-quantity{width:54px!important}
.cs-panel .cs-table .cs-col-amount{width:72px!important}
.cs-panel .cs-table .cs-col-follow{width:clamp(160px,15vw,220px)!important}
.cs-panel .cs-table .cs-col-actions{width:116px!important}
.cs-panel .cs-actions{gap:4px;flex-wrap:nowrap}
.cs-panel .cs-actions button{padding:5px 8px;font-size:12px}
.cs-panel .cs-v-toggle{border-color:#cbd8ec;color:#285cb5}
.cs-panel .cs-v-toggle:disabled{background:#edf1f6;color:#788397;border-color:#dce2ea;opacity:1}
.cs-panel .cs-table th,.cs-panel .cs-table td{padding:7px 5px;overflow-wrap:anywhere}
.cs-panel .cs-table .cs-time,.cs-panel .cs-table .cs-phone,.cs-panel .cs-table .cs-amount,.cs-panel .cs-table .cs-tracking{white-space:nowrap}
@media(max-width:1100px){.cs-panel .cs-table{min-width:1280px!important}.cs-panel .cs-table .cs-col-address{width:220px!important}.cs-panel .cs-table .cs-col-product{width:170px!important}.cs-panel .cs-table .cs-col-follow{width:180px!important}}
.cs-table .cs-time,.cs-table .cs-tracking,.cs-table .cs-phone,.cs-table .cs-amount{white-space:nowrap;font-variant-numeric:tabular-nums}
.cs-table .cs-clamp{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;white-space:normal;line-height:1.5}
.cs-panel>.pagination{min-height:34px;gap:8px;flex-wrap:nowrap;flex-shrink:0}
.cs-panel>.pagination span{text-align:center}
@media(max-width:700px){.cs-panel>.pagination{justify-content:space-between;gap:4px}.cs-panel>.pagination button{padding:7px 8px}.cs-panel>.pagination span{font-size:10px;white-space:normal}}

/* Account menu belongs to the sidebar; the main page has no header spacer. */
.sidebar{z-index:25}.sidebar-bottom{display:flex;justify-content:center;align-items:center}.sidebar .profile{max-width:100%}.sidebar .profile-dropdown{position:fixed;top:auto;right:auto;bottom:auto;z-index:50;max-height:calc(100dvh - 24px);overflow:auto}.cs-table .cs-import-date{white-space:nowrap;font-variant-numeric:tabular-nums}
@media(max-width:700px){.sidebar-bottom{margin-top:8px;padding-top:10px;justify-content:center}.sidebar .profile-dropdown{max-width:calc(100vw - 24px)}}

/* Compact rectangular name card beneath the sidebar avatar. */
.sidebar .profile{gap:9px;width:100%;max-width:140px}
.sidebar .profile-name{width:100%;max-width:140px;min-height:34px;padding:7px 12px;border:1px solid #dae4f0;border-radius:6px;background:#edf3fa;color:#304865;box-shadow:0 2px 5px #233d5a06;font-size:13px;font-weight:600;line-height:20px;letter-spacing:.4px;text-align:center}
@media(max-width:700px){.sidebar .profile{max-width:132px}.sidebar .profile-name{max-width:132px;min-height:32px;padding:6px 10px}}

/* Added-WeChat customers remain readable and their followup history accessible. */
.cs-table tr.cs-wechat-added td{background:#eef0f2;color:#626b75}
.cs-table tr.cs-wechat-added a,.cs-table tr.cs-wechat-added button{color:#626b75}
.cs-table tr.cs-wechat-added .cs-actions button{background:#e4e7ea;border-color:#c7cdd3}
.cs-table tr.cs-wechat-added .cs-follow-time{color:#727b85}

/* Copy visible customer fields without changing column widths or row height. */
.cs-table .cs-copy{display:inline-block;max-width:100%;min-width:0;padding:0;border:0;border-radius:2px;background:transparent;box-shadow:none;color:inherit;font:inherit;line-height:inherit;text-align:center;white-space:inherit;cursor:pointer;vertical-align:middle}
.cs-table .cs-copy:hover{background:transparent;text-decoration:underline}
.cs-table .cs-address .cs-copy{display:block;width:100%;white-space:normal}
.cs-table tr.cs-wechat-added .cs-copy{color:#626b75}

/* Wide import preview: fixed controls, independently scrolling customer rows. */
#modal:has(.cs-preview-layout){width:min(1200px,95vw);max-width:95vw;max-height:90vh;overflow:hidden;box-sizing:border-box}
#modal:has(.cs-preview-layout) #modal-body{overflow:hidden;min-height:0}
.cs-preview-layout{display:flex;flex-direction:column;max-height:calc(90vh - 110px);min-height:0;gap:10px}
.cs-preview-layout>p{margin:0;flex:none}
.cs-preview-layout .cs-preview-wrap{flex:1 1 auto;min-height:90px;max-height:none;overflow:auto}
.cs-preview-layout .cs-preview-table{min-width:850px;width:100%}
.cs-preview-layout .cs-preview-table th{position:sticky;top:0;background:#f5f7fa;z-index:1}
.cs-preview-layout .pagination,.cs-preview-layout form{flex:none;margin:0}
.cs-preview-layout .form-actions{flex-wrap:wrap;margin-top:8px}
.cs-preview-layout select{max-width:100%}

/* Administrator daily performance */
.daily-dashboard{max-width:1720px;margin:0 auto;min-width:0}.daily-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 20px}.daily-eyebrow{font-size:12px;color:#64748b;margin-bottom:5px}.daily-heading h2{font-size:24px;margin:0;color:#172b4d}.daily-heading h2 span{font-size:14px;font-weight:500;color:#64748b;margin-left:10px}.daily-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.daily-metric{background:white;border:1px solid #e2e8f0;border-radius:12px;padding:20px 22px;display:flex;flex-direction:column;gap:10px;color:#64748b;font-size:13px;min-width:0}.daily-metric strong{color:#172b4d;font-size:30px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.daily-metric strong small{font-size:17px;font-weight:500}.daily-metric>span{font-size:11px}.daily-primary{background:#173b68;border-color:#173b68;color:#cfdef1}.daily-primary strong{color:#fff}.daily-note{color:#788597;font-size:12px;margin:14px 0 20px}.daily-columns{display:grid;grid-template-columns:minmax(0,3fr) minmax(230px,1fr);gap:16px;align-items:start}.daily-columns>.panel{min-width:0;margin:0}.daily-section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.daily-section-title h2{font-size:16px;margin:0}.daily-section-title>span{font-size:12px;color:#7c8898}.daily-table{width:100%;min-width:650px}.daily-table th,.daily-table td{text-align:center!important;padding:14px 10px!important}.daily-table th{position:sticky;top:0;z-index:1;background:#f5f7fa}.daily-ranking .table-wrap{max-height:62vh;overflow:auto}.daily-rank{display:inline-flex;width:26px;height:26px;border-radius:50%;align-items:center;justify-content:center;color:#718096;font-size:12px;font-weight:700}.daily-rank.rank-1{background:#fbefd4;color:#a57719}.daily-rank.rank-2{background:#e9edf2;color:#69778b}.daily-rank.rank-3{background:#f5e6dc;color:#a16c49}.daily-total{min-width:120px;color:#225bd6;font-variant-numeric:tabular-nums}.daily-bar{height:3px;border-radius:3px;background:#edf2fa;margin:7px auto 0;max-width:110px;overflow:hidden}.daily-bar i{display:block;height:100%;background:#739de1}.daily-department{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;border-top:1px solid #edf0f4}.daily-department div{display:flex;flex-direction:column;gap:6px;min-width:0}.daily-department strong{overflow-wrap:anywhere;font-size:13px}.daily-department span{font-size:12px;color:#8490a0}.daily-department b{font-size:17px;white-space:nowrap;color:#203958}@media(max-width:1100px){.daily-columns{grid-template-columns:minmax(0,1fr)}.daily-metric{padding:16px}.daily-metric strong{font-size:25px}}@media(max-width:600px){.daily-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.daily-heading h2{font-size:21px}.daily-heading h2 span{display:block;margin:5px 0 0;font-size:12px}.daily-metric{padding:14px}.daily-metric strong{font-size:24px}.daily-section-title{flex-wrap:wrap}.daily-note{line-height:1.7}.daily-columns{gap:12px}.daily-ranking .table-wrap{max-height:60vh}}

.stats-switch{display:flex;gap:6px;width:fit-content;padding:5px;margin-bottom:18px;background:#e9eef7;border-radius:12px}.stats-switch button{border:0;background:transparent;color:#53627a;padding:10px 22px;font-weight:600}.stats-switch button.active{background:#fff;color:#225bd6;box-shadow:0 2px 6px #20345612}

/* 工作机与客服加V业绩 */
.wd-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:18px 0}.wd-metrics .stat-card{min-width:0}.wd-metrics .stat-value{font-variant-numeric:tabular-nums}.wd-metrics p{margin-bottom:0}.wd-note{margin:0 0 20px;line-height:1.8}.wd-table{overflow:auto}.wd-table table{width:100%;min-width:360px}.wd-table th,.wd-table td{padding:13px 14px;text-align:left;vertical-align:top}.wd-table td{overflow-wrap:anywhere}.wd-audit{min-width:180px;max-width:320px;line-height:1.6}.wd-audit p{white-space:pre-wrap;margin:4px 0 10px}.wd-all{display:flex;align-items:center;gap:8px}.wd-all input{width:auto}.wd-manager h3{margin-top:24px}.wd-manager .wd-table{max-height:300px}.wd-manager label,#wd-handoff label,#wd-edit label,#wd-correct label{display:grid;gap:8px;margin:16px 0}#wd-performance-filter .error:empty{display:none}@media(max-width:700px){.wd-metrics{grid-template-columns:1fr;gap:10px}.wd-metrics .stat-card{padding:18px}.wd-all{font-size:13px}.wd-table th,.wd-table td{padding:10px}}

/* Repurchase handoff shares existing panels, forms and horizontal table layout. */
.rp-status{display:block;font-size:12px;line-height:1.5;color:#225bd6;white-space:normal;overflow-wrap:anywhere}.rp-table{min-width:650px;width:100%}.rp-table td,.rp-table th{white-space:normal;overflow-wrap:anywhere}.rp-filter{max-width:240px;margin:12px 0}.rp-confirm{display:flex;align-items:flex-start;gap:10px;line-height:1.7}.rp-confirm input{width:auto;flex:0 0 auto;margin-top:7px}.cs-actions .rp-status{max-width:100%;font-size:11px}.cs-actions [data-rp]{white-space:normal;font-size:12px}@media(max-width:600px){.rp-panel .toolbar{align-items:flex-start;gap:10px}.rp-panel{padding:12px}.rp-table{min-width:600px}#rp-push .form-actions{flex-wrap:wrap}}

/* Preserve horizontal scrolling despite the global mobile table override. */
.rp-panel .table-wrap{overflow:auto;max-width:100%}.rp-confirm{flex-direction:row}

/* Sales receipt cohort performance */
.development-panel{margin-top:20px;min-width:0}.development-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.development-heading h2{margin:0}.development-heading label{min-width:180px}.development-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}.development-fraction{display:block;font-size:12px;font-weight:400;color:#64748b;white-space:nowrap;margin-top:5px}.development-table{min-width:720px}.development-panel h3{font-size:15px;margin:20px 0 10px}.development-panel .hint{line-height:1.7}@media(max-width:600px){.development-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.development-heading{align-items:stretch}.development-heading label{width:100%}.development-cards .stat-value{font-size:24px}}

.development-panel .table-wrap,.ranking-grid .table-wrap{overflow:auto;max-width:100%}

.performance-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}.performance-heading h2{margin:0}.performance-heading label{width:190px}.performance-table{min-width:850px}.performance-table th,.performance-table td{text-align:center}.performance-table td:first-child,.performance-table th:first-child{text-align:left}.performance-money{font-weight:700;color:#173767}.performance-table .development-fraction{white-space:nowrap}@media(max-width:700px){.performance-heading label{width:100%}.performance-table{min-width:760px}}

 .cs-report-detail-panel{padding:0 14px 14px;overflow:visible}.cs-report-detail-panel .cs-report-toolbar{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;min-height:40px;margin:0 0 8px;padding:4px 0;background:transparent;border:0;border-bottom:1px solid #e7ebf0;border-radius:0;overflow:visible}.cs-report-detail-panel .cs-report-toolbar .segmented{grid-column:1;grid-row:1;justify-self:start;display:inline-flex;align-items:center;gap:2px;padding:2px;background:#f1f4f8;border:1px solid #e4e8ee;border-radius:5px;min-height:0}.cs-report-detail-panel .cs-report-toolbar .segmented button{height:28px;min-width:56px;padding:0 10px;border:0;border-radius:3px;background:transparent;color:#526174;box-shadow:none;font-size:13px;font-weight:550}.cs-report-detail-panel .cs-report-toolbar .segmented button[aria-pressed="true"]{background:#fff;color:#225bd6;box-shadow:0 1px 2px #182b4515}.cs-report-detail-panel .cs-report-toolbar h3{grid-column:2;grid-row:1;justify-self:center;margin:0;font-size:15px;line-height:1.2;white-space:nowrap}.cs-report-detail-panel .cs-report-toolbar label{grid-column:3;grid-row:1;justify-self:end;margin:0;display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;color:#657386}.cs-report-detail-panel .cs-report-toolbar input{width:142px;height:30px;min-height:30px;padding:4px 8px;font-size:13px}.cs-report-detail-panel .table-wrap{margin-top:0}

 .cs-report-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 22px}.cs-report-summary>section{border:1px solid var(--line,#dce3ed);padding:0 14px 14px;background:#fff}.cs-report-summary>section>h3{text-align:center;margin:0 -14px 14px;padding:12px;background:#f4f7fb;border-bottom:1px solid var(--line,#dce3ed);font-size:15px;font-weight:650}.cs-report-summary>section>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cs-report-summary .cs-report-metric{margin:0;padding:16px 10px;min-height:112px;border:1px solid #e4e9f0;border-radius:5px;box-shadow:none;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px}.cs-report-metric .stat-label{display:block;font-size:13px;line-height:1.4;color:#657386;white-space:normal}.cs-report-metric .stat-value{display:block;margin:0;font-size:30px;line-height:1.1;font-weight:750;color:#172b45;letter-spacing:0}.cs-report-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 10px}.cs-report-toolbar h3{margin:0 auto 0 0;font-size:16px}.cs-report-toolbar .segmented{order:0}.cs-report-toolbar label{display:flex;align-items:center;gap:8px;width:auto;font-size:13px}.cs-report-toolbar input{width:160px}.cs-report-table{min-width:520px}.cs-report-table th:not(:first-child),.cs-report-table td:not(:first-child){text-align:center}.cs-report-link{min-width:40px;padding:3px 8px;color:#225bd6;text-decoration:underline;background:transparent}.cs-report-link:hover{background:#edf3ff}
@media(max-width:700px){.cs-report-summary{grid-template-columns:1fr;gap:12px}.cs-report-summary>section{padding:0 10px 10px}.cs-report-summary>section>h3{margin:0 -10px 10px}.cs-report-summary>section>div{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.cs-report-summary .cs-report-metric{padding:10px 4px;min-height:88px}.cs-report-metric .stat-label{font-size:11px}.cs-report-metric .stat-value{font-size:24px}.cs-report-detail-panel .cs-report-toolbar{grid-template-columns:1fr auto 1fr;gap:5px;min-height:36px;padding:3px 0;margin-bottom:6px}.cs-report-detail-panel .cs-report-toolbar .segmented{gap:1px;padding:1px}.cs-report-detail-panel .cs-report-toolbar .segmented button{height:26px;min-width:48px;padding:0 7px;font-size:12px}.cs-report-detail-panel .cs-report-toolbar h3{font-size:14px}.cs-report-detail-panel .cs-report-toolbar label{gap:4px;font-size:10px}.cs-report-detail-panel .cs-report-toolbar input{width:112px;height:28px;min-height:28px;padding:3px 5px;font-size:12px}.cs-report-table{min-width:480px}}

.cs-report-detail-panel{padding-top:12px}.cs-report-detail-panel .cs-report-toolbar{position:relative;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;min-height:54px;margin:0 0 14px;padding:8px 12px;background:#f5f7fa;border:1px solid #e2e7ee;border-radius:6px;overflow:visible}.cs-report-detail-panel .cs-report-toolbar .segmented{grid-column:1;grid-row:1;justify-self:start;display:inline-flex;align-items:center;gap:3px;padding:3px;background:#e9edf3;border:1px solid #dce2eb;border-radius:5px;min-height:0}.cs-report-detail-panel .cs-report-toolbar .segmented button{height:32px;min-width:68px;padding:0 12px;border:1px solid transparent;border-radius:4px;background:transparent;color:#526174;box-shadow:none;font-weight:550}.cs-report-detail-panel .cs-report-toolbar .segmented button[aria-pressed="true"]{background:#fff;color:#225bd6;border-color:#d7e2f5;box-shadow:0 1px 2px #182b4515}.cs-report-detail-panel .cs-report-toolbar h3{grid-column:2;grid-row:1;justify-self:center;margin:0;font-size:16px;line-height:1.3;white-space:nowrap}.cs-report-detail-panel .cs-report-toolbar label{grid-column:3;grid-row:1;justify-self:end;display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap;font-size:13px;color:#536174}.cs-report-detail-panel .cs-report-toolbar input{width:150px}.cs-report-detail-panel .table-wrap{margin-top:0}
@media(max-width:700px){.cs-report-detail-panel .cs-report-toolbar{grid-template-columns:auto 1fr auto;gap:6px;padding:7px}.cs-report-detail-panel .cs-report-toolbar .segmented{gap:1px;padding:2px}.cs-report-detail-panel .cs-report-toolbar .segmented button{height:30px;min-width:50px;padding:0 7px;font-size:12px}.cs-report-detail-panel .cs-report-toolbar h3{font-size:14px}.cs-report-detail-panel .cs-report-toolbar label{gap:4px;font-size:11px}.cs-report-detail-panel .cs-report-toolbar input{width:120px}}


/* Definitive toolbar layout: independent left/center/right groups. */
.cs-report-page .cs-report-detail-panel .cs-report-toolbar{position:relative;display:grid;grid-template-columns:minmax(116px,1fr) auto minmax(116px,1fr);align-items:center;box-sizing:border-box;width:100%;height:44px;min-height:44px;margin:0 0 8px;padding:0;border:0;border-bottom:1px solid #e7ebf0;background:#fff;gap:10px;overflow:visible}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar .segmented{grid-column:1;justify-self:start;display:inline-flex;align-items:center;box-sizing:border-box;height:32px;gap:0;width:auto;margin:0;padding:3px;background:#f3f6fa;border:1px solid #e1e7ef;border-radius:999px;box-shadow:inset 0 1px 2px #1f355708}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar .segmented button{box-sizing:border-box;height:24px;min-width:52px;margin:0;padding:0 11px;border:0;border-radius:999px;background:transparent;color:#637186;box-shadow:none;font-size:13px;font-weight:600;line-height:24px;white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar .segmented button[aria-pressed="true"]{background:#2463dc;color:#fff;box-shadow:0 2px 5px #2463dc35}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar h3{position:static;grid-column:2;justify-self:center;width:max-content;margin:0;transform:none;font-size:15px;line-height:20px;white-space:nowrap;pointer-events:none}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period{grid-column:3;justify-self:end;display:inline-flex!important;flex-direction:row!important;align-items:center!important;box-sizing:border-box;flex:0 0 auto;width:auto!important;min-width:0;height:32px;margin:0;gap:5px;padding:0 4px 0 9px;border:1px solid #e1e8f2;border-radius:8px;background:#fff;color:#657386;font-size:12px;line-height:30px;white-space:nowrap}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period>span{display:inline-block;flex:0 0 auto;width:auto;white-space:nowrap}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period>input{display:block;box-sizing:border-box;flex:0 0 126px;width:126px;height:28px;min-height:28px;margin:0;padding:3px 5px;border:0;background:transparent;font-size:12px;box-shadow:none;outline:none}
@media(max-width:760px){.cs-report-page .cs-report-detail-panel .cs-report-toolbar{grid-template-columns:auto 1fr auto;grid-template-rows:1fr;height:44px;min-height:44px;gap:5px;margin-bottom:7px;padding:0}.cs-report-page .cs-report-detail-panel .cs-report-toolbar h3{grid-column:2;grid-row:1;position:static;justify-self:center;transform:none;font-size:13px}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .segmented{grid-column:1;grid-row:1;justify-self:start;height:30px;padding:3px}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .segmented button{height:22px;min-width:42px;line-height:22px;padding:0 7px;font-size:11px}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period{grid-column:3;grid-row:1;justify-self:end;height:30px;gap:0;padding:0 3px;border-radius:7px;font-size:0;line-height:28px}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period>span{display:none}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period>input{width:112px;flex-basis:112px;height:27px;min-height:27px;padding:2px 3px;font-size:11px}}


/* Compact report toolbar: preserve the single-row layout, remove excess vertical space. */
.cs-report-page .cs-report-detail-panel{padding-top:4px}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar{height:34px;min-height:34px;margin-bottom:4px;gap:8px}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar .segmented{height:26px;padding:2px}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar .segmented button{height:20px;min-width:48px;padding:0 9px;font-size:12px;line-height:20px}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar h3{font-size:14px;line-height:18px}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period{height:26px;padding-left:7px;line-height:24px}
.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period>input{height:23px;min-height:23px;padding:1px 4px}
@media(max-width:760px){.cs-report-page .cs-report-detail-panel{padding-top:3px}.cs-report-page .cs-report-detail-panel .cs-report-toolbar{height:32px;min-height:32px;margin-bottom:3px;gap:4px}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .segmented{height:25px;padding:2px}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .segmented button{height:19px;min-width:40px;padding:0 6px;line-height:19px}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period{height:25px;line-height:23px}.cs-report-page .cs-report-detail-panel .cs-report-toolbar .cs-report-period>input{height:22px;min-height:22px}}

/* Compact performance toolbar */
.development-panel{padding-top:4px}
.performance-toolbar{position:relative;display:grid;grid-template-columns:minmax(110px,1fr) auto minmax(110px,1fr);align-items:center;height:34px;min-height:34px;margin:0 0 8px;border-bottom:1px solid #e7ebf0;gap:8px}
.performance-toolbar h2{grid-column:2;justify-self:center;margin:0;font-size:14px;line-height:18px;white-space:nowrap}
.performance-switch{grid-column:1;justify-self:start;display:inline-flex;align-items:center;height:26px;padding:2px;border:1px solid #e1e7ef;border-radius:999px;background:#f3f6fa}
.performance-switch button{height:20px;min-width:48px;padding:0 9px;border:0;border-radius:999px;background:transparent;color:#637186;box-shadow:none;font-size:12px;font-weight:600;line-height:20px}
.performance-switch button[aria-pressed="true"]{background:#2463dc;color:#fff;box-shadow:0 2px 5px #2463dc35}
.performance-period{grid-column:3;justify-self:end;display:inline-flex;align-items:center;height:26px;gap:5px;padding:0 4px 0 7px;border:1px solid #e1e8f2;border-radius:7px;color:#657386;font-size:12px;white-space:nowrap}
.performance-period input{box-sizing:border-box;width:126px;height:23px;min-height:23px;margin:0;padding:1px 4px;border:0;background:transparent;font-size:12px;box-shadow:none}
.performance-period input:focus{outline:0;box-shadow:none}
@media(max-width:760px){.performance-toolbar{grid-template-columns:auto 1fr auto;height:32px;min-height:32px;gap:4px;margin-bottom:6px}.performance-toolbar h2{font-size:13px}.performance-switch{height:25px}.performance-switch button{height:19px;min-width:40px;padding:0 6px;font-size:11px;line-height:19px}.performance-period{height:25px;padding:0 3px}.performance-period span{display:none}.performance-period input{width:112px;height:22px;min-height:22px;font-size:11px}}

.performance-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 20px;padding:16px;background:#f7f9fc;border:1px solid #e5eaf2;border-radius:12px}.performance-summary-item{min-width:0;text-align:center;display:flex;flex-direction:column;gap:8px}.performance-summary-item+.performance-summary-item{border-left:1px solid #e2e8f0}.performance-summary-item>span{font-size:13px;color:#64748b}.performance-summary-item>strong{font-size:26px;font-weight:700;color:#1e3a5f;line-height:1.2;font-variant-numeric:tabular-nums}@media(max-width:600px){.performance-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 8px;padding:14px 8px}.performance-summary-item>strong{font-size:22px}.performance-summary-item:nth-child(3){border-left:0}}

/* Personal lead report: reuse summary cards without changing the admin report. */
.cs-personal-report .cs-report-summary{margin-bottom:8px}.cs-personal-note{margin:0;text-align:center}.cs-history-search{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cs-history-search input{width:230px;max-width:100%}.cs-history-search .error:empty{display:none}.cs-history-search .error{flex-basis:100%;margin:0}@media(max-width:700px){.cs-personal-report .toolbar{flex-wrap:wrap}.cs-history-search{width:100%}.cs-history-search input{flex:1;min-width:120px}.cs-personal-note{font-size:11px}}

.cs-report-detail-modal th,.cs-report-detail-modal td{text-align:center;vertical-align:middle;white-space:nowrap}

.personal-performance-summary{grid-template-columns:repeat(6,minmax(0,1fr))}@media(max-width:1100px){.personal-performance-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.personal-performance-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.cs-preview-table tbody tr{cursor:pointer}.cs-preview-table tbody tr.cs-preview-selected{background:#e6f0ff;box-shadow:inset 3px 0 #3976d4}
/* Keep grid separators clearly visible between adjacent muted converted-lead rows. */
.cs-table tr.cs-wechat-added td{background:#f5f6f8!important;border-right:1px solid #e3e9f2!important;border-bottom:1px solid #e3e9f2!important}
.cs-table tr.cs-wechat-added td:last-child{border-right:0!important}
.cs-table tr.cs-wechat-added+tr.cs-wechat-added td{border-top:1px solid #e3e9f2!important}

.cs-table td:last-child{overflow:visible}
.cs-wvc-bubble{position:fixed;z-index:9999;background:#fff;border:1px solid #d0d7e3;border-radius:8px;box-shadow:0 4px 16px #1a2d4d18;padding:8px 12px;white-space:nowrap;display:flex;align-items:center;gap:8px;font-size:12px;color:#26354b;min-width:160px;}
.cs-wvc-bubble::before{content:"";position:absolute;top:-6px;right:16px;border:6px solid transparent;border-top:none;border-bottom-color:#d0d7e3;}
.cs-wvc-bubble::after{content:"";position:absolute;top:-5px;right:17px;border:5px solid transparent;border-top:none;border-bottom-color:#fff;}
.cs-wvc-bubble button{padding:2px 10px;font-size:12px;height:24px;border-radius:5px;cursor:pointer}




.cs-detail-wide{min-width:min(860px,92vw)}
.wd-fl-btn{font-size:11px;padding:2px 8px;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wd-fl-popup{position:fixed;z-index:10000;background:#fff;border:1px solid #d0d7e3;border-radius:9px;box-shadow:0 6px 24px #1a2d4d22;width:360px;max-width:calc(100vw - 24px)}
.wd-fl-popup-head{display:flex;align-items:center;justify-content:space-between;padding:8px 12px;background:#edf3fc;border-bottom:1px solid #d0d7e3;border-radius:9px 9px 0 0;font-size:12px;font-weight:600;gap:8px}
.wd-fl-xbtn{background:none;border:none;cursor:pointer;font-size:14px;color:#617087;padding:0 4px;border-radius:4px}
.wd-fl-xbtn:hover{background:#dde4ef}
.wd-fl-popup-body{max-height:280px;overflow-y:auto;padding:4px 8px}
.wd-fl-row{display:flex;gap:8px;padding:5px 2px;border-bottom:1px solid #edf0f5;font-size:11px;line-height:1.5}
.wd-fl-row:last-child{border-bottom:none}
.wd-fl-row time{flex-shrink:0;color:#7a8799;white-space:nowrap;min-width:90px}
.wd-fl-row span{color:#26354b;word-break:break-all}


.drop-zone{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;border:2px dashed #b0bcd4;border-radius:8px;padding:18px 16px;text-align:center;color:#617087;font-size:13px;cursor:pointer;background:#f8faff;transition:border-color .15s,background .15s}
.drop-zone span{color:#3a72c8;text-decoration:underline;text-underline-offset:2px}
.drop-zone:hover,.drop-zone-over{border-color:#4a7fd4;background:#eef3fb}
.drop-zone-ok{border-color:#3a9e6e;background:#edfbf4;color:#258159}
.drop-zone-ok span{color:#258159}
