/* PanelCard (shared card container) */
.panelCard {
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e5e7;
}

.panelCard--mbLg {
  margin-bottom: 1.5rem;
}

.panelCard--overflowXAuto {
  overflow-x: auto;
}

.panelCard--tightX {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.panelCard--clickable {
  cursor: pointer;
  transition: all 0.2s;
}

/* ModalBase */
.modalBase_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  overflow-y: auto;
}

.modalBase_overlay.is-open {
  display: block;
}

#gradeResetModal.is-open {
  display: block;
}

.modalBase_card {
  margin: 50px auto;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  box-sizing: border-box;
  width: min(calc(100vw - 32px), 500px);
  max-width: 500px;
}

.modalBase_w460 {
  width: min(calc(100vw - 32px), 460px);
  max-width: 460px;
}

.modalBase_w480 {
  width: min(calc(100vw - 32px), 480px);
  max-width: 480px;
}

.modalBase_w500 {
  width: min(calc(100vw - 32px), 500px);
  max-width: 500px;
}

.modalBase_w520 {
  width: min(calc(100vw - 32px), 520px);
  max-width: 520px;
}

.modalBase_w560 {
  width: min(calc(100vw - 32px), 560px);
  max-width: 560px;
}

.modalBase_w600 {
  width: min(calc(100vw - 32px), 600px);
  max-width: 600px;
}

.modalBase_w700 {
  width: min(calc(100vw - 32px), 700px);
  max-width: 700px;
}

.modalBase_w860 {
  width: min(calc(100vw - 32px), 860px);
  max-width: 860px;
}

.modalBase_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modalBase_title {
  margin: 0;
  color: #1d1d1f;
}

.modalBase_closeBtn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #86868b;
  padding: 0;
  width: 30px;
  height: 30px;
}

body.modal-open {
  overflow: hidden;
}

/* AdminCreateRoleModal（オーバーレイ中央寄せ） */
.createRoleModal_overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.createRoleModal_overlay.is-open {
  display: flex;
}

.createRoleModal_card {
  background: #ffffff;
  border-radius: 16px;
  width: min(92vw, 520px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.createRoleModal_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.createRoleModal_title {
  margin: 0;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 1.25rem;
}

.createRoleModal_closeBtn {
  background: none;
  border: none;
  cursor: pointer;
  color: #86868b;
  padding: 4px;
}

.createRoleModal_body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.createRoleModal_sectionIntro {
  margin-bottom: 1rem;
}

.createRoleModal_field {
  margin-bottom: 1.5rem;
}

.createRoleModal_label {
  display: block;
  margin-bottom: 0.5rem;
  color: #1d1d1f;
  font-weight: 600;
}

.createRoleModal_input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.createRoleModal_hint {
  display: block;
  margin-top: 4px;
  color: #86868b;
}

.createRoleModal_actions {
  display: flex;
  gap: 1rem;
}

.createRoleModal_btnSecondary {
  flex: 1;
  padding: 12px;
  background: #e5e5e7;
  color: #1d1d1f;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.createRoleModal_btnPrimary {
  flex: 1;
  padding: 12px;
  background: #007aff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
}

.createRoleModal_deleteSectionIntro {
  margin-bottom: 1rem;
}

.createRoleModal_deleteList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.createRoleModal_roleTextCol {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.createRoleModal_deleteForm {
  margin: 0;
  flex-shrink: 0;
}

