/* =====================================================
   SCORE HEALTH - SISTEMA DE ACESSO
   ===================================================== */

/* =====================================================
   PALETA GLOBAL SCORE HEALTH
   Altere as quatro cores abaixo para atualizar a marca em todo o sistema.
   ===================================================== */
:root {
    --brand-primary: #FF6600;
    --brand-secondary: #95C9B3;
    --brand-support: #ABCC7D;
    --brand-highlight: #E2AD76;
    --brand-primary-strong: color-mix(in srgb, var(--brand-primary) 72%, black);
    --brand-secondary-strong: color-mix(in srgb, var(--brand-secondary) 68%, black);
    --brand-main: var(--brand-secondary);
    --brand-action: var(--brand-primary);
    --brand-surface: color-mix(in srgb, var(--brand-secondary) 14%, white);
    --brand-surface-soft: color-mix(in srgb, var(--brand-highlight) 10%, white);
    --brand-ink: color-mix(in srgb, var(--brand-secondary) 24%, black);
    --ui-white: #FFFFFF;
    --ui-surface: #FFFFFF;
    --ui-surface-soft: color-mix(in srgb, var(--brand-secondary) 8%, white);
    --ui-surface-muted: color-mix(in srgb, var(--brand-secondary) 12%, white);
    --ui-surface-strong: color-mix(in srgb, var(--brand-secondary) 18%, white);
    --ui-surface-warning: color-mix(in srgb, var(--brand-highlight) 18%, white);
    --ui-surface-success: color-mix(in srgb, var(--brand-support) 16%, white);
    --ui-surface-danger: color-mix(in srgb, var(--danger) 10%, white);
    --ui-surface-disabled: color-mix(in srgb, var(--brand-ink) 12%, white);
    --ui-border-soft: color-mix(in srgb, var(--brand-secondary) 24%, white);
    --ui-border-strong: color-mix(in srgb, var(--brand-secondary) 36%, white);
    --ui-border-warning: color-mix(in srgb, var(--brand-highlight) 30%, white);
    --ui-border-danger: color-mix(in srgb, var(--danger) 28%, white);
    --ui-border-success: color-mix(in srgb, var(--brand-support) 30%, white);
    --ui-text-strong: var(--brand-ink);
    --ui-text: color-mix(in srgb, var(--brand-ink) 88%, white);
    --ui-text-soft: color-mix(in srgb, var(--brand-ink) 74%, white);
    --ui-text-muted: color-mix(in srgb, var(--brand-ink) 60%, white);
    --ui-text-disabled: color-mix(in srgb, var(--brand-ink) 40%, white);
    --ui-overlay: color-mix(in srgb, var(--brand-ink) 42%, transparent);
    --ui-overlay-soft: color-mix(in srgb, var(--brand-ink) 22%, transparent);
    --ui-shadow-soft: 0 6px 16px color-mix(in srgb, var(--brand-secondary) 12%, transparent);
    --ui-shadow-md: 0 18px 42px color-mix(in srgb, var(--brand-secondary) 18%, transparent);
    --ui-shadow-lg: 0 24px 64px color-mix(in srgb, var(--brand-secondary) 24%, transparent);
    --ui-shadow-inset: inset 0 1px 0 color-mix(in srgb, var(--brand-ink) 5%, transparent);
    --ui-toggle-surface: color-mix(in srgb, var(--brand-ink) 18%, white);
    --ui-toggle-knob: var(--ui-white);
    --ui-status-success: color-mix(in srgb, var(--brand-support) 56%, black);
    --ui-status-warning: color-mix(in srgb, var(--brand-highlight) 62%, black);
    --ui-status-danger: var(--danger);
    --ui-status-disabled: color-mix(in srgb, var(--brand-ink) 18%, white);

    --primary: var(--brand-main);
    --primary-dark: var(--brand-secondary-strong);
    --primary-light: color-mix(in srgb, var(--brand-main) 18%, transparent);
    --secondary: var(--brand-action);
    --accent: var(--brand-support);
    
    --success: var(--brand-support);
    --warning: var(--brand-highlight);
    --danger: #C45C5C;
    --info: var(--brand-secondary);
    
    --bg-body: #F2F4F3;
    --bg-card: #FFFFFF;
    --bg-sidebar: var(--brand-primary-strong);
    --bg-header: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-hover: #F2F4F3;
    --bg-table-header: #F2F4F3;
    
    --text-primary: #3F3F3F;
    --text-secondary: #5A5A5A;
    --text-muted: #8A8A8A;
    --text-light: #A0A0A0;
    
    --sidebar-text: #E9F3EE;
    --sidebar-text-muted: rgba(255, 255, 255, 0.6);
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: rgba(255, 255, 255, 0.15);
    
    --border-color: #E0E5E2;
    --border-light: #F2F4F3;
    
    --shadow: 0 1px 3px rgba(31, 77, 58, 0.08), 0 1px 2px rgba(31, 77, 58, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(31, 77, 58, 0.1), 0 4px 6px -2px rgba(31, 77, 58, 0.05);
    
    --border-radius: 8px;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    
    --chart-primary: var(--brand-main);
    --chart-secondary: var(--brand-action);
    --chart-tertiary: var(--brand-support);
    --chart-quaternary: var(--brand-highlight);

    --font-family-base: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-body: 15px;
    --ui-font-base: clamp(0.9375rem, 0.2vw + 0.9rem, 1rem);
    --ui-font-sm: clamp(0.8125rem, 0.12vw + 0.78rem, 0.9rem);
    --ui-font-lg: clamp(1.45rem, 1vw + 1.1rem, 1.95rem);
    --font-size-page-title: clamp(1.85rem, 2.6vw, 2.5rem);
    --font-size-section-title: clamp(1.18rem, 1.4vw, 1.55rem);
    --font-size-card-title: 1.08rem;
    --font-size-subtitle: 0.98rem;
    --font-size-label: 0.82rem;
    --font-size-table-head: 0.72rem;
    --font-size-table-cell: 0.9rem;
    --font-size-caption: 0.78rem;
    --font-size-badge: 0.72rem;
    --font-weight-page-title: 800;
    --font-weight-section-title: 800;
    --font-weight-card-title: 800;
    --font-weight-subtitle: 500;
    --font-weight-label: 700;
    --font-weight-table-head: 800;
    --font-weight-table-cell: 600;
    --font-weight-caption: 600;
    --line-height-tight: 1.1;
    --line-height-body: 1.65;
    --form-field-height: 50px;
}

/* =====================================================
   TEMA DARK
   ===================================================== */
[data-theme="dark"] {
    --primary: var(--brand-main);
    --primary-dark: var(--brand-secondary-strong);
    --primary-light: color-mix(in srgb, var(--brand-main) 22%, transparent);
    --secondary: var(--brand-action);
    --accent: var(--brand-support);
    
    /* --- Status SemÃ¢nticos --- */
    --success: var(--brand-support);
    --warning: var(--brand-highlight);
    --danger: #EF4444;        /* Vermelho mais "vivo" para erro */
    --info: var(--brand-secondary);
    
    /* --- Backgrounds (Baseados na OpÃ§Ã£o A - Slate Profundo) --- */
    --bg-sidebar: var(--brand-primary-strong);
    --bg-body: var(--brand-ink);
    --bg-header: color-mix(in srgb, var(--brand-ink) 88%, black);
    --bg-card: color-mix(in srgb, var(--brand-ink) 84%, var(--brand-secondary));
    --bg-input: color-mix(in srgb, var(--brand-ink) 72%, var(--brand-secondary));
    --bg-hover: color-mix(in srgb, var(--brand-secondary) 28%, var(--brand-ink));
    --bg-table-header: color-mix(in srgb, var(--brand-secondary) 24%, var(--brand-ink));
    
    /* --- Tipografia (Alta Legibilidade) --- */
    --text-primary: #F8FAFC;  /* Branco quase puro para leitura */
    --text-secondary: #94A3B8; /* Cinza azulado para info secundÃ¡ria */
    --text-muted: #64748B;
    --text-light: #475569;
    
    /* --- Sidebar especÃ­fica --- */
    --sidebar-text: #F8FAFC;
    --sidebar-text-muted: rgba(255, 255, 255, 0.6);
    --sidebar-hover: #334155;
    --sidebar-active: color-mix(in srgb, var(--brand-primary) 12%, transparent);
    
    /* --- Bordas e Sombras --- */
    --border-color: #334155;
    --border-light: #475569;
    
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    
    /* --- GrÃ¡ficos (E, S, G) --- */
    --chart-primary: var(--brand-main);
    --chart-secondary: var(--brand-action);
    --chart-tertiary: var(--brand-support);
    --chart-quaternary: var(--brand-highlight);
}

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

body {
    font-family: var(--font-family-base);
    font-size: var(--ui-font-base);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: var(--line-height-body);
    transition: background-color 0.3s, color 0.3s;
}

/* =====================================================
   LAYOUT
   ===================================================== */

.wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    transition: background-color 0.3s, transform 0.3s;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
}

.content-wrapper {
    padding: 24px;
}

/* =====================================================
   SIDEBAR
   ===================================================== */

.sidebar-header {
    padding: 20px;
    background: var(--bg-sidebar);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: var(--sidebar-text);
}

.sidebar-logo img {
    width: 150px;
    max-width: 100%;
    height: auto;
    display: block;
}

.sidebar-logo span {
    font-size: 18px;
    font-weight: 700;
    color: var(--sidebar-text);
}

.sidebar-user {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--sidebar-text);
    transition: background-color 0.2s;
}

.sidebar-user:hover {
    background: var(--sidebar-hover);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    overflow: hidden;
}

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

