/**
 * NEXUS Command Center (Modern) — pele comparável, último no head.
 * Só aplica com html[data-nx-theme="command"]. O toggle é visível nos dois temas.
 * Tokens em @layer; overrides de UI ficam unlayered para ganhar do CSS modular.
 */
@layer command.tokens, command.base, command.components, command.overrides;

/* -------------------------------------------------------------------------- */
/* Interruptor (classic + command)                                            */
/* -------------------------------------------------------------------------- */

.nx-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.28);
    color: #c5ccd4;
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    white-space: nowrap;
    text-transform: none;
    box-shadow: none;
}

.nx-theme-toggle:hover,
.nx-theme-toggle:focus-visible {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
    outline: none;
}

.nx-theme-toggle__label {
    opacity: 0.75;
    font-weight: 600;
}

.nx-theme-toggle__value {
    color: #fff;
    font-weight: 600;
}

.nx-tools-bar .nx-theme-toggle {
    flex-shrink: 0;
}

.nx-tools-bar__end {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex-shrink: 0;
}

.nx-bar-actions .nx-theme-toggle {
    height: auto;
    min-height: 32px;
    border-radius: 999px;
    background: transparent;
    border-color: transparent;
    padding: 4px 10px;
}

.nx-bar-actions .nx-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

.nx-theme-toggle--auth {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
}

html[data-nx-theme="command"] .nx-theme-toggle {
    background: #1c2028;
    border-color: rgba(107, 168, 196, 0.4);
    color: #9aa3ad;
}

html[data-nx-theme="command"] .nx-theme-toggle__value {
    color: #e6e8eb;
}

html[data-nx-theme="command"] .nx-bar-actions .nx-theme-toggle {
    background: transparent;
    border-color: transparent;
}

/* -------------------------------------------------------------------------- */
/* Tokens                                                                     */
/* -------------------------------------------------------------------------- */

@layer command.tokens {
html[data-nx-theme="command"] {
    --bg-dark: #0b0d10;
    --bg-panel: #14171c;
    --bg-sidebar: #0b0d10;
    --bg-header: #14171c;
    --primary: #6ba8c4;
    --text-main: #e6e8eb;
    --text-muted: #9aa3ad;
    --border-color: #2a3038;
    --con-offline: #c45b5b;
    --con-online: #5ba89a;
    --nx-neon: #6ba8c4;
    --nx-neon-dim: rgba(107, 168, 196, 0.28);
    --nx-purple: #6ba8c4;
    --nx-purple-glow: transparent;
    --nx-magenta: #c45b5b;
    --nx-glass: #14171c;
    --nx-glass-border: #2a3038;
    --nx-glow-primary: none;
    --accent-success: #5ba89a;
    --accent-warning: #c4a15b;
    --accent-danger: #c45b5b;
    --surface-0: #0b0d10;
    --surface-1: #14171c;
    --surface-2: #1c2028;
    --surface-input: #1c2028;
    --nx-form-bg: #0b0d10;
    --nx-form-surface: #14171c;
    --nx-form-input: #1c2028;
    --nx-form-border: #2a3038;
    --nx-form-muted: #9aa3ad;
    --nx-form-text: #e6e8eb;
    --nx-form-neon: #6ba8c4;
    --nx-form-primary: #6ba8c4;
    --nx-focus: #6ba8c4;
    --nx-op-glass: #14171c;
    --nx-op-glass-hover: #1c2028;
    --nx-op-border: #2a3038;
    --nx-op-neon: #6ba8c4;
    --nx-op-purple: #6ba8c4;
    color-scheme: dark;
}
}

html[data-nx-theme="command"],
html[data-nx-theme="command"] body {
    background: #0b0d10;
    color: #e6e8eb;
    font-weight: 400;
}

html[data-nx-theme="command"] body.nx-future,
html[data-nx-theme="command"] body.nx-auth-page,
html[data-nx-theme="command"] body.nx-auth-future,
html[data-nx-theme="command"] body.nx-panel-body {
    background: #0b0d10;
}

/* -------------------------------------------------------------------------- */
/* Kill GPU: blur, glow, partículas, shimmer                                  */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] *,
html[data-nx-theme="command"] *::before,
html[data-nx-theme="command"] *::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html[data-nx-theme="command"] *:not(.nx-live-dot):not(.nx-mat-routes__live-dot):not(.nx-copilot-fab--urgent):not(.nx-copilot-fab--alert):not(.nx-copilot-fab-badge--urgent):not(.nx-copilot-fab-badge--alert),
html[data-nx-theme="command"] *:not(.nx-copilot-fab-host--urgent)::before,
html[data-nx-theme="command"] *:not(.nx-copilot-fab-host--urgent)::after {
    animation: none !important;
}

html[data-nx-theme="command"] .nx-brain-logo svg,
html[data-nx-theme="command"] .nx-tools-bar__brand .nx-brain-logo svg,
html[data-nx-theme="command"] .nx-hub-hero__logo .nx-brain-logo svg,
html[data-nx-theme="command"] .nx-auth-logo .nx-brain-logo svg {
    filter: none !important;
}

html[data-nx-theme="command"] .nx-hub-hero__glow,
html[data-nx-theme="command"] .nx-app-ambient,
html[data-nx-theme="command"] #nx-particles,
html[data-nx-theme="command"] .nx-auth-ambient {
    display: none !important;
}

html[data-nx-theme="command"] body.nx-future .main-content::after,
html[data-nx-theme="command"] .main-content::after {
    display: none !important;
    content: none !important;
    background: none !important;
    filter: none !important;
    animation: none !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-live-dot,
html[data-nx-theme="command"] .nx-mat-routes__live-dot {
    animation: nx-cmd-live 1.6s ease-in-out infinite !important;
    box-shadow: none !important;
    filter: none !important;
    transform: none !important;
    background: #5ba89a;
}

@keyframes nx-cmd-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-nx-theme="command"] *,
    html[data-nx-theme="command"] *::before,
    html[data-nx-theme="command"] *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

html[data-nx-theme="command"]::view-transition-old(root),
html[data-nx-theme="command"]::view-transition-new(root) {
    animation: none !important;
}

/* -------------------------------------------------------------------------- */
/* Títulos: sentence case, peso 600                                           */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] h1,
html[data-nx-theme="command"] h2,
html[data-nx-theme="command"] h3,
html[data-nx-theme="command"] .nx-tools-bar__title,
html[data-nx-theme="command"] .nx-hub-hero__title,
html[data-nx-theme="command"] .nx-hub-hero__eyebrow,
html[data-nx-theme="command"] .nx-hub-tools__heading,
html[data-nx-theme="command"] .nx-status-label,
html[data-nx-theme="command"] .nx-menu-group__toggle,
html[data-nx-theme="command"] .nx-op-block__head,
html[data-nx-theme="command"] .status-title,
html[data-nx-theme="command"] .nx-auth-logo {
    text-transform: none;
    font-weight: 600;
    letter-spacing: 0.01em;
}

html[data-nx-theme="command"] .nx-tools-bar__title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #e6e8eb;
    color: #e6e8eb;
}

