html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
    --blue-font-color: rgb(16, 72, 130);
    --background-white: rgb(255, 255, 255);
}

.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;
    font-family: sans-serif;
    text-align: center;
    background-color: white;
}

.footer-logo {
    max-height: 50px; /* Ajusta la altura según lo necesites */
    object-fit: contain; /* Asegura que el logotipo mantenga su proporción */
}


.login-body {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background-color: #fff;
    background: url(../images/login_vica.jpg) no-repeat 50% fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}


.login-card-container {
    margin-top: 6%;
}
    .login-card-container .card {
        max-width: 320px;
        width: 90%;
        background-color: #dfdfdf;
        padding: 40px;
        border-radius: 4px;
        transform: translate(-50%, -50%);
        position: absolute;
        top: 50%;
        left: 50%;
        color: #fff;
        box-shadow: 3px 3px 4px rgba(0, 0, 0, .2);
        border: 1px solid #005fac;
        color: #000;
    }
.botonExcel {
    text-align: right;
    margin-bottom: 12px;
}
.vica-btn, .botonExcel .btn {
    border: none;
    border-radius: 4px;
    padding: 11px;
    box-shadow: none;
    text-shadow: none;
    background: rgb(0, 79, 158);
    outline: none;
}
    .login-logo {
        border-radius: 100%;
        width: 70%;
    }

.navbar {
    background-color: var(--background-white);
}
    .navbar .nav-item a {
        font-weight: 600;
        color: var(--blue-font-color) !important;
        transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    }
        .navbar .nav-item a:hover {
            transform: scale(1.05);
            font-weight: 700;
        }
        .navbar .current-user {
/*            margin-top: 10px;
            width: 20rem;*/
        }
            .navbar .current-user p {
                color: var(--blue-font-color);
                font-size: 1rem;
                line-height: 10px;
            }
.navbar-logo {
    /*width: 30vh;*/
    width:7em;
    padding: 15px 10px 15px 10px;
    position: relative;
    bottom: 1em;
}
.navbar .nav-link {
    cursor: pointer !important;
}
.navbar .dropdown-menu {
}
    .navbar .dropdown-menu .nav-link {
        color: black !important;
    }
    .navbar .dropdown-menu .nav-link:hover {
        color: black !important;
    }
/*Tablas reportes*/
.table {
    border-collapse: collapse; /* Necesario para bordes redondeados consistentes */
    border-radius: 10px; /* Ajusta el redondeo */
    overflow: hidden; /* Oculta bordes internos que sobresalen */
}
.table thead {
    background-color: rgb(0, 79, 158);
    color: white;
}

    .table th, .table td {
        border: 1px solid #ccc; /* Define bordes internos */
        padding: 10px; /* Espaciado interno */
    }

tbody td {
    color: var(--blue-font-color);
    font-weight: 600;
}

#medio-pago-table tbody tr td {
    align-content: center;
}
/*Tabla facturas*/
.table-collapse-facturas {
    
}
.table-collapse-facturas thead {
    background-color: transparent;
    color: inherit;
}
.table-collapse-facturas th, .table-collapse-facturas td {
    font-size: 15px;
}
.row-reporte {
    cursor: pointer;
}
    .row-reporte span {
        cursor: text;
    }
.selected {
    background-color: #dfdfdf;
}

/*Filtros*/

.search-form {
    display: flex;
    width: 20em;
}

    .search-form label {
        color: black;
    }

.search-form .btn {
    position: absolute;
    right: 0;
    padding: 1rem;
}

.filter {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0 20px 0;
    flex-wrap: wrap;
}

    .filter .btn {
        padding: 5px;
    }

