/**
 * VeraCita Insurance - Form Reconstruction Styles
 * Intelligent form reconstruction with verification status
 */

/* ============================================
   VERIFICATION STATUS COLORS
   ============================================ */

:root {
    --form-verified: #10b981;
    --form-verified-bg: rgba(16, 185, 129, 0.1);
    --form-verified-border: rgba(16, 185, 129, 0.3);

    --form-warning: #f59e0b;
    --form-warning-bg: rgba(245, 158, 11, 0.1);
    --form-warning-border: rgba(245, 158, 11, 0.3);

    --form-error: #ef4444;
    --form-error-bg: rgba(239, 68, 68, 0.1);
    --form-error-border: rgba(239, 68, 68, 0.3);

    --form-corrected: #8b5cf6;
    --form-corrected-bg: rgba(139, 92, 246, 0.1);
    --form-corrected-border: rgba(139, 92, 246, 0.3);

    --form-pending: #6b7280;
    --form-pending-bg: rgba(107, 114, 128, 0.1);
    --form-pending-border: rgba(107, 114, 128, 0.3);
}

/* ============================================
   FORM CONTAINER
   ============================================ */

.form-reconstruction-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.form-reconstruction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.form-reconstruction-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.form-reconstruction-title svg {
    width: 24px;
    height: 24px;
    color: var(--form-verified);
}

.form-reconstruction-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* ============================================
   VIEW TOGGLE
   ============================================ */

.form-view-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 3px;
}

.form-view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-view-btn:hover {
    color: #fff;
}

.form-view-btn.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.form-view-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   FORM BODY
   ============================================ */

