/* =========================================
   1. VARIÁVEIS DE TEMA (Paleta de Cores)
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* --- LIGHT MODE --- */
    --bg-body: #F9FAFB;
    --bg-surface: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    
    --primary: #5856D6;            
    --primary-hover: #4744b8;
    --primary-light: #EFEEFF;
    
    --text-primary: #111827;       
    --text-secondary: #6B7280;     
    --text-muted: #9CA3AF;
    
    --border-color: #E5E7EB;
    --input-bg: #F3F4F6;           
    
    --success-bg: #ECFDF5;
    --success-text: #059669;
    --danger-bg: #FEF2F2;
    --danger-text: #DC2626;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --radius-l: 20px;
    --radius-m: 12px;

    --alert-spread-border: #f59e0b;               
    --alert-spread-bg: rgba(245, 158, 11, 0.15);  
    --alert-liq-border: #dc2626;                  
    --alert-liq-bg: rgba(220, 38, 38, 0.1);       
}

/* --- DARK MODE --- */
[data-bs-theme="dark"] {
    --bg-body: #0B0E14;            
    --bg-surface: #151A23;         
    --bg-sidebar: #0B0E14;
    
    --primary: #3B82F6;            
    --primary-hover: #60A5FA;
    --primary-light: rgba(59, 130, 246, 0.15);
    
    --text-primary: #F1F5F9;       
    --text-secondary: #94A3B8;     
    --text-muted: #64748B;
    
    --border-color: #2D3748;       
    --input-bg: #0F1218;           
    
    --success-bg: rgba(16, 185, 129, 0.10);
    --success-text: #34D399;       
    --danger-bg: rgba(239, 68, 68, 0.10);
    --danger-text: #F87171;        
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);

    --alert-spread-border: #3B82F6;               
    --alert-spread-bg: rgba(59, 130, 246, 0.20);  
    --alert-liq-border: #EF4444;                  
    --alert-liq-bg: rgba(239, 68, 68, 0.15);      
}

/* =========================================
   2. ESTILOS GERAIS
   ========================================= */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}
a { text-decoration: none; }

/* Sidebar Desktop */
.sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding-top: 2rem;
    height: 100vh;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    flex-shrink: 0; 
    z-index: 2000;
}
.brand-logo { font-weight: 800; font-size: 1.35rem; color: var(--text-primary); background: none; display: inline-block; }

.nav-link {
    color: var(--text-secondary); padding: 0.6rem 1rem; border-radius: 8px; margin-bottom: 4px; 
    display: flex; align-items: center; transition: 0.2s; font-weight: 500; font-size: 0.9rem;
}
.nav-link:hover { background-color: var(--input-bg); color: var(--text-primary); }
.nav-link.active { background-color: var(--input-bg); color: var(--text-primary); font-weight: 600; box-shadow: var(--shadow-sm); }
.nav-link.active i { color: var(--primary); }
.nav-link i { width: 20px; margin-right: 10px; color: var(--text-muted); }

body.sidebar-closed .sidebar { margin-left: -280px; }
body.sidebar-closed .main-content { margin-left: 0; width: 100%; max-width: 100%; }
.main-content { transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); }

/* Inputs */
.search-container { position: relative; width: 100%; display: flex; align-items: center; }
.search-input {
    background-color: var(--input-bg); border: 1px solid transparent; border-radius: 10px;
    padding: 0.7rem 1rem 0.7rem 2.8rem; font-size: 0.95rem; color: var(--text-primary); width: 100%; height: 46px; transition: all 0.2s;
}
.search-input:focus { background-color: var(--bg-surface); border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); outline: none; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-secondary) !important; pointer-events: none; z-index: 5; }

/* Botões */
.btn-primary { background-color: var(--primary); border: none; box-shadow: 0 4px 12px var(--primary-light); color: white; }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-1px); }

.btn-white { background-color: var(--bg-surface); border: 1px solid var(--border-color); color: var(--text-secondary); }
.btn-white:hover { background-color: var(--input-bg); color: var(--primary); }

.btn-theme-round {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background-color: var(--bg-body); border: 1px solid var(--border-color); color: var(--text-secondary); 
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); cursor: pointer;
}
.btn-theme-round:hover { background-color: var(--bg-surface); color: var(--primary); border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }

