@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:.375rem;--radius-card:.5rem;--radius-overlay:.75rem;--control-height:2.5rem;--control-height-compact:2rem;--shadow-subtle:0 .125rem .5rem #1a17120f;--shadow-overlay:0 1rem 2.5rem #1a171238;--motion-fast:.16s;--motion-normal:.2s;--ease-standard:ease}:root,:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-canvas:#f8f4ec;--color-surface:#fff;--color-surface-muted:#f1ebdd;--color-surface-raised:#fff;--color-surface-inverse:#111;--color-transparent:transparent;--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-brand-decorative:#c9a962;--color-focus-ring:#6f5723;--color-overlay:#1a17129e;--color-success:#166534;--color-success-soft:#dcfce7;--color-warning:#92400e;--color-warning-soft:#fef3c7;--color-danger:#b91c1c;--color-danger-soft:#fee2e2;--color-info:#1d4ed8;--color-info-soft:#dbeafe;--color-chart-primary:#6f5723;--color-chart-secondary:#a88a4a;--color-chart-positive:#166534;--color-chart-negative:#b91c1c;--color-chart-neutral:#8b7f6c;--color-text-tertiary:#5f584d;--color-text-muted:#5f584d;--color-border-control:#cbd5e1;--color-border-control-soft:#cbd5f5;--color-brand-accent:#22d3ee;--color-brand-gradient:#6366f1;--color-brand-gradient-end:#8b5cf6;--color-info-strong:#3730a3;--color-danger-strong:#991b1b;--color-document-ink:#111827;--color-document-surface:#fff;--color-document-focus:#6f5723;--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:#6366f10d;--color-surface-tint-accent:#22d3ee0d;--color-overlay-legacy:#0f172a99;--color-shadow-legacy:#0f172a40;--color-shadow-legacy-subtle:#0f172a14;--color-document-rule:#11182761}:root[data-theme=dark]{--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-border-control:#706759;--color-border-control-soft:#50483d;--color-brand-accent:#7dd3fc;--color-brand-gradient:#9b87f5;--color-brand-gradient-end:#c4b5fd;--color-info-strong:#bfdbfe;--color-danger-strong:#fca5a5;--color-document-ink:#111;--color-document-surface:#fff;--color-document-focus:#6f5723;--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:#111;--color-surface-tint:#9b87f51f;--color-surface-tint-accent:#7dd3fc1f;--color-overlay-legacy:#000000b8;--color-shadow-legacy:#00000080;--color-shadow-legacy-subtle:#0000003d;--color-document-rule:#11111161}@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%}}*{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{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:linear-gradient(135deg, var(--color-surface-inverse), var(--color-text-primary));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:linear-gradient(135deg, var(--color-surface-tint), var(--color-surface-tint-accent));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:linear-gradient(135deg, var(--color-focus-ring), var(--color-brand-accent));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:linear-gradient(135deg, var(--color-text-primary), var(--color-surface-inverse));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%;max-width:980px;margin:0 auto}.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:.8rem;margin:0;padding:.8rem 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:.45rem;padding:.55rem;display:grid}.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);border:1px solid var(--color-info-soft);background:var(--color-info-soft);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}.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:linear-gradient(135deg, var(--color-focus-ring), var(--color-brand-gradient-end));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:linear-gradient(135deg, var(--color-surface-tint), var(--color-surface-tint-accent));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;background:var(--color-surface-raised);color:var(--color-text-primary);border-radius:var(--radius-control);padding:.55rem .8rem;position:fixed;top:.5rem;left:.5rem;transform:translateY(-150%)}.skip-link:focus{outline:3px solid var(--color-focus-ring);outline-offset:2px;transform:translateY(0)}.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}.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{background:var(--color-surface);border-right:1px solid var(--color-border-subtle);grid-area:2/1;min-height:0;padding:.75rem;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-group ul{gap:.15rem;margin:0;padding:0;list-style:none;display:grid}.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-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-menu-button: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{color:var(--color-text-secondary)}.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-home-grid{grid-template-columns:minmax(0,2fr) minmax(15rem,1fr);align-items:start;gap:.75rem;display:grid}.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<=900px){.app-shell{grid-template-columns:minmax(0,1fr)}.shell-topbar,.shell-workspace{grid-column:1}.shell-menu-button{display:inline-flex}.shell-sidebar{z-index:50;visibility:hidden;width:min(19rem,86vw);box-shadow:var(--shadow-overlay);transition:transform .18s ease-out,visibility .18s;position:fixed;top:3.75rem;bottom:0;left:0;transform:translate(-105%)}.shell-sidebar[data-open=true]{visibility:visible;transform:translate(0)}.shell-backdrop{z-index:40;background:var(--color-overlay);border:0;padding:0;display:block;position:fixed;inset:3.75rem 0 0}.shell-home-grid{grid-template-columns:minmax(0,1fr)}}@media (width<=560px){.shell-topbar{padding:.55rem .7rem}.shell-brand-title,.shell-session-status{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-control{align-items:center;gap:var(--space-2);color:var(--color-text-secondary);white-space:nowrap;font-size:.78rem;display:inline-flex}.shell-theme-control select{min-height:var(--control-height-compact);padding:0 var(--space-2);border:1px solid var(--color-border-strong);border-radius:var(--radius-control);color:var(--color-text-primary);background:var(--color-surface-muted)}.shell-theme-control select:focus-visible,.shell-menu-button:focus-visible,.shell-session .btn-secondary:focus-visible{outline:3px solid var(--color-focus-ring);outline-offset:2px}.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{min-height:var(--control-height);border-radius:var(--radius-control);border:1px solid var(--color-transparent);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,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,.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}.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))}}
