/* =========================================================
   WONDER APP — VENDOR CUSTOMERS
   File: vendor_app/assets/css/customers.css

   Covers:
   - customers/index.html
   - customers/detail.html
   - customers/enquiries.html
   - customers/leads.html
   - customers/quotes.html
   - customers/orders.html
   - customers/interactions.html
   - customers/notes.html
   - customers/follow-ups.html

   Scope:
   .customers-page
   ========================================================= */


/* =========================================================
   1. CUSTOMER PAGE ROOT
   ========================================================= */

.customers-page {
    --customers-primary: var(--primary-color, var(--primary, #2563eb));
    --customers-primary-dark: var(--primary-700, #1d4ed8);
    --customers-primary-soft: var(--primary-50, #eff6ff);

    --customers-success: var(--success-color, var(--success, #16a34a));
    --customers-success-soft: var(--success-50, #f0fdf4);

    --customers-warning: var(--warning-color, var(--warning, #d97706));
    --customers-warning-soft: var(--warning-50, #fffbeb);

    --customers-danger: var(--danger-color, var(--danger, #dc2626));
    --customers-danger-soft: var(--danger-50, #fef2f2);

    --customers-info: var(--info-color, var(--info, #0891b2));
    --customers-info-soft: var(--info-50, #ecfeff);

    --customers-purple: var(--purple-color, #7c3aed);
    --customers-purple-soft: #f5f3ff;

    --customers-text: var(--text-primary, #111827);
    --customers-text-secondary: var(--text-secondary, #4b5563);
    --customers-text-muted: var(--text-muted, #6b7280);

    --customers-border: var(--border-color, #e5e7eb);
    --customers-border-light: var(--border-light, #f1f5f9);

    --customers-bg: var(--bg-color, #f8fafc);
    --customers-surface: var(--surface, var(--card-bg, #ffffff));
    --customers-surface-soft: #f8fafc;

    --customers-radius-sm: var(--radius-sm, 6px);
    --customers-radius-md: var(--radius-md, 8px);
    --customers-radius-lg: var(--radius-lg, 12px);
    --customers-radius-xl: var(--radius-xl, 16px);

    --customers-shadow-sm: var(
        --shadow-sm,
        0 1px 2px rgba(15, 23, 42, 0.05)
    );

    --customers-shadow-md: var(
        --shadow-md,
        0 4px 12px rgba(15, 23, 42, 0.08)
    );

    --customers-transition: var(
        --transition-normal,
        180ms ease
    );

    color: var(--customers-text);
}


/* =========================================================
   2. PAGE HEADER
   ========================================================= */

.customers-page .customers-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.customers-page .customers-header-content {
    min-width: 0;
}

.customers-page .customers-title {
    margin: 0;
    color: var(--customers-text);
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.customers-page .customers-subtitle {
    margin: 7px 0 0;
    color: var(--customers-text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.customers-page .customers-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}


/* =========================================================
   3. CUSTOMER STATS
   ========================================================= */

.customers-page .customers-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.customers-page .customers-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-lg);
    box-shadow: var(--customers-shadow-sm);
    transition:
        transform var(--customers-transition),
        box-shadow var(--customers-transition),
        border-color var(--customers-transition);
}

.customers-page .customers-stat-card:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: var(--customers-shadow-md);
}

.customers-page .customers-stat-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--customers-primary-soft);
    color: var(--customers-primary);
    font-size: 20px;
}

.customers-page .customers-stat-icon.is-success {
    background: var(--customers-success-soft);
    color: var(--customers-success);
}

.customers-page .customers-stat-icon.is-warning {
    background: var(--customers-warning-soft);
    color: var(--customers-warning);
}

.customers-page .customers-stat-icon.is-danger {
    background: var(--customers-danger-soft);
    color: var(--customers-danger);
}

.customers-page .customers-stat-icon.is-info {
    background: var(--customers-info-soft);
    color: var(--customers-info);
}

.customers-page .customers-stat-content {
    min-width: 0;
}

.customers-page .customers-stat-label {
    margin: 0 0 4px;
    color: var(--customers-text-muted);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
}

.customers-page .customers-stat-value {
    margin: 0;
    color: var(--customers-text);
    font-size: 23px;
    line-height: 1.2;
    font-weight: 700;
}

.customers-page .customers-stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
}

.customers-page .customers-stat-change.is-positive {
    color: var(--customers-success);
}

.customers-page .customers-stat-change.is-negative {
    color: var(--customers-danger);
}

.customers-page .customers-stat-change.is-neutral {
    color: var(--customers-text-muted);
}


/* =========================================================
   4. TOOLBAR
   ========================================================= */

.customers-page .customers-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
    margin-bottom: 16px;
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-lg);
}

.customers-page .customers-toolbar-left,
.customers-page .customers-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.customers-page .customers-search {
    position: relative;
    min-width: 260px;
}

.customers-page .customers-search-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--customers-text-muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.customers-page .customers-search-input {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px 9px 36px;
    color: var(--customers-text);
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-md);
    outline: none;
    transition:
        border-color var(--customers-transition),
        box-shadow var(--customers-transition);
}

.customers-page .customers-search-input::placeholder {
    color: var(--customers-text-muted);
}

.customers-page .customers-search-input:focus {
    border-color: var(--customers-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.customers-page .customers-filter {
    min-width: 145px;
}

.customers-page .customers-filter-select {
    width: 100%;
    min-height: 40px;
    padding: 8px 34px 8px 11px;
    color: var(--customers-text);
    background-color: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-md);
    outline: none;
}

.customers-page .customers-filter-select:focus {
    border-color: var(--customers-primary);
}


/* =========================================================
   5. CUSTOMER TABS
   ========================================================= */

.customers-page .customers-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    margin-bottom: 18px;
    padding: 4px;
    background: var(--customers-surface-soft);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-lg);
    scrollbar-width: thin;
}

.customers-page .customers-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 13px;
    color: var(--customers-text-secondary);
    background: transparent;
    border: 0;
    border-radius: var(--customers-radius-md);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color var(--customers-transition),
        background var(--customers-transition),
        box-shadow var(--customers-transition);
}

.customers-page .customers-tab:hover {
    color: var(--customers-text);
    background: rgba(255, 255, 255, 0.8);
}

.customers-page .customers-tab.is-active,
.customers-page .customers-tab[aria-selected="true"] {
    color: var(--customers-primary);
    background: var(--customers-surface);
    box-shadow: var(--customers-shadow-sm);
}

.customers-page .customers-tab-count {
    min-width: 20px;
    padding: 2px 6px;
    color: var(--customers-text-muted);
    background: var(--customers-border-light);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
}

.customers-page .customers-tab.is-active .customers-tab-count {
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
}


/* =========================================================
   6. CUSTOMER LIST
   ========================================================= */

.customers-page .customers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.customers-page .customers-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-lg);
    box-shadow: var(--customers-shadow-sm);
}

.customers-page .customers-table {
    width: 100%;
    min-width: 920px;
    border-collapse: separate;
    border-spacing: 0;
}

.customers-page .customers-table th {
    padding: 12px 14px;
    color: var(--customers-text-muted);
    background: var(--customers-surface-soft);
    border-bottom: 1px solid var(--customers-border);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.customers-page .customers-table th:first-child {
    border-top-left-radius: var(--customers-radius-lg);
}

.customers-page .customers-table th:last-child {
    border-top-right-radius: var(--customers-radius-lg);
}

.customers-page .customers-table td {
    padding: 14px;
    color: var(--customers-text-secondary);
    background: var(--customers-surface);
    border-bottom: 1px solid var(--customers-border-light);
    font-size: 13px;
    line-height: 1.5;
    vertical-align: middle;
}

.customers-page .customers-table tbody tr:last-child td {
    border-bottom: 0;
}

.customers-page .customers-table tbody tr {
    transition: background var(--customers-transition);
}

.customers-page .customers-table tbody tr:hover td {
    background: #fbfdff;
}


/* =========================================================
   7. CUSTOMER ROW
   ========================================================= */

.customers-page .customers-row {
    position: relative;
}

.customers-page .customers-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--customers-primary);
    cursor: pointer;
}

.customers-page .customers-id {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    min-width: 100px;
}

.customers-page .customers-number {
    color: var(--customers-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.customers-page .customers-number:hover {
    text-decoration: underline;
}

.customers-page .customers-date {
    color: var(--customers-text-muted);
    font-size: 11px;
}


/* =========================================================
   8. CUSTOMER PROFILE
   ========================================================= */

.customers-page .customers-customer {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.customers-page .customers-customer-avatar {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.10);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 700;
}

.customers-page .customers-customer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customers-page .customers-customer-info {
    min-width: 0;
}

.customers-page .customers-customer-name {
    display: block;
    overflow: hidden;
    color: var(--customers-text);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customers-page .customers-customer-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    color: var(--customers-text-muted);
    font-size: 11px;
    line-height: 1.4;
}

.customers-page .customers-customer-contact {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.customers-page .customers-contact-link {
    color: var(--customers-text-secondary);
    font-size: 12px;
    text-decoration: none;
}

.customers-page .customers-contact-link:hover {
    color: var(--customers-primary);
}


/* =========================================================
   9. CUSTOMER TYPE / SEGMENT
   ========================================================= */

.customers-page .customers-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    color: var(--customers-text-secondary);
    background: var(--customers-surface-soft);
    border: 1px solid var(--customers-border);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
}

.customers-page .customers-type.is-business {
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
    border-color: rgba(37, 99, 235, 0.12);
}

.customers-page .customers-type.is-individual {
    color: var(--customers-purple);
    background: var(--customers-purple-soft);
    border-color: rgba(124, 58, 237, 0.12);
}

.customers-page .customers-type.is-vip {
    color: var(--customers-warning);
    background: var(--customers-warning-soft);
    border-color: rgba(217, 119, 6, 0.12);
}


/* =========================================================
   10. CUSTOMER STATUS
   ========================================================= */

.customers-page .customers-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
}

.customers-page .customers-status::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: currentColor;
}

.customers-page .customers-status.is-active {
    color: var(--customers-success);
    background: var(--customers-success-soft);
    border-color: rgba(22, 163, 74, 0.12);
}

.customers-page .customers-status.is-inactive {
    color: var(--customers-text-muted);
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.customers-page .customers-status.is-pending {
    color: var(--customers-warning);
    background: var(--customers-warning-soft);
    border-color: rgba(217, 119, 6, 0.12);
}

.customers-page .customers-status.is-blocked {
    color: var(--customers-danger);
    background: var(--customers-danger-soft);
    border-color: rgba(220, 38, 38, 0.12);
}


/* =========================================================
   11. CUSTOMER METRICS
   ========================================================= */

.customers-page .customers-metrics {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.customers-page .customers-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.customers-page .customers-metric-label {
    color: var(--customers-text-muted);
    font-size: 10px;
    line-height: 1.4;
}

.customers-page .customers-metric-value {
    color: var(--customers-text);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}


/* =========================================================
   12. CUSTOMER ACTIONS
   ========================================================= */

.customers-page .customers-actions-menu {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.customers-page .customers-action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--customers-text-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--customers-radius-md);
    cursor: pointer;
    transition:
        color var(--customers-transition),
        background var(--customers-transition),
        border-color var(--customers-transition);
}

.customers-page .customers-action-btn:hover {
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
    border-color: rgba(37, 99, 235, 0.10);
}

.customers-page .customers-action-btn.is-danger:hover {
    color: var(--customers-danger);
    background: var(--customers-danger-soft);
    border-color: rgba(220, 38, 38, 0.10);
}


/* =========================================================
   13. CUSTOMER CARDS
   ========================================================= */

.customers-page .customers-card {
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-lg);
    box-shadow: var(--customers-shadow-sm);
}

.customers-page .customers-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--customers-border-light);
}

.customers-page .customers-card-title {
    margin: 0;
    color: var(--customers-text);
    font-size: 14px;
    line-height: 1.45;
    font-weight: 700;
}

.customers-page .customers-card-subtitle {
    margin: 4px 0 0;
    color: var(--customers-text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.customers-page .customers-card-body {
    padding: 18px;
}

.customers-page .customers-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 18px;
    border-top: 1px solid var(--customers-border-light);
}


/* =========================================================
   14. CUSTOMER DETAIL LAYOUT
   ========================================================= */

.customers-page .customers-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.customers-page .customers-detail-main {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.customers-page .customers-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}


/* =========================================================
   15. DETAIL HEADER
   ========================================================= */

.customers-page .customers-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-lg);
    box-shadow: var(--customers-shadow-sm);
}

.customers-page .customers-detail-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.customers-page .customers-detail-avatar {
    flex: 0 0 60px;
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 50%;
    font-size: 19px;
    font-weight: 700;
}

.customers-page .customers-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customers-page .customers-detail-info {
    min-width: 0;
}

.customers-page .customers-detail-name {
    margin: 0;
    color: var(--customers-text);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}

.customers-page .customers-detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 5px;
    color: var(--customers-text-muted);
    font-size: 12px;
}

.customers-page .customers-detail-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}


/* =========================================================
   16. DETAIL SUMMARY
   ========================================================= */

.customers-page .customers-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.customers-page .customers-summary-card {
    padding: 15px;
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-lg);
}

.customers-page .customers-summary-label {
    margin-bottom: 5px;
    color: var(--customers-text-muted);
    font-size: 11px;
    line-height: 1.4;
}

.customers-page .customers-summary-value {
    color: var(--customers-text);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.customers-page .customers-summary-meta {
    margin-top: 4px;
    color: var(--customers-text-muted);
    font-size: 10px;
}


/* =========================================================
   17. DETAIL SECTIONS
   ========================================================= */

.customers-page .customers-detail-section {
    overflow: hidden;
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-lg);
    box-shadow: var(--customers-shadow-sm);
}

.customers-page .customers-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--customers-border-light);
}

.customers-page .customers-section-title {
    margin: 0;
    color: var(--customers-text);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

.customers-page .customers-section-body {
    padding: 18px;
}


/* =========================================================
   18. CONTACT INFORMATION
   ========================================================= */

.customers-page .customers-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.customers-page .customers-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--customers-surface-soft);
    border: 1px solid var(--customers-border-light);
    border-radius: var(--customers-radius-md);
}

.customers-page .customers-contact-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
    border-radius: 9px;
}

.customers-page .customers-contact-content {
    min-width: 0;
}

.customers-page .customers-contact-label {
    display: block;
    margin-bottom: 2px;
    color: var(--customers-text-muted);
    font-size: 10px;
    line-height: 1.4;
}

.customers-page .customers-contact-value {
    color: var(--customers-text);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 600;
    word-break: break-word;
}


/* =========================================================
   19. ADDRESS CARD
   ========================================================= */

.customers-page .customers-address {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px;
    background: var(--customers-surface-soft);
    border: 1px solid var(--customers-border-light);
    border-radius: var(--customers-radius-md);
}

.customers-page .customers-address-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--customers-info);
    background: var(--customers-info-soft);
    border-radius: 9px;
}

.customers-page .customers-address-content {
    min-width: 0;
}

.customers-page .customers-address-label {
    display: block;
    margin-bottom: 3px;
    color: var(--customers-text-muted);
    font-size: 10px;
    font-weight: 600;
}

.customers-page .customers-address-text {
    margin: 0;
    color: var(--customers-text-secondary);
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   20. CUSTOMER TAGS
   ========================================================= */

.customers-page .customers-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.customers-page .customers-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 25px;
    padding: 4px 8px;
    color: var(--customers-text-secondary);
    background: var(--customers-surface-soft);
    border: 1px solid var(--customers-border);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
}

.customers-page .customers-tag-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    padding: 0;
    color: var(--customers-text-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}


/* =========================================================
   21. CUSTOMER ACTIVITY / INTERACTIONS
   ========================================================= */

.customers-page .customers-interactions {
    display: flex;
    flex-direction: column;
}

.customers-page .customers-interaction {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
}

.customers-page .customers-interaction:not(:last-child) {
    border-bottom: 1px solid var(--customers-border-light);
}

.customers-page .customers-interaction-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
    border-radius: 50%;
    font-size: 13px;
}