.user-info {
    flex: 1;
}

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

.user-role {
    font-size: 12px;
    color: var(--sidebar-text-muted);
}

.sidebar-nav {
    padding: 16px 0;
}

.nav-item {
    display: flex;
    padding: 12px 20px;
    color: var(--sidebar-text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    align-items: center;
    gap: 12px;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text);
    border-right: 3px solid var(--secondary);
}

.nav-item.active i {
    color: var(--secondary);
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 20px;
}

.nav-group {
    margin: 2px 0;
}

.nav-group-toggle {
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.nav-group-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-group-main i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-group-chevron {
    font-size: 12px;
    transition: transform 0.22s ease;
}

.nav-group-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.35);
    outline-offset: -2px;
}

.nav-group.open .nav-group-chevron {
    transform: rotate(180deg);
}

.nav-group-menu {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.26s ease, opacity 0.2s ease;
    will-change: max-height;
}

.nav-group-menu.open {
    max-height: 320px;
    opacity: 1;
}

.nav-sub-item {
    padding: 11px 20px 11px 52px;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.nav-sub-item i {
    font-size: 16px;
}

.nav-sub-item::before {
    content: '';
    position: absolute;
    left: 32px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* =====================================================
   HEADER
   ===================================================== */

.header {
    background: var(--bg-header);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
}

.header-title p {
    font-size: 14px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.theme-toggle:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* =====================================================
   CARDS
   ===================================================== */

.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 20px;
}

/* =====================================================
   STATS CARDS
   ===================================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.stat-card:hover {
    box-shadow: var(--shadow-lg);
}

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

.stat-icon i {
    font-size: 22px;
    color: #FFFFFF;
}

.stat-icon.primary { background: var(--primary); }
.stat-icon.secondary { background: var(--secondary); }
.stat-icon.success { background: var(--success); }
.stat-icon.warning { background: var(--warning); }
.stat-icon.info { background: var(--info); }

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =====================================================
   CHART
   ===================================================== */

.chart-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
}

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

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-filter {
    display: flex;
    gap: 4px;
    background: var(--bg-hover);
    padding: 4px;
    border-radius: var(--border-radius);
}

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

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

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

.chart-wrapper {
    height: 300px;
}

/* =====================================================
   TABLES
   ===================================================== */

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--bg-table-header);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.table td {
    font-size: 14px;
    color: var(--text-primary);
}

.table tbody tr:hover {
    background: var(--bg-hover);
}

/* =====================================================
   BADGES
   ===================================================== */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-admin {
    background: rgba(31, 77, 58, 0.1);
    color: var(--primary);
}

.badge-consultor {
    background: rgba(91, 143, 106, 0.15);
    color: var(--secondary);
}

.badge-empresa {
    background: color-mix(in srgb, var(--brand-secondary) 30%, transparent);
    color: #3F6B52;
}

[data-theme="dark"] .badge-admin {
    background: rgba(79, 175, 130, 0.15);
    color: var(--primary);
}

[data-theme="dark"] .badge-consultor {
    background: rgba(107, 196, 154, 0.15);
    color: var(--secondary);
}

[data-theme="dark"] .badge-empresa {
    background: rgba(79, 175, 130, 0.1);
    color: var(--accent);
}

.badge-success {
    background: rgba(91, 143, 106, 0.15);
    color: var(--success);
}

.badge-danger {
    background: rgba(196, 92, 92, 0.15);
    color: var(--danger);
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--secondary);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-danger {
    background: var(--danger);
    color: #FFFFFF;
}

.btn-danger:hover {
    background: #B04545;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

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

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger {
    background: #FFFFFF;
    box-shadow: none;
}

.btn-outline-primary {
    color: var(--primary);
    border: 1px solid color-mix(in srgb, var(--brand-primary) 24%, transparent);
}

.btn-outline-primary:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border: 1px solid var(--gray-300);
}

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

.btn-outline-danger {
    color: var(--danger);
    border: 1px solid rgba(196, 92, 92, 0.28);
}

.btn-outline-danger:hover {
    background: rgba(196, 92, 92, 0.10);
    color: var(--danger);
}

.btn-acao,
.btn-acao-circle {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    text-decoration: none;
    cursor: pointer;
}

.btn-acao:hover,
.btn-acao-circle:hover {
    background: #e2e8f0;
    color: #334155;
}

.btn-acao-danger:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.btn-status {
    border-radius: 20px;
    font-size: 10px;
    padding: 6px 14px;
    font-weight: 800;
    border: none;
    min-width: 75px;
    cursor: pointer;
    transition: 0.2s;
}

.status-ativo {
    background: #f1f5f9;
    color: #0f172a;
}

.status-inativo {
    background: #fee2e2;
    color: #ef4444;
}

/* =====================================================
   FORMS
   ===================================================== */

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

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

.form-control {
    width: 100%;
    min-height: var(--form-field-height);
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
    line-height: 1.35;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-control::placeholder {
    color: var(--text-light);
}

select.form-control {
    height: var(--form-field-height);
    padding-top: 0;
    padding-bottom: 0;
    cursor: pointer;
}

/* =====================================================
   ALERTS
   ===================================================== */

.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.alert i {
    font-size: 18px;
}

.alert-success {
    background: rgba(91, 143, 106, 0.1);
    color: var(--success);
    border: 1px solid rgba(91, 143, 106, 0.2);
}

.alert-danger {
    background: rgba(196, 92, 92, 0.1);
    color: var(--danger);
    border: 1px solid rgba(196, 92, 92, 0.2);
}

.alert-warning {
    background: color-mix(in srgb, var(--brand-highlight) 10%, transparent);
    color: var(--warning);
    border: 1px solid color-mix(in srgb, var(--brand-highlight) 20%, transparent);
}

.alert-info {
    background: rgba(91, 143, 106, 0.1);
    color: var(--info);
    border: 1px solid rgba(91, 143, 106, 0.2);
}

/* =====================================================
   LOGIN PAGE
   ===================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--brand-secondary) 58%, transparent), transparent 34%),
        radial-gradient(circle at 84% 82%, color-mix(in srgb, var(--brand-primary) 30%, transparent), transparent 32%),
        linear-gradient(135deg, color-mix(in srgb, var(--brand-secondary) 28%, white), var(--bg-body));
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.login-header {
    text-align: center;
    padding: 32px 32px 24px;
}

.login-logo {
    position: relative;
    width: 100%;
    height: clamp(120px, 38vw, 150px);
    margin: 0 auto 8px;
    overflow: hidden;
}

.login-logo img {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%);
}

.login-icon {
    width: auto !important;
    height: 64px !important;
}

.login-icon-muted {
    opacity: 0.5;
}

.login-action-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.login-action-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.login-action-link-muted {
    color: var(--text-muted);
}

.login-submit {
    min-width: 130px;
    border: 0;
    border-radius: 6px;
    font-weight: 700;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.login-body {
    padding: 0 32px 32px;
}

.login-footer {
    text-align: center;
    padding: 16px;
    background: var(--bg-hover);
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================================================
   MODAL
   ===================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 30, 23, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
}

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

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* =====================================================
   MENU MOBILE
   ===================================================== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--sidebar-text-muted);
    cursor: pointer;
    padding: 4px;
}

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

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 30, 23, 0.7);
    z-index: 99;
}

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

.theme-text-desktop {
    display: inline;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .sidebar-close {
        display: block;
    }
    
    .sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 100;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    .header-title h1 {
        font-size: 18px;
    }
    
    .header-title p {
        font-size: 12px;
    }
    
    .content-wrapper {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .chart-filter {
        width: 100%;
    }
    
    .chart-filter-btn {
        flex: 1;
    }
    
    .theme-text-desktop {
        display: none;
    }
    
    .theme-toggle {
        padding: 8px;
    }
    
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        min-width: 500px;
    }
    
    .card {
        margin-bottom: 16px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .modal {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
}

/* =====================================================
   SCORE HEALTH - APLICAÇÃO GLOBAL DA PALETA
   Todos os elementos estruturais derivam dos quatro tokens de marca.
   ===================================================== */
body.layout-future {
    --future-primary: var(--brand-main);
    --future-primary-strong: var(--brand-secondary-strong);
    --future-secondary: var(--brand-action);
    --future-highlight: var(--brand-highlight);
    --future-bg: var(--brand-surface);
    --future-bg-soft: var(--brand-surface-soft);
    --future-panel: #ffffff;
    --future-panel-strong: #ffffff;
    --future-panel-soft: color-mix(in srgb, var(--brand-secondary) 8%, white);
    --future-text: var(--brand-ink);
    --future-text-soft: color-mix(in srgb, var(--brand-ink) 76%, white);
    --future-muted: color-mix(in srgb, var(--brand-ink) 58%, white);
    --future-border: color-mix(in srgb, var(--brand-secondary) 36%, transparent);
    --future-border-strong: color-mix(in srgb, var(--brand-primary) 30%, transparent);
    background:
        radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--brand-secondary) 42%, transparent), transparent 30%),
        radial-gradient(circle at 94% 8%, color-mix(in srgb, var(--brand-primary) 12%, transparent), transparent 24%),
        linear-gradient(145deg, var(--brand-surface), var(--brand-surface-soft)) !important;
    color: var(--brand-ink);
}

