/* GCP Activity Timeline pane. Vertical timeline of audit events
   over the last 24h. Severity filter chips at the top. */

.lp-azure-it .lp-pane-badge {
    background: #0078d4;  /* lint-allow brand-colour */
    color: #ffffff;        /* lint-allow brand-colour */
}

.lp-azure-it-body { padding: 12px var(--lp-pane-pad-x); }

.lp-azure-it-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.lp-azure-it-summary-card {
    border: 1px solid var(--lp-pane-border, #e8d8a8);
    background: var(--lp-pane-bg, #fffaf0);
    border-radius: 6px;
    padding: 8px 12px;
}
.lp-azure-it-summary-value {
    font-size: 20px; font-weight: 700; line-height: 1.1;
    color: var(--lp-pane-title-ink, #4a3f1c);
    font-variant-numeric: tabular-nums;
}
.lp-azure-it-summary-value.is-bad  { color: #991b1b; }
.lp-azure-it-summary-value.is-warn { color: #b45309; }
.lp-azure-it-summary-value.is-ok   { color: #047857; }
.lp-azure-it-summary-label {
    font-size: 11px;
    color: var(--lp-pane-meta-ink, #998870);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-top: 4px;
}

.lp-azure-it-filters {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
}
.lp-azure-it-filter {
    padding: 4px 10px; border-radius: 999px;
    background: rgba(0,0,0,0.04); color: var(--lp-pane-title-ink, #4a3f1c);
    border: 1px solid transparent; font-size: 12px; cursor: pointer;
}
.lp-azure-it-filter:hover { background: rgba(0,0,0,0.08); }
.lp-azure-it-filter.is-active {
    background: #0078d4; color: #ffffff;  /* lint-allow brand-colour */
    border-color: #0078d4;                 /* lint-allow brand-colour */
    font-weight: 600;
}

.lp-azure-it-event {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--lp-pane-border-faint, #f0e7d0);
    align-items: start;
}
.lp-azure-it-dot {
    width: 8px; height: 8px; border-radius: 999px;
    margin-top: 6px; flex-shrink: 0;
}
.lp-azure-it-dot.is-bad   { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15); }
.lp-azure-it-dot.is-warn  { background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15); }
.lp-azure-it-dot.is-info  { background: #0078d4; box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15); }  /* lint-allow brand-colour */
.lp-azure-it-dot.is-ok    { background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.lp-azure-it-summary-line {
    font-size: 13px; color: var(--lp-pane-title-ink, #4a3f1c);
    overflow-wrap: anywhere;
    word-break: break-word;
}
.lp-azure-it-summary-line code {
    font-size: 12px; background: rgba(0,0,0,0.04);
    padding: 1px 4px; border-radius: 3px;
    word-break: break-all;
}
.lp-azure-it-meta {
    font-size: 11px; color: var(--lp-pane-meta-ink, #998870);
    margin-top: 2px;
}
.lp-azure-it-time {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px; color: var(--lp-pane-meta-ink, #998870);
    white-space: nowrap;
}

.lp-azure-it-empty {
    font-size: 12px; font-style: italic;
    color: var(--lp-pane-meta-ink, #998870);
    padding: 14px 4px; text-align: center;
}

@media (max-width: 480px) {
    .lp-azure-it-event { grid-template-columns: auto 1fr; }
    .lp-azure-it-time { display: none; }
}

/* Scrollable event list — bounds the 24h stream to ~20 rows and lets
   it scroll, with a fading "scroll for more" hint (mirrors the SSM
   Parameters scroll region on the discovery dashboard). Tune the row
   count via max-height. */
.lp-it-scroll {
    position: relative;
    max-height: 640px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.lp-it-scroll-hint {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: center;
    pointer-events: none;
    padding: 12px 0 4px;
    margin-top: -8px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--lp-pane-meta-ink, #998870);
    background: linear-gradient(to top, var(--lp-pane-bg, #fffaf0) 45%, transparent);
    transition: opacity 160ms ease;
}
.lp-it-scroll-hint--hidden { opacity: 0; }
