﻿.error-msg {
    color: red !important;
}

.error-hide {
    display: none !important;
}

.panel-body hr {
    margin: 5px !important;
}

.ob-right {
    text-align: right;
}

.ob-center {
    text-align: center;
}

#placeOrderForm input.form-control {
    height: 15px;
    padding: 8px 2px;
    width: auto;
}

.borderless table {
    border-top-style: none !important;
    border-left-style: none !important;
    border-right-style: none !important;
    border-bottom-style: none !important;
}

.borderless td, .borderless th {
    border: none !important;
}

.app-container > footer {
    height: 20px;
    padding: 5px;
}

.panel-footer {
    padding: 0px 15px;
}

.app {
    padding-bottom: 5px;
}

/*********************** ngShow/Hide animations**********************/

/* when hiding the thing */
.ng-hide-add {
    -webkit-animation: 0.5s lightSpeedOut ease;
    animation: 0.5s lightSpeedOut ease;
}

/* when showing the thing */
/*.ng-hide-remove      { 
  -webkit-animation:0.5s flipInX ease; 
  animation:0.5s flipInX ease; 
}*/

/* ANIMATIONS (FROM ANIMATE.CSS) */

/* flip in */
@-webkit-keyframes flipInX {
    0% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        -webkit-transition-timing-function: ease-in;
        transition-timing-function: ease-in;
        opacity: 0;
    }

    40% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        -webkit-transition-timing-function: ease-in;
        transition-timing-function: ease-in;
    }

    60% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1;
    }

    80% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }

    100% {
        -webkit-transform: perspective(400px);
        transform: perspective(400px);
    }
}

@keyframes flipInX {
    0% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        -ms-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
        -webkit-transition-timing-function: ease-in;
        transition-timing-function: ease-in;
        opacity: 0;
    }

    40% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        -ms-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
        -webkit-transition-timing-function: ease-in;
        transition-timing-function: ease-in;
    }

    60% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        -ms-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
        opacity: 1;
    }

    80% {
        -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
        -ms-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
        transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    }

    100% {
        -webkit-transform: perspective(400px);
        -ms-transform: perspective(400px);
        transform: perspective(400px);
    }
}

/* light speed out */
@-webkit-keyframes lightSpeedOut {
    0% {
        opacity: 1;
    }

    100% {
        -webkit-transform: translate3d(100%, 0, 0) skewX(30deg);
        transform: translate3d(100%, 0, 0) skewX(30deg);
        opacity: 0;
    }
}

@keyframes lightSpeedOut {
    0% {
        opacity: 1;
    }

    100% {
        -webkit-transform: translate3d(100%, 0, 0) skewX(30deg);
        -ms-transform: translate3d(100%, 0, 0) skewX(30deg);
        transform: translate3d(100%, 0, 0) skewX(30deg);
        opacity: 0;
    }
}

/*********************************************************************/
/*######################### ANGULAR AUTO COMPLETE ###################*/

.autocomplete-custom-template li {
    border-bottom: 1px solid #ccc;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    white-space: normal;
}

    .autocomplete-custom-template li:last-child {
        border-bottom-width: 0;
    }

.autocomplete-custom-template .item-title,
.autocomplete-custom-template .item-metadata {
    display: block;
    line-height: 2;
}

    .autocomplete-custom-template .item-title md-icon {
        height: 18px;
        width: 18px;
    }

/*####################################################################*/

/*######################### CHART JS #################################*/

.openorderwidget {
    width: 120px;
    position: relative;
    float: left;
}

.easypielabel {
    width: 120px;
    text-align: center;
    position: relative;
    z-index: auto;
    top: 65px;
    float: left;
    display: block;
}

/*#######################################################################*/

#Chart_SalesOfTheDay div.xAxis div.tickLabel {
    color: transparent;
    transform: rotate(-90deg);
    -ms-transform: rotate(-90deg); /* IE 9 */
    -moz-transform: rotate(-90deg); /* Firefox */
    -webkit-transform: rotate(-90deg); /* Safari and Chrome */
    -o-transform: rotate(-90deg); /* Opera */
    /*rotation-point:50% 50%;*/ /* CSS3 */
    /*rotation:270deg;*/ /* CSS3 */
}

#Chart_InvoiceValueOfTheDay div.xAxis div.tickLabel {
    color: transparent;
    transform: rotate(-45deg);
    -ms-transform: rotate(-45deg); /* IE 9 */
    -moz-transform: rotate(-45deg); /* Firefox */
    -webkit-transform: rotate(-45deg); /* Safari and Chrome */
    -o-transform: rotate(-45deg); /* Opera */
    /*rotation-point:50% 50%;*/ /* CSS3 */
    /*rotation:270deg;*/ /* CSS3 */
}

