@media screen {
    .d-print-block {
        display: none !important;
    }
}

@media (max-width: 1240px) {
    /* Local do nome do fornecedor ou UG na barra superior*/
    .destino {
        display: none !important;
    }
}

.container-fluid {
    /*max-width: 100% !important;*/
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.form-control:focus {
    border: 1px solid green; /* sombra suave azul */
    box-shadow: 0 0 6px rgba(55, 60, 66, 0.55); /* sombra suave azul */
}

textarea {
    max-height: 60px;
}

.contact_bg:hover {
    background-color: rgba(196, 255, 208, 0.31) !important;;

}

label {
    margin-bottom: 0 !important;
    font-weight: bold;
}

/* ------------- Pequenas utilidade ------------- */
.sombra {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

.sombra2 {
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.arredondar {
    border-radius: 20px;
}

/* HR Customizada */
.container_hr {
    display: flex;
    align-items: center;
}

.hr1 {
    flex-grow: 1;
    border-top: 1px solid var(--ins-border-color);
    margin-right: 10px;
}

.hr2 {
    flex-grow: 1;
    border-top: 1px solid var(--ins-border-color);
    margin-left: 10px;
}

/* Tootip Customizado */
.tooltip {
    z-index: 99999 !important;
}

.custom-tooltip .tooltip-inner {
    min-width: 300px !important;
    max-width: 500px !important;
    white-space: normal !important;
    text-align: left !important;
}

/* Tamanhos fixos - Utilizados geralmente em <td> */
.mw-25 {
    width: 25px !important;
}

.mw-50 {
    width: 50px !important;
}

.mw-75 {
    width: 75px !important;
}

.mw-100 {
    width: 100px !important;
}

.mw-125 {
    width: 125px !important;
}

.mw-150 {
    width: 150px !important;
}

.valor, .valor3, .valor4, .valor5 {
    text-align: right
}

/* ---- Cabeçalho --------------------------------------------------------------------------------------------------- */
.head_container_logo {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center;
    margin: 0 0 0 0 !important;
    padding: 0 0 0 0 !important;
    height: 150px;

    font-family: 'DejaVu Sans', sans-serif;
    font-weight: bold;
    line-height: 1.1;
    text-shadow: 1px 1px 2px white;
    font-size: clamp(10px, 4vw, 30px);
}

. /* ---- Select2 --------------------------------------------------------------------------------------------------- */
.select2-dropdown {
    z-index: 99999 !important;
}

.select2-dropdown--above {
    /* Caixa principal de seleção */
    border: var(--ins-border-width) solid var(--ins-border-color) !important;
    background-color: var(--ins-secondary-bg) !important;
}

.select2-results {
    /* Dados da seleção */
    background-color: var(--ins-secondary-bg) !important;
}

. select2-results__option--selected {
    /* Item selecionado */
    color: var(--ins-body-color) !important;

}

.select2-container--open {
    z-index: 99999 !important;
    color: var(--ins-body-color) !important;
    background-color: var(--ins-secondary-bg) !important;
    z-index: 99999 !important;

}

.select2-container .select2-selection--single {
    /* Input da tela */
    height: 36px !important; /* altura do input */
    line-height: 36px !important;
    border: var(--ins-border-width) solid var(--ins-border-color) !important;
    background-color: var(--ins-secondary-bg) !important;
    /*border: 1px solid red !important;*/

}

.select2-container .select2-selection--single:hover {
    height: 36px !important;
    line-height: 36px !important;
    border: var(--ins-border-width) solid var(--ins-dark-border-subtle) !important;
    z-index: 9999 !important;
}

.select2-container .select2-selection--single:focus {
    border: 1px solid green !important;
    box-shadow: 0 0 6px rgba(55, 60, 66, 0.55) !important;
}

.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 34px !important;
    color: var(--ins-body-color) !important;
    border-radius: var(--ins-border-radius) !important;
    margin-left: 10px;
    /*border: 1px solid red !important;*/
}

/* Seta */
.select2-container .select2-selection--single .select2-selection__arrow {
    height: 36px !important;
    top: 0 !important;
}

. /* ---- SweetAlert ------------------------------------------------------------------------------------------------- */
.swal2-container {
    z-index: 200000 !important;
}

.swal2-container.swal2-backdrop-show {
    z-index: 199999 !important;
}

/* ---- Turnstile ------------------------------------------------------------------------------------------------- */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 20px 0; /* opcional: espaço acima e abaixo */
}

/* ---- Controle do tamanho dos gráficos ---------------------------------------------------------------------------- */
.chart-wrap {
    position: relative; /* recomendado pelo Chart.js */
    height: 500px; /* ajuste aqui a altura desejada */
    width: 100%;
    max-height: 300px !important;
}

.graficos {
    display: block; /* previne “altura fantasma” em alguns layouts */
    width: 100% !important;
    height: 100% !important;
    max-height: 300px !important;
}

/* ---- Classe de Visualização de Campos ---------------------------------------------------------------------------- */
.view {
    display: block; /* previne “altura fantasma” em alguns layouts */
    background-color: var(--ins-tertiary-bg) !important;
    border: 1px solid var(--ins-dark-border-subtle) !important;
    padding: 7px 10px;
    border-radius: 5px;
    min-height: 35px;
}


/* Paginator do data-tables - ALinhamento */
.pagination {
    justify-content: end;
}

.btn-secondary . buttons-copy {
    border: 1px solid var(--ins-dark-border-subtle) !important;
    background-color: chocolate !important;
}

/* ---- Distribuição ( Demandas ) ---------------------------------------------------------------------------- */
.view_click {
    display: block;
    background-color: var(--ins-bg-opacity) !important;
    border: 1px solid var(--ins-dark-border-subtle) !important;
    padding: 7px 10px;
    border-radius: 5px;
    min-height: 35px;
}

.view_click:hover {
    cursor: pointer;
    background-color: yellow !important;
    font-weight: bold;
}

/* ---- CSS Mapa -------------------------------------------------------------------------------------------- */
svg path {
    fill: #e0e0e0;
    stroke: #ffffff;
    stroke-width: 0.5;
    transition: fill 0.3s;
}

svg path.ativo {
    fill: rgba(2, 152, 83, 0.32);
}

/* Hover para qualquer município (ativo ou não) */
svg path.ativo:hover {
    fill: rgba(46, 136, 46, 0.74);
}

.tooltip-municipio {
    position: absolute;
    background: rgba(0, 0, 0, 0.57);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 13px;
    pointer-events: none;
    display: none;
    z-index: 9999;
    white-space: nowrap;
}

/* Header ----------------------------------------------------------------------------------------- */
.app-topbar {
    background: linear-gradient(100deg, rgb(0, 132, 66) 0%, rgba(36, 166, 55, 1) 0%, rgba(83, 189, 191, 1) 100%);
}

/* Logo Ceasa */
@media (max-width: 550px) {
    /* Local do nome do fornecedor ou UG na barra superior*/
    #header_logo_ceasa {
        display: none !important;
    }
}

/* Logo CSF */
@media (max-width: 715px) {
    /* Local do nome do fornecedor ou UG na barra superior*/
    #header_logo_estado {
        display: none !important;
    }
}

/* Botão que moda o tema */
.nav-user::before {
    border-left: 1px solid rgba(0, 0, 0, 0.50) !important;
}

.header-color-fix {
    color: rgba(0, 0, 0, 0.50) !important;
}

/* Listagem */
.list-custom {
    padding: 3px 0 3px 5px;
}
.list-custom:hover {
    background-color: var(--ins-body-bg);
}
