/* WJTC VIS-005 final polish white+lime — builds on VIS-004c; staging only; mascot untouched */
html, html[data-wjtc-bg], html[data-wjtc-theme],
html[data-wjtc-bg="azul"], html[data-wjtc-bg="noite"], html[data-wjtc-bg="indigo"],
html[data-wjtc-bg="petroleo"], html[data-wjtc-bg="grafite"], html[data-wjtc-bg="vinho"],
html[data-wjtc-bg="floresta"], html[data-wjtc-bg="ametista"],
html[data-wjtc-theme="light"], html[data-wjtc-theme="dark"] {
  --bg:#f7f8f5!important; --panel:#ffffff!important; --panel2:#f4fce6!important;
  --line:#e4ecd8!important; --text:#1a1f14!important; --muted:#6b7460!important;
  --cyan:#7cbe00!important; --green:#2f9e44!important; --red:#e03131!important; --amber:#e88000!important;
  --sidebar-bg:#fbfdf7!important; --sidebar-bg-2:#f4fce6!important; --sidebar-border:#e4ecd8!important;
  --sidebar-hover:#eefbd0!important; --sidebar-active:#c8f84c!important; --sidebar-accent:#7cbe00!important;
  --wjtc-navy-950:#f7f8f5!important; --wjtc-text:#1a1f14!important;
  --dx-border:#e4ecd8!important;
}
html body, html body:not(.auth-layout-active), html body.auth-layout-active,
html body.demo-experience-mode, html[data-wjtc-theme] body, html[data-wjtc-bg] body {
  background:radial-gradient(900px 420px at 12% -8%,rgba(200,248,76,.22),transparent 55%),#f7f8f5!important;
  color:#1a1f14!important;
}
.wjtc-color-sphere{display:none!important}
html body .primary, html body button.primary, html body .login-submit,
html body .labActions button.primary {
  background:#c8f84c!important; color:#152000!important; border-color:#a8e800!important;
}
.eyebrow,.brand b,code{color:#7cbe00!important}
html body .wjtc-ops-topbar, html body .login-brand-panel, html body .login-shell,
html body #loginView, html body .auth, html body .app-main {
  background:radial-gradient(120% 180% at 0% 0%,rgba(200,248,76,.28),transparent 55%),#f7f8f5!important;
  color:#1a1f14!important; border-color:#e4ecd8!important;
}
html body .login-brand-mark, html body .login-mobile-brand,
html body .login-brand-copy, html body .login-brand-copy span,
html body .login-brand-copy h2, html body .login-brand-copy p,
html body .authbox h1, html body .authbox p, html body .authbox label,
html body .authbox label span { color:#1a1f14!important }
html body .login-brand-status, html body .login-footnote { color:#6b7460!important }
html body .authbox, html body:not(.auth-layout-active) .authbox,
html body .login-card, html body .auth-card {
  background:#ffffff!important; border-color:#e4ecd8!important; color:#1a1f14!important;
}
html body .authbox input, html body .login-field input, html body .form input,
html body .form select, html body .form textarea {
  background:#fcfff8!important; color:#1a1f14!important; border-color:#e4ecd8!important;
}
html body .sidebar, html body:not(.auth-layout-active) .sidebar {
  background:linear-gradient(180deg,#fbfdf7,#f4fce6)!important;
  border-right-color:#e4ecd8!important; color:#1a1f14!important;
}
html body .sidebar-nav button.active,
html body .sidebar .sidebar-nav button[aria-current="page"],
html body .sidebar-nav button.is-active {
  background:#c8f84c!important; color:#152000!important; box-shadow:inset 3px 0 0 #7cbe00!important;
}
html body .sidebar-nav button:hover { background:#eefbd0!important }
html body .sidebar-group-title { color:#6b7460!important }
html body .brand-mark { background:#c8f84c!important; color:#152000!important }
html body .cards article, html body .panel, html body .assetcard, html body .miniasset,
html body .tablewrap, html body table, html body .smartalarmcard, html body .operational article,
html body .integrityPanel, html body .triagePanel, html body .triageNotice, html body .triageFilters,
html body .sensor, html body .hchart, html body .chart, html body .assetvalues small,
html body .rangechips button, html body .comparebig, html body .comparisonconclusion,
html body header, html body #content, html body .sectionhead {
  background:#ffffff!important; border-color:#e4ecd8!important; color:#1a1f14!important;
}
html body .sensor, html body .hchart, html body .chart, html body .assetvalues small,
html body .rangechips button, html body .operational article { background:#f4fce6!important }
html body th, html body .cards span, html body .muted, html body .empty, html body .datarows span { color:#6b7460!important }
html body .txtbad, html body .smartalarmcard.critico, html body .intelbadge.red, html body .execstatus.red { color:#e03131!important }
html body .smartalarmcard.critico, html body .smartalarmcard.alta, html body .integrityEvent.warn { border-left-color:#e88000!important }
html body .event.warn b, html body .txtwarn { color:#e88000!important }
html body .wjtc-env-badge, html body .wjtc-connection-badge, html body .online {
  background:#eefbd0!important; border-color:#c8f84c!important; color:#152000!important;
}
html body .mobile-menu-button { background:#c8f84c!important; color:#152000!important; border-color:#a8e800!important }
html body.demo-experience-mode .demoExperience,
html body .demoExperience, html body .dxHero, html body .dxStep, html body .dxSummary,
html body .dxVision, html body .dxConcepts section, html body .dxAsset, html body .dxAssist,
html body .dxGovernance, html body .dxFlow, html body .dxPlant, html body .dxReply,
html body .dxNextHint, html body .dxDetailGrid section {
  background:#ffffff!important; border-color:#e4ecd8!important; color:#1a1f14!important;
}
html body .demoExperience button, html body .demoExperience select {
  background:#f4fce6!important; border-color:#e4ecd8!important; color:#1a1f14!important;
}
html body .demoExperience .dxPrimary, html body .dxPrimary {
  background:#c8f84c!important; color:#152000!important;
}
html body .dxBadge { background:#eefbd0!important; border-color:#c8f84c!important; color:#152000!important }
.wmHost { z-index:1100!important }

/* Dashboard KPI / prod cards */
html body .premiumKpisV50 article,
html body .auth-layout-active .premiumKpisV50 article,
html body #content .premiumKpisV50 article,
html body #content article.kpiTotal,
html body #content article.kpiHealthy,
html body #content article.kpiAttention,
html body #content article.kpiCritical,
html body #content article.kpiOffline,
html body .premiumMainGrid > .prodCard,
html body .premiumAssetsAndPriority > .prodCard,
html body .premiumAnalyticsGrid > .prodCard,
html body .prodCard,
html body .premiumFleetCard,
html body .premiumAlarmCard,
html body .cmdFleetCard,
html body .cmdAlarmCard,
html body .cmdRiskCard,
html body .premiumPriorityCardV50,
html body .premiumCommandStrip,
html body .premiumCommandStrip > div {
  background:#ffffff!important;
  background-image:none!important;
  border-color:#e4ecd8!important;
  color:#1a1f14!important;
  box-shadow:0 8px 24px -18px rgba(30,40,10,.35)!important;
}
html body .prodCard > header,
html body .premiumAnalyticsGrid > .prodCard > header {
  background:#f4fce6!important;
  border-bottom-color:#e4ecd8!important;
  color:#1a1f14!important;
}
html body .prodCard > header h2,
html body .premiumKpisV50 article span,
html body .premiumKpisV50 article strong,
html body .premiumKpisV50 article small,
html body .prodCard > header .eyebrow { color:#1a1f14!important }
html body .premiumKpisV50 article small { color:#6b7460!important }
html body .premiumKpisV50 article::after { background:#c8f84c!important }
html body .authbox input, html body input#username, html body input#password {
  background:#fcfff8!important; color:#1a1f14!important; border-color:#e4ecd8!important;
  -webkit-text-fill-color:#1a1f14!important;
}

html body aside#sidebar.sidebar, html body aside.sidebar.expanded, html body #sidebar.sidebar.expanded,
html body aside, html body .sidebar, html body #sidebar, html body .nav-sidebar {
  background: linear-gradient(180deg,#fbfdf7,#f4fce6)!important;
  background-image: linear-gradient(180deg,#fbfdf7,#f4fce6)!important;
  border-right: 1px solid #e4ecd8!important;
  color:#1a1f14!important;
  box-shadow:none!important;
}
html body .sidebar-nav button.active, html body .sidebar-nav button[data-view].active,
html body #sidebar .sidebar-nav button.active {
  background:#c8f84c!important; background-image:none!important; color:#152000!important;
  border-color:#a8e800!important; box-shadow:inset 3px 0 0 #7cbe00!important;
}

/* VIS-003g: lighten sidebar children + topbar chrome */
html body #sidebar .sidebar-profile, html body aside#sidebar .sidebar-profile,
html body #sidebar .sidebar-footer, html body aside#sidebar .sidebar-footer,
html body #sidebar .sidebar-group, html body aside#sidebar .sidebar-group,
html body #sidebar .client-area-group, html body aside#sidebar .client-area-group,
html body #sidebar .sidebar-top, html body aside#sidebar .sidebar-top,
html body #sidebar .sidebar-nav, html body aside#sidebar .sidebar-nav {
  background:transparent!important; background-color:transparent!important; background-image:none!important;
  color:#1a1f14!important; border-color:#e4ecd8!important; box-shadow:none!important;
}
html body #sidebar .sidebar-footer, html body aside#sidebar .sidebar-footer {
  background:linear-gradient(180deg,#f4fce6,#eefbd0)!important; background-image:linear-gradient(180deg,#f4fce6,#eefbd0)!important;
  border-top:1px solid #e4ecd8!important;
}
html body #sidebar .sidebar-profile, html body aside#sidebar .sidebar-profile {
  background:#f4fce6!important; background-image:none!important; border:1px solid #e4ecd8!important; border-radius:12px!important;
}
html body #sidebar .sidebar-nav button, html body #sidebar .sidebar-nav a,
html body aside#sidebar .sidebar-nav button, html body aside#sidebar .sidebar-nav a,
html body #sidebar .sidebar-group summary, html body #sidebar .sidebar-group button {
  color:#1a1f14!important;
}
html body #sidebar .sidebar-nav button:hover, html body aside#sidebar .sidebar-nav button:hover {
  background:#eefbd0!important; color:#152000!important;
}
html body #sidebar .brand-copy, html body #sidebar .brand-mark, html body #sidebar .sidebar-brand,
html body #sidebar .brand-copy span, html body #sidebar small, html body #sidebar .muted {
  color:#1a1f14!important;
}
html body #sidebar .sidebar-nav .nav-section-label,
html body #sidebar .nav-section-title, html body #sidebar .sidebar-group-title {
  color:#6b7460!important;
}
html body #wjtcOpsTopbar, html body header.wjtc-ops-topbar {
  background:#f7f8f5!important; color:#1a1f14!important; border-bottom:1px solid #e4ecd8!important;
}
html body #wjtcOpsTopbar input, html body .wjtc-topbar-search-wrap input,
html body .wjtc-ops-topbar input[type="search"], html body .wjtc-ops-topbar input[type="text"] {
  background:#ffffff!important; color:#1a1f14!important; border:1px solid #e4ecd8!important;
}
html body .wjtc-topbar-alarm { background:#eefbd0!important; color:#152000!important; border-color:#c8f84c!important; }
html body #sidebar .client-portal-btn, html body #sidebar .portal-btn, html body #sidebar button.portal,
html body #sidebar .client-area-group button {
  background:linear-gradient(180deg,#eefbd0,#c8f84c)!important; color:#152000!important; border-color:#a8e800!important;
}


/* VIS-004: force light fleet/content rows (CSS + boot clears residual inline dark) */
html body .premiumFleetRow, html body .premiumFleetRowV59, html body .cmdFleetRow,
html body .premiumFleetCard, html body .cmdFleetCard, html body article.prodCard,
html body .premiumAssetsList .premiumFleetRow, html body #content .premiumFleetRow,
html body #content .cmdFleetRow, html body #content .premiumFleetRowV59 {
  background:#ffffff!important;
  background-color:#ffffff!important;
  background-image:linear-gradient(90deg,#fbfdf7,#f4fce6)!important;
  color:#1a1f14!important;
  border-color:#e4ecd8!important;
}
html body .premiumFleetRow *, html body .cmdFleetRow *, html body .premiumFleetRowV59 * {
  color:inherit;
}
html body .premiumFleetRow b, html body .cmdFleetRow b,
html body .premiumFleetRow strong, html body .cmdFleetRow strong {
  color:#1a1f14!important;
}
html body .premiumFleetRow .muted, html body .cmdFleetRow .muted,
html body .premiumFleetRow small, html body .cmdFleetRow small {
  color:#6b7460!important;
}
html body table thead, html body table thead th,
html body .tablewrap thead, html body .datatable thead th {
  background:#eefbd0!important; color:#1a1f14!important; border-color:#e4ecd8!important;
}

/* VIS-004b: force main content/app shell light (kill residual navy plane) */
html body #content, html body .app-shell, html body .app-main, html body .main, html body main,
html body .premiumShell, html body .premiumMain, html body .premiumMainGrid,
html body .premiumLayout, html body .ops-shell, html body .workspace,
html body .dashboard, html body #dashboardView, html body .view-dashboard {
  background:#f7f8f5!important; background-image:none!important; color:#1a1f14!important;
}
html body .sectionhead h1, html body .sectionhead h2, html body #content > header h1,
html body #content .page-title, html body .premiumTitle, html body .ops-title {
  color:#1a1f14!important;
}
html body .sectionhead p, html body #content > header p, html body .ops-subtitle {
  color:#6b7460!important;
}

/* VIS-004b: lighten cmd/premium shell planes */
html body .cmdMidGrid, html body .cmdBottomGrid, html body .cmdKpiStrip,
html body .prodKpis, html body .premiumKpis, html body .premiumKpisV50,
html body .cmdTopbar, html body .prodTopbar, html body .premiumTopbar,
html body .cmdQuickBar, html body .premiumQuickV50, html body .prodQuick,
html body .cmdTrendPlot, html body .premiumTrendPlot, html body .cmdRiskBody,
html body .premiumStatusBody, html body .cmdMidRight, html body .cmdTopLeft {
  background:#f7f8f5!important; background-color:#f7f8f5!important;
  background-image:none!important; color:#1a1f14!important;
}
html body .cmdTopbar h1, html body .prodTopbar h1, html body .premiumTopbar h1,
html body .cmdTopbar .ops-title, html body .premiumTitle {
  color:#1a1f14!important;
}

/* VIS-004c: lighten prodDash/cmdDash residual shells */
html body .prodDash, html body .cmdDashV15, html body .cmdDash,
html body section.prodDash, html body section.cmdDashV15,
html body .app-main > section, html body #content > section {
  background:#f7f8f5!important; background-color:#f7f8f5!important;
  background-image:none!important; color:#1a1f14!important;
}

/* ===== VIS-005 final polish ===== */
/* Stronger muted for legibility (site↔platform) */
html, html[data-wjtc-bg], html[data-wjtc-theme],
html[data-wjtc-theme="light"], html[data-wjtc-theme="dark"] {
  --muted:#4f5845!important;
}
html body .muted, html body .empty, html body th,
html body .cards span, html body .datarows span,
html body .premiumKpisV50 article small,
html body .premiumFleetRow .muted, html body .cmdFleetRow .muted,
html body .premiumFleetRow small, html body .cmdFleetRow small,
html body .assetIdentity small, html body .assetLast small,
html body .assetLastV59 small, html body .prodClock,
html body .sectionhead p, html body #content > header p,
html body .ops-subtitle, html body .cmdTopLeft p:not(.eyebrow),
html body .prodHeroHead p:last-child {
  color:#4f5845!important;
}

/* Title integration: Central de monitoramento / section heads */
html body .cmdTopLeft, html body .prodHeroHead > div:first-child,
html body .prodTopbar .cmdTopLeft {
  background:linear-gradient(90deg,rgba(200,248,76,.18),rgba(244,252,230,.55) 42%,transparent 78%)!important;
  border:1px solid #e4ecd8!important;
  border-radius:14px!important;
  padding:12px 16px!important;
  box-shadow:0 8px 22px -18px rgba(30,40,10,.28)!important;
}
html body .cmdTopLeft .eyebrow, html body .prodHeroHead .eyebrow,
html body .sectionhead .eyebrow, html body #content .eyebrow {
  color:#7cbe00!important; letter-spacing:.14em!important; font-weight:800!important;
}
html body .cmdTopLeft h1, html body .prodHeroHead h1,
html body .prodTopbar h1, html body .cmdTopbar h1,
html body .sectionhead h1, html body #content .page-title {
  color:#1a1f14!important;
  letter-spacing:-.02em!important;
  line-height:1.08!important;
  margin:4px 0 0!important;
}
html body .prodTopbar, html body .cmdTopbar, html body .premiumTopbar {
  align-items:center!important; gap:14px!important;
}

/* KPI icon tiles: kill residual navy */
html body .kpiIcon, html body .premiumKpisV50 .kpiIcon,
html body .kpiIcon.blue, html body .kpiIcon.slate,
html body .kpiIcon.green, html body .kpiIcon.amber, html body .kpiIcon.red {
  background:#eefbd0!important; color:#152000!important;
  border:1px solid #d7ef9a!important; box-shadow:none!important;
}
html body .kpiIcon.amber { background:#fff4e8!important; color:#e88000!important; border-color:#f0d2a8!important }
html body .kpiIcon.red { background:#ffe8ea!important; color:#e03131!important; border-color:#f0b8be!important }
html body .kpiIcon.green { background:#e8f8ec!important; color:#2f9e44!important; border-color:#b7e4c0!important }
html body .kpiIcon.slate { background:#eef2f0!important; color:#4f5845!important; border-color:#d7ddd4!important }

/* Fleet glyphs / thumbs / dark visual shells */
html body .assetGlyph, html body .assetThumb,
html body .assetGlyph.offline, html body .assetThumb.offline,
html body span.assetGlyph, html body span.assetThumb {
  background:#eefbd0!important; color:#152000!important;
  border:1px solid #d7ef9a!important; box-shadow:none!important;
}
html body .assetGlyph.normal, html body .assetThumb.normal {
  background:#e8f8ec!important; color:#2f9e44!important; border-color:#b7e4c0!important;
}
html body .assetGlyph.attention, html body .assetThumb.attention {
  background:#fff4e8!important; color:#e88000!important; border-color:#f0d2a8!important;
}
html body .assetGlyph.critical, html body .assetThumb.critical {
  background:#ffe8ea!important; color:#e03131!important; border-color:#f0b8be!important;
}
html body .priorityMachineVisual, html body .priorityMachineVisualV59,
html body .fleetCommVisual, html body .fleetCommPriority .fleetCommVisual {
  background:linear-gradient(145deg,#fbfdf7,#eefbd0)!important;
  border-color:#e4ecd8!important; color:#1a1f14!important;
}
html body .priorityMachineVisual span, html body .priorityMachineVisualV59 span,
html body .fleetCommVisual span { color:#7cbe00!important }

/* Status chips contrast */
html body .assetState, html body .premiumFleetRow .assetState,
html body .cmdFleetRow .assetState {
  border-radius:999px!important; padding:4px 10px!important; font-size:11px!important;
  border:1px solid #e4ecd8!important;
}
html body .assetState.offline, html body .premiumFleetRow .assetState.offline {
  background:#eef2f0!important; color:#3a4234!important; border-color:#d7ddd4!important;
}
html body .assetState.attention { background:#fff4e8!important; color:#9a5500!important; border-color:#f0d2a8!important }
html body .assetState.critical { background:#ffe8ea!important; color:#b42318!important; border-color:#f0b8be!important }
html body .assetState.normal { background:#e8f8ec!important; color:#1b7a32!important; border-color:#b7e4c0!important }
html body .assetHealth i { background:#e4ecd8!important }
html body .assetHealth i span { background:linear-gradient(90deg,#7cbe00,#c8f84c)!important }

/* Buttons / menus / forms — site↔platform standardization */
html body .primary, html body button.primary, html body .login-submit,
html body .labActions button.primary, html body .dxPrimary,
html body .prodTopActions button, html body .prodCard header button,
html body .cmdTopbar button, html body .premiumTopbar button,
html body .wjtc-topbar-search-wrap button, html body .wjtc-ops-topbar button.primary,
html body .actions button.primary, html body .linkbtn.primary,
html body .rangechips button.active, html body .alarmfilters button.active {
  background:#c8f84c!important; color:#152000!important;
  border:1.5px solid #a8e800!important; border-radius:999px!important;
  font-weight:800!important; box-shadow:0 8px 18px -14px rgba(80,110,0,.45)!important;
}
html body .prodTopActions button:hover, html body .prodCard header button:hover,
html body .cmdTopbar button:hover, html body button.primary:hover {
  background:#d4fa6a!important;
}
html body .prodTopActions button:not(.primary),
html body .prodCard header button:not(.primary),
html body .cmdTopbar button:not(.primary),
html body .actions button:not(.primary), html body .linkbtn,
html body .secondary, html body button.secondary,
html body .alarmfilters button:not(.active),
html body .rangechips button:not(.active) {
  background:#ffffff!important; color:#152000!important;
  border:1.5px solid #a8e800!important; border-radius:999px!important; font-weight:700!important;
}
/* Reassert sidebar active after button polish */
html body .sidebar-nav button.active,
html body .sidebar-nav button[data-view].active,
html body #sidebar .sidebar-nav button.active,
html body .sidebar .sidebar-nav button[aria-current="page"],
html body .sidebar-nav button.is-active {
  background:#c8f84c!important; background-image:none!important; color:#152000!important;
  border-color:#a8e800!important; box-shadow:inset 3px 0 0 #7cbe00!important;
}
html body .sidebar-nav button, html body #sidebar .sidebar-nav button,
html body #sidebar .sidebar-group summary, html body #sidebar .sidebar-group button {
  border-radius:12px!important;
}
html body .authbox input, html body .login-field input, html body .form input,
html body .form select, html body .form textarea, html body input#username, html body input#password,
html body .wjtc-ops-topbar input, html body .wjtc-topbar-search-wrap input,
html body .prodSearch input, html body select, html body textarea {
  background:#fcfff8!important; color:#1a1f14!important; border:1px solid #e4ecd8!important;
  border-radius:12px!important; -webkit-text-fill-color:#1a1f14!important;
}
html body .prodSearch, html body .wjtc-topbar-search-wrap {
  background:#ffffff!important; border:1px solid #e4ecd8!important;
  border-radius:999px!important; box-shadow:0 6px 16px -14px rgba(30,40,10,.25)!important;
}
html body .prodSearch input, html body .wjtc-topbar-search-wrap input {
  background:transparent!important; border:0!important; color:#1a1f14!important;
}
html body .cloudBadge, html body .online, html body .wjtc-env-badge, html body .wjtc-connection-badge {
  background:#eefbd0!important; border:1px solid #c8f84c!important; color:#152000!important;
  border-radius:999px!important; font-weight:800!important;
}

/* Cards / indicators contrast */
html body .prodCard, html body .premiumFleetCard, html body .premiumAlarmCard,
html body .cmdFleetCard, html body .cmdAlarmCard, html body .cmdRiskCard,
html body .premiumKpisV50 article, html body .cards article, html body .panel {
  border:1px solid #e4ecd8!important;
  box-shadow:0 10px 26px -18px rgba(30,40,10,.38)!important;
}
html body .premiumEmpty, html body .empty {
  background:#f4fce6!important; border:1px dashed #c8d9a8!important; color:#4f5845!important;
}
html body .cmdAlarmRow, html body .premiumAlarmRow {
  background:#ffffff!important; border-color:#e4ecd8!important; color:#1a1f14!important;
}
html body .cmdCat { color:#4f5845!important }

/* Keep W-Node / mascot untouched (explicit non-override guard comments)
   DO NOT style: .wmHost, #wjtcAssistFab, .wjtcEva*, .wjtcWNode*, #wjtcMascotHost */
/* VIS-005b: beat #content .premiumTopbar button !important navy */
html body #content .premiumTopbar button,
html body #content .prodTopActions button,
html body #content .cmdTopbar button,
html body #content .prodCard header button,
html body #content .wjtc-topbar-search-wrap button,
html body #content .actions button.primary,
html body #wjtcOpsTopbar button,
html body header.wjtc-ops-topbar button {
  background:#c8f84c!important; color:#152000!important;
  border:1.5px solid #a8e800!important; border-radius:999px!important;
  font-weight:800!important; box-shadow:0 8px 18px -14px rgba(80,110,0,.45)!important;
}
html body #content .premiumTopbar button:hover,
html body #content .prodTopActions button:hover,
html body #content .cmdTopbar button:hover {
  background:#d4fa6a!important;
}
