:root {
            --primary: #000000;      /* Đen nguyên bản */
            --accent: #10B981;       /* Xanh Ngọc Emerald */
            --bg-body: #F3F4F6;
            --surface: #FFFFFF;
            --border: #E5E7EB;
            --text-main: #1F2937;
            --text-light: #6B7280;
            --danger: #EF4444;
            --console-bg: #111827;
            --console-text: #10B981;
            --sidebar-nav-bg: #111827;   /* xám than — tách biệt với dải logo */
            --sidebar-logo-bg: #F8FAFC; /* nền sáng để logo đen / emerald nổi */
            --sidebar-logo-border: #E2E8F0;
        }

        body { font-family: 'Inter', sans-serif; margin: 0; display: flex; height: 100vh; background: var(--bg-body); color: var(--text-main); overflow: hidden; }
        
        /* Đa ngôn ngữ */
        .lang-en { display: none; }
        body.en-mode .lang-vi { display: none; }
        body.en-mode .lang-en { display: inline; }

        /* --- SIDEBAR --- */
        .sidebar { width: 260px; background: var(--sidebar-nav-bg); color: #CBD5E1; display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
        .sidebar::-webkit-scrollbar { width: 5px; }
        .sidebar::-webkit-scrollbar-thumb { background: #334155; }
        .sidebar-logo { padding: 18px 16px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--sidebar-logo-border); background: var(--sidebar-logo-bg); position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06); box-sizing: border-box; }
        .sidebar-logo img { width: 60%; height: auto; object-fit: contain; filter: none; display: block; flex-shrink: 0; }
        .sidebar-nav-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
        .sidebar-copyright { padding: 20px 15px; text-align: center; font-size: 11px; color: #64748B; border-top: 1px solid var(--sidebar-logo-border); background: var(--sidebar-logo-bg); letter-spacing: 0.3px; }
        .sidebar-copyright strong { color: var(--accent); }
        .nav-group { padding: 20px 20px 5px 20px; font-size: 11px; text-transform: uppercase; color: #64748B; font-weight: 700; letter-spacing: 1px; }
        .nav-item { padding: 12px 20px; cursor: pointer; border-left: 4px solid transparent; transition: 0.2s; font-size: 14px; font-weight: 500; display: flex; align-items: center; }
        .nav-item i { width: 25px; font-size: 16px; }
        .nav-item:hover, .nav-item.active { background: rgba(255, 255, 255, 0.06); color: var(--accent); border-left-color: var(--accent); }

        /* --- MAIN CONTENT --- */
        .main-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
        .topbar { background: var(--surface); padding: 15px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
        .topbar-right { display: flex; gap: 15px; align-items: center; }
        .user-profile { font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 10px; }
        .user-profile img { width: 35px; height: 35px; border-radius: 50%; background: #ccc; }
        
        .btn-action { background: var(--accent); color: var(--primary); border: none; padding: 8px 16px; border-radius: 4px; font-weight: 600; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 8px;}
        .btn-action:hover { background: #059669; color: var(--surface); }
        .btn-outline { background: transparent; border: 1px solid var(--primary); color: var(--primary); }
        .btn-outline:hover { background: var(--primary); color: var(--accent); }

        /* --- VIEWS --- */
        .view-content { padding: 30px; overflow-y: auto; flex: 1; display: none; }
        .view-content.active { display: block; animation: fadeIn 0.3s; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        /* --- MODULE: KIỂM SOÁT CHẤT LƯỢNG (v-quality) --- */
        .vq-layout { display: flex; gap: 24px; height: calc(100vh - 180px); }
        .vq-sidebar { width: 340px; background: #fff; border-radius: 12px; border: 1px solid #E5E7EB; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); flex-shrink: 0; }
        .vq-sb-header { padding: 18px 20px; background: #F9FAFB; border-bottom: 1px solid #E5E7EB; font-weight: 700; color: #111827; }
        .vq-list { overflow-y: auto; flex: 1; }
        .vq-item { padding: 16px 20px; border-bottom: 1px solid #F3F4F6; cursor: pointer; transition: 0.2s; }
        .vq-item:hover { background: #F9FAFB; }
        .vq-item.active { background: #EFF6FF; border-left: 4px solid #4F46E5; }
        .vq-item-title { font-weight: 700; color: #111827; margin-bottom: 6px; font-size: 14px; display: flex; justify-content: space-between; }
        .vq-item-meta { font-size: 12px; color: #6B7280; display: flex; justify-content: space-between; align-items: center; }
        
        .vq-main { flex: 1; background: #fff; border-radius: 12px; border: 1px solid #E5E7EB; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); min-width: 0; }
        .vq-main-header { padding: 20px 30px; border-bottom: 1px solid #E5E7EB; display: flex; justify-content: space-between; align-items: center; }
        .vq-body { padding: 30px; overflow-y: auto; flex: 1; }
        .vq-checklist { margin-bottom: 30px; }
        .vq-check-item { display: flex; align-items: flex-start; gap: 16px; padding: 18px; border: 1px solid #E5E7EB; border-radius: 8px; margin-bottom: 12px; background: #F9FAFB; transition: 0.2s; }
        .vq-check-item:hover { border-color: #D1D5DB; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
        .vq-check-icon { width: 44px; height: 44px; border-radius: 10px; background: #E0E7FF; color: #4F46E5; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
        .vq-check-icon.bad { background: #FEE2E2; color: #DC2626; }
        .vq-check-content { flex: 1; }
        .vq-check-title { font-weight: 700; font-size: 15px; color: #111827; margin-bottom: 6px; display: flex; justify-content: space-between; align-items: center; }
        .vq-check-desc { font-size: 13px; color: #6B7280; line-height: 1.5; margin-bottom: 8px; }
        .vq-status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.5px; }
        .vq-status.ok { background: #D1FAE5; color: #065F46; border: 1px solid #A7F3D0; }
        .vq-status.bad { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
        .vq-actions { padding: 20px 30px; background: #F9FAFB; border-top: 1px solid #E5E7EB; display: flex; justify-content: flex-end; gap: 15px; }

        /* --- MODULE: CHUYÊN GIA PHÊ DUYỆT (v-review) --- */
        .vr-layout { display: grid; grid-template-columns: 320px 1fr 300px; gap: 24px; height: calc(100vh - 180px); }
        .vr-col { background: #fff; border-radius: 12px; border: 1px solid #E5E7EB; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
        .vr-header { padding: 18px 20px; background: #F9FAFB; border-bottom: 1px solid #E5E7EB; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 10px; }
        .vr-body { padding: 24px; overflow-y: auto; flex: 1; }
        
        .vr-field { margin-bottom: 24px; }
        .vr-label { font-size: 14px; font-weight: 700; color: #374151; margin-bottom: 10px; display: block; display: flex; justify-content: space-between; align-items: center; }
        .vr-textarea { width: 100%; border: 1px solid #D1D5DB; border-radius: 8px; padding: 14px; font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.6; resize: vertical; box-sizing: border-box; background: #F9FAFB; transition: 0.2s; }
        .vr-textarea:focus { outline: none; border-color: #10B981; background: #fff; box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
        
        .vr-roadmap-item { background: #fff; border: 1px solid #E5E7EB; border-left: 4px solid #10B981; padding: 16px; border-radius: 6px; margin-bottom: 16px; transition: 0.2s; }
        .vr-roadmap-item:hover { box-shadow: 0 4px 6px rgba(0,0,0,0.02); border-color: #D1D5DB; }
        .vr-roadmap-item.p1 { border-left-color: #EF4444; }
        .vr-roadmap-item.p2 { border-left-color: #F59E0B; }
        .vr-roadmap-item input { width: 100%; border: none; background: transparent; font-weight: 800; font-size: 14px; color: #111827; margin-bottom: 8px; font-family: 'Inter', sans-serif; outline: none; }
        .vr-roadmap-item textarea { width: 100%; border: 1px solid transparent; background: transparent; font-size: 13px; color: #4B5563; line-height: 1.5; resize: none; font-family: 'Inter', sans-serif; outline: none; box-sizing: border-box; }
        .vr-roadmap-item textarea:hover, .vr-roadmap-item textarea:focus { border-color: #D1D5DB; background: #F9FAFB; border-radius: 6px; padding: 10px; margin: -10px; }

        /* --- MODULE: KANBAN CRM (v-kanban) --- */
        .vk-layout { display: flex; flex-direction: column; height: calc(100vh - 180px); }
        .vk-pipeline { display: flex; margin-bottom: 20px; background: #fff; border-radius: 8px; border: 1px solid #E5E7EB; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
        .vk-phase { flex: 1; text-align: center; padding: 14px 10px; font-size: 13px; font-weight: 700; color: #6B7280; border-right: 1px solid #E5E7EB; cursor: pointer; transition: 0.2s; position: relative; }
        .vk-phase:last-child { border-right: none; }
        .vk-phase:hover { background: #F9FAFB; color: #374151; }
        .vk-phase.active { background: #EEF2FF; color: #4F46E5; }
        .vk-phase.active::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: #4F46E5; }

        .vk-board { flex: 1; display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; }
        .vk-board::-webkit-scrollbar { height: 8px; }
        .vk-board::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
        .vk-column { width: 320px; background: #F3F4F6; border-radius: 8px; display: flex; flex-direction: column; flex-shrink: 0; border: 1px solid #E5E7EB; overflow: hidden; }
        .vk-col-header { padding: 15px; font-weight: 800; font-size: 14px; color: #111827; border-bottom: 1px solid #E5E7EB; background: #F9FAFB; display: flex; justify-content: space-between; align-items: center; }
        .vk-col-count { background: #E5E7EB; color: #374151; font-size: 11px; padding: 2px 8px; border-radius: 12px; }
        .vk-col-body { padding: 15px 12px; overflow-y: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }

        .vk-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; padding: 16px; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.05); border-left: 4px solid #10B981; }
        .vk-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); border-color: #D1D5DB; }
        .vk-card-title { font-size: 14px; font-weight: 800; color: #111827; margin-bottom: 4px; display: flex; justify-content: space-between; align-items: flex-start; }
        .vk-card-id { font-size: 11px; color: #6B7280; margin-bottom: 12px; font-family: monospace; }
        .vk-card-tags { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
        .vk-tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 4px; display: inline-flex; align-items: center; gap: 4px; }
        .vk-tag.deal { background: #FEF3C7; color: #92400E; }
        .vk-tag.ai { background: #D1FAE5; color: #065F46; }
        .vk-tag.status { background: #E0E7FF; color: #4F46E5; }
        .vk-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed #E5E7EB; padding-top: 12px; margin-top: 4px; }
        .vk-card-expert { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #4B5563; font-weight: 700; }
        .vk-card-expert .avatar { width: 24px; height: 24px; border-radius: 50%; background: #CBD5E1; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; }
        .vk-card-date { font-size: 11px; color: #9CA3AF; display: flex; align-items: center; gap: 4px; font-weight: 500; }
        .vk-card-date.alert { color: #DC2626; font-weight: 700; }

        /* --- MODULE: CONTENT CMS (v-content) --- */
        .vc-layout { display: flex; height: calc(100vh - 150px); background: #fff; border-radius: 8px; border: 1px solid #E5E7EB; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
        .vc-sidebar { width: 320px; border-right: 1px solid #E5E7EB; display: flex; flex-direction: column; background: #F9FAFB; }
        .vc-sidebar-header { padding: 15px; border-bottom: 1px solid #E5E7EB; display: flex; justify-content: space-between; align-items: center; background: #fff; }
        .vc-search { padding: 10px; border-bottom: 1px solid #E5E7EB; }
        .vc-search input { width: 100%; padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 4px; font-size: 13px; outline: none; }
        .vc-list { flex: 1; overflow-y: auto; }
        .vc-item { padding: 15px; border-bottom: 1px solid #E5E7EB; cursor: pointer; transition: 0.2s; background: #fff; }
        .vc-item:hover { background: #F3F4F6; }
        .vc-item.active { background: #EEF2FF; border-left: 3px solid #4F46E5; }
        .vc-item-title { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 5px; line-height: 1.4; }
        .vc-item-meta { display: flex; justify-content: space-between; font-size: 11px; color: #6B7280; }
        .vc-item-status.published { color: #059669; font-weight: 600; }
        .vc-item-status.draft { color: #D97706; font-weight: 600; }

        .vc-editor { flex: 1; display: flex; flex-direction: column; background: #F3F4F6; }
        .vc-editor-header { padding: 15px 25px; border-bottom: 1px solid #E5E7EB; display: flex; justify-content: space-between; align-items: center; background: #FFFFFF; }
        .vc-editor-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
        
        .vc-meta-bar { background: #FFFFFF; padding: 20px 30px; border-bottom: 1px solid #E5E7EB; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; flex-shrink: 0; }
        
        .vc-input-group { display: flex; flex-direction: column; gap: 8px; }
        .vc-input-group label { font-size: 12px; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 6px; }
        .vc-input-group input, .vc-input-group select { padding: 10px 12px; border: 1px solid #E5E7EB; border-radius: 6px; font-family: 'Inter', sans-serif; font-size: 14px; outline: none; transition: 0.2s; background: #F9FAFB; }
        .vc-input-group input:focus, .vc-input-group select:focus { border-color: #10B981; background: #FFFFFF; box-shadow: 0 0 0 3px rgba(16,185,129,0.1); }
        
        .vc-writing-area { flex: 1; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding: 40px 0; }
        
        .vc-toolbar { display: flex; gap: 8px; padding: 10px 20px; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; margin-bottom: 25px; align-items: center; }
        .vc-tool-btn { background: transparent; border: 1px solid transparent; border-radius: 6px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #4B5563; cursor: pointer; transition: 0.2s; font-size: 15px; }
        .vc-tool-btn:hover { background: #F3F4F6; color: #111827; border-color: #E5E7EB; }
        
        .vc-paper { width: 850px; min-height: 1100px; background: #FFFFFF; padding: 80px 100px; box-shadow: 0 10px 40px rgba(0,0,0,0.04); border-radius: 8px; border: 1px solid #E5E7EB; }
        .vc-rich-editor { min-height: 900px; outline: none; line-height: 1.8; font-size: 17px; color: #374151; }
        .vc-rich-editor p { margin-bottom: 1.5em; }
        .vc-rich-editor h1, .vc-rich-editor h2, .vc-rich-editor h3 { color: #111827; margin-top: 1.5em; margin-bottom: 0.8em; }
        
        .vc-row { display: flex; gap: 20px; }
        .vc-row .vc-input-group { flex: 1; }

        /* --- MODULE: RBAC & ADMIN (v-admin) --- */
        .role-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
        .role-super { background: #FEE2E2; color: #DC2626; }
        .role-admin { background: #E0E7FF; color: #4338CA; }
        .role-expert { background: #D1FAE5; color: #059669; }
        .role-sale { background: #DBEAFE; color: #2563EB; }
        .role-partner { background: #FEF3C7; color: #D97706; }
        
        .perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
        .perm-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #374151; }
        .perm-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
        .perm-section { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px; padding: 15px; margin-bottom: 15px; }
        .perm-section-title { font-weight: 600; color: #111827; margin-bottom: 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #E5E7EB; padding-bottom: 8px; }

        /* --- MODULE: SYSTEM LOGS (v-log) --- */
        .vlog-layout { background: #fff; border-radius: 8px; border: 1px solid #E5E7EB; box-shadow: 0 1px 3px rgba(0,0,0,0.05); padding: 20px; display: flex; flex-direction: column; height: calc(100vh - 150px); overflow: hidden; }
        .vlog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .vlog-filters { display: flex; gap: 10px; }
        .vlog-filters select, .vlog-filters input { padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 6px; font-size: 13px; outline: none; }
        .vlog-table-container { flex: 1; overflow-y: auto; border: 1px solid #E5E7EB; border-radius: 6px; }
        .vlog-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
        .vlog-table th { background: #F9FAFB; padding: 12px 15px; font-weight: 600; color: #374151; border-bottom: 1px solid #E5E7EB; position: sticky; top: 0; z-index: 10; }
        .vlog-table td { padding: 12px 15px; border-bottom: 1px solid #E5E7EB; color: #4B5563; }
        .vlog-table tr:hover td { background: #F3F4F6; }
        .log-time { color: #9CA3AF; font-variant-numeric: tabular-nums; }
        .badge-log { padding: 4px 8px; border-radius: 4px; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
        .badge-log.info { background: #EEF2FF; color: #4F46E5; }
        .badge-log.success { background: #D1FAE5; color: #059669; }
        .badge-log.warn { background: #FEF3C7; color: #D97706; }
        .badge-log.error { background: #FEE2E2; color: #DC2626; }
        .log-detail { font-family: monospace; background: #F3F4F6; padding: 4px 8px; border-radius: 4px; font-size: 12px; }

        /* --- DASHBOARD REDESIGN --- */
        .welcome-banner { background: linear-gradient(135deg, #111827 0%, #1F2937 100%); border-radius: 12px; padding: 35px 40px; color: #fff; display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; box-shadow: 0 10px 25px rgba(0,0,0,0.15); position: relative; overflow: hidden; }
        .welcome-banner::after { content: ''; position: absolute; right: -50px; top: -100px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(16,185,129,0.2) 0%, transparent 70%); border-radius: 50%; }
        .wb-content { position: relative; z-index: 2; }
        .wb-content h2 { margin: 0 0 10px 0; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
        .wb-content p { margin: 0; color: #9CA3AF; font-size: 14px; max-width: 500px; line-height: 1.6; }
        .wb-stats { display: flex; gap: 40px; position: relative; z-index: 2; }
        .wb-stat-item { display: flex; flex-direction: column; align-items: flex-end; }
        .wb-stat-item span { font-size: 12px; color: #9CA3AF; text-transform: uppercase; font-weight: 600; letter-spacing: 1px; margin-bottom: 5px; }
        .wb-stat-item strong { font-size: 28px; font-weight: 800; color: #10B981; line-height: 1; }

        .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
        .stat-card { background: #fff; padding: 24px; border-radius: 12px; border: 1px solid #E5E7EB; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); transition: transform 0.2s, box-shadow 0.2s; cursor: default; }
        .stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 20px -5px rgba(0,0,0,0.1); border-color: #D1D5DB; }
        .sc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
        .sc-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
        .sc-trend { font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 20px; }
        .sc-trend.up { color: #059669; background: #D1FAE5; }
        .sc-trend.down { color: #DC2626; background: #FEE2E2; }
        .stat-card h3 { margin: 0; font-size: 13px; color: #6B7280; font-weight: 600; }
        .stat-card .num { font-size: 32px; font-weight: 800; color: #111827; margin: 5px 0 0 0; }

        .dash-row { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 30px; }
        .dash-panel { background: #fff; border-radius: 12px; border: 1px solid #E5E7EB; padding: 24px; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }
        .dp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
        .dp-title { margin: 0; font-size: 16px; font-weight: 800; color: #111827; }
        
        .dash-table { width: 100%; border-collapse: collapse; }
        .dash-table th { text-align: left; padding: 12px; font-size: 12px; color: #6B7280; border-bottom: 1px solid #E5E7EB; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
        .dash-table td { padding: 16px 12px; font-size: 14px; border-bottom: 1px solid #F3F4F6; color: #374151; font-weight: 500; }
        .dash-table tr:last-child td { border-bottom: none; }
        .dash-table tr:hover td { background: #F9FAFB; }
        .dt-company { display: flex; align-items: center; gap: 12px; }
        .dt-avatar { width: 38px; height: 38px; border-radius: 8px; background: #F3F4F6; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #4B5563; font-size: 14px; flex-shrink: 0; }
        .dt-badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
        .dt-badge.b-green { background: #D1FAE5; color: #065F46; }
        .dt-badge.b-gray { background: #F3F4F6; color: #4B5563; }
        .dt-badge.b-yellow { background: #FEF3C7; color: #92400E; }
        
        /* Activity List */
        .activity-list { display: flex; flex-direction: column; gap: 15px; }
        .act-item { display: flex; gap: 12px; align-items: flex-start; }
        .act-icon { width: 32px; height: 32px; border-radius: 50%; background: #EEF2FF; color: #4F46E5; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; margin-top: 2px; }
        .act-icon.ai { background: #D1FAE5; color: #059669; }
        .act-icon.user { background: #FEF3C7; color: #D97706; }
        .act-content { flex: 1; }
        .act-text { font-size: 13px; color: #1F2937; margin: 0 0 4px 0; line-height: 1.4; }
        .act-time { font-size: 11px; color: #9CA3AF; margin: 0; font-weight: 500; }

        /* --- TABLES & PANELS --- */
        .card-panel { background: var(--surface); border-radius: 8px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 2px 4px rgba(0,0,0,0.02); margin-bottom: 30px;}
        .panel-header { padding: 15px 20px; border-bottom: 1px solid var(--border); background: #F9FAFB; font-weight: 600; color: var(--primary); display: flex; justify-content: space-between; align-items: center; }
        .panel-body { padding: 20px; }
        table { width: 100%; border-collapse: collapse; }
        th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
        th { font-weight: 600; color: var(--text-light); background: var(--surface); }
        tr:hover { background: #F9FAFB; }
        .badge { padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
        .badge.green { background: rgba(16, 185, 129, 0.1); color: #059669; }
        .badge.gray { background: #F3F4F6; color: #4B5563; }

        /* --- ENTERPRISE 360 WORKSPACE --- */
        .workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; height: calc(100% - 60px); }
        .ws-col { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; display: flex; flex-direction: column; overflow: hidden; }
        .ws-body { padding: 20px; overflow-y: auto; flex: 1; }
        .info-row { display: flex; margin-bottom: 15px; font-size: 14px; border-bottom: 1px dashed var(--border); padding-bottom: 10px;}
        .info-row span:first-child { width: 150px; font-weight: 600; color: var(--text-light); }
        .info-row span:last-child { font-weight: 500; color: var(--primary); }
        textarea.expert-note { width: 100%; height: 120px; padding: 15px; border: 1px solid var(--border); border-radius: 4px; font-family: 'Inter'; resize: none; margin-top: 15px; }
        .ai-result { background: #F9FAFB; border: 1px solid var(--border); padding: 20px; border-radius: 8px; margin-top: 20px; display: none; }
        
        /* --- KANBAN --- */
        .kanban-board { display: flex; gap: 20px; height: calc(100% - 60px); overflow-x: auto; padding-bottom: 10px; }
        .kanban-col { min-width: 280px; flex: 1; background: #E5E7EB; border-radius: 8px; display: flex; flex-direction: column; }
        .k-header { padding: 15px; font-weight: 700; color: var(--primary); display: flex; justify-content: space-between; border-bottom: 2px solid var(--border); }
        .k-body { padding: 10px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
        .k-card { background: var(--surface); padding: 15px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-left: 4px solid var(--accent); cursor: pointer; transition: 0.2s; }
        .k-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
        .k-card h4 { margin: 0 0 5px 0; font-size: 14px; color: var(--primary); }
        .k-card p { margin: 0; font-size: 12px; color: var(--text-light); }

        /* --- CONFIG QUESTIONS --- */
        .q-item { display: flex; gap: 15px; align-items: center; padding: 15px; border: 1px solid var(--border); margin-bottom: 10px; border-radius: 4px; background: #F9FAFB; }
        .q-item input { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 4px; font-family: 'Inter'; }
        .q-item select { padding: 10px; border: 1px solid var(--border); border-radius: 4px; }
        .btn-icon { background: var(--surface); border: 1px solid var(--border); color: var(--danger); padding: 10px; border-radius: 4px; cursor: pointer; }
        .btn-icon:hover { background: #FEE2E2; }

        /* --- AI TRAINING MODULE --- */
        .ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .param-group { border: 1px solid var(--border); border-radius: 6px; padding: 15px; margin-bottom: 15px; background: #F9FAFB; }
        .param-group h4 { margin: 0 0 15px 0; color: var(--primary); display: flex; justify-content: space-between; }
        .param-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
        .param-row input[type="range"] { width: 120px; accent-color: var(--accent); }
        .param-row input[type="number"] { width: 60px; padding: 5px; border: 1px solid var(--border); border-radius: 4px; text-align: center; font-family: 'Inter';}
        .upload-zone { border: 2px dashed var(--accent); background: rgba(16, 185, 129, 0.05); padding: 30px 20px; text-align: center; border-radius: 6px; cursor: pointer; transition: 0.3s; margin-bottom: 20px;}
        .upload-zone:hover { background: rgba(16, 185, 129, 0.1); }
        .upload-zone i { font-size: 36px; color: var(--accent); margin-bottom: 10px; }
        .ai-instruction { width: 100%; height: 150px; padding: 15px; border: 1px solid var(--border); border-radius: 6px; font-family: 'Inter'; resize: none; background: #F9FAFB; margin-top: 10px;}
        .toggle-switch { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--danger); background: #FEE2E2; padding: 12px 20px; border-radius: 6px; margin-bottom: 25px; border: 1px solid #FCA5A5;}
        .toggle-switch input { transform: scale(1.5); accent-color: var(--danger); cursor: pointer;}
        .ai-console { background: var(--console-bg); color: var(--console-text); padding: 20px; border-radius: 6px; font-family: monospace; font-size: 13px; height: 280px; overflow-y: auto; box-shadow: inset 0 2px 10px rgba(0,0,0,0.5);}
        .ai-console p { margin: 0 0 8px 0; }
        .ai-console .sys { color: #9CA3AF; }
        .ai-console .err { color: #EF4444; }

        /* --- SPIDER CHART & v360 LAYOUT --- */
        .v360-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 20px; height: calc(100% - 60px); }
        .spider-col { min-width: 0; }
        .spider-placeholder { display: flex; flex-direction: column; align-items: center;
            justify-content: center; flex: 1; padding: 40px 20px; text-align: center; }

        /* Score summary trong cột 1 */
        .score-summary { margin-top: 20px; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
        .score-row { display: flex; justify-content: space-between; align-items: center;
            padding: 9px 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
        .score-row:last-child { border-bottom: none; }
        .score-label { font-weight: 600; color: var(--text-light); }
        .score-val { font-weight: 700; font-size: 14px; }

        /* AI Insight block */
        .ai-insight { background: #F9FAFB; border-radius: 6px; padding: 12px 15px;
            border: 1px solid var(--border); margin-top: 8px; }
        .ai-insight p { margin: 4px 0; font-size: 13px; line-height: 1.6; }

        /* --- DOC VAULT --- */
        .vault-header { display:flex; justify-content:space-between; align-items:center;
            margin-top:20px; margin-bottom:10px; font-weight:600; font-size:13px; color:var(--primary); }
        .vault-upload-btn { background:var(--accent); color:var(--primary); padding:5px 10px;
            border-radius:4px; font-size:12px; font-weight:700; cursor:pointer; }
        .vault-file { border:1px solid var(--border); border-radius:6px; margin-bottom:8px;
            padding:10px 12px; background:#F9FAFB; }
        .vf-info { display:flex; align-items:center; gap:8px; font-size:13px; }
        .vf-name { flex:1; font-weight:500; color:var(--primary); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
        .vf-badge { padding:2px 8px; border-radius:10px; font-size:11px; font-weight:700; }
        .badge-cleaned { background:#D1FAE5; color:#065F46; }
        .badge-pending { background:#FEF3C7; color:#92400E; }
        .vf-extracted { margin-top:8px; border-top:1px dashed var(--border); padding-top:8px; }
        .extracted-item { font-size:12px; color:var(--text-main); margin-bottom:4px; display:flex; align-items:flex-start; gap:6px; }
        .vf-read-btn { margin-top:8px; width:100%; background:var(--primary); color:var(--accent);
            border:none; padding:7px; border-radius:4px; font-size:12px; font-weight:600;
            cursor:pointer; font-family:'Inter',sans-serif; }
        .vf-read-btn:hover { background:#1F2937; }

        /* --- 2-STEP ANALYSIS --- */
        .analysis-col .ws-body { overflow-y:auto; padding:15px; display:flex; flex-direction:column; gap:0; }
        .analysis-step { border:1px solid var(--border); border-radius:8px; padding:14px; background:#F9FAFB; }
        .step-badge { display:inline-block; background:var(--primary); color:var(--accent);
            font-size:10px; font-weight:800; padding:3px 8px; border-radius:10px; margin-bottom:8px; letter-spacing:1px; }
        .step-badge-2 { background:var(--accent); color:var(--primary); }
        .step-desc { font-size:12px; color:var(--text-light); margin:0 0 10px; line-height:1.5; }
        .step-divider { text-align:center; color:var(--border); font-size:16px; padding:8px 0; }
        .progress-bar-wrap { background:#E5E7EB; border-radius:4px; height:6px; overflow:hidden; }
        .progress-bar { height:100%; width:0; border-radius:4px; transition:width 0.4s ease; }

        /* --- READINESS METER --- */
        .readiness-block { background:#F0FDF4; border:1px solid #BBF7D0; border-radius:8px; padding:14px; margin-bottom:12px; }
        .readiness-label { display:flex; justify-content:space-between; font-size:13px; font-weight:600; margin-bottom:8px; }
        .readiness-pct { font-size:18px; font-weight:800; color:var(--primary); }
        .readiness-bar-wrap { background:#D1FAE5; border-radius:6px; height:10px; overflow:hidden; margin-bottom:6px; }
        .readiness-bar { height:100%; width:0; border-radius:6px; transition:width 0.8s ease; }
        .readiness-stage { font-size:12px; font-weight:600; color:var(--text-main); }

        /* --- GROUP ANALYSIS --- */
        .group-analysis { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
        .group-block { border:1px solid var(--border); border-radius:6px; padding:10px 12px; background:#fff; }
        .group-title { display:flex; justify-content:space-between; font-size:13px; font-weight:700;
            color:var(--primary); margin-bottom:4px; }
        .group-bench { font-size:11px; color:var(--text-light); margin-bottom:6px; }
        .ga-item { font-size:12px; margin-bottom:3px; display:flex; align-items:flex-start; gap:5px; line-height:1.4; }
        .ga-ok  { color:#065F46; }
        .ga-gap { color:#7C2D12; }

        /* --- FILE INSIGHTS --- */
        .file-insights-block { border:1px solid #BFDBFE; border-radius:6px; background:#EFF6FF;
            margin-bottom:12px; overflow:hidden; }
        .insights-header { background:#DBEAFE; padding:8px 12px; font-size:12px; font-weight:700;
            color:#1E3A8A; }
        .insights-body { padding:10px 12px; }
        .fi-row { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:600;
            color:var(--primary); margin-bottom:3px; }
        .fi-detail { font-size:12px; color:var(--text-main); line-height:1.5; padding-left:20px; margin-bottom:4px; }

        /* --- PRIORITY ACTIONS --- */
        .priority-block { border:1px solid var(--border); border-radius:6px; overflow:hidden; margin-bottom:12px; }
        .priority-title { background:var(--primary); color:var(--accent); padding:8px 12px;
            font-size:12px; font-weight:700; display:flex; align-items:center; gap:6px; }
        .pri-item { display:flex; gap:8px; padding:8px 12px; border-bottom:1px solid var(--border);
            font-size:12px; line-height:1.5; }
        .pri-item:last-child { border-bottom:none; }
        .pri-red    { background:#FFF5F5; }
        .pri-yellow { background:#FFFBEB; }
        .pri-green  { background:#F0FDF4; }
        .pri-dot { font-size:14px; flex-shrink:0; margin-top:1px; }

        /* --- CONCLUSION --- */
        .conclusion-block { border:1px solid #E0E7FF; border-radius:6px; background:#EEF2FF; margin-bottom:12px; overflow:hidden; }
        .conclusion-title { background:#C7D2FE; padding:8px 12px; font-size:12px; font-weight:700;
            color:#3730A3; display:flex; align-items:center; gap:6px; }
        .conclusion-text { font-size:12px; line-height:1.6; margin:10px 12px 4px; color:var(--text-main); }
        .conclusion-note { font-size:11px; color:#6B7280; margin:0 12px 10px; line-height:1.5; }
        .field-label { font-size:13px; font-weight:600; color:var(--primary); margin-bottom:6px;
            display:flex; align-items:center; gap:6px; }

        /* ========================================================
           BÁO CÁO PDF (REPORT PRINT)
           ======================================================== */
        .rp-page { width: 794px; height: 1123px; background: #fff; position: relative; overflow: hidden; box-sizing: border-box; }
        /* Trang bìa */
        .rp-cover { background: linear-gradient(135deg, #111827 0%, #1F2937 100%); color: #fff; display: flex; flex-direction: column; }
        .rp-logo-bar { padding: 40px 50px; }
        .rp-logo-text { font-size: 28px; font-weight: 800; letter-spacing: -1px; }
        .rp-logo-text span { color: #10B981; }
        .rp-cover-body { flex: 1; padding: 120px 60px; display: flex; flex-direction: column; justify-content: center; }
        .rp-doc-type { font-size: 16px; font-weight: 700; color: #10B981; letter-spacing: 4px; margin-bottom: 20px; }
        .rp-cover-title { font-size: 48px; font-weight: 800; line-height: 1.2; margin: 0 0 20px; }
        .rp-cover-accent { background: #10B981; color: #111827; display: inline-block; padding: 8px 16px; font-weight: 700; font-size: 14px; border-radius: 4px; margin-bottom: 80px; align-self: flex-start; }
        .rp-cover-info { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 30px; border-radius: 12px; border-left: 4px solid #10B981; }
        .rp-ci-row { display: flex; margin-bottom: 12px; font-size: 16px; }
        .rp-ci-row:last-child { margin-bottom: 0; }
        .rp-ci-row span { width: 160px; color: #9CA3AF; }
        .rp-ci-row strong { color: #fff; font-weight: 600; }
        
        /* Các trang nội dung */
        .rp-page-header { padding: 40px 50px 20px; display: flex; align-items: center; gap: 15px; border-bottom: 2px solid #F3F4F6; }
        .rp-section-num { font-size: 32px; font-weight: 800; color: #10B981; }
        .rp-page-header span:last-child { font-size: 22px; font-weight: 700; color: #111827; }
        .rp-page-body { padding: 30px 50px; }
        .rp-sub-title { font-size: 16px; font-weight: 700; color: #111827; margin: 25px 0 15px; }
        
        /* Bảng thông tin (Trang 2) */
        .rp-info-table { border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; margin-bottom: 30px; }
        .rp-it-row { display: flex; border-bottom: 1px solid #E5E7EB; }
        .rp-it-row:last-child { border-bottom: none; }
        .rp-it-row span { width: 30%; background: #F9FAFB; padding: 12px 15px; font-weight: 600; color: #4B5563; font-size: 14px; border-right: 1px solid #E5E7EB; }
        .rp-it-row strong { width: 70%; padding: 12px 15px; color: #111827; font-size: 14px; font-weight: 500; }
        
        /* Bảng điểm (Trang 2) */
        .rp-score-table { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
        .rp-score-table th { background: #111827; color: #fff; text-align: left; padding: 10px 15px; font-size: 13px; }
        .rp-score-table td { border-bottom: 1px solid #E5E7EB; padding: 10px 15px; font-size: 13px; color: #374151; }
        .rp-score-table tr:nth-child(even) td { background: #F9FAFB; }
        .rp-ok { color: #059669; font-weight: 600; }
        .rp-warn { color: #D97706; font-weight: 600; }
        .rp-bad { color: #DC2626; font-weight: 600; }
        .rp-note { font-size: 12px; color: #6B7280; font-style: italic; }

        /* Readiness Banner (Trang 3) */
        .rp-readiness-banner { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: 10px; padding: 20px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
        .rp-readiness-label { font-size: 14px; font-weight: 600; color: #065F46; text-transform: uppercase; letter-spacing: 1px; }
        .rp-readiness-pct { font-size: 42px; font-weight: 800; color: #10B981; line-height: 1; margin: 5px 0; }
        .rp-readiness-stage { font-size: 16px; font-weight: 700; color: #064E3B; }
        .rp-score-boxes { display: flex; gap: 10px; }
        .rp-sbox { width: 70px; height: 70px; border-radius: 8px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid #E5E7EB; background: #fff; }
        .rp-sbox-val { font-size: 20px; font-weight: 800; }
        .rp-sbox-key { font-size: 11px; font-weight: 700; color: #6B7280; }
        .rp-sbox-ok .rp-sbox-val { color: #059669; }
        .rp-sbox-warn .rp-sbox-val { color: #D97706; }
        .rp-sbox-bad .rp-sbox-val { color: #DC2626; }

        /* Chart & Analysis (Trang 3) */
        .rp-chart-wrap { margin-bottom: 30px; }
        .rp-analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
        .rp-ag-col { display: flex; flex-direction: column; gap: 15px; }
        .rp-ag-block { padding: 15px; border-radius: 8px; border: 1px solid #E5E7EB; }
        .rp-ok-block { background: #F8FAFC; border-color: #CBD5E1; }
        .rp-warn-block { background: #FFFBEB; border-color: #FDE68A; }
        .rp-bad-block { background: #FEF2F2; border-color: #FECACA; }
        .rp-ag-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; color: #111827; }
        .rp-ag-block ul { margin: 0; padding-left: 20px; font-size: 13px; color: #374151; margin-bottom: 8px; }
        .rp-ag-block li { margin-bottom: 4px; }
        .rp-gap { font-size: 13px; color: #991B1B; margin: 0 0 4px; font-weight: 500; }
        
        .rp-file-box { background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 8px; padding: 15px; }
        .rp-file-title { font-size: 14px; font-weight: 700; color: #1E3A8A; margin-bottom: 8px; }
        .rp-file-box p { font-size: 13px; color: #1E40AF; margin: 0 0 6px; line-height: 1.5; }

        /* Lộ trình (Trang 4) */
        .rp-phase { border-left: 4px solid; padding: 15px 20px; background: #F9FAFB; margin-bottom: 15px; border-radius: 0 8px 8px 0; }
        .rp-phase-red { border-color: #EF4444; }
        .rp-phase-yellow { border-color: #F59E0B; }
        .rp-phase-green { border-color: #10B981; }
        .rp-phase-label { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: #111827; }
        .rp-phase p { font-size: 14px; color: #4B5563; margin: 0; line-height: 1.5; }

        .rp-conclusion { background: #EEF2FF; border: 1px solid #C7D2FE; border-radius: 8px; padding: 20px; margin-top: 30px; }
        .rp-conclusion-title { font-size: 16px; font-weight: 700; color: #3730A3; margin-bottom: 10px; border-bottom: 1px solid #A5B4FC; padding-bottom: 10px; }
        .rp-conclusion p { font-size: 14px; color: #312E81; line-height: 1.6; margin: 0; }
        .rp-expert-note { font-weight: 600; font-style: italic; margin-top: 10px !important; color: #4338CA !important; }

        .rp-footer { position: absolute; bottom: 30px; left: 50px; right: 50px; border-top: 1px solid #E5E7EB; padding-top: 15px; display: flex; justify-content: space-between; font-size: 12px; color: #9CA3AF; }

        /* ========================================================
           EMAIL MODAL
           ======================================================== */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; justify-content: center; align-items: center; }
        .modal-box { background: #fff; width: 600px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
        .modal-header { background: #111827; color: #fff; padding: 15px 20px; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
        .modal-close { background: none; border: none; color: #9CA3AF; cursor: pointer; font-size: 16px; }
        .modal-close:hover { color: #fff; }
        .modal-body { padding: 20px; }
        .email-field { display: flex; align-items: center; margin-bottom: 12px; }
        .email-field label { width: 80px; font-size: 13px; font-weight: 600; color: #4B5563; }
        .email-field input { flex: 1; padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 6px; font-size: 13px; font-family: 'Inter', sans-serif; }
        .email-field input:read-only { background: #F3F4F6; color: #6B7280; }
        .email-field textarea { flex: 1; padding: 12px; border: 1px solid #D1D5DB; border-radius: 6px; font-size: 13px; font-family: 'Inter', sans-serif; resize: vertical; line-height: 1.5; }
        .email-field-attach { align-items: flex-start; }
        .attach-tag { display: inline-flex; align-items: center; gap: 8px; background: #F3F4F6; border: 1px solid #E5E7EB; padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; }
        .attach-size { color: #9CA3AF; font-size: 11px; }
        .modal-footer { padding: 15px 20px; background: #F9FAFB; border-top: 1px solid #E5E7EB; display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
        .email-status { flex: 1; font-size: 13px; font-weight: 500; }

        /* General Modal System */
        .modal {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 3000;
            display: none;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(4px);
        }
        .modal-content {
            background: #fff;
            width: 100%;
            max-width: 500px;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
            position: relative;
            animation: modalSlideUp 0.3s ease-out;
        }
        @keyframes modalSlideUp {
            from { transform: translateY(30px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .modal-header {
            padding: 18px 25px;
            background: #111827;
            color: #fff;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .modal-header h3 { margin: 0; font-size: 16px; font-weight: 700; }
        .modal-header .close { cursor: pointer; font-size: 24px; opacity: 0.7; transition: 0.2s; }
        .modal-header .close:hover { opacity: 1; color: var(--accent); }
        .form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; font-family: 'Inter'; font-size: 14px; box-sizing: border-box; }

        /* ========================================================
           CLIENT PROFILE DRAWER & ENHANCED KANBAN
           ======================================================== */
        .vk-card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6B7280; margin: 8px 0; }
        .vk-card-val { font-weight: 700; color: #059669; font-size: 13px; }
        .vk-card-assignee { display: flex; align-items: center; gap: 4px; background: #EEF2FF; color: #4338CA; padding: 2px 6px; border-radius: 12px; font-size: 11px; font-weight:600;}
        .vk-card-assignee .avatar-s { width: 14px; height: 14px; border-radius: 50%; background: #4F46E5; color: #fff; display: inline-flex; justify-content: center; align-items: center; font-size: 8px; }
        
        .drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; display: none; justify-content: flex-end; opacity: 0; transition: opacity 0.3s; }
        .drawer-panel { width: 850px; height: 100%; background: #fff; box-shadow: -5px 0 25px rgba(0,0,0,0.1); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; flex-direction: column; }
        .drawer-overlay.active { display: flex; opacity: 1; }
        .drawer-overlay.active .drawer-panel { transform: translateX(0); }
        .drawer-header { padding: 20px 25px; border-bottom: 1px solid #E5E7EB; display: flex; justify-content: space-between; align-items: flex-start; background: #F9FAFB; }
        .drawer-title-area h2 { margin: 0; color: #111827; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
        .drawer-subtitle { color: #6B7280; font-size: 13px; margin-top: 4px; }
        .btn-close-drawer { background: none; border: none; font-size: 20px; color: #9CA3AF; cursor: pointer; transition: color 0.2s; }
        .btn-close-drawer:hover { color: #DC2626; }
        
        .drawer-tabs { display: flex; border-bottom: 1px solid #E5E7EB; padding: 0 25px; background: #fff; }
        .drawer-tab { padding: 15px 20px; font-weight: 600; color: #6B7280; cursor: pointer; border-bottom: 2px solid transparent; font-size: 14px; transition: all 0.2s; }
        .drawer-tab:hover { color: #111827; }
        .drawer-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
        
        .drawer-body { flex: 1; overflow-y: auto; padding: 25px; background: #F9FAFB; }
        .drawer-tab-content { display: none; animation: fadeIn 0.3s; }
        .drawer-tab-content.active { display: block; }

        /* Khối thông tin Overview */
        .cp-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
        .cp-card { background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; padding: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); margin-bottom: 20px; }
        .cp-card-title { font-size: 15px; font-weight: 700; color: #1F2937; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #F3F4F6; padding-bottom: 10px; }
        
        /* Bảng Danh bạ Liên hệ */
        .contact-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
        .contact-table th { color: #6B7280; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid #E5E7EB; }
        .contact-table td { padding: 10px; border-bottom: 1px solid #F3F4F6; color: #111827; }
        .contact-main-star { color: #F59E0B; cursor: help; margin-left: 5px;}
        .role-tag { font-size: 11px; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
        .rt-gd { background: #FEE2E2; color: #DC2626; }
        .rt-it { background: #E0E7FF; color: #4338CA; }
        .rt-kt { background: #FEF3C7; color: #D97706; }
        .rt-user { background: #D1FAE5; color: #059669; }

        /* Khối Commission / Admin */
        .admin-commission-box { background: #FFFBEB; border: 1px solid #FCD34D; border-radius: 8px; padding: 15px; }
        .acb-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
        .acb-title { font-weight: 700; color: #B45309; display: flex; align-items: center; gap: 6px; }
        .acb-form { display: flex; gap: 10px; align-items: flex-end; }
        .acb-form label { display: block; font-size: 12px; color: #92400E; margin-bottom: 4px; font-weight: 600; }
        .acb-input { padding: 6px 10px; border: 1px solid #FDE68A; border-radius: 4px; width: 100px; text-align: right; font-weight: 600; color: #92400E; background: #fff; }
        .btn-approve-comm { background: #D97706; color: #fff; border: none; padding: 7px 12px; border-radius: 4px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
        .btn-approve-comm:hover { background: #B45309; }

        /* Timeline Activities & Form */
        .tl-form { background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px; padding: 15px; margin-bottom: 25px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
        .tl-form-row { display: flex; gap: 10px; margin-bottom: 10px; }
        .tl-input { flex: 1; padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 4px; font-size: 13px; font-family: 'Inter', sans-serif; }
        .tl-select { padding: 8px 12px; border: 1px solid #D1D5DB; border-radius: 4px; font-size: 13px; font-family: 'Inter', sans-serif; background: #fff; }
        .tl-textarea { width: 100%; padding: 10px 12px; border: 1px solid #D1D5DB; border-radius: 4px; font-size: 13px; font-family: 'Inter', sans-serif; resize: vertical; min-height: 60px; margin-bottom: 10px; }
        .tl-container { position: relative; padding-left: 20px; border-left: 2px solid #E5E7EB; margin-left: 10px; }
        .tl-item { position: relative; margin-bottom: 20px; }
        .tl-dot { position: absolute; left: -27px; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 1px #E5E7EB; }
        .tl-dot.call { background: #3B82F6; }
        .tl-dot.meet { background: #10B981; }
        .tl-dot.email { background: #F59E0B; }
        .tl-content { background: #fff; border: 1px solid #E5E7EB; border-radius: 6px; padding: 12px 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
        .tl-header { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 12px; }
        .tl-title { font-weight: 600; color: #111827; font-size: 14px; }
        .tl-time { color: #6B7280; }
        .tl-desc { color: #4B5563; font-size: 13px; margin-top: 5px; line-height: 1.5; }

        /* E-Docs & eSign Table */
        .doc-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; overflow: hidden; }
        .doc-table th { background: #F9FAFB; padding: 12px; font-weight: 600; color: #374151; text-align: left; border-bottom: 1px solid #E5E7EB; }
        .doc-table td { padding: 12px; border-bottom: 1px solid #F3F4F6; vertical-align: middle; }
        .doc-icon { font-size: 18px; margin-right: 8px; vertical-align: middle; }
        .doc-name { font-weight: 600; color: #111827; display: block; margin-bottom: 4px; }
        .doc-meta { font-size: 11px; color: #9CA3AF; }
        .esign-status { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
        .es-draft { background: #F3F4F6; color: #4B5563; }
        .es-sent { background: #FEF3C7; color: #D97706; }
        .es-signed { background: #D1FAE5; color: #059669; }
        .btn-esign { background: #fff; border: 1px solid var(--primary); color: var(--primary); padding: 5px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
        .btn-esign:hover { background: var(--primary); color: #fff; }
        .btn-esign:disabled { opacity: 0.5; cursor: not-allowed; border-color: #D1D5DB; color: #6B7280; background: #F3F4F6; }
