:root,
[data-bs-theme="light"],
[data-bs-theme="dark"] {
    --bs-font-sans-serif: "Poppins", Helvetica, sans-serif;
    --bs-body-font-family: "Poppins", Helvetica, sans-serif;
}

body,
button,
input,
textarea,
select {
    font-family: "Poppins", Helvetica, sans-serif;
}

/* DATATABLE CSS */

div.dataTables_wrapper div.dataTables_processing,
div.dt-container div.dt-processing,
div.dt-processing {
    z-index: 99;
}

div.dt-processing .spinner-border {
    vertical-align: -0.125em;
}

.dataTables_wrapper .dataTable .selected th,
.dataTables_wrapper .dataTable .selected td {
    background-color: #baecdd !important;
}

table.dataTable tbody tr.selected a,
table.dataTable tbody th.selected a,
table.dataTable tbody td.selected a {
    color: #595d6e !important;
}

table.dataTable tbody > tr.selected,
table.dataTable tbody > tr > .selected {
    background-color: #00000008 !important;
}

table.dataTable tbody tr.selected,
table.dataTable tbody th.selected,
table.dataTable tbody td.selected {
    color: #595d6e !important;
}

.dataTables_wrapper .datatable-footer .dataTables_length,
.dataTables_wrapper .datatable-footer .dt-length {
    order: 1;
}

.dataTables_wrapper .datatable-footer .dataTables_paginate,
.dataTables_wrapper .datatable-footer .dt-paging {
    order: 2;
    margin-left: auto;
}

.dataTables_wrapper .datatable-footer .pagination {
    justify-content: flex-end !important;
    margin-bottom: 0;
}

.dt-info {
    padding-top: 20px;
}

/* Customer detail page */
.customer-hero-card {
    border: 1px solid #e8edf6;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 32px rgba(28, 43, 82, 0.06);
}

.customer-avatar-ring {
    background: #eef6ff;
    border: 1px dashed #1b84ff;
    box-shadow: inset 0 0 0 8px #ffffff;
}

.customer-admin-card {
    border: 1px solid #e8edf6;
    box-shadow: 0 10px 28px rgba(28, 43, 82, 0.05);
}

.customer-admin-card .card-header {
    border-bottom-color: #e5ebf5;
    background: #f2f7ff;
    min-height: 62px;
}

.customer-admin-card .card-title h3,
.customer-admin-card .card-title .card-label {
    color: #102048;
}

.customer-admin-card .card-title .text-muted {
    color: #7e8aa7 !important;
}

#customer_catalogue_tab .customer-admin-card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

#customer_catalogue_tab .customer-admin-card > .card-header {
    background: transparent;
    border-bottom: 0;
    padding: 0 0 1.5rem 0;
    min-height: auto;
}

#customer_catalogue_tab .customer-admin-card > .card-body {
    padding: 0;
}

.customer-signal-card {
    position: relative;
    overflow: hidden;
    border: 0;
    min-height: 148px;
    box-shadow: 0 14px 32px rgba(28, 43, 82, 0.08);
}

.customer-signal-card::after {
    content: "";
    position: absolute;
    right: -36px;
    top: -36px;
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.customer-signal-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
}

.customer-info-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px dashed #e4e8f0;
}

.customer-info-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.customer-info-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f2f6ff;
    color: #1b84ff;
}

.customer-rule-item {
    border: 1px solid #edf1f7;
    border-radius: 14px;
    padding: 1rem;
    background: #ffffff;
}

.customer-rule-item + .customer-rule-item {
    margin-top: 0.85rem;
}

.customer-address-card {
    min-height: 150px;
    background: #fbfcff;
    border: 1px dashed #dce4f0;
    border-radius: 16px;
    padding: 1.25rem;
}

.customer-muted-note {
    background: #f8f5ff;
    border-left: 4px solid #7239ea;
    border-radius: 12px;
}

/* Product detail page */
.product-media-card,
.product-side-card,
.product-hero-card,
.product-panel-card,
.product-table-card {
    border: 1px solid #e8edf6;
    box-shadow: 0 10px 28px rgba(28, 43, 82, 0.05);
}

.product-side-card .card-header,
.product-panel-card .card-header {
    border-bottom-color: #e5ebf5;
    background: #f8fbff;
    min-height: 62px;
}

.product-hero-card {
    background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
}

.product-header-image {
    width: 150px;
    height: 150px;
    border-radius: 18px;
    background: #f5f8fc;
    border: 1px dashed #d9e3f1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.product-header-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.product-header-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    background: #eef6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-frame {
    min-height: 260px;
    border-radius: 18px;
    background: #f5f8fc;
    border: 1px dashed #d9e3f1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.product-main-image {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: 14px;
}

.product-image-placeholder {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    background: #eef6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px dashed #e4e8f0;
}

.product-meta-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.product-meta-row span {
    color: #7e8aa7;
    font-weight: 600;
}

.product-meta-row strong {
    color: #102048;
    text-align: right;
}

.product-gallery-thumb,
.product-gallery-large {
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid #edf1f7;
    background: #f8fafc;
}

.product-gallery-thumb {
    height: 84px;
}

.product-gallery-large {
    height: 150px;
}

.product-price-panel {
    min-width: 250px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px dashed #d9e3f1;
    padding: 1.5rem;
}

.product-stat-card {
    border: 1px solid #edf1f7;
    border-radius: 16px;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 8px 22px rgba(28, 43, 82, 0.04);
}

.product-description-box {
    border: 1px dashed #dce4f0;
    border-radius: 14px;
    background: #fbfcff;
    padding: 1.25rem;
    color: #4b5675;
    font-weight: 500;
    min-height: 80px;
}

#product_customers_tab .product-table-card,
#product_orders_tab .product-table-card,
#product_stock_tab .product-table-card {
    background: transparent;
    border: 0;
    box-shadow: none;
}

#product_customers_tab .product-table-card > .card-header,
#product_orders_tab .product-table-card > .card-header,
#product_stock_tab .product-table-card > .card-header {
    background: transparent;
    border-bottom: 0;
    padding: 0 0 1.5rem 0;
    min-height: auto;
}

#product_customers_tab .product-table-card > .card-body,
#product_orders_tab .product-table-card > .card-body,
#product_stock_tab .product-table-card > .card-body {
    padding: 0;
}

.badge {
    
    font-size: 0.95rem !important;

    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;

    padding-right: 1rem !important;
    padding-left: 1rem !important;

}