﻿/* dashboard.css - Dashboard, enhanced dashboard, financial ledger, smart insights */

/* ==================== DASHBOARD STYLES ==================== */
.dashboard-content {
    padding: 2rem;
    background: #f8f9fa;
}

.stats-card {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: var(--eff-transition);
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #e0e0e0;
}

.stats-card::before {
    display: none;
}

.stats-card-content {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stats-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stats-card-icon.deceased { background: #e7f5ee; color: #198754; }
.stats-card-icon.claims { background: #e7f5ee; color: #198754; }
.stats-card-icon.pending { background: #fef3e2; color: #e67e22; }
.stats-card-icon.funded { background: #e7f5ee; color: #198754; }

.stats-card-info {
    flex: 1;
    text-align: left;
}

.stats-card h3 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.15rem;
    line-height: 1.1;
}

.stats-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
}

.stats-card-trend {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.stats-card-trend.up { color: #198754; }
.stats-card-trend.down { color: #dc3545; }

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    color: #212529;
    text-decoration: none;
    font-weight: 500;
    transition: var(--eff-transition);
}

.quick-action-btn:hover {
    border-color: var(--eff-primary);
    color: var(--eff-primary);
    background: #f0fff4;
}

.quick-action-btn i {
    font-size: 1.1rem;
}

/* Activity Feed */
.activity-feed {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--eff-shadow);
    overflow: hidden;
}

.activity-feed-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-feed-header h5 {
    margin: 0;
    font-weight: 600;
}

.activity-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    transition: background 0.2s;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.875rem;
}

.activity-icon.new { background: #d1e7dd; color: #198754; }
.activity-icon.update { background: #cfe2ff; color: #084298; }
.activity-icon.approved { background: #d1e7dd; color: #0f5132; }
.activity-icon.denied { background: #f8d7da; color: #842029; }

.activity-content {
    flex: 1;
}

.activity-content p {
    margin: 0;
    font-size: 0.9rem;
}

.activity-content .activity-time {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-banner h2 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.welcome-banner p {
    opacity: 0.9;
    margin: 0;
}

.welcome-banner .btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
}

.welcome-banner .btn:hover {
    background: rgba(255,255,255,0.3);
}

.welcome-banner-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==================== ENHANCED DASHBOARD ==================== */
.welcome-banner-enhanced {
    background: linear-gradient(135deg, #198754 0%, #157347 50%, #0f5132 100%);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(25, 135, 84, 0.3);
}

.welcome-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.welcome-greeting h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.welcome-date {
    opacity: 0.85;
    font-size: 0.9rem;
    margin: 0;
}

.welcome-summary {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.summary-number {
    font-size: 1.5rem;
    font-weight: 700;
}

.summary-label {
    font-size: 0.75rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-divider {
    width: 1px;
    height: 35px;
    background: rgba(255,255,255,0.3);
}

.welcome-right {
    display: flex;
    align-items: center;
}

.welcome-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.welcome-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.25rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    position: relative;
}

.welcome-action-btn i {
    font-size: 1.1rem;
}

.welcome-action-btn:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-2px);
}

.welcome-action-btn.primary {
    background: #fff;
    color: #198754;
    border-color: #fff;
}

.welcome-action-btn.primary:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.action-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #dc3545;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* Compact Welcome Banner */
.welcome-banner-compact {
    background: linear-gradient(135deg, #198754 0%, #157347 50%, #0f5132 100%);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: #fff;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(25, 135, 84, 0.25);
}

.welcome-main {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.welcome-greeting-compact h2 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
}

.welcome-greeting-compact .welcome-date {
    opacity: 0.8;
    font-size: 0.8rem;
    margin: 0.15rem 0 0 0;
}

.welcome-stats-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

.stat-pill .stat-number {
    font-weight: 700;
    font-size: 1rem;
}

.stat-pill .stat-label {
    opacity: 0.9;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.welcome-actions-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.welcome-action-btn-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.welcome-action-btn-compact:hover {
    background: rgba(255,255,255,0.25);
}

.welcome-action-btn-compact i {
    font-size: 0.9rem;
}

.welcome-action-btn-compact .action-badge {
    position: static;
    background: #fff;
    color: #198754;
    margin-left: 0.25rem;
    animation: badge-pulse-white 2s ease-in-out infinite;
}

/* Compact Banner Documents Button */
.welcome-actions-compact .docs-header-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.welcome-actions-compact .docs-header-btn:hover {
    background: rgba(255,255,255,0.25);
}

.welcome-actions-compact .docs-header-btn i {
    font-size: 0.9rem;
}

.welcome-actions-compact .docs-header-btn .docs-count {
    background: #fff;
    color: #198754;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 0.25rem;
    animation: badge-pulse-white 2s ease-in-out infinite;
}

@keyframes badge-pulse-white {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.3);
    }
}

/* Responsive compact banner */
@media (max-width: 992px) {
    .welcome-banner-compact {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .welcome-main {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .welcome-stats-inline {
        flex-wrap: wrap;
        justify-content: center;
    }

    .welcome-actions-compact {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .stat-pill {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .stat-pill .stat-number {
        font-size: 0.9rem;
    }

    .stat-pill .stat-label {
        font-size: 0.65rem;
    }
}

/* Dashboard Stats Row */
.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dash-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.dash-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    border-color: #198754;
}

.dash-stat-card.highlight {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: #fff;
    border: none;
}

.dash-stat-card.highlight:hover {
    box-shadow: 0 6px 25px rgba(25, 135, 84, 0.4);
}

.dash-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.dash-stat-icon.green { background: #d1e7dd; color: #198754; }
.dash-stat-icon.blue { background: #cfe2ff; color: #0d6efd; }
.dash-stat-icon.orange { background: #fff3cd; color: #fd7e14; }
.dash-stat-icon.white { background: rgba(255,255,255,0.2); color: #fff; }

.dash-stat-info {
    flex: 1;
}

.dash-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.dash-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

.dash-stat-card.highlight .dash-stat-label {
    color: rgba(255,255,255,0.85);
}

.dash-stat-trend {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

.dash-stat-trend.up {
    background: #d1e7dd;
    color: #198754;
}

.dash-stat-trend.down {
    background: #f8d7da;
    color: #dc3545;
}

.dash-stat-progress {
    width: 60px;
}

.mini-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.mini-progress-fill.orange { background: #fd7e14; }
.mini-progress-fill.green { background: #198754; }

.dash-stat-badge {
    font-size: 0.75rem;
    background: rgba(255,255,255,0.2);
    padding: 4px 10px;
    border-radius: 20px;
}

/* Main Dashboard Layout - 70/30 Split */
.dashboard-main-layout {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.dashboard-left-column {
    flex: 0 0 420px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dashboard-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.dashboard-left-bottom {
    display: flex;
    gap: 1rem;
    flex: 1;
}

/* Left stack: Claims Overview + KPIs */
.dashboard-left-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.dashboard-left-stack .claims-overview {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-left-stack .claims-overview .dash-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dashboard-left-stack .claims-overview .mini-bar-chart {
    flex: 1;
    min-height: 150px;
}

/* KPIs row below Claims Overview */
.dashboard-kpis-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.dashboard-kpis-row .bottom-stat-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.dashboard-kpis-row .bottom-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--eff-primary-light);
    color: var(--eff-primary);
    font-size: 0.9rem;
}

.dashboard-kpis-row .bottom-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.dashboard-kpis-row .bottom-stat-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Right column - Smart Insights expanded */
.dashboard-right-column .smart-insights-panel {
    flex: 1;
    min-height: 0;
}

/* ========== Financial Ledger Style ========== */
.financial-ledger-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
}

.financial-ledger {
    max-width: 100%;
    font-size: 0.9rem;
}

.fl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #e5e7eb;
}

.fl-label {
    color: #4b5563;
}

.fl-value {
    font-weight: 600;
    color: #1f2937;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 1rem;
}

.fl-row.fl-subtract {
    color: #dc2626;
}

.fl-row.fl-subtract .fl-label {
    color: #9ca3af;
}

.fl-row.fl-subtract .fl-value {
    color: #dc2626;
}

.fl-row.fl-total {
    border-bottom: none;
    border-top: 2px solid #198754;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    font-weight: 600;
}

.fl-row.fl-total .fl-label {
    color: #198754;
    font-weight: 600;
}

.fl-row.fl-total .fl-value {
    color: #198754;
    font-size: 1.15rem;
}

/* Financial Summary Row (legacy - kept for compatibility) */
.financial-summary-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    width: 100%;
}

.financial-summary-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    background: #fff;
    border-radius: 8px;
    flex: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #e9ecef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.financial-summary-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.financial-summary-card.gross {
    border-left: 3px solid #0d6efd;
}

.financial-summary-card.fees {
    border-left: 3px solid #fd7e14;
}

.financial-summary-card.net {
    border-left: 3px solid var(--eff-primary);
}

.financial-summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.financial-summary-card.gross .financial-summary-icon {
    background: rgba(13,110,253,0.1);
    color: #0d6efd;
}

.financial-summary-card.fees .financial-summary-icon {
    background: rgba(253,126,20,0.1);
    color: #fd7e14;
}

.financial-summary-card.net .financial-summary-icon {
    background: var(--eff-primary-light);
    color: var(--eff-primary);
}

.financial-summary-content {
    flex: 1;
    min-width: 0;
}

.financial-summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #212529;
    line-height: 1.2;
    white-space: nowrap;
}

.financial-summary-card.net .financial-summary-value {
    color: var(--eff-primary);
}

.financial-summary-label {
    font-size: 0.7rem;
    color: #495057;
    font-weight: 600;
}

.financial-summary-sublabel {
    font-size: 0.6rem;
    color: #6c757d;
    display: none;
}

.financial-summary-divider {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #6c757d;
    flex-shrink: 0;
}

/* Smart Insights Panel - White/Green Branding */
.smart-insights-panel {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.smart-insights-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
    flex-shrink: 0;
}

.smart-insights-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #1f2937;
    font-weight: 700;
    font-size: 1rem;
}

.smart-insights-title i {
    color: var(--eff-primary);
    font-size: 1.1rem;
}

.smart-insights-badge-wrapper {
    position: relative;
}

.smart-insights-badge {
    background: linear-gradient(135deg, var(--eff-primary), #16a34a);
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.smart-insights-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.4);
}

/* AI Tooltip */
.ai-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.ai-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #1f2937 50%, transparent 50%);
    transform: rotate(45deg);
    border-radius: 3px 0 0 0;
}

.smart-insights-badge-wrapper:hover .ai-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-tooltip-header {
    background: linear-gradient(135deg, var(--eff-primary), #059669);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
}

.ai-tooltip-header i {
    font-size: 1.5rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 2px rgba(255,255,255,0.3)); }
    50% { opacity: 0.8; filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)); }
}

.ai-tooltip-header span {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ai-tooltip-body {
    padding: 1rem 1.25rem;
    color: #e5e7eb;
}

.ai-tooltip-intro {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #9ca3af;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ai-tooltip-section {
    margin-bottom: 0.875rem;
}

.ai-tooltip-section:last-of-type {
    margin-bottom: 0;
}

.ai-tooltip-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-tooltip-section-title i {
    color: var(--eff-primary);
    font-size: 0.75rem;
}

.ai-tooltip-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ai-tooltip-section li {
    font-size: 0.7rem;
    color: #9ca3af;
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
}

.ai-tooltip-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--eff-primary);
    border-radius: 50%;
}

.ai-tooltip-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.65rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-tooltip-footer i {
    color: var(--eff-primary);
    animation: spin-slow 3s linear infinite;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Enhanced Insight Item Subtexts */
.smart-insight-subtext {
    font-size: 0.65rem;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 0.2rem;
    margin-bottom: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.smart-insight-subtext span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.smart-insight-subtext i {
    font-size: 0.6rem;
    width: 12px;
    text-align: center;
    flex-shrink: 0;
}

.insight-docs-needed {
    color: #dc2626;
    font-weight: 500;
}

.insight-docs-needed i {
    color: #dc2626;
}

.insight-notary-warning {
    color: #f59e0b;
}

.insight-notary-warning i {
    color: #f59e0b;
}

.insight-waiting {
    color: #6b7280;
}

.insight-waiting i {
    color: #6b7280;
}

.insight-status {
    color: #f59e0b;
}

.insight-status i {
    color: #f59e0b;
}

.insight-signature {
    color: #7c3aed;
}

.insight-signature i {
    color: #7c3aed;
}

.insight-esign {
    color: var(--eff-primary);
}

.insight-esign i {
    color: var(--eff-primary);
}

.insight-wet-sign {
    color: #f59e0b;
}

.insight-wet-sign i {
    color: #f59e0b;
}

.insight-stage {
    color: #3b82f6;
}

.insight-stage i {
    color: #3b82f6;
}

.insight-estimate {
    color: var(--eff-primary);
}

.insight-estimate i {
    color: var(--eff-primary);
}

.insight-action-hint {
    color: var(--eff-primary);
    font-weight: 500;
    font-style: italic;
}

.insight-action-hint i {
    color: var(--eff-primary);
}

.smart-insights-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    padding-right: 0.5rem;
}

/* Insight Category Groups */
.insight-category {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Grid layout for action items */
.insight-category .insight-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.insight-items-grid .smart-insight-item {
    height: 100%;
    margin: 0;
}

@media (max-width: 1400px) {
    .insight-category .insight-items-grid {
        grid-template-columns: 1fr;
    }
}

.insight-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    padding: 0.5rem 0 0.25rem 0;
    margin-top: 0;
    border-bottom: 1px solid #e5e7eb;
}

.insight-category-header:first-child {
    margin-top: 0;
    padding-top: 0;
}

.insight-category-header i {
    font-size: 0.7rem;
}

.insight-category-header.action-needed {
    color: #dc2626;
    border-bottom-color: rgba(220, 38, 38, 0.2);
}

.insight-category-header.financial {
    color: var(--eff-primary);
    border-bottom-color: rgba(25, 135, 84, 0.2);
}

.insight-category-header.tips {
    color: #6b7280;
    border-bottom-color: #e5e7eb;
}

.smart-insight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f9fafb;
    border-radius: 10px;
    border-left: 4px solid;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.smart-insight-item:hover {
    background: #f3f4f6;
    transform: translateX(2px);
}

.smart-insight-item.urgent {
    border-left-color: #ef4444;
    background: #fef2f2;
}

.smart-insight-item.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.smart-insight-item.info {
    border-left-color: var(--eff-primary);
    background: var(--eff-primary-light);
}

.smart-insight-item.success {
    border-left-color: var(--eff-primary);
    background: var(--eff-primary-light);
}

.smart-insight-item.tip {
    border-left-color: #6b7280;
    background: #f9fafb;
}

.smart-insight-item.attention {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.smart-insight-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.smart-insight-item.urgent .smart-insight-icon {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}

.smart-insight-item.warning .smart-insight-icon {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
}

.smart-insight-item.info .smart-insight-icon {
    background: rgba(34,197,94,0.15);
    color: var(--eff-primary);
}

.smart-insight-item.success .smart-insight-icon {
    background: rgba(34,197,94,0.15);
    color: var(--eff-primary);
}

.smart-insight-item.tip .smart-insight-icon {
    background: rgba(107,114,128,0.15);
    color: #6b7280;
}

.smart-insight-item.attention .smart-insight-icon {
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
}

.smart-insight-content {
    flex: 1;
    min-width: 0;
}

.smart-insight-text {
    color: #374151;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.35rem;
}

.smart-insight-text strong {
    color: #1f2937;
    font-weight: 600;
}

.smart-insight-meta {
    font-size: 0.7rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.smart-insight-action {
    color: var(--eff-primary);
    font-size: 0.7rem;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    background: rgba(25, 135, 84, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.smart-insight-action:hover {
    color: #fff;
    background: var(--eff-primary);
    text-decoration: none;
}

@media (max-width: 1200px) {
    .dashboard-main-layout {
        flex-direction: column;
    }
    .dashboard-left-column {
        flex: none;
        width: 100%;
    }
    .dashboard-right-column {
        flex: none;
        width: 100%;
    }
    .dashboard-left-bottom {
        flex-direction: column;
    }
    .dashboard-left-stack,
    .dashboard-right-stack {
        flex: none;
    }
    .dashboard-kpis-row {
        grid-template-columns: repeat(4, 1fr);
    }
    .financial-summary-divider {
        display: none;
    }
    .insight-category .insight-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-kpis-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .financial-summary-row {
        flex-direction: column;
        align-items: stretch;
    }
    .financial-summary-card {
        max-width: none;
    }
    .smart-insights-list {
        flex-direction: column;
    }
    .smart-insight-item {
        flex: none;
    }
}

.dash-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.dash-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-card-header h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.dash-card-header h5 i {
    color: #198754;
}

.view-all-link {
    font-size: 0.8rem;
    color: #198754;
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

.dash-card-body {
    padding: 1.25rem;
}

.dash-card-body.no-padding {
    padding: 0;
}

.dash-card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.dash-card-footer a {
    font-size: 0.8rem;
    color: #198754;
    text-decoration: none;
    font-weight: 500;
}

.dash-card-footer a:hover {
    text-decoration: underline;
}

.dash-period-select {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    color: #495057;
    cursor: pointer;
}

/* Claims Overview */
.claims-overview-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}

.overview-stat {
    text-align: center;
}

.overview-stat-value {
    font-size: 2rem;
    font-weight: 700;
}

.overview-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

.mini-bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    min-height: 200px;
    gap: 0;
    padding: 1.5rem 1rem 0.75rem 1rem;
    background:
        linear-gradient(to bottom, transparent 0%, rgba(25, 135, 84, 0.03) 100%),
        repeating-linear-gradient(
            to top,
            transparent,
            transparent 49px,
            rgba(0, 0, 0, 0.04) 49px,
            rgba(0, 0, 0, 0.04) 50px
        );
    border-radius: 12px;
    margin: 0 -0.5rem;
    position: relative;
}

.mini-bar-chart::before {
    content: '';
    position: absolute;
    bottom: 32px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(25, 135, 84, 0.2), transparent);
}

.mini-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    max-width: 90px;
    padding: 0 0.5rem;
}

.mini-bar-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #198754;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mini-bar {
    width: 100%;
    max-width: 70px;
    background: linear-gradient(180deg, #198754 0%, #10b981 50%, #34d399 100%);
    border-radius: 8px 8px 0 0;
    min-height: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 -4px 12px rgba(25, 135, 84, 0.3);
    position: relative;
}

.mini-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 100%);
    border-radius: 8px 8px 0 0;
}

.mini-bar:hover {
    filter: brightness(1.1);
    transform: scaleY(1.05) translateY(-2px);
    box-shadow: 0 -6px 20px rgba(25, 135, 84, 0.4);
}

/* Highlight for the best/highest bar */
.mini-bar-wrapper.best-week .mini-bar {
    background: linear-gradient(180deg, #0f4c3a 0%, #198754 50%, #22c55e 100%);
    box-shadow: 0 -6px 20px rgba(25, 135, 84, 0.5);
}

.mini-bar-wrapper.best-week .mini-bar-value {
    background: linear-gradient(135deg, #198754, #22c55e);
    color: #fff;
    font-weight: 700;
}

.mini-bar-wrapper.best-week .mini-bar-label {
    color: #198754;
    font-weight: 600;
}

.mini-bar-label {
    font-size: 0.8rem;
    color: #4b5563;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 500;
}

/* Recent Claims List */
.recent-claims-list {
    max-height: 280px;
    overflow-y: auto;
}

.recent-claim-item {
    display: flex;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s ease;
}

.recent-claim-item:hover {
    background: #f8fdf9;
}

.recent-claim-item:last-child {
    border-bottom: none;
}

.claim-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #e7f5ee;
    color: #198754;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    margin-right: 0.85rem;
    flex-shrink: 0;
}

.claim-info {
    flex: 1;
    min-width: 0;
}

.claim-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.claim-meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    gap: 0.75rem;
}

.claim-amount {
    font-weight: 700;
    font-size: 0.95rem;
    color: #198754;
    margin-left: auto;
    padding-left: 1rem;
}

.claim-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 0.5rem;
}

.claim-status-dot.funded { background: #198754; }
.claim-status-dot.in-process { background: #fd7e14; }
.claim-status-dot.closed { background: #6c757d; }
.claim-status-dot.withdrawn { background: #dc3545; }

/* Right Column */
.dash-right-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.attention-card .dash-card-header {
    background: #fff8e6;
}

.attention-card .dash-card-header h5 i {
    color: #fd7e14;
}

.attention-count {
    background: #fd7e14;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.attention-list {
    max-height: 140px;
    overflow-y: auto;
}

.attention-item {
    display: flex;
    align-items: center;
    padding: 0.65rem 1.25rem;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.15s ease;
}

.attention-item:hover {
    background: #fffbf5;
}

.attention-item:last-child {
    border-bottom: none;
}

.attention-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.attention-icon.doc { background: #fff3cd; color: #856404; }
.attention-icon.pending { background: #cfe2ff; color: #0d6efd; }
.attention-icon.urgent { background: #f8d7da; color: #dc3545; }

.attention-text {
    flex: 1;
    font-size: 0.8rem;
    color: #495057;
    line-height: 1.3;
}

.attention-text strong {
    color: #333;
}

/* Activity List */
.activity-list {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item-new {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f5f5f5;
}

.activity-item-new:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.activity-dot.success { background: #198754; }
.activity-dot.info { background: #0dcaf0; }
.activity-dot.warning { background: #fd7e14; }
.activity-dot.danger { background: #dc3545; }

.activity-content-new {
    flex: 1;
}

.activity-title {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 2px;
}

.activity-time-new {
    font-size: 0.7rem;
    color: #adb5bd;
}

/* Bottom Stats Row */
.dashboard-bottom-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.bottom-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    border: 1px solid #eee;
}

.bottom-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.bottom-stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
}

.bottom-stat-label {
    font-size: 0.7rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive Dashboard */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
    .dash-right-column {
        grid-column: span 2;
        flex-direction: row;
    }
    .dash-right-column .dash-card {
        flex: 1;
    }
}

@media (max-width: 992px) {
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .welcome-banner-enhanced {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }
    .welcome-summary {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dash-right-column {
        flex-direction: column;
        grid-column: span 1;
    }
    .welcome-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Documents Needed Header Button - Grid Version - RED for urgency */
.welcome-actions-grid .docs-header-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 1.25rem;
    background: rgba(220, 38, 38, 0.35);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 10px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
}

.welcome-actions-grid .docs-header-btn i {
    font-size: 1.1rem;
}

.welcome-actions-grid .docs-header-btn:hover {
    background: rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.welcome-actions-grid .docs-header-btn .docs-count {
    position: absolute;
    top: -6px;
    right: -6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #fff;
    color: #dc2626;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Legacy Documents Button - RED for urgency */
.docs-header-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 0.5rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.docs-header-btn:hover {
    background: rgba(255,255,255,0.25);
}

.docs-header-btn.has-docs {
    background: rgba(220, 38, 38, 0.4);
    border-color: rgba(220, 38, 38, 0.6);
}

.docs-header-btn.has-docs:hover {
    background: rgba(220, 38, 38, 0.55);
}

.docs-header-btn .docs-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.4rem;
    background: #fff;
    color: #dc2626;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 1rem;
}

.docs-header-btn.no-docs .docs-count {
    background: #22c55e;
    color: #fff;
}

.docs-header-btn.no-docs .docs-count::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

/* Pulse Animation - RED */
.docs-header-btn.has-docs::before {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    animation: docsPulse 1.5s ease-in-out infinite;
}

@keyframes docsPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }
    50% {
        transform: scale(1.3);
        opacity: 0.8;
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }
}

/* Documents Dropdown Popup */
.docs-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    color: #333;
}

/* Dropdown in welcome grid - position to the left */
.welcome-actions-grid .docs-dropdown {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.welcome-actions-grid .docs-dropdown.show {
    transform: translateX(-50%) translateY(0);
}

.docs-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.docs-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
}

.docs-dropdown-header {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.docs-dropdown-header.no-docs {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.docs-dropdown-header h6 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs-dropdown-close {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 0.375rem;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.docs-dropdown-close:hover {
    background: rgba(255,255,255,0.3);
}

.docs-dropdown-body {
    max-height: 320px;
    overflow-y: auto;
}

.docs-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.15s ease;
}

.docs-dropdown-item:hover {
    background: #fffbeb;
}

.docs-dropdown-item:last-child {
    border-bottom: none;
}

.docs-item-priority {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.docs-item-priority.urgent { background: #ef4444; }
.docs-item-priority.high { background: #f59e0b; }
.docs-item-priority.medium { background: #3b82f6; }
.docs-item-priority.low { background: #22c55e; }

.docs-item-content {
    flex: 1;
    min-width: 0;
}

.docs-item-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.875rem;
}

.docs-item-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.docs-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.docs-item-claim {
    font-size: 0.7rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}

.docs-required-section {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 6px;
    padding: 8px 10px;
    margin-top: 4px;
}

.docs-required-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.docs-required-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.8rem;
    color: #1f2937;
    border-bottom: 1px dashed #fcd34d;
}

.docs-required-item:last-child {
    border-bottom: none;
}

.docs-required-item i {
    color: #f59e0b;
    font-size: 0.75rem;
}

/* Document Request Banner for Claim Detail */
.docs-request-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    display: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.docs-request-banner.show {
    display: block;
}

.docs-request-banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
}

.docs-request-banner-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.docs-request-banner-title {
    font-weight: 700;
    color: #92400e;
    font-size: 1rem;
}

.docs-request-banner-subtitle {
    font-size: 0.8rem;
    color: #b45309;
    margin-top: 2px;
}

.docs-request-list {
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.docs-request-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fffbeb;
    border-radius: 8px;
    border: 1px solid #fef3c7;
    transition: all 0.2s ease;
}

.docs-request-list-item:hover {
    background: #fef3c7;
}

.docs-request-list-item-icon {
    width: 28px;
    height: 28px;
    background: #fef3c7;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.docs-request-list-item-icon i {
    font-size: 0.8rem;
    color: #f59e0b;
}

.docs-request-list-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.docs-request-list-item-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.docs-request-list-item-content .doc-status-badge {
    align-self: flex-start;
}

/* Status badges for document items */
.doc-status-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.doc-status-badge.pending {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fde68a;
}

.doc-status-badge.missing {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.docs-request-list-item button.upload-doc-btn {
    padding: 5px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--eff-primary) 0%, #16a34a 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.docs-request-list-item button.upload-doc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(34, 197, 94, 0.3);
}

.docs-request-list-item button.upload-doc-btn i {
    font-size: 0.7rem;
}

.docs-item-actions {
    display: flex;
    gap: 0.375rem;
}

.docs-item-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    font-size: 0.85rem;
}

.docs-item-btn.upload {
    background: #dcfce7;
    color: #16a34a;
}

.docs-item-btn.upload:hover {
    background: #16a34a;
    color: #fff;
}

.docs-item-btn.info {
    background: #e0f2fe;
    color: #0284c7;
}

.docs-item-btn.info:hover {
    background: #0284c7;
    color: #fff;
}

.docs-dropdown-footer {
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 0.75rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.docs-dropdown-footer .help-text {
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.docs-dropdown-footer .help-text i {
    color: #198754;
}

/* No Documents Message */
.docs-no-items {
    padding: 2rem 1.5rem;
    text-align: center;
}

.docs-no-items i {
    font-size: 2.5rem;
    color: #22c55e;
    margin-bottom: 0.75rem;
}

.docs-no-items h6 {
    margin: 0 0 0.25rem 0;
    color: #1f2937;
    font-weight: 600;
}

.docs-no-items p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}
