:root {
    /* Color Palette */
    --primary-color: #3f2b83;
    --secondary-color: #ffffff;
    --menu-active: #f0ad62;
    --accent-color: #3f2b83;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;

    /* Background Colors */
    --body-bg: #fffaf5 !important;
    --card-bg: #ffffff;
    --sidebar-bg: #3f2b83;
    --login-bg: #cddffb;
    --header-bg: #3f2b83;
    --modal-header-bg: #3f2b83;
    --input-bg: #3f2b830a;
    --table-bg: #ffffff;
    --gray-bg: #f3f3f3;
    --light-bg: #f8f9fa;
    --dark-bg: #2e2d70;

    /* Text Colors */
    --text-primary: #646464;
    --text-dark: #323a46;
    --text-light: #98a6ad;
    --text-white: #ffffff;
    --text-heading: #7c351b;
    --text-muted: #6c757d;
    --text-black: #000000;

    /* Border Colors */
    --border-color: rgba(19, 19, 19, 0.4);
    --border-light: #e9ecef;
    --border-dark: #ced4da;
    --border-input: #d1d3e2;
    --border-custom: #ffa5bf;

    /* Shadow Colors */
    --shadow-color: rgba(0, 0, 0, 0.16);
    --shadow-lg-color: rgba(58, 59, 69, 0.15);

    /* Other Colors */
    --blue-color: #0b94f7;
    --red-color: #d32f2f;
    --red-dark: #b71c1c;
    --green-color: #155724;
    --yellow-color: #ffd700;
    --silver-color: #c0c0c0;
    --orange-color: #e37201;

    /* Overlay Colors */
    --overlay-light: rgba(19, 19, 19, 0.2);
    --overlay-white: rgba(255, 255, 255, 0.1);
    --overlay-dark: rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius: 10px;
    --border-radius-md: 12px;
    --border-radius-lg: 15px;
    --border-radius-xl: 30px;
    --border-radius-2xl: 50px;

    /* Font Family */
    --font-family: "Roboto", sans-serif;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 600;
    --font-weight-bolder: 700;

    /* Font Sizes */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;

    --product-card-bg: white;
    --product-card-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    --product-card-shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --product-title-color: #2d3748;
    --product-title-gradient: linear-gradient(135deg, #2d3748, #4a5568);
    --product-gallery-bg: #f8f9fa;
    --product-image-bg: white;
    --product-image-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --product-placeholder-bg: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    --product-placeholder-border: #dee2e6;
    --product-placeholder-color: #6c757d;
    --product-badge-bg: linear-gradient(135deg, #ff6b6b, #ee5a52);
    --product-badge-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    --product-thumb-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    --product-thumb-active-border: #3f2b83;
    --product-thumb-active-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    --product-price-primary: linear-gradient(135deg, #8b1a1a, #3f2b83);
    --product-price-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --product-price-danger: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    --product-price-warning: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    --product-price-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    --product-info-border: #e2e8f0;
    --product-info-hover-bg: #f7fafc;
    --product-info-label-color: #718096;
    --product-info-value-color: #2d3748;
    --product-spec-bg: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    --product-spec-border: #3f2b83;
    --product-spec-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    --product-spec-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Your original CSS with variables applied */
.navbar-custom {
    background-color: var(--secondary-color) !important;
    box-shadow: rgba(33, 35, 38, 0.1) 0px 10px 10px -10px;
}

.loginbg {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    background: url("../img/login-image.png") no-repeat center center;
    background-size: cover;
}

@media (max-width: 991.98px) {
    .loginbg {
        background: url("../img/login-mob.png") no-repeat center center;
        background-size: cover;
    }

    .long-width {
        width: 100% !important;
        max-width: 100% !important;
    }

    .login-content {
        margin: 0 auto;
        width: 90% !important;
        padding: 2rem !important;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .loginbg {
        background: url("../img/login-image.png") no-repeat center center;
        background-size: cover;
    }

    .login-content {
        padding: 2.5rem !important;
    }
}

@media (min-width: 992px) {
    .loginbg {
        background: url("../img/login-image.png") no-repeat center center;
        background-size: cover;
    }

    /* Ensure proper column layout */
    .loginbg > div:first-child {
        min-height: 100vh;
    }
}

@media (min-width: 1200px) {
    .long-width {
        width: 36.667% !important;
    }
}

body {
    background: var(--body-bg) !important;
}

.card-shadow {
    box-shadow: var(--shadow-color) 0px 1px 4px;
    border-radius: var(--border-radius) !important;
}

.card-header {
    border-radius: var(--border-radius) var(--border-radius) 0px 0px !important;
    background-color: var(--card-bg);
    border-bottom: solid var(--border-color);
}

.left-side-menu {
    background: var(--sidebar-bg) !important;
    box-shadow: none !important;
}

.login-body {
    background: var(--login-bg) !important;
}

.login_card {
    background-color: #ffffffeb !important;
}

.login-img {
    z-index: 100000;
    position: relative;
}

.submit_btn {
    float: right;
}

.page-title-main.page {
    padding: 0 0px;
}

.menu_icon {
    color: var(--text-dark) !important;
    margin-top: 2% !important;
}

#sidebar-menu .menuitem-active .active {
    background: var(--menu-active) !important;
    border-left: 10px solid var(--secondary-color);
    font-weight: bold;
    color: var(--text-white) !important;
    margin-right: 15px;
    border-radius: 0px 25px 25px 0px;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.btn-outline-primary,
.btn-theme-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-theme-success:hover,
.btn-theme-success.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.pro-user-name i {
    margin-left: 10px !important;
}

.btn-theme-second-success:hover,
.data-table-filter-btn:hover {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.page-title-main.page {
    color: var(--primary-color) !important;
}

.btn-primary,
.btn-info,
.btn-danger,
.btn-theme-second-success,
.btn-sm {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-white);
}

#sidebar-menu > ul > li > a {
    color: var(--text-dark) !important;
    font-family: var(--font-family) !important;
    font-weight: var(--font-weight-medium) !important;
    font-size: var(--font-size-sm) !important;
}

body {
    color: var(--text-primary) !important;
    font-family: var(--font-family) !important;
}

.sign-in-container {
    overflow-y: clip;
    height: 100vh;
}

.search_btn {
    border-radius: 0px 5px 5px 0px !important;
    padding: 0.42rem 0.9rem !important;
}

.search_input {
    border-radius: 5px 0px 0px 5px !important;
}

.search_align {
    margin-right: 10px;
    border-radius: 0px 5px 5px 0px !important;
    padding: 0.42rem 0.9rem !important;
}

.short-description-show {
    display: -webkit-box;
    max-width: 200px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
}

.title-short-description-show {
    display: -webkit-box;
    max-width: 400px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-title {
    font-family: var(--font-family) !important;
    font-weight: var(--font-weight-medium) !important;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family) !important;
}

.col-form-label {
    font-weight: var(--font-weight-medium) !important;
}

.form-control {
    font-weight: var(--font-weight-medium) !important;
}

a[href^="tel:"] {
    color: var(--text-primary);
}

a[href^="mailto:"] {
    color: var(--text-primary);
}

.dropdown.user-card.drop-down-custom {
    right: 45px;
    top: 15px;
}

.dropdown.chat.drop-down-custom {
    top: 10px;
}

.dropdown.drop-down-custom {
    font-size: 20px;
    z-index: var(--z-modal) !important;
}

.drop-down-custom i {
    color: var(--text-light);
}

table td {
    vertical-align: middle;
}

.image-circle {
    height: 40px;
    width: 40px;
}

.text-hide {
    width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.form-check.check {
    padding-left: 2.643em !important;
}

.dropify-wrapper .dropify-message span.file-icon p {
    font-size: 15px;
    color: #ccc;
}

.dt-button {
    color: var(--text-white) !important;
    background: var(--blue-color) !important;
    border-color: var(--blue-color) !important;
    margin-bottom: 8px !important;
}

.toggle-switch-margin {
    margin-left: 1.5em !important;
    margin-top: -32px;
}

.theme-menu-color {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.logo-box {
    background-color: var(--secondary-color);
}

.navbar-custom .logo-dark {
    background-color: var(--secondary-color) !important;
}

.user-name {
    border-radius: var(--border-radius);
    margin-top: 10px;
    /* background: var(--secondary-color); */
    padding: 8px !important;
    line-height: 34px !important;
}

.login-text {
    color: var(--secondary-color) !important;
    margin-top: 70px !important;
    font-size: 40px;
}

.login-button {
    background-color: var(--secondary-color) !important;
    margin-top: 48px;
}

.login-form {
    height: 50px;
}

.login-label {
    color: var(--secondary-color);
}

.menu-text {
    color: var(--text-white);
    margin-left: 10px;
}

/* custom */
.dash-card1 {
    background-image: url("../img/dash-card1.png");
}

.dash-card2 {
    background-image: url("../img/dash-card2.png");
}

.dash-card3 {
    background-image: url("../img/dash-card3.png");
}

.dash-card4 {
    background-image: url("../img/dash-card4.png");
}

.dash-card1,
.dash-card2,
.dash-card3,
.dash-card4 {
    background-size: 100% 100%;
    background-repeat: no-repeat;
    border-radius: var(--border-radius-lg);
    height: 180px;
}

.border-radius-table {
    border-radius: var(--border-radius);
}

.login-btn {
    background: var(--primary-color);
    border-radius: var(--border-radius);
}

.login-input {
    border-radius: var(--border-radius) 0px 0px var(--border-radius) !important;
}

.login-input-image {
    border-radius: 0px var(--border-radius) var(--border-radius) 0px !important;
}

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

.logo span.logo-lg {
    display: block;
}

.button-color {
    background-color: var(--primary-color) !important;
}
.btn-modern {
    color: var(--text-white);
}
.btn-modern:hover {
    color: var(--text-white);
    background-color: var(--primary-color);
}
.add-btn,
.btn-modern {
    background-color: var(--primary-color);
}

.dash-card-image {
    margin-left: -0.5rem !important;
}

.input-form.image {
    padding: 0.01rem 0.9rem;
}

.input-form {
    border-radius: var(--border-radius);
    background: var(--input-bg);
}

.input-text-form {
    height: 150px;
    border-radius: var(--border-radius);
    background: var(--input-bg);
}

.form-control[readonly] {
    background: var(--input-bg);
}

.input-form::placeholder {
    color: var(--text-muted);
}

.input-text-form::placeholder {
    color: var(--text-muted);
}

.table-theme {
    background: var(--primary-color) !important;
}

.inr-input {
    border-radius: var(--border-radius) 0px 0px var(--border-radius);
    background: var(--input-bg);
}

.save-btn {
    background: var(--dark-bg);
    border-radius: var(--border-radius);
    width: 100px;
}

.table-border .col-sm-12 {
    overflow: auto;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--card-bg);
    margin-top: 15px;
}

table.dataTable {
    margin-top: 0px !important;
}

.table-border-radius {
    border-radius: var(--border-radius-lg);
}

.form-control::file-selector-button {
    padding: 0.85rem 0.9rem !important;
}

.card-header-padding {
    padding: 0px !important;
}

.qus-ans-img {
    height: 108px;
    width: 100px;
}

.user-purchased {
    background: var(--gray-bg);
    border-radius: var(--border-radius-lg);
}

.text-area-background {
    border-radius: var(--border-radius);
    background: var(--overlay-light);
}

.card-header-plan {
    border-radius: var(--border-radius) !important;
    background-color: var(--card-bg);
}

.question-form {
    border-radius: var(--border-radius);
    background: var(--overlay-light);
}

.ck .ck-content {
    height: 200px;
}

.dropify-wrapper {
    height: 240px !important;
}

@media (min-width: 576px) {
    .edit-qus {
        max-width: 980px;
    }
}

.password-position-relative {
    position: relative;
}

.course-image {
    height: 10rem;
    width: 17rem;
}

.change-position-relative {
    position: relative;
}

.change-password-toggle {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
}

.is-invalid ~ .change-password-toggle,
.was-validated :invalid ~ .change-password-toggle {
    position: absolute;
    right: 10px;
    top: 54%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Style for alert boxes */
.custom-alert {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: #fcfcfc;
    color: #0c0c0c;
    padding: 26px;
    border-radius: 5px;
    box-shadow: var(--overlay-dark) 0 4px 8px;
    z-index: var(--z-modal);
    text-align: center;
    width: 300px;
}

.close-alert {
    margin-top: 15px;
    background-color: var(--red-color);
    border: none;
    color: var(--text-white);
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

.close-alert:hover {
    background-color: var(--red-dark);
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--primary-color) !important;
}

.nav-link:focus,
.nav-link:hover,
.head-title {
    color: var(--primary-color);
}

#DataTables_Table_2,
#DataTables_Table_1,
#DataTables_Table_0 {
    width: 100% !important;
}

.course-view-top-filter {
    cursor: pointer;
    padding: 10px 10px;
    border: 1px solid var(--border-custom);
}

.copy-order-link {
    padding: 5px;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    cursor: pointer;
}

.toast-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    z-index: var(--z-tooltip);
}

.card-header {
    border-bottom: 1px solid rgba(185, 189, 189, 0.4);
}

.purchase-card {
    background: var(--input-bg);
    padding: 20px;
    border-radius: var(--border-radius);
}

.page-item.active .page-link {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.input-form,
.btn,
.form-select-sm,
.form-control,
.form-select,
div.bulk-select-container,
.btn-theme-second-success,
.btn-primary,
#datatableSearch,
.select2-container .select2-selection--single,
.select2-container--default.select2-container--focus
    .select2-selection--multiple,
.btn-theme-success {
    border-radius: var(--border-radius-xl);
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.select2-container--default .select2-selection--multiple {
    min-height: 32px;
    border: 1px solid var(--border-dark);
    border-radius: 3px;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: var(--orange-color);
    border: none;
    border-radius: 3px;
    font-size: 12px;
    padding: 2px 8px;
}

.select2-container .select2-selection--multiple .select2-selection__choice {
    background: var(--primary-color) !important;
}

.input-group .form-control#location-search,
.form-control#passwordField,
#reportrange span {
    border-radius: var(--border-radius-xl) 0 0 var(--border-radius-xl) !important;
}

.input-group .btn-outline-secondary,
.input-group .btn-primary,
#reportrange #date-range {
    border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) 0 !important;
}

.btn.btn-sm.btn-outline-secondary.edit-saved-filter-btn {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.paginate_button.page-item.next .page-link {
    border-top-right-radius: var(--border-radius-xl);
    border-bottom-right-radius: var(--border-radius-xl);
}

.paginate_button.page-item.previous .page-link {
    border-top-left-radius: var(--border-radius-xl);
    border-bottom-left-radius: var(--border-radius-xl);
}

.modal-footer button {
    border-radius: var(--border-radius-xl) !important;
}

.modal-header {
    background: var(--modal-header-bg) !important;
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
}

.modal-title {
    color: var(--text-white) !important;
}

.modal-footer button {
    border-radius: var(--border-radius-xl) !important;
}

.modal-content {
    border-radius: 18px !important;
}

.btn-close {
    background-color: var(--text-white);
    border-radius: var(--border-radius-xl);
    padding: 0.5rem;
}

.btn-group > .btn-group:not(:first-child) > .btn,
.btn-group > .btn:nth-child(n + 3),
.btn-group > :not(.btn-check) + .btn {
    border-radius: var(--border-radius-xl) !important;
}

.btn-group > .btn-group:not(:last-child) > .btn,
.btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-radius: var(--border-radius-xl) !important;
}

.dashboard-index-rate-card {
    border-radius: 20px;
    color: var(--text-white);
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-index-rate-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        var(--overlay-white) 0%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%,
    100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-30px, -30px);
    }
}

.dashboard-index-rate-card:hover {
    transform: translateY(-8px);
}

.gold-card {
    background: url("../img/gold-card.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.silver-card {
    background: url("../img/silver-card.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.report-card1 {
    background: url("../img/report-card1.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.report-card2 {
    background: url("../img/report-card2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.report-card3 {
    background: url("../img/report-card3.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.report-card4 {
    background: url("../img/report-card4.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--overlay-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 10px;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff0000;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #ff0000;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

.offline-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: none;
}

.rate-positive {
    background: rgba(75, 186, 119, 0.49);
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--green-color);
    font-weight: var(--font-weight-bolder);
    display: inline-block;
}

.rate-negative {
    background: rgba(220, 53, 69, 0.25);
    padding: 6px 12px;
    border-radius: 8px;
    color: #721c24;
    font-weight: var(--font-weight-bolder);
    display: inline-block;
}

.rate-neutral {
    background: rgba(108, 117, 125, 0.25);
    padding: 6px 12px;
    border-radius: 8px;
    color: #383d41;
    font-weight: var(--font-weight-bolder);
    display: inline-block;
}
.dashboard-rate-change-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.dashboard-rate-change-up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.dashboard-rate-change-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.dashboard-rate-change-neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.dashboard-rates-comparison-card {
    background: url("../img/dash-card-rate.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-rates-comparison-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.dashboard-rates-comparison-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-rate-comparison-item {
    text-align: center;
}

.dashboard-rate-comparison-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.dashboard-rate-comparison-value {
    font-size: 1.5rem;
    font-weight: 700;
}

.dashboard-rates-chart-container {
    position: relative;
    height: 400px;
    margin-top: 2rem;
}

.dashboard-rate-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.dashboard-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard-legend-color {
    width: 20px;
    height: 5px;
    border-radius: 3px;
}

.dashboard-legend-color.gold {
    background: #ffd700;
}

.dashboard-legend-color.silver {
    background: #c0c0c0;
}

@media (max-width: 768px) {
    .dashboard-rates-comparison-values {
        flex-direction: column;
        gap: 1rem;
    }
}
.rate-icon {
    width: 90px;
    height: 90px;
    background: var(--overlay-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 45px;
    box-shadow: var(--overlay-dark) 0 4px 15px;
}

.dashboard-index-chart-container {
    position: relative;
    height: 320px;
    width: 100%;
    padding: 20px;
}

.dashboard-index-empty-chart-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    z-index: 10;
    width: 100%;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.nav-tabs {
    border-bottom: 2px solid var(--border-light);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    padding: 15px 25px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: var(--text-white);
    background: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background: var(--primary-color) !important;
    color: var(--text-white) !important;
    border-radius: 10px 10px 0 0;
}

@media (max-width: 576px) {
    .dashboard-index-rate-card {
        padding: 20px;
        text-align: center;
    }
    .rate-icon {
        margin: 15px auto 0;
        width: 70px;
        height: 70px;
        font-size: 35px;
    }
    .live-indicator {
        margin: 10px 0;
        justify-content: center;
    }
    .dashboard-index-rate-card .row > div {
        text-align: center !important;
    }
    .nav-tabs {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    .nav-tabs .nav-item {
        width: 100%;
        margin-bottom: 8px;
    }
    .nav-tabs .nav-link {
        width: 100%;
        text-align: center;
        border-radius: 8px !important;
        padding: 12px 20px;
    }
    .nav-tabs .nav-link.active {
        border-radius: 8px !important;
    }
}

.swal2-popup {
    border-radius: 25px !important;
}

.swal2-modal .swal2-confirm {
    background-color: var(--primary-color) !important;
    padding: 7px 20px 7px 20px;
    border-radius: var(--border-radius-xl) !important;
}

.swal2-styled.swal2-cancel {
    background-color: var(--primary-color) !important;
    padding: 7px 20px 7px 20px;
    border-radius: var(--border-radius-xl) !important;
}

.form-check-input:checked {
    background-color: var(--primary-color) !important;
    border: var(--primary-color) !important;
}

.form-check-input {
    border-color: var(--primary-color) !important;
}

.five-cards .col-card {
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 992px) {
    .five-cards .col-card {
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }
}

@media (max-width: 768px) {
    .five-cards .col-card {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .five-cards .col-card {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.member-card1 {
    background: url("../img/member-card1.png");
}
.member-card2 {
    background: url("../img/member-card2.png");
}
.member-card3 {
    background: url("../img/member-card3.png");
}
.member-card4 {
    background: url("../img/member-card4.png");
}
.member-card5 {
    background: url("../img/member-card5.png");
}
.payment-card1 {
    background: url("../img/payment-card1.png");
}
.payment-card2 {
    background: url("../img/payment-card2.png");
}
.scheme-view-card1 {
    background: url("../img/scheme-view-card1.png") !important;
}
.scheme-view-card2 {
    background: url("../img/scheme-view-card2.png") !important;
}
.scheme-view-card3 {
    background: url("../img/scheme-view-card3.png") !important;
}
.member-view-card1 {
    background: url("../img/member-view-card1.png");
}
.member-view-card2 {
    background: url("../img/member-view-card2.png");
}
.member-view-card3 {
    background: url("../img/member-view-card3.png");
}
.member-view-card4 {
    background: url("../img/member-view-card4.png");
}
.user-card1 {
    background: url("../img/user-card1.png");
}
.user-card2 {
    background: url("../img/user-card2.png");
}
.digi-dash-card1 {
    background: url("../img/user-card1.png");
}
.digi-dash-card2 {
    background: url("../img/user-card2.png");
}
.payment-card1,
.member-card1,
.payment-card2,
.scheme-view-card1,
.scheme-view-card2,
.scheme-view-card3,
.member-card2,
.member-card3,
.member-card4,
.member-card5,
.member-view-card2,
.member-view-card3,
.member-view-card4,
.member-view-card1,
.user-card1,
.user-card2,
.order-cards-state1 {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    height: 125px;
    border-radius: var(--border-radius-lg);
}
.digi-dash-card1,
.digi-dash-card2 {
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100% !important;
    height: 150px;
    border-radius: var(--border-radius-lg);
}

.stat-pending,
.stat-revenue,
.stat-processing {
    background: url("../img/order-card1.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.stat-total,
.stat-confirmed,
.stat-delivered {
    background: url("../img/order-card2.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.member-index-card-value {
    margin-top: 40px;
    font-size: 25px;
}

#DataTables_Table_6,
#DataTables_Table_5,
#DataTables_Table_4,
#DataTables_Table_3,
#DataTables_Table_2,
#DataTables_Table_1,
#DataTables_Table_0 {
    width: 100% !important;
}

.filter-popup {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: absolute;
    z-index: var(--z-popover);
    background: var(--card-bg);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0 !important;
    box-shadow: 0 4px 12px var(--overlay-dark);
    width: 1200px;
    max-width: 95vw;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    animation: fadeIn 0.2s ease-out;
}

.filter-popup,
.filter-popup-footer {
    box-shadow:
        rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
        rgba(60, 64, 67, 0.15) 0px 2px 6px 2px !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-popup-content {
    overflow-y: hidden;
}

.filter-popup-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--primary-color);
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.filter-popup-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
}

.filter-popup-header .close,
#importProductsModal .btn-close {
    border: none;
    font-size: 20px;
    color: var(--text-muted) !important;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.filter-popup-header .close:hover {
    opacity: 1;
    color: #333;
}

.filter-popup-body {
    padding: 16px;
    overflow-y: scroll;
    max-height: 60vh;
}

.filter-popup-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    background-color: var(--light-bg);
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
    width: 100%;
    position: fixed;
}

.filter-rules-container {
    margin-bottom: 16px;
}

.filter-rule {
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    background-color: var(--card-bg);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px var(--overlay-dark);
}

.filter-rule:hover {
    border-color: var(--border-dark);
    box-shadow: 0 2px 4px var(--overlay-dark);
}

.filter-rule .row {
    align-items: center;
}

.rule-connector {
    display: inline-block;
    width: 36px;
    text-align: center;
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 6px;
    background-color: var(--light-bg);
    border-radius: 3px;
}

.filter-rule .form-control-sm {
    height: 32px;
    font-size: 13px;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.filter-rule select.form-control-sm {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 24px;
    border-radius: 12px;
}

.filter-popup .btn {
    font-size: 13px;
    font-weight: var(--font-weight-medium);
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.filter-popup .btn i {
    margin-right: 6px;
    font-size: 12px;
}

.filter-popup .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: var(--border-radius-xl);
}

.filter-logic-toggle {
    border-radius: 4px;
    overflow: hidden;
}

.filter-logic-toggle .btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 0;
}

.filter-logic-toggle .btn:last-child {
    border-radius: 0 var(--border-radius-xl) var(--border-radius-xl) 0;
}

.ui-datepicker {
    font-family: "Segoe UI", Roboto, sans-serif;
    background: var(--card-bg);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 10px var(--overlay-dark);
    padding: 10px;
}

.ui-datepicker-header {
    background: var(--light-bg);
    border: none;
    border-radius: 3px;
}

.ui-datepicker-title {
    font-weight: var(--font-weight-bold);
}

.ui-datepicker-calendar th {
    font-weight: var(--font-weight-medium);
    color: var(--text-muted);
}

.ui-datepicker-calendar td a {
    text-align: center;
    padding: 4px;
    border-radius: 3px;
}

.ui-datepicker-calendar td a.ui-state-active {
    background: var(--primary-color);
    color: var(--text-white);
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice__remove {
    margin-right: 4px;
    color: var(--accent-color);
}

.filter-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    font-size: 10px;
    padding: 3px 5px;
    background-color: var(--danger-color);
    color: var(--text-white);
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

@media (max-width: 768px) {
    .filter-popup {
        width: 90vw;
    }
    .filter-rule .col {
        margin-bottom: 8px;
    }
    .filter-rule .col-auto {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .filter-popup {
        width: 95vw;
        left: 50%;
        top: 10px;
        transform: translateX(-50%);
        border-radius: 8px;
        box-shadow: 0 2px 10px var(--overlay-dark);
        padding: 8px;
    }
    .filter-popup-header,
    .filter-popup-footer,
    .filter-popup-body {
        padding: 10px !important;
    }
    .filter-popup-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .filter-popup-header h5 {
        font-size: 1rem;
    }
    .filter-popup-header .close {
        align-self: flex-end;
        font-size: 1.4rem;
    }
    .filter-popup-body .d-flex,
    .filter-popup-footer {
        flex-direction: column;
        gap: 10px;
    }
    .filter-popup-footer .btn {
        width: 100%;
    }
    .filter-logic-toggle {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .filter-logic-toggle .btn {
        flex: 1;
    }
    .add-rule-btn {
        width: 100%;
    }
    .save-filter-btn,
    .apply-filter-btn,
    .clear-filters-btn {
        width: 100%;
    }
    .filter-popup-content {
        max-height: 80vh;
        overflow-y: auto;
    }
    .filter-popup-footer .btn {
        margin-bottom: 6px;
        width: 100%;
    }
    .filter-popup-header .close {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .filter-popup {
        width: 95vw;
        top: 10px;
        padding: 10px;
        transform: translateX(-50%);
        border-radius: 10px;
    }
    .filter-popup-header,
    .filter-popup-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .filter-popup-header h5 {
        font-size: 14px;
    }
    .filter-rule {
        padding: 10px;
    }
    .filter-rule .row {
        flex-direction: column;
        gap: 8px;
    }
    .filter-rule .col,
    .filter-rule .col-auto {
        width: 100% !important;
        margin-bottom: 8px;
    }
    .filter-popup .btn {
        width: 100%;
        justify-content: center;
    }
    .filter-logic-toggle {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .select2-container--default .select2-selection--multiple {
        font-size: 12px;
    }
    .filter-popup-content {
        max-height: 60vh;
    }
}

.flatpickr-confirm {
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    margin-top: 8px;
}

.flatpickr-confirm:hover {
    background-color: var(--primary-color);
}

.flatpickr-confirm:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.3);
}

.flatpickr-confirm svg {
    display: none;
}

.form-control {
    border-radius: 12px;
}

.settings-container {
    display: flex;
    min-height: 600px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 0 10px var(--overlay-dark);
    overflow: hidden;
}

.settings-sidebar {
    width: 280px;
    background: var(--light-bg);
    border-right: 1px solid var(--border-dark);
}

.settings-content {
    flex: 1;
    padding: 0;
    background: var(--card-bg);
}

.setting-nav.nav-vertical {
    flex-direction: column;
    padding: 0;
    margin: 0;
    list-style: none;
}

.setting-nav.nav-vertical .nav-link {
    padding: 15px 20px;
    border: none;
    border-bottom: 1px solid var(--border-dark);
    border-radius: 0;
    color: #495057;
    font-weight: var(--font-weight-medium);
    text-align: left;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    background: transparent;
    cursor: pointer;
    width: 100%;
}

.setting-nav.nav-vertical .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.setting-nav.nav-vertical .nav-link:hover {
    background: var(--border-light);
    color: #495057;
    border-color: var(--border-dark);
}

.setting-nav.nav-vertical .nav-link.active {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
    position: relative;
}

.setting-nav.nav-vertical .nav-link.active:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.setting-nav.nav-vertical .nav-link.active::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary-color);
}

.tab-content-vertical {
    padding: 25px;
    min-height: 100%;
    background: var(--card-bg);
}

.settings-section {
    margin-bottom: 30px;
}

.settings-section:last-child {
    margin-bottom: 0;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: block;
}

.settings-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-dark);
    background: var(--light-bg);
}

.settings-header h5 {
    margin: 0;
    color: #495057;
    font-weight: var(--font-weight-bold);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-shadow {
    box-shadow: var(--shadow-lg-color) 0px 1px 4px !important;
    border: 1px solid #e3e6f0;
}

.card-header {
    background: var(--light-bg);
    border-bottom: 1px solid #e3e6f0;
    font-weight: var(--font-weight-bold);
}

.form-field-style {
    border: 1px solid var(--border-input);
    border-radius: 0.35rem;
    transition:
        border-color 0.15s ease-in-out,
        box-shadow 0.15s ease-in-out;
}

.form-field-style:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
}

.button-color {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.button-color:hover {
    background: #5a6268;
    border-color: #545b62;
}

@media (max-width: 768px) {
    .settings-container {
        flex-direction: column;
        border-radius: 8px;
    }
    .settings-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-dark);
    }
    .setting-nav.nav-vertical {
        flex-direction: row;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .setting-nav.nav-vertical .nav-link {
        white-space: nowrap;
        border-bottom: none;
        border-right: 1px solid var(--border-dark);
        min-width: 120px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        padding: 10px 15px;
    }
    .setting-nav.nav-vertical .nav-link i {
        margin-right: 0;
        margin-bottom: 5px;
        font-size: 16px;
    }
    .setting-nav.nav-vertical .nav-link.active::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: -1px;
        left: 0;
        height: 3px;
        width: 100%;
        background: var(--primary-color);
    }
    .tab-content-vertical {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .setting-nav.nav-vertical .nav-link {
        min-width: 100px;
        padding: 8px 10px;
        font-size: 14px;
    }
    .setting-nav.nav-vertical .nav-link i {
        font-size: 14px;
    }
    .settings-header {
        padding: 15px 20px;
    }
    .settings-header h5 {
        font-size: 16px;
    }
}

.tab-pane.loading {
    position: relative;
    min-height: 200px;
}

.tab-pane.loading::after {
    content: "Loading...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

.setting-nav.nav-vertical .nav-link i {
    color: var(--text-muted);
}

.setting-nav.nav-vertical .nav-link.active i {
    color: var(--text-white);
}

.setting-nav.nav-vertical .nav-link:hover i {
    color: #495057;
}

.setting-nav.nav-vertical .nav-link.active:hover i {
    color: var(--text-white);
}

.user-details-user-header {
    background: url("../img/dash-card-rate.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(67, 97, 238, 0.15);
    overflow: hidden;
    position: relative;
}

.user-details-user-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: var(--overlay-white);
    border-radius: 50%;
    transform: translate(40%, -40%);
}

.user-details-user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px var(--overlay-dark);
    background: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--primary-color);
}

.user-details-stats-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--overlay-dark);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.user-details-stats-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 2;
}

.user-details-stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.user-details-stats-card.members .user-details-stats-icon {
    background: rgba(76, 201, 240, 0.15);
    color: var(--text-white);
}

.user-details-stats-card.payments .user-details-stats-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--text-white);
}

.user-details-stats-card.investment .user-details-stats-icon {
    background: rgba(67, 97, 238, 0.15);
    color: var(--text-white);
}

.user-details-stats-card.savings .user-details-stats-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--text-white);
}
.user-details-stats-card .card-body {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.user-details-stats-content {
    z-index: 2;
}

.user-details-stats-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.user-details-metal-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px var(--overlay-dark);
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.user-details-metal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.user-details-metal-card.gold::before {
    background: linear-gradient(90deg, var(--yellow-color), #ffec8b);
}

.user-details-metal-card.silver::before {
    background: linear-gradient(90deg, var(--silver-color), #e8e8e8);
}

.user-details-metal-card.savings-total::before {
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--primary-color)
    );
}

.user-details-metal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--overlay-dark);
}

.user-details-metal-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.user-details-metal-card.gold .user-details-metal-icon {
    color: var(--yellow-color);
}

.user-details-metal-card.silver .user-details-metal-icon {
    color: var(--silver-color);
}

.user-details-metal-card.savings-total .user-details-metal-icon {
    color: var(--primary-color);
}

.user-details-info-section {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 12px var(--overlay-dark);
    padding: 25px;
    margin-bottom: 25px;
    border: none;
}

.user-details-section-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    color: var(--text-black);
}

.user-details-section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

.user-details-activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

.user-details-activity-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(67, 97, 238, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 18px;
}

.user-details-profit-positive {
    color: var(--success-color);
    font-weight: var(--font-weight-bold);
}

.user-details-profit-negative {
    color: var(--danger-color);
    font-weight: var(--font-weight-bold);
}

.user-details-change-positive {
    color: var(--success-color);
    font-size: 0.8rem;
}

.user-details-change-negative {
    color: var(--danger-color);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .user-details-user-header {
        text-align: center;
    }
    .user-details-stats-card .card-body {
        padding: 20px;
    }
}

.scheme-details-scheme-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: url("../img/dash-card-rate.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    height: 150px;
}

.scheme-details-scheme-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.scheme-details-scheme-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.scheme-details-stat-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.scheme-details-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.scheme-details-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.scheme-details-stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.scheme-details-stat-label {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scheme-details-info-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.scheme-details-info-card-header {
    padding: 1.5rem 1.5rem 0.5rem;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.scheme-details-info-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scheme-details-info-card-body {
    padding: 1.5rem;
}

.scheme-details-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.scheme-details-detail-item:last-child {
    border-bottom: none;
}

.scheme-details-detail-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.95rem;
}

.scheme-details-detail-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
    text-align: right;
}

.schedule-stat-icon {
    color: var(--primary-color) !important;
}

.scheme-details-badge-custom {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    background: var(--primary-color);
}

.scheme-details-timeline-progress {
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.scheme-details-timeline-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 4px;
    transition: width 1s ease;
}

.scheme-details-duration-display {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.scheme-details-duration-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.scheme-details-duration-unit {
    font-size: 1rem;
    color: #6c757d;
    font-weight: 500;
}

.scheme-details-payment-schedule {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.scheme-details-payment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
}

.scheme-details-payment-item:last-child {
    border-bottom: none;
}

.scheme-details-payment-date {
    font-weight: 500;
    color: #2c3e50;
}

.scheme-details-payment-amount {
    font-weight: 600;
    color: #28a745;
}

/* Status badges */
.scheme-details-status-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scheme-details-status-active {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.scheme-details-status-inactive {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.scheme-details-member-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.scheme-details-member-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8b1a1a, #3f2b83);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .scheme-details-scheme-details-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .scheme-details-stat-number {
        font-size: 1.8rem;
    }

    .scheme-details-duration-number {
        font-size: 1.6rem;
    }
}

.member-details-stats-card-modern {
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px var(--overlay-dark);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.member-details-stats-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--overlay-dark);
}

.member-details-stats-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.member-details-stats-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
}

.member-details-stats-icon-wrapper i {
    color: var(--text-white);
}

.member-details-stats-value {
    font-size: 28px;
    font-weight: var(--font-weight-bolder);
    color: #fff;
    margin-bottom: 4px;
}

.member-details-stats-label {
    font-size: 14px;
    color: var(--text-white);
    font-weight: var(--font-weight-medium);
}

/* Member Header Card */
.member-details-member-header-card {
    background: url("../img/dash-card-rate.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    color: var(--text-white);
}

.member-details-member-name {
    font-size: 32px;
    font-weight: var(--font-weight-bolder);
    margin-bottom: 12px;
    color: #fff;
}

.member-details-member-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 20px;
    font-size: 15px;
}

.member-details-status-badge-large {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Detail Cards */
.member-details-detail-card-modern {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 12px var(--overlay-dark);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 24px;
    height: 100%;
}

.member-details-detail-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
    /* background: var(--primary-color); */
}

.member-details-detail-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-details-detail-card-body {
    padding: 24px;
    background: var(--card-bg);
}

/* Table Styling */
.member-details-info-table {
    width: 100%;
    margin: 0;
}

.member-details-info-table tr {
    border-bottom: 1px solid #e2e8f0;
}

.member-details-info-table tr:last-child {
    border-bottom: none;
}

.member-details-info-table th {
    padding: 14px 0;
    font-weight: var(--font-weight-bold);
    color: var(--text-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 40%;
}

.member-details-info-table td {
    padding: 14px 0;
    color: #1e293b;
    font-weight: var(--font-weight-medium);
}

/* Progress Bar */
.member-details-progress-modern {
    height: 24px;
    border-radius: 12px;
    background: #e2e8f0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px var(--overlay-dark);
    margin-bottom: 8px;
}

.member-details-progress-bar-modern {
    height: 100%;
    background: var(--success-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-weight: var(--font-weight-bold);
    font-size: 13px;
    transition: width 0.6s ease;
}

/* Due Payments Section */
.member-details-due-payments-card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 2px 12px var(--overlay-dark);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 24px;
}

.member-details-due-payments-header {
    /* background: var(--primary-color); */
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

/* Badge Styling */
.member-details-badge-modern {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Empty State */
.member-details-empty-state {
    text-align: center;
    padding: 48px 24px;
}

.member-details-empty-state-icon {
    font-size: 64px;
    color: #cbd5e0;
    margin-bottom: 16px;
}

.member-details-empty-state-title {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--text-muted);
    margin-bottom: 8px;
}

.member-details-empty-state-text {
    font-size: 14px;
    color: #94a3b8;
}

.member-details-summary-mini-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.member-details-summary-mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--overlay-dark);
}

.member-details-summary-mini-value {
    font-size: 20px;
    font-weight: var(--font-weight-bolder);
    margin-bottom: 4px;
}

.member-details-summary-mini-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

/* Responsive */
@media (max-width: 768px) {
    .member-details-member-name {
        font-size: 24px;
    }
    .member-details-stats-card-modern {
        margin-bottom: 16px;
    }
}

.product-create-image-preview {
    max-width: 200px;
    max-height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 5px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.product-create-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    min-height: 100px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 10px;
}

.product-create-gallery-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.product-create-current-images {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 15px;
    background: var(--light-bg);
}

.product-create-current-image-item {
    text-align: center;
    margin-bottom: 15px;
}

.product-create-current-image-item img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 5px;
    border: 1px solid var(--border-dark);
}

