.anticon {
    display: inline-flex;
    align-items: center;
    color: inherit;
    font-style: normal;
    line-height: 0;
    text-align: center;
    text-transform: none;
    vertical-align: -0.125em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.anticon>* {
    line-height: 1;
}

.anticon svg {
    display: inline-block;
}

.anticon::before {
    display: none;
}

.anticon .anticon-icon {
    display: block;
}

.anticon[tabindex] {
    cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
    display: inline-block;
    -webkit-animation: loadingCircle 1s infinite linear;
    animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes loadingCircle {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* --- ADMIN PANEL SYSTEM STYLES --- */

/* removed global reset */
body { background: #0f1117; color: #e4e4e7; font-family: 'Inter', sans-serif; }

/* Sidebar */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100vh;
    background: #1a1d26;
    border-right: 1px solid rgba(255,255,255,0.05);
    z-index: 100;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.admin-sidebar-logo {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-sidebar-logo h2 {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #e53935, #e53935);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.admin-sidebar-logo .admin-badge {
    background: rgba(229,57,53,0.15);
    color: #e53935;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}
.admin-nav {
    padding: 16px 12px;
    flex: 1;
}
.admin-nav-section {
    margin-bottom: 24px;
}
.admin-nav-section-title {
    font-size: 10px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 12px;
    margin-bottom: 8px;
}
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #888;
    text-decoration: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 2px;
}
.admin-nav-item:hover {
    background: rgba(229,57,53,0.08);
    color: #c4d0ff;
}
.admin-nav-item.active {
    background: rgba(229,57,53,0.15);
    color: #e53935;
}
.admin-nav-item .material-icons {
    font-size: 20px;
}
.admin-nav-item .badge {
    margin-left: auto;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    min-width: 18px;
    text-align: center;
}
.admin-nav-bottom {
    padding: 16px 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.admin-nav-bottom .admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #888;
    font-size: 13px;
}
.admin-nav-bottom .admin-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e53935, #b71c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    color: #fff;
}

/* Main content */
.admin-main {
    margin-left: 270px;
    min-height: 100vh;
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15,17,23,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-topbar h1 {
    font-size: 18px;
    font-weight: 700;
}
.admin-topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.admin-content {
    padding: 24px 32px;
}

/* Cards */
.admin-card, .white-block.dashboard-block {
    background: #1a1d26 !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2) !important;
}
.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.admin-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Stats Grid */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

/* Stats Card Upgrade */
.admin-stat-card {
    background: linear-gradient(145deg, #1e222d, #1a1d26);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.06);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}
.admin-stat-card .stat-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e53935;
}
.admin-stat-card .stat-icon .material-icons { font-size: 22px; }

.admin-stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(229,57,53,0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.admin-stat-card .stat-label {
    font-size: 11px;
    color: #888;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    padding-right: 60px;
}
.admin-stat-card .stat-value {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-top: auto;
}
/* Color variants */
.admin-stat-card.blue .stat-icon { color: #e53935; background: rgba(229,57,53,0.1); }
.admin-stat-card.green .stat-icon { color: #22c55e; background: rgba(34,197,94,0.1); }
.admin-stat-card.orange .stat-icon { color: #f59e0b; background: rgba(245,158,11,0.1); }
.admin-stat-card.red .stat-icon { color: #ef4444; background: rgba(239,68,68,0.1); }


/* Tables Upgrade */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px; /* Space between rows */
}
.admin-table thead th {
    padding: 14px 20px !important;
    text-align: left;
    font-size: 11px !important;
    color: #666 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    background: transparent !important;
}
.admin-table tbody td, .admin-table tbody th {
    padding: 16px 20px !important;
    font-size: 13.5px !important;
    background: rgba(255,255,255,0.02) !important;
    border-top: 1px solid rgba(255,255,255,0.03) !important;
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
    vertical-align: middle !important;
    color: #d1d5db !important;
}
.admin-table tbody td:first-child, .admin-table tbody th:first-child {
    border-left: 1px solid rgba(255,255,255,0.03) !important;
    border-radius: 12px 0 0 12px !important;
}
.admin-table tbody td:last-child, .admin-table tbody th:last-child {
    border-right: 1px solid rgba(255,255,255,0.03) !important;
    border-radius: 0 12px 12px 0 !important;
}
.admin-table tbody tr:hover td, .admin-table tbody tr:hover th {
    background: rgba(229,57,53,0.06) !important;
    border-color: rgba(229,57,53,0.15) !important;
    color: #fff !important;
}

/* Highlighting data in tables */
.text-accent { color: #e53935; font-weight: 600; font-family: 'Inter', monospace; }
.text-success { color: #22c55e; font-weight: 600; }
.text-warning { color: #f59e0b; font-weight: 600; }
.text-danger { color: #ef4444; font-weight: 600; }
.text-muted { color: #666; }
.text-sm { font-size: 11px; }

/* Buttons Upgrade */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border: none;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    white-space: nowrap;
}
.admin-btn:active { transform: scale(0.97); }
.admin-btn .material-icons { font-size: 18px; }
.admin-btn-sm {
    padding: 2px 8px;
    border-radius: 6px;
    min-height: 24px;
}
.admin-btn-sm .material-icons { 
    font-size: 15px; 
}

.admin-btn-primary {
    background: linear-gradient(135deg, #c62828, #e53935);
    color: #fff; 
   
}
.admin-btn-primary:hover { 
    background: linear-gradient(135deg, #b71c1c, #e53935);
   
    transform: translateY(-2px);
}

.admin-btn-success {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.2);
}
.admin-btn-success:hover { background: rgba(34,197,94,0.2); border-color: #22c55e; }

.admin-btn-danger {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
}
.admin-btn-danger:hover { background: rgba(239,68,68,0.2); border-color: #ef4444; }

.admin-btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-badge.pending { background: rgba(245,158,11,0.1); color: #f59e0b; border: 1px solid rgba(245,158,11,0.2); }
.status-badge.completed { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.2); }
.status-badge.cancelled { background: rgba(239,68,68,0.1); color: #ef4444; border: 1px solid rgba(239,68,68,0.2); }
.status-badge.active { background: rgba(34,197,94,0.15); color: #22c55e; }
.status-badge.inactive { background: rgba(255,255,255,0.05); color: #888; }


/* Modal */
.admin-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.admin-modal-overlay.show { display: flex; }
.admin-modal {
    background: #1a1d26;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.08);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.4);
    animation: modalSlideIn 0.3s ease;
}
@keyframes modalSlideIn {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
.admin-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.admin-modal-header h3 { font-size: 16px; font-weight: 700; }
.admin-modal-close {
    background: rgba(255,255,255,0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.admin-modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.admin-modal-body { background: #0f1117; color: #e4e4e7; font-family: 'Inter', sans-serif; }
.admin-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Form elements */
.admin-form-group {
    margin-bottom: 16px;
}
.admin-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.admin-form-group input,
.admin-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: #12141c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    transition: border 0.3s, box-shadow 0.3s;
    outline: none;
}
.admin-form-group input:focus,
.admin-form-group textarea:focus {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
}
/* Hide native select — replaced by custom */
.admin-form-group select,
select.custom-select-source {
    display: none !important;
}

/* ===== Custom Select ===== */
.csel {
    position: relative;
    width: 100%;
}
.csel-trigger {
    width: 100%;
    padding: 10px 14px;
    padding-right: 36px;
    background: #12141c;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: #fff;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: border 0.25s, box-shadow 0.25s;
    display: flex;
    align-items: center;
    user-select: none;
    position: relative;
    min-height: 40px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.csel-trigger:hover {
    border-color: rgba(255,255,255,0.15);
}
.csel.open .csel-trigger {
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229,57,53,0.1);
    border-radius: 10px 10px 0 0;
}
.csel-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: transform 0.25s;
    color: #666;
    display: flex;
}
.csel.open .csel-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #e53935;
}
.csel-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #12141c;
    border: 1px solid rgba(229,57,53,0.3);
    border-top: none;
    border-radius: 0 0 10px 10px;
    z-index: 999;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 15px 45px rgba(0,0,0,0.5);
    
    /* Transition setup */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.2s;
    pointer-events: none;
}
.csel.open .csel-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.csel-option {
    padding: 10px 14px;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.csel-option:hover {
    background: #e53935;
    color: #fff;
}
.csel-option.selected {
    background: rgba(25, 118, 210, 0.15);
    color: #e53935;
    font-weight: 600;
}
.csel-option.selected:hover {
    background: #e53935;
    color: #fff;
}
.csel-dropdown::-webkit-scrollbar { width: 5px; }
.csel-dropdown::-webkit-scrollbar-track { background: transparent; }
.csel-dropdown::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }


/* Copy */
.copy-text { cursor: pointer; color: #e53935; }
.copy-text:hover { text-decoration: underline; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Table responsive */
.admin-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

/* Toast */
.admin-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    background: #1a1d26;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    animation: toastIn 0.3s ease;
    max-width: 400px;
}
.admin-toast.success { border-left: 3px solid #22c55e; }
.admin-toast.error { border-left: 3px solid #ef4444; }
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Indicator dot */
.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.indicator-dot.green { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.4); }
.indicator-dot.red { background: #ef4444; }
.indicator-dot.yellow { background: #f59e0b; }

.no-data-text {
    text-align: center;
    padding: 40px 0;
    color: #555;
    font-size: 14px;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
}
.admin-tab {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
}
.admin-tab:hover { color: #c4d0ff; }
.admin-tab.active { background: rgba(229,57,53,0.15); color: #e53935; }


/* Column hiding disabled to prevent squeezing */
/* @media (max-width: 1200px) { ... } */
/* @media (max-width: 1024px) { ... } */

/* Custom Tooltip Styling */
.custom-tooltip {
    position: fixed;
    background: #1a1d26;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 300px;
    white-space: normal;
    word-wrap: break-word;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.custom-tooltip.show {
    opacity: 1;
}

/* --- DASHBOARD SPECIFIC OVERRIDES --- */
.trader-footer {
    background: transparent !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
    margin-top: 24px !important;
}

.MuiBox-root.css-155wpka {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

/* Layout Alignment with Premium Sidebar */
.admin-main {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0d1117; /* Match sidebar deep bg */
}

/* Responsive Sidebar/Main Logic */
@media (max-width: 991px) {
    .admin-main {
        margin-left: 0 !important;
        padding-bottom: 70px; /* Mobile bottom nav space */
    }
    .css-kd3xim {
        margin-left: 0 !important;
    }
}

@media (min-width: 992px) and (max-width: 1400px) {
    .admin-main {
        margin-left: 88px !important;
    }
}

/* Modern Dashboard Blocks */
.dashboard-block {
    background: rgba(26, 29, 38, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border-radius: 24px !important;
    padding: 28px !important;
    margin: 12px !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-block:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.white-block-title {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    margin-bottom: 24px !important;
    display: flex;
    align-items: center;
    gap: 12px;
}

.white-block-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #ef4444;
    border-radius: 4px;
}

/* Manage space for premium sidebar */
.admin-main .css-kd3xim {
    margin-left: 0 !important;
}

.css-kd3xim {
    margin-left: 270px !important;
    padding-top: 20px;
}

:root {
    --loader-color: #ef4444;
    --loader-size: 120px;
    --loader-thickness: 0.2px;
}

.matx-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--loader-size);
    height: var(--loader-size);
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--loader-color);
}

.matx-loader img {
    position: absolute;
    height: 45px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.matx-loader div {
    box-sizing: border-box;
    position: absolute;
    width: 100%;
    height: 100%;
    border: var(--loader-thickness) solid currentColor;
    border-radius: 50%;
    border-color: currentColor transparent transparent transparent;
    animation: matx-loader 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.matx-loader div:first-child { animation-delay: -0.45s; }
.matx-loader div:nth-child(2) { animation-delay: -0.3s; }
.matx-loader div:nth-child(3) { animation-delay: -0.15s; }

@keyframes matx-loader {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
}

/* DASHBOARD RESPONSIVITY FIXES */
.css-1ybyrx {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

.admin-main {
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #0d1117; /* Match sidebar deep bg */
}

/* Force Table Scrolling */
.admin-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 24px;
    background: rgba(26, 29, 38, 0.4);
    border-radius: 12px;
}

.admin-table.dashboard-table {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
    border-collapse: separate !important;
    border-spacing: 0;
    margin: 0 !important;
}

.admin-table.dashboard-table th,
.admin-table.dashboard-table td {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    padding: 16px 20px !important;
    transition: padding 0.2s, font-size 0.2s;
}

/* Specific TxID behavior */
.admin-table.dashboard-table th:nth-child(1),
.admin-table.dashboard-table td:nth-child(1),
.cell-txid { 
    width: 180px !important;
    padding-right: 20px !important;
    white-space: nowrap !important;
}

/* Narrow Currency column and move it closer to Amount */
.admin-table.dashboard-table th:nth-child(4),
.admin-table.dashboard-table td:nth-child(4) {
    width: 1px !important;
    text-align: right !important;
    padding-right: 6px !important;
    white-space: nowrap !important;
}

.admin-table.dashboard-table th:nth-child(5),
.admin-table.dashboard-table td:nth-child(5) {
    width: 1px !important;
    text-align: left !important;
    padding-left: 6px !important;
    white-space: nowrap !important;
}

/* Optimizing for smaller screens - reducing padding and font size */
@media (max-width: 1600px) {
    .admin-table.dashboard-table th, 
    .admin-table.dashboard-table td {
        padding: 12px 14px !important;
        font-size: 13px !important;
    }
}

@media (max-width: 1400px) {
    .admin-table.dashboard-table th, 
    .admin-table.dashboard-table td {
        padding: 10px 8px !important;
        font-size: 12px !important;
    }
    .admin-table.dashboard-table th:nth-child(1),
    .admin-table.dashboard-table td:nth-child(1),
    .cell-txid { 
        max-width: 110px !important;
        min-width: 110px !important;
    }
}

@media (max-width: 1200px) {
    .admin-table.dashboard-table th, 
    .admin-table.dashboard-table td {
        padding: 8px 6px !important;
        font-size: 11px !important;
    }
    .admin-table.dashboard-table th:nth-child(1),
    .admin-table.dashboard-table td:nth-child(1),
    .cell-txid { 
        max-width: 90px !important;
        min-width: 90px !important;
    }
}

.admin-card {
    background: #1a1d26 !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2) !important;
}

/* Responsive hiding overrides - make more columns visible on tablet/large mobile */
@media (min-width: 768px) {
    .tablet-hide {
        display: table-cell !important;
    }
}
@media (min-width: 480px) {
    .mobile-hide {
        display: table-cell !important;
    }
    .user-permissions-trader {
        width: 100% !important;
        max-width: none !important;
        display: block !important;
    }
    .admin-main {
        width: auto !important;
        max-width: none !important;
        flex: 1;
    }
}

