:root{--bg: #f6f7f9;--surface: #ffffff;--border: #e5e7eb;--text: #111827;--muted: #6b7280;--primary: #111827;--primary-hover: #1f2937;--warn-bg: #fef3c7;--warn-text: #92400e;--danger-bg: #fee2e2;--danger-text: #991b1b;--success-bg: #dcfce7;--success-text: #166534;--entry: #2563eb;--exit: #dc2626}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);font-size:14px}.login-screen{min-height:100vh;display:grid;place-items:center;background:linear-gradient(180deg,#f6f7f9,#e7eaee);padding:1rem}.login-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:2.5rem 2rem;width:100%;max-width:360px;text-align:center;box-shadow:0 4px 20px #0000000a}.login-card h1{margin:0 0 .25rem;font-size:1.5rem}.login-google{margin:1.5rem 0 .5rem;display:flex;justify-content:center}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-header{background:var(--surface);border-bottom:1px solid var(--border);padding:.75rem 1.5rem;display:flex;align-items:center;gap:2rem;flex-wrap:wrap}.brand{font-weight:600}.nav{display:flex;gap:.25rem;flex:1;flex-wrap:wrap}.nav a{text-decoration:none;color:var(--muted);padding:.4rem .8rem;border-radius:6px;font-weight:500}.nav a:hover{background:var(--bg);color:var(--text)}.nav a.active{background:var(--text);color:var(--surface)}.user-box{display:flex;align-items:center;gap:.75rem}.app-main{padding:1.5rem;max-width:1400px;width:100%;margin:0 auto}.page-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:1.25rem;gap:1rem}.page-header h2{margin:0 0 .25rem;font-size:1.35rem}.filters{display:flex;gap:1rem;flex-wrap:wrap;background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.75rem 1rem;margin-bottom:1rem}.filters label{display:flex;flex-direction:column;gap:.25rem;font-size:.8rem;color:var(--muted)}.filters input,.filters select{padding:.4rem .6rem;border:1px solid var(--border);border-radius:6px;font-size:.9rem;background:var(--surface);min-width:180px}.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin-bottom:1rem}.kpi{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.85rem 1rem}.kpi-label{color:var(--muted);font-size:.8rem}.kpi-value{font-size:1.5rem;font-weight:600;margin-top:.25rem}.kpi-value.warn{color:var(--warn-text)}.table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:8px;overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:.6rem .85rem;text-align:left;border-bottom:1px solid var(--border)}th{font-weight:600;font-size:.78rem;text-transform:uppercase;letter-spacing:.03em;color:var(--muted);background:#fafbfc}tr:last-child td{border-bottom:none}.num{text-align:right;font-variant-numeric:tabular-nums}.empty{text-align:center;color:var(--muted);padding:2rem}.row-warn{background:#fff8eb}.row-warn td{color:var(--warn-text)}.row-inactive td{color:var(--muted)}.badge{display:inline-block;padding:.15rem .55rem;border-radius:999px;font-size:.75rem;font-weight:600}.badge.entry{background:#dbeafe;color:var(--entry)}.badge.exit{background:#fee2e2;color:var(--exit)}.form-card{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1.25rem;max-width:640px;display:flex;flex-direction:column;gap:1rem}.form-card label{display:flex;flex-direction:column;gap:.3rem;font-weight:500;font-size:.9rem}.form-card input,.form-card select,.form-card textarea{padding:.5rem .65rem;border:1px solid var(--border);border-radius:6px;font-size:.95rem;font-family:inherit;background:var(--surface)}.form-card textarea{resize:vertical}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.computed{padding:.5rem;background:var(--bg);border-radius:6px;display:flex;flex-direction:column;justify-content:center}.computed .big{font-size:1.5rem;font-weight:600}.actions{display:flex;justify-content:flex-end;gap:.5rem}.btn{padding:.5rem 1rem;border:1px solid var(--border);background:var(--surface);border-radius:6px;font-size:.9rem;cursor:pointer;font-weight:500}.btn:hover{background:var(--bg)}.btn.primary{background:var(--primary);color:var(--surface);border-color:var(--primary)}.btn.primary:hover{background:var(--primary-hover)}.btn:disabled{opacity:.5;cursor:not-allowed}.link{background:none;border:none;color:var(--entry);cursor:pointer;font-size:.85rem;padding:.2rem .4rem;font-family:inherit}.link:hover{text-decoration:underline}.error{background:var(--danger-bg);color:var(--danger-text);padding:.6rem .85rem;border-radius:6px;font-size:.9rem}.success{background:var(--success-bg);color:var(--success-text);padding:.6rem .85rem;border-radius:6px;font-size:.9rem}.muted{color:var(--muted)}.small{font-size:.8rem}.loading{padding:2rem;text-align:center;color:var(--muted)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000059;display:grid;place-items:center;padding:1rem;z-index:50}.modal{background:var(--surface);border-radius:12px;padding:1.5rem;width:100%;max-width:560px;max-height:90vh;overflow-y:auto}.modal h3{margin-top:0}.modal form{display:flex;flex-direction:column;gap:.85rem}.modal label{display:flex;flex-direction:column;gap:.3rem;font-weight:500;font-size:.9rem}.modal input,.modal select,.modal textarea{padding:.45rem .6rem;border:1px solid var(--border);border-radius:6px;font-size:.95rem;font-family:inherit}.row-inline{display:flex;gap:.5rem;align-items:center}.row-inline select{flex:1}.new-supplier{background:var(--bg);border-radius:6px;padding:.75rem;display:flex;flex-direction:column;gap:.5rem}.product-search{position:relative}.product-search input{width:100%;padding:.5rem .65rem;border:1px solid var(--border);border-radius:6px;font-size:.95rem}.product-search-list{position:absolute;top:100%;left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:6px;margin-top:2px;max-height:260px;overflow-y:auto;z-index:10;box-shadow:0 4px 12px #00000014}.product-search-item{display:block;width:100%;text-align:left;padding:.6rem .75rem;border:none;background:none;border-bottom:1px solid var(--border);cursor:pointer;font-family:inherit}.product-search-item:last-child{border-bottom:none}.product-search-item:hover{background:var(--bg)}.padded{padding:.75rem}.product-selected{display:flex;justify-content:space-between;align-items:center;padding:.65rem .85rem;background:var(--bg);border-radius:6px;border:1px solid var(--border)}
