:root {
    --primary-blue: #1351B4;
    --secondary-blue: #2670E8;
    --dark-blue: #071D41;
    --light-gray: #F8F8F8;
    --text-gray: #555555;
    --white: #FFFFFF;
}

/* Estilos Gerais */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

.filter-box {
    height: 45px;
    max-width: 100%;
    margin-left: 10px;
    margin-top: 10px;
}

.kpi-box {
    height: 110px;
    max-width: 100%;
    text-align: center;
    margin-right: 20px;
    margin-top: 10px;
}

.map-box {
    height: 550px;
    width: 100%;
    margin-bottom: 40px;
}

.chart-box {
    height: 350px;
    width: 100%;
    margin-bottom: 40px;
}

.chart-necessidades-ano {
    height: 350px;
    width: 100%;
    margin: 40px auto;
}

.table-box {
    height: 430px;
    max-width: 100%;
    margin-bottom: 20px;
}

.header {
    padding: 5px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding-left: 0;
    height: 85px;
    margin-top: 20px;
}

.logo {
    height: 50px;
    width: auto;
}

@media (max-width: 768px) {
    .map-box {
        height: 450px;
        width: calc(100% - 20px) !important;
        margin: 10px;
    }
    
    .chart-box,
    .chart-necessidades-ano {
        height: 300px;
        margin: 10px;
        width: calc(100% - 20px) !important;
    }
    
    .table-box {
        height: 400px;
        width: calc(100% - 20px) !important;
        margin: 10px;
    }

    .row.mb-3 {
        margin: 10px 0;
        padding: 0 10px;
    }

    .row.mb-3 > [class*='col-'] {
        margin-bottom: 10px;
        padding: 0 5px;
    }

    .kpi-box {
        height: 80px;
        margin: 5px;
        width: calc(100% - 10px);
    }

    .filter-box {
        height: 40px;
        margin: 5px;
        width: calc(100% - 10px);
    }

    .chart-triple {
        padding: 0 10px;
        margin: 10px 0;
    }

    .chart-triple .chart-box {
        width: calc(100% - 20px) !important;
        margin: 10px;
    }

    .logo-container {
        height: auto;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        height: 50px;
    }

    .nav-header {
        height: auto;
        padding: 10px;
    }
}

.chart-spacing {
    padding: 0 35px;
}

.chart-container-left {
    padding-right: 40px;
}

.chart-group {
    margin-top: 20px;
}

.chart-triple {
    padding: 0 25px;
}

.chart-triple .chart-box {
    width: 90%; 
    margin: 0 auto; 
}

.qvt-selections {
    margin: 20px 0;
    min-height: 38px;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.texto-descritivo {
    margin: 10px 0 20px 0;
    width: 100%;
    min-height: 100px;
    display: block;
    color: #000;
    border-radius: 4px;
    position: relative;
    z-index: 1;
}

.texto-descritivo .qv-object {
    background: transparent !important;
    border: none !important;
    position: relative !important;
    height: auto !important;
    min-height: 100px !important;
    width: 100% !important;
}

.texto-descritivo .qv-object-content {
    padding: 0 !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
}

.texto-descritivo .qv-object-content-container {
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
}

.row.mb-3 {
    margin-top: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

/* Estilo do cabeçalho gov.br */
.gov-header {
    background-color: #015187;
    width: 100%;
    margin: 0;
    padding: 0;
}

.logo-header {
    padding: 10px 100px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: flex-start;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 95px;
    height: 45px;
}

.gov-logo {
    height: 35px;
    width: 100px;
    object-fit: contain;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-content,
.left-content {
    display: flex;
    gap: 5px;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.col-md-2, .col-md-4 {
    padding-left: 0;
}

.home-icon {
    color: #FFFFFF;
    font-size: 18px;
    text-decoration: none;
    padding: 7px 10px;
}

.home-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #FFFFFF;
}

.nav-buttons {
    display: flex;
    gap: 5px;
}

.nav-button {
    background: none;
    border: none;
    color: #FFFFFF;
    padding: 7px 10px;
    font-size: 15px;
    font-family: 'Rawline', sans-serif;
    cursor: pointer;
}

.nav-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-button.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.right-content {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 180px;
}

#header-kpi {
    color: var(--white);
    height: 45px;
    min-width: 180px;
    display: flex;
    align-items: center;
    margin-left: auto;
}

#header-kpi .qv-object {
    background: transparent !important;
    border: none !important;
    width: 100% !important;
    height: 100% !important;
}

#header-kpi .qv-object * {
    color: var(--white) !important;
    font-size: 12px !important;
    font-family: 'Rawline', sans-serif !important;
}

.main-container {
    padding-left: 100px;
    padding-right: 100px;
    width: 100%;
    box-sizing: border-box;
}


@media (max-width: 576px) {
    .main-container {
        padding: 20px;
    }

    .logo-header, .nav-header {
        padding: 10px;
    }

    .gov-logo {
        height: 30px;
        width: 85px;
    }

    .map-box {
        height: 500px;
        width: calc(100% - 20px) !important;
        margin: 10px;
    }

    .chart-box,
    .chart-necessidades-ano {
        height: 250px;
        width: calc(100% - 20px) !important;
        margin: 10px;
    }

    .table-box {
        height: 350px;
    }

    .texto-descritivo {
        min-height: 80px;
    }

    .nav-button {
        font-size: 14px;
        padding: 5px 8px;
    }

    .home-icon {
        font-size: 16px;
        padding: 5px 8px;
    }

    .row.mb-3 {
        padding: 0 10px;
    }

    .row.mb-3 > [class*='col-'] {
        padding: 0 5px;
        margin-bottom: 15px;
    }
}

.table-container {
    overflow-x: auto;
    width: 100%;
}

.qv-object-wrapper {
    width: 100% !important;
    height: 100% !important;
}

.qv-object {
    width: 100% !important;
    height: 100% !important;
}


.map-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.map-box {
    width: 100%;
    margin-bottom: 20px;
}

#btn-export-tabela-necessidades {
    position: absolute;
    right: 15px;
    z-index: 100;
    margin-top: -1px;
    top: 0;
    width: 38px;
    height: 38px;
    border: none;
    background: url('imagens/Botao.png') no-repeat center;
    background-size: contain;
    cursor: pointer;
    padding: 0;
    outline: none;
}

/* Remover apenas bordas externas dos cards aplicadas pelo tema bluebreeze */
.qv-object {
    border: none !important;
    box-shadow: none !important;
}

.qv-object-content {
    border: none !important;
}

/* Estilo específico do KPI de atualização no cabeçalho */
#header-kpi .qv-object,
#header-kpi .qv-object-content,
#header-kpi .qv-object-wrapper,
#header-kpi .qv-inner-object {
    background-color: #015187 !important;
    color: var(--white) !important;
    border-radius: 4px;
}

#header-kpi .qv-object *,
#header-kpi .qv-object-content * {
    color: var(--white) !important;
}
