@font-face {
    font-family: NeueHaasUnica-Regular;
    src: url("/fonts/NeueHaasUnica-Regular.ttf") format("truetype"), url("/fonts/NeueHaasUnica-Regular.woff") format("woff"), url("/fonts/NeueHaasUnica-Regular.otf") format("opentype"), url("/fonts/NeueHaasUnica-Regular.svg") format("svg");
}

@font-face {
    font-family: NeueHaasUnica-Bold;
    src: url("/fonts/NeueHaasUnica-Bold.ttf") format("truetype"), url("/fonts/NeueHaasUnica-Bold.woff") format("woff"), url("/fonts/NeueHaasUnica-Bold.otf") format("opentype"), url("/fonts/NeueHaasUnica-Bold.svg") format("svg");
}

@font-face {
    font-family: NeueHaasUnica-Light;
    src: url("/fonts/NeueHaasUnica-Light.ttf") format("truetype"), url("/fonts/NeueHaasUnica-Light.woff") format("woff"), url("/fonts/NeueHaasUnica-Light.otf") format("opentype"), url("/fonts/NeueHaasUnica-Light.svg") format("svg");
}

@font-face {
    font-family: NeueHaasUnica-Thin;
    src: url("/fonts/NeueHaasUnica-Thin.ttf") format("truetype"), url("/fonts/NeueHaasUnica-Thin.woff") format("woff"), url("/fonts/NeueHaasUnica-Thin.otf") format("opentype"), url("/fonts/NeueHaasUnica-Thin.svg") format("svg");
}

html, body {
    font-family: 'NeueHaasUnica-light', Helvetica, Arial, sans-serif;
    color: #464d53;
}

*, *::before, *::after {
    box-sizing: inherit;
}

canvas {
    display: none;
}

.content {
    background-color: #fbfbfb;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #6432CB;
    border: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: none;
}

.content {
    padding-top: 1.1rem;
}

.row {
    margin-left: 0px;
    margin-right: 0px;
}

h1:focus {
    outline: none;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml; base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA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EgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

body {
    min-height: 100vh;
    font-size: 20px;
}

.validate-input input {
    outline: none;
    border: none;
}

.logo_scanner {
    text-align: center;
}

    .logo_scanner img {
        background-repeat: no-repeat;
        width: 60%;
        max-width: 250px;
    }

.header_logo {
    max-height: 26px;
    margin-right: 10px;
    vertical-align: baseline;
    position: relative;
    top: 1px;
}

.formulari_login {
    position: relative;
}

    .formulari_login form {
        max-width: 350px;
        margin: auto;
    }

.form-control_login {
    color: #555555;
    line-height: 1.2;
    display: block;
    width: 100%;
    height: 45px;
    background-color: transparent;
    padding: 0 5px;
}

.camp_form {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #D5DEEB;
    margin-bottom: 30px;
}

    .camp_form input {
        outline: none;
        border: none;
    }

.wrap-input100 {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #D5DEEB;
    margin-bottom: 30px;
}

.input100 {
    line-height: 1.2;
    display: block;
    width: 100%;
    height: 45px;
    background-color: transparent;
    padding: 0 5px;
    font-size: 20px;
}

.focus-input100 {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

    .focus-input100::before {
        content: "";
        display: block;
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 1px;
        -webkit-transition: all 0.4s;
        -o-transition: all 0.4s;
        -moz-transition: all 0.4s;
        transition: all 0.4s;
        background-color: #6432CB;
        letter-spacing: 2px;
    }

    .focus-input100::after {
        line-height: 1.2;
        content: attr(data-placeholder);
        display: block;
        width: 100%;
        position: absolute;
        top: 16px;
        left: 0px;
        padding-left: 5px;
        -webkit-transition: all 0.4s;
        -o-transition: all 0.4s;
        -moz-transition: all 0.4s;
        transition: all 0.4s;
        letter-spacing: 2px;
    }

.input100:focus + .focus-input100::after {
    top: -15px;
}

.input100:focus + .focus-input100::before {
    width: 100%;
}

.has-val.input100 + .focus-input100::after {
    top: -15px;
}

.has-val.input100 + .focus-input100::before {
    width: 100%;
}

.formulari_login button, #ctnPagina button, #ctnQuagga button, .dialog button {   
    padding: 5px;
    border: none;
    transition: all 0.4s;
    font-family: 'NeueHaasUnica-bold', Helvetica, Arial, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
}

    .formulari_login button:hover, #ctnQuagga button:hover, .dialog button:hover {
        background-color: #8C6BCE;
        transition: all 0.4s;
    }

    #ctnPagina button:hover, .stats_button .btn-primary:hover, #ctnPagina .special_button:hover {
        background-color: #ffffff;
        transition: all 0.4s;
        color: #8C6BCE;
    }

#ctnPagina .una_linea button:hover {
    background-color: transparent;
    color: #8C6BCE;
}

