/* GC2 — the plan's UI standards U1 and U2 (rule 16), set once for every page and loaded last so no page's older size
   wins: body and table text 14 px; numbers and codes in the number font, isolated left to right; buttons at least 36 px
   on a computer and 44 px on a phone or a kiosk. The measured sweep (tests/e2e/specs/gc2-standards.spec.js) holds it. */
html, body { font-size: 14px; }
#page-body, #page-body p, #page-body li, #page-body td, #page-body dd, #page-body dt, #page-body label,
#page-body .muted, #page-body .panel, #page-body .card, .mb, .mb p, .mb td, .mb label {
  font-size: 14px;
}
#page-body th, .mb th { font-size: 13px; }
#page-body input, #page-body select, #page-body textarea, #page-body .fin, #page-body .fse, #page-body .fta,
.mb input, .mb select, .mb textarea, .mb .fin, .mb .fse, .mb .fta {
  font-size: 14px; min-height: 36px;
}
#page-body input[type="checkbox"], #page-body input[type="radio"], .mb input[type="checkbox"], .mb input[type="radio"] { min-height: 0; }

/* buttons: one height for every kind, the small ones included */
/* the floor only: a large button keeps its own padding (the wizards' 44 px "approve all", the main buttons) */
.btn, .btn.sm, button.btn, a.btn, input[type="submit"].btn {
  min-height: 36px; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.btn.sm { font-size: 13px; padding-inline: 12px; padding-block: 7px; line-height: 1.3; }

/* numbers and codes (tagged by numbers.js): the number font, left to right inside Arabic text */
.num, td.num, .code-ltr {
  font-family: var(--mono, 'DM Mono', monospace); font-variant-numeric: tabular-nums;
  direction: ltr; unicode-bidi: isolate;
}

/* a phone or a kiosk: 44 px targets */
@media (max-width: 640px), (pointer: coarse) {
  .btn, .btn.sm, button.btn, a.btn, input[type="submit"].btn { min-height: 44px; }
  #page-body input, #page-body select, .mb input, .mb select { min-height: 44px; }
}

/* GC2 — the sweep's findings: hint paragraphs and table cells kept smaller sizes through older !important rules; every
   button counts, not only .btn (the help mark, the table's Columns and Save this view) */
#page-body p, #page-body td, .mb p, .mb td { font-size: 14px !important; }
:where(#page-body, .mb) button { min-height: 36px; }
.help-tip .help-q { width: 36px; height: 36px; min-height: 36px; font-size: 15px; }
.win-hd .help-tip .help-q { width: 36px; height: 36px; }
@media (max-width: 640px), (pointer: coarse) {
  :where(#page-body, .mb) button, .help-tip .help-q { min-height: 44px; min-width: 44px; }
}
