:root {
    --primary: #f3c623;
    --dark-primary: #d6a801;
    --darker-primary: #a08000;
    --light-primary: #ffe054;
    --lighter-primary: #fdf8df;
    --secondary: #f7f7f7;
    --light: #f8f9fa;
    --dark: #1b1b1d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --muted: #6c757d;
}

.alert {
    padding: 5px 10px;
    margin: 20px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.breadcrumb .breadcrumb-item,
.breadcrumb .breadcrumb-item i {
    font-size: 1.1rem;
}

.menu-icon i {
    font-size: 1.25rem;
    color: white !important;
}

.app-sidebar-wrapper .menu .menu-item .menu-link .menu-title {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.app-sidebar-wrapper .menu .menu-item .menu-link:hover .menu-title {
    color: var(--primary) !important;
}

.app-sidebar-wrapper .menu .menu-item .menu-link:hover .menu-icon i {
    color: var(--primary) !important;
    transition: all 0.3s ease;
}

.menu-link.active .menu-icon i,
.menu-link.active .menu-title {
    color: var(--primary) !important;
}

.menu-item:hover > .menu-link {
    color: var(--primary) !important;
    background-color: rgba(255, 224, 84, 0.1) !important;
}

.menu-item .menu-link.active {
    background-color: rgba(255, 224, 84, 0.1) !important;
}

table thead tr th {
    font-weight: bold !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.5px;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.card-head {
    padding: 25px 0;
}

.form-group {
    margin-bottom: 25px;
    padding: 0 10px;
}

.btn-icon i {
    color: black !important;
}

.btn-icon:hover i {
    color: white !important;
}

.backup-img {
    height: 300px;
}

.user-info-card {
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-info-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.user-info-item {
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.user-info-item:last-child {
    border-bottom: none;
}

#discount_text:hover {
    cursor: copy;
}

#discount_input {
    width: 200px;
    margin-bottom: 10px;
}

.bank-note:hover,
.product-item:hover {
    cursor: pointer;
}

.border {
    border: 1px solid #cecece !important;
}

.dotted-separator {
    border-top: 2px dotted #bbb;
}

.fs-paragraph {
    font-size: medium;
}

/* Scroller */
#kt_app_body::-webkit-scrollbar-track,
.custom_scroller::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 7px;
    background-color: #1b1b1d;
}

#kt_app_body::-webkit-scrollbar,
.custom_scroller::-webkit-scrollbar {
    width: 12px;
    background-color: #1b1b1d;
}

#kt_app_body::-webkit-scrollbar-thumb,
.custom_scroller::-webkit-scrollbar-thumb {
    border-radius: 7px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: var(--primary);
}

/* start typeahead */
.bs-example {
    font-family: sans-serif;
    position: relative;
    margin: 100px;
}

.typeahead,
.tt-query,
.tt-hint {
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 20px;
    height: 35px;
    line-height: 30px;
    outline: medium none;
    padding: 8px 12px;
    width: auto;
    color: white;
}

.typeahead {
    background-color: transparent;
}

.typeahead:focus {
    border: 2px solid var(--primary);
}

.tt-query {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
}

.tt-hint {
    color: #999999;
}

.tt-menu {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    margin-top: 12px;
    padding: 8px 0;
    width: 422px;
}

.tt-suggestion {
    font-size: 22px;
    padding: 3px 20px;
}

.tt-suggestion:hover {
    cursor: pointer;
    background-color: #0097cf;
    color: #ffffff;
}

.tt-suggestion p {
    margin: 0;
}

/* end typeahead */

/* start calculator */
.calculator {
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 450px;
}

.calculator-screen {
    width: 100%;
    height: 80px;
    border: none;
    background-color: #252525;
    color: #fff;
    text-align: right;
    padding-right: 20px;
    padding-left: 10px;
    font-size: 4rem;
}

.calculator button {
    height: 60px;
    font-size: 2rem !important;
}

.equal-sign {
    height: 300px !important;
    grid-area: 2 / 4 / 6 / 5;
}

.calculator-keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    padding: 20px;
}

/* end calculator */

/* start todo */
.todo {
    width: 100%;
    max-width: 540px;
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 2rem;
}

#todo_input {
    width: 50%;
    border: none;
    outline: none;
    background-color: #e6e6e6;
    height: 50px;
    padding-left: 20px;
    border-radius: 20px 0 0 20px;
}

#todo_button {
    font-size: medium !important;
    padding: 5px 15px !important;
    max-height: 50px;
    border-radius: 0 20px 20px 0;
}

#todo_button:hover {
    filter: brightness(0.8);
}

.todo ul {
    list-style: none;
}