.btn-suave-success { background-color: #34D399 !important; color: #ffffff !important; border: none !important; transition: all 0.2s ease; }
.btn-suave-success:hover { background-color: #10B981 !important; transform: translateY(-2px); }
.btn-suave-danger { background-color: #F87171 !important; color: #ffffff !important; border: none !important; transition: all 0.2s ease; }
.btn-suave-danger:hover { background-color: #EF4444 !important; transform: translateY(-2px); }
.text-fixed-white { color: #ffffff !important; }

/* Cards */
.card { background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-l); box-shadow: var(--shadow-sm); }
.status-badge {
    background-color: rgba(16, 185, 129, 0.15); color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3); padding: 6px 16px; border-radius: 6px;
    font-weight: 600; font-size: 0.85rem; display: flex; align-items: center; gap: 8px; cursor: default;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 10px; }

/* Backdrop Global */
.alert-backdrop { 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1090; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; 
}


/* Overrides Bootstrap */
.bg-dark { background-color: var(--input-bg) !important; }
.border-secondary { border-color: var(--border-color) !important; }
.text-white { color: var(--text-primary) !important; }
[data-bs-theme="dark"] .text-dark { color: var(--text-primary) !important; }
[data-bs-theme="dark"] .bg-light { background-color: rgba(255,255,255,0.05) !important; border-color: transparent !important; }

.form-control { background-color: var(--input-bg); border-color: var(--border-color); color: var(--text-primary); transition: all 0.2s; }
.form-control:focus { background-color: var(--bg-surface); border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); color: var(--text-primary); }
.form-control::placeholder { color: var(--text-muted); }

.btn-dark { background-color: var(--bg-body); border-color: var(--border-color); color: var(--text-secondary); }
.btn-dark:hover { background-color: var(--input-bg); border-color: var(--primary); color: var(--text-primary); }

/* --- ESTILOS DA TABELA (DESKTOP) --- */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-primary);
    --bs-table-border-color: var(--border-color);
}

.table th {
    background-color: var(--bg-body);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 12px 16px;
    vertical-align: middle;
}

.table td {
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    vertical-align: middle;
    padding: 12px 16px;
    background-color: var(--bg-surface);
}

/* Efeito Hover no Desktop - SEM A LINHA LATERAL */
.table-hover tbody tr:hover > * {
    background-color: var(--input-bg) !important;
    color: var(--text-primary) !important;
    box-shadow: none !important; /* REMOVIDO O box-shadow QUE FAZIA A LINHA */
}

/* Ajuste específico para Dark Mode */
[data-bs-theme="dark"] .table thead th {
    background-color: #11151D !important;
}
[data-bs-theme="dark"] .table td {
    background-color: #151A23;
}
[data-bs-theme="dark"] .table-hover tbody tr:hover > * {
    background-color: rgba(59, 130, 246, 0.08) !important;
    box-shadow: none !important;
}