.customers-page .customers-interaction-content {
    min-width: 0;
}

.customers-page .customers-interaction-title {
    margin: 0;
    color: var(--customers-text);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}

.customers-page .customers-interaction-description {
    margin: 4px 0 0;
    color: var(--customers-text-secondary);
    font-size: 12px;
    line-height: 1.6;
}

.customers-page .customers-interaction-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 5px;
    color: var(--customers-text-muted);
    font-size: 10px;
}


/* =========================================================
   22. ACTIVITY TIMELINE
   ========================================================= */

.customers-page .customers-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
}

.customers-page .customers-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 20px;
}

.customers-page .customers-timeline-item:last-child {
    padding-bottom: 0;
}

.customers-page .customers-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 27px;
    bottom: 0;
    left: 13px;
    width: 1px;
    background: var(--customers-border);
}

.customers-page .customers-timeline-marker {
    position: relative;
    z-index: 1;
    width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 50%;
    font-size: 10px;
}

.customers-page .customers-timeline-content {
    min-width: 0;
}

.customers-page .customers-timeline-title {
    margin: 0;
    color: var(--customers-text);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}

.customers-page .customers-timeline-description {
    margin: 3px 0 0;
    color: var(--customers-text-secondary);
    font-size: 11px;
    line-height: 1.6;
}