.todo ul li {
    font-size: 17px;
    padding: 12px 8px 12px 50px;
    margin-top: 5px;
    user-select: none;
    cursor: pointer;
    position: relative;
}

.todo ul li::before {
    position: absolute;
    content: "";
    width: 24px;
    height: 24px;
    border-radius: 50%;
    left: 0;
    border: 2px solid #ff5945;
}

.todo ul .checked {
    color: #555;
    text-decoration: line-through;
}

.todo ul .checked::before {
    background-color: #ff5945;
}

.todo span {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
    font-size: 18px;
    transition: all 0.2s ease;
}

.todo span:hover {
    background-color: red;
    color: #fff;
}

.drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
    gap: 0.5rem;
}

.drawer-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 0.75rem;
    border-radius: 50%;
    color: var(--dark-primary);
    background-color: var(--lighter-primary);
}

.drawer-empty-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #3f4254;
}

.drawer-empty-hint {
    font-size: 0.9rem;
    color: #a1a5b7;
    max-width: 260px;
}

/* end todo */

/* start toggle */
.btn-toggle {
    margin: 0 4rem;
    padding: 0;
    position: relative;
    border: none;
    height: 1.5rem;
    width: 3rem;
    border-radius: 1.5rem;
    color: #6b7381;
    background: #bdc1c8;
}

.btn-toggle:focus,
.btn-toggle.focus,
.btn-toggle:focus.active,
.btn-toggle.focus.active {
    outline: none;
}

.btn-toggle:before,
.btn-toggle:after {
    line-height: 1.5rem;
    width: 4rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    bottom: 0;
    transition: opacity 0.25s;
}

.btn-toggle:before {
    content: "Off";
    left: -4rem;
}

.btn-toggle:after {
    content: "On";
    right: -4rem;
    opacity: 0.5;
}

.btn-toggle > .handle {
    position: absolute;
    top: 0.1875rem;
    left: 0.1875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 1.125rem;
    background: #fff;
    transition: left 0.25s;
}

.btn-toggle.active {
    transition: background-color 0.25s;
}

.btn-toggle.active > .handle {
    left: 1.6875rem;
    transition: left 0.25s;
}

.btn-toggle.active:before {
    opacity: 0.5;
}

.btn-toggle.active:after {
    opacity: 1;
}

.btn-toggle:before,
.btn-toggle:after {
    color: #6b7381;
}

.btn-toggle.active {
    background-color: #29b5a8;
}

.btn-toggle.btn-lg {
    margin: 0 5rem;
    padding: 0;
    position: relative;
    border: none;
    height: 2.5rem;
    width: 5rem;
    border-radius: 2.5rem;
}

.btn-toggle.btn-lg:focus,
.btn-toggle.btn-lg.focus,
.btn-toggle.btn-lg:focus.active,
.btn-toggle.btn-lg.focus.active {
    outline: none;
}

.btn-toggle.btn-lg:before,
.btn-toggle.btn-lg:after {
    line-height: 2.5rem;
    width: 5rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: absolute;
    bottom: 0;
    transition: opacity 0.25s;
}

.btn-toggle.btn-lg:before {
    content: "Off";
    left: -5rem;
}

.btn-toggle.btn-lg:after {
    content: "On";
    right: -5rem;
    opacity: 0.5;
}

.btn-toggle.btn-lg > .handle {
    position: absolute;
    top: 0.3125rem;
    left: 0.3125rem;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 1.875rem;
    background: #fff;
    transition: left 0.25s;
}

.btn-toggle.btn-lg.active {
    transition: background-color 0.25s;
}

.btn-toggle.btn-lg.active > .handle {
    left: 2.8125rem;
    transition: left 0.25s;
}

.btn-toggle.btn-lg.active:before {
    opacity: 0.5;
}

.btn-toggle.btn-lg.active:after {
    opacity: 1;
}

.btn-toggle.btn-lg.btn-sm:before,
.btn-toggle.btn-lg.btn-sm:after {
    line-height: 0.5rem;
    color: #fff;
    letter-spacing: 0.75px;
    left: 0.6875rem;
    width: 3.875rem;
}

.btn-toggle.btn-lg.btn-sm:before {
    text-align: right;
}

.btn-toggle.btn-lg.btn-sm:after {
    text-align: left;
    opacity: 0;
}

.btn-toggle.btn-lg.btn-sm.active:before {
    opacity: 0;
}

.btn-toggle.btn-lg.btn-sm.active:after {
    opacity: 1;
}

.btn-toggle.btn-lg.btn-xs:before,
.btn-toggle.btn-lg.btn-xs:after {
    display: none;
}

.btn-toggle.btn-secondary {
    color: #6b7381;
    background: #bdc1c8;
}

