/* A bounded in-page popup, not the OS menu which can exceed a narrow viewport. */
#mobile-select-menu {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  min-width: 0;
  max-width: calc(100vw - 16px);
  padding: 4px;
  border: 1px solid #dce4f0;
  border-radius: 9px;
  background: #fff;
  color: #14254c;
  box-shadow: 0 6px 20px #14254c24;
  z-index: 10000;
  overflow: auto;
  overscroll-behavior: contain;
  font-family: inherit;
  line-height: 1.35;
}
#mobile-select-menu > button {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 32px;
  height: auto;
  margin: 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transform: none;
}
#mobile-select-menu > button[aria-selected="true"],
#mobile-select-menu > button.is-active,
#mobile-select-menu > button:hover { background: #eaf2ff; }
#mobile-select-menu > button:focus-visible { outline: 1px solid #3159ad; outline-offset: -1px; }
#mobile-select-menu > button:disabled { color: #8996ab; cursor: default; background: #fff; }
#mobile-select-menu > .mobile-select-group { padding: 5px 10px; font-size: .9em; color: #7b879e; }

/* The old 286px action grid exceeded narrow student cards. Only shrink it. */
@media (max-width: 680px) {
  .student-management-main .student-card-actions {
    width: min(100%, 286px);
    max-width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 92px));
  }
  .student-management-main .student-card-actions .icon-btn {
    width: 100%;
    max-width: 92px;
    min-width: 0;
  }
}
