@tailwind base;@tailwind components;@tailwind utilities;:root[data-theme=light]{--bg-primary:#fff;--bg-secondary:#f3f4f6;--bg-tertiary:#e5e7eb;--text-primary:#111827;--text-secondary:#374151;--text-tertiary:#6b7280;--border-primary:#d1d5db;--border-secondary:#e5e7eb;--accent-primary:#3b82f6;--accent-secondary:#1d4ed8}:root[data-theme=dark]{--bg-primary:#111827;--bg-secondary:#1f2937;--bg-tertiary:#374151;--text-primary:#f9fafb;--text-secondary:#d1d5db;--text-tertiary:#9ca3af;--border-primary:#4b5563;--border-secondary:#374151;--accent-primary:#3b82f6;--accent-secondary:#1d4ed8}body.dark,body.light{background-color:var(--bg-primary);color:var(--text-primary)}body,html{height:100%}*{scrollbar-color:var(--border-primary) var(--bg-secondary);scrollbar-width:thin}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:var(--bg-secondary)}::-webkit-scrollbar-thumb{background-color:var(--border-primary);border-radius:3px}::-webkit-scrollbar-thumb:hover{background-color:var(--text-tertiary)}.posting-preview-modal-overlay{align-items:center;animation:fadeIn .2s ease-in;background-color:#0009;bottom:0;display:flex;justify-content:center;left:0;padding:20px;position:fixed;right:0;top:0;z-index:9999}.below-threshold-badge{color:#9ca3af;display:inline-block;font-size:14px;margin-left:6px;opacity:.7}.highlight-patient-updated{background-color:#dbeafe!important;color:#1e40af;font-weight:600}.patient-change-increase{color:#dc2626;font-weight:600}.patient-change-decrease{color:#16a34a;font-weight:600}.adjustment-note{color:#6b7280;font-size:12px;max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.posting-preview-modal{animation:slideUp .3s ease-out;background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000004d;display:flex;flex-direction:column;max-height:90vh;max-width:1400px;width:100%}@keyframes slideUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.modal-header{align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);border-bottom:2px solid #e5e7eb;border-radius:12px 12px 0 0;color:#fff;display:flex;justify-content:space-between;padding:24px 30px}.modal-header h2{font-size:24px;font-weight:600;margin:0}.close-button{align-items:center;background:#fff3;border:none;border-radius:50%;color:#fff;cursor:pointer;display:flex;font-size:24px;height:36px;justify-content:center;transition:all .2s;width:36px}.close-button:hover:not(:disabled){background:#ffffff4d;transform:scale(1.1)}.close-button:disabled{cursor:not-allowed;opacity:.5}.preview-summary{grid-gap:16px;background:#f9fafb;border-bottom:1px solid #e5e7eb;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));padding:24px 30px}.summary-card{align-items:center;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a;display:flex;gap:16px;padding:20px;transition:all .2s}.summary-card:hover{box-shadow:0 4px 6px #0000001a;transform:translateY(-2px)}.summary-card.warning{border-left:4px solid #f59e0b}.summary-card.totals{border-left:4px solid #10b981}.summary-icon{font-size:32px}.summary-content{display:flex;flex-direction:column}.summary-value{color:#1f2937;font-size:28px;font-weight:700;line-height:1}.summary-label{color:#6b7280;font-size:13px;letter-spacing:.5px;margin-top:4px;text-transform:uppercase}.preview-message{align-items:center;background:#eff6ff;border-left:4px solid #3b82f6;display:flex;gap:12px;margin:0;padding:16px 30px}.message-icon{font-size:20px}.message-text{color:#1e40af;font-size:14px;font-weight:500}.claims-container{flex:1 1;overflow-y:auto;padding:24px 30px}.claim-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:16px;overflow:hidden;transition:all .2s}.claim-card:hover{box-shadow:0 4px 6px #0000001a}.claim-header{align-items:center;background:#f9fafb;border-bottom:1px solid #e5e7eb;cursor:pointer;display:flex;justify-content:space-between;padding:20px 24px;transition:background .2s;-webkit-user-select:none;user-select:none}.claim-header:hover{background:#f3f4f6}.claim-header-left{align-items:center;display:flex;gap:16px}.expand-icon{color:#6b7280;font-size:16px;transition:transform .2s}.claim-info{display:flex;flex-direction:column;gap:4px}.claim-info h3{color:#1f2937;font-size:18px;font-weight:600;margin:0}.claim-date,.claim-number{color:#6b7280;font-size:13px;margin-right:16px}.claim-header-right{display:flex;gap:24px}.claim-stat{align-items:flex-end;display:flex;flex-direction:column}.stat-label{color:#6b7280;font-size:11px;letter-spacing:.5px;margin-bottom:2px;text-transform:uppercase}.stat-value{color:#1f2937;font-size:16px;font-weight:600}.claim-procedures{padding:0}.procedures-table{border-collapse:collapse;font-size:13px;width:100%}.procedures-table thead{background:#f9fafb;position:-webkit-sticky;position:sticky;top:0;z-index:10}.procedures-table th{border-bottom:2px solid #e5e7eb;color:#374151;font-size:11px;font-weight:600;letter-spacing:.5px;padding:12px 8px;text-align:left;text-transform:uppercase}.procedures-table td{border-bottom:1px solid #f3f4f6;padding:12px 8px}.procedure-row{transition:background .2s}.procedure-row:hover{background:#f9fafb}.procedure-row.unmatched{background:#fef3c7;opacity:.7}.procedure-row.unmatched:hover{background:#fde68a}.ada-code{color:#4f46e5;font-weight:600}.confidence-badge{border-radius:12px;display:inline-block;font-size:11px;font-weight:600;letter-spacing:.5px;padding:4px 10px;text-transform:uppercase}.confidence-badge-high{background:#d1fae5;color:#065f46}.confidence-badge-medium-high{background:#dbeafe;color:#1e40af}.confidence-badge-medium{background:#fef3c7;color:#92400e}.confidence-badge-low{background:#fee2e2;color:#991b1b}.confidence-badge-unknown{background:#f3f4f6;color:#6b7280}.highlight-writeoff{background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e}.highlight-patient,.highlight-writeoff{border-radius:4px;font-weight:600;padding:4px 8px}.highlight-patient{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e40af}.procedure-notes-row{background:#f9fafb}.procedure-notes{display:flex;flex-direction:column;gap:6px;padding:12px 16px}.note-item{align-items:center;color:#4b5563;display:flex;font-size:12px;gap:8px}.note-icon{font-size:14px}.claim-totals-bar{align-items:center;background:linear-gradient(135deg,#f9fafb,#f3f4f6);border-top:2px solid #e5e7eb;display:flex;flex-wrap:wrap;font-size:13px;font-weight:600;gap:16px;justify-content:space-between;padding:16px 24px}.totals-label{color:#6b7280;font-size:11px;letter-spacing:.5px;text-transform:uppercase}.grand-totals{background:linear-gradient(135deg,#f9fafb,#fff);border-top:2px solid #e5e7eb;padding:24px 30px}.grand-totals h3{color:#1f2937;font-size:18px;font-weight:700;margin:0 0 16px}.totals-grid{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.total-item{align-items:center;background:#fff;border:1px solid #e5e7eb;border-radius:8px;display:flex;justify-content:space-between;padding:16px;transition:all .2s}.total-item:hover{box-shadow:0 2px 4px #0000001a;transform:translateY(-1px)}.total-label{color:#6b7280;font-size:13px;font-weight:500}.total-value{color:#1f2937;font-size:20px;font-weight:700}.modal-actions{background:#fff;border-radius:0 0 12px 12px;border-top:2px solid #e5e7eb;display:flex;gap:12px;justify-content:flex-end;padding:24px 30px}.btn-cancel,.btn-confirm{align-items:center;border:none;border-radius:8px;cursor:pointer;display:flex;font-size:15px;font-weight:600;gap:8px;padding:12px 28px;transition:all .2s}.btn-cancel{background:#f3f4f6;color:#4b5563}.btn-cancel:hover:not(:disabled){background:#e5e7eb}.btn-confirm{background:linear-gradient(135deg,#10b981,#059669);color:#fff}.btn-confirm:hover:not(:disabled){background:linear-gradient(135deg,#059669,#047857);box-shadow:0 4px 6px #10b9814d;transform:translateY(-1px)}.btn-cancel:disabled,.btn-confirm:disabled{cursor:not-allowed;opacity:.5;transform:none}.spinner{animation:spin .8s linear infinite;border:2px solid #ffffff4d;border-radius:50%;border-top-color:#fff;height:16px;width:16px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.editable-cell{position:relative}.amount-input,.note-input{background:#fff;border:2px solid #d1d5db;border-radius:4px;cursor:text;font-family:inherit;font-size:13px;padding:6px 8px;transition:all .2s;width:100%}.amount-input:not(:disabled),.note-input:not(:disabled){background:#fff;border-color:#9ca3af}.amount-input:not(:disabled):hover,.note-input:not(:disabled):hover{background:#f9fafb;border-color:#667eea}.amount-input{font-weight:600;max-width:100px;text-align:right}.note-input{min-width:150px}.amount-input:focus,.note-input:focus{background:#f9fafb;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a;outline:none}.amount-input:hover:not(:disabled),.note-input:hover:not(:disabled){border-color:#9ca3af}.amount-input:disabled,.note-input:disabled{background:#f3f4f6;color:#9ca3af;cursor:not-allowed}.edited-totals-banner{align-items:center;animation:slideIn .3s ease-out;background:linear-gradient(135deg,#ede9fe,#ddd6fe);border:2px solid #a78bfa;border-radius:8px;color:#5b21b6;display:flex;font-size:14px;font-weight:600;gap:16px;margin:0 30px 16px;padding:14px 18px}@keyframes slideIn{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.edit-icon{font-size:20px}.edit-label{font-size:12px;letter-spacing:.5px;text-transform:uppercase}.edited-totals-banner span:not(.edit-icon):not(.edit-label){background:#fff;border-radius:4px;padding:4px 12px;white-space:nowrap}.warning-banner{align-items:center;background:#fef3c7;border:1px solid #fbbf24;border-radius:8px;color:#92400e;display:flex;font-size:13px;font-weight:500;gap:12px;margin:-8px 30px 16px;padding:12px 16px}.warning-icon{font-size:18px}.no-claims,.no-procedures{color:#9ca3af;font-size:14px;padding:60px 20px;text-align:center}@media (max-width:1200px){.posting-preview-modal{max-width:95%}.procedures-table{font-size:12px}.claim-header-right{gap:12px}}@media (max-width:768px){.posting-preview-modal{border-radius:8px;max-height:95vh;max-width:100%}.modal-header{padding:16px 20px}.modal-header h2{font-size:18px}.preview-summary{grid-template-columns:repeat(2,1fr)}.claims-container,.preview-summary{padding:16px 20px}.claim-header{align-items:flex-start;flex-direction:column;gap:12px}.claim-header-right{justify-content:space-between;width:100%}.procedures-table{font-size:11px}.procedures-table td,.procedures-table th{padding:8px 4px}.totals-grid{grid-template-columns:1fr}.modal-actions{padding:16px 20px}}.manual-overrides-audit{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;margin:20px 0;overflow:hidden}.audit-header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;cursor:pointer;justify-content:space-between;padding:15px 20px;-webkit-user-select:none;user-select:none}.audit-header,.audit-header h3{align-items:center;display:flex}.audit-header h3{font-size:18px;gap:10px;margin:0}.audit-badge{background:#ffffff4d;border-radius:12px;font-size:14px;font-weight:700;padding:2px 10px}.toggle-btn{background:#fff3;border:none;border-radius:4px;color:#fff;cursor:pointer;font-size:16px;padding:5px 12px;transition:all .2s}.toggle-btn:hover{background:#ffffff4d}.audit-content{padding:20px}.audit-info{background:#e7f3ff;border-left:4px solid #2196f3;border-radius:4px;margin-bottom:20px;padding:12px 16px}.audit-info p{color:#1976d2;font-size:14px;margin:0}.audit-entries{display:flex;flex-direction:column;gap:15px}.audit-entry{background:#fff;border:1px solid #e0e0e0;border-radius:6px;overflow:hidden;transition:box-shadow .2s}.audit-entry:hover{box-shadow:0 2px 8px #0000001a}.entry-header{align-items:center;background:#f5f5f5;border-bottom:1px solid #e0e0e0;display:flex;gap:15px;padding:12px 16px}.entry-number{background:#667eea;border-radius:4px;color:#fff;font-size:12px;font-weight:700;padding:4px 10px}.entry-procedure{align-items:center;display:flex;flex:1 1;gap:8px}.tooth-badge{background:#e3f2fd;border-radius:3px;color:#1976d2;font-size:11px;font-weight:600;padding:2px 8px}.entry-date{color:#666;font-size:13px}.entry-status{border-radius:12px;font-size:12px;font-weight:600;padding:4px 12px;text-transform:capitalize}.status-pending{background:#fff3e0;color:#f57c00}.status-posted{background:#e8f5e9;color:#2e7d32}.status-failed{background:#ffebee;color:#c62828}.entry-body{padding:16px}.change-summary{background:#fffbf0;border-left:3px solid #ffc107;border-radius:3px;color:#555;font-size:14px;margin-bottom:12px;padding:8px 12px}.entry-details{display:flex;flex-direction:column;gap:10px;margin-top:12px}.field-change{align-items:center;background:#fafafa;border-radius:4px;display:flex;gap:10px;padding:8px 12px}.field-label{color:#444;font-size:13px;font-weight:600;min-width:150px}.value-old{color:#d32f2f;font-size:14px;text-decoration:line-through}.arrow{color:#666;font-weight:700}.value-new{color:#2e7d32;font-size:14px;font-weight:600}.note-change{align-items:flex-start;flex-direction:column}.note-comparison{display:flex;flex-direction:column;gap:8px;margin-top:8px;width:100%}.note-new,.note-old{border-radius:3px;font-size:13px;padding:8px}.note-old{background:#fff3f3;border-left:3px solid #d32f2f}.note-new{background:#f1f8f4;border-left:3px solid #2e7d32}.note-new em,.note-old em{display:block;font-weight:600;margin-bottom:4px}.entry-footer{background:#fafafa;border-top:1px solid #e0e0e0;color:#666;display:flex;font-size:12px;justify-content:space-between;padding:10px 16px}.edit-time,.post-time{align-items:center;display:flex}.audit-empty,.audit-error,.audit-loading{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;margin:20px 0;padding:20px;text-align:center}.audit-error{background:#ffebee;border-color:#ef5350;color:#c62828}.audit-empty{background:#e8f5e9;border-color:#66bb6a;color:#2e7d32}