.btn-toggle.btn-secondary:before,
.btn-toggle.btn-secondary:after {
    color: #6b7381;
}

.btn-toggle.btn-secondary.active {
    background-color: #5cb85c !important;
}

/* end toggle */

.text-right {
    text-align: right;
}

.text-xs {
    font-size: x-small;
}

/*color branding*/
[data-bs-theme="light"] .bg-price {
    background-color: var(--lighter-primary);
    color: black;
    border: 3px solid var(--primary);
}

[data-bs-theme="dark"] .bg-price {
    background-color: var(--dark);
    color: white;
    border: 3px solid var(--primary);
}

[data-bs-theme="light"] .btn-custom-primary {
    background-color: rgba(0, 0, 0, 0) !important;
    border: 2px solid var(--primary) !important;
    color: black !important;
    transition: all 0.3s ease;
}

[data-bs-theme="light"] .btn-custom-primary:hover {
    background-color: rgba(243, 198, 35, 0.5) !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .btn-custom-primary {
    background-color: rgba(0, 0, 0, 0) !important;
    border: 2px solid var(--primary) !important;
    color: white !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .btn-custom-primary:hover {
    background-color: rgba(243, 198, 35, 0.3) !important;
    transition: all 0.3s ease;
}

[data-bs-theme="light"] .border-primary {
    border: 3px solid rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease;
}

[data-bs-theme="light"] .border-primary:hover {
    border: 3px solid var(--primary) !important;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .border-primary {
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.2s ease;
}

[data-bs-theme="dark"] .border-primary:hover {
    border: 3px solid var(--primary) !important;
    transition: all 0.2s ease;
}

.border-primary.active {
    border: 3px solid var(--primary) !important;
}

.btn-icon.btn-custom:hover {
    background-color: rgba(255, 224, 84, 0.1) !important;
}

.btn-icon.btn-custom.show.menu-dropdown,
.btn-icon.btn-custom:focus {
    background-color: rgba(255, 224, 84, 0.1) !important;
}

.btn-icon.btn-custom.show.menu-dropdown span,
.btn-icon.btn-custom:hover span {
    color: var(--primary) !important;
    transition: all 0.3s ease;
}

.btn-icon.btn-custom.active span {
    color: var(--primary) !important;
    transition: all 0.3s ease;
}

.btn-icon.btn-custom:focus span {
    color: var(--primary) !important;
}

[data-bs-theme="light"] .btn-custom-success {
    background-color: rgba(0, 0, 0, 0) !important;
    border: 2px solid var(--success) !important;
    color: black !important;
    transition: all 0.3s ease;
}

[data-bs-theme="light"] .btn-custom-success:hover {
    background-color: rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .btn-custom-success {
    background-color: rgba(0, 0, 0, 0) !important;
    border: 2px solid var(--success) !important;
    color: white !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .btn-custom-success:hover {
    background-color: rgba(40, 167, 69, 0.3) !important;
    transition: all 0.3s ease;
}

.btn-custom-success i {
    margin: 0 !important;
    padding: 0 !important;
    transition: all 0.3s ease;
}

.btn-custom-success:hover i {
    transform: rotate(90deg);
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 !important;
}

[data-bs-theme="light"] .btn-custom-success i,
[data-bs-theme="light"] .btn-custom-primary i {
    color: black !important;
}

[data-bs-theme="dark"] .btn-custom-success i,
[data-bs-theme="dark"] .btn-custom-primary i {
    color: white !important;
}

.btn-link:hover {
    color: var(--primary) !important;
}

.text-hover-primary:hover .svg-icon,
.text-hover-primary:hover i {
    color: var(--primary) !important;
}

[aria-selected="true"].nav-link.text-active-primary,
.nav-link.text-active-primary:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
}

.menu-sub-dropdown .menu-item .menu-link .menu-title,
.menu-sub-dropdown .menu-item .menu-link .menu-icon .svg-icon {
    transition: all 0.3s ease;
}

.menu-sub-dropdown .menu-item .menu-link:hover .menu-title,
.menu-sub-dropdown .menu-item .menu-link:hover .menu-icon .svg-icon,
.menu-sub-dropdown .menu-item .menu-link.active .menu-title,
.menu-sub-dropdown .menu-item .menu-link.active .menu-icon .svg-icon {
    color: var(--primary) !important;
    transition: all 0.3s ease;
}

/* Dropdown submenu bare-text links (e.g. language/currency): keep selected, hover,
   and open (.show) parent text dark for readability, overriding the theme's blue. */
.menu-sub-dropdown .menu-item .menu-link.active,
.menu-sub-dropdown .menu-item .menu-link:hover,
.menu-sub-dropdown .menu-item.show > .menu-link,
.menu-sub-dropdown .menu-item.show > .menu-link .menu-title {
    color: #181c32 !important;
}

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

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

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

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

.svg-icon-primary {
    color: var(--dark-primary) !important;
}

.svg-icon-primary:hover {
    color: var(--primary) !important;
}

.btn-custom-warning {
    background-color: #00000000 !important;
    border: 2px solid var(--warning) !important;
}

.btn-custom-warning:hover {
    background-color: rgba(255, 193, 7, 0.3) !important;
}

.btn-outline-white {
    border: 2px solid white !important;
}

.btn-outline-white i {
    color: white !important;
}

.btn-outline-white:hover {
    background-color: transparent !important;
    padding-left: 25px !important;
    padding-right: 25px !important;
}

[data-bs-theme="light"] .btn-custom-warning i,
[data-bs-theme="light"] .btn-custom-danger i {
    color: black !important;
}

[data-bs-theme="dark"] .btn-custom-warning i,
[data-bs-theme="dark"] .btn-custom-danger i {
    color: white !important;
}

[data-bs-theme="light"] .btn-custom-warning:hover i,
[data-bs-theme="light"] .btn-custom-danger:hover i {
    color: black !important;
}

[data-bs-theme="dark"] .btn-custom-warning:hover i,
[data-bs-theme="dark"] .btn-custom-danger:hover i {
    color: white !important;
}

.btn-custom-danger {
    background-color: rgba(0, 0, 0, 0) !important;
    border: 2px solid var(--danger) !important;
    transition: all 0.3s ease;
}

.btn-custom-danger:hover {
    background-color: rgba(220, 53, 69, 0.3) !important;
}

[data-bs-theme="light"] .btn-custom-danger {
    color: black !important;
}

[data-bs-theme="dark"].btn-custom-danger {
    color: white !important;
}

.btn-custom-info {
    background-color: rgba(0, 0, 0, 0) !important;
    border: 2px solid var(--info) !important;
    transition: all 0.3s ease;
}

.btn-custom-info:hover {
    background-color: rgba(13, 202, 240, 0.3) !important;
}

[data-bs-theme="light"] .btn-custom-info {
    color: black !important;
}

[data-bs-theme="dark"] .btn-custom-info {
    color: white !important;
}

[data-bs-theme="light"] .btn-custom-info i,
[data-bs-theme="light"] .btn-custom-info:hover i {
    color: black !important;
}

[data-bs-theme="dark"] .btn-custom-info i,
[data-bs-theme="dark"] .btn-custom-info:hover i {
    color: white !important;
}

/* Back button in toolbar - dark mode */
[data-bs-theme="dark"] #kt_app_toolbar .btn-secondary,
[data-bs-theme="dark"] .app-toolbar .btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

[data-bs-theme="dark"] #kt_app_toolbar .btn-secondary:hover,
[data-bs-theme="dark"] .app-toolbar .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-color: var(--primary);
    color: #fff;
}

[data-bs-theme="dark"] #kt_app_toolbar .btn-secondary i,
[data-bs-theme="dark"] .app-toolbar .btn-secondary i {
    color: inherit;
}

.btn-icon.btn-custom-warning i,
.btn-icon.btn-custom-danger i,
.btn-icon.btn-custom-info i {
    transition: all 0.3s ease;
}

.btn-icon.btn-custom-warning:hover i,
.btn-icon.btn-custom-danger:hover i,
.btn-icon.btn-custom-info:hover i {
    transform: rotate(360deg);
    transition: all 0.3s ease;
}

.app-sidebar-toggle .svg-icon {
    color: var(--muted) !important;
}

.app-sidebar-toggle.active .svg-icon {
    color: var(--dark-primary) !important;
}

.rotate-90 svg {
    transition: all 0.3s ease;
}

.rotate-90:hover svg {
    transform: rotate(90deg);
    transition: all 0.3s ease;
}

.link-yellow {
    color: var(--dark-primary) !important;
}

.card-reservation {
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.999s;
}

.card-reservation:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    top: 0;
    left: 0;
    padding: 20px;
    box-sizing: border-box;
}

.card-front {
    background-color: var(--lighter-primary);
    color: var(--dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--light-primary);
    border-radius: 10px;
    transform: rotateY(0deg);
}

.card-back {
    background-color: var(--lighter-primary);
    color: var(--dark);
    align-items: center;
    border: 3px solid var(--dark-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    justify-content: center;
    transform: rotateY(180deg);
}

.radius-10px {
    border-radius: 10px;
    overflow: hidden;
}

.max-h-400px {
    max-height: 400px;
    overflow-y: auto;
}

#quick-actions {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: 18vh !important;
}

.table-yellow {
    background-color: white;
    border: var(--primary) 2px solid !important;
    border-radius: 10px !important;
    padding: 10px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .btn-pos {
    background-color: white !important;
    color: black !important;
    border-radius: 5px !important;
    padding: 10px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .btn-pos:hover {
    background-color: var(--light-primary) !important;
    color: black !important;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .btn-pos {
    background-color: var(--dark) !important;
    color: white !important;
    border-radius: 5px !important;
    padding: 10px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .btn-pos:hover {
    background-color: var(--darker-primary) !important;
    color: white !important;
    transition: all 0.3s ease;
}

[data-bs-theme="light"] .btn-pos i {
    color: black !important;
}

[data-bs-theme="dark"] .btn-pos i {
    color: white !important;
}

.text-tertary {
    color: #757575;
}

.product-item.out-of-stock {
    opacity: 0.6;
    position: relative;
}

.product-item.out-of-stock::after {
    content: "Out of Stock";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
}

[data-bs-theme="light"] .swal2-styled.swal2-confirm {
    background-color: rgba(0, 0, 0, 0) !important;
    border: 2px solid var(--primary) !important;
    color: black !important;
    transition: all 0.3s ease;
}

[data-bs-theme="light"] .swal2-styled.swal2-confirm:hover {
    background-color: rgba(243, 198, 35, 0.5) !important;
    transition: all 0.3s ease;
}

.border-custom {
    border: 1px solid #eaecf0 !important;
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.border-custom:hover {
    border-color: #dbdfe9 !important;
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.08) !important;
    transform: translateY(-2px);
}

.border-custom-dashed{
    border: 3px dashed #e1e3ea !important;
}

/* ===== Compact toggle button ===== */
#toggle-compact-categories {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #5e6278;
    background: var(--bs-body-bg, #fff);
    border: 1px solid var(--bs-border-color, #e1e3ea);
    border-radius: .65rem;
    transition: color .12s ease, border-color .12s ease, background .12s ease;
}
#toggle-compact-categories:hover,
#toggle-compact-categories.active-compact {
    color: #f1bc00;
    border-color: #f1bc00;
    background: rgba(241, 188, 0, .1);
}

/* ===== Product card states & feedback ===== */
.product-item {
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease, filter .12s ease;
}
.product-item.out-of-stock { opacity: .55; filter: grayscale(60%); }
.product-item.out-of-stock .text-success { text-decoration: line-through; }

/* start image preview */
.remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: rgba(0, 0, 0, 0.7);
    color: white !important;
    border: none;
    font-size: 14px;
    width: 20px !important;
    height: 30px !important;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
}

.image-wrapper:hover .remove-btn {
    display: flex;
}
/* end image preview */

/* start switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #2196f3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
/* end switch */

.bg-custom-1 {
    background-color: var(--success);
}

.bg-custom-2 {
    background-color: var(--warning);
}

#shop-iframe {
    width: 100%;
    height: 720px;
}

.warning-sign,
.arrow-sign {
    font-size: 3rem !important;
}

.custom-dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 0.375rem;
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-dropzone:hover {
    border-color: var(--primary);
    background: #e9ecef;
}

.custom-dropzone.dz-drag-hover {
    border-color: var(--primary);
    background: #e3f2fd;
}

.dz-message {
    flex-direction: column;
    align-items: center;
}

.dz-preview {
    margin: 10px;
}

.dz-image {
    border-radius: 0.375rem;
}

.dz-success-mark,
.dz-error-mark {
    display: none;
}

#bannerPreview {
    transition: all 0.5s ease;
}

.upload-dimensions {
    font-size: 0.8em;
    color: #6c757d;
}

.image-input-wrapper {
    position: relative;
    border-radius: 0.375rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}

.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

.dz-preview {
    position: relative;
    display: inline-block;
    margin: 10px;
    transition: all 0.3s ease;
}

.dz-error {
    border: 2px solid #dc3545 !important;
}

.dz-success .dz-image {
    border: 2px solid #28a745 !important;
}

.dz-preview .dz-image {
    border-radius: 0.375rem;
    overflow: hidden;
    width: 100px;
    height: 100px;
}

.dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dz-preview .dz-remove {
    cursor: pointer;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    z-index: 100;
}

.dz-preview .dz-progress {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    border-radius: 4px;
    width: 80%;
}

.dz-preview .dz-upload {
    display: block;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.dz-success-mark,
.dz-error-mark {
    display: none !important;
}

.dz-error-message {
    display: none;
}

#aboutSectionDropzone .dz-message {
    min-height: 100px;
    justify-content: center;
}

.saved-barcodes-container {
    max-height: 300px;
    overflow-y: auto;
}

.saved-barcode-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.saved-barcode-item:last-child {
    border-bottom: none;
}

/* Intro.js */
.introjs-tooltip {
    min-width: min(400px, 90vw) !important;
    max-width: min(400px, 92vw) !important;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.introjs-tooltiptext {
    padding: 0 20px 20px 20px;
    text-align: center;
}

.introjs-tooltiptext h3 {
    color: #000;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.introjs-tooltiptext p {
    color: #6c757d;
    margin-bottom: 8px;
    line-height: 1.5;
}

.introjs-tooltip-header {
    padding: 15px 20px 0;
}

.introjs-tooltipbuttons {
    border-top: 1px solid #e9ecef;
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.introjs-progress {
    background-color: #e9ecef;
    border-radius: 10px;
    height: 6px;
    margin: 0 10px;
    flex: 1;
}

.introjs-progressbar {
    background: #f3c623 !important;
    background-color: #f3c623 !important;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.introjs-button {
    border-radius: 8px !important;
    text-shadow: none !important;
    font-weight: 500 !important;
    font-style: normal !important;
    font-family: inherit !important;
    font-size: 14px !important;
    padding: 8px 20px !important;
    transition: all 0.2s ease-in-out;
    min-width: 90px;
    letter-spacing: normal !important;
}

.introjs-skipbutton {
    color: #6c757d;
    order: 1;
    width: auto !important;
    padding: 0 8px;
    font-size: 16px !important;
}

.introjs-prevbutton {
    background-color: #6c757d !important;
    color: white !important;
    border-color: #6c757d !important;
    order: 2;
}

.introjs-prevbutton:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
}

.introjs-nextbutton,
.introjs-donebutton,
.introjs-prevbutton {
    text-align: center;
}

.introjs-nextbutton,
.introjs-donebutton {
    background: #f3c623 !important;
    color: #1a1a1a !important;
    border-color: #f3c623 !important;
    order: 3;
}

.introjs-nextbutton:hover,
.introjs-donebutton:hover {
    background: #e0b520 !important;
    border-color: #e0b520 !important;
    box-shadow: 0 4px 15px rgba(243, 198, 35, 0.35);
}

.introjs-bullets {
    display: none;
}

.introjs-bullets ul li a {
    background: #e9ecef;
}

.introjs-helperNumberLayer {
    background: #f3c623;
    color: #1a1a1a;
    font-weight: 600;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(243, 198, 35, 0.4);
}

.introjs-overlay {
    opacity: 0.5 !important;
}

.introjs-helperLayer {
    border: 2px solid #ffc107;
    box-shadow:
        0 0 0 10000px rgba(0, 0, 0, 0.5),
        0 0 15px rgba(255, 193, 7, 0.5);
}

/* Dashboard: use custom yellow (--primary) only */
#kt_content_container .btn-dashboard-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #1b1b1d !important;
}

#kt_content_container .btn-dashboard-primary:hover {
    background-color: var(--dark-primary) !important;
    border-color: var(--dark-primary) !important;
    color: #fff !important;
}

#kt_content_container .bg-dashboard-yellow {
    background-color: var(--lighter-primary) !important;
}

#kt_content_container .text-dashboard-yellow {
    color: var(--primary) !important;
}

