/**
 * com_anuariocoop :: SHELL COMUM das views públicas do AnuárioCoop.
 * Estrutura reutilizada por dados, cooperativas e cooperados:
 * view, container, hero, submenu/logo, dashboard, sidebar, cards genéricos,
 * botões, CTA, fonte, correções de Helix e responsividade estrutural.
 *
 * Escopo isolado em .ac-shell-view — não afeta o template global (Helix).
 *
 * @copyright (C) 2026 OCB / SESCOOP
 * @license   GNU General Public License version 3 or later; see LICENSE.txt
 */

.ac-shell-view {
    --ac-shell-max-width: 1320px;
    --ac-shell-gap: 24px;
    --ac-shell-radius: 18px;
    --ac-shell-surface: var(--ocb-branco);
    --ac-shell-bg: var(--color-bg-site);
    --ac-shell-border: #e6e8f0;
    --ac-shell-navy: var(--ocb-azul-marinho);
    --ac-shell-blue: var(--ocb-azul-ceu);
    --ac-shell-green: var(--ocb-verde-sescoop);
    --ac-shell-ink: #1f2433;
    --ac-shell-ink-2: #444b60;
    --ac-shell-muted: #8a90a6;

    /* Altura do menu principal do template Sistema OCB/Helix. */
    --ac-template-header-height: 70px;

    /* Altura aproximada da barra do AnuárioCoop. */
    --ac-shell-submenu-height: 84px;

    color: var(--ac-shell-ink);
    font-family: inherit;
    line-height: 1.5;

    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    overflow-x: visible;
    overflow-y: visible;

    background: var(--ac-shell-bg);
}

.ac-shell-view *,
.ac-shell-view *::before,
.ac-shell-view *::after {
    box-sizing: border-box;
}

.ac-shell-container {
    width: min(100% - 48px, var(--ac-shell-max-width));
    margin-inline: auto;
}

/*
 * Corrige o empilhamento do Helix.
 * O menu principal e seus dropdowns precisam ficar acima da barra do Anuário.
 */
body:has(.ac-shell-view, .ac-ramos-page) #sp-header,
body:has(.ac-shell-view, .ac-ramos-page) header#sp-header,
body:has(.ac-shell-view, .ac-ramos-page) .sp-header,
body:has(.ac-shell-view, .ac-ramos-page) .header,
body:has(.ac-shell-view, .ac-ramos-page) .header-sticky,
body:has(.ac-shell-view, .ac-ramos-page) .sticky-header {
    z-index: 5000 !important;
}

body:has(.ac-shell-view, .ac-ramos-page) .sp-megamenu-wrapper,
body:has(.ac-shell-view, .ac-ramos-page) .sp-megamenu-parent,
body:has(.ac-shell-view, .ac-ramos-page) .sp-menu,
body:has(.ac-shell-view, .ac-ramos-page) .menu-parent {
    position: relative;
    z-index: 5100 !important;
}

body:has(.ac-shell-view, .ac-ramos-page) .sp-dropdown,
body:has(.ac-shell-view, .ac-ramos-page) .sp-dropdown-main,
body:has(.ac-shell-view, .ac-ramos-page) .sp-megamenu-parent .sp-dropdown,
body:has(.ac-shell-view, .ac-ramos-page) .sp-megamenu-parent .sp-dropdown-inner,
body:has(.ac-shell-view, .ac-ramos-page) .offcanvas-overlay {
    z-index: 5200 !important;
}

/* Remove o espaço que o Helix coloca antes do componente. */
body:has(.ac-shell-view, .ac-ramos-page) #sp-main-body,
body:has(.ac-shell-view, .ac-ramos-page) #sp-component,
body:has(.ac-shell-view, .ac-ramos-page) .body-wrapper,
body:has(.ac-shell-view, .ac-ramos-page) .site-wrapper,
body:has(.ac-shell-view, .ac-ramos-page) .site-grid,
body:has(.ac-shell-view, .ac-ramos-page) main,
body:has(.ac-shell-view, .ac-ramos-page) .container-component,
body:has(.ac-shell-view, .ac-ramos-page) .com-content,
body:has(.ac-shell-view, .ac-ramos-page) .com-content-article {
    overflow: visible !important;
}