.product-create-required-field::after {
    content: " *";
    color: var(--danger-color);
}

.product-create-error-message {
    display: none;
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.product-create-error-message.show {
    display: block;
}

.member-create-address-section {
    border-left: 3px solid var(--info-color);
    padding-left: 15px;
}

.member-create-financial-section {
    border-left: 3px solid var(--success-color);
    padding-left: 15px;
}

.member-create-nominee-section {
    border-left: 3px solid #6f42c1;
    padding-left: 15px;
}

.member-create-user-match {
    background-color: #e8f5e8;
    border-left: 4px solid var(--success-color);
}

.member-create-user-info-card {
    transition: all 0.3s ease;
}

.member-create-calculation-info {
    background-color: var(--light-bg);
    border-left: 4px solid var(--info-color);
}

.member-create-temporary-user {
    background-color: #fff3cd;
    border-left: 4px solid var(--warning-color);
}

.member-create-error-message {
    color: var(--danger-color);
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: block;
}

.member-create-field-error {
    display: none;
    color: var(--danger-color);
    font-size: 0.875em;
    margin-top: 0.25rem;
}
.product-details-card-modern {
    background: var(--product-card-bg);
    border-radius: 20px;
    padding: 0;
    box-shadow: var(--product-card-shadow);
    margin-bottom: 30px;
    border: none;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-details-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: var(--product-card-shadow-hover);
}

.product-details-card-header-modern {
    padding: 25px 30px 0;
    margin-bottom: 20px;
    border: none;
    background: transparent;
}

.product-details-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--product-title-color);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.product-details-card-body-modern {
    padding: 0 30px 30px;
}

