:root {
    --clr-primary: var(--dynamic-primary, #c52127);
    --secondary-color: var(--dynamic-secondary, #0071bc);
    --sidebar-color: var(--dynamic-sidebar, #ffffff);
    --clr-secondary: #0071bc;
    --clr-white: #fff;
    --clr-black: #000;
    --clr-dark: #101828;
    --clr-light: #344054;
    --clr-light-sm: #dee2e6;
}

/* ============================================
   SIDEBAR - LIGHT MODE (white bg + dark text)
   Scoped with :root:not([data-theme="dark"]) so
   dark-mode.css still takes over when dark theme
   ============================================ */
:root:not([data-theme="dark"]) .side-bar {
    background: #ffffff !important;
    box-shadow: 0 0 8px rgba(45, 51, 103, 0.12) !important;
}

:root:not([data-theme="dark"]) .side-bar-logo {
    border-bottom-color: #eeeeee;
}

:root:not([data-theme="dark"]) .sb-cat-header {
    color: rgba(0, 0, 0, 0.35);
}

:root:not([data-theme="dark"]) .side-bar-manu li a {
    color: #3c4257 !important;
}

:root:not([data-theme="dark"]) .side-bar-manu li .dropdown-menu li a {
    color: #3c4257 !important;
}

:root:not([data-theme="dark"]) .side-bar-manu li .dropdown-menu li a:hover,
:root:not([data-theme="dark"]) .side-bar-manu li .dropdown-menu li a.active {
    color: #000000 !important;
    background: rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px;
}

:root:not([data-theme="dark"]) .side-bar-manu li a .sidebar-icon {
    color: #6b7280 !important;
}
:root:not([data-theme="dark"]) .side-bar-manu li a .sidebar-icon svg {
    fill: #6b7280 !important;
}
:root:not([data-theme="dark"]) .side-bar-manu li a .sidebar-icon svg path {
    fill: #6b7280 !important;
}
/* Business stroke icons: keep outline (stroke) not fill */
:root:not([data-theme="dark"]) .side-bar-manu li a .sidebar-icon svg [stroke],
:root:not([data-theme="dark"]) .side-bar-manu li a .sidebar-icon svg path[stroke],
:root:not([data-theme="dark"]) .side-bar-manu li a .sidebar-icon svg circle[stroke],
:root:not([data-theme="dark"]) .side-bar-manu li a .sidebar-icon svg rect[stroke] {
    fill: none !important;
    stroke: #6b7280 !important;
}

:root:not([data-theme="dark"]) .side-bar-manu li.active > a {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #000000 !important;
    border-radius: 10px;
}

:root:not([data-theme="dark"]) .side-bar-manu li:hover > a {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #000000 !important;
    border-radius: 10px;
}

:root:not([data-theme="dark"]) .side-bar-manu li.active::after,
:root:not([data-theme="dark"]) .side-bar-manu li:hover::after {
    display: none !important;
}

:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon,
:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon {
    color: var(--clr-primary) !important;
}
:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon svg {
    fill: var(--clr-primary) !important;
}

:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon svg path {
    fill: var(--clr-primary) !important;
}

:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon svg {
    fill: var(--clr-primary) !important;
}

:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon svg path {
    fill: var(--clr-primary) !important;
}
/* Business stroke icons: active/hover keep stroke outline */
:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon svg [stroke],
:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon svg path[stroke],
:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon svg circle[stroke],
:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon svg rect[stroke],
:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon svg [stroke],
:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon svg path[stroke],
:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon svg circle[stroke],
:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon svg rect[stroke] {
    fill: none !important;
    stroke: var(--clr-primary) !important;
}

:root:not([data-theme="dark"]) .side-bar-manu .sidebar-icon img {
    filter: brightness(0) opacity(0.55);
}

:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(86%) saturate(7394%) hue-rotate(351deg) brightness(92%) contrast(95%);
}

:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(86%) saturate(7394%) hue-rotate(351deg) brightness(92%) contrast(95%);
}

:root:not([data-theme="dark"]) .side-bar-manu .dropdown::before {
    color: #9aa0ac;
}

:root:not([data-theme="dark"]) .side-bar-manu li:hover > .dropdown::before,
:root:not([data-theme="dark"]) .side-bar-manu .dropdown:hover::before,
:root:not([data-theme="dark"]) .side-bar-manu .dropdown.active > .dropdown::before {
    color: var(--clr-primary);
}

:root:not([data-theme="dark"]) .side-bar-manu li.active:before {
    color: var(--clr-primary) !important;
}

:root:not([data-theme="dark"]) .side-bar-manu .dropdown.active>.dropdown-menu .dropdown.active>a,
:root:not([data-theme="dark"]) .side-bar-manu .dropdown.active>.dropdown-menu .dropdown.active .active {
    background: rgba(0, 0, 0, 0.06) !important;
    border-radius: 10px;
}

:root:not([data-theme="dark"]) .side-bar-manu .dropdown.active .active {
    background-color: rgba(0, 0, 0, 0.06) !important;
    border-radius: 10px;
}

:root:not([data-theme="dark"]) .side-bar-manu li .dropdown-menu li a:hover,
:root:not([data-theme="dark"]) .side-bar-manu li .dropdown-menu li a.active {
    color: #000000 !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border-radius: 10px;
}

:root:not([data-theme="dark"]) .side-bar .version-text {
    color: #6b7280 !important;
}

/* ============================================
   SIDEBAR LOGO - landing-page brand
   (posLogoMark + "PosPro") light & dark ready
   ============================================ */
.side-bar-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 18px;
}

