﻿html {
    font-size: 14px;
}

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

[v-cloak] {
    display: none;
}

.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;*/
}

#ovr {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; 
    z-index: 9999;
}

#ovr.overlay-active {
    background-color: rgba(0, 0, 0, 0.3);
    pointer-events: all; 
}


.spinner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.loader {
    border: 8px solid #f3f3f3;
    /* Light grey */
    border-top: 8px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

.custom-file {
    position: relative;
    display: inline-block;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    margin-bottom: 0
}

.custom-file-input {
    position: relative;
    z-index: 2;
    width: 100%;
    height: calc(1.5em + .75rem + 2px);
    margin: 0;
    opacity: 0
}

    .custom-file-input:focus ~ .custom-file-label {
        border-color: #528dff;
        box-shadow: 0 0 0 .2rem rgba(31, 107, 255, .25)
    }

    .custom-file-input:disabled ~ .custom-file-label,
    .custom-file-input[disabled] ~ .custom-file-label {
        background-color: #dae0ec
    }

    .custom-file-input:lang(en) ~ .custom-file-label::after {
        content: "Browse"
    }

    .custom-file-input ~ .custom-file-label[data-browse]::after {
        content: attr(data-browse)
    }

.custom-file-label {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #3c4e71;
    background-color: #fff;
    border: 1px solid #c9d2e3;
    border-radius: 6px
}

    .custom-file-label::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 3;
        display: block;
        height: calc(1.5em + .75rem);
        padding: .375rem .75rem;
        line-height: 1.5;
        color: #3c4e71;
        content: "Browse";
        background-color: #dae0ec;
        border-left: inherit;
        border-radius: 0 6px 6px 0
    }

.mt-20px {
    margin-top: 20px;
}

.source-ajww {
    background-color: #ffcccc !important;
}

.source-shiphero {
    background-color: #ffe0b3 !important;
}

.selector {
    font-size: 20px;
}

.warehouse-wrapper {
    display: flex;
}

.level-labels {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    padding: 0 10px;
    font-weight: bold;
    margin-top: 50px;
    margin-bottom: 40px;
    position: sticky;
    left: 0;
    z-index: 10;
    background: white;
}

