/* SME 0.46.0 — Equipment / KPI / chart / workflow visual polish.
   Pure presentation layer. No scroll, map polyline, route ordering,
   status filtering or ticket-action changes. Only #f26a21 is orange. */
body.sme-premium-ui:not(.customer-portal-mode){
 --sme-polish-bg:#131315;--sme-polish-surface:#242427;
 --sme-polish-silver:#c8c8cc;--sme-polish-orange:#f26a21;
 --sme-polish-red:#d83b3b;--sme-polish-ice:#f6f6f8
}
/* Real, locally verified Kubota photographs replace tractor silhouettes.
   The dark left fade protects heading text, while the equipment stays visible. */
body.sme-premium-ui:not(.customer-portal-mode):is(
 .sme-route-dashboard,.sme-route-manager,.sme-route-creator,
 .sme-route-writer,.sme-route-command
) .app .content .page-head{
 background-image:
  linear-gradient(92deg,rgba(20,20,23,.96) 0%,rgba(20,20,23,.82) 38%,rgba(20,20,23,.22) 100%),
  url('/images/equipment-tractor-cc0.jpg')!important;
 background-position:center,right center!important;
 background-size:cover,cover!important;
 background-repeat:no-repeat,no-repeat!important;
 border-color:#77777d!important;
 box-shadow:0 14px 30px rgba(0,0,0,.36),inset 0 1px rgba(255,255,255,.08)!important
}
/* Do not paint equipment silhouettes behind the sidebar or navigation. */
body.sme-premium-ui:not(.customer-portal-mode) .sidebar::after{
 content:none!important
}
body.sme-premium-ui:not(.customer-portal-mode) .sidebar :is(.sidebar-inner,.nav,.nav-item){
 position:relative;z-index:1
}
body.sme-premium-ui:not(.customer-portal-mode) .app .brand-mark{
 outline:1px solid rgba(255,255,255,.24)!important;
 box-shadow:0 0 0 3px rgba(242,106,33,.12),0 6px 18px rgba(0,0,0,.23)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head .eyebrow{
 letter-spacing:.16em!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head .title{
 text-wrap:balance
}
/* The Command Center uses its own hero rather than the shared page title. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content .command-hero{
 background-image:linear-gradient(95deg,rgba(22,22,25,.96) 0%,rgba(22,22,25,.76) 52%,rgba(22,22,25,.20)),
 url('/images/svl110-3-wallboard.jpg')!important;
 background-repeat:no-repeat!important;background-position:center,right center!important;
 background-size:cover,cover!important;
 border:1px solid #747479!important;border-bottom:3px solid #f26a21!important;
 box-shadow:0 18px 32px rgba(0,0,0,.3)!important;
 color:#f6f6f8!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .command-hero :is(h2,p,b){
 color:#f6f6f8!important
}
/* KPI identity icons are inserted by small, idempotent page decorator.
   Absolutely positioned so they never change height, scroll or card widths. */
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi,.dash-kpi){
 isolation:isolate
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi,.dash-kpi) .sme-kpi-icon{
 position:absolute!important;top:8px!important;right:9px!important;z-index:2!important;
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 width:19px!important;height:19px!important;color:#222225!important;opacity:.94!important;
 pointer-events:none!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi-label,.dash-kpi-label) > .sme-kpi-icon{
 position:absolute!important;left:auto!important;right:-29px!important;top:-2px!important;
 background:transparent!important;color:#242427!important;border:0!important;
 margin:0!important;transform:none!important;box-shadow:none!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .sme-kpi-icon svg{
 display:block;width:18px;height:18px;stroke-width:2!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi-label,.dash-kpi-label){
 right:34px!important;white-space:normal!important;text-wrap:pretty
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi,.dash-kpi).alert::after{
 background:#d83b3b!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi,.dash-kpi).clickable{
 cursor:pointer
}
/* Elevated cards and a clear data hierarchy, without float/reflow on hover. */
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi,.dash-kpi,.dash-card,.panel,.tech-department,.parts-panel){
 transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi,.dash-kpi,.dash-card,.panel):hover{
 border-color:#b3b3b9!important;
 box-shadow:0 12px 29px rgba(0,0,0,.33)!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi,.dash-kpi).clickable:hover{
 border-color:#f26a21!important;box-shadow:0 0 0 1px rgba(242,106,33,.2),0 12px 30px rgba(0,0,0,.33)!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi-value,.dash-kpi-value,.command-score,.current-chip b){
 font-variant-numeric:tabular-nums!important;font-feature-settings:"tnum" 1;
 letter-spacing:-.035em!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-card-body{
 background:repeating-linear-gradient(135deg,rgba(255,255,255,.01) 0 1px,transparent 1px 7px),
 linear-gradient(120deg,#202023,#171719)!important;
 border-radius:0 0 9px 9px
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-card-sub{
 font-size:10px!important;line-height:1.4!important
}
/* Charts use genuine chart data already rendered by app-0.19.0.js;
   no fake values or guessed percentage changes. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.dash-bars,.dash-status-chart){
 padding:14px 15px!important;gap:7px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dash-bar-row{
 color:#f6f6f8!important;border-radius:7px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dash-bar-row .dash-bar-name{
 color:#e8e8ea!important;font-weight:760!important;
 font-size:11px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dash-bar-row>b{
 font-size:11px!important;font-weight:900!important;color:#f6f6f8!important;
 font-variant-numeric:tabular-nums
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dash-bar-track{
 position:relative;height:10px!important;border-radius:3px!important;
 border:1px solid #616166!important;
 background:repeating-linear-gradient(90deg,#303034 0,#303034 19%,#424247 19%,#424247 20%)!important;
 overflow:hidden!important;box-shadow:inset 0 2px 5px rgba(0,0,0,.22)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dash-bar-track i{
 border-radius:2px!important;background:#f26a21!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.15)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content button.dash-bar-row:hover{
 background:#333337!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.command-meter-row,.progress-row) i{
 background:#f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.command-turnaround-top,.command-scoreboard,.dashboard-current){
 border-color:#69696e!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .current-chip{
 background:linear-gradient(122deg,#353538,#222225)!important;
 color:#f6f6f8!important;border:1px solid #77777d!important;
 border-radius:8px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .current-chip b{
 color:#f6f6f8!important;font-weight:900!important
}
/* Severity is expressed once: the truly critical exception gets red.
   Standard status/phase markers retain neutral or Kubota-orange chrome. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.ticket-next,.attention-card,.flow-action-card){
 background:#252528!important;border-color:#66666b!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .ticket-next{
 border-radius:7px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .ticket-next-label{
 color:#f26a21!important;font-weight:850!important;
 text-transform:uppercase;letter-spacing:.07em
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .ticket-next b{
 color:#f4f4f6!important;line-height:1.35
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .ticket-next-dot.hot{
 background:#d83b3b!important
}
/* Grouped Work List remains unchanged structurally. Increase scanning contrast
   without two stacked orange separators. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content .role-category-panel{
 background:#212124!important;border:1px solid #77777b!important;
 border-radius:10px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .service-status-grouped-table .service-status-category-row>th{
 background:linear-gradient(108deg,#d7d7da,#a2a2a7)!important;
 border-top-color:#717176!important;
 box-shadow:inset 3px 0 #f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .service-status-grouped-table .service-status-sub-row>th{
 background:#343437!important;color:#f6f6f8!important;
 box-shadow:none!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.table-wrap,.parts-responsive-wrap,.dash-table-wrap) tbody tr{
 border-bottom:1px solid #45454a!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.table-wrap,.parts-responsive-wrap,.dash-table-wrap) tbody tr.clickable:hover{
 background:#303034!important;box-shadow:inset 2px 0 #a9a9ae!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.cell-main,.ticket-cell-primary,.parts-reference){
 color:#f6f6f8!important;font-weight:850!important;
 letter-spacing:.01em
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.subcell,.ticket-cell-secondary,.parts-reference-note){
 color:#d0d0d5!important
}
/* Technician: tighter job rows, clear selected status, no giant card treatment. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content .tech-status-board{
 gap:12px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .tech-department{
 background:#202023!important;border:1px solid #79797f!important;
 border-radius:10px!important;box-shadow:0 7px 20px rgba(0,0,0,.24)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .tech-department-header{
 background:linear-gradient(105deg,#dadadd,#99999f)!important;
 border-bottom:1px solid #66666b!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .tech-department-header :is(.tech-department-title,.tech-department-icon){
 color:#18181b!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .tech-job-card{
 background:#262629!important;border:1px solid #636368!important;
 box-shadow:none!important;border-radius:8px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .tech-job-card:hover{
 background:#303034!important;border-color:#c1c1c5!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .tech-job-card.priority{
 border-left:3px solid #d83b3b!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .tech-status-head{
 background:linear-gradient(105deg,#55555a,#39393d)!important;
 border-color:#75757b!important;color:#f6f6f8!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .tech-status-head :is(h3,.tech-status-label,.tech-status-count){
 color:#f6f6f8!important
}
/* Parts: readable labels and pending/arrived separation, no new status meanings. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content .parts-responsive-table tbody td{
 border-color:#55555a!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .parts-status-group-row th{
 background:linear-gradient(110deg,#d6d6d9,#94949a)!important;
 color:#171719!important;border-top:2px solid #f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .parts-status-group-row th :is(b,strong,span){
 color:#161619!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .parts-conversation-card{
 background:#252528!important;border:1px solid #77777b!important
}
/* Dispatch route identity colors are user-saved and remain untouched. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content .planner-route-card{
 background:#222225!important;
 border-top:1px solid #606065!important;
 border-right:1px solid #606065!important;border-bottom:1px solid #606065!important;
 box-shadow:0 7px 22px rgba(0,0,0,.27)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .planner-route-head{
 background:linear-gradient(110deg,#424246,#303034)!important;
 border-bottom:1px solid #77777d!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .planner-route-head :is(b,strong){
 color:#f6f6f8!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.planner-stop-card,.dispatch-live-card,.dispatch-mobile-card){
 background:#242427!important;border-color:#67676d!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.planner-stop-card,.dispatch-live-card):hover{
 border-color:#a4a4a9!important
}
/* Messaging uses the same visual hierarchy without overriding message bubbles. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.comm-thread-list,.comm-layout,.comm-detail){
 background:#1d1d20!important;border-color:#66666b!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .comm-thread{
 background:#252528!important;border:1px solid #535358!important;border-radius:8px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .comm-thread.active{
 background:#3c3c40!important;border-color:#a7a7ad!important;
 box-shadow:inset 3px 0 #f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .comm-thread:hover{
 border-color:#919197!important
}
/* Consistent controls, focus and micro-interactions across all modules. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.btn,.select,.input,.filter){
 border-radius:7px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.btn,.nav-item,.comm-thread,.planner-route-card,.tech-job-card){
 transition:background-color .17s ease,border-color .17s ease,box-shadow .17s ease!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app :is(button,a,[tabindex]):focus-visible{
 outline:2px solid #f26a21!important;outline-offset:2px!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.panel,.dash-card,.card,.drawer,.modal){
 border-radius:10px
}
@media(max-width:850px){
 body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head{
  background-size:cover,cover!important
 }
 body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi,.dash-kpi) .sme-kpi-icon{
  width:15px!important;height:15px!important;right:7px!important;top:9px!important
 }
 body.sme-premium-ui:not(.customer-portal-mode) .app .content .sme-kpi-icon svg{
  width:14px;height:14px
 }
}
@media(prefers-reduced-motion:reduce){
 body.sme-premium-ui:not(.customer-portal-mode) .app *{
  transition:none!important;animation-duration:.01ms!important
 }
}
/* Admin workspaces retain their purple identity; Creator and regular pages
   keep Kubota orange. Photo backgrounds, cards and widget spacing remain. */
body.sme-premium-ui:is(.sme-route-access,.sme-route-health,.sme-route-insights,.sme-route-launch,.sme-route-tools) .app .content .page-head{border-left-color:#a985d6!important}
body.sme-premium-ui:is(.sme-route-access,.sme-route-health,.sme-route-insights,.sme-route-launch,.sme-route-tools) .app .content .page-head::after{background:linear-gradient(90deg,#a985d6 0 65px,transparent 65px 100%)!important}
body.sme-premium-ui:is(.sme-route-access,.sme-route-health,.sme-route-insights,.sme-route-launch,.sme-route-tools) .app .content .page-head .title::before{background:#a985d6!important;box-shadow:12px 0 0 rgba(169,133,214,.25)!important}
body.sme-premium-ui:is(.sme-route-access,.sme-route-health,.sme-route-insights,.sme-route-launch,.sme-route-tools) .app .content :is(.panel-head,.dash-card-head,.hbs-recon-head){border-bottom-color:#775799!important}

body.sme-premium-ui.sme-route-creator:not(.customer-portal-mode) .app .content .page-head{border-left-color:#f26a21!important}
