/* Estilo geral para o input group */
.custom-input-group {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* Estilo para o prepend (parte que aparece antes do input ou textarea) */
.custom-input-group-prepend {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem 0 0 0.25rem;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
    margin-right: -1px;
}

/* Estilo para o texto dentro do prepend */
.custom-input-group-text {
    font-size: 1rem;
    color: #495057;
}

/* Estilo para  input */
.custom-form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0 0.25rem 0.25rem 0;
    resize: none;
}

.custom-form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/*MODAL*/
/* O modal cobre toda a tela e está inicialmente invisível */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.custom-modal.show {
    display: block;
    opacity: 1;
}

/* O conteúdo do modal */
.custom-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 60%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
}

/* Cabeçalho do modal */
.custom-modal-header {
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
}

/* Botão de fechar o modal (X) */
.custom-modal-close {
    color: #aaa;
    float: right;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
}

.custom-modal-close:hover, .custom-modal-close:focus {
    color: #000;
}

/* Corpo do modal com scroll */
.custom-modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: 80vh;
    flex: 1;
    color: black;
}



/*select2*/
.select2-container--default .select2-selection--single{
    border: 0px !important;
    height: auto !important;
}
span.select2-dropdown.select2-dropdown--below{
    width: 150px !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    height: 15px !important;
    top: 0px !important;
}

@media (max-width: 480px) {
    .custom-input-group-prepend{
        max-width: 25% !important;
    }
}
