#printEstimateItemsPreview {
  position: fixed; z-index: 10000; width: min(1000px, calc(100vw - 24px));
  max-height: min(65vh, 560px); overflow: auto; box-sizing: border-box;
  padding: 10px; border: 1px solid #9fb5ca; border-radius: 4px;
  background: #fff; color: #143350; box-shadow: 0 6px 20px #142f4a26;
  font-size: 12px; overscroll-behavior: contain; cursor: pointer;
}
#printEstimateItemsPreview[hidden] { display: none; }
#printEstimateItemsPreview:focus-visible { outline: 2px solid #236d9d; outline-offset: 2px; }
#printEstimateItemsPreview > strong { display: block; margin-bottom: 8px; }
#printEstimateItemsPreview .table-wrap { overflow: auto; }
#printEstimateItemsPreview table { width: 100%; min-width: 940px; border-collapse: collapse; table-layout: fixed; }
#printEstimateItemsPreview :is(th, td) { padding: 7px; border: 1px solid #c8d7e4; font-size: 12px; overflow-wrap: anywhere; }
#printEstimateItemsPreview th { background: #e7eff6; }
#printEstimateItemsPreview th:nth-child(4) { width: 24%; }
#printEstimateItemsPreview th:nth-child(2),
#printEstimateItemsPreview th:nth-child(3) { width: 12%; }
@media print { #printEstimateItemsPreview { display: none !important; } }
