/* SME Service Portal — Titanium Signature 0.45.0
   Visual realization of the approved high-contrast mockup.
   Employee UI only. Exactly one decorative orange (#f26a21).
   Red reserved for critical states. No workflow or scrolling changes. */
body.sme-premium-ui:not(.customer-portal-mode){
 --sme-metal-top:#dadadd;--sme-metal-mid:#a3a3a8;--sme-metal-low:#bebec2;
 --sme-carbon-black:#0f0f11;--sme-ice:#f6f6f8;--sme-kubota:#f26a21
}
/* A recognizably new topbar with carbon grain and precision orange divider. */
body.sme-premium-ui:not(.customer-portal-mode) .app .topbar{
 background:repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 1px,transparent 1px 5px),
 repeating-linear-gradient(45deg,rgba(255,255,255,.015) 0 1px,transparent 1px 5px),
 linear-gradient(104deg,#121214 0%,#242426 52%,#101012 100%)!important;
 border-bottom:2px solid #59595f!important;
 box-shadow:0 9px 28px rgba(0,0,0,.45)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .brand{
 position:relative;padding-left:14px
}
body.sme-premium-ui:not(.customer-portal-mode) .app .brand::before{
 content:"";position:absolute;left:0;top:2px;bottom:2px;width:5px;
 transform:skewX(-19deg);background:#f26a21
}
body.sme-premium-ui:not(.customer-portal-mode) .app .brand-mark{
 background:#f26a21!important;color:#141416!important;
 border-radius:5px!important;font-weight:950!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .brand-title{
 font-size:14px!important;font-weight:900!important;letter-spacing:.08em!important;
 text-transform:uppercase!important;line-height:1.12!important;color:#f6f6f8!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .brand-sub{
 font-size:9px!important;letter-spacing:.095em!important;text-transform:uppercase!important;
 color:#d4d4d8!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .user-chip{
 background:#272729!important;border:1px solid #69696e!important;border-radius:9px!important;
 box-shadow:0 5px 14px rgba(0,0,0,.16)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .user-chip .avatar{
 background:linear-gradient(140deg,#bbbcc0,#6f6f73)!important;color:#141416!important;
 border:1px solid #d7d7d9!important
}
/* Sidebar visibly resembles a carbon machine console without adding a scroll rail. */
body.sme-premium-ui:not(.customer-portal-mode) .sidebar{
 background:repeating-linear-gradient(135deg,rgba(255,255,255,.02) 0 1px,transparent 1px 6px),
 linear-gradient(180deg,#161618,#222224 50%,#111113)!important;
 border-right:1px solid #77777c!important
}
body.sme-premium-ui:not(.customer-portal-mode) .sidebar .nav-item{
 border:1px solid transparent!important;border-radius:8px!important;
 color:#eeeef0!important;font-weight:800!important
}
body.sme-premium-ui:not(.customer-portal-mode) .sidebar .nav-item.active{
 background:#f26a21!important;border-color:#f26a21!important;
 color:#111113!important;box-shadow:0 4px 13px rgba(0,0,0,.28)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .sidebar .nav-item.active :is(.nav-icon,.nav-label){
 color:#111113!important
}
body.sme-premium-ui:not(.customer-portal-mode) .sidebar .nav-item:not(.active):hover{
 background:#38383b!important;border-color:#727278!important
}
/* The page title is a real branded feature header, not a slight tone change. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head{
 background:repeating-linear-gradient(135deg,rgba(255,255,255,.023) 0 1px,transparent 1px 5px),
 linear-gradient(110deg,#29292c,#101012 75%)!important;
 border:1px solid #636368!important;border-left:1px solid #636368!important;
 border-radius:12px!important;padding:17px 19px!important;
 box-shadow:0 11px 26px rgba(0,0,0,.26)!important;
 position:relative!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head::after{
 content:"";position:absolute;left:0;right:0;bottom:0;height:3px;
 background:linear-gradient(90deg,#f26a21 0 65px,transparent 65px 100%)!important;
 box-shadow:none!important;pointer-events:none
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head .title{
 font-weight:900!important;letter-spacing:-.035em!important;
 color:#f6f6f8!important;text-shadow:0 2px 12px #000!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head .title::before{
 content:"";display:inline-block;width:8px;height:.88em;vertical-align:-.04em;
 background:#f26a21;transform:skew(-19deg);margin-right:12px;
 box-shadow:12px 0 0 rgba(242,106,33,.25)
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head .eyebrow{
 color:#f26a21!important;font-weight:900!important;letter-spacing:.13em!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head .subtitle{
 color:#dddddf!important;opacity:1!important;line-height:1.5!important
}
/* Distinct brushed-titanium caps over BLACK KPI bodies. This is the biggest
   difference between the old theme and the approved design. */
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content .kpi{
 background:repeating-linear-gradient(135deg,rgba(255,255,255,.018) 0 1px,transparent 1px 5px),
 linear-gradient(125deg,#222224,#111113)!important;
 border:1px solid #8d8d92!important;border-radius:10px!important;
 padding:46px 13px 14px!important;min-height:119px!important;
 box-shadow:0 8px 22px rgba(0,0,0,.27)!important;
 position:relative!important;overflow:hidden!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content .kpi::before{
 content:"";position:absolute!important;left:0!important;right:0!important;top:0!important;
 bottom:auto!important;width:100%!important;height:35px!important;
 background:linear-gradient(112deg,#dadadd 0%,#a0a0a5 43%,#c4c4c8 100%)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.5),0 3px 7px rgba(0,0,0,.32)!important;
 border-radius:0!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content .kpi::after{
 content:"";position:absolute;left:0;bottom:0;width:100%;height:3px;
 background:#f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content .kpi.alert::after{
 background:#d83b3b!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content .kpi-label{
 position:absolute!important;top:9px!important;left:13px!important;right:10px!important;
 z-index:1!important;color:#18181a!important;font-size:10px!important;
 font-weight:900!important;letter-spacing:.045em!important;line-height:1.25!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content .kpi-value{
 margin-top:0!important;color:#f6f6f8!important;
 font-size:clamp(22px,2.2vw,32px)!important;font-weight:900!important
}
body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content .kpi-note{
 color:#dadadd!important;opacity:1!important
}
/* Dashboard widgets get the SAME silver-cap / black-body KPI treatment. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-kpi{
 position:relative!important;min-height:117px!important;overflow:hidden!important;
 padding:46px 13px 14px!important;
 background:repeating-linear-gradient(135deg,rgba(255,255,255,.02) 0 1px,transparent 1px 5px),
 linear-gradient(110deg,#242426,#111113)!important;
 border:1px solid #8c8c90!important;border-radius:10px!important;
 box-shadow:0 7px 20px rgba(0,0,0,.3)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-kpi::before{
 content:"";position:absolute!important;left:0!important;right:0!important;top:0!important;
 bottom:auto!important;width:100%!important;height:35px!important;
 background:linear-gradient(112deg,#dadadd,#99999e 48%,#c8c8cb)!important;
 box-shadow:inset 0 1px rgba(255,255,255,.48),0 3px 7px rgba(0,0,0,.3)!important;
 border-radius:0!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-kpi::after{
 content:"";position:absolute;left:0;right:0;bottom:0;width:100%;height:3px;
 background:#f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-kpi.alert::after{
 background:#d83b3b!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-kpi-label{
 position:absolute!important;top:9px!important;left:13px!important;right:10px!important;
 z-index:1!important;font-size:10px!important;font-weight:900!important;
 color:#171719!important;letter-spacing:.035em!important;
 line-height:1.2!important;opacity:1!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-kpi-value{
 font-size:clamp(22px,2vw,31px)!important;color:#f6f6f8!important;font-weight:900!important;
 margin-top:0!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-kpi-note{
 color:#e1e1e4!important;opacity:1!important
}
/* Panel headers are visibly metallic. Existing content and controls remain. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(
 .panel-head,.dash-card-head,.dash-widget-head,.tech-department-header,
 .tech-status-head,.parts-status-group-row th,.dispatch-live-board-title,
 .dispatch-board-head,.planner-head,.creator-panel-head,.comm-detail-head
){
 background:linear-gradient(112deg,#d7d7da 0%,#a0a0a5 42%,#bdbdc2 100%)!important;
 background-image:linear-gradient(112deg,#d7d7da,#a0a0a5 42%,#bdbdc2)!important;
 border-bottom:1px solid #77777c!important;color:#151517!important;
 box-shadow:inset 0 1px rgba(255,255,255,.58),0 2px 7px rgba(0,0,0,.17)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(
 .panel-head,.dash-card-head,.dash-widget-head,.tech-department-header,
 .tech-status-head,.parts-status-group-row th,.dispatch-live-board-title,
 .dispatch-board-head,.planner-head,.creator-panel-head,.comm-detail-head
) :is(b,strong,h1,h2,h3,h4,.panel-title,.dash-card-title,.dash-widget-title,.tech-department-name,.parts-status-group-name,.comm-detail-name){
 color:#151517!important;text-shadow:none!important;font-weight:900!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(
 .panel-head,.dash-card-head,.dash-widget-head,.tech-department-header,
 .tech-status-head,.parts-status-group-row th,.dispatch-live-board-title,
 .dispatch-board-head,.planner-head,.creator-panel-head,.comm-detail-head
) :is(small,.panel-sub,.dash-card-sub,.muted){
 color:#262628!important;opacity:1!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.dash-card,.panel,.card){
 border:1px solid #85858b!important;border-radius:11px!important;
 box-shadow:0 9px 24px rgba(0,0,0,.3)!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid [data-dashboard-widget="kpi_summary"]{
 background:repeating-linear-gradient(135deg,rgba(255,255,255,.018) 0 1px,transparent 1px 5px),
 linear-gradient(120deg,#232326,#101012)!important
}
/* The workflow remains in its departments and statuses, with crisp silver bars. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content .service-status-grouped-table .service-status-category-row>th{
 background:linear-gradient(112deg,#d6d6d9,#95959a)!important;
 color:#151517!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:#3b3b3e!important;color:#f6f6f8!important;
 box-shadow:none!important;border-left:3px solid transparent!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .service-status-category-head{
 background:linear-gradient(110deg,#d3d3d6,#949499)!important;
 color:#141416!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .service-status-category-head :is(h3,b,strong){
 color:#141416!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.role-category-panel,.tech-department,.parts-panel){
 border-color:#74747a!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .role-category-page>.role-category-kpis{
 background:repeating-linear-gradient(135deg,rgba(255,255,255,.02) 0 1px,transparent 1px 5px),
 linear-gradient(110deg,#262628,#111113)!important;
 border:1px solid #77777c!important
}
body.sme-premium-ui.sme-route-work:not(.customer-portal-mode) .app .content .role-category-page>.role-category-kpis{
 border:2px solid #f26a21!important
}
/* Only one orange. Critical red is separate from normal workflow semantics. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-bar-fill,
body.sme-premium-ui:not(.customer-portal-mode) .app .content .metric-row .bar>i{
 background:#f26a21!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .badge.alert,
body.sme-premium-ui:not(.customer-portal-mode) .app .content .badge.danger{
 background:#7b2629!important;border-color:#d83b3b!important;color:#fff!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content .comm-thread.active{
 background:#39393c!important;box-shadow:inset 4px 0 #f26a21!important
}
/* Precision focus state with no second orange border on active cards. */
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.btn-primary,.pill-btn.active){
 background:#f26a21!important;background-image:none!important;
 border-color:#f26a21!important;color:#151517!important
}
body.sme-premium-ui:not(.customer-portal-mode) .app .content :is(.btn-primary,.pill-btn.active):focus-visible{
 outline:2px solid #f6f6f8!important;outline-offset:2px!important
}
@media(max-width:760px){
 body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head{
  padding:12px 13px!important;border-radius:9px!important
 }
 body.sme-premium-ui:not(.customer-portal-mode) .app .content .page-head .title::before{
  width:5px;margin-right:8px
 }
 body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content .kpi,
 body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-kpi{
  min-height:106px!important;padding:43px 10px 12px!important
 }
 body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content .kpi-label,
 body.sme-premium-ui:not(.customer-portal-mode) .app .content .dashboard-grid .dash-kpi-label{
  left:10px!important;font-size:9px!important
 }
}
@media(prefers-reduced-motion:reduce){
 body.sme-premium-ui:not(.customer-portal-mode):not(.command-wallboard) .app .content :is(.kpi,.dash-kpi,.dash-card,.panel){
  transition:none!important
 }
}
