:root{color:#1c2430;background:#f3f5f8;font-family:Segoe UI,system-ui,sans-serif;line-height:1.45}*{box-sizing:border-box}body{margin:0}.app-shell{display:grid;grid-template-columns:68px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;z-index:30;justify-self:start;width:68px;height:100vh;overflow:visible}.sidebar-panel{width:68px;height:100vh;overflow:hidden;background:#12324d;color:#f4f7fb;padding:16px 8px;transition:width .16s ease,box-shadow .16s ease}.sidebar:hover .sidebar-panel{width:312px;overflow-x:hidden;overflow-y:auto;box-shadow:12px 0 28px #08142047}.brand{display:flex;align-items:center;gap:10px;min-height:32px;font-size:18px;font-weight:650;padding:0 6px 18px;white-space:nowrap}.brand-name,.menu-label{overflow:hidden;white-space:nowrap}.brand-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:#1d6fad;font-size:16px}.menu{display:flex;flex-direction:column;gap:4px}.menu-group{display:flex;flex-direction:column;gap:2px;margin-top:8px}.menu-group-label{display:flex;align-items:center;gap:8px;width:100%;min-height:40px;margin:0;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:#e7eef5;font:inherit;font-size:14px;font-weight:600;text-align:left;cursor:pointer}.menu-group-label.active{background:#1d6fadb8;color:#fff}.menu-group-label:hover{background:#ffffff14}.menu-group-label.active:hover{background:#1d6fad;color:#fff}.menu-chevron{width:7px;height:7px;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translate(-1px,-1px);flex:none}.menu-group-label[aria-expanded=false] .menu-chevron{transform:rotate(-45deg) translate(-1px)}.menu-icon{width:1.4em;flex:none;text-align:center;font-size:16px;line-height:1;text-transform:none}.menu-link{display:flex;align-items:center;gap:8px;padding:8px 10px;border-radius:8px;color:#e7eef5;text-decoration:none}.menu-link-child{padding-left:36px;font-size:14px}.sidebar:not(:hover) .menu-link-child,.sidebar:not(:hover) .menu-chevron,.sidebar:not(:hover) .menu-label,.sidebar:not(:hover) .brand-name{display:none}.menu-link:hover{background:#ffffff14}.menu-link.active{background:#1d6fad;color:#fff}.workspace{display:flex;flex-direction:column;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;min-height:56px;padding:8px 24px;background:#fff;border-bottom:1px solid #e2e8f0}.topbar-actions{display:flex;gap:8px;align-items:center}.topbar-meta{display:flex;align-items:center;gap:18px;margin-left:16px}.last-update{margin:0;text-align:right;font-size:11px;font-weight:400;line-height:1.2;color:#94a3b8}.last-update span{display:inline;margin-left:.35em;color:#94a3b8;font-weight:500}.catalog-search{position:relative;min-width:320px;max-width:520px}.catalog-search .search-wrap{display:flex;width:100%}.catalog-search input{width:100%;min-width:280px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.catalog-list{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;max-height:280px;margin:0;padding:4px;overflow:auto;list-style:none;background:#fff;border:1px solid #cbd5e1;border-radius:8px;box-shadow:0 8px 24px #0f172a1f}.catalog-list button{display:block;width:100%;padding:6px 8px;border:0;border-radius:6px;background:transparent;text-align:left;cursor:pointer;font:inherit}.catalog-list button:hover{background:#e8f1f8}.catalog-empty{padding:6px 8px;color:#526277;font-size:13px}.status{display:flex;align-items:center;gap:8px;margin:0;font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#94a3b8}.status-degraded .status-dot,.status-error .status-dot{background:#b42318}.content{padding:28px 32px}.page h1{margin:0 0 16px;font-size:28px;font-weight:650}.card{max-width:680px;padding:18px 20px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.card p{margin:0;color:#3d4b5c}.hint{margin:0 0 8px;color:#5c6b7a;font-size:13px}.banner{margin:0 0 16px;padding:12px 14px;border-radius:10px}.banner-error{background:#fef2f2;color:#b42318}.kpi-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.kpi{padding:16px 18px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;border-top:4px solid #1d6fad}.kpi-alert{border-top-color:#b42318}.kpi-warn{border-top-color:#b45309}.kpi-value{margin:0;font-size:26px;font-weight:650}.kpi-label{margin:6px 0 0;color:#5c6b7a;font-size:13px}.panel{margin-top:16px;padding:16px 18px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.panel h2{margin:0;font-size:18px}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.button{border:1px solid #cbd5e1;background:#fff;border-radius:8px;padding:6px 10px;cursor:pointer}.button:disabled{opacity:.45;cursor:default}a.button{display:inline-block;text-decoration:none;color:inherit}.button-primary{background:#1d6fad;border-color:#185f96;color:#fff}.button-quiet{border-color:transparent;background:transparent;color:#94a3b8;padding:2px 6px;font-size:16px;line-height:1}.button-quiet:hover:not(:disabled){background:#f1f5f9;color:#475569}.button-block{width:100%;padding:8px 12px}.topbar-user{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}.user-name{font-size:13px;font-weight:650}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:#12324d}.login-card{width:min(400px,100%);padding:28px 24px;background:#fff;border-radius:16px}.login-brand{color:#12324d;padding:0 0 4px}.login-card h1,.login-form h2{margin:8px 0 4px;font-size:24px;font-weight:650}.login-form h2{font-size:18px}.login-lead{margin:0 0 16px;color:#526277;font-size:14px}.login-wait{margin:0;color:#f4f7fb}.login-form{display:flex;flex-direction:column;gap:4px;margin-bottom:16px}.field{display:flex;flex-direction:column;gap:4px;margin-bottom:12px;font-size:13px;color:#3d4b5c}.field input,.field select{padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;font:inherit}.field input:focus,.field select:focus{outline:2px solid #1d6fad;border-color:#1d6fad}.banner-ok{background:#ecfdf3;color:#166534}.row-inactive td{color:#64748b}.card .banner,.card .login-lead{margin-bottom:12px}.login-form .filters .field{flex:1;min-width:180px}.field input,.field select{width:100%}.table-scroll{overflow:auto;max-height:520px}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th,.data-table td{padding:8px 10px;border-bottom:1px solid #e2e8f0;text-align:left;white-space:nowrap}.data-table th{position:sticky;top:0;background:#f8fafc}.sort-button{padding:0;border:0;background:transparent;font:inherit;font-weight:650;cursor:pointer}.sort-button-static{cursor:default}.tip{border-bottom:1px dotted currentColor;cursor:help}.tip-box{position:fixed;z-index:80;width:280px;padding:10px 12px;border:1px solid #d7dee7;border-radius:8px;background:#fff;color:#1c2430;font:400 13px/1.45 Segoe UI,system-ui,sans-serif;text-align:left;white-space:normal;box-shadow:0 8px 24px #0f172a29;pointer-events:none}.col-filter{display:block;width:100%;min-width:72px;margin-top:4px;padding:2px 4px;border:1px solid #d7dee7;border-radius:4px;background:#fff;font:inherit;font-size:12px;font-weight:400}.search-wrap{display:inline-flex;align-items:center}.data-table-clickable tbody tr{cursor:pointer}.product-link{color:#1d6fad;font-weight:650}.row-selected{background:#e8f2fb}.row-strong td:first-child{font-weight:700}.alerta-vencida{background:#fecaca}.alerta-sin_vencimiento{background:#fef08a}.alerta-ok{background:#dcfce7}.cell-low{background:#ffc8c8}.cell-mid{background:#ffebc8}.cell-high{background:#c8ffc8}.cell-higher{background:#64ff64}.cell-bold{font-weight:700}.cell-comprar{background:#ffebc8;color:#15803d;font-weight:700}.cell-vender{background:#c8ebff;color:#dc2626;font-weight:700}.cell-ok{background:#c8ffc8;font-weight:700}.turnover-legend{margin:0 0 12px;font-size:13px}.turnover-legend .legend-label{font-weight:650;margin-right:8px}.legend-item{display:inline-block;margin-right:8px;padding:2px 10px;border-radius:999px;color:#fff}.legend-a{background:#1d4ed8}.legend-b{background:#16a34a}.legend-c{background:#dc2626}.pager{display:flex;gap:8px;align-items:center;margin-top:10px;flex-wrap:wrap}.modal-backdrop{position:fixed;inset:0;z-index:40;display:flex;align-items:flex-start;justify-content:center;padding:40px 16px;overflow:auto;background:#0f172a73}.modal-card{width:min(1100px,100%);background:#fff;border-radius:12px;padding:16px 18px 20px;box-shadow:0 16px 48px #0f172a33}.modal-card-narrow{width:min(440px,100%)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.modal-head h2{margin:0}.btn-limpiar{background:#fde8e8;border-color:#f9a8a8;color:#b91c1c}.btn-prepedido{background:#dcfce7;border-color:#86efac;color:#166534}.btn-borrador{background:#e0f2fe;border-color:#7dd3fc;color:#0369a1}.btn-hacer{background:#1d4ed8;border-color:#1e40af;color:#fff}.bars{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:8px}.bars li{display:grid;grid-template-columns:160px 1fr 72px;gap:8px;align-items:center;font-size:13px}.bar-track{height:10px;background:#e8eef5;border-radius:999px;overflow:hidden}.bar-fill{display:block;height:100%;background:#1d6fad}.bar-value{text-align:right;color:#3d4b5c}.filters{display:flex;flex-wrap:wrap;gap:12px;margin:12px 0}.filters label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:#3d4b5c}.filters select{min-width:180px;padding:6px 8px;border:1px solid #cbd5e1;border-radius:8px;background:#fff}.draft-list{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}@media(max-width:800px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;width:auto;height:auto;overflow:visible}.sidebar-panel,.sidebar:hover .sidebar-panel{position:static;width:auto;height:auto;overflow:visible;box-shadow:none;padding-bottom:8px}.sidebar:not(:hover) .menu-link-child{display:flex}.sidebar:not(:hover) .menu-chevron,.sidebar:not(:hover) .menu-label,.sidebar:not(:hover) .brand-name{display:unset}.menu{display:flex}.content{padding:20px 16px}.kpi-grid{grid-template-columns:1fr}.panel-heading{flex-direction:column;align-items:flex-start}}
