/* v9.15 - WhatsApp Requests for Sales Executive / Sales Head (read-only) and Sales Teams. Uses the
   existing WhatsApp / portal tokens; only small additions here. */
.wt-note { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--gold-400, #d4b048); background: var(--background, #fff); font-size: 13px; }
.wt-restricted { white-space: nowrap; }
.wt-table td { vertical-align: top; }
.wt-table .wa-cell-text { display: block; min-width: 200px; max-width: 300px; white-space: normal; overflow-wrap: anywhere; }
.wt-pager { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 2px 2px; font-size: 13px; }
.wt-pager-btns { display: flex; gap: 6px; align-items: center; }
.wt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; margin: 0 0 12px; }
.wt-grid .cell-sub { display: block; }
.wt-ro { margin-top: 10px; }
.wt-teams h3 small { font-weight: 400; font-size: 13px; }
.wt-add { margin: 8px 0 12px; }
.wt-endform { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.wt-endform input[type="text"] { min-width: 160px; }
@media (max-width: 640px) {
  .wt-pager { justify-content: center; }
  .wt-table .wa-cell-text { min-width: 160px; max-width: 220px; }
  .wt-endform input { flex: 1 1 100%; }
}

/* v9.18 - New WhatsApp Request (Sales Executive) */
.wt-newbar { display: flex; justify-content: flex-end; margin: -4px 0 12px; }
.wt-new-btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; width: auto; }
.wt-new-modal h3 { padding-right: 40px; }
.wt-nsearch { display: flex; gap: 8px; align-items: stretch; }
.wt-nsearch input { flex: 1 1 auto; min-width: 0; }
.wt-nres-wrap { margin-top: 8px; }
.wt-nres-wrap .form-error { margin: 6px 0; }
.wt-ncount { margin: 4px 0 6px; }
.wt-nlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 46vh; overflow-y: auto; }
.wt-nres { position: relative; display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 84px 10px 12px; min-height: 48px;
  border: 1px solid var(--border, #e3e6df); border-radius: 10px; background: var(--background, #fff); color: inherit; font: inherit; cursor: pointer; }
.wt-nres:hover, .wt-nres:focus-visible { border-color: var(--gold-400, #d4b048); background: var(--gold-50, #fdf8ea); }
.wt-nres:focus-visible { outline: 2px solid var(--gold-500, #c49a2c); outline-offset: 2px; }
.wt-nres:disabled { opacity: .6; cursor: wait; }
.wt-nres.is-loading { opacity: 1; }
.wt-nname { font-weight: 600; overflow-wrap: anywhere; }
.wt-nmeta { font-size: 12.5px; color: var(--text-muted, #5f6b63); overflow-wrap: anywhere; }
.wt-npick { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12.5px; font-weight: 600; color: var(--green-700, #1f5a3d); }
.wt-sel { border: 1px solid var(--border, #e3e6df); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; display: grid; gap: 8px; }
.wt-sel .wt-grid { margin: 0; }
.wt-sel #wtNChange { justify-self: start; }
.wt-table tr.wt-new td { background: var(--gold-50, #fdf8ea); }
@media (max-width: 640px) {
  .wt-newbar { margin: 0 0 10px; }
  .wt-new-btn { width: 100%; justify-content: center; min-height: 44px; }
  .wt-nsearch { flex-wrap: wrap; }
  .wt-nsearch input, .wt-nsearch button { flex: 1 1 100%; min-height: 44px; }
  .wt-nres { padding-right: 12px; }
  .wt-npick { position: static; transform: none; }
  .wt-nlist { max-height: none; }
}
