/* Customers screens. Builds on labwolf-os.css and xtazy.css; everything here is prefixed cu-. */
.cu [hidden], .cu-form [hidden], .cu-timeline li[hidden] { display: none !important; }
.cu .button, .cu-form .button, .cu-picks .button { min-height: 40px; }
.cu-back { margin: 0 0 10px; font-size: 13px; }
.cu-back a { color: #5f605b; }
.cu-sub { display: block; color: #656b60; font-size: 12px; margin-top: 2px; }
.cu-soon { display: block; font-size: 12px; white-space: nowrap; }
.cu .right { text-align: right; }

/* forms */
.cu-form { max-width: 720px; }
.cu-form label { display: grid; gap: 6px; }
.cu-form label.woo-toggle { display: flex; align-items: center; gap: 10px; min-height: 40px; line-height: 1.45; }
.cu-form .woo-toggle input, .cu .woo-toggle input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 0; }
.cu-form input:not([type=checkbox]):not([type=radio]), .cu-form select, .cu-form textarea { min-height: 42px; font-size: 15px; width: 100%; }
.cu-form small { color: #656b60; font-weight: 400; }
.cu-plain { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 18px; }
.cu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.cu-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cu-date, .cu-lang { border: 0; padding: 0; margin: 0; min-width: 0; }
.cu-date legend, .cu-lang legend { font-size: 13px; color: #40413e; margin-bottom: 6px; padding: 0; }
.cu-date { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1fr); gap: 8px; }
.cu-date legend { grid-column: 1 / -1; }
.cu-lang { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.cu-error { color: var(--xz-bad); margin: 0; font-size: 13px; }
.cu-error:empty { display: none; }
.cu-form h3, .cu-h3 { margin: 6px 0 0; font-size: 14px; }
.cu-consent { display: grid; gap: 10px; }
.cu-proof { margin: 0; font-size: 13px; line-height: 1.6; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* "do not text" banner — shape and words, not only colour */
.cu-stop { display: grid; gap: 4px; border: 2px solid var(--xz-bad); background: #fde7e5; color: #5c120c; border-radius: 10px; padding: 14px 16px; margin: 0 0 18px; }
.cu-stop strong { font-size: 14px; }
.cu-stop strong::before { content: "⛔ "; }
.cu-stop span { font-size: 13px; line-height: 1.55; }
.cu-stop-box { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--os-line, #e1e4dc); }

/* profile */
.cu-show-records { margin-bottom: 12px; }
.cu-timeline .cu-record::before { background: #c9ccc2; }
.cu-timeline .cu-record strong { font-weight: 500; color: #4b4f47; }
.cu-detail { white-space: pre-line; overflow-wrap: anywhere; }
.cu-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.cu-notes { white-space: pre-line; font-size: 13px; line-height: 1.6; background: #fafaf7; border-radius: 8px; padding: 10px 12px; margin: 14px 0 0; overflow-wrap: anywhere; }
.cu-tidy { display: grid; gap: 10px; }
.cu .xz-dl dd { overflow-wrap: anywhere; }
.cu-confirm { margin: 0; line-height: 1.6; }
.button.cu-big { display: flex; width: 100%; min-height: 56px; font-size: 16px; }

/* merge search results */
.cu-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cu-picks li { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--os-line, #e1e4dc); border-radius: 9px; padding: 10px 12px; }
.cu-picks li span { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.cu-picks small { color: #656b60; }
.cu-none { color: #656b60; font-size: 13px; }

/* import */
.cu-drop { display: grid; gap: 4px; padding: 28px 18px; }
.cu-drop strong { font-size: 15px; color: #111210; }
.cu-drop:focus-within { outline: 2px solid #111210; outline-offset: 2px; }
.cu-preview { margin-top: 16px; max-height: 520px; overflow: auto; }
.cu-preview td, .cu-preview th { font-size: 13px; }

/* duplicates */
.cu-dup { display: grid; gap: 14px; }
.cu-dup-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.cu-dup-card { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; border: 1px solid var(--os-line, #e1e4dc); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.cu-dup-card > span { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.cu-dup-card small { color: #656b60; font-size: 12px; }
.cu-dup-card input { margin-top: 3px; }
.cu-dup-card .cu-keep { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: #656b60; }
.cu-dup-card:has(input:checked) { border-color: #111210; box-shadow: 0 0 0 1px #111210; }
.cu-dup-card:has(input:checked) .cu-keep { color: #111210; font-weight: 600; }
.cu-dup-card:has(input:checked) .cu-keep::before { content: "✓ "; }

.cu-show-sm { display: none; }
@media (max-width: 700px) {
  .cu-hide-sm { display: none; }
  .cu-show-sm { display: block; }
  .cu-grid, .cu-grid-3 { grid-template-columns: 1fr; }
  .cu .page-heading .xz-actions { width: 100%; }
  .cu .page-heading .xz-actions .button { flex: 1 1 auto; }
  .cu-picks li { flex-direction: column; align-items: stretch; }
  .cu .os-table-toolbar select { max-width: 100%; }
  .cu .os-table-search, .cu .os-table-search input { width: 100%; }
}
