/* b20 (13 Oct 2026): long line lists. Picker for "which lines", toolbar for tables of per-line inputs. */

/* line picker */
.lp { border-radius: 10px; box-shadow: 0 0 0 1px var(--line, #DCE3ED); background: var(--surface, #fff); }
.lp-bar { display: none; gap: 8px 12px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line, #E3E8F0); }
.lp-js .lp-bar { display: flex; }
.lp-bar .form-control { flex: 1 1 220px; min-width: 0; max-width: 340px; }
.lp-count { font-size: 12.5px; color: var(--label-ink, #56647A); font-variant-numeric: tabular-nums; margin-right: auto; }
.lp-has .lp-count { color: var(--navy-700, #16305E); font-weight: 600; }
.lp-quick { display: none; gap: 8px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line, #E3E8F0); background: #F7F9FC; font-size: 12.5px; }
.lp-js .lp-quick { display: flex; }
.lp-quick input { width: 200px; max-width: 100%; }
.lp-quick [data-lp-msg] { color: var(--label-ink, #56647A); font-size: 12px; }
.lp-list { list-style: none; margin: 0; padding: 4px 0; max-height: 360px; overflow: auto; overscroll-behavior: contain; }
.lp .lp-list li > label { display: grid; grid-template-columns: 18px 52px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 7px 12px; margin: 0; font-size: 12.5px; font-weight: 400; cursor: pointer; min-height: 40px; }
.lp .lp-list li > label:hover { background: #F4F7FB; }
.lp .lp-list li > label:has(input:checked) { background: #FFF5EB; }
.lp .lp-list li > label:has(input:disabled) { cursor: default; color: var(--label-ink, #56647A); background: transparent; }
.lp-list .no { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: var(--label-ink, #56647A); font-variant-numeric: tabular-nums; }
.lp-list .desc { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-list .qty { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: var(--label-ink, #56647A); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp-list .st { font-size: 11.5px; white-space: nowrap; padding: 1px 8px; border-radius: 999px; background: #EEF2F8; color: var(--label-ink, #56647A); }
.lp-list .st.ok { background: #E6F4EC; color: #0E6B45; }
.lp-list .st.wait { background: #FFF1DC; color: #8A5A00; }
.lp-none { margin: 0; padding: 12px; font-size: 12.5px; color: var(--label-ink, #56647A); }
.lp-act { background: none; border: 0; padding: 0 2px; min-height: 32px; font-size: 12.5px; color: var(--navy-700, #16305E); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 640px) {
  .lp .lp-list li > label { grid-template-columns: 18px 42px minmax(0, 1fr); }
  .lp-list .qty, .lp-list .st { grid-column: 3; justify-self: start; }
}

/* tables of per-line inputs */
.lt-bar { display: flex; gap: 8px 12px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
.lt-bar .lt-q { flex: 1 1 220px; max-width: 320px; min-width: 0; }
.lt-seg { display: inline-flex; padding: 2px; border-radius: 8px; background: #EEF2F8; gap: 2px; }
.lt-seg button { border: 0; background: none; border-radius: 6px; padding: 0 10px; min-height: 30px; font-size: 12px; font-weight: 600; color: var(--label-ink, #56647A); cursor: pointer; }
.lt-seg button.on { background: var(--surface, #fff); color: var(--navy-700, #16305E); box-shadow: 0 1px 2px rgba(14, 31, 61, .12); }
.lt-count { font-size: 12.5px; color: var(--label-ink, #56647A); font-variant-numeric: tabular-nums; }
.lt-acts { margin-left: auto; display: inline-flex; gap: 12px; }
.lt-btn { background: none; border: 0; padding: 0 2px; min-height: 32px; font-size: 12.5px; color: var(--navy-700, #16305E); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lt-wrap.lt-scroll { max-height: 520px; overflow: auto; overscroll-behavior: contain; border-radius: 8px; box-shadow: 0 0 0 1px var(--line, #E3E8F0); }
.lt-wrap.lt-scroll thead th { position: sticky; top: 0; z-index: 1; background: #F4F7FB; }
.lt-wrap .lt-none { margin: 0; padding: 12px; font-size: 12.5px; color: var(--label-ink, #56647A); }
@media (max-width: 640px) { .lt-acts { margin-left: 0; } .lt-wrap.lt-scroll { max-height: 70vh; } }
/* the enhanced table scrolls itself; older capped containers stop clipping it */
.vp-lines:has(.lt-wrap), .insd-wrap:has(.lt-wrap) { max-height: none !important; overflow: visible !important; }
.lt-wrap.lt-scroll .tbl td { padding-top: 6px; padding-bottom: 6px; }
.lt-paste { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: #F7F9FC; box-shadow: 0 0 0 1px var(--line, #E3E8F0); }
.lt-paste label { display: flex !important; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; margin: 0; }
.lt-paste textarea { max-width: 360px; font-size: 12.5px; }
.lt-paste-acts { display: flex; gap: 10px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.lt-paste-msg { font-size: 12px; color: var(--label-ink, #56647A); }
.lt-wrap.lt-scroll tfoot td { position: sticky; bottom: 0; background: #fff; box-shadow: 0 -1px 0 var(--line, #E3E8F0); }
.lp-small .lp-bar, .lp-small .lp-quick { display: none !important; }
.card-p form label.lt-extra, .lt-extra { display: inline-flex !important; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 400; margin: 0; min-height: 32px; cursor: pointer; }

/* b21 (13 Oct 2026): dropdown arrows sit inside the field with room to breathe,
   never on its right edge. One chevron for every single-choice select in the
   staff app, the vendor portal and the public pages. */
select:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%234A5A73' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 12px;
  padding-right: 36px; cursor: pointer;
}
select:not([multiple]):not([size]).form-select-sm { background-position: right 10px center; padding-right: 30px; }
select:not([multiple]):not([size]):disabled { cursor: not-allowed; opacity: .7; }
select:not([multiple]):not([size])::-ms-expand { display: none; }
