/* Visão clara GestMan365: cabeçalho de marca, navegação lateral e dados reais. */
/* Validação da O.S.: destaque visível também no tema claro. */
html#gm-premium body.theme-light #orderForm .field[aria-invalid="true"],
html#gm-premium body.theme-light #orderForm #orderExecutorField.is-invalid {
  border-color:#dc2626 !important;
  box-shadow:0 0 0 3px rgba(220,38,38,.18) !important;
}
html#gm-premium body.theme-light #orderForm .field-error:not([hidden]) {
  color:#b91c1c !important;
}
/* Ações da abertura de O.S. acompanham o fim do formulário, sem cobrir campos ao rolar. */
html#gm-premium body #genericBody #orderForm .os-create-actions {
  position:static !important;
  bottom:auto !important;
  z-index:auto !important;
  margin:4px 0 0 !important;
  padding:14px 0 0 !important;
  border-top:1px solid #d6e2ed !important;
  background:transparent !important;
  box-shadow:none !important;
}
/* O.S.: os executantes seguem a mesma superfície clara dos demais campos. */
html#gm-premium body.theme-light .os-simple-form .order-executor-field {
  background:#f8fbff !important;
  border-color:#cbd9e8 !important;
  color:#17324f !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-chip {
  background:#eaf3ff !important;
  border-color:#91bcea !important;
  color:#123553 !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-chip strong,
html#gm-premium body.theme-light .os-simple-form .order-executor-chip small {
  color:#123553 !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-chip.is-historical {
  background:#f1f4f8 !important;
  border-color:#c9d2dc !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-chip button {
  background:#fff !important;
  border:1px solid #9db9d8 !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-chip button::before,
html#gm-premium body.theme-light .os-simple-form .order-executor-chip button::after {
  background:#28577f !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-option {
  background:#fff !important;
  border-color:#cbd9e8 !important;
  color:#17324f !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-option:hover,
html#gm-premium body.theme-light .os-simple-form .order-executor-option.is-selected {
  background:#eaf3ff !important;
  border-color:#3382d5 !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-option strong,
html#gm-premium body.theme-light .os-simple-form .order-executor-option small,
html#gm-premium body.theme-light .os-simple-form .order-executor-head span {
  color:#31516f !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-placeholder,
html#gm-premium body.theme-light .os-simple-form .order-executor-empty {
  color:#4b6580 !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-empty {
  background:#fff !important;
  border-color:#cbd9e8 !important;
}
html#gm-premium body.theme-light .os-simple-form .order-executor-empty strong {
  color:#17324f !important;
}
body.theme-light .os-priority-chip.priority-urgent {
  color:#991b1b !important;
  background:#fee2e2 !important;
  border-color:#ef9a9a !important;
}

/* Login: the inputs reserve their icon gutter directly in the form markup. */
html#gm-premium body .auth-screen #authLoginForm .auth-input-wrap .auth-field-icon {
  left:17px !important;
  width:21px !important;
  height:21px !important;
}
html#gm-premium body .auth-screen #authLoginForm .auth-input-wrap input.field::placeholder {
  text-align:left !important;
}

