body {
    background-color: #fff;
}
body.pg-layout {
    background-color: #f5f5f9;
}

.btn {
    border-radius: 0.25rem !important;
}

.card {
    box-shadow: 0 2px 6px 0 rgb(67 89 113 / 10%);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
}

.navbar {
    background-color: #fff;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
}
.navbar-center .nav-item a:hover {
    color: #696cff;
}

.nav-active {
    color: #696cff;
    font-weight: 500;
}

.nav-active > ul > li > a.active {
    color: #696cff;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: rgb(255 255 255) !important;
    font-weight: 500;
    background-color: #696cff;
}
.nav-tabs .nav-item .nav-link:focus {
    color: #696cff;
}
.nav-tabs .nav-item .nav-link {
    padding: 10px 15px;
    border-radius: 0.25rem;
}

.loader-div {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.6);
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1011;
}

:root {
    --hue: 223;
    --bg: hsl(var(--hue), 10%, 90%);
    --fg: hsl(var(--hue), 10%, 10%);
    --primary: #696cff; /* Changed to your brand color */
    --trans-dur: 0.3s;
    /* font-size: calc(16px + (20 - 16) * (100vw - 320px) / (1280 - 320)); */
}
.preloader {
    text-align: center;
    max-width: 10em;
    width: 50%;
}
.preloader__text {
    position: relative;
    height: 1.5em;
}
.preloader__msg {
    animation: msg 0.3s 13.7s linear forwards;
    position: absolute;
    width: 100%;
}
.preloader__msg--last {
    animation-direction: reverse;
    animation-delay: 14s;
    visibility: hidden;
}
.cart {
    display: block;
    margin: 0 auto 1.5em auto;
    width: 3em;
    height: 3em;
}
.cart__lines,
.cart__top,
.cart__wheel1,
.cart__wheel2,
.cart__wheel-stroke {
    animation: cartLines 2s ease-in-out infinite;
}
.cart__lines {
    stroke: var(--primary);
}
.cart__top {
    animation-name: cartTop;
}
.cart__wheel1 {
    animation-name: cartWheel1;
    transform: rotate(-0.25turn);
    transform-origin: 43px 111px;
}
.cart__wheel2 {
    animation-name: cartWheel2;
    transform: rotate(0.25turn);
    transform-origin: 102px 111px;
}
.cart__wheel-stroke {
    animation-name: cartWheelStroke;
}
.cart__track {
    stroke: hsla(var(--hue), 10%, 10%, 0.1);
    transition: stroke var(--trans-dur);
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #696cff !important;
    color: #fff;
    /* border: 1px solid #aaa; */
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
    margin-left: 5px;
    margin-top: 5px;
    padding: 0;
    padding-left: 32px !important;
    position: relative;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
    padding-top: 3px !important;
    padding-bottom: 3px !important;
    padding-right: 3px !important;
    border: none !important;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    background-color: transparent;
    border: none;
    border-right: 1px solid #aaa;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    color: #ffffff !important;
    cursor: pointer;
    font-size: 18px !important;
    font-weight: bold;
    padding: 0px 8px !important;
    position: absolute;
    left: 0;
    top: 0;
}
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove:hover {
    background-color: #ec4b4b !important;
}

/* Dark theme */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: hsl(var(--hue), 10%, 10%);
        --fg: hsl(var(--hue), 10%, 90%);
    }
    .cart__track {
        stroke: hsla(var(--hue), 10%, 90%, 0.1);
    }
}

/* Animations */
@keyframes msg {
    from {
        opacity: 1;
        visibility: visible;
    }
    99.9% {
        opacity: 0;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}
@keyframes cartLines {
    from,
    to {
        opacity: 0;
    }
    8%,
    92% {
        opacity: 1;
    }
}
@keyframes cartTop {
    from {
        stroke-dashoffset: -338;
    }
    50% {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 338;
    }
}
@keyframes cartWheel1 {
    from {
        transform: rotate(-0.25turn);
    }
    to {
        transform: rotate(2.75turn);
    }
}
@keyframes cartWheel2 {
    from {
        transform: rotate(0.25turn);
    }
    to {
        transform: rotate(3.25turn);
    }
}
@keyframes cartWheelStroke {
    from,
    to {
        stroke-dashoffset: 81.68;
    }
    50% {
        stroke-dashoffset: 40.84;
    }
}

@media screen and (min-width: 992px) {
    .navbar {
        padding: 0;
        line-height: 3rem;
        .dropdown-menu {
            line-height: initial;
        }
    }
    .nav-link {
        color: #8b98a7;
    }
    .dropdown {
        .dropdown-menu {
            display: none;
        }
    }
    .dropdown,
    .dropend {
        &:hover {
            & > .dropdown-menu {
                display: block;
            }
        }
    }
    .dropdown {
        &:hover {
            & > .dropdown-menu {
                margin-top: -0.5rem;
            }
        }
    }
    .dropend {
        &:hover {
            & > .dropdown-menu {
                position: absolute;
                top: -0.5rem;
                left: -180px;
                margin-left: 0;
            }
        }
    }
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-collapse {
        justify-content: flex-end;
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        margin: 0 5px;
    }
}

@media screen and (min-width: 992px) {
    .nav-link {
        color: #ffffff;
    }
    .nav-link:hover {
        color: #eeeeee;
    }
}

.pagination {
    margin-bottom: 0;
}

.pagination .page-link {
    padding: 6px 12px;
    font-size: 16px;
    border-radius: 4px;
}

.pagination .page-item.active .page-link {
    background: #696cff;
    border-color: #696cff;
}

.pagination .page-link:focus {
    box-shadow: none;
}
.rounded-0 {
    border-radius: 0 !important;
}
.shadow {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px !important;
}

.navbar {
    z-index: 1050;
    position: relative;
}

.dropdown-menu {
    z-index: 1060;
}

#itemTable tr td {
    padding: 0.25rem;
    vertical-align: middle;
}
#itemTable tr td .form-control {
    min-width: 80px;
}

.page-header-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px 22px;
    border: 1px solid #edf0f5;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
}

.page-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(105, 108, 255, 0.1);
    color: #696cff;
    font-size: 18px;
}
.page-content-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(161, 172, 184, 0.4) !important;
}
