﻿@import "colors.min.css";
@import "buttons.min.css";
@import "fonts.min.css";
@import "access.min.css";
@import "main-screen.min.css";
@import "custom-inputs.min.css";

* {
    font-family: var(--font-family-fira-Light);
}

html {
    height: 100%;
}

main {
    height: 100%;
}

body {
    padding-left: 0;
    padding-right: 0 !important;
    height: 100%;
    overscroll-behavior-y: contain; /* Prevent pull to refresh */
    display: none; /* Ocultar contenido mientras cargan los iconos de font-awesome */
    /*height: 100vh;
    overflow-y: hidden;*/
}

.fontawesome-i2svg-active body {
    display: initial; /* Mostrar contenido cuando se hayan cargado los iconos */
}

.body-content {
    padding-left: 0;
    padding-right: 0;
    /*display: flex;
    flex-direction: column;*/
    justify-content: center;
    /*max-height: 100vh;*/
    height: calc(100% - 55px);
}

.bg-main-screen {
    background-image: url('../images/fondo-login.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.text-main {
    color: var(--main-color);
}

.text-sec {
    color: var(--secondary-color);
}

.text-bold {
    font-family: var(--font-family-fira-ExtraBold);
}

.bg-main {
    background: var(--main-color);
}

.bg-sec {
    background: var(--secondary-color);
}

.bg-alt {
    background: var(--alt-secondary-color);
}

#main-header {
    height: 55px;
    max-height: 55px;
    z-index: 3;
}

#header-logo {
    height: 50px;
}

#user-info-header {
    right: 0;
}

#footer {
    bottom: 0;
    height: 50px;
    display: none;
    border-top: 2px solid var(--primary) !important
}

.radius-0 {
    border-radius: 0;
}

.radius-25 {
    border-radius: 25px;
}

.w-85 {
    width: 85% !important;
}

.scan-main-div {
    position: relative;
    top: 0;
}

.fixed-top-0 {
    position: fixed;
    top: 0;
}

.btn-group a.btn {
    cursor: pointer;
}

.custom-modal {
    color: black;
    padding: 0px !important;
    font-size: 0.8rem;
}

.custom-header {
    background-color: rgb(0, 67, 137);
    color: white;
    font-size: 1.4rem;
    padding: 7px;
}

/* Chrome, Safari, Edge, Opera */
.custom_number_input::-webkit-outer-spin-button,
.custom_number_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.custom_number_input[type=number] {
    -moz-appearance: textfield;
}

[id$=_modal] {
    overscroll-behavior: none; /* Prevent pull to refresh */
    overflow: auto;
}

    [id$=_modal] .mCustomScrollbar {
        touch-action: manipulation;
    }


/* CUSTOM STYLES FOR SWEETALERT */
.swal2-container.swal2-backdrop-show {
    background: #1A1A1A90;
}
/* END CUSTOM STYLES FOR SWEETALERT */

/* CUSTOM STYLES FOR DATATABLES */
.dataTables_scrollBody {
    min-height: 30vh;
}

.dataTables_info {
    text-align: left;
}

.dataTables_length {
    padding-top: .7rem;
}

/*.dataTables_wrapper .dataTables_paginate .paginate_link {
    color: var(--main-color) !important;
}*/

.dt-container-view .dataTables_scrollBody {
    height: auto !important;
    max-height: 55vh;
}

.dataTables_wrapper .page-item.active .page-link {
    border-color: var(--main-color) !important;
    background: var(--main-color) !important;
    color: var(--alt-secondary-color) !important;
}

.dataTables_wrapper .page-link:focus {
    z-index: 2;
    outline: 0;
    box-shadow: 0 0 0 0.2rem var(--alt-secondary-color);
}

.dataTables_wrapper table tbody td:not(:last-child) {
    cursor: pointer;
}

.dataTables_wrapper table td,
.dataTables_wrapper table th {
    vertical-align: middle;
    padding: .5rem;
}

