/*
 * DrillDown affordance — applied to any stat/KPI card carrying data-drill-url
 * (and to .is-drillable, which DrillDown.MarkCards adds). Keep this visual-only;
 * behavior lives in js/shared/drilldown.js.
 */
.stat-card[data-drill-url],
.kpi-card[data-drill-url],
.is-drillable {
    cursor: pointer;
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.stat-card[data-drill-url]:hover,
.kpi-card[data-drill-url]:hover,
.is-drillable:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

/* Subtle "open" hint in the corner, revealed on hover. */
.stat-card[data-drill-url]::after,
.kpi-card[data-drill-url]::after {
    content: "\2197"; /* ↗ */
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 12px;
    line-height: 1;
    color: #94a3b8;
    opacity: 0;
    transition: opacity 0.12s ease;
    pointer-events: none;
}

.stat-card[data-drill-url]:hover::after,
.kpi-card[data-drill-url]:hover::after {
    opacity: 1;
}

.stat-card[data-drill-url]:focus-visible,
.kpi-card[data-drill-url]:focus-visible,
.is-drillable:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 2px;
}

/* Breakdown-panel / legend rows that drill (data-drill-url on a .drill-row). */
.drill-row[data-drill-url] {
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.12s ease;
}

.drill-row[data-drill-url]:hover {
    background-color: #f1f5f9;
}

.drill-row[data-drill-url]:focus-visible {
    outline: 2px solid #059669;
    outline-offset: 1px;
}

/* Drill-context chip on a list page (shows the active bucket/metric). */
.drill-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
}

.drill-chip .drill-chip-remove {
    border: none;
    background: transparent;
    color: #047857;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
