.file-upload{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0000001a;display:flex;flex-direction:column;text-align:center}.file-upload h2{margin-bottom:1rem;color:#333}.empty-state-message{margin-top:1rem;padding:.75rem 1rem;background-color:#fef3c7;color:#92400e;border-radius:8px;font-size:.9rem;font-weight:500;border:1px solid #fde68a}.upload-hint{margin-top:1rem;color:#666;font-size:.9rem;min-height:1.2em}.match-results{background:#fff;border-radius:12px;padding:2rem;margin:2rem 0;box-shadow:0 2px 8px #0000001a}.results-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem;flex-wrap:wrap;gap:1rem}.results-header h2{color:#333;margin:0}.results-controls{display:flex;gap:1rem;align-items:center;flex-wrap:wrap}.view-toggle{display:flex;gap:0;border:1px solid #ddd;border-radius:6px;overflow:hidden}.view-toggle-btn{padding:.5rem 1rem;border:none;background:#fff;cursor:pointer;font-size:.9rem;transition:all .2s;border-right:1px solid #ddd}.view-toggle-btn:last-child{border-right:none}.view-toggle-btn:hover{background:#f8f9fa}.view-toggle-btn.active{background:#667eea;color:#fff}.filter-select{padding:.5rem 1rem;border:1px solid #ddd;border-radius:6px;font-size:.9rem;background:#fff;cursor:pointer}.export-btn{padding:.5rem 1rem;border:1px solid #667eea;border-radius:6px;font-size:.9rem;background:#667eea;color:#fff;cursor:pointer;transition:all .2s}.export-btn:hover{background:#5568d3;transform:translateY(-1px)}.results-table-container{overflow-x:auto}.results-table{width:100%;border-collapse:collapse;margin-top:1rem}.results-table thead{background-color:#f8f9fa}.results-table th{padding:1rem;text-align:center;font-weight:600;color:#333;border-bottom:2px solid #dee2e6}.sortable-header{cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;transition:background-color .2s}.sortable-header:hover{background-color:#e9ecef}.sort-icon{margin-left:.5rem;font-size:.9rem;color:#667eea;display:inline-block;min-width:1em}.results-table td{padding:1rem;border-bottom:1px solid #dee2e6}.results-table tbody tr:hover{background-color:#f8f9fa}.customer-product{font-weight:500;color:#333;max-width:300px}.matched-product{color:#555;max-width:300px}.part-number{font-family:monospace;color:#667eea;font-weight:500}.price{font-weight:600;color:#28a745}.confidence-header,.confidence-cell{text-align:center}.quality-badge{display:inline-block;padding:.25rem .75rem;border-radius:12px;color:#fff;font-size:.85rem;font-weight:600}.quantity-cell{text-align:center}.quantity-badge{display:inline-block;padding:.25rem .5rem;border-radius:8px;background:#667eea;color:#fff;font-size:.85rem;font-weight:600;min-width:2.5rem;text-align:center}.actions-header{text-align:center;min-width:100px}.actions-cell{text-align:center;padding:1rem}.action-buttons{display:flex;gap:.5rem;justify-content:center;align-items:center;flex-wrap:wrap}.edit-match-btn{padding:.4rem .8rem;border:1px solid #667eea;border-radius:6px;background:#fff;color:#667eea;cursor:pointer;font-size:.85rem;transition:all .2s}.edit-match-btn:hover{background:#667eea;color:#fff;transform:translateY(-1px)}.reset-match-btn{padding:.4rem .8rem;border:1px solid #6c757d;border-radius:6px;background:#fff;color:#6c757d;cursor:pointer;font-size:.85rem;transition:all .2s}.reset-match-btn:hover{background:#6c757d;color:#fff;transform:translateY(-1px)}.correction-badge{margin-left:.5rem;font-size:.9rem;cursor:help}.matched-product.no-match,.part-number.no-match,.price.no-match{color:#6c757d;font-style:italic}@media (max-width: 768px){.results-header{flex-direction:column;align-items:flex-start}.results-controls{width:100%;flex-direction:column}.results-table{font-size:.85rem}.results-table th,.results-table td{padding:.5rem}.edit-match-btn,.reset-match-btn{padding:.3rem .6rem;font-size:.75rem}}.product-selector-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem}.product-selector-modal{background:#fff;border-radius:12px;width:100%;max-width:600px;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 4px 20px #0000004d;animation:modalFadeIn .2s ease-out}@keyframes modalFadeIn{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}.product-selector-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #dee2e6}.product-selector-header h3{margin:0;color:#333;font-size:1.25rem}.product-selector-close{background:none;border:none;font-size:2rem;color:#6c757d;cursor:pointer;padding:0;width:2rem;height:2rem;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .2s}.product-selector-close:hover{background:#f8f9fa;color:#333}.product-selector-search{padding:1rem 1.5rem;border-bottom:1px solid #dee2e6}.product-selector-undo-section{padding:.75rem 1.5rem;border-bottom:1px solid #dee2e6;background:#e7f3ff;text-align:center}.product-selector-undo-btn{display:inline-block;padding:.4rem .8rem;border:1px solid #667eea;border-radius:4px;background:#fff;color:#667eea;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .2s}.product-selector-undo-btn:hover{background:#667eea;color:#fff;border-color:#667eea}.product-selector-no-match-section{padding:.75rem 1.5rem;border-bottom:1px solid #dee2e6;background:#f8f9fa;text-align:center}.product-selector-no-match-btn{display:inline-block;padding:.4rem .8rem;border:1px solid #6c757d;border-radius:4px;background:#fff;color:#6c757d;font-size:.85rem;font-weight:500;cursor:pointer;transition:all .2s}.product-selector-no-match-btn:hover{background:#6c757d;color:#fff;border-color:#6c757d}.product-selector-input{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:6px;font-size:1rem;transition:border-color .2s}.product-selector-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea1a}.product-selector-error{padding:1rem 1.5rem;color:#dc3545;background:#f8d7da;border-left:4px solid #dc3545;margin:0 1.5rem;border-radius:4px}.product-selector-results{flex:1;overflow-y:auto;padding:1rem 1.5rem}.product-selector-loading,.product-selector-empty{text-align:center;padding:2rem;color:#6c757d}.product-selector-list{display:flex;flex-direction:column;gap:.5rem}.product-selector-item{padding:1rem;border:1px solid #dee2e6;border-radius:8px;cursor:pointer;transition:all .2s;background:#fff}.product-selector-item:hover{border-color:#667eea;background:#f8f9ff;transform:translateY(-1px);box-shadow:0 2px 8px #667eea1a}.product-selector-item.selected{border-color:#667eea;background:#f0f4ff;box-shadow:0 0 0 2px #667eea33}.product-selector-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.product-selector-part-number{font-family:monospace;font-weight:600;color:#667eea;font-size:.95rem}.product-selector-price{font-weight:600;color:#28a745;font-size:1rem}.product-selector-description{color:#555;font-size:.9rem;line-height:1.4}.product-selector-results::-webkit-scrollbar{width:8px}.product-selector-results::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.product-selector-results::-webkit-scrollbar-thumb{background:#888;border-radius:4px}.product-selector-results::-webkit-scrollbar-thumb:hover{background:#555}.catalog-upload{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0000001a;display:flex;flex-direction:column;text-align:center}.catalog-upload h2{margin-bottom:1rem;color:#333;text-align:center}.catalog-status{padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;font-weight:500}.catalog-status.success{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite;margin-right:.5rem;vertical-align:middle}.upload-button{background:#2563eb;color:#fff;border:none;padding:.875rem 1.5rem;font-size:1rem;border-radius:8px;cursor:pointer;transition:background-color .2s;font-weight:600;display:inline-flex;align-items:center;justify-content:center}.upload-button:hover:not(:disabled){background:#1d4ed8}.upload-button:disabled{opacity:.6;cursor:not-allowed;background:#9ca3af}.clear-button{background:#fff;color:#2563eb;border:2px solid #2563eb;padding:.875rem 1.5rem;font-size:1rem;border-radius:8px;cursor:pointer;transition:background-color .2s;font-weight:600}.clear-button:hover:not(:disabled){background:#eff6ff}.clear-button:disabled{opacity:.6;cursor:not-allowed;border-color:#9ca3af;color:#9ca3af}@media (max-width: 768px){.upload-button,.clear-button{padding:.75rem 1.25rem;font-size:.95rem}}.upload-hint{margin-top:1rem;color:#666;font-size:.9rem}.login-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(-45deg,#f0f4f8,#e8f0fe,#f0f4f8,#e8e8f0);background-size:400% 400%;animation:gradientShift 15s ease infinite;padding:2rem}@keyframes gradientShift{0%{background-position:0% 50%}50%{background-position:100% 50%}to{background-position:0% 50%}}.login-card{background:#fff;border-radius:12px;box-shadow:0 10px 40px #0000001a,0 2px 8px #0000000f;padding:3rem 2.5rem 2rem;max-width:400px;width:100%;text-align:center;animation:fadeInUp .6s ease-out;transition:transform .3s ease,box-shadow .3s ease}.login-card:hover{transform:translateY(-4px);box-shadow:0 15px 50px #00000026,0 4px 12px #00000014}@keyframes fadeInUp{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.login-card h1{font-size:1.75rem;font-weight:600;color:#111827;margin-bottom:.5rem}.login-subtitle{font-size:.95rem;color:#6b7280;margin-bottom:2rem}.signin-button{background:#3b82f6;color:#fff;border:none;padding:.75rem 2rem;font-size:1rem;font-weight:500;border-radius:6px;cursor:pointer;transition:background .2s ease;width:100%}.signin-button:hover{background:#2563eb}.signin-button:active{background:#1d4ed8}.login-footer{margin-top:2.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb;display:flex;flex-direction:column;align-items:center;gap:.75rem}.bearpoint-logo{height:32px;width:auto;opacity:.8;transition:opacity .2s ease}.bearpoint-logo:hover{opacity:1}.developed-by{font-size:.75rem;color:#9ca3af;margin:0;font-weight:400}@media (max-width: 768px){.login-card{padding:2rem 1.5rem}.login-card h1{font-size:1.5rem}.signin-button{padding:.75rem 1.5rem}}.access-denied-container{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#f59e0b,#ef4444);padding:2rem}.access-denied-card{background:#fff;border-radius:16px;box-shadow:0 20px 60px #0000004d;max-width:500px;width:100%;padding:3rem 2rem;text-align:center}.access-denied-icon{font-size:5rem;margin-bottom:1.5rem}.access-denied-card h1{font-size:2rem;font-weight:700;color:#111827;margin-bottom:1rem}.access-denied-message{font-size:1.125rem;color:#374151;margin-bottom:1rem;line-height:1.6}.access-denied-help{font-size:1rem;color:#6b7280;margin-bottom:2rem;line-height:1.5}.logout-button{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff;border:none;padding:.875rem 2rem;font-size:1rem;font-weight:600;border-radius:8px;cursor:pointer;transition:all .3s ease;box-shadow:0 4px 12px #ef44444d}.logout-button:hover{transform:translateY(-2px);box-shadow:0 6px 20px #ef444466}.logout-button:active{transform:translateY(0)}@media (max-width: 768px){.access-denied-card h1{font-size:1.5rem}.access-denied-message{font-size:1rem}}.app{min-height:100vh;display:flex;flex-direction:column}.app-header{background:#fff;border-bottom:1px solid #e5e7eb;border-top:4px solid transparent;border-image:linear-gradient(90deg,#3b82f6,#8b5cf6,#3b82f6) 1;padding:1.5rem 2rem}.header-content{max-width:1200px;margin:0 auto;display:flex;justify-content:space-between;align-items:center}.header-title{text-align:left}.app-header h1{font-size:1.875rem;font-weight:600;color:#111827;margin-bottom:.5rem}.app-header p{font-size:1rem;color:#6b7280}.header-user{display:flex;align-items:center;gap:1rem}.user-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover}.user-info{display:flex;flex-direction:column;gap:.5rem;align-items:flex-end}.user-name{font-size:.875rem;font-weight:500;color:#374151}.logout-btn{background:#fff;color:#2563eb;border:1px solid #2563eb;padding:.375rem .875rem;font-size:.875rem;border-radius:6px;cursor:pointer;transition:all .2s;font-weight:500}.logout-btn:hover{background:#eff6ff}.loading-container{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}.loading-spinner{width:50px;height:50px;border:4px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-main{flex:1;padding:2rem}.container{max-width:1200px;margin:0 auto}.upload-section{display:grid;grid-template-columns:1fr auto 1fr;gap:2rem;margin:2rem 0;align-items:center}.flow-indicator{display:flex;align-items:center;justify-content:center;color:#9ca3af;font-size:2rem;font-weight:300}.flow-arrow{display:inline-block}@media (max-width: 768px){.upload-section{grid-template-columns:1fr}.flow-indicator{display:none}.app-main{padding:1rem}.header-content{flex-direction:column;gap:1rem;align-items:flex-start}.header-user{width:100%;justify-content:space-between}.user-info{flex-direction:row;align-items:center;gap:1rem}}.error-message{background-color:#f8d7da;color:#721c24;padding:1rem;border-radius:8px;margin:1rem 0;border:1px solid #f5c6cb}.summary-card{background:#fff;border-radius:12px;padding:2rem;margin:2rem 0;box-shadow:0 2px 8px #0000001a}.summary-card h2{margin-bottom:1.5rem;color:#333}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1.5rem}.summary-item{display:flex;flex-direction:column;padding:1rem;border-radius:8px;border:1px solid}.summary-item-default{background:#f9fafb;border-color:#e5e7eb}.summary-item-high{background:#f0fdf4;border-color:#bbf7d0}.summary-item-medium{background:#fefce8;border-color:#fef08a}.summary-item-low{background:#fef2f2;border-color:#fecaca}.summary-label{font-size:.9rem;color:#666;margin-bottom:.5rem}.summary-value{font-size:1.5rem;font-weight:700;color:#333}.summary-value.high{color:#28a745}.summary-value.medium{color:#ffc107}.summary-value.low{color:#dc3545}.app-footer{background:#fff;border-top:1px solid #e5e7eb;padding:1.5rem 2rem;margin-top:auto}.footer-content{max-width:1200px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:.75rem}.footer-logo{height:24px;width:auto;opacity:.7;transition:opacity .2s ease}.footer-logo:hover{opacity:1}.footer-text{font-size:.875rem;color:#9ca3af;margin:0}*{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-color:#f5f5f5}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}
