/* ============================================
   EFRATA CAPITAL — Design System
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green-dark: #2D4A3E;
    --green-darker: #1F3429;
    --green-light: #3D5A4E;
    --green-muted: rgba(45, 74, 62, 0.08);
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F2;
    --gray-200: #E5E8E6;
    --gray-300: #D1D5D3;
    --gray-400: #A3A9A5;
    --gray-500: #6B7370;
    --gray-600: #4A524E;
    --gray-700: #2D3330;
    --white: #FFFFFF;
    --red-50: #FEF2F2; --red-500: #EF4444; --red-700: #B91C1C;
    --yellow-50: #FFFBEB; --yellow-500: #F59E0B; --yellow-700: #92400E;
    --blue-50: #EFF6FF; --blue-500: #3B82F6; --blue-700: #1D4ED8;
    --success-bg: #D1FAE5; --success-text: #065F46;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px; --radius-sm: 8px; --radius-lg: 16px;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    /* Paleta corporativa expandida */
    --ef-primary: #2D4A3E;
    --ef-primary-light: #3D6354;
    --ef-primary-lighter: #4A7766;
    --ef-primary-bg: rgba(45, 74, 62, 0.06);
    --ef-primary-bg2: rgba(45, 74, 62, 0.10);
    --ef-text-dark: #1E2D27;
    --ef-text-mid: #4A5650;
    --ef-text-light: #7A8A82;
    --ef-text-muted: #A0ADA6;
    --ef-border: #E2E8E5;
    --ef-bg: #F6F8F7;
    --ef-green-accent: #27AE60;
    --ef-amber-accent: #D4940A;
    --ef-red-accent: #C0392B;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50); color: var(--gray-700);
    line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; font-size: 0.9375rem; font-weight: 600; border-radius: 50px;
    border: none; cursor: pointer; transition: all var(--transition); font-family: inherit;
    line-height: 1; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--green-dark); color: var(--white); }
.btn-primary:hover { background: var(--green-darker); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline { background: transparent; color: var(--green-dark); border: 1.5px solid var(--green-dark); }
.btn-outline:hover { background: var(--green-dark); color: var(--white); }
.btn-ghost { background: transparent; color: var(--gray-500); }
.btn-ghost:hover { color: var(--gray-700); background: var(--gray-100); }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.8125rem; }
.btn-lg { padding: 16px 32px; font-size: 1.0625rem; }

/* === TOPBAR === */
.topbar {
    position: fixed; top: 0; left: 0; right: 0; height: 72px;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 32px; z-index: 1000;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 24px; }
.topbar-left { gap: 48px; }

.logo { font-size: 1.375rem; font-weight: 700; color: var(--green-dark); display: flex; align-items: center; gap: 10px; }
.logo-white { color: var(--white); }
.logo-icon {
    width: 36px; height: 36px; background: var(--green-dark); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 22px; height: 22px; color: var(--white); }
.logo-icon-light { background: rgba(255,255,255,0.15); }
.logo-icon-light svg { color: var(--white); }

.topbar-nav { display: flex; gap: 4px; }
.topbar-nav a {
    padding: 8px 16px; color: var(--gray-500); font-size: 0.9375rem; font-weight: 500;
    border-radius: var(--radius-sm); transition: all var(--transition);
}
.topbar-nav a:hover { color: var(--green-dark); background: var(--green-muted); }
.topbar-nav a.active { color: var(--green-dark); background: var(--green-muted); }

