.bom-calculation-link { justify-self: start; align-self: flex-start; width: fit-content; }
.drawing-bom-calculation { width: min(1120px, calc(100% - 32px)); margin: 32px auto 64px; color: #172d2a; }
.drawing-bom-calculation header { margin-bottom: 22px; }
.drawing-bom-calculation header a { color: #176c58; }
.drawing-bom-calculation h1 { margin: 20px 0 4px; }
.drawing-bom-calculation header p { margin: 0; }
.drawing-bom-list { border: 1px solid #cbd9d3; border-radius: 9px; overflow: hidden; background: white; }
.drawing-bom-columns { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(180px, 3fr) minmax(84px, 1fr) minmax(88px, 1fr) 12px; gap: 14px; align-items: center; padding: 12px 16px; }
.drawing-bom-columns > * { min-width: 0; overflow-wrap: anywhere; }
.drawing-bom-columns > :nth-child(3), .drawing-bom-columns > :nth-child(4) { text-align: right; font-variant-numeric: tabular-nums; }
.drawing-bom-labels { background: #eef4f1; font-size: .83em; font-weight: 700; }
.drawing-bom-list details { border-top: 1px solid #dce6e0; }
.drawing-bom-list summary { cursor: pointer; list-style: none; }
.drawing-bom-list summary::-webkit-details-marker { display: none; }
.drawing-bom-list summary:hover, .drawing-bom-list details[open] summary { background: #f1f7f4; }
.drawing-bom-list summary:focus-visible { outline: 2px solid #14795d; outline-offset: -2px; }
.drawing-bom-list summary i { width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.drawing-bom-list details[open] summary i { transform: rotate(225deg); }
.drawing-bom-detail { padding: 12px 22px 16px; border-inline-start: 3px solid #87bda7; overflow-wrap: anywhere; }
.drawing-bom-source { display: grid; gap: 4px; margin-bottom: 12px; }
.drawing-bom-detail p { margin: 0; }
.drawing-bom-detail p strong { display: block; margin-bottom: 4px; }
.drawing-bom-empty { padding: 0 16px; }
@media (max-width: 660px) {
  .drawing-bom-calculation { width: calc(100% - 20px); margin-top: 16px; }
  .drawing-bom-labels { display: none; }
  .drawing-bom-list summary { grid-template-columns: 1fr auto 12px; gap: 4px 8px; }
  .drawing-bom-list summary > :nth-child(2) { grid-column: 1; grid-row: 2; }
  .drawing-bom-list summary > :nth-child(3) { display: none; }
  .drawing-bom-list summary > :nth-child(4) { grid-column: 2; grid-row: 1 / 3; }
  .drawing-bom-list summary > i { grid-column: 3; grid-row: 1 / 3; }
}
