/* ════════════════════════════════════════════════════
 * settings-billing.css
 * ════════════════════════════════════════════════════
 *
 * Billing-specific styling for Settings → Billing tabs and the modals
 * they trigger. Generic UI primitives (buttons, modals, inputs, badges)
 * live in `css/lani-ui.css` — this file only holds layout/structure
 * unique to billing.
 */

/* ── Layout ──────────────────────────────────────── */

/* Standard tab pane wrapper. The 960px cap + zero horizontal padding match
 * Providers/Profiles (.sp-section-wrap / .spr-section) so every Settings page
 * shares the same centered column. Top padding keeps a gap below the tabs. */
.billing-tab-pane {
    padding: 24px 0;
    max-width: 960px;
    margin: 0 auto;
}

/* Inline-blocky surface card used for the Balance / Auto-Recharge / Budget
 * panels. Background distinguishes it from the page; rounded corners +
 * standard padding for content. */
.billing-section {
    background: var(--bg-surface);
    border-radius: 8px;
    padding: 20px;
}

/* Section heading inside a .billing-section card (e.g. "Budget Alerts"). */
.billing-section-heading {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Form section: stacked label + hint + input(s) with breathing room
 * between sections. Used by the Preferences tab. */
.billing-form-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

/* ── Stat / KPI displays ─────────────────────────── */

/* "Current Balance", "August budget", "Threshold" — the small caption
 * sitting above a numeric value. */
.billing-stat-caption {
    color: var(--text-secondary);
    font-size: 12px;
    margin: 0 0 4px;
}

/* The dense numeric value below a stat caption — used in the auto-recharge
 * config grid (3 cells) and the limits page subtotals. */
.billing-stat-value {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

/* Large hero number for the page-level balance / budget headline. */
.billing-stat-display {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* ── History tab — status filter ─────────────────── */

/* Variant of .lani-select with wider left padding to clear the leading
 * filter icon, plus a shadow that matches the table chrome on hover/focus.
 * Combine with .lani-select on the same element. */
.lani-history-filter {
    padding: 9px 36px 9px 34px;
    border-radius: 8px;
    font-weight: 500;
    min-width: 140px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.lani-history-filter:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(123, 104, 238, 0.15);
}

.lani-history-filter:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(123, 104, 238, 0.15);
}

/* ── Limits tab — email-chip input (budget alert modal) ── */

.email-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    padding: 4px 6px 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
}

.email-chip-remove {
    background: rgba(34, 197, 94, 0.18);
    color: #22c55e;
    border: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.email-chip-remove:hover {
    background: rgba(34, 197, 94, 0.3);
}