body.layout-future .sidebar {
    background:
        linear-gradient(180deg, color-mix(in srgb, white 18%, transparent), transparent 24%),
        linear-gradient(
            155deg,
            var(--brand-secondary) 0%,
            color-mix(in srgb, var(--brand-secondary) 88%, var(--brand-support)) 58%,
            var(--brand-support) 84%,
            color-mix(in srgb, var(--brand-primary) 38%, var(--brand-support)) 100%
        ) !important;
    border-color: color-mix(in srgb, var(--brand-highlight) 48%, transparent) !important;
    box-shadow:
        0 24px 52px color-mix(in srgb, var(--brand-secondary) 24%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

body.layout-future .sidebar::after {
    background: radial-gradient(circle at bottom, color-mix(in srgb, var(--brand-secondary) 42%, transparent), transparent 64%) !important;
}

body.layout-future .sidebar-user,
body.layout-future .sidebar-logo {
    background: color-mix(in srgb, white 24%, transparent) !important;
    border-color: color-mix(in srgb, var(--brand-highlight) 32%, transparent) !important;
}

body.layout-future .user-avatar {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-support)) !important;
    color: var(--brand-ink) !important;
}

body.layout-future .nav-item:hover,
body.layout-future .nav-group-toggle:hover {
    background: color-mix(in srgb, var(--brand-secondary) 26%, white) !important;
}

body.layout-future .nav-item.active,
body.layout-future .nav-group-toggle.active {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--brand-support) 44%, white),
        color-mix(in srgb, var(--brand-secondary) 84%, var(--brand-support))
    ) !important;
    color: var(--brand-ink) !important;
}

body.layout-future .content-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), color-mix(in srgb, var(--brand-secondary) 8%, white)),
        var(--brand-surface) !important;
    border-color: color-mix(in srgb, var(--brand-secondary) 40%, transparent) !important;
    box-shadow: 0 24px 60px color-mix(in srgb, var(--brand-secondary) 20%, transparent) !important;
}

body.layout-future .card,
body.layout-future .stat-card,
body.layout-future .chart-container,
body.layout-future .modal,
body.layout-future .table-responsive {
    border-color: color-mix(in srgb, var(--brand-secondary) 34%, transparent) !important;
}

body.layout-future .card-header,
body.layout-future .table th {
    background: color-mix(in srgb, var(--brand-secondary) 12%, white) !important;
}

body.layout-future .form-control:focus {
    border-color: var(--brand-main) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-main) 20%, transparent) !important;
}

body.layout-future.page-full-image .content-wrapper,
body.layout-future.page-full-image .main-content,
body.layout-future.page-full-image .content,
body.layout-future.page-full-image .content-shell {
    padding: 0 !important;
    background: transparent !important;
}

body.layout-future.page-full-image header,
body.layout-future.page-full-image .page-header,
body.layout-future.page-full-image .topbar,
body.layout-future.page-full-image .navbar,
body.layout-future.page-full-image .main-header,
body.layout-future.page-full-image .app-header {
    display: none !important;
}

body.layout-future.page-full-image .construcao-wrapper {
    position: relative;
    width: 100%;
    height: 96vh;
    margin-top: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--brand-surface);
}

body.layout-future.page-full-image .construcao-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 480px) {
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 18px;
    }
    
    .stat-content h3 {
        font-size: 20px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .login-body,
    .login-header {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =====================================================
   UTILITIES
   ===================================================== */

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.gap-2 { gap: 8px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.p-0 { padding: 0 !important; }

.btn-link {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
}

.btn-warning {
    background: var(--warning);
    color: #ffffff;
}

.btn-warning:hover {
    background: #c79a3c;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

.row > [class*="col-"] {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

.col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

@media (max-width: 768px) {
    .col-md-5,
    .col-md-6,
    .col-md-7 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* =====================================================
   FUTURE LAYOUT
   ===================================================== */

.content-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

.content-wrapper {
    flex: 1 1 auto;
    min-height: 0;
}

body.layout-future {
    --future-shell-gap: clamp(12px, 1.6vw, 20px);
    --future-primary: var(--brand-primary);
    --future-primary-strong: color-mix(in srgb, var(--brand-primary) 82%, black);
    --future-secondary: var(--brand-secondary);
    --future-highlight: var(--brand-highlight);
    --future-bg: var(--brand-surface);
    --future-bg-soft: var(--brand-surface-soft);
    --future-panel: #ffffff;
    --future-panel-strong: #ffffff;
    --future-panel-soft: color-mix(in srgb, var(--brand-secondary) 8%, white);
    --future-text: var(--brand-ink);
    --future-text-soft: color-mix(in srgb, var(--brand-ink) 76%, white);
    --future-muted: color-mix(in srgb, var(--brand-ink) 58%, white);
    --future-border: color-mix(in srgb, var(--brand-secondary) 36%, transparent);
    --future-border-strong: color-mix(in srgb, var(--brand-secondary) 18%, transparent);
    --future-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
    --future-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.28);
    background:
        radial-gradient(circle at 10% 12%, color-mix(in srgb, var(--brand-secondary) 14%, transparent), transparent 21%),
        radial-gradient(circle at 86% 10%, color-mix(in srgb, var(--brand-primary) 32%, transparent), transparent 23%),
        radial-gradient(circle at 50% 115%, color-mix(in srgb, var(--brand-highlight) 10%, transparent), transparent 36%),
        linear-gradient(145deg, var(--brand-surface), var(--brand-surface-soft));
    color: var(--future-text);
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
}

body.layout-future::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 28%),
        linear-gradient(315deg, rgba(255, 255, 255, 0.02), transparent 24%);
    pointer-events: none;
    z-index: 0;
}

body.layout-future .wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    gap: 16px;
    padding: var(--future-shell-gap);
    box-sizing: border-box;
    overflow: hidden;
}

body.layout-future .sidebar {
    position: sticky;
    top: var(--future-shell-gap);
    width: 292px;
    height: calc(100vh - (var(--future-shell-gap) * 2));
    min-height: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 18px 0 20px;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 22%),
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--brand-primary) 58%, white) 0%,
            var(--brand-primary) 44%,
            color-mix(in srgb, var(--brand-primary) 62%, black) 100%
        );
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -16px 28px rgba(11, 17, 29, 0.24);
}

body.layout-future .sidebar::before {
    content: '';
    position: absolute;
    inset: 13px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

body.layout-future .sidebar-header {
        display: none !important; /* Mata o espaÃ§o vazio no topo da barra lateral */
    }

body.layout-future .sidebar-logo {
    min-height: 72px;
    padding: 12px 18px;
    border-radius: 22px;
    background: rgba(7, 13, 22, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.layout-future .sidebar-logo img {
    width: 168px;
}

body.layout-future .sidebar-user {
    margin: 0 18px 18px;
    padding: 16px;
    border-radius: 24px;
    gap: 14px;
    background: rgba(7, 13, 22, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 24px rgba(11, 17, 29, 0.18);
    position: relative;
    z-index: 1;
}

body.layout-future .sidebar-user:hover {
    background: rgba(7, 13, 22, 0.28);
}

body.layout-future .user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.32), color-mix(in srgb, var(--brand-secondary) 28%, transparent));
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(5, 8, 14, 0.2);
    font-size: 18px;
    font-weight: 700;
}

body.layout-future .user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

body.layout-future .user-role {
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-future .sidebar-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 4px 16px 0;
    position: relative;
    z-index: 1;
}

body.layout-future .sidebar-nav::-webkit-scrollbar,
body.layout-future .content-wrapper::-webkit-scrollbar,
body.layout-future .table-responsive::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.layout-future .sidebar-nav::-webkit-scrollbar-track,
body.layout-future .content-wrapper::-webkit-scrollbar-track,
body.layout-future .table-responsive::-webkit-scrollbar-track {
    background: transparent;
}

body.layout-future .sidebar-nav::-webkit-scrollbar-thumb,
body.layout-future .content-wrapper::-webkit-scrollbar-thumb,
body.layout-future .table-responsive::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

body.layout-future .sidebar-nav::-webkit-scrollbar-thumb:hover,
body.layout-future .content-wrapper::-webkit-scrollbar-thumb:hover,
body.layout-future .table-responsive::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--brand-secondary) 34%, transparent);
}

body.layout-future .nav-item {
    margin-bottom: 8px;
    padding: 13px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    color: rgba(245, 249, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    position: relative;
}

body.layout-future .nav-item i,
body.layout-future .nav-group-main i {
    width: 22px;
    font-size: 16px;
}

body.layout-future .nav-item:hover,
body.layout-future .nav-group-toggle:hover {
    color: #ffffff;
    background: rgba(6, 10, 16, 0.16);
    border-color: rgba(255, 255, 255, 0.08);
}

body.layout-future .nav-item.active,
body.layout-future .nav-group-toggle.active {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(6, 11, 18, 0.38), rgba(13, 20, 31, 0.18));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 28px rgba(7, 12, 20, 0.2);
    transform: translateX(6px);
}

body.layout-future .nav-item.active::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), color-mix(in srgb, var(--brand-secondary) 70%, transparent));
}

body.layout-future .nav-item.active i,
body.layout-future .nav-group-toggle.active i {
    color: #ffffff;
}

body.layout-future .nav-group {
    margin-bottom: 8px;
}

body.layout-future .nav-group-toggle {
    border-radius: 18px;
}

body.layout-future .nav-group-menu {
    padding-top: 4px;
}

body.layout-future .nav-sub-item {
    margin-left: 12px;
    padding: 12px 16px 12px 44px;
    color: rgba(245, 249, 255, 0.72);
    border-radius: 16px;
}

body.layout-future .nav-sub-item::before {
    left: 24px;
    top: 9px;
    bottom: 9px;
    background: rgba(255, 255, 255, 0.15);
}

body.layout-future .nav-divider {
    height: 1px;
    margin: 16px 14px 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent);
}

body.layout-future .main-content {
    flex: 1 1 auto;
    display: flex;
    min-width: 0;
    min-height: 0;
    margin-left: 0;
    position: relative;
    z-index: 1;
}

