/* ========================================
   ESTILOS BASE - CATÁLOGO UCS
   ======================================== */

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    vertical-align: baseline;
    border-radius: var(--border-radius) !important;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    font-size: 16px;
}

body {
    line-height: 1.5;
    font-family: var(--fonte-1);
    color: var(--cor-texto);
}

/* Aplicar fontes em elementos específicos */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--fonte-1);
}

p,
span,
div,
a {
    font-family: var(--fonte-2);
}

button,
.btn {
    font-family: var(--fonte-2);
}

/* Elementos básicos */
ul {
    list-style: none;
}

a {
    font-style: none;
    text-decoration: none;
    color: var(--cor-texto);
    transition: transform var(--transition-fast);
}

a:hover {
    transform: scale(1.025);
}

a,
a:visited,
a:link,
a:active {
    text-decoration: none;
    color: var(--cor-texto);
}

/* Estados ativos */
.ativo {
    font-weight: bold;
    text-decoration: underline !important;
    color: var(--cor-menu-ativo) !important;
    text-underline-offset: 5px;
}

/* Alertas */
.alert {
    border-bottom: gray !important;
}

.alert-typus {
    background-color: pink !important;
}

/* ========================================
   CARROSSEL (SWIPER) - CATÁLOGO UCS
   ======================================== */

/* Slides */
.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-wrapper {
    height: auto;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Container do slide */
.slide-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* Navegação */
.swiper-button-next,
.swiper-button-prev,
.swiper-pagination-bullets {
    color: #fff;
}

/* Paginação */
.swiper-pagination {
    margin-bottom: 15px;
}

.swiper-pagination-bullet {
    opacity: 0.4;
    width: 12px;
    height: 12px;
    margin: 0 4px;
    transition: all var(--transition-normal);
}

.swiper-pagination-bullet-active {
    background: rgba(255, 255, 0, 0.8);
    transform: scale(1.2);
}

/* Bullets dinâmicos */
.swiper-pagination-dynamic {
    overflow: hidden;
    margin-bottom: -20px;
}

.swiper-pagination-dynamic .swiper-pagination-bullet {
    transform: scale(0.8);
    opacity: 0.5;
}

.swiper-pagination-dynamic .swiper-pagination-bullet-active {
    transform: scale(1);
    opacity: 1;
}

.swiper-pagination-dynamic .swiper-pagination-bullet-active-main {
    transform: scale(1.2);
    opacity: 1;
}

/* ========================================
   COMPONENTES - CATÁLOGO UCS
   ======================================== */

/* Galeria de imagens */
.crop_gal {
    width: 100%;
    object-fit: cover;
    max-height: 200px;
    min-height: 200px;
    margin-bottom: 0.75rem;
}

.crop_gal:hover {
    transform: scale(1.025);
    transition: transform var(--transition-fast);
    box-shadow: 2.5px 2.5px 2.5px 1px rgba(0, 0, 0, 0.2);
}

/* Grid de áreas */
section.area {
    padding-left: 8%;
    padding-right: 8%;
}

.area_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 0.75rem;
    width: 100%;
}

.area_grid h3.total_imgs {
    color: var(--cor-titulo);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.total_ucs {
    color: var(--cor-titulo);
    text-align: center;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Banco de imagens */
.banco_imagem_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 1.2rem;
    width: 100%;
}

.bi_crop_img {
    object-fit: cover;
    width: 100%;
    height: 200px;
}

.bi_info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 200px;
}

.bi_info h3,
.bi_info h5 {
    color: var(--cor-titulo);
}

.bi_info h4 {
    font-weight: 300;
}

.bi_info h5 {
    margin: 0;
    padding: 0;
}

/* Thumbnails de área */
.area_thumb_nome {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
}

.area_thumb_nome div {
    width: 100%;
}

section.area .area_thumb_nome p {
    width: 100%;
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    line-height: 1.25;
    font-weight: 500;
    color: var(--cor-titulo);
    text-align: center;
}

.area_crop_img {
    object-fit: cover;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    display: block;
}

.area_thumb_media--loading {
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    background: linear-gradient(
        90deg,
        #e8e8e8 0%,
        #f4f4f4 50%,
        #e8e8e8 100%
    );
    background-size: 200% 100%;
    animation: area-thumb-shimmer 1.2s ease-in-out infinite;
}

@keyframes area-thumb-shimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* Botão voltar */
.btn_voltar {
    display: inline;
    color: #fff !important;
    background: lightgray;
    font-size: 0.8rem;
    padding: 5px 7.5px;
    border: none;
}

.descricao .botao_voltar {
    text-align: center;
}

/* Panels */
.panel-default {
    border-color: transparent !important;
}