table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before, table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
    /*top: 11px;
    left: 5px;*/
    background-color: var(--main-color);
    left: -5px;
    border-radius: 0 10px 10px 0;
    top: 25%;
    height: 18px;
    width: 18px;
    line-height: 18px;
}

table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child {
    padding-left: 1.8rem;
}

table.dataTable > tbody > tr.child {
    text-align: left;
}

.table.dataTable > tbody > tr.child ul.dtr-details > li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: .5rem;
}

table.dataTable > tbody > tr.child ul.dtr-details {
    width: 100%;
}


.dataTables_info {
    font-size: .8rem;
    color: var(--alt-main-color);
    white-space: normal !important;
}

.dataTables_paginate {
    font-size: .8rem;
}

    .dataTables_paginate ul {
        flex-wrap: wrap;
        margin-top: .5rem !important;
    }

.page-link {
    color: var(--alt-main-color);
    font-weight: bold;
}

.dt-container-view {
    max-height: 90vh;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

    .dt-container-view .dropdown-menu a {
        font-weight: bold;
        color: var(--main-color);
    }

/* END CUSTOM STYLES FOR DATATABLES */
.scan-btn {
    width: 60px;
    height: 60px;
    background-color: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 3px 10px 0 #666;
    transition: transform .1s ease-in-out;
    color: white;
    text-align: center;
    line-height: 55px;
    position: fixed;
    right: 6px;
    bottom: 45px;
    z-index: 5;
    border: 2px solid var(--alt-secondary-color);
}

    .scan-btn:active,
    .scan-btn:hover {
        box-shadow: 0 3px 14px 0 #666;
        transform: scale(0.9);
        cursor: pointer;
    }

.photo-btn {
    width: 60px;
    height: 60px;
    background-color: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 3px 10px 0 #666;
    transition: transform .1s ease-in-out;
    color: white;
    text-align: center;
    line-height: 55px;
    position: fixed;
    left: 6px;
    bottom: 45px;
    z-index: 5;
    border: 2px solid var(--alt-secondary-color);
}

    .photo-btn:active,
    .photo-btn:hover {
        box-shadow: 0 3px 14px 0 #666;
        transform: scale(0.9);
        cursor: pointer;
    }

.float-btn-left {
    width: 60px;
    height: 60px;
    background-color: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 3px 10px 0 #666;
    /*transition: transform .1s ease-in-out;*/
    transition: all .1s ease-in-out;
    color: white;
    text-align: center;
    line-height: 55px;
    position: fixed;
    left: 6px;
    bottom: 45px;
    z-index: 5;
    border: 2px solid var(--alt-secondary-color);
}

    .float-btn-left:active,
    .float-btn-left:hover {
        box-shadow: 0 3px 14px 0 #666;
        transform: scale(0.9);
        cursor: pointer;
    }


.float-second-btn-right {
    width: 60px;
    height: 60px;
    background-color: var(--main-color);
    border-radius: 50%;
    box-shadow: 0 3px 10px 0 #666;
    /*transition: transform .1s ease-in-out;*/
    transition: all .1s ease-in-out;
    color: white;
    text-align: center;
    line-height: 55px;
    position: fixed;
    right: 5rem;
    bottom: 45px;
    z-index: 5;
    border: 2px solid var(--alt-secondary-color);
}

    .float-second-btn-right:active,
    .float-second-btn-right:hover {
        box-shadow: 0 3px 14px 0 #666;
        transform: scale(0.9);
        cursor: pointer;
    }


.float-btn-left-with-text {
    width: auto;
    height: 60px;
    padding-right: 1rem;
    padding-left: 1rem;
    background-color: var(--main-color);
    border-radius: 50px;
    box-shadow: 0 3px 10px 0 #666;
    /*transition: transform .1s ease-in-out;*/
    transition: all .1s ease-in-out;
    color: white;
    text-align: center;
    line-height: 55px;
    position: fixed;
    left: 6px;
    bottom: 45px;
    z-index: 5;
    border: 2px solid var(--alt-secondary-color);
}

    .float-btn-left-with-text:active,
    .float-btn-left-with-text:hover {
        box-shadow: 0 3px 14px 0 #666;
        transform: scale(0.9);
        cursor: pointer;
    }

.modal-form- {
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    max-height: 88vh;
    font-size: .8rem;
}

.no-text-indent {
    text-indent: 0 !important;
}

#btnPrintPicking {
    z-index: 1;
    /*top: 128px;*/
    top: 35px;
    left: 10px;
}