body.layout-future .content-shell {
    position: relative;
    isolation: isolate;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - (var(--future-shell-gap) * 2));
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(11, 17, 27, 0.96), rgba(6, 11, 18, 0.98)),
        var(--future-bg);
    border: 1px solid var(--future-border);
    box-shadow: var(--future-shadow);
}

body.layout-future .content-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-secondary) 14%, transparent), transparent 25%),
        radial-gradient(circle at left center, color-mix(in srgb, var(--brand-primary) 20%, transparent), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%);
    pointer-events: none;
    z-index: -1;
}

body.layout-future .content-shell::after {
    content: none;
    display: none;
}

body.layout-future .header {
    padding: 28px 32px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
        linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 42%);
    justify-content: space-between;
    gap: 20px;
}

body.layout-future .header-left {
    align-items: flex-end;
    gap: 12px;
}

body.layout-future .header-title {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.layout-future .header-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: color-mix(in srgb, var(--brand-secondary) 92%, transparent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

body.layout-future .header-kicker::before {
    content: '';
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-secondary) 76%, transparent), transparent);
}

body.layout-future .header-title h1 {
    color: var(--future-text);
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

body.layout-future .header-title p {
    max-width: 760px;
    color: var(--future-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

body.layout-future .header-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(7, 13, 22, 0.46);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 16%, transparent);
    color: var(--future-text-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.layout-future .header-badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--future-secondary), var(--future-primary-strong));
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-secondary) 10%, transparent);
}

body.layout-future .content-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 28px 32px 34px;
}

body.layout-future .menu-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--future-text);
    border-radius: 16px;
    width: 48px;
    height: 48px;
    margin-right: 4px;
}

body.layout-future .menu-toggle:hover,
body.layout-future .sidebar-close:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.layout-future .sidebar-close {
    color: rgba(255, 255, 255, 0.7);
}

body.layout-future .card,
body.layout-future .chart-container,
body.layout-future .stat-card,
body.layout-future .empty-state,
body.layout-future .modal {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(10, 18, 28, 0.8);
    border: 1px solid rgba(111, 136, 170, 0.22);
    border-radius: 28px;
    box-shadow:
        0 20px 36px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--future-text);
}

body.layout-future .card-header,
body.layout-future .modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
        linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 14%, transparent), transparent 55%);
}

body.layout-future .card-body,
body.layout-future .modal-body {
    padding: 22px 24px;
}

body.layout-future .modal-overlay,
body.layout-future .custom-modal,
body.layout-future .sidebar-overlay {
    background: rgba(3, 7, 12, 0.68);
    backdrop-filter: blur(16px);
}

body.layout-future .modal,
body.layout-future .modal-content-comentario {
    background:
        linear-gradient(180deg, rgba(13, 21, 32, 0.98), rgba(7, 13, 22, 0.98)),
        var(--future-panel-strong);
    border: 1px solid rgba(111, 136, 170, 0.26);
    border-radius: 30px;
    box-shadow: var(--future-shadow);
    color: var(--future-text);
}

body.layout-future .modal-title,
body.layout-future .card-title {
    color: var(--future-text);
    font-weight: 800;
}

body.layout-future .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

body.layout-future .modal-close {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: var(--future-text-soft);
}

body.layout-future .modal-close:hover {
    color: #ffffff;
}

body.layout-future .table-responsive {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(5, 9, 16, 0.2);
}

body.layout-future .table {
    min-width: 100%;
}

body.layout-future .table th,
body.layout-future .table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.layout-future .table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--future-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

body.layout-future .table td {
    color: var(--future-text);
    font-size: 13px;
}

body.layout-future .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

body.layout-future .form-label,
body.layout-future .text-muted {
    color: var(--future-muted);
}

body.layout-future .form-control {
    border-radius: 18px;
    border: 1px solid rgba(111, 136, 170, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: var(--future-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

body.layout-future .form-control::placeholder {
    color: rgba(150, 168, 196, 0.72);
}

body.layout-future .form-control:focus {
    border-color: color-mix(in srgb, var(--brand-secondary) 52%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-secondary) 14%, transparent);
}

body.layout-future .btn {
    border-radius: 16px;
    padding: 12px 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

body.layout-future .btn-primary {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 60%, white), var(--brand-primary) 55%, var(--primary-dark));
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 28px rgba(14, 21, 34, 0.28);
}

body.layout-future .btn-primary:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 72%, white), var(--brand-primary) 55%, var(--primary-dark));
    transform: translateY(-2px);
}

body.layout-future .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--future-text);
    border-color: rgba(255, 255, 255, 0.12);
}

body.layout-future .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

body.layout-future .btn-danger {
    background: linear-gradient(135deg, #cf7070, #b45757);
}

body.layout-future .badge,
body.layout-future .table .badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
}

body.layout-future .bg-success,
body.layout-future .badge-success {
    background: color-mix(in srgb, var(--brand-secondary) 20%, transparent);
    color: #d8f4e4;
}

body.layout-future .bg-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e9effa;
}

body.layout-future .alert {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--future-text);
}

body.layout-future .alert-danger {
    border-color: rgba(196, 92, 92, 0.26);
    background: rgba(196, 92, 92, 0.12);
}

body.layout-future .alert-info {
    border-color: color-mix(in srgb, var(--brand-secondary) 22%, transparent);
    background: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
}

body.layout-future .empty-state,
body.layout-future .text-center {
    color: var(--future-text-soft);
}

body.layout-future .sidebar-overlay {
    z-index: 90;
}

body.layout-future .border-left-primary {
    border-left: 1px solid rgba(111, 136, 170, 0.22);
}

.justify-content-center {
    justify-content: center;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.shadow,
.shadow-sm {
    box-shadow: var(--shadow);
}

.mb-0 {
    margin-bottom: 0;
}

@media (max-width: 980px) {
    body.layout-future {
        --future-shell-gap: 12px;
        overflow: auto;
    }

    body.layout-future .wrapper {
        padding: 12px;
        gap: 12px;
    }

    body.layout-future .sidebar {
        position: fixed;
        top: 12px;
        left: 12px;
        bottom: 12px;
        height: auto;
        transform: translateX(-108%);
        transition: transform 0.3s ease;
        z-index: 100;
    }

    body.layout-future .sidebar.active {
        transform: translateX(0);
    }

    body.layout-future .main-content {
        width: 100%;
    }

    body.layout-future .content-shell {
        height: calc(100vh - 24px);
        border-radius: 28px;
    }

    body.layout-future .header {
        padding: 20px 20px 18px;
        align-items: flex-start;
    }

    body.layout-future .header-badge {
        display: none;
    }

    body.layout-future .content-wrapper {
        padding: 22px 20px 24px;
    }
}

@media (max-width: 768px) {
    body.layout-future .menu-toggle,
    body.layout-future .sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    body.layout-future .header-left {
        align-items: flex-start;
    }

    body.layout-future .header-title h1 {
        font-size: clamp(1.7rem, 7vw, 2.2rem);
    }

    body.layout-future .header-title p {
        font-size: 0.88rem;
    }
}

/* =====================================================
   FUTURE LIGHT OVERRIDES
   ===================================================== */

body.layout-future {
    --future-primary: var(--brand-primary);
    --future-secondary: var(--brand-secondary);
    --future-highlight: var(--brand-highlight);
    --future-bg: color-mix(in srgb, var(--brand-secondary) 10%, white);
    --future-panel: #ffffff;
    --future-panel-soft: color-mix(in srgb, var(--brand-secondary) 8%, white);
    --future-text: color-mix(in srgb, var(--brand-secondary) 24%, black);
    --future-text-soft: color-mix(in srgb, var(--brand-secondary) 18%, black);
    --future-muted: color-mix(in srgb, var(--brand-secondary) 42%, white);
    --future-border: color-mix(in srgb, var(--brand-primary) 14%, transparent);
    background:
        radial-gradient(circle at 10% 12%, color-mix(in srgb, var(--brand-secondary) 12%, transparent), transparent 20%),
        radial-gradient(circle at 90% 6%, color-mix(in srgb, var(--brand-primary) 10%, transparent), transparent 22%),
        linear-gradient(180deg, color-mix(in srgb, var(--brand-secondary) 6%, white) 0%, color-mix(in srgb, var(--brand-secondary) 10%, white) 48%, color-mix(in srgb, var(--brand-secondary) 14%, white) 100%);
    color: var(--future-text);
    overflow-x: hidden;
    overflow-y: auto;
}

body.layout-future::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.66), transparent 32%),
        linear-gradient(315deg, color-mix(in srgb, var(--brand-primary) 3%, transparent), transparent 24%);
}

body.layout-future .wrapper {
    gap: 20px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body.layout-future .main-content,
body.layout-future .content-shell,
body.layout-future .content-wrapper {
    max-width: 100%;
}

body.layout-future .content-shell,
body.layout-future .content-wrapper {
    overflow-x: hidden;
}

body.layout-future .content-wrapper > * {
    max-width: 100%;
}

body.layout-future .content-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--brand-secondary) 6%, white)),
        #ffffff;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent);
    box-shadow: 0 24px 60px rgba(81, 98, 124, 0.12);
}

body.layout-future .content-shell::before {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--brand-secondary) 12%, transparent), transparent 26%),
        radial-gradient(circle at left center, color-mix(in srgb, var(--brand-primary) 8%, transparent), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.85), transparent 18%);
}

body.layout-future .content-shell::after {
    border-color: color-mix(in srgb, var(--brand-primary) 6%, transparent);
}

body.layout-future .header {
    padding: 11px 32px;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
        linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 8%, transparent), transparent 42%);
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 84px;
}

