:root {

    /* Colors */

    --icon-color: #3b71d9;
    --main-color: #3365ff;
    --main-dark-color: #1b51e4;
    --bdr-sec-radius: 10px;
    --sec-btn-color: var(--body-color);
}

:root[data-applied-mode="light"] {
    color-scheme: light;

    /* Colors */
    --white: #fff;
    --main-light-color: #eaecfe;

    /* --light: #f5f7fb; */
    --light: #f9f9f9;

    /* Body */
    --body-bg: #fff;
    --body-color: #818181;
    --body-accent-color: #323232;

    /* Buttons */
    --app-btn-bg: #fff;
    --app-btn-hvr-bg: #fff;
    --app-btn-color: var(--main-color);
    --app-btn-bdr: var(--bdr-sec-color);
    --app-btn-hvr-bdr: var(--main-color);
    --dark-btn-bg: #1c1c1c;
    --dark-btn-hvr-bg: #000;
    --dark-btn-hvr-bdr: #000;
    --dark-btn-fcs-shadow: #2f2f2f;

    /* Header */
    --header-bdr-color: var(--bdr-sec-color);

    /* Footer */
    --footer-bdr-color: var(--bdr-sec-color);

    /* Sidebar */
    --sb-pry-bg: var(--light);
    --sb-active-bg-color: #333;
    --sb-text-color: #6a6c70;
    --sb-minimizer-bg: var(--body-bg);
    --sb-active-text-color: #fff;

    /* Borders */
    --bdr-color: #f0f0f0;

    /* --bdr-color: #e4e6e8; */
    --bdr-sec-color: #f2f2f2;

    /* Shadow */
    --box-shadow: 0 2px 3px rgba(0 0 0 / 2%);
    --box-shadow-hover: 0 3px 30px rgba(0 0 0 / 6%);
    --card-shadow: 0 2px 2px rgba(0 0 0 / 2%);

    /* Switch */
    --setting-switch-bg: var(--light);

    /* Forms */
    --field-bg: var(--light);
    --field-container-bg: #fff;
    --field-bdr: var(--bdr-sec-color);
    --field-focus-bg: #fff;
    --field-focus-bdr: #333;
    --field-focus-color: #333;
    --field-focus-shadow: rgb(28 28 28 / 25%);

    /* Tabs */
    --tab-bg: var(--light);

    /* Table */
    --table-header-bg: var(--light);
    --table-accent-bg: var(--light);
}

:root[data-applied-mode="dark"] {
    color-scheme: dark;

    /* Colors */
    --white: #1c2228;
    --main-light-color: #eaecfe;

    /* --light: #18191a; */
    --light: #1a1f24;

    /* Body */

    /* --body-bg: #262626; */
    --body-bg: #21272d;

    /* Buttons */
    --app-btn-bg: var(--body-bg);
    --app-btn-hvr-bg: var(--body-bg);
    --app-btn-color: var(--main-color);
    --app-btn-bdr: var(--bdr-sec-color);
    --app-btn-hvr-bdr: var(--main-color);
    --dark-btn-bg: #17171c;
    --dark-btn-hvr-bg: #000;
    --dark-btn-hvr-bdr: #000;
    --dark-btn-fcs-shadow: #2f2f2f;

    /* Sidebar */
    --sb-pry-bg: var(--light);
    --sb-sec-bg: var(--body-bg);
    --sb-minimizer-bg: var(--body-bg);
    --sb-active-text-color: #1f5aca;
    --sb-active-bg-color: #15161a;

    /* Borders */
    --bdr-color: #3f4248;
    --bdr-sec-color: #343435;

    /* Shadow */
    --box-shadow: 0 3px 4px rgba(0 0 0 / 8%);
    --box-shadow-hover: 0 3px 20px rgba(0 0 0 / 40%);
    --card-shadow: 0 3px 6px rgba(0 0 0 / 10%);

    /* Switch */
    --setting-switch-bg: var(--light);
    --switch-bg: var(--light);

    /* Cards */
    --card-bg: var(--body-bg);

    /* Forms */
    --field-bg: #1e2328;
    --field-container-bg: var(--light);
    --field-bdr: var(--bdr-sec-color);
    --field-focus-bg: var(--light);
    --field-focus-bdr: var(--main-color);
    --field-focus-color: var(--main-color);
    --field-focus-shadow: rgb(0 123 255 / 25%);

    /* Tabs */
    --tab-bg: var(--light);

    /* Table */
    --table-header-bg: #1f252b;
    --table-accent-bg: #1f252b;

    /* Dropdown */
    --dropdown-bg: var(--body-bg);

    /* Modal */
    --modal-bg: var(--body-bg);

    /* Header */
    --header-bg: var(--body-bg);
    --header-bdr-color: var(--bdr-sec-color);

    /* Footer */
    --footer-bg: var(--body-bg);
    --footer-bdr-color: var(--bdr-sec-color);
}