#access-options-btns button {
    width: 180px;
    height: 130px;
}

.nav-tabs .nav-link {
    transition: all .2s linear;
}

    .nav-tabs .nav-link.active {
        color: var(--alt-secondary-color);
        background-color: var(--main-color);
        border-color: var(--alt-secondary-color) var(--alt-secondary-color) var(--main-color);
        border-bottom: 3px solid var(--main-color);
    }

    .nav-tabs .nav-link:hover {
        border-bottom: 3px solid var(--main-color);
        transition: border-bottom .2s ease-in-out;
    }

.show-completed-lines-and-scan-express-chk .scan-express-div {
    position: absolute;
    top: 90px;
}

/*#region ---------------- MEDIA QUERIES ------------------ */
/* TABLET 10" */
@media only screen and (max-width: 960px) and (orientation: landscape) and (max-height: 600px) {
    main {
        position: absolute;
        height: calc(100% - 55px);
    }

    #main-header {
        font-size: .85rem;
        padding-left: 10px;
    }

    #header-logo {
        height: 40px;
    }

    #header_btn_back {
        /*left: -3%;*/
        z-index: 1;
    }

    /*.show-completed-lines-chk {
        position: relative;
        top: 50px;
    }*/

    .show-completed-lines-chk {
        position: absolute;
        top: 75px;
        left: 10px;
    }

    .show-completed-lines-and-scan-express-chk {
        position: absolute;
        top: 65px;
        left: 10px;
    }

        .show-completed-lines-and-scan-express-chk.active {
            top: 118px;
        }

        .show-completed-lines-and-scan-express-chk .scan-express-div {
            top: 20px;
        }

    .position-on-scroll {
        top: 0;
    }

    .dt-container-view {
        /*max-height: 70vh;*/
        padding-left: 0;
        padding-right: 0;
    }

        .dt-container-view .dropdown-menu a {
            font-weight: bold;
            color: var(--main-color);
            /*padding-left: .8rem;
            padding-right: .8rem;*/
            padding: .6rem 1rem;
        }

            .dt-container-view .dropdown-menu a > svg,
            .dt-container-view .dropdown-menu a > i {
                margin-right: .7rem;
                width: 1rem;
            }


        .dt-container-view .dropdown-toggle::after {
            content: none;
        }

        .dt-container-view .pagination {
            justify-content: center !important;
        }

        .dt-container-view .card {
            border: 0;
        }

        .dt-container-view .card-header:first-child {
            border-radius: 0;
        }

    table.dataTable .optionsMenuFixed {
        position: fixed !important;
        /*        top: 55% !important;*/
        left: 84% !important;
        transform: translate(-92%, -50%) !important;
    }

    /*.dataTables_wrapper .mCSB_container {
        overflow: visible;
    }

    .dataTables_wrapper .mCustomScrollBox {
        overflow: visible;
    }

    .dataTables_wrapper .dataTables_scrollBody {
        display: table;
    }*/

    table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before, table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
        top: 5%;
    }

    .scan-btn {
        bottom: 10px;
    }

    .float-btn-left-with-text {
        bottom: 10px;
    }

    .photo-btn {
        bottom: 10px;
    }

    .float-second-btn-right {
        bottom: 10px;
    }

    /*.scan-main-div .card-body {
        margin-top: -20px;
    }*/

    .card-body-position-top {
        top: 10px;
    }

    #btnPrintPicking {
        top: 30px;
        /*top: 102px;*/
    }
}
/* END TABLET 10" */

/* iPad */
@media only screen and (min-width: 961px) and (max-width: 1024px) and (orientation: landscape) and (max-height: 768px) {
    #main-header {
        font-size: .85rem;
        padding-left: 10px;
    }

    .body-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .dt-container-view {
        max-height: 80vh;
    }

    #header-logo {
        height: 45px;
    }

    #btnPrintPicking {
        z-index: 1;
        top: 30px;
    }
}
/* END iPad */

