.dashboard2-page {
    background-color: #fff;
    padding: 2rem 0 0;
}

.dashboard2-container {
    max-width: 1320px;
}

.dashboard2-eyebrow {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard2-eyebrow-dot {
    color: #28a745;
    margin-right: 0.35rem;
}

.dashboard2-title {
    color: #1a1a2e;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.dashboard2-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Ajustes apenas quando o dashboard2 é incluído em outra tela (ex: painel) */
.dashboard2-page--embedded {
    padding: 0;
    width: 100%;
}

.dashboard2-container--embedded,
.dashboard2-page--embedded .dashboard2-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
}

.dashboard2-page--embedded .dashboard2-filtros-campo-orgao,
.dashboard2-page--embedded .dashboard2-filtros-campo-organizacao {
    min-width: 0;
    max-width: 100%;
}

.dashboard2-page--embedded .dashboard2-filtros-campo-orgao .dashboard2-select-grupo,
.dashboard2-page--embedded .dashboard2-filtros-campo-organizacao .dashboard2-select-grupo,
.dashboard2-page--embedded .dashboard2-filtros-campo-orgao .select2-container,
.dashboard2-page--embedded .dashboard2-filtros-campo-organizacao .select2-container {
    max-width: 100%;
    width: 100% !important;
}

.dashboard2-page--embedded .row > [class*="col-"] {
    min-width: 0;
}

.dashboard2-page--embedded .dashboard2-chart-wrap {
    height: 320px;
}

.dashboard2-page--embedded .dashboard2-chart-wrap--tall {
    height: 380px;
}

.dashboard2-page--embedded .dashboard2-chart-wrap--orgao {
    height: 360px;
}

.dashboard2-page--embedded .dashboard2-chart-wrap > canvas {
    display: block;
    height: 100% !important;
    width: 100% !important;
}

.dashboard2-export-capture {
    background-color: #fff;
    box-sizing: border-box;
    padding: 1rem 1.25rem 1.5rem;
}

.dashboard2-btn-exportar {
    align-items: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #495057;
    display: inline-flex;
    font-size: 0.875rem;
    font-weight: 500;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dashboard2-btn-exportar:disabled {
    cursor: wait;
    opacity: 0.75;
}

.dashboard2-btn-exportar:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #212529;
}

.dashboard2-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
    margin-bottom: 1.5rem;
    overflow: visible;
    padding: 1.5rem;
}

.dashboard2-filtros-row {
    margin-bottom: 0;
}

.dashboard2-filtros-row > [class*="col-"] {
    margin-bottom: 0.75rem;
}

.dashboard2-filtros-row:last-child > [class*="col-"] {
    margin-bottom: 0;
}

.dashboard2-card-title {
    color: #1a1a2e;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.dashboard2-card-subtitle {
    color: #6c757d;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.dashboard2-card-obs {
    align-items: flex-start;
    color: #6c757d;
    display: flex;
    font-size: 0.78rem;
    font-style: italic;
    gap: 0.4rem;
    line-height: 1.4;
    margin-top: 0.85rem;
    margin-bottom: 0;
}

.dashboard2-card-obs i {
    color: var(--cor-primaria);
    margin-top: 0.15rem;
}

.dashboard2-filtros-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.dashboard2-filtros-title {
    align-items: center;
    color: #1a1a2e;
    display: flex;
    flex-wrap: wrap;
    font-size: 1rem;
    font-weight: 700;
    gap: 0.5rem;
    margin: 0;
}

.dashboard2-filtros-badge {
    background-color: #e8f4fc;
    border-radius: 1rem;
    color: var(--cor-primaria);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
}

.dashboard2-limpar-filtros {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.8rem;
    padding: 0;
    text-decoration: underline;
}

.dashboard2-limpar-filtros:hover {
    color: var(--cor-primaria);
}

