/* =============================================================================
   components/table.css
   Data table used for the sync history view inside manage-integration.
   ============================================================================= */

.integration-table-container {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--border-radius-md);
}

.sync-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-sm);
}

.sync-history-table thead {
    background: linear-gradient(135deg, rgba(0, 56, 255, 0.08) 0%, rgba(0, 56, 255, 0.04) 100%);
}

.sync-history-table thead tr {
    border-bottom: 2px solid var(--primary);
}

.sync-history-table th {
    padding: var(--space-3) var(--space-2);
    text-align: left;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sync-history-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.sync-history-table tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.sync-history-table tbody tr:last-child { border-bottom: none; }

.sync-history-table tbody tr:hover {
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.sync-history-table td {
    padding: var(--space-3) var(--space-2);
    color: var(--text-dark);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
}

.sync-history-table td:first-child { color: var(--text-light); }

.sync-history-table td:not(:first-child),
.sync-history-table th:not(:first-child) {
    text-align: center;
}

.sync-history-table td:last-child {
    background: linear-gradient(135deg, rgba(0, 56, 255, 0.05) 0%, rgba(0, 56, 255, 0.02) 100%);
    border-left: 2px solid rgba(0, 56, 255, 0.1);
}

.sync-history-table td strong {
    color: var(--primary);
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-lg);
}

.sync-no-data {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    font-style: italic;
}

/* -----------------------------------------------------------------------------
   Responsive
   ----------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .integration-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sync-history-table { min-width: 600px; }

    .sync-history-table th,
    .sync-history-table td {
        padding: var(--space-2);
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 480px) {
    .sync-history-table { min-width: 500px; }
}