.topbar-icon-btn {
    width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--gray-100);
    cursor: pointer; display: flex; align-items: center; justify-content: center; position: relative;
    transition: all var(--transition);
}
.topbar-icon-btn:hover { background: var(--gray-200); }
.topbar-icon-btn svg { width: 20px; height: 20px; color: var(--gray-600); }
.notif-badge {
    position: absolute; top: -2px; right: -2px; width: 18px; height: 18px;
    background: var(--red-500); color: var(--white); font-size: 0.6875rem; font-weight: 700;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.topbar-notifications, .topbar-profile { position: relative; }
.profile-btn {
    display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px;
    border-radius: 50px; border: 1px solid var(--gray-200); background: var(--white);
    cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.profile-btn:hover { border-color: var(--gray-300); box-shadow: var(--shadow-sm); }
.profile-avatar { /* uses .avatar.avatar-sm in markup */ }
.profile-name { font-size: 0.875rem; font-weight: 500; color: var(--gray-700); }

/* Dropdowns */
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); z-index: 1001; display: none; overflow: hidden;
    animation: dropdownIn 0.15s ease;
}
.dropdown-menu.show { display: block; }
.dropdown-right { left: auto; right: 0; }
@keyframes dropdownIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.dropdown-header {
    padding: 14px 16px; border-bottom: 1px solid var(--gray-100);
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 600; font-size: 0.875rem; color: var(--gray-700);
}
.dropdown-header a { color: var(--green-dark); font-weight: 500; font-size: 0.8125rem; }
.dropdown-item {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px;
    font-size: 0.875rem; color: var(--gray-600); transition: all var(--transition);
}
.dropdown-item:hover { background: var(--gray-50); color: var(--gray-700); }
.dropdown-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.dropdown-danger { color: var(--red-500); }
.dropdown-danger:hover { background: var(--red-50); }
.dropdown-divider { height: 1px; background: var(--gray-100); margin: 4px 0; }
.dropdown-empty { padding: 24px 16px; text-align: center; color: var(--gray-400); font-size: 0.875rem; }
.dropdown-notif-item { display: block; padding: 10px 16px; border-bottom: 1px solid var(--gray-100); transition: background var(--transition); }
.dropdown-notif-item:hover { background: var(--gray-50); }
.dropdown-notif-title { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); line-height: 1.3; }
.dropdown-notif-msg { font-size: 0.75rem; color: var(--gray-500); margin-top: 2px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-logout-form { margin: 0; }
.dropdown-logout-btn {
    display: flex; align-items: center; gap: 10px; padding: 12px 16px; width: 100%;
    border: none; background: none; cursor: pointer; font-family: inherit;
    font-size: 0.875rem; color: var(--red-500); transition: all var(--transition); text-align: left;
}
.dropdown-logout-btn:hover { background: var(--red-50); }
.dropdown-logout-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.notif-item { gap: 12px; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.notif-dot-success { background: #10B981; }
.notif-dot-warning { background: #F59E0B; }
.notif-dot-error { background: #EF4444; }
.notif-dot-info { background: #3B82F6; }
.notif-title { font-weight: 500; color: var(--gray-700); margin-bottom: 2px; }
.notif-time { font-size: 0.75rem; color: var(--gray-400); }

/* === LAYOUT === */
.layout { display: flex; padding-top: 72px; min-height: 100vh; }

/* === SIDEBAR === */
/* ====== SIDEBAR - TEMA ESCURO ====== */
.sidebar {
    position: fixed; top: 72px; left: 0; bottom: 0; width: 240px;
    background: var(--ef-primary); border-right: none;
    padding: 24px 16px; overflow-y: auto;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}
.sidebar-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 100%; padding: 8px 16px; margin-bottom: 4px;
    background: none; border: none;
    cursor: pointer; border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.sidebar-toggle:hover { background: rgba(255, 255, 255, 0.08); }
.sidebar-toggle svg { width: 20px; height: 20px; color: rgba(255, 255, 255, 0.4); flex-shrink: 0; transition: color var(--transition); }
.sidebar-toggle:hover svg { color: rgba(255, 255, 255, 0.7); }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
    color: rgba(255, 255, 255, 0.6); text-decoration: none;
    transition: all var(--transition); white-space: nowrap; overflow: hidden;
    border-left: 3px solid transparent;
}
.sidebar-item:hover { color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.08); }
.sidebar-item.active { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); font-weight: 600; border-left: 3px solid #FFFFFF; }
.sidebar-item svg { width: 20px; height: 20px; flex-shrink: 0; color: currentColor; transition: color var(--transition); }
.sidebar-divider { height: 1px; background: rgba(255, 255, 255, 0.1); margin: 12px 0; }
.text-muted { color: var(--gray-400); }
.sidebar-footer { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); transition: opacity 0.2s ease; display: flex; flex-direction: column; gap: 8px; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 8px; overflow: hidden; white-space: nowrap; }
.sidebar-user-avatar { flex-shrink: 0; background: var(--ef-primary-lighter); color: #FFFFFF; }
.sidebar-user-name { font-weight: 600; font-size: 0.875rem; color: #FFFFFF; transition: opacity 0.2s ease; }
.sidebar-user-role { font-size: 0.75rem; color: rgba(255, 255, 255, 0.45); transition: opacity 0.2s ease; }

/* ====== SIDEBAR - LABELS DE SECAO ====== */
.sidebar-section-label {
    margin: 14px 14px 6px; padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase; letter-spacing: 1.5px;
}
.sidebar-section-label:first-of-type { border-top: none; padding-top: 0; }

/* Sidebar collapsed — via classe no html (sem flash) ou na sidebar (apos JS) */
.sidebar.collapsed,
html.sidebar-is-collapsed .sidebar { width: 72px; padding: 12px 10px; }
.sidebar.collapsed .sidebar-toggle,
html.sidebar-is-collapsed .sidebar .sidebar-toggle { padding: 8px; margin-bottom: 4px; }
.sidebar.collapsed .sidebar-item,
html.sidebar-is-collapsed .sidebar .sidebar-item { padding: 10px; justify-content: center; gap: 0; font-size: 0; }
.sidebar.collapsed .sidebar-item svg,
html.sidebar-is-collapsed .sidebar .sidebar-item svg { width: 22px; height: 22px; }
.sidebar.collapsed .sidebar-user-info,
html.sidebar-is-collapsed .sidebar .sidebar-user-info { display: none; }
.sidebar.collapsed .sidebar-user,
html.sidebar-is-collapsed .sidebar .sidebar-user { justify-content: center; padding: 8px 0; }
.sidebar.collapsed .sidebar-footer,
html.sidebar-is-collapsed .sidebar .sidebar-footer { border-top: none; }
/* Tooltip on hover when collapsed */
.sidebar-item { position: relative; }
.sidebar.collapsed .sidebar-item::after,
html.sidebar-is-collapsed .sidebar .sidebar-item::after {
    content: attr(data-tooltip);
    position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
    background: var(--ef-text-dark); color: var(--white); font-size: 0.75rem; font-weight: 500;
    padding: 4px 10px; border-radius: 6px; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity 0.15s ease;
    z-index: 200;
}
/* Hide section labels when collapsed */
.sidebar.collapsed .sidebar-section-label,
html.sidebar-is-collapsed .sidebar .sidebar-section-label { display: none; }
.sidebar.collapsed .sidebar-item:hover::after,
html.sidebar-is-collapsed .sidebar .sidebar-item:hover::after { opacity: 1; }

/* === MAIN === */
.main { flex: 1; margin-left: 240px; padding: 40px 48px; transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar.collapsed ~ .main,
.main.sidebar-collapsed,
html.sidebar-is-collapsed .main { margin-left: 72px; }

/* === PAGE HEADER === */
.page-header { margin-bottom: 32px; }
.page-header-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-title {
    font-size: 1.875rem; font-weight: 700; color: var(--green-dark); margin-bottom: 6px;
    font-family: 'Playfair Display', serif; letter-spacing: -0.02em;
}
.page-subtitle { font-size: 1rem; color: var(--gray-500); margin-bottom: 16px; }
.flow-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: var(--green-muted); border-radius: var(--radius); font-size: 0.875rem; color: var(--gray-600);
}
.flow-badge svg { width: 16px; height: 16px; color: var(--green-dark); }
.flow-step { font-weight: 600; color: var(--green-dark); }
.flow-arrow { color: var(--gray-400); }

/* === STATS === */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.stat-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 24px; display: flex; align-items: center; gap: 16px; transition: all var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon-blue { background: var(--blue-50); }
.stat-icon-blue svg { color: var(--blue-500); }
.stat-icon-green { background: var(--success-bg); }
.stat-icon-green svg { color: var(--success-text); }
.stat-icon-yellow { background: var(--yellow-50); }
.stat-icon-yellow svg { color: var(--yellow-700); }
.stat-icon-red { background: var(--red-50); }
.stat-icon-red svg { color: var(--red-500); }
.stat-info { display: flex; flex-direction: column; }
.stat-number { font-size: 1.75rem; font-weight: 700; color: var(--gray-700); line-height: 1.2; }
.stat-label { font-size: 0.8125rem; color: var(--gray-500); }

/* ====== STAT CARD - DESTAQUE PRINCIPAL ====== */
.stat-card-primary { background: var(--ef-primary); border: none; box-shadow: 0 4px 16px rgba(45, 74, 62, 0.2); }
.stat-card-primary .stat-icon { background: rgba(255, 255, 255, 0.15); }
.stat-card-primary .stat-icon svg { color: #FFFFFF; }
.stat-card-primary .stat-number { color: #FFFFFF; font-size: 32px; font-weight: 800; }
.stat-card-primary .stat-label { color: rgba(255, 255, 255, 0.7); }

/* ====== TREND BADGE ====== */
.stat-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; margin-top: 6px; }
.stat-trend-up { background: rgba(39, 174, 96, 0.1); color: var(--ef-green-accent); }
.stat-trend-neutral { background: rgba(160, 173, 166, 0.15); color: var(--ef-text-muted); }
.stat-card-primary .stat-trend { background: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.85); }

/* === SECTIONS === */
.dashboard-section {
    background: var(--white); border-radius: 14px; padding: 24px; margin-bottom: 20px;
    border: 1px solid var(--ef-border); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.section-title { font-size: 16px; font-weight: 700; color: var(--ef-text-dark); margin: 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-link { color: var(--ef-primary); font-weight: 600; font-size: 13px; text-decoration: none; transition: color var(--transition); }
.section-link:hover { color: var(--ef-primary-lighter); }

/* === PRODUCTS GRID === */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.product-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 24px; cursor: pointer; transition: all 0.25s; position: relative;
}
.product-card:hover { border-color: var(--green-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card.selected { border-color: var(--green-dark); border-width: 2px; box-shadow: 0 0 0 4px rgba(45, 74, 62, 0.1); }
.product-icon {
    width: 48px; height: 48px; background: var(--green-muted); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.product-icon svg { width: 24px; height: 24px; color: var(--green-dark); }
.product-icon-lg { width: 56px; height: 56px; }
.product-icon-lg svg { width: 28px; height: 28px; }
.product-pill {
    position: absolute; top: 16px; right: 16px; padding: 4px 10px;
    background: var(--gray-100); border-radius: 50px; font-size: 0.75rem; font-weight: 500; color: var(--gray-600);
}
.product-pill.highlight { background: var(--green-muted); color: var(--green-dark); }
.product-name { font-size: 1.0625rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.product-desc { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 16px; line-height: 1.5; }
.product-action { font-size: 0.875rem; font-weight: 600; color: var(--green-dark); display: flex; align-items: center; gap: 6px; }
.product-action svg { width: 16px; height: 16px; transition: transform var(--transition); }
.product-card:hover .product-action svg { transform: translateX(4px); }
.product-tag {
    display: inline-block; padding: 3px 10px; background: var(--green-muted);
    color: var(--green-dark); border-radius: 50px; font-size: 0.8125rem; font-weight: 500;
}

/* === FORMS === */
.form-section { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-bottom: 48px; }
.form-container { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; }
.form-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.form-title { font-size: 1.25rem; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.form-desc { font-size: 0.875rem; color: var(--gray-500); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--gray-600); margin-bottom: 8px; }
.form-label-row { display: flex; align-items: center; justify-content: space-between; }
.form-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 6px; display: block; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 12px 16px; font-size: 0.9375rem; color: var(--gray-700);
    background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
    transition: all var(--transition); font-family: inherit;
}
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: var(--gray-300); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none; border-color: var(--green-dark);
    box-shadow: 0 0 0 3px rgba(45, 74, 62, 0.1); background: var(--white);
}
.form-input:disabled { opacity: 0.6; cursor: not-allowed; }
.form-input.input-error, .form-select.input-error, .radio-group.input-error { border-color: var(--error) !important; box-shadow: 0 0 0 2px rgba(239,68,68,0.15); }
.radio-group.input-error { border: 1px solid var(--error); border-radius: 8px; padding: 4px; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.form-divider { height: 1px; background: var(--gray-200); margin: 28px 0; }
.form-section-title { font-size: 0.875rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.form-actions-wrap { flex-wrap: wrap; }
.form-actions .btn { flex: 1; }
.form-check-row { margin-bottom: 24px; }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.875rem; color: var(--gray-600); }
.form-check input { accent-color: var(--green-dark); }
.form-product { display: none; }
.form-product.active { display: block; }
.input-icon-wrapper { position: relative; width: 100%; display: block; }
.input-icon-wrapper > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gray-400); pointer-events: none; }
.input-icon-wrapper .form-input { padding-left: 42px; }
.input-icon-wrapper:has(.input-toggle-password) .form-input { padding-right: 44px; }
.input-toggle-password { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--gray-400); padding: 4px; }
.input-toggle-password:hover { color: var(--gray-600); }
.input-toggle-password svg { width: 18px; height: 18px; }
.password-requirements { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; }
.password-requirements .req { font-size: 0.75rem; color: var(--gray-400); transition: all var(--transition); }
.password-requirements .req.valid { color: var(--success-text); }

/* === CONSENT / LGPD === */
.form-group-consent { margin-bottom: 16px; }
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8125rem; color: var(--gray-600); cursor: pointer; line-height: 1.5; }
.consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--green-dark); }
.consent-link { color: var(--green-dark); font-weight: 600; text-decoration: underline; }
.consent-link:hover { color: var(--green-darker); }

/* === SUMMARY CARD === */
.summary-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 24px; position: sticky; top: 112px;
}
.summary-title { font-size: 1rem; font-weight: 600; color: var(--gray-700); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.summary-title svg { width: 18px; height: 18px; color: var(--green-dark); }
.summary-item { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.summary-item:last-child { border-bottom: none; }
.summary-label { font-size: 0.8125rem; color: var(--gray-500); margin-bottom: 4px; }
.summary-value { font-size: 0.9375rem; font-weight: 500; color: var(--gray-700); }
.summary-product { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 20px; }
.summary-product-icon { width: 40px; height: 40px; background: var(--white); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); }
.summary-product-icon svg { width: 20px; height: 20px; color: var(--green-dark); }
.summary-product-name { font-weight: 600; color: var(--gray-700); }

/* === TABLE === */
.table-section { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.table-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.table-title { font-size: 1.0625rem; font-weight: 600; color: var(--gray-700); }
.table-count { font-size: 0.875rem; color: var(--gray-500); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 14px 24px; font-size: 0.75rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
td { padding: 16px 24px; font-size: 0.9375rem; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }
.table-id { font-weight: 600; color: var(--gray-400); font-size: 0.8125rem; }
.table-empty { text-align: center; padding: 48px 24px !important; color: var(--gray-500); }
.table-empty p { margin-bottom: 8px; }
.table-actions { display: flex; gap: 6px; }
.table-action-btn { width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.table-action-btn svg { width: 16px; height: 16px; color: var(--gray-500); }
.table-action-btn:hover { border-color: var(--green-dark); background: var(--green-muted); }
.table-action-btn:hover svg { color: var(--green-dark); }
.table-action-danger:hover { border-color: var(--red-500); background: var(--red-50); }
.table-action-danger:hover svg { color: var(--red-500); }

/* Status pills */
.status-pill { display: inline-flex; padding: 4px 12px; border-radius: 50px; font-size: 0.8125rem; font-weight: 500; }
.status-rascunho { background: var(--gray-100); color: var(--gray-600); }
.status-enviado { background: #DBEAFE; color: #1E40AF; }
.status-analise { background: #FEF3C7; color: #92400E; }
.status-pendente { background: #FEE2E2; color: #991B1B; }
.status-aprovado { background: #D1FAE5; color: #065F46; }
.status-recusado { background: var(--gray-200); color: var(--gray-600); }
.status-pendente-user { background: #FEF3C7; color: #92400E; }
.status-active-user { background: #D1FAE5; color: #065F46; }
.status-rejected-user { background: #FEE2E2; color: #991B1B; }

/* Pagination & Filters */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--gray-100); }
.pagination-btn { padding: 8px 16px; font-size: 0.875rem; font-weight: 500; color: var(--green-dark); border-radius: var(--radius-sm); transition: all var(--transition); }
.pagination-btn:hover { background: var(--green-muted); }
.pagination-info { font-size: 0.875rem; color: var(--gray-500); }
.filters-bar { margin-bottom: 24px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 16px 20px; }
.filters-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filter-search { max-width: 280px; }
.filter-select { max-width: 200px; }

/* ====== ACOES RAPIDAS - NOVO LAYOUT ====== */
.quick-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-action-item {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px;
    text-decoration: none; transition: all 0.25s ease; background: var(--white);
    border: 1px solid var(--ef-border); cursor: pointer; color: var(--ef-text-dark);
}
.quick-action-item:hover { border-color: var(--ef-primary); background: var(--ef-primary-bg); transform: translateX(4px); box-shadow: 0 2px 8px rgba(45, 74, 62, 0.08); }
.quick-action-item .qa-icon { width: 44px; min-width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--ef-primary-bg2); color: var(--ef-primary); }
.quick-action-item .qa-icon svg { width: 20px; height: 20px; stroke: var(--ef-primary); }
.quick-action-item .qa-content { flex: 1; min-width: 0; }
.quick-action-item .qa-title { font-weight: 600; font-size: 14px; color: var(--ef-text-dark); margin-bottom: 2px; }
.quick-action-item .qa-desc { font-size: 12px; color: var(--ef-text-muted); font-weight: 400; }
.quick-action-item .qa-arrow { color: var(--ef-text-muted); transition: all 0.2s; flex-shrink: 0; font-size: 20px; line-height: 1; }
.quick-action-item:hover .qa-arrow { color: var(--ef-primary); transform: translateX(2px); }

/* ====== AVATAR DO CLIENTE NA TABELA ====== */
.client-cell { display: flex; align-items: center; gap: 10px; }
.client-avatar { width: 34px; min-width: 34px; height: 34px; border-radius: 8px; background: var(--ef-primary); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex-shrink: 0; }

/* ====== BOTTOM GRID (2 colunas) ====== */
.dashboard-bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.dashboard-bottom-grid .dashboard-section { margin-bottom: 0; }

/* ====== GRAFICO DE BARRAS ====== */
.chart-bars { display: flex; flex-direction: row; align-items: flex-end; gap: 10px; height: 150px; width: 100%; justify-content: space-between; padding: 16px 8px 0; }
.chart-bar-col { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.chart-bar { width: 100%; max-width: 40px; border-radius: 4px 4px 0 0; transition: all 0.3s; cursor: pointer; }
.chart-bar:hover { opacity: 0.8; }
.chart-bar-highlight { background: var(--ef-primary); }
.chart-bar-normal { background: rgba(45, 74, 62, 0.2); }
.chart-bar-label { font-size: 11px; color: var(--ef-text-muted); font-weight: 500; }

/* ====== FEED DE ATIVIDADE ====== */
.activity-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F2F4F3; }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 8px; min-width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.activity-dot-primary { background: var(--ef-primary); }
.activity-dot-success { background: var(--ef-green-accent); }
.activity-dot-warning { background: var(--ef-amber-accent); }
.activity-text { flex: 1; font-size: 13px; color: var(--ef-text-mid); line-height: 1.4; }
.activity-text strong { color: var(--ef-text-dark); font-weight: 600; }
.activity-time { font-size: 12px; color: var(--ef-text-muted); white-space: nowrap; flex-shrink: 0; margin-left: auto; }

/* === PRODUCT DETAIL (Produtos page) === */
.products-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.product-detail-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; transition: all var(--transition); }
.product-detail-card:hover { box-shadow: var(--shadow-md); }
.product-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.product-detail-name { font-size: 1.25rem; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.product-detail-desc { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.6; margin-bottom: 24px; }
.product-detail-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.spec-item { background: var(--gray-50); padding: 12px 16px; border-radius: var(--radius-sm); }
.spec-label { display: block; font-size: 0.75rem; color: var(--gray-500); margin-bottom: 4px; }
.spec-value { font-size: 1rem; font-weight: 600; color: var(--green-dark); }

/* === SUPPORT === */
.support-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 40px; }
.faq-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 24px; }
.faq-question { font-size: 0.9375rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.faq-answer { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }
.tickets-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 900px) { .tickets-list { grid-template-columns: 1fr; } }
.ticket-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 20px; transition: all var(--transition); }
.ticket-card:hover { box-shadow: var(--shadow-sm); }
.ticket-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ticket-id { font-weight: 600; color: var(--gray-400); font-size: 0.8125rem; }
.ticket-subject { font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.ticket-preview { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 12px; }
.ticket-footer { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--gray-400); }
.ticket-priority { font-weight: 500; }
.priority-low { color: var(--gray-400); }
.priority-normal { color: var(--blue-500); }
.priority-high { color: var(--yellow-500); }
.priority-urgent { color: var(--red-500); }
.empty-state-sm { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--gray-500); }

/* === SUPPORT PAGE — espaçamento compacto para caber sem scroll === */
.page-support .page-header { margin-bottom: 12px; }
.page-support .section-title { margin-bottom: 12px; }
.page-support .faq-grid { margin-bottom: 0; }
.page-support .faq-card { padding: 16px 20px; }
.page-support .form-container { padding: 20px 24px; }
.page-support .form-group { margin-bottom: 12px; }

/* === PROFILE === */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.profile-avatar-section { display: flex; align-items: center; gap: 20px; margin-bottom: 8px; }
.profile-avatar-lg { /* uses .avatar.avatar-lg in markup */ }
.role-badge { display: inline-block; padding: 3px 10px; background: var(--green-muted); color: var(--green-dark); border-radius: 50px; font-size: 0.75rem; font-weight: 600; margin-top: 4px; }
.text-muted { color: var(--gray-500); font-size: 0.875rem; }
.info-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: 0.875rem; border-bottom: 1px solid var(--gray-100); }
.info-row:last-child { border-bottom: none; }
.info-row span:first-child { color: var(--gray-500); }
.info-row span:last-child { font-weight: 500; }

/* === NOTIFICATIONS === */
.notifications-list { display: flex; flex-direction: column; gap: 8px; }
.notification-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); transition: all var(--transition); }
.notification-card:hover { box-shadow: var(--shadow-sm); }
.notification-card.unread { border-left: 3px solid var(--green-dark); background: var(--green-muted); }
.notification-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notification-icon svg { width: 20px; height: 20px; }
.notification-icon-success { background: var(--success-bg); }
.notification-icon-success svg { color: var(--success-text); }
.notification-icon-warning { background: var(--yellow-50); }
.notification-icon-warning svg { color: var(--yellow-700); }
.notification-icon-error { background: var(--red-50); }
.notification-icon-error svg { color: var(--red-500); }
.notification-icon-info { background: var(--blue-50); }
.notification-icon-info svg { color: var(--blue-500); }
.notification-content h4 { font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.notification-content p { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 6px; }
.notification-time { font-size: 0.75rem; color: var(--gray-400); }
.empty-state { text-align: center; padding: 80px 24px; }
.empty-state svg { margin-bottom: 16px; }
.empty-state h3 { font-size: 1.125rem; color: var(--gray-600); margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); }

/* === FLASH MESSAGES === */
.flash-message {
    position: fixed; top: 80px; right: 24px; z-index: 9999;
    display: flex; align-items: center; gap: 10px; padding: 14px 20px;
    border-radius: var(--radius); font-size: 0.9375rem; font-weight: 500;
    box-shadow: var(--shadow-lg); animation: flashIn 0.3s ease, flashOut 0.3s ease 4s forwards;
    max-width: 480px;
}
.flash-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.flash-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: inherit; opacity: 0.6; margin-left: 8px; }
.flash-success { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
.flash-error { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.flash-warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.flash-info { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
@keyframes flashIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes flashOut { to { opacity: 0; transform: translateX(40px); } }

/* ALERTS (inline) */
.alert { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.875rem; margin-bottom: 20px; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; }
.alert-error { background: var(--red-50); color: var(--red-700); border: 1px solid #FECACA; }
.alert-success { background: var(--success-bg); color: var(--success-text); border: 1px solid #A7F3D0; }
.alert-info { background: var(--blue-50); color: var(--blue-700); border: 1px solid #BFDBFE; }

/* === MODAL === */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 2000; align-items: center; justify-content: center; animation: fadeIn 0.2s ease; display: none; }
.modal-overlay.show { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: 90%; max-width: 560px; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: modalIn 0.25s ease; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--gray-200); }
.modal-title { font-size: 1.125rem; font-weight: 600; color: var(--gray-700); }
.modal-close { width: 32px; height: 32px; border-radius: 50%; border: none; background: var(--gray-100); cursor: pointer; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; color: var(--gray-500); transition: all var(--transition); }
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 24px; }
.modal-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.9375rem; }
.modal-detail-row:last-child { border-bottom: none; }
.modal-detail-label { color: var(--gray-500); }
.modal-detail-value { font-weight: 500; color: var(--gray-700); }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* === AUTH PAGES === */
.auth-body { background: var(--white); }
.auth-container { display: flex; min-height: 100vh; }
.auth-left { width: 50%; position: relative; overflow: hidden; }
.auth-right { width: 50%; display: flex; align-items: center; justify-content: center; padding: 48px; }
.auth-brand { height: 100%; position: relative; }
.auth-brand-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--green-darker) 0%, var(--green-dark) 50%, var(--green-light) 100%); }
.auth-brand-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 64px; color: var(--white); }
.auth-headline { font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin: 40px 0 16px; letter-spacing: -0.02em; }
.auth-tagline { font-size: 1.0625rem; color: rgba(255,255,255,0.75); line-height: 1.6; max-width: 440px; }
.auth-stats { display: flex; gap: 32px; margin-top: 48px; }
.auth-stat { display: flex; flex-direction: column; }
.auth-stat-number { font-size: 1.75rem; font-weight: 700; }
.auth-stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.6); }
.auth-features { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.auth-feature { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: rgba(255,255,255,0.85); }
.auth-feature svg { width: 20px; height: 20px; color: rgba(255,255,255,0.6); flex-shrink: 0; }
.auth-form-wrapper { width: 100%; max-width: 420px; }
.auth-form-header { margin-bottom: 32px; }
.auth-form-title { font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.auth-form-subtitle { font-size: 0.9375rem; color: var(--gray-500); }
.auth-form { margin-bottom: 24px; display: flex; flex-direction: column; gap: 0; }
.auth-form .form-group { margin-bottom: 16px; }
.auth-form .form-check-row { margin-bottom: 20px; }
.auth-form .btn-full { padding: 11px 24px; border-radius: var(--radius-sm); font-size: 0.875rem; }
.auth-form .form-input { padding: 10px 16px; font-size: 0.875rem; }
.auth-form .input-icon-wrapper .form-input { padding-left: 40px; }
.auth-form .input-icon-wrapper:has(.input-toggle-password) .form-input { padding-right: 44px; }
.auth-form .input-icon-wrapper > svg { width: 16px; height: 16px; left: 13px; }
.auth-switch { text-align: center; font-size: 0.9375rem; color: var(--gray-500); }
.auth-switch a { color: var(--green-dark); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-demo-info { margin-top: 24px; padding: 16px; background: var(--gray-50); border-radius: var(--radius-sm); font-size: 0.8125rem; color: var(--gray-500); line-height: 1.8; }
.auth-demo-info strong { color: var(--gray-600); }

/* === PUBLIC PAGES === */
.public-topbar { position: fixed; top: 0; left: 0; right: 0; height: 72px; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; padding: 0 48px; z-index: 1000; }
.public-main { padding-top: 72px; max-width: 1200px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.hero-section { padding: 80px 0 64px; text-align: center; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: var(--gray-700); line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero-accent { color: var(--green-dark); }
.hero-desc { font-size: 1.125rem; color: var(--gray-500); max-width: 640px; margin: 0 auto; line-height: 1.7; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.about-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; text-align: center; transition: all var(--transition); }
.about-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.about-card h3 { font-size: 1.125rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.about-card p { font-size: 0.9375rem; color: var(--gray-500); line-height: 1.6; }
.about-icon { width: 56px; height: 56px; background: var(--green-muted); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.about-icon svg { width: 28px; height: 28px; color: var(--green-dark); }
.section-title-center { text-align: center; font-family: 'Playfair Display', serif; font-size: 1.75rem; font-weight: 700; color: var(--gray-700); margin-bottom: 40px; }
.numbers-section { padding: 64px 0; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.number-item { text-align: center; }
.number-value { display: block; font-size: 2.25rem; font-weight: 700; color: var(--green-dark); margin-bottom: 4px; }
.number-label { font-size: 0.9375rem; color: var(--gray-500); }
.cta-section { text-align: center; padding: 64px 0 80px; }
.cta-section h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--gray-700); margin-bottom: 12px; }
.cta-section p { font-size: 1.0625rem; color: var(--gray-500); margin-bottom: 24px; }
.public-footer { text-align: center; padding: 32px; border-top: 1px solid var(--gray-200); font-size: 0.875rem; color: var(--gray-400); }
.public-footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 12px; }
.public-footer-links a { color: var(--gray-500); text-decoration: underline; transition: color var(--transition); }
.public-footer-links a:hover { color: var(--green-dark); }

/* === LEGAL PAGES === */
.legal-content { max-width: 800px; margin: 0 auto; padding: 0 24px 48px; }
.legal-block { margin-bottom: 32px; }
.legal-block h2 { font-size: 1.125rem; font-weight: 600; color: var(--gray-700); margin-bottom: 12px; }
.legal-block p { color: var(--gray-600); margin-bottom: 8px; line-height: 1.7; }
.legal-block ul { list-style: disc; padding-left: 24px; color: var(--gray-600); margin-bottom: 8px; }
.legal-block li { margin-bottom: 6px; line-height: 1.6; }

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .products-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-actions-grid { grid-template-columns: 1fr; }
    .dashboard-bottom-grid { grid-template-columns: 1fr; }
    .form-section, .profile-grid, .support-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .sidebar { display: none; }
    .main { margin-left: 0; padding: 32px 24px; }
    .topbar, .public-topbar { padding: 0 20px; }
    .topbar-nav { display: none; }
    .form-row, .form-row-3 { grid-template-columns: 1fr; }
    .about-grid, .faq-grid { grid-template-columns: 1fr; }
    .products-detail-grid { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-right { width: 100%; padding: 32px 24px; }
    .public-main { padding-left: 24px; padding-right: 24px; }
    .support-layout { grid-template-columns: 1fr; }
    .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pfpj-selector { grid-template-columns: 1fr; }
    .products-grid, .stats-grid { grid-template-columns: 1fr; }
    .page-title { font-size: 1.625rem; }
    .hero-title { font-size: 2rem; }
    .hero-section { padding: 48px 0 32px; }
    .hero-desc { font-size: 1rem; }
    .form-container { padding: 24px 20px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    .form-input, .form-select { min-height: 44px; font-size: 1rem; }
    .table-section { overflow-x: auto; }
    table { min-width: 600px; }
    .page-header-row { flex-direction: column; }
    .filters-form { flex-direction: column; }
    .filter-search, .filter-select { max-width: 100%; }
    .public-topbar { padding: 0 16px; }
    .public-main { padding-left: 16px; padding-right: 16px; }
    .numbers-grid { grid-template-columns: 1fr; }
    .modal { width: 95%; max-height: 85vh; }
    .modal-body { padding: 16px; }
    .dropdown-menu { min-width: 200px; right: 0; left: auto; }
    .auth-headline { font-size: 1.75rem; }
}

/* ============================================
   UTILITY CLASSES (CSP-safe inline style replacements)
   ============================================ */
.hidden { display: none; }
.d-inline { display: inline; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.gap-12 { gap: 12px; }
.justify-center { justify-content: center; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.font-semibold { font-weight: 600; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.8125rem; }
.text-md { font-size: 1.0625rem; }
.leading-relaxed { line-height: 1.6; }
.color-gray-400 { color: var(--gray-400); }
.color-gray-500 { color: var(--gray-500); }
.color-gray-700 { color: var(--gray-700); }
.min-h-150 { min-height: 150px; }
.min-h-100 { min-height: 100px; }

/* Component-specific classes */
.empty-state { text-align: center; padding: 48px 24px; color: var(--gray-500); }
.delete-modal { max-width: 420px; }
.delete-modal-body { text-align: center; padding: 32px 24px; }
.btn-danger { background: var(--red-500); color: var(--white); }
.alert-reject { background: var(--red-50); color: var(--red-700); border: 1px solid var(--red-500); }
.admin-stats-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
.profile-name-text { font-weight: 600; font-size: 1.125rem; }

/* Avatar base + sizes */
.avatar {
    border-radius: 50%; background: var(--green-dark); color: var(--white);
    font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; font-size: 0.8125rem; }
.avatar-md { width: 36px; height: 36px; font-size: 0.8125rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.5rem; }

/* Hover lift effect */
.hover-lift { transition: all var(--transition); }
.hover-lift:hover { transform: translateY(-2px); }

/* Grid span helper */
.form-col-span-2 { grid-column: span 2; }

/* ============================================
   HOME EQUITY WIZARD
   ============================================ */
.he-wizard-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.he-wizard-main { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; }

/* Stepper */
.he-stepper {
    display: flex; align-items: center; gap: 0;
    margin-bottom: 32px; padding: 20px 24px;
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg); overflow-x: auto;
}
.he-step-indicator {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: 50px;
    font-size: 0.8125rem; font-weight: 500; color: var(--gray-400);
    white-space: nowrap; cursor: pointer; flex-shrink: 0;
    transition: all 0.3s;
}
.he-step-indicator:hover { color: var(--gray-600); }
.he-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    background: var(--gray-100); color: var(--gray-400);
    transition: all 0.3s; flex-shrink: 0;
}
.he-step-connector {
    width: 32px; height: 2px; background: var(--gray-200);
    flex-shrink: 0; margin: 0 4px; transition: background 0.3s;
}
.he-step-active { color: var(--green-dark); font-weight: 600; }
.he-step-active .he-step-num { background: var(--green-dark); color: var(--white); }
.he-step-done .he-step-num { background: #D1FAE5; color: #065F46; }
.he-step-done { color: #065F46; }
.he-step-connector.done { background: #D1FAE5; }

/* Step panels */
.he-step-panel { display: none; }
.he-step-panel.active { display: block; animation: fadeIn 0.35s ease; }

/* Radio pills */
.he-radio-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.he-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; border: 1.5px solid var(--gray-200);
    border-radius: 50px; cursor: pointer; font-size: 0.875rem;
    font-weight: 500; color: var(--gray-600);
    transition: all var(--transition); user-select: none;
}
.he-pill:hover { border-color: var(--gray-300); }
.he-pill input[type="radio"],
.he-pill input[type="checkbox"] { display: none; }
.he-pill-dot {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--gray-300); transition: all var(--transition);
    position: relative; flex-shrink: 0;
}
.he-pill.selected { border-color: var(--green-dark); color: var(--green-dark); background: rgba(45, 74, 62, 0.08); }
.he-pill.selected .he-pill-dot { border-color: var(--green-dark); }
.he-pill.selected .he-pill-dot::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--green-dark);
}

/* Conditional blocks */
.he-conditional {
    padding: 20px; margin-top: 12px; margin-bottom: 20px;
    background: var(--gray-50); border: 1px dashed var(--gray-200);
    border-radius: var(--radius); animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Participant cards */
.he-participant-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
    position: relative;
}
.he-participant-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.he-participant-title {
    font-size: 0.875rem; font-weight: 600; color: var(--gray-700);
    display: flex; align-items: center; gap: 8px;
}
.he-participant-badge {
    display: inline-flex; padding: 2px 10px; border-radius: 50px;
    background: #EFF6FF; color: #1D4ED8;
    font-size: 0.6875rem; font-weight: 600;
}
.he-btn-remove-participant {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--gray-200); background: var(--white);
    cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: all var(--transition);
}
.he-btn-remove-participant:hover { border-color: var(--red-500); background: var(--red-50); }
.he-btn-remove-participant svg { width: 14px; height: 14px; color: var(--gray-400); }
.he-btn-remove-participant:hover svg { color: var(--red-500); }

.he-btn-add-participant {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; font-size: 0.875rem; font-weight: 600;
    color: var(--green-dark); background: rgba(45, 74, 62, 0.08);
    border: 1.5px dashed var(--green-dark); border-radius: var(--radius);
    cursor: pointer; transition: all var(--transition); font-family: inherit;
}
.he-btn-add-participant:hover { background: rgba(45, 74, 62, 0.15); }
.he-btn-add-participant svg { width: 16px; height: 16px; }

/* Section label for wizard */
.he-section-label {
    font-size: 0.8125rem; font-weight: 600; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
}
.he-section-label svg { width: 16px; height: 16px; color: var(--green-dark); }

/* Consent labels */
.he-consent-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.8125rem; color: var(--gray-600);
    cursor: pointer; line-height: 1.5; margin-bottom: 16px;
}
.he-consent-label input[type="checkbox"] {
    margin-top: 3px; flex-shrink: 0;
    width: 16px; height: 16px; accent-color: var(--green-dark);
}

/* Input prefix (R$) */
.he-input-prefix { position: relative; }
.he-input-prefix::before {
    content: attr(data-prefix);
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    font-size: 0.9375rem; color: var(--gray-400); pointer-events: none; font-weight: 500;
}
.he-input-prefix .form-input { padding-left: 42px; }

/* Navigation buttons */
.he-nav-buttons, .he-submit-buttons {
    display: flex; gap: 12px; margin-top: 32px;
    padding-top: 24px; border-top: 1px solid var(--gray-200);
}

/* Summary progress */
.he-summary-progress { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.he-progress-label {
    display: flex; justify-content: space-between; font-size: 0.75rem;
    color: var(--gray-500); margin-bottom: 8px;
}
.he-progress-bar { height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.he-progress-fill {
    height: 100%; background: var(--green-dark); border-radius: 3px;
    transition: width 0.5s ease; width: 0%;
}

/* Validation error */
.form-input-error { border-color: var(--red-500); box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1); }

/* Responsive wizard */
@media (max-width: 1200px) {
    .he-wizard-layout { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .he-stepper { gap: 0; padding: 16px; }
    .he-step-indicator { padding: 6px 10px; font-size: 0.75rem; }
    .he-step-connector { width: 16px; }
}
@media (max-width: 600px) {
    .he-wizard-main { padding: 24px 20px; }
    .he-nav-buttons, .he-submit-buttons { flex-direction: column; }
    .he-nav-buttons .btn, .he-submit-buttons .btn { width: 100%; }
    .he-radio-pills { flex-direction: column; }
    .he-step-indicator span:not(.he-step-num) { display: none; }
}

/* ==========================================
   NEW PROPOSAL FORM - PF/PJ Selector, Product Grid, Wizard Engine
   ========================================== */

/* PF/PJ Selector */
.pfpj-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 40px; }
.pfpj-card { background: var(--white); border: 1.5px solid var(--gray-200); border-radius: var(--radius-lg); padding: 48px 40px; cursor: pointer; transition: all 0.35s ease; text-align: center; position: relative; overflow: hidden; }
.pfpj-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--green-dark); transform: scaleX(0); transition: transform 0.35s ease; }
.pfpj-card:hover { border-color: var(--gray-300); box-shadow: var(--shadow-lg); }
.pfpj-card:hover::after { transform: scaleX(1); }
.pfpj-icon { width: 64px; height: 64px; background: var(--gray-50); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; transition: all 0.35s ease; }
.pfpj-icon svg { width: 28px; height: 28px; color: var(--green-dark); transition: all 0.35s ease; }
.pfpj-card:hover .pfpj-icon { background: var(--green-dark); }
.pfpj-card:hover .pfpj-icon svg { color: var(--white); }
.pfpj-title { font-size: 1.25rem; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.pfpj-desc { font-size: 0.875rem; color: var(--gray-400); line-height: 1.6; max-width: 280px; margin: 0 auto 16px; }
.pfpj-action { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--green-dark); }
.pfpj-action svg { width: 16px; height: 16px; }

/* Products Panel */
.products-panel { display: none; margin-bottom: 40px; }
.products-panel.show { display: block; }
.products-panel-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 50px; font-size: 0.8125rem; font-weight: 600; margin-bottom: 20px; }
.pf-badge { background: rgba(29, 78, 216, 0.06); color: #1D4ED8; }
.pj-badge { background: rgba(22, 101, 52, 0.06); color: #166534; }
.btn-back-pfpj { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; font-size: 0.875rem; font-weight: 500; color: var(--gray-400); cursor: pointer; transition: all 0.2s; font-family: inherit; padding: 0; margin-bottom: 20px; }
.btn-back-pfpj svg { width: 16px; height: 16px; }
.btn-back-pfpj:hover { color: var(--green-dark); }
.products-row-label { font-size: 0.6875rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 16px; margin-top: 4px; transition: all 0.35s ease; overflow: hidden; max-height: 30px; opacity: 1; }

/* Product Cards */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; transition: all 0.35s ease; }
.product-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 28px 24px; cursor: pointer; transition: all 0.35s ease; position: relative; display: flex; flex-direction: column; align-items: flex-start; opacity: 1; transform-origin: center; }
.product-card:hover { border-color: var(--green-dark); box-shadow: 0 2px 12px rgba(45, 74, 62, 0.08); }
.product-icon { width: 40px; height: 40px; background: var(--gray-50); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; transition: all 0.3s ease; }
.product-icon svg { width: 20px; height: 20px; color: var(--green-dark); transition: color 0.3s ease; }
.product-card:hover .product-icon { background: rgba(45, 74, 62, 0.08); }
.product-name { font-size: 0.9375rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; letter-spacing: -0.01em; }
.product-desc { font-size: 0.8125rem; color: var(--gray-400); line-height: 1.5; }
.product-action { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 0.8125rem; font-weight: 600; color: var(--green-dark); }
.product-action svg { width: 14px; height: 14px; }
.product-pill { position: absolute; top: 12px; right: 12px; padding: 3px 8px; background: rgba(45, 74, 62, 0.08); color: var(--green-dark); border-radius: 4px; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.3px; }
.product-card.hiding { opacity: 0; transform: scale(0.95); pointer-events: none; }
.products-row-label.hiding { opacity: 0; max-height: 0; margin: 0; padding: 0; }
.products-grid.collapsed { display: none; }

/* Selected Hero Banner */
.selected-hero { display: none; align-items: center; gap: 20px; padding: 20px 24px; margin-bottom: 28px; background: var(--white); border: 1.5px solid var(--green-dark); border-radius: var(--radius); box-shadow: 0 2px 12px rgba(45, 74, 62, 0.06); }
.selected-hero.show { display: flex; animation: heroIn 0.4s ease forwards; }
.hero-icon { width: 48px; height: 48px; background: var(--green-dark); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-icon svg { width: 22px; height: 22px; color: var(--white); }
.hero-info { flex: 1; }
.hero-name { font-size: 1.125rem; font-weight: 700; color: var(--green-dark); letter-spacing: -0.01em; }
.hero-sub { font-size: 0.8125rem; color: var(--gray-400); margin-top: 2px; }
.hero-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--gray-200); border-radius: 50px; padding: 8px 18px; font-size: 0.8125rem; font-weight: 600; color: var(--gray-500); cursor: pointer; transition: all 0.25s; font-family: inherit; flex-shrink: 0; }
.hero-back svg { width: 14px; height: 14px; }
.hero-back:hover { border-color: var(--green-dark); color: var(--green-dark); background: rgba(45, 74, 62, 0.08); }
@keyframes heroIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Stepper */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: 32px; padding: 20px 24px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow-x: auto; scroll-margin-top: 88px; }
.step-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 50px; font-size: 0.8125rem; font-weight: 500; color: var(--gray-400); white-space: nowrap; transition: all 0.3s; cursor: pointer; flex-shrink: 0; }
.step-item:hover { color: var(--gray-600); }
.step-number { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; background: var(--gray-100); color: var(--gray-400); transition: all 0.3s; flex-shrink: 0; }
.step-item.active { color: var(--green-dark); font-weight: 600; }
.step-item.active .step-number { background: var(--green-dark); color: var(--white); }
.step-item.completed .step-number { background: #D1FAE5; color: #065F46; }
.step-item.completed { color: #065F46; }
.step-connector { width: 32px; height: 2px; background: var(--gray-200); flex-shrink: 0; margin: 0 4px; transition: background 0.3s; }
.step-connector.done { background: #D1FAE5; }

/* Form Layout (2 column: form + summary) */
.form-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.form-container { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 32px; }
.form-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); }
.form-title { font-size: 1.25rem; font-weight: 600; color: var(--gray-700); margin-bottom: 4px; }
.form-desc { font-size: 0.875rem; color: var(--gray-500); }
.form-section-label { font-size: 0.8125rem; font-weight: 600; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.form-section-label svg { width: 16px; height: 16px; color: var(--green-dark); }
.form-label .req { color: var(--red-500); margin-left: 2px; }
.form-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 6px; display: block; }
.form-divider { height: 1px; background: var(--gray-200); margin: 28px 0; }
.form-actions { display: flex; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--gray-200); }
.input-prefix { position: relative; }
.input-prefix::before { content: attr(data-prefix); position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 0.9375rem; color: var(--gray-400); pointer-events: none; font-weight: 500; }
.input-prefix .form-input { padding-left: 42px; }