.product-details-image-product-details-gallery-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--product-gallery-bg);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-details-product-image-main {
    width: 100%;
    max-width: 100%;
    height: 400px;
    object-fit: contain;
    border-radius: 15px;
    background: var(--product-image-bg);
    padding: 20px;
    box-shadow: var(--product-image-shadow);
    transition: all 0.3s ease;
}

.product-details-image-placeholder {
    width: 100%;
    height: 400px;
    background: var(--product-placeholder-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--product-placeholder-color);
    border: 2px dashed var(--product-placeholder-border);
}

.product-details-image-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.product-details-image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--product-badge-bg);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--product-badge-shadow);
    z-index: 10;
}

.product-details-gallery-container {
    margin-top: 20px;
}

.product-details-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.product-details-gallery-thumb {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--product-thumb-shadow);
    background: white;
    padding: 5px;
}

.product-details-gallery-thumb:hover {
    transform: scale(1.05);
    border-color: var(--product-thumb-active-border);
}

.product-details-gallery-thumb.active {
    border-color: var(--product-thumb-active-border);
    box-shadow: var(--product-thumb-active-shadow);
    transform: scale(1.05);
}

.product-details-gallery-thumb-placeholder {
    width: 100%;
    height: 80px;
    background: var(--product-gallery-bg);
    border-radius: 10px;
    border: 2px dashed var(--product-placeholder-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 12px;
}

.product-details-product-name-main {
    font-size: 36px;
    font-weight: 800;
    color: var(--product-title-color);
    margin-bottom: 15px;
    line-height: 1.2;
    background: var(--product-title-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-details-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.product-details-badge-modern {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--product-thumb-shadow);
}

.product-details-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-details-price-box {
    background: var(--product-price-primary);
    padding: 25px 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--product-price-shadow);
}

.product-details-price-box:nth-child(2) {
    background: var(--product-price-success);
}

.product-details-price-box:nth-child(3) {
    background: var(--product-price-danger);
}

.product-details-price-box:nth-child(4) {
    background: var(--product-price-warning);
}

.product-details-price-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-details-price-value {
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.product-details-info-row {
    display: flex;
    padding: 18px 0;
    border-bottom: 1px solid var(--product-info-border);
    transition: all 0.3s ease;
}

.product-details-info-row:hover {
    background: var(--product-info-hover-bg);
    padding-left: 15px;
    border-radius: 10px;
}

.product-details-info-row:last-child {
    border-bottom: none;
}

.product-details-info-label {
    flex: 0 0 160px;
    font-size: 14px;
    color: var(--product-info-label-color);
    font-weight: 600;
}

.product-details-info-value {
    flex: 1;
    font-size: 15px;
    color: var(--product-info-value-color);
    font-weight: 700;
}

.product-details-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product-details-spec-item {
    padding: 25px;
    background: var(--product-spec-bg);
    border-radius: 15px;
    border-left: 4px solid var(--product-spec-border);
    transition: all 0.3s ease;
    box-shadow: var(--product-spec-shadow);
}

.product-details-spec-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--product-spec-shadow-hover);
}

