@font-face {
    font-family: 'MyCustomFont';
    src: url('../fonts/VWHead-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #f5f5f5;
    --text-color: #000000;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
    --header-bg: rgb(46, 89, 215);
    --surface-shadow: var(--surface-shadow-light);
    --shadow-strength: var(--shadow-strength-light);
}

* {
    --brand-hue: 200;
    --brand-saturation: 100%;
    --brand-lightness: 50%;
    --surface-shadow-light: var(--brand-hue) 10% 20%;
    --shadow-strength-light: .02;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'MyCustomFont';
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    min-height: 100vh;
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-template-areas: "header" "main" "footer";
    width: 100%;
    height: 100vh;
}

/* Header */
.header {
    grid-area: header;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--header-bg);
    color: var(--bg-color);
}

.header a {
    color: var(--bg-color);
    text-decoration: none;
    align-self: center;
    margin-right: 20px;
}

.header span {
    font-size: 20px;
    margin: 0 20px;
}

/* Main */
.main {
    grid-area: main;
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
}

/* Footer */
.footer {
    grid-area: footer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    background-color: var(--header-bg);
    justify-content: center;
}

.footer a,
.footer p,
.footer span {
    margin: 5px;
    color: var(--text-color);
    text-decoration: none;
}

/* Modal Menu */
.modal-nav {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-nav-content {
    background-color: #d7c9c9;
    margin: 0;
    border: 1px solid #888;
    width: 30%;
    height: 100%;
}

.modal-nav-body {
    height: auto;
}

ul.vertical {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

li.vertical {
    width: 100%;
}

.vertical a {
    color: var(--text-color);
    display: block;
    text-decoration: none;
}

.vertical a.active {
    color: var(--bg-color);
    background-color: var(--header-bg);
}

.vertical a:hover {
    color: var(--bg-color);
    background-color: var(--header-bg);
}

.fa {
    margin: 10px 20px;
}

.modal-animation-in {
    animation: modal-animation-in-left 0.8s both;
}

.modal-header,
.modal-footer {
    background-color: var(--header-bg);
}

#toggleBtn1,
#toggleBtn2 {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="black"><path  d="M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"/></svg>');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: right 10px center;
}

#toggleBtn1:hover,
#toggleBtn2:hover {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" fill="white"><path  d="M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"/></svg>');
}

#toggleBtn1.show,
#toggleBtn2.show {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" fill="black"><path d="M96 320C96 302.3 110.3 288 128 288L512 288C529.7 288 544 302.3 544 320C544 337.7 529.7 352 512 352L128 352C110.3 352 96 337.7 96 320z"/></svg>');
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: all;
}

#toggleBtn1.show:hover,
#toggleBtn2.show:hover {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640" fill="white"><path d="M96 320C96 302.3 110.3 288 128 288L512 288C529.7 288 544 302.3 544 320C544 337.7 529.7 352 512 352L128 352C110.3 352 96 337.7 96 320z"/></svg>');
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-right: 20px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.collapse-content {
    max-height: 0;
    overflow: hidden;
    /* transition: max-height 0.5s ease-in-out; */
}

.collapse-content.show {
    border-bottom: 1px solid var(--header-bg);
    border-top: 1px solid var(--header-bg);
    max-height: 1000px;
    transition: max-height 0.5s ease-in-out;
}

.logout,
.login {
    position: absolute;
    bottom: 0;
    width: 30%;
}

@keyframes modal-animation-in-left {
    0% {
        transform: translateX(-900px);
        animation-timing-function: ease-in;
        opacity: 1;
    }

    24% {
        opacity: 1;
    }

    40% {
        transform: translateX(-300px);
        animation-timing-function: ease-in;
    }

    65% {
        transform: translateX(-150px);
        animation-timing-function: ease-in;
    }

    82% {
        transform: translateX(-75px);
        animation-timing-function: ease-in;
    }

    93% {
        transform: translateX(-37px);
        animation-timing-function: ease-in;
    }

    25%,
    55%,
    75%,
    87%,
    98% {
        transform: translateX(0px);
        animation-timing-function: ease-out;
    }

    100% {
        transform: translateX(0px);
        animation-timing-function: ease-out;
        opacity: 1;
    }
}

.container {
    width: 100%;
    margin: 0 20px;
    padding: 20px;
}

.jumbo {
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--text-color);
    margin: 0 20px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--brand-hue);
    box-shadow: 0 2.8px 2.2px hsl(var(--surface-shadow)/ calc(var(--shadow-strength) + .03)), 0 6.7px 5.3px hsl(var(--surface-shadow)/ calc(var(--shadow-strength) + .01)), 0 12.5px 10px hsl(var(--surface-shadow)/ calc(var(--shadow-strength) + .02)), 0 22.3px 17.9px hsl(var(--surface-shadow)/ calc(var(--shadow-strength) + .02)), 0 41.8px 33.4px hsl(var(--surface-shadow)/ calc(var(--shadow-strength) + .03)), 0 100px 80px hsl(var(--surface-shadow) / var(--shadow-strength));
}