/* Radio Options (pill style) */
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border: 1.5px solid var(--gray-200); border-radius: 50px; cursor: pointer; font-size: 0.875rem; font-weight: 500; color: var(--gray-600); transition: all 0.2s; user-select: none; }
.radio-option:hover { border-color: var(--gray-300); }
.radio-option input { display: none; }
.radio-option.selected { border-color: var(--green-dark); color: var(--green-dark); background: rgba(45, 74, 62, 0.08); }
.radio-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gray-300); transition: all 0.2s; position: relative; flex-shrink: 0; }
.radio-option.selected .radio-dot { border-color: var(--green-dark); }
.radio-option.selected .radio-dot::after { content: ''; position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--green-dark); }

/* Conditional Block */
.conditional-block { display: none; padding: 20px; margin-top: 12px; margin-bottom: 20px; background: var(--gray-50); border: 1px dashed var(--gray-200); border-radius: var(--radius); animation: slideDown 0.3s ease; }
.conditional-block.show { display: block; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* Consent Labels */
.consent-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.8125rem; color: var(--gray-600); cursor: pointer; line-height: 1.5; margin-bottom: 16px; }
.consent-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; width: 16px; height: 16px; accent-color: var(--green-dark); }

/* Summary Card */
.summary-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 112px; }
.summary-title { font-size: 1rem; font-weight: 600; color: var(--gray-700); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.summary-title svg { width: 18px; height: 18px; color: var(--green-dark); }
.summary-product { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 20px; }
.summary-product-icon { width: 40px; height: 40px; background: var(--white); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; border: 1px solid var(--gray-200); }
.summary-product-icon svg { width: 20px; height: 20px; color: var(--green-dark); }
.summary-product-name { font-weight: 600; color: var(--gray-700); font-size: 0.9375rem; }
.summary-product-type { font-size: 0.75rem; color: var(--gray-400); }
.summary-item { padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.summary-item:last-child { border-bottom: none; }
.summary-label { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 2px; }
.summary-value { font-size: 0.875rem; font-weight: 500; color: var(--gray-700); }
.summary-value.empty { color: var(--gray-400); font-style: italic; font-weight: 400; }
.summary-progress { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.progress-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--gray-500); margin-bottom: 8px; }
.progress-bar { height: 6px; background: var(--gray-100); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--green-dark); border-radius: 3px; transition: width 0.5s ease; width: 0%; }