.product-details-spec-item-label {
    font-size: 12px;
    color: var(--product-info-label-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-details-spec-item-value {
    font-size: 18px;
    color: var(--product-info-value-color);
    font-weight: 800;
}

@media (max-width: 768px) {
    .product-details-product-name-main {
        font-size: 28px;
    }

    .product-details-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .product-details-price-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-details-spec-grid {
        grid-template-columns: 1fr;
    }

    .product-details-info-label {
        flex: 0 0 130px;
    }

    .product-details-product-image-main,
    .product-details-image-placeholder {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .product-details-card-modern {
        border-radius: 15px;
    }

    .product-details-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-details-product-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-details-price-grid {
        grid-template-columns: 1fr;
    }

    .product-details-product-image-main,
    .product-details-image-placeholder {
        height: 250px;
    }

    .product-details-gallery-thumb {
        height: 70px;
    }
}
.product-details-product-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

.product-details-price-display {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.product-details-card-hover {
    transition:
        transform 0.2s ease-in-out,
        box-shadow 0.2s ease-in-out;
}

.product-details-card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.product-details-thumbnail-container {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.product-details-thumbnail-container.active {
    border: 3px solid var(--bs-primary);
}

.product-details-thumbnail-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem;
    font-size: 0.7rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.product-details-thumbnail-container:hover .product-details-thumbnail-overlay {
    opacity: 1;
}

.product-details-spec-card {
    border-left: 4px solid var(--bs-primary);
    background: linear-gradient(135deg, #f8eaea 0%, #f1d6d6 50%, #e7bcbc 100%);
}

.product-details-discount-badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.product-details-stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.25rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.product-details-stat-card:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-color: var(--bs-primary);
}

.product-details-main-image-container {
    min-height: 350px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.product-details-price-old {
    position: relative;
    color: #6c757d;
}

.product-details-price-old::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #dc3545;
    transform: rotate(-5deg);
}
.profile-dropdown {
    position: absolute !important;
    right: 0 !important;
    left: auto;
}
.digi-dashboard-card {
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.digi-dashboard-card:hover {
    transform: translateY(-5px);
}

.digi-dashboard-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-white);
}

.digi-dashboard-card-title {
    font-size: 0.85rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.digi-dashboard-card-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.digi-dashboard-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-white);
}

.digi-dashboard-rate-card {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.digi-dashboard-rate-title {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.digi-dashboard-rate-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}
.digi-savimgs-gold-stats-card {
    background: url("../img/report-card1.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.digi-savimgs-gold-stats-title {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.digi-savimgs-gold-stats-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.digi-savimgs-gold-stats-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.digi-savimgs-gold-filter-card {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.digi-savimgs-gold-current-rate-card {
    background: white;
    border-left: 4px solid #ffd700;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.digi-savings-silver-stats-card {
    background: url("../img/report-card1.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.digi-savings-silver-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.digi-savings-silver-stats-card.silver::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.digi-savings-silver-stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.digi-savings-silver-stats-icon.silver {
    background: rgba(192, 192, 192, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.digi-savings-silver-stats-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.digi-savings-silver-stats-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
}

.digi-savings-silver-stats-subtitle {
    font-size: 0.85rem;
    opacity: 0.8;
    position: relative;
    z-index: 2;
}

.digi-savings-silver-filter-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.digi-savings-silver-filter-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.digi-savings-silver-current-rate-card {
    background: url("../img/dash-card-rate.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 15px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.digi-savings-silver-current-rate-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.digi-savings-cash-stats-card {
    background: url("../img/report-card1.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.digi-savings-cash-stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.digi-savings-cash-stats-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.digi-savings-cash-stats-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.95;
    position: relative;
    z-index: 2;
}

.digi-savings-cash-stats-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
}

.digi-savings-cash-stats-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.digi-savings-cash-filter-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.3s ease;
}

.digi-savings-cash-filter-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}
.rate-index-stats-card {
    background: url("../img/rate-card1.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: relative;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.rate-index-stats-icon {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 2.5rem;
    opacity: 0.15;
}

.rate-index-stats-card {
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.rate-index-stats-title {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.rate-index-stats-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
}

.rate-index-stats-subvalue {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-top: 0.25rem;
}

.rate-index-rate-high {
    color: #10b981;
    font-weight: 600;
}

.rate-index-rate-low {
    color: #ef4444;
    font-weight: 600;
}

.rate-index-rate-change-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.rate-index-rate-change-up {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    height: 21px !important;
}

.rate-index-rate-change-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    height: 21px !important;
}

.rate-index-rate-change-neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}
.scheme-holding-dashboard-card {
    position: relative;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    transition: transform 0.3s ease;
    min-height: 140px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.scheme-holding-dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.scheme-holding-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.25;
}

.scheme-holding-card-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.scheme-holding-card-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.scheme-holding-card-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

/* Card Color Themes */
.scheme-holding-card-amount-scheme {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.scheme-holding-card-gold-grams {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #333;
}
.scheme-holding-card-silver-grams {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
}
.scheme-holding-card-claimed-amount {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}
.scheme-holding-card-claimed-gold {
    background: linear-gradient(135deg, #ffa726 0%, #f57c00 100%);
}
.scheme-holding-card-claimed-silver {
    background: linear-gradient(135deg, #b0bec5 0%, #78909c 100%);
}
.scheme-holding-card-available-amount {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}
.scheme-holding-card-available-gold {
    background: linear-gradient(135deg, #ffee58 0%, #fdd835 100%);
    color: #333;
}
.scheme-holding-card-available-silver {
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    color: #333;
}
.scheme-holding-card-total-members {
    background: linear-gradient(135deg, #8b1a1a, #3f2b83);
}
.scheme-holding-card-current-rates {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.scheme-holding-chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    margin-bottom: 20px;
}

.small-scheme-holding-chart-container {
    position: relative;
    height: 250px;
    width: 100%;
}

.scheme-holding-type-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.scheme-holding-rate-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-top: 3px;
    display: inline-block;
}

.scheme-holding-filter-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scheme-holding-filter-card .scheme-holding-card-title {
    font-weight: 600;
    margin-bottom: 15px;
}

.scheme-holding-chart-card {
    height: 100%;
}

.scheme-holding-chart-card .card-body {
    padding: 15px;
}

.scheme-holding-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.user-view-new-scheme-card {
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    color: white;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-height: 140px;
    position: relative;
}

.user-view-new-scheme-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.user-view-new-scheme-card-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    opacity: 0.25;
}

.user-view-new-scheme-card-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-view-new-scheme-card-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.user-view-new-scheme-card-subtitle {
    font-size: 12px;
    opacity: 0.8;
}

/* Scheme card color themes */
.user-view-new-scheme-card-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.user-view-new-scheme-card-claimed {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

.user-view-new-scheme-card-available {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
}

.user-view-new-scheme-card-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #333;
}

.user-view-new-scheme-card-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
}

.user-view-new-scheme-card-amount {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.user-view-new-scheme-card-grams {
    background: linear-gradient(135deg, #8b1a1a, #3f2b83);
}

.user-view-new-scheme-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.user-view-new-scheme-rate-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-top: 3px;
    display: inline-block;
}

/* Scheme Holdings Section */
.user-view-new-scheme-holdings-section {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.user-view-new-scheme-holdings-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.user-view-new-scheme-holdings-title {
    color: #333;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-view-new-scheme-card {
        margin-bottom: 15px;
        min-height: 120px;
        padding: 15px;
    }

    .user-view-new-scheme-card-value {
        font-size: 20px;
    }

    .user-view-new-scheme-card-icon {
        font-size: 2rem;
        top: 15px;
        right: 15px;
    }
}

.user-view-new-cash-card {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);

    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.user-view-new-cash-card-content {
    z-index: 2;
}

.user-view-new-cash-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.user-view-new-cash-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.user-view-new-cash-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.user-view-new-cash-sub-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

.cash-action-btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.cash-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-view-new-transaction-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.user-view-new-transaction-deposit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.user-view-new-transaction-withdrawal {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.user-view-new-cash-history-item {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.3s ease;
}

.user-view-new-cash-history-item:hover {
    background-color: #f9fafb;
}

.user-view-new-cash-type-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}
.table-responsive {
    border-radius: var(--border-radius-lg);
}
.pc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.pc-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.3px;
}

.pc-page-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 3px;
}

.pc-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    overflow: hidden;
}

.pc-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.pc-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.pc-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.pc-section-badge {
    margin-left: auto;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.pc-section-body {
    padding: 22px;
}

.pc-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.pc-form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
}

.pc-form-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 18px;
}

@media (max-width: 768px) {
    .pc-form-grid-2,
    .pc-form-grid-3,
    .pc-form-grid-4 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .pc-form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .pc-form-grid-4 {
        grid-template-columns: 1fr 1fr;
    }
}

.pc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pc-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pc-required::after {
    content: "*";
    color: #dc2626;
    margin-left: 2px;
}

.pc-optional-tag {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pc-input,
.pc-select,
.pc-textarea {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 0.875rem;
    color: #111827;
    background: #fff;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    width: 100%;
    outline: none;
}

.pc-input:focus,
.pc-select:focus,
.pc-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pc-input.is-invalid,
.pc-select.is-invalid {
    border-color: #dc2626;
}

.pc-input-hint {
    font-size: 0.75rem;
    color: #6b7280;
}

.pc-error-msg {
    font-size: 0.78rem;
    color: #dc2626;
    display: none;
}

.pc-error-msg.show {
    display: block;
}

.pc-invalid-feedback {
    font-size: 0.78rem;
    color: #dc2626;
}

.pc-input-group {
    display: flex;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.pc-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.pc-input-group .pc-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.pc-input-group .pc-input:focus {
    box-shadow: none;
}

.pc-input-group-btn {
    padding: 9px 14px;
    background: #f3f4f6;
    border: none;
    border-left: 1.5px solid #e5e7eb;
    color: #374151;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    transition: background 0.2s;
}

.pc-input-group-btn:hover {
    background: #e5e7eb;
}

.pc-price-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pc-price-option {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.25s;
    background: #fff;
    position: relative;
}

.pc-price-option:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.pc-price-option.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.12);
}

.pc-price-option input[type="radio"] {
    display: none;
}

.pc-price-option .opt-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pc-price-option.active .opt-title {
    color: #2563eb;
}

.pc-price-option .opt-desc {
    font-size: 0.75rem;
    color: #6b7280;
}

.pc-discount-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pc-discount-option {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: #fff;
}

.pc-discount-option:hover {
    border-color: #86efac;
}

.pc-discount-option.active {
    border-color: #16a34a;
    background: #f0fdf4;
}

.pc-discount-option input[type="radio"] {
    display: none;
}

.pc-discount-option .opt-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #374151;
}

.pc-discount-option.active .opt-title {
    color: #16a34a;
}

.pc-discount-option .opt-desc {
    font-size: 0.7rem;
    color: #6b7280;
}

.pc-price-breakdown {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    border-radius: 10px;
    padding: 16px;
    color: #fff;
    margin-top: 14px;
}

.pc-price-breakdown h6 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.pb-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
}

.pb-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1rem;
    padding-top: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.25);
    margin-top: 4px;
}

.pc-discount-summary {
    background: #f9fafb;
    border-left: 3px solid #16a34a;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 0.82rem;
    margin-top: 10px;
}

.pc-discount-summary .ds-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    color: #374151;
}

