/* SME premium interface system 0.42.0 — appearance only, no workflow or data changes. */
body.sme-premium-ui:not(.customer-portal-mode){
 --sme-premium-bg:#0d141b;--sme-premium-surface:#172530;--sme-premium-elevated:#1d2e39;
 --sme-premium-border:#314754;--sme-premium-ink:#f3f6f8;--sme-premium-muted:#b1c1cc;
 --sme-premium-orange:#f26a21;--sme-premium-soft:#ff9859;--sme-premium-radius:12px;
 --sme-premium-shadow:0 10px 27px rgba(0,0,0,.20);background:#0d141b;color:#f3f6f8;
 -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .content{background:radial-gradient(ellipse 46rem 20rem at 96% 0,rgba(242,106,33,.045),transparent 80%),#0d141b}
body.sme-premium-ui:not(.customer-portal-mode) .topbar{background:linear-gradient(100deg,#0b1219,#141f28 72%,#1a2530)!important;border-bottom:1px solid rgba(196,211,220,.12);box-shadow:0 2px 16px rgba(0,0,0,.22)}
body.sme-premium-ui:not(.customer-portal-mode) .sidebar{background:linear-gradient(164deg,#0b1017 0%,#0e1922 72%,#142331)!important;border-right:1px solid #30434f;box-shadow:6px 0 28px rgba(0,0,0,.19)}
body.sme-premium-ui:not(.customer-portal-mode) .nav-item{border-radius:9px;min-width:0;transition:background-color .16s ease,color .16s ease,box-shadow .16s ease}
body.sme-premium-ui:not(.customer-portal-mode) .nav-item:hover{background:rgba(242,106,33,.10)!important;color:#fff}
body.sme-premium-ui:not(.customer-portal-mode) .nav-item.active{background:linear-gradient(95deg,rgba(242,106,33,.24),rgba(242,106,33,.055))!important;box-shadow:inset 3px 0 0 #f26a21,0 0 0 1px rgba(242,106,33,.09)!important;color:#fff!important}
body.sme-premium-ui:not(.customer-portal-mode) .nav-item.active:before{background:#f26a21!important}
body.sme-premium-ui:not(.customer-portal-mode) .sidebar :is(.nav-label,.side-name){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
body.sme-premium-ui:not(.customer-portal-mode) .page-head{border-left:3px solid #f26a21!important;background:radial-gradient(ellipse at 100% 0,rgba(242,106,33,.10),transparent 70%),linear-gradient(125deg,#192631,#111b24)!important;box-shadow:0 6px 18px rgba(0,0,0,.12)!important;padding:15px 17px!important;border-radius:11px!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(.page-head .title,.panel-title,.dash-card-title,.section-title,.creator-panel-head b){color:#f3f6f8!important;letter-spacing:-.012em}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) :is(.page-head .subtitle,.panel-sub,.dash-card-sub,.kpi-label,.kpi-note){color:#b7c6d0!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(.panel,.dash-card,.card,.section,.file-card,.mobile-card,.parts-conversation-card,.dispatch-live-card,.planner-stop-card,.tech-job-card){border-color:var(--sme-premium-border);border-radius:var(--sme-premium-radius)!important;box-shadow:var(--sme-premium-shadow);color:var(--sme-premium-ink)}
body.sme-premium-ui:not(.customer-portal-mode) :is(.panel,.dash-card,.card,.section,.parts-conversation-card,.file-card){background-color:#172530}
body.sme-premium-ui:not(.customer-portal-mode) :is(.panel-head,.dash-card-head,.section-title,.creator-panel-head){border-bottom-color:rgba(191,211,224,.13)}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) :is(.kpis,.dashboard-grid,.service-status-departments-grid){gap:11px}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .kpi{background:linear-gradient(145deg,#1b2a36,#131e27)!important;border:1px solid #344c5a!important;border-radius:12px!important;box-shadow:0 6px 20px rgba(0,0,0,.15);min-width:0}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .kpi:before{background:#f26a21}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .kpi-value{color:#fff!important;font-size:clamp(25px,2vw,34px);font-weight:850;font-variant-numeric:tabular-nums;letter-spacing:-.035em}
body.sme-premium-ui:not(.customer-portal-mode) :is(.dash-kpi-value,.equipment-score-number,.command-kpi-value){font-variant-numeric:tabular-nums;letter-spacing:-.025em}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .kpi:is(.alert,.warn):before{background:#f5a45a}
body.sme-premium-ui:not(.customer-portal-mode) :is(.btn-primary,.btn.btn-primary,.pill-btn.active){background:linear-gradient(145deg,#f47c32,#de5814)!important;border-color:#f58b4c!important;color:#14191e!important;box-shadow:0 2px 8px rgba(242,106,33,.20)}
body.sme-premium-ui:not(.customer-portal-mode) :is(.btn-primary,.btn.btn-primary,.pill-btn.active):hover{background:linear-gradient(145deg,#ff9959,#eb6b26)!important;box-shadow:0 5px 16px rgba(242,106,33,.25)}
body.sme-premium-ui:not(.customer-portal-mode) :is(.btn,.pill-btn,.top-action,.nav-item,.select,.input,textarea){border-radius:9px}
body.sme-premium-ui:not(.customer-portal-mode) :is(.btn,.pill-btn,.top-action,[role="button"],.nav-item):focus-visible{outline:2px solid #ff9959!important;outline-offset:2px!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(.toolbar,.work-toolbar,.parts-toolbar,.dispatch-toolbar,.comm-viewbar,.dashboard-controls,.quickbar){gap:9px;border-color:rgba(182,200,213,.19);background-color:#16242e}
body.sme-premium-ui:not(.customer-portal-mode) :is(.input,.select,textarea){border-color:#3d5361;color:#eef4f8;background-color:#1b2b36}
body.sme-premium-ui:not(.customer-portal-mode) :is(.input,.select,textarea):focus{border-color:#ef8242;box-shadow:0 0 0 3px rgba(242,106,33,.16)}
body.sme-premium-ui:not(.customer-portal-mode) :is(.table-wrap,.dash-table-wrap,.inline-search-results,.comm-thread-list,.sme-message-stream,.drawer-scroll,.modal-body){scrollbar-gutter:stable;overscroll-behavior:contain}
body.sme-premium-ui:not(.customer-portal-mode) :is(.table-wrap,.dash-table-wrap) thead th{background:#263846!important;color:#d9e4eb!important;border-bottom:1px solid #516473!important;letter-spacing:.04em}
body.sme-premium-ui:not(.customer-portal-mode) .table-wrap tbody tr:not(.service-status-category-row):not(.service-status-sub-row):not(.parts-status-group-row){border-bottom:1px solid rgba(173,195,210,.12)}
body.sme-premium-ui:not(.customer-portal-mode) .table-wrap tbody tr.clickable:hover{background:#243642!important}
body.sme-premium-ui:not(.customer-portal-mode) .table-wrap td{color:#e0eaf0}
body.sme-premium-ui:not(.customer-portal-mode) :is(.status,.badge){font-variant-numeric:tabular-nums;line-height:1.25;border-radius:7px;font-weight:750;max-width:100%;vertical-align:middle}
body.sme-premium-ui:not(.customer-portal-mode) .status-stack{gap:5px}
body.sme-premium-ui:not(.customer-portal-mode) :is(.drawer,.modal){background:#172530!important;color:#f1f5f8;border:1px solid #3c5362;box-shadow:0 28px 82px rgba(0,0,0,.50)!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(.drawer-head,.modal-head){background:#1a2a35!important;border-bottom:1px solid #3b5160}
body.sme-premium-ui:not(.customer-portal-mode) :is(.drawer-scroll,.modal-body){scroll-behavior:auto}
body.sme-premium-ui:not(.customer-portal-mode) :is(.file-card,.mobile-card,.tech-job-card,.planner-stop-card,.parts-conversation-card,.comm-thread,.dispatch-live-card){transition:background-color .16s ease,border-color .16s ease,box-shadow .18s ease!important}
body.sme-premium-ui:not(.customer-portal-mode) :is(.file-card,.mobile-card,.tech-job-card,.planner-stop-card,.parts-conversation-card,.comm-thread):hover{border-color:rgba(242,106,33,.44)!important;box-shadow:0 7px 20px rgba(0,0,0,.18)!important}
body.sme-premium-ui:not(.customer-portal-mode) .skeleton{background:#24343e}
body.sme-premium-ui:not(.customer-portal-mode) .skeleton:after{background:linear-gradient(95deg,transparent,rgba(255,255,255,.09),transparent);animation-duration:1.8s}
@media(max-width:760px){
 body.sme-premium-ui:not(.customer-portal-mode) .topbar-inner{gap:8px;padding:0 11px}
 body.sme-premium-ui:not(.customer-portal-mode) .page-head{padding:11px 12px!important}
 body.sme-premium-ui:not(.customer-portal-mode) :is(.mobile-card,.tech-job-card){min-width:0;max-width:100%;padding:11px}
 body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) :is(.mobile-card-grid,.kpis){gap:8px}
 body.sme-premium-ui:not(.customer-portal-mode) :is(.btn,.pill-btn){min-height:33px}
}
@media(prefers-reduced-motion:reduce){
 body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) :is(.panel,.card,.kpi,.dash-card,.mobile-card,.file-card,.comm-thread){animation:none!important;transition:none!important}
 body.sme-premium-ui:not(.customer-portal-mode) .skeleton:after{animation:none!important}
}