/* Step Panels */
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeIn 0.35s ease; }

/* Lance Calculator */
.lance-result { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm); padding: 16px; margin-top: 16px; }
.lance-result-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem; }
.lance-result-row:last-child { border-bottom: none; }
.lance-result-label { color: var(--gray-500); }
.lance-result-value { font-weight: 600; color: var(--green-dark); }

/* Form Wrap */
.form-wrap { display: none; }
.form-wrap.show { display: block; animation: formIn 0.45s ease forwards; }
@keyframes formIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* Animations */
.fade-in { animation: fadeIn 0.4s ease forwards; }
.fade-out { animation: fadeOut 0.25s ease forwards; }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-8px); } }

/* Responsive - New Proposal */
@media (max-width: 1200px) {
    .products-grid:not(.collapsed) { grid-template-columns: repeat(2, 1fr); }
    .form-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
}
@media (max-width: 900px) {
    .stepper { gap: 0; padding: 16px; }
    .step-item { padding: 6px 10px; font-size: 0.75rem; }
    .step-connector { width: 16px; }
}
@media (max-width: 600px) {
    .pfpj-selector { grid-template-columns: 1fr; }
    .products-grid:not(.collapsed) { grid-template-columns: 1fr; }
    .form-container { padding: 24px 20px; }
    .form-actions { flex-direction: column; }
    .form-actions .btn { width: 100%; }
    .radio-group { flex-direction: column; }
    .selected-hero.show { flex-direction: column; text-align: center; gap: 12px; }
    .stepper { overflow-x: auto; padding: 12px 8px; }
    .step-item span { display: none; }
    .step-connector { width: 12px; }
}