#kt_content_container .text-dashboard-yellow-dark {
    color: var(--dark-primary) !important;
}

#kt_content_container .symbol-label.bg-dashboard-yellow {
    background-color: var(--primary) !important;
    color: #1b1b1d !important;
}

#kt_content_container .symbol-label.bg-dashboard-yellow-light {
    background-color: var(--lighter-primary) !important;
    color: var(--dark-primary) !important;
}

#kt_content_container .border-dashboard-yellow {
    border-color: var(--light-primary) !important;
}

#kt_content_container a.text-hover-dashboard:hover {
    color: var(--dark-primary) !important;
}

/* Hero on dark background (black/yellow/white like super admin) */
.dashboard-hero-dark .btn-custom-primary {
    color: var(--primary) !important;
}

.dashboard-hero-dark .btn-custom-primary:hover {
    color: #1b1b1d !important;
}

.dashboard-hero-dark .dashboard-progress-track {
    background: rgba(255, 255, 255, 0.2);
}

.dashboard-hero-dark .dashboard-progress-bar {
    background: var(--primary);
}

.hover-elevate-up {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hover-elevate-up:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

/* Onboarding roadmap – cleaner layout */
.dashboard-onboard-progress {
    border-radius: 4px;
    overflow: hidden;
}

.dashboard-onboard-progress-bar {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.dashboard-roadmap .roadmap-step {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.2s ease;
}

.dashboard-roadmap .roadmap-step:last-child {
    border-bottom: none;
}

.dashboard-roadmap .roadmap-step:hover {
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.dashboard-roadmap .roadmap-step-indicator {
    position: relative;
}

.dashboard-roadmap .roadmap-step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--lighter-primary);
    color: var(--dark-primary);
    border: 2px solid var(--light-primary);
}

.dashboard-roadmap .roadmap-step-done .roadmap-step-num {
    background: var(--primary);
    color: #1b1b1d;
    border-color: var(--dark-primary);
}

.dashboard-roadmap .roadmap-step-done .roadmap-step-num i {
    font-size: 1.25rem;
}

.dashboard-roadmap .roadmap-step-connector {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 2px;
    height: calc(100% + 0.5rem);
    min-height: 20px;
    background: color-mix(in srgb, var(--primary) 35%, transparent);
    transform: translateX(-50%);
    border-radius: 1px;
}

.dashboard-roadmap .roadmap-step-done .roadmap-step-connector {
    background: var(--primary);
    opacity: 0.6;
}

.dashboard-roadmap .roadmap-step-done .roadmap-step-content h3 {
    color: var(--dark-primary) !important;
}

.dashboard-roadmap .roadmap-step-content .roadmap-desc {
    color: #5e6278;
}

.dashboard-roadmap .roadmap-step-locked {
    opacity: 0.45;
    pointer-events: none;
}

.dashboard-roadmap .roadmap-step-locked .roadmap-step-num {
    background: #e4e6ef;
    color: #a1a5b7;
}

.dashboard-roadmap .roadmap-step-locked:hover {
    background: transparent;
}

.dashboard-onboard-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.dashboard-onboard-card:hover {
    border-color: var(--light-primary);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 18%, transparent);
}