/* Badges */
.badge-rounded {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 100%;
}

/* Buttons */
.btn-app {
    background-color: var(--app-btn-bg);
    border-color: var(--app-btn-bdr);
    color: var(--app-btn-color);
}

.btn-app:hover {
    background-color: var(--app-btn-hvr-bg);
    border-color: var(--app-btn-hvr-bdr);
    color: var(--app-btn-color);
}

.btn-app:focus,
.btn-app.focus,
.btn-app:active,
.btn-app.active,
.btn-app:not(:disabled, .disabled):active,
.btn-app:not(:disabled, .disabled).active,
.btn-app:not(:disabled, .disabled):active:focus,
.btn-app:not(:disabled, .disabled).active:focus {
    background-color: var(--app-btn-hvr-bg) !important;
    border-color: var(--app-btn-hvr-bg) !important;
    box-shadow: 0 0 0 .2rem var(--app-btn-fcs-shadow) !important;
    color: var(--app-btn-color) !important;
}

[class*="btn-outline"] {
    border-color: var(--bdr-color);
    box-shadow: var(--card-shadow);
}

[class*="btn-outline"]:focus {
    color: var(--white);
}

.btn-rounded {
    border-radius: 50%;
    width: 35px;
    height: 35px;
    padding: 5px;
    font-size: 1rem;
    border: 1px solid var(--bdr-sec-color);
    box-shadow: var(--box-shadow);
}

.btn-sm.btn-rounded {
    width: 30px;
    height: 30px;
    font-size: .9rem;
}

.btn-rounded i {
    margin: 0;
}

.btn-rounded:hover {

    /* border-color: transparent; */
}

/* Text */
.text-accent-body {
    color: var(--body-accent-color) !important;
}

.text-body {
    color: var(--body-color) !important;
}

.text-success {
    color: var(--success-btn-bg) !important;
}

.text-danger {
    color: var(--danger-btn-bg) !important;
}

.text-warning {
    color: var(--warning-btn-bg) !important;
}

.text-info {
    color: var(--info-btn-bg) !important;
}

.text-primary {
    color: var(--bg-primary) !important;
}

.text-secondary {
    color: var(--bg-secondary) !important;
}

.sidebar {
    box-shadow: none;
}

.main-wrapper {
    background-color: var(--light);
    padding: 25px;
    padding-left: 0;
}

.content-wrapper {
    display: block;
    min-height: auto;
}

.content-box {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 50px);
    border-radius: 18px;
    overflow: scroll;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--bdr-color);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.content-box::-webkit-scrollbar {
    display: none;
}

.main {
    background-color: var(--body-bg);
}

hr {
    border-color: var(--bdr-sec-color);
}

/* Select2 */
.body .form-floating .select2-container--krajee-bs5 .select2-selection--single {
    padding-right: 30px;
}

/* Sidebar */
.sidebar .sidebar-top-item {
    padding-top: 6.2rem;
}

.sidebar .sidebar-nav .sidebar-nav-item .sidebar-nav-link.active {
    font-weight: 500;
    border: 1px solid var(--sb-active-bg-color);
}

.sidebar .sidebar-nav .sidebar-nav-item .sidebar-nav-link.active::before {
    content: none;
}

.sidebar.sidebar-minimized .sidebar-nav .sidebar-nav-item:not(.sidebar-nav-title) .sidebar-nav-link,
.sidebar.sidebar-minimized .sidebar-nav .sidebar-nav-dropdown:not(.sidebar-nav-title) .sidebar-nav-link {
    width: 3.4rem;
}

.sidebar .sidebar-user {
    border-radius: var(--bdr-radius);
}

.sidebar .sidebar-user-item {
    padding-top: 10px;
    padding-bottom: 40px;
}

.dark .sidebar .sidebar-user-item .sidebar-user {
    border: 1px solid var(--bdr-sec-color);
}

.sidebar.sidebar-minimized .sidebar-user-item {
    padding-top: 10px;
    padding-bottom: 40px;
}

