.tdOption .wtAge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: bold;
  white-space: nowrap;
}

.tdOption .wtAgeCorrect {
  white-space: normal;
}

.tdOption .wtAgeOk {
  color: #2e7d32;
}

.tdOption .wtAgeSoon {
  background: #fff3cd;
  color: #8a6d3b;
}

.tdOption .wtAgeOver {
  background: #f8d7da;
  color: #a94442;
}

.wtGapBanner {
  margin: 0 0 8px;
  padding: 8px 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left-width: 4px;
  border-radius: 3px;
  color: #8a6d3b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wtGapBanner .pqgButton {
  margin-left: auto;
  white-space: nowrap;
}

.wtLoading {
  margin: 12px 0;
  padding: 14px 12px;
  color: #555;
  font-size: 1.05em;
}

.wtLoading::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 10px;
  vertical-align: -2px;
  border: 2px solid #ccc;
  border-top-color: #555;
  border-radius: 50%;
  animation: wtSpin 0.8s linear infinite;
}

@keyframes wtSpin {
  to {
    transform: rotate(360deg);
  }
}

.wtGaps table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
}

.wtGaps th,
.wtGaps td {
  border: 1px solid #ddd;
  padding: 4px 8px;
  text-align: left;
}

/* Scroll the dialog body, not the dialog: keeps the action buttons in view on long payloads. */
.wtPreview,
.wtGapsDialog {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 6px;
}

.wtPreview ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.wtPreview pre {
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  background: #f6f8fa;
  border: 1px solid #ddd;
}

.wtBatchBar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  border-radius: 3px;
}

.wtBatchBar .pqgButton {
  margin-right: 6px;
}

.wtBatchBar .wtBatchSep {
  margin: 0 8px;
  color: #999;
}

.wtBatchBar .wtLastScan {
  margin-left: 4px;
  color: #666;
  font-size: 0.9em;
}

.wtBatch ul {
  margin: 0;
  padding-left: 18px;
  max-height: 300px;
  overflow: auto;
}

.wtActions .pqgButton {
  display: block;
  width: 108px;
  padding-left: 8px;
  padding-right: 8px;
  margin: 2px 0;
  text-align: center;
  white-space: nowrap;
}

.wtReportForm {
  margin: 8px 0 12px;
}

.wtReportForm .wtRptLbl {
  width: 130px;
  vertical-align: top;
  padding-top: 6px;
}

.wtReportForm input,
.wtReportForm select,
.wtReportForm textarea {
  font: inherit;
}

.wtReportForm .wtMulti,
.wtReportForm .chosen-container {
  max-width: 480px;
}

.wtReportForm .chosen-container {
  font-family: inherit;
  font-size: 13px;
  line-height: normal;
}

.wtReportForm .chosen-container-multi .chosen-choices {
  padding: 1px 3px;
  line-height: normal;
}

.wtReportForm .chosen-container-multi .chosen-choices li.search-choice,
.wtReportForm .chosen-container-multi .chosen-choices li.search-field {
  margin: 0 5px 0 0;
}

.wtReportForm .chosen-container-multi .chosen-choices li.search-choice {
  padding: 1px 15px 1px 5px;
  font-size: 11px;
  line-height: 11px;
}

.wtReportForm .chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
  top: 3px;
  transform: scale(0.75);
  transform-origin: top right;
}

.wtReportForm .chosen-container-multi .chosen-choices li.search-field input[type='text'] {
  height: 15px;
  margin: 0;
  font-size: 11px;
}

.wtReportSummary {
  max-width: 900px;
  margin: 4px auto 16px;
  padding: 10px 16px;
  background: #eef4ff;
  border: 1px solid #cfe0ff;
  border-radius: 4px;
  text-align: center;
}

.wtReportSummary .wtSumHead {
  font-size: 1.25em;
  font-weight: bold;
}

.wtReportSummary .wtSumTotals {
  margin-top: 4px;
  font-size: 1.05em;
  font-weight: bold;
}

.wtReportSummary .wtSumNotice {
  margin-top: 8px;
  padding: 6px 10px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 3px;
  color: #8a6d3b;
}

