/* SME 0.43.0: employee portal only.
   Neutral charcoal, true gray borders, accessible gray text, Kubota orange.
   Purely cosmetic. No sizing, position, scrolling, route-line or state changes.
   Loaded after premium-core and premium-workspaces so one palette wins.
*/
body.sme-premium-ui:not(.customer-portal-mode){
 --bg:#111113;--surface:#212123;--surface-2:#29292c;
 --ink:#f4f4f5;--muted:#c9c9ce;--line:#49494e;
 --nav:#151517;--nav-2:#222225;--sme-surface:#202023;
 --sme-text:#f4f4f5;--sme-text-1:#f5f5f6;--sme-text-2:#d4d4d8;
 --sme-text-3:#c8c8cc;--sme-surface-1:#19191c;
 --sme-surface-2:#222225;--sme-surface-3:#2d2d30;
 --sme-premium-bg:#111113;--sme-premium-surface:#222225;
 --sme-premium-elevated:#2b2b2e;--sme-premium-border:#4b4b50;
 --sme-premium-ink:#f5f5f6;--sme-premium-muted:#c9c9ce;
 --category-line:#4b4b50;--category-bg:#222225;
 --s0:#19191b;--s1:#252528;--edge:#4a4a50;
 --txt:#f5f5f6;--txt2:#c9c9ce;
 background:#111113!important;color:#f4f4f5!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(.app,.content,#mainContent,#page){
 color:#f4f4f5
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .content{
 background:radial-gradient(ellipse 55rem 22rem at 98% 0,rgba(242,106,33,.035),transparent 78%),#111113!important
}
body.sme-premium-ui:not(.customer-portal-mode) .topbar{
 background:linear-gradient(100deg,#171719,#202023)!important;
 border-bottom:1px solid #3c3c41!important
}
body.sme-premium-ui:not(.customer-portal-mode) .sidebar{
 background:linear-gradient(155deg,#151517,#1c1c1f)!important;
 border-right:1px solid #424247!important
}
body.sme-premium-ui:not(.customer-portal-mode) .sidebar :is(.nav-label,.side-name,.nav-item){
 color:#e8e8eb
}
body.sme-premium-ui:not(.customer-portal-mode) .nav-item:not(.active):hover{
 background:#2c2c30!important;color:#fff!important
}
body.sme-premium-ui:not(.customer-portal-mode) .nav-item.active{
 background:linear-gradient(90deg,rgba(242,106,33,.20),#282323)!important;
 box-shadow:inset 3px 0 #f26a21!important;color:#fff!important
}
body.sme-premium-ui:not(.customer-portal-mode) .page-head{
 background:linear-gradient(110deg,#282421,#1e1e21 48%,#1a1a1c)!important;
 border-left:3px solid #f26a21!important
}
/* Universal structural surfaces. Avoid painting chart tracks, map tiles and status chips. */
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .panel,.dash-card,.dash-widget,.card,.section,.parity-panel,.health-section,
 .hbs-recon-panel,.team-intro,.access-intro,.launch-card,.creator-control,
 .creator-panel,.command-flow-panel,.company-strip,.service-status-departments,
 .parts-panel,.parts-transfer-card,.parts-request-card,.manager-action-card,
 .manager-cross-card,.manager-target-grid>div,.writer-brief,
 .customer-card,.customer-summary,.customer-equipment-card,
 .file-folder,.file-card,.file-folder-bar,.mobile-card,
 .tech-department,.tech-job-card,.tech-status-section,
 .planner-stop-card,.dispatch-mobile-card,.dispatch-mobile-list .mobile-card,
 .dispatch-live-board,.dispatch-board-col,.parts-conversation-card,
 .comm-layout,.comm-thread,.comm-detail,.comm-compose,.comm-detail-head
){
 background:#222225!important;background-image:none!important;
 border-color:#49494e!important;color:#f4f4f5!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .panel-head,.dash-card-head,.dash-widget-head,.creator-panel-head,
 .section-title,.health-title,.hbs-recon-head,.file-folder-bar
){
 background:#28282b!important;background-image:none!important;
 border-color:#444448!important;color:#f4f4f5!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .toolbar,.work-toolbar,.parts-toolbar,.dispatch-toolbar,.comm-viewbar,
 .dashboard-controls,.quickbar,.module-toolbar,.panel.table-panel .toolbar,
 .panel.table-panel .module-toolbar,.drawer-actions,.modal-foot,.modal-footer,
 .admin-note,.file-drop,.shortcut-panel,.auth-status,.sme-cap-explain,
 .box-card,.comm-provider
){
 background:#242427!important;background-image:none!important;
 border-color:#4b4b50!important;color:#ececef!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .page-head .title,.panel-title,.card-title,.dash-card-title,
 .section-title,.creator-panel-head b,.cell-main,
 .file-card-main b,.comm-thread b,.tech-job-customer,
 .manager-action-card b,.writer-brief b
){color:#f6f6f7!important}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) :is(
 .muted,.subcell,.panel-sub,.dash-card-sub,.kpi-label,.kpi-note,
 .page-head .subtitle,.activity-when,.file-card-main span,
 .file-card-main small,.comm-thread-preview,.comm-thread-meta,
 .tech-job-equipment,.tech-department-description,.tech-status-empty,
 .manager-action-card small,.manager-cross-card small,
 .customer-equipment-card small,.company-strip-head span,
 .company-strip .store-strip-card small,.service-status-departments-note
){color:#cdcdcf!important;opacity:1!important}
/* Lists need readable headings and values, not low-contrast blue text. */
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .table-wrap,.dash-table-wrap,.inline-search-results,
 .comm-thread-list,.drawer-scroll,.modal-body
){border-color:#48484e;color:#ededf0}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .table-wrap thead th,.dash-table thead th,.parts-responsive-table thead th,
 .service-status-table thead th,thead th
){
 background:#303034!important;background-image:none!important;
 color:#f4f4f6!important;border-color:#55555a!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .table-wrap td,.dash-table td,.parts-responsive-table td,
 .table-wrap tbody th,.dash-table tbody th
){color:#e8e8eb!important;border-color:#424247!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .table-wrap tbody tr:not(.service-status-category-row):not(.service-status-sub-row):hover,
 .dash-table tbody tr:hover,.customer-list-row:hover
){background:#303034!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .table-wrap tbody tr.selected,.table-wrap tbody tr[aria-selected="true"],
 .mobile-card.selected,.file-card.selected
){background:#342b26!important;box-shadow:inset 3px 0 #f26a21!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .drawer,.modal
){background:#222225!important;border-color:#525257!important;color:#f4f4f5!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .drawer-head,.modal-head
){background:#2a2a2d!important;border-color:#4b4b50!important;color:#fafafa!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .input,.select,.textarea,input[type="text"],input[type="search"],
 input[type="email"],input[type="tel"],input[type="number"],
 input[type="date"],input[type="time"],select,textarea
){
 background:#1c1c1f!important;color:#f7f7f8!important;
 border-color:#636369!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(input,textarea)::placeholder{
 color:#bcbcc1!important;opacity:1!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(.field label,.form-grid label,.drawer label,.modal label){
 color:#ededf0!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .input,.select,.textarea,input,select,textarea
):focus-visible{
 border-color:#ff9959!important;outline:2px solid #f26a21!important;
 outline-offset:1px!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .btn:not(.btn-primary):not(.btn-danger),.pill-btn:not(.active),.top-action
){
 background:#313135!important;border-color:#5c5c62!important;
 color:#f3f3f5!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .btn:not(.btn-primary):not(.btn-danger),.pill-btn:not(.active),.top-action
):hover{background:#3d3d42!important;border-color:#f26a21!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(.btn-primary,.btn.btn-primary){
 background:linear-gradient(135deg,#ff964d,#ef6c21)!important;
 border-color:#ffad70!important;color:#171310!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(.panel,.modal-body,.drawer-scroll) a:not(.btn):not(.status):not(.badge){
 color:#ffb17c
}
/* Workflow category accents: gray/amber/green rather than cool steel blue. */
body.sme-premium-ui:not(.customer-portal-mode) .role-category-page{
 --category-line:#505055;--category-bg:#242427
}
body.sme-premium-ui:not(.customer-portal-mode) .role-category-panel{
 --category-accent:#929298;
 background:#242427!important;border-color:#48484e!important;
 border-left:3px solid var(--category-accent)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .role-category-panel[data-role-tone="amber"]{--category-accent:#f26a21}
body.sme-premium-ui:not(.customer-portal-mode) .role-category-panel[data-role-tone="teal"]{--category-accent:#8eb49e}
body.sme-premium-ui:not(.customer-portal-mode) .role-category-panel:not(.role-category-has-title)::before{
 background:linear-gradient(90deg,#313034,#252528)!important;
 border-color:#505055!important;color:#f6f6f7!important
}
body.sme-premium-ui:not(.customer-portal-mode) .role-category-page .role-category-standard>.panel-head,
body.sme-premium-ui:not(.customer-portal-mode) .role-category-page .role-category-panel.role-category-has-title>.panel-head{
 background:#2b2b2e!important;color:#f5f5f6!important
}
body.sme-premium-ui:not(.customer-portal-mode) .role-category-overview-title{
 color:#f3f3f5!important
}
body.sme-premium-ui:not(.customer-portal-mode) .role-category-page > .role-category-kpis{
 background:#242427!important;background-image:none!important;
 border:1px solid #545459!important;box-shadow:none!important
}
body.sme-premium-ui.sme-route-work:not(.customer-portal-mode) .role-category-page > .role-category-kpis{
 border:2px solid #f26a21!important;box-shadow:0 7px 20px rgba(0,0,0,.20)!important
}
body.sme-premium-ui.sme-route-work:not(.customer-portal-mode) .role-category-panel{
 border-left-color:#545459!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .kpi{
 background:linear-gradient(145deg,#303033,#222225)!important;
 border-color:#535359!important;color:#f5f5f6!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .kpi-value{color:#fff!important}
/* Status groups preserve meaning, but avoid bright blue department backgrounds. */
body.sme-premium-ui:not(.customer-portal-mode) .service-status-departments{
 background:linear-gradient(110deg,#2d2622,#202023 40%,#1e1e20)!important;
 border:1px solid #66503e!important;border-left:4px solid #f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-category{
 background:#242427!important;border-color:#535359!important
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-category[data-tone="blue"],
body.sme-premium-ui:not(.customer-portal-mode) .service-status-category[data-tone="cyan"],
body.sme-premium-ui:not(.customer-portal-mode) .service-status-category[data-tone="slate"]{
 --status-accent:#a3a3a8;--status-rgb:163,163,168
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-category-head{
 background:linear-gradient(90deg,rgba(242,106,33,.075),#2b2b2e)!important;
 border-bottom-color:#505055!important
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-category-count{
 background:#353539!important;color:#f9f9fa!important;border-color:#646469!important
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-stage{
 background:#29292c!important;border-color:#4f4f54!important;
 color:#f0f0f2!important
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-stage:hover{
 background:#382e2a!important;border-color:#f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-stage-name{
 color:#f2f2f3!important
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-stage-count{
 color:#ffb482!important
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-grouped-table .service-status-category-row>th{
 background:linear-gradient(90deg,#41312a,#303033 44%,#29292c)!important;
 border-bottom:1px solid #5b5b61!important;color:#f9f9fa!important
}
body.sme-premium-ui:not(.customer-portal-mode) .service-status-grouped-table .service-status-sub-row>th{
 background:#2b2b2f!important;color:#ececef!important;
 border-color:#505055!important
}
body.sme-premium-ui.sme-route-work:not(.customer-portal-mode) .service-status-grouped-table .service-status-sub-row>th{
 border-left:3px solid transparent!important;box-shadow:none!important
}
/* Technician, parts and dispatch screens. No layout changes or lost map route colors. */
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .tech-department-header,.tech-status-head,.parts-status-group-row th,
 .dispatch-live-board-title,.dispatch-board-head,.planner-head,
 .file-folder-bar,.comm-detail-head
){
 background:linear-gradient(90deg,#343034,#27272a)!important;
 color:#f7f7f8!important;border-color:#56565b!important
}
body.sme-premium-ui:not(.customer-portal-mode) .tech-department-header{
 border-bottom-color:#8b5332!important
}
body.sme-premium-ui:not(.customer-portal-mode) .parts-status-group-row th{
 border-top:2px solid #f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .parts-status-group-count{
 background:#493426!important;border-color:#986140!important;color:#ffe2cf!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .tech-status-count,.tech-department-total,.dispatch-daily-plan,
 .dispatch-planner,.samsara-fleet,.dispatch-board-list,
 .planner-unscheduled-list,.smart-route-list
){border-color:#505055!important;color:#eaeaec!important}
body.sme-premium-ui:not(.customer-portal-mode) .tech-status-count{
 background:#353538!important;color:#e6e6e9!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .comm-thread.active,.comm-thread[aria-selected="true"]
){
 background:#39312c!important;box-shadow:inset 4px 0 #f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .file-folder-bar{
 background:#303033!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .company-strip .store-strip-card,.company-strip .store-strip-card:hover,
 .dash-status-chart .dash-bar-track,.command-meter-row>div,
 .skeleton
){
 background:#303033!important;border-color:#505055!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .company-strip .store-strip-card span,.company-strip-head span,
 .dash-bar-row,.dash-bar-name,.comm-thread-preview,.comm-thread-meta
){color:#d1d1d4!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .company-strip .store-strip-card b,.dash-bar-row>b
){color:#fff!important}
/* Meaningful alerts retain green, amber and red; image/PDF canvases untouched. */
body.sme-premium-ui:not(.customer-portal-mode) :is(
 .skeleton,.skeleton:after
){background-image:linear-gradient(95deg,#272729,#343437,#272729)!important}
@media(prefers-reduced-motion:reduce){
 body.sme-premium-ui:not(.customer-portal-mode) .skeleton{animation:none!important}
}

/* The legacy experience layer sets nested blue-gray variables and ID-specific
   backgrounds; override those at equal or higher specificity too. */
body.sme-premium-ui:not(.customer-portal-mode){
 --a:#f26a21;--as:rgba(242,106,33,.09)
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content{
 --s0:#1b1b1d;--s1:#262629;--s2:#303033;
 --edge:#4d4d52;--txt:#f5f5f6;--mute:#cdcdcf;
 --sme-surface:#222225;--sme-text:#f5f5f6
}
body.sme-premium-ui:not(.customer-portal-mode) #page > :is(.panel,.quickbar),
body.sme-premium-ui:not(.customer-portal-mode) #dashboardWidgets > .dash-card{
 background:linear-gradient(135deg,rgba(242,106,33,.025),transparent 28%),#222225!important;
 border-color:#4b4b50!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.box-card,.file-folder,.comm-provider){
 background:#242427!important;border-color:#4e4e53!important;color:#f5f5f6!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.muted,.panel-sub,.card-sub,.dash-card-sub,.subcell,.kpi-note,.kpi-label,.results-foot){
 color:#cdcdcf!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.input,.select,.textarea){
 background:#1c1c1f!important;color:#f7f7f8!important;border-color:#636369!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.input,.select,.textarea)::placeholder{
 color:#bcbcc1!important;opacity:1!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .status{
 background:#29292c!important;color:#f6f6f7!important;border-color:#55555a!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.st-arrived,.st-work,.st-diagnosing,.st-wash,.st-bill){
 --status-accent:#a8a8ad
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.st-service-estimate,.st-ready-tech,.st-progress){
 --status-accent:#f26a21
}
body.sme-premium-ui:not(.customer-portal-mode) :is(.search-pop,.customer-suggestions,.customer-suggestion,.customer-equipment-option){
 background:#262629!important;color:#f6f6f7!important;border-color:#535358!important
}
body.sme-premium-ui:not(.customer-portal-mode) :is(.results-foot,.tech-job-ref span,.field-hint,.help-text,.hint){
 color:#cdcdcf!important
}
