.unit-label { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: .15rem .6rem; min-width: 0; max-width: 100%; }
.officer-contact { display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; padding: .15rem 0; color: var(--accent); background: transparent; border: 0; font: inherit; font-weight: 500; line-height: 1.4; text-decoration: underline; text-underline-offset: .15em; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.officer-contact-print { display: none; }
.event-row:has(.has-contact) { grid-template-columns: minmax(0, 1fr); gap: .2rem; }
.event-row .unit-label { font-size: .8rem; }
.missing-info .unit-name { color: inherit; }
.contact-dialog { width: min(440px, calc(100% - 1.5rem)); box-sizing: border-box; max-height: calc(100dvh - 2rem); overflow-y: auto; border: 1px solid var(--border, #aaa); border-radius: 1rem; padding: 1.2rem; background: var(--surface, #fff); color: var(--text, var(--text-primary, #222)); }
.contact-dialog::backdrop { background: #0007; }
.contact-heading { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.contact-heading h2 { margin: 0; font-size: 1.1rem; }
.contact-close { border: 0; border-radius: .5rem; min-height: 44px; padding: .5rem; color: var(--accent); background: transparent; font: inherit; cursor: pointer; }
.contact-unit, .contact-note { font-size: .85rem; color: var(--muted, var(--text-secondary, #666)); }
.contact-name, .contact-phone { overflow-wrap: anywhere; margin-bottom: .7rem; }
.contact-name { font-weight: 650; }
.contact-form { display: grid; gap: .65rem; }
.contact-form label { display: grid; gap: .3rem; font-size: .85rem; }
.contact-form input { box-sizing: border-box; min-width: 0; width: 100%; min-height: 44px; padding: .6rem; border: 1px solid var(--border, #aaa); border-radius: .5rem; background: var(--surface, #fff); color: inherit; font: inherit; }
.contact-form p { margin: 0; }
.contact-call { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .6rem 1rem; border: 0; border-radius: .6rem; background: #0071e3; color: #fff; font: inherit; text-decoration: none; cursor: pointer; }
.contact-call:disabled, .contact-close:disabled { opacity: .5; }
.contact-message { font-size: .85rem; overflow-wrap: anywhere; }
.contact-message:empty { display: none; }
@media print {
  .officer-contact, .contact-dialog { display: none !important; }
  .officer-contact-print { display: inline; color: #000; font-weight: 400; }
  .unit-label { gap: .15rem .5rem; }
}
