:root {
    --bs-body-font-family: "Pluto", sans-serif;
    --bs-font-sans-serif: "Pluto", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body,
button,
input,
optgroup,
select,
textarea,
a,
p,
label,
.btn,
.form-control,
.form-select,
.dropdown-menu,
.card,
.modal,
.popover,
.tooltip,
.table,
.navbar-custom,
.left-sidebar,
.page-wrapper {
    font-family: "Pluto", sans-serif;
    letter-spacing: 0;
}

.morris-chart text,
.morris-hover.morris-default-style,
.apexcharts-legend-text,
.apexcharts-datalabels text,
.apexcharts-data-labels,
.apexcharts-xaxis text,
.apexcharts-yaxis text,
.britechart,
.tick text {
    font-family: "Pluto", sans-serif !important;
    letter-spacing: 0 !important;
}

.swal2-cancel {
    order: 1;
    /* Cambiar el orden del botón "Cancelar" */
}

.swal2-confirm {
    order: 2;
    /* Cambiar el orden del botón "Confirmar" */
}

/* Permite ocultar el logo pequeño al tener el sidebar desplegado */
.logo .logo-sm {
    display: none;
}

/* Permite mostrar el logo pequeño al tener el sidebar expandido */
.enlarge-menu .logo .logo-sm {
    display: inline-block;
}

/* Permite ocultar el logo pequeño al tener el sidebar está siendo hover */
.enlarge-menu .left-sidebar:hover .logo .logo-sm {
    display: none;
}

/* Permite mostrar el logo grande al tener el sidebar está siendo hover */
.enlarge-menu .left-sidebar:hover .logo .logo-lg {
    display: inline-block;
}

/* Permite iluminar los elementos del navbar cuando están en la ruta activa */
.left-sidebar .navbar-nav>.nav-item>.nav-link.active {
    color: #ccd1e0 !important;
    background: linear-gradient(14deg, #2a76f4 0, rgba(42, 118, 244, .6));
    box-shadow: 0 5px 10px 0 rgba(42, 118, 244, .5);
}

.left-sidebar .navbar-nav>.nav-item>.nav-link.active i {
    color: #ccd1e0 !important;
}

/* Estilos que permiten el funcionamiento de la ubicación de firmas en el sistema */
.draggable {
    user-select: none;
    height: 10vw;
    width: 30vw;
    touch-action: none;
    box-sizing: border-box;
    top: 0px;
    left: 0px;
    position: absolute;
}

.draggable img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.corner {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background-color: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 16px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.corner-icon {
    line-height: 1;
}

.corner.top-left {
    top: -10px;
    left: -10px;
    transform: translate(-50%, -50%);
    cursor: nwse-resize;
}

.corner.top-right {
    top: -10px;
    right: -10px;
    transform: translate(50%, -50%);
    cursor: nesw-resize;
}

.corner.bottom-left {
    bottom: -10px;
    left: -10px;
    transform: translate(-50%, 50%);
    cursor: nesw-resize;
}

.corner.bottom-right {
    bottom: -10px;
    right: -10px;
    transform: translate(50%, 50%);
    cursor: nwse-resize;
}

.corner.top-center {
    top: 2.5px;
    left: 50%;
    transform: translate(-50%, -140%);
    background-color: transparent;
    box-shadow: none;
}

.corner.top-center .deleteSignature {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

#pdf-container {
    width: 100%;
}

#signature-canvas {
    display: block;
    width: 100%;
    height: auto;
}

/* Estilos para corregir el problema del canvas de liveness que no se muestra el flash de colores */
.amplify-liveness-freshness-canvas[hidden] {
    display: block !important;
}

.amplify-liveness-freshness-canvas[style*='display: none'] {
    display: none !important;
}

.select2-container--bootstrap-5 {
    width: 100% !important;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-family: "Pluto", sans-serif;
    font-size: .8125rem;
    line-height: 1.5;
    color: #303e67;
    border: 1px solid #d7dae3;
    border-radius: .3rem;
    box-shadow: none;
}

.select2-container--bootstrap-5 .select2-selection--single {
    padding: .375rem 2.25rem .375rem .75rem;
    background-position: right .75rem center;
    background-size: 16px 12px;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    font-family: "Pluto", sans-serif;
    font-size: .8125rem;
    color: #303e67;
    line-height: 1.5;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered .select2-selection__placeholder {
    font-family: "Pluto", sans-serif;
    font-size: .8125rem;
    color: #6c757d;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #86b7fe;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection,
.select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection {
    color: #000444;
    background-color: #f1f5fa;
    border-color: #e8ebf3;
    opacity: 1;
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection--single .select2-selection__rendered,
.select2-container--bootstrap-5.select2-container--disabled.select2-container--focus .select2-selection--single .select2-selection__rendered {
    color: #000444;
    -webkit-text-fill-color: #000444;
}

.select2-container--bootstrap-5.select2-container--disabled .select2-selection--single {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23000444' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-radius: .3rem;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
    font-family: "Pluto", sans-serif;
    font-size: .8125rem;
    line-height: 1.5;
    color: #303e67;
}

.select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
    font-family: "Pluto", sans-serif;
    font-size: .8125rem;
    line-height: 1.5;
}

.fp-date-range-picker-menu {
    z-index: 20000 !important;
    width: max-content;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e8ebf3;
    border-radius: .375rem;
    box-shadow: 0 12px 32px rgba(48, 62, 103, .18);
}

.fp-date-range-picker-menu .container__months {
    border-radius: 0;
    box-shadow: none;
}

#resultadosBusqueda {
    min-width: 420px;
    max-width: 560px;
    max-height: 300px;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #d9e2f2;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(43, 56, 97, .16);
}

#resultadosBusqueda .fp-search-group {
    margin: 0;
}

#resultadosBusqueda .fp-search-group-title {
    padding: 10px 16px;
    font-size: 16px;
    line-height: 1.25;
}

#resultadosBusqueda .fp-search-item {
    padding: 12px 16px;
    border-right: 0;
    border-left: 0;
}

#resultadosBusqueda .fp-search-item:first-child {
    border-top: 0;
}

#resultadosBusqueda .fp-search-item:last-child {
    border-bottom: 0;
}

#resultadosBusqueda .fp-search-empty {
    margin: 0;
    padding: 18px 20px;
    color: #9a5f24;
    background-color: #fff0dc;
}

#resultadosBusqueda .fp-search-error {
    color: #842029;
    background-color: #f8d7da;
}