/* Monitores Full HD */
@media only screen and (min-width: 1180px) and (max-width: 1920px) and (max-height: 1079px) and (orientation: landscape) {
    .dt-container-view {
        max-height: 85vh;
    }

    .body-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    #btnPrintPicking {
        z-index: 1;
        top: 30px;
    }
}
/* END Monitores Full HD */

/* Monitores 2K+ */
@media only screen and (min-width: 1921px) {
    #main-header {
        padding-left: 10px;
    }

    .body-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .dt-container-view {
        max-height: 90vh;
    }

    /* Custom Margins */
    .mt-xxl-0 {
        margin-top: 0 !important;
    }

    .mt-xxl-1 {
        margin-top: .25rem !important;
    }

    .mt-xxl-2 {
        margin-top: .5rem !important;
    }

    .mt-xxl-3 {
        margin-top: 1rem !important;
    }

    .mt-xxl-4 {
        margin-top: 1.5rem !important;
    }

    .mt-xxl-5 {
        margin-top: 3rem !important;
    }

    .mb-xxl-0 {
        margin-bottom: 0 !important;
    }

    .mb-xxl-1 {
        margin-bottom: .25rem !important;
    }

    .mb-xxl-2 {
        margin-bottom: .5rem !important;
    }

    .mb-xxl-3 {
        margin-bottom: 1rem !important;
    }

    .mb-xxl-4 {
        margin-bottom: 1.5rem !important;
    }

    .mb-xxl-5 {
        margin-bottom: 3rem !important;
    }

    .mr-xxl-0 {
        margin-right: 0 !important;
    }

    .mr-xxl-1 {
        margin-right: .25rem !important;
    }

    .mr-xxl-2 {
        margin-right: .5rem !important;
    }

    .mr-xxl-3 {
        margin-right: 1rem !important;
    }

    .mr-xxl-4 {
        margin-right: 1.5rem !important;
    }

    .mr-xxl-5 {
        margin-right: 3rem !important;
    }

    .ml-xxl-0 {
        margin-left: 0 !important;
    }

    .ml-xxl-1 {
        margin-left: .25rem !important;
    }

    .ml-xxl-2 {
        margin-left: .5rem !important;
    }

    .ml-xxl-3 {
        margin-left: 1rem !important;
    }

    .ml-xxl-4 {
        margin-left: 1.5rem !important;
    }

    .ml-xxl-5 {
        margin-left: 3rem !important;
    }

    .my-xxl-0 {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
    }

    .my-xxl-1 {
        margin-bottom: .25rem !important;
        margin-top: .25rem !important;
    }

    .my-xxl-2 {
        margin-bottom: .5rem !important;
        margin-top: .5rem !important;
    }

    .my-xxl-3 {
        margin-bottom: 1rem !important;
        margin-top: 1rem !important;
    }

    .my-xxl-4 {
        margin-bottom: 1.5rem !important;
        margin-top: 1.5rem !important;
    }

    .my-xxl-5 {
        margin-bottom: 3rem !important;
        margin-top: 3rem !important;
    }

    .mx-xxl-0 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mx-xxl-1 {
        margin-left: .25rem !important;
        margin-right: .25rem !important;
    }

    .mx-xxl-2 {
        margin-left: .5rem !important;
        margin-right: .5rem !important;
    }

    .mx-xxl-3 {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    .mx-xxl-4 {
        margin-left: 1.5rem !important;
        margin-right: 1.5rem !important;
    }

    .mx-xxl-5 {
        margin-left: 3rem !important;
        margin-right: 3rem !important;
    }

    /* END Custom Margins */
}
/* END Monitores 2K+ */

/* Dispositivos orientación vertical */
@media only screen and (orientation: portrait) {
    #btnPrintPicking {
        top: 30px;
    }
}

