@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html,
body.wt-layout,
body.wt-layout * {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* Mantém o scroll horizontal funcionando SEM mostrar scrollbar do navegador */
body.wt-layout .wt-table-scroll {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;        /* esconde no Firefox */
    -ms-overflow-style: none !important;
}
body.wt-layout .wt-table-scroll::-webkit-scrollbar {
    display: none !important;               /* esconde no Chrome/Safari */
}

:root {
    /* UI monocromática */
    --primary-color: #0b0f19;
    --primary-rgb: 11, 15, 25;
    --primary-dark: #000000;
    --dark-bg: #000000;
    --darker-bg: #0A0A0A;
    --card-bg: #1A1A1A;
    --card-hover: #1F1F1F;
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-tertiary: #6B7280;
    --teal-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --border-color: rgba(255, 255, 255, 0.08);
    --hover-bg: rgba(var(--primary-rgb), 0.05);
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --success-color: #22c55e;

    /* Tokens para overrides de páginas com cores "fixas" (inline <style>) */
    --np-surface: rgba(255, 255, 255, 0.96);
    --np-surface-border: rgba(15, 23, 42, 0.12);
    --np-surface-weak: rgba(15, 23, 42, 0.06);
    --np-text-on-surface: #0f172a;
    --np-muted-on-surface: #6b7280;
    --np-muted-2-on-surface: #94a3b8;
    --np-surface-alt: #f8fafc;
    --np-surface-alt-border: #e2e8f0;
    --np-success: #16a34a;

    /* Aliases: tokens legados usados solto em algumas views; apontam pros canônicos (adaptam ao tema sozinhos, sem redefinir no dark). */
    --np-text: var(--np-text-on-surface);
    --np-border: var(--np-surface-border);
    --np-hover: var(--np-hover-surface);
    --np-input-bg: var(--np-surface-alt);
    --np-input-border: var(--np-surface-alt-border);
    --np-surface-2: var(--np-surface-alt);
    --np-border-on-surface: var(--np-surface-alt-border);

    /* Botões de "confirmação" (neutro): light = preto/branco, dark = branco/preto */
    --np-confirm-bg: #000000;
    --np-confirm-fg: #ffffff;
    --np-confirm-border: #000000;
    --np-confirm-hover-bg: #0a0a0a;
    --np-confirm-hover-border: #0a0a0a;
}

html[data-theme="dark"] {
    --primary-color: rgba(255, 255, 255, 0.92);
    --primary-rgb: 255, 255, 255;
    --primary-dark: #ffffff;

    --dark-bg: #000000;
    --darker-bg: #000000;
    --card-bg: #0b0b0b;
    --card-hover: #111111;
    --border-color: rgba(255, 255, 255, 0.10);
    --hover-bg: rgba(255, 255, 255, 0.04);

    --np-surface: rgba(11, 11, 11, 0.96);
    --np-surface-border: rgba(255, 255, 255, 0.10);
    --np-surface-weak: rgba(255, 255, 255, 0.05);
    --np-text-on-surface: #ffffff;
    --np-muted-on-surface: rgba(255, 255, 255, 0.66);
    --np-muted-2-on-surface: rgba(255, 255, 255, 0.55);
    --np-surface-alt: rgba(255, 255, 255, 0.04);
    --np-surface-alt-border: rgba(255, 255, 255, 0.10);
    --np-success: #22c55e;

    --np-confirm-bg: rgba(255, 255, 255, 0.92);
    --np-confirm-fg: #0b0f19;
    --np-confirm-border: rgba(255, 255, 255, 0.72);
    --np-confirm-hover-bg: #ffffff;
    --np-confirm-hover-border: rgba(255, 255, 255, 0.88);
}

body {
    font-family: 'Inter', sans-serif;
    background: #000000;
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(var(--primary-rgb), 0.04) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(var(--primary-rgb), 0.03) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    display: flex;
    min-height: 100vh;
    position: relative;
}

html[data-theme="dark"] body {
    background: #000000;
    background-image: none;
}

html[data-theme="dark"] body.wt-layout {
    color-scheme: dark;
}

/* Cursor (caret) branco no tema escuro */
html[data-theme="dark"] body.wt-layout {
    caret-color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] body.wt-layout input,
html[data-theme="dark"] body.wt-layout textarea,
html[data-theme="dark"] body.wt-layout [contenteditable="true"],
html[data-theme="dark"] body.wt-layout [contenteditable=""],
html[data-theme="dark"] body.wt-layout [contenteditable="plaintext-only"] {
    caret-color: rgba(255, 255, 255, 0.92);
}

.np-theme-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9991;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.np-theme-fab i { font-size: 18px; color: inherit; }

.np-theme-fab:hover { background: #ffffff; }

html[data-theme="dark"] .np-theme-fab {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(11, 11, 11, 0.92);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

/* Overrides para componentes com cores hardcoded em várias páginas */
html[data-theme="dark"] #wtAppLoader {
    background: rgba(0, 0, 0, 0.78) !important;
}
html[data-theme="dark"] #wtAppLoader .loader-dots span {
    background: rgba(255, 255, 255, 0.35) !important;
}

html[data-theme="dark"] .wt-rank-item {
    background: var(--np-surface) !important;
    border-color: var(--np-surface-border) !important;
}

html[data-theme="dark"] .wt-rank-name,
html[data-theme="dark"] .wt-rank-rev {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] .wt-rank-sub,
html[data-theme="dark"] .wt-rank-chip {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] .wt-rank-chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] .wt-rank-avatar {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .wt-quick-ico {
    background: var(--np-surface-weak) !important;
    border-color: var(--np-surface-border) !important;
    color: var(--np-text-on-surface) !important;
}
html[data-theme="dark"] .wt-quick-title,
html[data-theme="dark"] .wt-mini-value,
html[data-theme="dark"] #saqueResult .pix-amount {
    color: var(--np-text-on-surface) !important;
}
html[data-theme="dark"] .wt-quick-sub,
html[data-theme="dark"] .wt-mini-label,
html[data-theme="dark"] .wt-mini-sub,
html[data-theme="dark"] #saqueResult .pix-instructions,
html[data-theme="dark"] #qrResult .status-ref,
html[data-theme="dark"] #qrResult .status-count,
html[data-theme="dark"] #saqueResult .status-ref {
    color: var(--np-muted-on-surface) !important;
}
html[data-theme="dark"] .wt-quick-arrow {
    color: var(--np-muted-2-on-surface) !important;
}
html[data-theme="dark"] #qrResult .pix-progress,
html[data-theme="dark"] #saqueResult #btnSaqueClose,
html[data-theme="dark"] #qrResult #btnPixClose {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-muted-on-surface) !important;
}
html[data-theme="dark"] #qrResult .pix-progress-bar {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.45)) !important;
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 480px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(26, 26, 26, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    
    color: var(--text-primary);
    opacity: 0;
    transform: translateX(18px);
    transition: all 0.22s ease;
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast-message {
    line-height: 1.35;
    font-size: 14px;
}

.toast-close {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
}

.toast-close:hover { color: var(--text-primary); }

/* Status variants: cores mais fortes */
.toast-success {
    border-left: 4px solid var(--success-color);
}
.toast-success .toast-icon { color: var(--success-color); }

.toast-error {
    border-left: 4px solid var(--danger-color);
}
.toast-error .toast-icon { color: var(--danger-color); }

.toast-warning {
    border-left: 4px solid var(--warning-color);
}
.toast-warning .toast-icon { color: var(--warning-color); }

.toast-info {
    border-left: 4px solid #6ea8fe;
}
.toast-info .toast-icon { color: #6ea8fe; }

/* Mobile: posicionar mais abaixo */
@media (max-width: 640px) {
    .toast-container {
        top: 88px;
        right: 12px;
        left: 12px;
        align-items: flex-end;
    }
    .toast { max-width: 92vw; }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.015) 0%, transparent 60%),
        linear-gradient(-45deg, rgba(var(--primary-dark-rgb), 0.02) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

/* Overlay quando sidebar está aberta no mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--teal-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: #000;
}

.logo img.logo-icon {
    width: 150px;
    height: auto;
    background: none;
    border-radius: 0;
    display: block;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Sidebar Nav */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 20px;
    margin-bottom: 8px;
    display: block;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 2px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 10px;
}

.nav-item i {
    font-size: 18px;
    width: 20px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--teal-gradient);
    color: #fff;
    font-weight: 600;
    
}

.nav-item.active::before {
    display: none;
}

.badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}

