/* Scoped module UI; existing Scotty navigation, accounts and theme stay shared. */
#whatIsThis{--wit-blue:#1265d8;--wit-line:#dce4ee;--wit-navy:#0a2c5d}#whatIsThis [hidden]{display:none!important}.wit-heading,.wit-section-heading,.wit-table-tools,.wit-pager,.wit-form-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.wit-heading{justify-content:space-between;margin-bottom:18px}.wit-heading h1{margin:0}.wit-tabs{display:flex;gap:6px;flex-wrap:wrap;padding-bottom:12px;margin-bottom:20px;border-bottom:1px solid #dce4ee}.wit-tabs button{border-color:transparent;background:transparent;color:#6c7886}.wit-tabs button[aria-current],.wit-count-nav button[aria-current]{background:#e7f0fd;color:#0a5bc6;border-color:#c8dcf8;font-weight:650}.wit-count-nav{display:flex;gap:8px;flex-wrap:wrap;padding:15px;background:white;border:1px solid #dce4ee;border-radius:10px;margin-bottom:18px}.wit-count-nav button{display:flex;align-items:center;gap:10px;background:transparent}.wit-count-nav button span{border-radius:50%;background:#eef4fd;padding:3px 8px}.wit-job-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:17px}.wit-job{text-align:left;background:white;padding:18px;border:1px solid #dce4ee;display:grid;gap:8px;min-width:0}.wit-job.active{border:2px solid #568ff5;background:#fbfdff}.wit-job small{color:#6c7886}.wit-form-row{align-items:flex-end;margin-bottom:15px}.wit-form-row .field{flex:1;min-width:150px}.wit-form-row .field select{width:100%}.wit-feedback{min-height:25px;color:#168451;margin:8px 0;white-space:pre-wrap}.wit-error{color:#b42318!important;white-space:pre-wrap}.wit-connection-note,.wit-warning{background:#fff7e4;color:#856010;padding:9px 12px;border-radius:7px}.wit-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:white;border:1px solid #dce4ee;border-radius:10px;margin:17px 0 9px;overflow:hidden}.wit-metrics>div{padding:18px;border-right:1px solid #dce4ee}.wit-metrics strong{display:block;font-size:27px;color:#0a2c5d;margin-top:8px}.wit-table-tools{margin-bottom:15px}.wit-table-tools h2{margin:0 auto 0 0;font-size:17px}.wit-table-tools input{max-width:320px}.wit-sort{border:0!important;background:transparent!important;padding:3px!important;text-align:left;font-weight:650;color:#6c7886!important;white-space:nowrap}#whatIsThis th select{display:block;margin-top:7px;max-width:150px}#whatIsThis td small,#witPreview td small{display:block;color:#6c7886;margin-top:5px}#whatIsThis td{overflow-wrap:anywhere}#whatIsThis table{min-width:760px}#whatIsThis .table-scroll{max-width:100%}.wit-pager{justify-content:space-between;margin-top:16px;font-size:12px}.wit-badge{display:inline-block;border-radius:5px;background:#eef2f7;padding:4px 7px;font-size:11px;white-space:nowrap}.wit-badge.Found,.wit-badge.Open,.wit-badge.Available{background:#e6f5ee;color:#15724b}.wit-badge.Pending{background:#fff0ef;color:#b42318}.wit-badge.Not-scanned{background:#fff5de;color:#9b6207}.wit-empty{text-align:center;padding:35px!important;color:#6c7886}.wit-dialog{width:min(820px,calc(100vw - 30px));max-height:90vh;border:1px solid #dce4ee;border-radius:12px;padding:0;color:#172231}.wit-dialog::backdrop{background:#082b5d66}.wit-dialog-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 22px;border-bottom:1px solid #dce4ee;margin:0}.wit-dialog-heading h2{font-size:19px;margin:0}.wit-dialog-body{padding:22px}.wit-dialog-body .field{display:grid;gap:8px;margin:13px 0}.wit-dialog-body input,.wit-dialog-body textarea{width:100%}.wit-dialog-body table{min-width:450px}.wit-details{display:grid;grid-template-columns:minmax(140px,1fr) 2fr;gap:12px}.wit-details dt{color:#6c7886}.wit-details dd{margin:0;overflow-wrap:anywhere}@media(max-width:700px){.wit-job-grid{grid-template-columns:1fr;gap:7px}.wit-job{padding:12px}.wit-job span{display:none}.wit-tabs{display:grid;grid-template-columns:1fr 1fr}.wit-tabs button{text-align:left}.wit-count-nav{flex-direction:column}.wit-count-nav button{width:100%;text-align:left}.wit-metrics{grid-template-columns:1fr 1fr}.wit-metrics>div{padding:13px}.wit-metrics>div:last-child{grid-column:1/-1}.wit-table-tools input{width:100%;max-width:none;order:3}.wit-form-row .field{flex-basis:100%}.wit-heading h1{font-size:24px}.wit-details{grid-template-columns:1fr}.wit-details dd{margin-bottom:8px}}