.customers-page .customers-timeline-time {
    display: block;
    margin-top: 4px;
    color: var(--customers-text-muted);
    font-size: 10px;
}


/* =========================================================
   23. NOTES
   ========================================================= */

.customers-page .customers-notes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customers-page .customers-note {
    padding: 13px;
    background: var(--customers-surface-soft);
    border: 1px solid var(--customers-border-light);
    border-radius: var(--customers-radius-md);
}

.customers-page .customers-note-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.customers-page .customers-note-title {
    margin: 0;
    color: var(--customers-text);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}

.customers-page .customers-note-date {
    flex: 0 0 auto;
    color: var(--customers-text-muted);
    font-size: 10px;
}

.customers-page .customers-note-content {
    margin: 7px 0 0;
    color: var(--customers-text-secondary);
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.customers-page .customers-note-author {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
    color: var(--customers-text-muted);
    font-size: 10px;
}


/* =========================================================
   24. NOTE FORM
   ========================================================= */

.customers-page .customers-note-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customers-page .customers-note-textarea {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    padding: 11px 12px;
    color: var(--customers-text);
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-md);
    outline: none;
}

.customers-page .customers-note-textarea:focus {
    border-color: var(--customers-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   25. FOLLOW-UPS
   ========================================================= */

.customers-page .customers-followups {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.customers-page .customers-followup {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-md);
}

.customers-page .customers-followup-date {
    min-width: 52px;
    padding: 7px 6px;
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
    border-radius: var(--customers-radius-md);
    text-align: center;
}

.customers-page .customers-followup-day {
    display: block;
    font-size: 17px;
    line-height: 1.1;
    font-weight: 700;
}

.customers-page .customers-followup-month {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.customers-page .customers-followup-content {
    min-width: 0;
}

.customers-page .customers-followup-title {
    margin: 0;
    color: var(--customers-text);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
}

.customers-page .customers-followup-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 3px;
    color: var(--customers-text-muted);
    font-size: 10px;
}

.customers-page .customers-followup-actions {
    display: flex;
    align-items: center;
    gap: 5px;
}


/* =========================================================
   26. FOLLOW-UP STATUS
   ========================================================= */

.customers-page .customers-followup-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
}

.customers-page .customers-followup-status.is-pending {
    color: var(--customers-warning);
    background: var(--customers-warning-soft);
}

.customers-page .customers-followup-status.is-completed {
    color: var(--customers-success);
    background: var(--customers-success-soft);
}

.customers-page .customers-followup-status.is-overdue {
    color: var(--customers-danger);
    background: var(--customers-danger-soft);
}

.customers-page .customers-followup-status.is-cancelled {
    color: var(--customers-text-muted);
    background: #f3f4f6;
}


/* =========================================================
   27. RELATED RECORDS
   ========================================================= */

.customers-page .customers-related-list {
    display: flex;
    flex-direction: column;
}

.customers-page .customers-related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
}

