/* Form boxes that stick out past the page edge (r260): a date + time pair in a form row (like Sent at on an invoice) may wrap and never pushes wider than its row. */
form .vDateField, form .vTimeField, form input[type="time"], form input[type="date"] { max-width: 100%; min-width: 0; box-sizing: border-box; }
form .field-box:has(input.vTimeField), form .form-row div:has(> input.vTimeField), form div:has(> .vTimeField):has(> .vDateField) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
form .datetimeshortcuts { white-space: nowrap; }

/* Header search box (templates/unfold/helpers/header.html): always visible, so nobody has to know about Ctrl+K */
.ts-hsearch { position: relative; flex: 1 1 280px; max-width: 420px; margin-right: 12px; }
.ts-hsearch .material-symbols-outlined { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 20px; opacity: .55; pointer-events: none; }
.ts-hsearch input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--color-base-200, #e5e7eb); border-radius: 10px; background: #fff; color: inherit; font-size: .9rem; }
.dark .ts-hsearch input { background: var(--color-base-800, #1f2937); border-color: var(--color-base-700, #374151); }   /* r378: warm, a step lighter than the bar it sits in */
.ts-hsearch input:focus { outline: 2px solid var(--color-primary-500, #7c3aed); outline-offset: 0; }
@media (max-width: 640px) { .ts-hsearch { flex-basis: 100%; max-width: none; margin-right: 8px; } }
