/* style.css - Sistema de Afiliados INCENTIV v2 (tabelas af2_*) */

/* Paleta principal */
:root {
    --bg-page: #020617;
    --bg-card: rgba(10, 20, 40, 0.96);
    --bg-soft: rgba(10, 20, 40, 0.88);
    --accent-primary: #00D0B3;
    --accent-secondary: #F97316;
    --text-main: #F9FAFB;
    --text-muted: #9CA3AF;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --danger: #F97373;
    --success: #4ADE80;
    --neutral: #818CF8;
    --radius-lg: 24px;
    --radius-full: 999px;
    --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.55);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-fast: 0.18s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background:
        radial-gradient(circle at top, #0f172a 0, #020617 45%, #000000 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout base */
.page-wrapper {
    max-width: 1120px;
    margin: 88px auto 40px;
    padding: 0 16px 40px;
}

/* Topbar */
.topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    backdrop-filter: blur(18px);
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.85));
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 30% 10%, #ffffff 0, #facc15 20%, #f97316 45%, #7c2d12 100%);
    box-shadow: 0 0 26px rgba(248, 250, 252, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 🔒 Proteção extra: qualquer uso de logo.png fica sempre pequeno */
img[src$="logo.png"] {
    max-width: 40px;
    height: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-tagline {
    font-size: 11px;
    color: var(--text-muted);
}

.topnav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topnav-link {
    padding: 6px 10px;
    font-size: 13px;
    color: var(--text-muted);
    border-radius: 999px;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.topnav-link:hover {
    border-color: rgba(148, 163, 184, 0.7);
    color: var(--text-main);
}

.topnav-btn {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 999px;
    background: linear-gradient(120deg, #f97316, #fed7aa);
    color: #111827;
    font-weight: 600;
    box-shadow: 0 14px 35px rgba(248, 113, 22, 0.7);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.topnav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 45px rgba(248, 113, 22, 0.9);
}

/* Hero */
.hero-section {
    margin-top: 32px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 26px;
    align-items: stretch;
}

.hero-text {
    padding: 26px 24px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 55%),
        rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.hero-text::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 110% 0, rgba(248, 113, 22, 0.25), transparent 55%);
    opacity: 0.9;
    pointer-events: none;
}

.hero-text > * {
    position: relative;
    z-index: 1;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(248, 250, 252, 0.25);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
}

.hero-text h1 {
    margin: 16px 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

.highlight {
    background: linear-gradient(120deg, #f97316, #facc15);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.btn {
    border-radius: var(--radius-full);
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #a3e635);
    color: #022c22;
    box-shadow: 0 14px 35px rgba(34, 197, 94, 0.7);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 45px rgba(34, 197, 94, 0.9);
}

.btn-ghost {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.7);
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.btn-ghost:hover {
    background: rgba(17, 24, 39, 0.96);
    border-color: rgba(229, 231, 235, 0.9);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

.hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.badge {
    padding: 10px 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.5);
    backdrop-filter: blur(12px);
}

.badge-title {
    font-size: 12px;
    font-weight: 600;
}

.badge-text {
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Hero card à direita */
.hero-card {
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.25), transparent 60%),
        rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(56, 189, 248, 0.4);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-card-header {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(30, 64, 175, 0.8);
    font-size: 13px;
    color: var(--text-muted);
}

.hero-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-row {
    display: flex;
    gap: 12px;
}

.stat {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.stat-value {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
}

.stat-highlight {
    color: #facc15;
}

.hero-card-note {
    font-size: 11px;
    color: var(--text-muted);
}

/* Seções gerais */
.steps-section,
.services-section,
.cta-section {
    margin-top: 40px;
}

.steps-section h2,
.services-section h2,
.cta-section h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.section-subtitle {
    margin: 0 0 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.step-card {
    background: var(--bg-soft);
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    padding: 16px 14px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 0 20px rgba(248, 113, 22, 0.9);
}

.step-card h3 {
    margin: 10px 0 6px;
    font-size: 15px;
}

.step-card p {
    font-size: 12px;
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-card {
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.2), rgba(15, 23, 42, 0.98));
    border-radius: 18px;
    padding: 16px 14px;
    border: 1px solid rgba(37, 99, 235, 0.7);
    box-shadow: var(--shadow-soft);
}

.service-card h3 {
    margin: 0 0 8px;
    font-size: 15px;
}

.service-card p {
    margin: 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* CTA final */
.cta-card {
    margin-top: 22px;
    padding: 18px 16px;
    border-radius: 20px;
    background:
        linear-gradient(120deg, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(56, 189, 248, 0.6);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.cta-text {
    flex: 1.1;
}

.cta-text h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.cta-text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.cta-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.cta-note {
    font-size: 11px;
    color: var(--text-muted);
}

/* Autenticação & formulários */
.auth-section {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.auth-card {
    background: var(--bg-card);
    border-radius: 22px;
    padding: 26px 22px 24px;
    max-width: 520px;
    width: 100%;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-soft);
}

.auth-card.large {
    max-width: 720px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 22px;
}

.auth-subtitle {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.form-group span {
    color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.96);
    padding: 9px 10px;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.4);
    background: rgba(15, 23, 42, 1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

.form-checkbox input[type="checkbox"] {
    margin-top: 2px;
}

.auth-footer {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--accent-primary);
}

/* Alertas */
.alert {
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 12px;
    margin-bottom: 12px;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.7);
    color: #fecaca;
}

.alert-success {
    background: rgba(22, 163, 74, 0.1);
    border: 1px solid rgba(22, 163, 74, 0.7);
    color: #bbf7d0;
}

/* Dashboard */
.dashboard-section {
    margin-top: 32px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.dash-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin: 0;
}

.dashboard-header h1 {
    margin: 4px 0 4px;
    font-size: 22px;
}

.dash-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.status-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: rgba(15, 23, 42, 0.95);
}

.status-badge span {
    color: var(--text-muted);
}

.status-badge strong {
    font-size: 12px;
}

.status-pendente {
    border-color: var(--neutral);
    color: var(--neutral);
}

.status-aprovado {
    border-color: var(--success);
    color: var(--success);
}

.status-reprovado {
    border-color: var(--danger);
    color: var(--danger);
}

/* Status dos LEADS (r.php + dashboard do afiliado) */
.lead-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border: 1px solid transparent;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* Aguardando resposta / novo */
.lead-status-novo {
    background: rgba(15, 23, 42, 0.95);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.7);
}

/* Em atendimento */
.lead-status-em {
    background: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
    border-color: rgba(56, 189, 248, 0.9);
}

/* Contrato fechado / convertido – VERDE */
.lead-status-contrato {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
    border-color: rgba(22, 163, 74, 0.95);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.6);
}

/* Perdido / inativo / não responde – VERMELHO */
.lead-status-perdido {
    background: rgba(248, 113, 113, 0.16);
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.95);
}

/* Select usado no admin para trocar status dos leads */
.form-select {
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-main);
    border: 1px solid rgba(148, 163, 184, 0.7);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.stat-card {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 12px 12px 14px;
    border: 1px solid var(--border-subtle);
}

.stat-card .stat-label {
    font-size: 11px;
    color: var(--text-muted);
}

.stat-card .stat-number {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 600;
}

/* Links */
.links-section {
    margin-top: 28px;
}

.links-header h2 {
    margin: 0 0 4px;
    font-size: 18px;
}

.links-header p {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.link-card {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 14px 12px;
    border: 1px solid rgba(34, 197, 94, 0.7);
}

.link-card h3 {
    margin: 0 0 8px;
    font-size: 14px;
}

.link-hint {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Colunas do dashboard */
.dash-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 16px;
    margin-top: 26px;
}

.dash-box {
    background: var(--bg-soft);
    border-radius: 18px;
    padding: 14px 12px;
    border: 1px solid var(--border-subtle);
    overflow-x: visible;   /* não corta nada horizontalmente */
    overflow-y: visible;
}

/* Tabela de leads */
.dash-box h2 {
    margin: 0 0 10px;
    font-size: 16px;
}

.dash-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}

.dash-table.small {
    font-size: 11px;
}

.dash-table thead {
    background: rgba(15, 23, 42, 0.96);
}

.dash-table th,
.dash-table td {
    padding: 7px 6px;
    text-align: left;
    border-bottom: 1px solid rgba(15, 23, 42, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dash-table th {
    font-weight: 500;
    color: var(--text-muted);
}

.dash-table tbody tr:hover {
    background: rgba(17, 24, 39, 0.98);
}

.muted {
    font-size: 12px;
    color: var(--text-muted);
}

/* ====== CARDS DO PAINEL DO AFILIADO (EXTRATO / LEADS) ====== */

.card-bloco {
    background: var(--bg-soft);
    border-radius: 22px;
    padding: 18px 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
    margin-top: 18px;
}

/* wrapper de tabela com scroll horizontal (usado em outras telas) */
.tabela-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabela-scroll table {
    width: 100%;
}

/* Quick links & logout */
.quick-links {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
}

.quick-links li + li {
    margin-top: 4px;
}

.quick-links a {
    color: var(--accent-primary);
}

.logout-area {
    margin-top: 22px;
    text-align: right;
}

/* Footer */
.site-footer {
    border-top: 1px solid rgba(15, 23, 42, 1);
    padding: 16px 0 22px;
    background: rgba(3, 7, 18, 0.98);
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

.footer-small {
    display: block;
    margin-top: 4px;
}

/* Landing do afiliado (r.php) */
.aff-landing {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.aff-landing-card {
    max-width: 720px;
    width: 100%;
    padding: 24px 22px 26px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(34, 197, 94, 0.65);
    box-shadow: var(--shadow-soft);
}

.aff-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-primary);
    margin: 0 0 8px;
}

.aff-landing-card h1 {
    margin: 0 0 10px;
    font-size: 22px;
}

.aff-lead {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--text-muted);
}

.aff-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 12px;
    margin-bottom: 14px;
}

.aff-bullets {
    margin: 0 0 18px;
    padding-left: 18px;
    font-size: 13px;
    color: var(--text-muted);
}

.aff-bullets li + li {
    margin-top: 4px;
}

.aff-cta-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aff-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* Botão pulsante RESOLVER AGORA! */
.btn-pulse {
    position: relative;
    animation: pulseGlow 1.6s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.9);
        transform: translateY(0);
    }
    70% {
        box-shadow: 0 0 0 16px rgba(34, 197, 94, 0);
        transform: translateY(-1px);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
        transform: translateY(0);
    }
}

/* Responsivo geral */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .steps-grid,
    .services-grid,
    .links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dash-columns {
        grid-template-columns: minmax(0, 1fr);
    }
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsivo mobile */
@media (max-width: 720px) {
    /* topo */
    .topbar-inner {
        padding-inline: 12px;
        flex-wrap: wrap;
        row-gap: 6px;
    }

    .topnav-link {
        display: none;
    }

    .hero-text,
    .hero-card,
    .auth-card {
        padding-inline: 18px;
    }

    .hero-badges {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .steps-grid,
    .services-grid,
    .links-grid,
    .stats-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .auth-form.grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .aff-landing-card {
        padding-inline: 18px;
    }

    /* ===== AJUSTE DE BORDAS / LARGURA NO CELULAR (SEM CORTAR) ===== */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;   /* se algo passar, rola – não corta */
    }

    body {
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .page-wrapper {
        max-width: 100%;
        margin: 88px auto 32px;
        padding: 0 12px 32px;
        box-sizing: border-box;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .dash-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .dash-box,
    .card-bloco,
    .auth-card,
    .aff-landing-card {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        border-radius: 22px;
        box-sizing: border-box;
    }

    .tabela-scroll {
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* tabela mais amigável no mobile */
    .dash-table {
        table-layout: auto;
    }

    .dash-table th,
    .dash-table td {
        font-size: 11px;
        padding: 6px 4px;
        white-space: normal;      /* deixa quebrar linha */
        text-overflow: clip;
        word-break: break-word;
    }

    /* última coluna volta a ser célula normal */
    .dash-table td:last-child {
        display: table-cell;
        width: auto;
        margin-top: 0;
        white-space: normal;
    }

    .lead-status {
        white-space: normal;
        text-align: left;
        justify-content: flex-start;
    }
}