/*
 * STICKY (menu principal / submenu / sidebar): position:sticky quebra se
 * QUALQUER ancestral tiver overflow != visible. O Helix normalmente aplica
 * overflow-x:hidden no html/body/.body-innerwrapper (anti-scroll horizontal),
 * o que impede o sticky de funcionar. Restauramos overflow:visible em toda a
 * cadeia de ancestrais — SOMENTE nas páginas do shell (body:has(.ac-shell-view, .ac-ramos-page)).
 */
/* html/body: overflow-y visible mantém o sticky; overflow-x clip corta a barra
   de rolagem horizontal do full-bleed (100vw inclui a largura da barra vertical).
   clip NÃO cria contexto de rolagem, então não quebra a subnav sticky. */
html:has(.ac-shell-view, .ac-ramos-page),
body:has(.ac-shell-view, .ac-ramos-page) {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

body:has(.ac-shell-view, .ac-ramos-page) .body-innerwrapper,
body:has(.ac-shell-view, .ac-ramos-page) #sp-page,
body:has(.ac-shell-view, .ac-ramos-page) #sp-page-builder,
body:has(.ac-shell-view, .ac-ramos-page) #sp-component > .container,
body:has(.ac-shell-view, .ac-ramos-page) #sp-component > .container > .row {
    overflow: visible !important;
}

body:has(.ac-shell-view, .ac-ramos-page) #sp-main-body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body:has(.ac-shell-view, .ac-ramos-page) #sp-component {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body:has(.ac-shell-view, .ac-ramos-page) .ac-shell-view {
    margin-top: 0 !important;
}

/* ------------------------------------------------------------------ Hero */
.ac-shell-hero {
    background: linear-gradient(118deg, var(--ocb-azul-marinho) 0%, var(--ocb-azul-ocb) 42%, var(--ocb-azul-ceu) 68%, var(--ocb-verde-sescoop) 100%);
    color: var(--ocb-branco);
    padding-block: 30px 32px;
}

.ac-shell-hero__title {
    font-family: var(--font-intro-light);
    font-weight: 300;
    font-size: 44px;
    line-height: 1.06;
    letter-spacing: -0.01em;
    color: var(--ocb-branco);
    margin: 0 0 12px;
}

.ac-shell-hero__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-inter);
    font-size: 14.5px;
    color: color-mix(in srgb, var(--ocb-branco) 85%, var(--ocb-transparent));
    margin: 0;
    flex-wrap: wrap;
}