.pc-discount-summary .ds-row.bold {
    font-weight: 700;
    color: #16a34a;
}

.rate-badge-live {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: #dcfce7;
    color: #15803d;
    text-transform: uppercase;
}

.rate-badge-cached {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: #fef9c3;
    color: #92400e;
    text-transform: uppercase;
}

.auto-refresh-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #16a34a;
    margin-top: 5px;
}

.spinner-xs {
    width: 10px;
    height: 10px;
    border: 2px solid rgba(22, 163, 74, 0.2);
    border-top-color: #16a34a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.weight-tag {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.final-tag {
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #dcfce7;
    color: #15803d;
    font-weight: 600;
}

.pc-status-group {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.pc-status-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
}

.pc-status-option:has(input:checked) {
    border-color: #2563eb;
    background: #eff6ff;
    color: #2563eb;
}

.pc-status-option input[type="radio"] {
    accent-color: #2563eb;
}

.pc-barcode-box {
    background: #f9fafb;
    border: 1.5px dashed #d1d5db;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.pc-barcode-box img {
    max-width: 100%;
    height: auto;
}

.pc-barcode-info {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.pc-barcode-alert {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.84rem;
    color: #1e40af;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-image-preview {
    min-height: 110px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 8px;
    transition: border-color 0.2s;
}

.pc-image-preview:hover {
    border-color: #bfdbfe;
}

.pc-image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.pc-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 100px;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 10px;
    padding: 10px;
    margin-top: 8px;
    align-items: flex-start;
}