.side-bar-logo .sb-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    text-decoration: none;
}

.side-bar-logo .sb-logo-mark {
    height: 30px;
    width: auto;
    flex: none;
}

.side-bar-logo .sb-logo-text {
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.4px;
    color: #101828;
    white-space: nowrap;
    transition: color 0.18s ease;
}

:root:not([data-theme="dark"]) .side-bar-logo {
    border-bottom-color: #eeeeee;
}

:root:not([data-theme="dark"]) .side-bar-logo .sb-logo-text {
    color: #101828;
}

html[data-theme="dark"] .side-bar-logo {
    border-bottom-color: var(--dm-border, #2a2a35);
}

html[data-theme="dark"] .side-bar-logo .sb-logo-text {
    color: var(--dm-text-primary, #e4e4e8);
}

/* collapsed (60px) sidebar: icon only */
.side-bar.active .side-bar-logo .sb-logo-text {
    display: none;
}

.side-bar.active .side-bar-logo .sb-logo-link {
    justify-content: center;
    width: 100%;
}

/* expanded on hover (large devices): logo text is shown again */
.side-bar.active:hover .side-bar-logo .sb-logo-text {
    display: inline-block;
}

.side-bar.active:hover .side-bar-logo .sb-logo-link {
    justify-content: flex-start;
    width: auto;
}

/* sidebar stays above the navbar on all breakpoints */
.side-bar {
    z-index: 80;
}

[dir="rtl"] .side-bar {
    z-index: 80 !important;
}

/* auth pages (login/forgot/reset): theme-aware background, no brand red */
:root:not([data-theme="dark"]) .footer,
:root:not([data-theme="dark"]) .footer .footer-logo {
    background-color: #f7f7f7;
}

html[data-theme="dark"] .footer .footer-logo {
    background-color: var(--dm-bg-primary);
}

/* auth pages: sidebar-style logo centered, toggle on the same row */
.footer .footer-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 28px 0;
}

.footer .footer-logo .auth-logo-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.footer .footer-logo .auth-logo-link .sb-logo-mark {
    height: 30px;
    width: auto;
}

.footer .footer-logo .auth-logo-link .sb-logo-text {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #101828;
    white-space: nowrap;
}

html[data-theme="dark"] .footer .footer-logo .auth-logo-link .sb-logo-text {
    color: var(--dm-text-primary, #e4e4e8);
}

.auth-theme-toggle {
    display: flex;
    align-items: center;
    z-index: 1080;
}

/* login page (only): bigger logo */
.footer .footer-logo .auth-logo-link.auth-logo-lg .sb-logo-mark {
    height: 42px;
}

.footer .footer-logo .auth-logo-link.auth-logo-lg .sb-logo-text {
    font-size: 30px;
}

/* auth pages: mobile responsive */
@media (max-width: 1200px) {
    .footer .footer-logo {
        display: flex !important;
    }
}

@media (max-width: 575px) {
    .footer {
        min-height: 100vh;
        padding: 10px 0;
    }

    .footer .footer-logo {
        padding: 14px 18px 0;
    }

    .mybazar-login-section {
        height: auto !important;
        min-height: calc(100vh - 90px);
        padding: 0 8px;
        overflow: hidden;
    }

    .mybazar-login-section .mybazar-login-wrapper {
        margin: 20px 0 30px !important;
        width: 100% !important;
    }

    .mybazar-login-section .mybazar-login-wrapper .login-wrapper {
        width: 100%;
        max-width: 100%;
        padding: 24px 20px !important;
    }

    .mybazar-login-section .login-wrapper h2 {
        font-size: 22px;
        line-height: 30px;
        flex-wrap: wrap;
    }

    .mybazar-login-section .login-wrapper h2 span {
        margin-left: 0;
        display: block;
        margin-top: 2px;
    }

    .mybazar-login-section .login-wrapper h6 {
        font-size: 15px;
        line-height: 22px;
    }

    .login-body {
        padding: 0 !important;
    }
}

/* on small screens the sidebar opens full-width (300px);
   .active is used for "open", so undo collapsed behavior */
@media (max-width: 1150px) {
    .side-bar.active .side-bar-logo .sb-logo-text {
        display: inline-block;
    }

    .side-bar.active .side-bar-logo .sb-logo-link {
        justify-content: flex-start;
        width: auto;
    }

    .side-bar.active .sb-cat-header {
        display: block !important;
    }

    .side-bar.active .side-bar-manu li a .sidebar-icon {
        margin-right: 10px;
        position: static;
        left: auto;
    }

    .side-bar.active:hover {
        width: 300px !important;
    }

    .side-bar.active .side-bar-manu li a {
        white-space: normal;
    }
}

/* ============================================
   SIDEBAR CLOSE BUTTON - light & dark ready
   ============================================ */
.close-btn {
    position: absolute;
    right: 14px;
    top: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: transparent;
    border: 1px solid transparent;
    color: #5b6270;
    font-size: 15px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

:root:not([data-theme="dark"]) .close-btn {
    color: #5b6270;
}

:root:not([data-theme="dark"]) .close-btn:hover {
    color: var(--clr-primary);
    background: rgba(197, 33, 39, 0.06);
}

html[data-theme="dark"] .close-btn {
    color: var(--dm-text-secondary, #a0a0a8);
}

html[data-theme="dark"] .close-btn:hover {
    color: var(--clr-primary);
    background: rgba(197, 33, 39, 0.12);
}

@media (max-width: 1150px) {
    .close-btn {
        display: flex;
    }
}

.mybazar-login-section .forget-password input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid #d0d5dd !important;
    background: var(--clr-primary) !important;
    margin-right: 5px;
    margin-top: -1px;
}

.text-custom-primary,
.text-custom-primary:hover {
    color: var(--clr-primary);
    font-weight: bold;
}

.mybazar-login-section .forget-password input[type="checkbox"]:checked+.custom-control-label::before {
    color: #ffffff;
}

.mybazar-login-section .forget-password input[type="checkbox"]:checked {
    accent-color: #3291d4 !important;
}

.indicate-text {
    font-size: 12px;
    color: red;
}

.form-control.error {
    border-color: red;
    padding: 0.375rem 0.75rem;
}

.image-wrapper.error {
    border-color: red;
    padding: 0.375rem 0.75rem;
}

.error-alert {
    font-size: 11px;
    color: red;
}

.error {
    color: red !important;
}

.payment-section .form-control[readonly] {
    background-color: #fff !important;
}

.budget-form ::placeholder {
    font-size: 12px;
}

.avatar {
    background: var(--clr-primary);
    border-radius: 50%;
    color: #e3eaef;
    display: inline-block;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    position: relative;
    vertical-align: middle;
    line-height: 1.28;
    height: 45px;
    width: 45px;
}

.avatar.avatar-sm {
    font-size: 12px;
    height: 30px;
    width: 30px;
}

.avatar img {
    border-radius: 50%;
    height: 100%;
    position: relative;
    width: 100%;
    z-index: 1;
}

.btn-custom-warning {
    background-color: var(--clr-primary) !important;
    color: #fff;
    border: none !important;
}

.btn-custom-warning:hover {
    color: #fff !important;
}

.custom-warning-color {
    color: var(--clr-primary);
}

.roles-permissions table td {
    color: black;
}

.img-preview {
    margin-top: 4px;
    height: auto;
    width: 100px;
}

.folders-files tr a {
    font-size: 18px !important;
}

.gradient-row {
    background: linear-gradient(270deg, #dbe4df 0%, #65e4a6 50%, #ffffff 100%);
}

.order-form-section label,
.permission label,
.role-input-label label {
    left: 10px;
    white-space: nowrap;
}

.table-form-section .responsive-table {
    min-height: unset !important;
}

.table-title-three h5 {
    font-weight: 600 !important;
}

.loss-profit-custom-color1 {
    background-color: rgba(255, 132, 0, 0.15);
}

.loss-profit-custom-color2 {
    background-color: rgba(255, 181, 101, 1);
    font-weight: bold;
}

.production-wrap {
    padding-right: 60px;
}

.form-control.reset-img {
    display: none;
}

.table-header h3,
.table-header h4 {
    font-weight: 700;
}

.privacy-condition-header h4 {
    font-weight: 700;
}

.erp-new-invice .invice-detaisl {
    padding: 20px 0;
}

.commercial-invoice {
    margin-bottom: 30px;
}

.invoice-payment-details {
    margin-top: 40px;
}

.erp-new-invice {
    min-height: 900px !important;
}

/* dropdown font size reduce */
.form-select {
    font-size: 1rem;
}

.product-img {
    height: 100px;
    width: 250px;
    border-radius: 2%;
    overflow: hidden;
    border: 2px dashed #e4e5e7;
}

.form-control .form-control {
    border: 0 !important;
}

.table-user-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: var(--clr-gray4);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.table-user-icon img {
    height: 25px;
}

.ctg-icon img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
}

/*delete modal*/
.delete-modal {
    text-align: center;
    margin-bottom: 20px;
}

.delete-modal h5 {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 5px;
}

.delete-modal p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.multiple-button-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 24px;
}

.chart-css {
    width: 100% !important;
    max-height: 308px !important;
    min-height: 290px;
}

.rounded-image .table-img {
    width: 40px;
    height: 40px;
}

.width-10 {
    width: 10px;
}

.add-feature-btn {
    min-height: 30px;
    padding: 4px 20px;
    background: var(--clr-primary) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 5px;
}

.feature-wrp {
    position: relative;
}

.delete-feature {
    position: absolute;
    top: 4px;
    right: 0;
    height: 20px;
    width: 20px;
    cursor: pointer;
}

.switch-container {
    padding-right: 25px;
}

.feature-add-wrp {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.feature-add-wrp .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.button-container {
    border: 1px solid #ccc;
    width: 100%;
    height: 45px;
    border-radius: 5px;
    display: inline-block;
}

.top-btn-custom {
    text-decoration: none;
    border: none;
}

.top-btn-custom:hover,
.top-btn-custom:active {
    color: #007bff;
    text-decoration: underline;
    border: none;
    text-underline-offset: 18px;
}

.top-btn-custom.active {
    text-decoration: underline;
    color: #007bff;
    font-weight: bold;
    border: none;
    text-underline-offset: 18px;
}

.card {
    border: 0;
    box-shadow: 0px 4px 24px 0px #e4c3c30d;
    border-radius: 12px;
    background-color: #fff !important;
}

.table th {
    border-bottom: 1px solid #d8d8d8 !important;
    background: #f9f8f8;
    border: 0;
    height: 54px;
}

.delete-selected {
    cursor: pointer;
}

.custom-primary {
    color: var(--clr-primary);
}

.table-hidden-checkbox {
    display: none;
}

/* Style the custom checkbox */
.table-custom-checkbox {
    display: inline-block;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    padding-left: 35px;
    line-height: 24px;
}

/* Create the custom checkmark */
.table-custom-checkmark {
    position: absolute;
    top: -9px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    transition:
        background-color 0.3s,
        border-color 0.3s;
}

/* Style the checkmark when checked */
.table-hidden-checkbox:checked+.table-custom-checkmark {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

/* Add the tick mark inside the checkbox */
.table-custom-checkbox .custom-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the tick mark when the checkbox is checked */
.table-custom-checkbox .table-hidden-checkbox:checked+.custom-checkmark:after {
    display: block;
}

/* Style the tick mark */
.table-custom-checkbox .custom-checkmark:after {
    left: 8px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Customize the label text color and size */
.table-custom-checkbox {
    color: #333;
    font-family: Arial, sans-serif;
}

/* Scoped fix for plans module checkbox alignment */
.enabled-modules-section .table-custom-checkbox {
    display: inline-flex;
    align-items: center;
    padding-left: 30px;
}
.enabled-modules-section .table-custom-checkmark {
    top: 50%;
    transform: translateY(-50%);
}
.enabled-modules-section .table-custom-checkbox .custom-checkmark:after {
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) rotate(45deg);
}

.dropdown-menu-scroll {
    max-height: 400px;
    overflow-y: auto;
    width: 220px;
    overflow-x: hidden !important;
}

.language-li {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-check {
    color: #00ae1c;
    font-weight: 400;
    font-size: 16px;
}

.verify-modal-body h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    color: #212121;
}

.verify-modal-body .des,
.verify-modal-body .des span {
    color: #4d4d4d;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.verify-modal-body .des {
    font-weight: 400 !important;
}

.verify-modal-body .des .reset {
    color: var(--clr-primary);
}

.verify-modal-body .code-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verify-modal-body .code-input input {
    width: 51px;
    height: 58px;
    padding: 14px 15px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    box-shadow: none !important;
}

.verify-modal-body .code-input input:focus {
    border: 1px solid var(--clr-primary) !important;
}

.verify-modal-body .code-input input:focus-visible {
    border: 1px solid var(--clr-primary) !important;
}

.verify-modal-body .des span {
    color: #121212;
}

.success-content {
    border-radius: 16px;
}

.success-modal-body h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    color: #121212;
    margin-bottom: 0px;
    padding-top: 8px;
    padding-bottom: 16px;
}

.create-account-body h4 {
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    color: #121212;
    margin-bottom: 0px;
}

.success-modal-body p {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #4d4d4d;
    margin-bottom: 24px;
}

.verify-btn {
    background-color: var(--clr-primary);
    color: white;
    width: 100%;
    padding: 10px 0px;
    margin-top: 12px;
}

.verify-btn:hover {
    color: white;
}

/********** Sales page code start **********/
.sales-container {
    background-color: white;
    border-radius: 15px 0 0 15px;
}

.quick-act-header {
    background-color: white;
    padding: 2% 0;
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
}

.sales-container .quick-act-title {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.sales-container .save-product-btn {
    background-color: #0ec03b1a;
    color: #4d4d4d;
    padding: 2px 6px;
    border-radius: 4px;
}

.sales-container .bulk-upload-btn {
    background-color: #567df41a;
    color: #4d4d4d;
    padding: 2px 6px;
    border-radius: 4px;
}

.sales-container .sales-btn {
    background-color: #9e0de81a;
    color: #4d4d4d;
    padding: 2px 6px;
    border-radius: 4px;
}

.sales-container .calculator-btn {
    background-color: #007aff1a;
    color: #4d4d4d;
    border: none;
}

.sales-container .dashboard-btn {
    background-color: #ff3b301a;
    color: #4d4d4d;
    padding: 2px 6px;
    border-radius: 4px;
}

.form-select:focus {
    outline: none;
    box-shadow: none;
    border-color: gray;
}

.btn-danger {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .btn-danger,
.input-group .btn-outline-secondary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-control {
    background-color: #f5f3f34d;
}

/* quick action table */
.icon {
    font-weight: 400;
    font-size: 13px;
}

.incre-decre {
    width: 20px !important;
    height: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d899 !important;
    border-radius: 3px !important;
    background-color: #fff !important;
}

.incre-decre:hover {
    background-color: #fef0f1 !important;
    border-color: var(--clr-primary) !important;
    color: var(--clr-primary) !important;
}

.num-input {
    border-radius: 5px;
    background-color: white;
}

.num-input input {
    background-color: white;
    width: 95px;
}

.hr-container {
    margin-top: 50px;
}

.hr-container hr {
    border: 1px solid var(--clr-primary) 4d;
}

.payment-title {
    font-size: 14px;
    display: flex;
    width: fit-content;
    font-weight: 400 !important;
}

.amount-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding-right: 12px;
}

.save-amount-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.save-btn {
    background-color: var(--secondary-color);
    color: white;
    width: 100%;
    border: none;
    height: 48px;
    border-radius: 6px;
}

.payment-btn {
    background-color: var(--clr-primary);
    color: white;
    width: 100%;
    border: none;
    height: 48px;
    border-radius: 6px;
}

.form-control-amount {
    background-color: white;
}

.payment-container {
    background-color: #f5f3f380;
    border-radius: 8px;
    padding: 12px 15px 5px 15px;
}

.cancel-sale-btn {
    margin-top: 15px;
}

.table-background {
    background-color: rgba(245, 243, 243, 0.5);
}

.discount-btn {
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    border-radius: 5px;
    background-color: transparent;
}

.main-container {
    background-color: white;
    padding: 0%;
}

.products-header {
    border: none;
    border-radius: 0px 12px 12px 0px !important;
    border-left: 1px solid #d8d8d8;
    padding: 12px;
    overflow: hidden;
    color: white;
}

.main-container .products-container {
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    z-index: 0 !important;
    position: relative;
}

.main-container .products-header .fa-search {
    color: white;
}

.main-container .products-header .category-btn {
    background-color: #ff9500;
    color: white;
    border: none;
    height: 48px;
    border-radius: 6px;
    padding-left: 15px;
    padding-right: 15px;
}

.main-container .products-header .brand-btn {
    background-color: #007aff;
    color: white;
    border: none;
    height: 48px;
    border-radius: 6px;
    padding-left: 15px;
    padding-right: 15px;
}

.search-input {
    border-radius: 0.25rem;
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
    border: 1px solid #ced4da;
    padding: 0.5rem;
    flex-grow: 1;
}

.btn-category {
    background-color: var(--secondary-color);
    color: white;
    padding-top: 9px;
    padding-bottom: 9px;
}

.btn-brand {
    background-color: #1e90ff;
    color: white;
    padding-top: 9px;
    padding-bottom: 9px;
}

.btn-brand:hover {
    background-color: #1b87f2;
    color: white;
    border: 1px solid white;
}

.btn-category:hover {
    background-color: #df8415;
    color: white;
    border: 1px solid white;
}

.btn-search {
    background-color: var(--clr-primary);
    color: white;
    border-radius: 0 0.25rem 0.25rem 0;
    border: 1px solid var(--clr-primary);
    width: 48px;
}

.btn-search:hover {
    border: 1px solid var(--clr-primary);
}

.btn-search svg {
    height: 25px;
    width: 25px;
}

.btn-search:hover,
.btn-search:focus,
.btn-search:active {
    background-color: var(--clr-primary);
    color: white;
    border: 1px solid var(--clr-primary);
}

/* Products section start */
/* .products {
    display: grid;
    grid-template-columns: 3fr !important;
    gap: 10px;

} */

.products .single-product {
    background-color: white;
    border-radius: 6px;
    border: 1px solid #d8d8d8;
    width: 100%;
    margin-top: 4px;
    cursor: pointer;
}

.products .single-product:hover {
    border: 1px solid var(--clr-primary);
}

.products .single-product .product-con {
    padding: 12px;
}

.products .single-product .pro-img img {
    border-radius: 6px;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    object-fit: cover;
    width: 100%;
    height: 145px;
}

.products .single-product .pro-title {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
}

.products .single-product .pro-price {
    font-weight: 600;
    font-size: 14px;
    color: #10B981;
}

.products .single-product .pro-category {
    color: #7c7c7c;
    font-size: 14px;
}

.products .single-product .price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
}

.products .single-product .price .old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: gray;
}

.custom-number-input {
    width: 40px;
    padding: 5px;
    border: 1px solid #4a90e2;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.custom-number-input:focus {
    border-color: #007bff;
}

.x-btn {
    border: none;
    background-color: white;
    border-radius: 5px;
}

.x-btn:hover {
    background-color: #f5f5f5;
    border-radius: 5px;
}

.product-dropdown {
    border: 1px solid #e4e5e7;
    border-radius: 6px;
    position: relative;
    background-color: #fff;
}

.product-left img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eaecf0;
}

.product-selected {
    padding: 11px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 46px;
    box-sizing: border-box;
}

/* Inventory - POS-like searchable Select Product (like business::sales.pos) */
#inventoryProductDropdown.product-dropdown {
    border: none;
    background: transparent;
    height: 48px;
    min-height: 48px;
    position: relative;
}