.ac-shell-hero__loc {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ac-shell-hero__sep {
    opacity: .5;
}

/* --------------------------------------------------------------- Submenu */
.ac-shell-submenu {
    position: sticky !important;
    top: var(--ac-template-header-height);
    z-index: 300;
    width: 100%;
    background: color-mix(in srgb, var(--ocb-branco) 98%, var(--ocb-transparent));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 0;
    border-bottom: 1px solid var(--ac-shell-border);
    box-shadow: 0 8px 22px color-mix(in srgb, var(--ocb-azul-marinho) 5%, var(--ocb-transparent));
    margin-top: 0 !important;
}

.ac-shell-submenu__inner {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-height: var(--ac-shell-submenu-height);
    padding-block: 12px;
}

.ac-shell-submenu__brand {
    width: 280px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    text-decoration: none;
}

.ac-shell-submenu__brand img {
    width: auto;
    max-width: 100%;
    height: 44px;
    display: block;
}

.ac-shell-submenu__menu {
    min-width: 0;
}

.ac-shell-submenu__links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.ac-shell-submenu__link {
    display: inline-flex;
    align-items: center;
    padding-block: 13px;
    font-weight: 500;
    font-size: 13.5px;
    color: #4a4f7a;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
}

/* Ativo: única alteração é o peso da fonte (600). */
.ac-shell-submenu__link[aria-current="page"] {
    font-weight: 600;
}

.ac-shell-submenu__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 2px;
    background: linear-gradient(90deg, var(--ocb-azul-ceu), var(--ocb-verde-sescoop));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.ac-shell-submenu__link:hover,
.ac-shell-submenu__link:focus-visible {
    color: #4a4f7a;
}

.ac-shell-submenu__link:hover::after,
.ac-shell-submenu__link:focus-visible::after,
.ac-shell-submenu__link[aria-current="page"]::after {
    transform: scaleX(1);
}

/* ---- Submenu com subitens (dropdown no hover) ---- */
.ac-shell-submenu__item {
    position: relative;
}

/* Todo item age como link (cursor mãozinha), mesmo sem destino real. */
.ac-shell-submenu__link {
    cursor: pointer;
}

/* Ícone (chevron) logo após o item que tem subitens. */
.ac-shell-submenu__caret {
    font-size: 11px;
    margin-left: 7px;
    opacity: .85;
}

/* Ponte invisível: mantém o hover ao mover do item para o dropdown. */
.ac-shell-submenu__item.has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 10px;
}

/* Área dos subitens: abre no hover / foco do item. */
.ac-shell-submenu__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -10px;
    z-index: 50;
    min-width: 210px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--ocb-branco);
    border: 1px solid var(--ac-shell-border);
    border-radius: 12px;
    box-shadow: 0 18px 40px color-mix(in srgb, var(--ocb-azul-marinho) 14%, var(--ocb-transparent));
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.ac-shell-submenu__item.has-children:hover > .ac-shell-submenu__dropdown,
.ac-shell-submenu__item.has-children:focus-within > .ac-shell-submenu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ac-shell-submenu__subitem {
    margin: 0;
}

.ac-shell-submenu__sublink {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13.5px;
    color: #4a4f7a;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}

.ac-shell-submenu__sublink:hover,
.ac-shell-submenu__sublink:focus-visible,
.ac-shell-submenu__sublink[aria-current="page"] {
    background: #f1f4fb;
    color: var(--ocb-azul-marinho);
}

/* ---- Hambúrguer (aparece quando não há espaço para os links) ---- */
.ac-shell-submenu__burger {
    display: none;
    justify-self: end;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.ac-shell-submenu__burger span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--ocb-azul-marinho);
}

.ac-shell-submenu__burger:hover {
    background: #eef2fb;
}

/* ---- Offcanvas (menu lateral, abre pela esquerda) — comum a todas as views ---- */
.ac-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 99999; /* acima do header do site (offcanvas é movido para o body via JS) */
}

.ac-offcanvas[hidden] {
    display: none;
}

.ac-offcanvas__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--ocb-azul-marinho) 38%, var(--ocb-transparent));
    opacity: 0;
    transition: opacity .25s ease;
}

.ac-offcanvas.is-open .ac-offcanvas__backdrop {
    opacity: 1;
}

.ac-offcanvas__panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: min(86vw, 340px);
    display: flex;
    flex-direction: column;
    background: var(--ocb-branco);
    box-shadow: 0 0 60px color-mix(in srgb, var(--ocb-azul-marinho) 25%, var(--ocb-transparent));
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1);
    overflow-y: auto;
}

.ac-offcanvas.is-open .ac-offcanvas__panel {
    transform: translateX(0);
}

.ac-offcanvas__head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 56px;
    border-bottom: 1px solid var(--ac-shell-border);
}

.ac-offcanvas__logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    display: block;
}

.ac-offcanvas__close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ocb-azul-marinho);
    font-size: 20px;
    cursor: pointer;
}

.ac-offcanvas__close:hover {
    background: #eef2fb;
}