.customers-page .customers-related-item:not(:last-child) {
    border-bottom: 1px solid var(--customers-border-light);
}

.customers-page .customers-related-info {
    min-width: 0;
}

.customers-page .customers-related-title {
    display: block;
    overflow: hidden;
    color: var(--customers-text);
    font-size: 12px;
    line-height: 1.5;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customers-page .customers-related-meta {
    display: block;
    margin-top: 2px;
    color: var(--customers-text-muted);
    font-size: 10px;
}


/* =========================================================
   28. CUSTOMER ORDERS / QUOTES / LEADS TABLE
   ========================================================= */

.customers-page .customers-record-table {
    width: 100%;
    overflow-x: auto;
}

.customers-page .customers-record-table table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

.customers-page .customers-record-table th {
    padding: 10px 12px;
    color: var(--customers-text-muted);
    background: var(--customers-surface-soft);
    border-bottom: 1px solid var(--customers-border);
    font-size: 10px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
}

.customers-page .customers-record-table td {
    padding: 12px;
    border-bottom: 1px solid var(--customers-border-light);
    color: var(--customers-text-secondary);
    font-size: 12px;
}

.customers-page .customers-record-table tr:last-child td {
    border-bottom: 0;
}


/* =========================================================
   29. REVENUE
   ========================================================= */

.customers-page .customers-revenue {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.customers-page .customers-revenue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.customers-page .customers-revenue-label {
    color: var(--customers-text-secondary);
    font-size: 11px;
}

.customers-page .customers-revenue-value {
    color: var(--customers-text);
    font-size: 12px;
    font-weight: 700;
}

.customers-page .customers-revenue-row.is-total {
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid var(--customers-border);
}

.customers-page .customers-revenue-row.is-total .customers-revenue-label,
.customers-page .customers-revenue-row.is-total .customers-revenue-value {
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   30. CUSTOMER SCORE
   ========================================================= */

.customers-page .customers-score {
    display: flex;
    align-items: center;
    gap: 12px;
}

.customers-page .customers-score-value {
    color: var(--customers-text);
    font-size: 25px;
    line-height: 1;
    font-weight: 800;
}

.customers-page .customers-score-info {
    min-width: 0;
}

.customers-page .customers-score-label {
    display: block;
    color: var(--customers-text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.customers-page .customers-score-help {
    display: block;
    margin-top: 2px;
    color: var(--customers-text-muted);
    font-size: 10px;
}


/* =========================================================
   31. PROGRESS
   ========================================================= */

.customers-page .customers-progress {
    width: 100%;
    height: 7px;
    overflow: hidden;
    background: var(--customers-border-light);
    border-radius: 999px;
}

.customers-page .customers-progress-bar {
    height: 100%;
    min-width: 0;
    background: var(--customers-primary);
    border-radius: inherit;
    transition: width 300ms ease;
}

.customers-page .customers-progress-bar.is-success {
    background: var(--customers-success);
}

.customers-page .customers-progress-bar.is-warning {
    background: var(--customers-warning);
}

.customers-page .customers-progress-bar.is-danger {
    background: var(--customers-danger);
}


/* =========================================================
   32. BULK ACTION BAR
   ========================================================= */

.customers-page .customers-bulkbar {
    position: sticky;
    bottom: 14px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    margin-top: 12px;
    background: var(--customers-text);
    color: #ffffff;
    border-radius: var(--customers-radius-lg);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.customers-page .customers-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
}

.customers-page .customers-bulk-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.customers-page .customers-bulkbar .btn {
    min-height: 32px;
}


/* =========================================================
   33. PAGINATION
   ========================================================= */

.customers-page .customers-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 2px 0;
}

.customers-page .customers-pagination-info {
    color: var(--customers-text-muted);
    font-size: 11px;
}

.customers-page .customers-pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.customers-page .customers-pagination-btn {
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    color: var(--customers-text-secondary);
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-md);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        color var(--customers-transition),
        background var(--customers-transition),
        border-color var(--customers-transition);
}

.customers-page .customers-pagination-btn:hover {
    color: var(--customers-primary);
    border-color: rgba(37, 99, 235, 0.25);
}

.customers-page .customers-pagination-btn.is-active {
    color: #ffffff;
    background: var(--customers-primary);
    border-color: var(--customers-primary);
}

.customers-page .customers-pagination-btn:disabled,
.customers-page .customers-pagination-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* =========================================================
   34. EMPTY STATE
   ========================================================= */

.customers-page .customers-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 35px 20px;
    text-align: center;
    background: var(--customers-surface);
    border: 1px dashed var(--customers-border);
    border-radius: var(--customers-radius-lg);
}

.customers-page .customers-empty-content {
    max-width: 390px;
}

.customers-page .customers-empty-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    color: var(--customers-text-muted);
    background: var(--customers-surface-soft);
    border: 1px solid var(--customers-border-light);
    border-radius: 50%;
    font-size: 21px;
}

.customers-page .customers-empty-title {
    margin: 0;
    color: var(--customers-text);
    font-size: 15px;
    font-weight: 700;
}

.customers-page .customers-empty-description {
    margin: 6px 0 15px;
    color: var(--customers-text-muted);
    font-size: 12px;
    line-height: 1.7;
}


/* =========================================================
   35. ERROR STATE
   ========================================================= */

.customers-page .customers-error {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    color: var(--customers-danger);
    background: var(--customers-danger-soft);
    border: 1px solid rgba(220, 38, 38, 0.14);
    border-radius: var(--customers-radius-lg);
}

.customers-page .customers-error-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 9px;
}