.form-reconstruction-body {
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.form-reconstruction-body::-webkit-scrollbar {
    width: 8px;
}

.form-reconstruction-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.form-reconstruction-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.form-reconstruction-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================
   FORM SECTIONS
   ============================================ */

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.form-section-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.form-section-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.form-section-icon svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.form-section-title {
    flex: 1;
    font-weight: 600;
    color: #fff;
}

.form-section-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.form-section-status.verified {
    background: var(--form-verified-bg);
    color: var(--form-verified);
}

.form-section-status.warning {
    background: var(--form-warning-bg);
    color: var(--form-warning);
}

.form-section-status.error {
    background: var(--form-error-bg);
    color: var(--form-error);
}

.form-section-toggle {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: transform 0.2s ease;
}

.form-section.collapsed .form-section-toggle {
    transform: rotate(-90deg);
}

.form-section-content {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 0 0.5rem;
}

.form-section.collapsed .form-section-content {
    display: none;
}

/* ============================================
   FORM FIELDS
   ============================================ */

.form-field {
    position: relative;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.form-field:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.form-field.verified {
    border-left: 3px solid var(--form-verified);
}

.form-field.warning {
    border-left: 3px solid var(--form-warning);
}

.form-field.error {
    border-left: 3px solid var(--form-error);
}

.form-field.corrected {
    border-left: 3px solid var(--form-corrected);
}

.form-field.pending {
    border-left: 3px solid var(--form-pending);
}

.form-field-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.form-field-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-field-status-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-field-status-icon svg {
    width: 14px;
    height: 14px;
}

.form-field.verified .form-field-status-icon { color: var(--form-verified); }
.form-field.warning .form-field-status-icon { color: var(--form-warning); }
.form-field.error .form-field-status-icon { color: var(--form-error); }
.form-field.corrected .form-field-status-icon { color: var(--form-corrected); }
.form-field.pending .form-field-status-icon { color: var(--form-pending); }

.form-field-value {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    word-break: break-word;
}

.form-field-value.editable {
    cursor: text;
    padding: 0.25rem 0.5rem;
    margin: -0.25rem -0.5rem;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.form-field-value.editable:hover {
    background: rgba(255, 255, 255, 0.05);
}

.form-field-value.editable:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 2px rgba(67, 132, 255, 0.3);
}

.form-field-original {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
    text-decoration: line-through;
}

.form-field-source {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
}

.form-field-source svg {
    width: 12px;
    height: 12px;
}

/* ============================================
   SUGGESTION DROPDOWN
   ============================================ */

.form-field-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    margin-top: 4px;
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: none;
}

.form-field.has-suggestions .form-field-suggestions {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-item.recommended {
    background: rgba(16, 185, 129, 0.08);
}

.suggestion-item.recommended:hover {
    background: rgba(16, 185, 129, 0.12);
}

.suggestion-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.suggestion-icon svg {
    width: 16px;
    height: 16px;
}

.suggestion-icon.ai { color: #8b5cf6; }
.suggestion-icon.source { color: #3b82f6; }
.suggestion-icon.manual { color: #f59e0b; }

.suggestion-content {
    flex: 1;
}

.suggestion-value {
    font-weight: 500;
    color: #fff;
}

.suggestion-reason {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.125rem;
}

.suggestion-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: var(--form-verified-bg);
    color: var(--form-verified);
}

/* ============================================
   LINE ITEMS TABLE
   ============================================ */

.form-line-items {
    margin-top: 1rem;
}

.line-items-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.line-items-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.line-items-table th:first-child {
    border-radius: 8px 0 0 0;
}

.line-items-table th:last-child {
    border-radius: 0 8px 0 0;
}

.line-items-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #fff;
}

.line-items-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.line-items-table tbody tr:last-child td {
    border-bottom: none;
}

.line-items-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 8px;
}

.line-items-table tbody tr:last-child td:last-child {
    border-radius: 0 0 8px 0;
}

.line-item-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.line-item-status.verified {
    background: var(--form-verified-bg);
    color: var(--form-verified);
}

.line-item-status.warning {
    background: var(--form-warning-bg);
    color: var(--form-warning);
}

.line-item-status.error {
    background: var(--form-error-bg);
    color: var(--form-error);
}

.line-item-amount {
    font-family: 'SF Mono', Monaco, monospace;
    text-align: right;
}

.line-item-amount.editable {
    cursor: text;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.line-item-amount.editable:hover {
    background: rgba(255, 255, 255, 0.05);
}

.line-items-total {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 8px 8px;
    margin-top: -1px;
}

.line-items-total-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.line-items-total-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.line-items-total-value {
    font-weight: 600;
    font-family: 'SF Mono', Monaco, monospace;
    color: #fff;
}

.line-items-total-value.verified {
    color: var(--form-verified);
}

.line-items-total-value.mismatch {
    color: var(--form-error);
}

/* ============================================
   EVIDENCE PANEL
   ============================================ */

.form-evidence-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #12121a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.form-evidence-panel.open {
    right: 0;
}

.evidence-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.evidence-panel-title {
    font-weight: 600;
    color: #fff;
}

.evidence-panel-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.evidence-panel-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.evidence-panel-close svg {
    width: 18px;
    height: 18px;
}

.evidence-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.evidence-document {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.evidence-document-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.evidence-document-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-radius: 6px;
}

.evidence-document-icon svg {
    width: 16px;
    height: 16px;
}

.evidence-document-name {
    flex: 1;
    font-weight: 500;
    color: #fff;
    font-size: 0.9rem;
}

.evidence-document-body {
    padding: 1rem;
}

.evidence-excerpt {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #3b82f6;
}

.evidence-excerpt mark {
    background: rgba(245, 158, 11, 0.3);
    color: #fff;
    padding: 0 0.2rem;
    border-radius: 2px;
}

.evidence-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.75rem;
}

.evidence-location svg {
    width: 14px;
    height: 14px;
}

/* ============================================
   EXPORT TOOLBAR
   ============================================ */

.form-export-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.form-export-stats {
    display: flex;
    gap: 1.5rem;
}

.form-export-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.form-export-stat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.form-export-stat-dot.verified { background: var(--form-verified); }
.form-export-stat-dot.warning { background: var(--form-warning); }
.form-export-stat-dot.corrected { background: var(--form-corrected); }

.form-export-stat-label {
    color: rgba(255, 255, 255, 0.6);
}

.form-export-stat-value {
    font-weight: 600;
    color: #fff;
}

.form-export-actions {
    display: flex;
    gap: 0.75rem;
}

.form-export-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-export-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.form-export-btn svg {
    width: 16px;
    height: 16px;
}

.form-export-btn.primary {
    background: linear-gradient(135deg, #4384ff, #7b42ff);
    border: none;
}

.form-export-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(67, 132, 255, 0.3);
}

/* ============================================
   CORRECTION BANNER
   ============================================ */

.form-correction-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(67, 132, 255, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

.correction-banner-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    color: #8b5cf6;
}

.correction-banner-icon svg {
    width: 22px;
    height: 22px;
}

.correction-banner-content {
    flex: 1;
}

.correction-banner-title {
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.25rem;
}

.correction-banner-description {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.correction-banner-actions {
    display: flex;
    gap: 0.5rem;
}

.correction-banner-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.correction-banner-btn.apply {
    background: #8b5cf6;
    border: none;
    color: #fff;
}

.correction-banner-btn.apply:hover {
    background: #7c3aed;
}

.correction-banner-btn.dismiss {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.correction-banner-btn.dismiss:hover {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ============================================
   CLEAN VIEW MODE
   ============================================ */

.form-reconstruction-body.clean-view .form-field-status-icon,
.form-reconstruction-body.clean-view .form-field-source,
.form-reconstruction-body.clean-view .form-field-original,
.form-reconstruction-body.clean-view .form-section-status,
.form-reconstruction-body.clean-view .line-item-status {
    display: none;
}

.form-reconstruction-body.clean-view .form-field {
    border-left-width: 1px;
    border-left-color: rgba(255, 255, 255, 0.06);
}

.form-reconstruction-body.clean-view .form-section-header {
    background: transparent;
    padding-left: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .form-reconstruction-container {
        background: #fff;
        border: 1px solid #e5e7eb;
        color: #1f2937;
    }

    .form-reconstruction-header,
    .form-view-toggle,
    .form-export-toolbar,
    .form-correction-banner,
    .form-evidence-panel {
        display: none;
    }

    .form-reconstruction-body {
        max-height: none;
        overflow: visible;
        padding: 1rem;
    }

    .form-field {
        background: #f9fafb;
        border-color: #e5e7eb;
        page-break-inside: avoid;
    }

    .form-field-label {
        color: #6b7280;
    }

    .form-field-value {
        color: #1f2937;
    }

    .form-section-header {
        background: #f3f4f6;
    }

    .form-section-title {
        color: #1f2937;
    }

    .line-items-table {
        border: 1px solid #e5e7eb;
    }

    .line-items-table th {
        background: #f3f4f6;
        color: #374151;
    }

    .line-items-table td {
        color: #1f2937;
        border-color: #e5e7eb;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .form-reconstruction-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .form-view-toggle {
        width: 100%;
    }

    .form-view-btn {
        flex: 1;
        justify-content: center;
    }

    .form-section-content {
        grid-template-columns: 1fr;
    }

    .form-export-toolbar {
        flex-direction: column;
        gap: 1rem;
    }

    .form-export-stats {
        width: 100%;
        justify-content: space-between;
    }

    .form-export-actions {
        width: 100%;
    }

    .form-export-btn {
        flex: 1;
        justify-content: center;
    }

    .line-items-table {
        display: block;
        overflow-x: auto;
    }

    .form-evidence-panel {
        width: 100%;
        right: -100%;
    }

    .form-correction-banner {
        flex-direction: column;
        text-align: center;
    }

    .correction-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .correction-banner-btn {
        width: 100%;
    }
}

/* ============================================
   LIGHT THEME
   ============================================ */

[data-theme="light"] .form-reconstruction-container {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .form-reconstruction-header {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .form-reconstruction-title {
    color: #0f172a;
}

[data-theme="light"] .form-reconstruction-subtitle {
    color: #64748b;
}

[data-theme="light"] .form-view-toggle {
    background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .form-view-btn {
    color: #64748b;
}

[data-theme="light"] .form-view-btn:hover {
    color: #0f172a;
}

[data-theme="light"] .form-view-btn.active {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .form-reconstruction-body::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.02);
}

[data-theme="light"] .form-reconstruction-body::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .form-section-header {
    background: rgba(248, 250, 252, 0.8);
}

[data-theme="light"] .form-section-header:hover {
    background: rgba(241, 245, 249, 0.9);
}

[data-theme="light"] .form-section-title {
    color: #0f172a;
}

[data-theme="light"] .form-section-icon {
    background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .form-section-icon svg {
    color: #64748b;
}

[data-theme="light"] .form-section-toggle {
    color: #94a3b8;
}

[data-theme="light"] .form-field {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .form-field:hover {
    background: #fafbfc;
    border-color: rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .form-field-label {
    color: #64748b;
}

[data-theme="light"] .form-field-value {
    color: #0f172a;
}

[data-theme="light"] .form-field-value.editable:hover {
    background: rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .form-field-value.editable:focus {
    background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .form-field-original {
    color: #94a3b8;
}

[data-theme="light"] .form-field-source {
    color: #94a3b8;
}

[data-theme="light"] .form-field-suggestions {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .suggestion-item:hover {
    background: rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .suggestion-item.recommended {
    background: rgba(16, 185, 129, 0.05);
}

[data-theme="light"] .suggestion-item.recommended:hover {
    background: rgba(16, 185, 129, 0.1);
}

[data-theme="light"] .suggestion-icon {
    background: rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .suggestion-value {
    color: #0f172a;
}

[data-theme="light"] .suggestion-reason {
    color: #64748b;
}

[data-theme="light"] .line-items-table th {
    background: rgba(248, 250, 252, 0.8);
    color: #64748b;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .line-items-table td {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .line-items-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.02);
}

[data-theme="light"] .line-item-amount.editable:hover {
    background: rgba(15, 23, 42, 0.03);
}

[data-theme="light"] .line-items-total {
    background: rgba(248, 250, 252, 0.8);
}

[data-theme="light"] .line-items-total-label {
    color: #64748b;
}

[data-theme="light"] .line-items-total-value {
    color: #0f172a;
}

[data-theme="light"] .form-evidence-panel {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .evidence-panel-header {
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .evidence-panel-title {
    color: #0f172a;
}

[data-theme="light"] .evidence-panel-close {
    background: rgba(15, 23, 42, 0.05);
    color: #64748b;
}

[data-theme="light"] .evidence-panel-close:hover {
    background: rgba(15, 23, 42, 0.1);
    color: #0f172a;
}

[data-theme="light"] .evidence-document {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .evidence-document-header {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .evidence-document-name {
    color: #0f172a;
}

[data-theme="light"] .evidence-excerpt {
    color: #374151;
    background: rgba(248, 250, 252, 0.8);
}

[data-theme="light"] .evidence-location {
    color: #94a3b8;
}

[data-theme="light"] .form-export-toolbar {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .form-export-stat-label {
    color: #64748b;
}

[data-theme="light"] .form-export-stat-value {
    color: #0f172a;
}

[data-theme="light"] .form-export-btn {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.15);
    color: #0f172a;
}

[data-theme="light"] .form-export-btn:hover {
    background: rgba(248, 250, 252, 1);
    border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .form-correction-banner {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(67, 132, 255, 0.08));
    border-color: rgba(139, 92, 246, 0.15);
}

[data-theme="light"] .correction-banner-title {
    color: #0f172a;
}

[data-theme="light"] .correction-banner-description {
    color: #64748b;
}

[data-theme="light"] .correction-banner-btn.dismiss {
    border-color: rgba(15, 23, 42, 0.15);
    color: #64748b;
}

[data-theme="light"] .correction-banner-btn.dismiss:hover {
    border-color: rgba(15, 23, 42, 0.25);
    color: #0f172a;
}