.dashboard-onboard-card .card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--lighter-primary);
    color: var(--dark-primary);
}

.dashboard-onboard-card .btn-outline-dashboard {
    border: 2px solid var(--primary);
    color: var(--dark-primary);
    background: transparent;
}

.dashboard-onboard-card .btn-outline-dashboard:hover {
    background: var(--lighter-primary);
    border-color: var(--dark-primary);
    color: var(--darker-primary);
}

/* Sidebar tip & guide cards */
.dashboard-sidebar-card .sidebar-card-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-sidebar-card .sidebar-card-header h5 {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin: 0;
}

.dashboard-sidebar-card .sidebar-card-header i {
    color: white;
    font-size: 1.5rem;
    padding-right: 5px;
}

.dashboard-sidebar-card .sidebar-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 198, 35, 0.13);
    flex-shrink: 0;
}

.dashboard-sidebar-card .sidebar-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar-card .sidebar-tip-item:last-child {
    border-bottom: none;
}

.dashboard-sidebar-card .sidebar-guide-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease;
}

.dashboard-sidebar-card .sidebar-guide-link:last-child {
    border-bottom: none;
}

.dashboard-sidebar-card .sidebar-guide-link:hover {
    background: rgba(255, 255, 255, 0.04);
}

.dashboard-sidebar-card .guide-chevron {
    opacity: 0;
    transform: translateX(-5px);
    transition:
        opacity 0.15s ease,
        transform 0.15s ease;
}