.customers-page .customers-error-content {
    min-width: 0;
}

.customers-page .customers-error-title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
}

.customers-page .customers-error-message {
    margin: 3px 0 0;
    color: var(--customers-text-secondary);
    font-size: 11px;
}


/* =========================================================
   36. LOADING STATE
   ========================================================= */

.customers-page .customers-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 30px;
}

.customers-page .customers-loading-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--customers-text-muted);
    font-size: 12px;
}

.customers-page .customers-loader {
    width: 20px;
    height: 20px;
    border: 2px solid var(--customers-border);
    border-top-color: var(--customers-primary);
    border-radius: 50%;
    animation: customers-spin 700ms linear infinite;
}

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


/* =========================================================
   37. SKELETON LOADING
   ========================================================= */

.customers-page .customers-skeleton {
    position: relative;
    overflow: hidden;
    background: #e9eef5;
    border-radius: 6px;
}

.customers-page .customers-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.55),
        transparent
    );
    animation: customers-skeleton 1.4s infinite;
}

.customers-page .customers-skeleton-line {
    height: 10px;
    margin-bottom: 7px;
}

.customers-page .customers-skeleton-line.is-short {
    width: 40%;
}

.customers-page .customers-skeleton-line.is-medium {
    width: 65%;
}

.customers-page .customers-skeleton-line.is-long {
    width: 90%;
}