.sidebar .sidebar-user.sidebar-logout {
    box-shadow: none;
    background-color: transparent;
    padding: 25px;
}

.sidebar .sidebar-user .nav-logout {
    background-color: initial;
    text-align: left;
    color: var(--sb-text-color);
    padding: 12px 15px;
    border-radius: var(--bdr-radius);
}

.sidebar.sidebar-minimized .sidebar-user .nav-logout {
    text-align: center;
}

.sidebar .sidebar-user .nav-logout:hover {
    color: var(--sb-logout-color);
    background-color: var(--sb-logout-bg);
}

.sidebar.sidebar-minimized .sidebar-user.sidebar-logout {
    width: 100px;
}

.sidebar.sidebar-minimized .sidebar-user .user-logout .nav-logout i {
    margin: 0;
}

.sidebar .profile-link {
    margin-left: 25px;
    display: block;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    padding: 10px;
    font-size: .8rem;
    border: 1px solid var(--sb-user-bdr-color);
    cursor: pointer;
}

.sidebar.sidebar-minimized .sidebar-user .profile-link {
    display: none;
}

.sidebar .sidebar-user .user-details .user-role {
    color: var(--body-color);
}

.sidebar.sidebar-minimized .sidebar-user .user-logout {
    display: block;
}

.sidebar.sidebar-minimized .sidebar-user .user-logout .text {
    display: none;
}

/* Header */
.header,
.main,
footer {
    padding: 1rem 2rem;
}

.header {
    box-shadow: none;
}

/* Footer */
footer {
    border-top: 1px solid var(--footer-bdr-color);
}

/* Popover */
.popover {
    width: max-content;
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--bdr-color);
    margin-top: 10px !important;
}

/* Table */
.table-buttons {
    margin-bottom: 1rem !important;
}

.table > tbody > tr:hover > * {
    --bs-table-bg-state: var(--table-accent-bg);
}

/* Card */

.card:not(.note-editor) {
    border: 1px solid var(--bdr-sec-color);
    border-radius: var(--bdr-sec-radius);
}

/* Search */
.global-search-wrapper .loader-wrapper {
    position: absolute;
}

.dark .quick-search-wrapper {
    border: 1px solid var(--bdr-color);
}

.search-settings .module-title {
    border-color: var(--bdr-color);
}

.search-settings .ul-modules li {
    border-color: var(--bdr-sec-color);
}

/* Grid view */
#grid-view .action-buttons-inline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#grid-view .action-buttons-inline .dropdown-item {
    width: auto;
}

#grid-view .action-buttons-inline .dropdown-item:not(:last-child) {
    border-right: 1px solid var(--bdr-sec-color);
    padding-right: .8rem;
    margin-right: .8rem;
}

#grid-view .action-buttons-inline .dropdown-item i {
    margin-right: 0;
}

/* User history */
.user-history {
    border-top: 1px solid var(--bdr-sec-color);
}

/* Dashboard */
.dashboard-index .row-welcome {
    align-items: center;
    margin-top: 0;
}

.dashboard-index .row-welcome .date {
    padding: 10px;
    border: 1px solid var(--bdr-sec-color);
    border-radius: var(--bdr-sec-radius);
    box-shadow: var(--card-shadow);
}

.dashboard-index .row-welcome .date span {
    background-color: var(--light);
    box-shadow: none;
    color: var(--main-dark-color);
}

.dashboard-index .row-summary .card {
    border: 1px solid var(--bdr-sec-color);
}

.dashboard-index .card .card-header .label {
    display: flex;
    align-items: center;
    color: var(--body-accent-color);
}

.dashboard-index .card .card-header .label i {
    color: var(--icon-color);
    font-size: 1.5rem;
    margin-right: 10px;
}

.dashboard-index .card .card-header i {
    margin: 0;
    color: var(--icon-color);
}

.dashboard-index .card .card-body .value {
    margin-top: 25px;
    font-size: 3rem;
}

.dashboard-index .card .card-body .sub-value {
    margin-bottom: 0;
}

.dashboard-index .card .card-body .sub-value .increase {
    color: var(--success-btn-bg);
}

.dashboard-index .card .card-body .sub-value .decrease {
    color: var(--danger-btn-bg);
}

.dashboard-index .card .card-body .sub-value i {
    font-size: .9rem;
    margin-right: 5px;
}

.dashboard-index .card .card-body .sub-value .decrease i {
    transform: rotate(180deg);
}

.dashboard-index .card.card-table {
    padding: 0;
    overflow: hidden;
}

