.container--sheet-calc{max-width:min(100% - 1.5rem,1180px)}.sheet-calc-wrap{margin-top:.25rem}.sheet-calc-card{padding:0;overflow:hidden;border:1px solid hsl(var(--border));box-shadow:0 1px 2px #0f172a0a,0 8px 24px #0f172a0f}.sheet-calc-card__toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.85rem 1.25rem;padding:1.1rem 1.25rem;border-bottom:1px solid hsl(var(--border));background:linear-gradient(180deg,var(--bg-elevated) 0,var(--bg) 100%)}.sheet-calc-card__title{margin:.1rem 0 0;font-size:var(--fs-lg);font-weight:800;letter-spacing:-.02em}.sheet-calc-card__hint{margin:.2rem 0 0;font-size:var(--fs-xs)}.sheet-calc-card__tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.65rem .85rem}.sheet-calc-print-btn{gap:.4rem}.sheet-calc-density label{display:block;font-size:var(--fs-xs);margin-bottom:.3rem;color:hsl(var(--muted-foreground));font-weight:600}.sheet-calc-density select{min-width:11rem;padding:.45rem .65rem;font-size:var(--fs-sm);border-radius:8px}.sheet-calc-entries{padding:.65rem 1rem 1rem;display:flex;flex-direction:column;gap:.5rem}.sheet-calc-entry{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,40%);gap:0;border:1px solid hsl(var(--border));border-radius:10px;overflow:hidden;background:var(--bg);min-height:0}.sheet-calc-entry--valid{border-color:oklch(.5 .134 242.749/.22)}.sheet-calc-entry__data{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .55rem;padding:.45rem .65rem;min-width:0;border-inline-end:1px solid hsl(var(--border))}.sheet-calc-row-badge{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-width:1.5rem;height:1.5rem;border-radius:6px;background:var(--accent-dim);border:1px solid oklch(.5 .134 242.749/.25);font-size:var(--fs-xs);font-weight:800;color:var(--accent)}.sheet-calc-entry__fields{display:flex;flex:1 1 auto;flex-wrap:wrap;gap:.35rem .45rem;min-width:min(100%,20rem)}.sheet-calc-field{display:flex;flex-direction:column;gap:.15rem;flex:1 1 4.5rem;min-width:4rem;max-width:6.5rem}.sheet-calc-field--qty{flex:0 1 3.5rem;max-width:4rem}.sheet-calc-field>span{font-size:.65rem;font-weight:700;color:hsl(var(--muted-foreground));line-height:1.2}.sheet-calc-cell-input{width:100%;padding:.32rem .4rem;font-size:var(--fs-sm);border:1px solid hsl(var(--border));border-radius:6px;background:#fff;transition:border-color .15s,box-shadow .15s}.sheet-calc-cell-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-dim)}.sheet-calc-entry__weights{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .75rem;font-size:var(--fs-xs);color:hsl(var(--muted-foreground));flex-shrink:0}.sheet-calc-entry__weight strong{font-weight:700;color:hsl(var(--foreground));margin-inline-start:.2rem}.sheet-calc-entry__weight--total strong{font-weight:800;color:var(--accent)}.sheet-calc-entry__diagram{padding:.35rem .45rem;background:#f8fafc;display:flex;align-items:stretch;min-height:0}.sheet-calc-entry__diagram-empty{font-size:var(--fs-xs);padding:.5rem;margin:auto}.sheet-calc-sketch{display:grid;grid-template-columns:1fr 1fr auto;gap:.45rem;align-items:stretch;width:100%;min-width:0}.sheet-calc-sketch__views{display:contents}.sheet-calc-sketch__view{display:flex;flex-direction:column;gap:.25rem;min-width:0;padding:.35rem;background:#fff;border:1px solid #e2e8f0;border-radius:8px}.sheet-calc-sketch__title{margin:0;font-size:.65rem;font-weight:800;color:#64748b;text-align:center}.sheet-calc-sketch__draw{flex:1;display:flex;flex-direction:column;gap:.35rem;min-height:72px;padding:.35rem .4rem .3rem;background:#f8fafc;border-radius:6px;border:1px dashed #e2e8f0}.sheet-calc-sketch__draw-row{gap:.35rem;min-height:48px}.sheet-calc-sketch__draw-row,.sheet-calc-sketch__plate-wrap{flex:1;display:flex;align-items:center;justify-content:center}.sheet-calc-sketch__plate-wrap{min-width:0;padding:.15rem}.sheet-calc-sketch__plate{background:#fff;border:2px solid var(--accent);border-radius:3px;box-shadow:0 1px 2px #0f172a0f;width:100%;max-width:100%;max-height:44px}.sheet-calc-sketch__side-stack{flex:1;display:flex;flex-direction:column;justify-content:flex-end;min-width:0;min-height:44px;padding:0 .15rem}.sheet-calc-sketch__plate--length{flex:1;width:100%;min-height:12px;background:#fef2f2;border:2px solid var(--accent);border-bottom:none;border-radius:3px 3px 0 0}.sheet-calc-sketch__plate--thick{width:100%;min-height:12px;background:#fee2e2;border:2px solid var(--accent);border-radius:0 0 3px 3px;flex-shrink:0}.sheet-calc-dim{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#334155}.sheet-calc-dim--h{flex-direction:column;width:100%;gap:.2rem}.sheet-calc-dim--v{flex-direction:row;align-self:stretch;gap:.25rem;padding:.15rem 0}.sheet-calc-dim__line{display:block;background:#64748b;position:relative}.sheet-calc-dim--h .sheet-calc-dim__line{width:88%;height:1px}.sheet-calc-dim--h .sheet-calc-dim__line:after,.sheet-calc-dim--h .sheet-calc-dim__line:before{content:"";position:absolute;top:-3px;width:1px;height:7px;background:#64748b}.sheet-calc-dim--h .sheet-calc-dim__line:before{left:0}.sheet-calc-dim--h .sheet-calc-dim__line:after{right:0}.sheet-calc-dim--v .sheet-calc-dim__line{width:1px;flex:1;min-height:36px;max-height:44px}.sheet-calc-dim--v .sheet-calc-dim__line:after,.sheet-calc-dim--v .sheet-calc-dim__line:before{content:"";position:absolute;left:-3px;width:7px;height:1px;background:#64748b}.sheet-calc-dim--v .sheet-calc-dim__line:before{top:0}.sheet-calc-dim--v .sheet-calc-dim__line:after{bottom:0}.sheet-calc-dim__text{font-size:.62rem;font-weight:700;white-space:nowrap;text-align:center;line-height:1.3}.sheet-calc-dim--v .sheet-calc-dim__text{writing-mode:vertical-rl;transform:rotate(180deg);max-height:5.5rem}.sheet-calc-dim__text strong{font-weight:800;color:#0f172a}.sheet-calc-dim__unit{font-weight:600;color:#64748b;font-size:.58rem}.sheet-calc-dim--accent{color:var(--accent)}.sheet-calc-dim--accent .sheet-calc-dim__line,.sheet-calc-dim--accent .sheet-calc-dim__line:after,.sheet-calc-dim--accent .sheet-calc-dim__line:before{background:var(--accent)}.sheet-calc-dim--accent .sheet-calc-dim__text strong{color:var(--accent)}.sheet-calc-sketch__specs{display:flex;flex-direction:column;gap:.3rem;padding:.4rem .55rem;background:#fff;border:1px solid #e2e8f0;border-radius:8px;min-width:5.25rem;justify-content:center}.sheet-calc-sketch__specs-title{margin:0 0 .15rem;font-size:.65rem;font-weight:800;color:#64748b;text-align:center;padding-bottom:.25rem;border-bottom:1px solid #e2e8f0}.sheet-calc-sketch__spec-row{display:flex;justify-content:space-between;align-items:baseline;gap:.35rem;font-size:.68rem}.sheet-calc-sketch__spec-row span{color:#64748b;font-weight:600}.sheet-calc-sketch__spec-row strong{font-weight:800;color:#1e293b}.sheet-calc-sketch--compact{grid-template-columns:1fr 1fr;gap:4pt}.sheet-calc-sketch--compact .sheet-calc-sketch__views{display:contents}.sheet-calc-sketch--compact .sheet-calc-sketch__view{padding:2pt;border-radius:3pt}.sheet-calc-sketch--compact .sheet-calc-sketch__title{font-size:6.5pt}.sheet-calc-sketch--compact .sheet-calc-sketch__draw{min-height:0;padding:2pt}.sheet-calc-sketch--compact .sheet-calc-dim__text{font-size:6pt}.sheet-calc-sketch--compact .sheet-calc-sketch__plate{max-height:28pt}.sheet-calc-print-only{display:none}.sheet-calc-print-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:9pt}.sheet-calc-print-table__caption{caption-side:top;text-align:right;font-weight:800;font-size:9pt;padding:0 0 6pt;color:#111}.sheet-calc-print-table__unit{font-weight:600;font-size:7.5pt;color:#555}.sheet-calc-remove{display:inline-flex;align-items:center;justify-content:center;width:1.85rem;height:1.85rem;padding:0;margin-inline-start:auto;border:none;border-radius:8px;background:#0000;color:#94a3b8;cursor:pointer;transition:background .15s,color .15s}.sheet-calc-remove:hover:not(:disabled){background:#fee2e2;color:var(--accent)}.sheet-calc-remove:disabled{opacity:.35;cursor:not-allowed}.sheet-calc-add-row{display:flex;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:.7rem 1rem;border:1.5px dashed hsl(var(--border));border-radius:10px;background:var(--bg-elevated);color:var(--accent);font-size:var(--fs-sm);font-weight:700;cursor:pointer;transition:background .15s,border-color .15s}.sheet-calc-add-row:hover{background:var(--accent-dim);border-color:var(--accent-light)}.sheet-calc-summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:0 1rem .65rem;padding:.55rem .85rem;border-radius:8px;background:var(--accent-dim);border:1px solid oklch(.5 .134 242.749/.2);font-size:var(--fs-sm)}.sheet-calc-summary__label{font-weight:700}.sheet-calc-summary__value{text-align:end;font-size:var(--fs-lg);color:var(--accent);font-weight:800}.sheet-calc-summary__ton{margin-inline-start:.5rem;color:hsl(var(--muted-foreground))}.sheet-calc-summary__ton,.sheet-calc-unit{font-size:var(--fs-sm);font-weight:600}.sheet-calc-hint{margin:0 1.15rem 1rem;padding:.75rem;font-size:var(--fs-sm);border-radius:8px;border:1px dashed hsl(var(--border))}.sheet-calc-card__footer,.sheet-calc-hint{text-align:center;background:var(--bg-elevated)}.sheet-calc-card__footer{padding:.65rem 1.25rem;font-size:var(--fs-xs);border-top:1px solid hsl(var(--border))}.sheet-calc-print-dochead,.sheet-calc-print-watermark{display:none}@media (max-width:900px){.sheet-calc-entry{grid-template-columns:1fr}.sheet-calc-entry__data{border-inline-end:none;border-bottom:1px solid hsl(var(--border))}.sheet-calc-sketch{grid-template-columns:1fr}.sheet-calc-sketch__specs{min-width:0}}@media print{@page{size:A4 landscape;margin:8mm 10mm}html.cat-mill-print-active .sheet-calc-screen-only{display:none!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-card,html.cat-mill-print-active .cat-mill-print-visible.sheet-calc-card{box-shadow:none!important;border:none!important;padding:0!important;background:#fff!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-screen-body{display:none!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-only{display:block!important;position:relative;z-index:1}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-watermark{display:block!important;position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-watermark span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotate(-32deg);font-size:54pt;font-weight:800;color:#000;opacity:.1;white-space:nowrap;letter-spacing:.04em;line-height:1;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead{display:flex!important;position:relative;z-index:1;align-items:flex-end;justify-content:space-between;gap:10pt 18pt;margin-bottom:10pt;padding-bottom:8pt;border-bottom:2pt solid #000}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__brand{display:flex;flex-direction:column;gap:3pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__brand strong{font-size:16pt;font-weight:800;color:#000}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__brand span{font-size:11pt;color:#333}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__meta{display:grid;grid-template-columns:repeat(2,auto);gap:4pt 14pt;margin:0;font-size:9pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__meta div{display:flex;gap:5pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__meta dt{font-weight:700;color:#333}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__meta dd{margin:0;font-weight:700}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table{display:table!important;width:100%!important;border-collapse:collapse!important;table-layout:fixed;font-size:9pt;color:#000}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table thead{display:table-header-group!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table tbody{display:table-row-group!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table tfoot{display:table-footer-group!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table tr{display:table-row!important;break-inside:avoid;page-break-inside:avoid}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table td,html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th{display:table-cell!important;vertical-align:middle;border:1pt solid #000;padding:5pt 6pt;text-align:center;background:#fff}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table thead th{background:#e8e8e8!important;font-weight:800;font-size:8.5pt;padding:6pt;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table tbody tr:nth-child(2n) td{background:#f7f7f7!important;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__row-num{width:2.5%;max-width:20pt;padding:4pt 2pt!important;font-size:8pt;font-weight:800}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table td:first-child,html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th:first-child{width:2.5%;max-width:20pt;padding-inline:2pt!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table td:nth-child(2),html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table td:nth-child(3),html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table td:nth-child(4),html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th:nth-child(2),html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th:nth-child(3),html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th:nth-child(4){width:7%;font-weight:700;padding:4pt 3pt!important;font-size:8.5pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table td:nth-child(5),html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th:nth-child(5){width:4%;padding:4pt 2pt!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table td:nth-child(6),html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table td:nth-child(7),html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th:nth-child(6),html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th:nth-child(7){width:7%;font-weight:700;padding:4pt 3pt!important;font-size:8.5pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__line-kg strong{font-size:10pt;font-weight:800}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__sketch{width:54%;padding:5pt 6pt!important;vertical-align:middle;background:#fafafa!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th:last-child{width:54%}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table tfoot td{font-weight:800;background:#eee!important;border-top:2pt solid #000!important;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__foot-label{text-align:right;font-size:10pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__foot-total{text-align:left;font-size:11pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__foot-total strong{font-size:13pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__foot-ton{font-size:9pt;font-weight:600;color:#333}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-formula{margin:6pt 0 0;font-size:7.5pt;text-align:center;color:#444}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-sketch--compact{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6pt!important;width:100%}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-sketch--compact .sheet-calc-sketch__view{padding:3pt!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-sketch--compact .sheet-calc-sketch__draw{min-height:52pt;padding:3pt!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-sketch--compact .sheet-calc-sketch__plate{max-height:42pt!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-sketch--compact .sheet-calc-dim__text{font-size:7pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-dim--v .sheet-calc-dim__text{writing-mode:horizontal-tb;transform:none}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-sketch__plate{border-color:#000!important;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}}