.statscan-table-container {
    margin: 2em 0;
    font-family: system-ui, -apple-system, sans-serif;
}

.statscan-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    table-layout: fixed;
}

.statscan-table thead {
    background: #f8f9fa;
}

.statscan-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.statscan-table th.sortable {
    cursor: pointer;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.statscan-table th i {
    width: 18px;
    height: 18px;
    color: #6b7280;
    vertical-align: middle;
    margin-left: 8px;
}

.statscan-table th svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.statscan-table thead tr {
    display: table-row;
}

.statscan-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #4b5563;
    white-space: normal;
    word-wrap: break-word;
}

.statscan-table tr:hover {
    background: #f9fafb;
}

.view-report {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.view-report:hover {
    text-decoration: underline;
}

.view-report i {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

/* Column width adjustments */
.statscan-table th:first-child, 
.statscan-table td:first-child {
    width: 120px; /* Date column */
}

.statscan-table th:last-child,
.statscan-table td:last-child {
    width: 100px; /* Link column */
    text-align: center;
}

.statscan-table th:nth-child(2),
.statscan-table td:nth-child(2) {
    width: auto; /* Report Title column takes remaining space */
} 