.filter-date, .search-bar {
    color: white;
    height: 5.7em;
    align-content: center;
    margin-bottom: 20px;
    background-image: url("../images/background-inputbar.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: var(--blue-font-color);
}

.filter-date-title, .search-bar-title {
    margin-right: 15px;
    margin-bottom: initial;
}

.filter-date .filter-date-form{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-left: 3em;
}

    .filter-date-form .form-group {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

.form-label {
    width: 100%;
    margin-bottom: initial;
}

.filter-date .btn {
    padding: 5px;
}

.input-busqueda-productos {
    padding-left: 40px;
}

.btn-busqueda-productos {
    position: absolute;
}

    .btn-busqueda-productos img {
        display: block;
    }

/* Aplica un filtro de saturación al pasar el mouse */
.save-importe-btn img:hover,
.cancel-importe-btn img:hover {
    filter: saturate(2); /* Incrementa la saturación al doble */
    transition: filter 0.2s ease; /* Añade una transición suave */
}

/* Transición por defecto para imágenes */
.save-importe-btn img,
.cancel-importe-btn img {
    transition: filter 0.2s ease;
}

/*//////////////LOADER//////////////*/

/* Fondo del loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner */
.spinner {
    border: 8px solid transparent; /* Círculo transparente */
    border-top: 8px solid #0056b3; /* Azul */
    border-bottom: 8px solid #FFD700; /* Amarillo */
    border-radius: 50%; /* Forma circular */
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Animación */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



/*//////////////CART//////////////*/
.cart-quantity-controls {
    display: flex;
    justify-content: space-evenly;
}
.cart-quantity-controls input{
    text-align: center;
    width: 50px;
}
.no-spinners {
    -moz-appearance: textfield;
}

    .no-spinners::-webkit-outer-spin-button,
    .no-spinners::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.increment-btn, .decrement-btn {
    font-weight: 600;
}

.decrement-btn {

}

#confirmarBtn {
    color: white;
    font-weight: 700;
}

.increment-btn {
    background-color: var(--blue-font-color);
    border-color: white;
    color: white;
}

.gen-trabajo-container {
    text-align: right;
    margin-bottom: 12px;
}

.add-prod-btn {
    background-color: rgb(254, 230, 0);
    border-color: white;
    color: black;
    font-weight: 600;
}
/*//////////////WHATSAPP//////////////*/
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

    .whatsapp-float:hover {
        transform: scale(1.1);
    }

    .whatsapp-float img {
        width: 35px;
        height: 35px;
    }

/*//////////////CARRITO//////////////*/
#cart-dropdown-container {
}
#cart-badge {
    font-size: 0.8rem;
    padding: 0.3em 0.5em;
    border-radius: 50%;
}

#cart-dropdown {
    inset: auto 0px auto auto;
}

.subtitulo {
    text-decoration: none;
    color: black;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
}

/* Oculta el dropdown con escala y opacidad */

.dropdown-menu{
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out;
    display: block; /* Bootstrap usa display: none, pero lo manejamos con opacidad */
    visibility: hidden;
}

.dropdown.show .dropdown-menu {
    opacity: 1;
    transform: scaleY(1);
    visibility: visible;
}

.eliminar-item-carrito-list {
    padding: .01rem .2rem
}

.cart-dropwdown-product-text {
    font-size: 0.9rem;
}


@media (min-width: 426px) {
    .search-bar-form {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 15px;
        margin-left: 3em;
    }
}

@media (max-width: 425px) {
    .search-bar-form {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 996px) {
    .search-form {
        width: 100%;
    }

    #cart-dropdown {

    }
    .search-bar {
        height: initial;
        align-content: center;
        margin-bottom: 20px;
    }

    .filter-date {
        height: 10em;
    }
        .filter-date-title {
        width: 100%;
    }
    .filter-date .filter-date-form {
        margin-left: initial;
        gap: 0;
    }
    .filter-date .filter-date-form .form-group{
        width: 15em;
    }
        .BodyBusquedaVehiculos .form-floating {
        width: 100% !important;
    }


    #generar-orden-form {
        width: 100% !important;
    }

        #generar-orden-form textarea {
            width:initial !important;
            height: 25vw !important;
        }

    #generar-orden-trabajo-btn {
        width: initial !important;
    }

    #vehiculos-lista-usuario-container {
        width: 100% !important;
        top: 23em !important;
    }
}