.menu {
    background: linear-gradient(135deg, #2b3ddf 0%, #2b3ddf 100%);
    color: #FFF;
}

.btn.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.btn.btn-primary:hover {
    border: 1px solid transparent;
    background: #b03c8c;
    color: #fff;
}

.btn.btn-info:hover {
    border: 1px solid transparent;
    background: #b03c8c;
    color: #fff;
}

.btn.btn-success:hover {
    border: 1px solid transparent;
    background: #b03c8c;
    color: #fff;
}

.bi-person-circle {
    font-size: 30px;
}

input[type="checkbox"] {
    appearance: none;
    width: 15px;
    height: 15px;
    background-color: #FFF;
    border: 1px solid black;
}

input[type="checkbox"]:checked {
    background-color: #000;
}

.footer {
    bottom: 0;
    background: linear-gradient(135deg, #e7335b 0%, #f59d00 100%);
}

/* Tema Escuro */
body {
    background-color: #121212;
    color: #ffffff;
}

.card {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #ffffff;
}

.table {
    color: #ffffff;
}

.table thead {
    background-color: #333;
}

.table tbody tr:hover {
    background-color: #222;
    color: #c4b0b0;
}

.modal-content {
    background-color: #343a40;
    color: #ffffff;
}

.modal-header {
    border-bottom: 1px solid #ffffff;
}

.modal-footer {
    border-top: 1px solid #ffffff;
}

.modal-content label {
    color: #ffffff;
}

/* Lista de PDFs no modal Editar B.I. — fundo preto como os selects */
.modal-content #edit_bi_arquivos {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
}
.modal-content #edit_bi_arquivos label,
.modal-content #edit_bi_arquivos .form-check-label {
    color: #ffffff !important;
}
.modal-content #edit_bi_arquivos .bi-arquivo-muted {
    color: #aaaaaa !important;
}

/* Modal Exibir B.I.: PDFs em sequência contínua (um embaixo do outro, sem blocos separados) */
#modalExibirBi .bi-pdf-stack {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #ffffff;
    line-height: 0;
}
#modalExibirBi .bi-pdf-stack .bi-pdf-iframe {
    width: 100%;
    border: 0;
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: top;
}
#modalExibirBi .bi-pdf-stack .bi-pdf-iframe--single {
    height: calc(90vh - 140px);
    min-height: 50vh;
}

/* Checkboxes nesta área: estado :checked era #000 e sumia no fundo preto */
.modal-content #edit_bi_arquivos input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin-top: 0.2rem;
    vertical-align: top;
    background-color: #ffffff !important;
    border: 2px solid #888 !important;
    border-radius: 3px;
    cursor: pointer;
}
.modal-content #edit_bi_arquivos input[type="checkbox"]:checked {
    background-color: #0d6efd !important;
    border-color: #ffffff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.modal-content input {
    color: #6c757d;
    border: none;
}

.modal-content input::placeholder {
    color: #6c757d;
}

.modal-content .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.modal-content .btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

select {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 12px; /* Padding consistente */
    height: 40px; /* Altura consistente */
    line-height: 1.5; /* Alinhamento vertical */
    border-radius: 4px; /* Bordas arredondadas */
    box-sizing: border-box; /* Garante que padding não altere a altura */
}

select option {
    background-color: #000000 !important;
    color: #ffffff !important;
}

select:focus, select:active {
    background-color: #000000 !important;
    color: #ffffff !important;
    outline: none !important;
}

#resultado_busca_natureza div:hover,
#resultado_busca_natureza_tipo div:hover {
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

/* Ajuste para a dropdown do perfil */
.dropdown-menu {
    background-color: #1e1e1e !important;
    border: 1px solid #333 !important;
}

.dropdown-menu .dropdown-item {
    color: #ffffff !important;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #6a3a8e !important;
    color: #ffffff !important;
}

input, textarea {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
    padding: 8px 12px; /* Padding consistente */
    height: 40px; /* Altura consistente */
    line-height: 1.5; /* Alinhamento vertical */
    border-radius: 4px; /* Bordas arredondadas */
    box-sizing: border-box; /* Garante que padding não altere a altura */
}

input::placeholder, textarea::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

input:focus, textarea:focus, input:not(:placeholder-shown), textarea:not(:placeholder-shown) {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}

input[type="text"] {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}

input[type="text"]::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

input[type="time"], input[type="date"] {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #333 !important;
}

input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Inverte a cor do ícone */
}

/* Estilos gerais para inputs e selects */
input[type="text"],
input[type="time"],
input[type="date"],
select,
.choices__inner {
    height: 40px; /* Altura consistente */
    padding: 8px 12px; /* Padding consistente */
    line-height: 1.5; /* Alinhamento vertical */
    border: 1px solid #333 !important;
    border-radius: 4px; /* Bordas arredondadas */
    background-color: #000000 !important;
    color: #ffffff !important;
    box-sizing: border-box; /* Garante que padding não altere a altura */
    font-size: 14px; /* Tamanho da fonte consistente */
    outline: none; /* Remove o outline padrão */
}

/* Ajustes específicos para o Choices.js */
.choices {
    margin-bottom: 1rem;
}

.choices__inner {
    min-height: 40px; /* Altura mínima igual à dos inputs */
    display: flex;
    align-items: center; /* Centraliza o conteúdo verticalmente */
    padding: 8px 12px; /* Padding consistente */
}

.choices__list--single {
    padding: 0; /* Remove padding interno */
    display: flex;
    align-items: center; /* Centraliza o conteúdo verticalmente */
}

.choices__input {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: none !important;
    height: 100%; /* Ocupa toda a altura do container */
    padding: 0; /* Remove padding interno */
    margin: 0; /* Remove margens */
    line-height: 1.5; /* Alinhamento vertical */
}

