:root {
    --clr-primary: #c52127;
    --clr-secondary: #0071bc;
    --clr-white: #fff;
    --clr-black: #000;
    --clr-dark: #101828;
    --clr-light: #344054;
    --clr-light-sm: #dee2e6;
}

.mybazar-login-section .forget-password input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid #d0d5dd !important;
    background: var(--clr-primary) !important;
    margin-right: 5px;
    margin-top: -1px;
}

.text-custom-primary,
.text-custom-primary:hover {
    color: var(--clr-primary);
    font-weight: bold;
}

.mybazar-login-section
    .forget-password
    input[type="checkbox"]:checked
    + .custom-control-label::before {
    color: #ffffff;
}

.mybazar-login-section .forget-password input[type="checkbox"]:checked {
    accent-color: #3291d4 !important;
}

.indicate-text {
    font-size: 12px;
    color: red;
}

.form-control.error {
    border-color: red;
    padding: 0.375rem 0.75rem;
}

.image-wrapper.error {
    border-color: red;
    padding: 0.375rem 0.75rem;
}

.error-alert {
    font-size: 11px;
    color: red;
}

.error {
    color: red !important;
}

.payment-section .form-control[readonly] {
    background-color: #fff !important;
}

.budget-form ::placeholder {
    font-size: 12px;
}

.avatar {
    background: var(--clr-primary);
    border-radius: 50%;
    color: #e3eaef;
    display: inline-block;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    position: relative;
    vertical-align: middle;
    line-height: 1.28;
    height: 45px;
    width: 45px;
}

.avatar.avatar-sm {
    font-size: 12px;
    height: 30px;
    width: 30px;
}

.avatar img {
    border-radius: 50%;
    height: 100%;
    position: relative;
    width: 100%;
    z-index: 1;
}

.btn-custom-warning {
    background-color: var(--clr-primary) !important;
    color: #fff;
    border: none !important;
}

.btn-custom-warning:hover {
    color: #fff !important;
}

.custom-warning-color {
    color: var(--clr-primary);
}

.roles-permissions table td {
    color: black;
}

.img-preview {
    margin-top: 4px;
    height: auto;
    width: 100px;
}

.folders-files tr a {
    font-size: 18px !important;
}