.pc-gallery-preview img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.pc-current-images {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.pc-current-images h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 12px;
}

.pc-submit-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 30px;
    position: sticky;
    bottom: 20px;
    z-index: 100;
}

.pc-btn-cancel {
    padding: 10px 22px;
    border-radius: 8px;
    border: 1.5px solid #d1d5db;
    background: #fff;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pc-field-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 18px 0;
}

@media (max-width: 576px) {
    .pc-price-toggle,
    .pc-discount-toggle {
        grid-template-columns: 1fr;
    }

    .pc-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pc-submit-bar {
        flex-direction: column;
    }

    .pc-submit-bar button {
        width: 100%;
        justify-content: center;
    }
}
.cke_notification_warning {
    display: none !important;
}

.cke_notification.cke_notification_warning {
    display: none !important;
}

.cke_notification {
    display: none !important;
}
/* ─── Page Header ─── */
.mc-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}
.mc-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    letter-spacing: -0.3px;
}
.mc-page-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 3px;
}

/* ─── Section Cards ─── */
.mc-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
    overflow: hidden;
}
.mc-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.mc-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.mc-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}
.mc-section-body {
    padding: 22px;
}

/* ─── Form Grid ─── */
.mc-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.mc-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.mc-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 900px) {
    .mc-grid-2,
    .mc-grid-3,
    .mc-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .mc-grid-2,
    .mc-grid-3,
    .mc-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ─── Fields ─── */
.mc-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mc-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.2px;
}
.mc-required::after {
    content: " *";
    color: #dc2626;
}
.mc-input,
.mc-select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #111827;
    background: #fff;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
    outline: none;
}
.mc-input:focus,
.mc-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.mc-input.is-invalid,
.mc-select.is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}
.mc-input[readonly],
.mc-input[disabled] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}
.mc-hint {
    font-size: 0.78rem;
    color: #6b7280;
}
.mc-field-error {
    font-size: 0.78rem;
    color: #dc2626;
    display: none;
}
.mc-invalid-feedback {
    font-size: 0.78rem;
    color: #dc2626;
    margin-top: 2px;
}

