/* Unum shared look v2 (D2, docs/invoicing-redesign.md). First used by invoicing/next.html; other screens adopt it as
   they are next worked on. Loaded after Tailwind.
   Cards, labelled values, buttons, status tokens, light tables and banners — the values are the ones Steve reviewed on
   the Invoicing preview (invoicing/preview.html, 10 Oct 2026). No real monospace anywhere (UI-GUIDE): .num and
   .font-mono are tabular figures in the UI font. UnumUI menus (.uu-menu) are core/ui.js's own (STATUS 167). */

/* figures, labels, focus */
.num,.font-mono{font-family:inherit !important;font-variant-numeric:tabular-nums}
.lbl{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#6b7280}
:where(button,a,summary,[tabindex]):focus-visible{outline:2px solid #3b82f6;outline-offset:2px;border-radius:6px}

/* segmented tabs (.useg — .seg stays the editor's own Handed over | Pick queue control) */
.useg{display:inline-flex;border:1px solid #d1d5db;border-radius:8px;overflow:hidden;background:#fff;flex-shrink:0}
.useg > *{padding:6px 10px;font-size:13px;color:#4b5563;border-left:1px solid #e5e7eb;white-space:nowrap}
.useg > :first-child{border-left:0}
.useg > :hover{background:#f9fafb}
.useg > .on{background:#eff6ff;color:#1d4ed8;font-weight:600}

/* search box */
.q-in{width:100%;height:30px;border:1px solid #d1d5db;border-radius:8px;padding:0 12px 0 34px;background:#fff;font-size:13px}
.q-in:focus{outline:2px solid #3b82f6;outline-offset:-1px;border-color:#3b82f6}

/* Tailwind's preflight sets kbd to a real monospace at 1em — forced back (UI-GUIDE: no monospace) */
body kbd{font-family:inherit !important;font-size:10.5px !important;line-height:16px;border:1px solid #e5e7eb;border-bottom-width:2px;border-radius:4px;padding:0 4px;color:#6b7280;background:#fff}

/* cards and labelled values */
.card{background:#fff;border:1px solid #e6e8ec;border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.04);min-width:0}
.card-h{display:flex;align-items:center;gap:8px;padding:14px 18px 6px;min-height:44px}
.card-b{padding:2px 18px 12px}
.card-f{padding:10px 18px;border-top:1px solid #f1f2f4;font-size:12px;color:#6b7280;background:#fcfcfd;border-radius:0 0 12px 12px}
.kv{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 0;border-top:1px solid #f1f2f4;min-height:40px}
.card-b > .kv:first-child{border-top:0}
.kv .k{color:#6b7280;flex-shrink:0;max-width:50%}
.kv .v{text-align:right;color:#111827;font-variant-numeric:tabular-nums;min-width:0;overflow-wrap:anywhere}
/* a long single value (a marketplace email) is cut with … and shown whole in its tooltip, never broken mid-word */
.kv .v.ell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;overflow-wrap:normal}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 12px;border-radius:8px;
  font-size:13px;font-weight:600;white-space:nowrap;background:#2563eb;color:#fff;border:1px solid #2563eb;flex-shrink:0;
  transition:background .12s,border-color .12s}
.btn:hover{background:#1d4ed8}
.btn:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}
.btn-g{background:#fff;border-color:#d1d5db;color:#374151;font-weight:500}.btn-g:hover{background:#f9fafb;border-color:#9ca3af}
.btn-i{width:32px;padding:0}
.btn-red{background:#fff;color:#b91c1c;border-color:#fecaca;font-weight:500}.btn-red:hover{background:#fef2f2}
.btn:disabled,.btn[aria-disabled=true]{opacity:.5;cursor:not-allowed}
.btn-sm{height:26px;padding:0 9px;font-size:12px}
.split{display:inline-flex}.split .btn:first-child{border-radius:8px 0 0 8px}.split .btn:last-child{border-radius:0 8px 8px 0;border-left-color:#1d4ed8;width:28px;padding:0}

/* status tokens */
.tk{display:inline-flex;align-items:center;gap:4px;border-radius:4px;padding:1px 8px;font-size:11px;font-weight:600;line-height:18px;white-space:nowrap}
.tk-amber{background:#fef3c7;color:#92400e}.tk-red{background:#fee2e2;color:#b91c1c}.tk-purple{background:#ede9fe;color:#6d28d9}
.tk-orange{background:#ffedd5;color:#c2410c}.tk-blue{background:#dbeafe;color:#1d4ed8}.tk-slate{background:#f1f5f9;color:#475569}
.tk-cyan{background:#cffafe;color:#0e7490}.tk-stone{background:#f5f5f4;color:#57534e}
button.tk{cursor:pointer}

/* small pieces */
.paid{color:#15803d;font-weight:600}
.ib{color:#6b7280;border-radius:6px;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.ib:hover{color:#2563eb;background:#eff6ff}
mark{background:#fef08a;color:inherit;border-radius:2px;padding:0 1px}
.muted{color:#6b7280}
.sk{background:linear-gradient(90deg,#f1f2f4 25%,#e8eaee 37%,#f1f2f4 63%);background-size:400% 100%;animation:skl 1.3s ease infinite;border-radius:6px}
@keyframes skl{0%{background-position:100% 50%}100%{background-position:0 50%}}

/* light tables */
.lt{width:100%;border-collapse:collapse;font-size:13px}
.lt th{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#6b7280;text-align:left;padding:6px 8px;
  border-bottom:1px solid #e5e7eb;white-space:nowrap;background:#fff}
.lt td{padding:5px 8px;border-bottom:1px solid #f1f2f4;vertical-align:middle;height:32px}
.lt tr:last-child td{border-bottom:0}
.lt .r,.lt th.r{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.lt .sub{display:block;font-size:12px;color:#6b7280}

/* banners */
.banner{border-radius:10px;padding:8px 12px;font-size:13px}
.banner.amb{background:#fffbeb;border:1px solid #fde68a;color:#92400e}
.banner.pur{background:#f5f3ff;border:1px solid #ddd6fe;color:#5b21b6}
.banner.blu{background:#eff6ff;border:1px solid #bfdbfe;color:#1e3a8a}

.err-card{padding:22px;text-align:center;color:#374151}