body.layout-future .header-left {
    display: flex;
    align-items: center;
    align-self: center;
    flex: 1 1 auto;
    min-width: 0;
}

body.layout-future .header-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

body.layout-future .header-kicker {
    color: color-mix(in srgb, var(--brand-primary) 78%, transparent);
}

body.layout-future .header-kicker::before {
    background: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 72%, transparent), transparent);
}

body.layout-future .header-title h1 {
    color: #213149;
    font-size: clamp(1.08rem, 1.18vw, 1.32rem);
    font-weight: 800;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

body.layout-future .header-title p {
    color: var(--future-muted);
    font-size: 0.92rem;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

body.layout-future .header-brandmark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 246px;
    height: 56px;
    min-width: 246px;
    max-width: 246px;
    flex: 0 0 246px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    text-decoration: none;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
    align-self: center;
}

body.layout-future .header-brandmark img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: none;
    max-height: none;
    height: auto;
    display: block;
    transform: translate(-50%, -50%);
}

body.layout-future .content-wrapper {
    padding: 24px 32px 30px;
}

body.layout-future .menu-toggle {
    background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
    border-color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
    color: #223148;
}

body.layout-future .menu-toggle:hover,
body.layout-future .sidebar-close:hover {
    background: color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

body.layout-future .card,
body.layout-future .chart-container,
body.layout-future .stat-card,
body.layout-future .empty-state,
body.layout-future .modal,
body.layout-future .modal-content-comentario {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.98)),
        #ffffff;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent);
    box-shadow:
        0 16px 34px rgba(81, 98, 124, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    color: var(--future-text);
}

body.layout-future .card-header,
body.layout-future .modal-header,
body.layout-future .modal-header-comentario,
body.layout-future .modal-footer-comentario {
    border-color: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 251, 254, 0.82)),
        linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 6%, transparent), transparent 55%);
}

body.layout-future .card-title,
body.layout-future .modal-title,
body.layout-future .modal-header-comentario h5,
body.layout-future .table td,
body.layout-future .form-label,
body.layout-future .header-title h1 {
    color: #223148;
}

body.layout-future .modal-overlay,
body.layout-future .custom-modal,
body.layout-future .sidebar-overlay {
    background: rgba(241, 245, 250, 0.7);
    backdrop-filter: blur(10px);
}

body.layout-future .modal-footer {
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent);
    background: rgba(247, 250, 253, 0.92);
}

body.layout-future .modal-close {
    color: #5d6f88;
}

body.layout-future .table-responsive {
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent);
    background: #ffffff;
}

body.layout-future .table th,
body.layout-future .table td {
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent);
}

body.layout-future .table th {
    background: #f6f9fc;
    color: #6f8099;
}

body.layout-future .table tbody tr:hover {
    background: #f7fafc;
}

body.layout-future .form-label,
body.layout-future .text-muted {
    color: #6f8099;
}

body.layout-future .form-control {
    background: #ffffff;
    border-color: color-mix(in srgb, var(--brand-primary) 18%, transparent);
    color: #223148;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

body.layout-future .form-control::placeholder {
    color: #8a98ad;
}

body.layout-future .form-control:focus {
    border-color: color-mix(in srgb, var(--brand-primary) 38%, transparent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

body.layout-future .btn-primary {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 60%, white), var(--brand-primary) 58%, var(--primary-dark));
    box-shadow: 0 14px 24px color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

body.layout-future .btn-primary:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 72%, white), var(--brand-primary) 58%, var(--primary-dark));
}

body.layout-future .btn-secondary {
    background: #ffffff;
    color: #425671;
    border-color: color-mix(in srgb, var(--brand-primary) 18%, transparent);
}

body.layout-future .btn-secondary:hover {
    background: #f4f7fb;
}

body.layout-future .btn-warning {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-highlight) 72%, white), var(--brand-highlight));
}

body.layout-future .btn-success {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-support) 72%, white), var(--brand-support));
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--brand-support) 18%, transparent);
}

body.layout-future .btn-success:hover {
    background: linear-gradient(135deg, #58c390, #3a9b73);
}

body.layout-future .alert {
    background: #ffffff;
    border-color: color-mix(in srgb, var(--brand-primary) 12%, transparent);
    color: #223148;
}

body.layout-future .alert-danger {
    background: #fff7f7;
}

body.layout-future .alert-info {
    background: #f7fbf9;
}

body.layout-future .empty-state,
body.layout-future .text-center {
    color: #4b5d78;
}

body.layout-future .content-wrapper {
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.8vw, 20px);
}

body.layout-future .content-wrapper > .card,
body.layout-future .content-wrapper > .card.shadow-sm,
body.layout-future .content-wrapper > .layout-margin,
body.layout-future .content-wrapper > .empty-state {
    margin: 0 !important;
}

body.layout-future .layout-margin {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.layout-future .layout-margin > * + * {
    margin-top: clamp(14px, 1.6vw, 18px);
}

body.layout-future .filter-container-premium,
body.layout-future .table-filters,
body.layout-future .page-toolbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin: 0 0 18px !important;
    padding: 16px 18px !important;
    border-radius: 20px !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 253, 0.98)),
        #ffffff !important;
    box-shadow: 0 14px 30px rgba(81, 98, 124, 0.08) !important;
}

body.layout-future .filter-container-premium form,
body.layout-future .page-toolbar form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

body.layout-future .search-box {
    position: relative;
    width: 100%;
    max-width: 36rem;
    flex: 1 1 20rem;
    min-width: 0;
}

body.layout-future .search-box .form-control {
    padding-left: 2.5rem !important;
}

body.layout-future .filter-container-premium label,
body.layout-future .page-subtitle,
body.layout-future .modal-section-title,
body.layout-future .section-title-standard {
    color: #6f8099 !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
}

body.layout-future .layout-margin .card,
body.layout-future .layout-margin .card.shadow-sm,
body.layout-future .content-wrapper > .card,
body.layout-future .content-wrapper > .card.shadow-sm {
    border-radius: 24px !important;
    overflow: hidden !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent) !important;
    box-shadow: 0 18px 36px rgba(81, 98, 124, 0.09) !important;
}

body.layout-future .card-header,
body.layout-future .card-header-premium {
    padding: 18px 22px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 253, 0.98)),
        #ffffff !important;
}

body.layout-future .card-body {
    padding: 22px !important;
}

body.layout-future .table-responsive {
    border-radius: 20px !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent) !important;
    background: #ffffff !important;
}

body.layout-future .tabela-premium,
body.layout-future .table {
    margin: 0 !important;
}

body.layout-future .table th {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.layout-future .table td {
    font-size: 0.84rem !important;
    font-weight: 600;
    color: #314866;
}

body.layout-future .form-control,
body.layout-future .custom-filter-select,
body.layout-future .select-rbac,
body.layout-future select.form-control {
    min-height: var(--form-field-height);
    border-radius: 14px !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 18%, transparent) !important;
    padding: 0 16px !important;
    font-size: 0.92rem !important;
    font-weight: 600;
    line-height: 1.35;
    color: #223148;
    background: #ffffff;
}

body.layout-future select.form-control,
body.layout-future .custom-filter-select,
body.layout-future .select-rbac {
    height: var(--form-field-height);
}

body.layout-future textarea.form-control {
    min-height: 120px;
    padding: 12px 14px !important;
}

body.layout-future .btn,
body.layout-future .btn-primary-top,
body.layout-future .btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px !important;
    border-radius: 12px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

body.layout-future .btn-primary-top,
body.layout-future .btn-primary-custom {
    background: linear-gradient(135deg, color-mix(in srgb, var(--brand-primary) 60%, white), var(--brand-primary) 58%, var(--primary-dark)) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--brand-primary) 18%, transparent) !important;
}

body.layout-future .btn-acao,
body.layout-future .btn-acao-circle,
body.layout-future .btn-add-circle,
body.layout-future .btn-sync-circle {
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, transparent) !important;
    background: #ffffff !important;
    color: var(--brand-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 18px rgba(81, 98, 124, 0.08) !important;
    text-decoration: none !important;
}

body.layout-future .btn-outline-primary,
body.layout-future .btn-outline-secondary,
body.layout-future .btn-outline-danger {
    background: #ffffff !important;
    box-shadow: none !important;
}

body.layout-future .btn-outline-primary {
    color: var(--brand-primary) !important;
    border-color: color-mix(in srgb, var(--brand-primary) 18%, transparent) !important;
}

body.layout-future .btn-outline-secondary {
    color: #475569 !important;
    border-color: color-mix(in srgb, var(--brand-primary) 16%, transparent) !important;
}

body.layout-future .btn-outline-danger {
    color: #C45C5C !important;
    border-color: rgba(196, 92, 92, 0.24) !important;
}

body.layout-future .bg-success,
body.layout-future .badge-success {
    background: #e8f7ef !important;
    color: #247252 !important;
}

body.layout-future .bg-secondary,
body.layout-future .badge-secondary {
    background: #edf2f8 !important;
    color: #61728b !important;
}

body.layout-future .modal-overlay,
body.layout-future .custom-modal,
body.layout-future .sidebar-overlay {
    background: rgba(15, 23, 42, 0.42) !important;
    backdrop-filter: blur(10px);
}

body.layout-future .modal,
body.layout-future .modal-content-custom,
body.layout-future .empresa-modal,
body.layout-future .consultor-modal,
body.layout-future .equipe-modal,
body.layout-future .formulario-modal,
body.layout-future .avatar-crop-modal,
body.layout-future .responder-modal,
body.layout-future .modal-content-comentario {
    border-radius: 24px !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent) !important;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.2) !important;
    overflow: hidden !important;
}