.dashboard2-label {
    color: #495057;
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.dashboard2-select {
    appearance: none;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #495057;
    font-size: 0.875rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    width: 100%;
}

.dashboard2-campo-chevron {
    position: relative;
}

.dashboard2-campo-chevron .dashboard2-select--com-chevron {
    background-image: none !important;
    height: calc(1.5em + 1rem + 2px);
    min-height: calc(1.5em + 1rem + 2px);
    padding-right: 0.75rem;
}

.dashboard2-campo-chevron-icon {
    color: #6c757d;
    font-size: 0.7rem;
    pointer-events: none;
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
}

.dashboard2-select-select2 + .select2-container {
    width: 100% !important;
}

.dashboard2-ano-picker {
    position: relative;
}

.dashboard2-ano-toggle {
    align-items: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #495057;
    cursor: pointer;
    display: flex;
    font-family: inherit;
    font-size: 0.875rem;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    text-align: left;
    width: 100%;
}

.dashboard2-ano-toggle--active {
    background-color: #e8f4fc;
    border-color: #b8d4f0;
    color: var(--cor-primaria);
    font-weight: 600;
}

.dashboard2-ano-chevron {
    color: #6c757d;
    flex-shrink: 0;
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.dashboard2-ano-dropdown {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(16, 24, 40, 0.12);
    left: 0;
    margin-top: 0.35rem;
    min-width: 14rem;
    padding: 0.75rem;
    position: absolute;
    top: 100%;
    z-index: 30;
}

.dashboard2-ano-grid {
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0.65rem;
}

.dashboard2-ano-item {
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 2rem;
    color: #495057;
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0.35rem 0.5rem;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard2-ano-item:hover {
    border-color: var(--cor-primaria);
    color: var(--cor-primaria);
}

.dashboard2-ano-item.active {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: #fff;
    font-weight: 700;
}

.dashboard2-ano-limpar {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    display: block;
    font-size: 0.75rem;
    margin: 0 auto;
    padding: 0.25rem 0;
    text-align: center;
    text-decoration: underline;
    width: 100%;
}

.dashboard2-ano-limpar:hover {
    color: var(--cor-primaria);
}

/* Select2 filtros: sobrescreve .select2-selection__rendered do style.css global */
.dashboard2-filtros-card .select2-container--default .select2-selection--single,
.dashboard2-filtros-card .select2-container--default .select2-selection--multiple,
#dashboard2-filtros-form .select2-container--default .select2-selection--single,
#dashboard2-filtros-form .select2-container--default .select2-selection--multiple {
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    min-height: calc(1.5em + 1rem + 2px) !important;
    padding: 0 !important;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--single,
#dashboard2-filtros-form .select2-container--default .select2-selection--single {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236c757d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 12px 8px !important;
    height: calc(1.5em + 1rem + 2px) !important;
    min-height: calc(1.5em + 1rem + 2px) !important;
    padding-right: 2rem !important;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--single .select2-selection__arrow,
#dashboard2-filtros-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important;
}
.dashboard2-filtros-card .select2-container--default .select2-selection--multiple,
#dashboard2-filtros-form .select2-container--default .select2-selection--multiple {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236c757d' d='M6 8 0 0h12z'/%3E%3C/svg%3E") !important;
    background-position: right 0.75rem center !important;
    background-repeat: no-repeat !important;
    background-size: 10px 6px !important;
    padding: 0.25rem 2rem 0.25rem 0.5rem !important;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--multiple .select2-selection__rendered,
#dashboard2-filtros-form .select2-container--default .select2-selection--multiple .select2-selection__rendered {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.25rem !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    min-height: 1.75rem !important;
    padding: 0.35rem 0.5rem !important;
    width: 100% !important;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--multiple .select2-selection__choice,
#dashboard2-filtros-form .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--cor-primaria) !important;
    border: 1px solid var(--cor-primaria) !important;
    border-radius: 0.375rem !important;
    color: #fff !important;
    float: none !important;
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0.1rem 0.45rem !important;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
#dashboard2-filtros-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    margin-right: 0.35rem !important;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover,
#dashboard2-filtros-form .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #fff !important;
    opacity: 0.85;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--multiple .select2-search--inline,
#dashboard2-filtros-form .select2-container--default .select2-selection--multiple .select2-search--inline {
    flex: 1 1 auto !important;
    margin: 0 !important;
    min-width: 3rem !important;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--multiple .select2-search__field,
#dashboard2-filtros-form .select2-container--default .select2-selection--multiple .select2-search__field {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #495057 !important;
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    outline: none !important;
    padding: 0 !important;
    width: 100% !important;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--multiple .select2-search__field::placeholder,
#dashboard2-filtros-form .select2-container--default .select2-selection--multiple .select2-search__field::placeholder {
    color: #6c757d !important;
}

.dashboard2-select-grupo {
    align-items: stretch;
    display: flex;
    gap: 0.35rem;
}

.dashboard2-select-grupo-campo {
    flex: 1 1 auto;
    min-width: 0;
}

.dashboard2-select-grupo-campo .select2-container {
    width: 100% !important;
}

.dashboard2-select-limpar {
    align-items: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    flex-shrink: 0;
    height: calc(1.5em + 1rem + 2px);
    justify-content: center;
    padding: 0;
    width: 2.25rem;
}

.dashboard2-select-limpar:hover {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #495057;
}

.dashboard2-select-grupo .select2-selection__clear {
    display: none !important;
}

.dashboard2-filtros-campo-orgao .select2-container,
.dashboard2-filtros-campo-organizacao .select2-container {
    width: 100% !important;
}

.dashboard2-filtros-campo-orgao .select2-selection--single,
.dashboard2-filtros-campo-organizacao .select2-selection--single {
    min-height: 38px;
}

.dashboard2-filtros-campo-orgao .select2-selection__rendered,
.dashboard2-filtros-campo-organizacao .select2-selection__rendered {
    overflow: hidden;
    padding-right: 1.75rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard2-filtros-card .select2-container--default .select2-selection--single .select2-selection__rendered,
#dashboard2-filtros-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-clip: border-box !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #495057 !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin-bottom: 0 !important;
    padding: 0.5rem 0.75rem !important;
    transition: none !important;
    width: 100% !important;
}

.dashboard2-filtros-card .select2-container--default.select2-container--focus .select2-selection--single,
.dashboard2-filtros-card .select2-container--default.select2-container--open .select2-selection--single,
.dashboard2-filtros-card .select2-container--default.select2-container--focus .select2-selection--multiple,
.dashboard2-filtros-card .select2-container--default.select2-container--open .select2-selection--multiple,
#dashboard2-filtros-form .select2-container--default.select2-container--focus .select2-selection--single,
#dashboard2-filtros-form .select2-container--default.select2-container--open .select2-selection--single,
#dashboard2-filtros-form .select2-container--default.select2-container--focus .select2-selection--multiple,
#dashboard2-filtros-form .select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
    outline: none !important;
}

