
/* Project BOQ table behaves like a spreadsheet: values are typed, arrow keys navigate. */
.project-package-table input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.project-package-table input[type="number"]::-webkit-outer-spin-button,
.project-package-table input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* AAA HOUSE Material Control v2.6.4.2 — Category-only Summary & Arrow Grid Navigation */

/* Project report: concise category summary + complete material quantity table. */
.v264-project-summary-table { min-width: 760px; }
.v264-project-summary-table th:nth-child(1) { width: 7%; }
.v264-project-summary-table th:nth-child(2) { width: 36%; }
.v264-project-summary-table th:nth-child(3) { width: 12%; }

.v264-project-material-table { min-width: 1180px; }
.v264-project-material-table th:nth-child(1) { width: 5%; }
.v264-project-material-table th:nth-child(2) { width: 9%; }
.v264-project-material-table th:nth-child(3) { width: 13%; }
.v264-project-material-table th:nth-child(4) { width: 20%; }
.v264-project-material-table th:nth-child(5) { width: 9%; }
.v264-project-material-table th:nth-child(6) { width: 7%; }
.v264-project-material-table th:nth-child(7),
.v264-project-material-table th:nth-child(8) { width: 10%; }
.v264-project-material-table th:nth-child(9),
.v264-project-material-table th:nth-child(10) { width: 8%; }

.v264-completed-delete { white-space: nowrap; }

/* PDF host must fit every detail column on landscape A4. */
.v24-pdf-host .v264-project-material-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
  font-size: 8px !important;
}
.v24-pdf-host .v264-project-material-table th,
.v24-pdf-host .v264-project-material-table td {
  padding: 3px 3px !important;
  line-height: 1.2 !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;
}

@media (max-width: 900px) {
  .project-report-document .v264-project-summary-table { min-width: 760px; }
  .project-report-document .v264-project-material-table { min-width: 1180px; }
}

.v24-pdf-host .v264-material-detail-section { break-inside: auto !important; page-break-inside: auto !important; }
.v24-pdf-host .v264-project-material-table thead { display: table-header-group !important; }
.v24-pdf-host .v264-project-material-table tr { break-inside: avoid !important; page-break-inside: avoid !important; }
