/*
 * Fundação visual do tema Nublado — exclusivamente Relatórios.
 * Este arquivo é a última camada da rota e não contém seletores do tema Dia.
 */

html[data-theme="cinza"] #page-relatorios {
    /* Equivalentes frios dos azuis do tema Dia, exclusivos do Nublado. */
    --rel-cloud-navy: #173b57;
    --rel-cloud-navy-strong: #102c43;
    --rel-cloud-navy-deep: #0b2234;
    --rel-cloud-navy-soft: #2d5874;
    --rel-cloud-navy-highlight: #477b98;
    --rel-cloud-navy-rgb: 23, 59, 87;
    --rel-cloud-ice-band: linear-gradient(105deg, #24475d, #315f78 56%, #477b98);
    --rel-cloud-bg: #8a939f;
    --rel-cloud-surface: #9fa7b1;
    --rel-cloud-surface-raised: #b2b9c2;
    --rel-cloud-surface-hover: #bbc1c8;
    --rel-cloud-surface-sunken: #7e8794;
    --rel-cloud-line-subtle: rgba(20, 24, 29, 0.20);
    --rel-cloud-line: rgba(20, 24, 29, 0.34);
    --rel-cloud-line-strong: rgba(20, 24, 29, 0.52);
    --rel-cloud-shadow-card: 0 0.125rem 0.3125rem rgba(20, 24, 29, 0.16), 0 0.75rem 1.75rem -1.375rem rgba(20, 24, 29, 0.42);
    --rel-cloud-shadow-soft: 0 0.125rem 0.375rem rgba(20, 24, 29, 0.14), 0 0.625rem 1.5rem -1.375rem rgba(20, 24, 29, 0.40);
    --rel-cloud-shadow-raised: 0 0.3125rem 0.75rem rgba(20, 24, 29, 0.18), 0 1.125rem 2.125rem -1.5rem rgba(20, 24, 29, 0.48);
    --rel-cloud-shadow-popover: 0 1.125rem 2.75rem -1.125rem rgba(20, 24, 29, 0.48);
    --rel-cloud-focus: 0 0 0 0.1875rem rgba(var(--rel-cloud-navy-rgb), 0.38);
    --rel-cloud-motion: 160ms cubic-bezier(.2, .8, .2, 1);

    --rel-ink-strong: var(--rel-cloud-navy-deep);
    --rel-ink-deep: var(--rel-cloud-navy-deep);
    --rel-wash-info: rgba(var(--rel-cloud-navy-rgb), 0.16);
    --rel-wash-info-soft: rgba(var(--rel-cloud-navy-rgb), 0.10);
    --rel-accent-chart: var(--rel-cloud-navy);
    --rel-accent-strong: var(--rel-cloud-navy-strong);
    --rel-accent-deep: var(--rel-cloud-navy-deep);
    --rel-accent-ink: var(--rel-cloud-navy);
    --rel-accent: var(--rel-cloud-navy);
    --rel-accent-glow: rgba(var(--rel-cloud-navy-rgb), 0.24);
    --rel-accent-rgb: var(--rel-cloud-navy-rgb);
    --rel-accent-chart-rgb: var(--rel-cloud-navy-rgb);
    --rel-accent-strong-rgb: 16, 44, 67;
    --rel-thead-1: var(--rel-cloud-navy-deep);
    --rel-thead-2: var(--rel-cloud-navy-strong);
    --rel-thead-3: var(--rel-cloud-navy);
    --rel-thead-4: var(--rel-cloud-navy-soft);
    --rel-thead-2-rgb: 16, 44, 67;
    --rel-thead-3-rgb: var(--rel-cloud-navy-rgb);
    --rel-thead-4-rgb: 45, 88, 116;
    --rel-scroll-thumb: rgba(var(--rel-cloud-navy-rgb), 0.42);
    --rel-scroll-thumb-hover: rgba(var(--rel-cloud-navy-rgb), 0.62);
    --tk-thead-grad: var(--rel-cloud-ice-band);

    --cosmic-nebula-1: rgba(210, 224, 233, 0.36);
    --cosmic-nebula-2: rgba(126, 164, 187, 0.40);
    --cosmic-nebula-3: rgba(179, 202, 216, 0.30);
    --cosmic-nebula-4: rgba(var(--rel-cloud-navy-rgb), 0.46);
    --cosmic-grain-bright: rgba(231, 240, 245, 0.92);
    --cosmic-grain-soft: rgba(184, 207, 220, 0.82);
    --cosmic-grain-cyan: rgba(101, 149, 176, 0.86);
    --cosmic-grain-ice: rgba(145, 183, 204, 0.88);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd {
    --blue: var(--rel-cloud-navy);
    --blue-600: var(--rel-cloud-navy-strong);
    --blue-text: var(--rel-cloud-navy-deep);
    --f-blue: var(--rel-cloud-navy);
    --f-blue-bg: rgba(var(--rel-cloud-navy-rgb), 0.14);
    --s-blue: var(--rel-cloud-navy);
    --s-blue-bg: rgba(var(--rel-cloud-navy-rgb), 0.14);
    --a-blue: var(--rel-cloud-navy);
    --a-blue-bg: rgba(var(--rel-cloud-navy-rgb), 0.14);
    --p-blue: var(--rel-cloud-navy);
    --p-blue-bg: rgba(var(--rel-cloud-navy-rgb), 0.14);
    --j-blue: var(--rel-cloud-navy);
    --j-blue-bg: rgba(var(--rel-cloud-navy-rgb), 0.14);

    /* Mantém as famílias dos gráficos, substituindo somente os azuis. */
    --rel-chart-status: #173b57,#8a5210,#97231f,#15683f;
    --rel-chart-rank: #0b2234,#102c43,#173b57,#204e6d,#2d5874;
    --rel-chart-avatar: #173b57,#4c1d95,#0f5c66,#8a3d0b,#14532d,#3f4652,#86198f,#334155;
    --rel-chart-dept: #173b57,#0f5c66,#97231f,#4c1d95,#8a3d0b,#14532d,#364b59,#293f50;
    --rel-chart-report: #0b2234,#173b57,#2d5874,#0f5c66,#14603f,#364b59,#4c1d95;
    --rel-chart-stream: #173b57,#0f5c66,#8a3d0b,#4c1d95,#14532d,#97231f,#364b59;
    --rel-chart-prio: #97231f,#8a3d0b,#173b57,#3f4652,#4a5260;
    --rel-chart-fin-gradient:
        linear-gradient(150deg,#2d5874,#102c43),
        linear-gradient(150deg,#8a5210,#6b3b08),
        linear-gradient(150deg,#15683f,#0e4a2c),
        linear-gradient(150deg,#4c1d95,#33116b),
        linear-gradient(150deg,#0f5c66,#0a4048);
}

/* Resíduos com cor literal nas folhas legadas também seguem a equivalência. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .ra-item:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .fdsel-trigger:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-mini:hover {
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.46);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .filterbar.fb-line .morefilters:hover {
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.46) !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .day-panel .bars2 .bar.peak {
    background: linear-gradient(180deg, rgba(var(--rel-cloud-navy-rgb), 0.58), rgba(var(--rel-cloud-navy-rgb), 0.24));
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .modal .msg.out .bubble,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .bub.out {
    background: rgba(var(--rel-cloud-navy-rgb), 0.18);
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.38);
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .cv.on {
    background: rgba(var(--rel-cloud-navy-rgb), 0.14);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .cbtn.active {
    background: rgba(var(--rel-cloud-navy-rgb), 0.18);
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.48);
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn.dark {
    background: linear-gradient(135deg, var(--rel-cloud-navy), var(--rel-cloud-navy-strong));
}

/* Conversão integral do chrome Nublado para marinho gelado. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tf-cosmic-dust::before {
    opacity: 0.82;
    filter: blur(1.875rem) saturate(0.82);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tf-cosmic-dust .cosmic-dust-grain {
    opacity: 0.76;
}

/* A Central de Indicadores recebe explicitamente a poeira marinho gelado. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel.config-panel .tf-cosmic-dust::before {
    opacity: 0.88;
    filter: blur(1.875rem) saturate(0.82);
    mix-blend-mode: screen;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel.config-panel .tf-cosmic-dust .cosmic-dust-grain {
    opacity: 0.82;
    mix-blend-mode: screen;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-filter-card,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel.config-panel {
    background:
        radial-gradient(circle at 78% 8%, rgba(150, 185, 204, 0.28), transparent 30%),
        linear-gradient(145deg, var(--rel-cloud-navy-deep), var(--rel-cloud-navy-strong) 52%, var(--rel-cloud-navy-soft));
    border-color: rgba(184, 207, 220, 0.34);
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.16), 0 1rem 2.125rem -1.75rem rgba(11, 34, 52, 0.86);
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar {
    background: linear-gradient(105deg, #0b2234, #173b57 58%, #204e6d) !important;
    border-bottom-color: rgba(155, 190, 210, 0.42) !important;
    color: #f2f7fa !important;
    box-shadow: inset 0 -0.0625rem rgba(5, 20, 31, 0.46), 0 0.5625rem 1.5rem -1.25rem rgba(5, 20, 31, 0.92) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar::before {
    background: linear-gradient(90deg, #79a8c1, rgba(121, 168, 193, 0.18)) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-page-title {
    color: #f2f7fa !important;
    text-shadow: 0 0.0625rem rgba(5, 20, 31, 0.46);
    font-size: 1.3125rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.025rem !important;
    line-height: 1 !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-page-subtitle {
    color: #f2f7fa !important;
    text-shadow: 0 0.0625rem rgba(5, 20, 31, 0.46);
    font-size: 0.8125rem !important;
    font-weight: 400 !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-hamburger,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-chats-quick-btn,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-perfil-btn,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .app-topbar-notificacoes .notificacoes-btn,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-theme-switch {
    background: linear-gradient(180deg, rgba(226, 239, 246, 0.18), rgba(139, 177, 198, 0.08)) !important;
    border-color: rgba(190, 216, 229, 0.38) !important;
    color: #f2f7fa !important;
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.13) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-hamburger:hover,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-chats-quick-btn:hover,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-perfil-btn:hover,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .app-topbar-notificacoes .notificacoes-btn:hover {
    background: linear-gradient(180deg, rgba(226, 239, 246, 0.28), rgba(139, 177, 198, 0.15)) !important;
    border-color: rgba(210, 230, 240, 0.58) !important;
    color: #fff !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-hamburger:focus-visible,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-chats-quick-btn:focus-visible,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-perfil-btn:focus-visible,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .app-topbar-notificacoes .notificacoes-btn:focus-visible {
    outline: 0 !important;
    box-shadow: 0 0 0 0.1875rem rgba(151, 195, 218, 0.40) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-btn[aria-expanded="true"],
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-perfil-btn[aria-expanded="true"] {
    background: rgba(151, 195, 218, 0.26) !important;
    border-color: rgba(210, 230, 240, 0.60) !important;
    color: #fff !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-theme-switch__btn.is-active {
    background: rgba(151, 195, 218, 0.26) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-theme-switch__btn:hover:not(:disabled):not(.is-soon) {
    background: linear-gradient(180deg, rgba(226, 239, 246, 0.28), rgba(139, 177, 198, 0.15)) !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .analyst-avatar-topbar {
    background: linear-gradient(150deg, #2d5874, #0b2234) !important;
    color: #fff !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .fp-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dp-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .sp-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .ap-head {
    border-bottom-color: rgba(var(--rel-cloud-navy-rgb), 0.28);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-foot,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-foot,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-bar {
    background: linear-gradient(180deg, rgba(var(--rel-cloud-navy-rgb), 0.10), rgba(var(--rel-cloud-navy-rgb), 0.16));
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.34);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-foot .upd .live {
    background: var(--rel-cloud-navy-soft);
    box-shadow: 0 0 0 0.1875rem rgba(var(--rel-cloud-navy-rgb), 0.22);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd :is(.chart-card, .tickets-card, .fpanel, .dpanel, .spanel, .apanel, .kcol, .tk-tablewrap, .clientes-panel-rank, .clientes-panel-chart) {
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.30);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd :is(.btn.primary, .rp-search-btn, .rel-search-apply, .button-primary) {
    background: linear-gradient(135deg, var(--rel-cloud-navy), var(--rel-cloud-navy-strong));
    border-color: var(--rel-cloud-navy-strong);
    color: #fff;
    box-shadow: 0 0.5rem 1.125rem -0.8125rem rgba(11, 34, 52, 0.86);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd :is(.btn.primary, .rp-search-btn, .rel-search-apply, .button-primary):hover:not(:disabled) {
    background: linear-gradient(135deg, var(--rel-cloud-navy-soft), var(--rel-cloud-navy));
    border-color: var(--rel-cloud-navy-deep);
}

/* Superfícies: fundo < cartão < elemento elevado. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .config-panel,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card {
    border-color: var(--rel-cloud-line-subtle);
    box-shadow: var(--rel-cloud-shadow-card);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .config-panel:not(.rel-indic-panel) {
    background: linear-gradient(180deg, var(--rel-cloud-surface-raised), var(--rel-cloud-surface));
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dr-pop,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cal-pop,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .more-pop,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .fdsel-menu,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .fdsel-pop,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt-menu {
    background:
        linear-gradient(180deg, rgba(255,255,255,.14), transparent 40%),
        var(--rel-cloud-surface-raised);
    border-color: var(--rel-cloud-line-strong);
    border-radius: 0.25rem;
    box-shadow: var(--rel-cloud-shadow-popover), inset 0 0.0625rem rgba(255,255,255,.28);
    color: var(--rel-cloud-navy-deep);
}

/* Menu suspenso Nublado — tipografia navy; viewport N×linha (paridade Dia/Noite). */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt-menu:not(.cal-menu):not(.flt-cat-menu):not(.flt-cat-tree-menu) {
    --flt-menu-pad: 0;
    --flt-menu-rows: 7;
    max-height: calc(var(--flt-menu-rows) * var(--flt-menu-row-h, 2.25rem));
    padding: 0;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt-opt {
    color: var(--rel-cloud-navy-deep);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: -0.0075rem;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt-opt:hover {
    background: rgba(255, 255, 255, 0.42);
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt-opt.sel {
    background: rgba(var(--rel-cloud-navy-rgb), 0.14);
    color: var(--rel-cloud-navy-strong);
    font-weight: 700;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt-opt.all {
    color: var(--rel-cloud-navy-deep);
    font-weight: 700;
    letter-spacing: .02em;
    border-bottom-color: var(--rel-cloud-line);
    background: rgba(255, 255, 255, 0.22);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt-opt::before {
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.45);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 0.1875rem;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt-opt.sel::before {
    background: var(--rel-cloud-navy) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23f7fbff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center no-repeat;
    border-color: var(--rel-cloud-navy);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .fdsel-list {
    --fdsel-pad: 0;
    max-height: calc(var(--fdsel-rows, 7) * var(--fdsel-row-h, 2.25rem));
    padding: 0;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .fdsel-opt {
    color: var(--rel-cloud-navy-deep);
    font-weight: 600;
    letter-spacing: -0.0075rem;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .fdsel-opt:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .fdsel-opt.active {
    background: rgba(255, 255, 255, 0.42);
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .fdsel-opt.selected {
    background: rgba(var(--rel-cloud-navy-rgb), 0.14);
    color: var(--rel-cloud-navy-strong);
}

/* Central: repouso, intenção, seleção e foco são estados distintos. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel.config-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%),
        rgba(20, 24, 29, 0.08);
    border-color: var(--rel-cloud-line-subtle);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .indic {
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--rel-cloud-line-subtle);
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.12);
    transition:
        background var(--rel-cloud-motion),
        border-color var(--rel-cloud-motion),
        box-shadow var(--rel-cloud-motion),
        color var(--rel-cloud-motion),
        transform var(--rel-cloud-motion);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .indic:not(.on):not([data-soon]):hover {
    background: var(--rel-cloud-surface-hover);
    border-color: var(--rel-cloud-line);
    box-shadow: var(--rel-cloud-shadow-raised);
    transform: translateY(-0.0625rem);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .indic.on,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .indic.on:not([data-soon]):hover {
    background: var(--rel-cloud-surface-raised);
    border-color: var(--rel-cloud-line-strong);
    color: var(--rel-ink-strong);
    box-shadow: var(--rel-cloud-shadow-raised);
    transform: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .indic:focus-visible {
    outline: 0;
    border-color: var(--rel-accent-strong);
    box-shadow: var(--rel-cloud-focus), var(--rel-cloud-shadow-raised);
}

/* Filtros: campo rebaixado; menus e seleção sobem um nível. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .filterbar.fb-line {
    background: var(--rel-cloud-surface);
    border-color: var(--rel-cloud-line-subtle);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .filterbar.fb-line .fdsel-trigger,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .filterbar.fb-line .morefilters,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dr-btn {
    background: var(--rel-cloud-surface-sunken) !important;
    border-color: var(--rel-cloud-line-subtle) !important;
    color: var(--rel-ink);
    transition:
        background var(--rel-cloud-motion),
        border-color var(--rel-cloud-motion),
        box-shadow var(--rel-cloud-motion);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .filterbar.fb-line .fdsel-trigger:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .filterbar.fb-line .morefilters:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dr-btn:hover {
    background: var(--rel-cloud-surface-hover) !important;
    border-color: var(--rel-cloud-line) !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .filterbar.fb-line .fdsel.open .fdsel-trigger,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .filterbar.fb-line .fdsel-trigger:focus-visible,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .filterbar.fb-line .morefilters:focus-visible,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dr-btn:focus-visible {
    outline: 0;
    border-color: var(--rel-accent-strong) !important;
    box-shadow: var(--rel-cloud-focus);
}

/* Subnavegação: restaura os ícones e mantém azul só como confirmação. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .subnav .subtab .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-nav .prj-tab .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .subnav .subtab > svg,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-nav .prj-tab > svg {
    display: inline-flex !important;
    width: 1rem !important;
    height: 1rem !important;
    overflow: visible !important;
    flex: none;
}

/* Sub-abas: repouso com contraste; selecionada mais clara e sem contorno inferior. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab {
    background: #315f78;
    border-color: rgba(190, 216, 229, 0.28);
    color: #f4f8fa;
    box-shadow: none;
    transition:
        background var(--rel-cloud-motion),
        border-color var(--rel-cloud-motion),
        box-shadow var(--rel-cloud-motion),
        color var(--rel-cloud-motion),
        filter var(--rel-cloud-motion);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab > svg,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab > svg {
    color: #f4f8fa;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab:not(.on):hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab:not(.on):hover {
    background: #3a6f8a;
    border-color: rgba(225, 239, 246, 0.42);
    color: #fff;
    filter: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab.on,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab.on {
    background: #5d8ba3;
    border-color: rgba(225, 239, 246, 0.55);
    color: #fff;
    box-shadow: none;
    filter: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab.on .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab.on .ti {
    color: #fff;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab:focus-visible,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab:focus-visible {
    outline: 0;
    border-color: rgba(225, 239, 246, 0.72);
    box-shadow: var(--rel-cloud-focus), inset 0 0.0625rem rgba(225, 239, 246, 0.34);
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .indic,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .fdsel-trigger,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .morefilters,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .dr-btn {
        transition: none;
        transform: none;
    }
}

/* Faixa KPI: estrutura idêntica ao Dia; só cor/tema muda. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stats {
    gap: 0;
    padding: 0.875rem 1.375rem;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat:first-child,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.hero,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.alert {
    padding: 0 1.125rem;
    background: transparent;
    border: 0;
    border-left: 0.0625rem solid rgba(var(--rel-cloud-navy-rgb), 0.22);
    border-radius: 0;
    box-shadow: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat:first-child {
    border-left: 0;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.hero .sv {
    color: var(--rel-cloud-navy-deep);
}

/* Visão geral: KPIs sem contorno individual, como os painéis inferiores. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .visao .vkg-grid > .sk {
    border-color: transparent;
    box-shadow: none;
}

/* Última autoridade: filtros e Central compartilham exatamente o mesmo céu. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-filter-card,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel.config-panel {
    background:
        radial-gradient(circle at 78% 8%, rgba(150, 185, 204, 0.28), transparent 30%),
        linear-gradient(145deg, var(--rel-cloud-navy-deep), var(--rel-cloud-navy-strong) 52%, var(--rel-cloud-navy-soft));
    border-color: rgba(184, 207, 220, 0.34);
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.16), 0 1rem 2.125rem -1.75rem rgba(11, 34, 52, 0.86);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-filter-card .tf-cosmic-dust::before,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel.config-panel .tf-cosmic-dust::before {
    opacity: 0.82;
    filter: blur(1.875rem) saturate(0.82);
    mix-blend-mode: screen;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-filter-card .tf-cosmic-dust .cosmic-dust-grain,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel.config-panel .tf-cosmic-dust .cosmic-dust-grain {
    opacity: 0.76;
    mix-blend-mode: screen;
}

/* Ações compartilhadas: azul para CTA, superfície para navegação auxiliar. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cc-ibtn,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-btn,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-foot button,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-foot button {
    border-color: var(--rel-cloud-line-subtle);
    transition:
        background var(--rel-cloud-motion),
        border-color var(--rel-cloud-motion),
        box-shadow var(--rel-cloud-motion),
        color var(--rel-cloud-motion),
        transform var(--rel-cloud-motion);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn:not(.primary):not(.dark):not(.warn),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cc-ibtn,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-btn,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-foot button:not(.primary),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-foot button:not(.primary) {
    background: var(--rel-cloud-surface-raised);
    color: var(--rel-ink);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn.primary,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn.dark,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-search-apply,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rp-search-btn,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-foot button.primary,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-foot button.primary {
    background: linear-gradient(135deg, var(--rel-accent), var(--rel-accent-strong));
    border-color: var(--rel-accent-strong);
    color: #fff;
    box-shadow: 0 0.5rem 1.125rem -0.75rem rgba(var(--rel-cloud-navy-rgb), 0.72);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn:hover:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cc-ibtn:hover:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-btn:hover:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-foot button:hover:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-foot button:hover:not(:disabled) {
    border-color: var(--rel-cloud-line);
    box-shadow: var(--rel-cloud-shadow-raised);
    transform: translateY(-0.0625rem);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn.primary:hover:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn.dark:hover:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-search-apply:hover:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rp-search-btn:hover:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-foot button.primary:hover:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-foot button.primary:hover:not(:disabled) {
    background: var(--rel-accent-strong);
    border-color: var(--rel-accent-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn:focus-visible,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cc-ibtn:focus-visible,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-btn:focus-visible,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer button:focus-visible,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer button:focus-visible {
    outline: 0;
    border-color: var(--rel-accent-strong);
    box-shadow: var(--rel-cloud-focus);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn:active:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cc-ibtn:active:not(:disabled),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-btn:active:not(:disabled) {
    box-shadow: var(--rel-cloud-shadow-card);
    transform: translateY(0);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd button:disabled {
    opacity: 0.58;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Chips: cor Nublado, medidas iguais ao Dia (height 30 / X 16). */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chip,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-filter-summary .chip {
    min-height: 0;
    height: 1.875rem;
    background: rgba(255, 255, 255, 0.10);
    border-color: var(--rel-cloud-line-subtle);
    color: var(--rel-ink-2);
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.10);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chip .x,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-filter-summary .chip .x {
    width: 1rem;
    height: 1rem;
    margin-right: 0;
    border-radius: 50%;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chip .x:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chip .x:focus-visible {
    background: rgba(20, 24, 29, 0.14);
    color: var(--rel-ink);
    outline: 0;
    box-shadow: inset 0 0 0 0.0625rem var(--rel-cloud-line);
}

/* Estados de carregamento, vazio e erro deixam de sumir no cinza médio. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .empty-state,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-empty,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-empty-cell,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .loading-state {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--rel-cloud-line-subtle);
    color: var(--rel-ink-2);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .alert,
html[data-theme="cinza"] #page-relatorios .relatorios-fd [role="alert"] {
    border-color: var(--rel-cloud-line);
    box-shadow: var(--rel-cloud-shadow-card);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .skeleton,
html[data-theme="cinza"] #page-relatorios .relatorios-fd [class*="skeleton"] {
    background: linear-gradient(90deg, #858e9a 24%, #aeb5be 38%, #858e9a 62%);
    background-size: 220% 100%;
}

/* Tabelas: cabeçalho firme; linha, hover e seleção não se confundem. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-tablewrap,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-table-wrap,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-table,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-scroll {
    border-color: var(--rel-cloud-line-subtle);
    box-shadow: var(--rel-cloud-shadow-card);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-table thead th,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .atbl thead th,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table thead th {
    color: #fff;
    text-shadow: 0 0.0625rem rgba(20, 24, 29, 0.28);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-table:not(.dep-detail-table) tbody tr,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .atbl tbody tr,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table tbody tr {
    background: var(--rel-cloud-surface);
    transition: background var(--rel-cloud-motion), box-shadow var(--rel-cloud-motion);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-table:not(.dep-detail-table) tbody tr:nth-child(even),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .atbl tbody tr:nth-child(even),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-table:not(.dep-detail-table) tbody tr:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .atbl tbody tr:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table tbody tr:hover {
    background: var(--rel-cloud-surface-hover);
    box-shadow: inset 0.1875rem 0 var(--rel-accent-strong);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-table:not(.dep-detail-table) tbody tr.selected,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-table:not(.dep-detail-table) tbody tr[aria-selected="true"],
html[data-theme="cinza"] #page-relatorios .relatorios-fd .atbl tbody tr.selected,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table tbody tr.cli-rank-row--hl {
    background: rgba(var(--rel-cloud-navy-rgb), 0.16);
    box-shadow: inset 0.25rem 0 var(--rel-accent-strong);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-colrow th.sorted,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .atbl th.sorted,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table th.sorted {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-detail-table thead th.sorted,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-detail-table .tk-colrow th.sorted {
    background: transparent;
    color: #fff;
}

/* Paginação continua ligada à tabela, mas os controles sobem da faixa. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-bar {
    border-color: var(--rel-cloud-line-strong);
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.12);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-btn,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-page {
    background: rgba(255, 255, 255, 0.92);
    border-color: var(--rel-line);
    color: var(--rel-ink);
    box-shadow: none;
}

/* Tooltips, drawers e modais ocupam o nível mais alto da hierarquia. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-tip {
    background: var(--rel-cloud-surface-raised);
    border-color: var(--rel-cloud-line);
    box-shadow: var(--rel-cloud-shadow-popover);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .modal,
html[data-theme="cinza"] #page-relatorios .repm-panel {
    background: var(--rel-cloud-surface-raised);
    border-color: var(--rel-cloud-line-strong);
    box-shadow: -1.125rem 0 3.375rem -1.5rem rgba(20, 24, 29, 0.58);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-head::before,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-head {
    background: linear-gradient(145deg, #333b45, #4a5462);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-crumb,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-crumb .dw-crumb-inicio,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-sub,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-kpi .l {
    color: rgba(255, 255, 255, 0.78);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-kpi {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-x,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-close {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.26);
    color: #fff;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-x:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-close:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.42);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-body,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-body,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .modal .m-body,
html[data-theme="cinza"] #page-relatorios .repm-preview-scroll {
    background: var(--rel-cloud-surface-raised);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .drawer .dw-foot,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .anl-drawer .adw-foot,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .modal .m-foot {
    background: var(--rel-cloud-surface);
    border-color: var(--rel-cloud-line-subtle);
}

/* Tickets: faixa clara uniforme; tipografia azul-marinho da identidade Nublado. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stats {
    gap: 0 !important;
    padding: 0.875rem 1.375rem !important;
    box-sizing: border-box;
    background: #c5ced8;
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.28);
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.42), 0 0.75rem 1.75rem -1.5rem rgba(20, 24, 29, 0.42);
}

/* Tickets: faixa contínua margem a margem do card. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stats {
    margin: 0;
    width: 100%;
    max-width: none;
    border-radius: 0;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.hero,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.alert {
    flex: 1;
    min-width: 0;
    padding: 0 1.125rem !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 0.0625rem solid rgba(var(--rel-cloud-navy-rgb), 0.22) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat:first-child {
    border-left: 0 !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat .sl,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat .sv i {
    color: var(--rel-cloud-navy);
    text-shadow: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat .sv,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.hero .sv {
    color: var(--rel-cloud-navy-deep);
    text-shadow: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.alert .sv {
    color: #7a2e28;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.alert .sl {
    color: #8f463e;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-tablewrap {
    background: var(--rel-cloud-surface-raised);
    border-color: var(--rel-cloud-line);
    box-shadow: var(--rel-cloud-shadow-soft);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-table tbody td {
    color: var(--rel-ink);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-table tbody td:first-child,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-table .tk-id {
    color: var(--rel-cloud-navy-deep);
    font-weight: 750;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-tablewrap.is-empty,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-tablewrap.is-empty .tk-table tbody tr {
    background: var(--rel-cloud-surface-raised) !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-tablewrap.is-empty .tk-table tbody tr:hover {
    box-shadow: none;
    transform: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .kcol {
    background: var(--rel-cloud-surface-sunken);
    border-color: var(--rel-cloud-line);
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.28);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .kcol.k-atend {
    background: linear-gradient(180deg, rgba(30, 122, 74, 0.17), var(--rel-cloud-surface-sunken) 5.25rem);
    border-top-color: rgba(30, 122, 74, 0.55);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .kcol.k-paus {
    background: linear-gradient(180deg, rgba(176, 111, 20, 0.17), var(--rel-cloud-surface-sunken) 5.25rem);
    border-top-color: rgba(176, 111, 20, 0.58);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .kcol .kcount {
    background: rgba(255, 255, 255, 0.72);
    border-color: var(--rel-cloud-line);
    color: var(--rel-ink);
    box-shadow: 0 0.125rem 0.5rem -0.375rem rgba(20, 24, 29, 0.55);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tkt {
    background: var(--rel-cloud-surface-raised);
    border-color: var(--rel-cloud-line);
    box-shadow: 0 0.5rem 1.125rem -1rem rgba(20, 24, 29, 0.72);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tkt:hover {
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.58);
    box-shadow: inset 0.1875rem 0 var(--rel-accent-strong), 0 0.75rem 1.5rem -1rem rgba(20, 24, 29, 0.70);
    transform: translateY(-0.0625rem);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tkt .t-meta {
    background: var(--rel-cloud-surface-sunken);
    border-color: var(--rel-cloud-line-subtle);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tkt .t-foot {
    border-top-color: var(--rel-cloud-line-subtle);
}

/* Clientes: ranking e volume passam a formar uma comparação visual única. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes.clientes--modern .clientes-split {
    gap: 1rem;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes.clientes--modern .clientes-panel-rank,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes.clientes--modern .clientes-panel-chart {
    background: var(--rel-cloud-surface-raised);
    border: 0.0625rem solid var(--rel-cloud-line);
    box-shadow: var(--rel-cloud-shadow-soft);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-scroll,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-vol-list {
    background: var(--rel-cloud-surface-raised);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table tbody tr.cli-rank-row:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-vol-row:hover {
    background: var(--rel-cloud-surface-hover);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table tbody tr.cli-rank-row--hl,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-vol-row--hl {
    background: rgba(var(--rel-cloud-navy-rgb), 0.16);
    box-shadow: inset 0.25rem 0 var(--rel-accent-strong);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-avatar {
    background: linear-gradient(145deg, #f9fafb, #dfe3e8);
    border: 0.0625rem solid var(--rel-cloud-line);
    color: #27313d;
    box-shadow: 0 0.25rem 0.625rem -0.5rem rgba(20, 24, 29, 0.65);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-name,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-num {
    color: var(--rel-ink);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-muted,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-vol-meta {
    color: var(--rel-ink-muted);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-vol-track {
    background: #c9ced4;
    border: 0.0625rem solid rgba(44, 52, 62, 0.16);
    box-shadow: inset 0 0.0625rem 0.125rem rgba(20, 24, 29, 0.16);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-vol-track > i,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-vol-track > span {
    background: linear-gradient(90deg, var(--rel-cloud-navy-strong), var(--rel-cloud-navy-soft));
    box-shadow: 0 0 0 0.0625rem rgba(255, 255, 255, 0.16), 0 0.1875rem 0.5625rem -0.3125rem rgba(var(--rel-cloud-navy-rgb), 0.75);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .cli-vol-pct {
    color: var(--rel-cloud-navy-deep);
    font-weight: 750;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-empty-cell {
    color: var(--rel-ink-muted);
    background: var(--rel-cloud-surface-raised);
}

@media (prefers-reduced-motion: reduce) {
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .btn,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .cc-ibtn,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-btn,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-table tbody tr,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .atbl tbody tr,
    html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table tbody tr {
        transition: none;
        transform: none;
    }

    html[data-theme="cinza"] #page-relatorios .relatorios-fd .tkt {
        transition: none;
        transform: none;
    }
}

/* Faixas de métricas: estrutura = Dia; só divisórias/cores Nublado. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-stats,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stats,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-tickets-split-panel > .tk-stats,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.tickets-card .tk-inner-panel .tk-stats,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-stats.tk-stats {
    display: flex;
    gap: 0 !important;
    padding: 0.875rem 1.375rem !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-stats > .tk-stat,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-stats > .tk-stat.hero,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-stats > .tk-stat.alert,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.hero,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat.alert,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-stats .tk-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0 1.125rem !important;
    background: transparent !important;
    border: 0 !important;
    border-left: 0.0625rem solid rgba(var(--rel-cloud-navy-rgb), 0.22) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-stats > .tk-stat:first-child,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-stat:first-child,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-stats .tk-stat:first-child {
    border-left: 0 !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-stat .sv {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025rem;
    line-height: 1;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-stat .sv i {
    font-size: 0.8125rem;
    font-weight: 600;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-stat .sl {
    font-size: 0.65625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.375rem;
    line-height: 1.2;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-stat.hero .sv {
    font-size: 1.625rem;
    letter-spacing: -0.0625rem;
}

/* Clientes: os dois KPIs usam o mesmo tamanho (sem destaque hero). */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-stats .tk-stat.hero .sv {
    font-size: 1.125rem;
    letter-spacing: -0.025rem;
}

/* Categorias, Incidentes e Departamentos: leitura e profundidade no Nublado. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.dep {
    background: linear-gradient(180deg, var(--rel-cloud-surface-raised), var(--rel-cloud-surface));
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.28);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.dep > .chart-head {
    background: transparent;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.375rem;
    align-items: stretch;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 0.375rem;
    align-items: stretch;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab {
    width: 100%;
    min-width: 0;
    justify-content: center;
    box-sizing: border-box;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab:not(.on),
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab:not(.on),
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab:not(.on):hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab:not(.on):hover {
    background: #315f78;
    border: 0.0625rem solid rgba(190, 216, 229, 0.28);
    color: #f4f8fa;
    box-shadow: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab.on,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab.on,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab.on:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab.on:hover {
    background: #6a9bb3;
    border-color: rgba(225, 239, 246, 0.55);
    color: #fff;
    box-shadow: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab:not(.on) .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab:not(.on) .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab.on .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab.on .ti {
    color: #f4f8fa;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel {
    background: var(--rel-cloud-surface-raised);
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.26);
    box-shadow: var(--rel-cloud-shadow-soft);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .dep-visao-chart-body {
    background: transparent;
    border-radius: var(--radius-card);
}

/* Rótulos do eixo X: mesma superfície do painel (não transparente — evita pilha por baixo). */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .plot .xrow,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .plot.dep-plot-patched .dep-plot-x-band .xrow {
    background: var(--rel-cloud-surface-raised, var(--surface));
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .plot.dep-plot-patched,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .plot.dep-plot-patched .gridbars {
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.30);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .gridbars .grid,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .gridbars .gl {
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.16);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .legend.dep-leg-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(var(--rel-cloud-navy-rgb), 0.08));
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.32);
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.18);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .legend.dep-leg-card .dep-leg-head {
    border-bottom: 0.0625rem solid rgba(var(--rel-cloud-navy-rgb), 0.22);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .legend.dep-leg-card .dep-leg-sort-btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.34);
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .legend.dep-leg-card .dep-leg-sort-btn:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-inner-panel .legend.dep-leg-card .dep-leg-sort-btn.on {
    background: rgba(var(--rel-cloud-navy-rgb), 0.16);
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.50);
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.dep .cc-ibtn {
    background: rgba(255, 255, 255, 0.30);
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.24);
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.dep .cc-ibtn:hover {
    background: rgba(var(--rel-cloud-navy-rgb), 0.16);
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.42);
}

/* Tabelas: cabeçalho e rodapé azul-gelo equivalentes às faixas do Dia. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes.clientes--modern,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-detail-tablewrap {
    --tk-thead-grad: var(--rel-cloud-ice-band);
    --tk-thead-edge: inset 0 0.0625rem rgba(225, 239, 246, 0.24), inset 0 -0.0625rem rgba(7, 27, 41, 0.34);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tk-table thead tr,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .atbl thead tr,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .clientes-rank-table thead tr,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-detail-table thead,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-detail-table thead tr.dep-detail-colrow {
    background: var(--rel-cloud-ice-band);
    box-shadow: inset 0 0.0625rem rgba(225, 239, 246, 0.24), inset 0 -0.0625rem rgba(7, 27, 41, 0.34);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-list-pager.list-pagination-bar,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card #tkListaPagination.list-pagination-bar,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #clientesRankPagination.list-pagination-bar,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .list-pagination-bar.is-table-footer,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .dep-detail-tablewrap::after {
    background: var(--rel-cloud-ice-band);
    border-color: rgba(184, 207, 220, 0.34);
    box-shadow: inset 0 0.0625rem rgba(225, 239, 246, 0.24), inset 0 -0.0625rem rgba(7, 27, 41, 0.34);
    color: #f4f8fa;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card .tk-list-pager :is(.list-pagination-info, .list-pagination-label),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card #tkListaPagination :is(.list-pagination-info, .list-pagination-label),
html[data-theme="cinza"] #page-relatorios .relatorios-fd #clientesRankPagination :is(.list-pagination-info, .list-pagination-label) {
    color: rgba(244, 248, 250, 0.88);
}

/* Central: opção disponível em repouso continua claramente acionável. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel .indic:not(.on):not([data-soon]) {
    color: #e8f2f6;
    background: rgba(224, 238, 245, 0.09);
    border-color: rgba(196, 220, 232, 0.24);
    text-shadow: 0 0.0625rem rgba(5, 20, 31, 0.52);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel .indic:not(.on):not([data-soon]) .in-ic,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel .indic:not(.on):not([data-soon]) .in-t {
    color: inherit;
    opacity: 1;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel .indic:not(.on):not([data-soon]):hover {
    color: #fff;
    background: rgba(224, 238, 245, 0.18);
    border-color: rgba(210, 230, 240, 0.44);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-indic-panel .indic[data-soon] {
    color: rgba(174, 197, 209, 0.58);
    opacity: 0.52;
    text-shadow: none;
}

/* Filtro ativo: branco no centro, cinza nas margens, equivalente ao Dia. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt.active .flt-trig,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt.active .flt-trig:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt.active.open .flt-trig {
    background: radial-gradient(120% 145% at 50% 46%, #fafbfc 0%, #eef0f2 40%, #c6cbd1 72%, #a8afb8 100%);
    border-color: rgba(42, 51, 61, 0.34);
    color: var(--rel-cloud-navy-deep);
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.72), 0 0.1875rem 0.5rem -0.375rem rgba(11, 34, 52, 0.58);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .flt.active .flt-trig svg {
    color: var(--rel-cloud-navy);
}

/* Traço antes de Limpar: mesma cor do traço entre Buscar e Período. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .fb-right {
    border-left-color: rgba(var(--rel-surface-rgb), 0.28);
}

/* Limpar: ação secundária preenchida e legível sobre o card marinho. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters {
    background: linear-gradient(180deg, #eadfe0, #cfbabc);
    border-color: rgba(110, 22, 20, 0.62) !important;
    color: #681513;
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.54), 0 0.25rem 0.625rem -0.5rem rgba(44, 10, 9, 0.70) !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters svg {
    color: #7d1a17;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters:focus-visible {
    background: linear-gradient(180deg, #f1e4e5, #d7b6b8);
    border-color: #7d1a17 !important;
    color: #59110f;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters:active {
    background: linear-gradient(180deg, #d8bfc1, #c59fa2);
    box-shadow: inset 0 0.0625rem 0.1875rem rgba(70, 18, 17, 0.22) !important;
}

/* Período: coluna do calendário na superfície (sem faixa azul sob o tip). */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-period-panel-cal {
    background:var(--surface) !important;
}

/* Separadores Demanda / Eficiência / Qualidade: mesma cor do contorno dos cards. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .visao .visao-kpi-sep {
    width: 0.0625rem;
    background: rgba(var(--rel-cloud-navy-rgb), 0.30);
    box-shadow: none;
}

/* Visão Executiva: KPIs superiores recebem o contorno dos painéis inferiores. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .visao .vkg-grid > .sk {
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.30) !important;
    box-shadow: var(--rel-cloud-shadow-card) !important;
}


/* Clientes: elimina o branco puro e unifica cabeçalho, KPIs, tabela e rodapé. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes.clientes--modern {
    --cli-slate-50: var(--rel-cloud-surface);
    --cli-slate-100: rgba(var(--rel-cloud-navy-rgb), 0.14);
    --cli-slate-200: rgba(var(--rel-cloud-navy-rgb), 0.24);
    --cli-slate-400: var(--rel-ink-muted);
    --cli-slate-600: var(--rel-ink);
    --cli-slate-900: var(--rel-ink-strong);
    --tk-thead-grad: linear-gradient(105deg, #315f78, #477b98 56%, #5d8ba3);
    background: linear-gradient(180deg, var(--rel-cloud-surface-raised), var(--rel-cloud-surface));
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.30);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-head.tk-head {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

/* KPI Clientes: cartão solto; o vão lateral é só o fundo do card pai, sem faixa nem linhas. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-stats.tk-stats {
    margin: 0 1.625rem;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    border-radius: 0.375rem;
    border: 0.0625rem solid rgba(var(--rel-cloud-navy-rgb), 0.28);
    background: #c5ced8;
    background-clip: padding-box;
    box-shadow: none;
    isolation: isolate;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-stats .tk-stat .sl,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-stats .tk-stat .sv i {
    color: var(--rel-cloud-navy);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-stats .tk-stat .sv,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-stats .tk-stat.hero .sv {
    color: var(--rel-cloud-navy-deep);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025rem;
    text-shadow: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-body {
    background: transparent;
    border-top: none;
    box-shadow: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-panel-rank,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-rank-scroll {
    background: var(--rel-cloud-surface-raised);
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.28);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-rank-table thead tr,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes #clientesRankPagination.list-pagination-bar {
    background: var(--tk-thead-grad);
    border-color: rgba(190, 216, 229, 0.34);
    box-shadow: inset 0 0.0625rem rgba(225, 239, 246, 0.24), inset 0 -0.0625rem rgba(7, 27, 41, 0.34);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-rank-table tbody tr,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-rank-scroll.is-empty .clientes-rank-table tbody tr {
    background: var(--rel-cloud-surface-raised) !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-rank-table tbody tr:nth-child(even),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes .clientes-rank-scroll.is-empty .clientes-rank-table tbody tr:nth-child(even) {
    background: rgba(var(--rel-cloud-navy-rgb), 0.07) !important;
}

/* Autoridade final: sub-abas iguais em tamanho; selecionada com contraste e sem contorno inferior. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab:not(.on),
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab:not(.on),
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab:not(.on),
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab:not(.on) {
    background: #315f78 !important;
    border-color: rgba(190, 216, 229, 0.28) !important;
    color: #f4f8fa !important;
    box-shadow: none !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab.on,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab.on,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab.on,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab.on,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab.on:hover,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab.on:hover {
    background: #6a9bb3 !important;
    border-color: rgba(225, 239, 246, 0.55) !important;
    color: #fff !important;
    box-shadow: none !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .subtab.on .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .prj-tab.on .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depSubnav .subtab .ti,
html[data-theme="cinza"] #page-relatorios .relatorios-fd #finSubnav .subtab .ti {
    color: #f4f8fa !important;
}

/* Card pai das visões: mesma superfície gelo do card Clientes. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.visao,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.dep,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.fin,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.tickets-card,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.clientes.clientes--modern {
    background: linear-gradient(180deg, var(--rel-cloud-surface-raised), var(--rel-cloud-surface));
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.30);
    box-shadow: var(--rel-cloud-shadow-card);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.visao > .chart-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.dep > .chart-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.fin > .chart-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .chart-card.fin .fin-head-main > .chart-head,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .tickets-card > .tk-head {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

/* Financeiro: o .fin redefinia --f-blue para #0b63d6 e o valor/botão voltavam ao azul elétrico. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .fin {
    --f-blue: var(--rel-cloud-navy);
    --f-blue-bg: rgba(var(--rel-cloud-navy-rgb), 0.16);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .ff-node.is-invest .ff-x-day {
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .fin-evol-switch {
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.34);
    background: #c5ced8;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .fin-evol-switch-btn {
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .fin-evol-switch-btn:hover {
    background: rgba(var(--rel-cloud-navy-rgb), 0.12);
    color: var(--rel-cloud-navy-deep);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .fin-evol-switch-btn[aria-pressed="true"],
html[data-theme="cinza"] #page-relatorios .relatorios-fd .fin-evol-switch-btn[aria-pressed="true"]:hover {
    background: #173b57;
    color: #f4f8fa;
}

/* Notificações: 3×2, botões iguais; selecionado em marinho gelo, sem azul elétrico. */
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel {
    background: linear-gradient(180deg, #b2b9c2, #9fa7b1) !important;
    border-color: rgba(23, 59, 87, 0.38) !important;
    color: #0b2234 !important;
    box-shadow: 0 1.125rem 2.5rem -1.125rem rgba(11, 34, 52, 0.55) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel-header {
    background: linear-gradient(105deg, #173b57, #315f78) !important;
    border-bottom: 0.0625rem solid rgba(190, 216, 229, 0.34) !important;
    color: #f4f8fa !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel-header strong {
    color: #f4f8fa !important;
    font-weight: 800;
    letter-spacing: -0.0125rem;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-filtros {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.375rem !important;
    padding: 0.625rem 0.75rem !important;
    background: #c5ced8 !important;
    border-bottom: 0.0625rem solid rgba(23, 59, 87, 0.28) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-filtro {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 2.125rem !important;
    padding: 0 0.375rem !important;
    box-sizing: border-box !important;
    font-size: 0.71875rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
    color: #0b2234 !important;
    background: #dde1e6 !important;
    border: 0.0625rem solid rgba(23, 59, 87, 0.30) !important;
    border-radius: 0.25rem !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-filtro:hover {
    background: #e8edf1 !important;
    border-color: rgba(23, 59, 87, 0.46) !important;
    color: #0b2234 !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-filtro.ativo {
    background: #173b57 !important;
    border-color: rgba(190, 216, 229, 0.50) !important;
    color: #f4f8fa !important;
    box-shadow: inset 0 0.0625rem rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel {
    max-height: var(--notif-painel-max-h, min(48vh, 28.75rem)) !important;
    height: auto !important;
    overflow: hidden !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-lista {
    max-height: var(--notif-lista-max-h, min(38vh, 22.5rem)) !important;
    height: auto !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    color: #0b2234;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-lista .empty-state {
    color: #333b45 !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel .notificacao-item-wa-action-btn,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel .notificacao-item-actions .button.button-small,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel .notificacao-item-actions .button.button-secondary.button-small {
    height: 2.125rem !important;
    min-height: 2.125rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    color: #0b2234 !important;
    background: #f4f8fa !important;
    border: 0.0625rem solid rgba(23, 59, 87, 0.40) !important;
    border-radius: 0.25rem !important;
    box-shadow: none !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel .notificacao-item-wa-action-btn:hover,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel .notificacao-item-actions .button.button-small:hover,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .notificacoes-painel .notificacao-item-actions .button.button-secondary.button-small:hover {
    background: #ffffff !important;
    border-color: rgba(23, 59, 87, 0.55) !important;
    color: #061521 !important;
}

/* Menu do perfil: mesma paleta gelo, tipografia e contornos do Nublado. */
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu {
    background: linear-gradient(180deg, #b2b9c2, #9fa7b1) !important;
    border-color: rgba(23, 59, 87, 0.38) !important;
    color: #0b2234 !important;
    box-shadow: 0 1.125rem 2.5rem -1.125rem rgba(11, 34, 52, 0.55) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-row {
    border-bottom-color: rgba(23, 59, 87, 0.22) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-title {
    color: #0b2234 !important;
    font-weight: 800;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-meta,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-status-label {
    color: #333b45 !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-row--action:hover,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-row--action:focus-visible {
    background: rgba(23, 59, 87, 0.12) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-status-trigger,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-secure-btn {
    color: #0b2234 !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .topbar-status-option {
    color: #0b2234 !important;
    border-color: rgba(23, 59, 87, 0.22) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .topbar-status-option:hover,
html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .topbar-status-option[aria-checked="true"] {
    background: rgba(23, 59, 87, 0.12) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .theme-soon-badge {
    background: #d5dee6 !important;
    color: #173b57 !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-toggle {
    background: #c5ced8 !important;
    border: 0.0625rem solid rgba(23, 59, 87, 0.34) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-toggle[aria-checked="true"] {
    background: #173b57 !important;
    border-color: rgba(190, 216, 229, 0.45) !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-row--logout {
    background: #eadfe0 !important;
    color: #681513 !important;
}

html[data-theme="cinza"] .main-content:has(#page-relatorios.active) .app-topbar .topbar-user-menu .tum-row--logout .tum-title {
    color: #681513 !important;
}

/* Autoridade final: sub-abas com a linguagem dos cabeçalhos Nublado. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd :is(#depSubnav, #finSubnav) .subtab,
html[data-theme="cinza"] #page-relatorios .relatorios-fd :is(#depSubnav, #finSubnav) .subtab:not(.on) {
    background:
        radial-gradient(circle at 16% 24%, rgba(239, 248, 252, 0.28) 0, rgba(225, 239, 246, 0.09) 27%, transparent 50%),
        radial-gradient(circle at 70% 78%, rgba(23, 59, 87, 0.30) 0, transparent 52%),
        radial-gradient(circle at 92% 16%, rgba(190, 216, 229, 0.28) 0, transparent 40%),
        #426b80 !important;
    border-color: rgba(184, 207, 220, 0.34) !important;
    color: rgba(244, 248, 250, 0.88) !important;
    box-shadow: inset 0 0.0625rem rgba(225, 239, 246, 0.24), inset 0 0 1.125rem rgba(225, 239, 246, 0.06) !important;
    text-shadow: 0 0.0625rem rgba(5, 20, 31, 0.52);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd :is(#depSubnav, #finSubnav) .subtab:hover {
    border-color: rgba(225, 239, 246, 0.56) !important;
    color: #fff !important;
    filter: brightness(1.08);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd :is(#depSubnav, #finSubnav) .subtab.on,
html[data-theme="cinza"] #page-relatorios .relatorios-fd :is(#depSubnav, #finSubnav) .subtab.on:hover {
    background:
        radial-gradient(circle at 16% 22%, rgba(239, 248, 252, 0.34) 0, rgba(225, 239, 246, 0.12) 28%, transparent 50%),
        radial-gradient(circle at 70% 78%, rgba(23, 59, 87, 0.38) 0, transparent 52%),
        radial-gradient(circle at 92% 16%, rgba(184, 215, 230, 0.34) 0, transparent 40%),
        #56879f !important;
    border-color: rgba(225, 239, 246, 0.62) !important;
    color: #fff !important;
    box-shadow: inset 0 0.0625rem rgba(239, 248, 252, 0.34), inset 0 0 1.125rem rgba(225, 239, 246, 0.08) !important;
}

/* Limpar: vermelho mineral integrado ao Nublado, sem alterar a geometria. */
html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters {
    background: linear-gradient(180deg, #8f494d, #713035) !important;
    border-color: rgba(248, 214, 216, 0.46) !important;
    color: #fff7f7 !important;
    box-shadow: inset 0 0.0625rem rgba(255, 239, 240, 0.22), 0 0.4375rem 1rem -0.75rem rgba(56, 11, 14, 0.82) !important;
    text-shadow: 0 0.0625rem rgba(49, 8, 11, 0.52);
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters svg {
    color: #ffe7e8 !important;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters:hover {
    background: linear-gradient(180deg, #a35a5e, #7f383d) !important;
    border-color: rgba(255, 231, 232, 0.68) !important;
    color: #fff !important;
    filter: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters:focus-visible {
    background: linear-gradient(180deg, #9b5357, #77353a) !important;
    border-color: #e1eff6 !important;
    color: #fff !important;
    box-shadow: 0 0 0 0.1875rem rgba(225, 239, 246, 0.30), inset 0 0.0625rem rgba(255, 239, 240, 0.24) !important;
    filter: none;
}

html[data-theme="cinza"] #page-relatorios .relatorios-fd .rel-clear-filters:active {
    background: linear-gradient(180deg, #68292e, #572126) !important;
    border-color: rgba(255, 222, 224, 0.48) !important;
    box-shadow: inset 0 0.125rem 0.25rem rgba(43, 7, 10, 0.34) !important;
}

/* Modo expandido: Voltar segue o cabeçalho mineral do Nublado. */
html[data-theme="cinza"] #page-relatorios.relatorios-print-focus .rp-focus-bar .rp-focus-back {
    background: linear-gradient(180deg, #6f9fb7, #477a94) !important;
    border-color: rgba(225, 239, 246, 0.58) !important;
    color: #fff !important;
    box-shadow: inset 0 0.0625rem rgba(239, 248, 252, 0.34), 0 0.5rem 1.125rem -0.8125rem rgba(7, 27, 41, 0.72) !important;
    text-shadow: 0 0.0625rem rgba(5, 20, 31, 0.56);
}

html[data-theme="cinza"] #page-relatorios.relatorios-print-focus .rp-focus-bar .rp-focus-back:hover {
    background: linear-gradient(180deg, #80acc1, #5688a1) !important;
    border-color: rgba(239, 248, 252, 0.78) !important;
    color: #fff !important;
}

html[data-theme="cinza"] #page-relatorios.relatorios-print-focus .rp-focus-bar .rp-focus-back:focus-visible {
    border-color: #f3fbff !important;
    box-shadow: 0 0 0 0.1875rem rgba(225, 239, 246, 0.34), inset 0 0.0625rem rgba(255, 255, 255, 0.38) !important;
    outline: none;
}

html[data-theme="cinza"] #page-relatorios.relatorios-print-focus .rp-focus-bar .rp-focus-back:active {
    background: linear-gradient(180deg, #416f87, #365e73) !important;
    box-shadow: inset 0 0.125rem 0.25rem rgba(7, 27, 41, 0.34) !important;
}

/* Departamento líder / Consumido pelo top 5 — contraste Nublado (superfície clara + navy) */
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depExec .dx-card,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .ct-sum-card {
    background: linear-gradient(
        148deg,
        color-mix(in srgb, var(--rel-cloud-surface-raised) 88%, #d7dee6) 0%,
        color-mix(in srgb, var(--rel-cloud-surface-raised) 72%, #c5ced8) 48%,
        color-mix(in srgb, var(--rel-cloud-surface) 82%, #b8c1cb) 100%
    ) !important;
    border-color: rgba(var(--rel-cloud-navy-rgb), 0.30) !important;
    box-shadow: var(--rel-cloud-shadow-card), inset 0 0.0625rem 0 rgba(255, 255, 255, 0.42) !important;
}
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depExec .dx-card .dx-k,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .ct-sum-card .cs-k {
    color: var(--rel-cloud-navy) !important;
}
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depExec .dx-card .dx-v,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .ct-sum-card .cs-v {
    color: var(--rel-cloud-navy-deep) !important;
}
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depExec .dx-card .dx-x,
html[data-theme="cinza"] #page-relatorios .relatorios-fd .ct-sum-card .cs-x {
    color: var(--rel-ink-3) !important;
}
html[data-theme="cinza"] #page-relatorios .relatorios-fd #depExec .dx-card .dx-ic {
    background: rgba(var(--rel-cloud-navy-rgb), 0.14) !important;
    color: var(--rel-cloud-navy) !important;
}
