/* Shared styles for deposit/withdrawal admin pages */
:root {
    --pending: #7b66c7;
    --approved: #22be94;
    --rejected: #f06c68;
    --card-bg: #eef1f4;
    --card-border: #d6dde5;
    --text-dark: #3a5168;
    --text-muted: #6b8095;
}

.tx-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tx-head h2 {
    margin: 0;
    font-size: 28px;
    color: var(--text-dark);
}

.tx-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.tx-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tx-btn {
    border: none;
    border-radius: 8px;
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #4f8ee3;
}

.tx-btn.secondary {
    background: #60748a;
}

.tx-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.tx-stat {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 12px;
}

.tx-stat-label {
    margin: 0;
    font-size: 12px;
    color: #647b91;
}

.tx-stat-value {
    margin: 8px 0 0;
    font-size: 24px;
    font-weight: 800;
    color: #30475d;
}

.tx-stat-value.pending {
    color: var(--pending);
}

.tx-stat-value.approved {
    color: var(--approved);
}

.tx-stat-value.rejected {
    color: var(--rejected);
}

.tx-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.tx-input,
.tx-select {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    border: 1px solid #ccd5df;
    background: #fff;
    padding: 0 12px;
    font-size: 13px;
    color: #3f566d;
    outline: none;
}

.tx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tx-tab {
    border: 1px solid #c8d2dd;
    border-radius: 999px;
    height: 34px;
    padding: 0 14px;
    background: #f8fafc;
    color: #4c6379;
    font-size: 12px;
    font-weight: 700;
}

.tx-tab.active {
    background: #30475d;
    border-color: #30475d;
    color: #fff;
}

.tx-table-wrap {
    overflow-x: auto;
    border: 1px solid #d6dde5;
    border-radius: 10px;
}

.tx-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    background: #fff;
}

.tx-table th,
.tx-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8ef;
    text-align: left;
    font-size: 13px;
    color: #3b5268;
    vertical-align: middle;
}

.tx-table th {
    background: #f6f8fb;
    font-size: 12px;
    color: #2f465d;
    white-space: nowrap;
}

.tx-user-name {
    display: block;
    font-weight: 700;
    color: #2a4258;
}

.tx-user-email {
    font-size: 12px;
    color: #6f8498;
}

.coin-cell {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.coin-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.coin-fallback {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    background: #6b7280;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-transform: capitalize;
}

.status-badge.pending {
    background: var(--pending);
}

.status-badge.approved,
.status-badge.confirmed {
    background: var(--approved);
}

.status-badge.rejected,
.status-badge.declined {
    background: var(--rejected);
}

.row-actions {
    display: inline-flex;
    gap: 6px;
}

.row-btn {
    border: none;
    border-radius: 6px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.row-btn.approve {
    background: var(--approved);
}

.row-btn.reject {
    background: var(--rejected);
}

.row-btn.view {
    background: #60748a;
}

.empty-row {
    text-align: center;
    color: #778b9f;
    padding: 22px 12px !important;
}

@media (max-width: 1024px) {
    .tx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .tx-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .tx-filters {
        grid-template-columns: 1fr;
    }

    .tx-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .content-area {
        padding: 12px;
    }

    .tx-head h2 {
        font-size: 22px;
    }

    .tx-table th,
    .tx-table td {
        padding: 9px 10px;
        font-size: 12px;
    }
}