#bidPrint { display: none; }
.bid-document {
  background: white;
  color: #132b3b;
  border: 1px solid #cfd9dd;
  border-radius: 8px;
  padding: clamp(18px, 3vw, 38px);
  font-family: Inter, Arial, sans-serif;
  font-size: .96rem;
  line-height: 1.45;
  text-align: left;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.bid-doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 0 16px;
  border-bottom: 2px solid #183346;
}
.bid-doc-header img { width: 128px; max-width: 36%; height: auto; display: block; }
.bid-doc-header span { font-weight: 650; font-size: .88rem; text-align: right; }
.bid-document h2.bid-project-title { margin: 20px 0 15px; color: #132b3b; font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.12; letter-spacing: -.045em; }
.bid-doc-meta { display: flex; gap: 12px 28px; flex-wrap: wrap; margin: 0 0 22px; }
.bid-doc-meta dt, .bid-costs dt { font-size: .82rem; color: #4a6270; font-weight: 500; }
.bid-doc-meta dd, .bid-costs dd { margin: 1px 0 0; font-weight: 600; }
.bid-table { width: 100%; margin: 0; border-collapse: collapse; font-size: .9rem; }
.bid-table caption { text-align: left; font-weight: 680; font-size: 1.12rem; padding: 0 0 9px; }
.bid-table th, .bid-table td { padding: 9px 7px; vertical-align: top; border: 0; border-bottom: 1px solid #dbe3e5; text-align: left; text-transform: none; letter-spacing: 0; }
.bid-table thead th { color: #344e5e; background: #edf2f3; font-size: .79rem; font-weight: 650; }
.bid-table tbody th { color: #183245; font-weight: 620; font-size: inherit; background: white; }
.bid-table .bid-numeric { text-align: right; }
.bid-table small { display: block; font-size: .76rem; font-weight: 450; color: #506874; margin-top: 2px; }
.bid-internal-table th[scope="row"] { width: 33%; }
.bid-customer-table th[scope="row"] { width: 73%; }
.bid-final-block { max-width: 335px; margin: 20px 0 0 auto; break-inside: avoid; }
.bid-costs { margin: 10px 0; }
.bid-costs > div, .bid-price { display: flex; gap: 15px; justify-content: space-between; align-items: baseline; }
.bid-costs > div { padding: 2px 0; }
.bid-price { padding: 12px 0 0; border-top: 3px solid #dc5728; font-weight: 650; color: #132b3b; }
.bid-price b { font-size: 1.5rem; letter-spacing: -.045em; }
.bid-no-lines { margin: 12px 0; font-size: .93rem; }
@media screen and (max-width: 650px) {
  .bid-document { padding: 15px; }
  .bid-doc-meta { margin-bottom: 16px; gap: 10px 18px; }
  .bid-internal-table, .bid-internal-table tbody { display: block; }
  .bid-internal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bid-internal-table caption { display: block; }
  .bid-internal-table tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 10px; border-top: 1px solid #ccd8dd; padding: 10px 0; }
  .bid-internal-table tbody th[scope="row"] { grid-column: 1/-1; width: 100%; }
  .bid-internal-table tbody th, .bid-internal-table tbody td { display: block; border: none; padding: 0; text-align: left; }
  .bid-internal-table [data-heading]::before { content: attr(data-heading); display: block; font-size: .76rem; color: #506874; }
}
@media print {
  body:has(> #bidPrint) > :not(#bidPrint), body:has(> #bidPrint) dialog::backdrop { display: none !important; }
  body > #bidPrint { display: block !important; width: 100%; }
  #bidPrint .bid-document { padding: 0; border: none; font-size: 10pt; line-height: 1.37; }
  #bidPrint .bid-doc-header { padding-bottom: 8pt; }
  #bidPrint .bid-project-title { font-size: 21pt; margin: 12pt 0 8pt; }
  #bidPrint .bid-doc-meta { margin-bottom: 12pt; }
  #bidPrint .bid-table { font-size: 8.6pt; }
  #bidPrint .bid-table caption { font-size: 11pt; }
  #bidPrint .bid-table thead { display: table-header-group; }
  #bidPrint .bid-table tr { break-inside: avoid; }
  #bidPrint .bid-table th, #bidPrint .bid-table td { padding: 5pt 4pt; }
  #bidPrint .bid-table small, #bidPrint .bid-table thead th { font-size: 7.7pt; }
  #bidPrint .bid-doc-meta dt, #bidPrint .bid-costs dt { font-size: 8.5pt; }
  #bidPrint .bid-price b { font-size: 16pt; }
}