.dashboard-index .table thead {
    background-color: var(--table-header-bg);
}

.query-type {
    background-color: var(--main-light-color);
    color: var(--main-dark-color);
    border: 1px solid var(--bdr-sec-color);
    box-shadow: var(--card-shadow);
}

/* List view */
.sticky {
    position: sticky !important;
}

.list-view-toolbar {
    transition: top .3s;
    z-index: 9;
}

.body .list-view-filters {
    border-radius: 10px;
}

.list-view-filters form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.list-view-filters .form-group {
    margin-bottom: 0;
    min-width: 250px;
}

.list-view-filters .btn-clear-form {
    border-radius: 100%;
    width: 20px;
    height: 20px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.list-view-filters .btn-clear-form i {
    margin-right: 0;
    font-size: .8rem;
}

/* Products */
.filters-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.grid.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.grid .box {
    display: grid;
    align-content: space-between;
    height: 100%;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--bdr-sec-color);
    border-radius: var(--bdr-radius);
    overflow: hidden;
    padding: 25px;
    transition: .3s all;
}

.grid .box:hover {
    box-shadow: var(--box-shadow-hover);
}

.grid .box .title {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    gap: 20px;
}

.grid .box .title .actions {
    display: flex;
    gap: 5px;
}

.grid .box .badges {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.box .box-badge,
#grid-view-pjax .box-badge {
    background-color: var(--sec-btn-bg);
    border-radius: var(--bdr-radius);
    display: inline-block;
    color: var(--body-accent-color);
    padding: 3px 8px;
    font-size: .8rem;
    box-shadow: 0 2px 2px rgba(0 0 0 / 10%);
}

.box .card.box-badge {
    background-color: var(--white) !important;
    color: var(--body-color) !important;
}

.box .box-badge:not(:last-child),
#grid-view-pjax .box-badge:not(:last-child) {
    margin-right: 8px;
}

.grid .box .description {
    margin-top: 10px;
}

.grid .box .image img {
    display: block;
    width: 50%;

    /* margin: auto; */
}

/* Product category view */
.product-category-view [class*="btn-outline"],
.form-with-cards [class*="btn-outline"],
.btn-outline {
    --bs-btn-padding-x: 1.2rem;
    --bs-btn-padding-y: .7rem;
}

/* Product scroll */
.product-category-view .card-product {
    height: 80vh;
    overflow: hidden;
}

.product-category-view .card-product .row-main-product {
    overflow: scroll;
}

.product-category-view .col-section {
    padding: 25px;
    overflow: scroll;
    height: 100%;
}

.product-category-view .col-product {
    border-right: 1px solid var(--bdr-color);

}

.product-category-view .box {
    border-radius: 10px;
    padding: 25px;
}

.product-category-view .box.box-grey {
    background-color: var(--light);
}

.product-category-view .box.box-white {
    background-color: var(--white);
    padding: 15px 20px;
    box-shadow: var(--box-shadow);
}

/* Product carousel */
.product-category-view .product-images {
    position: relative;
    text-align: center;
}

.product-category-view .product-images .btn-product-media {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 2;
}

.product-category-view .product-images .btn-product-media:not(:hover, :focus) {
    background-color: var(--white);
}

.product-category-view .product-images .thumbnail-icon {
    font-size: 10rem;
    color: var(--body-color);
}

.product-category-view #main-carousel .splide__slide a {
    display: block;
    width: 100%;
}

.product-category-view #main-carousel .splide__slide img {
    display: block;
    width: 80%;
    height: auto;
    margin: auto;
}

.product-category-view #thumbnail-carousel .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category-view .splide__slide {
    display: flex;
    align-items: center;
    opacity: .6;
}

.product-category-view .splide__slide.is-active {
    opacity: 1;
}

