/* USM_CUSTOMER_GROUPS_V1 — UI 1.1. Uses the native USM Sales palette. */
#primaryNav{flex:1;min-height:0;display:flex;flex-direction:column;gap:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#284765 transparent}
#primaryNav .usmg-nav-work,#primaryNav .usmg-nav-admin{display:flex;flex-direction:column;gap:4px}
#primaryNav .usmg-nav-work{flex:0 0 auto}
#primaryNav .usmg-nav-admin{margin-top:auto;padding-top:20px}
#primaryNav .usmg-admin-label{margin:0 13px 8px;font-size:10px;letter-spacing:1.5px;font-weight:750;color:#7890a9}
#primaryNav .nav-item svg{width:18px;height:18px;flex:0 0 18px;stroke-width:1.8}
#primaryNav .nav-item[data-usmg] svg{stroke-linecap:round;stroke-linejoin:round}
.sidebar:has(#primaryNav .usmg-nav-admin) .sidebar-bottom{margin-top:12px}
.usmg-intro{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:19px}
.usmg-kicker{color:#3279c5;font-weight:750;font-size:10px;letter-spacing:1.6px;text-transform:uppercase}
.usmg-intro h1{margin:6px 0 7px;font-size:clamp(25px,3.1vw,33px);font-weight:750;letter-spacing:-.6px;color:var(--text,#142539)}
.usmg-intro p{color:#677b90;font-size:13px;line-height:1.65;margin:0;max-width:790px}
.usmg-toolbar{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;padding:13px;background:var(--card,#fff);border:1px solid var(--line,#e3eaf2);border-radius:14px;margin:0 0 16px;box-shadow:0 2px 8px rgba(14,37,61,.035)}
.usmg-date-field{display:flex;align-items:center;gap:7px;min-width:145px}
.usmg-date-field>svg{width:17px;height:17px;color:#7e91a7;flex-shrink:0}
.usmg-date-field label{display:flex;align-items:center;gap:8px;font-size:12px;color:#65788d;white-space:nowrap}
.usmg-date-field input,.usmg-search input{min-width:0;border:1px solid #d5e0eb;border-radius:8px;background:#fff;color:#172d45;padding:9px 10px;min-height:38px}
.usmg-date-field input[type=date]{width:142px}.usmg-manager-id input{width:156px}
.usmg-primary,.usmg-subtle{border-radius:9px;min-height:38px;padding:9px 15px;font-size:12px;font-weight:700;cursor:pointer}
.usmg-primary{background:#1769b9;color:#fff;border:1px solid #1769b9;box-shadow:0 3px 9px rgba(23,105,185,.15)}
.usmg-primary:hover{background:#105aa5}.usmg-subtle{background:#f3f7fc;color:#1b527e;border:1px solid #d1deed}
.usmg-toolbar>.usmg-primary{margin-left:auto}
.usmg-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.usmg-kpi{border:1px solid var(--line,#e3eaf2);border-radius:13px;padding:17px 18px;background:var(--card,#fff);min-width:0;box-shadow:0 2px 10px rgba(14,37,61,.03)}
.usmg-kpi>span{color:#657a91;font-size:12px;display:block}.usmg-kpi strong{display:block;font-size:29px;line-height:1.2;font-weight:750;color:#183e69;margin:9px 0 7px;font-variant-numeric:tabular-nums}
.usmg-kpi small{font-size:11px;line-height:1.45;color:#8090a2;display:block}
.usmg-kpi-success strong{color:#16825c}
.usmg-panel{background:var(--card,#fff);border:1px solid var(--line,#e3eaf2);border-radius:15px;padding:20px;margin:16px 0;box-shadow:0 2px 12px rgba(14,37,61,.035)}
.usmg-section-title{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-bottom:16px}
.usmg-section-title h2{font-size:17px;line-height:1.3;font-weight:700;color:#1a3855;margin:0 0 4px}
.usmg-section-title p{font-size:12px;line-height:1.55;color:#7a8a9a;margin:0}
.usmg-search{display:flex;align-items:center;gap:7px;color:#8193a6}.usmg-search>svg{width:18px;height:18px}.usmg-search input{width:195px}
.usmg-company-list{border-top:1px solid #edf1f6}
.usmg-company-row{width:100%;display:flex;align-items:center;gap:14px;border:0;border-bottom:1px solid #edf1f6;background:transparent;color:inherit;text-align:left;padding:15px 2px;cursor:pointer}
.usmg-company-row:last-child{border-bottom:0}.usmg-company-row:hover{background:#f8fbff}
.usmg-company-symbol{width:39px;height:39px;border-radius:11px;display:grid;place-items:center;flex:0 0 39px;background:#eaf3fc;color:#377dbd}
.usmg-company-symbol svg{width:20px;height:20px}
.usmg-company-info{min-width:0;flex:1}.usmg-company-info strong{display:block;font-size:13px;line-height:1.45;color:#1d3953}
.usmg-company-info small{display:block;margin-top:4px;font-size:11px;color:#75899c;line-height:1.5}
.usmg-company-people{overflow-wrap:anywhere}.usmg-company-meta{display:flex;flex-direction:column;align-items:flex-end;gap:5px}
.usmg-company-meta small{font-size:11px;color:#7e8da0;text-align:right;white-space:nowrap}
.usmg-chevron{color:#8da5b9;display:grid;place-items:center}
.usmg-badge{display:inline-flex;align-items:center;border-radius:50px;background:#eff3f8;color:#526b80;font-size:11px;line-height:1.2;padding:5px 9px;font-weight:650;white-space:nowrap}
.usmg-badge-positive{background:#e3f6ed;color:#157447}.usmg-badge-warning{background:#fff3dc;color:#956018}.usmg-badge-danger{background:#ffebec;color:#ae3f49}.usmg-badge-blue{background:#e9f2fd;color:#206bad}
.usmg-table-wrap{width:100%;overflow-x:auto}.usmg-table{border-collapse:collapse;min-width:700px;width:100%;font-size:12px}
.usmg-table th{text-align:left;color:#6d8197;font-size:11px;font-weight:650;background:#f7f9fc;line-height:1.45}
.usmg-table td,.usmg-table th{padding:12px 11px;border-bottom:1px solid #eaf0f6}
.usmg-table td strong{color:#213c55}.usmg-table td small{display:block;color:#8596a5;margin-top:4px;font-size:10px}
.usmg-table tr:last-child td{border-bottom:0}.usmg-note{display:flex;align-items:flex-start;gap:8px;color:#788a9b;font-size:11px;line-height:1.6;margin:14px 0 0}
.usmg-note svg{width:17px;height:17px;flex:0 0 17px}
.usmg-text-button{border:0;background:transparent;color:#186bb6;font-size:12px;font-weight:650;display:inline-flex;align-items:center;gap:6px;padding:7px 0;cursor:pointer}
.usmg-text-button svg{width:16px;height:16px}.usmg-return{margin:-7px 0 16px}
.usmg-manager-pills{display:flex;flex-wrap:wrap;gap:8px}.usmg-manager-pill{display:inline-flex;gap:10px;padding:8px 11px;border-radius:9px;border:1px solid #dfebf5;background:#f5f9fd;color:#2a5071;font-size:12px}.usmg-manager-pill b{color:#165e9e}
.usmg-call-card{margin:11px 0 0;padding:15px;background:#fbfcff;border:1px solid #e9eff7;border-radius:11px}
.usmg-call-header{display:flex;flex-wrap:wrap;align-items:center;gap:7px}.usmg-call-date{font-size:12px;font-weight:700;color:#274760;margin-right:auto}
.usmg-call-manager{font-size:12px;font-weight:700;color:#426885;margin-top:8px}
.usmg-call-card p{font-size:12px;line-height:1.6;color:#3d5369;margin:8px 0}.usmg-call-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #eaf0f6;padding-top:8px}
.usmg-call-foot small{color:#7b8a9b;font-size:11px}.usmg-call-foot b{color:#365e83}
.usmg-progress,.usmg-empty{padding:30px 18px;text-align:center;color:#7a8c9e;font-size:13px}
.usmg-b24-import-card{margin-top:18px}.usmg-b24-import-card .usmg-section-title>svg{color:#397ec0;width:21px;height:21px}
.usmg-b24-form{display:flex;align-items:stretch;flex-wrap:wrap;gap:12px}
.usmg-file-drop{border:1px dashed #a9c1da;background:#f6faff;border-radius:11px;padding:13px;flex:1;min-width:225px;display:flex;align-items:center;gap:12px;cursor:pointer;color:#246b9b}
.usmg-file-drop svg{flex:0 0 24px;width:24px;height:24px}.usmg-file-drop span{min-width:0;display:flex;flex-direction:column;gap:4px}
.usmg-file-drop strong{font-size:12px}.usmg-file-drop small{color:#75899c;font-size:11px;line-height:1.5}
#usmg-b24-file{width:100%;max-width:340px;align-self:center;color:#557187;font-size:12px}
.usmg-b24-form>.usmg-primary{align-self:center}.usmg-b24-result{margin-top:10px;font-size:12px;color:#5a6d80}
.usmg-b24-success{color:#16825c}.usmg-b24-error{color:#aa4047}
@media(max-width:1150px){.usmg-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:780px){#primaryNav{min-height:0}.sidebar:has(#primaryNav .usmg-nav-admin) .sidebar-bottom{margin-top:12px}.usmg-toolbar{gap:9px}.usmg-toolbar>.usmg-primary{margin-left:0}.usmg-date-field input[type=date]{width:135px}.usmg-panel{padding:15px}.usmg-section-title{align-items:stretch;flex-direction:column}.usmg-search input{flex:1;width:auto}}
@media(max-width:480px){.usmg-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.usmg-kpi{padding:14px 12px}.usmg-kpi strong{font-size:24px}.usmg-company-row{gap:9px}.usmg-company-symbol{width:32px;height:32px;flex-basis:32px}.usmg-company-meta{align-items:flex-start}.usmg-company-meta small{white-space:normal}.usmg-chevron{display:none}.usmg-company-row{flex-wrap:wrap}.usmg-company-meta{width:100%;margin-left:41px}.usmg-call-foot{align-items:flex-start;flex-direction:column}.usmg-toolbar>.usmg-primary{width:100%}}

/* Data upload: two equal primary imports, maintenance below. */
.page-two > .usmg-b24-import-card{margin:0}
.usmg-b24-import-card .usmg-b24-form{display:flex;flex-direction:column;align-items:stretch}
.usmg-b24-import-card #usmg-b24-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.usmg-b24-import-card .usmg-b24-form>.usmg-primary{align-self:flex-start}
.usmg-b24-import-card .usmg-file-drop{min-height:112px}
