:root{font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;color:#0f172a;background:linear-gradient(145deg,#f8fafc,#e2e8f0)}*{box-sizing:border-box}body{margin:0;min-height:100vh}.app-shell{min-height:100vh;padding:24px}.auth-shell{display:grid;place-items:center}.auth-card{width:min(460px,100%);background:#fff;border-radius:18px;box-shadow:0 20px 45px #0f172a26;padding:24px}.auth-card h1{margin:0 0 8px}.auth-hint{margin:0 0 16px;color:#475569}.auth-form{display:grid;gap:12px}.auth-form input{border:1px solid #94a3b8;border-radius:10px;padding:10px;font-size:15px}.auth-error{margin:0;color:#b91c1c;font-size:14px;font-weight:600}.session-bar{width:min(1260px,100%);margin:0 auto 14px;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fff;border:1px solid #cbd5e1;border-radius:12px;padding:10px 12px}.logout-btn{border-color:#64748b;background:#64748b}.page-title{width:100%;margin:0 0 12px;padding:16px 20px;background:#005277;display:flex;justify-content:center;align-items:center}.page-logo{display:block;width:min(380px,100%);max-width:100%;height:auto;object-fit:contain}.dashboard-grid{width:min(1260px,100%);margin:0 auto;display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:14px}.chat-card{width:100%;background:#fff;border-radius:18px;box-shadow:0 20px 45px #0f172a26;padding:20px}.block-lg{grid-column:1 / span 1;grid-row:1 / span 2}.block-sm{min-height:280px}.block-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.block-header.stack{align-items:flex-start;flex-direction:column}.inventory-updated-at{margin:0;font-size:12px;color:#475569}.csv-upload-row{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.csv-upload-btn{border-radius:8px;border:1px solid #94a3b8;background:#f8fafc;color:#334155;padding:6px 10px;font-size:12px;font-weight:600;cursor:pointer;transition:background .15s,border-color .15s}.csv-upload-btn:hover:not(:disabled){background:#e2e8f0;border-color:#64748b}.csv-upload-btn:disabled{opacity:.6;cursor:not-allowed}.csv-upload-btn--ok{border-color:#86efac;background:#f0fdf4;color:#166534}.csv-upload-btn--error{border-color:#fca5a5;background:#fef2f2;color:#991b1b}.block-header h1,.block-header h2{margin:0}.selector-row{display:flex;flex-wrap:wrap;gap:10px}.field-inline{display:grid;gap:4px;font-size:12px;color:#475569}.field-inline select{min-width:110px;border:1px solid #94a3b8;border-radius:8px;padding:8px;background:#fff}.field-inline input{min-width:140px;border:1px solid #94a3b8;border-radius:8px;padding:8px;background:#fff}.action-btn{border-radius:10px;border:1px solid #0284c7;background:#0284c7;color:#fff;padding:10px 12px;cursor:pointer;font-weight:600}.action-btn:disabled{opacity:.7;cursor:not-allowed}.result-box{margin:10px 0 0;background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;min-height:150px;max-height:230px;overflow:auto;padding:10px;white-space:pre-wrap;word-break:break-word}.result-box.success{border-color:#86efac;background:#f0fdf4}.result-box.error{border-color:#fecaca;background:#fef2f2}.chat-card h1{margin-top:0;margin-bottom:16px}.messages{max-height:60vh;overflow-y:auto;padding:8px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc}.bubble{max-width:84%;border-radius:12px;padding:10px 12px;margin-bottom:10px}.bubble.user{margin-left:auto;background:#0ea5e9;color:#fff}.bubble.assistant{margin-right:auto;background:#e2e8f0}.bubble pre{margin:0;font-family:inherit;white-space:pre-wrap;word-break:break-word}.products-grid{margin-top:12px;display:grid;gap:12px}.product-card{border-radius:12px;border:1px solid #cbd5e1;background:#fff;padding:12px}.product-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.product-card-header h2{margin:0;font-size:15px;line-height:1.3}.product-id{font-size:12px;color:#475569;background:#f1f5f9;border-radius:999px;padding:2px 8px}.product-ref{margin:8px 0 10px;font-size:13px;color:#334155}.combination-title{margin:0 0 8px;font-weight:600;font-size:13px}.combination-empty{margin:0;font-size:13px;color:#64748b}.combination-list ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.table-wrap{overflow-x:auto}.report-table-wrap{margin-top:10px}.report-table{margin-bottom:10px}.report-table th,.report-table td{font-size:12px}.stock-table{width:100%;border-collapse:collapse;border:1px solid #e2e8f0;border-radius:10px;overflow:hidden;background:#fff}.stock-table th,.stock-table td{padding:8px 10px;font-size:13px;text-align:left;border-bottom:1px solid #e2e8f0}.stock-table th:nth-child(n+2),.stock-table td:nth-child(n+2){text-align:center}.stock-table th{background:#f1f5f9;color:#0f172a;font-weight:700}.stock-table tbody tr:nth-child(2n){background:#f8fafc}.stock-table tbody tr:last-child td{border-bottom:none}.stock-table tfoot td{font-weight:700;background:#e2e8f0}.monthly-billing-table th:nth-child(9),.monthly-billing-table th:nth-child(10),.monthly-billing-table th:nth-child(11),.monthly-billing-table th:nth-child(12),.monthly-billing-table td:nth-child(9),.monthly-billing-table td:nth-child(10),.monthly-billing-table td:nth-child(11),.monthly-billing-table td:nth-child(12){background:#fef9c3}.anomaly-cell{font-weight:600}.anomaly-cell.is-ok{color:#14532d;background:#ecfdf3}.anomaly-cell.is-anomaly{color:#b91c1c;background:#fee2e2}.combination-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;background:#f8fafc}.combination-list li>div{display:flex;align-items:baseline;gap:8px;min-width:0}.combination-id{font-weight:600;color:#0f172a}.stock-pill{border-radius:999px;font-size:12px;padding:4px 8px;white-space:nowrap}.stock-group{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.stock-pill.in{background:#dcfce7;color:#166534}.stock-pill.out{background:#fee2e2;color:#991b1b}.chat-form{margin-top:12px;display:grid;grid-template-columns:1fr auto;gap:10px}.chat-form input,.chat-form button{border-radius:10px;border:1px solid #94a3b8;padding:10px;font-size:16px}.chat-form button{background:#0284c7;color:#fff;border-color:#0284c7;cursor:pointer}.chat-form button:disabled{opacity:.7;cursor:not-allowed}@media (max-width: 680px){.app-shell{padding:12px}.session-bar{flex-direction:column;align-items:stretch}.dashboard-grid{grid-template-columns:1fr}.block-lg{grid-column:auto;grid-row:auto}.bubble{max-width:100%}.combination-list li{align-items:flex-start;flex-direction:column}.stock-group{justify-content:flex-start}.stock-table{min-width:480px}.chat-form{grid-template-columns:1fr}}