.product-category-view .section-title {
    margin: 30px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-category-view .box .row {
    row-gap: calc(var(--bs-gutter-x) * 1);
}

.product-category-view .product-specs .spec-section:not(:last-child) {
    margin-bottom: 20px;
}

.product-category-view .product-specs .spec-section-title {
    color: var(--body-accent-color);
    margin-bottom: 15px;
}

.product-category-view .box .col-attribute-name {
    color: var(--body-accent-color);
}

.product-category-view .box .col-attribute-value {
    color: var(--body-color);
}

.product-category-view .product-files .accordion .accordion-item {
    padding: 10px;
    border: none;
}

.product-category-view .product-files .accordion .accordion-item:not(:last-child) {
    margin-bottom: 20px;
}

.product-category-view .product-files .accordion .accordion-header .accordion-button {
    color: var(--body-accent-color);
    background-color: transparent;
    font-size: 1.2rem;
    box-shadow: none !important;
}

.product-category-view .product-files .accordion .accordion-header .accordion-button:focus {
    border: none;
    outline: none;
    box-shadow: none;
}

.product-category-view .product-files .accordion .accordion-body .files {
    display: flex;
    gap: 15px;
}

.product-category-view .product-files .accordion .accordion-body .files .box {
    text-align: center;
    color: var(--body-color);
}


.product-category-view .product-files .accordion .accordion-body .files .box .box-image {
    font-size: 4rem;
}

.product-category-view .product-files .accordion .accordion-body .files .box-title {
    max-width: 100px;
}

.product-category-view .col-product-variants .box {
    display: grid;
    gap: 25px;
    align-items: center;
    grid-template-columns: auto 1fr auto auto;
    border: 1px solid var(--bdr-color);
}

.product-category-view .col-product-variants .box:not(:last-child) {
    margin-bottom: 15px;
}

.product-category-view .col-product-variants .box.variant .name {
    color: var(--body-accent-color);
    margin: 0;
}

.product-category-view .col-product-variants .box.variant .name .statuses {
    font-weight: 400;
    font-size: .9rem;
    color: var(--body-color);
    margin-top: 5px;
}

.product-category-view .col-product-variants .box.variant .name .statuses span {
    display: block;
}

.product-category-view .col-product-variants .box.variant .name .statuses span i {
    font-size: .8rem;
}

.product-category-view .col-product-variants .box.variant .options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;
    border-left: 1px solid var(--bdr-color);
    border-right: 1px solid var(--bdr-color);
    padding: 0 25px;
}

.product-category-view .col-product-variants .box.variant .price {
    border-right: 1px solid var(--bdr-color);
    padding-right: 25px;

}

.product-category-view .col-product-variants .box.variant .price p {
    margin-bottom: 0;
}

.product-category-view .col-product-variants .box.variant .actions .btn i {
    margin: 0;
}

/* Card in forms */
.form-with-cards .col-grid {
    display: grid;
}

.form-with-cards .card:not(:last-child) {
    margin-bottom: 20px;
}

textarea.form-control {
    height: min-content !important;
}