/* ============================================
   SIMULADOR DE COMISSOES
   ============================================ */
:root {
    --sim-c0: #2D4A3E;
    --sim-c1: #3B82F6;
    --sim-c2: #00897B;
    --sim-c3: #E6860A;
}

/* Notes */
.sim-notes {
    padding: 10px 14px; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm); margin-bottom: 14px;
    display: flex; flex-wrap: wrap; gap: 4px 16px;
}
.sim-note { font-size: 0.625rem; color: var(--gray-400); display: flex; align-items: baseline; gap: 3px; }
.sim-note b { color: var(--green-dark); }

/* Split layout */
.sim-layout { display: flex; gap: 0; }
.sim-left { flex: 1; min-width: 0; padding-right: 24px; }
.sim-right {
    width: 340px; flex-shrink: 0;
    border-left: 1px solid var(--gray-200);
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    position: sticky; top: 112px; align-self: flex-start;
    max-height: none;
}

/* Col labels */
.sim-col-labels { display: grid; grid-template-columns: 1fr 70px 145px 145px; gap: 8px; padding: 0 0 6px; margin-bottom: 2px; }
.sim-col-label { font-size: 0.5625rem; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.8px; }

/* Familia */
.sim-familia { margin-bottom: 20px; }
.sim-familia-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    margin-bottom: 2px; position: relative;
}
.sim-fam-credito .sim-familia-header { background: rgba(45,74,62,0.07); border-left: 3px solid var(--sim-c0); }
.sim-fam-consorcio .sim-familia-header { background: rgba(59,130,246,0.06); border-left: 3px solid var(--sim-c1); }
.sim-fam-cambio .sim-familia-header { background: rgba(0,137,123,0.06); border-left: 3px solid var(--sim-c2); }
.sim-fam-outros .sim-familia-header { background: rgba(230,134,10,0.06); border-left: 3px solid var(--sim-c3); }

