@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;
    }
}

/* ---- Remover linha branca do menu da Topbar ---- */
.app-topbar .topbar-menu {
    border-bottom: none !important;
    border: none !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;
}

/* ---- Validação de Campos com Erro (Somente a Borda do Input Vermelha) ---- */
input.has-error,
select.has-error,
textarea.has-error,
input.is-invalid,
select.is-invalid,
textarea.is-invalid,
.form-control.is-invalid, 
.form-control.has-error,
.form-select.is-invalid,
.form-select.has-error,
.form-check-input.is-invalid,
.form-check-input.has-error {
    border: 1.5px solid #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.4) !important;
}

.select2-container.has-error .select2-selection,
.has-error + .select2-container .select2-selection,
.select2-container.is-invalid .select2-selection,
.is-invalid + .select2-container .select2-selection {
    border: 1.5px solid #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.4) !important;
}

.errorlist {
    color: #dc3545;
    font-weight: bold;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    padding-left: 1.2rem;
}

/* ---- Badges Gerais e de Status (Padding aumentado) ---- */
.badge,
span.badge,
.table .badge,
.table td .badge,
.badge-status {
    padding: 0.55rem 0.95rem !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    line-height: 1.2;
}

/* ---- Alinhamento Centralizado em Tabelas DataTables e Bootstrap ---- */
table.dataTable th.text-center,
table.dataTable td.text-center,
.table th.text-center,
.table td.text-center {
    text-align: center !important;
}

table.dataTable thead th.text-center div.dt-column-header,
table.dataTable thead th.text-center .dt-column-order,
table.dataTable thead th.text-center span.dt-column-title {
    justify-content: center !important;
    text-align: center !important;
}

.table td.text-center > .d-inline-flex,
.table td.text-center > .d-flex {
    justify-content: center !important;
    width: 100%;
}




/* ------------- 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,
.swal2-backdrop-show {
    z-index: 199999 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.swal2-container.swal2-top-end,
.swal2-container.swal2-top-start,
.swal2-container.swal2-top,
.swal2-container.swal2-bottom-end,
.swal2-container.swal2-bottom-start,
.swal2-container.swal2-bottom {
    background: transparent !important;
    pointer-events: none !important;
}

.swal2-container.swal2-top-end .swal2-popup,
.swal2-container.swal2-top-start .swal2-popup,
.swal2-container.swal2-top .swal2-popup,
.swal2-container.swal2-bottom-end .swal2-popup,
.swal2-container.swal2-bottom-start .swal2-popup,
.swal2-container.swal2-bottom .swal2-popup {
    pointer-events: all !important;
}

/* ---- Recaptcha ------------------------------------------------------------------------------------------------- */
.g-recaptcha {
    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-primary-bg-subtle) !important;
    /*background-color: var(--ins-secondary-bg) !important;*/
    /*background-color: rgba(51, 51, 51, 0.07);*/
    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;
}

/* ---- Brand Sistema Topbar ---- */
.brand-sistema-wrapper {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.brand-sistema-sigla {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.8px;
    font-size: 1.2rem;
}

.brand-sistema-sep {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 300;
    margin: 0 0.4rem;
    font-size: 1.1rem;
}

.brand-sistema-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.98rem;
    letter-spacing: 0.2px;
}