.ac-offcanvas__nav {
    padding: 8px 0 24px;
}

.ac-offcanvas__list,
.ac-offcanvas__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ac-offcanvas__row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #f0f2f8;
}

/* Rótulo = 70% (link/navega), seta = 30% (toggle/abre subitens). */
.ac-offcanvas__link {
    flex: 0 0 70%;
    max-width: 70%;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 15px;
    color: var(--ocb-azul-marinho);
    text-decoration: none;
    cursor: pointer;
}

.ac-offcanvas__item:not(.has-children) .ac-offcanvas__link {
    flex-basis: 100%;
    max-width: 100%;
}

.ac-offcanvas__link[aria-current="page"] {
    color: var(--ocb-azul-ceu);
}

.ac-offcanvas__toggle {
    flex: 0 0 30%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid #f0f2f8;
    background: transparent;
    color: #8b8fae;
    font-size: 14px;
    cursor: pointer;
    transition: transform .2s ease, color .15s ease, background .15s ease;
}

.ac-offcanvas__toggle:hover {
    color: var(--ocb-azul-marinho);
    background: var(--color-bg-site);
}

.ac-offcanvas__toggle[aria-expanded="true"] {
    transform: rotate(90deg);
    color: var(--ocb-azul-marinho);
}

/* Subitens recuados, dando a sensação de subnível. */
.ac-offcanvas__sublist {
    background: #f8f9fd;
}

.ac-offcanvas__sublist[hidden] {
    display: none;
}

.ac-offcanvas__sublink {
    display: block;
    padding: 13px 20px 13px 40px;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 14px;
    color: #4a4f7a;
    text-decoration: none;
    border-bottom: 1px solid #eef0f6;
    cursor: pointer;
}

.ac-offcanvas__sublink:hover,
.ac-offcanvas__sublink[aria-current="page"] {
    color: var(--ocb-azul-marinho);
}

/* Trava o scroll do body quando o offcanvas está aberto. */
body.ac-offcanvas-open {
    overflow: hidden;
}

/* ------------------------------------------------------------ Dashboard */
.ac-shell-main {
    padding-block: 32px;
}

.ac-shell-dashboard {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.ac-shell-dashboard--full {
    grid-template-columns: minmax(0, 1fr);
}

/* ------------------------------------------------------- Cards genéricos */
.ac-shell-card {
    background: var(--ac-shell-surface);
    border: 1px solid var(--ac-shell-border);
    border-radius: var(--ac-shell-radius);
    padding: 18px;
}

.ac-shell-card__title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    color: var(--ocb-azul-marinho);
    margin: 0 0 10px;
}

.ac-shell-card__eyebrow,
.ac-shell-kicker {
    font-size: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--ac-shell-muted);
    margin: 0 0 10px;
}

