.gestao-legivel {
    --gestao-texto: #101820;
    --gestao-secundario: #293749;
    --gestao-azul: #07506b;
    --gestao-verde: #20593d;
    --gestao-amarelo: #754700;
    --gestao-vermelho: #902735;
    --gestao-cinza: #405369;
    --gestao-borda: #687788;
    --gestao-faixa: #e6eef6;
    --gestao-foco: #1546a0;
    color: var(--gestao-texto);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: max(18px, 1.125rem);
    font-weight: 500;
    line-height: 1.55;
}

.gestao-legivel .main-panel,
.gestao-legivel .card,
.gestao-legivel .modal-content,
.gestao-legivel .table {
    color: var(--gestao-texto);
}

.gestao-legivel .content p,
.gestao-legivel .modal p {
    font-size: inherit;
    font-weight: 500;
}

.gestao-legivel :is(.content, .modal, .form-signin) :is(h1, h2, h3, h4, h5, h6) {
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.gestao-legivel :is(.card-title, .modal-title) {
    font-size: max(18px, 1.125rem);
    font-weight: 750;
}

.gestao-legivel .card:not([class*="bg-"]) > .card-header {
    background-color: #f1f5f9;
    border-bottom: 1px solid #a7b4c2;
}

.gestao-legivel label {
    color: var(--gestao-texto);
    font-size: max(16px, .94em);
    font-weight: 700;
}

.gestao-legivel :is(small, .small, .form-text) {
    font-size: max(16px, .875em);
    font-weight: 500;
}

.gestao-legivel .text-muted { color: var(--gestao-secundario) !important; }
.gestao-legivel :is(.text-primary, .text-info) { color: var(--gestao-azul) !important; }
.gestao-legivel .text-secondary { color: var(--gestao-cinza) !important; }
.gestao-legivel .text-success { color: var(--gestao-verde) !important; }
.gestao-legivel .text-warning { color: var(--gestao-amarelo) !important; }
.gestao-legivel .text-danger { color: var(--gestao-vermelho) !important; }

.gestao-legivel .form-control,
.gestao-legivel .custom-select {
    background-color: #fff;
    border-color: var(--gestao-borda);
    color: var(--gestao-texto);
    font-size: max(16px, 1rem);
    font-weight: 500;
    line-height: 1.4;
    min-height: 2.5rem;
}

.gestao-legivel .form-control-plaintext {
    color: var(--gestao-texto);
    font-size: max(18px, 1.125rem);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.gestao-legivel :is(.form-control, .custom-select):is([readonly], :disabled) {
    background-color: #edf1f5;
    color: var(--gestao-secundario);
}

.gestao-legivel input::placeholder,
.gestao-legivel textarea::placeholder {
    color: var(--gestao-secundario);
    opacity: 1;
}

.gestao-legivel .select2-container--bootstrap .select2-selection {
    border-color: var(--gestao-borda);
    color: var(--gestao-texto);
    font-size: max(16px, 1rem);
}

.gestao-legivel .select2-container--bootstrap :is(.select2-selection__placeholder, .select2-search__field) {
    color: var(--gestao-secundario);
}

.gestao-legivel .select2-container--bootstrap .select2-results__option--highlighted[aria-selected] {
    color: #fff;
    background-color: var(--gestao-azul);
}

.gestao-legivel .form-group input[type="file"]:not(.custom-file-input) {
    bottom: auto;
    height: auto;
    left: auto;
    opacity: 1;
    position: static;
    right: auto;
    top: auto;
    z-index: auto;
}

.gestao-legivel input[type="file"] {
    color: var(--gestao-texto);
    font-family: inherit;
    font-size: max(16px, 1rem);
    max-width: 100%;
}

.gestao-legivel input[type="file"]::file-selector-button {
    background-color: var(--gestao-azul);
    border: 1px solid var(--gestao-azul);
    border-radius: .25rem;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    margin-inline-end: .5em;
    padding: .35em .7em;
}

.gestao-legivel :is(.content, .modal, .form-signin, .table) a:not(.btn):not(.nav-link):not(.dropdown-item):not(.page-link) {
    color: var(--gestao-azul);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .15em;
}

.gestao-legivel :is(.nav-tabs, .nav-pills) a {
    color: var(--gestao-azul);
    font-weight: 650;
}

.gestao-legivel .nav-tabs :is(.nav-link.active, .active > a) {
    background-color: var(--gestao-faixa);
    border-bottom: 3px solid var(--gestao-azul);
    color: var(--gestao-texto);
}

.gestao-legivel .nav-pills .nav-link.active {
    background-color: var(--gestao-azul);
    color: #fff;
}

.gestao-legivel .table {
    font-size: max(17px, 1.0625rem);
    font-weight: 500;
}

.gestao-legivel .table > thead > tr > th {
    background-color: var(--gestao-faixa);
    border-bottom: 2px solid var(--gestao-borda);
    color: var(--gestao-texto);
    font-size: max(15px, .9375rem);
    font-weight: 750;
}

.gestao-legivel .table > tbody > tr:nth-of-type(even) {
    background-color: #f5f8fb;
}

.gestao-legivel .table > tbody > tr > :is(td, th) {
    border-top-color: #c4cdd7;
}

.gestao-legivel .table-hover > tbody > tr:hover {
    background-color: #eaf1f7;
}

.gestao-legivel .table-responsive {
    overflow-x: auto;
}

.gestao-legivel .totais-titulo {
    color: var(--gestao-texto);
    font-size: max(16px, 1rem);
    font-weight: 700;
}

.gestao-legivel .totais-texto {
    color: var(--gestao-texto);
    font-size: max(18px, 1.125rem);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.gestao-legivel :is(.btn-primary, .btn-info, .btn-outline-primary, .btn-outline-info, .badge-primary, .badge-info) { --gestao-acao: var(--gestao-azul); }
.gestao-legivel :is(.btn-success, .btn-outline-success, .badge-success) { --gestao-acao: var(--gestao-verde); }
.gestao-legivel :is(.btn-warning, .btn-outline-warning, .badge-warning) { --gestao-acao: var(--gestao-amarelo); }
.gestao-legivel :is(.btn-danger, .btn-outline-danger, .badge-danger) { --gestao-acao: var(--gestao-vermelho); }
.gestao-legivel :is(.btn-secondary, .btn-outline-secondary, .badge-secondary) { --gestao-acao: var(--gestao-cinza); }
.gestao-legivel :is(.btn-dark, .btn-outline-dark, .badge-dark) { --gestao-acao: var(--gestao-texto); }

.gestao-legivel .btn {
    font-size: max(15px, .9375rem);
    font-weight: 700;
}

.gestao-legivel .btn:not(.btn-link) {
    --gestao-tinta-botao: #fff;
    --gestao-borda-botao: var(--gestao-acao, var(--gestao-azul));
    --gestao-fundo-botao: var(--gestao-borda-botao);
}

/* O tema antigo aplica cinza com prioridade ao focar ou abrir um menu. */
.gestao-legivel .btn:not(.btn-link),
.gestao-legivel .show > .btn.dropdown-toggle:not(.btn-link) {
    color: var(--gestao-tinta-botao) !important;
    background-color: var(--gestao-fundo-botao) !important;
    border-color: var(--gestao-borda-botao) !important;
}

.gestao-legivel .btn[class*="btn-outline-"] {
    border-style: solid;
    border-width: 1px;
}

.gestao-legivel .btn[class*="btn-outline-"]:not(:is(.btn-link, :hover, :active, .active, [aria-expanded="true"],
    :disabled, .disabled, [disabled], [aria-disabled="true"])) {
    --gestao-tinta-botao: var(--gestao-borda-botao);
    --gestao-fundo-botao: #fff;
}

.gestao-legivel .btn-sm {
    font-size: max(14px, .875rem);
}

.gestao-legivel .badge {
    font-size: max(14px, .875rem);
    line-height: 1.3;
    white-space: normal;
}

.gestao-legivel :is(.badge-primary, .badge-info, .badge-success, .badge-warning, .badge-danger, .badge-secondary, .badge-dark) {
    color: #fff;
    background-color: var(--gestao-acao);
    border-color: var(--gestao-acao);
}

.gestao-legivel .btn:not(.btn-link):hover:not(:is(:disabled, .disabled, [disabled], [aria-disabled="true"])) {
    filter: brightness(.9);
}

.gestao-legivel .btn:not(.btn-link):is(:disabled, .disabled, [disabled], [aria-disabled="true"]) {
    --gestao-tinta-botao: var(--gestao-secundario);
    --gestao-fundo-botao: #e1e8ef;
    --gestao-borda-botao: var(--gestao-borda);
    border-style: solid;
    border-width: 1px;
    opacity: 1;
}

.gestao-legivel .modal button.close {
    color: var(--gestao-texto);
    opacity: 1;
}

.gestao-legivel .alert-info { color: var(--gestao-azul); background-color: #e8f4f6; }
.gestao-legivel .alert-danger { color: var(--gestao-vermelho); background-color: #fbe9eb; }
.gestao-legivel .alert-warning { color: var(--gestao-amarelo); background-color: #fff1d3; }
.gestao-legivel .alert-success { color: var(--gestao-verde); background-color: #e7f3eb; }
.gestao-legivel .alert a:not(.btn) { color: inherit; }

.gestao-legivel .navbar-transparent :is(.navbar-brand, .nav-link),
.gestao-legivel .footer {
    color: var(--gestao-texto);
}

.gestao-legivel .navbar-brand {
    font-weight: 750;
    white-space: normal;
}

.gestao-legivel .sidebar :is(.logo a, .nav li > a, .nav li > a p, .nav li > a i) {
    color: #fff;
    opacity: 1;
}

.gestao-legivel .sidebar .nav li > a p {
    font-weight: 700;
}

.gestao-legivel .sidebar .nav :is(li.active, li.ico-empenho) > a {
    background-color: var(--gestao-faixa);
    color: var(--gestao-texto);
}

.gestao-legivel .sidebar .nav :is(li.active, li.ico-empenho) > a :is(i, p) {
    color: var(--gestao-texto);
}

.gestao-legivel .dropdown-menu .dropdown-item {
    color: var(--gestao-texto);
    font-size: max(16px, 1rem);
}

.gestao-legivel .dropdown-menu .dropdown-item:is(:hover, :focus) {
    background-color: var(--gestao-faixa);
    color: var(--gestao-texto);
}

.gestao-legivel :focus-visible {
    outline: 3px solid var(--gestao-foco);
    outline-offset: 2px;
}

.gestao-legivel .btn:focus-visible {
    outline: 3px solid var(--gestao-foco) !important;
}

.gestao-legivel .sidebar :focus-visible {
    outline-color: #fff;
}