.gradient-row {
    background: linear-gradient(270deg, #dbe4df 0%, #65e4a6 50%, #ffffff 100%);
}

.order-form-section label,
.permission label,
.role-input-label label {
    left: 10px;
    white-space: nowrap;
}

.table-form-section .responsive-table {
    min-height: unset !important;
}

.table-title-three h5 {
    font-weight: 600 !important;
}

.loss-profit-custom-color1 {
    background-color: rgba(255, 132, 0, 0.15);
}

.loss-profit-custom-color2 {
    background-color: rgba(255, 181, 101, 1);
    font-weight: bold;
}

.production-wrap {
    padding-right: 60px;
}

.form-control.reset-img {
    display: none;
}

.table-header h3,
.table-header h4 {
    font-weight: 700;
}

.privacy-condition-header h4 {
    font-weight: 700;
}

.erp-new-invice .invice-detaisl {
    padding: 20px 0;
}

.commercial-invoice {
    margin-bottom: 30px;
}

.invoice-payment-details {
    margin-top: 40px;
}

.erp-new-invice {
    min-height: 900px !important;
}

/* dropdown font size reduce */
.form-select {
    font-size: 1rem;
}

.product-img {
    height: 100px;
    width: 250px;
    border-radius: 2%;
    overflow: hidden;
    border: 2px dashed #e4e5e7;
}

.form-control .form-control {
    border: 0 !important;
}

.table-user-icon {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background: var(--clr-gray4);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.table-user-icon img {
    height: 25px;
}

.ctg-icon img {
    max-height: 40px;
    width: auto;
    margin: 0 auto;
}

/*delete modal*/
.delete-modal {
    text-align: center;
    margin-bottom: 20px;
}

.delete-modal h5 {
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    margin-bottom: 5px;
}

.delete-modal p {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.multiple-button-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 24px;
}

.chart-css {
    width: 100% !important;
    max-height: 308px !important;
    min-height: 290px;
}

.rounded-image .table-img {
    width: 40px;
    height: 40px;
}

.width-10 {
    width: 10px;
}

.add-feature-btn {
    min-height: 30px;
    padding: 4px 20px;
    background: var(--clr-primary) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 5px;
}

.remove-list {
    position: relative;
}

.remove-list .remove-one {
    background: transparent !important;
    /* background: linear-gradient(90deg, var(--clr-primary) 0%, var(--clr-primary) 100%) !important; */
    color: #fff !important;
    height: 50px;
    width: 50px;
    border: none;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

.remove-list .remove-one i {
    color: #ff3030;
}

.feature-add-wrp {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.feature-add-wrp .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.button-container {
    border: 1px solid #ccc;
    width: 100%;
    height: 45px;
    border-radius: 5px;
    display: inline-block;
}

.top-btn-custom {
    text-decoration: none;
    border: none;
}

.top-btn-custom:hover,
.top-btn-custom:active {
    color: #007bff;
    text-decoration: underline;
    border: none;
    text-underline-offset: 18px;
}

.top-btn-custom.active {
    text-decoration: underline;
    color: #007bff;
    font-weight: bold;
    border: none;
    text-underline-offset: 18px;
}

.card {
    border: 0;
    box-shadow: 0px 4px 24px 0px #e4c3c30d;
    border-radius: 12px;
    background-color: #fff !important;
}

.table th {
    border-bottom: 1px solid #d8d8d8 !important;
    background: #f9f8f8;
    border: 0;
    height: 54px;
}

.delete-selected {
    cursor: pointer;
}

.custom-primary {
    color: var(--clr-primary);
}

.table-hidden-checkbox {
    display: none;
}

/* Style the custom checkbox */
.table-custom-checkbox {
    display: inline-block;
    position: relative;
    cursor: pointer;
    font-size: 16px;
    user-select: none;
    padding-left: 35px;
    line-height: 24px;
}

/* Create the custom checkmark */
.table-custom-checkmark {
    position: absolute;
    top: -9px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: transparent;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Style the checkmark when checked */
.table-hidden-checkbox:checked + .table-custom-checkmark {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
}

/* Add the tick mark inside the checkbox */
.table-custom-checkbox .custom-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the tick mark when the checkbox is checked */
.table-custom-checkbox
    .table-hidden-checkbox:checked
    + .custom-checkmark:after {
    display: block;
}

/* Style the tick mark */
.table-custom-checkbox .custom-checkmark:after {
    left: 8px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Customize the label text color and size */
.table-custom-checkbox {
    color: #333;
    font-family: Arial, sans-serif;
}

.dropdown-menu-scroll {
    max-height: 400px;
    overflow-y: auto;
}

.language-li {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-check {
    color: #00ae1c;
    font-weight: 400;
    font-size: 16px;
}

.verify-modal-body h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    color: #212121;
}

.verify-modal-body .des,
.verify-modal-body .des span {
    color: #4d4d4d;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.verify-modal-body .des {
    font-weight: 400 !important;
}

.verify-modal-body .des .reset {
    color: var(--clr-primary);
}

.verify-modal-body .code-input {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.verify-modal-body .code-input input {
    width: 51px;
    height: 58px;
    padding: 14px 15px;
    border-radius: 10px;
    border: 1px solid #d8d8d8;
    box-shadow: none !important;
}

.verify-modal-body .code-input input:focus {
    border: 1px solid var(--clr-primary) !important;
}

.verify-modal-body .code-input input:focus-visible {
    border: 1px solid var(--clr-primary) !important;
}

.verify-modal-body .des span {
    color: #121212;
}

.success-content {
    border-radius: 16px;
}

.success-modal-body h4 {
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    color: #121212;
    margin-bottom: 0px;
    padding-top: 8px;
    padding-bottom: 16px;
}

.create-account-body h4 {
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    color: #121212;
    margin-bottom: 0px;
}

.success-modal-body p {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    color: #4d4d4d;
    margin-bottom: 24px;
}

.verify-btn {
    background-color: var(--clr-primary);
    color: white;
    width: 100%;
    padding: 10px 0px;
    margin-top: 12px;
}

.verify-btn:hover {
    color: white;
}

/********** Sales page code start **********/
.sales-container {
    background-color: white;
    border-radius: 15px 0 0 15px;
}

.quick-act-header {
    background-color: white;
    padding: 2% 0;
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
}

.sales-container .quick-act-title {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.sales-container .save-product-btn {
    background-color: #0ec03b1a;
    color: #4d4d4d;
    padding: 2px 6px;
    border-radius: 4px;
}

.sales-container .bulk-upload-btn {
    background-color: #567df41a;
    color: #4d4d4d;
    padding: 2px 6px;
    border-radius: 4px;
}

.sales-container .sales-btn {
    background-color: #9e0de81a;
    color: #4d4d4d;
    padding: 2px 6px;
    border-radius: 4px;
}

.sales-container .calculator-btn {
    background-color: #007aff1a;
    color: #4d4d4d;
    border: none;
}

.sales-container .dashboard-btn {
    background-color: #ff3b301a;
    color: #4d4d4d;
    padding: 2px 6px;
    border-radius: 4px;
}

.form-select:focus {
    outline: none;
    box-shadow: none;
    border-color: gray;
}

.btn-danger {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .btn-danger,
.input-group .btn-outline-secondary {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.form-control {
    background-color: #f5f3f34d;
}

/* quick action table */
.icon {
    font-weight: 400;
    font-size: 13px;
}

.incre-decre {
    width: 20px !important;
    height: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8d8d899 !important;
    border-radius: 3px !important;
    background-color: #fff !important;
}

.incre-decre:hover {
    background-color: #fef0f1 !important;
    border-color: var(--clr-primary) !important;
    color: var(--clr-primary) !important;
}

.num-input {
    border-radius: 5px;
    background-color: white;
}

.num-input input {
    background-color: white;
    width: 95px;
}

.hr-container {
    margin-top: 50px;
}

.hr-container hr {
    border: 1px solid var(--clr-primary) 4d;
}

.payment-title {
    font-size: 14px;
    display: flex;
    width: fit-content;
    font-weight: 400 !important;
}

.amount-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding-right: 12px;
}

.save-amount-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.save-btn {
    background-color: #ff9500;
    color: white;
    width: 100%;
    border: none;
    height: 48px;
    border-radius: 6px;
}

.payment-btn {
    background-color: var(--clr-primary);
    color: white;
    width: 100%;
    border: none;
    height: 48px;
    border-radius: 6px;
}

.form-control-amount {
    background-color: white;
}

.payment-container {
    background-color: #f5f3f380;
    border-radius: 8px;
    padding: 12px 15px 5px 15px;
}

.cancel-sale-btn {
    margin-top: 15px;
}
.table-background {
    background-color: rgba(245, 243, 243, 0.5);
}

.discount-btn {
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    border-radius: 5px;
    background-color: transparent;
}

.main-container {
    background-color: white;
    padding: 0%;
}

.products-header {
    border: none;
    border-radius: 0px 12px 12px 0px !important;
    border-left: 1px solid #d8d8d8;
    padding: 12px;
    overflow: hidden;
    color: white;
}

.main-container .products-container {
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
    z-index: 0 !important;
    position: relative;
}

.main-container .products-header .fa-search {
    color: white;
}

.main-container .products-header .category-btn {
    background-color: #ff9500;
    color: white;
    border: none;
    height: 48px;
    border-radius: 6px;
    padding-left: 15px;
    padding-right: 15px;
}

.main-container .products-header .brand-btn {
    background-color: #007aff;
    color: white;
    border: none;
    height: 48px;
    border-radius: 6px;
    padding-left: 15px;
    padding-right: 15px;
}

.search-input {
    border-radius: 0.25rem;
    border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
    border: 1px solid #ced4da;
    padding: 0.5rem;
    flex-grow: 1;
}

.btn-category {
    background-color: #f8961e;
    color: white;
    padding-top: 9px;
    padding-bottom: 9px;
}

.btn-brand {
    background-color: #1e90ff;
    color: white;
    padding-top: 9px;
    padding-bottom: 9px;
}

.btn-brand:hover {
    background-color: #1b87f2;
    color: white;
    border: 1px solid white;
}

.btn-category:hover {
    background-color: #df8415;
    color: white;
    border: 1px solid white;
}

.btn-search {
    background-color: var(--clr-primary);
    color: white;
    border-radius: 0 0.25rem 0.25rem 0;
    border: 1px solid var(--clr-primary);
    width: 48px;
}
.btn-search:hover {
    border: 1px solid var(--clr-primary);
}
.btn-search svg {
    height: 25px;
    width: 25px;
}

.btn-search:hover {
    background-color: var(--clr-primary);
    color: white;
    border: 1px solid var(--clr-primary);
}

/* Products section start */
/* .products {
    display: grid;
    grid-template-columns: 3fr !important;
    gap: 10px;

} */

.products .single-product {
    background-color: white;
    border-radius: 6px;
    border: 1px solid #d8d8d8;
    width: 100%;
    margin-top: 4px;
    cursor: pointer;
}

.products .single-product:hover {
    border: 1px solid var(--clr-primary);
}

.products .single-product .product-con {
    padding: 12px;
}

.products .single-product .pro-img img {
    border-radius: 6px;
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    object-fit: cover;
    width: 100%;
    height: 145px;
}

.products .single-product .pro-title {
    font-weight: 500;
    font-size: 15px;
    line-height: 20px;
}

.products .single-product .pro-price {
    font-weight: 600;
    font-size: 14px;
}

.products .single-product .pro-category {
    color: #7c7c7c;
    font-size: 14px;
}

.products .single-product .price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 20px !important;
}

.products .single-product .price .old-price {
    font-size: 12px;
    text-decoration: line-through;
    color: gray;
}

.custom-number-input {
    width: 40px;
    padding: 5px;
    border: 1px solid #4a90e2;
    border-radius: 5px;
    font-size: 18px;
    text-align: center;
    outline: none;
    transition: border-color 0.3s;
}

.custom-number-input:focus {
    border-color: #007bff;
}

.x-btn {
    border: none;
    background-color: white;
    border-radius: 5px;
}

.x-btn:hover {
    background-color: #f5f5f5;
    border-radius: 5px;
}

.product-dropdown {
    border: 1px solid #e4e5e7;
    border-radius: 6px;
    position: relative;
    background-color: #fff;
}

.product-left img {
    height: 44px;
    width: 44px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eaecf0;
}

.product-selected {
    padding: 11px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-selected #arrow svg {
    width: 20px;
    height: 20px;
}

.product-dropdown-options {
    position: absolute;
    top: 90px !important;
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 300px;
    overflow-y: auto;
    background: white;
    z-index: 3;
    display: none;
}

.product-option-group {
    border-top: 1px solid #eee;
    padding: 8px;
}

/* .product-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
} */

.product-option-item:hover {
    background-color: #f4f4f4;
}

.product-left {
    display: grid;
    gap: 10px;
    grid-template-columns: 2fr 38fr;
}

.multi-items {
    border-bottom: 1px solid #ececec;
    padding: 4px 0;
}

.multi-items:last-child {
    border-bottom: none;
}

.multi-items:hover {
    background-color: #eaeaea;
}

.product-left img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
}

.product-text {
    font-size: 14px;
}

.product-title {
    font-weight: bold;
    font-size: 15px;
}

.product-in-stock {
    color: #34c759;
    font-weight: 500;
}

.product-price {
    font-weight: bold;
    color: #111;
}

.product-rotate {
    transform: rotate(180deg);
}

/* Products section end */

.padding-status {
    color: #fb8a00;
    border: 1px solid #fb8a00;
    border-radius: 4px;
    background-color: #ff920c1a;
    max-width: 100px;
    padding: 7px;
    text-align: center;
}

.approved-status {
    color: #00a551;
    border: 1px solid #00a551;
    border-radius: 4px;
    background-color: #00a5511a;
    max-width: 100px;
    padding: 7px;
    text-align: center;
}

.rejected-status {
    color: #ff3b30;
    border: 1px solid #ff3b30;
    border-radius: 4px;
    background-color: #ff3b3021;
    max-width: 100px;
    padding: 7px;
    text-align: center;
}

.select-batch {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.select-batch:hover {
    background-color: #c5212712;
}

.gradient-alert {
    background: linear-gradient(270deg, #ff7db8 0%, #ee2a7b 100%);
}

.domain-instructions ol li {
    list-style: decimal;
    padding-left: 3px;
}

#fieldsContainer label {
    top: 0;
}
.choices__list--dropdown {
    z-index: 20 !important;
}

.placeholder-btn {
    cursor: pointer;
}

.serial-remove-btn,
.add-row-icon {
    cursor: pointer;
}

/* ============================================
   BILLVENTORY COMPETITIVE UPGRADE — PHASE 1
   Period Pills, Insight Banners, Profit Badges,
   WhatsApp Reminders
   ============================================ */

/* --- Period Pill Filters --- */
.period-pills-container {
    margin-bottom: 16px;
}

.period-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 0;
}

.period-pill {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.period-pill:hover {
    border-color: var(--clr-primary);
    color: var(--clr-primary);
    background: #fef2f2;
}

.period-pill.active {
    background: var(--clr-primary);
    color: #fff;
    border-color: var(--clr-primary);
    box-shadow: 0 2px 8px rgba(197, 33, 39, 0.25);
}

.period-pill.pill-accent {
    border-color: #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
}

.period-pill.pill-accent:hover {
    border-color: #3b82f6;
    background: #dbeafe;
}

.period-pill.pill-accent.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.period-pill.pill-custom {
    border-style: dashed;
}

/* --- Report Insight Banner --- */
.report-insight-banner {
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: slideInBanner 0.4s ease-out;
}

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

.insight-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.insight-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.insight-text {
    flex: 1;
}

.insight-main {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.insight-sub {
    font-size: 13px;
    font-weight: 400;
    margin: 0;
    opacity: 0.92;
    line-height: 1.4;
}

.insight-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    font-size: 12px;
    margin-left: 4px;
}

/* --- Profit/Loss Badge --- */
.profit-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.profit-badge.positive {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.profit-badge.negative {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.profit-badge.zero {
    background: #f9fafb;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* Profit summary card on report header */
.profit-summary-card {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    padding: 12px 20px;
    border-radius: 10px;
    color: #fff;
}

.profit-summary-card.loss {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.profit-summary-card .stat-title {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.profit-summary-card .stat-value {
    font-size: 20px;
    font-weight: 700;
}

/* --- WhatsApp Reminder Button --- */
.whatsapp-reminder-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 8px;
    background: #25d366;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.whatsapp-reminder-btn:hover {
    background: #128c7e;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(37, 211, 102, 0.3);
    color: #fff !important;
}

.whatsapp-reminder-btn svg {
    width: 14px;
    height: 14px;
}

/* Due urgency indicators */
.due-urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.due-urgency-badge.critical {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.due-urgency-badge.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.due-urgency-badge.normal {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

/* WhatsApp language toggle */
.wa-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
}

.wa-lang-toggle .lang-btn {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    text-decoration: none;
}

.wa-lang-toggle .lang-btn:hover,
.wa-lang-toggle .lang-btn.active {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

/* --- Print styles: hide new interactive elements --- */
@media print {
    .period-pills-container,
    .report-insight-banner,
    .whatsapp-reminder-btn,
    .wa-lang-toggle,
    .due-urgency-badge {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .period-pills {
        gap: 6px;
    }
    .period-pill {
        padding: 5px 12px;
        font-size: 12px;
    }
    .report-insight-banner {
        padding: 12px 16px;
    }
    .insight-icon {
        font-size: 22px;
    }
    .insight-main {
        font-size: 13px;
    }
    .insight-sub {
        font-size: 12px;
    }
}

/* ===================================================================
   BUSINESS INTELLIGENCE DASHBOARD — Phase 2A
   =================================================================== */

/* Section Container */
.intelligence-section {
    padding: 0 0 24px 0;
}

.intel-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 14px;
    padding: 16px 24px;
    color: #fff;
}
.intel-header h4 {
    color: #fff;
    font-size: 18px;
    letter-spacing: 0.3px;
}
.intel-brain-icon {
    font-size: 24px;
}
.intel-powered-badge {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    color: #e2e8f0;
    backdrop-filter: blur(4px);
}

/* Grid Layouts */
.intel-grid {
    display: grid;
    gap: 16px;
}
.intel-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}
.intel-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Card Base */
.intel-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.intel-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-1px);
}

.intel-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px 0;
    flex-wrap: wrap;
}
.intel-card-header span:first-child {
    font-size: 18px;
}
.intel-card-header h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}
.intel-subtitle {
    font-size: 11px;
    color: #94a3b8;
    margin-left: auto;
}

.intel-card-body {
    padding: 12px 18px 16px;
}

/* Day Summary Card */
.intel-date {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 10px;
    font-weight: 500;
}
.intel-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.intel-summary-item {
    display: flex;
    flex-direction: column;
    background: #f8fafc;
    border-radius: 10px;
    padding: 8px 12px;
}
.intel-summary-label {
    font-size: 11px;
    color: #64748b;
}
.intel-summary-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}
.intel-summary-sub {
    font-size: 10px;
    color: #94a3b8;
}
.intel-comparison {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}
.intel-top-today {
    font-size: 11px;
    color: #64748b;
}

/* Health Score Gauge */
.health-gauge {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(
        var(--gauge-color) calc(var(--score) * 3.6deg),
        #e5e7eb calc(var(--score) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px auto 8px;
    position: relative;
}
.health-gauge-inner {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.health-score-number {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.health-score-max {
    font-size: 12px;
    color: #94a3b8;
}
.health-label {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}
.health-label-hi {
    font-size: 11px;
    color: #64748b;
    margin: 2px 0 0;
}

/* Health Breakdown Bars */
.health-breakdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.health-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #64748b;
}
.health-bar-item span {
    min-width: 65px;
    text-align: right;
}
.health-mini-bar {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}
.health-mini-bar div {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    border-radius: 3px;
    transition: width 0.6s ease;
}

/* Mini Bar Chart (Sales Trend) */
.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 140px;
    padding-top: 8px;
}
.mini-chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}
.mini-bar-wrapper {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.mini-bar {
    width: 70%;
    max-width: 36px;
    background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%);
    border-radius: 6px 6px 2px 2px;
    min-height: 4px;
    transition: height 0.4s ease;
    cursor: pointer;
}
.mini-bar:hover {
    background: linear-gradient(180deg, #2563eb 0%, #3b82f6 100%);
    transform: scaleX(1.1);
}
.mini-chart-label {
    font-size: 11px;
    color: #64748b;
    margin-top: 6px;
    font-weight: 500;
}
.mini-chart-value {
    font-size: 9px;
    color: #94a3b8;
}

/* Product List Items */
.intel-product-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.intel-product-item:last-child {
    border-bottom: none;
}
.intel-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.intel-product-name {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.intel-product-meta {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}
.intel-locked-capital {
    font-size: 11px;
    color: #ef4444;
    font-weight: 500;
}
.intel-reorder-suggestion {
    font-size: 11px;
    color: #2563eb;
    font-weight: 500;
}

/* Rank Badges */
.intel-rank {
    font-size: 16px;
    min-width: 24px;
    text-align: center;
}

/* Alert Badges */
.alert-critical { color: #ef4444; }
.alert-warning { color: #f97316; }
.alert-plan { color: #f59e0b; }

/* Smart Purchase List */
.intel-purchase-total {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    color: #166534;
}

/* Combo Suggestions */
.intel-combo-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}
.intel-combo-item:last-child {
    border-bottom: none;
}
.intel-combo-products {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.intel-combo-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #eff6ff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}
.intel-combo-meta {
    font-size: 11px;
    color: #64748b;
    margin: 4px 0 6px;
    line-height: 1.4;
}
.intel-combo-add-btn {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.intel-combo-add-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37,99,235,0.3);
}
.intel-combo-added {
    background: #10b981 !important;
    cursor: default;
}
.intel-combo-tip {
    font-size: 12px;
    color: #64748b;
    background: #fffbeb;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #f59e0b;
    margin-bottom: 0;
}

/* Expiry Sections */
.intel-expiry-section h6 {
    font-size: 12px;
    margin-bottom: 6px;
}
.intel-expiry-total {
    font-size: 13px;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 8px;
    text-align: center;
}

/* AI Tips Card */
.intel-card-ai {
    border: 1px solid #c7d2fe;
    background: linear-gradient(135deg, #fefefe 0%, #f5f3ff 100%);
}
.intel-ai-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}
.intel-ai-emoji {
    font-size: 18px;
    min-width: 24px;
    text-align: center;
    padding-top: 1px;
}
.intel-ai-tip p {
    font-size: 13px;
    color: #334155;
    margin: 0;
    line-height: 1.5;
}
.intel-ai-footer {
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e5e7eb;
}
.intel-ai-footer small {
    font-size: 10px;
}

/* Priority Colors */
.priority-1 { color: #ef4444; }
.priority-2 { color: #f97316; }
.priority-3 { color: #f59e0b; }
.priority-4 { color: #22c55e; }

/* ======== Responsive ======== */
@media (max-width: 1200px) {
    .intel-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .intel-grid-3,
    .intel-grid-2 {
        grid-template-columns: 1fr;
    }
    .intel-header {
        padding: 12px 16px;
    }
    .intel-header h4 {
        font-size: 16px;
    }
    .health-gauge {
        width: 90px;
        height: 90px;
    }
    .health-gauge-inner {
        width: 70px;
        height: 70px;
    }
    .health-score-number {
        font-size: 22px;
    }
    .mini-chart {
        height: 100px;
    }
    .intel-summary-value {
        font-size: 14px;
    }
}

/* ===================================================================
   ADMIN ACTION CENTER — Smart Reminder Timeline
   =================================================================== */

/* Card override */
.intel-card-reminders {
    border: 1px solid #dbeafe;
    background: linear-gradient(135deg, #fefefe 0%, #f0f7ff 100%);
}

/* Scrollable timeline container */
.intel-reminder-timeline {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
    scroll-behavior: smooth;
}

.intel-reminder-timeline::-webkit-scrollbar {
    width: 4px;
}
.intel-reminder-timeline::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.intel-reminder-timeline::-webkit-scrollbar-track {
    background: transparent;
}

/* Each reminder item */
.intel-reminder-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #94a3b8;
    transition: all 0.3s ease;
    animation: slideInReminder 0.4s ease-out;
}

@keyframes slideInReminder {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.intel-reminder-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transform: translateX(2px);
}

/* Severity colors — left border */
.reminder-severity-critical {
    border-left-color: #ef4444;
    background: #fef7f7;
}
.reminder-severity-warning {
    border-left-color: #f59e0b;
    background: #fffdf5;
}
.reminder-severity-info {
    border-left-color: #3b82f6;
    background: #f8faff;
}

/* Badge (emoji) */
.intel-reminder-badge {
    font-size: 14px;
    min-width: 22px;
    text-align: center;
    padding-top: 2px;
}

/* Content area */
.intel-reminder-content {
    flex: 1;
    min-width: 0;
}

.intel-reminder-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.intel-reminder-category-icon {
    font-size: 14px;
}

.intel-reminder-title {
    font-size: 12px;
    font-weight: 700;
    color: #1e293b;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.intel-reminder-message {
    font-size: 12px;
    color: #475569;
    margin: 0 0 4px;
    line-height: 1.45;
}

/* Dismiss button */
.intel-reminder-dismiss {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 12px;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    opacity: 0;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.intel-reminder-item:hover .intel-reminder-dismiss {
    opacity: 1;
}

.intel-reminder-dismiss:hover {
    color: #ef4444;
    transform: scale(1.2);
}

/* Action buttons */
.intel-reminder-action-btn {
    font-size: 11px !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    margin-top: 2px;
}

.intel-reminder-action-link {
    font-size: 11px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 0;
}
.intel-reminder-action-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Empty state */
.intel-reminder-empty {
    text-align: center;
    padding: 24px 16px;
}
.intel-reminder-empty span {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.intel-reminder-empty p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Print: hide intelligence completely */
@media print {
    .intelligence-section,
    #intelligence-section {
        display: none !important;
    }
}