#ctnPagina .special_button {
    width: auto;
    padding: 5px 0px 5px 12px;
    margin-bottom: 0px;
    margin-left: auto;
    color: #6432CB;
    background-color: transparent;
}

.scan_manual {
    height: 40px;
}

#ctnPagina .special_button_footer {
    width:43px;
    color: #6432CB;
    background-color: transparent;
    margin-top: 0px;
    margin-bottom: 0px;
}

.text_center {
    text-align: center;
}

.text-danger {
    color: #ff746C !important;
    text-align: center;
    font-weight: bold;
}

.versio {
    position: fixed;
    bottom: 0px;
    right: 1rem;
    font-size: 12px;
}

#blazor-error-ui {
    max-width: 250px;
    left: 15px;
    position: fixed;
    bottom: 0px;
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.logo_scanner {
    opacity: 1;
    animation: fadeIn .5s ease-in-out;
}

.logo_scanner {
    opacity: 0;
    animation: showDiv .0s ease-in forwards;
}

@keyframes showDiv {
    to {
        opacity: 1;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 1100;
}

.dialog {
    padding: 10px 20px 10px 20px;
    text-align: center;
    background: #F6F2FF;
    -webkit-border-top-left-radius: 8px;
    -webkit-border-top-right-radius: 8px;
    -moz-border-radius-topleft: 8px;
    -moz-border-radius-topright: 8px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border: none;
    height: 12vh;
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    animation: slideUp 0.3s ease-out forwards;
    width: 100%;
}

@keyframes slideUp {
    0% {
        transform: translate(-50%, 100%);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, 0%);
        opacity: 1;
    }
}

.dialog button {
    width: 40%;
    margin-top: 0.5rem;
    margin-right: 10px;
    margin-left: 10px;
}

.stats_button button {
    margin-top: 0.25rem;
    padding-right: 0px;
    padding-left: 0px;
    width: 60px;
    color: #6432CB;
    background-color: transparent;
}

#iptCodigo {
    width: 75%;
    line-height: 30px;
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #6432CB33;
    background-color: #ffffff;
    font-size: 20px;
    margin-right: 10px;
}

.quagga-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

    .quagga-container canvas, .quagga-container video {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

.scan-line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: red;
    transform: translateY(-1px);
    z-index: 5;
}

.top-central {
    background-color: #F6F2FF;
    position: fixed;
    right: 0;
    top: 0;
    left: 0;
    z-index: 1030;
    border-bottom: solid 1px #e3e3e33d;
}

.scroll-central {
    flex: 1;
    padding-top: 160px;   
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.sub-top-central, .stats_top_central {
    margin: 10px 15px 10px 15px;
}

.stats_central {
    padding-top: 120px;
}




.login_screen .btn-primary, .dialog .btn-primary, .dialog .btn-secondary {
    width: 140px;
    padding: 15px 0px;
}

.fixed-bottom {
    height: 92px;
    background-color: #F6F2FF;
    border-top: solid 1px #e3e3e33d;
    padding: 5px 15px 0px 15px;
}

.stats_button {
    height: 92px;
    text-align: center;
}

.una_linea {
    font-family: monospace;
    display: flex;
    flex-wrap: wrap;
    font-size: 16px;
    border-bottom: 2px dashed #8C6BCE;
    font-weight: bold;
    line-height: 20px;
    scroll-snap-align: start;
    margin-left: 15px;
    margin-right: 15px;
}

    .una_linea button {
        width: auto !important;
        background-color: transparent;
        color: #6432CB;
        margin-bottom: 0px !important;
        padding: 0px 0px 0px 20px!important     
    }

.totales {
    font-weight: bold;
}

.espai_final_ticket {
    height: 125px;
}

.selector_dia div {
    width: 50%;
}
.selector_dia_left {max-width: 175px;}
.selector_dia_left .stats_date {line-height: 21px;}
.selector_dia_right {
    text-align: right;
    padding-top: 7px;
}
.selector_dia_right input {max-width: 135px;}
.ir-arriba {
    display: none;
    padding: 10px;
    background: transparent;
    font-size: 20px;
    color: #6432CB;
    cursor: pointer;
    position: fixed;
    bottom: 95px;
    right: 5px;
    -webkit-border-radius: 35px;
    -moz-border-radius: 35px;
    border-radius: 35px;
    z-index: 99;
}

    .ir-arriba:after {
        content: "\f062";
        font-family: "FontAwesome";
    }

.page-wrapper {
    position: relative;
    overflow: hidden;
}

.page-content {
    position: relative;
    width: 100%;
}

.slide-in {
    animation: slideIn 0.4s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
}

/* Pantalla de carga inicial */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-in-out;
}

    .loading-screen.fade-out {
        opacity: 0;
        pointer-events: none;
    }


/* Logo opcional */
.loading-logo {
    width: 120px;
    margin-bottom: 20px;
}

/* Spinner circular */
.spinner {
    width: 3rem;
    height: 3rem;
    border: 0.4rem solid #ccc;
    border-top: 0.4rem solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animación de giro */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