.dashboard-sidebar-card .sidebar-guide-link:hover .guide-chevron {
    opacity: 1;
    transform: translateX(0);
}

/* ── Views chart card ─────────────────────────────────────────────────── */
#chart-period-btns .chart-period-btn {
    border: none;
    border-right: 1px solid #e4e6ef;
    border-radius: 0;
    background: transparent;
    color: #7e8299;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    transition:
        background 0.15s,
        color 0.15s;
    white-space: nowrap;
}
#chart-period-btns .chart-period-btn:last-child {
    border-right: none;
}
#chart-period-btns .chart-period-btn:hover {
    background: var(--lighter-primary);
    color: var(--dark-primary);
}
#chart-period-btns .chart-period-btn.active {
    background: var(--primary);
    color: #1b1b1d;
    font-weight: 700;
}

/* Login */
.login-banner {
    width: 100%;
    max-width: 500px;
    margin-right: auto;
    margin-left: auto;
}

/* dropzone */
#secondaryImagesDropzone .dz-preview { cursor: grab; }
#secondaryImagesDropzone .dz-preview:active { cursor: grabbing; }
#secondaryImagesDropzone .dz-sortable-ghost { opacity: 0.3; }

/* Digital files dropzone — override Dropzone default styles */
#digitalFilesDropzone {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    padding: 8px !important;
    min-height: 60px !important;
}
#digitalFilesDropzone .dz-message { width: 100%; margin: 4px 0; }
#digitalFilesDropzone .dz-preview {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 10px !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 6px !important;
    margin: 0 !important;
    background: #fff;
    flex: 0 0 calc(33% - 3px);
    min-width: 0;
    position: relative;
    vertical-align: unset;
    box-sizing: border-box;
}
#digitalFilesDropzone .dz-preview .dz-image,
#digitalFilesDropzone .dz-preview .dz-success-mark,
#digitalFilesDropzone .dz-preview .dz-error-mark,
#digitalFilesDropzone .dz-preview .dz-details { display: none !important; }
#digitalFilesDropzone .dz-preview .dz-remove {
    color: #dc3545 !important;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    flex-shrink: 0;
    margin-left: auto;
}
#digitalFilesDropzone .dz-preview .dz-progress {
    position: static !important;
    height: 2px !important;
    width: 100% !important;
    margin: 3px 0 0 !important;
    opacity: 1 !important;
    background: #e9ecef !important;
    border: none !important;
    border-radius: 2px !important;
    overflow: hidden;
}
#digitalFilesDropzone .dz-preview .dz-upload {
    display: block;
    height: 100%;
    background: #009ef7 !important;
    transition: width 0.3s ease;
}
#digitalFilesDropzone .dz-preview.dz-success .dz-progress { display: none !important; }
#digitalFilesDropzone .dz-preview.dz-error { border-color: #dc3545 !important; }