.sim-familia-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sim-fd0 { background: var(--sim-c0); }
.sim-fd1 { background: var(--sim-c1); }
.sim-fd2 { background: var(--sim-c2); }
.sim-fd3 { background: var(--sim-c3); }

.sim-familia-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sim-familia-icon svg { width: 14px; height: 14px; }
.sim-fi0 { background: rgba(45,74,62,0.12); }
.sim-fi0 svg { color: var(--sim-c0); }
.sim-fi1 { background: rgba(59,130,246,0.1); }
.sim-fi1 svg { color: var(--sim-c1); }
.sim-fi2 { background: rgba(0,137,123,0.1); }
.sim-fi2 svg { color: var(--sim-c2); }
.sim-fi3 { background: rgba(230,134,10,0.1); }
.sim-fi3 svg { color: var(--sim-c3); }

.sim-familia-name { font-size: 0.8125rem; font-weight: 700; color: var(--gray-700); }
.sim-familia-count { margin-left: auto; font-size: 0.625rem; font-weight: 600; color: var(--gray-400); background: var(--white); padding: 2px 8px; border-radius: 50px; }

/* Produtos */
.sim-prod-body {
    background: var(--white); border: 1px solid var(--gray-200);
    border-top: none; border-radius: 0 0 var(--radius-sm) var(--radius-sm); padding: 4px 0;
}
.sim-prod-row {
    display: grid; grid-template-columns: 1fr 70px 145px 145px;
    gap: 8px; align-items: center; padding: 7px 14px; transition: background 0.15s;
}
.sim-prod-row:hover { background: var(--gray-50); }
.sim-prod-row + .sim-prod-row { border-top: 1px solid var(--gray-100); }
.sim-prod-name { font-size: 0.8125rem; color: var(--gray-600); font-weight: 500; }
.sim-prod-taxa { font-size: 0.6875rem; font-weight: 600; color: var(--green-dark); background: var(--green-muted); padding: 3px 8px; border-radius: 50px; text-align: center; white-space: nowrap; }

