/* Public API usage dashboard (Pages/ApiUsageAdmin.razor). Feature styles only; primitives come from mds.css. */

.apiusage-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.apiusage-window {
    font-size: .9rem;
    color: var(--mds-muted);
}

.apiusage-window select {
    margin-left: .4rem;
    padding: .3rem .5rem;
    border: 1px solid var(--mds-line);
    border-radius: var(--mds-radius, 6px);
    background: var(--mds-surface);
    color: inherit;
}

/* KPI row */
.apiusage-kpis {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1rem 0 1.5rem;
}

.apiusage-kpi {
    flex: 1 1 140px;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: 1rem 1.2rem;
    background: var(--mds-surface);
    border: 1px solid var(--mds-line);
    border-radius: var(--mds-radius, 8px);
}

.apiusage-kpi__num {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--mds-accent);
}

.apiusage-kpi__lbl {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--mds-muted);
}

/* Volume-per-day bars */
.apiusage-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 140px;
    overflow-x: auto;
    padding-top: .5rem;
}

.apiusage-bar {
    flex: 1 0 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.apiusage-bar__fill {
    width: 60%;
    min-height: 2px;
    background: var(--mds-accent);
    border-radius: 3px 3px 0 0;
}

.apiusage-bar__lbl {
    margin-top: .35rem;
    font-size: .65rem;
    color: var(--mds-muted);
    white-space: nowrap;
    transform: rotate(-45deg);
    transform-origin: top left;
}

/* Two-column section (endpoints + products) */
.apiusage-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}