body.layout-future .modal-header,
body.layout-future .modal-header-custom,
body.layout-future .modal-header-comentario {
    padding: 20px 22px !important;
}

body.layout-future .modal-body,
body.layout-future .modal-body-custom,
body.layout-future .modal-body-comentario {
    padding: 20px 22px !important;
}

body.layout-future .modal-footer,
body.layout-future .modal-footer-custom,
body.layout-future .modal-footer-comentario {
    padding: 16px 22px !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

body.layout-future .modal-close,
body.layout-future .modal-close-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    border: none;
    font-size: 1.3rem;
}

body.layout-future .btn-danger {
    background: linear-gradient(135deg, #d87979, #be5d5d);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 14px 24px rgba(190, 93, 93, 0.18);
}

body.layout-future .btn-danger:hover {
    background: linear-gradient(135deg, #e38787, #c96969);
}

body.layout-future.page-secoes .layout-margin,
body.layout-future.page-telas .layout-margin,
body.layout-future.page-perfis .layout-margin,
body.layout-future.page-permissoes .layout-margin,
body.layout-future.page-permissoes-regras .layout-margin,
body.layout-future.page-dashboard-builder .layout-margin {
    margin: 0 !important;
}

body.layout-future.page-secoes .btn-primary-top,
body.layout-future.page-telas .btn-primary-top,
body.layout-future.page-perfis .btn-primary-top,
body.layout-future.page-permissoes .btn-primary-top,
body.layout-future.page-permissoes-regras .btn-primary-top,
body.layout-future.page-dashboard-builder .btn-primary-top {
    min-height: 42px !important;
    padding: 0 18px !important;
    border-radius: 12px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
}

body.layout-future.page-secoes .tabela-premium td,
body.layout-future.page-telas .tabela-premium td,
body.layout-future.page-perfis .tabela-premium td,
body.layout-future.page-permissoes .tabela-premium td,
body.layout-future.page-permissoes-regras .tabela-premium td,
body.layout-future.page-dashboard-builder .tabela-premium td {
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #314866 !important;
}

body.layout-future.page-secoes .tabela-premium thead th,
body.layout-future.page-telas .tabela-premium thead th,
body.layout-future.page-perfis .tabela-premium thead th,
body.layout-future.page-permissoes .tabela-premium thead th,
body.layout-future.page-permissoes-regras .tabela-premium thead th,
body.layout-future.page-dashboard-builder .tabela-premium thead th {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
}

body.layout-future.page-leads .status-card,
body.layout-future.page-administradores .content-wrapper > .card,
body.layout-future.page-empresas .content-wrapper > .card,
body.layout-future.page-equipe .content-wrapper > .card {
    border-radius: 24px !important;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent) !important;
    box-shadow: 0 18px 36px rgba(81, 98, 124, 0.09) !important;
}

body.layout-future.page-leads .status-card .card-header,
body.layout-future.page-administradores .content-wrapper > .card > .card-header,
body.layout-future.page-empresas .content-wrapper > .card > .card-header,
body.layout-future.page-equipe .content-wrapper > .card > .card-header {
    padding: 18px 22px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.99)),
        #ffffff !important;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent) !important;
}

body.layout-future.page-leads .status-card .card-body,
body.layout-future.page-administradores .content-wrapper > .card > .card-body,
body.layout-future.page-empresas .content-wrapper > .card > .card-body,
body.layout-future.page-equipe .content-wrapper > .card > .card-body {
    padding: 18px 22px !important;
}

body.layout-future.page-leads .btn-whatsapp {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.22);
}

body.layout-future.page-leads .select-status {
    min-height: 38px;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 16%, transparent);
    background: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    color: #314866;
}

body.layout-future.page-consultores .consultor-modal,
body.layout-future.page-empresas .empresa-modal,
body.layout-future.page-equipe .equipe-modal,
body.layout-future.page-formularios .formulario-modal,
body.layout-future.page-administradores .modal,
body.layout-future.page-perfis .modal,
body.layout-future.page-telas .modal,
body.layout-future.page-secoes .modal,
body.layout-future.page-dashboard-builder .modal-content-custom,
body.layout-future.page-perfil-usuario .avatar-crop-modal {
    width: min(96vw, 58rem) !important;
    max-width: min(96vw, 58rem) !important;
    max-height: calc(100vh - 32px) !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 1 auto !important;
    min-height: 0 !important;
    border-radius: 26px !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent) !important;
    background: #ffffff !important;
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.2) !important;
    overflow: hidden !important;
}

body.layout-future.page-consultores .consultor-modal > form,
body.layout-future.page-empresas .empresa-modal > form,
body.layout-future.page-equipe .equipe-modal > form,
body.layout-future.page-formularios .formulario-modal > form,
body.layout-future.page-administradores .modal > form,
body.layout-future.page-perfis .modal > form,
body.layout-future.page-telas .modal > form,
body.layout-future.page-secoes .modal > form,
body.layout-future.page-perfil-usuario .avatar-crop-modal > form,
body.layout-future.page-dashboard-builder .modal-content-custom {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

body.layout-future.page-consultores .consultor-modal .modal-header,
body.layout-future.page-empresas .empresa-modal .modal-header,
body.layout-future.page-equipe .equipe-modal .modal-header,
body.layout-future.page-formularios .formulario-modal .modal-header,
body.layout-future.page-administradores .modal .modal-header,
body.layout-future.page-perfis .modal .modal-header,
body.layout-future.page-telas .modal .modal-header,
body.layout-future.page-secoes .modal .modal-header,
body.layout-future.page-dashboard-builder .modal-header-custom,
body.layout-future.page-perfil-usuario .avatar-crop-modal .modal-header {
    flex: 0 0 auto !important;
    padding: 20px 22px !important;
    margin-bottom: 0 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.99)),
        #ffffff !important;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent) !important;
}

body.layout-future.page-consultores .consultor-modal .modal-body,
body.layout-future.page-empresas .empresa-modal .modal-body,
body.layout-future.page-equipe .equipe-modal .modal-body,
body.layout-future.page-formularios .formulario-modal .modal-body,
body.layout-future.page-administradores .modal .modal-body,
body.layout-future.page-perfis .modal .modal-body,
body.layout-future.page-telas .modal .modal-body,
body.layout-future.page-secoes .modal .modal-body,
body.layout-future.page-dashboard-builder .modal-body-custom,
body.layout-future.page-perfil-usuario .avatar-crop-modal .modal-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-gutter: stable both-edges;
    -webkit-overflow-scrolling: touch;
    padding: 20px 22px !important;
    background: linear-gradient(180deg, #f9fbff 0%, #ffffff 32%) !important;
}

body.layout-future.page-consultores .consultor-modal .modal-footer,
body.layout-future.page-empresas .empresa-modal .modal-footer,
body.layout-future.page-equipe .equipe-modal .modal-footer,
body.layout-future.page-formularios .formulario-modal .modal-footer,
body.layout-future.page-administradores .modal .modal-footer,
body.layout-future.page-perfis .modal .modal-footer,
body.layout-future.page-telas .modal .modal-footer,
body.layout-future.page-secoes .modal .modal-footer,
body.layout-future.page-dashboard-builder .modal-footer-custom,
body.layout-future.page-perfil-usuario .avatar-crop-modal .modal-footer {
    flex: 0 0 auto !important;
    position: static !important;
    padding: 16px 22px !important;
    background: #f8fafc !important;
    border-top: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent) !important;
}

body.layout-future.page-consultores .consultor-modal .modal-title,
body.layout-future.page-empresas .empresa-modal .modal-title,
body.layout-future.page-equipe .equipe-modal .modal-title,
body.layout-future.page-formularios .formulario-modal .modal-title,
body.layout-future.page-administradores .modal .modal-title,
body.layout-future.page-perfis .modal h4,
body.layout-future.page-telas .modal h4,
body.layout-future.page-secoes .modal h4,
body.layout-future.page-dashboard-builder #modalTitle,
body.layout-future.page-perfil-usuario .avatar-crop-modal .modal-title {
    margin: 0 !important;
    font-size: clamp(1.18rem, 1.4vw, 1.5rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    color: #223148 !important;
}

body.layout-future.page-consultores .consultor-modal-subtitle,
body.layout-future.page-empresas .empresa-modal-subtitle,
body.layout-future.page-equipe .equipe-modal-subtitle,
body.layout-future.page-formularios .formulario-modal-subtitle {
    margin-top: 6px !important;
    font-size: 0.82rem !important;
    font-weight: 600 !important;
    color: #70819b !important;
}

body.layout-future.page-consultores .consultor-modal .modal-close,
body.layout-future.page-empresas .empresa-modal .modal-close,
body.layout-future.page-equipe .equipe-modal .modal-close,
body.layout-future.page-formularios .formulario-modal .modal-close,
body.layout-future.page-administradores .modal .modal-close,
body.layout-future.page-perfis .modal .modal-header button,
body.layout-future.page-telas .modal .modal-header button,
body.layout-future.page-secoes .modal .modal-header button,
body.layout-future.page-dashboard-builder .modal-close-btn,
body.layout-future.page-perfil-usuario .avatar-crop-modal .modal-close {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent) !important;
    color: #4d5f80 !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    transform: none !important;
    text-decoration: none !important;
}