/* Money input */
.sim-mw { position: relative; }
.sim-mw .sim-pf { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 0.6875rem; font-weight: 700; color: var(--gray-400); pointer-events: none; }
.sim-mi {
    width: 100%; padding: 7px 10px 7px 30px;
    font-size: 0.8125rem; font-weight: 500; color: var(--gray-700);
    background: var(--gray-50); border: 1px solid var(--gray-200);
    border-radius: 6px; font-family: inherit; transition: all var(--transition);
}
.sim-mi::placeholder { color: var(--gray-300); }
.sim-mi:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(45,74,62,0.08); background: var(--white); }

/* Output */
.sim-ow { position: relative; }
.sim-ow .sim-pf-out { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-size: 0.6875rem; font-weight: 700; color: rgba(45,74,62,0.4); pointer-events: none; }
.sim-ov {
    width: 100%; padding: 7px 10px 7px 30px;
    font-size: 0.8125rem; font-weight: 600; color: var(--green-dark);
    background: rgba(45,74,62,0.04); border: 1px dashed rgba(45,74,62,0.18);
    border-radius: 6px; font-family: inherit;
    transition: color 0.4s ease, background 0.4s ease;
}
.sim-ov.sim-pulse { background: rgba(45,74,62,0.12); color: var(--green-darker); }

