@font-face { font-family: "Plex"; src: url(/static/fonts/plex-sans.woff2) format("woff2"); font-weight: 400 700; }
* { box-sizing: border-box; }
body { margin: 0; background: #e9ebe6; font: 12.5px/1.45 "Plex", Arial, sans-serif; color: #151815; font-variant-numeric: tabular-nums; }
.inv { max-width: 860px; margin: 20px auto; background: #fff; padding: 36px 40px; }
header { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #151815; padding-bottom: 14px; }
.inv-logo { display: flex; gap: 12px; align-items: flex-start; }
.inv-logo svg { width: 44px; height: 44px; flex: none; }
.inv-logo b { display: block; font-size: 17px; }
.inv-logo span { display: block; color: #555; }
.inv-h h1 { margin: 0 0 6px; font-size: 22px; text-align: right; }
.inv-h table { border-collapse: collapse; margin-left: auto; }
.inv-h th { text-align: left; padding: 1px 12px 1px 0; color: #555; font-weight: 500; }
.inv-h td { text-align: right; font-weight: 600; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 18px 0; }
.inv-parties h3 { margin: 0 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #555; }
.inv-parties p { margin: 0; }
.inv-lines { width: 100%; border-collapse: collapse; }
.inv-lines th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #555; border-bottom: 1px solid #999; padding: 5px 6px; }
.inv-lines td { padding: 5px 6px; border-bottom: 1px solid #e3e5df; vertical-align: top; }
.n { text-align: right; white-space: nowrap; }
.inv-tot { margin: 12px 0 0 auto; border-collapse: collapse; min-width: 280px; }
.inv-tot th { text-align: left; font-weight: 500; padding: 4px 16px 4px 0; }
.inv-tot td { text-align: right; padding: 4px 0; }
.inv-tot .g th, .inv-tot .g td { font-size: 15px; font-weight: 700; border-top: 2px solid #151815; padding-top: 6px; }
footer { margin-top: 26px; border-top: 1px solid #ccc; padding-top: 10px; color: #444; }
.noprint button { margin-top: 14px; padding: 8px 18px; font: 600 13px "Plex", Arial; background: #0e4a32; color: #fff; border: 0; cursor: pointer; }
.noprint { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.noprint a { margin-top: 14px; font: 500 13px "Plex", Arial; color: #1650a0; text-decoration: none; }
.noprint a:hover { text-decoration: underline; }
@media (max-width: 640px) { .inv { padding: 18px 12px; margin: 0; } header, .inv-parties { display: block; } .inv-parties > div + div { margin-top: 12px; }
  .inv-h h1, .inv-h table { text-align: left; margin: 10px 0 0; } .inv-lines { font-size: 11px; table-layout: fixed; } .inv-lines th { font-size: 9px; letter-spacing: 0; }
  .inv-lines th, .inv-lines td { padding: 4px 3px; overflow-wrap: anywhere; } .inv-lines th:nth-child(1) { width: 22%; } .inv-lines th:nth-child(2) { width: 30%; } .inv-lines th:nth-child(3) { width: 14%; } }
@media print { body { background: #fff; } .inv { margin: 0; padding: 0; max-width: none; } .noprint { display: none; } }
/* line sheet */
.ls { max-width: 980px; }
.ls-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; }
.ls-cats a { margin: 0; padding: 3px 9px; border: 1px solid #c9ccc4; font: 500 12px "Plex", Arial; color: #151815; text-decoration: none; }
.ls-cats a.on { background: #151815; color: #fff; border-color: #151815; }
.ls-cat { font-size: 15px; margin: 22px 0 4px; padding-bottom: 3px; border-bottom: 2px solid #151815; }
.ls-cat span { font-size: 12px; font-weight: 400; color: #555; }
.ls-t tbody { break-inside: avoid; }
.ls-p td { padding-top: 10px; border-bottom: 1px solid #c9ccc4; }
.ls-ph { display: flex; align-items: center; gap: 10px; }
.ls-ph img { width: 44px; height: 44px; flex: none; border: 1px solid #e3e5df; }
.ls-ph b { display: block; font-size: 13px; }
.ls-ph span { display: block; color: #555; font-size: 11.5px; }
.ls-t small { display: block; color: #666; font-size: 10.5px; }
.ls-t tr.cont td { border-top: 0; }
.ls-t td:first-child { font-family: "Plex Mono", Consolas, monospace; font-size: 11.5px; white-space: nowrap; }
@media (max-width: 640px) { .ls-t th:nth-child(1) { width: 26%; } .ls-t th:nth-child(2) { width: 28%; } .ls-t th:nth-child(3) { width: 18%; } }
@media print { .ls-cat { break-after: avoid; } .ls-t thead { display: table-header-group; } }
/* count sheet (order guide on paper) */
@font-face { font-family: "Plex Mono"; src: url(/static/fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; }
.mono { font-family: "Plex Mono", Consolas, monospace; }
.cs-how { margin: 14px 0 6px; }
.inv-h td.cs-fill { min-width: 1.6in; border-bottom: 1px solid #151815; }
.cs-t td { vertical-align: middle; }
.cs-t td:first-child { font-family: inherit; font-size: 12px; white-space: normal; }
.cs-t td small { display: block; }
.cs-pk { display: block; font-size: 11px; white-space: nowrap; }
.cs-t th.cs-box { width: .9in; text-align: center; }
.cs-t td.cs-box { border: 1px solid #999; height: .34in; }
@media (max-width: 640px) { .cs-t th:nth-child(1) { width: 30%; } .cs-t th:nth-child(2) { width: 30%; } .cs-t th.cs-box { width: 15%; } .cs-pk { white-space: normal; overflow-wrap: anywhere; } }
