/* logs.html — page-specific styles. Shared rules live in app.css. */

.logs-table { position: relative; }
.logs-table table { min-width: 880px; }
.th-expand { width: 44px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.controls .check select { margin-left: 0.4rem; }

.metric-positive { color: var(--store-text); font-weight: 500; }
.metric-negative { color: var(--removed-text); font-weight: 500; }
.metric-neutral { color: var(--text-3); }
.running-text { color: var(--warn-text); }
.error-cell {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--err-text);
    cursor: pointer;
    font-size: 12.5px;
}
.error-cell:hover { white-space: normal; word-break: break-word; }

.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.6rem 0.85rem;
    border-top: 1px solid var(--border);
    background: var(--surface);
}
.pagination-info { color: var(--text-2); font-size: 13px; }
.pagination-controls { display: flex; gap: 0.4rem; align-items: center; font-size: 13px; color: var(--text-2); }
.pagination-controls button { height: 28px; padding: 0 0.6rem; font-size: 12.5px; }
.pagination-controls select { height: 28px; padding: 0 1.7rem 0 0.5rem; font-size: 12.5px; }

/* Expandable details */
.expand-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--surface);
    color: var(--text-2);
    font-size: 9px;
    transition: transform 0.15s, background-color 0.12s;
}
.expand-btn:hover { background: var(--surface-2); color: var(--text); }
.expand-btn.expanded { transform: rotate(90deg); }
.details-row { display: none; }
.details-row.visible { display: table-row; }
.details-row td, .details-row:hover > td { padding: 0; background: var(--surface-2); }
.details-container { padding: 0.6rem 0.85rem 0.6rem 3.2rem; max-height: 320px; overflow-y: auto; display: grid; gap: 0.35rem; }
.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.65rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.detail-item.is-pattern { border-style: dashed; }
.detail-action { min-width: 96px; justify-content: center; }
.detail-action.action-new { background: var(--store-soft); color: var(--store-text); }
.detail-action.action-reactivated { background: var(--reactivated-soft); color: var(--reactivated-text); }
.detail-action.action-updated { background: var(--bar-soft); color: var(--bar-text); }
.detail-action.action-removed { background: var(--removed-soft); color: var(--removed-text); }
.detail-action.action-error { background: var(--transit-soft); color: var(--transit-text); }
.detail-content { flex: 1; min-width: 0; font-size: 13px; }
.detail-location { font-weight: 500; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.detail-changes { color: var(--text-2); font-size: 12.5px; margin-top: 0.15rem; }
.detail-json {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.45rem 0.55rem;
    margin-top: 0.4rem;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-2);
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 120px;
    overflow-y: auto;
}
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 12px;
    font-weight: 500;
    padding: 0.05rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-2);
}
.map-link:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.map-link svg { width: 11px; height: 11px; }
.pattern-badge { background: var(--warn-soft); color: var(--warn-text); font-size: 10.5px; height: 20px; }
.no-details, .details-loading { color: var(--text-3); font-style: italic; padding: 0.5rem 0; }
