.sw-strava table {
    width: 100%;
    border-collapse: collapse;
}

.sw-strava th,
.sw-strava td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.sw-strava .sw-card {
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 14px;
}

.sw-strava .sw-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.sw-strava .sw-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    opacity: 0.9;
}

.sw-strava .sw-kpis {
    display: flex;
    gap: 16px;
    margin: 10px 0 14px;
}

.sw-strava-error {
    padding: 10px;
    border: 1px solid #ffcccc;
    background: #fff5f5;
    border-radius: 8px;
}

.sw-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.sw-photo {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.sw-photo img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.sw-strava-pager {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.sw-strava-pager button {
    padding: 6px 10px;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.sw-strava-pager button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.sw-strava-loading {
    opacity: .8;
}

.sw-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sw-type .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

th[data-sort],
th[data-sort-client] {
    cursor: pointer;
    user-select: none;
}

th.sw-sort-asc::after {
    content: " ▲";
    font-size: 12px;
    opacity: .7;
}

th.sw-sort-desc::after {
    content: " ▼";
    font-size: 12px;
    opacity: .7;
}

.sw-top-activity .sw-card {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 16px;
}

.sw-top-activity .sw-title {
    font-weight: 700;
    margin-bottom: 10px;
}

.sw-top-activity .sw-top-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.sw-top-activity .sw-top-name a {
    text-decoration: none;
}

.sw-top-activity .sw-top-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.sw-top-activity .sw-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    font-size: 12px;
    opacity: .9;
}

.sw-top-activity .sw-top-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.sw-top-activity .sw-kpi {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 10px;
}

.sw-top-activity .sw-kpi-val {
    font-weight: 800;
    font-size: 1.05rem;
}

.sw-top-activity .sw-kpi-lbl {
    font-size: 12px;
    opacity: .75;
    margin-top: 2px;
}

.sw-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.sw-type .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    opacity: 0.85;
}

.sw-type-text {
    display: inline-block;
}

.sw-type-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: text-bottom;
}

/* --- Strava Theme (from Admin CSS vars) --- */
.sw-strava .sw-card,
.sw-strava {
    background: var(--sw-widget-bg, #fff);
}

.sw-strava .sw-card {
    border: 1px solid var(--sw-border, #e5e5e5);
    border-radius: 14px;
    padding: 16px;
}

.sw-strava .sw-title {
    background: var(--sw-title-bg, #2f6fed);
    color: var(--sw-title-fg, #ffffff);
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 800;
    margin-bottom: 12px;
}

.sw-strava table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--sw-border, #e5e5e5);
    border-radius: 12px;
    overflow: hidden;
}

.sw-strava table thead th {
    background: var(--sw-table-head-bg, #2f6fed);
    color: var(--sw-table-head-fg, #ffffff);
    padding: 10px 10px;
    text-align: left;
    border-bottom: 1px solid var(--sw-border, #e5e5e5);
}

.sw-strava table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--sw-border, #e5e5e5);
}

.sw-strava table tbody tr:nth-child(even) {
    background: var(--sw-row-alt, #eef4ff);
}

.sw-strava table a {
    color: var(--sw-primary, #2f6fed);
    text-decoration: none;
}

.sw-strava table a:hover {
    text-decoration: underline;
}