/* ─── Input Group ─── */
.mc-input-group {
    display: flex;
    gap: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    overflow: hidden;
}
.mc-input-group .mc-input {
    border: none;
    border-radius: 0;
    flex: 1;
}
.mc-input-group .mc-input:focus {
    box-shadow: none;
}
.mc-input-group-btn {
    padding: 9px 14px;
    background: #eff6ff;
    border: none;
    border-left: 1px solid #bfdbfe;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.mc-input-group-btn:hover {
    background: #bfdbfe;
}

/* ─── User Match / Temp User Cards ─── */
.mc-user-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}
.mc-user-card.match {
    background: #f0fdf4;
    border-color: #bbf7d0;
}
.mc-user-card.temp {
    background: #fffbeb;
    border-color: #fde68a;
}
.mc-user-card h6 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
}
.mc-user-card small {
    color: #6b7280;
    font-size: 0.78rem;
}
.mc-user-card-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ─── Scheme Info Box ─── */
.mc-scheme-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 14px;
    display: none;
    margin-bottom: 16px;
}
.mc-scheme-badge-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mc-scheme-badge-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: #111827;
}
.mc-scheme-type-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: #2563eb;
    color: #fff;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.mc-calc-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    display: none;
    margin-bottom: 16px;
}
.mc-calc-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 12px;
}
@media (max-width: 600px) {
    .mc-calc-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.mc-calc-row small {
    display: block;
    font-size: 0.73rem;
    color: #6b7280;
    margin-bottom: 1px;
}
.mc-calc-row strong {
    font-size: 0.85rem;
    color: #111827;
}

/* ─── Bonus Strip ─── */
.mc-bonus-strip {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #d97706;
    border-radius: 8px;
    padding: 10px 14px;
    display: none;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.mc-bonus-strip-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.88rem;
}
.mc-bonus-badge {
    background: #16a34a;
    color: #fff;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* ─── Maturity Highlight ─── */
.mc-maturity-highlight {
    background: linear-gradient(135deg, #1e40af 0%, #4f46e5 100%);
    color: #fff;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    display: none;
    margin-bottom: 12px;
}
.mc-maturity-highlight small {
    opacity: 0.85;
    font-size: 0.78rem;
    display: block;
}
.mc-maturity-highlight .mc-maturity-amount {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 4px 0;
    letter-spacing: -0.5px;
}
.mc-maturity-highlight .mc-maturity-breakdown {
    font-size: 0.78rem;
    opacity: 0.85;
}

/* ─── Calc Summary ─── */
.mc-calc-summary {
    display: none;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-top: 12px;
}
.mc-calc-summary-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
}
.mc-cs-item small {
    display: block;
    font-size: 0.73rem;
    color: #6b7280;
}
.mc-cs-item strong {
    font-size: 0.95rem;
    font-weight: 700;
}

/* ─── Submit Bar ─── */
.mc-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 12px 12px;
}
.mc-btn-cancel {
    padding: 9px 20px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mc-btn-cancel:hover {
    background: #f3f4f6;
}
.mc-btn-submit {
    padding: 9px 24px;
    border: none;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.15s,
        transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.mc-btn-submit:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}
.bc-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(60, 60, 100, 0.09);
    margin-bottom: 22px;
    overflow: hidden;
}

.bc-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    background: linear-gradient(135deg, #3f2b83 0%, #5b43b3 100%);
    color: #fff;
}

.bc-card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bc-card-header h5 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.bc-card-body {
    padding: 18px 20px;
}

.bc-meta-bar {
    display: flex;
    gap: 16px;
    background: linear-gradient(135deg, #3f2b83 0%, #5b43b3 100%);
    border-radius: 14px;
    padding: 16px 24px;
    margin-bottom: 22px;
    color: #fff;
    align-items: center;
    flex-wrap: wrap;
}

.bc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bc-meta-label {
    font-size: 0.72rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.bc-meta-value {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
}

.bc-meta-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

.pt-wrap {
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #e5e7eb;
}

.pt-search-row {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    background: #f8faff;
    border-bottom: 1.5px solid #e5e7eb;
    align-items: center;
    flex-wrap: wrap;
}

.pt-search-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pt-barcode-input,
.pt-search-input {
    padding: 8px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.88rem;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
    background: #fff;
}

.pt-barcode-input {
    width: 200px;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.pt-search-input {
    flex: 1;
    min-width: 200px;
}

.pt-barcode-input:focus,
.pt-search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.pt-suggestions {
    /* position: absolute; */
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    z-index: 9999;
    max-height: 340px;
    overflow-y: auto;
    display: none;
}

.pt-sug-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    cursor: pointer;
    transition: background 0.14s;
    border-bottom: 1px solid #f3f4f6;
}

.pt-sug-item:last-child {
    border-bottom: none;
}

.pt-sug-item:hover {
    background: #f3f4f6;
}

.pt-sug-item.selected {
    background: #e0e7ff;
    border-left: 3px solid #667eea;
}

.pt-sug-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.88rem;
}

.pt-sug-manual-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.pt-sug-name {
    font-weight: 600;
    font-size: 0.86rem;
    color: #1f2937;
}

.pt-sug-meta {
    font-size: 0.74rem;
    color: #6b7280;
}

.pt-sug-price {
    font-weight: 700;
    font-size: 0.9rem;
    color: #10b981;
    white-space: nowrap;
}

.pt-sug-strike {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 0.76rem;
    margin-right: 4px;
}

table.pt-table {
    width: 100%;
    border-collapse: collapse;
}

.pt-table thead tr {
    background: #f1f5f9;
}

.pt-table thead th {
    padding: 10px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.pt-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.12s;
}

.pt-table tbody tr.pt-row-manual {
    background: #ede9fe;
}

.pt-table tbody tr.pt-row-empty {
    background: #f8faff;
}

.pt-table tbody td {
    padding: 7px 8px;
    vertical-align: middle;
}

.pt-cell-input {
    width: 100%;
    padding: 5px 8px;
    border: 1.5px solid transparent;
    border-radius: 6px;
    font-size: 0.86rem;
    background: transparent;
    transition:
        border-color 0.15s,
        background 0.15s;
    color: #1f2937;
}

.pt-cell-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.pt-cell-input.pt-name-input {
    font-weight: 600;
    min-width: 140px;
}

.pt-cell-input.pt-qty-input {
    text-align: center;
    width: 65px;
}

.pt-cell-input.pt-price-input {
    text-align: right;
    width: 90px;
}

.pt-cell-input.pt-disc-input {
    text-align: center;
    width: 60px;
}

.pt-cell-input.pt-hsn-input {
    width: 80px;
}

.pt-cell-input.pt-sku-input {
    width: 80px;
}

.pt-cell-input[readonly] {
    color: #6b7280;
    cursor: default;
    background: #f9fafb;
}

.pt-cell-input.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.pt-badge-db {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #d1fae5;
    color: #065f46;
}

.pt-badge-manual {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    background: #fef3c7;
    color: #92400e;
}

.pt-row-total {
    font-weight: 700;
    color: #10b981;
    font-size: 0.9rem;
}

.pt-remove-btn {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.15s;
    line-height: 1;
}

.pt-remove-btn:hover {
    background: #fee2e2;
}

.pt-remove-btn:disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: none;
}

.pt-clear-btn {
    background: #fee2e2;
    border: none;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 7px;
    transition: background 0.15s;
}

.pt-clear-btn:hover {
    background: #fca5a5;
}

.pt-stock-ok {
    color: #10b981;
    font-size: 0.74rem;
    font-weight: 600;
}

.pt-stock-low {
    color: #f59e0b;
    font-size: 0.74rem;
    font-weight: 600;
}

.pt-stock-out {
    color: #ef4444;
    font-size: 0.74rem;
    font-weight: 600;
}

.bc-summary {
    background: #f8faff;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    overflow: hidden;
}

.bc-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 16px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.88rem;
}