.customers-page .customers-skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

@keyframes customers-skeleton {
    100% {
        transform: translateX(100%);
    }
}


/* =========================================================
   38. MOBILE CUSTOMER CARD
   ========================================================= */

.customers-page .customers-mobile-list {
    display: none;
}

.customers-page .customers-mobile-card {
    padding: 14px;
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-lg);
    box-shadow: var(--customers-shadow-sm);
}

.customers-page .customers-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--customers-border-light);
}

.customers-page .customers-mobile-card-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 0;
}

.customers-page .customers-mobile-field {
    min-width: 0;
}

.customers-page .customers-mobile-label {
    display: block;
    margin-bottom: 3px;
    color: var(--customers-text-muted);
    font-size: 9px;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.customers-page .customers-mobile-value {
    display: block;
    overflow: hidden;
    color: var(--customers-text);
    font-size: 11px;
    line-height: 1.5;
    font-weight: 600;
    text-overflow: ellipsis;
}

.customers-page .customers-mobile-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--customers-border-light);
}


/* =========================================================
   39. FORM GROUPS
   ========================================================= */

.customers-page .customers-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.customers-page .customers-form-grid.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customers-page .customers-form-field {
    min-width: 0;
}

.customers-page .customers-form-field.is-full {
    grid-column: 1 / -1;
}

