/* Django admin: force light mode and use full screen width */

html {
  color-scheme: light;
}

/* Hide theme toggle (we use light mode only) */
button.theme-toggle {
  display: none !important;
}

#container {
  max-width: none;
  width: 100%;
  min-height: 100vh;
}

/* Login page: don't force full viewport height so page fits the form */
body.login #container {
  min-height: 0;
}

#container .main {
  max-width: none;
  width: 100%;
  min-height: 0;
  height: fit-content;
  flex: 0 0 auto;
  align-self: start;
}

/* Override Django login.css so main content doesn't stretch (login loads after us) */
body.login #main.main,
body.login #main main#content-start.content {
  width: 100%;
  min-height: 0 !important;
  height: fit-content !important;
  flex: 0 0 auto !important;
  align-self: start !important;
}

#content {
  max-width: none;
}

/* Shrink main to match inner #content height (e.g. login form), not full viewport */
#main main#content-start.content {
  width: 100%;
  min-height: 0;
  height: fit-content;
  align-self: start;
}

#content .module,
#content .module table {
  max-width: none;
}

.result-list table {
  width: 100%;
}