/* -------------------------------------------------------------------------- */
/* Hub / tools bar                                                            */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] .nx-tools-bar {
    background: #14171c;
    border: 1px solid #2a3038;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

html[data-nx-theme="command"] .nx-hub-hero {
    background: #14171c;
    border: 1px solid #2a3038;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

html[data-nx-theme="command"] .nx-hub-hero__eyebrow {
    color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-hub-hero__title {
    color: #e6e8eb;
    font-size: 1.65rem;
}

html[data-nx-theme="command"] .nx-hub-hero__sub {
    color: #9aa3ad;
}

html[data-nx-theme="command"] .nx-hub-hero__avatar {
    background: #1c2028;
    border: 1px solid #2a3038;
    color: #e6e8eb;
    font-weight: 600;
}

html[data-nx-theme="command"] .nx-hub-back {
    color: #6ba8c4;
    background: #1c2028;
    border: 1px solid #2a3038;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-hub-back:hover {
    color: #e6e8eb;
    background: #1c2028;
    border-color: #6ba8c4;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-ger-card,
html[data-nx-theme="command"] .nx-hub-grid__cell .nx-ger-card {
    background: #14171c;
    border: 1px solid #2a3038;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

html[data-nx-theme="command"] .nx-ger-card:hover {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    border-color: #6ba8c4;
}

/* -------------------------------------------------------------------------- */
/* Sidebar                                                                    */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] .sidebar {
    background: #0b0d10;
    border-right: 1px solid #2a3038;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-menu-group__toggle:hover,
html[data-nx-theme="command"] .nx-menu-group.is-open > .nx-menu-group__toggle,
html[data-nx-theme="command"] .nx-menu-sub__link:hover,
html[data-nx-theme="command"] .nx-menu-sub__link.active {
    background-color: #1c2028;
    color: #e6e8eb;
}

html[data-nx-theme="command"] .nx-menu-sub__link.active {
    border-left: 2px solid #6ba8c4;
}

/* -------------------------------------------------------------------------- */
/* Barra de listas                                                            */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] .nx-status-bar,
html[data-nx-theme="command"] body.nx-future .main-content > .nx-status-bar {
    background: #14171c;
    border: 1px solid #2a3038;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

html[data-nx-theme="command"] .nx-bar-actions {
    background: #1c2028;
    border-color: #2a3038;
}

html[data-nx-theme="command"] .nx-global-search__input {
    background: #1c2028;
    border-color: #2a3038;
    color: #e6e8eb;
}

/* -------------------------------------------------------------------------- */
/* Lista operacional                                                          */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] .nx-op-list,
html[data-nx-theme="command"] #nx-lista-sync.nx-op-list {
    --nx-op-glass: #14171c;
    --nx-op-glass-hover: #1c2028;
    --nx-op-border: #2a3038;
    --nx-op-neon: #6ba8c4;
    --nx-op-purple: #6ba8c4;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-block__head,
html[data-nx-theme="command"] .nx-op-list .status-title {
    background: #14171c;
    border: 1px solid #2a3038;
    box-shadow: none;
    color: #e6e8eb;
}

/* content-visibility nas rows/blocos da lista escondia O.S. no Andamento.
   Recuo: só cards do Hub. */
html[data-nx-theme="command"] .nx-ger-card {
    content-visibility: auto;
    contain-intrinsic-size: auto 120px;
}

html[data-nx-theme="command"] .nx-lista-table,
html[data-nx-theme="command"] .nx-op-table {
    background: #14171c;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-table tbody tr.activity-row:hover,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table tr.activity-row:hover {
    background-color: #1c2028;
}

/* -------------------------------------------------------------------------- */
/* Tags: cor na borda e nas letras (mesmo recorte do título do menu)          */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] .nx-tag-neon,
html[data-nx-theme="command"] [class*="bg-tag-"].nx-qe-chip--tag,
html[data-nx-theme="command"] [class*="bg-tag-"].micro-tag,
html[data-nx-theme="command"] .nx-ms__tag-pill,
html[data-nx-theme="command"] .nx-ms-field__chip.nx-tag-neon {
    --nx-tag-glass: #1c2028;
    --nx-tag-glow-a: transparent;
    --nx-tag-glow-b: transparent;
    --nx-tag-outer: transparent;
    --nx-tag-inset: transparent;
    background: #1c2028;
    box-shadow: none;
    border-style: solid;
    border-width: 1px;
    border-color: var(--nx-tag-accent, #6ba8c4);
    color: var(--nx-tag-accent, #6ba8c4);
}

html[data-nx-theme="command"] .nx-tag-neon i,
html[data-nx-theme="command"] [class*="bg-tag-"].nx-qe-chip--tag i,
html[data-nx-theme="command"] .nx-ms__tag-pill i,
html[data-nx-theme="command"] .nx-ms-field__chip.nx-tag-neon i {
    color: inherit;
}

html[data-nx-theme="command"] .nx-fibra-chip {
    --nx-tag-accent: #2dd4bf;
}

html[data-nx-theme="command"] .nx-fibra-chip--avulsa {
    --nx-tag-accent: #94a3b8;
}

html[data-nx-theme="command"] .nx-fibra-chip--encerrado {
    --nx-tag-accent: #5eead4;
}

/* -------------------------------------------------------------------------- */
/* Form (iframe e painel)                                                     */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] .nx-form-sidebar,
html[data-nx-theme="command"] .nx-form-sidebar.sidebar-container {
    background: #0b0d10;
    color: #e6e8eb;
}

html[data-nx-theme="command"] .nx-form-sidebar .form-control,
html[data-nx-theme="command"] .nx-form-sidebar input,
html[data-nx-theme="command"] .nx-form-sidebar select,
html[data-nx-theme="command"] .nx-form-sidebar textarea,
html[data-nx-theme="command"] body.nx-panel-body .form-control {
    background: #1c2028;
    border: 1px solid #2a3038;
    color: #e6e8eb;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-form-sidebar .form-control:focus,
html[data-nx-theme="command"] body.nx-panel-body .form-control:focus {
    border-color: #6ba8c4;
    outline: none;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-inf-form-hint {
    background: #14171c;
    border: 1px solid #2a3038;
    color: #9aa3ad;
}

html[data-nx-theme="command"] .nx-form-delete-btn {
    color: #c45b5b;
    border-color: rgba(196, 91, 91, 0.45);
    background: #14171c;
}

html[data-nx-theme="command"] .btn-primary,
html[data-nx-theme="command"] .btn-nexus-success,
html[data-nx-theme="command"] .nx-auth-submit {
    background: #5ba89a;
    color: #0b0d10;
    border-color: #5ba89a;
    box-shadow: none;
}

html[data-nx-theme="command"] ::-webkit-scrollbar-thumb:hover {
    background-color: #6ba8c4;
}

/* -------------------------------------------------------------------------- */
/* Login                                                                      */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] .nx-auth-card {
    background: #14171c;
    border: 1px solid #2a3038;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
}

html[data-nx-theme="command"] .nx-auth-tagline {
    color: #9aa3ad;
    text-transform: none;
    font-weight: 400;
}

html[data-nx-theme="command"] .nx-auth-page .input-group input {
    background: #1c2028;
    border: 1px solid #2a3038;
    color: #e6e8eb;
}

/* -------------------------------------------------------------------------- */
/* Rework layout — primitivas, chrome, hub, lista, form, fibra                 */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] {
    --nx-r-box: 6px;
    --nx-r-card: 10px;
    --nx-r-pill: 999px;
}

.nx-theme-copy--command {
    display: none;
}

.nx-qe-chip__full {
    display: none;
}

html[data-nx-theme="command"] .nx-theme-copy--classic {
    display: none !important;
}

html[data-nx-theme="command"] .nx-theme-copy--command {
    display: inline;
}

html[data-nx-theme="command"] .nx-qe-chip__short {
    display: none !important;
}

html[data-nx-theme="command"] .nx-qe-chip__full {
    display: inline;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-nx-layout-debug="1"] .nx-layout-overflow {
    outline: 2px solid #c45b5b !important;
    outline-offset: 1px;
}

html[data-nx-layout-debug="1"] .nx-layout-padeat {
    outline: 2px solid #c9a227 !important;
    outline-offset: 1px;
}

html[data-nx-layout-debug="1"] .nx-layout-overlap {
    outline: 2px solid #c45b9a !important;
    outline-offset: 2px;
}

html[data-nx-layout-debug="1"] .nx-layout-flush {
    outline: 2px solid #6ba8c4 !important;
    outline-offset: 1px;
}

html[data-nx-layout-debug="1"] .nx-layout-touch {
    outline: 2px solid #c47a3a !important;
    outline-offset: 1px;
}

html[data-nx-theme="command"] .nx-op-th,
html[data-nx-theme="command"] .nx-op-thead th,
html[data-nx-theme="command"] .status-pill-text,
html[data-nx-theme="command"] .nx-qe-chip--tag,
html[data-nx-theme="command"] .subgroup-title,
html[data-nx-theme="command"] .nx-op-region__head,
html[data-nx-theme="command"] .sidebar-label,
html[data-nx-theme="command"] .nx-lista-group-toggle__label,
html[data-nx-theme="command"] .nx-qe-menu__title,
html[data-nx-theme="command"] .btn-save,
html[data-nx-theme="command"] .nx-tools-bar__role,
html[data-nx-theme="command"] .nx-rf__label {
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
}

/* Chrome: search + actions + sidebar */
html[data-nx-theme="command"] .nx-status-bar--lean,
html[data-nx-theme="command"] body.nx-future .main-content > .nx-status-bar.nx-status-bar--lean {
    gap: 10px;
    min-width: 0;
}

html[data-nx-theme="command"] .nx-status-bar--lean .nx-status-bar__center {
    min-width: 0;
    flex: 1 1 auto;
}

html[data-nx-theme="command"] .nx-bar-actions {
    min-width: 0;
    flex-shrink: 1;
    border-radius: var(--nx-r-pill);
}

html[data-nx-theme="command"] .nx-bar-actions .nx-theme-toggle {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    border-radius: var(--nx-r-pill);
    padding: 4px 8px;
}

html[data-nx-theme="command"] .nx-bar-user-pill__avatar {
    background: #1c2028;
    color: #e6e8eb;
    font-weight: 600;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-bar-user-pill__gear {
    color: #6ba8c4;
}

html[data-nx-theme="command"] body.nx-future .menu a:hover,
html[data-nx-theme="command"] body.nx-future .menu a.active {
    background: #1c2028;
    border-left: 2px solid #6ba8c4;
    box-shadow: none;
}

html[data-nx-theme="command"] body.nx-future .menu a.active i {
    color: #6ba8c4;
    filter: none;
}

html[data-nx-theme="command"] .nx-menu-sub__link.active {
    box-shadow: none;
    border-radius: var(--nx-r-box);
}

html[data-nx-theme="command"] .sidebar .menu a,
html[data-nx-theme="command"] .nx-menu-group__toggle,
html[data-nx-theme="command"] .nx-menu-sub__link {
    border-radius: var(--nx-r-box);
    min-width: 0;
}

html[data-nx-theme="command"] .nx-menu-group__toggle .nav-text,
html[data-nx-theme="command"] .nx-menu-sub__link .nav-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 900px) {
    html[data-nx-theme="command"] .nx-status-bar--lean {
        flex-wrap: wrap;
    }
    html[data-nx-theme="command"] .nx-theme-toggle__label {
        display: none;
    }
}

/* Hub cards */
html[data-nx-theme="command"] .nx-hub-hero,
html[data-nx-theme="command"] .nx-ger-card,
html[data-nx-theme="command"] .nx-tools-bar {
    border-radius: var(--nx-r-card);
}

html[data-nx-theme="command"] .nx-ger-card {
    gap: 14px;
    padding: 18px 16px;
    min-width: 0;
    transform: none;
}

html[data-nx-theme="command"] .nx-ger-card:hover {
    transform: none;
}

html[data-nx-theme="command"] .nx-ger-card__icon {
    width: 40px;
    height: 40px;
    border-radius: var(--nx-r-box);
    background: #1c2028;
    color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-ger-card--profile .nx-ger-card__icon,
html[data-nx-theme="command"] .nx-ger-card--cadastros .nx-ger-card__icon,
html[data-nx-theme="command"] .nx-ger-card--users .nx-ger-card__icon {
    background: #1c2028;
    color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-ger-card__title {
    font-weight: 600;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-nx-theme="command"] .nx-ger-card__desc {
    overflow-wrap: break-word;
}

html[data-nx-theme="command"] .nx-ger-card__arrow {
    color: #9aa3ad;
}

/* Lista: colunas, pills, raios */
html[data-nx-theme="command"] .nx-op-list .nx-op-th--status {
    width: 140px;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-th--tags {
    width: 132px;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-th--local,
html[data-nx-theme="command"] .nx-op-list .nx-op-th--motivo {
    min-width: 96px;
}

html[data-nx-theme="command"] .nx-op-list .tag-stack,
html[data-nx-theme="command"] #nx-lista-sync .tag-stack {
    max-width: 100%;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-block__head,
html[data-nx-theme="command"] .nx-op-list .status-title,
html[data-nx-theme="command"] .nx-op-list .nx-op-region__head,
html[data-nx-theme="command"] .nx-op-list .subgroup-title,
html[data-nx-theme="command"] .nx-op-list .nx-op-team,
html[data-nx-theme="command"] .nx-op-list .sub-subgroup-container {
    border-radius: var(--nx-r-card) !important;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-region__head,
html[data-nx-theme="command"] .nx-op-list .subgroup-title {
    border-left: 2px solid #6ba8c4;
    background: #14171c;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-table tbody tr.activity-row td,
html[data-nx-theme="command"] .nx-op-list .nx-op-table tbody tr.activity-row td:first-child,
html[data-nx-theme="command"] .nx-op-list .nx-op-table tbody tr.activity-row td:last-child {
    border-radius: var(--nx-r-box);
}

html[data-nx-theme="command"] #nx-lista-sync .pill-wrapper.status-pill-trigger,
html[data-nx-theme="command"] #nx-lista-sync .status-pill-trigger,
html[data-nx-theme="command"] .nx-op-list .status-pill-trigger {
    min-width: 0 !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    min-height: 26px !important;
    padding: 3px 10px !important;
    border-radius: var(--nx-r-pill) !important;
    display: inline-flex !important;
    align-items: center;
    box-sizing: border-box;
}

html[data-nx-theme="command"] #nx-lista-sync .status-pill-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.72rem !important;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-qe-field,
html[data-nx-theme="command"] .nx-op-list .nx-qe-field {
    min-width: 0;
    max-width: 100%;
    border-radius: var(--nx-r-box);
    box-sizing: border-box;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-qe-chip--tag,
html[data-nx-theme="command"] .nx-op-list .micro-tag,
html[data-nx-theme="command"] .nx-qe-chip.micro-tag {
    border-radius: var(--nx-r-box) !important;
    font-weight: 600 !important;
    font-size: 0.68rem !important;
    max-width: 100%;
    min-width: 0;
}

html[data-nx-theme="command"] .nx-qe-field__chips {
    min-width: 0;
    flex: 1;
}

html[data-nx-theme="command"] .nx-op-td--local,
html[data-nx-theme="command"] .nx-op-td--motivo,
html[data-nx-theme="command"] .col-local,
html[data-nx-theme="command"] .col-motivo,
html[data-nx-theme="command"] .nx-op-td--relato,
html[data-nx-theme="command"] .col-relato,
html[data-nx-theme="command"] body.nx-side-panel-docked-open #nx-lista-sync .nx-op-td--local,
html[data-nx-theme="command"] body.nx-side-panel-docked-open #nx-lista-sync .nx-op-td--motivo,
html[data-nx-theme="command"] body.nx-side-panel-docked-open #nx-lista-sync .col-local,
html[data-nx-theme="command"] body.nx-side-panel-docked-open #nx-lista-sync .col-motivo,
html[data-nx-theme="command"] body.nx-side-panel-docked-open #nx-lista-sync .nx-op-td--relato,
html[data-nx-theme="command"] body.nx-side-panel-docked-open #nx-lista-sync .col-relato {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: normal;
}

html[data-nx-theme="command"] .nx-qe-menu {
    width: auto !important;
    max-width: 240px !important;
    min-width: 160px;
    border-radius: var(--nx-r-card);
}

html[data-nx-theme="command"] .nx-ms__tag-pill {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Form iframe leftovers */
html[data-nx-theme="command"] .tab-btn.active {
    border-bottom-color: #6ba8c4 !important;
    color: #e6e8eb !important;
}

html[data-nx-theme="command"] .chat-msg.me,
html[data-nx-theme="command"] .btn-send {
    background-color: #6ba8c4 !important;
    color: #0b0d10 !important;
}

html[data-nx-theme="command"] .log-item {
    border-left-color: #6ba8c4 !important;
}

html[data-nx-theme="command"] .select2-container--default .select2-results__option--highlighted[aria-selected],
html[data-nx-theme="command"] .select2-container--default .select2-results__option--highlighted[aria-selected="true"] {
    background-color: #6ba8c4 !important;
    color: #0b0d10 !important;
}

html[data-nx-theme="command"] ::-webkit-scrollbar-thumb:hover {
    background-color: #6ba8c4 !important;
}

html[data-nx-theme="command"] .nx-form-sidebar .btn-save {
    background: #6ba8c4 !important;
    color: #0b0d10 !important;
    box-shadow: none !important;
    text-transform: none !important;
    border-radius: var(--nx-r-card);
}

html[data-nx-theme="command"] .nx-form-sidebar .btn-save:hover:not(:disabled) {
    transform: none;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-form-sidebar label.sidebar-label[style] {
    color: #6ba8c4 !important;
}

html[data-nx-theme="command"] .select2-container--default .select2-selection--single,
html[data-nx-theme="command"] .select2-container--default .select2-selection--multiple {
    background: #1c2028 !important;
    border-color: #2a3038 !important;
    min-width: 0;
    max-width: 100%;
}

html[data-nx-theme="command"] .flatpickr-day.selected,
html[data-nx-theme="command"] .flatpickr-day.startRange,
html[data-nx-theme="command"] .flatpickr-day.endRange {
    background: #6ba8c4 !important;
    border-color: #6ba8c4 !important;
}

/* Fibra / relatórios / login */
html[data-nx-theme="command"] .nx-rep-hero,
html[data-nx-theme="command"] .nx-rf,
html[data-nx-theme="command"] .nx-rep-table-wrap {
    background: #14171c;
    border: 1px solid #2a3038;
    border-radius: var(--nx-r-card);
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-rep-btn--primary,
html[data-nx-theme="command"] .nx-rf__apply {
    background: #6ba8c4 !important;
    color: #0b0d10 !important;
    border-color: #6ba8c4 !important;
    box-shadow: none !important;
    border-radius: var(--nx-r-pill);
}

html[data-nx-theme="command"] .nx-page--fibra-report .nx-rf__field input,
html[data-nx-theme="command"] .nx-page--fibra-report .nx-rf__field select,
html[data-nx-theme="command"] .nx-fibra-qtd-input,
html[data-nx-theme="command"] .nx-fibra-proj-nome__input {
    background: #1c2028 !important;
    border-color: #2a3038 !important;
    color: #e6e8eb !important;
    border-radius: var(--nx-r-box) !important;
    min-width: 0;
    max-width: 100%;
}

html[data-nx-theme="command"] .nx-auth-card {
    border-radius: var(--nx-r-card);
    padding: 28px 24px;
    position: relative;
}

html[data-nx-theme="command"] .nx-theme-toggle--auth {
    border-radius: var(--nx-r-pill);
}

/* Form chips / leftover Discord on cadastros */
html[data-nx-theme="command"] .nx-ms-field__chip,
html[data-nx-theme="command"] .nx-ms__tag-pill {
    text-transform: none !important;
    font-weight: 600 !important;
    border-radius: var(--nx-r-box) !important;
    min-width: 0;
    max-width: 100%;
}

html[data-nx-theme="command"] body.nx-panel-body {
    background: #0b0d10;
    color: #e6e8eb;
}

html[data-nx-theme="command"] body.nx-panel-body .btn-primary {
    background: #6ba8c4 !important;
    color: #0b0d10 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] body.nx-panel-body .form-control:focus {
    border-color: #6ba8c4 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] body.nx-panel-body label {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
}

/* Gerência / notas */
html[data-nx-theme="command"] .nx-ger-back {
    color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-ger-back:hover {
    color: #e6e8eb;
}

html[data-nx-theme="command"] .nx-ger-hero__icon {
    background: #1c2028;
    border: 1px solid #2a3038;
    color: #6ba8c4;
    border-radius: var(--nx-r-card);
}

html[data-nx-theme="command"] .nx-ger-stat {
    background: #14171c;
    border-color: #2a3038;
    border-radius: var(--nx-r-card);
}

html[data-nx-theme="command"] .nx-ger-stat__lbl,
html[data-nx-theme="command"] .nx-rel-release__date,
html[data-nx-theme="command"] .nx-rel-item__badge {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
}

html[data-nx-theme="command"] .nx-rel-release__date {
    color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-rel-release__head {
    background: #14171c;
}

html[data-nx-theme="command"] .nx-rel-release {
    background: #14171c;
    border-color: #2a3038;
    border-radius: var(--nx-r-card);
}

html[data-nx-theme="command"] .nx-ger-card:hover {
    transform: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    border-color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-ger-card__arrow {
    color: #6ba8c4;
}

/* Flow / Preventivas — pele Command (aço, sem pílula nem verde-menta) */
html[data-nx-theme="command"] .nx-fc-title {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #e6e8eb;
    color: #e6e8eb;
}

html[data-nx-theme="command"] .nx-fc-title__icon {
    background: #1c2028;
    border-color: #2a3038;
    color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-fc-cta,
html[data-nx-theme="command"] .nx-fc-btn-save {
    background: #6ba8c4 !important;
    border-color: #6ba8c4 !important;
    color: #0b0d10 !important;
    box-shadow: none !important;
    text-transform: none !important;
    border-radius: var(--nx-r-box);
}

html[data-nx-theme="command"] .nx-fc-tab[aria-selected="true"] {
    border-bottom-color: #6ba8c4;
    background: transparent;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-fc-dialog,
html[data-nx-theme="command"] .nx-fc-table-wrap {
    background: #14171c;
    border-color: #2a3038;
    box-shadow: none;
    border-radius: var(--nx-r-card);
}

html[data-nx-theme="command"] .nx-fc-table thead th {
    background: #14171c;
    color: #9aa3ad;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
}

html[data-nx-theme="command"] .nx-fc-field label,
html[data-nx-theme="command"] .nx-fc-dialog__title,
html[data-nx-theme="command"] .nx-fc-history__label {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
}

html[data-nx-theme="command"] .nx-fc-table tbody tr:hover,
html[data-nx-theme="command"] .nx-fc-table tbody tr.selected-row {
    background: #1c2028 !important;
}

html[data-nx-theme="command"] .nx-fc-table tbody tr.selected-row {
    box-shadow: inset 2px 0 0 #6ba8c4;
}

html[data-nx-theme="command"] .nx-fc-input:focus {
    border-color: #6ba8c4 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-fc-link {
    color: #6ba8c4;
}

/* Disponibilidade */
html[data-nx-theme="command"] .nx-disp-card {
    background: #14171c !important;
    border-color: #2a3038 !important;
    border-radius: var(--nx-r-card) !important;
}

html[data-nx-theme="command"] .nx-disp-head {
    background: #1c2028 !important;
    border-color: #2a3038 !important;
}

html[data-nx-theme="command"] .nx-disp-head h3,
html[data-nx-theme="command"] .nx-disp-status {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
}

html[data-nx-theme="command"] .nx-disp-badge--noc,
html[data-nx-theme="command"] .nx-disp-avatar--noc {
    background: #6ba8c4 !important;
    color: #0b0d10 !important;
}

html[data-nx-theme="command"] .nx-disp-row {
    background: #1c2028 !important;
    border-color: #2a3038 !important;
    border-radius: var(--nx-r-box) !important;
}

/* -------------------------------------------------------------------------- */
/* 2.2.5 leftovers — lista thead/grip, QE, chrome, ecrãs órfãos               */
/* -------------------------------------------------------------------------- */

.nx-col-grip {
    display: none;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-thead th,
html[data-nx-theme="command"] .nx-op-list .nx-op-th,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table th {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    text-transform: none !important;
    color: #9aa3ad !important;
    border-bottom: 1px solid #2a3038 !important;
    padding: 8px 10px !important;
    min-width: 0;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-th--analistas,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table th.nx-op-th--analistas {
    color: #8b9aff !important;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-op-th.nx-col-draggable::before {
    content: none !important;
    display: none !important;
}

html[data-nx-theme="command"] .nx-col-grip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #9aa3ad;
    cursor: grab;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

html[data-nx-theme="command"] .nx-op-th.nx-col-draggable {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

html[data-nx-theme="command"] .nx-col-grip::before {
    content: "";
    width: 10px;
    height: 12px;
    background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.25px);
    background-size: 4px 4px;
    background-repeat: repeat;
    opacity: 0.85;
}

html[data-nx-theme="command"] .nx-op-th.nx-col-draggable:hover .nx-col-grip {
    color: #6ba8c4;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-col-resizer:hover {
    background: rgba(107, 168, 196, 0.28);
}

html[data-nx-theme="command"] #nx-lista-sync .nx-op-th.nx-col-drop-target {
    box-shadow: inset 0 -2px 0 #6ba8c4;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-block__head:hover,
html[data-nx-theme="command"] .nx-op-list .status-title:hover,
html[data-nx-theme="command"] .nx-op-list .nx-op-team:hover,
html[data-nx-theme="command"] .nx-op-list .nx-op-block[class*="nx-op-block--"] .nx-op-block__head:hover {
    border-color: #2a3038 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-lista-group-toggle.is-active {
    color: #6ba8c4 !important;
    border-color: #6ba8c4 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-block[class*="nx-op-block--"] .nx-op-block__head::before {
    box-shadow: none !important;
    width: 2px;
    opacity: 0.72;
    background: var(--nx-status-accent, #6ba8c4) !important;
}

html[data-nx-theme="command"] #nx-lista-sync .status-pill-trigger,
html[data-nx-theme="command"] .nx-op-list .status-pill-trigger {
    box-shadow: none !important;
    background: #1c2028 !important;
}

html[data-nx-theme="command"] #nx-lista-sync .status-pill-trigger:hover {
    border-color: #6ba8c4 !important;
}

html[data-nx-theme="command"] #nx-lista-sync .status-pill-text {
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}

html[data-nx-theme="command"] #nx-lista-sync .st-quadro {
    background: rgba(129, 140, 248, 0.12) !important;
    border-color: rgba(165, 180, 252, 0.42) !important;
}
html[data-nx-theme="command"] #nx-lista-sync .st-informativo {
    background: rgba(34, 211, 238, 0.1) !important;
    border-color: rgba(34, 211, 238, 0.38) !important;
}
html[data-nx-theme="command"] #nx-lista-sync .st-aguardando-material {
    background: rgba(248, 113, 113, 0.1) !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
}
html[data-nx-theme="command"] #nx-lista-sync .st-aguardando {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.38) !important;
}
html[data-nx-theme="command"] #nx-lista-sync .st-acionar {
    background: rgba(250, 204, 21, 0.1) !important;
    border-color: rgba(250, 204, 21, 0.38) !important;
}
html[data-nx-theme="command"] #nx-lista-sync .st-em-andamento {
    background: rgba(251, 146, 60, 0.12) !important;
    border-color: rgba(251, 146, 60, 0.42) !important;
}
html[data-nx-theme="command"] #nx-lista-sync .st-agendar---confirmar {
    background: rgba(132, 181, 132, 0.12) !important;
    border-color: rgba(132, 181, 132, 0.4) !important;
}
html[data-nx-theme="command"] #nx-lista-sync .st-concluída,
html[data-nx-theme="command"] #nx-lista-sync .st-concluida {
    background: rgba(52, 211, 153, 0.1) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
}
html[data-nx-theme="command"] #nx-lista-sync .st-pendente-baixa-da-o-s- {
    background: rgba(161, 161, 170, 0.1) !important;
    border-color: rgba(161, 161, 170, 0.38) !important;
}

html[data-nx-theme="command"] .nx-qe-menu {
    background: #14171c !important;
    border: 1px solid #2a3038 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45) !important;
}

html[data-nx-theme="command"] .nx-qe-menu__title {
    color: #9aa3ad !important;
    text-transform: none !important;
}

html[data-nx-theme="command"] .nx-qe-fp-anchor .flatpickr-day.selected,
html[data-nx-theme="command"] .nx-qe-fp-anchor .flatpickr-day.startRange,
html[data-nx-theme="command"] .nx-qe-fp-anchor .flatpickr-day.endRange {
    background: #6ba8c4 !important;
    border-color: #6ba8c4 !important;
    color: #0b0d10 !important;
}

html[data-nx-theme="command"] .fiber-label {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
}

html[data-nx-theme="command"] #filterModal h3,
html[data-nx-theme="command"] #filterModal button {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
}

html[data-nx-theme="command"] #filterModal button[type="submit"] {
    background: #6ba8c4 !important;
    color: #0b0d10 !important;
}

html[data-nx-theme="command"] .nx-brain-logo stop {
    stop-color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-bar-user-pill__gear,
html[data-nx-theme="command"] .nx-global-search__icon {
    color: #6ba8c4;
}

html[data-nx-theme="command"] .notif-header,
html[data-nx-theme="command"] .nexus-notif-dropdown {
    text-transform: none !important;
    background: #14171c;
    border: 1px solid #2a3038;
    border-radius: var(--nx-r-card);
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-chat-panel,
html[data-nx-theme="command"] #nxTeamChat,
html[data-nx-theme="command"] .nx-copilot-panel {
    background: #14171c;
    border-color: #2a3038;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-kpi-card,
html[data-nx-theme="command"] .nx-pipeline-card,
html[data-nx-theme="command"] .nx-attention-card,
html[data-nx-theme="command"] .nx-dash-hero {
    background: #14171c !important;
    border: 1px solid #2a3038 !important;
    border-radius: var(--nx-r-card) !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-kpi-card:hover,
html[data-nx-theme="command"] .nx-pipeline-card:hover {
    transform: none;
    border-color: #6ba8c4 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-kpi-card__label,
html[data-nx-theme="command"] .nx-pipeline-card__label,
html[data-nx-theme="command"] .nx-dash-hero__eyebrow {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
    color: #9aa3ad !important;
}

html[data-nx-theme="command"] .nx-kpi-card__icon,
html[data-nx-theme="command"] .nx-pipeline-card__icon {
    background: #1c2028 !important;
    color: #6ba8c4 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-pipeline-bar__seg--andamento,
html[data-nx-theme="command"] .nx-kpi-card--blue::before {
    background: #6ba8c4 !important;
}

html[data-nx-theme="command"] .nx-special-panel,
html[data-nx-theme="command"] .nx-inf-hero,
html[data-nx-theme="command"] .nx-special-page .nx-page-header {
    background: #14171c;
    border: 1px solid #2a3038;
    border-radius: var(--nx-r-card);
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-inf-hero__glow {
    display: none !important;
}

html[data-nx-theme="command"] .nx-copilot-page__header,
html[data-nx-theme="command"] .nx-copilot-page__shell,
html[data-nx-theme="command"] .nx-copilot-page__aside {
    background: #14171c;
    border-color: #2a3038;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-copilot-page__mode,
html[data-nx-theme="command"] .nx-copilot-page__title {
    text-transform: none !important;
    color: #e6e8eb;
}

html[data-nx-theme="command"] .nx-copilot-page__orb {
    display: none;
}

html[data-nx-theme="command"] .nx-rel-item__badge,
html[data-nx-theme="command"] .nx-page-title,
html[data-nx-theme="command"] .nx-escala [class*="label"],
html[data-nx-theme="command"] .nx-anotacoes [class*="label"],
html[data-nx-theme="command"] .nx-infraco [class*="eyebrow"],
html[data-nx-theme="command"] .nx-feedback-form__hint {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}

html[data-nx-theme="command"] .nx-feedback-field input:focus,
html[data-nx-theme="command"] .nx-feedback-form textarea:focus {
    border-color: #6ba8c4 !important;
}

html[data-nx-theme="command"] .nx-bar-user-pill__avatar {
    background: #1c2028 !important;
    color: #6ba8c4 !important;
    font-weight: 600 !important;
}

html[data-nx-theme="command"] .nx-bar-user-pill:hover .nx-bar-user-pill__gear,
html[data-nx-theme="command"] .nx-bar-user-pill:focus-visible .nx-bar-user-pill__gear {
    color: #8ec4d8 !important;
}

html[data-nx-theme="command"] .notification-wrapper:hover {
    transform: none;
    color: #6ba8c4;
}

html[data-nx-theme="command"] .notif-header {
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    color: #9aa3ad !important;
    background: #14171c !important;
}

html[data-nx-theme="command"] .notif-item:hover {
    background: #1c2028;
}

html[data-nx-theme="command"] #nxTeamChatPanel,
html[data-nx-theme="command"] .nx-team-chat,
html[data-nx-theme="command"] .nx-chat-drawer {
    background: #14171c !important;
    border-color: #2a3038 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] #nexus-toast,
html[data-nx-theme="command"] .nx-toast,
html[data-nx-theme="command"] .nexus-activity-popup {
    background: #14171c !important;
    border: 1px solid #2a3038 !important;
    border-radius: var(--nx-r-card) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

html[data-nx-theme="command"] .nx-kpi-card--blue::before,
html[data-nx-theme="command"] .nx-pipeline-bar__seg--andamento,
html[data-nx-theme="command"] .nx-attention-card__pri--3 {
    background: #6ba8c4 !important;
}

html[data-nx-theme="command"] .nx-kpi-card--cyan::before,
html[data-nx-theme="command"] .nx-kpi-card--cyan .nx-kpi-card__icon {
    background: #1c2028 !important;
    color: #6ba8c4 !important;
}

html[data-nx-theme="command"] .nx-dash-hero,
html[data-nx-theme="command"] .nx-special-hero,
html[data-nx-theme="command"] .nx-inf-hero__title,
html[data-nx-theme="command"] .nx-mat-hero {
    background: #14171c !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-special-page [class*="glow"],
html[data-nx-theme="command"] .nx-inf-hero [class*="glow"] {
    display: none !important;
}

html[data-nx-theme="command"] .nx-copilot-page__mode,
html[data-nx-theme="command"] .nx-copilot-page [class*="eyebrow"] {
    color: #6ba8c4 !important;
}

html[data-nx-theme="command"] .nx-report-page [class*="badge"],
html[data-nx-theme="command"] .nx-report-kpis__label,
html[data-nx-theme="command"] .nx-rel-kpis span,
html[data-nx-theme="command"] .nx-esc-kpi span,
html[data-nx-theme="command"] .nx-esc-title,
html[data-nx-theme="command"] .nx-anot-page [class*="label"],
html[data-nx-theme="command"] .nx-anotacoes [class*="eyebrow"] {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}

html[data-nx-theme="command"] .nx-esc-kpi,
html[data-nx-theme="command"] .nx-esc-header,
html[data-nx-theme="command"] .nx-ret-header {
    border-radius: var(--nx-r-card);
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-rfo-status--aberto,
html[data-nx-theme="command"] .nx-ic-hero,
html[data-nx-theme="command"] .nx-infraco .nx-neon {
    color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-feedback-panel {
    background: #14171c;
    border-color: #2a3038;
    box-shadow: none;
}

/* -------------------------------------------------------------------------- */
/* 2.2.6 — spacing + leftovers de cor/CAPS                                    */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] {
    --nx-space-1: 4px;
    --nx-space-2: 8px;
    --nx-space-3: 12px;
    --nx-space-4: 16px;
    --nx-form-primary: #6ba8c4;
    --nx-form-neon: #6ba8c4;
    --nx-ms-purple: #6ba8c4;
    --nx-ms-neon: #6ba8c4;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table th.nx-op-th--local,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table th.nx-op-th--motivo,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table td.nx-op-td--local,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table td.nx-op-td--motivo {
    min-width: 120px;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table td {
    padding: 8px 10px;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table th.nx-op-th--actions,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table th.nx-op-th--id,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table td.nx-op-td--actions,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table td.nx-op-td--id {
    padding: 6px 4px !important;
    min-width: 40px;
}

html[data-nx-theme="command"] .nx-col-grip {
    width: 16px;
    height: 16px;
    left: 2px;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table tr.activity-row.selected-row {
    background-color: rgba(107, 168, 196, 0.12);
    border-left: 2px solid #6ba8c4 !important;
}

html[data-nx-theme="command"] #nx-lista-sync tr.activity-row .status-pill-trigger.st-em-andamento {
    background: rgba(251, 146, 60, 0.12) !important;
    border-color: rgba(251, 146, 60, 0.42) !important;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-block[class*="nx-op-block--"] .nx-op-block__head {
    background: #14171c !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-op-list .nx-op-team__head,
html[data-nx-theme="command"] .nx-op-list .sub-subgroup-title {
    background: #14171c !important;
}

html[data-nx-theme="command"] .nx-op-list .nx-hier-tech {
    color: #e6e8eb !important;
}

html[data-nx-theme="command"] .nx-op-list .nx-qe-chip.micro-tag,
html[data-nx-theme="command"] .nx-op-list .micro-tag,
html[data-nx-theme="command"] #nx-lista-sync .nx-qe-chip--tag {
    background: #1c2028 !important;
    border-color: var(--nx-tag-accent, #6ba8c4) !important;
    color: var(--nx-tag-accent, #6ba8c4) !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] #nx-lista-sync {
    padding-bottom: 8px;
}

html[data-nx-theme="command"] .nx-op-list .nx-lista-pagination,
html[data-nx-theme="command"] .nx-op-list .nx-lista-pagination--compact {
    margin-top: 8px;
    padding: 6px 12px;
    min-height: 0;
    background: #14171c;
    border-color: #2a3038;
    box-shadow: none;
    backdrop-filter: none;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table th.nx-op-th--local,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table th.nx-op-th--motivo,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table td.nx-op-td--local,
html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table td.nx-op-td--motivo {
    min-width: 120px !important;
}

html[data-nx-theme="command"] .nx-bar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

html[data-nx-theme="command"] .nx-global-search__ai {
    background: #6ba8c4;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-global-search__ai:hover {
    transform: none;
    box-shadow: none;
    background: #7bb8d0;
}

html[data-nx-theme="command"] .nx-nav-badge {
    background: rgba(107, 168, 196, 0.35);
}

html[data-nx-theme="command"] #nxTeamChatSend {
    background: #6ba8c4 !important;
    color: #0b0d10 !important;
    border-color: #6ba8c4 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-qe-menu__title,
html[data-nx-theme="command"] .nx-qe-menu__title i,
html[data-nx-theme="command"] .nx-op-list .nx-qe-field > i,
html[data-nx-theme="command"] .nx-top-bar .fa-headset,
html[data-nx-theme="command"] .nx-status-bar .fa-headset {
    color: #6ba8c4 !important;
}

html[data-nx-theme="command"] .nx-copilot-fab-host .nx-copilot-fab {
    background: #1c2028;
    border: 1px solid #6ba8c4;
    color: #6ba8c4;
    box-shadow: none;
    animation: none;
}

html[data-nx-theme="command"] .nx-copilot-fab:hover {
    transform: none;
    box-shadow: none;
    background: #242830;
}

html[data-nx-theme="command"] .nx-copilot-fab--alert {
    border-color: #e8a85c;
    color: #ffd9a0;
    animation: nx-fab-alert-cmd 1.8s ease-in-out infinite !important;
}

html[data-nx-theme="command"] .nx-copilot-fab-badge--alert {
    animation: nx-fab-badge-alert 1.8s ease-in-out infinite !important;
}

@keyframes nx-fab-alert-cmd {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes nx-fab-badge-alert {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

html[data-nx-theme="command"] .nx-copilot-fab--urgent {
    border-color: #ff6b6b;
    color: #ffb4a8;
    animation: nx-fab-urgent 1.1s ease-in-out infinite !important;
}

/* Ondas urgentes: só transform/opacity (GPU); excluídas do kill global acima */
html[data-nx-theme="command"] .nx-copilot-fab-host--urgent::before,
html[data-nx-theme="command"] .nx-copilot-fab-host--urgent::after {
    border-color: rgba(255, 107, 107, 0.88);
    box-shadow: none;
    animation: nx-fab-wave 2.2s ease-out infinite !important;
}

html[data-nx-theme="command"] .nx-page-stage {
    padding-bottom: 80px;
    padding-right: 48px;
    box-sizing: border-box;
}

html[data-nx-theme="command"] .nx-brain-sat--b,
html[data-nx-theme="command"] .nx-neuron-syn {
    fill: #6ba8c4;
}

html[data-nx-theme="command"] .nx-hub-hero {
    padding: 24px 24px 28px;
}

html[data-nx-theme="command"] .nx-hub-hero__avatar {
    display: none;
}

html[data-nx-theme="command"] .nx-dash-hero__greet {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
    color: #9aa3ad !important;
}

html[data-nx-theme="command"] .nx-dash-avatar,
html[data-nx-theme="command"] .nx-feed-avatar {
    background: #1c2028 !important;
    box-shadow: none !important;
    color: #6ba8c4 !important;
}

html[data-nx-theme="command"] .nx-dash-copilot-btn {
    background: #6ba8c4 !important;
    color: #0b0d10 !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-dash-copilot-btn:hover {
    transform: none;
    box-shadow: none !important;
    background: #7bb8d0 !important;
}

html[data-nx-theme="command"] .nx-kpi-card::before,
html[data-nx-theme="command"] .nx-pipeline-bar__seg--andamento {
    background: #6ba8c4 !important;
}

html[data-nx-theme="command"] .nx-inf-hero__eyebrow,
html[data-nx-theme="command"] .nx-mat-kpi__label,
html[data-nx-theme="command"] .nx-copilot-page [class*="kpi"] [class*="label"] {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    font-weight: 600 !important;
}

html[data-nx-theme="command"] .nx-mat-chip.is-active {
    background: #6ba8c4 !important;
    color: #0b0d10 !important;
    border-color: #6ba8c4 !important;
    box-shadow: none !important;
    animation: none !important;
}

html[data-nx-theme="command"] .nx-form-sidebar {
    padding: 12px 16px;
    box-sizing: border-box;
}

html[data-nx-theme="command"] .nx-fibra-fold {
    background: #14171c;
    border-color: #2a3038;
}

html[data-nx-theme="command"] .nx-fibra-fold__sum {
    font-weight: 600;
}

html[data-nx-theme="command"] .nx-fibra-fold__total,
html[data-nx-theme="command"] .nx-fibra-side-table tfoot td {
    color: #6ba8c4;
}

html[data-nx-theme="command"] .nx-fibra-side-table thead th,
html[data-nx-theme="command"] .nx-fibra-fs__legend {
    text-transform: none;
    letter-spacing: 0.01em;
}

html[data-nx-theme="command"] .nx-fibra-side-table tbody tr:hover {
    background: #1c2028;
}

html[data-nx-theme="command"] .nx-fibra-side-table th,
html[data-nx-theme="command"] .nx-fibra-side-table td {
    border-bottom-color: #2a3038;
}

html[data-nx-theme="command"] .nx-form-sidebar .s-tab-item {
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}

html[data-nx-theme="command"] .nx-priority-opt.is-active {
    box-shadow: none !important;
}

html[data-nx-theme="command"] .nx-priority-opt--3.is-active {
    border-color: #6ba8c4 !important;
    background: rgba(107, 168, 196, 0.18) !important;
}

html[data-nx-theme="command"] .nx-ms__tag-pill,
html[data-nx-theme="command"] .nx-ms-field__chip.nx-tag-neon {
    background: #1c2028 !important;
    border-color: var(--nx-tag-accent, #6ba8c4) !important;
    color: var(--nx-tag-accent, #6ba8c4) !important;
}

/* -------------------------------------------------------------------------- */
/* 2.2.7 — inset de painel (hero relatórios, tabelas Fibra, header especial)  */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] .nx-rep-hero {
    padding: 16px 20px;
    box-sizing: border-box;
}

html[data-nx-theme="command"] .nx-rep-table-wrap + .nx-rep-table-wrap {
    margin-top: var(--nx-space-4);
}

html[data-nx-theme="command"] .nx-special-page .nx-page-header {
    padding: 14px 16px;
    box-sizing: border-box;
}

/* -------------------------------------------------------------------------- */
/* 2.2.8 — puxador de coluna à esquerda do rótulo (não por baixo)             */
/* 2.2.6 unificou thead em padding 8px 10px; o grip absolute (16px, left 2px) */
/* passou a ocupar a mesma faixa do texto. Classic mantém 22px via lista-op.  */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] #nx-lista-sync .nx-lista-table th.nx-col-draggable:not(.nx-op-th--actions):not(.nx-op-th--id),
html[data-nx-theme="command"] .nx-op-list .nx-op-th.nx-col-draggable:not(.nx-op-th--actions):not(.nx-op-th--id) {
    padding-left: 22px !important;
    box-sizing: border-box;
}

html[data-nx-theme="command"] .nx-col-grip {
    z-index: 1;
}

/* -------------------------------------------------------------------------- */
/* 2.2.11 — uma mancha só, a nascer à direita e a morrer no ID                */
/* 2.2.10 pintava duas células opacas. Overlay no último td (MDN ::after +    */
/* pointer-events: none); cor baixa; transparente ~96px.                      */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] #nx-lista-sync tr.activity-row td,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row:hover td,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row.pri-1 td,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row.selected-row td {
    background-color: #14171c !important;
    background-image: none !important;
    box-shadow: none;
}

html[data-nx-theme="command"] body.nx-future #nx-lista-sync .nx-lista-table tr.activity-row,
html[data-nx-theme="command"] body.nx-future #nx-lista-sync .nx-lista-table tr.activity-row:hover,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row {
    background-color: #14171c !important;
    background-image: none !important;
}

html[data-nx-theme="command"] body.nx-future #nx-lista-sync .nx-lista-table tr.activity-row:hover td,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row:hover td {
    background-color: #1c2028 !important;
}

html[data-nx-theme="command"] body.nx-future #nx-lista-sync .nx-lista-table tr.activity-row.pri-1 td,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row.pri-1 td {
    background-color: #1a1516 !important;
}

html[data-nx-theme="command"] body.nx-future #nx-lista-sync .nx-lista-table tr.activity-row.selected-row td,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row.selected-row td {
    background-color: #182026 !important;
}

html[data-nx-theme="command"] #nx-lista-sync tr.activity-row[data-nx-tag-wash] td:last-child {
    position: relative;
    overflow: visible;
}

html[data-nx-theme="command"] #nx-lista-sync tr.activity-row[data-nx-tag-wash] td:last-child::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(var(--nx-lista-w, 99vw) * 0.45);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
    background:
        linear-gradient(to left, var(--nx-tag-glow) 0, transparent 12%),
        linear-gradient(to left, var(--nx-tag-wash-core) 0, var(--nx-tag-wash) 42%, transparent 100%);
}

html[data-nx-theme="command"] #nx-lista-sync tr.activity-row .nx-op-status-cell,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row .nx-row-action,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row .nx-lista-id {
    position: relative;
    z-index: 1;
}

html[data-nx-theme="command"] #nx-lista-sync tr.activity-row[data-nx-tag-wash="future"] {
    --nx-tag-wash-core: rgb(0 206 201 / 20%);
    --nx-tag-wash: rgb(0 206 201 / 8%);
    --nx-tag-glow: rgb(0 206 201 / 38%);
}

html[data-nx-theme="command"] #nx-lista-sync tr.activity-row[data-nx-tag-wash="active"] {
    --nx-tag-wash-core: rgb(245 197 24 / 20%);
    --nx-tag-wash: rgb(245 197 24 / 8%);
    --nx-tag-glow: rgb(245 197 24 / 38%);
}

html[data-nx-theme="command"] #nx-lista-sync tr.activity-row[data-nx-tag-wash="past"] {
    --nx-tag-wash-core: rgb(231 76 60 / 20%);
    --nx-tag-wash: rgb(231 76 60 / 8%);
    --nx-tag-glow: rgb(231 76 60 / 38%);
}

html[data-nx-theme="command"] #nx-lista-sync .nx-fibra-motivo {
    color: #7eb8c9;
    font-weight: 600;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-fibra-motivo--avulsa {
    color: #8b949e;
}

html[data-nx-theme="command"] #nx-lista-sync .nx-fibra-motivo--encerrado {
    opacity: 0.65;
}

html[data-nx-theme="command"] #nx-lista-sync tr.nx-op-proj-band td {
    background: #1a1e24;
    color: #9aa8b3;
    font-weight: 600;
    box-shadow: none;
}

html[data-nx-theme="command"] #nx-lista-sync tr.activity-row.nx-row--fibra-projeto,
html[data-nx-theme="command"] #nx-lista-sync tr.activity-row.nx-row--fibra-projeto-encerrado {
    background: transparent;
}

html[data-nx-theme="command"] .nx-rep-tab {
    background: #1c2028;
    border-color: #2a3038;
    color: #9aa8b3;
    border-radius: var(--nx-r-pill);
}

html[data-nx-theme="command"] .nx-rep-tab:hover {
    color: #e6e8eb;
    border-color: #3d4650;
}

html[data-nx-theme="command"] .nx-rep-tab[aria-selected="true"] {
    background: #6ba8c4;
    border-color: #6ba8c4;
    color: #0b0d10;
}

html[data-nx-theme="command"] .nx-rep-fold {
    background: #14171c;
    border-color: #2a3038;
    border-radius: var(--nx-r-card);
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-rep-fold__sum {
    background: #12151a;
}

html[data-nx-theme="command"] .nx-rep-fold--dia {
    background: #1c2028;
    border-color: #2a3038;
}

html[data-nx-theme="command"] .nx-page--fibra-report .nx-ind__card {
    background: #14171c;
    border: 1px solid #2a3038;
    border-radius: var(--nx-r-card);
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-page--fibra-report .nx-ind__card:hover {
    transform: none;
    border-color: #3d4650;
    box-shadow: none;
}

html[data-nx-theme="command"] .nx-page--fibra-report .nx-rep-table tbody tr:hover {
    background: #1c2028;
}

html[data-nx-theme="command"] .nx-page--fibra-report .nx-rf__head-title i {
    color: #6ba8c4;
}

/* -------------------------------------------------------------------------- */
/* Focus, tabelas densas, kill glow residual                                  */
/* -------------------------------------------------------------------------- */

html[data-nx-theme="command"] a:focus-visible,
html[data-nx-theme="command"] button:focus-visible,
html[data-nx-theme="command"] input:focus-visible,
html[data-nx-theme="command"] select:focus-visible,
html[data-nx-theme="command"] textarea:focus-visible,
html[data-nx-theme="command"] [tabindex]:focus-visible,
html[data-nx-theme="command"] .nx-chip:focus-visible,
html[data-nx-theme="command"] .status-pill-trigger:focus-visible,
html[data-nx-theme="command"] .nx-lista-table tbody tr:focus-visible,
html[data-nx-theme="command"] .nx-ret-row:focus-visible,
html[data-nx-theme="command"] .nx-infra-row:focus-visible,
html[data-nx-theme="command"] .nx-dialog__btn:focus-visible {
    outline: 2px solid var(--nx-focus, #6ba8c4);
    outline-offset: 2px;
}

html[data-nx-theme="command"] .nx-theme-toggle:focus-visible,
html[data-nx-theme="command"] .nx-bar-user-pill:focus-visible {
    outline: 2px solid var(--nx-focus, #6ba8c4);
    outline-offset: 2px;
}

html[data-nx-theme="command"] .nx-future *,
html[data-nx-theme="command"] .nx-op-list *,
html[data-nx-theme="command"] .nx-special-view * {
    text-shadow: none !important;
    filter: none !important;
    box-shadow: none !important;
}

html[data-nx-theme="command"] #nx-lista-sync {
    container-type: inline-size;
    container-name: nx-lista;
}

@container nx-lista (max-width: 720px) {
    html[data-nx-theme="command"] #nx-lista-sync .nx-op-td--relato,
    html[data-nx-theme="command"] #nx-lista-sync .col-relato,
    html[data-nx-theme="command"] #nx-lista-sync .nx-op-th--relato {
        display: none;
    }
}