.choices__placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
    background-color: #1e1e1e;
    border: 1px solid #333;
    color: #ffffff;
}

.choices__item--selectable {
    padding: 8px 12px; /* Padding consistente */
}

.choices__item--selectable.is-highlighted {
    background-color: #6a3a8e;
    color: #fff;
}

/* Ajustes para garantir que o dropdown não aumente a altura */
.choices__list--dropdown .choices__item--selectable,
.choices__list[aria-expanded] .choices__item--selectable {
    padding: 8px 12px; /* Padding consistente */
}

.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background-color: #6a3a8e !important;
    color: #ffffff !important;
}

/* Dropdown aberto: todas as opções com texto legível sobre fundo escuro */
.choices__list--dropdown .choices__item,
.choices__list[aria-expanded] .choices__item {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}

/* Valor atualmente selecionado na lista (Choices marca como disabled) — evita fundo branco */
.choices__list--dropdown .choices__item--disabled,
.choices__list[aria-expanded] .choices__item--disabled {
    background-color: #2b3ddf !important;
    color: #ffffff !important;
    opacity: 1 !important;
    cursor: default;
}

/* Quando o item selecionado recebe highlight (hover/teclado), manter contraste */
.choices__list--dropdown .choices__item--disabled.is-highlighted,
.choices__list[aria-expanded] .choices__item--disabled.is-highlighted {
    background-color: #6a3a8e !important;
    color: #ffffff !important;
}

/* Itens ativos por aria-selected (algumas versões do Choices) */
.choices__list--dropdown .choices__item[aria-selected="true"],
.choices__list[aria-expanded] .choices__item[aria-selected="true"] {
    background-color: #2b3ddf !important;
    color: #ffffff !important;
}

.choices__list--dropdown .choices__item[aria-selected="true"].is-highlighted,
.choices__list[aria-expanded] .choices__item[aria-selected="true"].is-highlighted {
    background-color: #6a3a8e !important;
    color: #ffffff !important;
}

/* Ajustes para inputs e selects */
input[type="text"],
input[type="time"],
input[type="date"],
select {
    height: 40px; /* Altura consistente */
    padding: 8px 12px; /* Padding consistente */
    line-height: 1.5; /* Alinhamento vertical */
    border: 1px solid #333 !important;
    border-radius: 4px; /* Bordas arredondadas */
    background-color: #000000 !important;
    color: #ffffff !important;
    box-sizing: border-box; /* Garante que padding não altere a altura */
    font-size: 14px; /* Tamanho da fonte consistente */
    outline: none; /* Remove o outline padrão */
}

/* Ajustes para o placeholder */
input::placeholder,
textarea::placeholder,
.choices__placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
}

.radio-group {
    display: flex;
    align-items: center; /* Alinha todos os itens verticalmente */
    gap: 10px; /* Espaçamento entre os itens */
}

.radio-label {
    margin-bottom: 0; /* Remove a margem inferior padrão do label */
    line-height: 1.5; /* Ajusta a altura da linha para alinhar com os inputs */
}

.radio-option {
    display: flex;
    align-items: center; /* Alinha o input e o texto verticalmente */
    gap: 5px; /* Espaçamento entre o input e o texto */
}





/* Pagina de Login, Cadastro de Usuario, Esqueci Senha e Redefinir Senha */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.login-form {
    width: 100%;
    max-width: 520px;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* Brasões nos cantos da faixa + "Login" no centro. Ajuste: --login-logo-size / --login-logo-max-h */
.login-form .login-header-logos {
    --login-logo-size: min(132px, 26vw);
    --login-logo-max-h: min(118px, 24vw);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.35rem;
    margin-bottom: 1rem;
    min-width: 0;
    width: 100%;
}
.login-form .login-header-logos > a:first-child {
    justify-self: start;
}
.login-form .login-header-logos > a:last-child {
    justify-self: end;
}
.login-form .login-header-logos__img {
    line-height: 0;
    display: block;
}
.login-form .login-header-logos__img img {
    display: block;
    width: var(--login-logo-size);
    max-width: var(--login-logo-size) !important;
    height: auto;
    max-height: var(--login-logo-max-h);
    object-fit: contain;
}
.login-form .login-header-logos__title {
    grid-column: 2;
    justify-self: center;
    margin: 0 !important;
    padding: 0 0.4rem;
    color: #ffffff;
    font-size: clamp(2rem, 6vw, 2.85rem);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}
.extra-links {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}
.extra-links a {
    text-decoration: none;
    color: #4dabf7;
}
.extra-links a:hover {
    text-decoration: underline;
    color: #74c0fc;
}
.extra-links p {
    color: #aaaaaa;
    margin-bottom: 8px;
}
.form-control {
    background-color: #2d2d2d;
    color: #ffffff;
    border: 1px solid #444;
}
.form-control::placeholder {
    color: #aaaaaa;
}
.form-control:focus {
    background-color: #3d3d3d;
    color: #ffffff;
    border-color: #555;
}
.form-label {
    color: #ffffff;
}
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #ffffff;
}
.alert {
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: #ffffff;
}
.alert-danger {
    color: #ff6b6b;
}
.alert-success {
    color: #6bff6b;
}
h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
}
.button-group {
    display: flex;
    gap: 10px;
}
.button-group .btn {
    flex: 1;
}
.password-reset-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.password-reset-form {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.text-center a {
    color: #4dabf7;
    text-decoration: none;
}
.text-center a:hover {
    color: #74c0fc;
    text-decoration: underline;
}
.text-center {
    color: #aaaaaa;
    margin-top: 15px;
}
.reset-password-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.reset-password-form {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}