/* -------------------------- Painel "Você está vendo dados de <estado>" */
.ac-shell-estado {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ac-shell-estado__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ac-shell-estado__oce {
    padding-top: 12px;
    border-top: 1px solid var(--ac-shell-border);
}

.ac-shell-estado__media {
    flex: 0 0 30%;
    max-width: 30%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-shell-estado__flag {
    width: 100%;
    max-width: 60px;
    height: auto;
    border-radius: 6px;
    display: block;
}

/* Logo da OCE ocupa a linha inteira (sem rótulo ao lado). */
.ac-shell-estado__ocelogo {
    width: 100%;
    max-height: 64px;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

.ac-shell-estado__text {
    flex: 1 1 70%;
    min-width: 0;
}

.ac-shell-estado__eyebrow {
    font-family: var(--font-inter);
    font-weight: 400;
    font-size: 12px;
    line-height: 1.3;
    color: var(--ac-shell-muted);
    margin: 0;
}

.ac-shell-estado__name {
    font-family: var(--font-intro-medium);
    font-weight: 500;
    font-size: 15px;
    line-height: 1.25;
    color: var(--ocb-azul-marinho);
    margin: 2px 0 0;
}

/* --------------------------------------------------------------- Sidebar */
.ac-shell-sidebar {
    /*position: sticky;*/
    top: calc(var(--ac-template-header-height) + var(--ac-shell-submenu-height) + 18px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ac-shell-minimap {
    width: 100%;
    margin: 0;
    background: var(--ac-shell-bg);
    border: 1px solid var(--ac-shell-border);
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.ac-shell-minimap__chart {
    width: 100%;
    height: 300px;
    min-height: 300px;
    display: block;
}

.ac-shell-minimap__chart canvas,
.ac-shell-minimap__chart svg,
.ac-shell-minimap__chart img,
.ac-dados-minimap__chart canvas,
.ac-dados-minimap__chart svg,
.ac-dados-minimap__chart img {
    width: 100% !important;
    height: 100% !important;
    display: block;
    object-fit: contain;
}

.ac-shell-uf {
    margin-top: 12px;
}

/* Label "Estado" acessível, porém oculto visualmente (sem rótulo abaixo do mapa). */
.ac-shell-uf__label,
.ac-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ac-shell-uf__select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e3e5ef;
    border-radius: 10px;
    background: var(--ocb-branco);
    font-family: var(--font-inter);
    font-size: 14px;
    color: var(--ocb-azul-marinho);
    cursor: pointer;
}

.ac-shell-uf__select:focus {
    outline: 2px solid var(--ac-shell-blue);
    outline-offset: 1px;
}

.ac-shell-uf__foot {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 10px;
}

.ac-shell-uf__reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-inter);
    font-weight: 600;
    font-size: 12.5px;
    color: var(--ocb-azul-ceu);
    text-decoration: none;
}

.ac-shell-uf__reset:hover,
.ac-shell-uf__reset:focus-visible {
    color: var(--ac-shell-navy);
    text-decoration: none;
}

.ac-shell-uf__reset i {
    font-size: .95em;
}

/* --------------------------------------------------------------- Dimnav */
/* Título "Dimensões" do menu lateral. */
.ac-shell-dims .ac-shell-card__eyebrow {
    font-family: var(--font-intro-regular-alt);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: #8b8fae;
}

.ac-shell-dimnav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ac-shell-dimnav__item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-family: var(--font-inter);
    font-weight: 500;
    font-size: 14px;
    color: #4a4f7a;
    text-decoration: none;
    cursor: pointer;
}

.ac-shell-dimnav__icon {
    flex: none;
    width: 1.2em;
    font-size: 1.05em;
    text-align: center;
    color: var(--ac-shell-blue);
}

.ac-shell-view .ac-shell-dimnav__icon {
    color: var(--ac-shell-blue);
}

.ac-shell-dimnav__icon.ac-dados-dimnav__icon {
    color: #4a4f7a;
}

.ac-shell-dimnav__item.is-active .ac-shell-dimnav__icon,
.ac-shell-view .ac-shell-dimnav__item.is-active .ac-shell-dimnav__icon {
    color: var(--ac-shell-navy);
}

.ac-shell-dimnav__item:hover {
    background: #eef1fb;
    color: var(--ac-shell-navy);
    box-shadow: inset 3px 0 0 var(--ac-shell-blue);
}

.ac-shell-dimnav__item.is-active {
    background: #eef1fb;
    color: var(--ac-shell-navy);
    font-weight: 600;
    border-color: #dbe2f6;
    box-shadow: inset 3px 0 0 var(--ac-shell-blue);
}

/* ------------------------------------------------------- Chart genérico */
.ac-shell-chart {
    width: 100%;
    min-height: 220px;
}

.ac-shell-chart-empty,
.ac-shell-empty {
    font-size: 13px;
    color: var(--ac-shell-muted);
    padding: 24px 0;
    text-align: center;
}

/* ------------------------------------------------------------------- CTA */
.ac-shell-cta {
    padding-bottom: 56px;
}

.ac-shell-cta__band {
    position: relative;
    overflow: hidden;
    background: var(--ocb-branco);
    border-radius: 22px;
    padding: 40px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    border: 1.5px solid var(--ocb-azul-marinho);
}

.ac-shell-cta__art {
    position: absolute;
    right: -2%;
    bottom: -40%;
    width: 46%;
    opacity: .4;
    pointer-events: none;
}

.ac-shell-cta__text,
.ac-shell-cta__action {
    position: relative;
    z-index: 2;
}

.ac-shell-cta__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.ac-shell-cta__info {
    font-size: 11.5px;
    color: color-mix(in srgb, var(--ocb-branco) 60%, var(--ocb-transparent));
}

.ac-shell-cta__title {
    font-weight: 300;
    font-size: 22px;
    line-height: 1.12;
    color: var(--ocb-azul-marinho);
    margin: 0 0 8px;
}

.ac-shell-cta__desc {
    font-size: 15px;
    line-height: 1.55;
    color: #4a4f7a;
    margin: 0;
    max-width: 60ch;
}

.ac-shell-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}

.ac-shell-btn--white {
    background: var(--ocb-branco);
    color: var(--ac-shell-navy);
}

.ac-shell-btn--white:hover {
    background: #eef1fb;
}


.ac-shell-btn--azul-marinho {
    background: var(--ac-shell-navy);
    color: var(--ocb-branco);
}

.ac-shell-btn--azul-marinho:hover {
    background: var(--ocb-azul-ceu);
}

/* ----------------------------------------------------------------- Fonte */
.ac-shell-source {
    padding-bottom: 40px;
}

.ac-shell-source--inline {
    grid-column: 2;
    padding-bottom: 0;
}

.ac-shell-dashboard--full .ac-shell-source--inline {
    grid-column: 1;
}

.ac-shell-source__text {
    font-size: 12px;
    font-style: italic;
    color: var(--ac-shell-muted);
    margin: 0;
}

/* ------------------------------------------------------------ Responsivo */
@media (max-width: 1100px) {
    .ac-shell-view {
        --ac-template-header-height: 70px;
        --ac-shell-submenu-height: 76px;
    }

    .ac-shell-submenu__inner {
        grid-template-columns: 260px minmax(0, 1fr);
        gap: 24px;
    }

    .ac-shell-submenu__brand,
    .ac-shell-submenu__brand img {
        width: 260px;
    }

    .ac-shell-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }

    .ac-shell-source--inline {
        grid-column: 1;
    }

    .ac-shell-sidebar {
        position: static;
    }
}

