/* Overrides for stock Django admin CSS, loaded via templates/admin/base_site.html. */

/* Stock admin enforces min-width: 980px on #container and only clears it
   below 768px. Windows in between (narrow or zoomed desktops) overflow
   horizontally, pushing inline form columns past the window edge. Make the
   layout fluid at every width; Django's responsive rules handle the rest. */
#container {
  min-width: 0;
}

/* Tabular inlines (e.g. courses on a campaign) can still be wider than the
   content area at narrow widths — scroll within the group instead of
   pushing the page out. */
.inline-group {
  overflow-x: auto;
}

/* Django fixes several field widths in em (description textarea = 48em,
   URL field = 30em). Combined with the fixed 160px label column that
   forces ~950px of minimum page width — let fields shrink instead. */
.vLargeTextField, .vURLField, .vTextField {
  max-width: 100%;
}
