/* CorpPolicy — Client Dashboard CSS (extracted from dashboard.php in E15.2) */

/* ── Variables ── */
:root {
    --enterprise-primary: #6366f1;
    --enterprise-primary-light: #818cf8;
    --enterprise-primary-dark: #4f46e5;
    --enterprise-success: #10b981;
    --enterprise-warning: #f59e0b;
    --enterprise-danger: #ef4444;
    --enterprise-info: #3b82f6;
    --enterprise-radius: 12px;
    --enterprise-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-enterprise {
    padding: 20px 0;
    max-width: 1400px;
    margin: 0 auto;
}

/* ── Top Stats Bar ── */
.top-stats-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stats-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card, rgba(255,255,255,0.6));
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color, rgba(0,0,0,0.04));
    border-radius: var(--enterprise-radius);
    cursor: pointer;
    transition: var(--enterprise-transition);
}

.stats-bar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border-color: rgba(99,102,241,0.15);
}

.stats-bar-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(99,102,241,0.08);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.stats-bar-content {
    flex: 1;
}

.stats-bar-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary, #0a0a0f);
    line-height: 1.2;
}

.stats-bar-label {
    font-size: 11px;
    color: var(--text-secondary, rgba(0,0,0,0.3));
}

.stats-bar-change {
    font-size: 14px;
    font-weight: 600;
}

.stats-bar-change.positive { color: var(--enterprise-success); }
.stats-bar-change.warning { color: var(--enterprise-warning); }
.stats-bar-change.neutral { color: var(--text-secondary, rgba(0,0,0,0.2)); }

/* ── Welcome Section ── */
.welcome-enterprise {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
    border-radius: var(--enterprise-radius);
    border: 1px solid var(--border-color, rgba(0,0,0,0.04));
    margin-bottom: 24px;
}

.welcome-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
}

.greeting-emoji {
    font-size: 28px;
}

.welcome-greeting h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary, #0a0a0f);
    margin: 0;
}

.welcome-meta-enterprise {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    color: var(--text-secondary, rgba(0,0,0,0.4));
    background: var(--bg-card, rgba(255,255,255,0.4));
    border: 1px solid var(--border-color, rgba(0,0,0,0.04));
}

.meta-chip i {
    color: var(--enterprise-primary);
}

.welcome-right-enterprise {
    display: flex;
    align-items: center;
    gap: 16px;
}

.welcome-actions {
    display: flex;
    gap: 6px;
}

.notif-btn, .chat-btn, .theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card, rgba(255,255,255,0.6));
    color: var(--text-secondary, rgba(0,0,0,0.4));
    cursor: pointer;
    transition: var(--enterprise-transition);
    font-size: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notif-btn:hover, .chat-btn:hover, .theme-btn:hover {
    background: rgba(99,102,241,0.08);
    color: var(--enterprise-primary);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--enterprise-danger);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: var(--enterprise-success);
    border-radius: 50%;
    border: 2px solid var(--bg-card, #ffffff);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.welcome-quick-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--bg-card, rgba(255,255,255,0.4));
    border-radius: 10px;
    border: 1px solid var(--border-color, rgba(0,0,0,0.04));
}

.quick-stat-item {
    display: flex;
    flex-direction: column;
}

.quick-stat-label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-secondary, rgba(0,0,0,0.3));
    letter-spacing: 0.5px;
}

.quick-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #0a0a0f);
}

.quick-stat-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color, rgba(0,0,0,0.06));
}

/* ── Stats Cards Row ── */
.stats-cards-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card-enterprise {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card, rgba(255,255,255,0.6));
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color, rgba(0,0,0,0.04));
    border-radius: var(--enterprise-radius);
    cursor: pointer;
    transition: var(--enterprise-transition);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.stat-card-enterprise:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    border-color: rgba(99,102,241,0.15);
}