.badge-success {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary-color);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.user-avatar i {
    font-size: 20px;
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-company {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-logout {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: rgba(var(--primary-rgb), 0.015);
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 240px;
    padding: 32px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}

body.wt-layout .main-content {
    margin-left: 0 !important;
    padding: 24px 16px 46px !important;
}

/* Mobile Menu Button */
.btn-menu-mobile {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    
}

.btn-menu-mobile i {
    font-size: 22px;
}

.btn-menu-mobile:hover {
    background: var(--card-hover);
    border-color: var(--primary-color);
}

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

.stat-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(var(--primary-rgb), 0.3);
    transform: translateY(-3px);
    
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 24px;
}

.stat-icon.wallet {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.stat-icon.revenue {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.stat-icon.transactions {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.stat-icon.rate {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.stat-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.action-btn {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    text-decoration: none;
    color: inherit;
    min-height: 88px;
    
}

.action-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.action-btn:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
    
}

.action-btn:visited {
    color: inherit;
}

.action-btn i {
    font-size: 24px;
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.action-btn div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.action-btn strong {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.action-btn span {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.9;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* Sections */
.chart-section,
.transactions-section {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    isolation: isolate;
    overflow: hidden;
    position: relative;
    z-index: 1;
    contain: paint;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Chart Filters */
.chart-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.filter-btn.active {
    background: rgba(var(--primary-rgb), 0.3);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.chart-container {
    height: 300px;
    width: 100%;
    position: relative;
}

.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Transactions List */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.transaction-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.transaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-icon.success {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.transaction-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.transaction-id {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.transaction-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.transaction-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.status {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.status-expired {
    background: rgba(107, 114, 128, 0.1);
    color: var(--text-tertiary);
}

.btn-view-all {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Bottom Stats */
.bottom-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.stat-box {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.stat-box:hover {
    background: rgba(26, 26, 26, 0.8);
    border-color: rgba(var(--primary-rgb), 0.2);
    transform: translateY(-2px);
}

.stat-box-icon {
    width: 40px;
    height: 40px;
    background: rgba(var(--primary-rgb), 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.stat-box-icon i {
    font-size: 20px;
}

.stat-box-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.stat-box-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-box-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: normal;
    word-break: break-word;
    line-height: 1.2;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 8, 9, 0.85);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: slideUp 0.3s ease;
    z-index: 1;
    
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(40px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header {
    padding: 28px 28px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.02) 0%, transparent 100%);
}

.modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-icon i {
    font-size: 26px;
}

.modal-icon.saque {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    color: var(--primary-color);
    
}

.modal-icon.pix {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    color: var(--primary-color);
    
}

.modal-icon.transfer {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    color: var(--primary-color);
    
}

.modal-icon.logout {
    background: linear-gradient(135deg, rgba(var(--danger-rgb), 0.15) 0%, rgba(var(--danger-rgb), 0.05) 100%);
    color: var(--danger-color);
}

.modal-title-group {
    flex: 1;
}

.modal-title-group h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.modal-title-group p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.modal-close i {
    font-size: 16px;
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    max-height: calc(90vh - 140px);
}

.modal-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.modal-actions {
    display: flex;
    gap: 10px;
}
.modal-actions .btn-secondary,
.modal-actions .btn-primary {
    flex: 1;
    min-width: 0;
}

.btn-secondary {
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.btn-danger {
    padding: 12px 18px;
    background: rgba(239, 68, 68, 0.16);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #ef4444;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    padding: 12px 18px;
    background: var(--teal-gradient);
    border: none;
    color: #000;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    min-width: 160px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    
}

.btn-primary:hover {
    filter: brightness(1.05);
}

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

.form-group:last-of-type {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(var(--primary-rgb), 0.02);
    
}

.form-group select {
    cursor: pointer;
}

.pix-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
}
.pix-type-toggle button {
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    padding: 12px 12px;
    background: #fff;
    color: #000;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pix-type-toggle button.active {
    background: #000;
    color: #fff;
    border-color: rgba(var(--primary-rgb), 0.35);
}
.pix-type-toggle.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.saque-mode-picker {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.saque-mode-btn {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255,255,255,0.02);
    padding: 14px 14px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.saque-mode-btn:hover {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.22);
}
.saque-mode-btn.primary {
    background: rgba(var(--primary-rgb), 0.10);
    border-color: rgba(var(--primary-rgb), 0.25);
}
.saque-mode-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}
.saque-mode-sub {
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}
@media (max-width: 520px) {
    .saque-mode-picker { grid-template-columns: 1fr; }
}

.saved-withdraw-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.saved-withdraw-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: all 0.18s ease;
}
.saved-withdraw-item:hover {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.22);
}
.saved-withdraw-item.active {
    background: rgba(var(--primary-rgb), 0.10);
    border-color: rgba(var(--primary-rgb), 0.28);
}
.saved-withdraw-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.saved-withdraw-meta strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.saved-withdraw-meta small {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.saved-withdraw-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}
.saved-withdraw-chip {
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    color: var(--text-primary);
}
.saved-withdraw-remove {
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
    cursor: pointer;
}

.form-group small {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.input-currency {
    position: relative;
}

.input-currency span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 15px;
}

.input-currency input {
    padding-left: 48px;
    font-weight: 600;
}

.btn-modal-submit {
    width: 100%;
    padding: 16px;
    background: var(--teal-gradient);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 28px;
    
}

.btn-modal-submit:hover {
    transform: translateY(-2px);
    
}

.btn-modal-submit:active {
    transform: translateY(0);
}

.btn-modal-submit i {
    font-size: 18px;
}

.balance-display {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.08) 0%, rgba(var(--primary-rgb), 0.03) 100%);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
}

.balance-display span {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
}

.qr-result {
    margin-top: 24px;
    text-align: center;
}

.pix-result { display: none; }
.pix-success { display:flex; align-items:center; justify-content:center; gap:8px; margin-bottom:12px; color: var(--success-color); font-weight:700; }
.pix-success i { font-size: 18px; }
.pix-amount { font-size: 18px; font-weight:800; color: var(--text-primary); margin-bottom: 14px; }
.pix-instructions { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.pix-status { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom: 12px; }
.pix-status { flex-direction: column; }
.status-badge { font-size:11px; padding:6px 10px; border-radius: 999px; font-weight:700; }
.status-badge.pending { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-color); color: var(--text-secondary); }
.status-badge.expired { background: rgba(var(--danger-rgb), 0.12); border: 1px solid rgba(var(--danger-rgb), 0.45); color: var(--danger-color); }
.status-badge.pending::before { content:''; display:inline-block; width:12px; height:12px; border:2px solid rgba(255,255,255,0.25); border-top-color: var(--success-color); border-radius:50%; margin-right:8px; vertical-align: -2px; animation: spin 0.8s linear infinite; }
.status-ref { font-size:12px; color: var(--text-tertiary); }
.status-count { font-size:12px; color: var(--text-tertiary); }
.status-badge.confirmed { background: rgba(var(--primary-rgb), 0.14); border: 1px solid rgba(var(--primary-rgb), 0.6); color: var(--success-color); }

.status-badge.canceled {
    background: rgba(var(--danger-rgb), 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(var(--danger-rgb), 0.2);
}
.pix-progress { width: 100%; max-width: 260px; height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; margin: 6px auto 0; overflow: hidden; }
.pix-progress-bar { height: 100%; background: var(--teal-gradient); transition: width 1s linear; }
.qr-actions { display:flex; gap:10px; justify-content:center; }

.pix-code input {
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 12px;
    border-radius: 10px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.qr-card { background: #fff; padding: 18px; border-radius: 16px; display:inline-block; margin-bottom:16px;  }

.qr-card img { max-width: 220px; display:block; }

.pix-code { display:flex; gap:10px; margin-bottom: 12px; }

.pix-code input { flex: 1; }

.btn-copy {
    padding: 14px 22px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-copy i {
    font-size: 16px;
}

/* Mobile Navbar */
.mobile-navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 200;
    padding: 16px;
}

.mobile-nav-content {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-logo .logo-icon {
    width: 44px;
    height: 44px;
}

.mobile-user-info {
    display: flex;
    flex-direction: column;
}

.mobile-greeting {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.mobile-welcome {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-menu-hamburger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-menu-hamburger:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-menu-hamburger i {
    font-size: 24px;
}

/* Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 200;
}

.bottom-return {
    padding: 12px 16px;
    display: flex;
    justify-content: center;
}
.bottom-return-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
}

.bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 8px 12px;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 8px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    flex: 1;
    max-width: 80px;
}

.bottom-nav-item i {
    font-size: 22px;
}

.bottom-nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.bottom-nav-item.active {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-color);
}

.bottom-nav-item:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
.chart-container {
    height: 280px;
    width: 100%;
}
}

@media (max-width: 968px) {
    .mobile-navbar {
        display: block;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        
    }

    .main-content {
        margin-left: 0;
        padding: 110px 16px 90px;
    }

    .btn-menu-mobile {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .action-btn {
        padding: 20px 16px;
    }
    
    .action-btn i {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    .action-btn strong {
        font-size: 13px;
    }
    
    .action-btn span {
        font-size: 11px;
    }
    
    .chart-section,
    .transactions-section {
        padding: 20px;
    }
    
.chart-container {
    height: 240px;
    width: 100%;
}

.pix-result.confirmed-view {
    text-align: center;
}
.pix-result.confirmed-view .pix-success span {
    color: var(--primary-color);
    font-weight: 700;
}
.pix-result.confirmed-view .pix-amount {
    font-size: 22px;
    font-weight: 700;
    margin: 8px 0 12px;
}
.pix-result.confirmed-view .pix-status {
    margin-top: 8px;
}
.pix-result.confirmed-view .qr-actions {
    margin-top: 12px;
}
    
    .section-title {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 115px 12px 86px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bottom-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .action-btn {
        padding: 18px 14px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .modal-container {
        max-width: 95%;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 20px;
    }

    .modal-actions {
        width: 100%;
    }

    .btn-secondary,
    .btn-danger {
        width: 100%;
        justify-content: center;
    }

    .btn-primary {
        width: 50%;
        justify-content: center;
    }
}

@media (min-width: 969px) {
    .mobile-navbar {
        display: none !important;
    }
    
    .bottom-nav {
        display: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
}

body.wt-layout {
    background: #f5f7fb;
    color: #0f172a;
    display: block;
    --wt-topbar-black-h: 100px !important;
    --wt-topbar-h: 64px !important;

    /* Efeito "linhado" (igual public/index.php, mas adaptado por tema) */
    --np-lines: rgba(15, 23, 42, 0.07);
    --np-lines-glow: rgba(15, 23, 42, 0.06);
    isolation: isolate;

    /* Monocromático (preto/branco): evita azuis/verdes do tema da marca */
    --primary-color: #0b0f19;
    --primary-rgb: 11, 15, 25;
    --primary-dark: #000000;
    --teal-gradient: linear-gradient(135deg, #0b0f19 0%, #000000 100%);
    --success-color: #0b0f19;
    --success-rgb: 11, 15, 25;
    --warning-color: #0b0f19;
    --warning-rgb: 11, 15, 25;
    --danger-color: #0b0f19;
    --danger-rgb: 11, 15, 25;

    --np-focus-ring: rgba(0, 0, 0, 0.14);
    --np-hover-surface: rgba(15, 23, 42, 0.06);
}

body.wt-layout::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(700px 700px at 20% 20%, var(--np-lines-glow), transparent 60%),
        repeating-linear-gradient(135deg,
            rgba(0, 0, 0, 0.00) 0 120px,
            var(--np-lines) 120px 122px,
            rgba(0, 0, 0, 0.00) 122px 240px
        );
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 72%);
    opacity: 0.95;
}

html[data-theme="dark"] body.wt-layout {
    --np-lines: rgba(255, 255, 255, 0.08);
    --np-lines-glow: rgba(255, 255, 255, 0.06);

    --primary-color: rgba(255, 255, 255, 0.92);
    --primary-rgb: 255, 255, 255;
    --primary-dark: #ffffff;
    --teal-gradient: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.72) 100%);
    --success-color: rgba(255, 255, 255, 0.92);
    --success-rgb: 255, 255, 255;
    --warning-color: rgba(255, 255, 255, 0.92);
    --warning-rgb: 255, 255, 255;
    --danger-color: rgba(255, 255, 255, 0.92);
    --danger-rgb: 255, 255, 255;

    --np-focus-ring: rgba(255, 255, 255, 0.16);
    --np-hover-surface: rgba(255, 255, 255, 0.06);
}

body.wt-layout.is-loading {
    overflow: hidden;
}

body.wt-layout .sidebar,
body.wt-layout .sidebar-overlay,
body.wt-layout .mobile-navbar,
body.wt-layout .bottom-nav {
    display: none !important;
}

.wt-topbar-black {
    position: sticky;
    top: 0;
    z-index: 2001;
    height: var(--wt-topbar-black-h);
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wt-topbar-black img {
    height: 50px;
    width: 100px;
    display: block;
}

.wt-topbar {
    position: sticky;
    top: var(--wt-topbar-black-h);
    z-index: 2000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.wt-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.wt-brand img {
    height: 26px;
    width: 26px;
    display: block;
    border-radius: 8px;
}

.wt-nav {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
}

.wt-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.wt-nav-link i {
    font-size: 16px;
    color: #6b7280;
}

.wt-nav-link:hover,
.wt-nav-link.active {
    background: #f3f4f6;
}

.wt-nav-extra {
    display: none;
}

/* ===== Navbar com categorias (dropdown) ===== */
.wt-nav-group {
    position: relative;
    display: inline-flex;
}
.wt-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #111827;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
}
.wt-nav-trigger > i.wt-nav-caret {
    font-size: 13px;
    color: #9ca3af;
    transition: transform 0.18s ease;
}
.wt-nav-trigger:hover,
.wt-nav-group.open .wt-nav-trigger,
.wt-nav-trigger.active {
    background: #f3f4f6;
}
.wt-nav-group.open .wt-nav-trigger > i.wt-nav-caret {
    transform: rotate(180deg);
}
.wt-nav-trigger.active {
    color: #0b0f19;
}
.wt-nav-trigger.active > span:first-of-type {
    position: relative;
}
.wt-nav-menu {
    position: absolute;        /* desktop: CSS posiciona sozinho (sem depender de JS) */
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 222px;
    max-width: calc(100vw - 16px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
    z-index: 3000;
}
.wt-nav-group.open .wt-nav-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
/* No mobile o nav rola na horizontal (overflow) e cortaria o menu absoluto.
   Aí ele vira fixed e FULL-WIDTH (left/right via CSS); o JS só refina o `top`
   pro fundo exato do gatilho. Mesmo sem JS, o `top` de fallback deixa o menu
   visível embaixo do topbar (em vez de no canto 0,0). */
/* No mobile o dropdown vira BOTTOM SHEET (desliza de baixo). Independe da altura
   do topbar e nunca é coberto/clipado. !important pra vencer qualquer estilo
   inline do JS e qualquer dashboard.css velho do cache. */
@media (max-width: 960px) {
    .wt-nav-menu {
        position: fixed !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        border-radius: 18px 18px 0 0 !important;
        padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.45) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(20px) !important;
    }
    /* No mobile o menu é portado pro <body> e recebe esta classe (escapa do
       overflow/-webkit-overflow-scrolling do .wt-nav, que clipava o fixed no iOS). */
    .wt-nav-menu.wt-nav-sheet-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }
    .wt-nav-menu-link {
        padding: 13px 14px !important;
        font-size: 15px !important;
    }
}
.wt-nav-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    white-space: nowrap;
}
.wt-nav-menu-link i {
    font-size: 16px;
    color: #6b7280;
    width: 18px;
    text-align: center;
    flex: none;
}
.wt-nav-menu-link:hover {
    background: #f3f4f6;
}
.wt-nav-menu-link.active {
    background: #0b0f19;
    color: #ffffff;
}
.wt-nav-menu-link.active i {
    color: #ffffff;
}
.wt-nav-badge,
.wt-nav-menu-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wt-nav-menu-badge {
    margin-left: auto;
}

/* Dark mode */
html[data-theme="dark"] .wt-nav-trigger {
    color: rgba(255, 255, 255, 0.92);
}
html[data-theme="dark"] .wt-nav-trigger > i.wt-nav-caret {
    color: rgba(255, 255, 255, 0.5);
}
html[data-theme="dark"] .wt-nav-trigger:hover,
html[data-theme="dark"] .wt-nav-group.open .wt-nav-trigger,
html[data-theme="dark"] .wt-nav-trigger.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
html[data-theme="dark"] .wt-nav-menu {
    background: #0c0c0c;
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .wt-nav-menu-link {
    color: rgba(255, 255, 255, 0.9);
}
html[data-theme="dark"] .wt-nav-menu-link i {
    color: rgba(255, 255, 255, 0.55);
}
html[data-theme="dark"] .wt-nav-menu-link:hover {
    background: rgba(255, 255, 255, 0.07);
}
html[data-theme="dark"] .wt-nav-menu-link.active {
    background: #ffffff;
    color: #0b0f19;
}
html[data-theme="dark"] .wt-nav-menu-link.active i {
    color: #0b0f19;
}

.wt-nav-link.wt-nav-btn-dark {
    background: #0b0f19;
    color: #ffffff;
}

.wt-nav-link.wt-nav-btn-dark i {
    color: #ffffff;
}

.wt-nav-link.wt-nav-btn-dark:hover {
    background: #111827;
}

.wt-nav-link.wt-nav-btn-ghost {
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.wt-nav-link.wt-nav-btn-ghost:hover {
    background: #f3f4f6;
}

.wt-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* "Minha conta" agora vive só no dropdown do avatar (igual o sidebar). */
.wt-action-config {
    display: none !important;
}

/* A marca é um placeholder vazio; não deve ocupar espaço, pra a nav começar
   colada na borda esquerda do container (e não deslocada). */
.wt-brand:empty { display: none; }

/* Nav alinhada à ESQUERDA do container; ações empurradas pra DIREITA. Assim o
   topbar acompanha as bordas do conteúdo, em vez de centralizar no vão. */
.wt-topbar-actions { margin-left: auto; }

.wt-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
}

.wt-btn-dark {
    background: var(--np-confirm-bg);
    border: 1px solid var(--np-confirm-border);
    color: var(--np-confirm-fg);
}

.wt-btn-dark i {
    color: currentColor;
}

.wt-btn-dark:hover {
    background: var(--np-confirm-hover-bg);
    border-color: var(--np-confirm-hover-border);
    color: var(--np-confirm-fg);
}

.wt-btn-ghost {
    background: transparent;
    border-color: #e5e7eb;
    color: #111827;
}

.wt-btn-ghost i {
    color: #6b7280;
}

.wt-btn-ghost:hover {
    background: #f3f4f6;
    color: #111827;
}

.wt-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}

.wt-user:focus-visible {
    outline: 2px solid rgba(17, 24, 39, 0.25);
    outline-offset: 2px;
}

.wt-user-wrap {
    position: relative;
}

.wt-user-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    padding: 12px;
    display: none;
}

.wt-user-menu.open {
    display: block;
}

.wt-user-menu-title {
    font-size: 12px;
    font-weight: 900;
    color: #6b7280;
    letter-spacing: 0.08em;
    margin: 2px 4px 10px;
}

.wt-user-menu-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.wt-user-menu-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    flex: 0 0 auto;
}

.wt-user-menu-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wt-user-menu-info {
    min-width: 0;
    flex: 1;
}

.wt-user-menu-name {
    font-weight: 900;
    color: #0f172a;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-user-menu-sub {
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-user-menu-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.wt-user-menu-row-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: #0f172a;
    font-size: 13px;
}

.wt-user-menu-row-left i {
    color: #6b7280;
}

.wt-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wt-switch input {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: #e5e7eb;
    border: 1px solid #e5e7eb;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
}

.wt-switch-ui {
    display: none;
}

.wt-switch input::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    transition: transform 0.2s ease;
}

.wt-switch input:checked {
    background: #111827;
    border-color: #111827;
}

.wt-switch input:checked::after {
    transform: translateX(18px);
}

.wt-user-menu-sep {
    height: 1px;
    background: #e5e7eb;
    margin: 12px 4px;
}

.wt-user-menu-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 900;
    font-size: 13px;
}

.wt-user-menu-link i {
    color: #6b7280;
    font-size: 16px;
}

.wt-user-menu-link:hover {
    background: #f3f4f6;
}

.wt-user-menu-link.wt-danger {
    color: #b91c1c;
}

.wt-user-menu-link.wt-danger i {
    color: #b91c1c;
}

/* (Tema) O botão flutuante alterna imediatamente, sem menu */

/* Remove toggles do dropdown (Notificações + Tema escuro) */
body.wt-layout .wt-user-menu-row:has(input[aria-label="Notificações"]),
body.wt-layout .wt-user-menu-row:has(input[aria-label="Notificacoes"]),
body.wt-layout .wt-user-menu-row:has(input[data-np-theme-switch]),
body.wt-layout .wt-user-menu-row:has(input[aria-label="Tema escuro"]) {
    display: none !important;
}

.wt-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
}

.wt-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wt-user-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wt-user i {
    color: #6b7280;
}

/* Dark theme: topbar + menus */
html[data-theme="dark"] .wt-topbar {
    background: rgba(11, 11, 11, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .wt-nav-link {
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .wt-nav-link i {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .wt-nav-link:hover,
html[data-theme="dark"] .wt-nav-link.active {
    background: transparent;
}

html[data-theme="dark"] .wt-nav-link.wt-nav-btn-dark {
    background: #111827;
    color: #ffffff;
}

html[data-theme="dark"] .wt-nav-link.wt-nav-btn-dark:hover {
    background: #0b1220;
}

html[data-theme="dark"] .wt-nav-link.wt-nav-btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .wt-nav-link.wt-nav-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .wt-btn-ghost {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .wt-btn-ghost i {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .wt-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

html[data-theme="dark"] .wt-user {
    background: rgba(11, 11, 11, 0.92);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .wt-user i {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .wt-user-menu {
    background: rgba(11, 11, 11, 0.98);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .wt-user-menu-title {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .wt-user-menu-card,
html[data-theme="dark"] .wt-user-menu-row {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .wt-user-menu-avatar,
html[data-theme="dark"] .wt-user-avatar {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .wt-user-menu-name,
html[data-theme="dark"] .wt-user-menu-row-left,
html[data-theme="dark"] .wt-user-menu-link {
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .wt-user-menu-sub {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .wt-user-menu-row-left i,
html[data-theme="dark"] .wt-user-menu-link i {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .wt-user-menu-sep {
    background: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .wt-user-menu-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .wt-card {
    background: rgba(11, 11, 11, 0.96);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .wt-card-title,
html[data-theme="dark"] .wt-metric-value {
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .wt-card-subtitle,
html[data-theme="dark"] .wt-metric-label {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .wt-link {
    color: rgba(255, 255, 255, 0.74);
}

html[data-theme="dark"] .wt-page-title {
    color: rgba(255, 255, 255, 0.92);
}

/* Dark theme: lista de transações (Dashboard) */
html[data-theme="dark"] .wt-tx-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .wt-tx-grouped .wt-tx-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.10);
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .wt-tx-grouped .wt-tx-item:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .wt-tx-title,
html[data-theme="dark"] .wt-tx-amount {
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .wt-tx-meta {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .wt-chip {
    background: rgba(var(--primary-rgb), 0.14);
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .wt-badge.paid {
    background: var(--np-confirm-bg);
    color: var(--np-confirm-fg);
    border-color: var(--np-confirm-border);
}

html[data-theme="dark"] .wt-badge.failed {
    background: var(--np-surface-alt);
    color: var(--np-muted-on-surface);
    border-color: var(--np-surface-alt-border);
}

html[data-theme="dark"] .wt-badge.pending {
    background: var(--np-surface-alt);
    color: var(--np-muted-on-surface);
    border-color: var(--np-surface-alt-border);
}

html[data-theme="dark"] .wt-badge.split {
    background: rgba(59,130,246,0.15);
    color: #60a5fa;
    border-color: rgba(59,130,246,0.30);
}

html[data-theme="dark"] .wt-tx-day-separator {
    color: var(--np-muted-on-surface);
}

html[data-theme="dark"] .wt-tx-grouped .wt-tx-title {
    color: var(--np-text-on-surface);
}

html[data-theme="dark"] .wt-tx-grouped .wt-tx-amount {
    color: var(--np-text-on-surface);
}

html[data-theme="dark"] .wt-tx-ico-in {
    background: transparent;
    color: #34d399;
}

html[data-theme="dark"] .wt-tx-ico-out {
    background: transparent;
    color: #f87171;
}

html[data-theme="dark"] .wt-tx-ico-split {
    background: transparent;
    color: #60a5fa;
}

html[data-theme="dark"] .wt-tx-ico-ok {
    background: transparent;
    color: #34d399;
    border-color: transparent;
}

html[data-theme="dark"] .wt-tx-ico-fail {
    background: transparent;
    color: #f87171;
    border-color: transparent;
}

html[data-theme="dark"] .wt-tx-ico-pending {
    background: transparent;
    color: #a5b4fc;
    border-color: rgba(99,102,241,0.25);
}

html[data-theme="dark"] .wt-tx-day-separator {
    color: var(--np-muted-on-surface);
}

html[data-theme="dark"] .wt-tx-chip {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.10);
    color: var(--np-muted-on-surface);
}

html[data-theme="dark"] .wt-tx-ico.ok {
    background: var(--np-confirm-bg);
    color: var(--np-confirm-fg);
    border-color: var(--np-confirm-border);
}

html[data-theme="dark"] .wt-tx-ico.bad {
    background: var(--np-surface-alt);
    color: var(--np-muted-on-surface);
    border-color: var(--np-surface-alt-border);
}

html[data-theme="dark"] .wt-tx-ico.wait {
    background: var(--np-surface-alt);
    color: var(--np-muted-on-surface);
    border-color: var(--np-surface-alt-border);
}

/* Dark theme: modais do Dashboard (index.php tem estilos claros inline) */
html[data-theme="dark"] body.wt-layout #modalGerarPix .modal-container,
html[data-theme="dark"] body.wt-layout #modalSaque .modal-container,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount .modal-container,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .modal-container {
    background: rgba(11, 11, 11, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .modal-header,
html[data-theme="dark"] body.wt-layout #modalSaque .modal-header,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount .modal-header,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .modal-header {
    background: rgba(11, 11, 11, 0.96) !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .modal-body,
html[data-theme="dark"] body.wt-layout #modalSaque .modal-body,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount .modal-body,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .modal-body {
    background: rgba(11, 11, 11, 0.96) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .modal-icon,
html[data-theme="dark"] body.wt-layout #modalSaque .modal-icon,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount .modal-icon,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .modal-icon {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .modal-title-group h3,
html[data-theme="dark"] body.wt-layout #modalSaque .modal-title-group h3,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount .modal-title-group h3,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .modal-title-group h3,
html[data-theme="dark"] body.wt-layout #modalSaque .saque-mode-title,
html[data-theme="dark"] body.wt-layout #modalSaque .saved-withdraw-meta strong {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .modal-title-group p,
html[data-theme="dark"] body.wt-layout #modalSaque .modal-title-group p,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount .modal-title-group p,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .modal-title-group p,
html[data-theme="dark"] body.wt-layout #modalSaque .saque-mode-sub,
html[data-theme="dark"] body.wt-layout #modalSaque .input-currency span,
html[data-theme="dark"] body.wt-layout #modalSaque #saqueEstimate,
html[data-theme="dark"] body.wt-layout #modalSaque .saved-withdraw-meta small {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .modal-close,
html[data-theme="dark"] body.wt-layout #modalSaque .modal-close,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount .modal-close,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .modal-close {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .modal-close:hover,
html[data-theme="dark"] body.wt-layout #modalSaque .modal-close:hover,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount .modal-close:hover,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .modal-close:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .form-group label {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .form-group input,
html[data-theme="dark"] body.wt-layout #modalSaque input,
html[data-theme="dark"] body.wt-layout #modalSaque select,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount input,
html[data-theme="dark"] body.wt-layout #modalSaveWithdrawAccount select,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount input,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount select {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .form-group label {
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .form-group small {
    color: rgba(255, 255, 255, 0.55) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .saque-mode-btn,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .wt-replace-item,
html[data-theme="dark"] body.wt-layout #modalSaque .saved-withdraw-item {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .saque-mode-btn:hover,
html[data-theme="dark"] body.wt-layout #modalReplaceWithdrawAccount .wt-replace-item:hover,
html[data-theme="dark"] body.wt-layout #modalSaque .saved-withdraw-item:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .saque-mode-btn.primary {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .saved-withdraw-item.active {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .saved-withdraw-chip {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

/* Dark theme: conversão/empty states */
html[data-theme="dark"] .wt-conv-name,
html[data-theme="dark"] .wt-conv-pct {
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .wt-conv-meta,
html[data-theme="dark"] .wt-muted,
html[data-theme="dark"] .wt-empty,
html[data-theme="dark"] .wt-empty-text {
    color: rgba(255, 255, 255, 0.62);
}

html[data-theme="dark"] .wt-conv-foot {
    border-top-color: rgba(255, 255, 255, 0.10);
}

html[data-theme="dark"] .wt-bar {
    background: rgba(255, 255, 255, 0.10);
}

/* Dark theme: header + pills + filtros (extrato/splits/transações) */
html[data-theme="dark"] body.wt-layout .wt-extrato-icon {
    background: var(--np-confirm-bg) !important;
    border: none !important;
    color: var(--np-confirm-fg) !important;
}

html[data-theme="dark"] body.wt-layout .wt-extrato-h1 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-extrato-sub {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-pill {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .wt-pill:hover {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

html[data-theme="dark"] body.wt-layout .wt-pill.active,
html[data-theme="dark"] body.wt-layout .wt-pill-dark,
html[data-theme="dark"] body.wt-layout .wt-adv-trigger.is-open {
    background: var(--np-confirm-bg) !important;
    border-color: var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.wt-layout .wt-adv-trigger.is-open:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

html[data-theme="dark"] body.wt-layout .wt-advanced-card {
    background: rgba(11, 11, 11, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] body.wt-layout .wt-field span {
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .wt-field input,
html[data-theme="dark"] body.wt-layout .wt-field select {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-field input:focus,
html[data-theme="dark"] body.wt-layout .wt-field select:focus {
    border-color: rgba(255, 255, 255, 0.22) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] body.wt-layout .wt-adv-clear {
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .wt-adv-apply {
    border-color: var(--np-confirm-border) !important;
    background: var(--np-confirm-bg) !important;
    color: var(--np-confirm-fg) !important;
}

html[data-theme="dark"] body.wt-layout .wt-adv-apply:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

/* Dark theme: tabelas (extrato/splits/transações) */
html[data-theme="dark"] body.wt-layout .transactions-table thead tr {
    border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout .transactions-table th {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .transactions-table td {
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .transactions-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] body.wt-layout .transactions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04) !important;
}

/* Dark theme: cards/tabelas/filtros (Admin) - evitar blocos brancos */
html[data-theme="dark"] body.wt-layout .wt-filters-card,
html[data-theme="dark"] body.wt-layout .wt-table-card,
html[data-theme="dark"] body.wt-layout .wt-section-card {
    background: var(--np-surface) !important;
    border-color: var(--np-surface-border) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

/* Dark theme: garantir que a área da tabela não "clareie" */
html[data-theme="dark"] body.wt-layout .wt-table-scroll,
html[data-theme="dark"] body.wt-layout .transactions-table,
html[data-theme="dark"] body.wt-layout .transactions-table thead,
html[data-theme="dark"] body.wt-layout .transactions-table thead tr,
html[data-theme="dark"] body.wt-layout .transactions-table th {
    background: transparent !important;
}

html[data-theme="dark"] body.wt-layout .wt-table-scroll {
    background: var(--np-surface) !important;
}

html[data-theme="dark"] body.wt-layout .transactions-table thead tr {
    background: var(--np-surface) !important;
}

html[data-theme="dark"] body.wt-layout .transactions-table th {
    background: var(--np-surface) !important;
}

/* Admin: garantir consistência (mesmo sem atributo de tema no <html>) */
body.wt-layout .wt-filters-card,
body.wt-layout .wt-table-card,
body.wt-layout .wt-section-card {
    background: var(--np-surface) !important;
    border-color: var(--np-surface-border) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10) !important;
}

body.wt-layout .wt-table-scroll,
body.wt-layout .transactions-table,
body.wt-layout .transactions-table thead,
body.wt-layout .transactions-table thead tr,
body.wt-layout .transactions-table th {
    background: transparent !important;
}

body.wt-layout .wt-table-scroll {
    background: var(--np-surface) !important;
}

body.wt-layout .transactions-table thead tr,
body.wt-layout .transactions-table th {
    background: var(--np-surface) !important;
}

html[data-theme="dark"] body.wt-layout .wt-filters-title,
html[data-theme="dark"] body.wt-layout .wt-filter-group label,
html[data-theme="dark"] body.wt-layout .wt-table-meta,
html[data-theme="dark"] body.wt-layout .wt-section-subtitle {
    color: var(--np-muted-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .wt-table-title,
html[data-theme="dark"] body.wt-layout .wt-section-title-text {
    color: var(--np-text-on-surface) !important;
}

/* No tema dark, o botão Filtrar (branco) precisa ter texto preto */
html[data-theme="dark"] body.wt-layout .wt-filters-card .wt-btn-filter {
    color: var(--np-confirm-fg) !important;
}
html[data-theme="dark"] body.wt-layout .wt-filters-card .wt-btn-filter i {
    color: currentColor !important;
}

html[data-theme="dark"] body.wt-layout .wt-filters-card .wt-btn-clear {
    color: var(--np-text-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .wt-filter-input {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .wt-filter-input::placeholder {
    color: var(--np-muted-on-surface) !important;
    opacity: 0.8;
}

/* Native <select> dropdown popup — the OS rendered the option list white-on-white
   in dark mode. Force readable colors on every dashboard <select> at once. */
html[data-theme="dark"] body.wt-layout select { color-scheme: dark; }
html[data-theme="dark"] body.wt-layout select option {
    background-color: #141414 !important;
    color: #e8eaed !important;
}
html[data-theme="dark"] body.wt-layout select option:checked,
html[data-theme="dark"] body.wt-layout select option:hover {
    background-color: #2563eb !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout .wt-btn-filter {
    /* Dark: branco com texto preto */
    background: var(--np-confirm-bg) !important;
    color: var(--np-confirm-fg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    opacity: 1 !important;
}

html[data-theme="dark"] body.wt-layout .wt-btn-filter:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

html[data-theme="dark"] body.wt-layout .wt-btn-clear {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .wt-btn-clear:hover {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

/* Admin: coluna AÇÕES sticky não pode ficar branca */
/* Coluna AÇÕES sticky: sempre combinar com o tema */
body.wt-layout .transactions-table th:last-child,
body.wt-layout .transactions-table td:last-child {
    background: var(--np-surface) !important;
}

/* Dark: coluna sticky precisa ser sólida para não "borrar" com o fundo */
html[data-theme="dark"] body.wt-layout .transactions-table th:last-child,
html[data-theme="dark"] body.wt-layout .transactions-table td:last-child {
    background: #0b0b0b !important;
}

html[data-theme="dark"] body.wt-layout .transactions-table tbody tr:hover td:last-child {
    background: #111111 !important;
}

body.wt-layout .transactions-table td:last-child::before,
body.wt-layout .transactions-table th:last-child::before {
    /* O gradiente da coluna sticky cria "borrão" visual: remover */
    content: none !important;
    display: none !important;
}

/* Admin: select de paginação/per-page não pode ficar branco */
html[data-theme="dark"] body.wt-layout .wt-per-page {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

/* Admin: badges na tabela não devem virar "pílula branca" */
html[data-theme="dark"] body.wt-layout .wt-table-card .badge-status,
html[data-theme="dark"] body.wt-layout .wt-table-card .badge-type,
html[data-theme="dark"] body.wt-layout .wt-table-card .badge-external,
html[data-theme="dark"] body.wt-layout .wt-table-card .badge-split {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

/* KYC: neutralizar cores dos ícones/contadores */
html[data-theme="dark"] body.wt-layout .ico-warn,
html[data-theme="dark"] body.wt-layout .ico-ok,
html[data-theme="dark"] body.wt-layout .badge-count-warn,
html[data-theme="dark"] body.wt-layout .badge-count-ok,
html[data-theme="dark"] body.wt-layout .wt-chip.chip-warn,
html[data-theme="dark"] body.wt-layout .wt-chip.chip-ok {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .td-e2e {
    color: rgba(255, 255, 255, 0.55) !important;
}

html[data-theme="dark"] body.wt-layout .btn-action {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .btn-action:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout .badge-status.badge-confirmed {
    background: var(--st-ok-bg) !important;
    border: 1px solid var(--st-ok-border) !important;
    color: var(--st-ok-fg) !important;
}

html[data-theme="dark"] body.wt-layout .badge-status.badge-pending {
    background: var(--st-warn-bg) !important;
    border: 1px solid var(--st-warn-border) !important;
    color: var(--st-warn-fg) !important;
}

html[data-theme="dark"] body.wt-layout .badge-status.badge-canceled {
    background: var(--st-bad-bg) !important;
    border: 1px solid var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

html[data-theme="dark"] body.wt-layout .badge-status.badge-expired {
    background: var(--st-bad-bg) !important;
    border: 1px solid var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

html[data-theme="dark"] body.wt-layout .badge-type.badge-in {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-muted-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .badge-type.badge-out {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-muted-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .badge-type.badge-med {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-muted-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .wt-page-btn {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-page-btn:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] body.wt-layout .wt-page-btn.is-active {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout .wt-page-info {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* Dark theme: cards de resumo (extrato/splits) */
html[data-theme="dark"] body.wt-layout .wt-extrato-stat-label {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-extrato-stat-value {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-extrato-stat-sub {
    color: rgba(255, 255, 255, 0.62) !important;
}

/* Dark theme: Notificações (notificacoes.php tem estilos claros inline) */
html[data-theme="dark"] body.wt-layout .wt-nf-hero {
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
    background: radial-gradient(1000px 420px at 10% 0%, rgba(var(--primary-rgb), 0.16), rgba(0,0,0,0) 55%),
                radial-gradient(900px 420px at 90% 0%, rgba(255,255,255,0.06), rgba(0,0,0,0) 55%),
                linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0)) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-hero h1 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-hero p {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-item {
    background: rgba(11, 11, 11, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-meta,
html[data-theme="dark"] body.wt-layout .wt-nf-body {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-banner {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-img-full {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

/* Dark theme: Splits - nome/remetente em inline style */
html[data-theme="dark"] body.wt-layout .wt-extrato-table .transactions-table td div[style*="color:#0f172a"] {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-extrato-table .transactions-table td div[style*="color:#64748b"] {
    color: rgba(255, 255, 255, 0.62) !important;
}

/* Dark theme: Avisos (avisos.php tem estilos claros inline) */
html[data-theme="dark"] body.wt-layout .wt-ann-card,
html[data-theme="dark"] body.wt-layout .wt-ann-item {
    background: rgba(11, 11, 11, 0.96) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] body.wt-layout .wt-ann-title,
html[data-theme="dark"] body.wt-layout .wt-preview-title,
html[data-theme="dark"] body.wt-layout .wt-ann-item-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-ann-sub,
html[data-theme="dark"] body.wt-layout .wt-preview-body,
html[data-theme="dark"] body.wt-layout .wt-ann-item-body {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-label {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-form .filter-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-preview-banner,
html[data-theme="dark"] body.wt-layout .wt-ann-item-banner {
    border-color: rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] body.wt-layout .wt-preview-meta {
    border-top-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-preview-chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-ann-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-ann-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] body.wt-layout .wt-ann-btn.danger {
    border-color: var(--np-surface-border) !important;
    background: var(--np-surface-alt) !important;
    color: var(--np-text-on-surface) !important;
}

html[data-theme="dark"] body.wt-layout .wt-ann-btn.danger:hover {
    background: rgba(var(--danger-rgb), 0.16) !important;
}

/* Dark theme: Integrações/Credenciais (integracoes.php tem estilos claros inline + modais próprios) */
html[data-theme="dark"] body.wt-layout .wt-int-actions .btn-docs {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-actions .btn-docs:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-actions .btn-create {
    background: var(--np-confirm-bg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-actions .btn-create:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-note {
    border-color: rgba(var(--warning-rgb), 0.45) !important;
    background: rgba(var(--warning-rgb), 0.08) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-note h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-card {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-ico {
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-sub,
html[data-theme="dark"] body.wt-layout .wt-int-desc {
    color: rgba(255, 255, 255, 0.62) !important;
    background: transparent !important;
    border-color: transparent !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-badge {
    color: rgba(255, 255, 255, 0.62) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    background: rgba(255, 255, 255, 0.04) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-badge.is-on {
    background: var(--np-confirm-bg) !important;
    border-color: var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-btn {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] body.wt-layout .modal-overlay {
    background: rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .modal-content {
    background: rgba(11, 11, 11, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.70) !important;
}

html[data-theme="dark"] body.wt-layout .modal-overlay .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .modal-overlay .modal-title-group h3,
html[data-theme="dark"] body.wt-layout .modal-overlay .modal-header h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .modal-overlay .modal-header {
    background: rgba(11, 11, 11, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .modal-overlay .modal-title h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .modal-overlay .modal-title span,
html[data-theme="dark"] body.wt-layout .modal-overlay .form-hint {
    color: rgba(255, 255, 255, 0.62) !important;
}

/* Modais (integracoes.php) - melhorar hierarquia/organização */
body.wt-layout .modal-overlay .modal-title span {
    display: block;
    margin-top: 2px;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.wt-layout .modal-overlay .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
}

body.wt-layout .modal-overlay .form-group:first-of-type {
    margin-top: 0;
}

body.wt-layout .modal-overlay .form-label {
    margin: 0;
    font-size: 12px !important;
    font-weight: 900 !important;
    color: var(--np-muted-on-surface) !important;
    letter-spacing: 0.2px;
}

body.wt-layout .modal-overlay .form-input {
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .modal-overlay .form-input::placeholder {
    color: var(--np-muted-on-surface) !important;
    opacity: 0.75;
}

body.wt-layout .modal-overlay .form-input:focus {
    outline: none !important;
    border-color: var(--np-confirm-border) !important;
    box-shadow: 0 0 0 3px var(--np-focus-ring) !important;
}

body.wt-layout .modal-overlay .form-hint {
    margin: 0;
    font-size: 12px !important;
    line-height: 1.35;
    color: var(--np-muted-on-surface) !important;
}

body.wt-layout .modal-overlay .modal-actions {
    margin-top: 18px !important;
    padding-top: 12px;
    border-top: 1px solid var(--np-surface-border);
}

html[data-theme="dark"] body.wt-layout .modal-overlay .modal-title-group p,
html[data-theme="dark"] body.wt-layout .modal-overlay .modal-header p {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .modal-overlay label {
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .modal-overlay input,
html[data-theme="dark"] body.wt-layout .modal-overlay select,
html[data-theme="dark"] body.wt-layout .modal-overlay textarea {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .modal-footer {
    border-top-color: rgba(255, 255, 255, 0.10) !important;
}

/* Dark theme: Minha conta (configuracoes.php tem componentes claros inline) */
html[data-theme="dark"] body.wt-layout .wt-settings-title,
html[data-theme="dark"] body.wt-layout .wt-avatar-meta strong,
html[data-theme="dark"] body.wt-layout .wt-doc-left {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-avatar-meta span,
html[data-theme="dark"] body.wt-layout .wt-field small {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-avatar {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout .wt-doc-item {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-doc-left i {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-doc-status {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-prefs-group-label {
    color: rgba(255, 255, 255, 0.5) !important;
}

html[data-theme="dark"] body.wt-layout .wt-pref {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-pref:hover {
    border-color: rgba(255, 255, 255, 0.16) !important;
}

html[data-theme="dark"] body.wt-layout .wt-pref strong {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-pref small {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-taxa-card {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-taxa-label {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-taxa-value {
    color: rgba(255, 255, 255, 0.92) !important;
}

/* Dark theme: overlays/modais de admin (wt-modal-*) */
html[data-theme="dark"] body.wt-layout .wt-modal-overlay {
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(6px) !important;
}

html[data-theme="dark"] body.wt-layout .wt-modal-box {
    background: rgba(11, 11, 11, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.70) !important;
}

html[data-theme="dark"] body.wt-layout .wt-modal-head {
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-modal-head h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-modal-head p {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-modal-body {
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .wt-modal-body .wt-modal-user {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-modal-btn-cancel {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.86) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout .wt-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] body.wt-layout .wt-page-btn.active {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout .modal-details-content {
    background: rgba(11, 11, 11, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .modal-details-header {
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .modal-close-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout .details-section-title {
    color: rgba(255, 255, 255, 0.92) !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .details-row {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] body.wt-layout .details-label {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .details-value {
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .modal-details-footer {
    border-top-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .btn-modal-close {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .btn-modal-close:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout .btn-modal-print {
    background: var(--np-confirm-bg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
    transform: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.wt-layout .btn-modal-print:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
    transform: none !important;
}

/* Dark theme: Notificações (notificacoes.php tem estilos claros inline) */
html[data-theme="dark"] body.wt-layout .wt-nf-hero {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background:
        radial-gradient(1000px 420px at 10% 0%, rgba(var(--primary-rgb), 0.16), rgba(0,0,0,0) 55%),
        radial-gradient(900px 420px at 90% 0%, rgba(255,255,255,0.06), rgba(0,0,0,0) 55%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0)) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-hero h1,
html[data-theme="dark"] body.wt-layout .wt-nf-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-hero p,
html[data-theme="dark"] body.wt-layout .wt-nf-meta,
html[data-theme="dark"] body.wt-layout .wt-nf-body {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-chip {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-item {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(11, 11, 11, 0.92) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] body.wt-layout .wt-nf-banner {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout .wt-img-full {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Dark theme: Premiações (premiacoes.php tem estilos claros inline) */
html[data-theme="dark"] body.wt-layout .wt-awards-hero {
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] body.wt-layout .wt-awards-title-icon {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-awards-title h1 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-awards-title p,
html[data-theme="dark"] body.wt-layout .wt-awards-kpi span,
html[data-theme="dark"] body.wt-layout .wt-awards-card-sub {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-awards-kpi,
html[data-theme="dark"] body.wt-layout .wt-awards-card,
html[data-theme="dark"] body.wt-layout .award-card,
html[data-theme="dark"] body.wt-layout .stat-card,
html[data-theme="dark"] body.wt-layout .path-container,
html[data-theme="dark"] body.wt-layout .node-card {
    background: rgba(11, 11, 11, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

html[data-theme="dark"] body.wt-layout .wt-awards-kpi strong,
html[data-theme="dark"] body.wt-layout .wt-awards-card-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .progress-bar {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout .progress-marker {
    background: #000000 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] body.wt-layout .progress-scale span {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* Dark theme: Premiações - botão "Solicitar placa" deve permanecer preto */
html[data-theme="dark"] body.wt-layout .wt-awards-btn {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout .wt-awards-btn:hover {
    background: #0a0a0a !important;
    border-color: #0a0a0a !important;
}

/* Dark theme: Integrações (integracoes.php tem estilos claros inline) */
html[data-theme="dark"] body.wt-layout .wt-int-actions .btn-docs {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-actions .btn-docs:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout .modal-overlay {
    background: rgba(0, 0, 0, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout .modal-content {
    background: rgba(11, 11, 11, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.70) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .modal-header {
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .modal-title h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .modal-footer {
    background: rgba(11, 11, 11, 0.98) !important;
    border-top-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout #modalCriarChave .modal-footer,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .modal-footer,
html[data-theme="dark"] body.wt-layout #modalEditarChave .modal-footer,
html[data-theme="dark"] body.wt-layout #modalPermissoes .modal-footer,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .modal-footer {
    background: rgba(11, 11, 11, 0.98) !important;
    border-top-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .modal-close {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .modal-close:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] body.wt-layout .modal-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-note {
    border-color: rgba(245, 158, 11, 0.30) !important;
    background: rgba(245, 158, 11, 0.10) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-note h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-card {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-ico {
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-sub,
html[data-theme="dark"] body.wt-layout .wt-int-desc {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-btn,
html[data-theme="dark"] body.wt-layout .wt-int-badge {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-badge.is-on {
    background: var(--np-confirm-bg) !important;
    border-color: var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

html[data-theme="dark"] body.wt-layout .wt-int-btn:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

/* Admin: cards de resumo (KPI) herdando cores inline -> padronizar */
html[data-theme="dark"] body.wt-layout .wt-kpi {
    background: var(--np-surface) !important;
    border-color: var(--np-surface-border) !important;
}

/* Dark theme: modais de API (integracoes.php) - evitar UI branca */
html[data-theme="dark"] body.wt-layout #modalCriarChave .modal-container,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .modal-container,
html[data-theme="dark"] body.wt-layout #modalEditarChave .modal-container,
html[data-theme="dark"] body.wt-layout #modalPermissoes .modal-container,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .modal-container {
    background: rgba(11, 11, 11, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] body.wt-layout #modalCriarChave .modal-header,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .modal-header,
html[data-theme="dark"] body.wt-layout #modalEditarChave .modal-header,
html[data-theme="dark"] body.wt-layout #modalPermissoes .modal-header,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .modal-header {
    background: rgba(11, 11, 11, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout #modalCriarChave .modal-body,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .modal-body,
html[data-theme="dark"] body.wt-layout #modalEditarChave .modal-body,
html[data-theme="dark"] body.wt-layout #modalPermissoes .modal-body,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .modal-body {
    background: rgba(11, 11, 11, 0.98) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout #modalCriarChave .modal-icon,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .modal-icon,
html[data-theme="dark"] body.wt-layout #modalEditarChave .modal-icon,
html[data-theme="dark"] body.wt-layout #modalPermissoes .modal-icon,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .modal-icon {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalCriarChave .modal-title-group h3,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .modal-title-group h3,
html[data-theme="dark"] body.wt-layout #modalEditarChave .modal-title-group h3,
html[data-theme="dark"] body.wt-layout #modalPermissoes .modal-title-group h3,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .modal-title-group h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalCriarChave .modal-title-group p,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .modal-title-group p,
html[data-theme="dark"] body.wt-layout #modalEditarChave .modal-title-group p,
html[data-theme="dark"] body.wt-layout #modalPermissoes .modal-title-group p,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .modal-title-group p,
html[data-theme="dark"] body.wt-layout #modalPermissoes small,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais small {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout #modalCriarChave label,
html[data-theme="dark"] body.wt-layout #modalChaveCriada label,
html[data-theme="dark"] body.wt-layout #modalEditarChave label,
html[data-theme="dark"] body.wt-layout #modalPermissoes label,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais label {
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout #modalPermissoes .filter-input,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .filter-input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalEditarChave input,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalPermissoes .copy-row .btn-icon,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .copy-row .btn-icon,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .copy-row .btn-icon {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout #modalPermissoes .copy-row .btn-icon:hover,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .copy-row .btn-icon:hover,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .copy-row .btn-icon:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] body.wt-layout #modalPermissoes .perm-chip {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

/* Botões de confirmação: invertidos entre temas (light: preto/branco, dark: branco/preto) */
body.wt-layout .modal-footer .btn-primary,
body.wt-layout .modal-actions .btn-primary,
body.wt-layout .modal-footer .btn-save,
body.wt-layout .modal-actions .btn-save,
body.wt-layout .modal-footer .btn-modal-submit,
body.wt-layout .modal-actions .btn-modal-submit {
    background: var(--np-confirm-bg) !important;
    border-color: var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

body.wt-layout .modal-footer .btn-primary:hover,
body.wt-layout .modal-actions .btn-primary:hover,
body.wt-layout .modal-footer .btn-save:hover,
body.wt-layout .modal-actions .btn-save:hover,
body.wt-layout .modal-footer .btn-modal-submit:hover,
body.wt-layout .modal-actions .btn-modal-submit:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

/* Mesma lógica fora dos modais (aplicar filtros / salvar / criar etc.) */
body.wt-layout .btn-primary,
body.wt-layout .btn-create,
body.wt-layout .btn-filter,
body.wt-layout .wt-adv-apply,
body.wt-layout .wt-btn-primary,
body.wt-layout .btn-save,
body.wt-layout .btn-modal-submit,
body.wt-layout .btn-copy,
body.wt-layout .btn-modal-print,
body.wt-layout .btn-confirm-modal,
body.wt-layout .wt-modal-btn:not(.wt-modal-btn-cancel):not(.wt-modal-btn-delete) {
    background: var(--np-confirm-bg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

body.wt-layout .btn-primary:hover,
body.wt-layout .btn-create:hover,
body.wt-layout .btn-filter:hover,
body.wt-layout .wt-adv-apply:hover,
body.wt-layout .wt-btn-primary:hover,
body.wt-layout .btn-save:hover,
body.wt-layout .btn-modal-submit:hover,
body.wt-layout .btn-copy:hover,
body.wt-layout .btn-modal-print:hover,
body.wt-layout .btn-confirm-modal:hover,
body.wt-layout .wt-modal-btn:not(.wt-modal-btn-cancel):not(.wt-modal-btn-delete):hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

/* Forçar padrão de botões mesmo quando páginas definem regras com `!important` (ex.: integracoes.php) */
body.wt-layout #modalCriarChave .btn-primary,
body.wt-layout #modalChaveCriada .btn-primary,
body.wt-layout #modalEditarChave .btn-primary,
body.wt-layout #modalPermissoes .btn-primary,
body.wt-layout #modalRevelarCredenciais .btn-primary,
body.wt-layout #modal-meta .btn-save,
body.wt-layout #modal-gtm .btn-save,
body.wt-layout #modal-utmify .btn-save {
    background: var(--np-confirm-bg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

body.wt-layout #modalCriarChave .btn-primary:hover,
body.wt-layout #modalChaveCriada .btn-primary:hover,
body.wt-layout #modalEditarChave .btn-primary:hover,
body.wt-layout #modalPermissoes .btn-primary:hover,
body.wt-layout #modalRevelarCredenciais .btn-primary:hover,
body.wt-layout #modal-meta .btn-save:hover,
body.wt-layout #modal-gtm .btn-save:hover,
body.wt-layout #modal-utmify .btn-save:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

/* Integrações: vencer regras inline (mesma especificidade + ordem) usando seletor do tema */
html[data-theme="dark"] body.wt-layout #modalCriarChave .btn-primary,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .btn-primary,
html[data-theme="dark"] body.wt-layout #modalEditarChave .btn-primary,
html[data-theme="dark"] body.wt-layout #modalPermissoes .btn-primary,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .btn-primary,
html[data-theme="dark"] body.wt-layout #modal-meta .btn-save,
html[data-theme="dark"] body.wt-layout #modal-gtm .btn-save,
html[data-theme="dark"] body.wt-layout #modal-utmify .btn-save {
    background: var(--np-confirm-bg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

html[data-theme="dark"] body.wt-layout #modalCriarChave .btn-primary:hover,
html[data-theme="dark"] body.wt-layout #modalChaveCriada .btn-primary:hover,
html[data-theme="dark"] body.wt-layout #modalEditarChave .btn-primary:hover,
html[data-theme="dark"] body.wt-layout #modalPermissoes .btn-primary:hover,
html[data-theme="dark"] body.wt-layout #modalRevelarCredenciais .btn-primary:hover,
html[data-theme="dark"] body.wt-layout #modal-meta .btn-save:hover,
html[data-theme="dark"] body.wt-layout #modal-gtm .btn-save:hover,
html[data-theme="dark"] body.wt-layout #modal-utmify .btn-save:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

.wt-main {
    padding: 22px 0 60px;
}

.wt-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.wt-page-title {
    font-size: 22px;
    font-weight: 900;
    color: #0f172a;
    margin: 8px 0 18px;
    letter-spacing: -0.02em;
}

.wt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.wt-card {
    background: #ffffff;
    border: 2px solid #cfd6e4;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    padding: 18px;
    min-height: 210px;
    position: relative;
}

.wt-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.wt-card-title {
    font-size: 16px;
    font-weight: 900;
    color: #0f172a;
}

.wt-card-subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.35;
}

.wt-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    text-decoration: none;
    white-space: nowrap;
}

.wt-link:hover {
    text-decoration: underline;
}

.wt-card-metric {
    min-height: 210px;
}

.wt-card-metric .wt-card-head {
    margin-bottom: 12px;
}

.wt-metric-label {
    font-size: 11px;
    letter-spacing: 0.08em;
    font-weight: 900;
    color: #6b7280;
}

.wt-metric-value {
    font-size: 34px;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.wt-metric-sub {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.wt-icon-btn {
    border: none;
    background: transparent;
    padding: 6px;
    border-radius: 10px;
    cursor: pointer;
    color: #6b7280;
}

.wt-icon-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.wt-metric-spark {
    margin-top: 14px;
    height: 46px;
    border-left: 2px solid #e5e7eb;
    border-bottom: 2px solid #0f172a;
    border-radius: 12px;
    position: relative;
}

.wt-metric-spark::before {
    content: '';
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f172a;
}

.wt-metric-spark::after {
    content: '';
    position: absolute;
    left: -4px;
    bottom: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0f172a;
}

.wt-spark-zone {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    z-index: 1;
}

.wt-spark-zone-left { left: 0; }
.wt-spark-zone-right { right: 0; }

.wt-spark-tooltip {
    position: absolute;
    top: -6px;
    transform: translateY(6px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    white-space: nowrap;
}

.wt-spark-tooltip-left {
    left: 10px;
}

.wt-spark-tooltip-right {
    right: 10px;
}

.wt-spark-tooltip-title {
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
}

.wt-spark-tooltip-value {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.wt-spark-zone:hover .wt-spark-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.wt-week-mini {
    margin-top: 14px;
    height: 46px;
    border-radius: 12px;
    position: relative;
    overflow: visible;
}

.wt-week-fill {
    position: absolute;
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
    height: 26px;
    background: #d1d5db;
    opacity: 0;
    transition: opacity 0.18s ease;
    border-radius: 8px;
}

.wt-week-mini .wt-spark-zone-right::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
    height: 26px;
    background: #d1d5db;
    opacity: 0;
    border-radius: 8px;
    transition: opacity 0.18s ease;
}

.wt-week-dot {
    display: none;
}

.wt-week-mini .wt-spark-tooltip {
    top: 2px;
    transform: translate(0, 6px);
    z-index: 3;
}

.wt-week-mini .wt-spark-tooltip-left {
    left: 10px;
    right: auto;
}

.wt-week-mini .wt-spark-tooltip-right {
    right: 10px;
    left: auto;
}

.wt-week-mini .wt-spark-zone-left:hover .wt-week-fill {
    opacity: 0.8;
}

.wt-week-mini .wt-spark-zone-right:hover::before {
    opacity: 0.8;
}

.wt-metric-dot {
    margin-top: 28px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.wt-metric-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0f172a;
    opacity: 0.7;
}

.wt-dot-tooltip {
    position: absolute;
    left: 50%;
    top: -6px;
    transform: translate(-50%, 6px);
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    color: #0f172a;
}

.wt-metric-dot:hover .wt-dot-tooltip {
    opacity: 1;
    transform: translate(-50%, 0);
}

.wt-conv-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.wt-conv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.wt-conv-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.wt-conv-ico {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wt-conv-ico img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

.wt-ico-pix {
    color: #0f172a;
}

.wt-ico-card {
    background: #eaf1ff;
    color: #0f172a;
}

.wt-ico-boleto {
    background: #fff1e6;
    color: #0f172a;
}

.wt-conv-name {
    font-weight: 900;
    font-size: 14px;
    color: #0f172a;
}

.wt-conv-meta {
    font-size: 12px;
    color: #6b7280;
}

.wt-conv-right {
    width: 170px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.wt-conv-pct {
    font-weight: 900;
    color: #0f172a;
}

.wt-bar {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.wt-bar-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 999px;
}

.wt-conv-foot {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb;
}

.wt-muted {
    font-size: 13px;
    color: #6b7280;
    font-weight: 800;
}

.wt-conv-avg {
    font-size: 18px;
    font-weight: 900;
    color: var(--np-text-on-surface);
}

.wt-empty {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 210px;
    color: #6b7280;
    text-align: center;
}

.wt-empty-sm {
    min-height: 120px;
}

.wt-empty-ico {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 22px;
}

.wt-empty-text {
    font-size: 13px;
    font-weight: 800;
}

.wt-tx-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wt-tx-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
}

.wt-tx-grouped .wt-tx-item {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.wt-tx-grouped .wt-tx-item:last-child {
    border-bottom: 1px solid #e5e7eb;
}

.wt-tx-day-separator {
    font-size: 12px;
    font-weight: 900;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 12px 0 0;
}

.wt-tx-day-separator:first-child {
    padding-top: 0;
}

.wt-tx-ico-ok {
    background: transparent;
    color: #0f766e;
    border-color: transparent;
}

.wt-tx-ico-fail {
    background: transparent;
    color: #b91c1c;
    border-color: transparent;
}

.wt-tx-ico-pending {
    background: transparent;
    color: #4338ca;
    border-color: transparent;
}

.wt-tx-ico-in {
    background: transparent;
    color: #059669;
    border-color: transparent;
}

.wt-tx-ico-out {
    background: transparent;
    color: #dc2626;
    border-color: transparent;
}

.wt-tx-ico-split {
    background: transparent;
    color: #2563eb;
    border-color: transparent;
}

.wt-tx-grouped .wt-tx-amount.out {
    color: #dc2626;
}

.wt-tx-chip {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    color: #6b7280;
    background: rgba(15,23,42,0.04);
    border: 1px solid rgba(15,23,42,0.08);
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}

.wt-badge i {
    font-size: 11px;
    margin-right: 3px;
}

.wt-tx-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex: 0 0 auto;
    border: 1px solid transparent;
}

.wt-tx-ico.ok {
    background: #e8fbf2;
    color: #0f766e;
    border-color: #b7f7d7;
}

.wt-tx-ico.bad {
    background: #ffe8e8;
    color: #b91c1c;
    border-color: #ffc4c4;
}

.wt-tx-ico.wait {
    background: #eef2ff;
    color: #4338ca;
    border-color: #d7dcff;
}

.wt-tx-main {
    min-width: 0;
    flex: 1;
}

.wt-tx-title {
    font-weight: 900;
    font-size: 14px;
    color: #0f172a;
}

.wt-tx-meta {
    margin-top: 2px;
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wt-chip {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 8px;
    background: #e7f7f2;
    color: #0f766e;
    font-weight: 900;
    font-size: 11px;
}

.wt-tx-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.wt-tx-amount {
    font-weight: 900;
    color: #0f172a;
}

.wt-badge {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 11px;
    border: 1px solid transparent;
}

.wt-badge.paid {
    background: #e8fbf2;
    color: #0f766e;
    border-color: #b7f7d7;
}

.wt-badge.failed {
    background: #ffe8e8;
    color: #b91c1c;
    border-color: #ffc4c4;
}

.wt-badge.pending {
    background: #e8edff;
    color: #1e40af;
    border-color: #c7d2fe;
}

.wt-badge.split {
    background: rgba(59,130,246,0.10);
    color: #2563eb;
    border-color: rgba(59,130,246,0.25);
}

body.wt-layout.wt-values-hidden .wt-sensitive {
    color: transparent;
    text-shadow: 0 0 10px rgba(15, 23, 42, 0.35);
    user-select: none;
}

@media (max-width: 960px) {
    body.wt-layout {
        --wt-topbar-h: 64px;
    }
    .wt-topbar-inner {
        flex-wrap: nowrap;
        height: var(--wt-topbar-h);
        padding: 10px 12px;
        gap: 10px;
    }
    .wt-topbar-actions {
        margin-left: auto;
    }
    .wt-brand {
        display: none;
    }
    .wt-nav {
        flex: 1;
        display: block;
        text-align: right;
        white-space: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        min-width: 0;
        overscroll-behavior-x: contain;
    }
    .wt-nav::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    .wt-nav-link {
        display: inline-flex;
        margin-left: 10px;
        scroll-snap-align: end;
    }
    .wt-nav-link:first-child {
        margin-left: 0;
    }
    .wt-nav-extra {
        display: inline-flex;
    }
    .wt-action-gerente,
    .wt-action-config {
        display: none;
    }
}

@media (max-width: 900px) {
    .wt-grid {
        grid-template-columns: 1fr;
    }
    .wt-card {
        min-height: 0;
    }
    .wt-conv-right {
        width: 140px;
    }
}

body.wt-layout .modal-backdrop {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* Dark theme: remover "blur azulado" (sem saturate + fundo preto real) */
html[data-theme="dark"] body.wt-layout .modal-backdrop {
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

/* Inputs/Selects: focus/hover monocromático */
body.wt-layout input:focus,
body.wt-layout select:focus,
body.wt-layout textarea:focus,
body.wt-layout .wt-filter-input:focus,
body.wt-layout .filter-input:focus,
body.wt-layout .form-input:focus {
    outline: none !important;
    border-color: var(--np-confirm-border) !important;
    box-shadow: 0 0 0 3px var(--np-focus-ring) !important;
}

body.wt-layout input:hover,
body.wt-layout select:hover,
body.wt-layout textarea:hover,
body.wt-layout .wt-filter-input:hover,
body.wt-layout .filter-input:hover,
body.wt-layout .form-input:hover {
    border-color: var(--np-surface-border) !important;
}

/* Ativos/selecionados: sempre preto/branco (invertido por tema via tokens) */
body.wt-layout .wt-page-btn.active,
body.wt-layout .wt-nav-link.active,
body.wt-layout .wt-tab.active,
body.wt-layout .wt-int-tab.active,
body.wt-layout .wt-page-btn[aria-current="page"],
body.wt-layout .wt-pill.active,
body.wt-layout .wt-range a.active,
body.wt-layout .filter-btn.active,
body.wt-layout .pagination-btn.active,
body.wt-layout .os-btn.active,
body.wt-layout .pix-type-toggle button.active {
    background: var(--np-confirm-bg) !important;
    border-color: var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
    box-shadow: none !important;
}

/* Paginação (Admin/Lista) */
body.wt-layout .pagination-btn {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .pagination-btn:hover:not(:disabled):not(.active) {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

/* Range/tabs simples (ex: Métricas) */
body.wt-layout .wt-range {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 6px;
    border-radius: 999px;
    background: var(--np-surface) !important;
    border: 1px solid var(--np-surface-border) !important;
    min-height: unset !important;
    overflow: visible !important;
    row-gap: unset !important;
}

body.wt-layout .wt-range a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-range a:hover:not(.active) {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
    color: var(--np-text-on-surface) !important;
}

/* Botões de filtro (gráficos) */
body.wt-layout .filter-btn {
    border: 1px solid var(--np-surface-border) !important;
    background: var(--np-surface-alt) !important;
    color: var(--np-text-on-surface) !important;
    border-radius: 999px !important;
    padding: 8px 12px !important;
    font-weight: 900 !important;
}

body.wt-layout .filter-btn:hover:not(.active) {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

/* Navbar: sem “borda” gritante no ativo */
body.wt-layout .wt-nav-link.active {
    border-color: transparent !important;
}

/* Navbar: ícones seguem a cor do texto (monocromático) */
body.wt-layout .wt-nav-link {
    color: var(--np-muted-on-surface) !important;
}

body.wt-layout .wt-nav-link i {
    color: currentColor !important;
    opacity: 0.75;
}

/* Hover do navbar: suave e consistente (sem “bloco” estranho) */
body.wt-layout .wt-nav-link {
    background: transparent !important;
    box-shadow: none !important;
}

body.wt-layout .wt-nav-link:hover:not(.active) {
    color: var(--np-text-on-surface) !important;
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

body.wt-layout .wt-nav-link:hover i {
    opacity: 1;
}

/* Hover do navbar: sem “pílula” (só realça texto/ícone) */
body.wt-layout .wt-nav-link:hover:not(.active) {
    outline: none !important;
    box-shadow: none !important;
}

body.wt-layout .wt-nav-link.active i {
    color: currentColor !important;
    opacity: 1;
}

body.wt-layout .wt-nav-link.active:hover {
    background: var(--np-confirm-bg) !important;
    color: var(--np-confirm-fg) !important;
    border-color: transparent !important;
}

/* Garante que não sobre um fundo translúcido do tema padrão */
html[data-theme="dark"] body.wt-layout .wt-nav-link:hover:not(.active) {
    border-color: transparent !important;
}

/* Botões do navbar (Tema/Fale com Gerente/Minha conta): mesma lógica P&B */
body.wt-layout .wt-nav-link.wt-nav-btn-dark {
    background: var(--np-confirm-bg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

body.wt-layout .wt-nav-link.wt-nav-btn-dark:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

body.wt-layout .wt-nav-link.wt-nav-btn-ghost {
    background: var(--np-surface) !important;
    border: 1px solid var(--np-surface-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-nav-link.wt-nav-btn-ghost:hover {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
}

body.wt-layout .wt-page-btn:hover,
body.wt-layout .wt-tab:hover,
body.wt-layout .wt-int-tab:hover,
body.wt-layout .os-btn:hover:not(.active) {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
    color: inherit !important;
}

body.wt-layout .wt-nav-link:hover {
    border-color: transparent !important;
    background: transparent !important;
}

body.wt-layout .os-btn.active:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
    color: var(--np-confirm-fg) !important;
}

/* Badges/Chips: manter neutros (exceto status, que tem cores fixas) */
body.wt-layout .badge-type,
body.wt-layout .badge-external,
body.wt-layout .badge-split,
body.wt-layout .wt-chip,
body.wt-layout .wt-nf-chip,
body.wt-layout .wt-tx-ico {
    background: transparent !important;
    border: none !important;
    color: var(--np-muted-on-surface) !important;
}

body.wt-layout .badge-type.type-ok {
    background: #dcfce7 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
}

body.wt-layout .badge-type.type-fail {
    background: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
}

body.wt-layout .badge-type.type-pending {
    background: #fef9c3 !important;
    border: 1px solid #fef08a !important;
    color: #854d0e !important;
}

body.wt-layout .badge-type.type-split {
    background: rgba(124,58,237,0.10) !important;
    border: 1px solid rgba(124,58,237,0.25) !important;
    color: #7c3aed !important;
}

body.wt-layout .wt-tx-ico.wt-tx-ico-ok {
    background: transparent !important;
    color: #0f766e !important;
    border: none !important;
}

body.wt-layout .wt-tx-ico.wt-tx-ico-fail {
    background: transparent !important;
    color: #b91c1c !important;
    border: none !important;
}

body.wt-layout .wt-tx-ico.wt-tx-ico-pending {
    background: transparent !important;
    color: #4338ca !important;
    border: none !important;
}

/* Status (fixo em ambos temas): pago/aprovado=verde, pendente=amarelo, cancelado/expirado=vermelho */
body.wt-layout {
    --st-ok-bg: #bbf7d0;
    --st-ok-border: #4ade80;
    --st-ok-fg: #166534;
    --st-warn-bg: #fef08a;
    --st-warn-border: #facc15;
    --st-warn-fg: #854d0e;
    --st-bad-bg: #fecaca;
    --st-bad-border: #f87171;
    --st-bad-fg: #991b1b;
}

/* Pills de status (ex.: "Movimentações recentes" no Admin): cores semânticas fixas */
body.wt-layout .transaction-amount .status.is-ok,
body.wt-layout .status.is-ok {
    background: var(--st-ok-bg) !important;
    border: 1px solid var(--st-ok-border) !important;
    color: var(--st-ok-fg) !important;
}

body.wt-layout .transaction-amount .status.is-warn,
body.wt-layout .status.is-warn {
    background: var(--st-warn-bg) !important;
    border: 1px solid var(--st-warn-border) !important;
    color: var(--st-warn-fg) !important;
}

body.wt-layout .transaction-amount .status.is-bad,
body.wt-layout .status.is-bad {
    background: var(--st-bad-bg) !important;
    border: 1px solid var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

/* Integrações: remover "caixa" de fundo nos textos */
body.wt-layout .wt-int-sub,
body.wt-layout .wt-int-desc {
    background: transparent !important;
    border: 0 !important;
}

body.wt-layout .badge-status.badge-confirmed,
body.wt-layout .badge-status.badge-completed,
body.wt-layout .status-badge.confirmed,
body.wt-layout .wt-badge.paid,
body.wt-layout .wt-badge.approved,
body.wt-layout .wt-tx-ico.ok {
    background: var(--st-ok-bg) !important;
    border: 1px solid var(--st-ok-border) !important;
    color: var(--st-ok-fg) !important;
}

body.wt-layout .badge-status.badge-pending,
body.wt-layout .status-badge.pending,
body.wt-layout .wt-badge.pending,
body.wt-layout .wt-tx-ico.wait {
    background: var(--st-warn-bg) !important;
    border: 1px solid var(--st-warn-border) !important;
    color: var(--st-warn-fg) !important;
}

body.wt-layout .badge-status.badge-expired,
body.wt-layout .badge-status.badge-canceled,
body.wt-layout .status-badge.expired,
body.wt-layout .status-badge.canceled,
body.wt-layout .wt-badge.failed,
body.wt-layout .wt-badge.rejected,
body.wt-layout .wt-tx-ico.bad {
    background: var(--st-bad-bg) !important;
    border: 1px solid var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

body.wt-layout .wt-badge.split {
    background: rgba(59,130,246,0.10) !important;
    border: 1px solid rgba(59,130,246,0.25) !important;
    color: #2563eb !important;
}

/* Cores de valor por status */
body.wt-layout .wt-tx-amount.wt-amt-ok {
    color: #16a34a !important;
}

body.wt-layout .wt-tx-amount.wt-amt-fail {
    color: #dc2626 !important;
}

body.wt-layout .wt-tx-amount.wt-amt-pending {
    color: #ca8a04 !important;
}

body.wt-layout .wt-tx-amount.wt-amt-split {
    color: #7c3aed !important;
}

body.wt-layout .status-badge.pending::before {
    border-top-color: currentColor !important;
}

/* Botões de ações em tabelas: neutros */
body.wt-layout .btn-action,
body.wt-layout .actions-group .btn-action {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .btn-action:hover,
body.wt-layout .actions-group .btn-action:hover {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

/* KPI (transacoes/meds/etc): remove acentos verdes/vermelhos */
body.wt-layout .wt-kpi.kpi-in .wt-kpi-ico,
body.wt-layout .wt-kpi.kpi-out .wt-kpi-ico,
body.wt-layout .wt-kpi.kpi-fee .wt-kpi-ico,
body.wt-layout .wt-kpi.kpi-red .wt-kpi-ico,
body.wt-layout .wt-kpi.kpi-warn .wt-kpi-ico,
body.wt-layout .wt-kpi.kpi-ok .wt-kpi-ico,
body.wt-layout .wt-kpi.kpi-violet .wt-kpi-ico {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-kpi.kpi-in .wt-kpi-value,
body.wt-layout .wt-kpi.kpi-out .wt-kpi-value,
body.wt-layout .wt-kpi.kpi-fee .wt-kpi-value,
body.wt-layout .wt-kpi.kpi-red .wt-kpi-value,
body.wt-layout .wt-kpi.kpi-warn .wt-kpi-value,
body.wt-layout .wt-kpi.kpi-ok .wt-kpi-value,
body.wt-layout .wt-kpi.kpi-violet .wt-kpi-value {
    color: var(--np-text-on-surface) !important;
}

/* Ícones de taxas (configurações) */
body.wt-layout .wt-taxa-icon.green,
body.wt-layout .wt-taxa-icon.red,
body.wt-layout .wt-taxa-icon.amber {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

/* Heros/headers com gradientes coloridos (transacoes/meds/etc): neutralizar */
body.wt-layout .wt-admin-hero {
    background: var(--np-surface) !important;
    border-color: var(--np-surface-border) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-admin-hero {
    background: rgba(11, 11, 11, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.10) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

/* Usuário (admin): avatar e chips (monocromático, sem cores fixas inline) */
body.wt-layout .wt-admin-hero-avatar {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-admin-hero-avatar i {
    color: inherit !important;
}

body.wt-layout .wt-chip {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-chip i {
    color: inherit !important;
    opacity: 0.9;
}

body.wt-layout .wt-chip.chip-on,
body.wt-layout .wt-chip.chip-off,
body.wt-layout .wt-chip.chip-role {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-admin-hero-ico {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-admin-hero-title h1,
body.wt-layout .wt-admin-hero-title h2,
body.wt-layout .wt-admin-hero-title h3,
body.wt-layout .section-title {
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-admin-hero-title p,
body.wt-layout .wt-kpi-sub,
body.wt-layout .wt-kpi-label {
    color: var(--np-muted-on-surface) !important;
}

/* KPIs (Admin) */
body.wt-layout .wt-kpi {
    background: var(--np-surface) !important;
    border-color: var(--np-surface-border) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-kpi {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

body.wt-layout .wt-kpi-value {
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-kpi-ico {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

/* Seções de gráfico / lista (Métricas) */
body.wt-layout .chart-section,
body.wt-layout .transactions-section {
    background: var(--np-surface) !important;
    border: 1px solid var(--np-surface-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08) !important;
    padding: 18px !important;
}

html[data-theme="dark"] body.wt-layout .chart-section,
html[data-theme="dark"] body.wt-layout .transactions-section {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

body.wt-layout .chart-container {
    background: transparent !important;
}

/* Remover a "moldura" clara do gráfico (Métricas) */
body.wt-layout .chart-section .chart-container {
    border: none !important;
    padding: 0 !important;
}

/* Tabelas (Admin): hover no dark não pode virar faixa branca */
html[data-theme="dark"] body.wt-layout .wt-table-card table tbody tr:hover td,
html[data-theme="dark"] body.wt-layout .wt-section-card table tbody tr:hover td,
html[data-theme="dark"] body.wt-layout .transactions-table tbody tr:hover td {
    background: var(--np-hover-surface) !important;
}

html[data-theme="dark"] body.wt-layout .transactions-table tbody tr:hover td:last-child {
    background: var(--np-hover-surface) !important;
}

/* Botões de filtro do Admin (Transações/MED/etc) seguem inversão do tema */
body.wt-layout .wt-btn-filter {
    /* Light: preto com texto branco | Dark: branco com texto preto (via tokens) */
    background: var(--np-confirm-bg) !important;
    color: var(--np-confirm-fg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    opacity: 1 !important;
}

body.wt-layout .wt-btn-filter:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
    opacity: 1 !important;
}

body.wt-layout .wt-btn-clear {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-btn-clear:hover {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

/* Movimentações recentes: cores semânticas para ícones e status */
body.wt-layout .transactions-section .transaction-icon {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .transactions-section .transaction-icon.success {
    background: var(--st-ok-bg) !important;
    border-color: var(--st-ok-border) !important;
    color: var(--st-ok-fg) !important;
}

body.wt-layout .transactions-section .transaction-icon.danger {
    background: var(--st-bad-bg) !important;
    border-color: var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

body.wt-layout .transactions-section .transaction-icon.info {
    background: var(--st-warn-bg) !important;
    border-color: var(--st-warn-border) !important;
    color: var(--st-warn-fg) !important;
}

body.wt-layout .transactions-section .transaction-amount .status {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .transactions-section .transaction-amount .status.is-ok {
    background: var(--st-ok-bg) !important;
    border-color: var(--st-ok-border) !important;
    color: var(--st-ok-fg) !important;
}

body.wt-layout .transactions-section .transaction-amount .status.is-warn {
    background: var(--st-warn-bg) !important;
    border-color: var(--st-warn-border) !important;
    color: var(--st-warn-fg) !important;
}

body.wt-layout .transactions-section .transaction-amount .status.is-bad {
    background: var(--st-bad-bg) !important;
    border-color: var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

body.wt-layout .transactions-section .transaction-id,
body.wt-layout .transactions-section .amount {
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .transactions-section .transaction-date {
    color: var(--np-muted-on-surface) !important;
}

/* Métricas (Admin): lista de movimentações recentes */
body.wt-layout .transactions-section .transaction-item {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    border-radius: 14px !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .transactions-section .transaction-item:hover {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

/* Toasts: cores diferenciadas por tipo */
body.wt-layout .toast-success { border-left-color: #16a34a !important; }
body.wt-layout .toast-error { border-left-color: #dc2626 !important; }
body.wt-layout .toast-warning { border-left-color: #d97706 !important; }
body.wt-layout .toast-info { border-left-color: #2563eb !important; }
body.wt-layout .toast-success .toast-icon { color: #16a34a !important; }
body.wt-layout .toast-error .toast-icon { color: #dc2626 !important; }
body.wt-layout .toast-warning .toast-icon { color: #d97706 !important; }
body.wt-layout .toast-info .toast-icon { color: #2563eb !important; }

body.wt-layout .modal-container {
    background: var(--np-surface) !important;
    border: 1px solid var(--np-surface-border) !important;
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
    max-width: 520px;
}

body.wt-layout .modal-header {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--np-surface-border) !important;
    align-items: center;
    background: var(--np-surface) !important;
}

body.wt-layout .modal-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .modal-icon i {
    font-size: 18px;
}

body.wt-layout .modal-title-group h3 {
    color: var(--np-text-on-surface) !important;
    font-weight: 900;
    font-size: 16px;
    margin-bottom: 4px;
}

body.wt-layout .modal-title-group p {
    color: var(--np-muted-on-surface) !important;
    font-size: 13px;
}

body.wt-layout .modal-close {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-muted-on-surface) !important;
}

body.wt-layout .modal-close:hover {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .modal-body {
    padding: 18px;
}

body.wt-layout .modal-body p {
    margin: 0;
    color: var(--np-muted-on-surface) !important;
    font-weight: 700;
    line-height: 1.45;
}

body.wt-layout .form-group label {
    color: var(--np-text-on-surface) !important;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 8px;
}

body.wt-layout .form-group input,
body.wt-layout .form-group select {
    background: var(--np-surface-alt);
    border: 1px solid var(--np-surface-alt-border);
    color: var(--np-text-on-surface);
    border-radius: 12px;
}

body.wt-layout .form-group input::placeholder {
    color: var(--np-muted-2-on-surface) !important;
}

body.wt-layout .form-group input:focus,
body.wt-layout .form-group select:focus {
    border-color: var(--np-confirm-border) !important;
    background: var(--np-surface) !important;
}

/* Premiações: modal "Solicitar Placa" - reduzir espaçamento e organizar grids */
body.wt-layout #modalAwardRequest .modal-body form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

body.wt-layout #modalAwardRequest .form-group {
    margin-bottom: 0 !important;
}

body.wt-layout #modalAwardRequest .form-group label {
    margin-bottom: 6px;
}

body.wt-layout #modalAwardRequest .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

@media (max-width: 520px) {
    body.wt-layout #modalAwardRequest .form-grid {
        grid-template-columns: 1fr;
    }
}

body.wt-layout #modalAwardRequest .btn-modal-submit {
    margin-top: 6px;
}

body.wt-layout .btn-modal-submit {
    margin-top: 18px;
    background: var(--np-confirm-bg) !important;
    color: var(--np-confirm-fg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    border-radius: 12px;
}

body.wt-layout .btn-modal-submit:hover {
    transform: none;
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

body.wt-layout .toast-container {
    top: calc(var(--wt-topbar-black-h) + var(--wt-topbar-h) + 16px);
    right: 18px;
}

body.wt-layout .toast {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    color: #0f172a;
    border-radius: 14px;
    padding: 14px 16px;
}

body.wt-layout .toast-close {
    color: #6b7280;
}

body.wt-layout .toast-close:hover {
    color: #0f172a;
}

body.wt-layout .toast-success {
    border-left-color: #16a34a;
    --toast-accent: #16a34a;
}
body.wt-layout .toast-success .toast-icon {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.18);
    color: #16a34a;
}

body.wt-layout .toast-error {
    border-left-color: #dc2626;
    --toast-accent: #dc2626;
}
body.wt-layout .toast-error .toast-icon {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.18);
    color: #dc2626;
}

body.wt-layout .toast-warning {
    border-left-color: #d97706;
    --toast-accent: #d97706;
}
body.wt-layout .toast-warning .toast-icon {
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.18);
    color: #d97706;
}

body.wt-layout .toast-info {
    border-left-color: #2563eb;
    --toast-accent: #2563eb;
}
body.wt-layout .toast-info .toast-icon {
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #2563eb;
}

body.wt-layout .toast-icon {
    width: 28px;
    height: 28px;
}

body.wt-layout .toast-message {
    font-weight: 800;
}

body.wt-layout .toast-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--toast-accent, #2563eb), rgba(15, 23, 42, 0));
    opacity: 0.9;
    transform-origin: left center;
    animation: wt-toastbar linear forwards;
    animation-duration: var(--toast-duration, 5000ms);
}

@keyframes wt-toastbar {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* ── Dark mode toast ── */
html[data-theme="dark"] body.wt-layout .toast {
    background: var(--np-surface) !important;
    backdrop-filter: blur(12px);
    border: 1px solid var(--np-surface-border) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
    color: var(--np-text-on-surface) !important;
}
html[data-theme="dark"] body.wt-layout .toast-close {
    color: var(--np-muted-on-surface);
}
html[data-theme="dark"] body.wt-layout .toast-close:hover {
    color: var(--np-text-on-surface);
}
html[data-theme="dark"] body.wt-layout .toast-success {
    border-left-color: #4ade80;
    --toast-accent: #4ade80;
}
html[data-theme="dark"] body.wt-layout .toast-success .toast-icon {
    background: rgba(74, 222, 128, 0.12);
    border-color: rgba(74, 222, 128, 0.25);
    color: #4ade80;
}
html[data-theme="dark"] body.wt-layout .toast-error {
    border-left-color: #f87171;
    --toast-accent: #f87171;
}
html[data-theme="dark"] body.wt-layout .toast-error .toast-icon {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.25);
    color: #f87171;
}
html[data-theme="dark"] body.wt-layout .toast-warning {
    border-left-color: #fbbf24;
    --toast-accent: #fbbf24;
}
html[data-theme="dark"] body.wt-layout .toast-warning .toast-icon {
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
    color: #fbbf24;
}
html[data-theme="dark"] body.wt-layout .toast-info {
    border-left-color: #60a5fa;
    --toast-accent: #60a5fa;
}
html[data-theme="dark"] body.wt-layout .toast-info .toast-icon {
    background: rgba(96, 165, 250, 0.12);
    border-color: rgba(96, 165, 250, 0.25);
    color: #60a5fa;
}
html[data-theme="dark"] body.wt-layout .toast-bar {
    background: linear-gradient(90deg, var(--toast-accent, #60a5fa), transparent);
}

@media (max-width: 640px) {
    body.wt-layout .toast-container {
        top: calc(var(--wt-topbar-black-h) + var(--wt-topbar-h) + 16px);
        right: 12px;
        left: 12px;
        align-items: flex-end;
    }
}

body.wt-layout #modalTutorialNotif .os-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

body.wt-layout #modalTutorialNotif .os-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #0f172a;
}

body.wt-layout #modalTutorialNotif .os-btn:hover {
    background: var(--np-surface);
    border-color: var(--np-surface-border);
}

body.wt-layout #modalTutorialNotif .os-btn.active {
    /* Cor final é controlada pelos tokens P&B globais (.os-btn.active) */
    background: #eef2ff;
    border-color: #c7d2fe;
}

body.wt-layout #modalTutorialNotif .os-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: none;
}

body.wt-layout #modalTutorialNotif .os-btn span {
    font-size: 12px;
    font-weight: 900;
    color: inherit;
}

body.wt-layout #modalTutorialNotif .tutorial-content {
    animation: none;
}

body.wt-layout #modalTutorialNotif .steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.wt-layout #modalTutorialNotif .step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--np-surface);
    border-radius: 12px;
    color: var(--np-text-on-surface);
    border: 1px solid var(--np-surface-border);
}

body.wt-layout #modalTutorialNotif .step i {
    font-size: 20px;
    color: var(--np-muted-on-surface);
    width: 24px;
    text-align: center;
}

body.wt-layout #modalTutorialNotif .step span {
    flex: 1;
    font-size: 13px;
    line-height: 1.4;
    color: var(--np-text-on-surface);
}

body.wt-layout #modalTutorialNotif .step strong {
    color: var(--np-text-on-surface);
    font-weight: 900;
}

body.wt-layout #modalTutorialNotif .np-modal-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.wt-layout .np-confirm-btn {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--np-confirm-border);
    background: var(--np-confirm-bg);
    color: var(--np-confirm-fg);
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
}

body.wt-layout .np-confirm-btn:hover {
    background: var(--np-confirm-hover-bg);
    border-color: var(--np-confirm-hover-border);
}

body.wt-layout .np-secondary-btn {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--np-surface-alt-border);
    background: var(--np-surface-alt);
    color: var(--np-muted-on-surface);
    font-weight: 900;
    font-size: 13px;
    cursor: pointer;
}

body.wt-layout .np-secondary-btn:hover {
    background: var(--np-surface);
    border-color: var(--np-surface-border);
    color: var(--np-text-on-surface);
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .os-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .os-btn:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .os-btn.active {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .os-btn:focus,
html[data-theme="dark"] body.wt-layout #modalTutorialNotif .os-btn:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .os-btn span {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .modal-container {
    background: rgba(11, 11, 11, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .modal-header {
    background: rgba(11, 11, 11, 0.98) !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .modal-body {
    background: rgba(11, 11, 11, 0.98) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .modal-title-group h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .modal-title-group p {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .step {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .step i {
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif .step span,
html[data-theme="dark"] body.wt-layout #modalTutorialNotif .step strong {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif #btnDontShowTutorial {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout #modalTutorialNotif #btnDontShowTutorial:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

/* Dark theme: tooltips do "faturamento" (index.php) */
html[data-theme="dark"] .wt-spark-tooltip,
html[data-theme="dark"] .wt-dot-tooltip {
    background: rgba(11, 11, 11, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.92);
}

html[data-theme="dark"] .wt-spark-tooltip-title,
html[data-theme="dark"] .wt-spark-tooltip-value {
    color: rgba(255, 255, 255, 0.92);
}

/* Dark theme: seletores dentro do saque (evitar bordas verdes/claras) */
html[data-theme="dark"] body.wt-layout #modalSaque #saqueEstimate {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .pix-type-toggle {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .pix-type-toggle button {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.86) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .pix-type-toggle button.active {
    background: var(--np-confirm-bg) !important;
    border-color: var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque input:focus,
html[data-theme="dark"] body.wt-layout #modalSaque select:focus,
html[data-theme="dark"] body.wt-layout #modalTransferir input:focus {
    outline: none !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.wt-layout #modalSaque .input-currency span {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] .wt-week-fill {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .wt-week-mini .wt-spark-zone-right::before {
    background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .wt-metric-dot::before {
    background: rgba(255, 255, 255, 0.55);
    opacity: 0.9;
}

html[data-theme="dark"] .wt-metric-spark {
    border-left-color: rgba(255, 255, 255, 0.14);
    border-bottom-color: rgba(255, 255, 255, 0.22);
}

html[data-theme="dark"] .wt-metric-spark::before,
html[data-theme="dark"] .wt-metric-spark::after {
    background: rgba(255, 255, 255, 0.55);
}

/* Dark theme: modal Transferência interna (index.php usa estilos claros em vários pontos) */
html[data-theme="dark"] body.wt-layout #modalTransferir .modal-container {
    background: rgba(11, 11, 11, 0.96) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .modal-header {
    background: rgba(11, 11, 11, 0.96) !important;
    border-bottom-color: rgba(255, 255, 255, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .modal-body {
    background: rgba(11, 11, 11, 0.96) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .modal-icon {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .modal-title-group h3 {
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .modal-title-group p {
    color: rgba(255, 255, 255, 0.62) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .balance-display {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .balance-display span {
    color: rgba(255, 255, 255, 0.86) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .form-group label {
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .form-group small {
    color: rgba(255, 255, 255, 0.55) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .form-group input {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.92) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.45) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .btn-modal-submit {
    background: var(--np-confirm-bg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .btn-modal-submit:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

/* Dark theme: botões primários dos modais (igual Transferência Interna) */
html[data-theme="dark"] body.wt-layout #modalGerarPix .btn-modal-submit,
html[data-theme="dark"] body.wt-layout #modalSaque .btn-modal-submit,
html[data-theme="dark"] body.wt-layout #modalPinConfig .btn-modal-submit {
    background: var(--np-confirm-bg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
}

html[data-theme="dark"] body.wt-layout #modalGerarPix .btn-modal-submit:hover,
html[data-theme="dark"] body.wt-layout #modalSaque .btn-modal-submit:hover,
html[data-theme="dark"] body.wt-layout #modalPinConfig .btn-modal-submit:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .modal-close {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: rgba(255, 255, 255, 0.72) !important;
}

html[data-theme="dark"] body.wt-layout #modalTransferir .modal-close:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.wt-layout #btnDontShowTutorial {
    background: rgba(255, 255, 255, 0.04) !important;
    color: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html[data-theme="dark"] body.wt-layout #btnDontShowTutorial:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

body.wt-layout.is-loading .wt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(8px);
    border-radius: inherit;
    z-index: 6;
}

body.wt-layout.is-loading .wt-card::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    background: url('/assets/logo_push.png') center/contain no-repeat;
    opacity: 0.92;
    z-index: 7;
    animation: wt-card-bounce 0.85s ease-in-out infinite;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.14));
}

@keyframes wt-card-bounce {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, calc(-50% - 10px)); }
}

body.wt-layout #modalTutorialNotif #btnDontShowTutorial {
    background: var(--np-surface-alt) !important;
    color: var(--np-muted-on-surface) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    border-radius: 12px !important;
    padding: 12px 14px !important;
    font-weight: 900 !important;
}

body.wt-layout #modalTutorialNotif #btnDontShowTutorial:hover {
    background: var(--np-surface) !important;
    border-color: var(--np-surface-border) !important;
    color: var(--np-text-on-surface) !important;
}

/* Usuários (Admin): toolbar, inputs, botões e modal de exclusão */
body.wt-layout .wt-toolbar {
    background: var(--np-surface) !important;
    border-color: var(--np-surface-border) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10) !important;
}

html[data-theme="dark"] body.wt-layout .wt-toolbar {
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

body.wt-layout .wt-toolbar-row + .wt-toolbar-row {
    border-top-color: var(--np-surface-border) !important;
}

body.wt-layout .wt-fg label {
    color: var(--np-muted-on-surface) !important;
}

body.wt-layout .wt-input {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-input::placeholder {
    color: var(--np-muted-2-on-surface) !important;
}

body.wt-layout .wt-input:disabled {
    background: var(--np-surface-weak) !important;
    color: var(--np-muted-2-on-surface) !important;
}

body.wt-layout .wt-search-wrap i {
    color: var(--np-muted-2-on-surface) !important;
}

body.wt-layout .wt-btn-primary {
    background: var(--np-confirm-bg) !important;
    color: var(--np-confirm-fg) !important;
    border: 1px solid var(--np-confirm-border) !important;
}

body.wt-layout .wt-btn-primary:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
    opacity: 1 !important;
}

body.wt-layout .wt-btn-secondary,
body.wt-layout .wt-btn-green {
    background: var(--np-surface-alt) !important;
    color: var(--np-text-on-surface) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
}

body.wt-layout .wt-btn-secondary:hover,
body.wt-layout .wt-btn-green:hover {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

body.wt-layout .wt-modal-box {
    background: var(--np-surface) !important;
    border: 1px solid var(--np-surface-border) !important;
}

body.wt-layout .wt-modal-head {
    border-bottom-color: var(--np-surface-border) !important;
}

body.wt-layout .wt-modal-ico {
    background: var(--np-surface-alt) !important;
    color: var(--np-text-on-surface) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
}

body.wt-layout .wt-modal-head h3 {
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-modal-head p,
body.wt-layout .wt-modal-body {
    color: var(--np-muted-on-surface) !important;
}

body.wt-layout .wt-modal-body .wt-modal-user {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-modal-btn-cancel {
    background: var(--np-surface-alt) !important;
    color: var(--np-text-on-surface) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
}

body.wt-layout .wt-modal-btn-delete {
    background: var(--np-confirm-bg) !important;
    color: var(--np-confirm-fg) !important;
    border: 1px solid var(--np-confirm-border) !important;
}

body.wt-layout .wt-modal-btn-delete:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

/* Usuários (Admin): gateway em massa e ações sem cores */
body.wt-layout .wt-gw-opt {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-gw-opt:has(input:checked) {
    background: #111111 !important;
    border-color: #111111 !important;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.15);
}

[data-theme="dark"] body.wt-layout .wt-gw-opt:has(input:checked),
html[data-theme="dark"] body.wt-layout .wt-gw-opt:has(input:checked) {
    background: #ffffff !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

body.wt-layout .wt-act-btn,
body.wt-layout .wt-act-edit,
body.wt-layout .wt-act-delete {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-act-btn:hover,
body.wt-layout .wt-act-edit:hover,
body.wt-layout .wt-act-delete:hover {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

/* Usuário (Admin): modal de permissões (monocromático) */
body.wt-layout .wt-perm-opt {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-perm-opt:has(input:checked) {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

body.wt-layout .wt-perm-opt input[type="checkbox"] {
    border-color: var(--np-surface-alt-border) !important;
    background: var(--np-surface) !important;
}

body.wt-layout .wt-perm-opt input[type="checkbox"]:checked {
    background: var(--np-confirm-bg) !important;
    border-color: var(--np-confirm-border) !important;
}

body.wt-layout .wt-perm-opt input[type="checkbox"]:checked::after {
    color: var(--np-confirm-fg) !important;
}

/* Usuário (Admin): toggles (remover verde/vermelho) */
body.wt-layout .wt-toggle-item input[type="checkbox"] {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
}

body.wt-layout .wt-toggle-item input[type="checkbox"]::after {
    background: var(--np-text-on-surface) !important;
}

body.wt-layout .wt-toggle-item input[type="checkbox"]:checked {
    background: var(--np-confirm-bg) !important;
    border-color: var(--np-confirm-border) !important;
}

body.wt-layout .wt-toggle-item input[type="checkbox"]:checked::after {
    background: var(--np-confirm-fg) !important;
}

/* MEDs (Admin): status/cobertura/acoes usam cores fixas */

/* MEDs (Admin): reativar cores semânticas fixas (status/cobertura/ações) */
body.wt-layout .badge-status.med-approved,
body.wt-layout .badge-coverage.cov-full {
    background: var(--st-ok-bg) !important;
    border: 1px solid var(--st-ok-border) !important;
    color: var(--st-ok-fg) !important;
}

body.wt-layout .badge-status.med-pending,
body.wt-layout .badge-coverage.cov-partial {
    background: var(--st-warn-bg) !important;
    border: 1px solid var(--st-warn-border) !important;
    color: var(--st-warn-fg) !important;
}

body.wt-layout .badge-status.med-rejected,
body.wt-layout .badge-coverage.cov-none {
    background: var(--st-bad-bg) !important;
    border: 1px solid var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

body.wt-layout .med-action-btn.btn-approve {
    background: var(--st-ok-bg) !important;
    border: 1px solid var(--st-ok-border) !important;
    color: var(--st-ok-fg) !important;
}

body.wt-layout .med-action-btn.btn-reject {
    background: var(--st-bad-bg) !important;
    border: 1px solid var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

body.wt-layout .med-action-btn.btn-approve:hover,
body.wt-layout .med-action-btn.btn-reject:hover {
    filter: brightness(0.98);
    border-color: currentColor !important;
}

/* Garantir no tema DARK (caso algum CSS posterior sobrescreva) */
html[data-theme="dark"] body.wt-layout .badge-status.med-approved,
html[data-theme="dark"] body.wt-layout .badge-coverage.cov-full {
    background: var(--st-ok-bg) !important;
    border: 1px solid var(--st-ok-border) !important;
    color: var(--st-ok-fg) !important;
}

html[data-theme="dark"] body.wt-layout .badge-status.med-pending,
html[data-theme="dark"] body.wt-layout .badge-coverage.cov-partial {
    background: var(--st-warn-bg) !important;
    border: 1px solid var(--st-warn-border) !important;
    color: var(--st-warn-fg) !important;
}

html[data-theme="dark"] body.wt-layout .badge-status.med-rejected,
html[data-theme="dark"] body.wt-layout .badge-coverage.cov-none {
    background: var(--st-bad-bg) !important;
    border: 1px solid var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

html[data-theme="dark"] body.wt-layout .med-action-btn.btn-approve {
    background: var(--st-ok-bg) !important;
    border: 1px solid var(--st-ok-border) !important;
    color: var(--st-ok-fg) !important;
}

html[data-theme="dark"] body.wt-layout .med-action-btn.btn-reject {
    background: var(--st-bad-bg) !important;
    border: 1px solid var(--st-bad-border) !important;
    color: var(--st-bad-fg) !important;
}

body.wt-layout .med-modal-backdrop {
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
}

body.wt-layout .med-modal {
    background: var(--np-surface) !important;
    border: 1px solid var(--np-surface-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .med-modal h3 { color: var(--np-text-on-surface) !important; }
body.wt-layout .med-modal p  { color: var(--np-muted-on-surface) !important; }

body.wt-layout .med-modal .btn-cancel-modal {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout .med-modal .btn-confirm-modal.approve {
    background: var(--st-ok-bg) !important;
    color: var(--st-ok-fg) !important;
    border: 1px solid var(--st-ok-border) !important;
}

body.wt-layout .med-modal .btn-confirm-modal.reject {
    background: var(--st-bad-bg) !important;
    color: var(--st-bad-fg) !important;
    border: 1px solid var(--st-bad-border) !important;
}

body.wt-layout .med-modal .btn-confirm-modal.approve:hover,
body.wt-layout .med-modal .btn-confirm-modal.reject:hover {
    filter: brightness(0.98);
}

body.wt-layout .chip-red,
body.wt-layout .chip-ok,
body.wt-layout .chip-warn,
body.wt-layout .kpi-red {
    background: var(--np-surface-alt) !important;
    border-color: var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

/* KYC: textos e viewer do modal (monocromático) */
body.wt-layout #kycModal .modal-title {
    color: var(--np-text-on-surface) !important;
    font-weight: 900 !important;
}

body.wt-layout #kycModal .modal-subtitle {
    color: var(--np-muted-on-surface) !important;
    font-weight: 800 !important;
}

body.wt-layout #kycModal .doc-viewer-header {
    color: var(--np-text-on-surface) !important;
}

body.wt-layout #kycModal .doc-type-badge {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout #kycModal .doc-count {
    color: var(--np-muted-on-surface) !important;
    font-weight: 900 !important;
}

body.wt-layout #kycModal .doc-nav-btn {
    /* Botões "passar/voltar" seguem a inversão do tema */
    background: var(--np-confirm-bg) !important;
    border: 1px solid var(--np-confirm-border) !important;
    color: var(--np-confirm-fg) !important;
    opacity: 1 !important;
}

body.wt-layout #kycModal .doc-nav-btn:hover {
    background: var(--np-confirm-hover-bg) !important;
    border-color: var(--np-confirm-hover-border) !important;
}

body.wt-layout #kycModal .doc-nav-btn i {
    color: currentColor !important;
}

/* KYC: botões (remover vermelho/verde dentro do modal) */
body.wt-layout #kycModal .modal-actions .btn-danger,
body.wt-layout #kycModal .modal-actions .btn-secondary {
    background: var(--np-surface-alt) !important;
    border: 1px solid var(--np-surface-alt-border) !important;
    color: var(--np-text-on-surface) !important;
}

body.wt-layout #kycModal .modal-actions .btn-danger:hover,
body.wt-layout #kycModal .modal-actions .btn-secondary:hover {
    background: var(--np-hover-surface) !important;
    border-color: var(--np-surface-border) !important;
}

@media (hover: hover) and (pointer: fine) {
    body.wt-layout {
        cursor: url('/assets/site/images/cursor.png') 0 0, default;
    }

    body.wt-layout a,
    body.wt-layout button,
    body.wt-layout [role="button"],
    body.wt-layout summary,
    body.wt-layout label {
        cursor: url('/assets/site/images/cursor.png') 0 0, pointer;
    }

    body.wt-layout input[type="text"],
    body.wt-layout input[type="password"],
    body.wt-layout input[type="number"],
    body.wt-layout input[type="tel"],
    body.wt-layout input[type="email"],
    body.wt-layout textarea {
        cursor: text;
    }

    /* Cursor custom por tema */
    html[data-theme="dark"] body.wt-layout {
        cursor: url('/assets/site/images/cursor-white.png') 0 0, default;
    }

    html[data-theme="dark"] body.wt-layout a,
    html[data-theme="dark"] body.wt-layout button,
    html[data-theme="dark"] body.wt-layout [role="button"],
    html[data-theme="dark"] body.wt-layout summary,
    html[data-theme="dark"] body.wt-layout label {
        cursor: url('/assets/site/images/cursor-white.png') 0 0, pointer;
    }
}

/* ============================================================
   Badge de notificações não lidas (navbar + sidebar)
   ============================================================ */
body.wt-layout .wt-nf-navbadge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    margin-left: 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: wtNfBadgePulse 1.8s ease-out infinite;
}
/* Pulso: anel vermelho que expande e some */
@keyframes wtNfBadgePulse {
    0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
/* No sidebar o link ocupa a largura toda — empurra o badge para a direita */
body.wt-layout .wt-user-sb-link .wt-nf-navbadge {
    margin-left: auto;
}
@media (prefers-reduced-motion: reduce) {
    body.wt-layout .wt-nf-navbadge { animation: none; }
}

/* ─── Custom Select (substitui <select> nativo no dashboard) ──── */
body.wt-layout .wt-select-wrap {
    position: relative;
    display: block;
}

/* Esconde o <select> nativo mantendo-o acessível ao form */
body.wt-layout .wt-select-wrap > select {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    padding: 0 !important;
}

/* Trigger: herda a aparência dos inputs existentes */
body.wt-layout .wt-select-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    gap: 8px;
    border-radius: 10px;
    padding: 0 12px;
    height: 40px;
    border: 1px solid var(--np-surface-border, rgba(0,0,0,0.14));
    background: var(--np-surface-alt, #f5f5f5);
    color: var(--np-text-on-surface, #111);
    transition: border-color .15s, background .15s;
    white-space: nowrap;
    overflow: hidden;
}

body.wt-layout .wt-select-trigger:hover {
    border-color: var(--np-surface-border, rgba(0,0,0,0.28)) !important;
}

body.wt-layout .wt-select-wrap.open .wt-select-trigger {
    border-color: var(--np-confirm-border, rgba(0,0,0,0.4)) !important;
}

/* Labels e caret */
body.wt-layout .wt-select-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wt-layout .wt-select-caret {
    font-size: 18px;
    opacity: 0.5;
    pointer-events: none;
    transition: transform .18s ease;
    flex-shrink: 0;
}

body.wt-layout .wt-select-wrap.open .wt-select-caret {
    transform: rotate(180deg);
}

/* Menu dropdown */
body.wt-layout .wt-select-menu {
    position: absolute;
    z-index: 300;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--np-surface, #fff);
    border: 1px solid var(--np-surface-border, rgba(0,0,0,0.12));
    border-radius: 14px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    max-height: 240px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: wtSelIn .12s ease;
    min-width: 100%;
    white-space: nowrap;
}

body.wt-layout .wt-select-menu[hidden] { display: none; }

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

body.wt-layout .wt-select-option {
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    color: var(--np-text-on-surface, #111);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    transition: background .1s;
}

body.wt-layout .wt-select-option:hover {
    background: var(--np-surface-alt, rgba(0,0,0,0.05));
}

body.wt-layout .wt-select-option.selected {
    background: var(--np-surface-alt, rgba(0,0,0,0.07));
    font-weight: 700;
}

body.wt-layout .wt-select-option.selected::after {
    content: '\2713';
    font-weight: 900;
    color: var(--np-confirm-border, #111);
    font-size: 12px;
    flex-shrink: 0;
}

/* Quando dentro de .wt-field (filtros do extrato/splits) */
body.wt-layout .wt-field .wt-select-trigger {
    border-color: rgba(0,0,0,0.14);
    background: #fff;
    color: #111;
    border-radius: 10px;
    height: 42px;
}

html[data-theme="dark"] body.wt-layout .wt-field .wt-select-trigger {
    border-color: rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.04) !important;
    color: rgba(255,255,255,0.92) !important;
}

html[data-theme="dark"] body.wt-layout .wt-select-menu {
    box-shadow: 0 12px 36px rgba(0,0,0,0.5);
}

/* ─── Custom Date Picker ─────────────────────────────────────────────── */
.np-dp-wrap { position: relative; display: block; width: 100%; }

.np-dp-btn {
    display: inline-flex; align-items: center; justify-content: space-between;
    width: 100%; height: 40px; padding: 0 13px; gap: 8px;
    background: var(--np-surface-alt); border: 1px solid var(--np-surface-border);
    border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 700;
    color: var(--np-text-on-surface); text-align: left; box-sizing: border-box;
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.np-dp-btn:hover { border-color: var(--np-confirm-bg); }
.np-dp-btn:focus-visible { box-shadow: 0 0 0 2px var(--np-confirm-bg); border-color: var(--np-confirm-bg); }
.np-dp-btn .np-dp-icon { color: var(--np-muted-on-surface); font-size: 14px; flex: none; }
.np-dp-btn.np-dp-empty .np-dp-display { color: var(--np-muted-on-surface); font-weight: 600; }

/* Contexto wt-field (extrato / splits / etc.) */
body.wt-layout .wt-field .np-dp-btn { height: 42px; background: #fff; border-color: rgba(0,0,0,.14); color: #111; }
html[data-theme="dark"] body.wt-layout .wt-field .np-dp-btn { background: rgba(255,255,255,.04) !important; border-color: rgba(255,255,255,.12) !important; color: rgba(255,255,255,.92) !important; }

/* Contexto wt-filter-input (transacoes) */
body.wt-layout .wt-filter-group .np-dp-btn { height: 38px; font-size: 12px; }

/* Painel calendário — appended to body com position:fixed */
.np-dp-cal {
    position: fixed; z-index: 9100;
    background: var(--np-surface); border: 1px solid var(--np-surface-border);
    border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.22);
    width: 276px; padding: 12px 12px 14px; box-sizing: border-box;
    display: none; user-select: none;
}
.np-dp-cal.open { display: block; animation: npDpIn .15s ease; }
@keyframes npDpIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
html[data-theme="dark"] .np-dp-cal { box-shadow: 0 12px 40px rgba(0,0,0,.55); }

.np-dp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 4px; }
.np-dp-month-label { font-size: 13px; font-weight: 900; color: var(--np-text-on-surface); flex: 1; text-align: center; }
.np-dp-nav {
    width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--np-surface-border);
    background: var(--np-surface-alt); color: var(--np-text-on-surface); cursor: pointer; flex: none;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px; transition: background .12s;
}
.np-dp-nav:hover { background: var(--np-surface-weak, rgba(99,102,241,.1)); }

.np-dp-head-row { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 4px; }
.np-dp-dh { text-align: center; font-size: 10.5px; font-weight: 900; color: var(--np-muted-on-surface); padding: 3px 0; }

.np-dp-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.np-dp-day {
    text-align: center; padding: 7px 2px; border-radius: 8px; font-size: 12.5px;
    font-weight: 700; color: var(--np-text-on-surface); cursor: pointer; transition: background .1s; line-height: 1;
}
.np-dp-day:hover:not(.np-dp-other) { background: var(--np-surface-alt); }
.np-dp-day.np-dp-other { color: var(--np-muted-on-surface); opacity: .35; cursor: default; pointer-events: none; }
.np-dp-day.np-dp-today { border: 1.5px solid var(--np-confirm-bg); color: var(--np-confirm-bg); font-weight: 900; }
.np-dp-day.np-dp-sel { background: var(--np-confirm-bg) !important; color: var(--np-confirm-fg) !important; font-weight: 900; border: none; }

.np-dp-footer { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--np-surface-border); }
.np-dp-foot-btn { background: none; border: none; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--np-confirm-bg); padding: 4px 8px; border-radius: 7px; transition: background .12s; }
.np-dp-foot-btn:hover { background: var(--np-surface-alt); }