.level-label {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .level-label.last {
        height: 210px;
    }

.warehouse-column {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: auto;
}

.bay-numbers {
    border-left: 6px solid #f0f2f5;
    border-right: 6px solid #f0f2f5;
    margin-right: 4px;
    display: flex;
    flex-direction: column-reverse;
}

.bay-number {
    width: 160px;
    height: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #000;
    border: 1px solid #f0f2f5;
    position: relative;
}

.bay-level {
    display: flex;
    border-top: 6px solid #f0f2f5;
    padding: 0 10px 0 10px;
    align-items: center;
    justify-content: space-evenly;
}

    .bay-level .bay-number:first-child {
        margin-right: 10px;
    }

.warehouse {
    display: flex;
    padding: 0 0 10px 0;
}

.rack {
    border-left: 6px solid #004A99;
    border-right: 6px solid #004A99;
    margin-right: 4px;
    display: flex;
    flex-direction: column-reverse;
    background-color: #fff;
}

.level {
    display: flex;
    border-top: 6px solid #FF5722;
    padding: 10px 10px 0 10px;
    align-items: center;
    justify-content: space-evenly;
}

.pallet {
    width: 260px;
    height: 45px;
    background-color: #D6A86E;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #000;
    border: 1px solid #8B5A2B;
    position: relative;
    cursor: pointer;
}

    .pallet.empty {
        /*cursor: initial;*/
        background-color: #EEE;
        border: 1px dashed #CCC;
        color: #888;
    }

    .pallet.bin {
        height: 250px;
    }

    .pallet:hover {
        background-color: #c29090;
    }

        .pallet:hover .tooltip {
            display: block;
            opacity: 1;
        }

.level .pallet:first-child {
    margin-right: 10px;
}

.tooltip {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 8px;
    font-size: 15px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    display: none;
    opacity: 0;
    transition: 0.2s;
}

.columns {
    display: flex;
}

.column {
    margin: 0 2px;
}

.cell {
    width: 40px;
    height: 30px;
    margin: 2px;
    background-color: white;
    border: 1px solid #333;
    text-align: center;
    line-height: 30px;
    font-size: 14px;
    position: relative;
}

    .cell .info {
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(0, 0, 0, 0.75);
        color: #fff;
        padding: 5px 8px;
        font-size: 15px;
        border-radius: 4px;
        white-space: nowrap;
        z-index: 10;
        display: none;
        opacity: 0;
        transition: 0.2s;
    }

    .cell.active {
        background-color: #D6A86E;
    }

        .cell.active:hover .info {
            display: block;
            opacity: 1;
        }

    .cell:hover {
        background-color: #c29090 !important;
    }

.pallet {
    border: 1px solid #8B5A2B;
    opacity: 1;
}

    .pallet.empty {
        border: 1px dashed #CCC;
    }

    .pallet.matched {
        border: 1px solid #4CAF50;
        opacity: 1;
    }

    .pallet.dimmed {
        opacity: 0.2;
        border: 1px solid #DDD;
    }

    .pallet.onlyAjww {
        background-color: #BDBDBD;
    }

.cell.matched {
    border: 1px solid #4CAF50;
    opacity: 1;
}

.cell.dimmed {
    opacity: 0.2;
    border: 1px solid #DDD;
}

.dimmed:has(.matched) {
    border: 1px solid #4CAF50;
    opacity: 1;
}

.search-bar {
    margin: 0px 0px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: white;
    padding: 10px 0px;
}

.signature {
    width: 100%;
    height: 100%;
    border: 2px dotted #CCCCCC;
    border-radius: 15px;
    cursor: crosshair;
}

.modal.fade.tablet.show {
    display: block !important;
}

.cursor-pointer {
    cursor: pointer;
}


.select2-container--default .select2-selection--single {
    width: 100%;
    height: 35px;
    border: 1px solid #c9d2e3;
    border-radius: 6px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered { 
    padding-top: 3px;
}
.select2-container {
    width: 100% !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 4px;
}
.default-color .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #869ac1 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
}

.toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    user-select: none;
  }
  
  .toggle-checkbox {
    display: none;
  }
  
  .toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background-color: #ccc;
    border-radius: 13px;
    transition: background-color 0.3s;
    cursor: pointer;
  }
  
  .toggle-switch::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    top: 2px;
    left: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
  }
  
  .toggle-checkbox:checked + .toggle-switch {
    background-color: #4caf50;
  }
  
  .toggle-checkbox:checked + .toggle-switch::before {
    transform: translateX(24px);
  }

  .progress-container {
    position: fixed !important;
    top: calc(50% + 100px);
    left: calc(50% - 150px);
    width: 300px;
    height: 25px;
    background-color: #eee;
    z-index: 999;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #4caf50;
    transition: width 0.3s;
}

.progress-text {
    position: absolute;
    width: 100%;
    text-align: center;
    top: 0;
    line-height: 25px;
    color: #000;
}

.pallet-image {
    border: solid 1px #999;
    width: 80px;
    overflow: hidden;
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 45%;
    font-weight: normal;
    float: left;
    min-height: 85px !important;
    text-align: center;
}

.pallet-video video{
    width: 100%;
    height: 100%;
}

.pallet-video {
    border: solid 1px #999;
    width: 250px;
    overflow: hidden;
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 45%;
    font-weight: normal;
    float: left;
    min-height: 85px !important;
    text-align: center;
}

.pallet-image img {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: .3s ease-in-out;
    transition: .3s ease-in-out;
}

.pallet-image:hover img {
    -webkit-transform: scale(2);
    transform: scale(2);
}

.required::after {
    content: " *";
    color: red;
}

.select2-results__option {
    white-space: nowrap;
}

.select2-container--default .select2-results > .select2-results__options {
    display: table;
    width: auto !important;
    min-width: 100%;
}
.select2-dropdown {
    width: auto !important;
}

.select2-dropdown {
    max-height: 350px; 
    overflow-y: auto;  
}

.ekko-lightbox .modal-footer {
    text-align: center;
    justify-content: center;
}