.stat-card-enterprise:nth-child(1) { animation-delay: 0.05s; }
.stat-card-enterprise:nth-child(2) { animation-delay: 0.10s; }
.stat-card-enterprise:nth-child(3) { animation-delay: 0.15s; }
.stat-card-enterprise:nth-child(4) { animation-delay: 0.20s; }
.stat-card-enterprise:nth-child(5) { animation-delay: 0.25s; }
.stat-card-enterprise:nth-child(6) { animation-delay: 0.30s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.stat-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.stat-card-info {
    flex: 1;
}

.stat-card-number {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #0a0a0f);
    line-height: 1.2;
}

.stat-card-label {
    font-size: 11px;
    color: var(--text-secondary, rgba(0,0,0,0.3));
}

.stat-card-trend {
    font-size: 14px;
    font-weight: 600;
}

.stat-card-trend.up { color: var(--enterprise-success); }
.stat-card-trend.warning { color: var(--enterprise-warning); }
.stat-card-trend.none { color: var(--text-secondary, rgba(0,0,0,0.1)); }

/* ── Dashboard Grid ── */
.dashboard-grid-enterprise {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.grid-col-left, .grid-col-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Cards ── */
.card-enterprise {
    background: var(--bg-card, rgba(255,255,255,0.8));
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color, rgba(0,0,0,0.04));
    border-radius: var(--enterprise-radius);
    overflow: hidden;
    transition: var(--enterprise-transition);
    cursor: pointer;
}

.card-enterprise:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

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

.card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(99,102,241,0.08);
    color: var(--enterprise-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.card-header-enterprise h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary, #0a0a0f);
    margin: 0;
}

.card-badge-enterprise {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-secondary, rgba(0,0,0,0.3));
    background: var(--bg-primary, #f0f2f5);
    padding: 2px 10px;
    border-radius: 50px;
}

.card-link-enterprise {
    font-size: 12px;
    color: var(--enterprise-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-link-enterprise:hover {
    text-decoration: underline;
}

.card-body-enterprise {
    padding: 16px 20px;
}

.card-code {
    font-size: 11px;
    color: var(--text-secondary, rgba(0,0,0,0.2));
    background: var(--bg-primary, #f0f2f5);
    padding: 2px 10px;
    border-radius: 50px;
}

/* ── Timeline Card ── */
.timeline-card-enterprise .card-header-enterprise {
    border-bottom: none;
    padding-bottom: 0;
}

.card-header-right .progress-percent {
    font-size: 20px;
    font-weight: 700;
    color: var(--enterprise-primary);
}

.progress-track-enterprise {
    height: 6px;
    background: var(--bg-primary, #e5e7eb);
    border-radius: 3px;
    overflow: hidden;
    margin: 12px 0 16px;
}

.progress-fill-enterprise {
    height: 100%;
    background: linear-gradient(90deg, var(--enterprise-primary), var(--enterprise-primary-light));
    border-radius: 3px;
    transition: width 0.8s ease;
}

.stepper-enterprise {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 8px 0;
    overflow-x: auto;
    gap: 0;
}

.stepper-item-enterprise {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 60px;
    position: relative;
}

.stepper-circle-enterprise {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: var(--bg-primary, #f0f2f5);
    border: 2px solid var(--border-color, rgba(0,0,0,0.06));
    transition: var(--enterprise-transition);
    position: relative;
    z-index: 2;
}

.stepper-item-enterprise.completed .stepper-circle-enterprise {
    background: var(--enterprise-success);
    border-color: var(--enterprise-success);
    color: #fff;
}

.stepper-item-enterprise.active .stepper-circle-enterprise {
    background: var(--enterprise-primary);
    border-color: var(--enterprise-primary);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(99,102,241,0.12);
}

.stepper-item-enterprise.pending .stepper-circle-enterprise {
    background: var(--bg-primary, #f0f2f5);
    border-color: var(--border-color, rgba(0,0,0,0.06));
    color: #9ca3af;
}

.stepper-pulse-enterprise {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid var(--enterprise-primary);
    animation: pulse-ring 1.5s ease-in-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.stepper-line-enterprise {
    flex: 1;
    height: 2px;
    background: var(--border-color, rgba(0,0,0,0.06));
    margin: 0 2px;
    position: relative;
    top: -16px;
    z-index: 1;
}

.stepper-line-enterprise.hidden { display: none; }

.stepper-line-fill-enterprise {
    height: 100%;
    width: 0%;
    background: var(--enterprise-success);
    transition: width 0.6s ease;
}

.stepper-line-fill-enterprise.filled { width: 100%; }

.step-name-enterprise {
    font-size: 9px;
    font-weight: 500;
    color: var(--text-secondary, rgba(0,0,0,0.3));
    text-align: center;
    margin-top: 4px;
}

.timeline-footer-enterprise {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.04));
    margin-top: 8px;
}

.timeline-eta-enterprise {
    font-size: 12px;
    color: var(--text-secondary, rgba(0,0,0,0.3));
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Charts ── */
.charts-row-enterprise {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-card-enterprise {
    background: var(--bg-card, rgba(255,255,255,0.8));
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color, rgba(0,0,0,0.04));
    border-radius: var(--enterprise-radius);
    overflow: hidden;
}

.chart-header-enterprise {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.04));
}

.chart-header-enterprise h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary, #0a0a0f);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-header-enterprise h4 i {
    color: var(--enterprise-primary);
}

.chart-badge-enterprise {
    font-size: 10px;
    color: var(--text-secondary, rgba(0,0,0,0.2));
    background: var(--bg-primary, #f0f2f5);
    padding: 1px 10px;
    border-radius: 50px;
}

.chart-body-enterprise {
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    position: relative;
}

.chart-body-enterprise canvas {
    max-width: 100%;
    height: auto;
}

.chart-empty-enterprise {
    text-align: center;
    color: var(--text-secondary, rgba(0,0,0,0.2));
    padding: 16px;
}

.chart-empty-enterprise i {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}

.chart-empty-enterprise p {
    font-size: 12px;
    margin: 0;
}

/* ── Table ── */
.table-enterprise {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.table-row-enterprise {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--enterprise-transition);
}

.table-row-enterprise:hover {
    background: rgba(99,102,241,0.04);
}

.row-code {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, rgba(0,0,0,0.2));
    min-width: 100px;
}

.row-name {
    flex: 1;
    font-size: 13px;
    color: var(--text-primary, #0a0a0f);
}

.row-status .badge {
    font-size: 10px;
}

.row-date {
    font-size: 11px;
    color: var(--text-secondary, rgba(0,0,0,0.2));
}

.row-action {
    color: var(--text-secondary, rgba(0,0,0,0.1));
    font-size: 12px;
}

/* ── Activity Feed ── */
.activity-feed-enterprise {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item-enterprise {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.activity-dot-enterprise {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.activity-dot-enterprise.login { background: var(--enterprise-info); }
.activity-dot-enterprise.create_application { background: var(--enterprise-success); }
.activity-dot-enterprise.upload_document { background: var(--enterprise-warning); }
.activity-dot-enterprise.update_profile { background: var(--enterprise-primary); }
.activity-dot-enterprise.logout { background: var(--text-secondary, rgba(0,0,0,0.1)); }

.activity-content-enterprise {
    flex: 1;
}

.activity-text-enterprise {
    display: block;
    font-size: 13px;
    color: var(--text-primary, #0a0a0f);
}

.activity-text-enterprise strong {
    color: var(--enterprise-primary);
}

.activity-time-enterprise {
    font-size: 11px;
    color: var(--text-secondary, rgba(0,0,0,0.2));
}

/* ── Quick Actions ── */
.quick-actions-enterprise {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-action-enterprise {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary, #0a0a0f);
    background: var(--bg-primary, rgba(0,0,0,0.02));
    transition: var(--enterprise-transition);
    border-left: 3px solid var(--enterprise-primary);
}

.quick-action-enterprise:hover {
    background: rgba(99,102,241,0.06);
    transform: translateY(-2px);
}

.qa-icon-enterprise {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.qa-content-enterprise {
    flex: 1;
}

.qa-title-enterprise {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary, #0a0a0f);
}

.qa-desc-enterprise {
    font-size: 10px;
    color: var(--text-secondary, rgba(0,0,0,0.2));
}

.qa-arrow-enterprise {
    color: var(--text-secondary, rgba(0,0,0,0.1));
    font-size: 12px;
    transition: var(--enterprise-transition);
}

.quick-action-enterprise:hover .qa-arrow-enterprise {
    transform: translateX(4px);
    color: var(--enterprise-primary);
}

/* ── AI Insights ── */
.ai-item-enterprise {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.04));
}

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

.ai-icon-enterprise {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.ai-item-enterprise.success .ai-icon-enterprise {
    background: rgba(16,185,129,0.1);
    color: var(--enterprise-success);
}
.ai-item-enterprise.warning .ai-icon-enterprise {
    background: rgba(245,158,11,0.1);
    color: var(--enterprise-warning);
}
.ai-item-enterprise.info .ai-icon-enterprise {
    background: rgba(99,102,241,0.1);
    color: var(--enterprise-primary);
}

.ai-content-enterprise {
    flex: 1;
}

.ai-title-enterprise {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary, #0a0a0f);
}

.ai-desc-enterprise {
    font-size: 12px;
    color: var(--text-secondary, rgba(0,0,0,0.2));
}

/* ── Deadlines ── */
.deadline-item-enterprise {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.04));
    cursor: pointer;
}

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

.deadline-item-enterprise.urgent { border-left: 3px solid var(--enterprise-danger); padding-left: 10px; }
.deadline-item-enterprise.warning { border-left: 3px solid var(--enterprise-warning); padding-left: 10px; }
.deadline-item-enterprise.normal { border-left: 3px solid var(--enterprise-success); padding-left: 10px; }

.deadline-title-enterprise {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary, #0a0a0f);
}

.deadline-code-enterprise {
    font-size: 10px;
    color: var(--text-secondary, rgba(0,0,0,0.2));
}

.deadline-days-enterprise {
    font-size: 12px;
    font-weight: 600;
}

.days-overdue-enterprise { color: var(--enterprise-danger); }
.days-urgent-enterprise { color: var(--enterprise-danger); }
.days-warning-enterprise { color: var(--enterprise-warning); }
.days-normal-enterprise { color: var(--enterprise-success); }

/* ── Documents ── */
.doc-item-enterprise {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color, rgba(0,0,0,0.04));
    cursor: pointer;
}

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

.doc-icon-enterprise {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(239,68,68,0.08);
    color: var(--enterprise-danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.doc-info-enterprise {
    flex: 1;
}

.doc-name-enterprise {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary, #0a0a0f);
}

.doc-meta-enterprise {
    font-size: 10px;
    color: var(--text-secondary, rgba(0,0,0,0.2));
}

.doc-status-enterprise {
    font-size: 9px;
    font-weight: 500;
    padding: 1px 8px;
    border-radius: 50px;
}

.doc-status-enterprise.pending {
    background: #fef3c7;
    color: #92400e;
}

.doc-status-enterprise.verified {
    background: #d1fae5;
    color: #065f46;
}

.doc-status-enterprise.rejected {
    background: #fee2e2;
    color: #991b1b;
}

/* ── Support ── */
.support-summary-enterprise {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 12px;
}

.support-stat-enterprise {
    text-align: center;
}

.support-number-enterprise {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary, #0a0a0f);
}

.support-label-enterprise {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-secondary, rgba(0,0,0,0.2));
    letter-spacing: 0.5px;
}

.support-btn-enterprise {
    width: 100%;
    justify-content: center;
}

/* ── Empty State ── */
.empty-state-enterprise {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary, rgba(0,0,0,0.2));
}

.empty-state-enterprise i {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}

.empty-state-enterprise p {
    font-size: 12px;
    margin: 0 0 10px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    font-weight: 500;
    font-size: 12px;
    cursor: pointer;
    transition: var(--enterprise-transition);
    text-decoration: none;
    font-family: inherit;
}

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

.btn-primary:hover {
    background: var(--enterprise-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99,102,241,0.2);
}

.btn-sm {
    padding: 4px 12px;
    font-size: 11px;
}

/* ============================================================ */
/* RESPONSIVE */
/* ============================================================ */
@media (max-width: 1200px) {
    .top-stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    .stats-cards-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .dashboard-grid-enterprise {
        grid-template-columns: 1fr;
    }
    .charts-row-enterprise {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .welcome-enterprise {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 20px;
    }
    .welcome-right-enterprise {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .top-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .stats-bar-item {
        padding: 8px 12px;
    }
    .stats-bar-number {
        font-size: 14px;
    }
    .stats-cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card-enterprise {
        padding: 12px 14px;
    }
    .stat-card-number {
        font-size: 16px;
    }
    .charts-row-enterprise {
        grid-template-columns: 1fr;
    }
    .quick-actions-enterprise {
        grid-template-columns: 1fr;
    }
    .stepper-enterprise {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .stepper-item-enterprise {
        min-width: 50px;
    }
    .stepper-circle-enterprise {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
    .step-name-enterprise {
        font-size: 8px;
    }
    .support-summary-enterprise {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .top-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-cards-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .stat-card-enterprise {
        padding: 10px 12px;
        gap: 10px;
    }
    .stat-card-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .stat-card-number {
        font-size: 14px;
    }
    .welcome-greeting h1 {
        font-size: 20px;
    }
    .welcome-meta-enterprise {
        gap: 4px;
    }
    .meta-chip {
        font-size: 10px;
        padding: 2px 8px;
    }
    .quick-stat-value {
        font-size: 12px;
    }
}

/* ── Dark Theme ── */
[data-theme="dark"] {
    --bg-card: rgba(255,255,255,0.04);
    --border-color: rgba(255,255,255,0.06);
    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.6);
}
[data-theme="dark"] .stats-bar-item,
[data-theme="dark"] .stat-card-enterprise,
[data-theme="dark"] .card-enterprise,
[data-theme="dark"] .chart-card-enterprise {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .welcome-enterprise {
    background: rgba(99,102,241,0.04);
}
[data-theme="dark"] .quick-action-enterprise {
    background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .meta-chip {
    background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .welcome-quick-stats {
    background: rgba(255,255,255,0.04);
}

/* ═══ My Cases — Expandable Row + Inline Quote + Upload ═══ */
.case-expand-btn {
    background: none; border: none; cursor: pointer;
    color: #4f46e5; font-size: 13px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 8px;
    transition: all 0.2s ease;
}
.case-expand-btn:hover { background: #eef2ff; }
.case-expand-btn i.fa-chevron-down { transition: transform 0.25s ease; }
.case-expand-btn.open i.fa-chevron-down { transform: rotate(180deg); }

.case-expand-row td {
    padding: 0 !important;
    background: #f8fafc !important;
    border-top: none !important;
}
.case-expand-panel {
    display: none;
    padding: 20px 24px;
    border-top: 2px solid #eef2f7;
}
.case-expand-panel.open { display: block; }
.case-expand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 900px) {
    .case-expand-grid { grid-template-columns: 1fr; }
}

/* Quote block */
.case-quote-block {
    background: #fff; border-radius: 12px;
    padding: 18px; border: 1px solid #eef2f7;
}
.case-quote-block h4 {
    margin: 0 0 12px; font-size: 13px;
    text-transform: uppercase; letter-spacing: 1px;
    color: #4f46e5; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.case-quote-status {
    display: inline-block; padding: 3px 10px;
    border-radius: 999px; font-size: 11px;
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.4px;
}
.case-quote-status.draft { background: #f1f5f9; color: #475569; }
.case-quote-status.sent { background: #fef3c7; color: #92400e; }
.case-quote-status.approved { background: #d1fae5; color: #065f46; }
.case-quote-status.rejected { background: #fee2e2; color: #991b1b; }
.case-quote-amount {
    font-size: 26px; font-weight: 800; color: #0f172a;
    margin: 10px 0 12px; font-family: 'Playfair Display', serif;
}
.case-quote-breakdown {
    background: #f8fafc; border-radius: 10px;
    padding: 12px 14px; font-size: 12.5px;
    display: flex; flex-direction: column;
    gap: 6px; margin-bottom: 12px;
}
.case-quote-breakdown .row { display: flex; justify-content: space-between; color: #475569; }
.case-quote-breakdown .row.total {
    font-weight: 700; color: #0f172a;
    border-top: 1px dashed #cbd5e1;
    padding-top: 6px; margin-top: 2px;
}
.case-quote-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.case-btn {
    padding: 10px 16px; border-radius: 8px;
    font-size: 13px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    text-decoration: none; font-family: inherit;
    transition: all 0.2s ease;
}
.case-btn.success { background: #10b981; color: #fff; }
.case-btn.success:hover { background: #059669; }
.case-btn.danger { background: #fff; color: #dc2626; border-color: #fecaca; }
.case-btn.danger:hover { background: #fef2f2; }
.case-btn.primary { background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; }
.case-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,70,229,0.35); }

/* Upload block */
.case-upload-block {
    background: #fff; border-radius: 12px;
    padding: 18px; border: 1px solid #eef2f7;
}
.case-upload-block h4 {
    margin: 0 0 12px; font-size: 13px;
    text-transform: uppercase; letter-spacing: 1px;
    color: #4f46e5; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.case-upload-form { display: flex; flex-direction: column; gap: 10px; }
.case-upload-file-row {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border: 2px dashed #cbd5e1;
    border-radius: 10px; cursor: pointer;
    background: #f8fafc; transition: all 0.2s ease;
}
.case-upload-file-row:hover { border-color: #4f46e5; background: #eef2ff; }
.case-upload-file-icon {
    width: 36px; height: 36px; border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff; display: flex; align-items: center;
    justify-content: center; font-size: 14px; flex-shrink: 0;
}
.case-upload-file-text { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; }
.case-upload-file-text strong { color: #0f172a; font-weight: 600; }
.case-upload-file-text span { color: #94a3b8; font-size: 11px; }
.case-upload-input {
    padding: 10px 12px; border: 1px solid #e2e8f0;
    border-radius: 8px; font-size: 13px; font-family: inherit;
}
.case-upload-input:focus { outline: none; border-color: #4f46e5; }

.case-empty-msg {
    color: #94a3b8; font-size: 13px;
    padding: 12px 0; text-align: center;
}