.app{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#f5f9fc,#e8f0f7)}.app-header{background:linear-gradient(135deg,#fff,#f0f7ff);border-bottom:3px solid #0066cc;padding:1.25rem 2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 4px 12px #0066cc26}.app-header-left{display:flex;align-items:center;gap:1.5rem}.app-logo{height:50px;width:auto;background:#06c;padding:.5rem 1rem;border-radius:8px;box-shadow:0 2px 8px #0066cc4d}.app-header h1{font-size:1.5rem;color:#2c3e50;font-weight:600;margin:0}.header-actions{display:flex;gap:1rem}.btn{padding:.75rem 1.5rem;border:none;border-radius:6px;font-size:1rem;font-weight:500;transition:all .2s}.btn-primary{background:#06c;color:#fff}.btn-primary:hover:not(:disabled){background:#0052a3}.btn-danger{background:#e74c3c;color:#fff}.btn-danger:hover:not(:disabled){background:#c0392b}.btn:disabled{opacity:.6;cursor:not-allowed}.message{background:#d4edda;border:1px solid #c3e6cb;color:#155724;padding:1rem;margin:1rem 2rem;border-radius:6px}.app-main{flex:1;padding:2rem;max-width:1400px;width:100%;margin:0 auto}.status-bar{display:flex;justify-content:space-between;align-items:center;padding:1.25rem;background:linear-gradient(135deg,#fff,#f8fbff);border-radius:12px;margin-bottom:1.5rem;box-shadow:0 2px 8px #0066cc1a;border-left:4px solid #0066cc}.status-bar span{font-weight:500;color:#555}.loading{color:#06c}.app-subtitle{font-size:.9rem;color:#666;font-weight:400}.app-nav{display:flex;gap:.5rem;background:linear-gradient(135deg,#f5f9fc,#e8f0f7);border-bottom:3px solid #0066cc;padding:1rem 2rem 0}.nav-tab{padding:1rem 2rem;border:none;background:#ffffff80;font-size:1rem;font-weight:600;color:#666;cursor:pointer;border-radius:12px 12px 0 0;transition:all .3s;border:2px solid transparent;border-bottom:none}.nav-tab:hover{color:#06c;background:#fffc;transform:translateY(-2px)}.nav-tab.active{color:#fff;background:linear-gradient(135deg,#06c,#0052a3);border-color:#06c;box-shadow:0 -2px 8px #0066cc4d}@media (max-width: 768px){.app-header{padding:1rem;flex-direction:column;gap:1rem;align-items:stretch}.app-header-left{flex-direction:column;gap:.75rem;align-items:center}.app-logo{height:40px}.app-header h1{font-size:1.2rem;text-align:center}.app-subtitle{font-size:.8rem;text-align:center}.header-actions{flex-direction:column;gap:.5rem;width:100%}.header-actions .btn{width:100%}.app-nav{padding:.5rem .5rem 0;gap:.25rem;overflow-x:auto;flex-wrap:nowrap}.nav-tab{padding:.75rem 1rem;font-size:.9rem;white-space:nowrap;flex-shrink:0}.message{margin:.5rem 1rem;padding:.75rem;font-size:.9rem}.app-main{padding:1rem}.status-bar{flex-direction:column;gap:.5rem;padding:1rem;align-items:flex-start}.btn{padding:.6rem 1.2rem;font-size:.9rem}}.error-notifications{position:fixed;bottom:20px;right:20px;width:450px;max-width:calc(100vw - 40px);background:#fff;border-radius:8px;box-shadow:0 4px 20px #0003;z-index:9999;transition:all .3s}.error-notifications.collapsed{width:250px}.error-notifications-header{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;background:#f44336;color:#fff;cursor:pointer;border-radius:8px 8px 0 0;-webkit-user-select:none;user-select:none}.error-notifications-title{display:flex;align-items:center;gap:.5rem;font-weight:600}.error-icon{font-size:1.25rem}.error-notifications-actions{display:flex;gap:.5rem;align-items:center}.btn-clear-all{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.25rem .75rem;border-radius:4px;font-size:.85rem;cursor:pointer;transition:background .2s}.btn-clear-all:hover{background:#ffffff4d}.btn-toggle{background:transparent;border:none;color:#fff;font-size:1rem;cursor:pointer;padding:.25rem}.error-notifications-list{max-height:400px;overflow-y:auto;background:#fff;border-radius:0 0 8px 8px}.error-notification-item{display:flex;justify-content:space-between;align-items:flex-start;padding:1rem;border-bottom:1px solid #e0e0e0;transition:background .2s}.error-notification-item:last-child{border-bottom:none}.error-notification-item:hover{background:#f9f9f9}.error-notification-content{flex:1;margin-right:.5rem}.error-notification-header-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.error-notification-time{font-size:.85rem;color:#666}.error-notification-badge{padding:.15rem .5rem;border-radius:12px;font-size:.75rem;font-weight:600}.badge-error{background:#ffebee;color:#c62828}.badge-warning{background:#fff3e0;color:#ef6c00}.badge-info{background:#e3f2fd;color:#1565c0}.error-notification-message{font-size:.95rem;color:#333;margin-bottom:.25rem;font-weight:500}.error-notification-details{font-size:.85rem;color:#666;background:#f5f5f5;padding:.5rem;border-radius:4px;margin-top:.5rem;font-family:Courier New,monospace;word-break:break-all}.btn-dismiss{background:transparent;border:none;color:#999;font-size:1.5rem;line-height:1;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.btn-dismiss:hover{background:#f0f0f0;color:#666}.error-type-warning .error-notifications-header{background:#ff9800}.error-type-info .error-notifications-header{background:#2196f3}.error-notifications-list::-webkit-scrollbar{width:6px}.error-notifications-list::-webkit-scrollbar-track{background:#f1f1f1}.error-notifications-list::-webkit-scrollbar-thumb{background:#888;border-radius:3px}.error-notifications-list::-webkit-scrollbar-thumb:hover{background:#555}.file-upload{display:inline-block}.upload-area{border:2px dashed #0066cc;border-radius:12px;padding:2.5rem;text-align:center;cursor:pointer;transition:all .3s;background:linear-gradient(135deg,#fff,#f0f7ff);box-shadow:0 2px 8px #0066cc1a}.upload-area:hover{border-color:#0052a3;background:linear-gradient(135deg,#f0f7ff,#e6f2ff);box-shadow:0 4px 16px #06c3;transform:translateY(-2px)}.upload-area.drag-active{border-color:#06c;background:linear-gradient(135deg,#e6f2ff,#cce5ff);border-style:solid;box-shadow:0 6px 20px #0066cc4d}.upload-icon{font-size:3rem;color:#06c;margin-bottom:1rem;filter:drop-shadow(0 2px 4px rgba(0,102,204,.2))}.upload-area p{margin:.5rem 0;color:#555}.upload-area p.primary{font-weight:600;color:#2c3e50;font-size:1.2rem}.upload-area p.secondary{font-size:.9rem;color:#666}@media (max-width: 768px){.upload-area{padding:1.5rem 1rem}.upload-icon{font-size:2rem;margin-bottom:.75rem}.upload-area p.primary{font-size:1rem}.upload-area p.secondary{font-size:.8rem}}.receipt-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(350px,1fr));gap:1.5rem}.receipt-list-empty{text-align:center;padding:3rem;background:#fff;border-radius:8px;box-shadow:0 1px 3px #0000001a}.receipt-list-empty p{color:#999;font-size:1.1rem}.receipt-card{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 2px 4px #0000001a;cursor:pointer;transition:all .2s}.receipt-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0066cc26;border:1px solid #0066cc}.receipt-card-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #eee}.receipt-card-header h3{font-size:1.2rem;color:#2c3e50;margin:0;flex:1}.receipt-type-badge{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;color:#fff;text-transform:uppercase;box-shadow:0 2px 4px #00000026}.receipt-type-badge.retail{background:linear-gradient(135deg,#06c,#0052a3)}.receipt-type-badge.fuel{background:linear-gradient(135deg,#f39c12,#e67e22)}.receipt-type-badge.online{background:linear-gradient(135deg,#9b59b6,#8e44ad)}.receipt-type-badge.service{background:linear-gradient(135deg,#1abc9c,#16a085)}.receipt-type-badge.invoice{background:linear-gradient(135deg,#3498db,#2980b9)}.receipt-type-badge.unknown{background:linear-gradient(135deg,#95a5a6,#7f8c8d)}.receipt-card-body{display:flex;flex-direction:column;gap:.75rem}.receipt-info{display:flex;align-items:center;gap:.5rem}.receipt-info .label{font-weight:500;color:#666;min-width:90px}.receipt-info .amount{font-size:1.25rem;font-weight:600;color:#27ae60}.receipt-info .time{color:#999;font-size:.9rem}.receipt-info .confidence{font-weight:600}.receipt-info .confidence.high{color:#27ae60}.receipt-info .confidence.medium{color:#f39c12}.receipt-info .card-badge{display:inline-block;padding:.25rem .5rem;background:linear-gradient(135deg,#06c,#0052a3);color:#fff;border-radius:6px;font-size:.85rem;font-weight:500;font-family:Courier New,monospace}.receipt-card-footer{margin-top:1rem;padding-top:1rem;border-top:1px solid #eee}.btn-link{background:none;border:none;color:#06c;font-weight:500;padding:0}.btn-link:hover{text-decoration:underline;color:#0052a3}@media (max-width: 768px){.receipt-list{grid-template-columns:1fr;gap:1rem}.receipt-card{padding:1rem}.receipt-card-header{flex-direction:column;gap:.5rem;align-items:flex-start}.receipt-card-header h3{font-size:1rem}.receipt-type-badge{font-size:.7rem;padding:.2rem .6rem}.receipt-info{flex-direction:column;align-items:flex-start;gap:.25rem}.receipt-info .label{min-width:unset;font-size:.8rem}.receipt-info .amount{font-size:1.1rem}.receipt-list-empty{padding:2rem 1rem}.receipt-list-empty p{font-size:.95rem}}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;justify-content:center;align-items:center;z-index:1000;padding:2rem}.modal-content{background:#fff;border-radius:12px;max-width:900px;width:100%;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 10px 40px #0003}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem 2rem;border-bottom:1px solid #eee}.modal-header h2{margin:0;color:#2c3e50}.btn-close{background:none;border:none;font-size:2rem;color:#999;cursor:pointer;padding:0;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;border-radius:4px}.btn-close:hover{background:#f0f0f0;color:#333}.modal-body{flex:1;overflow-y:auto;padding:2rem}.detail-section{margin-bottom:2rem}.detail-section h3{font-size:1.1rem;color:#2c3e50;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:2px solid #0066cc}.receipt-image-section{background:#f8f9fa;padding:1rem;border-radius:8px}.receipt-image-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.btn-fullscreen{display:flex;align-items:center;gap:.5rem;background:linear-gradient(135deg,#06c,#0052a3);color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s;box-shadow:0 2px 4px #06c3}.btn-fullscreen:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0066cc4d}.btn-fullscreen svg{width:16px;height:16px}.receipt-image-container{display:flex;justify-content:center;align-items:center;background:#fff;border-radius:4px;padding:1rem;max-height:500px;overflow:hidden}.receipt-image{max-width:100%;max-height:480px;object-fit:contain;border:1px solid #dee2e6;border-radius:4px;box-shadow:0 2px 8px #0000001a;cursor:pointer;transition:transform .2s}.receipt-image:hover{transform:scale(1.02)}.image-error{color:#999;text-align:center;padding:2rem}.detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1rem}.detail-item{display:flex;flex-direction:column;gap:.25rem}.detail-item .label{font-size:.85rem;color:#666;font-weight:500}.detail-item .value{font-size:1rem;color:#333}.detail-item .value.highlight{color:#3498db;font-weight:600}.detail-item .confidence.high{color:#27ae60;font-weight:600}.detail-item .confidence.medium{color:#f39c12;font-weight:600}.line-items-table{width:100%;border-collapse:collapse;margin-top:1rem}.line-items-table thead{background:#f8f9fa}.line-items-table th{padding:.75rem;text-align:left;font-weight:600;color:#555;border-bottom:2px solid #dee2e6}.line-items-table td{padding:.75rem;border-bottom:1px solid #dee2e6}.line-items-table tbody tr:hover{background:#f8f9fa}.item-description{font-weight:500}.item-sku{font-size:.85rem;color:#666;margin-top:.25rem}.line-items-table .amount{font-weight:600;color:#27ae60}.financial-summary{background:#f8f9fa;padding:1.5rem;border-radius:8px;margin-top:1rem}.summary-row{display:flex;justify-content:space-between;padding:.5rem 0;font-size:1rem}.summary-row.total{border-top:2px solid #dee2e6;margin-top:.5rem;padding-top:1rem;font-size:1.25rem;font-weight:600;color:#2c3e50}.raw-data-section{margin-top:1rem}.btn-toggle-raw{background:#6c757d;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.9rem}.btn-toggle-raw:hover{background:#5a6268}.raw-data{background:#f8f9fa;border:1px solid #dee2e6;border-radius:4px;padding:1rem;margin-top:1rem;overflow-x:auto;font-size:.85rem;max-height:300px;overflow-y:auto}.modal-footer{padding:1.5rem 2rem;border-top:1px solid #eee;display:flex;justify-content:space-between;gap:1rem}.loading-state{padding:3rem;text-align:center;color:#666}.fullscreen-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#000000f2;display:flex;justify-content:center;align-items:center;z-index:2000;padding:2rem;cursor:zoom-out}.fullscreen-image{max-width:95%;max-height:95%;object-fit:contain;border-radius:8px;box-shadow:0 10px 50px #00000080;cursor:default}.fullscreen-close{position:absolute;top:1rem;right:1rem;background:#fff3;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:2px solid rgba(255,255,255,.3);color:#fff;font-size:2.5rem;width:50px;height:50px;border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .3s;z-index:2001}.fullscreen-close:hover{background:#ffffff4d;transform:scale(1.1)}@media (max-width: 768px){.modal-overlay{padding:0;align-items:flex-start;overflow-y:auto;-webkit-overflow-scrolling:touch}.modal-content{max-width:100%;max-height:none;min-height:100vh;border-radius:0;height:auto}.modal-header{padding:1rem;position:sticky;top:0;background:#fff;z-index:10;box-shadow:0 2px 4px #0000001a}.modal-header h2{font-size:1.1rem}.btn-close{font-size:1.5rem;width:2.5rem;height:2.5rem;min-width:2.5rem;flex-shrink:0}.modal-body{padding:1rem;flex:1;overflow-y:visible}.detail-section{margin-bottom:1.5rem}.detail-section h3{font-size:1rem}.receipt-image-section{padding:.75rem}.receipt-image-header{flex-direction:column;gap:.75rem;align-items:stretch}.btn-fullscreen{width:100%;justify-content:center}.receipt-image-container{padding:.5rem;max-height:300px}.receipt-image{max-height:280px}.detail-grid{grid-template-columns:1fr;gap:.75rem}.detail-item .label{font-size:.75rem}.detail-item .value{font-size:.9rem}.line-items-table{font-size:.85rem}.line-items-table th,.line-items-table td{padding:.5rem .25rem}.line-items-table th:nth-child(3),.line-items-table td:nth-child(3){display:none}.financial-summary{padding:1rem}.summary-row{font-size:.9rem}.summary-row.total{font-size:1.1rem}.modal-footer{padding:1rem;flex-direction:column-reverse;position:sticky;bottom:0;background:#fff;border-top:2px solid #eee}.modal-footer .btn{width:100%}.fullscreen-overlay{padding:0}.fullscreen-image{max-width:100%;max-height:100%;border-radius:0}.fullscreen-close{top:.5rem;right:.5rem;width:40px;height:40px;font-size:2rem}}.search-bar{margin-bottom:1.5rem}.search-input-wrapper{position:relative;display:flex;align-items:center;background:linear-gradient(135deg,#fff,#f8fbff);border:2px solid #0066cc;border-radius:12px;padding:0 1rem;box-shadow:0 2px 8px #0066cc1a;transition:all .3s}.search-input-wrapper:focus-within{border-color:#0052a3;box-shadow:0 4px 16px #06c3}.search-icon{width:20px;height:20px;color:#06c;margin-right:.75rem;flex-shrink:0}.search-input{flex:1;border:none;background:transparent;padding:1rem 0;font-size:1rem;color:#2c3e50;outline:none}.search-input::placeholder{color:#999}.search-clear{background:#06c;color:#fff;border:none;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:1.5rem;line-height:1;transition:all .2s;margin-left:.5rem}.search-clear:hover{background:#0052a3;transform:scale(1.1)}.search-hint{margin-top:.5rem;padding:.5rem 1rem;background:linear-gradient(135deg,#e6f2ff,#cce5ff);border-radius:8px;font-size:.9rem;color:#06c;border-left:3px solid #0066cc}.search-hint strong{color:#0052a3;font-weight:600}@media (max-width: 768px){.search-input-wrapper{padding:0 .75rem}.search-icon{width:18px;height:18px;margin-right:.5rem}.search-input{padding:.75rem 0;font-size:.9rem}.search-clear{width:20px;height:20px;font-size:1.2rem}.search-hint{font-size:.8rem;padding:.4rem .75rem}}.dashboard-page{padding:2rem;max-width:1600px;margin:0 auto}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.dashboard-header h2{font-size:1.8rem;color:#2c3e50;margin:0}.dashboard-loading{font-size:.9rem;color:#06c;font-weight:500}.filter-sections{margin-bottom:2rem}.filter-section{margin-bottom:1.5rem}.filter-section h4{font-size:1rem;color:#666;margin:0 0 .75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.filter-buttons{display:flex;gap:.75rem;flex-wrap:wrap}.filter-btn{padding:.75rem 1.5rem;border:2px solid #e0e0e0;border-radius:8px;background:#fff;color:#2c3e50;font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s}.filter-btn:hover{border-color:#06c;background:#f0f7ff}.filter-btn.active{border-color:#06c;background:linear-gradient(135deg,#06c,#0052a3);color:#fff;box-shadow:0 2px 8px #06c3}.dashboard-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:1.5rem;margin-bottom:2rem}.dashboard-section{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0066cc1a;border-top:4px solid #0066cc}.dashboard-section.receipts-section{border-top-color:#27ae60}.dashboard-section.documents-section{border-top-color:#06c}.dashboard-section.creditcards-section{border-top-color:#f39c12}.dashboard-section.health-section{border-top-color:#9b59b6}.dashboard-section h3{font-size:1.1rem;color:#666;margin:0 0 1rem;text-transform:uppercase;font-weight:600;letter-spacing:.5px}.stat-large{display:flex;flex-direction:column;gap:.5rem;margin-bottom:1rem}.stat-large .stat-value{font-size:3rem;font-weight:700;color:#2c3e50}.stat-large .stat-label{font-size:.9rem;color:#666;font-weight:500}.stat-medium{display:flex;flex-direction:column;gap:.25rem;margin-bottom:.5rem}.stat-medium .stat-value{font-size:1.5rem;font-weight:600;color:#06c}.stat-medium .stat-label{font-size:.85rem;color:#666}.stats-row{display:flex;gap:1rem;justify-content:space-between}.stat-small{display:flex;flex-direction:column;gap:.25rem;flex:1}.stat-small .stat-value{font-size:1.8rem;font-weight:600;color:#2c3e50}.stat-small .stat-label{font-size:.8rem;color:#666}.stat-value.pending{color:#f39c12}.stat-value.failed{color:#e74c3c}.stat-value.matched{color:#27ae60}.stat-value.success{color:#27ae60;font-size:2.5rem}.quick-stats{display:flex;gap:2rem;padding:1.5rem;background:linear-gradient(135deg,#f0f7ff,#e6f2ff);border-radius:12px;flex-wrap:wrap}.quick-stat{display:flex;flex-direction:column;gap:.25rem}.quick-stat-label{font-size:.85rem;color:#666;font-weight:500}.quick-stat-value{font-size:1.5rem;font-weight:600;color:#06c}.category-breakdown{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0066cc1a;margin-top:2rem}.category-breakdown h3{font-size:1.3rem;color:#2c3e50;margin:0 0 1.5rem}.category-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.category-item{background:linear-gradient(135deg,#f8fbff,#f0f7ff);border:2px solid #e0e0e0;border-radius:10px;padding:1.25rem;cursor:pointer;transition:all .2s}.category-item:hover{border-color:#06c;box-shadow:0 4px 12px #0066cc26;transform:translateY(-2px)}.category-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.category-name{font-size:1.1rem;font-weight:600;color:#2c3e50}.category-amount{font-size:1.3rem;font-weight:700;color:#06c}.category-details{display:flex;justify-content:space-between;font-size:.85rem;color:#666}.category-count{font-weight:500}.category-avg{font-weight:500;color:#27ae60}.charts-section{display:grid;grid-template-columns:repeat(auto-fit,minmax(500px,1fr));gap:2rem;margin-bottom:2rem}.chart-container{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0066cc1a}.chart-container h3{font-size:1.2rem;color:#2c3e50;margin:0 0 1.5rem}.filtered-receipts{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0066cc1a;margin-top:2rem}.filtered-receipts h3{font-size:1.3rem;color:#2c3e50;margin:0 0 1.5rem}.receipts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem}.receipt-card-dashboard{background:linear-gradient(135deg,#f8fbff,#f0f7ff);border:2px solid #e0e0e0;border-radius:10px;padding:1.25rem;transition:all .2s;cursor:pointer}.receipt-card-dashboard:hover{border-color:#06c;box-shadow:0 4px 12px #0066cc26;transform:translateY(-2px)}.receipt-header-dashboard{display:flex;justify-content:space-between;align-items:center;margin-bottom:.75rem}.receipt-header-dashboard .merchant{font-size:1.1rem;font-weight:600;color:#2c3e50;flex:1}.receipt-header-dashboard .amount{font-size:1.3rem;font-weight:700;color:#27ae60}.receipt-details-dashboard{display:flex;justify-content:space-between;align-items:center;font-size:.85rem;color:#666}.receipt-details-dashboard .date{font-weight:500}.receipt-details-dashboard .card{font-weight:600;color:#06c;background:#f0f7ff;padding:.25rem .5rem;border-radius:4px;font-family:Courier New,monospace}@media (max-width: 768px){.dashboard-grid{grid-template-columns:1fr}.quick-stats{flex-direction:column;gap:1rem}.filter-buttons{gap:.5rem}.filter-btn{padding:.5rem 1rem;font-size:.85rem}.category-list,.charts-section,.receipts-grid{grid-template-columns:1fr}}.matching-page{padding:2rem;max-width:1600px;margin:0 auto;display:grid;grid-template-columns:450px 1fr;gap:2rem;align-items:start}.matching-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0066cc1a;height:fit-content}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding-bottom:1rem;border-bottom:3px solid #0066cc}.section-header h2{font-size:1.5rem;color:#2c3e50;margin:0}.section-header .header-actions{display:flex;gap:1rem;align-items:center}.card-filter-select{padding:.75rem 1.5rem;border:2px solid #0066cc;border-radius:6px;font-size:1rem;font-weight:500;color:#2c3e50;background:#fff;cursor:pointer;transition:all .2s;min-width:200px}.card-filter-select:hover{border-color:#0052a3;box-shadow:0 2px 8px #0066cc26}.card-filter-select:focus{outline:none;border-color:#0052a3;box-shadow:0 0 0 3px #0066cc1a}.file-input-label{cursor:pointer}.cards-container{background:#fff;border-radius:8px;overflow:hidden;border:2px solid #e0e0e0}.cards-header{display:grid;grid-template-columns:150px 1fr auto;gap:1rem;padding:1rem 1.5rem;background:linear-gradient(135deg,#06c,#0052a3);color:#fff;font-weight:600;font-size:.9rem;text-transform:uppercase}.cards-grid{background:#fff}.card-item{display:grid;grid-template-columns:150px 1fr auto;gap:1rem;align-items:center;padding:1rem 1.5rem;border-bottom:1px solid #e0e0e0;transition:all .2s}.card-item:hover{background:linear-gradient(135deg,#f0f7ff,#e6f2ff)}.card-item:last-child{border-bottom:none}.card-number{font-size:1.2rem;font-weight:600;color:#06c;font-family:Courier New,monospace}.card-name-display{display:flex;justify-content:space-between;align-items:center;gap:1rem}.card-name{font-size:1rem;color:#2c3e50;font-weight:500;flex:1}.btn-link-small{background:none;border:none;color:#06c;cursor:pointer;font-size:.9rem;padding:.25rem .5rem}.btn-link-small:hover{text-decoration:underline}.card-edit{display:flex;gap:.5rem;align-items:center;flex:1}.card-name-input{padding:.5rem;border:2px solid #0066cc;border-radius:6px;font-size:1rem;flex:1}.btn-small{padding:.4rem .8rem;border:none;border-radius:6px;font-size:.85rem;cursor:pointer;transition:all .2s;white-space:nowrap}.btn-small.btn-primary{background:#06c;color:#fff}.btn-small.btn-primary:hover{background:#0052a3}.btn-small:not(.btn-primary){background:#e0e0e0;color:#666}.btn-small:not(.btn-primary):hover{background:#d0d0d0}.filter-bar{padding:1rem;background:#fff;border-radius:8px;margin-bottom:1rem;border:2px solid #e0e0e0}.filter-bar label{display:flex;align-items:center;gap:.5rem;font-weight:500;color:#2c3e50}.status-filter-select{padding:.5rem 1rem;border:2px solid #0066cc;border-radius:6px;font-size:.9rem;color:#2c3e50;background:#fff;cursor:pointer}.stats-bar{display:flex;gap:2rem;padding:1rem;background:linear-gradient(135deg,#f0f7ff,#e6f2ff);border-radius:8px;margin-bottom:1.5rem}.stat-item{display:flex;flex-direction:column;gap:.25rem}.stat-label{font-size:.85rem;color:#666;font-weight:500}.stat-value{font-size:1.5rem;font-weight:600;color:#06c}.matches-list h3{font-size:1.2rem;color:#2c3e50;margin-bottom:1rem}.match-item{background:linear-gradient(135deg,#fff,#f8fbff);border:2px solid #e0e0e0;border-radius:12px;padding:1.5rem;margin-bottom:1rem;transition:all .3s}.match-item:hover{border-color:#06c;box-shadow:0 4px 12px #0066cc26}.match-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.5rem;border-bottom:1px solid #e0e0e0;flex-wrap:wrap;gap:1rem}.match-score-breakdown{display:flex;gap:1rem;align-items:center;flex:1}.score-detail{font-size:.85rem;color:#666;padding:.25rem .5rem;background:#f8f9fa;border-radius:4px}.match-actions{display:flex;gap:.5rem}.match-badge{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:600;color:#fff;text-transform:uppercase}.badge-confirmed{background:linear-gradient(135deg,#27ae60,#229954)}.badge-pending{background:linear-gradient(135deg,#f39c12,#e67e22)}.badge-rejected{background:linear-gradient(135deg,#e74c3c,#c0392b)}.match-confidence{font-size:.9rem;color:#666;font-weight:500}.match-body{display:grid;grid-template-columns:1fr auto 1fr;gap:1rem;align-items:center}.match-side h4{font-size:.85rem;color:#666;margin-bottom:.5rem;text-transform:uppercase;font-weight:600}.match-info{display:flex;flex-direction:column;gap:.25rem}.match-info strong{color:#2c3e50;font-size:1.1rem}.match-info .amount{color:#27ae60;font-weight:600;font-size:1.1rem}.match-arrow{font-size:2rem;color:#06c;font-weight:700}.card-badge{display:inline-block;padding:.25rem .5rem;background:linear-gradient(135deg,#06c,#0052a3);color:#fff;border-radius:6px;font-size:.85rem;font-weight:500;margin-top:.25rem}.empty-state{text-align:center;padding:3rem;color:#999}.empty-state p{font-size:1.1rem}@media (max-width: 768px){.matching-page{grid-template-columns:1fr;padding:1rem;gap:1rem}.matching-section{padding:1rem}.section-header{flex-direction:column;gap:1rem;align-items:stretch}.section-header h2{font-size:1.2rem}.section-header .header-actions{flex-direction:column;width:100%}.card-filter-select{width:100%;min-width:unset;padding:.6rem 1rem}.cards-header{display:none}.cards-grid{display:flex;flex-direction:column;gap:1rem;padding:1rem}.card-item{display:flex;flex-direction:column;gap:.75rem;padding:1rem;border:2px solid #e0e0e0;border-radius:8px;background:#fff}.card-item:hover{border-color:#06c}.card-number{font-size:1.5rem;text-align:center}.card-name-display{flex-direction:column;text-align:center;gap:.5rem}.card-edit{flex-direction:column}.card-name-input{width:100%}.btn-small{width:100%;padding:.6rem 1rem}.filter-bar{padding:.75rem}.filter-bar label{flex-direction:column;align-items:flex-start;gap:.5rem}.status-filter-select{width:100%}.stats-bar{flex-direction:column;gap:1rem;padding:1rem}.stat-item{text-align:center}.matches-list h3{font-size:1rem}.match-item{padding:1rem}.match-header{flex-direction:column;align-items:flex-start}.match-score-breakdown{flex-direction:column;align-items:flex-start;gap:.5rem;width:100%}.match-confidence{font-size:.85rem}.score-detail{font-size:.75rem;width:100%;text-align:center}.match-actions{width:100%;flex-direction:column}.match-actions .btn-small{width:100%}.match-body{grid-template-columns:1fr;gap:1rem}.match-arrow{transform:rotate(90deg);font-size:1.5rem;text-align:center}.match-side h4{font-size:.75rem;text-align:center}.match-info{align-items:center;text-align:center}.match-info strong,.match-info .amount{font-size:1rem}.card-badge{font-size:.75rem}.empty-state{padding:2rem 1rem}.empty-state p{font-size:.95rem}}.batch-summary-container{margin-bottom:2rem;padding:1.5rem;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.batch-summary-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.batch-summary-header h3{margin:0;font-size:1.25rem;color:#333}.batch-summary-empty{padding:2rem;text-align:center;color:#666;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.batch-list{display:flex;flex-direction:column;gap:.5rem}.batch-item{border:1px solid #e0e0e0;border-radius:6px;overflow:hidden;transition:all .2s}.batch-item:hover{box-shadow:0 2px 8px #0000001a}.batch-summary{display:flex;justify-content:space-between;align-items:center;padding:1rem;cursor:pointer;background:#f9f9f9;transition:background .2s}.batch-summary:hover{background:#f0f0f0}.batch-info{flex:1}.batch-time{font-size:.95rem;color:#666;margin-bottom:.5rem;display:flex;align-items:center;gap:.5rem}.batch-type-badge{display:inline-block;padding:.2rem .6rem;border-radius:10px;font-size:.75rem;font-weight:600;background:#e3f2fd;color:#1565c0}.batch-stats{display:flex;gap:1rem;flex-wrap:wrap}.stat{padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:500}.stat.success{background:#e8f5e9;color:#2e7d32}.stat.failed{background:#ffebee;color:#c62828}.stat.receipts{background:#e3f2fd;color:#1565c0}.stat.warning{background:#fff3e0;color:#ef6c00;font-weight:600}.batch-toggle{font-size:1.25rem;color:#666;padding:0 .5rem}.batch-details{padding:1rem;background:#fff;border-top:1px solid #e0e0e0}.batch-details h4{margin:0 0 .75rem;font-size:.95rem;color:#ef6c00}.zero-receipt-files{list-style:none;padding:0;margin:0}.zero-receipt-files li{padding:.5rem .75rem;background:#fff3e0;border-left:3px solid #ef6c00;margin-bottom:.5rem;border-radius:4px;font-family:Courier New,monospace;font-size:.9rem}.btn-small{padding:.4rem .8rem;font-size:.85rem}.audit-log-page{padding:2rem;max-width:1400px;margin:0 auto}.audit-log-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.audit-log-header h2{font-size:1.8rem;color:#2c3e50;margin:0}.audit-log-actions{display:flex;gap:1rem;align-items:center}.log-count{font-size:.9rem;color:#666}.audit-log-filters{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:2rem;display:flex;gap:1.5rem;align-items:flex-end;flex-wrap:wrap}.filter-group{display:flex;flex-direction:column;gap:.5rem;flex:1;min-width:250px}.filter-group label{font-size:.9rem;font-weight:600;color:#666}.search-input{padding:.75rem 1rem;border:2px solid #e0e0e0;border-radius:6px;font-size:.95rem;transition:all .2s;width:100%}.search-input:focus{outline:none;border-color:#06c;box-shadow:0 0 0 3px #0066cc1a}.level-filter-select{padding:.75rem 1rem;border:2px solid #e0e0e0;border-radius:6px;font-size:.95rem;background:#fff;cursor:pointer;transition:all .2s;width:100%}.level-filter-select:focus{outline:none;border-color:#06c;box-shadow:0 0 0 3px #0066cc1a}.btn-secondary{background:#6c757d;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;font-size:.95rem;cursor:pointer;transition:all .2s}.btn-secondary:hover{background:#5a6268}.btn-small{padding:.5rem 1rem;font-size:.85rem}.audit-log-list{display:flex;flex-direction:column;gap:.75rem}.log-entry{background:#fff;border-left:4px solid #0066cc;border-radius:8px;padding:1rem 1.5rem;box-shadow:0 2px 4px #0000001a;transition:all .2s}.log-entry:hover{box-shadow:0 4px 8px #00000026;transform:translateY(-1px)}.log-entry.log-level-success{border-left-color:#27ae60}.log-entry.log-level-warning{border-left-color:#f39c12}.log-entry.log-level-error{border-left-color:#e74c3c}.log-header{display:flex;gap:1rem;align-items:center;margin-bottom:.5rem}.log-badge{padding:.25rem .75rem;border-radius:12px;font-size:.7rem;font-weight:600;color:#fff;text-transform:uppercase}.log-badge.log-level-info{background:linear-gradient(135deg,#06c,#0052a3)}.log-badge.log-level-success{background:linear-gradient(135deg,#27ae60,#229954)}.log-badge.log-level-warning{background:linear-gradient(135deg,#f39c12,#e67e22)}.log-badge.log-level-error{background:linear-gradient(135deg,#e74c3c,#c0392b)}.log-timestamp{font-size:.85rem;color:#666;font-family:Courier New,monospace}.log-filename{font-size:.85rem;color:#06c;font-weight:500;background:#f0f7ff;padding:.25rem .5rem;border-radius:4px}.log-message{font-size:.95rem;color:#2c3e50;line-height:1.5}.log-details{margin-top:.75rem;padding:.75rem;background:#f8f9fa;border-radius:6px;display:flex;flex-wrap:wrap;gap:1rem}.log-detail-item{display:flex;gap:.5rem;font-size:.85rem}.log-detail-key{font-weight:600;color:#666}.log-detail-value{color:#2c3e50;font-family:Courier New,monospace}.empty-state{text-align:center;padding:4rem 2rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.empty-state p{font-size:1.1rem;color:#999}@media (max-width: 768px){.audit-log-page{padding:1rem}.audit-log-header{flex-direction:column;gap:1rem;align-items:flex-start}.audit-log-header h2{font-size:1.3rem}.audit-log-actions{flex-direction:column;width:100%;align-items:stretch}.audit-log-actions .btn{width:100%}.log-count{font-size:.85rem;text-align:center}.audit-log-filters{flex-direction:column;padding:1rem;gap:1rem}.filter-group{min-width:100%}.btn-secondary{width:100%}.log-entry{padding:.75rem 1rem}.log-header{flex-wrap:wrap;gap:.5rem}.log-badge{font-size:.65rem;padding:.2rem .6rem}.log-timestamp{font-size:.75rem}.log-filename{font-size:.75rem;word-break:break-all}.log-message{font-size:.85rem}.log-details{padding:.5rem;gap:.5rem}.log-detail-item{font-size:.75rem;flex-direction:column;gap:.25rem}.empty-state{padding:2rem 1rem}.empty-state p{font-size:.95rem}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:linear-gradient(135deg,#f5f9fc,#e8f0f7);background-attachment:fixed;color:#2c3e50}#root{min-height:100vh}button{cursor:pointer;font-family:inherit}input,textarea{font-family:inherit}
