/**
 * AgriNewBras CRM Mestre - Design System Mobile-First Premium
 * Otimizado para usabilidade máxima em smartphones (iPhone e Android) e Desktop
 * Cores: Verde Noturno (#06120e), Esmeralda (#10b981), Ouro Âmbar (#f59e0b)
 */

:root {
    --bg-dark: #06120e;
    --bg-card: #0b1c16;
    --bg-card-hover: #10261f;
    --bg-input: #081611;
    --border: #16382b;
    --border-highlight: #10b981;
    --text-main: #f0fdf4;
    --text-muted: #94a3b8;
    --primary: #10b981;
    --primary-hover: #059669;
    --amber: #f59e0b;
    --red: #ef4444;
    --blue: #3b82f6;
    --purple: #8b5cf6;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.45;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* 1. TELA DE LOGIN & BLOQUEIO RIGOROSO */
.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 16px;
    background: radial-gradient(circle at top center, #0f3024 0%, #06120e 75%);
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px 22px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #f59e0b, #10b981);
}

.login-logo {
    font-size: 38px;
    margin-bottom: 8px;
}

.login-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.login-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.login-input-group {
    position: relative;
    margin-bottom: 16px;
    text-align: left;
}

.login-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.input-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.login-input {
    width: 100%;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 44px 14px 14px;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.login-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.btn-toggle-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
    transition: transform 0.15s ease;
}

.btn-login:active {
    transform: scale(0.98);
}

.security-badge {
    margin-top: 18px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    font-size: 11px;
    color: #a7f3d0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lockout-alert {
    display: none;
    background: rgba(239, 68, 68, 0.15);
    border: 1.5px solid var(--red);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    text-align: center;
}

.lockout-title {
    color: #fca5a5;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.lockout-timer {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    font-family: monospace;
    margin: 6px 0;
}

.lockout-desc {
    font-size: 12px;
    color: #fecaca;
}

/* 2. LAYOUT PRINCIPAL DO CRM */
.app-container {
    display: none;
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 100px; /* Garante que nada fique oculto atrás da Bottom Bar */
}

/* HEADER COMPACTO & ELEGANTE */
.crm-header {
    background: rgba(11, 28, 22, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 200;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 56px;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.brand-title {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}

.brand-sub {
    font-size: 10px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.badge-cakto-status {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--primary);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 9px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.badge-cakto-status .dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.btn-header-action {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 7px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.btn-header-action:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-menu-mobile {
    display: none;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* 3. BARRA DE PÍLULAS DESLIZANTES HORIZONTAIS (SUPERIOR - DISPONÍVEL EM TODAS AS TELAS) */
.category-pills-bar {
    background: #081712;
    border-bottom: 1px solid var(--border);
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    position: sticky;
    top: 56px;
    z-index: 150;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.category-pills-bar::-webkit-scrollbar {
    display: none;
}

.nav-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.nav-pill:active {
    transform: scale(0.96);
}

.nav-pill.active {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.nav-pill-badge {
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
}

/* 4. BARRA DE NAVEGAÇÃO INFERIOR FIXA NO MOBILE */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(8, 23, 18, 0.96);
    border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    justify-content: space-around;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.4);
}

.bottom-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    padding: 6px 8px;
    min-width: 60px;
    border-radius: 12px;
    transition: color 0.15s ease;
}

.bottom-tab.active {
    color: var(--primary);
}

.bottom-tab-icon {
    font-size: 20px;
    line-height: 1;
}

.bottom-badge-dot {
    position: absolute;
    top: 4px;
    right: 14px;
    background: var(--red);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1.5px solid var(--bg-dark);
}

/* 5. CONTEÚDO PRINCIPAL DAS ABAS */
.main-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 16px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 6. CARDS DE KPIS NO DASHBOARD */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.kpi-card.highlight {
    border-color: var(--amber);
    background: linear-gradient(145deg, #162a22 0%, #0b1c16 100%);
}

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kpi-value {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.kpi-sub {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* 7. SEÇÕES & FILTROS */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.2;
}

.filters-bar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    padding-bottom: 4px;
    width: 100%;
}

.filters-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* 8. CARDS DE RECUPERAÇÃO DE VENDAS */
.recovery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 12px;
}

.recovery-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recovery-card.boleto { border-left: 4px solid var(--amber); }
.recovery-card.pix { border-left: 4px solid var(--blue); }
.recovery-card.abandono { border-left: 4px solid var(--red); }
.recovery-card.cartao { border-left: 4px solid var(--purple); }

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.tag-recovery-type {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-recovery-type.boleto { background: rgba(245, 158, 11, 0.2); color: #fcd34d; }
.tag-recovery-type.pix { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
.tag-recovery-type.abandono { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.tag-recovery-type.cartao { background: rgba(139, 92, 246, 0.2); color: #c4b5fd; }
.tag-recovery-type.approved { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

.recovery-amount {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.recovery-client-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.25;
}

.recovery-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    word-break: break-word;
}

.recovery-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.btn-whatsapp-rescue {
    flex: 1;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
    min-height: 44px;
}

.btn-whatsapp-rescue:active {
    filter: brightness(0.9);
}

.btn-mark-status {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 12px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
}

/* 9. CARDS DE TRANSAÇÃO DEDICADOS PARA CELULAR (ALTO CONTRASTE E VISIBILIDADE) */
.mobile-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tx-mobile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.tx-mobile-card.approved { border-left: 4px solid var(--primary); }
.tx-mobile-card.boleto { border-left: 4px solid var(--amber); }
.tx-mobile-card.pix { border-left: 4px solid var(--blue); }
.tx-mobile-card.abandono { border-left: 4px solid var(--red); }
.tx-mobile-card.cartao { border-left: 4px solid var(--purple); }

.tx-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tx-amount {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.tx-customer-name {
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.tx-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 4px;
}

.tx-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    gap: 8px;
}

.tx-date {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-tx-whatsapp {
    background: #25d366;
    color: #fff;
    padding: 7px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 10. PIPELINE KANBAN (MOBILE COM SELETOR DE COLUNA) */
.kanban-mobile-tabs {
    display: none;
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    margin-bottom: 12px;
    padding-bottom: 4px;
}

.kanban-tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}

.kanban-tab-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.kanban-board {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 16px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.kanban-col {
    flex: 0 0 300px;
    background: #091a14;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.col-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.col-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
}

.col-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.kanban-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.kanban-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.kanban-card-client {
    font-size: 12px;
    color: #a7f3d0;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kanban-card-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--amber);
}

.kanban-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-move-stage {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
}

/* 11. TABELAS (DESKTOP) */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.crm-table th {
    background: #081712;
    padding: 12px 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.crm-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.crm-table tr:hover td {
    background: rgba(16, 185, 129, 0.03);
}

/* 12. MODAIS RESPONSIVOS */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 88vh;
    max-height: 88dvh;
    overflow-y: auto;
    padding: 22px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.9);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 4px;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.btn-modal-primary {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 13px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.btn-modal-cancel {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 13px 18px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* MENU DRAWER MOBILE (MAIS OPÇÕES) */
.drawer-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.drawer-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.drawer-menu-item:hover, .drawer-menu-item:active {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.drawer-menu-item.danger {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* 13. REGRAS RESPONSIVAS ESPECÍFICAS PARA SMARTPHONES (<= 768px) */
@media (max-width: 768px) {
    .btn-header-action { display: none; }
    .btn-menu-mobile { display: flex; }
    .mobile-bottom-nav { display: flex; }
    
    .brand-title { font-size: 14px; }
    .brand-sub { display: none; }
    .badge-cakto-status span.text-desktop { display: none; }
    
    .main-content { padding: 12px; }
    
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .kpi-card { padding: 12px; }
    .kpi-value { font-size: 18px; }
    .kpi-label { font-size: 11px; }
    .kpi-sub { font-size: 10px; }
    
    .recovery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .recovery-card { padding: 14px; }
    .recovery-actions { flex-direction: column; }
    .btn-mark-status { width: 100%; text-align: center; }
    
    /* Kanban no celular vira seletor fluido */
    .kanban-mobile-tabs { display: flex; }
    .kanban-board {
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }
    .kanban-col {
        flex: 0 0 92vw;
        scroll-snap-align: center;
        max-height: none;
    }
    
    /* Na aba de transações, oculta a tabela gigante e mostra os cards */
    .desktop-table-view { display: none; }
    .mobile-cards-view { display: flex; }
}

@media (min-width: 769px) {
    .desktop-table-view { display: block; }
    .mobile-cards-view { display: none; }
    .btn-menu-mobile { display: none; }
}
