body {
    background-color: #f4f4f4;
}
.autocomplete-container {
    position: relative;
    width: 100%;
}

.autocomplete-select {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; /* Igual al ancho del input */
    border: 1px solid #ccc;
    background-color: white;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
}

/* Estilo para las opciones dentro de la lista */
.autocomplete-item {
    padding: 8px;
    cursor: pointer;
    width: 100%; /* Hace que las opciones tengan el mismo ancho que el contenedor */
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
    text-align: left;
}

.autocomplete-item:hover {
    background-color: #f0f0f0;
}

.code {
    font-weight: bold;
}

.description {
    font-weight: normal;
}

#signatureparent {
    color: black;
    background-color: white;
    /*max-width:600px;*/
    padding: 10px;
}

/*This is the div within which the signature canvas is fitted*/
#signature {
    background-color: white;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Drawing the 'gripper' for touch-enabled devices */
html.touch #content {
    float: left;
    width: 92%;
}

html.touch #scrollgrabber {
    float: right;
    width: 4%;
    margin-right: 2%;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAFCAAAAACh79lDAAAAAXNSR0IArs4c6QAAABJJREFUCB1jmMmQxjCT4T/DfwAPLgOXlrt3IwAAAABJRU5ErkJggg==);
}

html.borderradius #scrollgrabber {
    border-radius: 1em;
}

.signature-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    border: 1px solid black;
}

@media (max-width: 768px) {
    #signature {
        height: 150px;
    }
}

@media (max-width: 480px) {
    #signature {
        height: 120px;
    }
}

.card.document-item {
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    transition: transform 0.3s ease-in-out; /* Efecto de transici�n suave */
}

.card.document-item:hover {
    transform: translateY(-10px); /* Efecto al pasar el cursor (levitar) */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Sombra m�s intensa al pasar el cursor */
}

.document-item .card-header {
    font-size: 1.2rem; /* Ajuste de tama�o de texto */
    background-color: #007bff; /* Fondo azul */
    color: white;
    font-weight: 600; /* Peso de la fuente m�s fuerte */
    text-transform: uppercase; /* Texto en may�sculas */
}

.file-input-container input[type='file'] {
    background-color: #f1f1f1;
    border-radius: 10px; /* Bordes redondeados en el input */
    padding: 10px; /* M�s espacio dentro del input */
}

/* Estilo adicional para el formulario */
.document-item .card-body {
    background-color: #f9f9f9; /* Fondo gris claro */
}

.document-item .card-footer {
    background-color: #f9f9f9; /* Fondo gris claro */
}

.custom-file-input {
    display: none; /* Oculta el input real de tipo file */
}

.file-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}
/*
.file-name {
    padding: 5px;
    cursor: pointer;
    border: 1px dotted #6c757d;
}*/

.swal2-container,
.swal2-input {
    z-index: 99999;
}

.dropzone {
    border: 2px dashed #6c757d;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background-color: #f8f9fa;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.dropzone.dragover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.dropzone input[type='file'] {
    display: none;
}

.file-name {
    margin-top: 10px;
    font-style: italic;
    color: #6c757d;
}

.file-preview-container {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-preview {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 120px;
    text-align: center;
    font-size: 12px;
    overflow: hidden;
}

.file-preview img {
    max-width: 100%;
    max-height: 70px;
    margin-bottom: 5px;
    border-radius: 4px;
}

.file-preview .file-name {
    word-break: break-all;
}


ul.timeline-3:before {
    content: ' ';
    background: #d4d9df;
    display: inline-block;
    position: absolute;
    left: 29px;
    width: 2px;
    height: 100%;
    z-index: 400;
}

ul.timeline-3 > li {
    margin: 20px 0;
    padding-left: 20px;
}

ul.timeline-3 > li:before {
    content: ' ';
    background: white;
    display: inline-block;
    position: absolute;
    border-radius: 50%;
    border: 3px solid #22c0e8;
    left: 20px;
    width: 20px;
    height: 20px;
    z-index: 400;
}

ul.timeline-3 > li.incorrecto::before {
    border: 3px solid red;
}

ul.timeline-3 > li.correcto::before {
    border: 3px solid green;
}

.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

/* Estilos mejorados para Select2 */

.select2-selection {
    overflow: hidden;
}

.select2-selection__rendered {
    white-space: normal;
    word-break: break-word;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 36px;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 1.5;
    color: #495057;
    padding-left: 0;
}

.select2-container--default.select2-container--focus
    .select2-selection--single {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.select2-results__option {
    padding: 0.375rem 0.75rem;
}

.select2-container--default
    .select2-results__option--highlighted[aria-selected] {
    background-color: #007bff;
    color: white;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__placeholder {
    color: #6c757d;
}

.select2-selection {
    overflow: hidden;
}

.select2-selection__rendered {
    white-space: normal;
    word-break: break-word;
}