.dashboard2-filtros-card .select2-dropdown,
#dashboard2-filtros-form .select2-dropdown {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    margin-top: 4px !important;
    overflow: hidden;
}

.dashboard2-filtros-card .select2-container--default .select2-search--dropdown .select2-search__field,
#dashboard2-filtros-form .select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
    font-size: 0.875rem !important;
    padding: 0.375rem 0.5rem !important;
}

.dashboard2-filtros-card .select2-container--default .select2-search--dropdown .select2-search__field:focus,
#dashboard2-filtros-form .select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
    outline: none !important;
}

.dashboard2-filtros-card .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
#dashboard2-filtros-form .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: var(--cor-primaria) !important;
}

.dashboard2-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dashboard2-chip {
    align-items: center;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 2rem;
    color: #495057;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8rem;
    gap: 0.25rem;
    padding: 0.4rem 0.9rem;
    transition: all 0.2s ease;
}

.dashboard2-chip-check {
    display: none;
    font-size: 0.7rem;
}

.dashboard2-chip-modalidade.active .dashboard2-chip-check {
    display: inline-block;
}

.dashboard2-chip-modalidade:hover {
    border-color: #adb5bd;
}

.dashboard2-chip--fomento.active {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: #fff;
}

.dashboard2-chip--colaboracao.active {
    background-color: #5cb85c;
    border-color: #5cb85c;
    color: #fff;
}

.dashboard2-chip--cooperacao.active {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    color: #fff;
}

.dashboard2-chip-prestacao:hover {
    border-color: #adb5bd;
}

.dashboard2-chip-prestacao--analise.active {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    color: #fff;
    font-weight: 600;
}

.dashboard2-chip-prestacao--aprovado.active {
    background-color: #5cb85c;
    border-color: #5cb85c;
    color: #fff;
    font-weight: 600;
}

.dashboard2-chip-prestacao--ressalvas.active {
    background-color: #5bc0de;
    border-color: #5bc0de;
    color: #fff;
    font-weight: 600;
}

