*,:before,:after{box-sizing:border-box}:root{--bg:#f1f5f9;--surface:#fff;--surface-2:#f8fafc;--surface-3:#f1f5f9;--border:#e2e8f0;--border-strong:#cbd5e1;--fg:#1e293b;--fg-muted:#64748b;--fg-subtle:#94a3b8;--accent:#2563eb;--accent-fg:#fff;--accent-bg:#eff6ff;--ok-bg:#dcfce7;--ok-fg:#166534;--warn-bg:#fef3c7;--warn-fg:#92400e;--danger-bg:#fef2f2;--danger-fg:#991b1b;--info-bg:#eff6ff;--info-fg:#1d4ed8}[data-theme=dark]{--bg:#111827;--surface:#1f2937;--surface-2:#111827;--surface-3:#374151;--border:#374151;--border-strong:#4b5563;--fg:#e5e7eb;--fg-muted:#9ca3af;--fg-subtle:#9ca3af;--accent:#3b82f6;--accent-fg:#fff;--accent-bg:#1e3a8a;--ok-bg:#14532d;--ok-fg:#86efac;--warn-bg:#78350f;--warn-fg:#fcd34d;--danger-bg:#7f1d1d;--danger-fg:#fca5a5;--info-bg:#1e3a8a;--info-fg:#93c5fd}html,body{background:var(--bg);color:var(--fg);-webkit-font-smoothing:antialiased;margin:0;padding:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow-x:hidden}button{font-family:inherit}.stock-bajo{color:#dc2626;font-weight:700}@keyframes mtPulse{0%,to{box-shadow:0 0 #d9770673}50%{box-shadow:0 0 0 6px #d9770600}}.alerta-seguimiento{animation:1.6s ease-in-out infinite mtPulse;border-color:var(--warn-fg)!important}@media (prefers-reduced-motion:reduce){.alerta-seguimiento{animation:none}}input,textarea,select{font-family:inherit}main input:not([type=checkbox]):not([type=radio]),main textarea,main select{background-color:var(--surface);color:var(--fg);border-color:var(--border)}main input:not([type=checkbox]):not([type=radio]):disabled,main textarea:disabled,main select:disabled,main input[readonly],main textarea[readonly]{background-color:var(--surface-3);color:var(--fg-muted)}main input::placeholder,main textarea::placeholder{color:var(--fg-subtle)}main select option{background-color:var(--surface);color:var(--fg)}input[type=text],input[type=search],textarea{text-transform:uppercase}.theme-control{color:#fff;white-space:nowrap;align-items:center;gap:5px;font-size:12px;display:inline-flex}.theme-control select{appearance:none;color:#fff;cursor:pointer;background:#fff3;border:1px solid #ffffff73;border-radius:6px;padding:6px 24px 6px 8px;font-size:12px}.theme-control option{color:#1e293b;background:#fff}.app-header{color:#fff;z-index:100;background:#ff9a68;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;min-height:58px;padding:0 16px;display:flex;position:sticky;top:0;box-shadow:0 2px 12px #00000040}.header-identidad{flex:240px;align-items:center;gap:12px;min-width:0;display:flex}.header-marca{color:#fff;cursor:pointer;background:0 0;border:none;flex-shrink:0;align-items:center;padding:0;display:flex}.header-logo{object-fit:contain;border-radius:4px;max-width:120px;height:30px;display:block}.header-texto{flex-direction:column;align-items:flex-start;min-width:0;max-width:100%;display:flex}.header-titulo{letter-spacing:-.2px;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:15px;font-weight:700;line-height:1.3;overflow:hidden}.header-empresa{color:#ffffffd9;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:11px;font-weight:500;overflow:hidden}.header-acciones{flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;align-items:center;gap:8px;margin-left:auto;display:flex}[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;color:var(--fg);background:var(--bg)!important}[data-theme=dark] .app-header{box-shadow:0 2px 12px #0000008c!important}[data-theme=dark] .app-main,[data-theme=dark] body{color:var(--fg)}[data-theme=dark] main th{background:var(--surface-2)!important;color:var(--fg-muted)!important;border-color:var(--border)!important}[data-theme=dark] main td{border-color:var(--border)!important}[data-theme=dark] main table,[data-theme=dark] main tbody,[data-theme=dark] main tr{color:var(--fg);background-color:#0000}[data-theme=dark] .theme-control select{background:#374151}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}.overflow-x-auto{-webkit-overflow-scrolling:touch;overflow-x:auto}.form-grid{grid-template-columns:1fr 1fr;gap:16px;display:grid}.op-card{display:flex}.op-panel{width:280px;min-width:280px}@media (max-width:640px){.form-grid{grid-template-columns:1fr}.hide-sm{display:none!important}.op-card{flex-direction:column}.op-panel{width:100%;min-width:100%}.app-header{gap:6px 8px;min-height:0;padding:6px 10px}.header-identidad{flex:100%;gap:8px}.header-logo{max-width:84px;height:24px}.header-titulo{-webkit-line-clamp:2;white-space:normal;letter-spacing:0;-webkit-box-orient:vertical;font-size:12.5px;line-height:1.25;display:-webkit-box}.header-acciones{flex:100%;justify-content:flex-start;gap:6px}.header-acciones>button{padding:5px 9px!important;font-size:11px!important}.theme-control select{padding:5px 20px 5px 7px;font-size:11px}}@media print{@page{size:A4;margin:12mm}html,body{background:#fff!important;height:auto!important;overflow:visible!important}body.imprimiendo>:not(.print-root){display:none!important}.print-root{background:#fff!important;min-height:0!important;padding:0!important;position:static!important;inset:auto!important;overflow:visible!important}.print-root .no-print{display:none!important}.print-doc{width:100%!important;max-width:none!important;box-shadow:none!important;border-radius:0!important;margin:0!important;padding:0!important}.print-doc table{page-break-inside:auto}.print-doc tr{page-break-inside:avoid}}