.customers-page .customers-form-label {
    display: block;
    margin-bottom: 6px;
    color: var(--customers-text-secondary);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
}

.customers-page .customers-form-help {
    display: block;
    margin-top: 4px;
    color: var(--customers-text-muted);
    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   40. QUICK CONTACT BUTTONS
   ========================================================= */

.customers-page .customers-quick-contact {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.customers-page .customers-quick-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 8px;
    color: var(--customers-text-secondary);
    background: var(--customers-surface);
    border: 1px solid var(--customers-border);
    border-radius: var(--customers-radius-md);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition:
        color var(--customers-transition),
        border-color var(--customers-transition),
        background var(--customers-transition);
}

.customers-page .customers-quick-contact-btn:hover {
    color: var(--customers-primary);
    background: var(--customers-primary-soft);
    border-color: rgba(37, 99, 235, 0.16);
}


/* =========================================================
   41. CUSTOMER PERMISSION / PRIVACY
   ========================================================= */

.customers-page .customers-privacy-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    color: var(--customers-text-secondary);
    background: var(--customers-surface-soft);
    border: 1px solid var(--customers-border-light);
    border-radius: var(--customers-radius-md);
}

.customers-page .customers-privacy-icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--customers-info);
    background: var(--customers-info-soft);
    border-radius: 8px;
}

