/* Promotional overlays must not cover the operational navigation. */
iframe#nl-badge-frame { display: none !important; pointer-events: none !important; }
.record-filters {display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:14px;align-items:end;padding:0 22px 20px;border-bottom:1px solid var(--line)}
#record-filter-error {padding:0 22px}
.record-badges {display:flex;gap:6px;flex-wrap:wrap}
.record-task {padding:18px 0;border-bottom:1px solid var(--line)}
.record-task p {font-size:14px;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}
.record-task small {color:var(--muted)}
.record-labor-summary {margin:24px 0}
.record-notes {white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.8}
.record-attachments {padding-left:20px;line-height:2;font-size:13px;overflow-wrap:anywhere}
.record-attachments a {text-decoration:underline;text-underline-offset:3px}
.empty-job-history {padding:18px 22px;margin-top:24px;font-size:12px;line-height:1.7}
.empty-job-history summary {cursor:pointer;font-weight:600}
.saved-drafts {margin-top:28px}
.saved-draft-row {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;border-bottom:1px solid var(--line)}
.saved-draft-row:last-child {border:0}
.saved-draft-row h3 {margin:0 0 8px;font-size:14px;overflow-wrap:anywhere}
.saved-draft-row p,.saved-draft-row small {margin:6px 0;color:var(--muted);font-size:11px}
.draft-save-state {margin:0 0 20px;color:var(--muted);font-size:12px}
.draft-conflict {padding:16px;margin-bottom:20px;background:#fff6df;border:1px solid #dbc382;border-radius:8px;font-size:13px;line-height:1.6}
.record-shortcuts {margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.shortcut-picker {margin:12px 0;font-size:12px}
.shortcut-picker label {display:block;margin-bottom:8px;color:var(--muted)}
.shortcut-picker select {flex:1;min-width:0;padding:11px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink)}
.shortcut-save-actions {margin-top:22px}
.library-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.shortcut-card {padding:20px 0;border-top:1px solid var(--line)}
.shortcut-card h3 {font-size:15px;margin:0 0 10px}
.shortcut-card p {font-size:12px;line-height:1.7;overflow-wrap:anywhere;margin-bottom:16px}
#shortcut-form .field {margin:18px 0}
.save-task {margin:8px 0 0;padding-left:0;font-size:11px}
@media(max-width:1050px){.library-grid{grid-template-columns:1fr}.record-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){
  .record-filters{padding:0 14px 18px;gap:14px 10px}
  .record-filters input,.record-filters select,.shortcut-picker select{font-size:16px;min-height:48px;max-width:100%}
  .saved-draft-row{align-items:flex-start;flex-direction:column;padding:20px}
  .saved-draft-row>.row{width:100%;justify-content:space-between}
  .record-shortcuts>.row{align-items:flex-start;flex-direction:column;gap:4px}
  .record-shortcuts h3{margin:0}
  .record-task p{font-size:15px}
  .record-mobile .record-badges{flex-direction:column;align-items:flex-start}
  .record-shortcuts .button.link{padding-left:0}
}

.customer-directory{margin:24px 0}
.customer-directory>.muted{font-size:13px;line-height:1.7}
.customer-directory>.field{margin:22px 0 12px;max-width:480px}
.customer-count{font-size:12px;color:var(--muted)}
.customer-list{list-style:none;margin:0;padding:0;max-height:480px;overflow-y:auto}
.customer-list li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid var(--line)}
.customer-list strong{font-size:14px;overflow-wrap:anywhere;min-width:0}
.customer-list .row{flex-shrink:0}
#customer-form .field{margin:20px 0}
@media(max-width:700px){.customer-directory .section-heading{align-items:flex-start;gap:12px;flex-direction:column}.customer-list li{align-items:flex-start;flex-direction:column}.customer-directory input,#customer-choice{font-size:16px;min-height:48px}}
.customer-name{min-width:0}.customer-name small{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:8px;overflow-wrap:anywhere}
.customer-matches{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}
#customer-merge-form .field{margin:20px 0}#customer-distinct-label{margin:20px 0;align-items:flex-start}
#customer-distinct-label[hidden]{display:none}
.record-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border-bottom:1px solid var(--line);background:#faf9f3}
.record-selection-bar strong{font-size:13px}.record-selection-bar p{font-size:11px;color:var(--muted);line-height:1.6;margin:7px 0 0;max-width:420px}
.record-selection-actions{display:flex;flex-wrap:wrap;gap:8px;flex-shrink:0}
.record-select{display:inline-flex;align-items:center;gap:9px;min-width:36px;min-height:40px;cursor:pointer;font-size:12px;color:var(--muted)}
.record-select input{width:18px;height:18px;accent-color:var(--gold-dark);cursor:pointer}
.records-table .record-selection-cell{padding:8px 0 8px 16px;width:42px}.record-selected{background:#f7f4e8}
.record-mobile>.record-select{margin-bottom:8px}
#record-packet-actions[hidden],#record-packet-frame[hidden]{display:none}
@media(max-width:1100px){.record-selection-bar{align-items:flex-start;flex-direction:column}.record-selection-actions{flex-shrink:1}}
@media(max-width:700px){.record-selection-bar{padding:18px 14px}.record-selection-actions{width:100%}.record-selection-actions .button{flex:1;white-space:nowrap}.record-selection-actions .button.primary{flex-basis:100%}.record-select{min-height:44px}}
