/* Tons sólidos e preferências de leitura. O degradê permanece só no menu/login. */
:root{--led-action-blue:#2563eb;--led-action-green:#15803d;--bs-primary-rgb:37,99,235;--bs-success-rgb:21,128,61}
.workspace-main .btn-primary{background:#2563eb;border-color:#2563eb;color:#fff}.workspace-main .btn-primary:hover,.workspace-main .btn-primary:focus-visible{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.workspace-main .btn-primary:disabled{background:#2563eb;border-color:#2563eb}.workspace-main .btn-outline-primary{color:#2563eb;border-color:#729cf5}.workspace-main .btn-outline-primary:hover,.workspace-main .btn-outline-primary:focus-visible,.workspace-main .btn-check:checked+.btn-outline-primary{background:#2563eb;border-color:#2563eb;color:#fff}.workspace-main .btn-success{background:#15803d;border-color:#15803d;color:#fff}.workspace-main .btn-success:hover{background:#166534;border-color:#166534}.workspace-main .btn-outline-success{color:#15803d;border-color:#69b889}.workspace-main .btn-outline-success:hover{background:#15803d;border-color:#15803d;color:#fff}.workspace-main .btn-link,.workspace-main .op-text-link,.workspace-main .op-section-title a{color:#2563eb}.workspace-main .op-blue,.workspace-main .op-catalog-stat.blue strong{color:#2563eb}.workspace-main .op-green,.workspace-main .op-catalog-stat.green strong{color:#15803d}.workspace-main .op-dot.blue,.workspace-main .op-message{background:#3c74a6}.workspace-main .op-dot.online,.workspace-main .op-offer{background:#298870}.workspace-main .op-status.online{background:#e5f3ed;color:#226c56}.workspace-main .form-check-input:checked{background-color:#2563eb;border-color:#2563eb}.workspace-main .ota-page button:not(.secondary){background:#2563eb;color:#fff}
.navbar .ui-preferences-toggle{display:flex;align-items:center;justify-content:center;border:1px solid #ffffff30;border-radius:9px;min-width:40px;min-height:40px;padding:8px!important;margin:0 7px 0 0;background:transparent;color:#d6e4f2}.navbar .ui-preferences-toggle:hover,.navbar .ui-preferences-toggle:focus-visible{background:#ffffff12;color:#fff}.ui-preferences-panel{width:290px;padding:12px!important;max-width:calc(100vw - 32px)}.ui-preferences-panel fieldset{border:0;padding:8px 4px;margin:0}.ui-preferences-panel legend{font-size:13px;font-weight:650;margin-bottom:9px;color:#62738b;float:none;width:auto}.ui-preference-options{display:flex;gap:8px}.ui-preference-options label{flex:1;display:flex;align-items:center;gap:7px;padding:9px 8px;border:1px solid #dae3ed;border-radius:8px;background:#f8fafd;color:#243b57;font-size:14px;cursor:pointer}.ui-preference-options label:has(input:checked){border-color:#47789f;background:#eaf1f8}.ui-preference-options input{accent-color:#2563eb;margin:0}.ui-preference-note{font-size:13px;color:#62738b;line-height:1.5;margin:9px 4px 2px}.login-preferences{position:absolute;top:20px;right:24px;z-index:1060}.login-preferences .ui-preferences-toggle{display:flex;align-items:center;justify-content:center;padding:10px;color:#e5eff9;background:#ffffff10;border:1px solid #ffffff40;border-radius:9px}.ui-preferences-panel .dropdown-header{font-size:14px;padding:5px 4px 8px}.ui-preferences-panel label span{line-height:1.4}
html[data-led-theme="dark"]{color-scheme:dark;--ws-ink:#e6eef9;--ws-muted:#acbdd2;--ws-line:#334761;--bs-body-bg:#101d2f;--bs-body-color:#e6eef9;--bs-emphasis-color:#f3f7fd;--bs-secondary-color:#acbdd2;--bs-border-color:#334761}
html[data-led-theme="dark"] body:not(.login-page){background:#101d2f!important;color:#e6eef9}html[data-led-theme="dark"] .workspace-main{color:#e6eef9}html[data-led-theme="dark"] .workspace-main h1,html[data-led-theme="dark"] .workspace-main h2,html[data-led-theme="dark"] .workspace-main h3,html[data-led-theme="dark"] .workspace-main h4,html[data-led-theme="dark"] .workspace-main h5,html[data-led-theme="dark"] .workspace-main h6{color:#ecf3fc}
html[data-led-theme="dark"] .workspace-main .card:not(.sim-display-frame),html[data-led-theme="dark"] .workspace-main .op-surface,html[data-led-theme="dark"] .workspace-main .op-kpi,html[data-led-theme="dark"] .workspace-main .op-filters,html[data-led-theme="dark"] .workspace-main .retail-stat,html[data-led-theme="dark"] .workspace-main .ws-data-surface,html[data-led-theme="dark"] .workspace-main .sticky-topbar{background:#192a41!important;border-color:#334761!important;color:#e6eef9}
html[data-led-theme="dark"] .workspace-main .card-header,html[data-led-theme="dark"] .workspace-main .card-footer{background:#1e324c;color:#e6eef9;border-color:#334761}html[data-led-theme="dark"] .workspace-main>form:not(.workspace-context-form),html[data-led-theme="dark"] .workspace-main .op-panel-content,html[data-led-theme="dark"] .workspace-main .ws-inline-status,html[data-led-theme="dark"] .workspace-main .ws-command-results,html[data-led-theme="dark"] .workspace-main .ws-compare>div{background:#20354f!important;color:#dbe8f8;border-color:#334761}
html[data-led-theme="dark"] .workspace-main .op-dashboard{--op-ink:#e6eef9;--op-muted:#acbdd2;--op-line:#334761}html[data-led-theme="dark"] .workspace-main .op-chip,html[data-led-theme="dark"] .workspace-main .retail-tabs,html[data-led-theme="dark"] .workspace-main .op-track,html[data-led-theme="dark"] .workspace-main .op-stack{background:#263c57;color:#bfd0e6}html[data-led-theme="dark"] .workspace-main .op-kpi-icon{background:#29405b;color:#bad3ef}html[data-led-theme="dark"] .workspace-main .op-kpi.green .op-kpi-icon{background:#21493d;color:#9de0c4}html[data-led-theme="dark"] .workspace-main .op-ring{background:conic-gradient(#298870 var(--rate),#2b4059 0)}html[data-led-theme="dark"] .workspace-main .op-ring>div{background:#192a41}
html[data-led-theme="dark"] .workspace-main .table{--bs-table-bg:#192a41;--bs-table-color:#e6eef9;--bs-table-striped-bg:#20354f;--bs-table-striped-color:#e6eef9;--bs-table-hover-bg:#29415e;--bs-table-hover-color:#fff}html[data-led-theme="dark"] .workspace-main .table thead th{background:#14243a;color:#bdcfe5}html[data-led-theme="dark"] .workspace-main .table td,html[data-led-theme="dark"] .workspace-main .table th{border-color:#334761}html[data-led-theme="dark"] .workspace-main .table .table-danger{--bs-table-bg:#4a2934;--bs-table-color:#ffd4db;--bs-table-striped-bg:#4a2934;--bs-table-striped-color:#ffd4db}html[data-led-theme="dark"] .workspace-main .table .table-warning{--bs-table-bg:#493d28;--bs-table-color:#ffe1a3;--bs-table-striped-bg:#493d28;--bs-table-striped-color:#ffe1a3}html[data-led-theme="dark"] .workspace-main .table .table-info{--bs-table-bg:#23435d;--bs-table-color:#daefff;--bs-table-striped-bg:#23435d;--bs-table-striped-color:#daefff}
html[data-led-theme="dark"] .workspace-main .text-secondary,html[data-led-theme="dark"] .workspace-main .text-muted,html[data-led-theme="dark"] .workspace-main .table .text-secondary,html[data-led-theme="dark"] .workspace-main .table .text-muted,html[data-led-theme="dark"] .workspace-main .item-detail,html[data-led-theme="dark"] .workspace-main .health-note,html[data-led-theme="dark"] .workspace-main .health-label,html[data-led-theme="dark"] .workspace-main .op-preview-caption{color:#acbdd2!important}html[data-led-theme="dark"] .workspace-main .text-success,html[data-led-theme="dark"] .workspace-main .table .text-success,html[data-led-theme="dark"] .workspace-main .op-green,html[data-led-theme="dark"] .workspace-main .op-catalog-stat.green strong{color:#8bd8b8!important}html[data-led-theme="dark"] .workspace-main .text-warning,html[data-led-theme="dark"] .workspace-main .op-warning{color:#f2cc85!important}html[data-led-theme="dark"] .workspace-main a:not(.btn):not(.nav-link):not(.dropdown-item),html[data-led-theme="dark"] .workspace-main .op-blue,html[data-led-theme="dark"] .workspace-main .op-catalog-stat.blue strong{color:#a3c9ef}html[data-led-theme="dark"] .workspace-main .form-label{color:#b9cce3}
html[data-led-theme="dark"] .workspace-main .form-control,html[data-led-theme="dark"] .workspace-main .form-select,html[data-led-theme="dark"] .workspace-context-form select,html[data-led-theme="dark"] .workspace-main .ota-page select,html[data-led-theme="dark"] .workspace-main .ota-page input[type=text]{background-color:#122239;color:#e6eef9;border-color:#405775}html[data-led-theme="dark"] .workspace-main .form-control::placeholder{color:#96aac4}html[data-led-theme="dark"] .workspace-main .form-control:focus,html[data-led-theme="dark"] .workspace-main .form-select:focus{border-color:#83b0d6;box-shadow:0 0 0 3px #83b0d622}
html[data-led-theme="dark"] .dropdown-menu,html[data-led-theme="dark"] .ui-preferences-panel{background:#192a41;color:#e6eef9;border-color:#405775}html[data-led-theme="dark"] .dropdown-item{color:#e6eef9}html[data-led-theme="dark"] .dropdown-item:hover{background:#2b435f;color:#fff}html[data-led-theme="dark"] .dropdown-header,html[data-led-theme="dark"] .ui-preference-note,html[data-led-theme="dark"] .ui-preferences-panel legend{color:#acbdd2}html[data-led-theme="dark"] .ui-preference-options label{background:#122239;border-color:#405775;color:#e6eef9}html[data-led-theme="dark"] .ui-preference-options label:has(input:checked){background:#2b435f;border-color:#91b7d9}
html[data-led-theme="dark"] .workspace-main .btn-outline-primary,html[data-led-theme="dark"] .workspace-main .btn-outline-secondary,html[data-led-theme="dark"] .workspace-main .btn-secondary{background:transparent;color:#b8d3ef;border-color:#506c8d}html[data-led-theme="dark"] .workspace-main .btn-outline-primary:hover,html[data-led-theme="dark"] .workspace-main .btn-outline-secondary:hover{background:#2563eb;color:#fff}html[data-led-theme="dark"] .workspace-main .nav-tabs .nav-link.active{background:#192a41;border-color:#405775;color:#e6eef9}html[data-led-theme="dark"] .workspace-main .alert-light,html[data-led-theme="dark"] .workspace-main .ws-draft-banner{background:#243b54;color:#d5e5f8;border-color:#405775}html[data-led-theme="dark"] .workspace-main .bg-light{background:#20354f!important;color:#d5e5f8}html[data-led-theme="dark"] .editor-actions-dock,html[data-led-theme="dark"] .retail-dock,html[data-led-theme="dark"] .ws-dock{background:#192a41f5;border-color:#405775;color:#e6eef9}html[data-led-theme="dark"] .workspace-main .ws-mobile-table>table>tbody>tr{background:#192a41}html[data-led-theme="dark"] .workspace-main .ws-monitor-card .panel-meta{background:#20354f;color:#d5e5f8;border-color:#405775}
html[data-led-theme="dark"] .login-page .card{background:#192a41;color:#e6eef9;border-color:#405775!important}html[data-led-theme="dark"] .login-page .text-muted,html[data-led-theme="dark"] .login-page .login-help,html[data-led-theme="dark"] .login-page .form-label{color:#acbdd2!important}html[data-led-theme="dark"] .login-page .form-control{background:#122239;color:#e6eef9;border-color:#405775}
@media(max-width:991px){.navbar .ui-preferences-toggle{margin:0 0 8px}.ui-preferences-menu .dropdown-menu{position:static;margin-bottom:12px}.login-preferences .dropdown-menu{position:absolute}.login-preferences{right:16px;top:16px}}@media print{html[data-led-theme="dark"] body{background:#fff!important;color:#17243d}.ui-preferences-menu{display:none!important}}

html[data-led-theme="dark"] .workspace-main .btn-link{color:#a3c9ef}

.workspace-main .op-ring{background:conic-gradient(#298870 var(--rate),#edf2f8 0)}

/* V37: ações com cor e hierarquia, sem degradê nos botões. */
.workspace-main .btn-primary,.workspace-main .btn-success{font-weight:650;box-shadow:0 2px 5px #14243f18}
.workspace-main .btn-outline-primary{background:#eff5ff;color:#1d4ed8;border-color:#729cf5;font-weight:600}
.workspace-main .btn-outline-success{background:#ecfdf3;color:#15803d;border-color:#69b889;font-weight:600}
.workspace-main .btn-outline-primary:hover,.workspace-main .btn-outline-primary:focus-visible,.workspace-main .btn-check:checked+.btn-outline-primary{background:#2563eb;border-color:#2563eb;color:#fff}
.workspace-main .btn-outline-success:hover,.workspace-main .btn-outline-success:focus-visible{background:#15803d;border-color:#15803d;color:#fff}
.workspace-main .btn-primary:focus-visible,.workspace-main .btn-outline-primary:focus-visible{box-shadow:0 0 0 3px #2563eb40}
.workspace-main .btn-success:focus-visible,.workspace-main .btn-outline-success:focus-visible{box-shadow:0 0 0 3px #15803d40}
html[data-led-theme="dark"] .workspace-main .btn-outline-primary{background:#203c69;color:#b8d3ff;border-color:#6395fa}
html[data-led-theme="dark"] .workspace-main .btn-outline-success{background:#183e31;color:#9ae6b4;border-color:#4ba877}
html[data-led-theme="dark"] .workspace-main .btn-outline-primary:hover,html[data-led-theme="dark"] .workspace-main .btn-outline-primary:focus-visible{background:#2563eb;color:#fff}
html[data-led-theme="dark"] .workspace-main .btn-outline-success:hover,html[data-led-theme="dark"] .workspace-main .btn-outline-success:focus-visible{background:#15803d;color:#fff}

/* V43: atalhos em botões individuais. */
.ui-quick-tools{display:flex;align-items:center;gap:8px;margin-right:10px}
.ui-icon-button,.navbar .nav-link.ui-icon-button{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:9px!important;border:1px solid #ffffff38;border-radius:13px;color:#e4efff;background:#ffffff09;cursor:pointer;text-decoration:none}
.ui-icon-button:hover,.ui-icon-button:focus-visible,.navbar .nav-link.ui-icon-button:hover{background:#ffffff1c;color:#fff;border-color:#ffffff80}
.ui-icon-button:focus-visible{outline:2px solid #6cdbef;outline-offset:3px}
.navbar .ui-maintenance-toggle{margin-right:12px}
.ui-icon-button[aria-pressed="true"]{background:#ffffff20;border-color:#9cb9dc}
.login-preferences .ui-icon-button{color:#e4efff}
@media(max-width:991px){.ui-quick-tools{margin:6px 0 10px}.navbar .ui-maintenance-toggle{margin:0 0 10px}.ui-quick-tools .dropdown-menu{position:absolute;right:0;left:auto}.ui-quick-tools .ui-preferences-panel{width:280px}}

/* V47: atalhos e manutenção na mesma faixa no menu recolhido. */
@media(max-width:991px){
 .navbar .ws-account-nav{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start;gap:8px}
 .navbar .ws-account-nav>[data-menu="preferences"],.navbar .ws-account-nav>[data-menu="maintenance"]{flex:0 0 auto}
 .navbar .ws-account-nav .ui-quick-tools{margin:0}
 .navbar .ws-account-nav .ui-maintenance-toggle{margin:0}
 .navbar .ws-account-nav>.ws-user-menu{flex:0 0 100%;width:100%;margin-top:6px}
 .navbar .ws-account-nav>[data-menu="maintenance"]>.dropdown-menu{position:absolute;right:0;left:auto;width:min(290px,calc(100vw - 48px));max-height:65vh;overflow-y:auto}
}

@media(max-width:991px){
 .navbar .ws-account-nav,.navbar .ui-quick-tools{position:relative}
 .navbar .ws-account-nav>[data-menu="maintenance"],.navbar .ui-quick-tools .ui-preferences-menu{position:static}
 .navbar .ws-account-nav>[data-menu="maintenance"]>.dropdown-menu{top:50px}
 .navbar .ui-quick-tools .ui-preferences-panel{left:0;right:auto;top:50px}
}

.led-monitor-overlay{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#0c1729;overflow:hidden}.led-monitor-overlay::backdrop{background:#0c1729}.led-monitor-overlay iframe{display:block;width:100%;height:100%;border:0}.led-monitor-exit{position:absolute;top:8px;right:12px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border:1px solid #54708d;border-radius:8px;background:#142944;color:#fff;font-size:24px;cursor:pointer}.monitor-overlay-open{overflow:hidden!important}

:root:not([data-led-theme="dark"]) .led-monitor-overlay,:root:not([data-led-theme="dark"]) .led-monitor-overlay::backdrop{background:#f3f6fa}:root:not([data-led-theme="dark"]) .led-monitor-exit{background:#f4f7fb;color:#18314e;border-color:#dbe4ef}.led-monitor-exit:focus-visible{outline:2px solid #00d5e9;outline-offset:2px}
