@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url(./Inter-Latin-Dx4kXJAl.woff2)format("woff2")}@font-face{font-family:Playfair Display;font-style:normal;font-weight:600 700;font-display:swap;src:url(./PlayfairDisplay-Latin-BOwq7MWX.woff2)format("woff2")}:root{--font-body:"Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-display:"Playfair Display", Georgia, "Times New Roman", serif;--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-6:1.5rem;--space-8:2rem;--space-12:3rem;--radius-control:.5rem;--radius-card:.625rem;--radius-lg:.75rem;--radius-overlay:.75rem;--control-height:2.5rem;--control-height-compact:2rem;--shell-topbar-height:3.75rem;--shadow-subtle:0 .125rem .5rem #202b320f;--shadow-sm:0 1px 2px #0f172a0d;--shadow-card:var(--shadow-subtle);--shadow-overlay:0 1rem 2.5rem #1a171238;--motion-fast:.16s;--motion-normal:.2s;--ease-standard:ease;--demo-navy:#15354b;--demo-navy-2:#24536d;--demo-ink:var(--color-text-primary);--demo-muted:var(--color-text-secondary);--demo-line:var(--color-border-subtle);--demo-line-2:var(--color-border-strong);--demo-paper:var(--color-canvas);--demo-surface:var(--color-surface);--demo-soft:var(--color-surface-muted);--demo-cream:var(--color-warning-soft);--demo-green:var(--color-success);--demo-on-navy:#fff;--demo-on-navy-soft:#c2d1d5;--demo-navy-line:#ffffff52;--demo-navy-veil:#ffffff1a;--demo-navy-veil-soft:#ffffff14;--demo-navy-veil-strong:#ffffff29;--demo-navy-focus:#ffffff38;--demo-navy-shadow:0 1px 0 #15354b38;--demo-shadow-card:0 6px 18px #202b321f;--demo-shadow-line:0 1px 3px #202b320b;--demo-focus-ring-soft:#24536d2e;--demo-hover-row:#f5f8f6;--demo-line-success:#b9d2c1;--demo-line-chip:#c5d9ce;--demo-line-info:#b5ccd8;--demo-danger-line:#e3c1bd;--demo-danger-ink:#8f3733;--demo-danger-bg:#f6e8e6;--demo-warning-line:#ded0ad;--demo-warning-ink:#715119}:root,:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-canvas:#f7f8f6;--color-surface:#fff;--color-surface-muted:#f1f4f2;--color-surface-raised:#fff;--color-surface-inverse:#15354b;--color-transparent:transparent;--color-text-primary:#202b32;--color-text-secondary:#576267;--color-border-subtle:#dfe3e1;--color-border-strong:#c8d0ce;--color-brand-solid:#24536d;--color-brand-solid-hover:#15354b;--color-on-brand:#fff;--color-brand-decorative:#f3eee4;--color-focus-ring:#24536d;--color-overlay:#15354b9e;--color-success:#3a7350;--color-success-soft:#e5f0e8;--color-success-strong:#2c5a3d;--color-warning:#8a621c;--color-warning-accent:var(--color-warning);--color-warning-soft:#f3eee4;--color-warning-strong:#6e4d16;--color-danger:#a3443f;--color-danger-soft:#f6e8e6;--color-info:#24536d;--color-info-soft:#e7eef2;--color-accent:#24536d;--color-focus:#24536d;--color-surface-hover:#eef3f1;--color-chart-primary:#24536d;--color-chart-secondary:#3d7852;--color-chart-positive:#3d7852;--color-chart-negative:#a3443f;--color-chart-neutral:#6f7b80;--color-text-tertiary:#576267;--color-text-muted:#576267;--color-border-control:#c8d0ce;--color-border-control-soft:#dfe3e1;--color-brand-accent:#3d7852;--color-brand-gradient:#24536d;--color-brand-gradient-end:#15354b;--color-info-strong:#15354b;--color-danger-strong:#8f3733;--color-document-ink:#202b32;--color-document-surface:#fff;--color-document-focus:#24536d;--color-chart-series-1:#fca5a5;--color-chart-series-2:#fdba74;--color-chart-series-3:#fcd34d;--color-chart-series-4:#86efac;--color-chart-series-5:#93c5fd;--color-chart-series-6:#a78bfa;--color-chart-series-7:#f9a8d4;--color-chart-series-8:#60a5fa;--color-chart-series-9:#34d399;--color-chart-series-10:#0891b2;--color-chart-series-11:#0d9488;--color-chart-series-12:#65a30d;--color-chart-series-13:#ca8a04;--color-chart-series-14:#d97706;--color-chart-series-15:#db2777;--color-chart-series-16:#4f46e5;--color-chart-income:#7dd3fc;--color-chart-income-border:#60a5fa;--color-chart-expense:#f87171;--color-chart-expense-border:#ef4444;--color-chart-expense-pending:#fecaca;--color-chart-expense-pending-border:#fca5a5;--color-chart-dollar:#16a34a;--color-chart-usd:#06b6d4;--color-chart-warning:#f59e0b;--color-chart-border:#fff;--color-surface-tint:#24536d0f;--color-surface-tint-accent:#3d78520f;--color-overlay-legacy:#15354b9e;--color-shadow-legacy:#202b322e;--color-shadow-legacy-subtle:#202b320f;--color-document-rule:#202b3261}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-canvas:#101b22;--color-surface:#17252d;--color-surface-muted:#1d303a;--color-surface-raised:#213640;--color-surface-inverse:#f1f4f2;--color-transparent:transparent;--color-text-primary:#edf3f0;--color-text-secondary:#afbfbd;--color-border-subtle:#30434c;--color-border-strong:#50646b;--color-brand-solid:#6da581;--color-brand-solid-hover:#86bd99;--color-on-brand:#10231a;--color-brand-decorative:#f3eee4;--color-focus-ring:#86bd99;--color-overlay:#08151db8;--color-success:#86bd99;--color-success-soft:#1d3a2a;--color-warning:#e0bd70;--color-warning-soft:#3a321f;--color-danger:#e29a92;--color-danger-soft:#452926;--color-info:#8cb9ce;--color-info-soft:#203d4b;--color-chart-primary:#8cb9ce;--color-chart-secondary:#86bd99;--color-chart-positive:#86bd99;--color-chart-negative:#e29a92;--color-chart-neutral:#afbfbd;--color-text-tertiary:#afbfbd;--color-text-muted:#afbfbd;--color-border-control:#50646b;--color-border-control-soft:#30434c;--color-brand-accent:#86bd99;--color-brand-gradient:#8cb9ce;--color-brand-gradient-end:#24536d;--color-info-strong:#b4d8e6;--color-danger-strong:#e29a92;--color-document-ink:#202b32;--color-document-surface:#fff;--color-document-focus:#24536d;--color-chart-series-1:#fca5a5;--color-chart-series-2:#fdba74;--color-chart-series-3:#fcd34d;--color-chart-series-4:#86efac;--color-chart-series-5:#93c5fd;--color-chart-series-6:#c4b5fd;--color-chart-series-7:#f9a8d4;--color-chart-series-8:#60a5fa;--color-chart-series-9:#34d399;--color-chart-series-10:#7dd3fc;--color-chart-series-11:#5eead4;--color-chart-series-12:#bef264;--color-chart-series-13:#fde047;--color-chart-series-14:#fdba74;--color-chart-series-15:#f9a8d4;--color-chart-series-16:#a78bfa;--color-chart-income:#93c5fd;--color-chart-income-border:#60a5fa;--color-chart-expense:#f87171;--color-chart-expense-border:#fca5a5;--color-chart-expense-pending:#7f1d1d;--color-chart-expense-pending-border:#fca5a5;--color-chart-dollar:#86efac;--color-chart-usd:#7dd3fc;--color-chart-warning:#fcd34d;--color-chart-border:#17252d;--color-surface-tint:#8cb9ce1f;--color-surface-tint-accent:#86bd991f;--color-overlay-legacy:#08151db8;--color-shadow-legacy:#00000052;--color-shadow-legacy-subtle:#0003;--color-document-rule:#edf3f061}@media (prefers-color-scheme:dark){:root:not([data-theme]){--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--color-canvas:#0a0a0a;--color-surface:#111;--color-surface-muted:#181818;--color-surface-raised:#202020;--color-surface-inverse:#f8f4ec;--color-transparent:transparent;--color-text-primary:#f8f4ec;--color-text-secondary:#b8b0a3;--color-border-subtle:#38332b;--color-border-strong:#706759;--color-brand-solid:#dfc07a;--color-brand-solid-hover:#e9d298;--color-on-brand:#111;--color-brand-decorative:#c9a962;--color-focus-ring:#dfc07a;--color-overlay:#000000b8;--color-success:#86efac;--color-success-soft:#14291b;--color-warning:#fcd34d;--color-warning-soft:#30240b;--color-danger:#fca5a5;--color-danger-soft:#351414;--color-info:#93c5fd;--color-info-soft:#12223e;--color-chart-primary:#dfc07a;--color-chart-secondary:#c9a962;--color-chart-positive:#86efac;--color-chart-negative:#fca5a5;--color-chart-neutral:#b8b0a3;--color-text-tertiary:#b8b0a3;--color-text-muted:#b8b0a3;--color-document-ink:#111;--color-document-surface:#fff;--color-document-focus:#6f5723}}@media print{:root,:root[data-theme=dark]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-canvas:#fff;--color-surface:#fff;--color-surface-muted:#f1ebdd;--color-surface-raised:#fff;--color-text-primary:#1a1712;--color-text-secondary:#5f584d;--color-border-subtle:#d8cebc;--color-border-strong:#8b7f6c;--color-brand-solid:#6f5723;--color-brand-solid-hover:#5e481b;--color-on-brand:#fff;--color-focus-ring:#6f5723}}.ui-button{min-height:var(--control-height);justify-content:center;align-items:center;gap:var(--space-2);padding:0 var(--space-4);border:1px solid var(--color-transparent);border-radius:var(--radius-control);font:inherit;cursor:pointer;transition:background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);font-weight:600;display:inline-flex}.ui-button:focus-visible,.ui-field:focus-visible,.ui-select:focus-visible,.ui-dialog-close:focus-visible,.ui-dialog-action:focus-visible,.ui-dialog-cancel:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.ui-button:disabled{cursor:not-allowed;opacity:.6}.ui-button-primary{color:var(--color-on-brand);background:var(--color-brand-solid)}.ui-button-primary:hover:not(:disabled){background:var(--color-brand-solid-hover)}.ui-button-secondary{color:var(--color-text-primary);background:var(--color-surface-muted);border-color:var(--color-border-strong)}.ui-button-secondary:hover:not(:disabled){background:var(--color-surface-raised)}.ui-button-danger{color:var(--color-on-brand);background:var(--color-danger)}.ui-button-ghost{color:var(--color-text-primary);background:var(--color-transparent);border-color:var(--color-border-subtle)}.ui-button-compact{min-height:var(--control-height-compact);padding-inline:var(--space-3);font-size:.85rem}.ui-field,.ui-select{width:100%;min-height:var(--control-height);padding:0 var(--space-3);border:1px solid var(--color-border-strong);border-radius:var(--radius-control);color:var(--color-text-primary);background:var(--color-surface)}.ui-field-label,.ui-select-label{gap:var(--space-2);color:var(--color-text-secondary);font-size:.82rem;display:grid}.ui-field-description,.ui-select-description{color:var(--color-text-tertiary);font-size:.75rem}.ui-badge,.ui-status{min-height:1.5rem;padding:0 var(--space-2);border:1px solid var(--color-transparent);border-radius:999px;align-items:center;font-size:.75rem;font-weight:600;display:inline-flex}.ui-badge-neutral,.ui-status-neutral{color:var(--color-text-secondary);background:var(--color-surface-muted);border-color:var(--color-border-subtle)}.ui-badge-success,.ui-status-success{color:var(--color-success);background:var(--color-success-soft);border-color:var(--color-success)}.ui-badge-warning,.ui-status-warning{color:var(--color-warning);background:var(--color-warning-soft);border-color:var(--color-warning)}.ui-badge-danger,.ui-status-danger{color:var(--color-danger);background:var(--color-danger-soft);border-color:var(--color-danger)}.ui-badge-info,.ui-status-info{color:var(--color-info);background:var(--color-info-soft);border-color:var(--color-info)}.ui-feedback{gap:var(--space-2);padding:var(--space-4);border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);color:var(--color-text-secondary);background:var(--color-surface-muted);display:grid}.ui-feedback-title{color:var(--color-text-primary);margin:0;font-weight:700}.ui-feedback-error{color:var(--color-danger);border-color:var(--color-danger);background:var(--color-danger-soft)}.ui-feedback-actions{gap:var(--space-2);flex-wrap:wrap;display:flex}.ui-table-container{border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);width:100%;overflow-x:auto}.ui-table-container:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.ui-table{border-collapse:collapse;width:100%}.ui-table th,.ui-table td{padding:var(--space-3);border-bottom:1px solid var(--color-border-subtle);text-align:left}.ui-table th{color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:.04em;font-size:.75rem}.ui-table tbody tr:last-child td{border-bottom:0}.ui-table-filters{align-items:end;gap:var(--space-3);flex-wrap:wrap;display:flex}.ui-pagination{justify-content:flex-end;align-items:center;gap:var(--space-3);margin-top:var(--space-3);display:flex}.ui-pagination-label{color:var(--color-text-secondary);font-size:.85rem}.ui-dialog-overlay{z-index:1000;background:var(--color-overlay);position:fixed;inset:0}.ui-dialog-content{z-index:1001;border:1px solid var(--color-border-subtle);border-radius:var(--radius-overlay);width:min(100% - 2rem,38rem);max-height:min(90vh,48rem);color:var(--color-text-primary);background:var(--color-surface);box-shadow:var(--shadow-overlay);flex-direction:column;display:flex;position:fixed;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.ui-dialog-content[data-state=open],.ui-dialog-overlay[data-state=open]{animation:ui-fade-in var(--motion-fast) var(--ease-standard)}.ui-dialog-header,.ui-dialog-footer{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-4);border-bottom:1px solid var(--color-border-subtle);display:flex}.ui-dialog-footer{border-top:1px solid var(--color-border-subtle);background:var(--color-surface-muted);border-bottom:0;justify-content:flex-end}.ui-dialog-title{color:var(--color-text-primary);margin:0;font-size:1.1rem}.ui-dialog-description{color:var(--color-text-secondary);margin:0}.ui-dialog-body{min-height:0;padding:var(--space-4);overflow-y:auto}.ui-dialog-close{min-width:var(--control-height-compact);min-height:var(--control-height-compact);border-radius:var(--radius-control);color:var(--color-text-secondary);background:var(--color-transparent);cursor:pointer;border:0}.ui-dialog-close:hover{color:var(--color-text-primary);background:var(--color-surface-muted)}.ui-alert-dialog-content{width:min(100% - 2rem,32rem)}.ui-drawer-content{border-radius:var(--radius-overlay) 0 0 var(--radius-overlay);width:min(100% - 1rem,32rem);height:100%;max-height:100vh;top:0;left:auto;right:0;transform:translate(0)}@keyframes ui-fade-in{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.ui-dialog-content,.ui-dialog-overlay{animation:none}}@media (width<=640px){.ui-dialog-footer{flex-direction:column-reverse;align-items:stretch}.ui-dialog-footer .ui-button{width:100%}}.ui-toaster{z-index:60;pointer-events:none;justify-items:center;gap:.5rem;padding:0 1rem;display:grid;position:fixed;inset:auto 0 1rem}.ui-toast{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-surface);width:min(32rem,100%);box-shadow:var(--shadow-overlay);color:var(--color-text-primary);pointer-events:auto;align-items:center;gap:.75rem;padding:.65rem .5rem .65rem .9rem;font-size:.9rem;display:flex}.ui-toast-error{border-color:var(--color-danger);background:var(--color-danger-soft);color:var(--color-danger)}.ui-toast-success{border-color:var(--color-success);background:var(--color-success-soft);color:var(--color-success)}.ui-toast-message{overflow-wrap:anywhere;flex:auto;min-width:0}.ui-toast-close{border-radius:var(--radius-control);background:var(--color-transparent);width:2.75rem;height:2.75rem;color:inherit;font:inherit;cursor:pointer;border:0;flex:none}.ui-toast-close:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}html{background:var(--color-canvas)}body{background:var(--color-canvas);color:var(--color-text-primary);font-family:var(--font-body);text-rendering:optimizelegibility;line-height:1.5}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button:disabled,select:disabled,input:disabled,textarea:disabled{cursor:not-allowed}::selection{color:var(--color-on-brand);background:var(--color-brand-solid)}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}:root{--shell-topbar-height:3.75rem;font-family:var(--font-body);color:var(--color-text-primary);background-color:var(--color-canvas);font-weight:400;line-height:1.5}body{background:var(--color-canvas);margin:0}.app{flex-direction:column;min-height:100vh;display:flex}.topbar{background:var(--color-surface-inverse);color:var(--color-border-subtle);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem 1rem;display:flex}.brand{align-items:center;gap:.5rem;display:flex}.brand-logo,.brand-logo-large{object-fit:contain;width:auto;height:1.6rem}.brand-title{color:var(--color-border-subtle);font-size:1.1rem;font-weight:600}.topbar h1{margin:0;font-size:1rem}.subtitle{opacity:.8;margin:0;font-size:.8rem}.topbar-actions{align-items:center;gap:.4rem;display:flex}.topbar-actions .subtitle{margin:0}.content{flex-direction:column;flex:1;gap:.5rem;padding:.5rem;display:flex}.card{background:var(--color-surface);box-shadow:0 2px 6px var(--color-shadow-legacy-subtle);border-radius:8px;flex-direction:column;gap:.25rem;padding:.5rem .75rem;display:flex}.summary-wrapper{flex-direction:column;display:flex}.card.compact{gap:.25rem}.summary-title{text-transform:uppercase;letter-spacing:.06em;color:var(--color-text-tertiary);margin:0;font-size:.8rem}.stats-list{grid-template-columns:repeat(auto-fit,minmax(80px,1fr));gap:.35rem;display:grid}.stat-item{background:var(--color-surface-muted);border-radius:6px;flex-direction:column;gap:.1rem;padding:.35rem .5rem;display:flex}.stat-label{text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-tertiary);font-size:.65rem}.stat-value{color:var(--color-text-primary);word-break:break-word;font-size:1rem;font-weight:700}.responsive-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.5rem;display:grid}.grid-gastos{grid-template-rows:auto auto;grid-template-columns:1.4fr 1fr;align-items:start;gap:.5rem;display:grid}.chart-small{min-height:120px;max-height:140px}.stack-tight{flex-direction:column;gap:.35rem;display:flex}.panel{background:var(--color-surface);box-shadow:0 2px 8px var(--color-shadow-legacy-subtle);border-radius:8px;flex-direction:column;gap:.4rem;padding:.6rem;display:flex}.panel-header{justify-content:space-between;align-items:flex-start;gap:.4rem;display:flex}.panel-header h2{color:var(--color-text-primary);margin:0;font-size:.95rem}.panel-subtitle{color:var(--color-text-tertiary);font-size:.7rem}.panel-subtitle-highlight{color:var(--color-text-secondary);font-size:.95rem;font-weight:600}.chart-wrapper{min-height:180px}.layout{flex-direction:column;gap:.5rem;display:flex}.layout-main{flex:2}.layout-aside{flex:1}@media (width>=960px){.layout{flex-direction:row;align-items:flex-start}.layout-main{min-width:0}.layout-aside{position:sticky;top:1.5rem}}.filters{flex-wrap:wrap;align-items:flex-end;gap:.5rem;display:flex}.filter-group{flex-direction:column;min-width:min(160px,100%);display:flex}label{color:var(--color-text-secondary);flex-direction:column;gap:.2rem;font-size:.75rem;display:flex}input,textarea,select{border:1px solid var(--color-border-control-soft);background:var(--color-surface);color:var(--color-text-primary);border-radius:6px;padding:.4rem .5rem;font-family:inherit;font-size:.85rem;transition:border-color .2s,box-shadow .2s}input:focus,textarea:focus,select:focus{border-color:var(--color-focus-ring);box-shadow:0 0 0 3px var(--color-surface-tint);background:var(--color-surface);outline:none}.btn-primary,.btn-secondary{cursor:pointer;border:none;border-radius:6px;padding:.4rem .8rem;font-size:.85rem;font-weight:600;transition:transform .15s,box-shadow .15s}.btn-primary{background:var(--color-brand-solid);color:var(--color-on-brand);box-shadow:0 10px 20px var(--color-shadow-legacy);align-self:flex-start}.btn-primary:hover{box-shadow:0 14px 24px var(--color-shadow-legacy);transform:translateY(-2px)}.btn-secondary{background:var(--color-border-subtle);color:var(--color-text-primary)}.table-wrapper{border-radius:6px;overflow-x:auto}table{border-collapse:collapse;width:100%;min-width:600px}th,td{text-align:left;border-bottom:1px solid var(--color-border-subtle);background:var(--color-surface);padding:.4rem .5rem;font-size:.85rem}th{text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-tertiary);font-size:.7rem}.sort-button{font:inherit;text-transform:uppercase;letter-spacing:inherit;color:inherit;cursor:pointer;background:0 0;border:none;align-items:center;gap:.35rem;margin:0;padding:0;display:inline-flex}.sort-button:focus{color:var(--color-text-primary);outline:none}.sort-button.active{color:var(--color-text-primary)}.sort-indicator{color:var(--color-text-muted);font-size:.75rem}.pagination{justify-content:flex-end;align-items:center;gap:.75rem;margin-top:.75rem;display:flex}.pagination span{color:var(--color-text-secondary);font-size:.9rem}.login-container{background:var(--color-canvas);justify-content:center;align-items:center;min-height:100vh;padding:1.5rem;display:flex}.login-panel{background:var(--color-surface);width:100%;max-width:360px;box-shadow:0 20px 40px var(--color-shadow-legacy);border-radius:18px;flex-direction:column;align-items:center;gap:1rem;padding:2.5rem;display:flex}.login-panel h1{text-align:center;color:var(--color-text-primary);margin:0;font-size:1.6rem}.login-logo{width:120px;height:auto}.login-subtitle{text-align:center;color:var(--color-text-primary);letter-spacing:.08em;margin:0;font-weight:600}.login-panel p{text-align:center;color:var(--color-text-tertiary);margin:0}.numeric{text-align:right;font-variant-numeric:tabular-nums}.empty{color:var(--color-text-tertiary);margin:1rem 0}.form-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem;display:grid}.full{width:100%}.commercial-wizard{width:100%;margin:0}.wizard-grid{grid-template-columns:minmax(0,1fr) 22.5rem;align-items:start;gap:1rem;display:grid}.wizard-fields{flex-direction:column;min-width:0;display:flex}.commercial-wizard h1{font-family:var(--font-display);font-size:clamp(1.05rem,1.6vw,1.3rem);font-weight:600;line-height:1.15}.commercial-wizard .commercial-preview{border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-surface);max-height:calc(100vh - 1.5rem);box-shadow:var(--shadow-subtle);flex-direction:column;margin-top:0;display:flex;position:sticky;top:.75rem;overflow-y:auto}.commercial-wizard .commercial-preview .preview-actions{z-index:5;background:var(--color-surface);box-shadow:0 -.35rem .8rem var(--color-shadow-legacy-subtle);border-top:1px solid var(--color-border-subtle);margin:0;padding:.75rem 1rem;position:sticky;bottom:0}@media (width<=1279px){.wizard-grid{grid-template-columns:minmax(0,1fr)}.commercial-wizard .commercial-preview{max-height:none;position:static;overflow:visible}}.btn-line-add,.btn-line-remove{justify-self:start;min-width:2.4rem;min-height:2.4rem;padding:.4rem .85rem;font-size:1.05rem;line-height:1}.commercial-wizard-actions{z-index:5;justify-content:flex-end;align-items:center;gap:.75rem;display:flex;position:sticky;bottom:0}@media (width<=640px){.commercial-wizard-actions{gap:.5rem;display:grid}}.commercial-wizard h1,.commercial-wizard h2{margin:0}.commercial-wizard-step{color:var(--color-text-tertiary);white-space:nowrap;font-size:.8rem}.commercial-wizard-progress{border-bottom:1px solid var(--color-border-subtle);grid-template-columns:repeat(5,minmax(0,1fr));gap:.35rem;margin:0;padding:.5rem 0;list-style:none;display:grid}.commercial-wizard-progress li{color:var(--color-text-tertiary);align-items:center;gap:.3rem;font-size:.72rem;display:flex}.commercial-wizard-progress li span{border:1px solid var(--color-border-control-soft);border-radius:50%;flex:none;place-items:center;width:1.45rem;height:1.45rem;display:inline-grid}.commercial-wizard-progress li.is-current,.commercial-wizard-progress li.is-complete{color:var(--color-text-primary);font-weight:700}.commercial-wizard-progress li.is-current span,.commercial-wizard-progress li.is-complete span{background:var(--color-focus-ring);border-color:var(--color-focus-ring);color:var(--color-on-brand)}.commercial-step{border:0;flex-direction:column;gap:.55rem;margin:0;padding:.55rem 0;display:flex}.commercial-step legend{padding:0;font-size:1rem;font-weight:700}.commercial-line{border:1px solid var(--color-border-subtle);border-radius:6px;grid-template-columns:1.2fr 1.2fr .7fr .9fr auto;align-items:end;gap:.35rem;padding:.4rem .5rem;display:grid}.preview-head{border-bottom:1px solid var(--color-border-subtle);padding:.7rem 1rem .55rem}.preview-head h2{margin:0;font-size:1rem;font-weight:700}.preview-head .preview-subtitle{color:var(--color-text-tertiary);margin-top:.1rem;font-size:.78rem;display:block}.preview-body{flex-direction:column;align-items:stretch;gap:.5rem;padding:.6rem 1rem .9rem;display:flex}.preview-customer{margin:0 0 .5rem;font-weight:700}.preview-calc table{border-collapse:collapse;width:100%}.preview-calc table,.preview-calc tbody{display:block}.preview-calc tr{flex-wrap:wrap;align-items:baseline;gap:.1rem .6rem;padding:.16rem 0;display:flex}.preview-calc td{padding:0;display:inline}.preview-calc tr.row-multi{flex-direction:column;align-items:flex-start;gap:0}.preview-calc tr.row-multi td.lbl{color:var(--color-text-primary);font-weight:600}.preview-calc tr.sep,.preview-calc tr.discount,.preview-calc tr.ship{justify-content:space-between}.preview-calc td.lbl{color:var(--color-text-secondary)}.preview-calc td.qty{color:var(--color-text-tertiary);text-align:right;font-size:.82rem}.preview-calc td.val{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.preview-calc tr.sep{border-top:1px solid var(--color-border-subtle)}.preview-calc tr.sep td.lbl{color:var(--color-text-primary);font-weight:700}.preview-calc tr.sep td.val{font-weight:700}.preview-calc tr.discount td.val,.preview-calc tr.ship td.val{color:var(--color-text-secondary)}.preview-hint{color:var(--color-text-tertiary);margin:.4rem 0 0;font-size:.78rem}.preview-total{background:var(--color-surface-tint);border-radius:var(--radius-card);flex-direction:column;gap:.15rem;padding:.8rem 1rem;display:flex}.preview-total .tt-label{align-items:center;gap:.5rem;font-size:.85rem;font-weight:700;display:flex}.tt-badge{border-radius:999px;padding:.1rem .5rem;font-size:.7rem;font-weight:600}.tt-badge-normal{background:var(--color-success-soft);color:var(--color-success-strong,var(--color-success))}.tt-badge-comp{background:var(--color-warning-soft);color:var(--color-warning-strong,var(--color-warning))}.preview-total .tt-value{font-variant-numeric:tabular-nums;font-size:1.45rem;font-weight:700;line-height:1.1}.preview-total .tt-meta{color:var(--color-text-tertiary);font-size:.78rem}.commercial-wizard-actions{border-top:1px solid var(--color-border-subtle);justify-content:flex-end;gap:.5rem;padding-top:.75rem;display:flex}.commercial-problem{color:var(--color-danger);border:1px solid var(--color-danger);border-radius:6px;flex-direction:column;gap:.2rem;padding:.55rem .7rem;display:flex}.commercial-problem span{color:var(--color-text-secondary);font-size:.78rem}.commercial-summary{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.6rem;margin:0;display:grid}.commercial-summary div{background:var(--color-surface-tint);border-radius:6px;padding:.6rem}.commercial-summary dt{color:var(--color-text-tertiary);font-size:.7rem}.commercial-summary dd{overflow-wrap:anywhere;margin:.15rem 0 0;font-weight:700}.commercial-result{gap:.75rem}textarea{resize:vertical}.btn-edit{cursor:pointer;opacity:.7;background:0 0;border:none;padding:.25rem .5rem;font-size:1.2rem;transition:opacity .2s}.btn-expand{background:var(--color-border-subtle);border:1px solid var(--color-border-control);cursor:pointer;border-radius:4px;padding:.25rem .5rem;font-size:1rem;transition:background .2s}.btn-expand:hover{background:var(--color-border-control)}.btn-edit:hover{opacity:1}.btn-export-label{color:var(--color-info-strong);border:1px solid var(--color-info-soft);background:var(--color-info-soft);opacity:1;border-radius:6px;min-width:96px;font-family:inherit;font-size:.78rem;font-weight:700;line-height:1}.btn-export-label:hover{background:var(--color-info-soft)}@media (width<=640px){table{min-width:100%}.stats-list{grid-template-columns:minmax(0,1fr)}.commercial-wizard-progress{grid-template-columns:repeat(5,1fr)}.commercial-wizard-progress li{justify-content:center}.commercial-wizard-progress li:not(.is-current):not(.is-complete){font-size:0}.commercial-line{grid-template-columns:1fr 1fr}.commercial-line .ui-button{justify-self:start}}@media (width<=1024px){.topbar{flex-direction:column;align-items:stretch;padding:1rem}.brand{justify-content:center;margin-bottom:.5rem}.topbar-actions{flex-wrap:wrap;justify-content:center}.topbar-actions .subtitle{text-align:center;width:100%;margin-bottom:.5rem}.topbar-actions .btn-secondary{padding:.5rem .8rem;font-size:.85rem}}@media (width<=768px){.topbar h1{font-size:1.2rem}.brand-logo{height:1.8rem}.topbar-actions .btn-secondary{padding:.45rem .65rem;font-size:.8rem}.content{padding:.75rem}}@media (width<=900px){.grid-gastos{grid-template-rows:auto;grid-template-columns:1fr}.grid-gastos>div{grid-area:auto/1!important}}@media (width<=768px){.table-wrapper table{min-width:unset;display:block}.table-wrapper thead{display:none}.table-wrapper tbody{flex-direction:column;gap:.75rem;display:flex}.table-wrapper tr{background:var(--color-surface-muted);border:1px solid var(--color-border-subtle);border-radius:12px;flex-direction:column;padding:1rem;display:flex}.table-wrapper td{border-bottom:1px solid var(--color-border-subtle);background:var(--color-transparent);justify-content:space-between;align-items:center;padding:.5rem 0;display:flex}.table-wrapper td:last-child{border-bottom:none}.table-wrapper td:before{content:attr(data-label);color:var(--color-text-tertiary);text-transform:uppercase;font-size:.85rem;font-weight:600}.table-wrapper td.numeric{text-align:right}.filters{flex-direction:column;align-items:stretch}.filter-group{min-width:100%}.filter-group select,.filter-group input{width:100%}.form-grid{grid-template-columns:1fr}.panel{border-radius:12px;padding:1rem}.panel-header h2{font-size:1.1rem}.chart-wrapper{min-height:220px}.chart-small{min-height:180px}.layout{flex-direction:column}.layout-aside{position:relative;top:0}.stat-value{font-size:1.4rem}.stat-item{padding:.75rem}.conversations-screen .conversation-message{margin-left:0!important;margin-right:0!important}}@media (width<=480px){.pagination{flex-direction:column;align-items:center;gap:.5rem}.pagination .btn-secondary{width:100%}.btn-edit{padding:.4rem;font-size:1rem}}@media (width<=600px){.responsive-grid{grid-template-columns:1fr}}@media (width<=480px){.card{border-radius:12px;padding:1rem}.summary-title{font-size:.9rem}.stats-list{gap:.75rem}}@media (width<=400px){.login-panel{padding:1.5rem}.login-logo{width:90px}.login-panel h1{font-size:1.3rem}}.chatbot-test-container{gap:1.5rem;height:calc(100vh - 180px);min-height:500px;display:flex}.chatbot-test-main{flex-direction:column;flex:2;min-width:0;display:flex}.chatbot-test-sidebar{flex-direction:column;flex:1;gap:1rem;max-width:350px;display:flex}.chatbot-test-panel{flex-direction:column;flex:1;display:flex;overflow:hidden}.chatbot-messages{background:var(--color-surface-muted);border-radius:12px;flex-direction:column;flex:1;gap:.75rem;padding:1rem;display:flex;overflow-y:auto}.chatbot-empty{color:var(--color-text-tertiary);text-align:center;flex-direction:column;flex:1;justify-content:center;align-items:center;padding:2rem;display:flex}.chatbot-message{max-width:85%;display:flex}.chatbot-message.user{align-self:flex-end}.chatbot-message.bot{align-self:flex-start}.chatbot-message.error{align-self:center}.chatbot-message-content{border-radius:16px;padding:.75rem 1rem;position:relative}.chatbot-message.user .chatbot-message-content{background:var(--color-brand-solid);color:var(--color-on-brand);border-bottom-right-radius:4px}.chatbot-message.bot .chatbot-message-content{background:var(--color-surface);color:var(--color-text-primary);border:1px solid var(--color-border-subtle);border-bottom-left-radius:4px}.chatbot-message.error .chatbot-message-content{background:var(--color-danger-soft);color:var(--color-danger);border:1px solid var(--color-danger-soft)}.chatbot-message-header{opacity:.8;align-items:center;gap:.5rem;margin-bottom:.25rem;font-size:.75rem;display:flex}.chatbot-message.user .chatbot-message-header{justify-content:flex-end}.chatbot-message-sender{font-weight:600}.chatbot-message-time{opacity:.7}.chatbot-message-type{background:var(--color-on-brand);text-transform:uppercase;border-radius:4px;padding:.1rem .4rem;font-size:.7rem}.chatbot-message.bot .chatbot-message-type{background:var(--color-border-subtle);color:var(--color-text-tertiary)}.chatbot-message-text{white-space:pre-wrap;word-break:break-word;line-height:1.5}.chatbot-message-actions{opacity:0;gap:.25rem;margin-top:.5rem;transition:opacity .2s;display:flex}.chatbot-message:hover .chatbot-message-actions{opacity:1}.chatbot-action-btn{cursor:pointer;opacity:.6;background:0 0;border:none;padding:.2rem;font-size:.9rem;transition:opacity .2s}.chatbot-action-btn:hover{opacity:1}.chatbot-typing{gap:4px;padding:.5rem 0;display:flex}.chatbot-typing span{background:var(--color-text-muted);border-radius:50%;width:8px;height:8px;animation:1.4s ease-in-out infinite both typingBounce}.chatbot-typing span:first-child{animation-delay:-.32s}.chatbot-typing span:nth-child(2){animation-delay:-.16s}@keyframes typingBounce{0%,80%,to{transform:scale(0)}40%{transform:scale(1)}}.chatbot-input-area{border-top:1px solid var(--color-border-subtle);gap:.75rem;margin-top:1rem;padding-top:1rem;display:flex}.chatbot-input-area textarea{resize:none;border-radius:12px;flex:1;min-height:60px}.chatbot-input-actions{flex-direction:column;justify-content:flex-end;gap:.5rem;display:flex}.chatbot-info-content{font-size:.9rem}.chatbot-info-content h3{text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-tertiary);margin:0 0 .5rem;font-size:.85rem}.chatbot-info-item{border-bottom:1px solid var(--color-surface-muted);justify-content:space-between;padding:.4rem 0;display:flex}.chatbot-info-label{color:var(--color-text-secondary)}.chatbot-info-value{color:var(--color-text-primary);font-weight:600}.chatbot-promo-badge{text-align:center;border-radius:8px;margin-bottom:1rem;padding:.5rem .75rem;font-size:.85rem;font-weight:600}.chatbot-promo-badge.active{background:var(--color-success-soft);color:var(--color-success);border:1px solid var(--color-success)}.chatbot-promo-badge.inactive{background:var(--color-warning-soft);color:var(--color-warning);border:1px solid var(--color-warning)}.chatbot-info-item.out-of-stock{background:var(--color-danger-soft);border-radius:4px;margin:0 -.5rem;padding:.4rem .5rem}.stock-warning{color:var(--color-danger);margin-left:.25rem;font-size:.8rem}.panel-header-title{flex:1}.panel-header-actions{gap:.5rem;display:flex}.btn-sm{padding:.35rem .75rem;font-size:.8rem}.btn-danger{background:var(--color-danger-soft);color:var(--color-danger);border:1px solid var(--color-danger-soft)}.btn-danger:hover{background:var(--color-danger-soft)}.chatbot-save-dialog{background:var(--color-surface-muted);border-radius:8px;align-items:center;gap:.5rem;margin-bottom:1rem;padding:.75rem;display:flex}.chatbot-save-dialog input{border:1px solid var(--color-border-subtle);border-radius:6px;flex:1;padding:.5rem;font-size:.875rem}.chatbot-sessions-list{background:var(--color-surface-muted);border-radius:8px;max-height:200px;margin-bottom:1rem;padding:.75rem;overflow-y:auto}.chatbot-sessions-list h4{color:var(--color-text-tertiary);text-transform:uppercase;letter-spacing:.05em;margin:0 0 .5rem;font-size:.85rem}.chatbot-sessions-list ul{margin:0;padding:0;list-style:none}.chatbot-sessions-list li{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:6px;justify-content:space-between;align-items:center;margin-bottom:.5rem;padding:.5rem;display:flex}.chatbot-sessions-list li:last-child{margin-bottom:0}.session-info{flex-direction:column;gap:.15rem;display:flex}.session-name{color:var(--color-text-primary);font-weight:500}.session-meta{color:var(--color-text-tertiary);font-size:.75rem}.session-actions{gap:.35rem;display:flex}.chatbot-sessions-empty{color:var(--color-text-secondary);margin:0;font-size:.875rem}@media (width<=900px){.chatbot-test-container{flex-direction:column;height:auto}.chatbot-test-main{min-height:400px}.chatbot-test-sidebar{flex-flow:wrap;max-width:100%}.chatbot-test-sidebar .panel{flex:1;min-width:280px}}@media (width<=480px){.chatbot-input-area{flex-direction:column}.chatbot-input-actions{flex-direction:row;justify-content:flex-end}.chatbot-message{max-width:95%}}.modal-overlay{background:var(--color-overlay-legacy);z-index:1000;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.modal{background:var(--color-surface);box-shadow:0 20px 40px var(--color-shadow-legacy);border-radius:12px;flex-direction:column;width:100%;max-width:600px;max-height:90vh;display:flex;overflow:hidden}.modal-header{border-bottom:1px solid var(--color-border-subtle);justify-content:space-between;align-items:center;padding:1rem 1.25rem;display:flex}.modal-header h3{color:var(--color-text-primary);margin:0;font-size:1.1rem}.modal-close{cursor:pointer;color:var(--color-text-tertiary);background:0 0;border:none;padding:0;font-size:1.5rem;line-height:1;transition:color .2s}.modal-close:hover{color:var(--color-text-primary)}.modal-body{flex:1;padding:1.25rem;overflow-y:auto}.modal-footer{border-top:1px solid var(--color-border-subtle);background:var(--color-surface-muted);justify-content:flex-end;gap:.75rem;padding:1rem 1.25rem;display:flex}.gastos-fecha{margin-bottom:1rem}.gastos-fecha label{color:var(--color-text-secondary);font-weight:500}.gastos-fecha input{width:100%;max-width:200px;margin-top:.25rem}.gastos-lista{flex-direction:column;gap:.75rem;margin-bottom:1rem;display:flex}.gasto-row{background:var(--color-surface-muted);border:1px solid var(--color-border-subtle);border-radius:8px;grid-template-columns:1fr 120px 1fr auto;align-items:end;gap:.5rem;padding:.75rem;display:grid}.gasto-row label{color:var(--color-text-tertiary);font-size:.75rem}.gasto-row select,.gasto-row input{width:100%}.gasto-row input[type=number]{text-align:right}.btn-delete-row{background:var(--color-danger-soft);border:1px solid var(--color-danger-soft);color:var(--color-danger);cursor:pointer;border-radius:6px;align-self:end;padding:.4rem .6rem;font-size:1rem;transition:background .2s}.btn-delete-row:hover{background:var(--color-danger-soft)}.btn-delete-row:disabled{opacity:.4;cursor:not-allowed}.gastos-agregar{margin-bottom:1rem}.gastos-agregar button{background:var(--color-success-soft);border:1px dashed var(--color-success);width:100%;color:var(--color-success);cursor:pointer;border-radius:8px;padding:.6rem;font-weight:500;transition:background .2s}.gastos-agregar button:hover{background:var(--color-success-soft)}.gastos-total{background:var(--color-surface-muted);border-radius:8px;justify-content:space-between;align-items:center;padding:.75rem 1rem;font-weight:600;display:flex}.gastos-total-monto{color:var(--color-focus-ring);font-size:1.2rem}@media (width<=640px){.modal{max-height:95vh;margin:.5rem}.gasto-row{grid-template-columns:1fr 1fr;gap:.5rem}.gasto-row>:nth-child(3){grid-column:1/-1}.gasto-row>:nth-child(4){grid-column:1/-1;justify-self:end}.modal-footer{flex-direction:column}.modal-footer button{width:100%}}.production-layout{flex-direction:column;gap:.75rem;display:flex}.production-hero-card{gap:0;padding:.45rem .6rem}.production-hero-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.production-title{color:var(--color-text-primary);margin:0;font-size:1.05rem}.production-toolbar-brand{min-height:32px;color:var(--color-text-primary);white-space:nowrap;align-items:center;font-size:.92rem;font-weight:700;display:flex}.production-section-nav{flex-wrap:wrap;align-items:center;gap:.25rem;display:flex}.production-subtitle{color:var(--color-text-secondary);max-width:64rem;margin:.2rem 0 0}.production-link-row,.production-action-row,.production-selector-row,.production-badge-row,.production-chip-list{flex-wrap:wrap;gap:.5rem;display:flex}.production-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.55rem;display:grid}.production-kpi-card{background:var(--color-surface-muted);border:1px solid var(--color-border-subtle);border-radius:8px;flex-direction:column;gap:.15rem;min-height:82px;padding:.65rem .75rem;display:flex}.production-kpi-label,.production-stage-label{text-transform:uppercase;color:var(--color-text-tertiary);letter-spacing:.03em;font-size:.7rem}.production-kpi-value{color:var(--color-text-primary);font-size:1.3rem;line-height:1.1}.production-kpi-foot{color:var(--color-text-secondary);font-size:.72rem}.finance-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;margin-top:.75rem;display:grid}.finance-grid-compact{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}.finance-card{border:1px solid var(--color-border-subtle);background:var(--color-surface-muted);min-height:92px;color:var(--color-text-primary);border-radius:8px;flex-direction:column;gap:.25rem;padding:.8rem;text-decoration:none;display:flex}.finance-card:hover{border-color:var(--color-border-strong)}.finance-card:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.finance-card strong{font-size:1.35rem}.finance-card small{color:var(--color-text-secondary)}.production-two-column{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.production-summary-extra{grid-template-columns:minmax(190px,.55fr) minmax(280px,1fr);gap:.75rem;display:grid}.production-reference-details{border:1px solid var(--color-border-subtle);background:var(--color-surface);border-radius:8px;padding:.65rem .75rem}.production-reference-details:not([open]){justify-self:start}.production-reference-details summary{cursor:pointer;color:var(--color-text-primary);font-size:.9rem;font-weight:700}.production-reference-details[open] summary{margin-bottom:.65rem}.production-stack-layout{grid-template-columns:1fr;gap:.75rem;display:grid}.production-form-panel{gap:.75rem}.production-register-heading{border:1px solid var(--color-border-subtle);background:var(--color-surface-muted);border-radius:6px;justify-content:space-between;align-items:baseline;gap:.75rem;margin-bottom:.65rem;padding:.5rem .65rem;display:flex}.production-register-heading strong{color:var(--color-text-primary);font-size:.92rem}.production-register-heading span{color:var(--color-text-tertiary);text-align:right;font-size:.78rem}.production-form-actions{flex-wrap:wrap;gap:.5rem;margin-top:1rem;display:flex}.production-checkbox{flex-direction:row;align-items:center;gap:.5rem;margin-top:1.35rem}.production-checkbox input{width:auto}.production-alert-list{color:var(--color-warning);margin:0;padding-left:1rem}.production-alert-list li+li{margin-top:.3rem}.production-metric-stack{flex-direction:column;gap:.55rem;display:flex}.production-metric-line{border-bottom:1px solid var(--color-border-subtle);justify-content:space-between;gap:.5rem;padding-bottom:.4rem;font-size:.9rem;display:flex}.production-metric-line:last-child{border-bottom:none;padding-bottom:0}.production-metric-empty{color:var(--color-text-tertiary);margin:0;font-size:.82rem}.production-cost-reference-card{margin-top:.75rem}.production-metric-stack-grid{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.production-trace-focus{border:1px solid var(--color-border-control);background:var(--color-surface-muted);border-radius:8px;flex-direction:column;gap:.75rem;padding:.9rem;display:flex}.production-trace-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.production-trace-header h3{margin:0;font-size:1rem}.production-trace-header p{color:var(--color-text-secondary);margin:.2rem 0 0}.production-barrica-header{flex-wrap:wrap;align-items:baseline;gap:.75rem;display:flex}.production-barrica-meta{color:var(--color-text-tertiary);overflow-wrap:anywhere;font-size:.85rem}.production-pill{background:var(--color-border-subtle);color:var(--color-text-primary);border-radius:999px;padding:.3rem .7rem;font-size:.8rem;font-weight:600}.production-pill-strong{background:var(--color-info-soft);color:var(--color-info)}.production-trace-meta{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.75rem;display:grid}.production-trace-meta strong{color:var(--color-text-primary);margin-top:.15rem;display:block}.production-trace-meta-line{color:var(--color-text-secondary);flex-wrap:nowrap;gap:.35rem .65rem;padding-bottom:.1rem;font-size:.84rem;display:flex;overflow-x:auto}.production-trace-meta-line span{border-right:1px solid var(--color-border-control);padding-right:.65rem}.production-trace-meta-line span:last-child{border-right:none}.production-pipeline{grid-template-columns:repeat(7,minmax(110px,1fr));align-items:stretch;gap:.25rem;display:grid}.production-pipeline-node{border:1px solid var(--color-info-soft);background:var(--color-surface);border-radius:8px;flex-direction:column;gap:.45rem;min-height:64px;padding:.4rem;display:flex}.production-pipeline-node-empty{background:var(--color-surface-muted);border-style:dashed}.production-pipeline-head{color:var(--color-text-secondary);text-transform:uppercase;justify-content:space-between;align-items:center;gap:.35rem;font-size:.7rem;font-weight:700;display:flex}.production-pipeline-head strong{color:var(--color-text-primary);font-size:.95rem}.production-pipeline-arrow{display:none}.production-stage-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;display:grid}.production-stage-card{border:1px solid var(--color-border-subtle);background:var(--color-surface);border-radius:8px;flex-direction:column;gap:.45rem;padding:.85rem;display:flex}.production-stage-card strong{color:var(--color-text-primary);font-size:1.15rem}.production-chip{background:var(--color-info-soft);color:var(--color-info-strong);border-radius:999px;padding:.25rem .6rem;font-size:.8rem}.production-chip-muted{background:var(--color-surface-muted);color:var(--color-text-secondary)}.production-chip-clickable{background:var(--color-info-soft);color:var(--color-info-strong);cursor:pointer;font-family:inherit;font-size:.8rem;line-height:inherit;border:none;transition:background .15s}.production-chip-clickable:hover{background:var(--color-info)}.production-chip-clickable.production-chip-muted{background:var(--color-surface-muted);color:var(--color-text-secondary)}.production-chip-clickable.production-chip-muted:hover{background:var(--color-border-subtle)}.production-row-active td{background:var(--color-info-soft)}.production-error-panel{border-color:var(--color-danger-soft);background:var(--color-danger-soft);color:var(--color-danger-strong)}.production-error-panel span{color:var(--color-danger-strong)}.production-warning-panel{border-color:var(--color-warning);background:var(--color-warning-soft);color:var(--color-warning)}.production-record-workspace{border-color:var(--color-border-control);background:var(--color-surface-muted);gap:.75rem}.production-record-workspace-header{align-items:flex-start}.production-contextual-actions{flex-wrap:wrap;gap:.5rem;display:flex}.production-record-sheet{border:3px solid var(--color-document-ink);background:var(--color-document-surface);width:min(100%,1120px);color:var(--color-document-ink);box-shadow:0 12px 30px var(--color-shadow-legacy-subtle);margin:0 auto;font-family:Georgia,Times New Roman,serif}.production-record-sheet-form{overflow:hidden}.production-sheet-header{border-bottom:3px solid var(--color-document-ink);grid-template-columns:160px minmax(0,1fr) 132px;display:grid}.production-sheet-logo,.production-sheet-title,.production-sheet-meta{border-right:3px solid var(--color-document-ink);justify-content:center;align-items:center;min-height:88px;padding:.45rem;display:flex}.production-sheet-logo img{object-fit:contain;max-width:130px;max-height:52px}.production-sheet-title{text-align:center;flex-direction:column;gap:.25rem;font-size:.98rem;line-height:1.2}.production-sheet-title strong{text-transform:uppercase;font-size:1.05rem}.production-sheet-meta{border-right:none;flex-direction:column;align-items:flex-start;gap:.2rem;font-size:.86rem;font-weight:700}.production-sheet-record-id,.production-sheet-field-grid,.production-sheet-data-grid{border-bottom:2px solid var(--color-document-ink);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.production-sheet-field-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}.production-sheet-data-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.production-sheet-field{border-right:1px solid var(--color-document-ink);border-bottom:1px solid var(--color-document-ink);align-items:baseline;gap:.35rem;min-height:44px;padding:.5rem .6rem;line-height:1.25;display:flex}.production-sheet-record-id .production-sheet-field:nth-child(2n),.production-sheet-field-grid:not(.production-sheet-field-grid-compact) .production-sheet-field:nth-child(2n),.production-sheet-field-grid-compact .production-sheet-field:nth-child(3n),.production-sheet-data-grid .production-sheet-field:last-child{border-right:none}.production-sheet-field span{color:var(--color-document-ink);flex:none;font-weight:700}.production-sheet-field strong{border-bottom:1px solid var(--color-document-ink);overflow-wrap:anywhere;flex:auto;min-width:4rem;padding:0 .15rem .1rem;font-weight:400}.production-sheet-section-title{border-bottom:2px solid var(--color-document-ink);background:var(--color-document-surface);text-align:center;text-transform:uppercase;margin:0;padding:.35rem .75rem;font-size:1rem;line-height:1.2}.production-sheet-table-wrap{border-bottom:2px solid var(--color-document-ink);overflow-x:auto}.production-sheet-table{border-collapse:collapse;width:100%;min-width:620px}.production-sheet-table th,.production-sheet-table td{border:1px solid var(--color-document-ink);text-align:center;vertical-align:middle;padding:.45rem .55rem;font-size:.92rem}.production-sheet-table th{background:var(--color-document-surface);font-weight:700}.production-sheet-table-empty{color:var(--color-text-tertiary);text-align:left;font-style:italic}.production-sheet-split{border-bottom:2px solid var(--color-document-ink);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.production-sheet-split>div+div{border-left:2px solid var(--color-document-ink)}.production-sheet-observations{border-bottom:2px solid var(--color-document-ink);background:repeating-linear-gradient(to bottom, var(--color-transparent) 0, var(--color-transparent) 28px, var(--color-document-rule) 29px);min-height:122px;padding:.65rem .75rem .75rem}.production-sheet-observations span{font-weight:700}.production-sheet-observations p{color:var(--color-document-ink);white-space:pre-wrap;margin:.35rem 0 0;font-family:Georgia,Times New Roman,serif;line-height:1.8}.production-form-sheet-body{padding:0}.production-form-sheet-body form{padding:.85rem}.production-form-sheet-body .production-register-heading{border:0;border-bottom:2px solid var(--color-document-ink);background:var(--color-document-surface);border-radius:0;margin:-.85rem -.85rem .85rem;padding:.45rem .75rem}.production-form-section-title{border-top:1px solid var(--color-document-ink);border-bottom:1px solid var(--color-document-ink);background:var(--color-document-surface);letter-spacing:.04em;text-transform:uppercase;margin:.85rem -.85rem .65rem;padding:.35rem .75rem;font-size:.82rem;font-weight:700}.production-form-section-title:first-of-type{margin-top:0}.production-form-sheet-body .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.6rem}.production-form-sheet-body label.full{grid-column:1/-1}.production-form-sheet-body label{color:var(--color-document-ink);font-family:inherit;font-weight:700}.production-form-sheet-body input,.production-form-sheet-body select,.production-form-sheet-body textarea{border-color:var(--color-document-ink);background:var(--color-document-surface);color:var(--color-document-ink);box-sizing:border-box;border-radius:0;width:100%;margin-top:.25rem;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.production-form-sheet-body textarea{min-height:90px}.production-sheet-relations{border-bottom:2px solid var(--color-document-ink);background:var(--color-document-surface);flex-direction:column;gap:.6rem;padding:0 0 .75rem;display:flex}.production-relation-grid{gap:.45rem;display:grid}.production-relation-row{grid-template-columns:minmax(110px,.75fr) minmax(0,1fr);align-items:center;gap:.5rem;display:grid}.production-relation-block{flex-direction:column;gap:.4rem;display:flex}.production-relation-label{color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:.05em;font-size:.78rem;font-weight:600}.production-relations-summary{background:var(--color-border-subtle);border-radius:6px;padding:.45rem .65rem}.production-relation-count{color:var(--color-text-secondary);font-size:.8rem;font-weight:600}.production-stage-grid{position:relative}.production-stage-card{min-height:132px}@media (width<=900px){.production-two-column,.production-summary-extra,.production-metric-stack-grid{grid-template-columns:1fr}.production-kpi-grid,.production-pipeline{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.production-title{font-size:1.05rem}.production-kpi-card{min-height:unset}.production-trace-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.production-trace-meta-line span{border-right:none;padding-right:0}.production-trace-meta-line{flex-wrap:wrap;overflow-x:visible}.production-register-heading{flex-direction:column;align-items:flex-start}.production-register-heading span{text-align:left}}@media (width<=520px){.production-kpi-grid,.production-trace-meta,.production-pipeline{grid-template-columns:1fr}}.production-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.35rem;display:flex}.production-toolbar-search{flex-wrap:wrap;flex:320px;align-items:center;gap:.4rem;display:flex}.production-search-input{border:1px solid var(--color-border-control);background:var(--color-surface);border-radius:6px;flex:auto;min-width:180px;padding:.35rem .6rem;font-family:inherit;font-size:.85rem}.production-search-input:focus{border-color:var(--color-focus-ring);box-shadow:0 0 0 2px var(--color-surface-tint);outline:none}.production-filter-select{border:1px solid var(--color-border-control);background:var(--color-surface);cursor:pointer;border-radius:6px;padding:.35rem .6rem;font-family:inherit;font-size:.85rem}.production-action-select{border:1px solid var(--color-info);color:var(--color-surface);background:var(--color-info);cursor:pointer;border-radius:6px;padding:.34rem .58rem;font-family:inherit;font-size:.8rem;font-weight:700}.production-action-select option,.production-action-select optgroup{color:var(--color-text-primary);background:var(--color-surface)}.production-toolbar-actions{flex-wrap:wrap;align-items:center;gap:.35rem;display:flex}.production-toolbar-form-buttons{flex-wrap:wrap;gap:.35rem;display:flex}.production-toolbar .btn-primary,.production-toolbar .btn-secondary,.production-hero-header .btn-secondary,.production-section-nav .btn-secondary{box-shadow:none;padding:.32rem .58rem;font-size:.78rem}.production-section-nav .btn-secondary{background:var(--color-surface);color:var(--color-text-secondary)}.production-date-select{border:1px solid var(--color-border-control);background:var(--color-surface);cursor:pointer;border-radius:6px;padding:.35rem .6rem;font-family:inherit;font-size:.8rem}.production-date-range-badge{gap:.5rem;margin:-.25rem 0 .5rem;display:flex}.production-date-range-badge span{background:var(--color-info-soft);color:var(--color-info-strong);border-radius:6px;padding:.25rem .6rem;font-size:.78rem}.production-table-container{flex-direction:column;gap:.35rem;display:flex}.production-table-search{margin-bottom:.25rem}.production-table-search-input{max-width:280px}.production-result-count{color:var(--color-text-tertiary);font-size:.78rem}.production-data-table-wrapper{overflow-x:auto}.production-sortable{cursor:pointer;-webkit-user-select:none;user-select:none}.production-sortable:hover{background:var(--color-surface-muted)}.production-sort-indicator{color:var(--color-text-muted);font-size:.75rem}.production-pagination{justify-content:center;align-items:center;gap:.75rem;padding:.5rem 0;display:flex}.production-pagination-info{color:var(--color-text-secondary);font-size:.85rem}.production-pagination-btn{padding:.35rem .75rem;font-size:.82rem}@media (width<=640px){.production-data-table-wrapper table,.production-data-table-wrapper thead,.production-data-table-wrapper tbody,.production-data-table-wrapper th,.production-data-table-wrapper td,.production-data-table-wrapper tr{display:block}.production-data-table-wrapper thead{display:none}.production-data-table-wrapper tbody tr{border:1px solid var(--color-border-subtle);background:var(--color-surface);border-radius:8px;margin-bottom:.5rem;padding:.5rem}.production-data-table-wrapper td{border:none;justify-content:space-between;align-items:center;padding:.3rem 0;font-size:.85rem;display:flex}.production-data-table-wrapper td:before{content:attr(data-label);color:var(--color-text-tertiary);text-transform:uppercase;margin-right:.5rem;font-size:.78rem;font-weight:600}.production-data-table-wrapper td.numeric{text-align:left}.production-toolbar{flex-direction:column;align-items:stretch}.production-toolbar>*{width:100%;min-width:0;max-width:100%}.production-toolbar-brand{justify-content:flex-start}.production-section-nav{flex-wrap:nowrap;padding-bottom:.1rem;overflow-x:auto}.production-toolbar-search,.production-toolbar-actions{flex:auto}.production-search-input,.production-filter-select,.production-action-select{width:100%;min-width:0}.production-toolbar-form-buttons,.production-hero-header{flex-direction:column}.production-record-sheet{border-width:2px;width:100%}.production-sheet-header{grid-template-columns:1fr}.production-sheet-logo,.production-sheet-title,.production-sheet-meta{border-right:none;border-bottom:2px solid var(--color-document-ink);min-height:58px}.production-sheet-meta{align-items:center}.production-sheet-record-id,.production-sheet-field-grid,.production-sheet-field-grid-compact,.production-sheet-data-grid,.production-sheet-split,.production-form-sheet-body .form-grid{grid-template-columns:1fr}.production-sheet-split>div+div{border-left:none;border-top:2px solid var(--color-document-ink)}.production-sheet-field,.production-sheet-field-grid-compact .production-sheet-field:nth-child(3n),.production-sheet-field-grid:not(.production-sheet-field-grid-compact) .production-sheet-field:nth-child(2n),.production-sheet-record-id .production-sheet-field:nth-child(2n){border-right:none}.production-relation-row{grid-template-columns:1fr;gap:.2rem}}.production-table-filters{flex-wrap:wrap;gap:.5rem;margin-bottom:.35rem;display:flex}.production-row-incomplete td:first-child{border-left:3px solid var(--color-warning)}.production-row-incomplete td{background:var(--color-warning-soft)}.production-table-container .empty{text-align:center;color:var(--color-text-secondary);padding:1.5rem;font-style:italic}.production-empty-hint{color:var(--color-text-tertiary);justify-content:center;align-items:center;gap:.5rem;margin-top:.5rem;font-style:normal;display:flex}.production-empty-hint .btn-link{color:var(--color-info);cursor:pointer;font:inherit;background:0 0;border:none;padding:0;text-decoration:underline}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip-link{z-index:1200;box-sizing:border-box;background:var(--color-surface-raised);max-width:calc(100vw - 2rem);color:var(--color-text-primary);border-radius:var(--radius-control);opacity:0;pointer-events:none;padding:.55rem .8rem;position:fixed;top:.5rem;left:.5rem;transform:translateY(-150%)}.skip-link:focus{opacity:1;pointer-events:auto;outline:3px solid var(--color-focus-ring);outline-offset:2px;transform:translateY(0)}.route-loading{min-height:14rem;color:var(--color-text-secondary);text-align:center;align-content:center;place-items:center;gap:.75rem;display:grid}.route-loading-spinner{border:3px solid var(--color-border-subtle);border-top-color:var(--color-focus-ring);border-radius:50%;width:2rem;height:2rem;animation:.8s linear infinite route-loading-spin}@keyframes route-loading-spin{to{transform:rotate(360deg)}}.pwa-status{z-index:100;border:1px solid var(--color-border-strong);background:var(--color-surface);max-width:min(34rem,100vw - 2rem);color:var(--color-text-primary);box-shadow:var(--shadow-overlay);border-radius:.75rem;align-items:center;gap:.75rem;padding:.75rem 1rem;display:flex;position:fixed;inset:auto 1rem 1rem auto}.pwa-status-action{white-space:nowrap;min-height:2.75rem}.inline-feedback{border:1px solid var(--color-border-strong);border-radius:.5rem;margin:.75rem 0;padding:.75rem 1rem}.inline-feedback.success{border-color:var(--color-success);background:var(--color-success-soft);color:var(--color-text-primary)}.form-error{color:var(--color-danger-strong);margin:.5rem 0}button,a,select,input[type=checkbox],input[type=radio]{min-height:2.75rem}@media (width<=768px){.pwa-status{justify-content:space-between;max-width:none;font-size:.9rem;inset:auto .75rem .75rem}.pwa-status-action{flex:none}}@media (width<=390px){.pwa-status{flex-direction:column;align-items:stretch}.pwa-status-action{width:100%}}.app-shell{background:var(--color-canvas);grid-template-rows:auto minmax(0,1fr);grid-template-columns:15.5rem minmax(0,1fr);min-height:100vh;display:grid}.app-shell.sidebar-collapsed{grid-template-columns:4.5rem minmax(0,1fr)}.shell-topbar{background:var(--color-surface);min-height:3.75rem;color:var(--color-text-primary);border-bottom:1px solid var(--color-border-subtle);z-index:30;grid-area:1/1/auto/-1;justify-content:space-between;align-items:center;gap:1rem;padding:.55rem 1rem;display:flex}.shell-brand,.shell-session{align-items:center;gap:.75rem;display:flex}.shell-brand-logo{object-fit:contain;width:auto;height:2rem}.shell-brand-mark{align-items:center;display:inline-flex}.shell-brand-title{letter-spacing:.01em;font-weight:700}.shell-session-status{color:var(--color-success);font-size:.8rem}.shell-session-status>span{color:var(--color-success)}.shell-menu-button{border:1px solid var(--color-border-strong);border-radius:var(--radius-control);background:var(--color-transparent);min-width:2.5rem;min-height:2.5rem;color:inherit;cursor:pointer;justify-content:center;align-items:center;display:none}.shell-sidebar-toggle{z-index:5;border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-surface-muted);width:auto;min-width:2.75rem;height:2.75rem;min-height:2.75rem;color:var(--color-text-secondary);cursor:pointer;justify-content:center;align-items:center;gap:.35rem;padding:0 .65rem;font-size:1rem;line-height:1;display:inline-flex;position:absolute;top:.75rem;right:.5rem}.shell-sidebar{background:var(--color-surface);border-right:1px solid var(--color-border-subtle);grid-area:2/1;min-height:0;padding:4.25rem .75rem .75rem;position:relative;overflow-y:auto}.shell-nav-group+.shell-nav-group{border-top:1px solid var(--color-border-subtle);margin-top:.85rem;padding-top:.85rem}.shell-nav-group h2{color:var(--color-text-secondary);letter-spacing:.06em;text-transform:uppercase;margin:0 0 .3rem;padding:0 .55rem;font-size:.7rem;line-height:1.5}.shell-nav-list{gap:.15rem;margin:0;padding:0;list-style:none;display:grid}.shell-nav-list[hidden]{display:none!important}.shell-nav-list-direct{margin:0;padding:0;list-style:none}.shell-nav-icon{flex:none;width:1.1rem;height:1.1rem}.shell-nav-link{min-height:2.35rem;color:var(--color-text-primary);border-radius:6px;justify-content:space-between;align-items:center;gap:.5rem;padding:.45rem .55rem;font-size:.84rem;text-decoration:none;display:flex}.shell-nav-link:hover{background:var(--color-surface-muted)}.shell-nav-disclosure{width:100%;min-height:2.75rem;color:var(--color-text-primary);background:var(--color-transparent);font:inherit;text-align:left;cursor:pointer;border:0;border-radius:6px;align-items:center;gap:.5rem;padding:.45rem .55rem;display:flex}.shell-nav-disclosure:hover,.shell-nav-disclosure[aria-expanded=true]{background:var(--color-surface-muted)}.shell-nav-disclosure-state{color:var(--color-text-secondary);margin-left:auto;font-size:1.1rem}.shell-nav-link[aria-current=page]{background:var(--color-surface-muted);color:var(--color-text-primary);box-shadow:inset 3px 0 var(--color-brand-solid);font-weight:700}.shell-nav-link:focus-visible,.shell-nav-disclosure:focus-visible,.shell-menu-button:focus-visible,.shell-sidebar-toggle:focus-visible,.shell-quick-action:focus-visible,.shell-breadcrumbs a:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.shell-nav-status{border:1px solid var(--color-border-subtle);color:var(--color-text-secondary);text-transform:uppercase;border-radius:999px;padding:.1rem .35rem;font-size:.62rem;font-weight:600}.shell-workspace{grid-area:2/2;min-width:0;min-height:0;overflow:auto}.shell-breadcrumbs{background:var(--color-surface);border-bottom:1px solid var(--color-border-subtle);align-items:center;min-height:2.6rem;padding:.6rem 1rem;display:flex}.shell-breadcrumbs ol{color:var(--color-text-secondary);flex-wrap:wrap;align-items:center;gap:.4rem;margin:0;padding:0;font-size:.78rem;list-style:none;display:flex}.shell-breadcrumbs li+li:before{content:"/";color:var(--color-text-secondary);margin-right:.4rem}.shell-breadcrumbs a{min-width:2.75rem;min-height:var(--control-height);color:var(--color-text-secondary);align-items:center;display:inline-flex}.app-shell button,.app-shell [role=button],.app-shell input[type=button],.app-shell input[type=submit],.app-shell .shell-breadcrumbs a{min-width:2.75rem;min-height:2.75rem}.shell-breadcrumbs [aria-current=page]{color:var(--color-text-primary);font-weight:600}.shell-page{gap:.75rem;display:grid}.shell-page-header{padding:.25rem .1rem}.shell-page-header h1,.shell-page-header p,.shell-page .panel h2{margin:0}.shell-page-header h1{color:var(--color-text-primary);font-size:clamp(1.3rem,2vw,1.8rem);font-family:var(--font-display)}.shell-page-header>p:last-child{color:var(--color-text-secondary);margin-top:.25rem}.shell-eyebrow{color:var(--color-brand-solid);letter-spacing:.08em;text-transform:uppercase;font-size:.7rem;font-weight:700}.shell-quick-actions{grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:.6rem;display:grid}.shell-quick-action{border:1px solid var(--color-border-strong);border-radius:var(--radius-card);min-height:5rem;color:var(--color-text-primary);background:var(--color-surface);flex-direction:column;gap:.25rem;padding:.75rem;text-decoration:none;display:flex}.shell-quick-action:hover{border-color:var(--color-brand-solid);background:var(--color-surface-muted)}.shell-quick-action span{color:var(--color-text-secondary);font-size:.78rem}.shell-backdrop{display:none}@media (width>=901px){.app-shell.sidebar-collapsed .shell-nav-group h2{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell.sidebar-collapsed .shell-nav-link,.app-shell.sidebar-collapsed .shell-nav-disclosure{justify-content:center;padding-inline:.45rem}.app-shell.sidebar-collapsed .shell-nav-disclosure-state{display:none}.app-shell.sidebar-collapsed .shell-nav-label{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.app-shell.sidebar-collapsed .shell-sidebar-toggle{width:2.75rem;padding-inline:0}}@media (width<=900px){.app-shell{grid-template-columns:minmax(0,1fr)}.shell-topbar,.shell-workspace{grid-column:1}.skip-link{top:calc(var(--shell-topbar-height) + .5rem);left:.5rem;right:.5rem}.shell-menu-button{display:inline-flex}.shell-sidebar-toggle{display:none}.shell-sidebar{top:var(--shell-topbar-height);z-index:50;visibility:hidden;width:min(19rem,86vw);box-shadow:var(--shadow-overlay);transition:transform .18s ease-out,visibility .18s;position:fixed;bottom:0;left:0;transform:translate(-105%)}.shell-sidebar[data-open=true]{visibility:visible;transform:translate(0)}.shell-backdrop{inset:var(--shell-topbar-height) 0 0;z-index:40;background:var(--color-overlay);border:0;padding:0;display:block;position:fixed}}@media (width<=560px){.shell-topbar{flex-wrap:wrap;padding:.55rem .7rem}.shell-brand-title{display:none}.shell-breadcrumbs{padding-inline:.75rem}}.shell-brand-logo-dark,:root[data-theme=dark] .shell-brand-logo-light{display:none}:root[data-theme=dark] .shell-brand-logo-dark{display:block}.shell-theme-toggle{min-width:var(--control-height-compact);min-height:var(--control-height-compact);border:1px solid var(--color-border-strong);border-radius:var(--radius-control);background:var(--color-surface-muted);color:var(--color-text-primary);cursor:pointer;justify-content:center;align-items:center;padding:0;font-size:.95rem;line-height:1;display:inline-flex}.shell-theme-toggle:focus-visible,.shell-menu-button:focus-visible,.shell-session .btn-secondary:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.shell-profile{position:relative}.shell-profile-button{min-width:var(--control-height-compact);min-height:var(--control-height-compact);border:1px solid var(--color-border-strong);border-radius:var(--radius-control);background:var(--color-surface-muted);color:var(--color-text-primary);cursor:pointer;justify-content:center;align-items:center;padding:0;display:inline-flex}.shell-profile-button svg{fill:currentColor;width:1.15rem;height:1.15rem}.shell-profile-button:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.shell-profile-menu{z-index:40;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-surface-raised);min-width:11rem;box-shadow:var(--shadow-card);padding:.35rem;position:absolute;top:calc(100% + .35rem);right:0}.shell-profile-item{border-radius:var(--radius-control);width:100%;min-height:2.75rem;color:var(--color-text-primary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:.6rem;padding:.4rem .6rem;font-size:.88rem;font-weight:600;display:flex}.shell-profile-item:hover{background:var(--color-surface-hover)}.shell-profile-item:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.shell-profile-item span[aria-hidden=true]{font-size:1rem;line-height:1}.app-shell .content{padding:var(--space-4);gap:var(--space-4)}.app-shell .panel{background:var(--color-surface);color:var(--color-text-primary);border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);box-shadow:var(--shadow-subtle)}.app-shell .panel h2,.app-shell .panel h3{color:var(--color-text-primary)}.app-shell .panel-subtitle,.app-shell .panel-subtitle-highlight{color:var(--color-text-secondary)}.app-shell .btn-primary,.app-shell .btn-secondary{border-radius:var(--radius-control);border:1px solid var(--color-transparent);min-height:2.75rem;transition:background-color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard)}.app-shell .btn-primary{background:var(--color-brand-solid);color:var(--color-on-brand);box-shadow:none}.app-shell .btn-primary:hover{background:var(--color-brand-solid-hover);box-shadow:none;transform:none}.app-shell .btn-secondary{border-color:var(--color-border-strong);background:var(--color-surface-muted);color:var(--color-text-primary)}.app-shell .btn-secondary:hover{background:var(--color-surface-raised)}.app-shell input,.app-shell textarea,.app-shell select{min-height:var(--control-height);border-color:var(--color-border-strong);border-radius:var(--radius-control);color:var(--color-text-primary);background:var(--color-surface)}.app-shell .production-form-sheet-body input,.app-shell .production-form-sheet-body textarea,.app-shell .production-form-sheet-body select{border-color:var(--color-document-ink);color:var(--color-document-ink);background:var(--color-document-surface)}.app-shell label{color:var(--color-text-secondary)}.app-shell input:focus,.app-shell textarea:focus,.app-shell select:focus{border-color:var(--color-focus-ring);box-shadow:0 0 0 3px color-mix(in srgb, var(--color-focus-ring) 24%, var(--color-transparent));background:var(--color-surface-raised)}.login-container{background:var(--color-canvas)}.login-panel{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:var(--radius-overlay);box-shadow:var(--shadow-overlay)}.login-panel h1{color:var(--color-text-primary);font-family:var(--font-display)}.login-panel p,.login-subtitle{color:var(--color-text-secondary)}.login-panel input{min-height:var(--control-height);border-color:var(--color-border-strong);color:var(--color-text-primary);background:var(--color-surface)}.login-panel input:focus{border-color:var(--color-focus-ring);box-shadow:0 0 0 3px color-mix(in srgb, var(--color-focus-ring) 24%, var(--color-transparent))}.login-panel .btn-primary{min-height:var(--control-height);border-radius:var(--radius-control);background:var(--color-brand-solid);color:var(--color-on-brand);box-shadow:none;border:0}.login-panel .btn-primary:hover{background:var(--color-brand-solid-hover);box-shadow:none;transform:none}.error{color:var(--color-danger)}@media print{@page{size:A4 portrait;margin:0}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}body.production-record-printing{margin:0!important;padding:0!important}body.production-record-printing>#root{display:none!important}#production-print-root{box-sizing:border-box!important;width:210mm!important;min-height:297mm!important;margin:0!important;padding:5mm!important;display:block!important}html,body,#root,.app-shell,.shell-workspace,.content{background:var(--color-document-surface)!important;width:auto!important;min-width:0!important;height:auto!important;min-height:0!important;overflow:visible!important}.shell-topbar,.shell-sidebar,.shell-breadcrumbs,.shell-backdrop,.skip-link,.production-toolbar,.production-section-nav,.production-contextual-actions,.production-form-actions,.production-record-workspace-header,.app-shell button,[role=dialog]>button{display:none!important}.app-shell .content{padding:0!important;display:block!important}.app-shell .panel,.production-record-workspace,.production-record-sheet{border-color:var(--color-document-ink)!important;width:100%!important;max-width:none!important;box-shadow:none!important;color:var(--color-document-ink)!important;background:var(--color-document-surface)!important;border-radius:0!important;margin:0!important}.production-record-sheet,.production-sheet-header,.production-sheet-field-grid,.production-sheet-data-grid,.production-sheet-split,.production-sheet-table,.production-form-sheet-body,.production-sheet-relations{break-inside:avoid}.production-record-sheet{page-break-inside:avoid}#production-print-root .production-record-sheet{box-sizing:border-box!important;width:100%!important;max-width:none!important;font-size:9pt!important}#production-print-root .production-record-sheet *,#production-print-root .production-record-sheet :before,#production-print-root .production-record-sheet :after{box-sizing:border-box!important}#production-print-root .production-sheet-header{grid-template-columns:30mm minmax(0,1fr) 29mm!important}#production-print-root .production-sheet-logo,#production-print-root .production-sheet-title,#production-print-root .production-sheet-meta{min-height:18mm!important;padding:1.5mm!important}#production-print-root .production-sheet-logo img{max-width:27mm!important;max-height:12mm!important}#production-print-root .production-sheet-field-grid-compact,#production-print-root .production-sheet-data-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}#production-print-root .production-sheet-field{flex-direction:column!important;align-items:stretch!important;gap:.7mm!important;min-width:0!important;min-height:8mm!important;padding:1.2mm 1.5mm!important;display:flex!important}#production-print-root .production-sheet-field span{overflow-wrap:anywhere!important;min-width:0!important;font-size:7.2pt!important;line-height:1.1!important}#production-print-root .production-sheet-field strong{overflow-wrap:anywhere!important;flex:none!important;min-width:0!important;line-height:1.15!important}#production-print-root .production-sheet-section-title{padding:1.2mm 2mm!important;font-size:8.5pt!important}#production-print-root .production-sheet-table{table-layout:fixed!important;min-width:0!important}#production-print-root .production-sheet-table th,#production-print-root .production-sheet-table td{overflow-wrap:anywhere!important;padding:1.2mm 1.5mm!important;font-size:8pt!important}#production-print-root .production-sheet-observations{min-height:18mm!important;padding:1.5mm 2mm!important}#production-print-root .production-sheet-observations p{margin-top:1mm!important;line-height:1.35!important}#production-print-root .production-sheet-relations{gap:1.5mm!important;padding-bottom:2mm!important}#production-print-root .production-relations-summary{padding:1mm 2mm!important}#production-print-root .production-relation-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:1.5mm 2mm!important;padding:0 2mm!important}#production-print-root .production-relation-row{flex-direction:column!important;align-items:stretch!important;gap:.5mm!important;min-width:0!important;display:flex!important}#production-print-root .production-relation-row>*{overflow-wrap:anywhere!important;min-width:0!important}#production-print-root .production-relation-label{font-size:7pt!important;line-height:1.1!important}.production-record-sheet *{color:var(--color-document-ink)!important;background:var(--color-transparent)!important;box-shadow:none!important}.production-record-sheet .production-sheet-header,.production-record-sheet .production-sheet-section-title,.production-record-sheet .production-form-section-title,.production-record-sheet .production-sheet-table th,.production-record-sheet .production-register-heading{background:var(--color-document-surface)!important}.production-form-sheet-body input,.production-form-sheet-body select,.production-form-sheet-body textarea{appearance:none;border:0!important;border-bottom:1px solid var(--color-document-ink)!important;color:var(--color-document-ink)!important;background:var(--color-document-surface)!important;border-radius:0!important}.production-form-sheet-body textarea{min-height:3.2em!important}.production-sheet-table-wrap{overflow:visible!important}.production-record-sheet .production-relation-row button{font:inherit;text-align:left;min-height:0!important;color:var(--color-document-ink)!important;background:var(--color-transparent)!important;box-shadow:none!important;border:0!important;padding:0!important;display:inline-flex!important}}#production-print-root{display:none}.app-shell .production-record-sheet,.app-shell .production-record-sheet .production-sheet-header,.app-shell .production-record-sheet .production-sheet-record-id,.app-shell .production-record-sheet .production-sheet-field-grid,.app-shell .production-record-sheet .production-sheet-data-grid,.app-shell .production-record-sheet .production-sheet-split,.app-shell .production-record-sheet .production-form-sheet-body,.app-shell .production-record-sheet .production-sheet-relations{color:var(--color-document-ink);background:var(--color-document-surface)}.app-shell .production-record-sheet .production-sheet-observations{color:var(--color-document-ink);background-color:var(--color-document-surface)}.app-shell .production-record-sheet .production-sheet-table th,.app-shell .production-record-sheet .production-sheet-table td,.app-shell .production-record-sheet .production-sheet-table-empty,.app-shell .production-record-sheet .production-sheet-relations,.app-shell .production-record-sheet .production-sheet-relations .production-relations-summary,.app-shell .production-record-sheet .production-sheet-relations .production-relation-label,.app-shell .production-record-sheet .production-sheet-relations .production-relation-count{color:var(--color-document-ink);background:var(--color-document-surface)}.production-dashboard{gap:var(--space-4);padding:var(--space-4)}.production-dashboard>.panel-header{padding-bottom:var(--space-3);border-bottom:1px solid var(--color-border-subtle)}.production-dashboard .production-kpi-card{min-height:88px;padding:var(--space-4);border-top:3px solid var(--color-brand-solid);border-radius:var(--radius-card);background:var(--color-surface);box-shadow:var(--shadow-subtle)}.production-dashboard .production-kpi-value{margin-top:var(--space-1);font-size:1.45rem}.production-form-context{margin-bottom:var(--space-4)}.production-form-context-heading{justify-content:space-between;align-items:flex-start;gap:var(--space-3);display:flex}.production-form-context-heading>div{gap:var(--space-1);flex-direction:column;display:flex}.production-form-context-heading span{font-size:.78rem}.production-form-context-grid{gap:var(--space-2);margin:var(--space-3) 0 0;grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.production-form-context-grid div{min-width:0}.production-form-context-grid dt{letter-spacing:.03em;text-transform:uppercase;font-size:.7rem;font-weight:700}.production-form-context-grid dd{margin:var(--space-1) 0 0;overflow-wrap:anywhere;font-size:.9rem;font-weight:700}.operational-view{gap:var(--space-4);display:grid}.operational-view-header{justify-content:space-between;align-items:flex-start;gap:var(--space-4);display:flex}.operational-view-header .panel-subtitle{margin:var(--space-1) 0 0}.operational-summary-grid{gap:var(--space-3);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.operational-summary-card{justify-content:center;gap:var(--space-1);min-height:104px;padding:var(--space-4);border:1px solid var(--color-border-subtle);border-top:3px solid var(--color-brand-solid);border-radius:var(--radius-card);background:var(--color-surface-muted);flex-direction:column;display:flex}.operational-summary-card span,.operational-summary-card small{color:var(--color-text-secondary)}.operational-summary-card strong{color:var(--color-text-primary);overflow-wrap:anywhere;font-size:1.4rem}.operational-search{gap:var(--space-1);max-width:34rem;color:var(--color-text-secondary);font-weight:700;display:grid}.operational-search input{min-height:var(--control-height);padding:0 var(--space-3);border:1px solid var(--color-border-strong);border-radius:var(--radius-control);color:var(--color-text-primary);background:var(--color-surface)}.operational-search input:focus{border-color:var(--color-focus-ring);outline:3px solid color-mix(in srgb, var(--color-focus-ring) 24%, var(--color-transparent));outline-offset:1px}.operational-footer-actions{justify-content:flex-end;display:flex}@media screen{.app-shell .production-record-sheet.production-screen-record{border:1px solid var(--color-border-subtle);border-radius:var(--radius-overlay);width:min(100%,1040px);color:var(--color-text-primary);background:var(--color-surface);font-family:var(--font-body);box-shadow:var(--shadow-subtle);overflow:hidden}.production-screen-record .production-sheet-header{display:none}.production-screen-record .production-sheet-record-id{border:0;border-bottom:1px solid var(--color-border-subtle);background:var(--color-surface-muted);grid-template-columns:minmax(8rem,.35fr) minmax(0,1fr)}.production-screen-record .production-sheet-record-id .production-sheet-field{min-height:0;padding:var(--space-3) var(--space-4);color:var(--color-text-secondary);background:var(--color-transparent);border:0}.production-screen-record .production-sheet-record-id .production-sheet-field+.production-sheet-field{border-left:1px solid var(--color-border-subtle)}.production-screen-record .production-sheet-record-id .production-sheet-field span{color:var(--color-text-tertiary)}.production-screen-record .production-sheet-record-id .production-sheet-field strong{color:var(--color-text-primary);border:0;font-weight:700}.production-screen-record .production-sheet-field-grid,.production-screen-record .production-sheet-data-grid{gap:var(--space-3);padding:var(--space-4);background:var(--color-surface);border:0}.production-screen-record .production-sheet-field-grid-compact{grid-template-columns:repeat(3,minmax(0,1fr))}.production-screen-record .production-sheet-field-grid .production-sheet-field,.production-screen-record .production-sheet-data-grid .production-sheet-field{align-items:flex-start;gap:var(--space-1);min-height:74px;padding:var(--space-3);border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);color:var(--color-text-primary);background:var(--color-surface-muted);flex-direction:column;display:flex}.production-screen-record .production-sheet-field-grid .production-sheet-field span,.production-screen-record .production-sheet-data-grid .production-sheet-field span{color:var(--color-text-secondary);letter-spacing:.04em;text-transform:uppercase;font-size:.7rem;font-weight:700}.production-screen-record .production-sheet-field-grid .production-sheet-field strong,.production-screen-record .production-sheet-data-grid .production-sheet-field strong{min-width:0;color:var(--color-text-primary);border:0;padding:0;font-size:.94rem;font-weight:650;line-height:1.35}.production-screen-record .production-sheet-section-title{margin:var(--space-2) var(--space-4) 0;padding:var(--space-4) 0 var(--space-2);border:0;border-bottom:1px solid var(--color-border-subtle);color:var(--color-text-primary);background:var(--color-surface);text-align:left;font-family:var(--font-body);letter-spacing:.05em;font-size:.82rem}.production-screen-record .production-sheet-table-wrap{margin:var(--space-3) var(--space-4) var(--space-4);border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-surface);overflow-x:auto}.production-screen-record .production-sheet-table{min-width:620px;font-family:var(--font-body)}.app-shell .production-screen-record .production-sheet-table th,.app-shell .production-screen-record .production-sheet-table td{border:0;border-bottom:1px solid var(--color-border-subtle);padding:var(--space-3);color:var(--color-text-primary);background:var(--color-surface);text-align:left;font-family:var(--font-body);font-size:.84rem}.app-shell .production-screen-record .production-sheet-table th{color:var(--color-text-secondary);background:var(--color-surface-muted);letter-spacing:.03em;text-transform:uppercase;font-size:.72rem}.app-shell .production-screen-record .production-sheet-table tbody tr:last-child td{border-bottom:0}.production-screen-record .production-sheet-split{gap:var(--space-4);padding:0 var(--space-4) var(--space-4);background:var(--color-surface);border:0}.production-screen-record .production-sheet-split>div{border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-surface);min-width:0;overflow:hidden}.production-screen-record .production-sheet-split>div+div{border-left:1px solid var(--color-border-subtle)}.production-screen-record .production-sheet-split .production-sheet-section-title{margin-inline:var(--space-3)}.production-screen-record .production-sheet-split .production-sheet-field-grid{padding:var(--space-3);grid-template-columns:1fr}.app-shell .production-screen-record .production-sheet-observations{min-height:0;margin:var(--space-3) var(--space-4) var(--space-4);padding:var(--space-4);border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);color:var(--color-text-primary);background:var(--color-surface-muted)}.production-screen-record .production-sheet-observations span{color:var(--color-text-secondary);letter-spacing:.04em;text-transform:uppercase;font-size:.7rem}.production-screen-record .production-sheet-observations p{margin-top:var(--space-2);color:var(--color-text-primary);font-family:var(--font-body);line-height:1.5}.app-shell .production-screen-record .production-sheet-relations{margin:0 var(--space-4) var(--space-4);border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);color:var(--color-text-primary);background:var(--color-surface);padding:0;overflow:hidden}.production-screen-record .production-sheet-relations .production-sheet-section-title{padding-inline:var(--space-4);margin:0}.production-screen-record .production-relations-summary{margin:var(--space-3) var(--space-4) 0;color:var(--color-text-secondary);background:var(--color-surface-muted)}.production-screen-record .production-relation-grid{padding:var(--space-3) var(--space-4) var(--space-4)}.production-screen-form .production-form-sheet-body{color:var(--color-text-primary);background:var(--color-surface)}.production-screen-form .production-form-sheet-body form{padding:calc(var(--space-4) + var(--space-1))}.production-screen-form .production-form-sheet-body .production-register-heading{margin:0 0 calc(var(--space-4) + var(--space-1));padding:0 0 var(--space-3);border:0;border-bottom:1px solid var(--color-border-subtle);background:var(--color-surface)}.production-screen-form .production-register-heading strong{color:var(--color-text-primary);font-size:1rem}.production-screen-form .production-register-heading span{color:var(--color-text-secondary)}.production-screen-form .production-form-section-title{margin:calc(var(--space-4) + var(--space-1)) 0 var(--space-3);padding:0 0 var(--space-2);border:0;border-bottom:1px solid var(--color-border-subtle);color:var(--color-text-primary);background:var(--color-surface);letter-spacing:.03em}.production-screen-form .production-form-context{padding:var(--space-4);border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-surface-muted)}.production-screen-form .production-form-context-heading strong,.production-screen-form .production-form-context-grid dd{color:var(--color-text-primary)}.production-screen-form .production-form-context-heading span,.production-screen-form .production-form-context-grid dt{color:var(--color-text-secondary)}.app-shell .production-record-sheet.production-screen-form .production-form-sheet-body label{color:var(--color-text-secondary);background:var(--color-transparent);font-family:var(--font-body);font-weight:700}.app-shell .production-record-sheet.production-screen-form .production-form-sheet-body input,.app-shell .production-record-sheet.production-screen-form .production-form-sheet-body select,.app-shell .production-record-sheet.production-screen-form .production-form-sheet-body textarea{border-color:var(--color-border-strong);border-radius:var(--radius-control);color:var(--color-text-primary);background:var(--color-surface)}.app-shell .production-record-sheet.production-screen-form .production-form-sheet-body input:focus,.app-shell .production-record-sheet.production-screen-form .production-form-sheet-body select:focus,.app-shell .production-record-sheet.production-screen-form .production-form-sheet-body textarea:focus{border-color:var(--color-focus-ring);color:var(--color-text-primary);background:var(--color-surface-raised);outline:3px solid color-mix(in srgb, var(--color-focus-ring) 24%, var(--color-transparent));outline-offset:1px;box-shadow:none}.production-screen-form .production-form-actions{padding-top:var(--space-4);border-top:1px solid var(--color-border-subtle);justify-content:flex-end}}@media (width<=900px){.operational-summary-grid,.production-form-context-grid,.production-screen-record .production-sheet-field-grid,.production-screen-record .production-sheet-field-grid-compact,.production-screen-record .production-sheet-data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=560px){.operational-summary-grid,.production-dashboard .production-kpi-grid,.production-form-context-grid,.production-screen-record .production-sheet-record-id,.production-screen-record .production-sheet-field-grid,.production-screen-record .production-sheet-field-grid-compact,.production-screen-record .production-sheet-data-grid,.production-screen-record .production-sheet-split{grid-template-columns:1fr}.production-screen-record .production-sheet-record-id .production-sheet-field+.production-sheet-field{border-left:0;border-top:1px solid var(--color-border-subtle)}.production-form-context-heading,.operational-view-header{flex-direction:column}}@media print{.production-form-context{border-bottom:1px solid var(--color-document-ink);color:var(--color-document-ink);background:var(--color-document-surface);padding:4mm}.production-form-context-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.global-search{flex:30rem;max-width:34rem;position:relative}.global-search-input{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);width:100%;min-height:2.5rem;color:var(--color-text-primary);background:var(--color-surface);padding:.55rem .8rem}.global-search-toggle,.global-search-dismiss{display:none}.global-search-toggle{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-transparent);min-width:2.75rem;min-height:2.75rem;color:inherit;cursor:pointer;justify-content:center;align-items:center;font-size:1.1rem;line-height:1}.global-search-dismiss{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-transparent);min-width:2.75rem;min-height:2.75rem;color:inherit;cursor:pointer;justify-content:center;align-items:center;font-size:1.25rem;line-height:1}.global-search-toggle:focus-visible,.global-search-dismiss:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}@media (width<=560px){.global-search{flex:none;max-width:none;margin-left:auto}.global-search[data-mobile-open=false]{flex:none;order:0}.global-search[data-mobile-open=false] .global-search-input,.global-search[data-mobile-open=false] .global-search-dismiss,.global-search[data-mobile-open=false] .global-search-popover{display:none}.global-search-toggle{display:inline-flex}.global-search[data-mobile-open=true]{flex:100%;order:3;gap:.5rem;max-width:none;margin-left:0;display:flex}.global-search[data-mobile-open=true] .global-search-input{flex:auto;min-width:0;min-height:2.75rem;display:block}.global-search[data-mobile-open=true] .global-search-dismiss{flex:none;display:inline-flex}}.global-search-results{z-index:20;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-surface-raised);max-height:22rem;box-shadow:var(--shadow-card);margin:0;padding:.35rem;list-style:none;position:absolute;top:calc(100% + .35rem);left:0;right:0;overflow:auto}.order-detail-actions{align-items:center;gap:.5rem;display:flex}.order-detail-statusbar{flex-wrap:wrap;gap:.28rem;margin:.3rem 0 .4rem;display:flex}.order-pill{border:1px solid var(--color-border-strong);background:var(--color-surface-muted);color:var(--color-text-secondary);white-space:nowrap;border-radius:999px;align-items:center;padding:.08rem .5rem;font-size:.7rem;line-height:1.4;display:inline-flex}.order-detail-header h1{margin:0;font-size:1.15rem}.order-detail-header .panel-subtitle{margin:0;font-size:.68rem}.order-pill-confirmado{border-color:var(--color-success);color:var(--color-success);background:var(--color-success-soft)}.order-pill-cancelado{border-color:var(--color-danger);color:var(--color-danger);background:var(--color-danger-soft)}.order-detail-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.4rem;display:grid}.order-card{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-surface);flex-direction:column;gap:.3rem;padding:.45rem .6rem .5rem;display:flex}.order-card h3{text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-tertiary);margin:0;font-size:.62rem;font-weight:700}.order-card-wide{grid-column:1/-1}.order-data-grid{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:.22rem .6rem;margin:0;display:grid}.order-data-field{flex-direction:column;gap:0;min-width:0;display:flex}.order-data-field dt{color:var(--color-text-tertiary);font-size:.6rem;line-height:1.25}.order-data-field dd{color:var(--color-text-primary);overflow-wrap:anywhere;margin:0;font-size:.8rem;font-weight:600;line-height:1.3}.order-lines-table{min-width:460px}.order-lines-table th,.order-lines-table td{padding:.22rem .45rem;font-size:.78rem}.order-lines-table tfoot td{text-align:right;font-variant-numeric:tabular-nums;color:var(--color-text-secondary);padding-top:.15rem;padding-bottom:.15rem;font-size:.78rem}.order-detail-edit{grid-template-columns:minmax(0,1fr)}.customer-combobox{flex-direction:column;gap:.2rem;display:flex;position:relative}.customer-combobox>label{color:var(--color-text-secondary);font-size:.75rem}.customer-combobox input{border:1px solid var(--color-border-control-soft);border-radius:var(--radius-control);color:var(--color-text-primary);background:var(--color-surface);padding:.4rem .5rem;font-family:inherit;font-size:.85rem}.customer-search-popover{z-index:20;border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-surface-raised);max-height:18rem;box-shadow:var(--shadow-card);margin:0;padding:.35rem;list-style:none;position:absolute;top:calc(100% + .3rem);left:0;right:0;overflow:auto}.customer-search-option{border-radius:var(--radius-control);width:100%;color:var(--color-text-primary);background:var(--color-surface-raised);font:inherit;text-align:left;cursor:pointer;appearance:none;border:0;flex-direction:column;gap:.15rem;padding:.55rem .7rem;display:flex}.customer-search-option:hover,.customer-search-option[aria-selected=true]{background:var(--color-surface-tint)}.customer-search-option small{color:var(--color-text-secondary);font-size:.75rem}.global-search-result{border-radius:var(--radius-control);width:100%;color:var(--color-text-primary);background:var(--color-surface-raised);font:inherit;text-align:left;cursor:pointer;appearance:none;border:0;padding:.65rem .75rem;text-decoration:none;display:block}.global-search-result:hover{background:var(--color-surface-muted)}.global-search-result:focus-visible{background:var(--color-surface-muted);outline:3px solid var(--color-focus-ring);outline-offset:2px}.global-search-result[aria-selected=true]{color:var(--color-text-primary);background:var(--color-surface-tint)}.global-search-result strong,.global-search-result small{display:block}.global-search-result small{color:var(--color-text-secondary);margin-top:.2rem}.adaptive-shortcuts{gap:1rem;margin:0 0 1.25rem;display:grid}.adaptive-shortcut-group{border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-surface);min-width:0;padding:1rem}.adaptive-shortcut-heading{justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.7rem;display:flex}.adaptive-shortcut-heading h2{margin:0;font-size:.95rem}.adaptive-shortcut-heading button,.adaptive-shortcut-remove{color:var(--color-text-secondary);background:var(--color-transparent);cursor:pointer;border:0}.adaptive-shortcut-list{gap:.45rem;margin:0;padding:0;list-style:none;display:grid}.adaptive-shortcut-item{align-items:center;gap:.5rem;display:flex}.adaptive-shortcut-item a{border-radius:var(--radius-control);min-width:0;color:var(--color-text-primary);flex:1;padding:.55rem .65rem;text-decoration:none}.adaptive-shortcut-item a:hover,.adaptive-shortcut-item a:focus-visible{background:var(--color-surface-muted);outline:none}.adaptive-shortcut-meta{color:var(--color-text-secondary);margin-top:.15rem;font-size:.78rem;display:block}.unified-record-layout{border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);background:var(--color-surface);gap:1rem;min-width:0;padding:1.25rem;display:grid}.unified-record-header,.unified-record-actions,.unified-record-tabs,.integrated-section-heading,.unified-effect-summary{align-items:center;gap:.75rem;display:flex}.unified-record-header,.integrated-section-heading{justify-content:space-between}.unified-record-header h1{margin:0;font-size:clamp(1.2rem,2vw,1.65rem)}.unified-record-identifier,.unified-record-summary dd,.unified-record-panel small,.integrated-related-link small,.activity-timeline small{color:var(--color-text-secondary)}.unified-record-identifier{margin:.2rem 0 0}.unified-record-status{color:var(--color-text-secondary);background:var(--color-surface-muted);border-radius:999px;padding:.25rem .55rem;font-size:.8rem}.unified-record-summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:.6rem;margin:0;display:grid}.unified-record-summary>div{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);min-width:0;padding:.7rem}.unified-record-summary dt{color:var(--color-text-secondary);font-size:.75rem}.unified-record-summary dd{text-overflow:ellipsis;white-space:nowrap;margin:.2rem 0 0;font-weight:700;overflow:hidden}.unified-record-tabs{border-bottom:1px solid var(--color-border-subtle);overflow-x:auto}.unified-record-tabs button{border:0;border-bottom:2px solid var(--color-transparent);color:var(--color-text-secondary);background:var(--color-transparent);cursor:pointer;flex:none;padding:.65rem .2rem}.unified-record-tabs button.is-active{border-bottom-color:var(--color-focus-ring);color:var(--color-text-primary)}.unified-record-panel,.integrated-related,.activity-timeline{min-width:0}.unified-record-panel h2,.integrated-related h2,.activity-timeline h2{margin-top:0;font-size:1rem}.unified-effect-summary{border-left:3px solid var(--color-focus-ring);background:var(--color-surface-muted);flex-wrap:wrap;padding:.7rem .8rem}.unified-effect-summary span{color:var(--color-text-secondary);font-size:.85rem}.integrated-related-list,.activity-timeline-list{gap:.5rem;margin:0;padding:0;list-style:none;display:grid}.integrated-related-link{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);color:inherit;justify-content:space-between;align-items:center;gap:.75rem;padding:.7rem;text-decoration:none;display:flex}.integrated-related-link span:first-child{gap:.2rem;display:grid}.integrated-related-link:hover,.integrated-related-link:focus-visible{background:var(--color-surface-muted);outline:none}.activity-timeline-item{border-left:2px solid var(--color-border-strong);gap:.2rem;padding:.7rem;display:grid}.universal-edit-form{gap:1rem;display:grid}.universal-edit-fields{gap:.8rem;display:grid}.universal-edit-field{gap:.35rem;display:grid}.universal-edit-field label{font-weight:700}.universal-edit-field input,.universal-edit-field select,.universal-edit-field textarea{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);width:100%;min-height:2.45rem;color:var(--color-text-primary);background:var(--color-surface);padding:.55rem .65rem}.universal-edit-field textarea{resize:vertical;min-height:5rem}.universal-edit-errors,.universal-edit-success{border-radius:var(--radius-control);padding:.7rem}.universal-edit-errors{color:var(--color-danger);background:color-mix(in srgb, var(--color-danger) 10%, var(--color-surface))}.universal-edit-success{color:var(--color-success);background:color-mix(in srgb, var(--color-success) 10%, var(--color-surface))}.production-layout>.unified-record-layout,.production-screen-record{overflow-x:auto}@media (width<=900px){.unified-record-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.global-search{flex-basis:100%;max-width:none}}@media (width<=560px){.unified-record-layout{padding:.9rem}.unified-record-header{flex-direction:column;align-items:flex-start}.unified-record-summary{grid-template-columns:1fr 1fr}}@media screen{body,.app-shell,.shell-workspace{background:var(--demo-paper);color:var(--demo-ink)}.app-shell{grid-template-columns:14rem minmax(0,1fr)}.app-shell.sidebar-collapsed{grid-template-columns:4.25rem minmax(0,1fr)}.shell-topbar{background:var(--demo-navy);height:4rem;min-height:4rem;color:var(--demo-on-navy);box-shadow:var(--demo-navy-shadow);border:0;padding:0 1.25rem}.shell-brand,.shell-session{gap:.6rem}.shell-brand-logo{height:2rem}.shell-brand-logo-light{display:none}.shell-brand-logo-dark{display:block}.shell-brand-title{color:var(--demo-on-navy);font-size:.9rem;font-weight:650}.shell-menu-button{border-color:var(--demo-navy-line);color:var(--demo-on-navy);background:var(--demo-navy-veil-soft)}.shell-theme-toggle{border-color:var(--demo-navy-line);color:var(--demo-on-navy);background:var(--demo-navy-veil)}.shell-page-header-compact h1{font-size:1.35rem;font-weight:650}.adaptive-shortcuts-header{justify-content:space-between;align-items:baseline;gap:.5rem;margin-bottom:.45rem;display:flex}.adaptive-shortcuts-header h2{color:var(--demo-ink);margin:0;font-size:.95rem}.adaptive-shortcuts-clear{color:var(--demo-muted);cursor:pointer;text-underline-offset:2px;background:0 0;border:0;padding:0;font-size:.78rem;text-decoration:underline}.adaptive-shortcuts-clear:hover{color:var(--color-info)}.adaptive-shortcut-group{background:var(--color-transparent);border:0;padding:0}.adaptive-shortcut-group-title{letter-spacing:.06em;text-transform:uppercase;color:var(--demo-muted);margin:0 0 .3rem;font-size:.7rem;font-weight:600}.adaptive-shortcut-list{flex-wrap:wrap;gap:.35rem;margin:0;padding:0;list-style:none;display:flex}.adaptive-shortcut-item{display:inline-flex}.adaptive-shortcut-link{border:1px solid var(--demo-line-2);background:var(--demo-surface);max-width:100%;min-height:1.9rem;color:var(--demo-ink);border-radius:999px;align-items:center;gap:.4rem;padding:.2rem .55rem;font-size:.82rem;text-decoration:none;display:inline-flex}.adaptive-shortcut-link small{color:var(--demo-muted);text-overflow:ellipsis;white-space:nowrap;font-size:.72rem;overflow:hidden}.adaptive-shortcut-link:hover,.adaptive-shortcut-link:focus-visible{border-color:var(--color-info);background:var(--demo-soft);outline:none}.adaptive-shortcut-remove{background:var(--color-transparent);width:1.05rem;height:1.05rem;color:var(--demo-muted);opacity:.45;border:0;border-radius:50%;justify-content:center;align-items:center;margin-left:.1rem;padding:0;font-size:.85rem;line-height:1;display:inline-flex}.adaptive-shortcut-link:hover .adaptive-shortcut-remove,.adaptive-shortcut-remove:focus-visible,.adaptive-shortcut-remove:focus{opacity:1}.panel-flush{padding:.85rem}.finance-grid-compact{grid-template-columns:repeat(5,minmax(0,1fr))}.finance-card-compact{gap:.15rem;min-height:0;padding:.6rem .65rem}.finance-card-compact span{color:var(--demo-muted);font-size:.72rem}.finance-card-compact strong{font-size:1.25rem}.shell-session .btn-secondary{border-color:var(--demo-navy-line);min-height:2rem;color:var(--demo-on-navy);background:var(--color-transparent)}.global-search{max-width:34rem}.global-search-input{border-color:var(--demo-navy-line);min-height:2.35rem;color:var(--demo-on-navy);background:var(--demo-navy-veil)}.global-search-input::placeholder{color:var(--demo-on-navy-soft)}.global-search-input:focus{border-color:var(--demo-on-navy);outline:2px solid var(--demo-navy-focus);background:var(--demo-navy-veil-strong)}.global-search-results{border-color:var(--demo-line-2);background:var(--demo-surface);box-shadow:var(--demo-shadow-card)}.shell-sidebar{border-right:1px solid var(--demo-line);background:var(--demo-surface);padding:4.25rem .7rem .9rem}.shell-nav-group+.shell-nav-group{border-top-color:var(--demo-line);margin-top:.7rem;padding-top:.7rem}.shell-nav-group h2{color:var(--demo-muted);font-size:.66rem}.shell-nav-link{min-height:2.35rem;color:var(--demo-ink);border-radius:.45rem}.shell-nav-link:hover{background:var(--demo-soft)}.shell-nav-link[aria-current=page]{color:var(--color-info);background:var(--color-info-soft);box-shadow:inset 3px 0 var(--demo-navy-2)}.shell-workspace{overflow:auto}.shell-breadcrumbs{border-bottom-color:var(--demo-line);background:var(--demo-paper);min-height:2.45rem;padding:.45rem 1.5rem}.shell-breadcrumbs ol,.shell-breadcrumbs a{color:var(--demo-muted)}.shell-breadcrumbs [aria-current=page]{color:var(--demo-ink)}.app-shell .content{gap:.75rem;padding:1.25rem 1.5rem 2rem}.app-shell .panel,.app-shell .card{border:1px solid var(--demo-line);box-shadow:var(--demo-shadow-line);background:var(--demo-surface);border-radius:.625rem}.app-shell .panel h2,.app-shell .panel h3,.app-shell .card h2,.app-shell .card h3{color:var(--demo-ink)}.app-shell .panel-subtitle,.app-shell .panel-subtitle-highlight,.app-shell .summary-title{color:var(--demo-muted)}.app-shell .btn-primary,.app-shell .btn-secondary,.app-shell .ui-button{box-shadow:none;border-radius:.5rem}.app-shell .btn-primary,.app-shell .ui-button-primary{background:var(--demo-navy-2);color:var(--demo-on-navy)}.app-shell .btn-primary:hover,.app-shell .ui-button-primary:hover:not(:disabled){background:var(--demo-navy)}.app-shell .btn-secondary,.app-shell .ui-button-secondary{border-color:var(--demo-line-2);color:var(--demo-ink);background:var(--demo-surface)}.app-shell .btn-secondary:hover,.app-shell .ui-button-secondary:hover:not(:disabled){border-color:var(--color-info);background:var(--demo-soft)}.app-shell input,.app-shell textarea,.app-shell select{border-color:var(--demo-line-2);color:var(--demo-ink);background:var(--demo-surface);border-radius:.5rem}.app-shell input:focus,.app-shell textarea:focus,.app-shell select:focus{border-color:var(--color-info);outline:2px solid var(--demo-focus-ring-soft);box-shadow:none;background:var(--demo-surface)}.production-layout{gap:.75rem}.production-hero-card{padding:0;box-shadow:none!important;background:var(--color-transparent)!important;border:0!important}.production-toolbar{border:1px solid var(--demo-line);background:var(--demo-surface);border-radius:.625rem;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.7rem;padding:.7rem .8rem;display:grid}.production-toolbar-brand{min-height:2.5rem;color:var(--color-info);font-size:.98rem}.production-section-nav{border-left:1px solid var(--demo-line);flex-wrap:nowrap;gap:.15rem;min-width:0;padding-left:.55rem;overflow-x:auto}.production-section-nav .btn-secondary{border:0;border-bottom:2px solid var(--color-transparent);min-height:2.35rem;color:var(--demo-muted);background:var(--color-transparent);white-space:nowrap;border-radius:0;flex:none;padding:.25rem .5rem}.production-section-nav .btn-secondary:hover,.production-section-nav .btn-secondary:focus-visible,.production-section-nav .btn-secondary.is-active{color:var(--color-info);border-bottom-color:var(--color-info);background:var(--color-transparent)}.production-section-view[data-active-section=resumen]>#trazabilidad,.production-section-view[data-active-section=resumen]>#barricas,.production-section-view[data-active-section=resumen]>#origen,.production-section-view[data-active-section=resumen]>#envasado,.production-section-view[data-active-section=resumen]>#insumos,.production-section-view[data-active-section=trazabilidad]>#barricas,.production-section-view[data-active-section=trazabilidad]>#origen,.production-section-view[data-active-section=trazabilidad]>#envasado,.production-section-view[data-active-section=trazabilidad]>#insumos,.production-section-view[data-active-section=barricas]>#trazabilidad,.production-section-view[data-active-section=barricas]>#origen,.production-section-view[data-active-section=barricas]>#envasado,.production-section-view[data-active-section=barricas]>#insumos,.production-section-view[data-active-section=origen]>#trazabilidad,.production-section-view[data-active-section=origen]>#barricas,.production-section-view[data-active-section=origen]>#envasado,.production-section-view[data-active-section=origen]>#insumos,.production-section-view[data-active-section=envasado]>#trazabilidad,.production-section-view[data-active-section=envasado]>#barricas,.production-section-view[data-active-section=envasado]>#origen,.production-section-view[data-active-section=envasado]>#insumos,.production-section-view[data-active-section=insumos]>#trazabilidad,.production-section-view[data-active-section=insumos]>#barricas,.production-section-view[data-active-section=insumos]>#origen,.production-section-view[data-active-section=insumos]>#envasado{display:none}.production-layout:has(.production-section-view[data-active-section=trazabilidad])>#resumen{display:none}.production-layout:has(.production-section-view[data-active-section=barricas])>#resumen{display:none}.production-layout:has(.production-section-view[data-active-section=origen])>#resumen{display:none}.production-layout:has(.production-section-view[data-active-section=envasado])>#resumen{display:none}.production-layout:has(.production-section-view[data-active-section=insumos])>#resumen{display:none}.production-toolbar-search{order:4;grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;gap:.45rem;display:grid}.production-search-input,.production-filter-select,.production-action-select,.production-date-select{border-color:var(--demo-line-2);min-height:2.35rem;color:var(--demo-ink);background:var(--demo-surface);border-radius:.5rem}.production-action-select{border-color:var(--color-info);color:var(--demo-on-navy);background:var(--demo-navy-2)}.production-toolbar-actions{justify-content:flex-end}.production-toolbar .btn-secondary,.production-toolbar .production-action-select{min-height:2.35rem;padding:.3rem .55rem}.production-dashboard{gap:0;padding:0;overflow:hidden}.production-dashboard>.panel-header{border-bottom:1px solid var(--demo-line);align-items:center;min-height:3rem;margin:0;padding:.75rem .9rem}.production-dashboard>.panel-header h2{font-size:1rem}.production-kpi-grid{border-bottom:1px solid var(--demo-line);grid-template-columns:repeat(8,minmax(0,1fr));gap:0;padding:0}.production-dashboard .production-kpi-card{border:0;border-left:1px solid var(--demo-line);background:var(--demo-surface);min-height:5.5rem;box-shadow:none;border-radius:0;padding:.75rem .7rem}.production-dashboard .production-kpi-card:first-child{border-left:0}.production-dashboard .production-kpi-label{color:var(--demo-muted);font-size:.63rem;line-height:1.25}.production-dashboard .production-kpi-value{color:var(--color-info);font-size:1.25rem}.production-dashboard .production-kpi-foot{color:var(--demo-muted);font-size:.66rem}.production-summary-extra{padding:.7rem .9rem .9rem;display:block}.production-reference-details{border:0;border-top:1px solid var(--demo-line);background:var(--demo-surface);border-radius:0;padding:.6rem 0}.production-reference-details summary{color:var(--color-info)}.production-layout>.panel:not(.production-dashboard),.production-record-workspace{padding:.9rem}.production-layout>.panel>.panel-header,.production-record-workspace-header{border-bottom:1px solid var(--demo-line);margin-bottom:.7rem;padding-bottom:.65rem}.production-layout>.panel>.panel-header h2,.production-record-workspace-header h2{font-size:1rem}.production-two-column,.production-summary-extra,.production-stack-layout{gap:.7rem}.production-layout .card.compact{box-shadow:none;padding:.7rem}.production-layout .card.compact .summary-title{margin-bottom:.5rem;font-size:.76rem}.production-table-container{gap:.3rem}.production-result-count{color:var(--demo-muted);font-size:.72rem}.production-data-table-wrapper{border:1px solid var(--demo-line);background:var(--demo-surface);border-radius:.5rem;max-width:100%}.production-data-table{min-width:720px}.production-data-table th,.production-data-table td{border-bottom-color:var(--demo-line);height:2.7rem;padding:.45rem .65rem;font-size:.78rem}.production-data-table th{color:var(--demo-muted);background:var(--demo-soft);font-size:.66rem}.production-data-table tbody tr:hover td{background:var(--demo-hover-row)}.production-row-active td{background:var(--color-info-soft)!important}.production-row-incomplete td{background:var(--demo-cream)}.production-row-incomplete td:first-child{border-left-color:var(--demo-green)}.production-pagination{justify-content:flex-end;padding-top:.65rem}.unified-record-layout{background:var(--color-transparent);box-shadow:none;border:0;border-radius:0;gap:0;padding:0}.unified-record-header{border:1px solid var(--demo-line);background:var(--demo-surface);border-bottom:0;border-radius:.625rem .625rem 0 0;align-items:center;min-height:5rem;padding:.9rem 1rem}.unified-record-header h1{color:var(--demo-ink);font-size:clamp(1.15rem,2vw,1.5rem)}.unified-record-header .shell-eyebrow{color:var(--color-info)}.unified-record-identifier{color:var(--demo-muted)}.unified-record-actions{flex-wrap:wrap;justify-content:flex-end}.unified-record-actions .ui-button{min-height:2.25rem;padding-inline:.7rem}.unified-record-status{border:1px solid var(--demo-line-success);color:var(--demo-green);background:var(--color-success-soft);font-weight:700}.unified-record-summary{border:1px solid var(--demo-line);background:var(--demo-surface);border-bottom:0;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;padding:0}.unified-record-summary>div{border:0;border-left:1px solid var(--demo-line);background:var(--color-transparent);border-radius:0;min-height:4.25rem;padding:.7rem .75rem}.unified-record-summary>div:first-child{border-left:0}.unified-record-summary dt{color:var(--demo-muted);letter-spacing:.04em;text-transform:uppercase;font-size:.66rem;font-weight:650}.unified-record-summary dd{color:var(--demo-ink);margin-top:.3rem;font-size:.9rem}.unified-record-tabs{border:1px solid var(--demo-line);background:var(--demo-surface);border-bottom:0;gap:0;padding:0 .65rem}.unified-record-tabs button{min-height:2.55rem;color:var(--demo-muted);border-bottom-width:2px;padding:.55rem .75rem;font-size:.78rem}.unified-record-tabs button.is-active{border-bottom-color:var(--color-info);color:var(--color-info);font-weight:700}.unified-record-body{border:1px solid var(--demo-line);background:var(--demo-surface);border-radius:0 0 .625rem .625rem}.unified-record-panel{padding:1rem}.unified-record-panel h2{color:var(--demo-ink);margin-bottom:.75rem;font-size:.95rem}.unified-record-panel>.production-record-workspace{box-shadow:none;background:var(--color-transparent);border:0;border-radius:0;margin:-1rem}.unified-record-all-relations{color:var(--color-info);background:var(--color-transparent);border:0;margin-top:.6rem;font-size:.78rem;text-decoration:underline}.universal-edit-form{gap:.75rem}.ui-drawer-content,.ui-dialog-header,.ui-dialog-footer{border-color:var(--demo-line);background:var(--demo-surface)}.ui-dialog-footer{background:var(--demo-soft)}.ui-dialog-title{color:var(--demo-ink)}.ui-dialog-description,.ui-field-description{color:var(--demo-muted)}.production-screen-record .production-sheet-field-grid .production-sheet-field,.production-screen-record .production-sheet-data-grid .production-sheet-field{border-color:var(--demo-line);background:var(--demo-soft);border-radius:.5rem;min-height:3.8rem;padding:.65rem}.production-screen-record .production-sheet-table-wrap,.production-screen-record .production-sheet-split>div,.production-screen-record .production-sheet-relations{border-color:var(--demo-line);border-radius:.5rem}.production-screen-record .production-sheet-table th{color:var(--demo-muted);background:var(--demo-soft)}.production-screen-record .production-sheet-table td{background:var(--demo-surface)}.production-chip,.production-pill{border:1px solid var(--demo-line-chip);color:var(--demo-green);background:var(--color-success-soft)}.production-pill-strong,.production-chip-clickable{border-color:var(--demo-line-info);color:var(--color-info);background:var(--color-info-soft)}.production-chip-clickable:hover{color:var(--demo-on-navy);background:var(--demo-navy-2)}.production-pipeline-node,.production-trace-focus{border-color:var(--demo-line);background:var(--demo-surface);border-radius:.5rem}.production-pipeline-node-empty{border-color:var(--demo-line-2);background:var(--demo-soft)}.production-error-panel{color:var(--demo-danger-ink);border-color:var(--demo-danger-line)!important;background:var(--demo-danger-bg)!important}.production-warning-panel{color:var(--demo-warning-ink);border-color:var(--demo-warning-line)!important;background:var(--demo-cream)!important}}@media screen and (width<=900px){.app-shell,.app-shell.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.shell-topbar{height:auto;min-height:4rem}.skip-link{top:calc(var(--shell-topbar-height) + .5rem)}.shell-sidebar{padding:.75rem}.finance-grid-compact{grid-template-columns:repeat(auto-fit,minmax(7.5rem,1fr))}.production-toolbar{grid-template-columns:minmax(0,1fr) auto}.production-toolbar-brand{grid-column:1/-1}.production-section-nav{border-left:0;border-top:1px solid var(--demo-line);order:2;grid-column:1/-1;padding:.35rem 0 0}.production-toolbar-actions{order:3}.production-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.production-dashboard .production-kpi-card:nth-child(5){border-left:0}.unified-record-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.app-shell .content{padding:1rem}}@media screen and (width<=560px){.shell-topbar{padding:.6rem .7rem}.shell-brand-title{display:none}.shell-session{gap:.35rem}.shell-breadcrumbs{padding-inline:.75rem}.app-shell .content{padding:.75rem}.production-toolbar{grid-template-columns:1fr}.production-toolbar-actions,.production-toolbar-search{grid-column:1;width:100%}.production-toolbar-search{grid-template-columns:1fr}.production-toolbar-actions{justify-content:stretch}.production-toolbar-actions>*{flex:1 1 0}.production-kpi-grid,.production-dashboard .production-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.production-dashboard .production-kpi-card,.production-dashboard .production-kpi-card:nth-child(5){border-left:1px solid var(--demo-line)}.production-dashboard .production-kpi-card:nth-child(odd){border-left:0}.production-layout>.panel:not(.production-dashboard),.production-record-workspace{padding:.7rem}.unified-record-header{align-items:flex-start;gap:.75rem;padding:.8rem}.unified-record-actions{justify-content:flex-start;width:100%}.unified-record-actions .ui-button{flex:auto}.unified-record-summary{grid-template-columns:1fr 1fr}.unified-record-summary>div,.unified-record-summary>div:first-child{border-left:1px solid var(--demo-line);border-bottom:1px solid var(--demo-line)}.unified-record-summary>div:nth-child(odd){border-left:0}.unified-record-panel{padding:.75rem}.unified-record-panel>.production-record-workspace{margin:-.75rem}.production-data-table-wrapper{overflow-x:auto}.production-data-table,.production-data-table-wrapper table,.production-data-table-wrapper thead,.production-data-table-wrapper tbody,.production-data-table-wrapper tr,.production-data-table-wrapper th,.production-data-table-wrapper td,.production-data-table-wrapper table{display:table}.production-data-table-wrapper thead{display:table-header-group}.production-data-table-wrapper tbody{display:table-row-group}.production-data-table-wrapper tr{display:table-row}.production-data-table-wrapper th,.production-data-table-wrapper td{white-space:nowrap;height:2.7rem;padding:.45rem .6rem;display:table-cell}.production-data-table-wrapper td:before{content:none}.production-record-workspace-header{flex-direction:column;align-items:flex-start}}.app-shell .production-record-sheet.production-record-sheet-form .production-form-sheet-body label{color:var(--color-document-ink);background:var(--color-document-surface)}.app-shell .production-record-sheet.production-record-sheet-form .production-form-sheet-body input,.app-shell .production-record-sheet.production-record-sheet-form .production-form-sheet-body select,.app-shell .production-record-sheet.production-record-sheet-form .production-form-sheet-body textarea{border-color:var(--color-document-ink);color:var(--color-document-ink);background:var(--color-document-surface)}.app-shell .production-record-sheet.production-record-sheet-form .production-form-sheet-body input:focus,.app-shell .production-record-sheet.production-record-sheet-form .production-form-sheet-body select:focus,.app-shell .production-record-sheet.production-record-sheet-form .production-form-sheet-body textarea:focus{border-color:var(--color-document-focus);color:var(--color-document-ink);background:var(--color-document-surface);outline:3px solid var(--color-document-focus);outline-offset:1px;box-shadow:none}.app-shell .ui-button-compact{min-width:var(--control-height-compact);min-height:var(--control-height-compact)}.fin-compact{flex-direction:column;gap:.5rem;display:flex}.fin-statbar{flex-flow:wrap;align-items:center;gap:.35rem 1.4rem;padding:.45rem .7rem}.fin-stat{flex-direction:column;gap:.05rem;min-width:8rem;display:flex}.fin-stat-final{border-top:2px solid var(--color-brand-solid);padding-top:.3rem}.fin-stat-label{text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-tertiary);font-size:.6rem;font-weight:600}.fin-stat-value{font-variant-numeric:tabular-nums;color:var(--color-text-primary);font-size:1rem;font-weight:700}.fin-stat-value.is-in{color:var(--color-success)}.fin-stat-value.is-out{color:var(--color-danger)}.fin-ciclo{flex-wrap:wrap;align-items:center;gap:.4rem;display:flex}.fin-ciclo-track{background:var(--color-border-subtle);border-radius:999px;width:110px;height:8px;overflow:hidden}.fin-ciclo-fill{background:var(--color-success);border-radius:999px;height:100%;transition:width .3s}.fin-ciclo-fill.is-done{background:var(--color-danger)}.fin-ciclo-input{width:3.4rem;min-height:var(--control-height-compact);text-align:center;font-variant-numeric:tabular-nums;padding:0 .25rem}.fin-hint{color:var(--color-text-tertiary);font-size:.68rem}.fin-hint-ellipsis{text-overflow:ellipsis;white-space:nowrap;vertical-align:middle;max-width:240px;display:inline-block;overflow:hidden}.fin-last{align-items:center;gap:.6rem;margin-left:auto;display:flex}.fin-filters{gap:.5rem .75rem;margin-bottom:.35rem}.fin-filters label{margin-bottom:.1rem;font-size:.62rem}.fin-filters select,.fin-filters input{min-height:1.9rem;padding:.1rem .35rem;font-size:.8rem}.fin-table table{font-size:.78rem}.fin-table th,.fin-table td{padding:.22rem .45rem}.fin-form-actions{align-items:center;gap:.4rem;display:flex}.fin-pagination{border-top:1px solid var(--color-border-subtle);justify-content:center;align-items:center;gap:.6rem;padding:.3rem;display:flex}.fin-gp-header{align-items:center}.fin-gp-table{max-height:320px;overflow-y:auto}.fin-cell-notes{text-overflow:ellipsis;white-space:nowrap;max-width:120px;overflow:hidden}.fin-empty{text-align:center;padding:.4rem 0}.fin-chart-panel .chart-wrapper{min-height:300px}.fin-chart-panel .chart-small{min-height:220px;max-height:260px}.fin-filter-inline{margin:0}.fin-filter-inline label{margin-bottom:.1rem;font-size:.62rem}.fin-filter-inline input{min-height:1.9rem;padding:.1rem .35rem;font-size:.8rem}@media (width<=760px){.fin-stat{min-width:40%}.fin-last{margin-left:0}}.order-detail-screen{background:var(--color-transparent);width:100%;max-width:1500px;box-shadow:none;border:0;margin:0 auto;padding:0}.order-detail-screen .order-detail-header{background:var(--color-transparent);border:0;align-items:flex-start;gap:1rem;padding:0 0 .75rem}.order-detail-actions,.order-detail-statusbar,.order-flow-heading,.conversations-screen .conversations-header,.conversations-screen .conv-list-header,.conversations-screen .detail-head-actions,.conversations-screen .conv-row-meta,.conversations-screen .conv-list-footer{align-items:center;display:flex}.order-detail-actions{flex-wrap:wrap;justify-content:flex-end;gap:.5rem}.order-detail-back{justify-content:center;align-items:center;display:inline-flex}.order-detail-statusbar{flex-wrap:wrap;gap:.5rem;min-height:3rem;padding:.35rem 0 .8rem}.order-status-action{border-color:var(--color-border-strong);background:var(--color-transparent);min-width:6.5rem;margin-left:.15rem;min-height:44px!important}.order-status-action:hover:not(:disabled),.order-status-action:focus-visible{background:var(--color-surface-muted)}.order-flow{border:1px solid var(--color-border-subtle);border-radius:var(--radius-lg,12px);background:var(--color-surface);width:100%;box-shadow:var(--shadow-sm);padding:1.35rem}.order-flow-lead{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:1rem;padding-bottom:1.35rem;display:grid}.order-flow-description{color:var(--color-text-secondary);margin:.3rem 0 0}.order-customer-grid,.order-commercial-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem 1.25rem;margin:0;display:grid}.order-commercial-grid{margin-top:1.5rem}.order-data-field{min-width:0}.order-data-field dt,.order-total dt{color:var(--color-text-tertiary);letter-spacing:.02em;font-size:.72rem;font-weight:600}.order-data-field dd{overflow-wrap:anywhere;color:var(--color-text-primary);margin:.12rem 0 0}.order-total{text-align:right;place-self:start end;margin:0}.order-total dd{color:var(--color-text-primary);letter-spacing:-.03em;margin:.05rem 0 0;font-size:clamp(1.35rem,2vw,1.8rem);font-weight:750}.order-commercial-actions{gap:.75rem;margin-top:1rem;display:grid}.order-flow-heading{justify-content:space-between;gap:.75rem;margin-bottom:.8rem}.order-flow-heading h2{margin:0;font-size:1.08rem}.order-flow-heading>span{color:var(--color-text-tertiary);font-size:.82rem}.order-micro-label{color:var(--color-text-tertiary);letter-spacing:.08em;text-transform:uppercase;margin:0 0 .55rem;font-size:.7rem;font-weight:700}.order-flow-products{margin-top:2rem;padding-top:.2rem}.order-lines-table{width:100%;min-width:700px}.order-flow .order-lines-table{min-width:700px;display:table}.order-flow .order-lines-table thead{display:table-header-group}.order-flow .order-lines-table tbody{display:table-row-group}.order-flow .order-lines-table tfoot{display:table-footer-group}.order-flow .order-lines-table tr{background:var(--color-transparent);border:0;border-radius:0;padding:0;display:table-row}.order-flow .order-lines-table th,.order-flow .order-lines-table td{display:table-cell}.order-flow .order-lines-table td:before{content:none}.order-flow .table-wrapper{max-width:100%;overflow:auto hidden}.order-flow-note{color:var(--color-text-tertiary);margin:.7rem 0 0;font-size:.8rem}.order-detail-screen .order-detail-edit{gap:1rem;margin-top:.5rem;display:grid}.conversations-screen{width:100%;max-width:1500px;margin:0 auto}.conversations-screen .conversations-header{justify-content:space-between;gap:1rem;margin-bottom:1rem}.conversations-screen .conversations-header h1{margin:.1rem 0 0}.conversations-screen .conversations-subtitle{color:var(--color-text-secondary);margin:.35rem 0 0}.conversations-screen .conv-toolbar{grid-template-columns:minmax(12rem,.35fr) minmax(18rem,.75fr) auto;align-items:end;gap:.8rem;margin-bottom:1rem;display:grid}.conversations-screen .conv-filter-group{min-width:0}.conversations-screen .conv-filter-group label{color:var(--color-text-secondary);gap:.35rem;font-size:.78rem;font-weight:600;display:grid}.conversations-screen .conv-filter-group select,.conversations-screen .conv-filter-group input{width:100%;min-width:0}.conversations-screen .conv-filter-clear{min-height:44px}.conversations-screen .conv-toolbar,.conversations-screen .conv-list.panel,.conversations-screen .conv-detail.panel{border:1px solid var(--color-border-subtle);border-radius:var(--radius-card,16px);background:var(--color-surface);box-shadow:var(--shadow-subtle,none)}.conversations-screen .conv-layout{grid-template-columns:minmax(22rem,.78fr) minmax(0,1.22fr);align-items:start;gap:1rem;display:grid}.conversations-screen .conv-layout-list-only{grid-template-columns:minmax(0,1fr)}.conversations-screen .conv-list,.conversations-screen .conv-detail{min-width:0}.conversations-screen .conv-list.panel,.conversations-screen .conv-detail.panel{padding:1rem}.conversations-screen .conv-list-header{justify-content:space-between;gap:.75rem;padding:0 .25rem .8rem}.conversations-screen .conv-list-header h2{margin:.1rem 0 0;font-size:1rem}.conversations-screen .conv-list-count{background:var(--color-surface-muted);min-width:2rem;min-height:2rem;color:var(--color-text-secondary);border-radius:999px;place-items:center;font-size:.78rem;font-weight:700;display:inline-grid}.conversations-screen .conv-list-body{gap:.35rem;display:grid}.conversations-screen .conv-row{border:1px solid var(--color-border-subtle);background:var(--color-surface);border-radius:.65rem;min-width:0;position:relative;overflow:hidden}.conversations-screen .conv-row.is-selected{border-color:var(--color-border-strong);background:var(--color-surface-muted)}.conversations-screen .conv-row.is-pending{background:var(--color-warning-soft)}.conversations-screen .conv-row.is-pending:before{z-index:0;background:var(--color-warning-accent,var(--color-warning));content:"";pointer-events:none;border-radius:.65rem 0 0 .65rem;width:.32rem;position:absolute;inset:0 auto 0 0}.conversations-screen .conv-row.is-pending.is-selected{background:var(--color-warning-soft)}.conversations-screen .conv-row-trigger{z-index:1;background:var(--color-transparent);width:100%;min-width:0;min-height:2.5rem;color:inherit;font:inherit;text-align:left;cursor:pointer;border:0;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.55rem;padding:.3rem .75rem .1rem;display:grid;position:relative}.conversations-screen .conv-row-trigger:hover{background:var(--color-surface-hover,var(--color-surface-muted))}.conversations-screen .conv-row.is-pending .conv-row-trigger:hover{background:var(--color-warning-soft)}.conversations-screen .conv-row-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.86rem;overflow:hidden}.conversations-screen .conv-row-trigger time{color:var(--color-text-tertiary);font-variant-numeric:tabular-nums;white-space:nowrap;justify-self:end;font-size:.7rem}.conversations-screen .conv-row-meta{z-index:1;min-width:0;color:var(--color-text-secondary);flex-wrap:wrap;gap:0;padding:0 .75rem .2rem;font-size:.72rem;line-height:1.25;position:relative}.conversations-screen .conv-row-meta>*{min-width:0}.conversations-screen .conv-row-meta>*+:before{color:var(--color-text-tertiary);content:"·";margin:0 .45rem}.conversations-screen .conv-row-meta a{align-items:center;min-height:1.25rem;display:inline-flex}.conversations-screen .conversation-status-chip,.conversations-screen .conversation-status{white-space:nowrap;border-radius:999px;align-items:center;width:fit-content;padding:.22rem .52rem;font-size:.7rem;font-weight:700;display:inline-flex}.conversations-screen .conversation-status-chip-activa,.conversations-screen .conversation-status-activa{background:var(--color-success-soft);color:var(--color-success-strong,var(--color-success))}.conversations-screen .conversation-status-chip-pendiente,.conversations-screen .conversation-status-pendiente{background:var(--color-warning-soft);color:var(--color-warning-strong,var(--color-warning))}.conversations-screen .conversation-status-chip-resuelta,.conversations-screen .conversation-status-resuelta{background:var(--color-surface-muted);color:var(--color-text-tertiary)}.conversations-screen .conv-order-summary a{font-weight:650}.conversations-screen .conv-contact-actions{align-items:center;display:inline-flex}.conversations-screen .conv-contact-link{color:var(--color-accent);font-size:.78rem}.conversations-screen .conv-list-footer{color:var(--color-text-tertiary);flex-wrap:wrap;justify-content:space-between;gap:.5rem;padding:.8rem .25rem 0;font-size:.76rem}.conversations-screen .conv-list-footer .pagination{margin:0}.conversations-screen .conv-loading{text-align:center}.conversations-screen .conversations-header{margin-bottom:.6rem}.conversations-screen .conversations-heading h1{font-size:1.35rem;line-height:1.2}.conversations-screen .conversations-subtitle{margin-top:.15rem;font-size:.78rem}.conversations-screen .conv-refresh{align-items:center;gap:.35rem;min-height:44px;display:inline-flex}.conversations-screen .conv-toolbar{grid-template-columns:minmax(0,1fr) minmax(8rem,12rem) auto;align-items:center;margin-bottom:.6rem;padding:.6rem}.conversations-screen .conv-toolbar input,.conversations-screen .conv-toolbar select{min-height:44px}.conversations-screen .conv-row-trigger{grid-template-columns:auto minmax(0,1fr) auto;row-gap:.15rem;padding-top:.45rem}.conversations-screen .conv-row-preview{min-width:0;color:var(--color-text-secondary);text-overflow:ellipsis;white-space:nowrap;grid-column:1/-1;font-size:.8rem;overflow:hidden}.conversations-screen .conv-row-meta .conv-row-number{color:var(--color-text-tertiary);font-variant-numeric:tabular-nums}.conversations-screen .conv-row-meta{padding-bottom:.4rem}.conversations-screen .detail-head{grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:.75rem;padding-bottom:.85rem;display:grid}.conversations-screen .detail-head-copy{min-width:0}.conversations-screen .detail-head-copy h2{-webkit-line-clamp:2;overflow-wrap:anywhere;word-break:break-word;-webkit-box-orient:vertical;min-width:0;margin:.1rem 0 0;display:-webkit-box;overflow:hidden}.conversations-screen .detail-subtitle{color:var(--color-text-secondary);overflow-wrap:anywhere;word-break:break-word;margin:.25rem 0 0}.conversations-screen .detail-head-actions{justify-content:flex-end;gap:.5rem}.conversations-screen .conv-detail-back{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control,8px);background:var(--color-transparent);width:44px;min-width:44px;height:44px;min-height:44px;color:var(--color-text-primary);font:inherit;cursor:pointer;justify-content:center;align-items:center;padding:0;font-size:1.45rem;line-height:1;display:inline-flex}.conversations-screen .conversation-contact-strip{color:var(--color-text-secondary);justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:.85rem;padding:.65rem 0;display:flex}.conversations-screen .conversation-contact-strip .conv-contact-link{align-items:center;min-height:44px;display:inline-flex}.conversations-screen .conversation-status-control{margin-bottom:.85rem}.conversations-screen .conversation-status-control label{max-width:18rem;color:var(--color-text-secondary);gap:.35rem;font-size:.78rem;font-weight:600;display:grid}.conversations-screen .linked-order{border-top:1px solid var(--color-border-subtle);border-bottom:1px solid var(--color-border-subtle);margin:0 0 1rem;padding:.75rem 0}.conversations-screen .linked-main{flex-wrap:wrap;align-items:center;gap:.45rem .7rem;min-width:0;font-size:.82rem;display:flex}.conversations-screen .linked-status{color:var(--color-text-secondary)}.conversations-screen .linked-total{margin-left:auto;font-weight:700}.conversations-screen .disclosure{border:1px solid var(--color-border-subtle);background:var(--color-transparent);min-height:44px;color:var(--color-accent);font:inherit;cursor:pointer;border-radius:.45rem;padding:.35rem .65rem;font-size:.76rem}.conversations-screen .linked-lines{max-width:100%;margin-top:.75rem;overflow-x:auto}.conversations-screen .linked-lines table{width:100%;min-width:30rem}.conversations-screen .conversation-tabs{border-bottom:1px solid var(--color-border-subtle);gap:.2rem;margin-bottom:.75rem;display:flex}.conversations-screen .conversation-tabs button{border:0;border-bottom:2px solid var(--color-transparent);background:var(--color-transparent);min-height:2.75rem;color:var(--color-text-secondary);font:inherit;cursor:pointer;padding:.45rem .7rem;font-size:.8rem}.conversations-screen .conversation-tabs button[aria-selected=true]{border-bottom-color:var(--color-accent);color:var(--color-text-primary);font-weight:700}.conversations-screen .message-scroll{overscroll-behavior:contain;flex:auto;gap:.5rem;min-height:0;max-height:min(34rem,55vh);padding:.15rem .1rem;display:grid;overflow-y:auto}.conversations-screen .conversation-message{border-radius:.7rem;max-width:88%;padding:.7rem .8rem}.conversations-screen .conversation-message.client{background:var(--color-info-soft);justify-self:start}.conversations-screen .conversation-message.assistant{background:var(--color-success-soft);justify-self:end}.conversations-screen .conversation-message.agent{background:var(--color-warning-soft);justify-self:end}.conversations-screen .conversation-message.system{background:var(--color-surface-muted);justify-self:center;max-width:36rem;font-size:.85rem}.conversations-screen .conversation-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:.25rem 0 0;font-size:.88rem}.conversations-screen .message-meta{color:var(--color-text-tertiary);justify-content:space-between;gap:.75rem;font-size:.68rem;display:flex}.conversations-screen .conversation-notes{margin-top:1rem}.conversations-screen .conversation-notes h3{margin:0 0 .45rem;font-size:.82rem}.conversations-screen .conversation-note{background:var(--color-warning-soft);border-radius:.45rem;margin-top:.35rem;padding:.55rem .65rem}.conversations-screen .conversation-note small{color:var(--color-text-tertiary);font-size:.68rem}.conversations-screen .conversation-note p{overflow-wrap:anywhere;margin:.2rem 0 0;font-size:.8rem}.conversations-screen .conversation-activity{gap:.45rem;display:grid}.conversations-screen .conversation-activity-item{border-bottom:1px solid var(--color-border-subtle);gap:.2rem;padding:.65rem 0;display:grid}.conversations-screen .conversation-activity-item small{color:var(--color-text-tertiary)}.conversations-screen .conv-composer{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:1rem;display:grid}.conversations-screen .conv-composer-row{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.5rem;display:grid}.conversations-screen .conv-composer-row label{min-width:0;color:var(--color-text-secondary);gap:.3rem;font-size:.75rem;font-weight:600;display:grid}.conversations-screen .conv-composer-row input{width:100%;min-width:0}.conversations-screen button:focus-visible,.conversations-screen a:focus-visible,.order-detail-screen button:focus-visible,.order-detail-screen a:focus-visible,.order-detail-screen select:focus-visible,.conversations-screen select:focus-visible,.conversations-screen input:focus-visible{outline:3px solid var(--color-focus,var(--color-accent));outline-offset:2px}@media (width<=1199px){.conversations-screen .conv-layout{grid-template-columns:minmax(0,1fr)}.conversations-screen .conv-detail{order:2}.conversations-screen .conv-list{order:1}.conversations-screen .message-scroll{max-height:min(60rem,72vh)}.conversations-screen.conv-detail.panel,.conversations-screen .conv-detail.panel{height:calc(100vh - var(--shell-topbar-height) - 2rem - 2.6rem);height:calc(100dvh - var(--shell-topbar-height) - 2rem - 2.6rem);min-height:calc(100vh - var(--shell-topbar-height) - 2rem - 2.6rem);min-height:calc(100dvh - var(--shell-topbar-height) - 2rem - 2.6rem);flex-direction:column;display:flex}.conversations-screen.conv-detail.panel .message-scroll,.conversations-screen .conv-detail.panel .message-scroll,.conversations-screen.conv-detail.panel .conversation-activity,.conversations-screen .conv-detail.panel .conversation-activity{flex:auto;min-height:0;max-height:none;overflow-y:auto}}@media (width<=1100px){.order-customer-grid,.order-commercial-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width>=1200px){.conversations-screen .conv-detail-back{display:none}.conversations-screen .detail-head{grid-template-columns:minmax(0,1fr) auto}}@media (width<=720px){.order-flow-lead{grid-template-columns:minmax(0,1fr)}.order-total{text-align:left;justify-self:start}.order-customer-grid,.order-commercial-grid{grid-template-columns:minmax(0,1fr)}.conversations-screen.conv-detail.panel,.conversations-screen .conv-detail.panel{z-index:10001;background:var(--color-surface);width:100%;height:100dvh;max-height:100dvh;box-shadow:none;border:0;border-radius:0;padding:.75rem;display:flex;position:fixed;inset:0;overflow:hidden}.conversations-screen.conv-detail.panel .detail-head,.conversations-screen .conv-detail .detail-head{z-index:2;border-bottom:1px solid var(--color-border-subtle);background:var(--color-surface);flex:none;margin:-.75rem -.75rem 0;padding:.65rem .75rem .6rem;position:sticky;top:0}.conversations-screen .conv-toolbar select,.conversations-screen .conv-toolbar input,.conversations-screen .conversation-status-control select,.conversations-screen.conv-detail.panel .conversation-status-control select{min-height:44px}.conversations-screen.conv-detail.panel .message-scroll,.conversations-screen .message-scroll{flex:auto;min-height:0;max-height:none;overflow-y:auto}.conversations-screen.conv-detail.panel .conversation-activity,.conversations-screen .conversation-activity{flex:auto;min-height:0;overflow-y:auto}.conversations-screen.conv-detail.panel .conv-composer,.conversations-screen .conv-composer{flex:none;grid-template-columns:minmax(0,1fr);gap:.5rem;margin-top:.75rem}.conversations-screen.conv-detail.panel .conv-composer-row,.conversations-screen .conv-composer-row{grid-template-columns:minmax(0,1fr);gap:.35rem}.conversations-screen.conv-detail.panel .conv-composer-row input,.conversations-screen.conv-detail.panel .conv-composer-row button,.conversations-screen .conv-composer-row input,.conversations-screen .conv-composer-row button{width:100%;min-height:44px}.conversations-screen .conv-row-meta a{min-height:44px}.conversations-screen .conv-row-meta{padding-bottom:0}.conversations-screen .conv-row-trigger{min-height:44px}.conversations-screen.conv-detail.panel .linked-main a,.conversations-screen .linked-main a{align-items:center;min-height:44px;display:inline-flex}.conversations-screen .conv-list .pagination button{min-height:44px}.conversations-screen .conv-list.panel,.conversations-screen.conv-detail.panel,.conversations-screen .conv-detail.panel{padding:.75rem}.conversations-screen.conv-detail.panel .linked-main,.conversations-screen .linked-main{flex-direction:column;align-items:flex-start}.conversations-screen.conv-detail.panel .linked-total,.conversations-screen .linked-total{margin-left:0}.conversations-screen.conv-detail.panel .conversation-message,.conversations-screen .conversation-message{max-width:94%}}.conversations-screen .conv-detail-midbar,.conversations-screen .conv-composer-main{display:contents}.conversations-screen .conv-note-toggle,.conversations-screen .conv-order-chip{display:none}@media (width<=720px){.conversations-screen.conv-detail.panel .detail-head-copy .shell-eyebrow,.conversations-screen .conv-detail.panel .detail-head-copy .shell-eyebrow,.conversations-screen.conv-detail.panel .detail-subtitle,.conversations-screen .conv-detail.panel .detail-subtitle{display:none}.conversations-screen.conv-detail.panel .detail-head,.conversations-screen .conv-detail.panel .detail-head{gap:.5rem;min-height:3.25rem;padding:.375rem .75rem}.conversations-screen.conv-detail.panel .detail-head-copy,.conversations-screen .conv-detail.panel .detail-head-copy{min-width:0}.conversations-screen.conv-detail.panel .detail-head-copy h2,.conversations-screen .conv-detail.panel .detail-head-copy h2{white-space:nowrap;text-overflow:ellipsis;margin:0;font-size:1rem;line-height:1.25;display:block;overflow:hidden}.conversations-screen.conv-detail.panel .conversation-contact-strip,.conversations-screen .conv-detail.panel .conversation-contact-strip{margin-bottom:.5rem;padding:.25rem 0}.conversations-screen.conv-detail.panel .conv-detail-midbar,.conversations-screen .conv-detail.panel .conv-detail-midbar{align-items:center;gap:.5rem;min-height:3rem;margin-bottom:.5rem;display:flex;overflow-x:auto}.conversations-screen.conv-detail.panel .conv-detail-midbar .conversation-status-control,.conversations-screen .conv-detail.panel .conv-detail-midbar .conversation-status-control{flex:none;margin-bottom:0}.conversations-screen.conv-detail.panel .conv-detail-midbar .conversation-status-control label,.conversations-screen .conv-detail.panel .conv-detail-midbar .conversation-status-control label{gap:0;max-width:none;font-size:0}.conversations-screen.conv-detail.panel .conv-detail-midbar .conversation-status-control select,.conversations-screen .conv-detail.panel .conv-detail-midbar .conversation-status-control select{width:auto;max-width:8.5rem;font-size:.8rem}.conversations-screen.conv-detail.panel .conv-order-chip,.conversations-screen .conv-detail.panel .conv-order-chip{border:1px solid var(--color-border-subtle);background:var(--color-surface-muted);min-height:44px;color:var(--color-text-primary);white-space:nowrap;border-radius:999px;flex:none;align-items:center;padding:0 .6rem;font-size:.8rem;font-weight:700;text-decoration:none;display:inline-flex}.conversations-screen.conv-detail.panel .conv-detail-midbar .conversation-tabs,.conversations-screen .conv-detail.panel .conv-detail-midbar .conversation-tabs{border-bottom:0;flex:none;margin-bottom:0}.conversations-screen.conv-detail.panel .conv-detail-midbar .conversation-tabs button,.conversations-screen .conv-detail.panel .conv-detail-midbar .conversation-tabs button{white-space:nowrap;min-height:44px;padding:.4rem .55rem}.conversations-screen.conv-detail.panel .linked-order,.conversations-screen .conv-detail.panel .linked-order{margin-bottom:.5rem;padding:.5rem 0}.conversations-screen.conv-detail.panel .conv-composer,.conversations-screen .conv-detail.panel .conv-composer{margin-top:.5rem}.conversations-screen.conv-detail.panel .conv-composer-note.is-collapsed,.conversations-screen .conv-detail.panel .conv-composer-note.is-collapsed{display:none}.conversations-screen.conv-detail.panel .conv-composer-note.is-open,.conversations-screen .conv-detail.panel .conv-composer-note.is-open,.conversations-screen.conv-detail.panel .conv-composer-reply,.conversations-screen .conv-detail.panel .conv-composer-reply{grid-template-columns:minmax(0,1fr) auto;gap:.5rem}.conversations-screen.conv-detail.panel .conv-composer-main,.conversations-screen .conv-detail.panel .conv-composer-main{align-items:end;gap:.5rem;display:flex}.conversations-screen.conv-detail.panel .conv-composer-reply,.conversations-screen .conv-detail.panel .conv-composer-reply{flex:auto;min-width:0}.conversations-screen.conv-detail.panel .conv-composer-row label,.conversations-screen .conv-detail.panel .conv-composer-row label{font-size:0}.conversations-screen.conv-detail.panel .conv-composer-row input,.conversations-screen .conv-detail.panel .conv-composer-row input,.conversations-screen.conv-detail.panel .conv-composer-row button,.conversations-screen .conv-detail.panel .conv-composer-row button{font-size:.85rem}.conversations-screen.conv-detail.panel .conv-note-toggle,.conversations-screen .conv-detail.panel .conv-note-toggle{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control,8px);background:var(--color-surface-muted);width:44px;min-width:44px;height:44px;min-height:44px;color:var(--color-text-primary);cursor:pointer;flex:none;justify-content:center;align-items:center;padding:0;font-size:1.1rem;line-height:1;display:inline-flex}}@media (width<=640px){.order-detail-screen .order-detail-header,.conversations-screen .conversations-header{flex-direction:column;align-items:stretch}.order-detail-actions{justify-content:flex-start}.order-detail-actions>*,.conversations-screen .conversations-header>button{min-height:44px}.order-detail-statusbar{align-items:stretch}.order-status-action{min-height:44px}.order-flow{padding:1rem}.conversations-screen .conversations-header{flex-direction:row;align-items:center}.conversations-screen .conversations-header>button{flex:none}.conversations-screen .conv-refresh-label{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.conversations-screen .conv-refresh{justify-content:center;width:44px;padding:0;font-size:1.15rem}.conversations-screen .conv-toolbar{grid-template-columns:minmax(0,1fr) 7.5rem;gap:.5rem}.conversations-screen .conv-filter-clear{grid-column:1/-1;min-height:44px}.conversations-screen .conv-list.panel{padding:.5rem}.conversations-screen .conv-row-trigger{gap:.45rem;padding-inline:.65rem}.conversations-screen .conv-row-meta{padding-inline:.65rem}}.home-inicio{gap:.75rem;min-width:0;display:grid}.home-header{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.75rem;min-height:2.25rem;display:grid}.home-header h1{margin:0;font-family:inherit;font-size:1.35rem;font-weight:700;line-height:1.2}.home-updated{color:var(--color-text-secondary);white-space:nowrap;align-items:center;gap:.3rem;font-size:.74rem;display:inline-flex}.home-updated-icon{fill:currentColor;flex:none;width:.85rem;height:.85rem}.home-surface{background:var(--color-surface);border:1px solid var(--color-border-subtle);border-radius:var(--radius-card);min-width:0;box-shadow:var(--shadow-sm);overflow:hidden}.home-surface-header{justify-content:space-between;align-items:center;gap:.75rem;min-width:0;padding:.6rem .9rem .45rem;display:flex}.home-surface-header h2{overflow-wrap:anywhere;min-width:0;margin:0;font-size:1.02rem;font-weight:700;line-height:1.2}.home-surface-subtitle{color:var(--color-text-secondary);margin-top:.1rem;font-size:.78rem;font-weight:400;display:block}.home-surface-link{border-radius:var(--radius-control);min-height:2.75rem;color:var(--color-brand-solid);white-space:nowrap;justify-content:center;align-items:center;margin:-.5rem 0;padding:0 .25rem;font-size:.85rem;font-weight:600;line-height:1.2;text-decoration:none;display:inline-flex}.home-surface-link:hover{background:var(--color-surface-hover);text-decoration:underline}.home-surface-link:focus-visible,.home-attention-primary:focus-visible,.home-attention-row:focus-visible,.home-sale-row:focus-visible,.home-disclosure-btn:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.home-ventas .home-surface-header{flex-wrap:wrap}.home-sales-heading{white-space:nowrap}.home-ventas .home-surface-header>.home-sales-selector{flex:auto;justify-content:center;margin:0}@media (width<=719px){.home-ventas .home-surface-header>.home-sales-selector{flex-basis:100%;order:1}}.home-ciclo{align-items:center;gap:.6rem;min-width:0;margin-top:.7rem;display:flex}.home-ciclo-label{color:var(--color-text-secondary);white-space:nowrap;font-size:.72rem;font-weight:600}.home-ciclo-track{background:var(--color-border-subtle);border-radius:999px;flex:auto;min-width:60px;height:8px;overflow:hidden}.home-ciclo-fill{background:var(--color-success);border-radius:999px;height:100%;transition:width .3s}.home-ciclo-fill.is-done{background:var(--color-danger)}.home-ciclo-value{font-variant-numeric:tabular-nums;white-space:nowrap;font-size:.78rem;font-weight:700}.home-pendientes{padding:0}.home-pendientes-body,.home-surface-body{padding:.2rem .9rem .7rem}.home-attention-primary{border:1px solid var(--color-border-subtle);border-radius:var(--radius-control);background:var(--color-warning-soft);width:100%;min-height:2.75rem;color:inherit;text-align:center;justify-content:center;align-items:center;gap:.5rem;margin-bottom:.5rem;padding:.4rem .9rem;text-decoration:none;display:flex}.home-attention-primary .home-ap-left{flex-direction:column;align-items:center;display:flex}.home-ap-label{color:var(--color-warning);font-size:.8rem;font-weight:600}.home-ap-value{color:var(--color-warning);font-size:1.5rem;font-weight:700;line-height:1.1}.home-disclosure{border-top:1px solid var(--color-border-subtle)}.home-disclosure-btn{width:100%;min-width:0;min-height:2.75rem;color:var(--color-text-secondary);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem .9rem;font-size:.92rem;font-weight:600;list-style:none;display:flex}.home-disclosure-btn::-webkit-details-marker{display:none}.home-disclosure[open] .home-chevron{transform:rotate(90deg)}.home-chevron{color:var(--color-text-secondary);flex:none;font-size:1rem;line-height:1;transition:transform .16s}.home-disclosure-body{padding:0 .5rem .6rem}.home-attention-row{border-radius:var(--radius-control);width:100%;min-width:0;min-height:2.75rem;color:inherit;text-align:left;justify-content:space-between;align-items:center;gap:.75rem;padding:.4rem;font-size:.92rem;text-decoration:none;display:flex}.home-attention-row:hover{background:var(--color-surface-hover)}.home-ar-label{color:var(--color-text-primary);font-size:.92rem}.home-ar-value{font-variant-numeric:tabular-nums;color:var(--color-text-secondary);font-weight:600}.home-ar-value.zero{color:var(--color-success)}.home-attention-list{gap:.25rem;padding:0 0 .5rem;display:grid}.home-attention-row--pending{background:var(--color-warning-soft)}.home-attention-row--pending .home-ar-label{font-weight:600}.home-attention-row--pending .home-ar-value{color:var(--color-warning);font-size:1rem}.home-ap-hint{color:var(--color-text-secondary);font-size:.72rem}.home-lower-grid{grid-template-columns:minmax(0,1fr);align-items:start;gap:.75rem;min-width:0;display:grid}.home-sales-selector{border:1px solid var(--color-border-strong);background:var(--color-surface-muted);border-radius:8px;gap:3px;min-width:0;margin:0;padding:3px;display:flex}.home-sales-selector label{cursor:pointer;flex:1;min-width:0;position:relative}.home-sales-selector input{opacity:0;width:1px;height:1px;position:absolute}.home-sales-selector span{white-space:nowrap;min-height:44px;color:var(--color-text-secondary);border-radius:5px;justify-content:center;align-items:center;padding:0 4px;font-size:.72rem;font-weight:600;display:flex}.home-sales-selector input:checked+span{color:var(--color-text-primary);background:var(--color-surface);box-shadow:var(--shadow-sm)}.home-sales-selector input:focus-visible+span{outline:2px solid var(--color-success);outline-offset:1px}.home-range-message{color:var(--color-warning);margin:0 0 .3rem;font-size:.8rem;font-weight:600}.home-ventas-cols{border-top:1px solid var(--color-border-subtle);border-bottom:1px solid var(--color-border-subtle);grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr);gap:.45rem;margin-bottom:.4rem;padding:.4rem 0;display:grid}.home-last-sales{gap:.1rem;display:grid}.home-last-sales-title{color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:.04em;margin:.2rem 0 .1rem;font-size:.78rem;font-weight:600}.home-ventas-cols .home-vc+.home-vc{border-left:1px solid var(--color-border-subtle);padding-left:.45rem}.home-vc-label{text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-secondary);font-size:.72rem}.home-vc-value{font-variant-numeric:tabular-nums;white-space:nowrap;margin-top:.05rem;font-size:1.05rem;font-weight:700}.home-vc-value.pos{color:var(--color-success)}.home-vc-value.neg{color:var(--color-warning)}.home-sale-row{border-radius:var(--radius-control);width:100%;min-height:2.75rem;color:inherit;text-align:left;justify-content:space-between;align-items:flex-start;gap:.75rem;padding:.4rem;text-decoration:none;display:flex}.home-sale-row:hover{background:var(--color-surface-hover)}.home-sale-main{flex-direction:column;flex:auto;min-width:0;display:flex}.home-sale-ref{color:var(--color-brand-solid);font-size:.9rem;font-weight:600}.home-sale-meta{color:var(--color-text-secondary);font-size:.78rem}.home-sale-amount{white-space:nowrap;font-variant-numeric:tabular-nums;flex:none;align-self:flex-start;margin-top:.15rem;font-size:.98rem;font-weight:700}.home-sale-row>.home-chevron{align-self:flex-start;margin-top:.35rem}.home-finance-totals>div{justify-content:space-between;align-items:center;gap:.65rem;padding:.4rem 0;font-size:.9rem;display:flex}.home-finance-totals dt{color:var(--color-text-secondary)}.home-finance-totals dd{font-variant-numeric:tabular-nums;white-space:nowrap;margin:0;font-weight:600}.home-finance-totals .finance-subtotal{border-top:1px solid var(--color-border-subtle)}.home-finance-totals .finance-final{border-top:1px solid var(--color-border-strong);margin-top:.3rem}.home-finance-totals .finance-final dt,.home-finance-totals .finance-final dd{color:var(--color-success);font-weight:700}.home-finance-totals .finance-final dd{font-size:1.15rem}.home-finance-totals .finance-pending dd{color:var(--color-warning)}.home-prod-sub{padding-top:.25rem}.home-prod-sub+.home-prod-sub{border-top:1px solid var(--color-border-subtle);margin-top:.4rem;padding-top:.6rem}.home-prod-sub-header{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.5rem;display:flex}.home-prod-sub-header h3{color:var(--color-text-primary);text-transform:none;margin:0;font-size:.92rem;font-weight:700;line-height:1.2}.home-prod-line{overflow-wrap:anywhere;margin:.1rem 0 .35rem;font-size:.92rem;line-height:1.45}.home-prod-line strong{font-variant-numeric:tabular-nums;font-weight:700}.home-prod-line--summary{margin-bottom:.35rem}.home-unit{color:var(--color-text-secondary);font-size:.82rem}.home-insumo-link{margin-top:.35rem}.home-insumos-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;margin-top:.3rem;padding-bottom:.2rem;display:grid}.home-insumo-cell{padding:.25rem 0}.home-insumo-cell+.home-insumo-cell{border-left:1px solid var(--color-border-subtle);padding-left:.75rem}.home-ic-label{text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-secondary);font-size:.7rem}.home-ic-value{font-variant-numeric:tabular-nums;font-size:1.05rem;font-weight:700}.home-barrica-list{gap:.15rem;display:grid}.home-barrica-row{min-width:0;margin-bottom:.35rem;padding:0;font-size:.9rem}.home-barrica-name{font-weight:600;display:block}.home-badge{white-space:nowrap;border-radius:999px;padding:.15rem .45rem;font-size:.72rem;font-weight:600;line-height:1.3;display:inline-block}.home-badge--success{background:var(--color-success-soft);color:var(--color-success)}.home-badge--neutral{background:var(--color-surface-muted);border:1px solid var(--color-border-subtle);color:var(--color-text-secondary)}.home-state{color:var(--color-text-secondary);margin:0;padding:.75rem 1rem;font-size:.8rem}.home-state--error{border-radius:var(--radius-control);background:var(--color-danger-soft);color:var(--color-danger);justify-content:space-between;align-items:center;gap:.75rem;margin:.25rem 1rem .75rem;padding:.55rem .7rem;display:flex}.home-state--error button{border:1px solid var(--color-danger);border-radius:var(--radius-control);background:var(--color-surface);min-height:2.75rem;color:var(--color-danger);font:inherit;cursor:pointer;flex:none;padding:.35rem .6rem;font-size:.78rem;font-weight:600}.home-empty{color:var(--color-text-secondary);margin:0;padding:.35rem 0 0;font-size:.8rem}.home-disclosure[open] .home-disclosure-btn{margin-bottom:.25rem}.home-ventas .home-disclosure,.home-prod-sub .home-disclosure{margin-top:0}@media (width>=1200px){.home-header h1{font-size:1.65rem}.home-pendientes-body{align-items:center;gap:18px;padding:14px 18px;display:flex}.home-pendientes .home-attention-primary{flex:none;width:245px;margin:0}.home-pendientes .home-disclosure{border:0;flex:1;margin:0}.home-pendientes .home-disclosure-btn{display:none}.home-pendientes .home-disclosure-body{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:0;display:grid}.home-pendientes .home-attention-row{text-align:center;flex-direction:column;gap:6px;min-height:0;padding:8px 2px;font-size:.74rem}.home-pendientes .home-ar-value{font-size:1.05rem}.home-pendientes .home-chevron{display:none}.home-lower-grid{grid-template-columns:minmax(0,1.45fr) minmax(310px,1fr);gap:1.125rem}.home-lower-col{align-content:start;gap:1.125rem;min-width:0;display:grid}.home-sales-selector{width:max-content;max-width:100%}.home-sales-selector label{flex:none}.home-sales-selector span{padding-inline:.7rem}.home-ventas-cols .home-vc-value{font-size:1.12rem}.home-finance-totals{grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;display:grid}.home-finance-totals>div{border-top:0;flex-direction:column;justify-content:flex-start;align-items:flex-start;gap:.2rem;margin-top:0;padding:.3rem 0}.home-finance-totals>div+div{border-left:1px solid var(--color-border-subtle);padding-left:.75rem}.home-finance-totals .finance-subtotal,.home-finance-totals .finance-final{border-top:0;margin-top:0}.home-finance-totals dd{font-size:1.12rem}.home-ap-hint{font-size:.68rem}}.session-expired-overlay{z-index:70;background:var(--color-overlay);place-items:center;padding:1rem;display:grid;position:fixed;inset:0}.session-expired-panel{border-radius:var(--radius-card);background:var(--color-surface);width:min(26rem,100%);color:var(--color-text-primary);box-shadow:var(--shadow-overlay);gap:.75rem;padding:1.25rem;display:grid}.session-expired-panel h2{margin:0;font-size:1.15rem}.session-expired-panel p{color:var(--color-text-secondary);margin:0}.session-expired-panel .btn-primary{min-height:2.75rem}
