/* =====================
   CSS Variables
   ===================== */
:root {
    --sidebar-width: 240px;
    --sidebar-bg: #0f1623;
    --sidebar-hover: #1a2540;
    --sidebar-active: #1e3a8a;
    --sidebar-text: #94a3b8;
    --sidebar-text-active: #ffffff;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --bg-main: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --topbar-h: 56px;
}

/* =====================
   Base
   ===================== */
* { box-sizing: border-box; }

body.crm-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 14px;
}

/* =====================
   Sidebar
   ===================== */
#wrapper { display: flex; min-height: 100vh; }

#sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 1000;
    transition: width 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.brand-icon {
    width: 34px; height: 34px;
    background: var(--accent);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.brand-text {
    color: white;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.sidebar-nav {
    list-style: none;
    padding: 12px 0;
    margin: 0;
}

.sidebar-nav .nav-label {
    padding: 14px 18px 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #475569;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px;
    color: var(--sidebar-text);
    text-decoration: none;
    border-radius: 0;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.sidebar-nav .nav-link i { font-size: 15px; flex-shrink: 0; }

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

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

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding: 14px 18px;
}

.user-info { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }

.user-avatar {
    width: 34px; height: 34px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.user-name { color: white; font-weight: 600; font-size: 13px; }
.user-role { color: var(--sidebar-text); font-size: 11px; }

.sidebar-footer-links { display: flex; gap: 12px; }

.sidebar-footer-links a,
.sidebar-footer-links button {
    background: none;
    border: none;
    color: var(--sidebar-text);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.sidebar-footer-links a:hover,
.sidebar-footer-links button:hover { color: white; }

/* =====================
   Page Content
   ===================== */
#page-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: margin-left 0.25s ease;
}

.top-bar {
    height: var(--topbar-h);
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    gap: 8px;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.sidebar-toggle:hover { background: var(--bg-main); }

.breadcrumb { font-size: 13px; }
.breadcrumb-item a { color: var(--accent); text-decoration: none; }

.main-content { padding: 24px; flex: 1; }

/* =====================
   Page Header
   ===================== */
.page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.page-header h4 { margin: 0; font-size: 20px; font-weight: 700; }

.page-header-actions { margin-left: auto; display: flex; gap: 8px; }

/* =====================
   Cards
   ===================== */
.card {
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.card-header {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px 10px 0 0 !important;
}

.card-body { padding: 18px; }

/* =====================
   KPI Cards
   ===================== */
.kpi-card {
    border-radius: 10px;
    padding: 18px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.kpi-icon { font-size: 22px; opacity: 0.8; margin-bottom: 4px; }
.kpi-value { font-size: 28px; font-weight: 800; line-height: 1; }
.kpi-label { font-size: 12px; opacity: 0.85; font-weight: 500; }

.kpi-blue   { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.kpi-purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); }
.kpi-orange { background: linear-gradient(135deg, #ea580c, #c2410c); }
.kpi-green  { background: linear-gradient(135deg, #16a34a, #15803d); }
.kpi-teal   { background: linear-gradient(135deg, #0d9488, #0f766e); }
.kpi-indigo { background: linear-gradient(135deg, #4f46e5, #4338ca); }

/* =====================
   Tables
   ===================== */
.crm-table { font-size: 13.5px; }
.crm-table th { background: #f8fafc; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.crm-table td { vertical-align: middle; border-bottom: 1px solid #f1f5f9; }
.crm-table tbody tr:hover { background: #f8fafc; }
.crm-table a { color: var(--accent); text-decoration: none; font-weight: 500; }
.crm-table a:hover { text-decoration: underline; }

/* =====================
   Pipeline
   ===================== */
.pipeline-list { padding: 8px 0; }

.pipeline-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.pipeline-row:last-child { border-bottom: none; }

.stage-badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    min-width: 110px;
    text-align: center;
    background: #e2e8f0;
    color: #475569;
}

.stage-badge-sm {
    font-size: 11px;
    background: #e2e8f0;
    color: #475569;
}

.pipeline-bar-wrap {
    flex: 1;
    background: #f1f5f9;
    border-radius: 4px;
    height: 6px;
    overflow: hidden;
}

.pipeline-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.pipeline-count { font-weight: 700; color: var(--text-primary); min-width: 24px; text-align: right; }

/* =====================
   Empty States
   ===================== */
.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 32px;
}

.empty-state i { font-size: 2.5rem; display: block; margin-bottom: 10px; opacity: 0.4; }
.empty-state p { margin: 0; font-size: 13.5px; }
.empty-state a { color: var(--accent); }

/* =====================
   Buttons
   ===================== */
.btn-primary { background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* =====================
   Forms
   ===================== */
.form-label { font-weight: 600; font-size: 13px; color: var(--text-primary); margin-bottom: 5px; }
.form-control, .form-select { font-size: 13.5px; border-color: var(--border); border-radius: 7px; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.phone-code-input { max-width: 82px; flex: 0 0 82px !important; }

/* =====================
   Login Page
   ===================== */
body.login-page {
    background:
        linear-gradient(115deg, rgba(15, 22, 35, 0.88) 0%, rgba(15, 22, 35, 0.58) 46%, rgba(30, 58, 138, 0.46) 100%),
        url('../images/login-private-equity.jpg') center / cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: saturate(105%);
}

.login-box {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 16px;
    padding: 34px 36px 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    box-shadow: 0 24px 70px rgba(0,0,0,0.36);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    padding: 16px 18px;
    margin: 0 0 18px;
    background: #0f1623;
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.login-brand-logo {
    display: block;
    width: min(100%, 260px);
    max-height: 46px;
    object-fit: contain;
}

.login-title { text-align: center; font-weight: 800; font-size: 22px; margin: 0 0 4px; }
.login-subtitle { text-align: center; color: var(--text-muted); font-size: 13px; margin-bottom: 28px; }

.btn-login { padding: 11px; font-size: 15px; font-weight: 600; border-radius: 8px; }

.login-footer { text-align: center; margin-top: 20px; font-size: 12px; color: var(--text-muted); }

/* =====================
   Sidebar Collapsed
   ===================== */
#wrapper.sidebar-collapsed #sidebar { width: 60px; }
#wrapper.sidebar-collapsed #page-content { margin-left: 60px; }
#wrapper.sidebar-collapsed .brand-text,
#wrapper.sidebar-collapsed .nav-label,
#wrapper.sidebar-collapsed .nav-link span,
#wrapper.sidebar-collapsed .user-details,
#wrapper.sidebar-collapsed .user-name,
#wrapper.sidebar-collapsed .user-role { display: none; }
#wrapper.sidebar-collapsed .sidebar-nav .nav-link { justify-content: center; padding: 10px; }
#wrapper.sidebar-collapsed .sidebar-brand { justify-content: center; padding: 16px; }

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    #sidebar {
        width: var(--sidebar-width);
        max-width: calc(100vw - 56px);
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
        overflow-x: hidden;
    }

    #wrapper.sidebar-collapsed #sidebar {
        width: var(--sidebar-width);
    }

    #page-content,
    #wrapper.sidebar-collapsed #page-content {
        margin-left: 0;
    }

    #wrapper.sidebar-open #sidebar {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    #wrapper.sidebar-collapsed .brand-text,
    #wrapper.sidebar-collapsed .nav-label,
    #wrapper.sidebar-collapsed .user-details,
    #wrapper.sidebar-collapsed .user-name,
    #wrapper.sidebar-collapsed .user-role {
        display: block;
    }

    #wrapper.sidebar-collapsed .sidebar-nav .nav-link {
        justify-content: flex-start;
        padding: 9px 18px;
    }

    #wrapper.sidebar-collapsed .sidebar-brand {
        justify-content: flex-start;
        padding: 20px 18px;
    }
}

/* =====================
   Company Icons
   ===================== */
.company-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 6px;
    font-size: 13px;
    flex-shrink: 0;
}

.company-icon-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 10px;
    font-size: 20px;
}

.company-icon-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 16px;
    font-size: 30px;
    margin: 0 auto;
}

/* =====================
   Industry Badges
   ===================== */
.industry-badge { font-size: 11px; font-weight: 600; }
.industry-healthcare       { background: #0891b2; color: white; }
.industry-technology       { background: #7c3aed; color: white; }
.industry-financial        { background: #1d4ed8; color: white; }
.industry-realestate       { background: #b45309; color: white; }
.industry-manufacturing    { background: #374151; color: white; }
.industry-retail           { background: #db2777; color: white; }
.industry-energy           { background: #d97706; color: white; }
.industry-education        { background: #059669; color: white; }
.industry-infrastructure   { background: #64748b; color: white; }
.industry-businessservices { background: #0f766e; color: white; }
.industry-consumer         { background: #e11d48; color: white; }
.industry-other            { background: #94a3b8; color: white; }

/* =====================
   Status Pills
   ===================== */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    background: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.15s;
}
.status-pill:hover { background: #e2e8f0; color: var(--text-primary); }
.status-pill-count { background: rgba(0,0,0,0.1); border-radius: 10px; padding: 1px 7px; font-size: 11px; }
.status-pill-portfolio { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.status-pill-target    { background: #dbeafe; color: #1d4ed8; border-color: #bfdbfe; }
.status-pill-exited    { background: #cffafe; color: #0e7490; border-color: #a5f3fc; }
.status-pill-declined  { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.status-pill-watchlist { background: #fef9c3; color: #a16207; border-color: #fef08a; }

/* =====================
   Contact Avatars
   ===================== */
.contact-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 6px;
    flex-shrink: 0;
    vertical-align: middle;
}

.contact-avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-avatar-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 auto;
}

/* =====================
   Contact Type Badges
   ===================== */
.contact-type-badge { font-size: 11px; font-weight: 600; }
.contact-type-investor        { background: #7c3aed; color: white; }
.contact-type-companyowner    { background: #0369a1; color: white; }
.contact-type-companyemployee { background: #0f766e; color: white; }
.contact-type-advisor         { background: #b45309; color: white; }
.contact-type-lawyer          { background: #be123c; color: white; }
.contact-type-banker          { background: #1d4ed8; color: white; }
.contact-type-boardmember     { background: #6d28d9; color: white; }
.contact-type-coinvestor      { background: #047857; color: white; }
.contact-type-other           { background: #64748b; color: white; }

/* =====================
   Detail List
   ===================== */
.detail-list {
    list-style: none;
    margin: 0; padding: 0;
}

.detail-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
}

.detail-list li:last-child { border-bottom: none; }

.detail-icon {
    width: 28px; height: 28px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    font-size: 13px;
}

/* =====================
   Activity Feed
   ===================== */
.activity-feed {
    list-style: none;
    margin: 0; padding: 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    color: white;
}

.activity-call    { background: #16a34a; }
.activity-meeting { background: #2563eb; }
.activity-email   { background: #d97706; }
.activity-note    { background: #7c3aed; }
.activity-task    { background: #0891b2; }
.activity-followup{ background: #db2777; }
.activity-other   { background: #64748b; }

.activity-subject { font-weight: 600; font-size: 13.5px; }
.activity-desc    { margin-top: 2px; }
.activity-meta    { font-size: 11.5px; margin-top: 3px; }
.activity-body    { flex: 1; }

/* =====================
   Deal Return Metrics
   ===================== */
.return-metric { padding: 10px; background: #f8fafc; border-radius: 8px; }
.return-value  { font-size: 20px; font-weight: 800; }
.return-label  { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Stage colors */
.bg-orange { background: #ea580c !important; color: white !important; }
.bg-purple { background: #7c3aed !important; color: white !important; }
.bg-teal   { background: #0f766e !important; color: white !important; }

/* =====================
   Kanban Pipeline Board
   ===================== */
.pipeline-board {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 16px;
    align-items: flex-start;
    min-height: calc(100vh - 200px);
}

.pipeline-column {
    flex: 0 0 240px;
    min-width: 240px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 180px);
}

.pipeline-col-header {
    padding: 12px 14px 10px;
    background: white;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid var(--border);
}

.pipeline-col-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-primary);
}

.pipeline-col-count {
    background: var(--accent);
    color: white;
    border-radius: 12px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
}

.pipeline-col-value {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 600;
}

.pipeline-cards {
    padding: 10px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 80px;
    transition: background 0.15s;
}

.pipeline-cards.drag-over {
    background: #eff6ff;
    border-radius: 0 0 10px 10px;
}

/* Deal Card */
.deal-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    cursor: grab;
    transition: box-shadow 0.15s, transform 0.15s;
    user-select: none;
}

.deal-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.deal-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
    transform: rotate(2deg);
}

.deal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}

.deal-card-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
    flex: 1;
}

.deal-card-title:hover { color: var(--accent); }

.deal-card-edit {
    color: var(--text-muted);
    font-size: 11px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}

.deal-card:hover .deal-card-edit { opacity: 1; }

.deal-card-company {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.deal-card-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.deal-card-footer {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.deal-card-owner {
    width: 22px; height: 22px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    margin-left: auto;
}

.deal-card-date { font-size: 11px; }

.pipeline-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 12px;
    border: 2px dashed var(--border);
    border-radius: 8px;
}

/* Pipeline board scrollbar */
.pipeline-board::-webkit-scrollbar { height: 6px; }
.pipeline-board::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* =====================
   Scrollbar
   ===================== */
#sidebar::-webkit-scrollbar { width: 4px; }
#sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* =====================
   Investor Badges
   ===================== */
.investor-type-badge {
    background: #1e3a8a;
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

/* =====================
   Activity Icon (small, inline)
   ===================== */
.activity-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    font-size: 12px;
    flex-shrink: 0;
    color: white;
}

/* Table row highlights */
.table-danger-light  { background: #fff5f5 !important; }
.table-warning-light { background: #fffbeb !important; }

/* Status pill active state */
.status-pill-active {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
}

.status-pill-overdue {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

/* =====================
   User Avatars
   ===================== */
.user-avatar-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    border-radius: 50%;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.user-avatar-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    color: white;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
}

.user-avatar-xl {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px; height: 76px;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 auto;
}

/* =====================
   Role Badges
   ===================== */
.role-badge       { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.role-admin       { background: #1e3a8a; color: white; }
.role-partner     { background: #7c3aed; color: white; }
.role-associate   { background: #0369a1; color: white; }
.role-analyst     { background: #0f766e; color: white; }
.role-viewer      { background: #64748b; color: white; }

/* =====================
   Role Guide (Create/Edit)
   ===================== */
.role-guide-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}
.role-guide-item:last-child { border-bottom: none; }

/* =====================
   Documents
   ===================== */
.doc-type-badge { font-size: 11px; font-weight: 600; color: white; padding: 3px 8px; border-radius: 4px; }

.doc-type-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.doc-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.15s;
}

.doc-type-pill:hover { background: #f1f5f9; color: var(--text-primary); }
.doc-type-pill.active { background: #eff6ff; color: var(--accent); border-color: var(--accent); }

.doc-type-name { color: var(--text-primary); }
.doc-type-count {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    color: var(--text-muted);
}

/* =====================
   Drop Zone
   ===================== */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: #fafbfc;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: var(--accent);
    background: #eff6ff;
}

.drop-zone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.drop-zone-content,
.drop-zone-preview { position: relative; z-index: 2; pointer-events: none; }
.drop-zone-preview button { pointer-events: all; }

.drop-zone-icon    { font-size: 3rem; color: var(--accent); opacity: 0.7; display: block; margin-bottom: 10px; }
.drop-zone-text    { font-size: 16px; font-weight: 600; color: var(--text-primary); }
.drop-zone-sub     { font-size: 13px; color: var(--text-muted); margin: 4px 0; }
.drop-zone-types   { font-size: 11px; color: #94a3b8; margin-top: 6px; }

.drop-zone-file-icon { font-size: 3rem; display: block; margin-bottom: 8px; }
.drop-zone-file-name { font-weight: 600; font-size: 14px; word-break: break-all; }
.drop-zone-file-size { margin-top: 4px; }
