/* Compact screen forms; output documents and the login keep their own layout. */
@media screen {
 :is(#app,dialog) { --form-control-height:26px; }
 :is(#app,dialog) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]):not([type=range]):not(.segmented-date-source),select) {
   box-sizing:border-box; height:var(--form-control-height); min-height:var(--form-control-height)!important;
   padding:2px 8px; line-height:1.25; box-shadow:none;
 }
 :is(#app,dialog) .segmented-date { height:var(--form-control-height); min-height:var(--form-control-height)!important; }
 :is(#app,dialog) .segmented-date > input[type=text] { height:calc(var(--form-control-height) - 2px); min-height:0!important; padding:2px 8px; }
 :is(#app,dialog) textarea { padding:5px 8px; line-height:1.4; resize:vertical; }
 :is(#app,dialog) textarea[rows="1"] { height:var(--form-control-height); min-height:var(--form-control-height)!important; padding:2px 8px; }
 #modalBody .customer-fixed-row, #modalBody .customer-data-section, #modalBody .customer-section-layout, #modalBody .customer-block-layout { gap:7px; }
 #modalBody .customer-section-row { row-gap:7px; }
 #modalBody .customer-data-section, #modalBody .customer-field-block, #modalBody > .customer-class-overview { padding:10px 12px; }
 #modalBody .customer-section-heading, #modalBody .customer-field-block > h4, #modalBody .customer-class-overview > h3 { padding:6px 8px; margin-bottom:8px; }
 #modalBody .customer-field-caption { font-weight:500; line-height:1.3; }
 #modalBody label { row-gap:4px; }
 :is(.annual-exam-form,.annual-exam-details-grid,.waitlist-edit-dialog form,.assigned-edit-dialog form) { row-gap:8px; }
 .annual-exam-details-grid { padding:10px 12px; }
 /* Keep fields usable with larger configured fonts. */
 :is(#app,dialog) { --form-control-height:max(26px,1.65em); }
 @media(pointer:coarse), (max-width:700px) {
  :is(#app,dialog) { --form-control-height:max(36px,1.8em); }
  :is(#app,dialog) :is(input,select,textarea) { font-size:max(16px,1em); }
 }
}