#inventoryProductDropdown .product-selected {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 12px;
    border: 1px solid #e4e5e7;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    background: #fff;
}

/* POS-like dropdown positioning — no extra offset (search is now inside input) */
#inventoryProductDropdown .product-dropdown-options,
#inventoryProductDropdown .search-dropdown {
    top: calc(100% + 8px) !important;
}

.product-selected #arrow svg {
    width: 20px;
    height: 20px;
}

.product-dropdown-options {
    position: absolute;
    top: 90px !important;
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    z-index: 3;
    display: none;
}

.product-option-group {
    border-top: 1px solid #eee;
    padding: 8px;
}

/* .product-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
} */

.product-option-item:hover {
    background-color: #f4f4f4;
}

.product-left {
    display: grid;
    gap: 10px;
    grid-template-columns: 2fr 38fr;
}

.multi-items {
    border-bottom: 1px solid #ececec;
    padding: 4px 0;
}

.multi-items:last-child {
    border-bottom: none;
}

.multi-items:hover {
    background-color: #eaeaea;
}

.product-left img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.product-text {
    font-size: 14px;
    position: relative;
}

.product-title {
    font-weight: bold;
    font-size: 15px;
}

.product-in-stock {
    color: #34c759;
    font-weight: 500;
}

.product-price {
    font-weight: bold;
    color: #10B981;
}