/* Product Feature — admin form badge preview */
.feature-badge-preview-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 36px;
    padding: 4px 0;
}
.feature-admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 400;
    background: #f8f9fa;
    color: #212529;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: default;
}

/* setup page */
.business-type-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 4px;
}
@media (max-width: 480px) {
    .business-type-grid { grid-template-columns: repeat(3, 1fr); }
}
.business-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border: 2px solid #e4e6ef;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    background: #fff;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #7e8299;
    user-select: none;
}
.business-type-card:hover {
    border-color: #f3c623;
    background: #fffdf0;
    color: #181c32;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 198, 35, 0.25);
}
.business-type-card.selected {
    border-color: #f3c623;
    background: linear-gradient(145deg, #fffdf0, #fff8d0);
    color: #181c32;
    box-shadow: 0 4px 14px rgba(243, 198, 35, 0.35);
    transform: translateY(-2px);
}
.business-type-card i {
    font-size: 20px;
    transition: color 0.2s;
    color: #a1a5b7;
}
.business-type-card:hover i,
.business-type-card.selected i {
    color: #c9a400;
}
.business-type-grid.is-invalid .business-type-card {
    border-color: #f1416c;
}

@media only screen and (max-width: 600px) {
    .backup-img {
        height: 150px;
    }

    .calculator {
        width: 100%;
    }

    #quick-actions {
        overflow: auto;
    }

    .draft-name {
        max-width: 120px;
    }

    .introjs-tooltip {
        min-width: 90% !important;
    }
}

