*,*,:before,:after{box-sizing:border-box;margin:0;padding:0}body{color:#111827;background:#f3f4f6;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px}.navbar{color:#fff;z-index:10;background:#1d4ed8;align-items:center;gap:24px;height:48px;padding:0 20px;display:flex;position:sticky;top:0;box-shadow:0 1px 3px #0003}.navbar-brand{color:#fff;font-size:1rem;font-weight:700;text-decoration:none}.navbar-links{flex:1;gap:4px;display:flex}.navbar-links a{color:#ffffffbf;border-radius:4px;padding:4px 10px;font-size:14px;text-decoration:none;transition:background .15s,color .15s}.navbar-links a:hover{color:#fff;background:#ffffff26}.navbar-links a.active{color:#fff;background:#fff3}.navbar-user{color:#ffffffb3;font-size:13px}.usage-bar{background:#ffffff26;border-radius:10px;width:120px;height:20px;position:relative;overflow:hidden}.usage-fill{border-radius:10px;height:100%;transition:width .3s}.usage-text{text-align:center;color:#fff;font-size:11px;font-weight:600;line-height:20px;position:absolute;top:0;left:0;right:0}.main-content{max-width:1300px;margin:0 auto;padding:1.5rem 1rem}.page{padding:20px 0}.page h1{color:#111827;margin-bottom:16px;font-size:1.35rem;font-weight:700}.section-gap{margin-bottom:1.5rem}.text-muted{color:#6b7280}.flex-gap{align-items:center;gap:8px;display:flex}.login-page,.blocked-page,.loading-page{text-align:center;background:#f9fafb;flex-direction:column;justify-content:center;align-items:center;min-height:100vh;display:flex}.login-form{background:#fff;border:1px solid #e5e7eb;border-radius:8px;flex-direction:column;gap:.75rem;width:320px;padding:2rem;display:flex;box-shadow:0 4px 16px #0000000a}.login-form h1{text-align:center;margin:0 0 .5rem;font-size:1.25rem}.login-form input{border:1px solid #d1d5db;border-radius:6px;padding:.6rem .75rem;font-size:.95rem}.login-form button{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:6px;padding:.6rem .75rem;font-weight:600}.login-form button:disabled{opacity:.6;cursor:wait}.login-form .error{color:#b91c1c;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;padding:.5rem .75rem;font-size:.85rem}.logout-btn{cursor:pointer;background:0 0;border:1px solid #d1d5db;border-radius:4px;margin-left:.75rem;padding:.25rem .6rem;font-size:.8rem}.logout-btn:hover{background:#f3f4f6}.card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:1rem;padding:1.25rem}.card h2{text-transform:uppercase;color:#6b7280;letter-spacing:.06em;margin-bottom:1rem;font-size:.75rem;font-weight:600}.kpi-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px;display:grid}.kpi-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:20px}.kpi-card h3{text-transform:uppercase;color:#6b7280;letter-spacing:.06em;margin-bottom:8px;font-size:.75rem;font-weight:600}.kpi-card .value{color:#1d4ed8;font-size:1.75rem;font-weight:700}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px;margin-bottom:1.5rem;display:grid}.stat-box{text-align:center;background:#f9fafb;border:1px solid #e5e7eb;border-radius:8px;padding:1rem}.stat-value{color:#1d4ed8;font-size:1.75rem;font-weight:700}.stat-label{text-transform:uppercase;color:#6b7280;letter-spacing:.06em;margin-top:.25rem;font-size:.75rem}.btn{cursor:pointer;border:none;border-radius:6px;padding:.45rem 1rem;font-size:14px;font-weight:500;transition:background .15s}.btn-primary{color:#fff;background:#1d4ed8}.btn-primary:hover{background:#1e40af}.btn-success{color:#fff;background:#059669}.btn-success:hover{background:#047857}.btn-danger{color:#fff;background:#dc2626}.btn-danger:hover{background:#b91c1c}.btn-secondary{color:#fff;background:#6b7280}.btn-secondary:hover{background:#4b5563}.btn-sm{padding:.3rem .65rem;font-size:.8rem}.btn:disabled{opacity:.55;cursor:not-allowed}.form-row{align-items:flex-end;gap:12px;display:flex}.form-group{flex-direction:column;flex:1;gap:4px;min-width:110px;display:flex}.form-group label{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;font-size:.75rem;font-weight:600}.form-group input,.form-group select{color:#111827;background:#fff;border:1px solid #d1d5db;border-radius:6px;padding:8px 10px;font-size:14px;transition:border-color .15s,box-shadow .15s}.form-group input:focus,.form-group select:focus{border-color:#1d4ed8;outline:none;box-shadow:0 0 0 3px #1d4ed826}.form-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;align-items:center;gap:8px;padding:16px;display:flex}.form-card input,.form-card select{border:1px solid #d1d5db;border-radius:6px;padding:8px 10px;font-size:14px}.form-card input:focus,.form-card select:focus{border-color:#1d4ed8;outline:none;box-shadow:0 0 0 3px #1d4ed826}.alert{border-radius:6px;margin-bottom:1rem;padding:12px 16px;font-size:14px;font-weight:500}.alert-error{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.alert-success{color:#166534;background:#d1fae5;border:1px solid #bbf7d0}.alert-warning{color:#92400e;background:#fffbeb;border:1px solid #fde68a}.alert-info{color:#1e40af;background:#eff6ff;border:1px solid #93c5fd}.badge{border-radius:9999px;padding:2px 10px;font-size:.7rem;font-weight:700;display:inline-block}.badge-blue{color:#1d4ed8;background:#dbeafe}.badge-gray{color:#6b7280;background:#f3f4f6}.badge-red{color:#991b1b;background:#fee2e2}.badge-green{color:#065f46;background:#d1fae5}.badge-yellow{color:#d97706;background:#fffbeb}.badge-orange{color:#ea580c;background:#fff7ed}.wholesaler-list{flex-direction:column;gap:8px;display:flex}.wholesaler-item{background:#fff;border:1px solid #e5e7eb;border-radius:8px;justify-content:space-between;align-items:center;padding:1rem;display:flex}.wholesaler-header{align-items:center;gap:10px;display:flex}.wholesaler-name{color:#111827;font-weight:600}.wholesaler-meta{color:#6b7280;font-size:.8rem}.wholesaler-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;justify-content:space-between;align-items:center;padding:12px 16px;display:flex}.wholesaler-info{align-items:center;gap:8px;display:flex}.wholesaler-actions{gap:8px;display:flex}.upload-row{align-items:center;gap:8px;padding:6px 0;display:flex}.upload-feedback{font-size:.8rem;font-weight:500}.upload-ok{color:#059669}.upload-err{color:#dc2626}table{border-collapse:collapse;width:100%}th{text-align:left;color:#6b7280;background:#f9fafb;border-bottom:2px solid #e5e7eb;padding:.6rem .75rem;font-size:.875rem;font-weight:600}td{border-bottom:1px solid #f3f4f6;padding:.55rem .75rem;font-size:14px}tr:hover td{background:#f9fafb}.compare-table{border-collapse:collapse;background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:100%;overflow:hidden}.compare-table th{text-align:left;color:#6b7280;text-transform:uppercase;letter-spacing:.04em;background:#f9fafb;border-bottom:2px solid #e5e7eb;padding:10px 12px;font-size:.75rem;font-weight:600}.compare-table td{border-top:1px solid #e5e7eb;padding:10px 12px}.compare-summary{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:16px;padding:16px}.error-msg{color:#991b1b;background:#fef2f2;border:1px solid #fecaca;border-radius:6px;margin:12px 0;padding:12px}.warning{color:#d97706}.done-section{text-align:center;padding:48px}.wizard-stepper{background:#fff;border:1px solid #e5e7eb;border-radius:8px;align-items:center;gap:0;margin:1rem 0;padding:.75rem 1rem;display:flex}.wizard-step{color:#9ca3af;align-items:center;gap:6px;font-size:.85rem;font-weight:500;display:flex}.wizard-step-num{color:#6b7280;background:#e5e7eb;border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:.75rem;font-weight:700;display:inline-flex}.wizard-step-active{color:#1d4ed8;font-weight:700}.wizard-step-active .wizard-step-num{color:#fff;background:#1d4ed8}.wizard-step-done{color:#059669}.wizard-step-done .wizard-step-num{color:#fff;background:#059669}.wizard-step-arrow{color:#d1d5db;margin:0 12px;font-size:.8rem}.stepper{border-bottom:1px solid #e5e7eb;align-items:center;gap:0;margin:1rem 0;padding:12px 0;display:flex}.stepper span{color:#9ca3af;font-size:14px;font-weight:500}.stepper span.active{color:#1d4ed8;font-weight:700}.drop-zone{text-align:center;cursor:pointer;background:#fff;border:2px dashed #d1d5db;border-radius:8px;margin:20px 0;padding:48px;transition:border-color .15s,background .15s}.drop-zone:hover,.drop-zone-active{background:#eff6ff;border-color:#1d4ed8}.drop-zone-has-file{background:#f0fdf4;border-style:solid;border-color:#059669}.search-bar{gap:8px;margin:16px 0;display:flex}.search-bar input{border:1px solid #d1d5db;border-radius:6px;flex:1;padding:10px;font-size:14px}.search-bar input:focus{border-color:#1d4ed8;outline:none;box-shadow:0 0 0 3px #1d4ed826}.results-list{flex-direction:column;gap:8px;margin-top:16px;display:flex}.result-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;padding:16px}.result-header{align-items:center;gap:8px;margin-bottom:8px;display:flex}.price-list{flex-wrap:wrap;gap:8px;display:flex}.price-tag{color:#059669;background:#f0fdf4;border-radius:12px;padding:4px 10px;font-size:13px;font-weight:600}.no-prices{color:#9ca3af;font-size:13px}.merge-group-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:12px;padding:16px}.merge-header{align-items:center;gap:8px;margin-bottom:8px;display:flex}.merge-group-card ul{color:#6b7280;margin-left:20px;font-size:14px}.not-found-table{border-collapse:collapse;background:#fff;border:1px solid #e5e7eb;border-radius:8px;width:100%;overflow:hidden}.nf-row{border-bottom:1px solid #e5e7eb;align-items:center;gap:8px;padding:8px 12px;display:flex}.nf-row-unchecked{opacity:.5}.constraint-item{border-left-width:4px;align-items:center;gap:6px;padding:4px 0;font-size:14px;display:flex}.constraint-ok{border-left-color:#059669}.constraint-fail{border-left-color:#dc2626}.link-btn{color:#1d4ed8;cursor:pointer;background:0 0;border:none;padding:0;font-size:14px;text-decoration:underline}.link-btn:hover{color:#1e40af}.expand-btn{color:#1d4ed8;cursor:pointer;background:0 0;border:none;font-size:.8rem;text-decoration:underline}.hist-product-card{background:#fff;border:1px solid #e5e7eb;border-radius:8px;margin-bottom:.75rem;padding:1rem}.hist-product-header{background:#f9fafb;border-bottom:1px solid #e5e7eb;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding:10px 16px;display:flex}.hist-product-name{color:#111827;font-weight:600}.hist-product-meta{color:#6b7280;font-size:.8rem}.hist-product-prices{flex-wrap:wrap;gap:6px;margin-top:8px;display:flex}.hist-suppliers{margin-top:8px}.hist-supplier-row{border-bottom:1px solid #f3f4f6;align-items:center;gap:10px;padding:6px 0;display:flex}.hist-supplier-row:last-child{border-bottom:none}.hist-supplier-name{color:#111827;flex-shrink:0;width:170px;font-weight:600}.hist-supplier-pname{color:#6b7280;flex:1;font-size:.85rem}.hist-supplier-actions{align-items:center;gap:6px;display:flex}.hist-price{color:#1d4ed8;font-weight:700}.hist-qty-row{align-items:center;gap:4px;display:flex}.qty-btn{cursor:pointer;color:#374151;background:#fff;border:1px solid #d1d5db;border-radius:4px;justify-content:center;align-items:center;width:24px;height:24px;font-size:14px;display:inline-flex}.qty-btn:hover{background:#f3f4f6}.qty-val{text-align:center;min-width:28px;font-weight:600}.loading{text-align:center;color:#6b7280;padding:2rem;font-size:14px}@media print{.nav,.navbar,.wizard-stepper,.btn,.no-print{display:none!important}body{background:#fff}.not-found-table{border:1px solid #ccc}.nf-row[data-checked=false]{display:none!important}}