body.layout-future.page-consultores .consultor-modal .modal-close:hover,
body.layout-future.page-empresas .empresa-modal .modal-close:hover,
body.layout-future.page-equipe .equipe-modal .modal-close:hover,
body.layout-future.page-formularios .formulario-modal .modal-close:hover,
body.layout-future.page-administradores .modal .modal-close:hover,
body.layout-future.page-perfis .modal .modal-header button:hover,
body.layout-future.page-telas .modal .modal-header button:hover,
body.layout-future.page-secoes .modal .modal-header button:hover,
body.layout-future.page-dashboard-builder .modal-close-btn:hover,
body.layout-future.page-perfil-usuario .avatar-crop-modal .modal-close:hover {
    background: var(--brand-primary) !important;
    color: #ffffff !important;
}

body.layout-future.page-consultores .modal-section-title,
body.layout-future.page-empresas .modal-section-title,
body.layout-future.page-equipe .modal-section-title,
body.layout-future.page-formularios .modal-section-title,
body.layout-future.page-secoes .pdca-abas .aba-btn,
body.layout-future.page-perfil-usuario .perfil-section-title {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase !important;
}

body.layout-future.page-consultores .section-index,
body.layout-future.page-empresas .section-index,
body.layout-future.page-equipe .section-index,
body.layout-future.page-formularios .section-index {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.66rem;
    font-weight: 800;
}

body.layout-future.page-consultores .consultor-modal .modal-body::-webkit-scrollbar,
body.layout-future.page-empresas .empresa-modal .modal-body::-webkit-scrollbar,
body.layout-future.page-equipe .equipe-modal .modal-body::-webkit-scrollbar,
body.layout-future.page-formularios .formulario-modal .modal-body::-webkit-scrollbar,
body.layout-future.page-administradores .modal .modal-body::-webkit-scrollbar,
body.layout-future.page-perfis .modal .modal-body::-webkit-scrollbar,
body.layout-future.page-telas .modal .modal-body::-webkit-scrollbar,
body.layout-future.page-secoes .modal .modal-body::-webkit-scrollbar,
body.layout-future.page-dashboard-builder .modal-body-custom::-webkit-scrollbar,
body.layout-future.page-perfil-usuario .avatar-crop-modal .modal-body::-webkit-scrollbar {
    width: 10px;
}

body.layout-future.page-consultores .consultor-modal .modal-body::-webkit-scrollbar-track,
body.layout-future.page-empresas .empresa-modal .modal-body::-webkit-scrollbar-track,
body.layout-future.page-equipe .equipe-modal .modal-body::-webkit-scrollbar-track,
body.layout-future.page-formularios .formulario-modal .modal-body::-webkit-scrollbar-track,
body.layout-future.page-administradores .modal .modal-body::-webkit-scrollbar-track,
body.layout-future.page-perfis .modal .modal-body::-webkit-scrollbar-track,
body.layout-future.page-telas .modal .modal-body::-webkit-scrollbar-track,
body.layout-future.page-secoes .modal .modal-body::-webkit-scrollbar-track,
body.layout-future.page-dashboard-builder .modal-body-custom::-webkit-scrollbar-track,
body.layout-future.page-perfil-usuario .avatar-crop-modal .modal-body::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    border-radius: 999px;
}

body.layout-future.page-consultores .consultor-modal .modal-body::-webkit-scrollbar-thumb,
body.layout-future.page-empresas .empresa-modal .modal-body::-webkit-scrollbar-thumb,
body.layout-future.page-equipe .equipe-modal .modal-body::-webkit-scrollbar-thumb,
body.layout-future.page-formularios .formulario-modal .modal-body::-webkit-scrollbar-thumb,
body.layout-future.page-administradores .modal .modal-body::-webkit-scrollbar-thumb,
body.layout-future.page-perfis .modal .modal-body::-webkit-scrollbar-thumb,
body.layout-future.page-telas .modal .modal-body::-webkit-scrollbar-thumb,
body.layout-future.page-secoes .modal .modal-body::-webkit-scrollbar-thumb,
body.layout-future.page-dashboard-builder .modal-body-custom::-webkit-scrollbar-thumb,
body.layout-future.page-perfil-usuario .avatar-crop-modal .modal-body::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--brand-primary) 30%, transparent);
    border-radius: 999px;
}

body.layout-future.page-consultores-editar .content-wrapper,
body.layout-future.page-empresas-editar .content-wrapper,
body.layout-future.page-equipe-editar .content-wrapper,
body.layout-future.page-usuario-editar .content-wrapper {
    min-height: 0;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    display: block;
}

body.layout-future.page-consultores-editar .content-wrapper > .card,
body.layout-future.page-empresas-editar .content-wrapper > .card,
body.layout-future.page-equipe-editar .content-wrapper > .card,
body.layout-future.page-usuario-editar .content-wrapper > .card {
    margin: 0 !important;
    display: block;
    flex: 0 0 auto;
    min-height: auto;
    height: auto;
    border-radius: 28px !important;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent) !important;
    box-shadow: 0 20px 40px rgba(81, 98, 124, 0.1) !important;
}

body.layout-future.page-consultores-editar .card-header,
body.layout-future.page-empresas-editar .card-header,
body.layout-future.page-equipe-editar .card-header,
body.layout-future.page-usuario-editar .card-header {
    padding: 18px 22px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 253, 0.99)),
        #ffffff !important;
    border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 8%, transparent) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

body.layout-future.page-consultores-editar .legacy-edit-title,
body.layout-future.page-empresas-editar .legacy-edit-title,
body.layout-future.page-equipe-editar .legacy-edit-title,
body.layout-future.page-usuario-editar .card-header .card-title,
body.layout-future.page-usuario-editar .card-header h2 {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    text-transform: none !important;
    color: #223148 !important;
}

body.layout-future.page-consultores-editar .card-body,
body.layout-future.page-empresas-editar .card-body,
body.layout-future.page-equipe-editar .card-body,
body.layout-future.page-usuario-editar .card-body {
    flex: 0 0 auto;
    min-height: auto;
    padding: 22px !important;
    overflow-x: hidden;
    overflow-y: visible;
}

body.layout-future.page-consultores-editar .card-body::-webkit-scrollbar,
body.layout-future.page-empresas-editar .card-body::-webkit-scrollbar,
body.layout-future.page-equipe-editar .card-body::-webkit-scrollbar,
body.layout-future.page-usuario-editar .card-body::-webkit-scrollbar {
    width: 10px;
}

body.layout-future.page-consultores-editar .card-body::-webkit-scrollbar-track,
body.layout-future.page-empresas-editar .card-body::-webkit-scrollbar-track,
body.layout-future.page-equipe-editar .card-body::-webkit-scrollbar-track,
body.layout-future.page-usuario-editar .card-body::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--brand-primary) 8%, transparent);
    border-radius: 999px;
}

body.layout-future.page-consultores-editar .card-body::-webkit-scrollbar-thumb,
body.layout-future.page-empresas-editar .card-body::-webkit-scrollbar-thumb,
body.layout-future.page-equipe-editar .card-body::-webkit-scrollbar-thumb,
body.layout-future.page-usuario-editar .card-body::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--brand-primary) 30%, transparent);
    border-radius: 999px;
}

body.layout-future.page-consultores-editar label,
body.layout-future.page-empresas-editar label,
body.layout-future.page-equipe-editar label,
body.layout-future.page-usuario-editar label,
body.layout-future.page-perfil-usuario .form-label,
body.layout-future.page-perfil-usuario .perfil-section-title {
    color: #70819b !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em;
    text-transform: uppercase !important;
}

body.layout-future.page-consultores-editar .custom-control-label,
body.layout-future.page-empresas-editar .custom-control-label,
body.layout-future.page-equipe-editar .custom-control-label,
body.layout-future.page-perfil-usuario .perfil-name,
body.layout-future.page-perfil-usuario .perfil-email {
    text-transform: none !important;
    letter-spacing: 0 !important;
}

body.layout-future.page-consultores-editar .custom-control-label,
body.layout-future.page-empresas-editar .custom-control-label,
body.layout-future.page-equipe-editar .custom-control-label {
    color: #223148 !important;
    font-size: 0.86rem !important;
    font-weight: 700 !important;
}

body.layout-future.page-consultores-editar .legacy-edit-actions,
body.layout-future.page-empresas-editar .legacy-edit-actions,
body.layout-future.page-equipe-editar .legacy-edit-actions,
body.layout-future.page-usuario-editar .acoes-usuario {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

body.layout-future.page-consultores-editar .btn,
body.layout-future.page-empresas-editar .btn,
body.layout-future.page-equipe-editar .btn,
body.layout-future.page-usuario-editar .btn,
body.layout-future.page-perfil-usuario .btn {
    min-height: 42px;
    border-radius: 12px !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
}

body.layout-future.page-consultores-editar .btn-warning,
body.layout-future.page-empresas-editar .btn-warning,
body.layout-future.page-equipe-editar .btn-warning,
body.layout-future.page-usuario-editar .btn-warning {
    background: linear-gradient(135deg, #efd7a6, #dfbe7d) !important;
    color: #6f4b12 !important;
    border-color: transparent !important;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--brand-highlight) 16%, transparent) !important;
}

body.layout-future.page-consultores-editar .btn-danger,
body.layout-future.page-empresas-editar .btn-danger,
body.layout-future.page-equipe-editar .btn-danger,
body.layout-future.page-usuario-editar .btn-danger {
    box-shadow: 0 12px 24px rgba(190, 93, 93, 0.16) !important;
}

body.layout-future.page-consultores-editar .legacy-readonly-input,
body.layout-future.page-empresas-editar .legacy-readonly-input,
body.layout-future.page-equipe-editar .legacy-readonly-input,
body.layout-future.page-usuario-editar .legacy-readonly-input,
body.layout-future.page-usuario-editar input[readonly],
body.layout-future.page-usuario-editar select[disabled],
body.layout-future.page-usuario-editar input[disabled] {
    background: #f5f7fb !important;
    color: #6c7d95 !important;
    border-color: color-mix(in srgb, var(--brand-primary) 12%, transparent) !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
}