.form-with-cards .card .title {
    margin-bottom: 20px;
    color: var(--body-accent-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-with-cards .card .title i {
    font-size: 1rem;
}

.form-with-cards .card.card-attributes .row-data:not(:last-child) {
    margin-bottom: 15px;
}

.form-with-cards .card.card-attributes .row-data .col {
    position: relative;
}

.form-with-cards .card.card-attributes .col-actions > .btn {
    background-color: var(--field-bg);
}

.form-with-cards .card.card-attributes .btn-delete:hover,
.form-with-cards .card.card-attributes .btn-delete:focus {
    background-color: var(--danger-btn-bg);
}

.form-with-cards .card.card-attributes .btn-save:hover,
.form-with-cards .card.card-attributes .btn-save:focus {
    background-color: var(--success-btn-bg);
}

.form-with-cards .card.card-attributes .col-actions .btn i {
    margin: 0;
}

.card-item.is-invalid.animate,
.is-invalid.animate + .select2-container--krajee-bs5 .select2-selection {
    animation: shadow 2s infinite;
}

@keyframes shadow {
    50% {
        box-shadow: 0 0 6px var(--danger-btn-bg);
    }
}

/* Product media */
.card-item {
    position: relative;
    height: 100%;
    display: grid;
    align-content: space-between;
}

.card-item.is-invalid {
    border: 1px solid var(--danger-btn-bg);
}

.card-item .card-actions {
    display: flex;
    gap: 3px;
    position: absolute;
    z-index: 2;
    right: 10px;
    top: 5px;
}

.card-item .card-actions .btn {
    padding: 6px 12px;
}

.card-item .card-actions .btn:not(:hover, :focus) {
    background-color: var(--white);
}

.card-item .card-header {
    position: relative;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.card-item .card-header img {
    height: 80px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.card-item .card-header i {
    font-size: 6rem;
    color: var(--body-color);
}

.card-item .card-header input.input-file {
    cursor: pointer;
    opacity: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    z-index: 1;
}

.card-item .card-header .input-file-name {
    width: 100%;             /* fill parent width */
    box-sizing: border-box;  /* include padding/border */
    overflow-wrap: break-word; /* wrap long words */
    word-break: break-word;     /* support for older browsers */
}

.card-item .card-body {
    margin-top: 15px;
}

/* Order */
.order-form .row-primary {
    margin: 0 -4rem;
}

.order-form .row-primary .col {
    padding: 0 4rem;
}

.order-form .products {
    background-color: var(--field-bg);
    padding: 1rem;
    border-radius: var(--bdr-radius);
    margin-bottom: 1rem;
    border: 1px solid var(--field-bdr);
}

.order-form .products {
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.order-form .products .row {
    row-gap: .9rem;
    flex: 1;
}

.order-form .products .form-control,
.body .order-form .products .select2-container--krajee-bs5 .select2-selection {
    background-color: var(--card-bg);
}

.order-form .products .form-control:disabled,
.body .order-form .products .select2-container--krajee-bs5.select2-container--disabled .select2-selection {
    background-color: var(--field-bg) !important;
}

.order-form .products .form-group {
    margin-bottom: 0;
}

.order-form .row-table-products {
    border-radius: var(--bdr-radius);
    border: 1px solid var(--table-bdr-color);
}

.order-form .row-table-products .table-header {
    background-color: var(--field-bg);
    color: var(--body-accent-color);
    padding: 0 1rem;
}

.order-form .row-table-products .table-header .col {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.order-form .row-table-products .table-body {
    padding: 0 .5rem;
}

.order-form .row-table-products .col-first {
    display: flex;
    align-items: center;
}

.order-form .row-table-products .col-counter,
.order-form .row-table-products .col-actions {
    display: inline-block;
}

.order-form .row-table-products .col-counter {
    width: 50px;
}

.order-form .row-table-products .col-actions {
    width: 80px;
}

.order-form .row-table-products .col-empty {
    color: var(--body-color);
    padding: .5rem;
}

.order-form .row-table-products .row-product {
    display: flex;
    align-items: center;
    padding: 0 .5rem;
    transition: .2s all;
}

.order-form .row-table-products .row-product .col {
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.order-form .row-table-products .row-product .col.col-price {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.order-form .row-table-products .col.disabled {
    background-color: var(--table-accent-bg);
}

.order-form .row-table-products .row-product.glow {
    box-shadow: 0 0 3px var(--main-color);
}

.order-form .row-table-products .row-product:not(:last-child) {

    /* margin-bottom: .5rem; */
    border-bottom: 1px solid var(--table-bdr-color);
}

.order-form .row-table-products .row-product .select-product {
    width: 100%;
}

.order-form .row-table-products .row-product:not(.editable) .select-product .select2-container--krajee-bs5 .select2-selection--single::before {
    display: none;
}

.order-form .row-table-products .row-product:not(.editable) .form-control,
.order-form .row-table-products .row-product:not(.editable) .select2-selection {
    width: auto;
    height: auto !important;
    min-height: initial !important;
    background-color: transparent !important;
    border: none;
    padding: 0;
}

.order-form .row-table-products .row-product .col-price .form-control {
    max-width: 50px;
}

.order-form .row-table-products .row-product.editable .col-price .form-control {
    max-width: 100px;
}

.order-form .row-table-products .actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.order-form .row-table-products .actions .edit {
    padding-right: 10px;
    border-right: 1px solid var(--table-bdr-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-form .row-table-products .actions .btn-close-edit {
    font-size: 1.2rem;
    display: none;
}

.order-form .row-table-products .actions .btn-change-edit,
.order-form .row-table-products .row-product.editable .actions .btn-edit-product {
    display: none;
}

.order-form .row-table-products .row-product.editable .actions .btn-close-edit,
.order-form .row-table-products .row-product.editable .actions .btn-change-edit {
    display: block;
}

.order-form .row-table-products .actions i {
    cursor: pointer;
}

.order-form .row-totals .row-totals-wrapper.reverse {
    display: grid;
}

.order-form .row-totals .row-totals-wrapper.reverse .row-total:first-child {
    grid-row: 2;
    margin-bottom: 0;
}

.order-form .row-totals .row-total {
    align-items: center;
}

.order-form .row-totals .row-total{
    margin-bottom: .5rem;
}

.order-form .row-totals .form-control {
    width: auto;
    max-width: 100%;
    display: inline-block;
}

.order-form .row-totals .form-control.borderless {
    border: none;
    height: auto !important;
    min-height: auto !important;
}