/* Login footer: four readable, balanced service tiles. */
html#gm-premium body .auth-reference-footer {
  width:min(1290px,calc(100% - 48px)) !important;
  gap:8px !important;
  padding:8px !important;
  border:1px solid rgba(145,185,227,.28) !important;
  border-radius:16px !important;
  background:rgba(7,24,44,.86) !important;
  box-shadow:0 16px 38px rgba(0,7,18,.22) !important;
  backdrop-filter:blur(10px);
}
html#gm-premium body .auth-reference-footer .auth-footer-item {
  justify-content:flex-start !important;
  gap:12px !important;
  min-height:76px !important;
  padding:12px 14px !important;
  border:1px solid rgba(152,190,226,.16) !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.045) !important;
}
html#gm-premium body .auth-reference-footer .auth-footer-icon {
  flex:0 0 38px !important;
  width:38px !important;
  height:38px !important;
  border:1px solid rgba(97,176,243,.25) !important;
  border-radius:9px !important;
  background:rgba(29,140,255,.12) !important;
  color:#8ac9ff !important;
  box-shadow:none !important;
}
html#gm-premium body .auth-reference-footer .auth-footer-icon svg {
  width:23px !important;
  height:23px !important;
}
html#gm-premium body .auth-reference-footer .auth-footer-copy {
  min-width:0 !important;
  color:#b9cbe0 !important;
  font-size:12px !important;
  line-height:1.35 !important;
  overflow-wrap:anywhere !important;
}
html#gm-premium body .auth-reference-footer .auth-footer-copy strong {
  margin-bottom:3px !important;
  color:#f3f8ff !important;
  font-size:13px !important;
  font-weight:700 !important;
  line-height:1.3 !important;
  white-space:normal !important;
}
@media(max-width:980px) {
  html#gm-premium body .auth-reference-footer { width:min(760px,calc(100% - 32px)) !important; }
}
@media(max-width:768px) {
  html#gm-premium body .auth-reference-footer { display:none !important; }
}
body.theme-light .os-priority-chip.priority-critical {
  color:#6b21a8 !important;
  background:#f3e8ff !important;
  border-color:#d8b4fe !important;
}
body.theme-light .os-priority-chip.priority-high {
  color:#9a3412 !important;
  background:#ffedd5 !important;
  border-color:#fdba74 !important;
}
body.theme-light .os-priority-chip.priority-medium {
  color:#854d0e !important;
  background:#fef3c7 !important;
  border-color:#f4c96b !important;
}
body.theme-light .os-priority-chip.priority-low {
  color:#166534 !important;
  background:#dcfce7 !important;
  border-color:#86d7a8 !important;
}
.os-person-cell .os-person-identity {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:100%;
  text-align:center;
}
.os-person-cell .os-person-identity strong { margin:0; line-height:1.2; }
.os-person-cell .os-person-avatar {
  position:relative;
  display:inline-grid;
  place-items:center;
  overflow:hidden;
  width:26px;
  height:26px;
  min-width:26px;
  max-width:26px;
  min-height:26px;
  max-height:26px;
  flex:0 0 26px;
  margin:0;
}
.os-person-cell .os-person-avatar img {
  position:absolute;
  inset:0;
  display:block;
  width:26px;
  height:26px;
  max-width:26px;
  max-height:26px;
  border-radius:50%;
  object-fit:cover;
}
.theme-light .order-execution-cta {
  color:#1c3047 !important;
  background:#ffffff !important;
  border-color:#c9d8e7 !important;
  border-left-color:#16a34a !important;
  box-shadow:0 4px 14px rgba(31,55,81,.10) !important;
}
.theme-light .order-execution-cta.is-running { border-left-color:#1b61d6 !important; }
.theme-light .order-execution-cta.is-paused { border-left-color:#b8660a !important; }
.theme-light .order-execution-cta.is-closed { border-left-color:#64748b !important; box-shadow:none !important; }
.theme-light .order-execution-cta .order-execution-icon {
  color:#1764a9 !important;
  background:#eaf4ff !important;
  border-color:#bdd8ee !important;
}
.theme-light .order-execution-cta .order-execution-copy small { color:#376381 !important; }
.theme-light .order-execution-cta .order-execution-copy strong { color:#172b43 !important; }
.theme-light .order-execution-cta .order-execution-copy span { color:#50647a !important; }
.theme-light .tag.status-overdue,
.theme-light .badge.status-overdue,
.theme-light .pill.status-overdue {
  color:#9f1d29 !important;
  background:#fff0f1 !important;
  border-color:#efadb3 !important;
}
.theme-light .tag.status-cancelled,
.theme-light .badge.status-cancelled,
.theme-light .pill.status-cancelled {
  color:#9f1d29 !important;
  background:#fff0f1 !important;
  border-color:#efadb3 !important;
}
.reference-topbar-logo,
.gm-dashboard-breadcrumb { display:none; }

body.theme-light:not(.auth-required):not(.auth-loading):not(.panel-mode) {
  background:#f4f6fa !important;
}
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar {
  color:#f4f7ff !important;
  background:#172a4b !important;
  background-image:none !important;
  border-bottom:1px solid #334c71 !important;
  box-shadow:0 2px 8px rgba(15,32,61,.18) !important;
}
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar::before,
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar::after {
  display:none !important;
}
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar-logo {
  width:130px;
  height:38px;
  display:block;
  object-fit:contain;
  object-position:left center;
}
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar-left {
  min-width:0;
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
}
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar :is(
  .reference-topbar-heading > strong,
  #topbarViewTitle,
  .reference-user-copy strong,
  .system-theme-toggle .theme-label,
  .header-breadcrumb,
  .header-breadcrumb > span:first-child,
  .header-breadcrumb > span:last-child,
  .header-breadcrumb > i,
  .reference-user-copy small
) { color:#f4f7ff !important; }
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar :is(
  .topbar-menu-btn,
  .reference-icon-button,
  .reference-notification,
  .reference-help,
  .system-theme-toggle,
  .reference-header-user,
  .header-context-trigger,
  .reference-topbar-search
) {
  color:#e8f2ff !important;
  background:#213858 !important;
  border-color:#415b7e !important;
  box-shadow:none !important;
}
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar :is(
  .topbar-menu-btn,
  .reference-icon-button,
  .reference-notification,
  .reference-help,
  .system-theme-toggle,
  .reference-header-user,
  .header-context-trigger
):is(:hover,:focus-visible) {
  color:#fff !important;
  background:#2d4e75 !important;
  border-color:#84b5e8 !important;
}
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar :is([data-header-icon],.reference-user-chevron) { color:#d6eaff !important; }
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar .reference-header-separator { background:#536b8b !important; }
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar-search .searchbar {
  color:#fff !important;
  background:transparent !important;
}
body.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar-search .searchbar::placeholder { color:#c4d3e6 !important; }

@media (min-width:901px) {
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading):not(.panel-mode) {
    --gm-header-height:56px !important;
    --gm-module-nav-height:0px !important;
    --gm-app-top-offset:56px !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) .reference-topbar {
    height:56px !important;
    min-height:56px !important;
    padding:0 16px !important;
    pointer-events:auto !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) .reference-topbar-heading,
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) .reference-topbar-search { display:none !important; }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) .reference-topbar-actions {
    position:static !important;
    width:auto !important;
    height:48px !important;
    padding:0 !important;
    border:0 !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation {
    position:fixed !important;
    inset:56px auto 0 0 !important;
    z-index:68 !important;
    width:60px !important;
    min-width:60px !important;
    max-width:60px !important;
    height:calc(100dvh - 56px) !important;
    min-height:0 !important;
    max-height:none !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    color:#40516b !important;
    background:#f8f9fd !important;
    border:0 !important;
    border-right:1px solid #d8deea !important;
    box-shadow:2px 0 10px rgba(27,44,72,.06) !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation .industrial-sidebar-brand,
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation .industrial-sidebar-footer { display:none !important; }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation .industrial-sidebar-scroll {
    width:60px !important;
    min-width:60px !important;
    height:100% !important;
    min-height:0 !important;
    margin:0 !important;
    padding:10px 5px !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    flex-wrap:nowrap !important;
    gap:5px !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    color:#40516b !important;
    background:transparent !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation .nav-pinned,
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation .gm-module-nav-group {
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    gap:5px !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation .nav-group {
    width:48px !important;
    height:46px !important;
    min-height:46px !important;
    flex:0 0 46px !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation :is(.nav-pinned .tab,.nav-group > summary) {
    width:48px !important;
    min-width:48px !important;
    max-width:48px !important;
    height:46px !important;
    min-height:46px !important;
    padding:0 !important;
    display:grid !important;
    grid-template-columns:1fr !important;
    place-items:center !important;
    color:#526783 !important;
    background:transparent !important;
    border:1px solid transparent !important;
    border-radius:7px !important;
    box-shadow:none !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation :is(.nav-pinned .tab,.nav-group > summary) > span:nth-child(2),
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation .nav-group > summary > i { display:none !important; }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation :is(.nav-pinned .tab .tab-icon,.nav-group > summary .nav-group-icon) {
    width:30px !important;
    height:30px !important;
    display:grid !important;
    place-items:center !important;
    color:#425d83 !important;
    background:transparent !important;
    border:0 !important;
    box-shadow:none !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation :is(.nav-pinned .tab .tab-icon,.nav-group > summary .nav-group-icon) .gm-icon {
    width:22px !important;
    height:22px !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation :is(.nav-pinned .tab.active,.nav-group[open] > summary,.nav-group.contains-active > summary) {
    color:#194d86 !important;
    background:#e7eef9 !important;
    border-color:#c7d8ef !important;
    box-shadow:inset 3px 0 #1a67b4 !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading) #mainNavigation .nav-group-items {
    position:fixed !important;
    top:clamp(64px,var(--gm-nav-dropdown-top,64px),calc(100dvh - 280px)) !important;
    left:64px !important;
    right:auto !important;
    width:292px !important;
    max-width:calc(100vw - 74px) !important;
    max-height:min(540px,calc(100dvh - 70px)) !important;
    color:#24374f !important;
    background:#fff !important;
    border:1px solid #d2dce8 !important;
    box-shadow:0 18px 36px rgba(23,42,71,.18) !important;
  }
  body.theme-light.gm-top-navigation:not(.auth-required):not(.auth-loading):not(.panel-mode) main.workspace {
    position:fixed !important;
    inset:56px 0 0 60px !important;
    width:calc(100% - 60px) !important;
    height:calc(100dvh - 56px) !important;
    max-height:calc(100dvh - 56px) !important;
    margin:0 !important;
    padding:0 !important;
    background:#f4f6fa !important;
  }
}

/* Mapa Industrial: resumo flutuante e atalhos próprios do equipamento. */
.industrial-machine-preview {
  position:fixed;
  z-index:180;
  display:grid;
  gap:5px;
  width:min(278px,calc(100vw - 24px));
  padding:13px 14px;
  border:1px solid #bfd4e8;
  border-radius:12px;
  background:#fff;
  color:#26415b;
  box-shadow:0 16px 38px rgba(20,42,70,.2);
  pointer-events:none;
  font-size:12px;
}
.industrial-machine-preview small { color:#1267bc; font-size:10px; font-weight:800; letter-spacing:.1em; }
.industrial-machine-preview strong { color:#153553; font-size:13px; line-height:1.3; }
.industrial-machine-preview > span,.industrial-machine-preview p { color:#60758c; margin:0; }
.industrial-machine-preview > div { display:flex; gap:6px; flex-wrap:wrap; margin:3px 0; }
.industrial-machine-preview > div span { padding:4px 7px; border-radius:999px; background:#edf6ff; color:#195e9e; font-size:11px; font-weight:700; }
#machineMenu.context-menu { width:280px !important; max-width:calc(100vw - 24px) !important; padding:7px !important; border-radius:13px !important; }
#machineMenu .machine-menu-head { display:grid; gap:3px; padding:9px 11px 11px; margin-bottom:4px; border-bottom:1px solid #dbe6ef; }
#machineMenu .machine-menu-head small { color:#1769bd !important; font-size:10px; font-weight:800; letter-spacing:.09em; }
#machineMenu .machine-menu-head strong { color:#153553 !important; font-size:13px; line-height:1.25; }
#machineMenu .machine-menu-head > span { color:#60758c !important; font-size:11px; }
#machineMenu .machine-menu-item { display:grid !important; grid-template-columns:26px minmax(0,1fr) auto !important; align-items:center !important; gap:9px !important; min-height:40px !important; padding:7px 9px !important; text-align:left !important; color:#25435f !important; border-radius:8px !important; }
#machineMenu .machine-menu-item:hover,#machineMenu .machine-menu-item:focus-visible { color:#0b5eb0 !important; background:#eaf4ff !important; }
#machineMenu .machine-menu-item > span:first-child { display:grid !important; place-items:center !important; width:26px !important; height:26px !important; border-radius:7px !important; background:#e7f1fb !important; color:#1769bd !important; font-size:15px !important; }
#machineMenu .machine-menu-item > b { min-width:21px; padding:3px 5px; border-radius:999px; background:#dbeafe; color:#135da5; text-align:center; font-size:10px; }

/* O.S.: confirmação visível apenas depois do retorno positivo do servidor. */
#orderForm .os-submit-status { grid-column:1/-1; padding:11px 13px; border:1px solid #b9d1eb; border-radius:9px; background:#edf6ff; color:#164d85; font-size:13px; line-height:1.4; }
#orderForm .os-submit-status[hidden] { display:none !important; }
#orderForm .os-submit-status[data-kind="pending"]::before { content:""; display:inline-block; width:12px; height:12px; margin-right:9px; border:2px solid #94bce5; border-top-color:#1466b8; border-radius:50%; vertical-align:-3px; animation:order-send-spin .8s linear infinite; }
#orderForm .os-submit-status[data-kind="warning"] { border-color:#e9c478; background:#fff8e7; color:#855209; }
#orderForm .os-submit-status[data-kind="error"] { border-color:#f0a7a7; background:#fff1f1; color:#9b2424; }
.order-sent-confirmation { position:fixed; inset:0; z-index:10000; display:grid; place-items:center; padding:18px; background:rgba(15,33,55,.46); animation:order-send-fade .25s ease-out; }
.order-sent-card { display:grid; justify-items:center; gap:10px; width:min(360px,100%); padding:32px 24px 24px; border:1px solid #bcd6ed; border-radius:18px; background:#fff; color:#17314b; text-align:center; box-shadow:0 24px 70px rgba(16,44,78,.26); animation:order-send-pop .42s cubic-bezier(.2,1.25,.3,1); }
.order-sent-mark { display:grid; place-items:center; width:68px; height:68px; margin-bottom:5px; border-radius:50%; background:#e4f8ed; color:#16834a; font-size:38px; font-weight:800; box-shadow:0 0 0 8px rgba(41,183,103,.12); animation:order-send-pulse 1.3s ease-out .3s 2; }
.order-sent-card strong { font-size:19px; }
.order-sent-card p { margin:0 0 8px; color:#55708a; font-size:13px; }
.order-sent-progress { display:block; width:100%; height:4px; overflow:hidden; border-radius:999px; background:#e4edf5; }
.order-sent-progress::before { content:""; display:block; width:100%; height:100%; border-radius:inherit; background:#1b68cf; transform-origin:left center; animation:order-send-countdown 3s linear forwards; }
.order-sent-confirmation.is-leaving { opacity:0; transition:opacity .35s ease; }
.order-sent-confirmation.is-leaving .order-sent-card { transform:translateY(-8px) scale(.96); transition:transform .35s ease; }
/* Leitor local: a imagem da câmera não é enviada ao servidor. */
.asset-qr-scanner { position:fixed; inset:0; z-index:10040; display:grid; place-items:center; padding:16px; background:rgba(7,18,33,.76); backdrop-filter:blur(5px); }
.asset-qr-scanner-card { width:min(430px,100%); overflow:hidden; border:1px solid #cbd9e8; border-radius:18px; background:#fff; color:#17314b; box-shadow:0 28px 70px rgba(0,0,0,.32); }
.asset-qr-scanner-card header { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; }
.asset-qr-scanner-card header strong { font-size:15px; }
.asset-qr-scanner-card .asset-qr-close { width:36px; height:36px; min-height:36px; border:1px solid #cbd9e8; border-radius:9px; background:#f2f6fb; color:#17314b; font-size:24px; line-height:1; cursor:pointer; }
.asset-qr-video-wrap { position:relative; aspect-ratio:1; overflow:hidden; background:#0a1727; }
.asset-qr-video-wrap video { width:100%; height:100%; object-fit:cover; }
.asset-qr-target { position:absolute; inset:20%; border:3px solid rgba(255,255,255,.92); border-radius:18px; box-shadow:0 0 0 999px rgba(0,0,0,.20),0 0 24px rgba(255,255,255,.45); pointer-events:none; }
.asset-qr-scanner-card .asset-qr-status { min-height:46px; margin:0; padding:13px 16px 5px; color:#476179; font-size:13px; line-height:1.4; text-align:center; }
.asset-qr-scanner-card .asset-qr-retry { display:block; min-height:38px; margin:8px auto 16px; padding:7px 16px; border:1px solid #b8d5ef; border-radius:9px; background:#eaf4ff; color:#165c9e; font-weight:700; cursor:pointer; }
.asset-qr-scanner-card .asset-qr-retry[hidden] { display:none !important; }
@media (max-width:600px) {
  html#gm-premium body.premium-shell .mobile-tech-greeting .mobile-tech-scan:not(.is-permission-hidden) { flex:0 0 65px !important; width:65px !important; min-height:65px !important; padding:7px 4px !important; border:1px solid #9fc4e8 !important; border-radius:14px !important; background:#eaf5ff !important; color:#1264a8 !important; box-shadow:none !important; }
  html#gm-premium body.premium-shell .mobile-tech-greeting .mobile-tech-scan svg { display:block; width:24px; height:24px; margin:auto; }
  html#gm-premium body.premium-shell .mobile-tech-greeting .mobile-tech-scan span { font-size:11px !important; font-weight:750 !important; line-height:1 !important; white-space:nowrap; }
  .asset-qr-scanner { padding:10px; }
}
@keyframes order-send-spin { to { transform:rotate(360deg); } }
@keyframes order-send-fade { from { opacity:0; } to { opacity:1; } }
@keyframes order-send-pop { from { opacity:0; transform:translateY(14px) scale(.92); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes order-send-pulse { 50% { box-shadow:0 0 0 18px rgba(41,183,103,0); } }
@keyframes order-send-countdown { to { transform:scaleX(0); } }
@media (prefers-reduced-motion:reduce) { .order-sent-confirmation,.order-sent-card,.order-sent-mark,.order-sent-progress::before,#orderForm .os-submit-status[data-kind="pending"]::before { animation:none !important; transition:none !important; } }
@media (max-width:900px) {
  html,body { touch-action:pan-x pan-y; }
  html#gm-premium body :is(#genericModal,.view,.auth-screen) :is(input,select,textarea) { font-size:16px !important; }
}
@media (max-width:600px) {
  html#gm-premium body #mobileBottomNav { display:flex !important; }
  html#gm-premium body #mobileBottomNav button:not(.is-permission-hidden) { flex:1 1 0 !important; }
}

/* Navegação de campo: cápsula deslizante e alvos de toque estáveis. */
@layer premium {
@media (max-width:600px) {
  html#gm-premium body.premium-shell:not(.auth-required):not(.auth-loading) #mobileBottomNav {
    display:flex !important;
    align-items:stretch !important;
    left:12px !important;
    right:12px !important;
    bottom:max(6px, calc(env(safe-area-inset-bottom) - 6px)) !important;
    min-height:74px !important;
    padding:5px !important;
    border:1px solid #444446 !important;
    border-radius:999px !important;
    background:#18181a !important;
    box-shadow:0 12px 32px rgba(0,0,0,.29),inset 0 1px rgba(255,255,255,.06) !important;
    backdrop-filter:blur(18px) !important;
    overflow:hidden !important;
    isolation:isolate !important;
  }
  html#gm-premium body.premium-shell:not(.auth-required):not(.auth-loading):not(.panel-mode) .workspace {
    padding-bottom:calc(106px + env(safe-area-inset-bottom)) !important;
  }
  html#gm-premium body.premium-shell #mobileBottomNav .mobile-nav-indicator {
    position:absolute !important;
    z-index:0 !important;
    top:5px !important;
    bottom:5px !important;
    left:0 !important;
    width:var(--mobile-indicator-width,0px) !important;
    border-radius:999px !important;
    background:#3a3a3d !important;
    transform:translateX(var(--mobile-indicator-x,0px)) !important;
    transition:transform .48s cubic-bezier(.22,1.25,.36,1),width .42s cubic-bezier(.22,1,.36,1),opacity .2s ease !important;
    opacity:0 !important;
    pointer-events:none !important;
  }
  html#gm-premium body.premium-shell #mobileBottomNav.indicator-ready .mobile-nav-indicator { opacity:1 !important; }
  html#gm-premium body.premium-shell #mobileBottomNav button:not(.is-permission-hidden) {
    position:relative !important;
    z-index:1 !important;
    flex:1 1 0 !important;
    min-width:0 !important;
    min-height:64px !important;
    padding:8px 2px 7px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
    gap:3px !important;
    border:0 !important;
    border-radius:999px !important;
    background:transparent !important;
    color:#e6e6e8 !important;
    box-shadow:none !important;
    touch-action:manipulation !important;
    -webkit-tap-highlight-color:transparent !important;
    transition:color .25s ease,transform .22s ease !important;
  }
  html#gm-premium body.premium-shell #mobileBottomNav button.active { color:#fff !important; background:transparent !important; }
  html#gm-premium body.premium-shell #mobileBottomNav button:active { transform:scale(.93) !important; }
  html#gm-premium body.premium-shell #mobileBottomNav button:focus-visible { outline:2px solid #8fc3ff !important; outline-offset:-3px !important; }
  html#gm-premium body.premium-shell #mobileBottomNav button i { display:grid !important; place-items:center !important; height:25px !important; color:inherit !important; transition:transform .35s cubic-bezier(.22,1.25,.36,1) !important; }
  html#gm-premium body.premium-shell #mobileBottomNav button.active i { transform:translateY(-2px) scale(1.09) !important; }
  html#gm-premium body.premium-shell #mobileBottomNav button span:not(.gm-icon) { color:inherit !important; font-size:11px !important; font-weight:650 !important; line-height:1.1 !important; white-space:nowrap !important; }
}
@media (prefers-reduced-motion:reduce) {
  html#gm-premium body.premium-shell #mobileBottomNav :is(.mobile-nav-indicator,button,button i) { transition:none !important; }
}
}

/* A O.S. acompanha o tema claro; a navegação mantém a cápsula animada sem cobrir ações. */
@layer premium {
@media (max-width:600px) {
  html#gm-premium body.premium-shell:not(.auth-required):not(.auth-loading) #mobileBottomNav {
    bottom:max(2px, calc(env(safe-area-inset-bottom) - 22px)) !important;
  }
  html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) #mobileBottomNav {
    background:#fff !important;
    border-color:#cbd8e5 !important;
    box-shadow:0 10px 28px rgba(25,51,79,.18),inset 0 1px rgba(255,255,255,.9) !important;
  }
  html#gm-premium body.premium-shell.theme-light #mobileBottomNav .mobile-nav-indicator {
    background:#e6f1fd !important;
  }
  html#gm-premium body.premium-shell.theme-light #mobileBottomNav button:not(.is-permission-hidden) {
    color:#405a76 !important;
  }
  html#gm-premium body.premium-shell.theme-light #mobileBottomNav button.active {
    color:#0c5bab !important;
  }
}
}
.os-mobile-detail-tabs { display:none; }
#genericModalBox #orderDetailForm .order-detail-savebar {
  position:static !important;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  padding:14px 0 0;
  background:#fff !important;
  border-top:1px solid #d2deea;
  box-shadow:none;
  backdrop-filter:none;
}
html#gm-premium body.premium-shell #genericModal #simpleFinishForm .finish-info-tabs {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
html#gm-premium body.premium-shell #genericModal #simpleFinishForm .finish-info-tabs button {
  width:100%;
  min-height:42px;
  padding:8px 12px;
  border:1px solid #cbd8e5 !important;
  border-radius:9px;
  background:#f5f8fc !important;
  color:#29445e !important;
  font-weight:700;
}
html#gm-premium body.premium-shell #genericModal #simpleFinishForm .finish-info-tabs button.active {
  background:#1768cf !important;
  color:#fff !important;
  border-color:#1768cf !important;
}
#simpleFinishForm .finish-info-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; min-width:0; }
#simpleFinishForm .finish-info-panel[hidden] { display:none !important; }
#simpleFinishForm button[hidden] { display:none !important; }
#simpleFinishForm .finish-info-panel > .full { grid-column:1/-1; }
#simpleFinishForm #finishRequestPanel { display:block; overflow-wrap:anywhere; }
#simpleFinishForm .finish-order-extra { display:grid; gap:4px; margin-top:8px; color:#17314b; }
#simpleFinishForm .finish-order-extra span { color:#55708a; font-size:13px; }
#simpleFinishForm .finish-order-detail-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; min-width:0; }
#simpleFinishForm .finish-order-detail-tabs button { min-height:40px; padding:8px; border:1px solid #cbd8e5; border-radius:9px; background:#f5f8fc; color:#29445e; font-weight:700; cursor:pointer; }
#simpleFinishForm .finish-order-detail-tabs button.active { border-color:#1768cf; background:#e7f1ff; color:#1258a7; }
#simpleFinishForm .finish-order-detail-panel { min-width:0; overflow-wrap:anywhere; }
#simpleFinishForm .finish-order-detail-panel[hidden] { display:none !important; }
#simpleFinishForm .finish-order-detail-panel .tab-workspace { min-width:0; }
@media (max-width:600px) {
  #simpleFinishForm .finish-order-detail-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  html#gm-premium body.premium-shell #orders .os-detail-panel.has-order {
    overflow:visible !important;
    padding-bottom:8px;
  }
  html#gm-premium body.premium-shell #orders .os-detail-actions {
    position:static !important;
  }
  #simpleFinishForm .finish-info-panel { grid-template-columns:1fr; }
  html#gm-premium body.premium-shell #orders .os-detail-tabs { display:none !important; }
  html#gm-premium body.premium-shell #orders .os-mobile-detail-tabs {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
    padding:12px;
    background:#f5f8fc;
    border-block:1px solid #d4e0eb;
  }
  html#gm-premium body.premium-shell #orders .os-mobile-detail-tabs button {
    min-width:0;
    min-height:40px;
    padding:7px 9px;
    border:1px solid #cbd8e5;
    border-radius:9px;
    background:#fff;
    color:#29445e;
    font-weight:700;
    text-align:center;
    white-space:normal;
  }
  html#gm-premium body.premium-shell #orders .os-mobile-detail-tabs button:active {
    background:#e6f1fd;
    transform:scale(.98);
  }
  html#gm-premium body.premium-shell.theme-light #orders .os-detail-panel {
    background:#fff !important;
  }
  html#gm-premium body.premium-shell.theme-light #orders .os-detail-tabs {
    background:#f5f8fc !important;
    border-color:#d4e0eb !important;
  }
  html#gm-premium body.premium-shell.theme-light #orders .os-detail-tabs button {
    color:#526981 !important;
  }
  html#gm-premium body.premium-shell.theme-light #orders .os-detail-tabs button.active {
    color:#0b67c2 !important;
    box-shadow:inset 0 -2px #0b67c2 !important;
  }
  html#gm-premium body.premium-shell.theme-light #orders .os-detail-actions,
  html#gm-premium body.premium-shell.theme-light #orders .mobile-execution-shortcuts {
    background:#fff !important;
    border-color:#d4e0eb !important;
  }
  html#gm-premium body.premium-shell.theme-light #orders .mobile-execution-shortcuts button {
    color:#285781 !important;
    background:#f5f9fd !important;
    border-color:#cbd8e5 !important;
  }
}
/* O cartão de acesso deve caber inteiro na viewport, sem uma segunda altura de tela. */
@media (max-width:600px) {
  html#gm-premium body.premium-shell .auth-screen {
    width:100% !important;
    height:100dvh !important;
    min-height:0 !important;
    padding:calc(8px + env(safe-area-inset-top)) 10px calc(8px + env(safe-area-inset-bottom)) !important;
    box-sizing:border-box !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:hidden !important;
    overscroll-behavior:none !important;
  }
  html#gm-premium body.premium-shell .auth-screen .auth-shell,
  html#gm-premium body.premium-shell .auth-screen .auth-card,
  html#gm-premium body.premium-shell .auth-screen .auth-main {
    height:auto !important;
    min-height:0 !important;
    max-height:100% !important;
    box-sizing:border-box !important;
  }
  html#gm-premium body.premium-shell .auth-screen .auth-shell { width:min(100%,540px) !important; margin:auto !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-card { overflow:hidden !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-main { padding:clamp(16px,2.5dvh,28px) 20px !important; }
}
@media (max-width:600px) and (max-height:700px) {
  html#gm-premium body.premium-shell .auth-screen .auth-main { padding:12px 16px !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-card-logo-wrap { margin-bottom:6px !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-card-logo-wrap .auth-logo-img { width:185px !important; max-height:49px !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-main h2 { margin-bottom:3px !important; font-size:22px !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-main>.muted { margin-bottom:8px !important; font-size:12px !important; line-height:1.25 !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-login-form>label:not(.auth-remember) { margin-bottom:6px !important; font-size:13px !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-input-wrap { margin-top:4px !important; }
  html#gm-premium body.premium-shell .auth-screen #authLoginForm .auth-input-wrap .field { height:40px !important; min-height:40px !important; line-height:40px !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-remember { margin-bottom:6px !important; font-size:12px !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-submit { height:42px !important; min-height:42px !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-forgot { margin-top:6px !important; font-size:12px !important; }
  html#gm-premium body.premium-shell .auth-screen .auth-company-request-link { margin-top:6px !important; font-size:11px !important; }
}
@media (max-width:600px) and (max-height:560px) {
  html#gm-premium body.premium-shell .auth-screen .auth-main>.muted { display:none !important; }
}

body.theme-light #dashboard .industrial-dashboard-shell {
  max-width:none !important;
  gap:16px !important;
  padding:18px clamp(12px,2vw,30px) 32px !important;
}
body.theme-light #dashboard .gm-dashboard-breadcrumb {
  min-height:34px;
  display:flex;
  align-items:center;
  gap:9px;
  color:#8390a3;
  font-size:12px;
}
body.theme-light #dashboard .gm-dashboard-breadcrumb strong { color:#314660; font-weight:650; }
body.theme-light #dashboard .gm-dashboard-breadcrumb button {
  min-height:32px;
  margin-left:auto;
  padding:5px 10px;
  color:#2c587f;
  background:#fff;
  border:1px solid #d4dde9;
  border-radius:6px;
  font-size:11px;
  font-weight:650;
  cursor:pointer;
}
body.theme-light #dashboard .gm-dashboard-breadcrumb button:hover { border-color:#7eaad4; background:#f0f6fd; }
@media (min-width:901px) {
  body.theme-light #dashboard .industrial-dashboard-heading { display:none !important; }
}
body.theme-light #dashboard .industrial-dashboard-widget-grid { gap:16px !important; }
body.theme-light #dashboard .professional-kpi-widget {
  order:0;
  padding:18px !important;
  background:#fff !important;
  border:1px solid #d8dee8 !important;
  border-radius:5px !important;
  box-shadow:0 3px 12px rgba(30,47,72,.09) !important;
}
body.theme-light #dashboard .professional-kpi-strip {
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:2px !important;
  background:#d9e0e9 !important;
  border:1px solid #d9e0e9 !important;
  border-radius:4px !important;
  overflow:hidden !important;
}
body.theme-light #dashboard .professional-kpi-card {
  min-height:76px !important;
  height:76px !important;
  padding:10px 12px !important;
  display:block !important;
  color:#1d283a !important;
  background:#fff !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  transform:none !important;
}
body.theme-light #dashboard .professional-kpi-card:hover { background:#f2f7fd !important; }
body.theme-light #dashboard .professional-kpi-card::before,
body.theme-light #dashboard .professional-kpi-icon,
body.theme-light #dashboard .professional-kpi-card canvas { display:none !important; }
body.theme-light #dashboard .professional-kpi-copy span {
  color:#69788a !important;
  font-size:10px !important;
  font-weight:550 !important;
  letter-spacing:0 !important;
}
body.theme-light #dashboard .professional-kpi-copy strong {
  color:#202c3b !important;
  font-size:19px !important;
  font-weight:700 !important;
}
body.theme-light #dashboard .professional-kpi-copy small { color:#7a899a !important; font-size:10px !important; }
body.theme-light #dashboard .maintenance-trend-card { order:1; grid-column:1/-1 !important; }
body.theme-light #dashboard .maintenance-backlog-card { order:2; grid-column:span 8 !important; }
body.theme-light #dashboard .asset-health-card { order:3; grid-column:span 4 !important; min-height:0 !important; align-self:start !important; }
body.theme-light #dashboard .asset-health-content { padding:14px 18px 16px; }
body.theme-light #dashboard .asset-health-overview {
  display:grid;
  grid-template-columns:102px minmax(0,1fr);
  align-items:center;
  gap:18px;
  min-height:114px;
}
body.theme-light #dashboard .asset-health-donut {
  width:98px;
  height:98px;
  box-shadow:none;
}
body.theme-light #dashboard .asset-health-donut::after { inset:16px; }
body.theme-light #dashboard .asset-health-donut strong { font-size:24px; }
body.theme-light #dashboard .asset-health-donut span { font-size:10px; }
body.theme-light #dashboard .asset-health-summary { display:grid; gap:5px; min-width:0; }
body.theme-light #dashboard .asset-health-summary-label {
  color:#58708a;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}
