.topup-page {
    background: #eef2f6;
    height: auto;
    min-height: 0;
}

.topup-page .topup-workspace {
    padding: 8px;
}

.header .topup-header-navigation {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.header .topup-header-navigation > ul {
    width: max-content;
}

.header .topup-header-navigation > ul > li > a {
    padding-left: 9px;
    padding-right: 9px;
}

.topup-page .topup-filter,
.topup-page .topup-panel {
    background: #fff;
    border: 1px solid #d8e2ef;
}

.topup-page .topup-filter {
    margin-bottom: 8px;
    padding: 10px 12px;
}

.topup-page .topup-metrics {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 8px;
}

.topup-page .topup-metric {
    background: #fff;
    border: 1px solid #d8e2ef;
    border-left: 3px solid var(--primary-color);
    padding: 12px 14px;
}

.topup-page .topup-metric span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
}

.topup-page .topup-metric strong {
    color: #0f172a;
    display: block;
    font-size: 24px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.topup-page .topup-panel-head,
.topup-page .topup-panel-footer {
    align-items: center;
    background: #f8fafc;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 8px 10px;
}

.topup-page .topup-panel-head {
    border-bottom: 1px solid #d8e2ef;
}

.topup-page .topup-panel-footer {
    border-top: 1px solid #d8e2ef;
}

.topup-page .topup-panel-head h5 {
    font-size: 15px;
    font-weight: 800;
    margin: 0;
}

.topup-page .topup-panel-head span,
.topup-page .topup-panel-footer > span {
    color: #64748b;
    font-size: 12px;
}

.topup-page .topup-table-scroll {
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
}

.topup-page .topup-table-scroll th {
    background: #f8fafc;
}

.topup-page .topup-table-scroll td small {
    color: #64748b;
    display: block;
    font-size: 11px;
    margin-top: 2px;
}

.topup-page .topup-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
}

.topup-page .topup-status--active {
    background: #dcfce7;
    color: #166534;
}

.topup-page .topup-status--inactive {
    background: #fee2e2;
    color: #991b1b;
}

.topup-page .topup-code {
    background: #f1f5f9;
    color: #0f172a;
    font-size: 12px;
    overflow-wrap: anywhere;
    padding: 3px 5px;
}

@media (max-width: 991.98px) {
    .topup-page .topup-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .topup-page .topup-metrics {
        grid-template-columns: 1fr;
    }

    .topup-page .topup-panel-head,
    .topup-page .topup-panel-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

