.txn-history-shell {
	background: white;
	padding: 10px;
}

.txn-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.txn-overline {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8b8fa8;
}
#mygafg {
	display: flex;
	justify-content: space-evenly !important;
}
#agras {
	flex-wrap: nowrap !important;
}
.txn-history-head h3 {
    margin: 0;
    font-size: 24px;
    color: #1d2340;
}

.txn-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.txn-history-back {
    color: #5a4cc2;
    text-decoration: none;
    font-weight: 700;
}

.txn-download-btn {
	border: none;
	padding: 12px;
	
	background: var(--mcw-accent);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
}

.txn-history-alert {
    padding: 12px 14px;
    
    margin-bottom: 14px;
    font-weight: 600;
}

.txn-history-alert.success {
    background: #e8fff0;
    color: #0c6b36;
}

.txn-history-alert.error {
    background: #ffe9e9;
    color: #a11d1d;
}

.txn-tabs {
    display: inline-flex;
    gap: 10px;
    margin-bottom: 15px;
}

.txn-tab {
	border: none;
	color: #fff;
	padding: 12px;
	cursor: pointer;
	font-weight: 700;
	transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
	background: var(--mcw-primary);
}
.txn-tab:hover {
    transform: translateY(-1px);
}

.txn-tab.active {
	background: var(--mcw-accent);
	color: #fff;
}
.txn-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
}

.txn-panel.active {
    display: block;
    animation: txnPanelFade 0.28s ease forwards;
}

.txn-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.txn-filter-form {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 12px;
    align-items: end;
}

.txn-filter-group label {
    display: block;
    margin-bottom: 6px;
    color: #555c76;
    font-size: 14px;
    font-weight: 600;
}

.txn-filter-select,
.txn-custom-dates input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #d9dbea;
    border-radius: 12px;
    background: #fff;
    color: #1f243c;
}

.txn-custom-dates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.22s ease, transform 0.22s ease, margin-top 0.22s ease;
}

.txn-custom-dates.show {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    margin-top: 2px;
}

.txn-filter-btn {
	border: none;
	padding: 12px;
	background: var(--mcw-accent);
	color: #fff;
	cursor: pointer;
	font-weight: 700;
}

.txn-filter-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #656b86;
    font-size: 14px;
}

.txn-filter-note strong {
    color: #1f243c;
}

.txn-empty-state {
    padding: 24px 16px;
    text-align: center;
    color: #666;
    background: #f7f7fb;
    border-radius: 14px;
    border: 1px dashed #d9ddea;
}

.txn-withdraw-empty {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.txn-table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.txn-results-count {
    margin: 0;
    color: #5a607b;
    font-size: 14px;
}

.txn-results-count strong {
    color: #1d2340;
}

.txn-table-wrap {
    overflow-x: auto;
    border: 1px solid #ececf3;
    border-radius: 16px;
    background: #fff;
}

.txn-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.txn-table thead th {
    background: linear-gradient(180deg, #fafafe, #f3f4fb);
    color: #4d5473;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid #e8e9f2;
}

.txn-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #efeff5;
    color: #1f243c;
    font-size: 14px;
    white-space: nowrap;
}

.txn-table tbody tr:nth-child(even) {
    background: #fcfcff;
}

.txn-table tbody tr:last-child td {
    border-bottom: none;
}

.txn-channel-cell,
.txn-txid-cell {
    font-weight: 600;
}

.txn-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: capitalize;
}

.txn-status-badge.pending {
    background: #fff0d9;
    color: #c27600;
}

.txn-status-badge.approved {
    background: #e6fff0;
    color: #0f7a3d;
}

.txn-status-badge.rejected {
    background: #ffe7e7;
    color: #bf2020;
}

.txn-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.txn-page-link {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: #f3f4fb;
    color: #444d73;
    font-weight: 700;
    border: 1px solid #e4e7f2;
    transition: all 0.22s ease;
}

.txn-page-link:hover {
    background: #eceeff;
    color: #322c72;
}

.txn-page-link.active {
    background: linear-gradient(135deg, #5a4cc2, #7a68eb);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(90, 76, 194, 0.18);
}

.txn-page-link.next {
    min-width: 72px;
    background: linear-gradient(135deg, #ff7a00, #ff9d2f);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(255, 122, 0, 0.18);
}

@keyframes txnPanelFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .txn-filter-form {
        grid-template-columns: 1fr;
    }

    .txn-custom-dates {
        grid-template-columns: 1fr;
    }

    .txn-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .txn-tab {
        flex: 1;
    }

    .txn-table-meta {
        align-items: flex-start;
    }
}
