﻿body {
    background-color: darkgray;
}

.lock-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 78px;
    height: 78px;
    padding-bottom: 6px;
    background-color: #cfe2ff;
    border: 5px solid #084298;
    border-radius: 50%;
    /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);*/
    box-shadow: 0 0.25rem 1rem var(--bs-gray-600)
}

    .lock-circle i {
        font-size: 50px;
        color: #084298;
    }

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

::placeholder {
    color: var(--bs-gray-600) !important;
    opacity: 0.50 !important;
}

#grid-container {
    display: flex;
    justify-content: center; /* Centraliza horizontalmente */
    align-items: start; /* Alinha verticalmente */
    /* height: 100vh; /* Faz com que ocupe toda a altura da tela */
}

.tabulator-editing input {
    text-align: center;
}

.tabulator-popup-container {
    font-family: 'Roboto', sans-serif !important;
    font-size: 11px !important;
    line-height: 1.0 !important;
}

/*.tabulator-cell {
    border-right: 1px solid #495057 !important;
}

    .tabulator-cell:last-child {
        border-right: none !important;
    }

.tabulator-header .tabulator-col {
    border-right: 1px solid #495057 !important;
}

    .tabulator-header .tabulator-col:last-child {
        border-right: none !important;
    }*/

.tabulator-row {
    box-shadow: 0 -1px 0 #495057;
}

    .tabulator-row:first-child {
        box-shadow: none;
    }

    .tabulator-row.tabulator-selected {
        background-color: seagreen;
    }

        .tabulator-row.tabulator-selected:hover {
            background-color: mediumseagreen;
        }

.custom-label {
    font-size: 12px;
    font-weight: bold;
    color: black;
    margin-bottom: 0;
    margin-left: 8px;
}

.custom-component {
    background-color: var(--bs-gray-300); /* Usando a variável CSS do Bootstrap */
    border: 1px solid var(--bs-gray-600); /* Borda personalizada */
}

    .custom-component[readonly] {
        background-color: #bbc2c9;
        cursor: not-allowed;
    }

    .custom-component[disabled] {
        background-color: #bbc2c9;
        cursor: not-allowed;
    }

.multiedit-component {
    background-color: #cfe2ff;
    border: 1px solid var(--bs-primary);
}

    .multiedit-component[readonly] {
        background-color: #cfe2ff;
        border: 1px solid var(--bs-primary);
    }

.multiedit-component-no-focus[readonly] {
    background-color: #bbc2c9;
    border: 1px solid var(--bs-gray-600);
    cursor: not-allowed;
}
        
.accordion {
    border-color: var(--bs-gray-600) !important;
}

.accordion-item {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-gray-600) !important;
}

.accordion-button {
    background-color: var(--bs-dark) !important;
    border-color: var(--bs-gray-600) !important;
    color: white !important;
}

    .accordion-button:not(.collapsed) {
        background-color: var(--bs-dark) !important;
        border-color: var(--bs-gray-600) !important;
        color: white !important;
    }

    .accordion-button::after {
        filter: brightness(0) invert(1); /* Seta branca */
    }

    .accordion-button:not(.collapsed)::after {
        filter: brightness(0) invert(1); /* Mantém a seta branca mesmo quando aberto */
    }

.accordion-body {
    /* background-color: var(--bs-gray-500) !important; */
    background-color: #fafafa !important;
    color: black !important;
    border-color: var(--bs-gray-600) !important;
    border-top: none !important;
    border-bottom: none !important;
}

.input-group .select2-container {
    flex-grow: 1;
}

    .input-group .select2-container .select2-selection--single {
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        height: 100%;
    }

.input-group-text {
    border-top-left-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Tamanho da fonte e altura para parecer com form-control-sm */
    .select2-container .select2-selection--single {
    background-color: var(--bs-gray-300) !important;
    border: 1px solid var(--bs-gray-600) !important;
    font-family: var(--bs-body-font-family) !important;
    font-size: 0.875rem !important;
    padding: 0rem 0.1rem !important;
    height: calc(1.5em + 0.5rem + 2px) !important;
    border-radius: 0.2rem !important;
    outline: none !important;
}

.select2-container--disabled .select2-selection {
    background-color: #bbc2c9 !important;
    cursor: not-allowed !important;
}

/* Cor de fundo do dropdown */
.select2-container .select2-dropdown {
    background-color: var(--bs-gray-300) !important;
}

.select2-container .select2-results > .select2-results__options {
    max-height: 300px !important;
    overflow-y: auto;
}

/* Ajusta a fonte dos itens no dropdown */
.select2-container .select2-results__option {
    font-size: 0.875rem !important;
    padding: 4px 8px; /* Reduz o espaçamento interno */
    line-height: 1.2 !important;
}

/* Cor de fundo ao passar o mouse */
.select2-container .select2-results__option--highlighted {
    /* background-color: var(--bs-gray-300) !important; */
}

/* Altera a borda do campo de pesquisa */
.select2-container .select2-search__field {
    font-size: 0.875rem !important;
    border: 2px solid var(--bs-gray-600) !important;
    border-radius: 0.2rem !important;
}

    /* Altera a borda quando o campo de pesquisa está em foco */
    .select2-container .select2-search__field:focus {
        border-color: var(--bs-gray-600) !important;
    }

/* Cor de fundo do item selecionado */
.select2-container .select2-selection__rendered {
    color: var(--bs-body-color) !important;
}

/* Altera a cor de borda de destaque do Select2 (quando o controle está em foco) */
.select2-container .select2-selection--single:focus {
    border-color: #0d6efd !important; /* Cor azul */
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25) !important; /* Sombra azul clara */
}

.select2-container .select2-search--dropdown .select2-search__field {
    border: 1px solid var(--bs-gray-600) !important;
    border-radius: 0.2rem !important;
    box-shadow: 0 0 5px rgba(0, 91, 187, 0.5) !important;
    outline: none !important;
}

    .select2-container .select2-search--dropdown .select2-search__field:focus {
        border-color: var(--bs-gray-600) !important;
        box-shadow: 0 0 5px rgba(0, 91, 187, 0.5) !important;
    }

.datepicker {
    font-size: 0.8rem;
}