/* Phone-width fixes shared by every admin page (linked after each page's own <style>).
   The pages keep their own inline styles; this only holds what must be the same everywhere. */
@media (max-width: 700px) {
  /* Under 16px, iPhones zoom the whole page in when a field is tapped. */
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]),
  select, textarea { font-size: 16px !important; }

  /* Rows of tabs, top-bar links and button groups wrap instead of pushing the page sideways. */
  .tabs, .admin-topbar, .admin-topbar .topbar-right, .topbar-right { flex-wrap: wrap; }
  .admin-topbar { height: auto; min-height: 52px; padding-top: 6px; padding-bottom: 6px; row-gap: 4px; }
  .admin-topbar .topbar-right, .topbar-right { gap: 10px; }
  .tabs { row-gap: 6px; }

  /* A table that isn't inside a scrolling wrapper scrolls on its own. */
  details > table { display: block; overflow-x: auto; max-width: 100%; }
}