.bc-summary-row:last-child {
    border-bottom: none;
}

.bc-summary-row.total-row {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 13px 16px;
}

.bc-summary-row.total-row .bc-sum-val {
    font-size: 1.3rem;
}

.bc-summary-disc-input {
    width: 70px;
    padding: 4px 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    text-align: center;
    font-size: 0.86rem;
}

.bc-cust-display {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-radius: 10px;
    padding: 14px 18px;
    color: #fff;
}

.bc-cust-display .bc-cust-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}

.bc-cust-display .bc-cust-meta {
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 1px 0;
}

/* Payment method toggle */
.bc-pm-group .btn {
    font-size: 0.82rem;
    padding: 6px 14px;
}

.btn-generate:disabled {
    opacity: 0.6;
    transform: none;
}

.auto-update-badge {
    font-size: 0.7rem;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .pt-search-row {
        flex-direction: column;
    }

    .pt-barcode-input {
        width: 100%;
    }

    .bc-meta-bar {
        gap: 12px;
    }
}
.pi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}
.pi-title {
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pi-title i {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.pi-actions {
    display: flex;
    gap: 12px;
}
.pi-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.pi-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: all 0.2s;
}
.pi-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.pi-stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 100%);
}
.pi-stat-card.success::before {
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
}
.pi-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 16px;
    background: linear-gradient(
        135deg,
        rgba(79, 70, 229, 0.1) 0%,
        rgba(99, 102, 241, 0.1) 100%
    );
    color: #4f46e5;
}
.pi-stat-card.success .pi-stat-icon {
    background: linear-gradient(
        135deg,
        rgba(16, 185, 129, 0.1) 0%,
        rgba(52, 211, 153, 0.1) 100%
    );
    color: #10b981;
}
.pi-stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.pi-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.pi-stat-loading {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top-color: #4f46e5;
    border-radius: 50%;
    animation: pi-spin 1s linear infinite;
}
@keyframes pi-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── Filter Section ─── */
.pi-filter-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}
.pi-filter-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pi-filter-title i {
    width: 32px;
    height: 32px;
    background: linear-gradient(
        135deg,
        rgba(79, 70, 229, 0.1) 0%,
        rgba(99, 102, 241, 0.1) 100%
    );
    color: #4f46e5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.pi-filter-grid {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 16px;
    align-items: end;
}
@media (max-width: 992px) {
    .pi-filter-grid {
        grid-template-columns: 1fr;
    }
}
.pi-filter-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}
.pi-filter-input-group {
    position: relative;
}
.pi-filter-input {
    width: 100%;
    padding: 10px 40px 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: all 0.15s;
}
.pi-filter-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.pi-filter-clear-btn:hover {
    background: #e2e8f0;
    color: #ef4444;
}

.select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 40px;
    padding-left: 14px;
    color: #1e293b;
}
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 40px;
}
.select2-container--default.select2-container--focus
    .select2-selection--single {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.pi-bulk-actions.active {
    display: flex;
}
.pi-bulk-actions-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}
.pi-bulk-actions-select {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 200px;
    cursor: pointer;
}

.pi-table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}
.pi-table-card-header {
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pi-table-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.pi-table-card-body {
    padding: 0;
}
.pi-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.pi-badge-primary {
    background: #e0e7ff;
    color: #4338ca;
}
.pi-badge-success {
    background: #d1fae5;
    color: #065f46;
}
.pi-badge-warning {
    background: #fef3c7;
    color: #92400e;
}
.pi-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}
.pi-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* ─── Action Buttons ─── */
.pi-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    margin: 0 2px;
}
.pi-action-btn-view {
    background: #e0e7ff;
    color: #4338ca;
}
.pi-action-btn-view:hover {
    background: #4338ca;
    color: #fff;
    transform: translateY(-2px);
}
.pi-action-btn-download {
    background: #d1fae5;
    color: #065f46;
}
.pi-action-btn-download:hover {
    background: #065f46;
    color: #fff;
    transform: translateY(-2px);
}

/* ─── Custom Checkbox ─── */
.pi-custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}
.pi-custom-checkbox:checked {
    background: #4f46e5;
    border-color: #4f46e5;
}

/* ─── Modal Enhancements ─── */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.modal-header {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #fff;
    padding: 20px 24px;
    border-radius: 12px 12px 0 0;
}
.modal-title {
    font-weight: 700;
    font-size: 1.2rem;
}
.modal-body {
    padding: 24px;
}
.pi-detail-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.pi-detail-card-header {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.pi-detail-table {
    width: 100%;
    font-size: 0.88rem;
}
.pi-detail-table tr {
    border-bottom: 1px solid #e2e8f0;
}
.pi-detail-table tr:last-child {
    border-bottom: none;
}
.pi-detail-table th {
    padding: 8px 0;
    font-weight: 600;
    color: #64748b;
    width: 40%;
}
.pi-detail-table td {
    padding: 8px 0;
    color: #1e293b;
    font-weight: 500;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .pi-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .pi-actions {
        width: 100%;
        flex-direction: column;
    }
    .pi-btn {
        width: 100%;
        justify-content: center;
    }
}