.variant-help-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.78rem;
    color: #64748b;
}
.variant-help-chip i {
    font-size: 0.72rem;
    color: #94a3b8;
}
.variant-help-chip strong {
    color: #334155;
}

.advanced-chevron {
    transition: transform 0.25s ease;
}

/* Empty state (datatable index pages) */
.empty-state {
    min-height: 280px;
}

.empty-state-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.empty-state-icon i{
    font-size: 2.5rem;
}

[data-bs-theme="light"] .empty-state-icon {
    background-color: var(--lighter-primary);
    border: 1px solid rgba(243, 198, 35, 0.35);
}

[data-bs-theme="dark"] .empty-state-icon {
    background-color: rgba(243, 198, 35, 0.12);
    border: 1px solid rgba(243, 198, 35, 0.25);
}

.empty-state-title {
    color: inherit;
}

.empty-state-text {
    max-width: 420px;
}

/* When the app sidebar is minimized, collapse the nav group heading rows (whose
   text is otherwise clipped, leaving empty bands) into a slim divider line.
   Desktop only: below 992px the sidebar is a drawer that never minimizes, and the
   :not(:hover) branch would otherwise collapse the headings on touch devices until
   the tap applies sticky :hover — the reflow that follows shifts the menu down
   mid-tap and the click lands on the wrong item. */
@media (min-width: 992px) {

    [data-kt-app-sidebar-minimize="on"]:not([data-kt-app-sidebar-hoverable="true"]) #kt_app_sidebar .nav-group-heading,
    [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"] #kt_app_sidebar:not(:hover) .nav-group-heading {
        padding: 0 !important;
        margin: 7px 14px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    [data-kt-app-sidebar-minimize="on"]:not([data-kt-app-sidebar-hoverable="true"]) #kt_app_sidebar .nav-group-heading .menu-content,
    [data-kt-app-sidebar-minimize="on"][data-kt-app-sidebar-hoverable="true"] #kt_app_sidebar:not(:hover) .nav-group-heading .menu-content {
        display: none !important;
    }
}
