/* Appearance only. Business values, map geometry and layout stay with existing modules. */
html[data-theme] {color-scheme:light;--bg:#edf2f7;--surface:#fbfcfe;--surface-strong:#e7eef6;--text:#22354b;--muted:#536b83;--line:#cad8e6;--primary:#176ab6;--primary-dark:#15518a;--primary-soft:#dfedf9;--blue:#176ab6;--blue-soft:#dfedf9;--shadow:0 5px 22px #35516b0d;--theme-card:#fbfcfe;--theme-soft:#eaf1f8;--theme-accent:#176ab6;--theme-border:#cad8e6;--theme-map:#e7eff7;}
html[data-theme=dark] {color-scheme:dark;--bg:#121c2b;--surface:#1b293b;--surface-strong:#24364b;--text:#c8d4e2;--muted:#9aafc5;--line:#35485e;--primary:#397db5;--primary-dark:#2e628f;--primary-soft:#233d54;--blue:#82b5de;--blue-soft:#233d54;--shadow:0 5px 22px #0002;--theme-card:#1b293b;--theme-soft:#233247;--theme-accent:#82b5de;--theme-border:#35485e;--theme-map:#152235;}
html[data-theme] body,html[data-theme] .app-shell,html[data-theme] body.dashboard-screen .main-content,html[data-theme] .main-content,html[data-theme] .command-dashboard {background:var(--bg)!important;color:var(--text)!important;}
html[data-theme] :is(.sidebar,.topbar,.bigscreen-topbar,.bigscreen-footer,.panel,.cockpit-panel,.login-card,.map-detail-card,.dialog,.modal-card,.customer-detail-dialog,.card) {background:var(--theme-card)!important;border-color:var(--theme-border)!important;color:var(--text)!important;box-shadow:var(--shadow)!important;}
html[data-theme] :is(.bigscreen-topbar h2,.topbar h2,.panel h3,.panel h4,.section-heading h3,.cockpit-panel h3,.cockpit-panel h4,.sidebar h1,.sidebar strong,.brand-copy strong,.map-profile p) {color:var(--text)!important;text-shadow:none!important;}
html[data-theme] :is(.screen-meta,.eyebrow,.muted,.small,.hint,.caption,.cockpit-panel .small,.cockpit-panel .muted,.metric-card span,.metric-card em,.expiry-countdown p,.expiry-countdown-days span,.map-profile span,.map-detail-grid span,.sidebar p,.brand-copy p,.report-detail-table th) {color:var(--muted)!important;}
html[data-theme] :is(.metric-card,.cockpit-metrics .metric-card,.metric-scope-toggle,.segmented-control,.trend-chart,.month-bar,.month-card,.expiry-countdown,.expiry-rank-item,.map-detail-grid div,.map-profile,.finance-order-item,.count-pill,.amount-pill,.earth-toolbar button,.region-summary button,.region-chip) {background:var(--theme-soft)!important;border-color:var(--theme-border)!important;box-shadow:none!important;}
html[data-theme] :is(.metric-card strong,.expiry-countdown-days strong,.donut-center strong,.amount-link,.collection-trend strong) {color:var(--theme-accent)!important;text-shadow:none!important;}
html[data-theme] :is(.nav-item,.screen-actions button,.bigscreen-footer button,.ghost-button,.secondary-button,.metric-scope-toggle button,.segmented-control button,.map-mode,.icon-button) {color:var(--text)!important;background:var(--theme-soft)!important;border-color:var(--theme-border)!important;box-shadow:none!important;}
html[data-theme] :is(.nav-item.active,.bigscreen-footer button.active,.primary-button,.metric-scope-toggle button.active,.segmented-control button.active,.map-mode.active) {background:var(--primary)!important;color:#fff!important;border-color:var(--primary)!important;box-shadow:none!important;}
html[data-theme] :is(input,select,textarea) {background:var(--surface)!important;color:var(--text)!important;border-color:var(--theme-border)!important;color-scheme:inherit!important;}
html[data-theme] :is(input,textarea)::placeholder {color:var(--muted)!important;opacity:1;}
html[data-theme] :is(th,td,.report-detail-table td,.detail-list div,.section-heading) {border-color:var(--theme-border)!important;color:var(--text)!important;}
html[data-theme] :is(th,.report-detail-table th) {background:var(--theme-soft)!important;}
html[data-theme] :is(tbody tr:nth-child(even),.report-detail-table tbody tr:nth-child(even)) {background:var(--theme-soft)!important;}
html[data-theme] :is(.satellite-stage,.echarts-flat-map,.echarts-gl-map,.map-stage) {background:radial-gradient(ellipse at center,#4c8ab915,transparent 65%),var(--theme-map)!important;border-color:var(--theme-border)!important;box-shadow:none!important;}
html[data-theme] .command-dashboard::before,html[data-theme] .command-dashboard::after,html[data-theme] .bigscreen-topbar::before,html[data-theme] .bigscreen-topbar::after {opacity:.12;}
html[data-theme] .map-dom-label {color:var(--text)!important;background:var(--surface)!important;border-color:var(--theme-border)!important;text-shadow:none!important;font-weight:700;}
html[data-theme] .trend-grid line {stroke:var(--theme-border)!important;}
html[data-theme] .trend-chart text {fill:var(--muted)!important;}
html[data-theme] .expiry-countdown h4,html[data-theme] .expiry-rank-item strong,html[data-theme] .map-detail-grid strong {color:var(--text)!important;}
html[data-theme] :is(.count-pill,.amount-pill) {color:var(--theme-accent)!important;}
html[data-theme] .danger,html[data-theme] .danger-button,html[data-theme] .is-overdue {color:#b6423c!important;}
html[data-theme=dark] :is(.danger,.danger-button,.is-overdue) {color:#e7a29e!important;}
html[data-theme] .login-screen {background:var(--bg)!important;}
html[data-theme] .login-card :is(h2,label) {color:var(--text)!important;}
html[data-theme] #receivableDateEditModal .receivable-date-dialog {background:var(--surface)!important;color:var(--text)!important;border-color:var(--line)!important;}
html[data-theme] #receivableDateEditModal :is(label,p,button),html[data-theme] #reportMetricBody :is(.receivable-product,.receivable-date-value) {color:var(--text)!important;}
html[data-theme] #reportMetricBody :is(.receivable-amounts,.receivable-date-label) {color:var(--muted)!important;}
html[data-theme] :focus-visible {outline:2px solid var(--theme-accent)!important;outline-offset:3px;}
.appearance-options {display:flex;gap:10px;flex-wrap:wrap;margin:16px 0;}
html[data-theme] .appearance-options button {background:var(--theme-soft);color:var(--text);border:1px solid var(--line);border-radius:9px;padding:11px 20px;min-height:44px;cursor:pointer;}
html[data-theme] .appearance-options button[aria-pressed=true] {background:var(--primary);border-color:var(--primary);color:#fff;}
#appearanceStatus {color:var(--muted);font-size:14px;line-height:1.6;}
@media(prefers-reduced-motion:reduce){html[data-theme] * {scroll-behavior:auto!important;}}
html[data-theme] :is(.trend-columns,.region-focus-list button,.expiry-rank-item em,.expiry-rank-item>strong,.expiry-countdown-top span,.expiry-countdown-top em) {background:var(--theme-soft)!important;border-color:var(--theme-border)!important;color:var(--muted)!important;box-shadow:none!important;}
html[data-theme] :is(.trend-month strong,.trend-legend,.region-focus-list button,.region-focus-list span,.region-focus-list strong,.expiry-rank-item span,.donut-list span,.donut-list strong,.donut span) {color:var(--text)!important;}
html[data-theme] .donut::after {background:var(--theme-card)!important;box-shadow:none!important;}
html[data-theme] :is(.donut strong,.donut-note) {color:var(--theme-accent)!important;text-shadow:none!important;}
html[data-theme=light] .trend-chart .trend-line {stroke:#176ab6!important;}
html[data-theme=light] .trend-chart .trend-paid-point {fill:#176ab6!important;}
html[data-theme=light] .trend-chart .trend-sale-point {fill:#568c7d!important;}
html[data-theme=dark] :is(.earth-canvas canvas,.donut) {filter:saturate(.72) brightness(.82);}
html[data-theme] :is(label,.form-grid label span,.settings-form label span,.detail-list span,.customer-link-button,.finance-order-item strong,.finance-order-item span,.report-card h4,.empty-state) {color:var(--text)!important;}
html[data-theme] :is(.trend-chart .trend-line,.trend-chart .trend-paid-line) {stroke:var(--theme-accent)!important;}
html[data-theme] .trend-chart .trend-sale-line {stroke:#5c9d89!important;}
html[data-theme] .trend-chart circle {fill:var(--theme-accent)!important;stroke:var(--theme-card)!important;}
html[data-theme] :is(.earth-toolbar,.zoom-control,.receivable-date-dialog button) {background:var(--theme-soft)!important;border-color:var(--line)!important;}
html[data-theme=light] :is(.warning,.amount-pill.warning,.expiry-countdown.warning .expiry-countdown-days strong) {color:#946321!important;}
html[data-theme=dark] :is(.warning,.amount-pill.warning,.expiry-countdown.warning .expiry-countdown-days strong) {color:#d8b77e!important;}
/* Complete workspace palette, including legacy dark component surfaces. */
html[data-theme=light]{--bg:#f5f7fa;--surface:#fff;--theme-card:#fff;--theme-soft:#f4f7fb;--text:#223044;--muted:#526477;--line:#dbe3ec;--theme-border:#dbe3ec;--theme-accent:#2668a8;--primary:#2668a8;--theme-map:#f7f9fc;}
html[data-theme=dark]{--bg:#171e29;--surface:#202b39;--theme-card:#202b39;--theme-soft:#273444;--text:#d8e0e9;--muted:#a7b5c6;--line:#3c4a5c;--theme-border:#3c4a5c;--theme-accent:#91bfe5;--primary:#356b9d;--theme-map:#1b2532;}
html[data-theme] .login-card :is(span,.login-hint,.login-password-toggle span){color:var(--muted)!important;}
html[data-theme] .login-card :is(h1,h2,label,.login-password-toggle){color:var(--text)!important;}
html[data-theme] :is(tbody tr,tbody tr:nth-child(odd),.rank-item,.rank-card,.import-actions,.finance-contract-import,.finance-supplement-upload,.settings-form,.settings-import,.product-library-card,.product-library-meta>div,.order-management-tabs,.order-tab){background:var(--surface)!important;background-image:none!important;color:var(--text)!important;border-color:var(--line)!important;box-shadow:none!important;}
html[data-theme] tbody tr:nth-child(even){background:var(--theme-soft)!important;}
html[data-theme] tbody tr:hover{background:var(--primary-soft)!important;}
html[data-theme] :is(.customer-sub,.inline-hint,.rank-subline,.rank-subline span,.rank-subline b,.rank-meta span,.product-library-meta span,.import-actions span,.import-actions p,.finance-supplement-upload span,.settings-form span){color:var(--muted)!important;}
html[data-theme] :is(.row-actions button,.table-action,.file-button){background:var(--theme-soft)!important;color:var(--theme-accent)!important;border:1px solid var(--line)!important;box-shadow:none!important;}
html[data-theme] .row-actions{display:flex;flex-wrap:wrap;gap:6px;}
html[data-theme] .row-actions button{padding:6px 10px!important;min-height:32px;}
html[data-theme] :is(.danger,.table-action.danger,.row-actions .danger){color:#b6423c!important;background:#fdf1f0!important;}
html[data-theme=dark] :is(.danger,.table-action.danger,.row-actions .danger){color:#efaaa5!important;background:#432e34!important;}
html[data-theme] :is(.status-pill,.health-pill){background:var(--theme-soft)!important;color:var(--text)!important;border-color:var(--line)!important;}
html[data-theme] :is(.status-pill.done,.health-pill.good){background:#e5f3ed!important;color:#22664d!important;}
html[data-theme=dark] :is(.status-pill.done,.health-pill.good){background:#244638!important;color:#b0dfc7!important;}
html[data-theme] :is(.rank-meta strong,.rank-card strong,.rank-card .rank-subline,.rank-card .rank-meta span){color:var(--text)!important;text-shadow:none!important;}
html[data-theme] .bar-track{background:var(--line)!important;}
html[data-theme] .bar-fill{background:#548fbe!important;box-shadow:none!important;}
html[data-theme] .rank-index{background:var(--primary-soft)!important;color:var(--theme-accent)!important;border:0!important;}
html[data-theme] .order-tab.active{color:var(--theme-accent)!important;background:var(--primary-soft)!important;}
html[data-theme] .metric-card strong{white-space:nowrap!important;font-size:clamp(19px,1.8vw,32px)!important;line-height:1.3!important;}
html[data-theme] .nav-item{background:transparent!important;border-color:transparent!important;}
html[data-theme] .nav-item.active{background:var(--primary-soft)!important;color:var(--theme-accent)!important;}
html[data-theme] .satellite-stage,html[data-theme] .echarts-flat-map{background:var(--theme-map)!important;}
html[data-theme=dark] .earth-canvas canvas{filter:none!important;}
.province-choice-grid{display:grid;grid-template-columns:repeat(6,minmax(90px,1fr));gap:10px;padding:12px 0;}
html[data-theme] .province-choice{display:flex!important;align-items:center;gap:9px;white-space:nowrap;min-width:0;padding:11px 12px;margin:0!important;background:var(--theme-soft);border:1px solid var(--line);border-radius:8px;cursor:pointer;}
.province-choice input{width:16px!important;height:16px!important;flex:none;margin:0;}
.province-choice span{white-space:nowrap;word-break:keep-all;}
.province-save-footer{display:flex;justify-content:flex-end;padding-top:16px;border-top:1px solid var(--line);}
.workspace-settings-nav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px;padding-bottom:12px;border-bottom:1px solid var(--line);}
html[data-theme] .workspace-settings-nav button{background:transparent;color:var(--muted);border:0;border-radius:7px;padding:10px 16px;cursor:pointer;}
html[data-theme] .workspace-settings-nav button[aria-selected=true]{background:var(--primary-soft);color:var(--theme-accent);font-weight:700;}
.workspace-settings-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;}
.workspace-settings-group[hidden]{display:none!important;}
.workspace-settings-group>.span-two{grid-column:1/-1;}
html[data-theme] #systemView .system-grid{display:block;}
html[data-theme] #systemView .product-settings-layout{display:block;}
.catalog-table{width:100%;border-collapse:collapse;font-size:14px;}
.catalog-table th,.catalog-table td{padding:12px 14px!important;vertical-align:top;}
.catalog-table td:first-child{width:30%;}
.catalog-table small{display:block;margin-top:5px;color:var(--muted);line-height:1.5;}
.catalog-number{white-space:nowrap;}
.catalog-note{max-width:400px;line-height:1.6;}
.catalog-actions{white-space:nowrap;}
html[data-theme] #productLibraryRows{display:block!important;max-height:600px;overflow:auto;border:1px solid var(--line);border-radius:10px;}
#productLibraryEditor{margin:16px 0;border:1px solid var(--line);border-radius:9px;padding:14px;}
#productLibraryEditor summary{cursor:pointer;color:var(--theme-accent);font-weight:600;}
#productLibraryEditor form{margin-top:16px;}
html[data-theme] :is(.finance-contract-import,.finance-supplement-upload,.settings-import) :is(strong,span,p,label){color:var(--text)!important;}
@media(max-width:1000px){.province-choice-grid{grid-template-columns:repeat(4,minmax(80px,1fr));}.workspace-settings-group{grid-template-columns:1fr;}.workspace-settings-group>.span-two{grid-column:auto;}}
@media(max-width:600px){.province-choice-grid{grid-template-columns:repeat(2,minmax(80px,1fr));}.catalog-table{min-width:720px;}}
/* Higher-specificity skin for legacy dashboard/body overrides. */
html[data-theme] body .main-content :is(.panel,.rank-item,.rank-card,.settings-form,.import-actions,.finance-contract-import,.finance-supplement-upload){background:var(--surface)!important;background-image:none!important;border-color:var(--line)!important;}
html[data-theme] body .main-content table tbody tr{background:var(--surface)!important;color:var(--text)!important;}
html[data-theme] body .main-content table tbody tr:nth-child(even){background:var(--theme-soft)!important;}
html[data-theme] body .sidebar .nav-item{background:transparent!important;border-color:transparent!important;color:var(--muted)!important;}
html[data-theme] body .sidebar .nav-item.active{background:var(--primary-soft)!important;color:var(--theme-accent)!important;}
html[data-theme] body .main-content :is(.rank-meta span,.rank-meta strong,.rank-subline,.rank-subline span,.rank-subline b,.customer-sub,.inline-hint,.import-actions span,.finance-supplement-upload span){color:var(--muted)!important;}
html[data-theme] body .main-content .order-tab{background:var(--surface)!important;color:var(--muted)!important;}
html[data-theme] body .main-content .order-tab.active{background:var(--primary-soft)!important;color:var(--theme-accent)!important;}
html[data-theme] body .login-card :is(span,label,.login-password-toggle span,.login-hint){color:var(--muted)!important;}
.catalog-search{width:min(460px,100%);margin:0 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;}
.catalog-table tr[hidden]{display:none!important;}
html[data-theme] #systemView #accountProvinceSettings .province-choice span{color:var(--text)!important;}
html[data-theme] #systemView :is(.settings-form label span,.settings-form label,.settings-form p,.settings-import span,.catalog-table td,.catalog-table strong,.catalog-table small){color:var(--text)!important;}
html[data-theme] #loginScreen .login-card :is(span,label,.login-hint,.login-password-toggle span){color:var(--muted)!important;}
html[data-theme] #customersView :is(td,.customer-sub,.customer-link-button){color:var(--text)!important;}
html[data-theme] #financeView :is(td,.finance-contract-import span,.finance-supplement-upload span,.import-actions span){color:var(--text)!important;}
/* Compact account forms and task-oriented backup workspace. */
html[data-theme] #settings-group-account{align-items:start;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);}
html[data-theme] #settings-group-account>.panel{align-self:start;min-height:0;height:auto;}
html[data-theme] #systemView #userCreateForm{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;}
html[data-theme] #systemView #userCreateForm>button{grid-column:1/-1;justify-self:start;width:auto;}
html[data-theme] #systemView #passwordForm{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;}
html[data-theme] #passwordForm>label:first-child{grid-column:1/-1;}
html[data-theme] #passwordForm>button{grid-column:1/-1;justify-self:start;width:auto;}
html[data-theme] #systemView :is(#userCreateForm,#passwordForm) :is(input,select){min-height:42px;height:42px;padding:9px 12px;}
html[data-theme] #systemView .account-create-panel .table-wrap{margin-top:18px;}
html[data-theme] #systemView .account-health-panel{grid-column:1/-1;}
html[data-theme] #dataView .data-grid{display:flex;flex-direction:column;gap:20px;}
html[data-theme] #dataView .data-grid>.panel{width:100%;min-width:0;box-sizing:border-box;}
html[data-theme] #dataView .button-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;}
html[data-theme] #dataView .button-grid :is(button,.file-button){min-height:44px;display:flex;align-items:center;justify-content:center;margin:0;}
html[data-theme] #dataView .danger-panel{order:3;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;min-height:0;height:auto;}
html[data-theme] #dataView .danger-panel .section-heading{margin:0;padding:0;border:0;}
html[data-theme] #dataView .danger-panel>button{flex:none;width:auto;}
html[data-theme] #dataView .data-health-result,html[data-theme] #systemView .data-health-result{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;}
html[data-theme] #dataView .data-health-grid,html[data-theme] #systemView .data-health-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
html[data-theme] #dataView .data-health-card,html[data-theme] #systemView .data-health-card{background:var(--theme-soft)!important;border:1px solid var(--line)!important;box-shadow:none!important;border-radius:10px;padding:16px 18px;}
html[data-theme] #dataView .data-health-card span,html[data-theme] #systemView .data-health-card span,html[data-theme] #dataView .data-health-note{color:var(--muted)!important;}
html[data-theme] #dataView .data-health-card strong,html[data-theme] #systemView .data-health-card strong{color:var(--theme-accent)!important;font-size:26px;line-height:1.4;}
html[data-theme] #dataView .data-clean-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) minmax(120px,.3fr) minmax(170px,.4fr) auto auto;gap:10px;padding-top:18px;margin-top:16px;border-top:1px solid var(--line);align-items:center;}
html[data-theme] #dataView .data-clean-toolbar :is(input,select,button){width:100%;min-height:42px;box-sizing:border-box;}
html[data-theme] #dataView .heading-actions{display:flex;gap:8px;flex-wrap:wrap;}
@media(max-width:1100px){html[data-theme] #dataView .data-clean-toolbar{grid-template-columns:1fr 1fr;}html[data-theme] #dataView .data-clean-toolbar input{grid-column:1/-1;}}
@media(max-width:800px){html[data-theme] #settings-group-account{grid-template-columns:1fr;}html[data-theme] #dataView .button-grid,html[data-theme] #dataView .data-health-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Usage table occupies its own row rather than leaving an empty companion column. */
html[data-theme] #settings-group-account .account-usage-panel{grid-column:1/-1;}
html[data-theme] #settings-group-account .account-usage-panel .table-wrap{max-height:420px;width:100%;}
html[data-theme] #settings-group-account .account-usage-panel table{width:100%;}

/* Travel has its own heading; omit unrelated global actions in this view only. */
.main-content:has(> #travelView.active) > .topbar{display:none!important;}
#travelView.active #travelFrame{height:calc(100vh - 64px)!important;}

/* Compact module chrome; actions belong to their own module. */
html[data-theme] .main-content>.topbar{padding:0 0 14px;margin:0 0 18px;min-height:0;background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0;box-shadow:none!important;gap:12px}
html[data-theme] .main-content>.topbar .eyebrow{display:none}
html[data-theme] .main-content>.topbar h2{font-size:24px;line-height:1.3;margin:0}
html[data-theme] .main-content>.topbar #exportJsonTop{display:none}
html[data-theme] .main-content:not(:has(>#customersView.active))>.topbar .topbar-actions{display:none}
html[data-theme] .main-content>.topbar .topbar-actions button{padding:9px 15px;font-size:14px}
/* Customer information uses the same readable surfaces in both themes. */
html[data-theme] .customer-detail-dialog{display:flex;flex-direction:column;max-height:90vh;max-height:90dvh}
html[data-theme] .customer-detail-head{padding:18px 20px;flex:none;border-color:var(--line)}
html[data-theme] .customer-detail-head h3{overflow-wrap:anywhere;font-size:22px}
html[data-theme] .customer-detail-head>div{min-width:0}
html[data-theme] .customer-detail-head>button{flex:none}
html[data-theme] .customer-detail-body{min-height:0;max-height:none;padding:16px 20px 20px;overscroll-behavior:contain}
html[data-theme] .customer-detail-summary{background:var(--theme-soft)!important;border-color:var(--line)!important;color:var(--text)!important;padding:10px 12px;gap:8px 14px}
html[data-theme] .customer-detail-summary strong{color:var(--text)!important}
html[data-theme] .customer-detail-grid{align-items:start;gap:14px}
html[data-theme] .customer-detail-section{min-width:0;background:var(--surface)!important;border-color:var(--line)!important;box-shadow:none!important;padding:16px}
html[data-theme] .customer-detail-section h4{color:var(--text)!important;font-size:15px}
html[data-theme] .customer-detail-section .detail-list dt{color:var(--muted)!important}
html[data-theme] .customer-detail-section .detail-list dd{color:var(--text)!important}
html[data-theme] .customer-detail-section .muted{color:var(--muted)!important}
html[data-theme] .customer-detail-section .deal-total-card{background:var(--primary-soft)!important;border-color:var(--line)!important;color:var(--text)!important;box-shadow:none!important}
html[data-theme] .customer-detail-section .deal-total-card strong{color:var(--blue)!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
html[data-theme] .customer-detail-section :is(.deal-total-card span,.deal-total-card em,.usage-jump-card span,.usage-jump-card em){color:var(--muted)!important}
html[data-theme] .customer-detail-section :is(.usage-jump-card,.order-payment-meta>div){background:var(--theme-soft)!important;border-color:var(--line)!important;box-shadow:none!important;min-width:0}
html[data-theme] .customer-detail-section .usage-jump-card strong{color:var(--text)!important;overflow-wrap:anywhere}
html[data-theme] .customer-detail-section :is(.usage-jump-card,.deal-total-card):hover{border-color:var(--primary)!important}
html[data-theme] .customer-enterprise-summary{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
html[data-theme] .customer-enterprise-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:13px}
html[data-theme] .customer-enterprise-heading button{font-size:12px;padding:6px 9px}
html[data-theme] .customer-enterprise-links{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;color:var(--muted);line-height:1.6}
html[data-theme] .customer-enterprise-link{max-width:100%;background:var(--primary-soft);border:1px solid var(--line);border-radius:8px;color:var(--blue);padding:7px 10px;text-align:left;line-height:1.5;overflow-wrap:anywhere;font-size:13px;cursor:pointer}
html[data-theme] #enterpriseRelationsHost{background:var(--surface)!important;color:var(--text);border:1px solid var(--line)!important}
@media(max-width:760px){html[data-theme] .customer-detail-dialog{width:calc(100vw - 20px)}html[data-theme] .customer-detail-grid{grid-template-columns:minmax(0,1fr)}html[data-theme] .customer-detail-head{padding:14px}html[data-theme] .customer-detail-head h3{font-size:19px}html[data-theme] .customer-detail-body{padding:12px}html[data-theme] .customer-detail-section{padding:14px}html[data-theme] .customer-detail-summary{font-size:13px}html[data-theme] .main-content>.topbar h2{font-size:21px}}
@media(max-width:380px){html[data-theme] .customer-detail-section .detail-list{grid-template-columns:1fr}}

/* Enterprise relationship reasons: metadata is read as plain text. */
html[data-theme] .customer-enterprise-reason{flex-basis:100%;margin:0 0 4px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--text);line-height:1.6}
html[data-theme] .customer-enterprise-reason strong{display:block;font-size:13px}
html[data-theme] .customer-enterprise-reason span{display:block;color:var(--muted);margin-top:3px}