.dashboard2-kpi-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard2-kpi-card {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 8.5rem;
    overflow: hidden;
    padding: 1.25rem;
    position: relative;
}

.dashboard2-kpi-card::before {
    content: '';
    height: 3px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.dashboard2-kpi-card--analise::before {
    background-color: #f0ad4e;
}

.dashboard2-kpi-card--aprovado::before {
    background-color: #5cb85c;
}

.dashboard2-kpi-card--ressalvas::before {
    background-color: #5bc0de;
}

.dashboard2-kpi-card--previsto::before {
    background-color: var(--cor-primaria);
}

.dashboard2-kpi-card--gasto::before {
    background-color: #20b2aa;
}

.dashboard2-kpi-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.dashboard2-kpi-label {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
}

.dashboard2-kpi-icon {
    align-items: center;
    border-radius: 50%;
    display: flex;
    font-size: 0.85rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.dashboard2-kpi-icon--analise {
    background-color: #fff3cd;
    color: #f0ad4e;
}

.dashboard2-kpi-icon--aprovado {
    background-color: #d4edda;
    color: #5cb85c;
}

.dashboard2-kpi-icon--ressalvas {
    background-color: #d9edf7;
    color: #5bc0de;
}

.dashboard2-kpi-icon--previsto {
    background-color: #e8f0fe;
    color: var(--cor-primaria);
}

.dashboard2-kpi-icon--gasto {
    background-color: #d1f2eb;
    color: #20b2aa;
}

.dashboard2-kpi-value {
    color: #1a1a2e;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: auto;
}

.dashboard2-kpi-value--moeda {
    font-size: 1.6rem;
    line-height: 1.2;
    word-break: break-word;
}

@media (min-width: 1200px) {
    .dashboard2-kpi-value--moeda {
        font-size: 1.75rem;
    }
}

.dashboard2-kpi-desc {
    color: #6c757d;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    min-height: 2rem;
}

.dashboard2-kpi-progress {
    background-color: #e9ecef;
    border-radius: 1rem;
    height: 0.35rem;
    overflow: hidden;
}

.dashboard2-kpi-progress-bar {
    border-radius: 1rem;
    height: 100%;
}

.dashboard2-kpi-progress-bar--analise {
    background-color: #f0ad4e;
}

.dashboard2-kpi-progress-bar--aprovado {
    background-color: #5cb85c;
}

.dashboard2-kpi-progress-bar--ressalvas {
    background-color: #5bc0de;
}

.dashboard2-kpi-percent {
    color: #6c757d;
    font-size: 0.7rem;
    margin-top: 0.35rem;
    text-align: right;
}

.dashboard2-situacao-card {
    padding-bottom: 1.5rem;
}

.dashboard2-situacao-title {
    border-left: 4px solid #8bc34a;
    color: #1a1a2e;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-left: 0.75rem;
}

.dashboard2-situacao-bar {
    border-radius: 0.35rem;
    display: flex;
    height: 1.35rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
    width: 100%;
}

.dashboard2-situacao-seg {
    flex-shrink: 0;
    height: 100%;
    min-width: 0;
}

.dashboard2-situacao-seg--em_analise {
    background-color: #8bc34a;
}

.dashboard2-situacao-seg--aprovado {
    background-color: #f0ad4e;
}

.dashboard2-situacao-seg--ressalvas {
    background-color: var(--cor-primaria);
}

.dashboard2-situacao-seg--nao_informado {
    background-color: #e8a0a0;
}

.dashboard2-situacao-seg--nao_se_aplica {
    background-color: #8b3a3a;
}

.dashboard2-situacao-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dashboard2-situacao-item {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-bottom-width: 3px;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 5.5rem;
    padding: 0.9rem 0.85rem 0.75rem;
}

.dashboard2-situacao-item--em_analise {
    border-bottom-color: #8bc34a;
}

.dashboard2-situacao-item--aprovado {
    border-bottom-color: #f0ad4e;
}

.dashboard2-situacao-item--ressalvas {
    border-bottom-color: var(--cor-primaria);
}

.dashboard2-situacao-item--nao_informado {
    border-bottom-color: #e8a0a0;
}

.dashboard2-situacao-item--nao_se_aplica {
    border-bottom-color: #8b3a3a;
}

.dashboard2-situacao-item-label {
    color: #6c757d;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    text-transform: uppercase;
}

.dashboard2-situacao-item-value {
    color: #1a1a2e;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: auto;
}

.dashboard2-chart-wrap {
    min-height: 320px;
    position: relative;
}

.dashboard2-chart-wrap--tall {
    min-height: 380px;
}

.dashboard2-chart-meta {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dashboard2-chart-total {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 2rem;
    color: #1a1a2e;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    white-space: nowrap;
}

.dashboard2-hbar-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.25rem 0 0.5rem;
    width: 100%;
}

.dashboard2-hbar-row {
    align-items: center;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: minmax(6.5rem, 11rem) minmax(0, 1fr) 6.25rem;
}

.dashboard2-hbar-label {
    color: #1a1a2e;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-align: right;
    word-break: break-word;
}

.dashboard2-hbar-track {
    background-color: #eceff3;
    border-radius: 0;
    height: 1.35rem;
    min-width: 0;
    overflow: hidden;
    width: 100%;
}

.dashboard2-hbar-fill {
    background-color: var(--hbar-color, var(--cor-primaria));
    border-radius: 0;
    height: 100%;
    max-width: 100%;
    min-width: 2px;
    width: var(--hbar-width, 0%);
}

.dashboard2-hbar-valor {
    color: #1a1a2e;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.dashboard2-chip-selecao.active .dashboard2-chip-check {
    display: inline-block;
}

.dashboard2-chip-selecao:hover {
    border-color: #adb5bd;
}

.dashboard2-chip-selecao--chamamento.active {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: #fff;
}

.dashboard2-chip-selecao--emenda.active {
    background-color: #5bc0de;
    border-color: #5bc0de;
    color: #fff;
}

.dashboard2-chip-selecao--dispensa.active {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    color: #fff;
}

.dashboard2-chip-selecao--inexigibilidade.active {
    background-color: #d9534f;
    border-color: #d9534f;
    color: #fff;
}

.dashboard2-row-paired {
    align-items: stretch;
}

.dashboard2-card--stretch {
    display: flex;
    flex-direction: column;
}

.dashboard2-card--stretch .dashboard2-modalidade-rows {
    flex: 1;
}

.dashboard2-chart-wrap--orgao {
    flex: 1 1 auto;
    min-height: 360px;
}

.dashboard2-chart-wrap--orgao:not(.is-expanded) {
    max-height: 360px;
    overflow: hidden;
}

.dashboard2-chart-wrap--orgao.is-expanded {
    min-height: 360px;
    max-height: none;
    overflow: visible;
}

.dashboard2-chart-toggle {
    background: none;
    border: none;
    color: var(--cor-primaria);
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-top: 0.75rem;
    padding: 0;
    text-align: center;
    width: 100%;
}

.dashboard2-chart-toggle:hover,
.dashboard2-chart-toggle:focus {
    color: var(--cor-secundaria);
    outline: none;
    text-decoration: underline;
}

.dashboard2-growth-badge {
    align-items: center;
    background-color: #d4edda;
    border-radius: 2rem;
    color: #28a745;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
}

.dashboard2-growth-badge--down {
    background-color: #f8d7da;
    color: #dc3545;
}

.dashboard2-modalidade-rows {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard2-modalidade-row {
    align-items: center;
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.dashboard2-modalidade-progress {
    padding-left: 1rem;
}

.dashboard2-modalidade-progress .dashboard2-progress-item {
    margin-bottom: 0;
}

.dashboard2-modalidade-info {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    border-top-width: 3px;
    padding: 1rem;
}

.dashboard2-modalidade-info--fomento {
    border-top-color: var(--cor-primaria);
}

.dashboard2-modalidade-info--colaboracao {
    border-top-color: #5cb85c;
}

.dashboard2-modalidade-info--cooperacao {
    border-top-color: #f0ad4e;
}

.dashboard2-modalidade-info--chamamento {
    border-top-color: var(--cor-primaria) !important;
}

.dashboard2-modalidade-info--emenda {
    border-top-color: #5bc0de !important;
}

.dashboard2-modalidade-info--dispensa {
    border-top-color: #f0ad4e !important;
}

.dashboard2-modalidade-info--inexigibilidade {
    border-top-color: #d9534f !important;
}

.dashboard2-modalidade-info--sei {
    border-top-color: #6c757d !important;
}

.dashboard2-modalidade-info h4 {
    color: #1a1a2e;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dashboard2-modalidade-info p {
    color: #6c757d;
    font-size: 0.75rem;
    line-height: 1.45;
    margin: 0;
}

.dashboard2-progress-item {
    margin-bottom: 1.25rem;
}

.dashboard2-progress-item:last-child {
    margin-bottom: 0;
}

.dashboard2-progress-header {
    align-items: center;
    display: flex;
    font-size: 0.8rem;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.dashboard2-progress-header span:last-child {
    color: #6c757d;
}

.dashboard2-progress-track {
    background-color: #e9ecef;
    border-radius: 1rem;
    height: 1.5rem;
    overflow: hidden;
    position: relative;
}

.dashboard2-progress-fill {
    align-items: center;
    border-radius: 1rem;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    font-size: 0.75rem;
    font-weight: 600;
    height: 100%;
    justify-content: flex-end;
    min-width: 3.25rem;
    padding-left: 0.65rem;
    padding-right: 0.5rem;
}

.dashboard2-progress-fill--fomento {
    background-color: var(--cor-primaria);
}

.dashboard2-progress-fill--colaboracao {
    background-color: #5cb85c;
}

.dashboard2-progress-fill--cooperacao {
    background-color: #f0ad4e;
}

.dashboard2-progress-fill--chamamento {
    background-color: var(--cor-primaria) !important;
}

.dashboard2-progress-fill--emenda {
    background-color: #5bc0de !important;
}

.dashboard2-progress-fill--dispensa {
    background-color: #f0ad4e !important;
}

.dashboard2-progress-fill--inexigibilidade {
    background-color: #d9534f !important;
}

.dashboard2-progress-fill--sei {
    background-color: #6c757d !important;
}

.dashboard2-nav-tabs-wrapper {
    border-bottom: 2px solid #ccc;
    margin-bottom: 1.5rem;
    position: relative;
}

.dashboard2-nav-tabs {
    display: flex;
    margin-bottom: 0;
    width: 100%;
}

.dashboard2-nav-tabs .nav-item {
    flex: 1;
    margin-left: -5px;
    text-align: center;
}

.dashboard2-nav-tabs .nav-link {
    background-color: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 1rem 1rem 0 0;
    color: #333;
    font-weight: bold;
    padding: 12px 0;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    width: 100%;
}

.dashboard2-nav-tabs .nav-link:hover {
    background-color: #d6d8db;
}

.dashboard2-nav-tabs .nav-link.active {
    background-color: var(--cor-primaria);
    border-color: var(--cor-primaria);
    color: #fff;
}

.dashboard2-empty {
    align-items: center;
    color: #6c757d;
    display: flex;
    font-size: 0.9rem;
    justify-content: center;
    min-height: 200px;
    text-align: center;
}

@media (max-width: 1200px) {
    .dashboard2-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard2-situacao-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .dashboard2-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard2-situacao-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard2-modalidade-row {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .dashboard2-modalidade-progress {
        padding-left: 0;
    }

    .dashboard2-hbar-row {
        gap: 0.45rem;
        grid-template-columns: minmax(5rem, 8rem) minmax(0, 1fr) 5.5rem;
    }
}

@media (max-width: 576px) {
    .dashboard2-kpi-grid {
        grid-template-columns: 1fr;
    }

    .dashboard2-situacao-grid {
        grid-template-columns: 1fr;
    }

    .dashboard2-title {
        font-size: 1.35rem;
    }

    .dashboard2-hbar-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.3rem 0.45rem;
    }

    .dashboard2-hbar-label {
        grid-column: 1 / 2;
        text-align: left;
    }

    .dashboard2-hbar-track {
        grid-column: 1 / 2;
    }

    .dashboard2-hbar-valor {
        align-self: center;
        grid-column: 2 / 3;
        grid-row: 1 / 3;
        text-align: right;
    }
}

body footer {
    background-color: #fff;
    margin-top: 100px;
}

body footer ul {
    border-right: thin solid #CDCDCD;
    color: #5B5B5B;
    list-style: none;
}

body footer ul li {
    padding: 10px 0;
}

body footer a {
    color: #5B5B5B;
}
