.categories-list-table.products-table-wrap .data-table {
    min-width: 860px;
}

.customer-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: var(--space-5);
}

.customer-kpi-grid .stat-card-link {
    display: block;
    width: 100%;
    text-align: inherit;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.customer-kpi-grid .stat-card.is-active {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.stat-card-hint {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
}

.stat-card-refresh {
    position: absolute;
    top: 0.6rem;
    inset-inline-end: 0.6rem;
    border: 0;
    background: transparent;
    color: var(--text-secondary, #6b7280);
    padding: 0.15rem;
    line-height: 1;
}

.stat-card.is-clickable {
    position: relative;
}

@media (max-width: 1200px) {
    .customer-kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.customer-sync-status {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 var(--space-4);
    padding: 0.85rem 1rem;
    border: 1px solid var(--primary, #1a56db);
    border-radius: 10px;
    background: var(--primary-soft, #e8f0fe);
    color: var(--text-primary, #1f2937);
}

.customer-sync-status[hidden] {
    display: none !important;
}

.customer-sync-status .spinner-border {
    margin-top: 0.15rem;
    color: var(--primary, #1a56db);
}

.customer-sync-status__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.customer-sync-status__copy strong {
    font-size: var(--fs-sm, 0.9rem);
}

.customer-sync-status__copy span {
    color: var(--text-secondary, #4b5563);
    font-size: var(--fs-sm, 0.85rem);
}

.customer-sync-overlay {
    position: fixed;
    inset: 0;
    z-index: 10800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.customer-sync-overlay[hidden] {
    display: none !important;
}

.customer-sync-overlay__card {
    width: min(480px, 100%);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    background: var(--surface, #fff);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    text-align: center;
}

.customer-sync-overlay__title {
    margin: 1rem 0 0.35rem;
    font-size: 1.15rem;
}

.customer-sync-overlay__text {
    margin: 0 0 1rem;
    color: var(--text-secondary, #4b5563);
}

.customer-sync-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--primary-soft, #e8f0fe);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.customer-sync-progress__bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--primary, #1a56db);
    transition: width 0.35s ease;
}

.customer-sync-overlay__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
}

body.customer-sync-locked {
    overflow: hidden;
}

body.customer-sync-locked .app-wrapper {
    pointer-events: none;
    user-select: none;
}

body.customer-sync-locked .customer-sync-overlay,
body.customer-sync-locked .toast-container,
body.customer-sync-locked .swal2-container {
    pointer-events: auto;
}

.filters-bar--secondary {
    margin-top: calc(-1 * var(--space-3));
}

.customer-contact-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.customer-contact-cell span {
    direction: ltr;
    unicode-bidi: isolate;
    font-size: var(--fs-sm);
}

.customer-identity-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0;
    color: inherit;
    text-align: start;
    cursor: pointer;
}

.customer-identity-btn strong {
    white-space: normal;
}

.customer-360-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: var(--space-4);
}

.customer-360-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}

.customer-360-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: var(--space-4);
}

.customer-360-metric {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    background: var(--surface-card);
}

.customer-360-metric-label {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.customer-360-metric-value {
    font-weight: 700;
    font-size: 1.05rem;
}

.customer-360-section {
    margin-bottom: var(--space-4);
}

.customer-360-section h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.customer-360-empty {
    color: var(--text-muted);
    font-size: var(--fs-sm);
    margin: 0;
}

.customer-360-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-4);
}

.customer-360-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    border-inline-start: 2px solid var(--surface-border);
}

.customer-360-timeline li {
    padding: 0.4rem 0 0.4rem 0.85rem;
    margin-inline-start: 0.35rem;
    position: relative;
}

.customer-360-timeline li::before {
    content: "";
    position: absolute;
    inset-inline-start: -0.45rem;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.customer-360-open-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.customer-360-open-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--surface-border);
    font-size: var(--fs-sm);
}

.customer-360-skeleton .placeholder {
    background: var(--surface-border);
    border-radius: 6px;
    height: 12px;
    margin-bottom: 10px;
}

.customer-360-drawer .dash-drill-drawer-panel {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 992px) {
    .customer-kpi-grid,
    .customer-360-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .customer-360-drawer .dash-drill-drawer-panel {
        width: min(100%, 100vw);
    }
}

@media (max-width: 576px) {
    .customer-kpi-grid,
    .customer-360-metrics {
        grid-template-columns: 1fr;
    }
}
