*,*:before,*:after{box-sizing:border-box}html{font-size:16px;scroll-behavior:smooth}body{margin:0;font-family:Segoe UI,system-ui,-apple-system,sans-serif;line-height:1.5;color:#1a1a2e;background:#f0f2f5;min-height:100vh;-webkit-font-smoothing:antialiased}#root{min-height:100vh}input,select,button,textarea{font-family:inherit;font-size:1rem}button{cursor:pointer}input,select,textarea{padding:.5rem .75rem;border:1px solid #d0d5dd;border-radius:8px;background:#fff}input:focus,select:focus,textarea:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}label{font-weight:500;color:#374151}.app{max-width:1200px;margin:0 auto;padding:1.5rem}.header{background:linear-gradient(135deg,#1e3a5f,#0f172a);color:#fff;padding:1.25rem 1.5rem;border-radius:12px;margin-bottom:1.5rem;box-shadow:0 4px 14px #0000001f}.header h1{margin:0 0 .25rem;font-size:1.5rem;font-weight:700}.header p{margin:0;opacity:.9;font-size:.9rem}.tabs{display:flex;gap:.25rem;margin-bottom:1.5rem;flex-wrap:wrap}.tab{padding:.65rem 1.25rem;border:none;border-radius:8px;background:#fff;color:#475569;font-weight:500;transition:all .2s;box-shadow:0 1px 3px #0000000f}.tab:hover{background:#f1f5f9;color:#1e293b}.tab.active{background:#1e3a5f;color:#fff;box-shadow:0 2px 8px #1e3a5f59}.panel{display:none}.panel.active{display:block}.card{background:#fff;border-radius:12px;padding:1.5rem;margin-bottom:1.5rem;box-shadow:0 1px 4px #0000000f;border:1px solid #e5e7eb}.card h2{margin:0 0 1rem;font-size:1.15rem;font-weight:600;color:#1e293b;padding-bottom:.5rem;border-bottom:2px solid #e2e8f0}.filter-bar{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin-bottom:1rem}.filter-label{font-size:.9rem;color:#475569;margin-right:.25rem}.filter-btn{padding:.4rem .9rem;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#475569;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .2s}.filter-btn:hover{background:#f1f5f9;border-color:#cbd5e1}.filter-btn.active{background:#1e3a5f;color:#fff;border-color:#1e3a5f}.form-hint{font-size:.8rem;color:#64748b;margin-top:.2rem}.form-hint.success-hint{color:#166534;font-weight:500}.form-hint.error-hint{color:#b91c1c;font-weight:500}.form-note{font-size:.8rem;color:#64748b;margin:.75rem 0 0}.cantidad-actual{margin:0;padding:.5rem .75rem;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;color:#166534;font-size:1rem}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;align-items:end;margin-bottom:1rem}.form-group{display:flex;flex-direction:column;gap:.35rem}.form-group label{font-size:.85rem}.btn{padding:.6rem 1.25rem;border:none;border-radius:8px;font-weight:600;transition:all .2s}.btn-primary{background:#1e3a5f;color:#fff}.btn-primary:hover{background:#163352;filter:brightness(1.05)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{padding:.65rem .75rem;text-align:left;border-bottom:1px solid #e5e7eb}th{background:#f8fafc;font-weight:600;color:#475569}tr:hover{background:#f8fafc}.msg{padding:.75rem 1rem;border-radius:8px;margin-bottom:1rem;font-size:.9rem}.msg.error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.msg.success{background:#f0fdf4;color:#166534;border:1px solid #bbf7d0}.msg.info{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.loading{text-align:center;padding:2rem;color:#64748b}.spinner{display:inline-block;width:24px;height:24px;border:3px solid #e2e8f0;border-top-color:#1e3a5f;border-radius:50%;animation:spin .8s linear infinite;vertical-align:middle;margin-right:.5rem}@keyframes spin{to{transform:rotate(360deg)}}.empty{text-align:center;padding:2rem;color:#64748b;font-size:.95rem}select option.option-has-stock{font-weight:600;color:#166534}.modal-overlay{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;z-index:1000;padding:1rem;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal-box{background:#fff;border-radius:12px;padding:1.75rem;max-width:380px;width:100%;box-shadow:0 20px 50px #0003;text-align:center;animation:slideUp .25s ease}@keyframes slideUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.modal-icon{width:56px;height:56px;margin:0 auto 1rem;background:#166534;color:#fff;font-size:1.75rem;font-weight:700;line-height:56px;border-radius:50%}.modal-title{margin:0 0 .5rem;font-size:1.25rem;font-weight:600;color:#1e293b}.modal-message{margin:0 0 1.25rem;color:#475569;font-size:.95rem;line-height:1.5}.modal-btn{min-width:120px}