#whatIsThis th input{display:block;width:140px;max-width:100%;font-size:12px;padding:7px;margin-top:7px}#witGuide{display:inline-flex;align-items:center;gap:7px}

/* Keep the scan input wide instead of competing with the global select width. */
#whatIsThis .wit-scan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px max-content;
  align-items: stretch;
  gap: 12px;
  margin: 15px 0;
  min-width: 0;
}
#whatIsThis .wit-scan-row input,
#whatIsThis .wit-scan-row select {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 14px 16px;
}
#whatIsThis .wit-scan-row input { font-size: 20px; }
#whatIsThis .wit-scan-row select { font-size: 18px; }
#whatIsThis .wit-scan-row button {
  min-height: 56px;
  padding: 14px 24px;
  font-size: 16px;
  white-space: nowrap;
}
#whatIsThis .wit-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: 16px;
  white-space: nowrap;
  cursor: pointer;
}
#whatIsThis .wit-check input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--wit-blue);
}
@media (max-width: 1050px) {
  #whatIsThis .wit-scan-row {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
  #whatIsThis .wit-scan-row input { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  #whatIsThis .wit-scan-row input { font-size: 18px; }
  #whatIsThis .wit-scan-row button { padding-inline: 18px; }
}

/* Agreement keeps the legacy ten columns inside the table's own scroll area. */
#whatIsThis:has(#witBPForm) #witTable table{min-width:1600px;width:100%;table-layout:fixed}
#whatIsThis:has(#witBPForm) #witTable th,#whatIsThis:has(#witBPForm) #witTable td{padding:10px 12px;line-height:1.5;vertical-align:top}
#whatIsThis:has(#witBPForm) #witTable th{vertical-align:bottom}
#whatIsThis:has(#witBPForm) #witTable td{white-space:nowrap;overflow-wrap:normal}
#whatIsThis:has(#witBPForm) #witTable th:nth-child(5),#whatIsThis:has(#witBPForm) #witTable th:nth-child(8),#whatIsThis:has(#witBPForm) #witTable td:nth-child(8){text-align:right;font-variant-numeric:tabular-nums}
#whatIsThis:has(#witBPForm) #witTable th:nth-child(6),#whatIsThis:has(#witBPForm) #witTable th:nth-child(7),#whatIsThis:has(#witBPForm) #witTable td:nth-child(6),#whatIsThis:has(#witBPForm) #witTable td:nth-child(7){text-align:center;font-variant-numeric:tabular-nums}
#whatIsThis:has(#witBPForm) #witTable th .wit-sort{max-width:100%;white-space:nowrap;font-size:12px;line-height:1.4}
#whatIsThis:has(#witBPForm) #witTable th input,#whatIsThis:has(#witBPForm) #witTable th select{box-sizing:border-box;min-height:32px;width:100%;max-width:100%;margin-top:8px}
#whatIsThis:has(#witBPForm) #witTable td:nth-child(4),#whatIsThis:has(#witBPForm) #witTable td:nth-child(10){white-space:normal;overflow-wrap:anywhere}
#whatIsThis:has(#witBPForm) #witTable td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums}
#whatIsThis .wit-agreement-filters summary{cursor:pointer;font-weight:650}
#whatIsThis .wit-agreement-filters[open]>.wit-form-row{margin-top:14px}
#whatIsThis #witTable [id^=witAgreement]{min-width:0;max-width:100%;width:100%;margin-top:8px}

/* Search warehouse codes/names without a long native select list. */
.wit-warehouse-picker{display:block;min-width:0;width:100%}
#whatIsThis .wit-warehouse-picker>select[hidden],.wit-warehouse-matches[hidden]{display:none!important}
.wit-warehouse-picker>input{width:100%;min-width:0;box-sizing:border-box}
.wit-warehouse-picker>small{display:block;font-weight:400;line-height:1.5;color:#6c7886;margin:6px 0}
.wit-warehouse-matches{display:block;max-height:240px;overflow-y:auto;overscroll-behavior:contain;margin-top:6px;padding:4px;border:1px solid #c8d7eb;border-radius:8px;background:#fff;box-shadow:0 5px 14px #0a2c5d12}
.wit-warehouse-matches>button{display:block;width:100%;padding:10px 12px;border:0;border-radius:5px;background:#fff;color:#172231;text-align:left;white-space:normal;overflow-wrap:anywhere}
.wit-warehouse-matches>button:hover,.wit-warehouse-matches>button[aria-selected=true]{background:#e7f0fd;color:#0a5bc6}
.wit-warehouse-matches strong,.wit-warehouse-matches small{display:block}
.wit-warehouse-matches small{margin-top:4px;font-weight:400;color:#65748a}

.wit-wh-controls{align-items:flex-start}
.wit-wh-controls>button{margin-top:24px}
@media(max-width:700px){.wit-wh-controls>button{margin-top:0}}