#Chart_DiscountTotal div.xAxis div.tickLabel {
    color: transparent;
}

#Chart_ReorderItems div.xAxis div.tickLabel {
    transform: rotate(-90deg);
    -ms-transform: rotate(-90deg); /* IE 9 */
    -moz-transform: rotate(-90deg); /* Firefox */
    -webkit-transform: rotate(-90deg); /* Safari and Chrome */
    -o-transform: rotate(-90deg); /* Opera */
    /*rotation-point:50% 50%;*/ /* CSS3 */
    /*rotation:270deg;*/ /* CSS3 */
}

#Chart_FMItems div.xAxis div.tickLabel {
    -ms-transform: rotate(-90deg); /* IE 9 */
    -moz-transform: rotate(-90deg); /* Firefox */
    -webkit-transform: rotate(-90deg); /* Safari and Chrome */
    -o-transform: rotate(-90deg); /* Opera */
    /*rotation-point:50% 50%;*/ /* CSS3 */
    /*rotation:270deg;*/ /* CSS3 */
}

.btn-refresh {
    padding: 0px 2px !important;
    font-size: 10px !important;
    line-height: 1.5 !important;
    border-radius: 2px !important;
}

/*###################################################*/
/*############## KENDO GRID TABLE ####################*/

.k-grid td {
    padding: 0.0em 1em !important;
}

.k-grid .k-button {
    padding: 6px 14px !important;
    border-radius: 0px !important;
}

/*###################################################*/

.product-table-wrapper {
    height: 450px;
    width: 100%;
    overflow-y: auto; /* Only vertical scroll */
    overflow-x: hidden; /* Disable horizontal scroll */
}


.purchse-order-product-list {
    width: 100%;
    table-layout: fixed; /* Force even column widths */
    border-collapse: collapse;
}

    .purchse-order-product-list th,
    .purchse-order-product-list td {
        padding: 8px;
        border: 1px solid #ddd;
        word-wrap: break-word;
        white-space: normal; /* Allow text to wrap */
    }

    /* Sticky header style scoped to purchse-order-product-list */
    .purchse-order-product-list thead.k-grid-header th {
        position: sticky;
        top: 0;
        background: white;
        z-index: 3;
        border-bottom: 2px solid #666; /* Darker bottom border */
        border-right: 1px solid #888;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* ✨ Separation shadow */
    }

    /* Optional: Prevent double border look by removing top border from tbody rows */
    .purchse-order-product-list tbody tr:first-child td {
        border-top: none;
    }

.border-required {
    border: 2px solid red !important;
    box-shadow: 0 0 3px red;
}

/*######################### CUSTOMER SEARCH     ###############################*/

/* File: Content/CustomerSearch.css */
/* Scoped Customer Search Modal Styles */

/* Container */
.cs-container {
    background: #f8f9fa;
    min-height: 400px;
}

/* Header Section */
.cs-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 30px;
    margin: -15px -15px 0 -15px;
}