/* ===== Dashboard Lateral ===== */
.sim-dash-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.sim-dash-title { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 700; color: var(--green-dark); }
.sim-dash-live { display: flex; align-items: center; gap: 5px; font-size: 0.625rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }
.sim-dash-live-dot { width: 6px; height: 6px; border-radius: 50%; background: #10B981; animation: simLivePulse 2s ease infinite; }
@keyframes simLivePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

/* Totais */
.sim-dash-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.sim-dtc { padding: 12px 10px; border-radius: var(--radius-sm); text-align: center; }
.sim-dtc-v { background: var(--gray-50); border: 1px solid var(--gray-200); }
.sim-dtc-c { background: linear-gradient(135deg, var(--green-darker), var(--green-dark)); }
.sim-dtc-label { font-size: 0.5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.sim-dtc-v .sim-dtc-label { color: var(--gray-400); }
.sim-dtc-c .sim-dtc-label { color: rgba(255,255,255,0.5); }
.sim-dtc-val { font-size: 1.125rem; font-weight: 700; transition: all 0.5s ease; }
.sim-dtc-v .sim-dtc-val { color: var(--gray-700); }
.sim-dtc-c .sim-dtc-val { color: var(--white); }

/* Chart */
.sim-dash-chart { position: relative; flex-shrink: 0; height: 170px; margin-bottom: 12px; }
.sim-dash-chart canvas { display: block; }
.sim-dash-cc { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; transition: opacity 0.6s ease; opacity: 1; }
.sim-dash-cc-hidden { opacity: 0; }
.sim-dash-cc-val { font-size: 1rem; font-weight: 700; color: var(--green-dark); transition: all 0.5s ease; }
.sim-dash-cc-lbl { font-size: 0.5625rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.3px; }
.sim-dash-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--gray-400); font-size: 0.75rem; text-align: center; line-height: 1.4; }
.sim-dash-empty svg { width: 32px; height: 32px; color: var(--gray-300); margin-bottom: 8px; }

/* Legend */
.sim-dash-leg { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.sim-dash-leg-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--gray-50); border-radius: 6px; transition: all 0.35s ease; }
.sim-dash-leg-item:hover { background: var(--gray-100); }
.sim-dash-leg-item.sim-highlight { background: rgba(45,74,62,0.06); }
.sim-dash-leg-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.sim-leg-dot-0 { background: var(--sim-c0); }
.sim-leg-dot-1 { background: var(--sim-c1); }
.sim-leg-dot-2 { background: var(--sim-c2); }
.sim-leg-dot-3 { background: var(--sim-c3); }
.sim-dash-leg-name { font-size: 0.75rem; font-weight: 500; color: var(--gray-600); flex: 1; }
.sim-dash-leg-val { font-size: 0.75rem; font-weight: 700; color: var(--gray-700); transition: all 0.4s ease; }
.sim-dash-leg-pct { font-size: 0.625rem; font-weight: 700; min-width: 30px; text-align: right; padding: 2px 6px; border-radius: 4px; transition: all 0.5s ease; }
.sim-pct-zero { background: var(--gray-100); color: var(--gray-400); }
.sim-pct-low { background: #FEF3C7; color: #92400E; }
.sim-pct-mid { background: #DBEAFE; color: #1D4ED8; }
.sim-pct-high { background: var(--success-bg); color: var(--success-text); }

/* Divider & Stats */
.sim-dash-div { height: 1px; background: var(--gray-200); margin: 10px 0; }
.sim-dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sim-dash-stat { padding: 8px 6px; background: var(--gray-50); border-radius: 6px; text-align: center; }
.sim-dash-stat-val { font-size: 0.9375rem; font-weight: 700; color: var(--green-dark); transition: all 0.4s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-dash-stat-lbl { font-size: 0.5rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.3px; margin-top: 1px; line-height: 1.2; }

/* Flash */
.sim-flash {
    position: fixed; top: 80px; right: 20px; z-index: 9999;
    display: flex; align-items: center; gap: 8px; padding: 11px 16px;
    border-radius: var(--radius); font-size: 0.8125rem; font-weight: 500;
    box-shadow: var(--shadow-lg); background: var(--success-bg);
    color: var(--success-text); border: 1px solid #A7F3D0;
    transform: translateX(140%); transition: transform 0.35s ease;
}
.sim-flash.sim-flash-show { transform: translateX(0); }
.sim-flash svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Responsive simulador */
@media (max-width: 1100px) {
    .sim-right { width: 300px; padding: 16px; }
    .sim-prod-row, .sim-col-labels { grid-template-columns: 1fr 60px 130px 130px; }
}
@media (max-width: 900px) {
    .sim-layout { flex-direction: column; }
    .sim-left { padding-right: 0; margin-bottom: 24px; }
    .sim-right { width: 100%; position: static; max-height: none; border-left: none; border-top: 1px solid var(--gray-200); }
}
@media (max-width: 600px) {
    .sim-prod-row, .sim-col-labels { grid-template-columns: 1fr; gap: 5px; }
    .sim-col-labels { display: none; }
    .sim-prod-name { font-weight: 600; }
    .sim-prod-taxa { font-size: 0.625rem; }
    .sim-dash-stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Shared Utilities (used across app + CRM)
   ============================================ */
.table-info { font-size: 0.813rem; color: var(--gray-500); margin-bottom: 12px; }
.table-responsive { overflow-x: auto; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.pagination-info { font-size: 0.875rem; color: var(--gray-500); }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-item-full { grid-column: 1 / -1; }
.detail-label { display: block; font-size: 0.75rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.detail-value { display: block; font-size: 0.875rem; color: var(--gray-700); font-weight: 500; }

/* Shared Badges */
.badge-agendada { background: var(--blue-50); color: var(--blue-700); }
.badge-realizada { background: var(--success-bg); color: var(--success-text); }
.badge-cancelada { background: var(--red-50); color: var(--red-700); }
.badge-reagendada { background: var(--yellow-50); color: var(--yellow-700); }
.badge-success { background: var(--success-bg); color: var(--success-text); }
.badge-secondary { background: var(--gray-100); color: var(--gray-600); }
.badge-sm { font-size: 0.625rem; padding: 1px 6px; }
.badge-platinum { background: #E5E7EB; color: #1F2937; }
.badge-gold { background: #FEF3C7; color: #92400E; }
.badge-silver { background: #F3F4F6; color: #4B5563; }
.badge-bronze { background: #FED7AA; color: #9A3412; }

.stat-icon-purple { background: #F3E8FF; color: #7C3AED; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--gray-400); }