/* Assessment Audit Dashboard Styles */

.assessment-container {
    padding: 20px;
    background: #f8f9fa;
    min-height: calc(100vh - 60px);
}

/* Page Header */
.page-header {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.page-subtitle {
    color: #6c757d;
    margin: 8px 0 0 0;
    font-size: 14px;
}

/* Stats Cards */
.stats-cards {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 14px 20px;
    min-width: 100px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.stat-card.total-requests {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #3b82f610 0%, #3b82f605 100%);
}

.stat-card.today-count {
    border-color: #10b981;
    background: linear-gradient(135deg, #10b98110 0%, #10b98105 100%);
}

.stat-card.feedback-rate {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #f59e0b10 0%, #f59e0b05 100%);
}

.stat-card.active-users {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #8b5cf610 0%, #8b5cf605 100%);
}

.stat-card.outcome-rate {
    border-color: #6b7280;
    background: linear-gradient(135deg, #6b728010 0%, #6b728005 100%);
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
}

.total-requests .stat-value { color: #3b82f6; }
.today-count .stat-value { color: #10b981; }
.feedback-rate .stat-value { color: #f59e0b; }
.active-users .stat-value { color: #8b5cf6; }
.outcome-rate .stat-value { color: #6b7280; }

.stat-label {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Filter Section */
.filter-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Search Input */
.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
}

.search-input {
    padding-left: 36px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Filter Dropdowns */
.form-select {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Advanced Filters Toggle */
.advanced-filter-toggle {
    color: #445082;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.advanced-filter-toggle:hover {
    color: #354066;
}

.advanced-filter-toggle i {
    transition: transform 0.3s ease;
}

.advanced-filter-toggle[aria-expanded="true"] i.fa-chevron-down {
    transform: rotate(180deg);
}

/* Table Section */
.table-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

/* Table Styles */
.assessment-table {
    margin: 0;
    table-layout: auto;
}

.assessment-table thead {
    background: #f8f9fa;
    border-bottom: 2px solid #e5e7eb;
}

.assessment-table th {
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px;
    white-space: nowrap;
}

.assessment-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.assessment-table th.sortable:hover {
    background-color: #e5e7eb;
}

.sort-icon {
    margin-left: 6px;
    font-size: 10px;
    color: #9ca3af;
}

.assessment-table th.sort-asc .sort-icon::before {
    content: "\f0de";
    color: #3b82f6;
}

.assessment-table th.sort-desc .sort-icon::before {
    content: "\f0dd";
    color: #3b82f6;
}

.assessment-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.assessment-table tbody tr:hover {
    background-color: #f9fafb;
}

.assessment-table td {
    padding: 14px 16px;
    color: #1f2937;
    font-size: 14px;
    vertical-align: middle;
}

/* Assessment Link */
.assessment-link {
    color: #445082;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.assessment-link:hover {
    color: #354066;
    text-decoration: underline;
}

/* Summary Cell */
.summary-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #6b7280;
    font-size: 13px;
}

/* Date Cell */
.date-cell {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

/* Risk Tier Badges */
.risk-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.risk-tier-badge.very-high {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.risk-tier-badge.high {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.risk-tier-badge.medium,
.risk-tier-badge.moderate {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.risk-tier-badge.low {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.risk-tier-badge.unknown {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

/* Action Badges (Recommendation) */
.action-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.action-badge.approve {
    background: #d1fae5;
    color: #065f46;
    border-color: #6ee7b7;
}

.action-badge.conditions {
    background: #fef3c7;
    color: #92400e;
    border-color: #fcd34d;
}

.action-badge.refer {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.action-badge.decline {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

/* Feedback Badges */
.feedback-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.feedback-badge.feedback-positive {
    background: #d1fae5;
    color: #065f46;
}

.feedback-badge.feedback-negative {
    background: #fee2e2;
    color: #991b1b;
}

/* Outcome Badges */
.outcome-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
}

.outcome-badge.outcome-positive {
    background: #d1fae5;
    color: #065f46;
}

.outcome-badge.outcome-negative {
    background: #fee2e2;
    color: #991b1b;
}

.outcome-badge.outcome-neutral {
    background: #f3f4f6;
    color: #6b7280;
}

/* Pagination Section */
.pagination-section {
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 0 0 12px 12px;
}

.pagination-info {
    color: #6b7280;
    font-size: 14px;
}

.pagination {
    margin: 0;
}

.pagination .page-link {
    color: #445082;
    border: 1px solid #e5e7eb;
    margin: 0 2px;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
}

.pagination .page-item.active .page-link {
    background-color: #445082;
    border-color: #445082;
}

.pagination .page-link:hover {
    background-color: #f0f2f7;
    border-color: #445082;
}

/* Export Button */
#exportBtn {
    background: #10b981;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#exportBtn:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* Clear Filters Button */
#clearFiltersBtn {
    border-color: #d1d5db;
    color: #6b7280;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#clearFiltersBtn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #374151;
}

/* Empty State */
#emptyState {
    padding: 60px 20px;
}

#emptyState i {
    opacity: 0.3;
}

#emptyState h5 {
    color: #374151;
    margin-bottom: 8px;
}

/* Loading State */
#tableLoading {
    padding: 60px 20px;
}

/* Toast */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   ASSESSMENT DETAILS MODAL STYLES
   ======================================== */

/* Modal Structure */
#assessmentDetailsModal .modal-dialog {
    max-width: 1200px;
}

#assessmentDetailsModal .modal-content {
    border: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

#assessmentDetailsModal .modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #f3f4f6 100%);
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 24px;
}

#assessmentDetailsModal .modal-footer {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
}

/* Audit Info Bar */
.audit-info-bar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid #e5e7eb;
}

.audit-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.audit-info-item i {
    color: #6b7280;
}

.audit-label {
    color: #6b7280;
    font-size: 13px;
}

.audit-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
}

/* Modal Navigation */
.modal-navigation {
    display: flex;
    align-items: center;
}

.modal-navigation .btn-group {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.5);
    padding: 2px;
}

#modalNavPrevious,
#modalNavNext {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    transition: all 0.2s ease;
}

#modalNavPrevious:hover:not(:disabled),
#modalNavNext:hover:not(:disabled) {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
}

#modalNavPrevious.at-boundary,
#modalNavNext.at-boundary {
    opacity: 0.7;
    background: #fafafa;
}

#modalNavInfo {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    color: #6b7280 !important;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 16px;
    cursor: default !important;
    min-width: 80px;
}

/* Hero Card */
.hero-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-title h3 {
    color: #2B3C6B;
    font-weight: 600;
    margin: 0;
    font-size: 1.3rem;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-summary {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px;
    border-left: 4px solid #445082;
}

.hero-summary p {
    margin: 0;
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Confidence Badge */
.confidence-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #f3f4f6;
    color: #6b7280;
}

/* Top Drivers */
.top-drivers-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.top-drivers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.top-driver-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.driver-severity {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.driver-severity.high {
    background: #fee2e2;
    color: #991b1b;
}

.driver-severity.medium {
    background: #fef3c7;
    color: #92400e;
}

.driver-severity.low {
    background: #d1fae5;
    color: #065f46;
}

.driver-text {
    color: #374151;
    font-size: 0.9rem;
}

/* Section Cards */
.section-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h4 {
    margin: 0;
    color: #2B3C6B;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Risk Flags Accordion */
.risk-flags-container {
    padding: 0;
}

.risk-flag-item {
    border-bottom: 1px solid #e5e7eb;
}

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

.risk-flag-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.risk-flag-header:hover {
    background-color: #f8f9fa;
}

.risk-flag-header.collapsed .expand-icon {
    transform: rotate(0deg);
}

.expand-icon {
    color: #6c757d;
    transition: transform 0.2s ease;
    transform: rotate(90deg);
    flex-shrink: 0;
}

.severity-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.severity-badge.high {
    background: #fee2e2;
    color: #991b1b;
}

.severity-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.severity-badge.low {
    background: #d1fae5;
    color: #065f46;
}

.risk-flag-title {
    flex: 1;
    font-weight: 500;
    color: #374151;
    font-size: 0.95rem;
}

.flag-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #e5e7eb;
    color: #6b7280;
    flex-shrink: 0;
}

/* Risk Flag Details */
.risk-flag-details {
    padding: 0 20px 20px 20px;
    background: #fafbfc;
    border-top: 1px solid #e5e7eb;
}

.evidence-section {
    margin-top: 16px;
}

.evidence-section h6 {
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
}

/* Evidence Table */
.evidence-table {
    width: 100%;
    font-size: 0.85rem;
    border-collapse: collapse;
}

.evidence-table th {
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.3px;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.evidence-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
}

.evidence-table tr:last-child td {
    border-bottom: none;
}

.evidence-table .metric-name {
    font-weight: 500;
    color: #2B3C6B;
}

.evidence-table .metric-value {
    font-weight: 600;
}

.evidence-table .delta-negative {
    color: #dc2626;
    font-weight: 500;
}

.evidence-table .delta-positive {
    color: #059669;
    font-weight: 500;
}

.evidence-table .notes-cell {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
}

.baseline-type {
    font-size: 0.7rem;
    color: #9ca3af;
    font-weight: normal;
}

/* Interpretation Box */
.interpretation-box {
    background: white;
    border-radius: 6px;
    padding: 14px 16px;
    margin-top: 16px;
    border-left: 3px solid #445082;
}

.interpretation-box p {
    margin: 0;
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Verification Section */
.verification-section {
    margin-top: 16px;
}

.verification-section h6 {
    color: #059669;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.verification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.verification-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: #374151;
    font-size: 0.9rem;
}

.verification-list li i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}

.action-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 8px;
    flex-shrink: 0;
}

.action-type-badge.stipulation {
    background: #dbeafe;
    color: #1e40af;
}

.action-type-badge.verification {
    background: #f3e8ff;
    color: #7c3aed;
}

.action-type-badge.refer {
    background: #fef3c7;
    color: #92400e;
}

/* What Would Change Section */
.what-would-change-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e7eb;
}

.what-would-change-section h6 {
    color: #2563eb;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

.change-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.change-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    color: #374151;
    font-size: 0.85rem;
}

.change-list li i {
    color: #2563eb;
    margin-top: 3px;
    flex-shrink: 0;
}

.no-cards-message {
    padding: 24px;
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

/* Context Row */
.context-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

/* Dealer Card */
.dealer-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dealer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.dealer-header h4 {
    margin: 0;
    color: #2B3C6B;
    font-weight: 600;
    font-size: 1rem;
}

.dealer-classification {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dealer-classification.positive {
    background: #d1fae5;
    color: #065f46;
}

.dealer-classification.neutral {
    background: #f3f4f6;
    color: #6b7280;
}

.dealer-classification.negative {
    background: #fee2e2;
    color: #991b1b;
}

.dealer-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
}

@media (max-width: 576px) {
    .dealer-metrics {
        grid-template-columns: 1fr;
    }
}

.dealer-metric {
    text-align: center;
    padding: 20px 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dealer-metric .metric-label {
    font-size: 0.7rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.dealer-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2B3C6B;
    margin-bottom: 4px;
}

.dealer-metric .metric-delta {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.dealer-metric .metric-delta.delta-positive {
    color: #059669;
}

.dealer-metric .metric-delta.delta-negative {
    color: #dc2626;
}

.dealer-metric .metric-note {
    font-size: 0.72rem;
    color: #9ca3af;
    line-height: 1.4;
    font-style: italic;
    text-align: center;
    margin-top: auto;
}

.dealer-metrics .no-metrics {
    grid-column: 1 / -1;
    text-align: center;
    color: #9ca3af;
    padding: 20px;
}

/* Loan Snapshot Card */
.loan-snapshot-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
}

.snapshot-header {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.snapshot-header h4 {
    margin: 0;
    color: #2B3C6B;
    font-weight: 600;
    font-size: 1rem;
}

.snapshot-content {
    padding: 20px;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.snapshot-section h6 {
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.snapshot-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.snapshot-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.snapshot-label {
    color: #6b7280;
    font-size: 0.85rem;
}

.snapshot-value {
    color: #2B3C6B;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Conditions Card */
.conditions-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    border-left: 4px solid #f59e0b;
}

.conditions-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fffbeb;
    border-bottom: 1px solid #fcd34d;
}

.conditions-header i {
    color: #f59e0b;
}

.conditions-header h4 {
    margin: 0;
    color: #92400e;
    font-weight: 600;
    font-size: 1rem;
}

.conditions-list {
    list-style: none;
    padding: 20px;
    margin: 0;
}

.conditions-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 0.9rem;
}

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

.conditions-list li i {
    color: #f59e0b;
    margin-top: 3px;
    flex-shrink: 0;
}

.conditions-rationale {
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.conditions-rationale p {
    margin: 0;
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Data Gaps Card */
.data-gaps-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    border-left: 4px solid #ef4444;
}

.data-gaps-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: #fef2f2;
    border-bottom: 1px solid #fecaca;
}

.data-gaps-header i {
    color: #ef4444;
}

.data-gaps-header h4 {
    margin: 0;
    color: #991b1b;
    font-weight: 600;
    font-size: 1rem;
}

.data-gaps-list {
    padding: 16px 20px;
}

.data-gap-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.data-gap-item .gap-name {
    color: #374151;
    font-size: 0.9rem;
}

.data-gap-item .gap-impact {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.data-gap-item .gap-impact.high {
    background: #fee2e2;
    color: #991b1b;
}

.data-gap-item .gap-impact.medium {
    background: #fef3c7;
    color: #92400e;
}

.data-gap-item .gap-impact.low {
    background: #f3f4f6;
    color: #6b7280;
}

/* Decisioning Status Banner */
.decisioning-status-banner {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #fca5a5;
    border-radius: 8px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.status-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-banner-icon {
    font-size: 1.5rem;
    color: #dc2626;
}

.status-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-banner-text strong {
    color: #991b1b;
    font-size: 1rem;
}

.status-banner-text span {
    color: #b91c1c;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-cards {
        flex-direction: column;
        align-items: stretch;
    }

    .stat-card {
        min-width: auto;
    }

    .page-title {
        font-size: 24px;
    }

    .assessment-table {
        font-size: 12px;
    }

    .assessment-table th,
    .assessment-table td {
        padding: 10px 8px;
    }

    .context-row {
        grid-template-columns: 1fr;
    }

    .snapshot-grid {
        grid-template-columns: 1fr;
    }

    .hero-header {
        flex-direction: column;
    }

    .hero-badges {
        width: 100%;
    }

    .status-banner-content {
        flex-direction: column;
        text-align: center;
    }

    /* Hide some columns on mobile */
    .assessment-table th:nth-child(6),
    .assessment-table td:nth-child(6) {
        display: none;
    }
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.assessment-table tbody tr {
    animation: slideIn 0.3s ease;
}