body.theme-light #dashboard .asset-health-summary > strong {
  color:#172b43;
  font-size:27px;
  line-height:1.05;
}
body.theme-light #dashboard .asset-health-summary > strong span {
  display:block;
  color:#526981;
  font-size:13px;
  font-weight:700;
}
body.theme-light #dashboard .asset-health-summary small { color:#526981; font-size:11px; line-height:1.35; }
body.theme-light #dashboard .asset-health-breakdown { display:grid; gap:9px; margin-top:13px; }
body.theme-light #dashboard .asset-health-breakdown-row { min-width:0; }
body.theme-light #dashboard .asset-health-breakdown-head {
  display:grid;
  grid-template-columns:minmax(0,1fr) 30px 35px;
  align-items:center;
  gap:6px;
  margin-bottom:4px;
  font-size:11px;
}
body.theme-light #dashboard .asset-health-breakdown-head > span { display:flex; align-items:center; gap:6px; color:#344e68; }
body.theme-light #dashboard .asset-health-breakdown-head > span i {
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--health-color);
}
body.theme-light #dashboard .asset-health-breakdown-head strong { color:#172b43; text-align:right; }
body.theme-light #dashboard .asset-health-breakdown-head small { color:#526981; text-align:right; }
body.theme-light #dashboard .asset-health-breakdown-track {
  height:6px;
  overflow:hidden;
  border-radius:99px;
  background:#e9eef4;
}
body.theme-light #dashboard .asset-health-breakdown-track i {
  display:block;
  width:var(--health-width);
  height:100%;
  border-radius:inherit;
  background:var(--health-color);
}
body.theme-light #dashboard .asset-health-footer { margin-top:15px; padding-top:12px; border-top-color:#e4e9f0; }
@media (max-width:1250px) {
  body.theme-light #dashboard :is(.maintenance-backlog-card,.asset-health-card) { grid-column:1/-1 !important; }
}
@media (max-width:520px) {
  body.theme-light #dashboard .asset-health-overview { grid-template-columns:86px minmax(0,1fr); gap:12px; }
  body.theme-light #dashboard .asset-health-donut { width:84px; height:84px; }
  body.theme-light #dashboard .asset-health-donut::after { inset:14px; }
}
body.theme-light #dashboard .industrial-chart-card { order:4; grid-column:1/-1 !important; }
body.theme-light #dashboard .industrial-chart-card .chart-legend strong {
  color:#17324b;
  font-size:12px;
  font-weight:800;
}
body.theme-light #dashboard .industrial-stacked-chart {
  overflow-x:auto;
  gap:4px;
  padding:16px 12px 10px;
}
body.theme-light #dashboard .stacked-day {
  min-width:76px;
  grid-template-rows:minmax(0,1fr) auto;
  gap:8px;
}
body.theme-light #dashboard .stacked-bars { gap:3px; }
body.theme-light #dashboard .stacked-series {
  position:relative;
  display:block;
  width:26px;
  height:100%;
  flex:0 1 26px;
}
body.theme-light #dashboard .stacked-series .stacked-column {
  position:absolute;
  left:50%;
  bottom:0;
  display:block;
  width:10px;
  height:var(--bar-height);
  min-height:0;
  transform:translateX(-50%);
}
body.theme-light #dashboard .stacked-series .stacked-value {
  position:absolute;
  left:50%;
  bottom:calc(var(--bar-height) + 4px);
  transform:translateX(-50%);
  color:#17324b;
  font-size:11px;
  font-weight:800;
  line-height:1;
}
body.theme-light #dashboard .stacked-day-footer { display:grid; gap:5px; justify-items:center; }
body.theme-light #dashboard .stacked-day-footer > span { color:#526981; font-size:11px; white-space:nowrap; }
body.theme-light #dashboard .stacked-counts { display:flex; align-items:center; justify-content:center; gap:4px; }
body.theme-light #dashboard .stacked-counts span {
  display:grid;
  place-items:center;
  min-width:20px;
  height:18px;
  border-radius:4px;
  font-size:10px;
  font-weight:800;
}
body.theme-light #dashboard .stacked-counts .count-opened { color:#145ba8; background:#e7f2ff; }
body.theme-light #dashboard .stacked-counts .count-closed { color:#166534; background:#dcfce7; }
body.theme-light #dashboard .stacked-counts .count-late { color:#991b1b; background:#fee2e2; }
body.theme-light #dashboard .dashboard-operational-summary { order:5; grid-column:1/-1 !important; }
body.theme-light #dashboard :is(.industrial-card,.dashboard-widget:not(.professional-kpi-widget)) {
  background:#fff !important;
  border:1px solid #d9e0e9 !important;
  border-radius:5px !important;
  box-shadow:0 3px 12px rgba(30,47,72,.09) !important;
}
body.theme-light #dashboard .industrial-card-head { border-bottom-color:#e4e9f0 !important; }
body.theme-light #dashboard .industrial-card-head h2 { color:#25364c !important; }

