.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,.sheet-calc-unit-toggle__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-unit-toggle__buttons{display:inline-flex;border:1px solid hsl(var(--border));border-radius:8px;overflow:hidden;background:#fff}.sheet-calc-unit-toggle__btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.05rem;min-width:3.6rem;padding:.35rem .55rem;border:none;border-inline-start:1px solid hsl(var(--border));background:#0000;color:hsl(var(--muted-foreground));cursor:pointer;transition:background .15s,color .15s}.sheet-calc-unit-toggle__btn:first-child{border-inline-start:none}.sheet-calc-unit-toggle__btn:hover{background:var(--bg-elevated);color:hsl(var(--foreground))}.sheet-calc-unit-toggle__btn.is-active{background:oklch(.5 .134 242.749/.16);color:#0b6cb5;box-shadow:inset 0 0 0 1.5px #0e74bf}.sheet-calc-unit-toggle__btn.is-active .sheet-calc-unit-toggle__fa,.sheet-calc-unit-toggle__btn.is-active .sheet-calc-unit-toggle__short{color:#0b6cb5;font-weight:800}.sheet-calc-unit-toggle__short{font-size:var(--fs-sm);font-weight:800;line-height:1.1}.sheet-calc-unit-toggle__fa{font-size:.62rem;font-weight:600;line-height:1.2}.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:.2rem;min-width:0;padding:.3rem;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-cad-svg{flex:1;width:100%;min-height:88px;height:auto;display:block;background:linear-gradient(#eef2f7 1px,#0000 0) 0 0 /12px 12px,linear-gradient(90deg,#eef2f7 1px,#0000 0) 0 0 /12px 12px,#f8fafc;border-radius:6px;border:1px solid #e2e8f0;overflow:visible}.sheet-calc-sketch--compact .sheet-cad-svg{min-height:0;height:46px;max-height:46px;background:#f8fafc}.sheet-cad-plate{vector-effect:non-scaling-stroke}.sheet-cad-dim text{font-family:ui-monospace,Cascadia Code,Segoe UI,Tahoma,sans-serif;letter-spacing:.01em}.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:3pt;align-items:start}.sheet-calc-sketch--compact .sheet-calc-sketch__views{display:contents}.sheet-calc-sketch--compact .sheet-calc-sketch__view{padding:2pt;border-radius:3pt;gap:1pt}.sheet-calc-sketch--compact .sheet-calc-sketch__title{font-size:5.5pt;line-height:1.1}.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}.sheet-calc-unit-toggle__fa{display:none}}@media print{@page{size:A4 landscape;margin:7mm 8mm}@page sheet-calc-print{size:A4 landscape;margin:7mm 8mm}html.cat-mill-print-active,html.cat-mill-print-active body{height:auto!important;min-height:0!important;margin:0!important;background:#fff!important}html.cat-mill-print-active body :not(.cat-mill-print-visible):not(.cat-mill-print-visible *):not(:has(.cat-mill-print-visible)){display:none!important}html.cat-mill-print-active .cat-mill-print-visible{position:static!important;display:block!important;width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;border:none!important;background:#fff!important;box-shadow:none!important;overflow:visible!important}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;page:sheet-calc-print}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:42pt;font-weight:800;color:#000;opacity:.07;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:6pt 12pt;margin-bottom:5pt;padding-bottom:4pt;border-bottom:1.5pt solid #000}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__brand{display:flex;flex-direction:column;gap:1pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__brand strong{font-size:12pt;font-weight:800;color:#000}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__brand span{font-size:9pt;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:2pt 10pt;margin:0;font-size:8pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-dochead__meta div{display:flex;gap:4pt}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:8pt;color:#000}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__caption{font-size:8pt;padding:0 0 3pt}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:.75pt solid #000;padding:2pt 3pt;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:7.5pt;padding:3pt 2pt;-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:3%;max-width:18pt;padding:2pt 1pt!important;font-size:7.5pt;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:3%;max-width:18pt;padding-inline:1pt!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:8%;font-weight:700;padding:2pt!important;font-size:8pt}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:5%;padding:2pt 1pt!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:8%;font-weight:700;padding:2pt!important;font-size:8pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__line-kg strong{font-size:9pt;font-weight:800}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__sketch{width:44%;padding:2pt 3pt!important;vertical-align:middle;background:#fafafa!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table th:last-child{width:44%}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table tfoot td{font-weight:800;background:#eee!important;border-top:1.5pt solid #000!important;padding:3pt!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:9pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__foot-total{text-align:left;font-size:10pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__foot-total strong{font-size:11pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__foot-ton{font-size:8pt;font-weight:600;color:#333}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-formula{margin:3pt 0 0;font-size:6.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:2pt!important;width:100%;max-height:58pt}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-sketch--compact .sheet-calc-sketch__view{padding:1pt!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-sketch--compact .sheet-calc-sketch__title{font-size:5pt!important;margin:0!important;line-height:1!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-sketch--compact .sheet-cad-svg{min-height:0!important;height:36pt!important;max-height:36pt!important;background:#fff!important;border-color:#ccc!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-calc-print-table__sketch{padding:1pt 2pt!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-cad-plate{stroke:#000!important;fill:#fff!important;-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}html.cat-mill-print-active .cat-mill-print-visible .sheet-cad-plate--thick{fill:#f3f3f3!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-cad-dim{stroke:#000!important}html.cat-mill-print-active .cat-mill-print-visible .sheet-cad-dim text{fill:#000!important}}