html{height:100%;overflow:hidden}*{box-sizing:border-box}body.erp-body{margin:0;width:100%;height:100%;overflow:hidden;font-family:Arial,sans-serif;background:#f5f7fb;color:#1f2937}.erp-shell{display:grid;grid-template-columns:260px minmax(0,1fr);width:100%;height:100dvh;overflow:hidden;background:#f3f5f9}.erp-sidebar{flex:0 0 260px;width:260px;height:100vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(229,231,235,.22) #111827;background:#111827;color:#fff;padding:24px 18px}.erp-sidebar::-webkit-scrollbar{width:7px;background:#111827}.erp-sidebar::-webkit-scrollbar-track,.erp-sidebar::-webkit-scrollbar-track-piece,.erp-sidebar::-webkit-scrollbar-corner{background:#111827}.erp-sidebar::-webkit-scrollbar-thumb{border:2px solid #111827;border-radius:999px;background:#e5e7eb38}.erp-sidebar::-webkit-scrollbar-thumb:hover{background:#e5e7eb57}.erp-sidebar::-webkit-scrollbar-button{width:0;height:0;display:none;background:#111827}.erp-sidebar__icons{display:none}.erp-sidebar__brand{display:flex;gap:15px;margin:0;padding:5px 15px}.erp-sidebar__brand h2{margin:0;font-size:22px}.erp-sidebar__brand span{display:block;margin-top:4px;color:#9ca3af;font-size:14px}.erp-sidebar__nav{margin-top:35px;display:flex;flex-direction:column;gap:8px}.erp-sidebar__section{margin-top:18px;margin-bottom:6px;font-size:12px;text-transform:uppercase;color:#9ca3af;letter-spacing:.08em}.erp-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;text-decoration:none;color:#e5e7eb;transition:.2s ease}.erp-link__icon{width:19px;height:19px;flex:0 0 19px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none;opacity:.82}.erp-link:hover{background:#1f2937}.erp-link.active{background:#6b1716;color:#fff}.erp-link.active .erp-link__icon{opacity:1}.erp-link.disabled{opacity:.45;pointer-events:none}.erp-sidebar-menu{display:grid;gap:6px}.erp-sidebar-menu summary.erp-link{list-style:none;cursor:pointer}.erp-sidebar-menu summary.erp-link::-webkit-details-marker{display:none}.erp-sidebar-menu__chevron{width:8px;height:8px;margin-left:auto;border-right:2px solid currentColor;border-bottom:2px solid currentColor;opacity:.78;transform:rotate(-45deg);transition:transform .18s ease}.erp-sidebar-menu[open] .erp-sidebar-menu__chevron{transform:rotate(45deg)}.erp-sidebar-subnav{display:grid;gap:5px;margin:0 0 2px 29px;padding:4px 0 4px 12px;border-left:1px solid rgba(229,231,235,.18)}.erp-sidebar-sublink{display:flex;align-items:center;min-height:34px;padding:7px 10px;border-radius:8px;color:#cbd5e1;font-size:13px;font-weight:700;text-decoration:none;transition:background .18s ease,color .18s ease}.erp-sidebar-sublink:hover{background:#1f2937;color:#fff}.erp-sidebar-sublink.active{background:#8d1c1a57;color:#fff}.erp-main{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;height:100dvh;overflow:hidden}.erp-navbar{position:relative;grid-row:1;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:18px;min-height:82px;padding:16px 28px;border-bottom:1px solid rgba(148,163,184,.18);background:linear-gradient(90deg,rgba(141,28,26,.26),rgba(255,255,255,.03) 38%,transparent 68%),linear-gradient(135deg,#202a3a,#29364a 48%,#382b2d);color:#e5f0ff;box-shadow:0 14px 30px #0f172a3d}.erp-navbar:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#8d1c1a,#38bdf8,#22c55e,#8d1c1a)}.erp-navbar__left{display:flex;align-items:center;gap:14px;min-width:0}.erp-navbar__signal{display:inline-flex;align-items:center;min-height:34px;gap:8px;padding:7px 12px;border:1px solid rgba(56,189,248,.22);border-radius:999px;background:#02061785;color:#93c5fd;font-size:12px;font-weight:900;text-transform:uppercase;white-space:nowrap}.erp-navbar__signal:before{content:"";width:8px;height:8px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 5px #22c55e1f,0 0 18px #22c55eb8}.erp-navbar__title{margin:0;color:#fff;font-size:22px;line-height:1.05}.erp-navbar__subtitle{margin:4px 0 0;color:#9caec7;font-size:14px;font-weight:700}.erp-navbar__right{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.erp-user-menu{position:relative;padding-bottom:8px;margin-bottom:-8px}.erp-userbox{display:flex;align-items:center;gap:10px;min-width:176px;min-height:44px;padding:5px 8px;border:0;border-radius:7px;background:transparent;color:#fff;cursor:pointer;font:inherit;text-align:left;transition:background .18s ease}.erp-userbox:hover,.erp-userbox.active,.erp-user-menu:focus-within .erp-userbox{background:#ffffff14}.erp-userbox__icon{width:25px;height:25px;flex:0 0 25px;fill:none;stroke:#dbeafe;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.erp-userbox__details{display:grid;flex:1;gap:2px;min-width:0}.erp-userbox__details strong{overflow:hidden;color:#fff;font-size:12px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.erp-userbox__details span{color:#aebed2;font-size:10px;font-weight:400;text-transform:uppercase}.erp-userbox__chevron{width:7px;height:7px;margin:0 4px 3px 2px;border-right:1px solid #aebed2;border-bottom:1px solid #aebed2;transform:rotate(45deg);transition:transform .18s ease}.erp-user-menu:hover .erp-userbox__chevron,.erp-user-menu:focus-within .erp-userbox__chevron{transform:translateY(3px) rotate(225deg)}.erp-user-menu__dropdown{position:absolute;z-index:30;top:calc(100% + 6px);right:0;width:250px;padding:7px;border:1px solid #dce3ec;border-radius:8px;background:#fff;box-shadow:0 14px 30px #0f172a33;opacity:0;pointer-events:none;transform:translateY(-5px);transition:opacity .16s ease,transform .16s ease}.erp-user-menu__dropdown:before{position:absolute;right:0;bottom:100%;width:100%;height:14px;content:""}.erp-user-menu:hover .erp-user-menu__dropdown,.erp-user-menu:focus-within .erp-user-menu__dropdown{opacity:1;pointer-events:auto;transform:translateY(0)}.erp-user-menu__label{display:block;padding:6px 8px 7px;color:#8491a3;font-size:10px;font-weight:400;letter-spacing:0;text-transform:uppercase}.erp-user-menu__link{display:flex;align-items:center;gap:10px;padding:10px;border-radius:6px;color:#334155;text-decoration:none;transition:background .16s ease,color .16s ease}.erp-user-menu__link:hover,.erp-user-menu__link:focus{background:#f3f5f8;color:#8d1c1a;outline:none}.erp-user-menu__link svg{width:20px;height:20px;flex:0 0 20px;fill:none;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.7}.erp-user-menu__link span{display:grid;gap:3px}.erp-user-menu__link strong{font-size:12px;font-weight:500}.erp-user-menu__link small{color:#8491a3;font-size:10px;font-weight:400}.erp-content{grid-row:2;min-height:0;max-height:100%;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;padding:28px}.erp-page-header h2{margin:0 0 8px}.erp-page-header p{margin:0;color:#6b7280}.erp-index-hero{margin-bottom:24px;padding:22px 24px;border-left:6px solid #6b1716;border-radius:14px;background:#fff;box-shadow:0 16px 36px #11182724}.erp-index-hero h2{margin:0 0 6px;color:#58595a;font-size:24px;font-weight:700}.erp-index-hero p{color:#8d1c1a;font-size:14px;font-weight:700}.erp-index-hero .erp-btn--primary{background:#8d1c1a}.erp-index-hero .erp-btn--secondary{background:#e5e7eb;color:#111827}.erp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin-top:24px}.erp-card{background:#fff;border-radius:14px;padding:20px;border:1px solid #e5e7eb}.erp-card h3{margin-top:0;margin-bottom:10px;font-size:16px}.erp-card p{margin:0;color:#4b5563}.erp-alert{margin-bottom:18px;padding:14px 16px;border-radius:10px}.erp-alert--success{background:#e8f5e9;color:#1b5e20}.erp-alert--error{background:#ffebee;color:#b71c1c}.erp-btn{border:none;border-radius:10px;padding:10px 14px;cursor:pointer;font-size:14px}.erp-btn--danger{background:linear-gradient(135deg,#8d1c1a,#dc2626);color:#fff;box-shadow:0 12px 26px #8d1c1a38}.erp-list{margin:12px 0 0;padding-left:18px;color:#4b5563}.erp-page-header--between{display:flex;justify-content:space-between;align-items:center;gap:16px}.erp-form-group{margin-bottom:18px}.erp-label{display:block;margin-bottom:8px;font-weight:600}.erp-input{width:100%;padding:12px 14px;border:1px solid #d1d5db;border-radius:10px;font-size:14px;font-family:inherit;font-weight:inherit;background:#fff}.erp-input:focus{outline:none;border-color:#2563eb}.erp-form-actions{display:flex;gap:12px;margin-top:24px}.erp-btn--primary{background:#2563eb;color:#fff;text-decoration:none}.erp-btn--secondary{background:#e5e7eb;color:#111827;text-decoration:none}.erp-btn--warning{background:#f59e0b;color:#fff;text-decoration:none}.erp-table-wrap{overflow-x:auto}.erp-table{width:100%;border-collapse:collapse;margin-top:8px}.erp-table th,.erp-table td{text-align:left;padding:14px 12px;border-bottom:1px solid #e5e7eb;vertical-align:middle}.erp-table th{background:#f9fafb;font-size:14px;color:#374151}.erp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}@media(max-width:768px){.erp-navbar{align-items:flex-start;flex-direction:column}.erp-navbar__right{justify-content:flex-start;width:100%}.erp-navbar__signal{display:none}.erp-form-grid{grid-template-columns:1fr}.erp-page-header--between{flex-direction:column;align-items:flex-start}}.erp-actions{display:flex;gap:8px;flex-wrap:wrap}.workflow-page{--workflow-ink: #1d2939;--workflow-muted: #667085;--workflow-accent: #8d1c1a;--workflow-line: #e6eaf0;display:grid;gap:20px;font-family:Segoe UI Variable Text,Segoe UI,Inter,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}.workflow-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;overflow:hidden;padding:28px 30px;border:1px solid #ead9d9;border-radius:20px;background:radial-gradient(circle at 88% 12%,rgba(141,28,26,.16),transparent 25%),linear-gradient(120deg,#fff,#fff9f9 58%,#f8f5f5);box-shadow:0 16px 38px #23181c14}.workflow-hero:after{position:absolute;right:-32px;bottom:-42px;width:180px;height:180px;border:28px solid rgba(141,28,26,.06);border-radius:50%;content:"";pointer-events:none}.workflow-hero__content,.workflow-hero__actions{position:relative;z-index:1}.workflow-eyebrow{display:inline-flex;align-items:center;gap:7px;margin-bottom:8px;color:var(--workflow-accent);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.workflow-eyebrow:before{width:18px;height:2px;border-radius:999px;background:currentColor;content:""}.workflow-hero h2{margin:0;color:var(--workflow-ink);font-size:clamp(24px,3vw,32px);font-weight:600;letter-spacing:-.035em;line-height:1.15}.view-title{display:flex;align-items:center;gap:12px}.view-title__icon{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:36px;height:36px;border:1px solid #efd4d3;border-radius:11px;background:#fff3f3;color:#8d1c1a;box-shadow:0 5px 12px #8d1c1a14}.view-title__icon svg{width:20px;height:20px}.workflow-hero .view-title__icon,.recepcion-hero .view-title__icon{width:38px;height:38px;border-color:#ead1d0;background:#fff7f7}.erp-page-header .view-title__icon{width:34px;height:34px;border-radius:10px}.workflow-hero p{max-width:620px;margin:9px 0 0;color:#5f6877;font-size:14px;font-weight:400;line-height:1.65}.workflow-hero__actions,.workflow-panel__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.workflow-hero__actions .erp-btn,.workflow-panel__actions .erp-btn,.workflow-page .erp-form-actions .erp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:11px;font-weight:650;text-decoration:none;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.workflow-hero__actions .erp-btn--primary,.workflow-page .erp-form-actions .erp-btn--primary{background:linear-gradient(135deg,var(--workflow-accent),#b72f2d);box-shadow:0 10px 20px #8d1c1a2e}.workflow-hero__actions .erp-btn:hover,.workflow-panel__actions .erp-btn:hover,.workflow-page .erp-form-actions .erp-btn:hover{transform:translateY(-2px)}.workflow-metrics,.workflow-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.workflow-metric,.workflow-summary__item{position:relative;min-width:0;overflow:hidden;padding:17px;border:1px solid var(--workflow-line);border-radius:16px;background:#fff;box-shadow:0 10px 24px #1720330d}.workflow-metric:after{position:absolute;right:-16px;bottom:-20px;width:64px;height:64px;border-radius:50%;background:var(--metric-soft, #f6f7f9);content:""}.workflow-metric--total{--metric-color: #275c82;--metric-soft: #eef8ff}.workflow-metric--success{--metric-color: #166534;--metric-soft: #edfcf1}.workflow-metric--danger{--metric-color: #b42318;--metric-soft: #fff1f0}.workflow-metric--quantity{--metric-color: #9a3412;--metric-soft: #fff4ed}.workflow-metric__icon{position:relative;z-index:1;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;margin-bottom:14px;border-radius:13px;background:var(--metric-soft);color:var(--metric-color)}.workflow-metric>span:not(.workflow-metric__icon),.workflow-summary__item>span:first-child{position:relative;z-index:1;display:block;margin-bottom:5px;color:var(--workflow-muted);font-size:11px;font-weight:600;letter-spacing:.035em;text-transform:uppercase}.workflow-metric strong,.workflow-summary__item strong{position:relative;z-index:1;display:block;overflow:hidden;color:var(--workflow-ink);font-size:24px;font-weight:650;letter-spacing:-.035em;line-height:1.18;text-overflow:ellipsis;white-space:nowrap}.workflow-summary__item strong{font-size:14px;font-weight:600;letter-spacing:0}.workflow-panel{overflow:hidden;padding:0;border:1px solid var(--workflow-line);border-radius:18px;background:#fff;box-shadow:0 14px 30px #1720330e}.workflow-panel__header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 22px 18px;border-bottom:1px solid #eef1f5;background:linear-gradient(180deg,#fff,#fcfdff)}.workflow-panel__header h3{margin:0;color:var(--workflow-ink);font-size:17px;font-weight:600;letter-spacing:-.02em}.workflow-panel__header p{margin:6px 0 0;color:var(--workflow-muted);font-size:13px;font-weight:400;line-height:1.55}.workflow-panel__body{padding:22px}.workflow-page .erp-label{margin-bottom:7px;color:#4a5970;font-size:12px;font-weight:600}.workflow-page .erp-input{min-height:44px;border-color:#dbe2eb;border-radius:10px;color:#263346;font-size:14px;font-weight:400;transition:border-color .16s ease,box-shadow .16s ease}.workflow-page .erp-input:hover{border-color:#bdc8d7}.workflow-page .erp-input:focus{border-color:var(--workflow-accent);box-shadow:0 0 0 4px #8d1c1a1a}.workflow-table-wrap{padding:0 10px 10px}.workflow-table{margin:0;border-collapse:separate;border-spacing:0}.workflow-table th,.workflow-table td{border-bottom-color:#edf0f4}.workflow-table th{padding:13px 12px;background:#f8fafc;color:#667085;font-size:10px;font-weight:700;letter-spacing:.065em;text-transform:uppercase}.workflow-table th:first-child{border-radius:10px 0 0 10px}.workflow-table th:last-child{border-radius:0 10px 10px 0}.workflow-table td{padding:15px 12px;color:#485467;font-size:13px;font-weight:400;transition:background-color .16s ease}.workflow-table tbody tr:hover td{background:snow}.workflow-table tbody tr:last-child td{border-bottom:0}.workflow-status,.workflow-pill{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 9px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.02em;white-space:nowrap}.workflow-status:before{width:6px;height:6px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px currentColor;content:"";opacity:.18}.workflow-status.is-success{background:#ecfdf3;color:#067647}.workflow-status.is-danger{background:#fef2f2;color:#b42318}.workflow-status.is-neutral{background:#f2f4f7;color:#667085}.workflow-pill{background:#f1f5f9;color:#475569;font-size:12px;font-weight:650}.workflow-action{display:inline-flex;align-items:center;justify-content:center;min-height:35px;gap:7px;padding:7px 10px;border:1px solid #ecd1d0;border-radius:9px;background:snow;color:var(--workflow-accent);font-size:12px;font-weight:650;text-decoration:none;transition:background .16s ease,border-color .16s ease,transform .16s ease;white-space:nowrap}.workflow-action:hover{border-color:var(--workflow-accent);background:var(--workflow-accent);color:#fff;transform:translateY(-1px)}.workflow-action--neutral{border-color:#d9e1eb;background:#fff;color:#3f5065}.workflow-action--neutral:hover{border-color:#536276;background:#536276}.workflow-note{padding:16px 18px;border:1px solid #efe2c6;border-radius:12px;background:#fffcf5;color:#6f5a2e;font-size:13px;font-weight:400;line-height:1.55}.workflow-empty{display:grid;justify-items:center;gap:9px;padding:42px 20px 46px;color:var(--workflow-muted);text-align:center}.workflow-empty__icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #f2d4d3;border-radius:15px;background:#fff7f7;color:var(--workflow-accent)}.workflow-empty strong{color:var(--workflow-ink);font-size:14px;font-weight:600}.workflow-empty p{max-width:390px;margin:0;color:var(--workflow-muted);font-size:13px;font-weight:400;line-height:1.55}.erp-table-modern{margin-top:0;border-collapse:separate;border-spacing:0}.erp-table-modern thead th{padding:13px 12px;background:#8d1c1a!important;color:#fff9f9!important;border-bottom:0!important;font-size:10px!important;font-weight:700!important;letter-spacing:.075em!important;text-transform:uppercase;text-shadow:0 1px 1px rgba(43,10,10,.18)}.erp-table-modern thead th:first-child{border-radius:10px 0 0 10px}.erp-table-modern thead th:last-child{border-radius:0 10px 10px 0}.erp-table-modern thead th a{color:inherit;text-decoration:none}.erp-table-modern tbody tr:nth-child(odd) td{background:snow}.erp-table-modern tbody tr:nth-child(2n) td{background:#fcf7f7}.erp-table-modern tbody td{border-bottom:1px solid #eee3e3;color:#485467;font-size:13px;font-weight:400;transition:background-color .16s ease,border-color .16s ease}.erp-table-modern tbody tr:hover td{background:#fff0f0!important;border-bottom-color:#e9c9c8}.erp-table-modern tbody tr:last-child td{border-bottom:0}.recepcion-table,.recepcion-detail-table{border-collapse:separate;border-spacing:0}.recepcion-table thead th,.recepcion-detail-table thead th{background:#8d1c1a!important;color:#fff9f9!important;border-bottom:0!important;font-size:10px!important;font-weight:700!important;letter-spacing:.075em!important;text-shadow:0 1px 1px rgba(43,10,10,.18)}.recepcion-table thead th:first-child,.recepcion-detail-table thead th:first-child{border-radius:10px 0 0 10px}.recepcion-table thead th:last-child,.recepcion-detail-table thead th:last-child{border-radius:0 10px 10px 0}.recepcion-table tbody tr:nth-child(odd) td,.recepcion-detail-table tbody tr:nth-child(odd) td{background:snow}.recepcion-table tbody tr:nth-child(2n) td,.recepcion-detail-table tbody tr:nth-child(2n) td{background:#fcf7f7}.recepcion-table tbody td,.recepcion-detail-table tbody td{border-bottom:1px solid #eee3e3}.recepcion-table tbody tr:hover td,.recepcion-detail-table tbody tr:hover td{background:#fff0f0!important;border-bottom-color:#e9c9c8}.recepcion-table tbody tr:last-child td,.recepcion-detail-table tbody tr:last-child td{border-bottom:0}.producto-form-page{max-width:980px}.producto-form-panel{width:100%;max-width:900px}.producto-form-panel .erp-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.producto-form-panel .erp-form-group{margin-bottom:18px}.producto-form-panel .erp-form-actions{align-items:center;gap:10px;margin-top:26px}.producto-form-panel .erp-form-actions .erp-btn{min-height:42px}.compra-form-page>form{display:grid;gap:20px;padding:24px;border:1px solid var(--workflow-line, #e6eaf0);border-radius:18px;background:#fff;box-shadow:0 14px 30px #1720330e}.compra-form-page>form>.erp-card{margin:0!important;border-color:#e6eaf0;border-radius:15px;box-shadow:none}.compra-form-page>form>.erp-form-grid{gap:16px}.compra-form-page>form .erp-form-group{margin-bottom:18px}.compra-form-page>form .erp-label{font-weight:600}.compra-form-page>form #tabla-items{margin-top:0!important}.compra-form-page>form #tabla-items th{font-size:10px;font-weight:700;letter-spacing:.055em}.compra-form-page>form #tabla-items td{font-size:13px}.compra-form-page>form .erp-page-header{margin-bottom:0}@media(max-width:1000px){.workflow-metrics,.workflow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:700px){.workflow-page{gap:14px}.workflow-hero{align-items:flex-start;flex-direction:column;padding:22px 18px;border-radius:16px}.workflow-hero__actions{width:100%}.workflow-hero__actions .erp-btn{flex:1 1 0}.workflow-panel{border-radius:15px}.workflow-panel__header{align-items:flex-start;flex-direction:column;gap:12px;padding:18px}.workflow-panel__body{padding:18px}.workflow-metrics,.workflow-summary,.producto-form-panel .erp-form-grid{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){.workflow-hero__actions .erp-btn,.workflow-panel__actions .erp-btn,.workflow-page .erp-form-actions .erp-btn,.workflow-action{transition:none}}