.wtReportSummary .wtSumNote {
  margin-top: 6px;
  font-size: 0.9em;
  color: #666;
}

.wtReportSummary .wtSumSep {
  margin: 0 8px;
  color: #999;
}

.wtReportCharts {
  margin: 12px 0 16px;
}

.wtBusy {
  opacity: 0.6;
  pointer-events: none;
}

.wtChartBox {
  position: relative;
}

.wtChartFull {
  width: 100%;
  max-width: 900px;
  height: 520px;
  margin: 0 auto 24px;
}

.wtChartHalf {
  width: 100%;
  max-width: 760px;
  height: 340px;
  margin: 0 auto;
}

.wtDlgActions {
  margin: 16px 0 4px;
  text-align: right;
}

.wtDlgActions .pqgButton {
  margin-left: 8px;
  white-space: nowrap;
}

.wtErr {
  color: #a94442;
  cursor: help;
  margin-left: 3px;
  font-weight: bold;
}

.wtNote {
  color: #8a6d3b;
  cursor: help;
  margin-left: 4px;
  font-weight: bold;
}

.wtWorkingOut {
  color: #888;
  font-style: italic;
}

.wtLinkedJobs {
  color: #888;
  font-size: 0.85em;
  margin-top: 2px;
  white-space: normal;
}

.wtWarnBox {
  margin: 0 0 14px;
  padding: 8px 12px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-left-width: 4px;
  border-radius: 3px;
  color: #8a6d3b;
}

.wtWarnBox h4 {
  margin: 0 0 6px;
}

.wtWarnBox p {
  margin: 0;
}

.wtCorrectBy {
  margin: 0 0 10px;
}

.wtChangeSource {
  margin: -6px 0 12px;
  color: #666;
  font-size: 0.9em;
}

.wtWarnBox ul {
  margin: 0;
  padding-left: 18px;
  max-height: 240px;
  overflow-y: auto;
}

.wtNoWarn {
  color: #2e7d32;
  font-weight: bold;
}

.wtPreviewTbl {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 12px;
}

.wtPreviewTbl th,
.wtPreviewTbl td {
  border: 1px solid #ddd;
  padding: 4px 8px;
  text-align: left;
  vertical-align: top;
}

.wtPreviewTbl .wtInlineActions {
  margin: 6px 0 2px;
}

.wtPreviewTbl .wtInlineActions .pqgButton {
  display: inline-block;
  margin: 0 8px 0 0;
  white-space: nowrap;
}

.wtPreviewTbl th {
  width: 190px;
  background: #f6f8fa;
  font-weight: bold;
}

.wtTiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 10px;
}

.wtTile {
  flex: 1 1 100px;
  min-width: 90px;
  padding: 8px 10px;
  background: #f6f8fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
}

.wtTileNum {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1.1;
}

.wtTileLbl {
  font-size: 0.85em;
  color: #555;
}

.wtTileWarn {
  background: #fff3cd;
  border-color: #ffc107;
}

.wtTileWarn .wtTileNum {
  color: #8a6d3b;
}

.wtTileOver {
  background: #f8d7da;
  border-color: #dc3545;
}

.wtTileOver .wtTileNum {
  color: #a94442;
}

.wtTileGood {
  background: #e8f5e9;
  border-color: #2e7d32;
}

.wtTileGood .wtTileNum {
  color: #2e7d32;
}

.wtTileDivider {
  flex: 0 0 1px;
  align-self: stretch;
  margin: 0 4px;
  background: #bbb;
}

.wtBatchBar .wtLastScanNew {
  color: #8a6d3b;
  font-weight: bold;
}

.wtNone {
  color: #888;
}

.wtServiceCharge {
  margin-left: auto;
  padding-left: 12px;
  color: #666;
  font-size: 0.9em;
  white-space: nowrap;
}

.wtServiceCharge.wtScWarn {
  color: #9d6a12;
  font-weight: bold;
}

.wtServiceCharge.wtScStop {
  color: #a94442;
  font-weight: bold;
}