/* Sem espaço para os links inline: logo (esquerda) + hambúrguer (direita). */
@media (max-width: 992px) {
    .ac-shell-submenu__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 16px;
    }

    .ac-shell-submenu__menu {
        display: none;
    }

    .ac-shell-submenu__burger {
        display: inline-flex;
    }
}

@media (max-width: 720px) {
    .ac-shell-view {
        --ac-template-header-height: 66px;
        --ac-shell-submenu-height: auto;
    }

    .ac-shell-container {
        width: min(100% - 32px, var(--ac-shell-max-width));
    }

    .ac-shell-submenu {
        top: var(--ac-template-header-height);
    }

    .ac-shell-submenu__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        min-height: auto;
        padding-block: 10px;
    }

    .ac-shell-submenu__brand,
    .ac-shell-submenu__brand img {
        width: 200px;
    }

    .ac-shell-cta__band {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
}

/* ============================================================================
 * Tipografia padrão das views (espelha a Visão Geral / spec tipografia).
 * Escopo .ac-shell-view eleva a especificidade para vencer o CSS específico
 * de cada view (que carrega depois do shell).
 * ========================================================================== */

/* Números principais (quadros numéricos / destaques) */
.ac-shell-view .ac-cooperativas-total,
.ac-shell-view .ac-cooperados-total,
.ac-shell-view .ac-empregados-total,
.ac-shell-view .ac-fin-card__value {
    font-family: var(--font-intro-light);
    color: var(--ocb-azul-marinho);
    font-size: 25px;
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.01em;
}