.product-rotate {
    transform: rotate(180deg);
}

/* Products section end */

.padding-status {
    color: #fb8a00;
    border: 1px solid #fb8a00;
    border-radius: 4px;
    background-color: #ff920c1a;
    max-width: 100px;
    padding: 7px;
    text-align: center;
}

.approved-status {
    color: #00a551;
    border: 1px solid #00a551;
    border-radius: 4px;
    background-color: #00a5511a;
    max-width: 100px;
    padding: 7px;
    text-align: center;
}

.rejected-status {
    color: #ff3b30;
    border: 1px solid #ff3b30;
    border-radius: 4px;
    background-color: #ff3b3021;
    max-width: 100px;
    padding: 7px;
    text-align: center;
}

.select-batch {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-batch:hover {
    background-color: #c5212712;
}

.gradient-alert {
    background: linear-gradient(270deg, #ff7db8 0%, #ee2a7b 100%);
}

.domain-instructions ol li {
    list-style: decimal;
    padding-left: 3px;
}

#fieldsContainer label {
    top: 0;
}

.choices__list--dropdown {
    z-index: 20 !important;
}

.placeholder-btn {
    cursor: pointer;
}

.serial-remove-btn,
.add-row-icon {
    cursor: pointer;
    color: #c52127;
    font-size: 16px;
}

.kot-picker-btn {
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #f8fafc;
    color: #64748b;
    border-left: 1px solid #e5e7eb;
    position: relative;
}

.share-btn {
    background-color: #CB30E0 !important;
}

.share-btn svg {
    height: 20px;
    width: 20px;
}

.share-option svg {
    height: 72px;
    width: 72px;
}

/* Backup Page Styles */
.backup-btn-save {
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
}

.backup-btn-generate {
    background-color: #6366f1;
    color: white;
    border: none;
    border-radius: 6px;
}

.backup-btn-save:hover,
.backup-btn-generate:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.backup-btn-save:hover,
.backup-btn-save:focus,
.backup-btn-save:active,
.backup-btn-save:focus-visible {
    background-color: #b91c1c;
    color: white;
    box-shadow: none;
}

.backup-btn-generate:hover,
.backup-btn-generate:focus,
.backup-btn-generate:active,
.backup-btn-generate:focus-visible {
    background-color: #4f46e5;
    color: white;
    box-shadow: none;
}

.backup-btn-save,
.backup-btn-generate {
    transition: all 0.3s ease;
}

.refresh-token-input {
    padding-right: 130px;
}

.btn-generate-token {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 2;
}

.btn-generate-token:hover {
    background-color: #4f48de;
    color: white;
    transform: translateY(-50%) scale(1.02);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.btn-generate-token:focus,
.btn-generate-token:active {
    background-color: #4f48de;
    color: white;
    box-shadow: none;
    transform: translateY(-50%);
}

.backup-form-control {
    width: 80px;
}

.backup-form-select {
    width: 120px;
}

/* Plan Edit: Subscriber Update Box */
.subscriber-warning-box {
    background-color: #fef9ee;
    border: 1px solid #fde9a8;
}

.subscriber-warning-icon {
    color: #d97706;
    font-size: 16px;
}

.subscriber-warning-title {
    font-size: 15px;
}

.subscriber-warning-text {
    font-size: 13px;
}

#apply_to_subscribers.form-check-input:checked {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

/* =====================
   Topbar search (POSpro design)
   ===================== */
.main-header-section .topbar-search {
    max-width: 380px;
    min-width: 0;
    position: relative;
}

.main-header-section .topbar-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    margin: 0;
    color: #8891a8;
    pointer-events: none;
}

.main-header-section .topbar-search input {
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 1.5px solid #e2e6f0;
    background: #f6f8fc;
    padding: 0 14px 0 38px;
    font-size: 13.5px;
    color: #10142a;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.main-header-section .topbar-search input::placeholder {
    color: #8891a8;
}

.main-header-section .topbar-search input:focus {
    border-color: var(--clr-primary);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--clr-primary) 14%, transparent);
}