/* Botões da Tabela */
.btn-square { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: none; transition: all 0.2s ease; margin-left: 4px; }
.btn-square:hover { opacity: 0.8; transform: translateY(-1px); }
.action-chart { background-color: rgba(239, 68, 68, 0.15); color: #EF4444; }
.action-calc { background-color: rgba(59, 130, 246, 0.15); color: #3B82F6; }
.action-target { background-color: rgba(16, 185, 129, 0.15); color: #10B981; }
.action-hide { background-color: rgba(99, 102, 241, 0.15); color: #6366F1; }
.action-bell { background-color: rgba(245, 158, 11, 0.15); color: #F59E0B; }
.text-time { color: #F59E0B !important; font-family: monospace; font-weight: 600; }

/* Botão Conectar */
.btn-connect { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; transition: all 0.3s ease; cursor: pointer; }
.btn-connect.active { background-color: rgba(16, 185, 129, 0.15); color: #10B981; border-color: rgba(16, 185, 129, 0.2); }
.btn-connect.active:hover { background-color: rgba(16, 185, 129, 0.25); }
.btn-connect.inactive { background-color: rgba(239, 68, 68, 0.15); color: #EF4444; border-color: rgba(239, 68, 68, 0.3); }
.btn-connect.inactive:hover { background-color: rgba(239, 68, 68, 0.25); }
.btn-connect.inactive i::after { content: ''; position: absolute; top: 50%; left: 50%; width: 140%; height: 2px; background-color: currentColor; transform: translate(-50%, -50%) rotate(-45deg); pointer-events: none; border-radius: 2px; }

/* Widgets */
.header-widget-wrapper { position: relative; display: inline-block; width: 40px; height: 40px; margin-left: 8px; }
.header-morph, .alert-widget { position: absolute; top: 0; right: 0; z-index: 1050; width: 40px; height: 40px; border-radius: 50%; background-color: var(--bg-body); border: 1px solid var(--border-color); box-shadow: 0 1px 3px rgba(0,0,0,0.05); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.header-morph:not(.expanded):hover { background-color: var(--bg-surface); color: var(--primary); border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.1); transform: translateY(-2px); }
.header-morph.expanded { height: auto; background-color: var(--bg-surface); border-color: var(--primary); border-radius: 16px; box-shadow: 0 25px 60px -12px rgba(0,0,0,0.5); padding: 0; cursor: default; top: 0; right: 0; align-items: stretch; justify-content: start; }
.w-exp-sm.expanded { width: 300px; } .w-exp-md.expanded { width: 450px; } .w-exp-lg.expanded { width: 600px; }
.morph-icon { font-size: 1rem; transition: opacity 0.1s ease; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.header-morph.expanded .morph-icon { opacity: 0; }
.morph-content { opacity: 0; visibility: hidden; transition: opacity 0.2s ease 0.2s; padding: 20px; width: 100%; }
.header-morph.expanded .morph-content { opacity: 1; visibility: visible; }

/* Config Cards */
.config-card { 
    background-color: var(--bg-body); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px 14px; 
    margin-bottom: 8px; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1;
}
.config-card:focus-within { z-index: 100 !important; }
.config-card:hover { border-color: var(--primary); transform: translateX(4px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); background-color: var(--bg-surface); }
.config-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background-color: var(--bg-surface); border: 1px solid var(--border-color); padding: 4px; }
.config-exchange-text { font-size: 0.7rem; color: var(--text-secondary); font-weight: 500; display: block; margin-top: -2px; }
.btn-config-action { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid transparent; transition: all 0.2s; font-size: 0.85rem; background-color: transparent; }
.btn-restore { color: #10B981; background-color: rgba(16, 185, 129, 0.1); }
.btn-restore:hover { background-color: #10B981; color: white; box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
.btn-activate { color: #F59E0B; background-color: rgba(245, 158, 11, 0.1); }
.btn-activate:hover { background-color: #F59E0B; color: white; box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3); }
.btn-action-global { border: none; border-radius: 50px; padding: 6px 16px; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; gap: 8px; transition: all 0.2s ease; cursor: pointer; }
.btn-global-restore { background-color: rgba(239, 68, 68, 0.1); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.2); }
.btn-global-restore:hover { background-color: #EF4444; color: white; transform: translateY(-1px); }
.btn-global-activate { background-color: rgba(245, 158, 11, 0.1); color: #F59E0B; border: 1px solid rgba(245, 158, 11, 0.2); }
.btn-global-activate:hover { background-color: #F59E0B; color: white; transform: translateY(-1px); }
[data-bs-theme="dark"] .config-card { background-color: rgba(255,255,255,0.02); }
[data-bs-theme="dark"] .config-card:hover { background-color: rgba(255,255,255,0.05); }

.config-icon-box { width: 36px; height: 36px; border-radius: 50%; background-color: var(--bg-surface); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 0.9rem; }
.setting-input { width: 70px; background-color: var(--input-bg); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); padding: 4px 8px; font-size: 0.85rem; text-align: center; font-weight: 600; }
.setting-input:focus { outline: none; border-color: var(--primary); }
.setting-select { background-color: var(--input-bg); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); padding: 4px 24px 4px 10px; font-size: 0.8rem; font-weight: 500; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 6px center; background-size: 12px; }
.btn-save-setting { width: 32px; height: 32px; border-radius: 8px; background-color: var(--primary); color: white; border: none; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.btn-save-setting:hover { background-color: var(--primary-hover); transform: translateY(-1px); }

/* Filtros */
.filter-tags-container { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.filter-tag { background-color: var(--primary-light); color: var(--primary); border: 1px solid var(--primary); font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 6px; transition: all 0.2s; }
.filter-tag-close { cursor: pointer; opacity: 0.6; font-size: 0.8rem; }
.filter-tag-close:hover { opacity: 1; color: var(--danger-text); }
.filter-autocomplete-wrapper { position: relative; width: 100%; }
.filter-input { width: 100%; background-color: var(--input-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 8px 12px; font-size: 0.85rem; color: var(--text-primary); transition: all 0.2s; }
.filter-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.filter-suggestions { position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 8px; margin-top: 4px; max-height: 150px; overflow-y: auto; z-index: 1060; box-shadow: 0 10px 25px rgba(0,0,0,0.1); display: none; }
.filter-suggestions.show { display: block; }
.suggestion-item { padding: 8px 12px; font-size: 0.85rem; color: var(--text-primary); cursor: pointer; border-bottom: 1px solid var(--border-color); }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background-color: var(--input-bg); color: var(--primary); }
.filter-row-inputs { display: flex; gap: 10px; margin-top: 5px; } .filter-col { flex: 1; } .filter-label-small { font-size: 0.7rem; color: var(--text-secondary); font-weight: 600; margin-bottom: 4px; display: block; }
[data-bs-theme="dark"] .filter-tag { background-color: rgba(99, 102, 241, 0.2); border-color: rgba(99, 102, 241, 0.4); color: #A5B4FC; }

[data-bs-theme="dark"] .btn-card-action { border: none !important; background-color: rgba(255, 255, 255, 0.05); }
[data-bs-theme="dark"] .btn-card-action:hover { background-color: var(--primary); color: white; }

/* --- ESTILOS ESPECÍFICOS PARA O MODAL GERENCIAR --- */

/* Abas Centralizadas */
.nav-tabs { width: 100%; display: flex; }
.nav-tabs .nav-item { flex: 1; text-align: center; }
.nav-tabs .nav-link {
    color: var(--text-secondary); border: none; border-bottom: 2px solid transparent; padding: 12px 0; width: 100%;
    display: flex; justify-content: center; align-items: center; transition: all 0.2s;
}
.nav-tabs .nav-link:hover { color: var(--primary); }
.nav-tabs .nav-link.active { color: var(--primary) !important; border-bottom: 2px solid var(--primary); background: transparent; }

/* Caixa Itens por Página */
.page-select-box {
    background-color: var(--input-bg); border: 1px solid var(--border-color); border-radius: 12px;
    padding: 12px 16px; display: flex; justify-content: space-between; align-items: center;
}

/* Caixas de Switch (Estilo Box) */
.config-item-box {
    background-color: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px;
    padding: 14px 16px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center;
    transition: border-color 0.2s;
}
.config-item-box:hover { border-color: var(--primary); }
.config-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin: 0; }

/* Switch Customizado */
.form-check-input:checked { background-color: #0d6efd; border-color: #0d6efd; }

/* Container da Tabela com Bordas Arredondadas */
.table-container-rounded {
    border-radius: 16px; /* O arredondamento */
    border: 1px solid var(--border-color); /* A linha fina em volta */
    overflow: hidden; /* Corta as pontas da tabela para respeitar o arredondamento */
    background-color: var(--bg-surface); /* Garante o fundo correto */
}

/* =========================================
   13. MODO MOBILE (ULTRA COMPACTO - LADO A LADO)
   ========================================= */
@media (max-width: 991px) {
    
    /* 1. SIDEBAR MOBILE */
    .sidebar {
        position: fixed; left: -280px; top: 0; bottom: 0; width: 280px !important;
        z-index: 2000; transition: left 0.3s ease; box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
    body.mobile-menu-open .sidebar { left: 0; }
    
    body, .main-content, .container-fluid, .card-body {
        padding-left: 4px !important; padding-right: 4px !important;
        overflow-x: hidden !important; margin-left: 0 !important; width: 100% !important;
    }

    .header-mobile-container { flex-wrap: wrap; gap: 8px; }

    /* 2. RESET TABELA (TRANSFORMA EM CARDS) */
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; box-sizing: border-box; }
    
    /* 3. CARD PRINCIPAL */
    .table tr {
        display: flex; flex-wrap: wrap;
        background-color: var(--bg-surface);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        margin: 0 0 8px 0 !important;
        padding: 8px 6px !important;
        position: relative;
        box-shadow: var(--shadow-sm);
        max-width: 100vw;
        align-items: center;
    }
    .table tbody tr td { border: none; padding: 0; background-color: transparent !important; }

    /* --- LINHA 1: MOEDA E SPREADS (LADO A LADO) --- */
    
    /* Lâmpada */
    .col-bulb { position: absolute; top: 10px; left: 8px; width: 20px !important; font-size: 0.8rem; }

    /* Moeda */
    .col-coin {
        order: 1; width: 35% !important;
        text-align: left !important; font-size: 0.95rem !important;
        padding-left: 22px !important; margin-bottom: 2px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* Spread Entrada (Verde) */
    .col-spread-entry {
        order: 2; width: 32% !important;
        text-align: right !important; justify-content: flex-end; display: flex; align-items: center;
    }
    .col-spread-entry span { font-size: 0.95rem !important; padding: 0 4px !important; }
    .col-spread-entry::before { content: "S. Ent:"; font-size: 0.7rem; opacity: 0.6; margin-right: 2px; }

    /* Spread Saída (Vermelho) */
    .col-spread-exit {
        order: 3; width: 33% !important;
        text-align: right !important; justify-content: flex-end; display: flex; align-items: center;
        background-color: transparent !important;
    }
    .col-spread-exit span { font-size: 0.9rem !important; padding: 0 4px !important; }
    .col-spread-exit::before { content: "S. Sai:"; font-size: 0.7rem; opacity: 0.6; margin-right: 2px; }
    .col-spread-exit div { display: none !important; }

    /* Horário */
    .col-time {
        order: 4; width: 100% !important;
        text-align: left !important; font-size: 0.65rem !important;
        color: var(--text-secondary); padding-left: 22px !important;
        margin-bottom: 6px; margin-top: -4px;
    }

    /* --- LINHA 2: COMPRA E VENDA (LADO A LADO) --- */
    
    .col-buy { order: 5; width: 49% !important; margin-right: 2% !important; margin-bottom: 6px; }
    .col-sell { order: 6; width: 49% !important; margin-bottom: 6px; }

    .col-buy > div, .col-sell > div {
        background-color: var(--input-bg) !important;
        border-radius: 8px; padding: 6px !important;
        display: flex; flex-direction: column; align-items: center; justify-content: center;
        text-align: center; height: 100%; min-height: 55px;
    }
    .col-buy > div { border-left: 2px solid var(--danger-text); }
    .col-sell > div { border-left: 2px solid var(--success-text); }

    .exchange-logo-box { width: 20px !important; height: 20px !important; margin-bottom: 2px; }
    .d-flex.flex-column.text-start { align-items: center !important; justify-content: center !important; width: 100%; }
    .d-flex.align-items-center.gap-1 { justify-content: center; width: 100%; flex-wrap: wrap; }
    
    .text-body.small { font-size: 0.75rem !important; margin-left: 0 !important; }
    .fw-bold.small { font-size: 0.7rem !important; display: block; width: 100%; text-align: center; }
    
    .col-buy .text-secondary, .col-sell .text-secondary { display: none !important; }

    /* --- LINHA 3: HISTÓRICO --- */
    
    .col-hist-4h { order: 7; } .col-hist-12h { order: 8; } .col-hist-24h { order: 9; } 

    .col-hist-4h, .col-hist-12h, .col-hist-24h {
        width: 32% !important; /* 3 colunas */
        margin-right: 2% !important;
        background-color: transparent;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        text-align: center !important;
        padding: 2px 0 !important;
        margin-bottom: 8px;
        display: flex; flex-direction: column;
        justify-content: center; align-items: center;
        color: var(--text-primary);
        font-size: 0.75rem; font-weight: bold;
    }
    .col-hist-24h { margin-right: 0 !important; }
    
    /* Remove labels do CSS que estavam duplicando */
    .col-hist-4h::before, .col-hist-12h::before, .col-hist-24h::before { content: none !important; }
    
    /* --- LINHA 4: AÇÕES --- */
    .col-actions { order: 10; width: 100% !important; border: none !important; padding-top: 0 !important; }
    .col-actions div { display: flex; justify-content: space-between; gap: 4px; }
    .col-actions .btn-square { flex: 1; height: 32px; border-radius: 6px; font-size: 0.8rem; }

    .col-hidden { display: none !important; }
}