/* Números secundários: mesma fonte/cor, tamanho próprio mantido */
.ac-shell-view .ac-cooperativas-timeline__value,
.ac-shell-view .ac-cooperativas-highlight__value,
.ac-shell-view .ac-cooperativas-longevity__num,
.ac-shell-view .ac-cooperados-card__value,
.ac-shell-view .ac-cooperados-percent__value,
.ac-shell-view .ac-cooperados-schooling__value,
.ac-shell-view .ac-empregados-card__value,
.ac-shell-view .ac-empregados-percent__value {
    font-family: var(--font-intro-light);
    color: var(--ocb-azul-marinho);
    letter-spacing: -0.02em;
}

/* Labels e subtítulos */
.ac-shell-view .ac-cooperativas-total__sub,
.ac-shell-view .ac-cooperativas-age__label,
.ac-shell-view .ac-cooperativas-longevity__label,
.ac-shell-view .ac-cooperados-total__sub,
.ac-shell-view .ac-cooperados-ramos__label,
.ac-shell-view .ac-cooperados-schooling__label,
.ac-shell-view .ac-empregados-total__sub,
.ac-shell-view .ac-empregados-ramos__label,
.ac-shell-view .ac-fin-card__label {
    font-family: var(--font-inter);
    font-size: 12.5px;
    line-height: 1.35;
    color: #4a4f7a;
}

/* Selos / deltas de crescimento */
.ac-shell-view .ac-cooperados-ramos__badge,
.ac-shell-view .ac-empregados-ramos__badge,
.ac-shell-view .ac-fin-card__badge {
    font-family: var(--font-inter);
    color: var(--ocb-verde-sescoop);
    font-weight: 700;
}

/* Texto introdutório com tags (Inter; tags <strong> mesma configuração) */
.ac-shell-view .ac-cooperados-sex__intro,
.ac-shell-view .ac-empregados-sex__intro,
.ac-shell-view .ac-fin-intro__text {
    font-family: var(--font-inter);
    font-size: 16.5px;
    line-height: 1.62;
    color: var(--ocb-azul-marinho);
}

.ac-shell-view .ac-cooperados-sex__intro strong,
.ac-shell-view .ac-empregados-sex__intro strong,
.ac-shell-view .ac-fin-intro__text strong {
    font-family: var(--font-inter);
    color: var(--ocb-azul-marinho);
    font-weight: 700;
}

/* ----- Padrão da área de gráficos (classes compartilhadas da shell) ----- */

/* Eyebrow "Dimensão" acima do H2 do conteúdo. */
.ac-shell-view .ac-shell-kicker {
    font-family: var(--font-intro-regular-alt);
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--ocb-azul-ceu);
    margin: 0 0 8px;
}

/* H2 da dimensão. */
.ac-shell-view .ac-shell-dimhead {
    margin-bottom: 12px;
}

.ac-shell-view .ac-shell-dimhead__title {
    font-family: var(--font-intro-light);
    font-weight: 300;
    font-size: 34px;
    line-height: 1.05;
    color: var(--ocb-azul-marinho);
    margin: 2px 0 0;
}

/* Cartões de gráfico: título, subtítulo e valor total à direita. */
.ac-shell-view .ac-shell-chart-card__title {
    font-family: var(--font-inter);
    font-weight: 700;
    font-size: 15px;
    color: var(--ocb-azul-marinho);
    margin: 0;
}

.ac-shell-view .ac-shell-chart-card__desc {
    font-family: var(--font-inter);
    font-size: 12px;
    color: #8b8fae;
    margin: 2px 0 0;
}