.panel {
    border: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.panel h2 {
    color: var(--cor-titulo);
}

.panel ul {
    margin-bottom: 2rem !important;
}

/* ========================================
   FOOTER - CATÁLOGO UCS
   ======================================== */

/* Seção administrado/desenvolvido */
.administrado_desenvolvido {
    text-align: center;
    font-size: 0.9rem;
    color: gray;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.administrado_desenvolvido p {
    margin-bottom: 0 !important;
}

.administrado_desenvolvido.margem {
    padding: 5% 20% 1% 20%;
}

/* Logo Creative Commons */
.administrado_desenvolvido .cc_logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.administrado_desenvolvido .cc_logo img {
    width: 90px !important;
    height: 36px !important;
    transition: transform var(--transition-normal);
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    margin-left: 10px;
    margin-top: 3px;
}

.administrado_desenvolvido .cc_logo img:hover {
    transform: scale(1.1);
}

/* Footer principal */
footer.rodape {
    background-color: var(--cor-bg-rodape);
    background: gray;
    height: max-content;
}

footer.margem {
    padding: 1.5% 20%;
}

.rodape-copyright {
    margin: 1rem 0 0;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    color: #fff;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Logos do rodapé */
.logos_rodape {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #fff;
    flex-wrap: wrap;
}

.apoio,
.realizacao {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.imgs_apoio,
.imgs_realizacao {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logos_rodape ul.imgs_apoio {
    margin-right: 6rem;
}

ul.imgs_apoio li:not(:last-child)>*,
ul.imgs_realizacao li:not(:last-child)>* {
    margin-right: 2.5rem;
}

.logos_rodape ul {
    padding: 0;
    margin-bottom: 1rem;
}

/* ========================================
   FORMULÁRIOS - CATÁLOGO UCS
   ======================================== */

/* Formulário de consulta */
.consulta_tabela tbody tr {
    border-bottom-style: solid;
    border-bottom: 1px solid lightgray;
}

.consulta_mensagem {
    background-color: #fff3cd;
    text-align: center;
    padding: 1rem;
    margin: 2rem 0;
}

.consulta_formulario {
    display: flex;
    flex-direction: column;
    font-size: inherit;
    justify-content: center;
    margin: 2rem 0;
}

.consulta_formulario section:not(:last-child)>* {
    margin-bottom: 2rem;
}

.consulta_formulario input,
.consulta_formulario select {
    border: 1px solid lightgray !important;
    height: 3rem;
    background: #fff;
}

.consulta_formulario input:focus,
.consulta_formulario select:focus {
    outline: 3px solid var(--cor-bg-topo);
}

/* Formulários específicos */
.consulta_form.ameaca_form input,
.consulta_form.estados_form input,
.consulta_form.biomas_form input,
.consulta_form.regioes_form input,
.consulta_form.tipos_form input,
.consulta_form.ucs_form input {
    height: initial;
    font-weight: 500 !important;
}

.consulta_form {
    display: flex;
    flex: 1;
}

.consulta_form.bloco_1,
.consulta_form.bloco_2,
.consulta_form.bloco_3,
.consulta_form.bloco_4,
.consulta_form.bloco_5 {
    display: flex;
}

.consulta_form.sub_bloco {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.consulta_formulario h3 {
    font-size: 1rem;
    color: var(--cor-titulo);
}

/* Formulários com margem */
.consulta_form.familia_form,
.consulta_form.genero_form,
.consulta_form.ameaca_form,
.consulta_form.grupo_form,
.consulta_form.estados_form,
.consulta_form.biomas_form,
.consulta_form.botoes_form .btn_consultar {
    margin-right: 2rem;
}

.consulta_form.ameaca label {
    margin-left: 1rem;
}

/* Botões do formulário */
.consulta_form.botoes_form {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.consulta_form.botoes_form button {
    height: 3rem;
    border: none;
    width: 15%;
    cursor: pointer;
    padding: 0 1rem;
    min-width: max-content;
}

.consulta_form.botoes_form button:hover {
    transition: var(--transition-fast);
    transform: scale(1.05);
}

.consulta_form.botoes_form button img {
    max-width: 16px;
    filter: invert(1);
    margin-right: 0.5rem;
}

.consulta_form.botoes_form .btn_consultar {
    background-color: var(--cor-bg-topo);
    color: #fff;
}

.consulta_form.botoes_form .btn_limpar {
    background-color: gray;
    color: #fff;
}

.consulta_form.botoes_form .btn_download {
    background-color: gray;
    color: #fff;
}

/* Tabelas */
.tabela_nova thead tr th {
    color: var(--cor-titulo) !important;
}

/* Selects */
.consulta_formulario select[multiple] {
    display: none !important;
}

/* Multiselect dropdown styles */
.multiselect-dropdown {
    display: inline-block;
    padding: 8px;
    border-radius: 4px;
    border: solid 1px #ced4da;
    background-color: white;
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .25rem center;
    background-size: 10px 14px;
    margin-right: 0;
    width: 100% !important;
    min-height: 3rem;
    cursor: pointer;
}

.multiselect-dropdown label {
    margin-left: 10px;
    font-weight: inherit;
}

.multiselect-dropdown span.optext,
.multiselect-dropdown span.placeholder {
    margin-right: 0.5em;
    margin-bottom: 2px;
    padding: 1px 0;
    border-radius: 4px;
    display: inline-block;
}

.multiselect-dropdown span.optext {
    background-color: rgba(132, 161, 45, 0.75);
    color: #fff;
    padding: 1px 0.75em;
    cursor: pointer;
    border-radius: 5px;
}

.multiselect-dropdown span.optext .optdel {
    float: right;
    margin: 0 -6px 1px 5px;
    font-size: 0.7em;
    margin-top: 2px;
    cursor: pointer;
    color: #fff;
}

.multiselect-dropdown span.optext .optdel:hover {
    color: black;
}

.multiselect-dropdown span.placeholder {
    color: #6c757d;
}

.multiselect-dropdown-list-wrapper {
    box-shadow: gray 0 3px 8px;
    z-index: 100;
    padding: 2px;
    border-radius: 4px;
    border: solid 1px #ced4da;
    background-color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
}

.multiselect-dropdown-list-wrapper .multiselect-dropdown-search {
    margin-bottom: 5px;
}

.multiselect-dropdown-list {
    padding: 2px;
    height: 15rem;
    overflow-y: auto;
    overflow-x: hidden;
}

.multiselect-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.multiselect-dropdown-list::-webkit-scrollbar-thumb {
    background-color: #bec4ca;
    border-radius: 3px;
}

.multiselect-dropdown-list div {
    padding: 5px;
    cursor: pointer;
}

.multiselect-dropdown-list div:hover {
    background-color: rgba(132, 161, 45, 0.75);
}

.multiselect-dropdown-list div.checked {
    background-color: rgba(132, 161, 45, 0.5);
}

.multiselect-dropdown span.maxselected {
    width: 100%;
}

.multiselect-dropdown-all-selector {
    border-bottom: solid 1px #999;
}

select.form-control {
    -webkit-appearance: menulist;
}

/* ========================================
   HEADER E NAVEGAÇÃO - CATÁLOGO UCS
   ======================================== */

/* Logo */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--cor-bg-topo);
    height: max-content;
    padding: 1rem 0;
}

.logo img {
    max-width: 350px;
    width: 100%;
    height: auto;
}

/* Navbar */
.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav a {
    text-decoration: none;
    color: black;
}

/* Menu da página */
.menu_pagina {
    width: 100%;
    padding: 1rem 0 2rem 0;
}

.menu_pagina ul {
    display: flex;
    justify-content: center;
    gap: 1.15rem;
    padding: 0;
}

.menu_pagina ul li {
    background-color: var(--cor-bg-topo);
    border: 1px solid var(--cor-bg-topo);
    padding: 2.5px 7.5px;
}

.menu_pagina ul li:hover {
    transform: scale(1.025);
    transition: transform var(--transition-fast);
}

.menu_pagina ul li a {
    color: #fff;
}

.menu_pagina ul li a:hover {
    color: #fff;
    transform: scale(1);
    transition: none;
}

/* Dropdown */
.dropdown-menu {
    width: max-content;
    padding: 0.5rem;
    border-radius: none;
}

.submenu.dropdown-menu {
    padding: 0.5rem;
}

/* Container do navbar */
.navbar>.container,
.navbar>.container-fluid,
.navbar>.container-lg,
.navbar>.container-md,
.navbar>.container-sm,
.navbar>.container-xl,
.navbar>.container-xxl {
    justify-content: center !important;
}

.navbar-container {
    position: relative;
    align-items: center;
}

.navbar-container:has(.navbar-public-menu) {
    justify-content: flex-start !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ========================================
   ESTILOS ESPECÍFICOS LARAVEL - CATÁLOGO UCS
   ======================================== */

/* Menu principal Laravel */
.menu_pagina {
    background-color: #ffffff !important;
    box-shadow: var(--shadow-light);
}

/* Logo customizada */
.logo-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--cor-bg-topo);
    padding: 1rem 0;
}

.logo-custom img {
    max-width: 350px;
    width: 100%;
    height: auto;
    transition: transform var(--transition-normal);
}

.logo-custom img:hover {
    transform: scale(1.05);
}

/* Navbar Laravel */
.menu_pagina .navbar-nav .nav-link {
    color: var(--cor-bg-topo) !important;
    font-weight: 500;
    background-color: transparent !important;
    border: none !important;
    padding: 8px 15px;
    display: inline-flex;
    align-items: center;
}

.menu_pagina .navbar-nav .nav-link i,
.menu_pagina_nav ul li a i {
    width: 1.15em;
    text-align: center;
    flex-shrink: 0;
}


.menu_pagina .navbar-nav .nav-link:hover {
    color: var(--cor-bg-topo) !important;
    background-color: transparent !important;
    transform: none !important;
}

/* Sobrescrever regras do style.css - apenas para navbar */
.menu_pagina:not(.menu_pagina_nav) ul li {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.menu_pagina:not(.menu_pagina_nav) ul li:hover {
    transform: none !important;
}

/* Manter estilos originais para menu de navegação da página de descrição */
.menu_pagina_nav ul li {
    background-color: var(--cor-bg-topo) !important;
    border: 1px solid var(--cor-bg-topo) !important;
    padding: 2.5px 7.5px !important;
}

.menu_pagina_nav ul li:hover {
    transform: scale(1.025) !important;
    transition: transform var(--transition-fast) !important;
}

.menu_pagina_nav ul li a {
    color: #fff !important;
    display: inline-flex;
    align-items: center;
}

.menu_pagina_nav ul li a:hover {
    color: #fff !important;
    transform: scale(1) !important;
    transition: none !important;
}

/* Separadores */
.menu_pagina .navbar-nav .nav-item.hide_bar {
    padding: 8px 5px;
}

/* Dropdown do usuário */
.menu_pagina .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid var(--cor-bg-topo);
    border-radius: 8px;
    box-shadow: var(--shadow-medium);
    right: 0;
    left: auto;
    min-width: 200px;
    display: none;
}

.menu_pagina .dropdown-menu.show {
    display: block;
}

.menu_pagina .dropdown-menu-end {
    right: 0 !important;
    left: auto !important;
}

.menu_pagina .dropdown-item {
    color: var(--cor-bg-topo);
    padding: 8px 16px;
    transition: all var(--transition-normal);
}

.menu_pagina .dropdown-menu a.dropdown-item {
    color: var(--cor-bg-topo) !important;
}

.menu_pagina .dropdown-menu a.dropdown-item:hover,
.menu_pagina .dropdown-menu a.dropdown-item:focus {
    background-color: var(--cor-bg-topo) !important;
    color: #ffffff !important;
}

.menu_pagina .dropdown-menu a.dropdown-item[data-navbar-logout] {
    cursor: pointer;
}

.menu_pagina .dropdown-item:hover {
    background-color: var(--cor-bg-topo);
    color: #ffffff;
}

.menu_pagina .dropdown-toggle::after {
    border-top-color: var(--cor-bg-topo);
}

/* Menu de login */
.menu_pagina .navbar-nav.ms-auto .nav-link {
    color: var(--cor-bg-topo) !important;
    font-weight: 500;
}

.menu_pagina .navbar-nav.ms-auto .nav-link:hover {
    color: #ffffff !important;
    background-color: var(--cor-bg-topo) !important;
    border-radius: 4px;
    padding: 8px 15px;
}

/* Botão hamburger */
.menu_pagina .navbar-toggler {
    border: 2px solid var(--cor-bg-topo);
    border-radius: 6px;
    padding: 8px 12px;
    background-color: transparent;
    transition: all var(--transition-normal);
}

.menu_pagina .navbar-toggler:hover {
    background-color: var(--cor-bg-topo);
    border-color: #6b8e23;
}

.menu_pagina .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(132, 161, 45, 0.25);
}

.menu_pagina .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2384a12d' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Menu público agrupado (hamburger à esquerda) */
header {
    position: relative;
    z-index: 1040;
}

.navbar-public-menu {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1045;
    overflow: visible;
}

.navbar-hamburger-btn {
    border: 2px solid var(--cor-bg-topo);
    border-radius: 6px;
    padding: 8px 14px;
    background-color: transparent;
    color: var(--cor-bg-topo);
    font-size: 1.1rem;
    line-height: 1;
    transition: all var(--transition-normal);
}

.navbar-hamburger-btn:hover,
.navbar-hamburger-btn:focus,
.navbar-hamburger-btn.show {
    background-color: var(--cor-bg-topo);
    color: #ffffff;
    border-color: var(--cor-bg-topo);
    box-shadow: 0 0 0 0.2rem rgba(132, 161, 45, 0.25);
}

.navbar-hamburger-btn::after {
    display: none;
}

.navbar-public-menu .dropdown-menu {
    min-width: 220px;
    margin-top: 0.5rem;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    z-index: 1050;
}

.navbar-public-menu .dropdown-header {
    color: var(--cor-bg-topo);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.navbar-container:has(.navbar-public-menu) .navbar-collapse {
    flex-grow: 1;
    padding-left: 3.5rem;
}

.navbar-container:has(.navbar-public-menu) .navbar-main-nav {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Responsividade para separadores */
@media (max-width: 991px) {
    .hide_bar {
        display: none !important;
    }

    .navbar-public-menu {
        position: static;
        transform: none;
        margin-right: auto;
    }

    .navbar-container:has(.navbar-public-menu) {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .navbar-container:has(.navbar-public-menu) .navbar-collapse {
        padding-left: 0;
    }

    .navbar-container:has(.navbar-public-menu) .navbar-main-nav {
        margin-left: 0 !important;
    }

    .navbar-public-menu .dropdown-menu {
        position: absolute !important;
        width: auto;
        min-width: 220px;
        border: 1px solid var(--cor-bg-topo);
        box-shadow: var(--shadow-medium);
        background-color: #ffffff;
        left: 0 !important;
        right: auto !important;
        z-index: 1050;
    }

    /* Ajustes para mobile */
    .menu_pagina .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }

    .menu_pagina .navbar-nav .nav-link {
        padding: 12px 20px;
        margin: 5px 0;
        border-radius: 8px;
        display: block;
        width: 100%;
    }

    .menu_pagina .navbar-nav.ms-auto {
        margin-top: 1rem;
        border-top: 2px solid var(--cor-bg-topo);
        padding-top: 1rem;
        text-align: center;
    }

    .menu_pagina .navbar-nav.ms-auto .nav-link {
        margin: 8px 0;
        padding: 10px 20px;
    }

    /* Dropdown em mobile (exceto menu público à esquerda) */
    .menu_pagina .navbar-collapse .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0;
        border: none;
        box-shadow: none;
        background-color: #f8f9fa;
        right: auto !important;
        left: auto !important;
        display: none;
    }

    .menu_pagina .dropdown-menu.show {
        display: block;
    }

    .menu_pagina .dropdown-item {
        text-align: center;
        padding: 12px 20px;
        border-bottom: 1px solid #e9ecef;
    }

    .menu_pagina .dropdown-item:last-child {
        border-bottom: none;
    }
}

/* ========================================
   LAYOUT - CATÁLOGO UCS
   ======================================== */

/* Margens e padding */
article.margem,
.margem {
    padding: 5% 20%;
}

.margem_pagina {
    width: 100%;
    padding: 0 20%;
}

.pad_ed {
    padding-left: var(--pad-ed);
    padding-right: var(--pad-ed);
}

.pad_cb {
    padding-top: var(--pad-c);
    padding-bottom: var(--pad-b);
}

.pad_c {
    padding-top: var(--pad-c);
}

.pad_b {
    padding-bottom: var(--pad-b);
}

/* Artigos */
article h1 {
    text-transform: uppercase;
    color: var(--cor-titulo);
    font-size: var(--tamanho-titulo);
}

article p {
    text-align: justify;
}

/* Títulos de seção */
section.descricao article h1,
h1.bi_titulo,
section h1,
h1.consulta_titulo {
    text-transform: initial;
    text-align: center;
    font-weight: 500;
    border-bottom: 1px solid green;
    padding-bottom: 0.75rem;
}

h1.bi_titulo,
section h1,
h1.consulta_titulo {
    color: var(--cor-titulo);
    font-size: var(--tamanho-titulo-bi);
}

h1.consulta_titulo {
    color: var(--cor-titulo) !important;
}

section h1 {
    margin-bottom: 2rem !important;
}

section.descricao article:not(:last-child) {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

section.descricao article p a,
section.descricao .descr-conteudo a,
section.descricao .descr-conteudo a:visited,
section.descricao .descr-conteudo a:hover,
section.descricao .descr-conteudo a:active,
section.descricao .descr-conteudo a:focus {
    color: var(--cor-titulo);
    text-decoration: underline;
    font-weight: 600;
}

section.descricao .descr-conteudo a i {
    color: inherit;
}

/*
 * Descrição rica (TinyMCE): o justify global em `article p` e em .text-justify
 * interfere no recuo com Tab no início do parágrafo. Alinhar ao início.
 */
section.descricao .descr-conteudo,
section.descricao .descr-conteudo p,
section.descricao .descr-conteudo li {
    text-align: start;
}

/*
 * Preserva sequências de espaço no texto (recuo com Tab = &nbsp; no editor).
 * Sem isso, o navegador colapsa vários espaços em um só.
 */
section.descricao .descr-conteudo,
.configuracao-html-content {
    white-space: pre-wrap;
}

section.descricao .descr-conteudo table td,
section.descricao .descr-conteudo table th,
.configuracao-html-content table td,
.configuracao-html-content table th {
    white-space: normal;
}

/* HTML rico (TinyMCE): tabelas na descrição da UC */
section.descricao .descr-conteudo table,
.configuracao-html-content table {
    max-width: 100%;
    border-collapse: collapse;
}

section.descricao .descr-conteudo,
.configuracao-html-content {
    overflow-x: auto;
}

/* ========================================
   RESPONSIVIDADE - CATÁLOGO UCS
   ======================================== */

/* Breakpoint 1600px */
@media (max-width: 1600px) {
    .form_consulta_grau_de_ameaca .form-check {
        width: initial;
    }

    .form_consulta_ucs .form-check {
        margin-left: initial;
    }
}

/* Breakpoint 1367px */
@media (max-width: 1367px) {
    .form_consulta_grau_de_ameaca .form-check {
        width: 125%;
    }

    .logos_rodape ul.imgs_apoio {
        margin-right: 2.5rem;
    }
}

/* Breakpoint 1281px */
@media (max-width: 1281px) {
    .logos_rodape ul.imgs_apoio {
        margin-right: 0;
    }
}

/* Breakpoint 991px - Tablet */
@media (max-width: 991px) {
    :root {
        --pad-ed: 15%;
        --pad-c: 7.5%;
        --pad-b: 7.5%;
        --tamanho-titulo-bi: 1.5rem;
    }

    .hide_bar {
        display: none;
    }

    .logos_rodape {
        gap: 1.5rem;
    }

    .logo img {
        max-width: 320px;
    }

    .administrado_desenvolvido {
        font-size: 0.75rem;
    }

    .administrado_desenvolvido.margem {
        padding-bottom: 2.5%;
    }

    .menu_pagina ul {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .logos_rodape ul.imgs_apoio {
        margin-right: 0;
    }

    ul.imgs_apoio li:not(:last-child)>*,
    ul.imgs_realizacao li:not(:last-child)>* {
        margin-right: 1rem;
    }

    /* Formulários */
    .consulta_form.familia_form,
    .consulta_form.genero_form,
    .consulta_form.ameaca_form,
    .consulta_form.grupo_form,
    .consulta_form.estados_form,
    .consulta_form.biomas_form {
        margin-right: 0;
    }

    .consulta_form.bloco_1,
    .consulta_form.bloco_2,
    .consulta_form.bloco_3,
    .consulta_form.bloco_4,
    .consulta_form.bloco_5 {
        flex-direction: column;
    }

    .consulta_form.botoes_form button {
        width: 50%;
    }

    .consulta_formulario section:not(:last-child)>* {
        margin-bottom: 1.25rem;
    }

    /* Tabelas responsivas */
    .panel-default {
        border-color: none !important;
    }

    table {
        border: none !important;
    }

    .tabela_nova thead {
        border: none !important;
    }

    .tabela_nova thead tr {
        border: none !important;
    }

    .tabela_nova thead tr th:nth-child(1),
    .tabela_nova thead tr th:nth-child(2),
    .tabela_nova thead tr th:nth-child(3),
    .tabela_nova thead tr th:nth-child(4),
    .tabela_nova thead tr th:nth-child(5) {
        width: 100%;
        border: none !important;
    }

    .tabela_nova tr {
        display: flex !important;
        flex-wrap: wrap !important;
        flex-direction: column !important;
        border: none !important;
        border-color: transparent !important;
        margin-bottom: 1rem;
        border-bottom: 1px solid gray !important;
        padding-bottom: 1.5rem !important;
    }

    .tabela_nova tr:first-child {
        border-top: 1px solid gray !important;
        padding-top: 1rem !important;
    }

    .tabela_nova tr:last-child {
        border: none !important;
        border-color: transparent !important;
    }

    .tabela_nova tr td {
        white-space: initial !important;
        width: 100%;
        border: none;
        border-color: transparent !important;
    }

    .tabela_nova tr td:nth-child(1),
    .tabela_nova tr td:nth-child(3) {
        margin: 0 !important;
        padding: 0 !important;
    }

    .tabela_nova tr td:nth-child(5) {
        width: 100% !important;
    }

    .table-responsive {
        overflow: hidden;
        border: none !important;
    }

    table:nth-of-type(2) {
        display: flex !important;
        text-align: center !important;
        border-right-color: transparent !important;
        border-top-color: transparent !important;
        border-bottom-color: transparent !important;
        justify-content: center !important;
    }

    table:nth-of-type(2) .tabela_nova tr td:nth-child(1) {
        padding: initial;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        margin: auto;
    }

    .btn-success {
        --bs-btn-bg: var(--cor-titulo);
    }

    .btn-group.form_checklist {
        display: flex !important;
    }
}

/* Breakpoint 768px - Mobile */
@media (max-width: 768px) {
    :root {
        --pad-ed: 10%;
    }

    section.area {
        padding-left: 5%;
        padding-right: 5%;
    }

    section.checklist .form_checklist_novo {
        justify-content: center;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 18px;
    }

    .administrado_desenvolvido {
        flex-direction: column;
        align-items: center;
    }

    .administrado_desenvolvido img {
        margin-top: 1rem;
    }

    .administrado_desenvolvido .cc_logo img {
        margin-top: 1rem;
    }
}

/* Breakpoint 600px */
@media (max-width: 600px) {
    :root {
        --pad-ed: 7.5%;
    }

    section.area {
        padding-left: 3%;
        padding-right: 3%;
    }

    #cmboxgrupo {
        margin-left: 0;
    }

    section h1 {
        margin-bottom: 1rem !important;
    }

    .area_grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bi_info {
        height: 175px;
    }
}

/* Breakpoint 481px */
@media (max-width: 481px) {
    .rodape img {
        max-height: 100px;
    }

    .logos_rodape {
        gap: 0;
    }

    footer.margem {
        padding: 5% 20%;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px;
    }

    .imgs_apoio,
    .imgs_realizacao {
        flex-wrap: wrap;
    }

    .form_consulta_ucs .form-check {
        width: initial;
    }
}

/* ========================================
   ESTILOS PARA PÁGINAS DE USUÁRIO E PERFIL
   ======================================== */

/* Headers de página - Bootstrap 5 compatible */
.custom-page-header {
    background: linear-gradient(135deg, #f0f4e8, #e8f0d8);
    color: var(--cor-bg-topo);
    padding: 2rem;
    border-radius: 0.375rem;
    /* Bootstrap border-radius */
    margin-bottom: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    /* Bootstrap shadow */
    border: 1px solid rgba(132, 161, 45, 0.2);
}

.custom-page-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.custom-page-subtitle {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.custom-badge {
    background: rgba(132, 161, 45, 0.1);
    color: var(--cor-bg-topo);
    padding: 0.375rem 0.75rem;
    /* Bootstrap padding */
    border-radius: 0.375rem;
    /* Bootstrap border-radius */
    font-size: 0.875rem;
    /* Bootstrap font-size */
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(132, 161, 45, 0.3);
}

/* Cards de usuário - Bootstrap 5 compatible */
.custom-user-card {
    background: #ecf1de;
    border-radius: 0.375rem;
    /* Bootstrap border-radius */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    /* Bootstrap shadow */
    border: 1px solid rgba(132, 161, 45, 0.1);
    margin-bottom: 1rem;
    /* Bootstrap spacing */
    transition: all 0.15s ease-in-out;
    /* Bootstrap transition */
}

.custom-user-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(132, 161, 45, 0.15);
    /* Bootstrap shadow-lg */
    transform: translateY(-0.125rem);
    /* Bootstrap transform */
    border-color: rgba(132, 161, 45, 0.2);
}

.custom-user-card-body {
    padding: 1rem;
    /* Bootstrap padding */
}

.custom-user-info {
    margin-bottom: 0;
}

.custom-user-name {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.custom-user-email {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.custom-user-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.custom-user-date,
.custom-user-id {
    color: #9ca3af;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.custom-user-created-by,
.custom-user-updated-by {
    color: #9ca3af;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.custom-user-role {
    display: flex;
    align-items: center;
}

/* Badge de usuário desativado */
.badge.bg-inactive {
    background-color: #fca5a5 !important;
    color: #991b1b !important;
    font-weight: 600;
}

/* Estados vazios */
.custom-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.custom-empty-icon {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.custom-empty-title {
    color: #6b7280;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.custom-empty-subtitle {
    color: #9ca3af;
    font-size: 1rem;
}

/* Paginação */
.custom-pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding: 1rem;
}

/* Cards de detalhes e formulários - Bootstrap 5 compatible */
.custom-detail-card,
.custom-form-card {
    background: #ffffff;
    border-radius: 0.375rem;
    /* Bootstrap border-radius */
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    /* Bootstrap shadow */
    border: 1px solid rgba(132, 161, 45, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
    /* Bootstrap spacing */
}

.custom-detail-header,
.custom-form-header {
    background: linear-gradient(135deg, #f0f4e8, #e8f0d8);
    color: var(--cor-bg-topo);
    padding: 1rem 1.5rem;
    /* Bootstrap padding */
    border-bottom: 1px solid rgba(132, 161, 45, 0.1);
}

.custom-detail-header.bg-danger,
.custom-form-header.bg-danger {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #dc2626;
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.custom-detail-title,
.custom-form-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.custom-detail-body,
.custom-form-body {
    padding: 1.5rem;
    /* Bootstrap padding */
}

/* Seções de informação */
.custom-info-section {
    margin-bottom: 1.5rem;
    /* Bootstrap spacing */
}

.custom-section-title {
    color: #2d3748;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    border-bottom: 2px solid rgba(132, 161, 45, 0.3);
    padding-bottom: 0.5rem;
}

.custom-info-table {
    background: rgba(132, 161, 45, 0.05);
    border-radius: 0.375rem;
    /* Bootstrap border-radius */
    padding: 1rem;
    /* Bootstrap padding */
    border: 1px solid rgba(132, 161, 45, 0.1);
}

.custom-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    /* Bootstrap padding */
    border-bottom: 1px solid #dee2e6;
    /* Bootstrap border color */
}

.custom-info-row:last-child {
    border-bottom: none;
}

.custom-info-label {
    font-weight: 600;
    color: #374151;
    min-width: 150px;
}

.custom-info-value {
    color: #6b7280;
    text-align: right;
    flex: 1;
}

/* Formulários */
.custom-form {
    margin-top: 1.5rem;
}

.custom-form-group {
    margin-bottom: 1.5rem;
}

.custom-form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.custom-form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-form-input:focus {
    outline: none;
    border-color: var(--cor-bg-topo);
    box-shadow: 0 0 0 3px rgba(132, 161, 45, 0.1);
}

.custom-form-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #ffffff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.custom-form-select:focus {
    outline: none;
    border-color: var(--cor-bg-topo);
    box-shadow: 0 0 0 3px rgba(132, 161, 45, 0.1);
}

/* Grid de informações do usuário */
.custom-user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    background: rgba(132, 161, 45, 0.05);
    border-radius: 0.375rem;
    padding: 1rem;
    border: 1px solid rgba(132, 161, 45, 0.1);
}

.custom-info-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.custom-info-item .custom-info-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    min-width: auto;
    white-space: nowrap;
}

.custom-info-item .custom-info-value {
    color: #6b7280;
    text-align: left;
    font-size: 0.875rem;
    flex: 1;
}

.custom-info-item .custom-info-value a {
    color: var(--cor-bg-topo);
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-info-item .custom-info-value a:hover {
    color: #6b8e23;
    text-decoration: underline;
}

/* Botões customizados - Bootstrap 5 compatible */
.custom-btn-primary {
    background: linear-gradient(135deg, var(--cor-bg-topo), #6b8e23);
    border: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(132, 161, 45, 0.2);
    position: relative;
    overflow: hidden;
}

.custom-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.custom-btn-primary:hover {
    background: linear-gradient(135deg, #6b8e23, var(--cor-bg-topo));
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(132, 161, 45, 0.3);
}

.custom-btn-primary:hover::before {
    left: 100%;
}

.custom-btn-primary:focus {
    background: linear-gradient(135deg, var(--cor-bg-topo), #6b8e23);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 0 0 0.2rem rgba(132, 161, 45, 0.5);
    outline: none;
}

.custom-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(132, 161, 45, 0.2);
}

.custom-btn-secondary {
    background: #9ca3af;
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-btn-secondary:hover {
    background: #6b7280;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
}

.custom-btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-btn-warning:hover {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
}

.custom-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-btn-success:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
}

.custom-btn-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-btn-info:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
}

.custom-btn-danger {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.custom-btn-danger:hover {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-decoration: none;
}

/* Alertas customizados */
.custom-alert-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-alert-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-alert-warning {
    background: linear-gradient(135deg, #e49842, #f59e0b);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Ações e botões */
.custom-detail-actions,
.custom-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 1rem;
}

.custom-action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.custom-user-actions {
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Modais customizados */
.custom-modal {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.custom-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem 0.5rem 0 0;
}

.custom-modal-header.bg-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.custom-modal-header.bg-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.custom-modal-header.bg-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

.custom-modal-header.bg-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
}

.custom-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.custom-modal-body {
    padding: 1.5rem;
}

.custom-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Responsividade */
@media (max-width: 768px) {

    .custom-detail-body,
    .custom-form-body {
        padding: 1rem;
    }

    .custom-detail-actions,
    .custom-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .custom-action-buttons {
        justify-content: center;
    }

    .custom-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .custom-info-value {
        text-align: left;
    }
}

/* Formulários melhorados - Bootstrap 5 compatible */
.custom-form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    /* Bootstrap padding */
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    /* Bootstrap border color */
    border-radius: 0.375rem;
    /* Bootstrap border-radius */
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    /* Bootstrap transition */
}

.custom-form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: var(--cor-bg-topo);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(132, 161, 45, 0.25);
    /* Bootstrap focus shadow */
}

.custom-form-control.is-invalid {
    border-color: #dc3545;
    /* Bootstrap danger color */
}

.custom-form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.custom-invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    /* Bootstrap danger color */
}

/* Requisitos de senha */
.custom-password-requirements {
    background: rgba(132, 161, 45, 0.05);
    border: 1px solid rgba(132, 161, 45, 0.1);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.custom-requirements-title {
    color: var(--cor-bg-topo);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.custom-requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-requirement-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.custom-requirement-item:last-child {
    margin-bottom: 0;
}

.custom-requirement-item i {
    width: 16px;
    text-align: center;
}

/* Link do nome do usuário */
.user-name-link {
    color: #2d3748 !important;
    transition: color 0.15s ease-in-out;
    cursor: pointer;
}

.user-name-link:hover {
    color: var(--cor-bg-topo) !important;
    text-decoration: none !important;
}

.user-name-link:focus {
    color: var(--cor-bg-topo) !important;
    text-decoration: none !important;
    outline: 2px solid var(--cor-bg-topo);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ========================================
   VARIÁVEIS CSS - CATÁLOGO UCS
   ======================================== */

/* Fontes Locais - Agora via npm */

/* Variáveis CSS */
:root {
    /* Cores principais */
    --cor-bg-topo: #84a12d;
    --cor-bg-rodape: #b2b2b2;
    --cor-titulo: #84a12d;
    --cor-texto: #292929;
    --cor-menu-ativo: #84a12d;

    /* Tipografia */
    --tamanho-titulo: 1.3rem;
    --tamanho-titulo-bi: 2rem;
    --fonte-1: "Roboto Condensed", sans-serif;
    --fonte-2: "Open Sans", sans-serif;

    /* Espaçamentos */
    --pad-c: 2%;
    --pad-b: 1%;
    --pad-ed: 20%;

    /* Transições */
    --transition-fast: 0.25s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Sombras */
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 16px rgba(0, 0, 0, 0.2);

    /* Bordas */
    --border-radius: 0;
    --border-color: #e9ecef;
    --border-color-light: #f8f9fa;
}

/* ========================================
   PÁGINAS: COMO PUBLICAR E COMO CITAR
   ======================================== */

/* Como Publicar */
section.como_publicar article h1 {
    text-transform: initial;
    text-align: center;
    font-weight: 500;
    border-bottom: 1px solid #84a12d;
    padding-bottom: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

section.como_publicar article h1:first-child {
    margin-top: 0;
}

section.como_publicar article ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

section.como_publicar article ol li {
    margin-bottom: 0.75rem;
    list-style-type: decimal;
}

section.como_publicar article ol ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

section.como_publicar article a {
    text-decoration: underline;
    color: #84a12d;
}

section.como_publicar article a:hover {
    color: #6b8124;
}

section.como_publicar article p {
    margin-top: 1.5rem;
}

/* Como Citar */
section.como_citar article {
    line-height: 1.8;
    text-align: justify;
    padding-right: 3rem;
}

section.como_citar article p {
    text-align: justify;
    margin-bottom: 1rem;
}

section.como_citar b {
    color: #84a12d;
    font-weight: 600;
    display: block;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

section.como_citar b:first-child {
    margin-top: 0;
}

section.como_citar article br {
    margin-bottom: 0.5rem;
}

section.como_citar article>* {
    text-align: justify;
}

/* Qualidade de Dados — cards agrupados por categoria */
.dq-category-section {
    margin-bottom: 1.5rem;
}

.dq-check-card {
    background: #f9fafb;
    border: 1px solid rgba(132, 161, 45, 0.15);
    border-radius: 0.375rem;
    padding: 1rem 1.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dq-check-card:hover {
    border-color: rgba(132, 161, 45, 0.35);
    box-shadow: 0 0.125rem 0.5rem rgba(132, 161, 45, 0.1);
}

.dq-check-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.5rem;
}

.dq-table-group-header td {
    background: linear-gradient(135deg, #f0f4e8, #e8f0d8);
    color: var(--cor-bg-topo);
    font-size: 0.95rem;
    border-top: 2px solid rgba(132, 161, 45, 0.2);
}

/* Painel administrativo de qualidade de dados */
.dq-dashboard .custom-page-header,
.dq-dashboard-hero,
.filtros-page-layout .custom-page-header,
.filtros-page-layout .dq-dashboard-hero {
    display: block;
    width: 100%;
}

.dq-dashboard-hero-inner {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    justify-content: space-between;
    width: 100%;
}

.dq-dashboard-hero-main {
    flex: 1 1 16rem;
    min-width: 0;
}

.dq-dashboard-hero-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 0.45rem;
    margin-left: auto;
}

.dq-dashboard .btn-toggle-filtros,
.filtros-page-layout .btn-toggle-filtros {
    background: var(--cor-bg-topo, #84a12d);
    border: none;
    border-radius: 0.5rem;
    box-shadow: none;
    color: #fff;
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.dq-dashboard .btn-toggle-filtros:hover,
.filtros-page-layout .btn-toggle-filtros:hover {
    background: #6b8e23;
    color: #fff;
    transform: none;
}

.dq-dashboard .filtros-resumo-pill,
.filtros-page-layout .filtros-resumo-pill {
    background: transparent;
    border: none;
    color: #6b7280;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: 22rem;
    padding: 0;
    text-align: right;
}

.dq-filtros-panel {
    display: none;
    margin-bottom: 1.25rem;
}

.dq-filtros-panel.is-open {
    display: block;
}

.dq-dashboard .dq-filtros-card,
.filtros-page-layout .dq-filtros-card {
    background: #ffffff;
    border: 1px solid #e8ebe3;
    border-radius: 0.5rem;
    box-shadow: none;
    margin-bottom: 0;
    padding: 1rem 1.15rem;
}

.dq-dashboard .dq-filtros-card .form-label,
.filtros-page-layout .dq-filtros-card .form-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dq-dashboard .dq-filtros-card .form-text,
.filtros-page-layout .dq-filtros-card .form-text {
    color: #6b7280;
    font-size: 0.75rem;
}

.dq-dashboard .dq-filtros-card .form-select:focus,
.dq-dashboard .dq-filtros-card .dq-filter-ucs-toggle:focus,
.filtros-page-layout .dq-filtros-card .form-control:focus,
.filtros-page-layout .dq-filtros-card .form-select:focus {
    border-color: var(--cor-bg-topo, #84a12d);
    box-shadow: 0 0 0 2px rgba(132, 161, 45, 0.2);
}

.dq-dashboard .dq-filtros-card .dq-filtering-badge {
    background: rgba(132, 161, 45, 0.1);
    border: 1px solid rgba(132, 161, 45, 0.18);
    color: #667d22;
}

.dq-dashboard .dq-filtros-card .dq-selected-uc {
    background: rgba(132, 161, 45, 0.08);
    border: 1px solid rgba(132, 161, 45, 0.16);
    color: #4a5568;
    font-weight: 500;
}

.dq-dashboard-badge {
    background: rgba(248, 113, 113, 0.14);
    border-color: rgba(248, 113, 113, 0.35);
    color: #991b1b;
}

.dq-dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dq-dashboard-total-card,
.dq-dashboard-section,
.dq-dashboard-chart-card {
    background: #ffffff;
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(127, 29, 29, 0.06);
}

.dq-dashboard-total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #fff7f7, #fff1f2);
    min-height: 130px;
    position: relative;
}

.dq-dashboard-total-card[data-status="ok"] {
    background: #f9fafb;
    border-color: rgba(132, 161, 45, 0.14);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.045);
}

.dq-dashboard-total-card strong {
    color: #991b1b;
    display: block;
    font-size: 2.35rem;
    line-height: 1;
    margin: 0.35rem 0;
}

.dq-dashboard-total-metric {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
}

.dq-dashboard-total-card-icon {
    align-items: center;
    background: rgba(248, 113, 113, 0.14);
    border: 1px solid rgba(248, 113, 113, 0.24);
    border-radius: 999px;
    color: #b91c1c;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.dq-dashboard-total-card small,
.dq-dashboard-total-label {
    color: #7f1d1d;
}

.dq-dashboard-total-label {
    font-weight: 700;
}

.dq-dashboard-total-card[data-status="ok"] strong,
.dq-dashboard-total-card[data-status="ok"] small,
.dq-dashboard-total-card[data-status="ok"] .dq-dashboard-total-label {
    color: #2d3748;
}

.dq-dashboard-total-card i {
    color: #f87171;
    font-size: 2rem;
}

.dq-dashboard-total-card[data-status="ok"] i {
    color: #84a12d;
}

.dq-dashboard-total-card[data-status="ok"] .dq-dashboard-total-card-icon {
    background: rgba(132, 161, 45, 0.12);
    border-color: rgba(132, 161, 45, 0.22);
    color: #667d22;
}

.dq-dashboard-section {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.dq-dashboard-section-header {
    background: linear-gradient(135deg, #fff1f2, #fee2e2);
    border-bottom: 1px solid rgba(248, 113, 113, 0.2);
    color: #7f1d1d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.dq-dashboard-section-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
}

.dq-dashboard-section-header p {
    color: #991b1b;
    margin: 0;
}

.dq-dashboard-section-header span {
    background: #fecaca;
    border-radius: 999px;
    color: #7f1d1d;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
}

.dq-dashboard-section[data-status="ok"] {
    border-color: rgba(132, 161, 45, 0.1);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dq-dashboard-section[data-status="ok"] .dq-dashboard-section-header {
    background: linear-gradient(135deg, #f0f4e8, #e8f0d8);
    border-bottom-color: rgba(132, 161, 45, 0.1);
    color: var(--cor-bg-topo);
}

.dq-dashboard-section[data-status="ok"] .dq-dashboard-section-header p {
    color: #4a5568;
}

.dq-dashboard-section[data-status="ok"] .dq-dashboard-section-header span {
    background: rgba(132, 161, 45, 0.12);
    color: #667d22;
}

.dq-dashboard-chart-card[data-status="ok"] {
    border-color: rgba(132, 161, 45, 0.1);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dq-dashboard-chart-card[data-status="ok"] .dq-dashboard-chart-header {
    background: linear-gradient(135deg, #f0f4e8, #e8f0d8);
    border-bottom-color: rgba(132, 161, 45, 0.1);
}

.dq-dashboard-chart-card[data-status="ok"] .dq-dashboard-chart-header h2 {
    color: var(--cor-bg-topo);
}

.dq-dashboard-chart-card[data-status="ok"] .dq-dashboard-chart-header span {
    color: #4a5568;
}

.dq-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    padding: 1.25rem;
}

.dq-dashboard-card {
    background: #fff7f7;
    border: 1px solid rgba(248, 113, 113, 0.25);
    border-radius: 0.375rem;
    color: #7f1d1d;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    padding: 1rem;
    position: relative;
    text-decoration: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.dq-dashboard-card-metric {
    align-items: center;
    display: inline-flex;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.dq-dashboard-card[data-status="ok"] {
    background: #ffffff;
    border-color: rgba(132, 161, 45, 0.1);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.045);
    color: #2d3748;
}

.dq-dashboard-card-icon {
    align-items: center;
    background: rgba(132, 161, 45, 0.12);
    border: 1px solid rgba(132, 161, 45, 0.2);
    border-radius: 0.375rem;
    color: #667d22;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.95rem;
    height: 2.375rem;
    justify-content: center;
    width: 2.375rem;
}

.dq-dashboard-card:hover .dq-dashboard-card-icon,
.dq-dashboard-card:focus .dq-dashboard-card-icon {
    background: rgba(132, 161, 45, 0.2);
}

.dq-dashboard-card[data-status="ok"] .dq-dashboard-card-icon {
    background: rgba(132, 161, 45, 0.12);
    border-color: rgba(132, 161, 45, 0.2);
    color: #667d22;
}

.dq-dashboard-card:hover,
.dq-dashboard-card:focus {
    border-color: rgba(220, 38, 38, 0.45);
    box-shadow: 0 0.5rem 1rem rgba(127, 29, 29, 0.1);
    color: #7f1d1d;
    transform: translateY(-0.125rem);
}

.dq-dashboard-card[data-status="ok"]:hover,
.dq-dashboard-card[data-status="ok"]:focus {
    border-color: rgba(132, 161, 45, 0.35);
    box-shadow: 0 0.125rem 0.5rem rgba(132, 161, 45, 0.1);
    color: #2d3748;
    transform: none;
}

.dq-dashboard-card-count {
    color: #dc2626;
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1;
    min-width: 3ch;
}

.dq-dashboard-card[data-status="ok"] .dq-dashboard-card-count {
    color: #2d3748;
}

.dq-dashboard-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 0.75rem 0 0.5rem;
}

.dq-dashboard-card-link {
    color: #b91c1c;
    font-size: 0.83rem;
    font-weight: 700;
    margin-top: auto;
}

.dq-dashboard-card[data-status="ok"] .dq-dashboard-card-link {
    color: #84a12d;
}

.dq-filtering-badge {
    background: #fee2e2;
    border: 1px solid rgba(248, 113, 113, 0.35);
    color: #7f1d1d;
}

.dq-filter-ucs-card {
    overflow: visible;
    position: relative;
    z-index: 30;
}

.dq-filter-ucs-form {
    align-items: stretch;
}

.dq-filter-ucs-row {
    align-items: stretch;
    display: flex;
    gap: 0.5rem;
}

.dq-filter-ucs-field {
    flex: 1;
    min-width: 0;
}

.dq-uc-searchable-native {
    display: none !important;
}

.dq-uc-searchable {
    position: relative;
    width: 100%;
}

.dq-uc-searchable-input {
    background-color: #fff;
    width: 100%;
}

.dq-uc-searchable-list {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(15, 23, 42, 0.12);
    left: 0;
    list-style: none;
    margin: 0.25rem 0 0;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.25rem 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1040;
}

.dq-uc-searchable-option {
    cursor: pointer;
    padding: 0.5rem 0.75rem;
}

.dq-uc-searchable-option:hover,
.dq-uc-searchable-option:focus {
    background: #f8fafc;
}

.dq-uc-searchable-option--empty {
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-style: italic;
}

.dq-filter-ucs-field .multiselect-dropdown {
    min-height: calc(2.375rem + 2px);
    width: 100% !important;
}

.dq-filter-ucs-field .multiselect-dropdown-list-wrapper {
    width: 100%;
}

.dq-filter-quick-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dq-filter-quick-label {
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 600;
}

.dq-filter-quick-btn {
    font-size: 0.8125rem;
}

.dq-filtering-badge--quick {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #92400e;
}

.dq-filter-ucs-actions {
    align-items: stretch;
    display: flex;
    flex-shrink: 0;
    gap: 0.5rem;
}

.dq-filter-ucs-actions .btn,
.dq-filter-ucs-actions .custom-btn-primary {
    align-items: center;
    display: inline-flex;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .dq-filter-ucs-row {
        flex-direction: column;
    }

    .dq-filter-ucs-actions {
        width: 100%;
    }

    .dq-filter-ucs-actions .btn,
    .dq-filter-ucs-actions .custom-btn-primary {
        flex: 1;
        justify-content: center;
    }
}

.dq-filter-ucs-dropdown {
    position: relative;
    width: 100%;
}

.dq-filter-ucs-toggle {
    align-items: center;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
    color: #212529;
    display: flex;
    justify-content: space-between;
    min-height: calc(2.375rem + 2px);
    padding: 0.35rem 2rem 0.35rem 0.75rem;
    width: 100%;
}

.dq-filter-ucs-toggle::after {
    flex-shrink: 0;
    margin-left: 0.5rem;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.dq-filter-ucs-toggle-chips {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-width: 0;
    text-align: left;
}

.dq-filter-ucs-toggle--empty .dq-filter-ucs-toggle-chips {
    color: #6c757d;
}

.dq-filter-ucs-chip {
    background: rgba(132, 161, 45, 0.1);
    border: 1px solid rgba(132, 161, 45, 0.18);
    border-radius: 999px;
    color: #4a5568;
    font-size: 0.8125rem;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    padding: 0.15rem 0.55rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dq-filter-ucs-menu {
    z-index: 1030;
    width: min(92vw, 56rem);
    max-height: 16rem;
    overflow-y: auto;
}

.dq-filter-ucs-item {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    white-space: normal;
}

.dq-filter-ucs-item:hover {
    background: #f8fafc;
}

.dq-filter-ucs-dropdown .dropdown-toggle {
    position: relative;
}

.dq-selected-ucs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dq-selected-uc {
    background: #fff7f7;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: 999px;
    color: #7f1d1d;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
}

.dq-dashboard-tooltip {
    background: #7f1d1d;
    border-radius: 0.375rem;
    bottom: calc(100% + 0.5rem);
    box-shadow: 0 0.5rem 1rem rgba(127, 29, 29, 0.18);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 500;
    left: 1rem;
    line-height: 1.35;
    opacity: 0;
    padding: 0.65rem 0.75rem;
    pointer-events: none;
    position: absolute;
    right: 1rem;
    transform: translateY(0.25rem);
    transition: opacity 0.15s ease-in-out, transform 0.15s ease-in-out;
    visibility: hidden;
    z-index: 20;
}

.dq-dashboard-tooltip::after {
    border: 0.35rem solid transparent;
    border-top-color: #7f1d1d;
    bottom: -0.7rem;
    content: "";
    left: 1rem;
    position: absolute;
}

.dq-dashboard-card:hover .dq-dashboard-tooltip,
.dq-dashboard-card:focus .dq-dashboard-tooltip,
.dq-dashboard-total-card:hover .dq-dashboard-tooltip,
.dq-dashboard-total-card:focus-within .dq-dashboard-tooltip {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dq-dashboard-charts {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dq-dashboard-chart-card {
    overflow: hidden;
}

.dq-dashboard-chart-header {
    background: linear-gradient(135deg, #fff1f2, #fee2e2);
    border-bottom: 1px solid rgba(248, 113, 113, 0.2);
    padding: 1rem 1.25rem;
}

.dq-dashboard-chart-header h2 {
    color: #7f1d1d;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.dq-dashboard-chart-header span {
    color: #991b1b;
    font-size: 0.875rem;
}

.dq-dashboard-chart-wrap {
    height: 360px;
    padding: 1.25rem;
}

.dq-dashboard-chart-card--empty .dq-dashboard-chart-wrap::before {
    color: #991b1b;
    content: "Sem dados para exibir";
    display: grid;
    height: 100%;
    place-items: center;
}

@media (max-width: 991.98px) {
    .dq-dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dq-dashboard-charts {
        grid-template-columns: 1fr;
    }

    .dq-dashboard-hero-inner,
    .filtros-page-layout .dq-dashboard-hero-inner,
    .dq-dashboard-section-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .dq-dashboard-hero-actions,
    .filtros-page-layout .dq-dashboard-hero-actions {
        align-items: flex-start;
        margin-left: 0;
        width: 100%;
    }

    .dq-dashboard .filtros-resumo-pill,
    .filtros-page-layout .filtros-resumo-pill {
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .dq-dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .dq-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.tabela-coluna-ordenavel-link {
    align-items: center;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 0.25rem;
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
}

.tabela-coluna-ordenavel-link:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.tabela-coluna-ordenada .tabela-coluna-ordenavel-link {
    font-weight: 600;
}

.tabela-ordenavel-container.tabela-ordenavel-carregando {
    opacity: 0.65;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