.cs-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cs-header-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.cs-header-text .cs-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.cs-header-text .cs-subtitle {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Search Section */
.cs-search-section {
    padding: 30px;
    background: white;
    margin: 0 -15px;
    border-bottom: 1px solid #e9ecef;
}

.cs-search-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.cs-search-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

    .cs-search-group:focus-within {
        border-color: #667eea;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    }

.cs-search-icon {
    padding: 0 20px;
    color: #999;
    font-size: 18px;
}

.cs-search-input {
    flex: 1;
    border: none;
    padding: 16px 10px;
    font-size: 15px;
    outline: none;
}

    .cs-search-input::placeholder {
        color: #aaa;
    }

.cs-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .cs-search-btn:hover {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        transform: translateY(-1px);
    }

    .cs-search-btn:active {
        transform: translateY(0);
    }

.cs-search-hint {
    margin-top: 12px;
    padding: 10px 15px;
    background: #f0f4ff;
    border-left: 3px solid #667eea;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cs-search-hint i {
        color: #667eea;
    }

/* Results Section */
.cs-results-section {
    padding: 25px 30px;
}

.cs-results-header {
    margin-bottom: 15px;
}

.cs-results-title {
    font-size: 18px;
    color: #333;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.cs-results-count {
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

.cs-grid-container {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Grid Cell Styles */
.cs-row-number {
    color: #999;
    font-weight: 600;
}

.cs-customer-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

    .cs-customer-name i {
        color: #667eea;
    }

.cs-mobile-number {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-family: 'Courier New', monospace;
}

    .cs-mobile-number i {
        color: #28a745;
    }

.cs-address-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
}

    .cs-address-text i {
        color: #dc3545;
    }

/* Quick Navigation */
.cs-navigation-bar {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cs-quick-nav-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cs-register-nav-inline {
    display: flex;
    align-items: center;
}

.cs-btn-quick-register {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 184, 148, 0.3);
    white-space: nowrap;
}

    .cs-btn-quick-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 184, 148, 0.4);
    }

    .cs-btn-quick-register:active {
        transform: translateY(0);
    }

    .cs-btn-quick-register i {
        font-size: 14px;
    }

.cs-quick-nav-label {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cs-row-jump-input {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .cs-row-jump-input:focus {
        outline: none;
        border-color: #667eea;
    }

@media (max-width: 768px) {
    .cs-navigation-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .cs-quick-nav-inline {
        justify-content: space-between;
    }

    .cs-register-nav-inline {
        justify-content: center;
    }

    .cs-btn-quick-register {
        width: 100%;
        justify-content: center;
    }
}

/* No Results Section with Register Button */
.cs-no-results-section {
    padding: 20px 30px;
}

.cs-no-results-banner {
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%);
    padding: 25px 30px;
    border-radius: 10px;
    text-align: center;
}

    .cs-no-results-banner i {
        font-size: 36px;
        color: #d63031;
        margin-bottom: 12px;
    }

.cs-banner-title {
    margin: 0 0 6px 0;
    color: #2d3436;
    font-size: 18px;
    font-weight: 600;
}

.cs-banner-text {
    margin: 0 0 18px 0;
    color: #636e72;
    font-size: 14px;
}

/* Register New Customer Button */
.cs-btn-register-new {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

    .cs-btn-register-new:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 184, 148, 0.4);
    }

    .cs-btn-register-new:active {
        transform: translateY(-1px);
    }

    .cs-btn-register-new i {
        font-size: 16px;
    }

/* Registration Mode */
.cs-registration-mode {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add Customer Section */
.cs-add-section {
    padding: 30px;
}

.cs-add-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Form Header with Back Button */
.cs-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

    .cs-form-header .cs-form-title {
        margin: 0;
        padding: 0;
        border: none;
    }

.cs-form-title {
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .cs-form-title i {
        color: #667eea;
    }

/* Back Button */
.cs-btn-back {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(9, 132, 227, 0.3);
}

    .cs-btn-back:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(9, 132, 227, 0.4);
    }

    .cs-btn-back:active {
        transform: translateY(0);
    }

.cs-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.cs-form-group {
    flex: 1;
}

    .cs-form-group.cs-full-width {
        flex: 1 1 100%;
    }

.cs-form-label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .cs-form-label i {
        color: #667eea;
    }

.cs-required {
    color: #dc3545;
    margin-left: 4px;
}

.cs-optional {
    color: #999;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.cs-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

    .cs-form-control:focus {
        outline: none;
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

/* Form Actions with Cancel Button */
.cs-form-actions {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* Cancel Button */
.cs-btn-cancel {
    background: #dfe6e9;
    color: #2d3436;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

    .cs-btn-cancel:hover {
        background: #b2bec3;
        transform: translateY(-2px);
    }

    .cs-btn-cancel:active {
        transform: translateY(0);
    }

/* Add Customer Button */
.cs-btn-add {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

    .cs-btn-add:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 184, 148, 0.4);
    }

    .cs-btn-add:active:not(:disabled) {
        transform: translateY(0);
    }

    .cs-btn-add:disabled {
        background: #ddd;
        color: #999;
        cursor: not-allowed;
        box-shadow: none;
    }

/* Responsive Design */
@media (max-width: 768px) {
    .cs-header-content {
        flex-direction: column;
        text-align: center;
    }

    .cs-form-row {
        flex-direction: column;
    }

    .cs-search-btn span {
        display: none;
    }

    .cs-search-section,
    .cs-results-section,
    .cs-add-section,
    .cs-no-results-section {
        padding: 20px;
    }

    .cs-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cs-btn-back {
        width: 100%;
        justify-content: center;
    }

    .cs-form-actions {
        flex-direction: column-reverse;
    }

    .cs-btn-cancel,
    .cs-btn-add {
        width: 100%;
        justify-content: center;
    }

    .cs-no-results-banner {
        padding: 30px 20px;
    }

        .cs-no-results-banner i {
            font-size: 48px;
        }

    .cs-banner-title {
        font-size: 20px;
    }

    .cs-btn-register-new {
        width: 100%;
        justify-content: center;
    }
}

/* Kendo Grid Specific Overrides - Scoped to this grid only */
.cs-grid-container .k-grid {
    border: none !important;
}

.cs-grid-container .k-grid-header {
    background: #f8f9fa !important;
    border-bottom: 2px solid #667eea !important;
}

    .cs-grid-container .k-grid-header th {
        font-weight: 600 !important;
        color: #333 !important;
        padding: 15px 12px !important;
    }

.cs-grid-container .k-grid tr:hover {
    background: #f0f4ff !important;
}

.cs-grid-container .k-grid tr.k-state-selected {
    background: #e8eeff !important;
}

/* Animation for smooth transitions */
.cs-container > div {
    transition: all 0.3s ease;
}

/* Focus visible improvements */
.cs-search-input:focus,
.cs-form-control:focus,
.cs-row-jump-input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Button focus states */
.cs-search-btn:focus,
.cs-btn-register-new:focus,
.cs-btn-back:focus,
.cs-btn-cancel:focus,
.cs-btn-add:focus {
    outline: 2px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

/* Loading state (optional - if you want to add loading indicators) */
.cs-loading {
    opacity: 0.6;
    pointer-events: none;
}

    .cs-loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 40px;
        height: 40px;
        margin: -20px 0 0 -20px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Smooth height transitions */
.cs-results-section,
.cs-no-results-section,
.cs-registration-mode {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Print styles (optional) */
@media print {
    .cs-container {
        background: white;
    }

    .cs-header {
        background: #667eea;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .cs-search-btn,
    .cs-btn-register-new,
    .cs-btn-back,
    .cs-btn-cancel,
    .cs-btn-add {
        display: none;
    }
}

/*######################### END CUSTOMER SEARCH ###############################*/
/*######################### WHATS APP DASHBOARD ###############################*/
/* SCOPED STYLES - All classes prefixed with wa-app- to avoid conflicts */
.wa-app-wrapper {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    overflow: hidden;
    height: 100vh;
}

.wa-app-container {
    display: flex;
    height: calc(70vh - 40px);
    max-width: 1600px;
    margin: 20px auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 3px;
}

/* Left Sidebar - Customer List */
.wa-sidebar {
    width: 400px;
    border-right: 1px solid #e9edef;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.wa-sidebar-header {
    background: #008069;
    color: white;
    padding: 2px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .wa-sidebar-header h4 {
        margin: 0;
        font-size: 17px;
        font-weight: 400;
    }

.wa-header-actions {
    display: flex;
    gap: 15px;
}

.wa-header-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

    .wa-header-btn:hover {
        opacity: 1;
    }

.wa-search-container {
    padding: 8px 12px;
    background: #f0f2f5;
    border-bottom: 1px solid #e9edef;
}

.wa-search-box {
    background: white;
    border: 1px solid #e9edef;
    border-radius: 8px;
    padding: 9px 15px 9px 50px;
    width: 80%;
    font-size: 14px;
    outline: none;
}

    .wa-search-box:focus {
        border-color: #00a884;
    }

.wa-search-wrapper {
    position: relative;
}

.wa-search-icon {
    position: absolute;
    left: 18px;
    top: 11px;
    color: #667781;
    font-size: 16px;
}

.wa-filter-tabs {
    display: flex;
    padding: 8px 12px;
    gap: 8px;
    border-bottom: 1px solid #e9edef;
    background: white;
}

.wa-filter-btn {
    padding: 6px 14px;
    border: none;
    background: #f0f2f5;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    color: #54656f;
    transition: background 0.2s;
}

    .wa-filter-btn:hover {
        background: #d9dce0;
    }

    .wa-filter-btn.wa-active {
        background: #d1f4cc;
        color: #008069;
    }

.wa-customers-list {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.wa-customer-item {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
    position: relative;
}

    .wa-customer-item:hover {
        background: #f5f6f6;
    }

    .wa-customer-item.wa-active {
        background: #f0f2f5;
    }

.wa-customer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #dfe5e7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    font-weight: 500;
    flex-shrink: 0;
}

.wa-customer-info {
    flex: 1;
    overflow: hidden;
}

.wa-customer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.wa-customer-name {
    font-weight: 500;
    font-size: 16px;
    color: #111b21;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-customer-time {
    font-size: 12px;
    color: #667781;
    white-space: nowrap;
}

.wa-customer-preview {
    color: #667781;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-message-status {
    font-size: 16px;
    color: #667781;
}

.wa-unread-badge {
    background-color: #25d366;
    color: white;
    border-radius: 12px;
    padding: 2px 7px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.wa-promo-tag {
    background: #fff3cd;
    color: #856404;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin-left: 5px;
}

.wa-no-customers {
    text-align: center;
    padding: 40px 20px;
    color: #667781;
}

.wa-loading-customers {
    text-align: center;
    padding: 40px 20px;
    color: #667781;
}

/* Right Side - Chat Area */
.wa-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #efeae2;
}

.wa-chat-header {
    background: #f0f2f5;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #d1d7db;
    min-height: 60px;
}

.wa-chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dfe5e7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    font-weight: 500;
}

.wa-chat-header-info {
    flex: 1;
}

.wa-chat-header-name {
    font-size: 16px;
    font-weight: 500;
    color: #111b21;
    margin: 0;
}

.wa-chat-header-status {
    font-size: 13px;
    color: #667781;
    margin-top: 2px;
}

.wa-chat-header-actions {
    display: flex;
    gap: 20px;
}

.wa-chat-action-btn {
    background: none;
    border: none;
    color: #54656f;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .wa-chat-action-btn:hover {
        opacity: 1;
    }

.wa-messages-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 20px 8%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBXaW5kb3dzIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkJDQzA1MTVGNkE2MjExRTRBRjEzODVCM0Q0NEVFMjFBIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkJDQzA1MTYwNkE2MjExRTRBRjEzODVCM0Q0NEVFMjFBIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QkNDMDUxNUQ2QTYyMTFFNEFGMTM4NUIzRDQ0RUUyMUEiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QkNDMDUxNUU2QTYyMTFFNEFGMTM4NUIzRDQ0RUUyMUEiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz6p/IuUAAAALElEQVR42mJkYGBgAAJGJgYEYEJjI4sdQoFDioGRkYmRAQOABP4DAwABBgAh/QAEeAQaLwAAAABJRU5ErkJggg==');
    background-repeat: repeat;
    /*opacity: 0.4;*/
}

.wa-messages-container {
    max-width: 900px;
    margin: 0 auto;
}

.wa-date-divider {
    text-align: center;
    margin: 20px 0 15px;
}

.wa-date-badge {
    background: #ffffff;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #54656f;
    display: inline-block;
}

.wa-message {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

    .wa-message.wa-received {
        justify-content: flex-start;
    }

    .wa-message.wa-sent {
        justify-content: flex-end;
    }

.wa-message-bubble {
    max-width: 65%;
    padding: 6px 7px 8px 9px;
    border-radius: 8px;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 1px 0.5px rgba(0,0,0,0.13);
}

.wa-message.wa-received .wa-message-bubble {
    background: #ffffff;
    border-top-left-radius: 0;
}

.wa-message.wa-sent .wa-message-bubble {
    background: #d9fdd3;
    border-top-right-radius: 0;
}

.wa-message-text {
    font-size: 14.2px;
    line-height: 19px;
    color: #111b21;
    margin-bottom: 3px;
}

.wa-message-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    margin-top: 4px;
}

.wa-message-time {
    font-size: 11px;
    color: #667781;
}

.wa-message.wa-sent .wa-message-time {
    color: #667781;
}

.wa-message-status-icon {
    font-size: 16px;
    color: #667781;
}

    .wa-message-status-icon.wa-read {
        color: #53bdeb;
    }

.wa-promo-label {
    background: #fff3cd;
    color: #856404;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 5px;
    display: inline-block;
}

.wa-media-message {
    max-width: 300px;
    margin-bottom: 5px;
}

    .wa-media-message img {
        max-width: 100%;
        border-radius: 5px;
        display: block;
    }

.wa-empty-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #667781;
    background: #f0f2f5;
}

.wa-empty-icon {
    font-size: 80px;
    color: #d1d7db;
    margin-bottom: 20px;
}

.wa-empty-title {
    font-size: 32px;
    font-weight: 300;
    color: #41525d;
    margin-bottom: 10px;
}

.wa-empty-subtitle {
    font-size: 14px;
    color: #667781;
}

.wa-loading-messages {
    text-align: center;
    padding: 40px 20px;
    color: #667781;
}

/* Reply Input Area */
.wa-reply-container {
    padding: 10px 20px;
    background: #f0f2f5;
    border-top: 1px solid #d1d7db;
}

.wa-reply-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wa-attach-btn {
    background: none;
    border: none;
    color: #54656f;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .wa-attach-btn:hover {
        opacity: 1;
    }

.wa-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 10px 15px;
    gap: 10px;
}

.wa-emoji-btn {
    background: none;
    border: none;
    color: #54656f;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .wa-emoji-btn:hover {
        opacity: 1;
    }

.wa-message-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: #111b21;
    background: transparent;
}

    .wa-message-input::placeholder {
        color: #667781;
    }

.wa-send-btn {
    background: none;
    border: none;
    color: #54656f;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

    .wa-send-btn:hover {
        color: #008069;
    }

    .wa-send-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.wa-sending-indicator {
    color: #008069;
}

/* Scrollbar Styling */
.wa-customers-list::-webkit-scrollbar,
.wa-messages-wrapper::-webkit-scrollbar {
    width: 6px;
}

.wa-customers-list::-webkit-scrollbar-track,
.wa-messages-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.wa-customers-list::-webkit-scrollbar-thumb,
.wa-messages-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

    .wa-customers-list::-webkit-scrollbar-thumb:hover,
    .wa-messages-wrapper::-webkit-scrollbar-thumb:hover {
        background: rgba(0,0,0,0.3);
    }

/* Alert Messages */
.wa-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: wa-slideIn 0.3s ease;
}

.wa-alert-success {
    background: #d1f4cc;
    border-left: 4px solid #25d366;
    color: #0a5c36;
}

.wa-alert-error {
    background: #fee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.wa-alert-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.wa-alert-close {
    float: right;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    margin-left: 15px;
}

    .wa-alert-close:hover {
        opacity: 1;
    }

@keyframes wa-slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .wa-sidebar {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .wa-app-container {
        margin: 0;
        height: 100vh;
        border-radius: 0;
    }

    .wa-sidebar {
        width: 100%;
        display: none;
    }

        .wa-sidebar.wa-show-mobile {
            display: flex;
        }

    .wa-chat-area.wa-show-mobile {
        display: flex;
    }
}

.wa-notif-item .wa-notif-badge {
    position: absolute;
    top: 19px;
    right: 3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #E24B4A;
    color: #fff;
    font-size: 10px;
    font-weight: 500;
    font-style: normal;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #3B4DB8;
    z-index: 1;
}

.wa-notif-item .wa-notif-badge {
    border-color: #3B4DB8;
}

/*######################### END WHATS APP DASHBOARD ###########################*/

/* Scoped only to wa-notif-item — no global overrides */
/* ── Replace these variables throughout ── */
/* var(--color-border-tertiary)      → #e0e0e0  */
/* var(--color-background-primary)   → #ffffff  */
/* var(--color-background-secondary) → #f5f5f5  */
/* var(--color-text-primary)         → #212121  */
/* var(--color-text-secondary)       → #757575  */
/* var(--border-radius-md)           → 8px      */
/* var(--border-radius-lg)           → 12px     */

/*######################### START WhatsApp Promotion ####################*/

.wa-promo-page .wa-promo-root {
    display: grid;
    grid-template-columns: 340px 1fr;
    height: 620px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    width: 100%;
}

    .wa-promo-page .wa-promo-root > .wa-sidebar {
        width: 340px;
        min-width: 340px;
        max-width: 340px;
        height: 620px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-radius: 0;
        border-right: 1px solid #e0e0e0;
        border-bottom: none;
        border-top: none;
        border-left: none;
        margin: 0;
        padding: 0;
        float: none;
        position: relative;
    }

        .wa-promo-page .wa-promo-root > .wa-sidebar .wa-customers-list {
            flex: 1;
            overflow-y: auto;
            height: auto;
            max-height: none;
        }

        .wa-promo-page .wa-promo-root > .wa-sidebar .wa-sidebar-header {
            flex-shrink: 0;
        }

        .wa-promo-page .wa-promo-root > .wa-sidebar .wa-search-container {
            flex-shrink: 0;
        }

.wa-promo-page .wa-promo-left {
    border-right: 0.5px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.wa-promo-page .wa-promo-left-header {
    background: #128C7E;
    padding: 14px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .wa-promo-page .wa-promo-left-header h4 {
        font-size: 15px;
        font-weight: 500;
        margin: 0;
        color: #fff;
    }

.wa-promo-page .wa-promo-sel-count {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.wa-promo-page .wa-promo-search {
    padding: 10px 12px;
    border-bottom: 0.5px solid #e0e0e0;
}

.wa-promo-page .wa-promo-search-wrap {
    position: relative;
}

    .wa-promo-page .wa-promo-search-wrap::before {
        content: '🔍';
        position: absolute;
        left: 10px;
        top: 7px;
        font-size: 12px;
        pointer-events: none;
    }

.wa-promo-page .wa-promo-search-input {
    width: 100%;
    padding: 7px 12px 7px 32px;
    border: 0.5px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    background: #f5f5f5;
    color: #212121;
    outline: none;
    box-sizing: border-box;
}

.wa-promo-page .wa-promo-select-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    border-bottom: 0.5px solid #e0e0e0;
    font-size: 12px;
    color: #757575;
}

.wa-promo-page .wa-promo-select-bar-btn {
    font-size: 11px;
    padding: 2px 8px;
    border: 0.5px solid #e0e0e0;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    color: #757575;
}

    .wa-promo-page .wa-promo-select-bar-btn:hover {
        background: #f5f5f5;
    }

.wa-promo-page .wa-promo-cust-list {
    flex: 1;
    overflow-y: auto;
}

.wa-promo-page .wa-promo-cust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 0.5px solid #e0e0e0;
    transition: background 0.15s;
}

    .wa-promo-page .wa-promo-cust-item:hover {
        background: #f5f5f5;
    }

    .wa-promo-page .wa-promo-cust-item.wa-promo-selected {
        background: #e8f5e9;
    }

.wa-promo-page .wa-promo-cust-cb {
    width: 16px;
    height: 16px;
    accent-color: #128C7E;
    cursor: pointer;
    flex-shrink: 0;
}

.wa-promo-page .wa-promo-cust-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    flex-shrink: 0;
}

.wa-promo-page .wa-promo-cust-info {
    flex: 1;
    min-width: 0;
}

.wa-promo-page .wa-promo-cust-name {
    font-size: 13px;
    font-weight: 500;
    color: #212121;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-promo-page .wa-promo-cust-phone {
    font-size: 11px;
    color: #757575;
}

.wa-promo-page .wa-promo-right {
    display: flex;
    flex-direction: column;
    background: #f0f0f0;
    overflow: hidden;
    min-width: 0;
}

.wa-promo-page .wa-promo-tabs {
    display: flex;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.wa-promo-page .wa-promo-tab {
    padding: 10px 18px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #757575;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: all 0.15s;
}

    .wa-promo-page .wa-promo-tab.wa-promo-tab-active {
        border-bottom-color: #128C7E;
        color: #128C7E;
        font-weight: 500;
    }

.wa-promo-page .wa-promo-compose {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0; /* important for flex overflow */
}

.wa-promo-page .wa-promo-section {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: visible; /* changed from hidden — was clipping section header text */
    flex-shrink: 0;
}

.wa-promo-page .wa-promo-section-hdr {
    padding: 10px 14px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 12px;
    font-weight: 500;
    color: #757575;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    white-space: nowrap;
}

.wa-promo-page .wa-promo-section-hdr-note {
    font-weight: 400;
    text-transform: none;
    font-size: 11px;
}

.wa-promo-page .wa-promo-section-body {
    padding: 14px;
}

.wa-promo-page .wa-promo-upload-zone {
    border: 1.5px dashed #bdbdbd;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    color: #757575;
}

    .wa-promo-page .wa-promo-upload-zone:hover {
        border-color: #128C7E;
        background: #f0faf8;
    }

    .wa-promo-page .wa-promo-upload-zone.wa-promo-has-img {
        padding: 8px;
        border-style: solid;
        border-color: #128C7E;
    }

.wa-promo-page .wa-promo-img-preview {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 6px;
    display: none;
}

.wa-promo-page .wa-promo-upload-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.wa-promo-page .wa-promo-upload-text {
    font-size: 12px;
}

.wa-promo-page .wa-promo-upload-subtext {
    font-size: 11px;
    opacity: 0.7;
}

.wa-promo-page .wa-promo-remove-img {
    font-size: 11px;
    color: #c62828;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 6px;
}

.wa-promo-page .wa-promo-template-select {
    width: 100%;
    padding: 8px 10px;
    border: 0.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    background: #ffffff;
    color: #212121;
    outline: none;
    box-sizing: border-box;
}

.wa-promo-page .wa-promo-template-preview {
    background: #dcf8c6;
    border-radius: 8px;
    border-top-left-radius: 0;
    padding: 10px 12px;
    font-size: 13px;
    color: #111;
    line-height: 1.5;
    margin-top: 10px;
    white-space: pre-wrap;
}

.wa-promo-page .wa-promo-camp-name-input {
    width: 100%;
    padding: 8px 10px;
    border: 0.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    background: #ffffff;
    color: #212121;
    outline: none;
    box-sizing: border-box;
}

.wa-promo-page .wa-promo-send-bar {
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0; /* prevent send bar from shrinking */
}

.wa-promo-page .wa-promo-send-summary {
    font-size: 13px;
    color: #757575;
}

    .wa-promo-page .wa-promo-send-summary strong {
        color: #212121;
    }

.wa-promo-page .wa-promo-btn-send {
    padding: 9px 22px;
    background: #128C7E;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}

    .wa-promo-page .wa-promo-btn-send:hover {
        background: #0a6b5f;
    }

    .wa-promo-page .wa-promo-btn-send:disabled,
    .wa-promo-page .wa-promo-btn-send[disabled] {
        background: #aaa;
        cursor: not-allowed;
    }

.wa-promo-page .wa-promo-campaigns {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
}

.wa-promo-page .wa-promo-camp-card {
    background: #ffffff;
    border-radius: 8px;
    border: 0.5px solid #e0e0e0;
    overflow: hidden;
}

.wa-promo-page .wa-promo-camp-card-hdr {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 0.5px solid #e0e0e0;
}

.wa-promo-page .wa-promo-camp-title {
    font-size: 13px;
    font-weight: 500;
    color: #212121;
}

.wa-promo-page .wa-promo-camp-meta {
    font-size: 11px;
    color: #757575;
    margin-top: 2px;
}

.wa-promo-page .wa-promo-status-badge {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 500;
}

    .wa-promo-page .wa-promo-status-badge.running {
        background: #e8f5e9;
        color: #128C7E;
    }

    .wa-promo-page .wa-promo-status-badge.completed {
        background: #e3f2fd;
        color: #1565c0;
    }

    .wa-promo-page .wa-promo-status-badge.cancelled {
        background: #fce4ec;
        color: #c62828;
    }

    .wa-promo-page .wa-promo-status-badge.pending {
        background: #fff8e1;
        color: #f57f17;
    }

.wa-promo-page .wa-promo-camp-progress {
    padding: 12px 14px;
}

.wa-promo-page .wa-promo-progress-wrap {
    background: #f5f5f5;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.wa-promo-page .wa-promo-progress-fill {
    height: 100%;
    background: #128C7E;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.wa-promo-page .wa-promo-progress-stats {
    display: flex;
    gap: 14px;
    font-size: 11px;
    color: #757575;
}

.wa-promo-page .wa-promo-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wa-promo-page .wa-promo-stat-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.wa-promo-page .wa-promo-camp-rows {
    border-top: 0.5px solid #e0e0e0;
}

.wa-promo-page .wa-promo-camp-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 0.5px solid #e0e0e0;
    font-size: 12px;
}

    .wa-promo-page .wa-promo-camp-row:last-child {
        border-bottom: none;
    }

.wa-promo-page .wa-promo-row-name {
    flex: 1;
    color: #212121;
}

.wa-promo-page .wa-promo-row-phone {
    flex: 1;
    color: #757575;
}

.wa-promo-page .wa-promo-row-status {
    width: 80px;
    text-align: right;
}

.wa-promo-page .wa-promo-row-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 8px;
}

    .wa-promo-page .wa-promo-row-badge.sent {
        background: #e8f5e9;
        color: #128C7E;
    }

    .wa-promo-page .wa-promo-row-badge.delivered {
        background: #e3f2fd;
        color: #1565c0;
    }

    .wa-promo-page .wa-promo-row-badge.failed {
        background: #fce4ec;
        color: #c62828;
    }

    .wa-promo-page .wa-promo-row-badge.pending {
        background: #fff8e1;
        color: #f57f17;
    }

    .wa-promo-page .wa-promo-row-badge.sending {
        background: #f3e5f5;
        color: #7b1fa2;
    }

    .wa-promo-page .wa-promo-row-badge.cancelled {
        background: #fce4ec;
        color: #c62828;
    }

.wa-promo-page .wa-promo-btn-cancel {
    padding: 4px 12px;
    background: none;
    border: 0.5px solid #c62828;
    color: #c62828;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
}

    .wa-promo-page .wa-promo-btn-cancel:hover {
        background: #fce4ec;
    }

.wa-promo-page .wa-promo-empty {
    text-align: center;
    padding: 40px;
    color: #757575;
    font-size: 13px;
}

.wa-promo-page .wa-promo-camp-badge {
    background: #E24B4A;
    color: #fff;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

.wa-promo-page .wa-promo-row-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #fff;
    flex-shrink: 0;
}

.wa-promo-page .wa-promo-remove-wrap {
    display: none;
    margin-top: 6px;
    text-align: right;
}

.wa-promo-camp-rows-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-top: 1px solid #e0e0e0;
    cursor: pointer;
    user-select: none;
    background: #fafafa;
    transition: background 0.15s;
}

    .wa-promo-camp-rows-header:hover {
        background: #f0f0f0;
    }

.wa-promo-collapse-label {
    font-size: 12px;
    color: #757575;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wa-promo-collapse-icon {
    font-size: 11px;
    transition: transform 0.2s ease;
    display: inline-block;
}

    .wa-promo-collapse-icon.open {
        transform: rotate(180deg);
    }

/* Collapsed by default */
.wa-promo-camp-rows {
    border-top: none;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

    /* Expanded state */
    .wa-promo-camp-rows.expanded {
        max-height: 2000px;
    }

.wa-promo-btn-cancel {
    padding: 4px 12px;
    background: none;
    border: 1px solid #c62828;
    color: #c62828;
    border-radius: 12px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .wa-promo-btn-cancel:hover {
        background: #fce4ec;
    }

.wa-promo-btn-cancel-icon {
    font-size: 12px;
}



/*######################### END WhatsApp Promotion ####################*/

/*######################### START WhasAPP Promotion ####################*/

/*######################### END OF FILE ###############################*/