.ac-shell-view .ac-shell-chart-card__value {
    font-family: var(--font-intro-light);
    font-weight: 300;
    font-size: 24px;
    line-height: 1;
    color: var(--ocb-azul-marinho);
}

/* Fonte/legenda dos gráficos. */
.ac-shell-view .ac-shell-source__text {
    font-family: var(--font-inter);
    font-style: italic;
    font-size: 12px;
    color: #8b8fae;
    margin-top: 4px;
}

/* ============================================================================
 * FUNDAÇÃO RESPONSIVA COMPARTILHADA (Fase 1)
 * Classes utilitárias de gráfico/filtros + salvaguardas mobile. Breakpoints do
 * projeto: mobile ≤767px · tablet 768–1024px · desktop >1024px.
 * ADITIVO: nada aqui altera o layout desktop atual (>1024px). As classes novas
 * (.ac-chart-*, .ac-filters, .ac-table-scroll) só têm efeito onde forem usadas
 * (a Fase 2 liga cada view). Consome os mesmos valores do módulo ac-charts.js.
 * ========================================================================== */

/* Contêiner e nó do gráfico: largura fluida, sem estourar o card. */
.ac-shell-view .ac-chart-wrapper { width: 100%; min-width: 0; position: relative; }
.ac-shell-view .ac-chart { width: 100%; min-width: 0; }

/* Alturas por tipo (espelham AcCharts.getChartHeight — desktop). */
.ac-shell-view .ac-chart--simple { height: 320px; }
.ac-shell-view .ac-chart--line   { height: 340px; }
.ac-shell-view .ac-chart--vbar   { height: 360px; }
.ac-shell-view .ac-chart--pie    { height: 340px; }
.ac-shell-view .ac-chart--map    { height: 420px; }

/* Estados: carregando / vazio / erro dentro de um card de gráfico. */
.ac-shell-view .ac-chart-loading,
.ac-shell-view .ac-chart-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 24px 16px;
    text-align: center;
    font-family: var(--font-inter);
    font-size: 14px;
    color: #8b8fae;
}

/* Barra de ações/abas acima do canvas do gráfico. */
.ac-shell-view .ac-chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

/* Filtros: em linha por padrão; empilham no mobile. */
.ac-shell-view .ac-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}
.ac-shell-view .ac-filters > * { min-width: 0; }

/* Rolagem horizontal SOMENTE em contêiner específico (tabelas largas). Nunca no
 * body/main/container geral. */
.ac-shell-view .ac-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
}

/* -------- Tablet (≤1024px): gráficos a 100% da largura do card -------- */
@media (max-width: 1024px) {
    .ac-shell-view .ac-chart-wrapper,
    .ac-shell-view .ac-chart { width: 100%; }
}

/* -------- Mobile (≤767px): cards fluidos, filtros empilhados, sem overflow -------- */
@media (max-width: 767px) {
    /* Salvaguarda anti-overflow horizontal: card compartilhado sempre fluido. */
    .ac-shell-view .ac-shell-card {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    /* Filtros empilhados; campos e botões a 100%. */
    .ac-shell-view .ac-filters {
        flex-direction: column;
        align-items: stretch;
    }
    .ac-shell-view .ac-filters > *,
    .ac-shell-view .ac-filters select,
    .ac-shell-view .ac-filters input,
    .ac-shell-view .ac-filters button { width: 100%; }

    /* Alturas de gráfico legíveis no mobile (espelham AcCharts.getChartHeight). */
    .ac-shell-view .ac-chart--simple { height: 280px; }
    .ac-shell-view .ac-chart--line   { height: 300px; }
    .ac-shell-view .ac-chart--vbar   { height: 320px; }
    .ac-shell-view .ac-chart--pie    { height: 300px; }
    .ac-shell-view .ac-chart--map    { height: 320px; }

    /* Área de toque adequada em ações. */
    .ac-shell-view .ac-chart-toolbar button,
    .ac-shell-view .ac-filters button { min-height: 44px; }
}