@media (max-width:900px) {
  body.theme-light #dashboard .industrial-dashboard-shell { padding:12px !important; }
  body.theme-light #dashboard .professional-kpi-strip { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  body.theme-light #dashboard .professional-kpi-card { min-height:80px !important; height:80px !important; }
  body.theme-light #dashboard :is(.maintenance-backlog-card,.asset-health-card) { grid-column:1/-1 !important; }
}
@media (max-width:600px) {
  body.theme-light #dashboard .gm-dashboard-breadcrumb { display:none; }
}

/* O shell premium usa sua própria camada de estilos importantes. */
@layer premium {
  html#gm-premium body.premium-shell.theme-light #map .map-zone,
  html#gm-premium body.premium-shell.theme-light #map .map-zone:hover {
    box-shadow:none !important;
  }
  html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar {
    background:#172a4b !important;
    border-bottom:1px solid #334c71 !important;
    box-shadow:0 2px 8px rgba(15,32,61,.18) !important;
  }
  html#gm-premium body.premium-shell.theme-light .reference-topbar-logo { display:block !important; }
  html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar .reference-header-user {
    display:flex !important;
    flex:0 1 auto !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:9px !important;
    width:auto !important;
    min-width:0 !important;
    max-width:230px !important;
    height:40px !important;
    min-height:40px !important;
    padding:4px 10px 4px 5px !important;
    overflow:hidden !important;
  }
  html#gm-premium body.premium-shell.theme-light .reference-header-user .reference-user-avatar {
    display:grid !important;
    place-items:center !important;
    flex:0 0 30px !important;
    width:30px !important;
    min-width:30px !important;
    max-width:30px !important;
    height:30px !important;
    min-height:30px !important;
    max-height:30px !important;
    overflow:hidden !important;
    border-radius:50% !important;
    aspect-ratio:1 !important;
  }
  html#gm-premium body.premium-shell.theme-light .reference-header-user .reference-user-avatar img {
    display:block !important;
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    border-radius:50% !important;
  }
  html#gm-premium body.premium-shell.theme-light .reference-header-user .reference-user-copy {
    display:block !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    overflow:hidden !important;
  }
  html#gm-premium body.premium-shell.theme-light .reference-header-user .reference-user-copy strong {
    display:block !important;
    width:100% !important;
    max-width:none !important;
    color:#f4f7ff !important;
    font-size:12px !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  @media (min-width:901px) {
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar .reference-header-user {
      flex:0 0 188px !important;
      width:188px !important;
      min-width:188px !important;
      max-width:188px !important;
    }
  }
  html#gm-premium body.premium-shell.theme-light .reference-topbar :is(.reference-icon-button,.system-theme-toggle,.reference-header-user) {
    color:#f4f7ff !important;
    background:#213858 !important;
    border-color:#415b7e !important;
  }
  html#gm-premium body.premium-shell.theme-light .reference-topbar .theme-label { color:#f4f7ff !important; }
  @media (min-width:901px) {
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading):not(.panel-mode) {
      --p-nav:60px;
      --p-top:56px;
    }
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar {
      inset:0 0 auto 0 !important;
      height:56px !important;
      min-height:56px !important;
      padding:0 16px !important;
    }
    html#gm-premium body.premium-shell.theme-light .reference-topbar-heading,
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar .topbar-menu-btn { display:none !important; }
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) #mainNavigation {
      inset:56px auto 0 0 !important;
      width:60px !important;
      max-width:60px !important;
      height:calc(100dvh - 56px) !important;
      background:#f8f9fd !important;
      border-right:1px solid #d8deea !important;
    }
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) #mainNavigation .industrial-sidebar-brand,
    html#gm-premium body.premium-shell.theme-light #mainNavigation .premium-nav-search,
    html#gm-premium body.premium-shell.theme-light #mainNavigation .premium-sidebar-footer,
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-section-label { display:none !important; }
    html#gm-premium body.premium-shell.theme-light #mainNavigation .industrial-sidebar-scroll {
      width:60px !important;
      padding:10px 5px !important;
      display:flex !important;
      flex-direction:column !important;
      align-items:center !important;
      overflow-y:auto !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-pinned,
    html#gm-premium body.premium-shell.theme-light #mainNavigation .gm-module-nav-group {
      width:100% !important;
      display:flex !important;
      flex-direction:column !important;
      align-items:center !important;
      gap:5px !important;
      padding:0 !important;
      margin:0 !important;
      border:0 !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-group {
      width:48px !important;
      height:46px !important;
      min-height:46px !important;
      margin:0 !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation :is(.nav-pinned .tab,.nav-group>summary) {
      width:48px !important;
      min-width:48px !important;
      max-width:48px !important;
      height:46px !important;
      min-height:46px !important;
      padding:0 !important;
      display:grid !important;
      grid-template-columns:1fr !important;
      place-items:center !important;
      color:#526783 !important;
      border-radius:7px !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation :is(.nav-pinned .tab,.nav-group>summary)>span:nth-child(2),
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-group>summary>i { display:none !important; }
    html#gm-premium body.premium-shell.theme-light #mainNavigation :is(.tab-icon,.nav-group-icon) {
      width:28px !important;
      height:28px !important;
      min-width:28px !important;
      flex-basis:28px !important;
      display:grid !important;
      place-items:center !important;
      color:#425d83 !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation :is(.nav-pinned .tab.active,.nav-group[open]>summary,.nav-group.contains-active>summary) {
      color:#194d86 !important;
      background:#e7eef9 !important;
      box-shadow:inset 3px 0 #1a67b4 !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-group-items {
      position:fixed !important;
      inset:clamp(64px,var(--gm-nav-dropdown-top,64px),calc(100dvh - 280px)) auto auto 64px !important;
      width:292px !important;
      max-width:calc(100vw - 74px) !important;
      max-height:min(540px,calc(100dvh - 70px)) !important;
      margin:0 !important;
      padding:8px !important;
      overflow-y:auto !important;
      color:#24374f !important;
      background:#fff !important;
      border:1px solid #d2dce8 !important;
      border-radius:8px !important;
      box-shadow:0 18px 36px rgba(23,42,71,.18) !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-group-items .tab {
      color:#40516b !important;
      min-height:38px !important;
      padding:8px !important;
    }
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading):not(.panel-mode) main.workspace {
      margin:56px 0 0 60px !important;
      width:calc(100% - 60px) !important;
      min-height:calc(100dvh - 56px) !important;
      box-sizing:border-box !important;
      padding:0 16px !important;
      background:var(--p-bg) !important;
    }
    html#gm-premium body.premium-shell.theme-light #dashboard .industrial-dashboard-heading { display:none !important; }
  }
  html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading):not(.panel-mode) main.workspace .view {
    max-width:none !important;
    width:100% !important;
    margin-inline:0 !important;
    background:transparent !important;
  }
  html#gm-premium body.premium-shell.theme-light #dashboard .industrial-dashboard-shell {
    max-width:none !important;
  }
  html#gm-premium body.premium-shell.theme-light #dashboard .professional-kpi-widget {
    padding:18px !important;
    background:#fff !important;
    border:1px solid #d8dee8 !important;
    box-shadow:0 3px 12px rgba(30,47,72,.09) !important;
  }
  html#gm-premium body.premium-shell.theme-light #dashboard .professional-kpi-strip {
    display:grid !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:2px !important;
  }
  html#gm-premium body.premium-shell.theme-light #dashboard .professional-kpi-card {
    display:block !important;
    min-height:104px !important;
    height:104px !important;
    padding:10px 12px !important;
    background:#fff !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
  html#gm-premium body.premium-shell.theme-light #dashboard .professional-kpi-card :is(.professional-kpi-icon,canvas) { display:none !important; }
  html#gm-premium body.premium-shell.theme-light #dashboard .professional-kpi-copy span {
    font-size:10px !important;
    color:#69788a !important;
    white-space:nowrap !important;
    overflow:hidden !important;
    text-overflow:ellipsis !important;
  }
  html#gm-premium body.premium-shell.theme-light #dashboard .professional-kpi-copy strong {
    font-size:19px !important;
    color:#202c3b !important;
  }
  html#gm-premium body.premium-shell.theme-light #dashboard .professional-kpi-copy {
    grid-template-rows:auto auto auto !important;
    gap:2px !important;
  }
  html#gm-premium body.premium-shell.theme-light #dashboard .professional-kpi-copy strong {
    margin:0 !important;
  }
  html#gm-premium body.premium-shell.theme-light #dashboard .industrial-card,
  html#gm-premium body.premium-shell.theme-light #dashboard .dashboard-widget:not(.professional-kpi-widget) {
    background:#fff !important;
    border:1px solid #d9e0e9 !important;
    border-radius:5px !important;
    box-shadow:0 3px 12px rgba(30,47,72,.09) !important;
  }
  @media (max-width:900px) {
    html#gm-premium body.premium-shell.theme-light #dashboard .professional-kpi-strip { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  }
  @media (max-width:600px) {
    html#gm-premium body.premium-shell:not(.auth-required):not(.auth-loading) #mainNavigation .tab[data-view]:not(.is-permission-hidden) {
      display:flex !important;
    }
    html#gm-premium body.premium-shell:not(.auth-required):not(.auth-loading) #mainNavigation .nav-group:not(.is-empty):not(.is-permission-hidden) {
      display:block !important;
    }
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar .reference-header-user {
      max-width:142px !important;
      gap:6px !important;
      padding:3px 6px 3px 3px !important;
    }
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar {
      display:flex !important;
      flex-wrap:nowrap !important;
      align-items:center !important;
      gap:6px !important;
      padding:0 10px !important;
    }
    html#gm-premium body.premium-shell.theme-light .reference-topbar-left {
      flex:0 1 auto !important;
      width:auto !important;
      min-width:0 !important;
      gap:5px !important;
      align-items:center !important;
    }
    html#gm-premium body.premium-shell.theme-light .reference-topbar-heading { display:none !important; }
    html#gm-premium body.premium-shell.theme-light .reference-topbar-logo {
      width:105px !important;
      height:auto !important;
      flex:0 0 105px !important;
    }
    html#gm-premium body.premium-shell.theme-light .reference-topbar-actions {
      flex:0 0 auto !important;
      height:36px !important;
      align-items:center !important;
      margin-left:auto !important;
    }
    html#gm-premium body.premium-shell:not(.auth-required):not(.auth-loading) .reference-topbar .topbar-menu-btn {
      display:none !important;
    }
  }
  @media (max-width:360px) {
    html#gm-premium body.premium-shell.theme-light .reference-topbar .reference-help { display:none !important; }
    html#gm-premium body.premium-shell.theme-light .reference-topbar .header-mobile-search { display:none !important; }
    html#gm-premium body.premium-shell.theme-light .reference-topbar-logo { width:90px !important; flex-basis:90px !important; }
    html#gm-premium body.premium-shell.theme-light:not(.auth-required):not(.auth-loading) .reference-topbar .reference-header-user { max-width:142px !important; }
  }
  html#gm-premium body.premium-shell #mainNavigation .nav-rail-expand { display:none !important; }
  @media (min-width:901px) {
    html#gm-premium body.premium-shell:not(.auth-required):not(.auth-loading) #mainNavigation .nav-rail-expand {
      display:grid !important;
      flex:0 0 38px !important;
      place-items:center !important;
      width:48px !important;
      height:38px !important;
      min-height:38px !important;
      margin:0 0 8px !important;
      padding:0 !important;
      color:#376292 !important;
      background:#edf3fb !important;
      border:1px solid #d5e0ef !important;
      border-radius:8px !important;
      cursor:pointer !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-rail-expand:hover,
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-rail-expand:focus-visible {
      color:#1159a5 !important;
      background:#e2edfb !important;
      border-color:#8db7e5 !important;
      outline:2px solid #80b7ef !important;
      outline-offset:2px !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-rail-expand-arrow {
      display:block !important;
      width:9px !important;
      height:9px !important;
      border-right:2px solid currentColor !important;
      border-bottom:2px solid currentColor !important;
      transform:rotate(-45deg) !important;
    }
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-rail-expand-text { display:none !important; }
    html#gm-premium body.premium-shell.theme-light #mainNavigation .nav-rail-expand .gm-button-icon { display:none !important; }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded:not(.auth-required):not(.auth-loading) #mainNavigation {
      width:244px !important;
      min-width:244px !important;
      max-width:244px !important;
    }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded:not(.auth-required):not(.auth-loading) #mainNavigation .industrial-sidebar-scroll {
      width:244px !important;
      min-width:244px !important;
      padding:10px 9px 18px !important;
      align-items:stretch !important;
    }
    html#gm-premium body.premium-shell.gm-rail-expanded:not(.auth-required):not(.auth-loading) #mainNavigation .nav-rail-expand {
      width:48px !important;
      grid-template-columns:1fr !important;
      justify-items:center !important;
      gap:0 !important;
      padding:0 !important;
    }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded #mainNavigation .nav-rail-expand-arrow { transform:rotate(135deg) !important; }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded #mainNavigation :is(.nav-pinned,.gm-module-nav-group) {
      align-items:stretch !important;
      width:100% !important;
    }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded #mainNavigation .nav-group {
      width:100% !important;
      height:auto !important;
      min-height:44px !important;
      flex:0 0 auto !important;
    }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded #mainNavigation :is(.nav-pinned .tab,.nav-group>summary) {
      width:100% !important;
      min-width:0 !important;
      max-width:none !important;
      height:44px !important;
      min-height:44px !important;
      padding:0 10px !important;
      grid-template-columns:30px minmax(0,1fr) 16px !important;
      place-items:initial !important;
      align-items:center !important;
      gap:8px !important;
      text-align:left !important;
    }
    html#gm-premium body.premium-shell.gm-rail-expanded:not(.auth-required):not(.auth-loading) #mainNavigation :is(.nav-pinned .tab,.nav-group>summary)>span:nth-child(2) {
      display:block !important;
      visibility:visible !important;
      opacity:1 !important;
      grid-column:2 !important;
      min-width:0 !important;
      overflow:hidden !important;
      text-overflow:ellipsis !important;
      white-space:nowrap !important;
    }
    html#gm-premium body.premium-shell.gm-rail-expanded:not(.auth-required):not(.auth-loading) #mainNavigation .nav-group>summary>i {
      display:block !important;
      grid-column:3 !important;
    }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded #mainNavigation .nav-group-items {
      position:static !important;
      inset:auto !important;
      width:100% !important;
      max-width:none !important;
      max-height:none !important;
      margin:0 !important;
      padding:2px 0 6px 12px !important;
      border:0 !important;
      border-radius:0 !important;
      box-shadow:none !important;
      background:transparent !important;
      overflow:visible !important;
    }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded #mainNavigation .nav-group:not([open])>.nav-group-items { display:none !important; }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded #mainNavigation .nav-group[open]>.nav-group-items { display:grid !important; }
    html#gm-premium body.premium-shell.theme-light.gm-rail-expanded:not(.auth-required):not(.auth-loading):not(.panel-mode) main.workspace {
      inset:56px 0 0 244px !important;
      margin:0 !important;
      width:calc(100% - 244px) !important;
    }
  }
  @media (max-width:900px) {
    html#gm-premium body.premium-shell :is(#genericModal,.view,.auth-screen) :is(input,select,textarea) {
      font-size:16px !important;
    }
  }
}
