/* ============================================================
   Internet Renewal History (admin only) — fx-irh- prefix.
   ============================================================ */

.fx-irh-page { padding: 8px 4px 32px; }

.fx-irh-denied { max-width: 640px; margin: 24px auto; }

/* ---- Header ------------------------------------------------ */
.fx-irh-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fx-irh-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted, #8a8f98);
}

.fx-irh-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .15);
}

.fx-irh-title-block h1 { margin: 6px 0 2px; font-size: 26px; font-weight: 600; }
.fx-irh-title-block h1 em { font-style: italic; color: #16a34a; }
.fx-irh-title-block p { margin: 0; color: var(--text-muted, #8a8f98); font-size: 14px; }

/* ---- Toolbar ----------------------------------------------- */
.fx-irh-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.fx-irh-status-filter { max-width: 160px; }
.fx-irh-search        { flex: 1 1 320px; min-width: 280px; }

/* ---- Card / table ------------------------------------------ */
.fx-irh-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e6e8eb);
    border-radius: 14px;
    overflow: hidden;
}

.fx-irh-table { font-size: 13px; }

.fx-irh-user-name { font-weight: 600; }

.fx-irh-user-sub {
    font-size: 12px;
    color: var(--text-muted, #8a8f98);
    font-family: "Geist Mono", ui-monospace, monospace;
}

.fx-irh-user-uname { color: var(--text-dim, #5b6068); }

.fx-irh-pkg { font-weight: 500; word-break: break-word; }

.fx-irh-amount {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fx-irh-mono {
    font-family: "Geist Mono", ui-monospace, monospace;
    font-size: 12.5px;
    color: var(--text-dim, #5b6068);
    white-space: nowrap;
}

/* ---- Pills ------------------------------------------------- */
.fx-irh-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.fx-irh-method-online { background: #e0e7ff; color: #4338ca; }
.fx-irh-method-wallet { background: #f1f5f9; color: #475569; }

.fx-irh-status-done     { background: #dcfce7; color: #15803d; }
.fx-irh-status-pending  { background: #fef3c7; color: #b45309; }
.fx-irh-status-failed   { background: #fee2e2; color: #b91c1c; }
.fx-irh-status-reversed { background: #ede9fe; color: #6d28d9; }

/* ---- Empty / loading --------------------------------------- */
.fx-irh-empty {
    padding: 36px 16px;
    text-align: center;
    color: var(--text-muted, #8a8f98);
}

.fx-irh-empty .mud-icon-root { font-size: 40px; opacity: .5; }

.fx-irh-empty-title {
    margin-top: 8px;
    font-weight: 600;
    color: var(--text-dim, #5b6068);
}

.fx-irh-loading { padding: 24px; color: var(--text-muted, #8a8f98); }

/* ---- Detail dialog ----------------------------------------- */
.fx-irh-detail { display: flex; flex-direction: column; gap: 4px; }

.fx-irh-detail-grid {
    display: grid;
    grid-template-columns: 150px 1fr;
    row-gap: 7px;
    column-gap: 12px;
}

.fx-irh-detail-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #8a8f98);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.fx-irh-detail-value { font-size: 13.5px; word-break: break-word; }
