:root {
    --main-bg-color: #202634;
    --main-bg-color-light: #293042;
}

html {
    font-size: 14px;
    scrollbar-width: thin !important
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    overflow-y: auto;
    scrollbar-width: thin !important
}

div#tableLots_paginate {
    margin-left: auto !important
}

footer {
    position: unset !important
}

.align-center {
    align-items: center;
}

.bottom {
    display: flex
}

.border-dotted {
    border-style: dotted !important;
}

.custom-modal {
    background-color: #181d28;
    bottom: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    left: 50%;
    max-height: 100%;
    opacity: 0;
    overflow-y: auto;
    padding: 20px;
    position: fixed;
    right: auto;
    transform: translate(-50%, -50%);
    transition: visibility 0s linear 0.4s, opacity 0.4s ease;
    visibility: hidden;
    z-index: 1050;
}

    .custom-modal.show {
        opacity: 1;
        transition-delay: 0s;
        visibility: visible;
    }

.cursor-pointer {
    cursor: pointer
}

.lot-table-action:hover {
    text-decoration: none;
    color: white !important;
    transition: color 0.2s;
}

.lot-table-action {
    transition: color 0.2s;
}

.loading-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
}

.loading-spinner {
    border: 4px solid rgba(0,0,0,.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.lot-image:hover, .lot-image-add:hover, .lot-image-add.hovered, .added-image:hover {
    transform: scale(1.05);
    transition: transform 0.2s, border-color 0.2s;
}

.lot-image, .lot-image-add, .added-image {
    transition: all 0.2s;
}

.lot-image-add {
    height: 144px;
    width: 144px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" fill="white" class="bi bi-plus-circle-dotted" viewBox="0 0 16 16"><path d="M8 0q-.264 0-.523.017l.064.998a7 7 0 0 1 .918 0l.064-.998A8 8 0 0 0 8 0M6.44.152q-.52.104-1.012.27l.321.948q.43-.147.884-.237L6.44.153zm4.132.271a8 8 0 0 0-1.011-.27l-.194.98q.453.09.884.237zm1.873.925a8 8 0 0 0-.906-.524l-.443.896q.413.205.793.459zM4.46.824q-.471.233-.905.524l.556.83a7 7 0 0 1 .793-.458zM2.725 1.985q-.394.346-.74.74l.752.66q.303-.345.648-.648zm11.29.74a8 8 0 0 0-.74-.74l-.66.752q.346.303.648.648zm1.161 1.735a8 8 0 0 0-.524-.905l-.83.556q.254.38.458.793l.896-.443zM1.348 3.555q-.292.433-.524.906l.896.443q.205-.413.459-.793zM.423 5.428a8 8 0 0 0-.27 1.011l.98.194q.09-.453.237-.884zM15.848 6.44a8 8 0 0 0-.27-1.012l-.948.321q.147.43.237.884zM.017 7.477a8 8 0 0 0 0 1.046l.998-.064a7 7 0 0 1 0-.918zM16 8a8 8 0 0 0-.017-.523l-.998.064a7 7 0 0 1 0 .918l.998.064A8 8 0 0 0 16 8M.152 9.56q.104.52.27 1.012l.948-.321a7 7 0 0 1-.237-.884l-.98.194zm15.425 1.012q.168-.493.27-1.011l-.98-.194q-.09.453-.237.884zM.824 11.54a8 8 0 0 0 .524.905l.83-.556a7 7 0 0 1-.458-.793zm13.828.905q.292-.434.524-.906l-.896-.443q-.205.413-.459.793zm-12.667.83q.346.394.74.74l.66-.752a7 7 0 0 1-.648-.648zm11.29.74q.394-.346.74-.74l-.752-.66q-.302.346-.648.648zm-1.735 1.161q.471-.233.905-.524l-.556-.83a7 7 0 0 1-.793.458zm-7.985-.524q.434.292.906.524l.443-.896a7 7 0 0 1-.793-.459zm1.873.925q.493.168 1.011.27l.194-.98a7 7 0 0 1-.884-.237zm4.132.271a8 8 0 0 0 1.012-.27l-.321-.948a7 7 0 0 1-.884.237l.194.98zm-2.083.135a8 8 0 0 0 1.046 0l-.064-.998a7 7 0 0 1-.918 0zM8.5 4.5a.5.5 0 0 0-1 0v3h-3a.5.5 0 0 0 0 1h3v3a.5.5 0 0 0 1 0v-3h3a.5.5 0 0 0 0-1h-3z"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
}

    .lot-image-add:hover, .lot-image-add.hovered {
        border-color: white
    }

.lot-image .delete-image {
    position: absolute;
    margin-left: -10px;
    margin-top: -10px;
    font-size: 18px;
    color: white;
    background-color: red;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.added-image:hover {
    opacity: 1;
}

.delete-icon {
    display: none;
    position: absolute;
    top: 50% !important;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    font-size: 56px;
    color: red;
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s !important;
}

.added-image:hover .delete-icon {
    display: block;
    opacity: 1;
}

.es-bg-primary {
    background: var(--main-bg-color);
}

.es-bg-primary-light {
    background: var(--main-bg-color-light);
}

.es-border {
    border: 1px solid #545968
}

.es-border-bottom {
    border-bottom: 1px solid #545968
}

.es-border-top {
    border-top: 1px solid #545968
}

.invalid-datetime-input > .input-group-text, .invalid-datetime-input > .end-datetime, .invalid-datetime-input > .start-datetime {
    background-color: #bb02029e
}

input[type="datetime-local"] {
    min-width: 170px !important;
}

input[type="checkbox"] {
    cursor: pointer !important;
}

input[disabled="disabled"] {
    opacity: 0 !important;
}

.warning-datetime-input > .input-group-text, .warning-datetime-input > .end-datetime, .warning-datetime-input > .start-datetime {
    background-color: #cb951a9e
}

.last-nav-item {
    border-right: 3px solid #545968;
    height: 30px
}

.login-card {
    width: 100vw
}

@media (min-width: 1023px) {
    .login-card {
        width: 55vw
    }
}

@media (min-width: 1440px) {
    .login-card {
        width: 35vw
    }
}

.modal-backdrop {
    background-color: black
}

.modal-xxl {
    --bs-modal-width: 85vw;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
}

    .nav-link:hover, .nav-link.active {
        color: white !important
    }

.nowrap {
    white-space: nowrap
}

.row-striped:nth-of-type(odd) {
    background-color: var(--main-bg-color-light) !important;
}

.table-button {
    --bs-btn-padding-x: 0.9rem;
    --bs-btn-padding-y: 0.45rem;
}

.text-white-50 {
    --bs-text-opacity: 1;
    color: rgba(255,255,255,.5) !important;
}

.text-white {
    color: white !important
}

.user-customer-item {
    display: flex;
    width: auto;
    background-color: white;
    margin-left: 5px;
    margin-right: 5px;
    border-radius: 40px;
    border: 3px solid white;
    font-weight: 500;
    transition-property: background-color, border;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
    cursor: pointer;
}

    .user-customer-item.active {
        color: white;
        font-weight: 500;
        border: 3px solid rgba(var(--bs-primary-rgb),1) !important;
        background-color: rgba(var(--bs-primary-rgb),1) !important;
        transition-property: background-color, border;
        transition-duration: 0.2s;
        transition-timing-function: ease-in-out;
    }

.w-fit {
    width: fit-content
}

input.input-no-arrows::-webkit-outer-spin-button,
input.input-no-arrows::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input.input-no-arrows[type=number] {
    -moz-appearance: textfield;
}



.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
    flex: 0 0 auto;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .switch .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #777;
        -webkit-transition: .3s ease-in-out;
        transition: .3s ease-in-out;
    }

        .switch .slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 5px;
            bottom: 5px;
            background-color: white;
            -webkit-transition: .3s ease-in-out;
            transition: .3s ease-in-out;
        }

    .switch input:checked + .slider {
        background-color: var(--color-primary);
    }

    .switch input[type="checkbox"]:checked + .slider-danger {
        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-danger-rgb),var(--bs-bg-opacity)) !important;
    }

    .switch input[type="checkbox"]:checked + .slider-secondary {
        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity)) !important;
    }

    .switch input[type="checkbox"]:checked + .slider-success {
        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-success-rgb),var(--bs-bg-opacity)) !important;
    }

    .switch input[type="checkbox"]:disabled + .slider {
        cursor: not-allowed;
        --bs-bg-opacity: 1;
        background-color: rgba(var(--bs-light-rgb),var(--bs-bg-opacity)) !important;
        opacity: 0.3;
        border: 1px solid #d3d3d3;
    }

.slider-disabled:before {
    bottom: 4px !important;
}

.switch input:focus + .slider {
    box-shadow: 0 0 1px var(--color-primary);
}

.switch input:checked + .slider:before {
    -webkit-transform: translateX(20px);
    -ms-transform: translateX(20px);
    transform: translateX(20px);
}

.switch .slider.round {
    border-radius: 16px;
}

    .switch .slider.round:before {
        border-radius: 50%;
    }
