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

.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;
    box-shadow: 0 0 6px rgba(55, 60, 66, 0.55);
}

/* Inputs de texto e textareas sempre em caixa alta */
input[type="text"].form-control,
input[type="search"].form-control,
textarea.form-control {
    text-transform: uppercase;
}

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

/* ---- 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;
}

.app-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.app-search-input {
    width: 260px;
    padding: 8px 40px 8px 14px;
    border-radius: 25px;
    border: 1px solid #dee2e6;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.app-search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.15);
}

.app-search-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.app-search-btn:hover {
    color: #0d6efd;
}
/* Cor da barra superior */
.app-topbar {
    background: linear-gradient(100deg, rgb(0, 132, 66) 0%, rgba(36, 166, 55, 1) 0%, rgba(83, 189, 191, 1) 100%);
}

/* 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;
}

/* ---- Estrutura visual compartilhada ----------------------------------------------------------------------------- */
.page-shell {
    margin-bottom: 1.5rem;
}

.page-card {
    border-width: 1px;
    border-style: solid;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 0.35rem 1rem rgba(15, 23, 42, 0.08);
}

.page-card--primary {
    border-color: rgba(46, 139, 87, 0.28);
}

.page-card--warning {
    border-color: rgba(255, 193, 7, 0.38);
}

.page-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.page-card-header--primary {
    background: linear-gradient(180deg, rgba(46, 139, 87, 0.14) 0%, rgba(46, 139, 87, 0.07) 100%);
}

.page-card-header--warning {
    background: linear-gradient(180deg, rgba(255, 193, 7, 0.18) 0%, rgba(255, 193, 7, 0.08) 100%);
}

.page-card-heading {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.page-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.8rem;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.page-card-icon--primary {
    background: rgba(46, 139, 87, 0.16);
    color: #2E8B57;
}

.page-card-icon--warning {
    background: rgba(255, 193, 7, 0.2);
    color: #b8860b;
}

.page-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.page-card-subtitle {
    margin: 0.2rem 0 0;
    color: #8a969c;
    font-size: 0.78rem;
}

.page-card-body {
    padding: 1.25rem;
}

.page-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.page-action-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
