html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background: rgb(2,0,36);
    background: linear-gradient(180deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 47%, rgba(0,212,255,1) 100%);
    font-family: Arial;
    background-attachment: fixed;
    background-position: center center;
}

.hidden {
    display: none;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/*----------------------------------------------------------------*/
/* From Uiverse.io by Maximinodotpy */
.inputGroup {
    font-family: 'Segoe UI', sans-serif;
    margin: 1em 0 1em 0;
    /*max-width: 190px;*/
    position: relative;
    margin-block: 20px;
}

.inputGroup input {
    font-size: 100%;
    padding: 0.8em;
    outline: none;
    border: 2px solid rgb(200, 200, 200);
    background-color: transparent;
    border-radius: 20px;
    width: 100%;
}

.inputGroup label {
    font-size: 100%;
    position: absolute;
    left: 0;
    padding: 0.8em;
    margin-left: 0.5em;
    pointer-events: none;
    transition: all 0.3s ease;
    color: rgb(100, 100, 100);
}

.inputGroup :is(input:focus, input:valid) ~ label {
    transform: translateY(-50%) scale(.9);
    margin: 0em;
    margin-left: 1.3em;
    padding: 0.4em;
    background-color: #ffffff;
}

.inputGroup :is(input:focus, input:valid) {
    border-color: rgb(150, 150, 200);
}
/*----------------------------------------------------------------*/
/*.button-custom {*/
.button-custom {
    appearance: none;
    background-color: transparent;
    border: 2px solid rgb(200, 200, 200);
    border-radius: 0.9375em;
    box-sizing: border-box;
    color: #3B3B3B;
    cursor: pointer;
    display: inline-block;
    font-family: Roobert, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    margin: 0;
    min-height: 3.75em;
    min-width: 0;
    max-width: 100%;
    outline: none;
    padding: 1em 2.3em;
    text-align: center;
    text-decoration: none;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    will-change: transform;
}

    /* Estado deshabilitado */
    .button-custom:disabled {
        pointer-events: none;
        opacity: 0.5;
    }

    /* Hover */
    .button-custom:hover {
        color: #fff;
        background-color: #064FA7;
        box-shadow: rgba(9, 9, 121, 0.5) 0 8px 15px;
        transform: translateY(-2px);
    }

    /* Activo */
    .button-custom:active {
        box-shadow: none;
        transform: translateY(0);
    }

/* Responsive: Ajustar tamaño en móviles */
@media (max-width: 480px) {
    .button-custom {
        font-size: 14px;
        padding: 0.8em 1.8em;
    }
}

/* Centrar el botón en móviles */
@media (max-width: 768px) {
    .button-container {
        display: flex;
        justify-content: center;
    }
}
.card-custom {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

    .card-custom:hover {
        transform: translateY(-5px);
    }

.icon-container {
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 50%;
    display: inline-block;
}

.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}
/*----------------------------------------------------------------*/
.BtnCerraeSesion:active {
    background-color: red !important;
    color: white !important;
}

.BtnCerraeSesion:focus {
    background-color: red !important;
    color: white !important;
    outline: none;
}
/*----------------------------------------------------------------*/
.container-btn-excel {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    background-color: #307750;
    color: #fff;
    border-style: none;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    overflow: hidden;
    z-index: 1;
    box-shadow: 4px 8px 10px -3px rgba(0, 0, 0, 0.356);
    transition: all 250ms;
}
.container-btn-excel > svg {
    margin-right: 1em;
}

.container-btn-excel::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 0;
    border-radius: 0.5em;
    background-color: #469b61;
    z-index: -1;
    transition: all 350ms;
}

.container-btn-excel:hover::before {
    width: 100%;
}
/*----------------------------------------------------------------*/
.container-btn-buscar {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    background-color: #064FA7; /* color: #3B3B3B; */
    color: #fff;
    border-style: none;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    overflow: hidden;
    z-index: 1;
    box-shadow: 4px 8px 10px -3px rgba(0, 0, 0, 0.356);
    transition: all 250ms;
}

    .container-btn-buscar > svg {
        margin-right: 1em;
    }

    .container-btn-buscar::before {
        content: "";
        position: absolute;
        height: 100%;
        width: 0;
        border-radius: 0.5em;
        background-color: #3377C9;
        z-index: -1;
        transition: all 350ms;
    }

    .container-btn-buscar:hover::before {
        width: 100%;
    }

