[data-module-view="customers"] .module-panel-header {
    padding: 12px 14px;
    border: none;
    border-bottom: 1px solid var(--border2-color);
}

.customer-module__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.customer-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pill-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--card-bg);
    color: var(--muted);
    font-size: 12px;
    border: 1px solid var(--border2-color);
}

.customer-table--customers .table-head,
.customer-table--customers .table-row {
    grid-template-columns: 1.4fr 1.3fr 1.1fr 0.9fr 0.9fr;
    align-items: center;
}

.customer-table--customers .table-head {
    background: #f4f6f9;
    border-color: var(--border2-color);
}

.customer-row.loading {
    opacity: 0.6;
    pointer-events: none;
}

.customer-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.customer-cell--name {
    gap: 12px;
}

.customer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-bg), var(--card-bg-alt));
    border: 1px solid var(--border2-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.customer-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.customer-name {
    font-weight: 700;
    color: var(--text);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-subtext {
    color: var(--muted2);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-contact {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-created {
    color: var(--muted2);
    font-size: 12px;
}

.customer-id {
    justify-content: flex-start;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--muted);
    font-size: 12px;
    border: 1px solid var(--border2-color);
    white-space: nowrap;
}

.chip-muted {
    background: #f4f6f9;
    color: var(--muted2);
    border-color: var(--border2-color);
}

.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-top: 1px solid var(--border2-color);
    background: #fbfcfe;
    color: var(--muted2);
    font-size: 12px;
}

.table-footer-top {
    border-top: 0;
    border-bottom: 1px solid var(--border2-color);
    margin-bottom: 8px;
}

.pager {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pager .smallbtn {
    min-width: 34px;
    height: 34px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-color: #d6dde8;
    background: #ffffff;
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.pager .smallbtn:hover {
    border-color: #b9c7dc;
    background: #f7faff;
    color: #1d4ed8;
}

.pager .smallbtn.page-gap {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #98a2b3;
    min-width: auto;
    padding: 0 4px;
    cursor: default;
}

@media (max-width: 900px) {
    .table-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    .pager {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 900px) {
.customer-table--customers .table-head,
.customer-table--customers .table-row {
        grid-template-columns: 1.6fr 1.4fr 1fr;
    }
    .customer-table--customers .table-head > :nth-child(4),
    .customer-table--customers .table-head > :nth-child(5),
    .customer-table--customers .table-row > :nth-child(4),
    .customer-table--customers .table-row > :nth-child(5) {
        display: none;
    }
}

@media (max-width: 640px) {
    .customer-table--customers .table-head,
    .customer-table--customers .table-row {
        grid-template-columns: 1.4fr 1.2fr;
    }
    .customer-table--customers .table-head > :nth-child(3),
    .customer-table--customers .table-row > :nth-child(3) {
        display: none;
    }
}