/* ==========================================================================
   UNIFIED DATE/TIME PICKER - Custom calendar icon for light & dark mode
   - Removes default browser calendar icon
   - Uses same custom SVG for both modes (dark gray in light, white in dark)
   - Clicking icon opens native picker via transparent overlay + JS fallback
   ========================================================================== */

/* Light mode (default) - dark gray calendar icon for all date/time inputs */
input[type="date"],
input[type="month"],
input[type="datetime-local"],
input[type="week"] {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px 16px !important;
    padding-right: 38px !important;
}

input[type="time"] {
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px 16px !important;
    padding-right: 38px !important;
}

.form-control[type="date"],
.form-control[type="month"],
.form-control[type="time"],
.form-control[type="datetime-local"],
.form-control[type="week"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px 16px !important;
    padding-right: 38px !important;
}

.form-control[type="time"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E") !important;
}

/* Hide default browser icon but keep clickable area over custom icon */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator,
input[type="week"]::-webkit-calendar-picker-indicator {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    width: 38px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

input[type="date"]::-webkit-inner-spin-button,
input[type="month"]::-webkit-inner-spin-button,
input[type="time"]::-webkit-inner-spin-button {
    display: none !important;
    -webkit-appearance: none !important;
}

/* Firefox fallback */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="month"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-calendar-picker-indicator {
    opacity: 0 !important;
}

@media (max-width: 1199px) {
    .main-header-section .topbar-search {
        display: none;
    }
}

/* ==========================================================================
   Settings Page - Nav Tabs & Theme Default Card
   Moved from inline/internal css to external for maintainability
   ========================================================================== */
/* Settings nav tabs - transparent border style */
.nav-tabs .nav-link,
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link:focus,
.nav-tabs .nav-link:hover,
#settingsTab .nav-link.active,
#settingsTab .nav-link:focus,
#settingsTab .nav-link:hover,
.settings-link,
.settings-link.active,
.settings-link:hover {
    border: 1px solid transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    background: transparent !important;
}
.nav-tabs {
    --bs-nav-tabs-border-width: 1px;
    --bs-nav-tabs-link-active-border-color: transparent;
    --bs-nav-tabs-border-color: #d8d8d8;
    --bs-nav-tabs-link-hover-border-color: transparent;
}

/* Theme Default Mode Card - Light mode */
.theme-default-card {
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-default-card__icon {
    color: var(--clr-primary);
}
.theme-default-card__title {
    font-weight: 700;
    color: #111827;
}
.theme-default-card__desc {
    color: #6b6b75;
    font-size: 0.813rem;
    line-height: 1.5;
    margin-top: 0.25rem;
    display: block;
}
.theme-default-card__controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.theme-mode-label {
    font-size: 0.813rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0.45;
    transition: opacity 0.2s ease, color 0.2s ease;
    color: #374151;
    user-select: none;
}
.theme-mode-label.is-active {
    opacity: 1;
    color: #111827;
    font-weight: 600;
}
.theme-mode-switch {
    cursor: pointer;
    margin: 0;
}
.theme-default-card .badge {
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.35em 0.6em;
    font-size: 0.7rem;
    border-radius: 999px;
}
.theme-current-badge {
    font-weight: 400 !important;
    font-size: 0.68rem !important;
    letter-spacing: 0 !important;
}

/* ==========================================================
   Business sidebar icons - dynamic primary color
   Previously <img> icons used hardcoded filter for #C52127:
   filter: brightness(0) saturate(100%) invert(27%) sepia(86%) ...
   That did NOT change when admin primary_color changed.
   Now icons are inlined as SVG with stroke="currentColor" and
   colored via `color: var(--clr-primary)` so they follow
   --dynamic-primary from Super Admin theme_setting_admin.
   ========================================================== */
.side-bar-manu .sidebar-icon svg,
.side-bar-manu .sidebar-icon img {
    width: 22px;
    height: 22px;
    display: block;
}
.side-bar-manu .sidebar-icon {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
:root:not([data-theme="dark"]) .side-bar-manu .sidebar-icon {
    color: #6b7280;
}
:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon,
:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon {
    color: var(--clr-primary) !important;
}
/* override hardcoded filter for <img> fallback - use mask if JS not yet run */
:root:not([data-theme="dark"]) .side-bar-manu .sidebar-icon img {
    filter: brightness(0) opacity(0.55) !important;
}
:root:not([data-theme="dark"]) .side-bar-manu li.active > a .sidebar-icon img,
:root:not([data-theme="dark"]) .side-bar-manu li:hover > a .sidebar-icon img {
    /* fallback - will be replaced by inline SVG via JS */
    filter: brightness(0) saturate(100%) invert(27%) sepia(86%) saturate(7394%) hue-rotate(351deg) brightness(92%) contrast(95%) !important;
}
html[data-theme="dark"] .side-bar-manu .sidebar-icon {
    color: #a0a0a8;
}
html[data-theme="dark"] .side-bar-manu li.active > a .sidebar-icon,
html[data-theme="dark"] .side-bar-manu li:hover > a .sidebar-icon {
    color: var(--clr-primary) !important;
}
.sidebar-icon-mask {
    display: inline-block;
    width: 22px;
    height: 22px;
    vertical-align: middle;
    background-color: currentColor !important;
    -webkit-mask-size: contain !important;
    mask-size: contain !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
}