@media only screen and (orientation: portrait) and (max-width: 600px) {
    main {
        position: absolute;
        height: calc(100% - 55px);
    }

    #header-logo {
        height: 45px;
    }

    .body-content {
        padding-left: 0;
        padding-right: 0;
    }

    .dt-container-view {
        margin: 0;
        padding-left: 0;
        padding-right: 0;
        max-height: 100%;
        font-size: .8rem;
    }

    #header_btn_back {
        left: -3%;
        z-index: 1;
    }

    #language_selector {
        left: 8%;
    }

    .show-completed-lines-chk {
        position: absolute;
        top: 71px;
        left: 7px;
        max-width: 50%;
    }

    .show-completed-lines-and-scan-express-chk {
        position: absolute;
        top: 63px;
        left: 7px;
        max-width: 50%;
    }

        .show-completed-lines-and-scan-express-chk .scan-express-div {
            top: 2px;
            position: relative;
        }

            .show-completed-lines-and-scan-express-chk.active {
                top: 118px;
            }

    .position-on-scroll {
        position: absolute;
        top: 15px;
        left: 10px;
    }

    .dt-container-view .card {
        border: 0;
    }

    .dt-container-view .card-header {
        border-radius: 0;
    }

    .dt-container-view .card-header {
        position: absolute;
        /*position: fixed;*/
        z-index: 1;
    }

    .dt-container-view .card-body:not(.card-product-list):not(.card-batch-list):not(.card-package-list) {
        /*margin-top: 132px;*/
        margin-top: 56px;
    }

    .dt-container-view .card-product-list {
        margin-top: 60px;
    }


    .dt-container-view .card-batch-list {
        margin-top: 80px;
    }

    .dt-container-view .dataTables_scrollBody {
        /*height: 35vh !important;*/
        max-height: 57vh;
    }

    /*.dt-container-view .datatables_scroll {
            width: fit-content;
        }*/

    .dt-container-view .dropdown-menu a {
        font-weight: bold;
        color: var(--main-color);
        /*padding-left: .8rem;
            padding-right: .8rem;*/
        padding: .6rem 1rem;
    }

        .dt-container-view .dropdown-menu a > svg,
        .dt-container-view .dropdown-menu a > i {
            margin-right: .7rem;
            width: 1rem;
        }

    table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > td:first-child:before, table.dataTable.dtr-inline.collapsed > tbody > tr[role="row"] > th:first-child:before {
        top: 5%;
    }


    .dt-container-view .dropdown-toggle::after {
        content: none;
    }

    .dt-container-view .pagination {
        justify-content: center !important;
    }

    #dt_priority_column,
    .dt_priority_column {
        padding: 0 6px;
        max-width: 1rem;
        text-align: center;
    }

    table.dataTable .optionsMenuFixed {
        position: fixed !important;
        /*top: 40% !important;*/
        left: 90% !important;
        transform: translate(-92%, -26%) !important;
    }

    .orderDetailHeader {
        margin-top: 130px;
    }

    .scan-btn {
        bottom: 10px;
    }

    .float-btn-left-with-text {
        bottom: 10px;
    }

    .photo-btn {
        bottom: 10px;
    }

    .float-second-btn-right {
        bottom: 10px;
    }

    #btnPrintPicking {
        /*top: 110px;*/
        top: 30px;
        left: 10px;
    }
}


@media only screen and (orientation: portrait) and (min-width: 1024px) {
    .body-content {
        padding-left: 0;
        padding-right: 0;
    }

    .dt-container-view {
        margin: 0;
    }
}

@media only screen and (max-device-width : 640px) and (min-device-width : 360px) and (orientation : portrait) {
    .cardBodyBatch {
        flex: 1 1 auto;
        padding: 1.25rem;
        margin-top: 70px !important;
    }
}

@media only screen and (max-device-width : 640px) and (min-device-width : 360px) and (orientation : landscape) {
    .cardBodyBatch {
        flex: 1 1 auto;
        padding: 1.25rem;
        margin-top: 0px !important;
    }
}
/* END Dispositivos orientación vertical */

/*#endregion ---------------- END MEDIA QUERIES ------------------ */