/*----------------------------------------------------------------*/
.input-underline {
    border: none;
    border-bottom: 2px solid #ccc;
    outline: none;
    background-color: transparent;
    padding: 6px 8px;
    transition: border-color 0.3s;
    width: 100%;
}

.input-underline:focus {
    border-bottom-color: #007bff; /* Cambia el color al hacer focus */
}
/*----------------------------------------------------------------*/
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon .input-underline {
    padding-right: 36px; /* espacio para el botón */
}
/*----------------------------------------------------------------*/
.img-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    font-size: 18px;
    color: #007bff;
    cursor: pointer;
}

.img-btn:hover {
    color: #064FA7; /* hover más claro */
}
/*----------------------------------------------------------------*/

.product-table {
    width: 100%;
    border-collapse: collapse;
}

    .product-table th {
        text-align: left;
        padding: 12px 16px;
        font-weight: 500;
        color: black;
        border-bottom: 1px solid rgba(0,0,0,0.12);
    }

    .product-table td {
        padding: 12px 16px;
        border-bottom: 1px solid rgba(0,0,0,0.08);
    }

    .product-table tr:last-child td {
        border-bottom: none;
    }

    .product-table tr:hover {
        background-color: rgba(0, 216, 251, 0.1);
    }

.chip {
    display: inline-block;
    background-color: #064FA7;
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
}
/*----------------------------------------------------------------*/

.service-card {
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
}

    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

.service-header {
    cursor: pointer;
    padding: 15px;
    background-color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-status {
    font-size: 0.8rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.status-running {
    background-color: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.status-stopped {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.status-error {
    background-color: rgba(220, 53, 69, 0.2);
    color: white;
}

.service-details {
    background-color: #f8f9fa;
    padding: 20px;
}

.detail-table {
    width: 100%;
    margin-bottom: 20px;
}

    .detail-table td {
        padding: 8px 0;
        vertical-align: top;
    }

.detail-label {
    font-weight: 600;
    color: #495057;
    width: 40%;
}

.log-table {
    width: 100%;
    font-size: 0.9rem;
}

    .log-table th {
        background-color: #e9ecef;
        padding: 10px;
    }

    .log-table td {
        padding: 10px;
        border-bottom: 1px solid #dee2e6;
    }

.log-success {
    color: var(--success-color);
}

.log-error {
    color: var(--danger-color);
}

.action-buttons .btn {
    margin: 0 5px 5px 0;
    min-width: 120px;
}

/* Efecto de carga */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/*----------------------------------------------------------------*/
/* Para el scrollbar vertical */
::-webkit-scrollbar {
    width: 12px; /* Ancho del scrollbar vertical */
}

    /* Para el scrollbar horizontal */
    ::-webkit-scrollbar:horizontal {
        height: 12px; /* Altura del scrollbar horizontal */
    }

/* Fondo del scrollbar */
::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

/* Barra de desplazamiento */
::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    /* Efecto hover sobre la barra */
    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
/*----------------------------------------------------------------*/
/* icon detalle de orden */
/* Estilos para los íconos de acción */
.actionorder-icon {
    display: inline-block;
    padding: 0.1rem; /* Espacio interno alrededor del ícono */
    margin: 0 0.3rem; /* Separación horizontal entre íconos */
    color: #495057; /* Color gris oscuro */
    transition: all 0.2s ease;
}

    .actionorder-icon:hover {
        color: #0d6efd; /* Color azul de Bootstrap al pasar mouse */
        transform: scale(1.1);
        text-decoration: none;
    }

    /* Tamaño consistente para los íconos */
    .actionorder-icon i {
        font-size: 1.25rem; /* Tamaño mediano */
        vertical-align: middle;
    }

/* Ajuste para celda de la tabla */
.action-cell {
    white-space: nowrap; /* Evita saltos de línea */
}
/*----------------------------------------------------------------*/