.customers-page .customers-privacy-text {
    margin: 0;
    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   42. FOCUS ACCESSIBILITY
   ========================================================= */

.customers-page a:focus-visible,
.customers-page button:focus-visible,
.customers-page input:focus-visible,
.customers-page select:focus-visible,
.customers-page textarea:focus-visible {
    outline: 2px solid var(--customers-primary);
    outline-offset: 2px;
}


/* =========================================================
   43. DARK MODE
   ========================================================= */

@media (prefers-color-scheme: dark) {
    .customers-page {
        --customers-bg: var(--bg-color, #0f172a);
        --customers-surface: var(--surface, #111827);
        --customers-surface-soft: #172033;

        --customers-text: var(--text-primary, #f8fafc);
        --customers-text-secondary: var(--text-secondary, #cbd5e1);
        --customers-text-muted: var(--text-muted, #94a3b8);

        --customers-border: var(--border-color, #263244);
        --customers-border-light: #202b3c;
    }

    .customers-page .customers-table tbody tr:hover td {
        background: #151f2e;
    }

    .customers-page .customers-search-input,
    .customers-page .customers-filter-select {
        background: var(--customers-surface);
        color: var(--customers-text);
    }

    .customers-page .customers-skeleton {
        background: #263244;
    }

    .customers-page .customers-skeleton::after {
        background: linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.06),
            transparent
        );
    }
}


/* =========================================================
   44. LARGE TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .customers-page .customers-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customers-page .customers-detail {
        grid-template-columns: minmax(0, 1fr);
    }

    .customers-page .customers-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customers-page .customers-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   45. TABLET
   ========================================================= */

@media (max-width: 900px) {

    .customers-page .customers-header {
        align-items: stretch;
        flex-direction: column;
    }

    .customers-page .customers-actions {
        justify-content: flex-start;
    }

    .customers-page .customers-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .customers-page .customers-toolbar-left,
    .customers-page .customers-toolbar-right {
        width: 100%;
    }

    .customers-page .customers-search {
        flex: 1 1 240px;
        min-width: 0;
    }

    .customers-page .customers-detail-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .customers-page .customers-detail-actions {
        width: 100%;
    }

    .customers-page .customers-form-grid.is-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customers-page .customers-table-wrap {
        border-radius: var(--customers-radius-md);
    }
}


/* =========================================================
   46. MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .customers-page .customers-header {
        gap: 14px;
        margin-bottom: 18px;
    }

    .customers-page .customers-title {
        font-size: 21px;
    }

    .customers-page .customers-subtitle {
        font-size: 12px;
    }

    .customers-page .customers-actions {
        width: 100%;
    }

    .customers-page .customers-actions > * {
        flex: 1 1 auto;
    }

    .customers-page .customers-stats {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        margin-bottom: 16px;
    }

    .customers-page .customers-stat-card {
        padding: 13px;
        gap: 9px;
    }

    .customers-page .customers-stat-icon {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
        border-radius: 9px;
        font-size: 15px;
    }

    .customers-page .customers-stat-value {
        font-size: 18px;
    }

    .customers-page .customers-stat-label {
        font-size: 10px;
    }

    .customers-page .customers-stat-change {
        display: none;
    }

    .customers-page .customers-toolbar {
        padding: 10px;
        margin-bottom: 12px;
    }

    .customers-page .customers-toolbar-left,
    .customers-page .customers-toolbar-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .customers-page .customers-search {
        grid-column: 1 / -1;
        width: 100%;
    }

    .customers-page .customers-filter {
        min-width: 0;
        width: 100%;
    }

    .customers-page .customers-tabs {
        margin-bottom: 12px;
        border-radius: var(--customers-radius-md);
    }

    .customers-page .customers-tab {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .customers-page .customers-table-wrap {
        display: none;
    }

    .customers-page .customers-mobile-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .customers-page .customers-summary-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .customers-page .customers-summary-card {
        padding: 12px;
    }

    .customers-page .customers-summary-value {
        font-size: 16px;
    }

    .customers-page .customers-contact-grid {
        grid-template-columns: 1fr;
    }

    .customers-page .customers-detail-sidebar {
        display: flex;
    }

    .customers-page .customers-detail-header {
        padding: 15px;
    }

    .customers-page .customers-detail-profile {
        width: 100%;
    }

    .customers-page .customers-detail-avatar {
        flex-basis: 48px;
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .customers-page .customers-detail-name {
        font-size: 17px;
    }

    .customers-page .customers-detail-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .customers-page .customers-detail-actions > * {
        width: 100%;
    }

    .customers-page .customers-card-header,
    .customers-page .customers-section-header {
        padding: 13px 14px;
    }

    .customers-page .customers-card-body,
    .customers-page .customers-section-body {
        padding: 14px;
    }

    .customers-page .customers-form-grid,
    .customers-page .customers-form-grid.is-three {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .customers-page .customers-followup {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .customers-page .customers-followup-actions {
        grid-column: 2;
        justify-content: flex-start;
    }

    .customers-page .customers-bulkbar {
        bottom: 8px;
        align-items: flex-start;
        flex-direction: column;
    }

    .customers-page .customers-bulk-actions {
        width: 100%;
    }

    .customers-page .customers-bulk-actions > * {
        flex: 1 1 auto;
    }

    .customers-page .customers-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .customers-page .customers-pagination-controls {
        width: 100%;
        justify-content: center;
    }

    .customers-page .customers-empty {
        min-height: 240px;
    }

    .customers-page .customers-quick-contact {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   47. VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .customers-page .customers-stats {
        grid-template-columns: 1fr;
    }

    .customers-page .customers-summary-grid {
        grid-template-columns: 1fr;
    }

    .customers-page .customers-mobile-card-body {
        grid-template-columns: 1fr;
    }

    .customers-page .customers-toolbar-left,
    .customers-page .customers-toolbar-right {
        grid-template-columns: 1fr;
    }

    .customers-page .customers-search {
        grid-column: auto;
    }

    .customers-page .customers-detail-actions {
        grid-template-columns: 1fr;
    }

    .customers-page .customers-followup {
        grid-template-columns: 1fr;
    }

    .customers-page .customers-followup-actions {
        grid-column: auto;
    }
}


/* =========================================================
   48. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .customers-page *,
    .customers-page *::before,
    .customers-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* =========================================================
   END OF CUSTOMERS.CSS
   ========================================================= */