/* variables de colores */
:root {
    --primary: #3155A6;
    --secondary: #EAF2FF;
    --tertiary: #0061A0;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #343a40;
    --white: #ffffff;
    --black: #000000;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.my-swal-popup {
    height: auto; /* Opcional, puedes ajustar la altura según tus necesidades */
    font-size: 100%;
}

/* si es pantalla mobile aplico el efecto de arriba*/

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f9fb7f;
    transition: opacity 0.75s, visibility 0.75s;
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader::after {
    content: "";
    width: 75px;
    height: 75px;
    border: 15px solid #dddddd;
    border-top-color: var(--tertiary);
    border-radius: 50%;
    animation: loading 0.75s ease infinite;
}

.login-form {
    max-width: 600px;
    margin: auto;
}


@keyframes loading{
    from{
      transform: rotate(0turn);
    }
    to{
      transform: rotate(1turn);
    }
  }

.bg-custom {
    background-color: var(--secondary);
}

.border-sides {
    border-left: 4px solid #cccccc;
    border-right: 4px solid #cccccc;
}

.btn-custom {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff; /* Asegura que el texto del botón sea blanco para mejor contraste */
}

.btn-custom-small {
    font-size: 12px;
}

.btn-custom:hover {
    background-color: #2a4c8f;
    border-color: #29487f;
    color: #ffffff;
}

.btn-custom:focus {
    box-shadow: 0 0 0 0.2rem rgba(49, 85, 166, 0.5);
    color: #ffffff;
}

.btn-custom:active {
    background-color: #233b6f;
    border-color: #1f3561;
    color: #ffffff;
}

.btn-custom.disabled, .btn-custom:disabled {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.btn-custom.disabled:hover, .btn-custom:disabled:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.bg-blue-custom{
    background-color: var(--primary);
}

.bg-orange-custom{
    background-color: #fc8b01;
}

.text-custom {
    color: var(--primary);
}

.table-custom td, .table-custom th {
    color: #0d2d6c;
}
.table-custom th {
    background-color: var(--primary);
    color: #ffffff;
}
.nota {
    font-size: 9px;
}
.caja_login {
    background-color: #E5E5E5;
    padding: 15px;
    border-radius: 5px;
}

.display-cards{
    max-width: 600px;
    padding: 0;
}

@media (min-width: 1050px){
    .display-cards{
        display: none !important;
    }

    .display-table{
        display: block !important;
    }
}

.display-cards-sin-max{
    max-width: none !important;
}

/* TRAZABILIDAD */

.timeline {
    position: relative;
    margin: 0 auto;
    padding: 20px;
    max-height: 50vh;
    overflow-y: auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #ddd;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}
.timeline-item {
    padding: 20px;
    position: relative;
    width: 50%;
}
.timeline-item.left {
    left: 0;
}
.timeline-item.right {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: white;
    border: 4px solid #007bff;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item.left::after {
    right: -12px;
}
.timeline-item.right::after {
    left: -12px;
}
.timeline-item-content {
    padding: 20px;
    background-color: #007bff;
    position: relative;
    border-radius: 6px;
    color: white;
}
.timeline-item-content:hover {
    background-color: #0056b3;
}
.timeline-item-content span {
    font-weight: bold;
}
.tooltip-custom {
    display: none;
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    z-index: 1000;
}
.modal-body {
    max-height: 50vh;
    overflow-y: auto;
}