.row {
    margin-left: 0px !important;
    margin-right: 0px !important;
    margin-top: 20px !important;
}

.col-sm-4 {
    padding: 0% !important;
    margin: 0% !important;
}

#Id,
#Vehiculo\ id,
#fecha,
.marca-agua-imagen {
    display: none;
}

tr:hover {
    background-color: var(--header-bg);
    cursor: pointer;
    transition: all 0.3s ease;
}

@media print {
    @page {
        size: auto;
        /* auto, portrait, landscape, o tamaño específico A4, Letter */
        margin: 15mm;
        /* Márgenes físicos de la página */
    }

    body,
    .container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    body {
        height: auto;
        font-size: 12pt;
        line-height: 1;
    }

    table,
    img,
    div {
        break-inside: avoid;
    }

    #ModalNav,
    hr,
    .header,
    .footer,
    .btn {
        display: none !important;
    }

    .marca-agua-imagen {
        display: grid;
        position: absolute;
        top: 40%;
        left: 50%;
        transform: translate(-50%, -50%);
        opacity: 0.2;
        pointer-events: none;
        width: 80%;
        z-index: 1;
    }

    #encabezadoDetalle,
    #fecha {
        display: flex;
    }

    #fecha_actual {
        border: none;
        background-color: transparent;
    }

    .row {
        width: 100vh;
    }

    .col-md-2 {
        width: 20%;
    }

    .col-md-5 {
        width: 40%;
    }

    .col-md-1 {
        width: 0;
    }

    .col-md-3 {
        width: 25%;
    }

    #ventas,
    #facturacion,
    .btn,
    .navbar,
    #div_ordenes {
        display: none;
    }

    .form-control,
    .input-group,
    .input-group-text,
    #facturacion_vehiculo,
    #tabla_servicios {
        border: var(--bs-border-width) transparent;

    }

    .input-group {
        padding: 0;
    }

    /* Para navegadores basados en WebKit (Chrome, Safari, Edge, Opera) */
    input[type=number]::-webkit-inner-spin-button,
    input[type=number]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        /* Oculta las flechas */
        margin: 0;
        /* Opcional: para eliminar espacio extra */
    }

    /* Alternativa para ocultar completamente (puede afectar el scroll) */
    input[type=number] {
        appearance: textfield;
        /* Para Firefox */
    }

    hr {
        display: block;
        height: 3px;
        background: black;
        border: none;
        border-top: solid 3px black;
    }
}


#id_vin {
    text-transform: uppercase;
}

#id_nombre,
#id_marca,
#id_modelo {
    text-transform: capitalize;
}

#id_username,
#id_password {
    text-transform: lowercase !important;
}

.textarea-oculto {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

option {
    font-family: 'VW Head';
}

input[type="text"],
textarea[type="text"] {
    text-transform: capitalize;
}


.sk-chase {
    width: 40px;
    height: 40px;
    position: relative;
    animation: sk-chase 2.5s infinite linear both;
}

.sk-chase-dot {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    animation: sk-chase-dot 2.0s infinite ease-in-out both;
}

.sk-chase-dot:before {
    content: '';
    display: block;
    width: 25%;
    height: 25%;
    background-color: #fff;
    border-radius: 100%;
    animation: sk-chase-dot-before 2.0s infinite ease-in-out both;
}

.sk-chase-dot:nth-child(1) {
    animation-delay: -1.1s;
}

.sk-chase-dot:nth-child(2) {
    animation-delay: -1.0s;
}

.sk-chase-dot:nth-child(3) {
    animation-delay: -0.9s;
}

.sk-chase-dot:nth-child(4) {
    animation-delay: -0.8s;
}

.sk-chase-dot:nth-child(5) {
    animation-delay: -0.7s;
}

.sk-chase-dot:nth-child(6) {
    animation-delay: -0.6s;
}

.sk-chase-dot:nth-child(1):before {
    animation-delay: -1.1s;
}

.sk-chase-dot:nth-child(2):before {
    animation-delay: -1.0s;
}

.sk-chase-dot:nth-child(3):before {
    animation-delay: -0.9s;
}

.sk-chase-dot:nth-child(4):before {
    animation-delay: -0.8s;
}

.sk-chase-dot:nth-child(5):before {
    animation-delay: -0.7s;
}

.sk-chase-dot:nth-child(6):before {
    animation-delay: -0.6s;
}

@keyframes sk-chase {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot {

    80%,
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sk-chase-dot-before {
    50% {
        transform: scale(0.4);
    }

    100%,
    0% {
        transform: scale(1.0);
    }
}