body.layout-future.page-consultores-editar hr,
body.layout-future.page-empresas-editar hr,
body.layout-future.page-equipe-editar hr,
body.layout-future.page-usuario-editar .legacy-form-divider {
    margin: 20px 0 !important;
    border-color: color-mix(in srgb, var(--brand-primary) 10%, transparent) !important;
}

body.layout-future.page-equipe-editar .legacy-choice-group,
body.layout-future.page-usuario-editar .legacy-choice-group {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
}

body.layout-future.page-equipe-editar .legacy-choice-chip,
body.layout-future.page-usuario-editar .legacy-choice-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0.55rem 0.92rem !important;
    border-radius: 999px !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, transparent) !important;
    background: #f8fafc !important;
    color: #33475f !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

body.layout-future.page-equipe-editar .legacy-choice-chip input[type="checkbox"],
body.layout-future.page-usuario-editar .legacy-choice-chip input[type="checkbox"] {
    accent-color: var(--brand-primary);
}

body.layout-future.page-usuario-editar h4.mb-3 {
    color: #70819b !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    margin-bottom: 14px !important;
}

body.layout-future.page-perfil-usuario .perfil-wrapper-outer {
    padding: 0;
}

body.layout-future.page-perfil-usuario .perfil-usuario-grid {
    max-width: none;
    margin: 0;
    gap: 20px;
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

body.layout-future.page-perfil-usuario .perfil-card {
    background: #ffffff !important;
    border-radius: 28px !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 12%, transparent) !important;
    box-shadow: 0 20px 40px rgba(81, 98, 124, 0.1) !important;
    padding: 24px !important;
}

body.layout-future.page-perfil-usuario .perfil-avatar {
    width: 156px;
    height: 156px;
    font-size: 62px;
    box-shadow: 0 18px 36px rgba(81, 98, 124, 0.18);
}

body.layout-future.page-perfil-usuario .perfil-name {
    color: #223148 !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

body.layout-future.page-perfil-usuario .perfil-email {
    color: #70819b !important;
    font-size: 0.88rem !important;
    margin-bottom: 22px !important;
}

body.layout-future.page-perfil-usuario .perfil-section-title {
    margin-bottom: 18px !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

body.layout-future.page-perfil-usuario .perfil-section-title i {
    color: var(--brand-primary) !important;
    margin-right: 8px !important;
}

@media (max-width: 980px) {
    body.layout-future .content-shell {
        height: auto;
        min-height: calc(100vh - 24px);
    }

    body.layout-future {
        overflow-x: hidden;
        overflow-y: auto;
    }

    body.layout-future .header {
        padding: 10px 20px;
        min-height: 74px;
    }

    body.layout-future .content-wrapper {
        padding: 20px;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    body.layout-future .header-brandmark {
        width: 186px;
        height: 42px;
        min-width: 186px;
        max-width: 186px;
        flex-basis: 186px;
    }

    body.layout-future .header-brandmark img {
        width: 100%;
        max-width: none;
        max-height: none;
    }
}

/* Deve permanecer no fim do arquivo para vencer os estilos legados. */
body.layout-future {
    --future-primary: var(--brand-main);
    --future-primary-strong: var(--brand-secondary-strong);
    --future-secondary: var(--brand-action);
    --future-highlight: var(--brand-highlight);
    --future-bg: var(--brand-surface);
    --future-bg-soft: var(--brand-surface-soft);
    --future-panel: #ffffff;
    --future-panel-strong: #ffffff;
    --future-panel-soft: color-mix(in srgb, var(--brand-secondary) 8%, white);
    --future-text: var(--brand-ink);
    --future-text-soft: color-mix(in srgb, var(--brand-ink) 76%, white);
    --future-muted: color-mix(in srgb, var(--brand-ink) 58%, white);
    --future-border: color-mix(in srgb, var(--brand-secondary) 36%, transparent);
    --future-border-strong: color-mix(in srgb, var(--brand-primary) 30%, transparent);
    background:
        radial-gradient(circle at 8% 8%, color-mix(in srgb, var(--brand-secondary) 42%, transparent), transparent 30%),
        radial-gradient(circle at 94% 8%, color-mix(in srgb, var(--brand-primary) 12%, transparent), transparent 24%),
        linear-gradient(145deg, var(--brand-surface), var(--brand-surface-soft)) !important;
    color: var(--brand-ink);
}

body.layout-future .sidebar {
    background:
        linear-gradient(180deg, color-mix(in srgb, white 18%, transparent), transparent 24%),
        linear-gradient(
            155deg,
            var(--brand-secondary) 0%,
            color-mix(in srgb, var(--brand-secondary) 88%, var(--brand-support)) 58%,
            var(--brand-support) 84%,
            color-mix(in srgb, var(--brand-primary) 38%, var(--brand-support)) 100%
        ) !important;
    border-color: color-mix(in srgb, var(--brand-highlight) 48%, transparent) !important;
    box-shadow:
        0 24px 52px color-mix(in srgb, var(--brand-secondary) 24%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
}

body.layout-future .sidebar::after {
    background: radial-gradient(circle at bottom, color-mix(in srgb, var(--brand-secondary) 42%, transparent), transparent 64%) !important;
}

body.layout-future .sidebar-user,
body.layout-future .sidebar-logo {
    background: color-mix(in srgb, white 24%, transparent) !important;
    border-color: color-mix(in srgb, var(--brand-highlight) 32%, transparent) !important;
}

body.layout-future .user-avatar {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-support)) !important;
    color: var(--brand-ink) !important;
}

body.layout-future .nav-item:hover,
body.layout-future .nav-group-toggle:hover {
    background: color-mix(in srgb, var(--brand-secondary) 26%, white) !important;
}

body.layout-future .nav-item.active,
body.layout-future .nav-group-toggle.active {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--brand-support) 44%, white),
        color-mix(in srgb, var(--brand-secondary) 84%, var(--brand-support))
    ) !important;
    color: var(--brand-ink) !important;
}

body.layout-future .content-shell {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), color-mix(in srgb, var(--brand-secondary) 8%, white)),
        var(--brand-surface) !important;
    border-color: color-mix(in srgb, var(--brand-secondary) 40%, transparent) !important;
    box-shadow: 0 24px 60px color-mix(in srgb, var(--brand-secondary) 20%, transparent) !important;
}

body.layout-future .card,
body.layout-future .stat-card,
body.layout-future .chart-container,
body.layout-future .modal,
body.layout-future .table-responsive {
    border-color: color-mix(in srgb, var(--brand-secondary) 34%, transparent) !important;
}

body.layout-future .card-header,
body.layout-future .table th {
    background: color-mix(in srgb, var(--brand-secondary) 12%, white) !important;
}

body.layout-future .form-control:focus {
    border-color: var(--brand-main) !important;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-main) 20%, transparent) !important;
}

body.layout-future.page-full-image .content-wrapper,
body.layout-future.page-full-image .main-content,
body.layout-future.page-full-image .content,
body.layout-future.page-full-image .content-shell {
    padding: 0 !important;
    background: transparent !important;
}

body.layout-future.page-full-image .construcao-wrapper {
    background: var(--brand-surface) !important;
}

body.layout-future .btn-primary,
body.layout-future .btn-primary-top,
body.layout-future .btn-primary-custom {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--brand-primary) 66%, white),
        var(--brand-primary) 58%,
        color-mix(in srgb, var(--brand-primary) 82%, var(--brand-highlight))
    ) !important;
    border-color: color-mix(in srgb, var(--brand-primary) 46%, transparent) !important;
    color: #ffffff !important;
    box-shadow: 0 14px 24px color-mix(in srgb, var(--brand-primary) 24%, transparent) !important;
}

body.layout-future .btn-primary:hover,
body.layout-future .btn-primary-top:hover,
body.layout-future .btn-primary-custom:hover {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--brand-primary) 74%, white),
        color-mix(in srgb, var(--brand-primary) 88%, var(--brand-highlight))
    ) !important;
}

body.layout-future,
body.layout-future h1,
body.layout-future h2,
body.layout-future h3,
body.layout-future h4,
body.layout-future h5,
body.layout-future h6,
body.layout-future .header-title h1,
body.layout-future .card-title,
body.layout-future .modal-title,
body.layout-future .perfil-name,
body.layout-future .custom-control-label {
    color: var(--brand-ink) !important;
}

body.layout-future .text-muted,
body.layout-future .perfil-email,
body.layout-future .page-subtitle {
    color: color-mix(in srgb, var(--brand-ink) 64%, white) !important;
}

body.layout-future .search-box > i {
    color: var(--brand-secondary-strong) !important;
}

body.layout-future .sidebar,
body.layout-future .sidebar .nav-item,
body.layout-future .sidebar .nav-group-toggle,
body.layout-future .sidebar .nav-sub-item,
body.layout-future .sidebar .user-name,
body.layout-future .sidebar .user-role,
body.layout-future .sidebar .sidebar-footer {
    color: var(--brand-ink) !important;
}

body.layout-future .header-brandmark {
    width: 220px;
    height: 72px;
    min-width: 220px;
    max-width: 220px;
    flex-basis: 220px;
}

body.layout-future .header-brandmark img {
    top: 48%;
    width: 205px;
}

@media (max-width: 768px) {
    body.layout-future .header-brandmark {
        width: 176px;
        height: 58px;
        min-width: 176px;
        max-width: 176px;
        flex-basis: 176px;
    }

    body.layout-future .header-brandmark img {
        width: 162px;
    }
}
