.school-year-module {
  --school-year-accent: var(--primary);
  --school-year-accent-soft: var(--primary-soft, #f1efff);
  color: var(--navy);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.school-year-heading {
  padding: 18px 28px 13px;
  color: #fff;
  background: var(--color-sidebar-bg, var(--navy));
}

.school-year-heading h2 {
  margin: 0;
  color: #fff;
  font-size: 27px;
  line-height: 1.15;
  letter-spacing: 0;
}

.school-year-heading p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.school-year-subtabs {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  padding: 9px 28px 0;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--color-sidebar-bg, var(--navy)) 7%, #fff);
  overflow-x: auto;
  scrollbar-width: thin;
}

.school-year-subtabs button {
  position: relative;
  min-width: max-content;
  min-height: 42px;
  padding: 0 19px;
  border: 1px solid color-mix(in srgb, var(--color-sidebar-bg, var(--navy)) 22%, #dbe3ed);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: var(--color-sidebar-bg, var(--navy));
  background: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.school-year-subtabs button::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
}

.school-year-subtabs button:hover {
  color: var(--color-sidebar-bg, var(--navy));
  border-color: color-mix(in srgb, var(--color-sidebar-bg, var(--navy)) 42%, #fff);
  background: color-mix(in srgb, var(--color-sidebar-bg, var(--navy)) 12%, #fff);
}

.school-year-subtabs button.active {
  color: #fff;
  border-color: var(--color-primary, var(--school-year-accent));
  background: var(--color-primary, var(--school-year-accent));
  box-shadow: 0 4px 10px color-mix(in srgb, var(--color-primary, var(--school-year-accent)) 22%, transparent);
}

.school-year-subtabs button.active::after {
  background: #fff;
}

.school-year-overview {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fafc;
}

.school-year-hero {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 152px;
  padding: 14px 30px;
  border: 1px solid color-mix(in srgb, var(--school-year-accent) 18%, #dbe3ef);
  border-radius: 8px;
  background: linear-gradient(115deg, #fff 0%, color-mix(in srgb, var(--school-year-accent-soft) 52%, #fff) 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, .045);
}

.school-year-logo {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
}

.school-year-logo .school-year-logo-image,
.school-year-logo .school-logo {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border: 0;
  box-shadow: none;
}

.school-year-hero-copy {
  min-width: 0;
}

.school-year-hero-copy > small {
  color: #53627c;
  font-size: 12px;
  font-weight: 800;
}

.school-year-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.school-year-title-row h2 {
  margin: 0;
  color: #111827;
  font-size: 31px;
  line-height: 1;
  letter-spacing: 0;
}

.school-year-hero-copy p {
  max-width: 630px;
  margin: 10px 0 0;
  color: #5f6f89;
  font-size: 13px;
  line-height: 1.55;
}

.school-year-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.school-year-status.preparation { color: #b65b00; background: #fff0cf; }
.school-year-status.active { color: #087a43; background: #dcfce7; }
.school-year-status.draft { color: #596579; background: #eef2f7; }
.school-year-status.closed { color: #4b5b73; background: #edf1f5; }
.school-year-status.archived { color: #5f6570; background: #e5e7eb; }

.school-year-manage-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding: 0 22px;
  border: 1px solid var(--school-year-accent);
  border-radius: 7px;
  color: #fff;
  background: var(--school-year-accent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--school-year-accent) 24%, transparent);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.school-year-manage-button:hover { filter: brightness(.94); }
.school-year-manage-button .button-svg { width: 18px; height: 18px; }

.school-year-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(270px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.school-year-context-card,
.school-year-history,
.school-year-preview-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 15px rgba(15, 23, 42, .09);
}

.school-year-context-card {
  grid-column: 1;
  grid-row: 1;
  padding: 16px 18px;
}

.school-year-context-card > header h3,
.school-year-history > header h3,
.school-year-preview-card > h3 {
  margin: 0;
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
}

.school-year-context-card > header p,
.school-year-history > header p {
  max-width: 700px;
  margin: 4px 0 0;
  color: #637089;
  font-size: 12px;
  line-height: 1.55;
}

.school-year-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  margin-top: 14px;
}

.school-year-fields label {
  min-width: 0;
  color: #4e5d74;
  font-size: 11px;
  font-weight: 800;
}

.school-year-fields label > span {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 5px;
}

.school-year-fields label > span small {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--school-year-accent);
  background: var(--school-year-accent-soft);
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.school-year-fields select,
.school-year-date-control,
.school-year-display-field {
  width: 100%;
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box;
  border: 1px solid #d5deea;
  border-radius: 6px;
  color: #192235;
  background-color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.school-year-fields select {
  appearance: none;
  padding: 0 36px 0 12px;
  cursor: pointer;
}

.school-year-fields select:disabled {
  color: #778399;
  cursor: not-allowed;
  opacity: 1;
}

.school-year-select-control,
.school-year-date-control {
  position: relative;
  width: 100%;
}

.school-year-select-control > .button-svg {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 16px;
  height: 16px;
  color: #53627c;
  pointer-events: none;
  transform: translateY(-50%);
}

.school-year-select-control:focus-within select,
.school-year-date-control:focus-within {
  border-color: var(--school-year-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--school-year-accent) 13%, transparent);
}

.school-year-date-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  overflow: hidden;
}

.school-year-date-control input {
  min-width: 0;
  height: 36px;
  padding: 0 4px 0 12px;
  border: 0;
  outline: 0;
  color: #192235;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.school-year-date-control input::-webkit-calendar-picker-indicator {
  display: none;
}

.school-year-date-control button {
  width: 38px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-left: 1px solid #e3e8ef;
  color: #53627c;
  background: #f8fafc;
  cursor: pointer;
}

.school-year-date-control button:hover {
  color: var(--school-year-accent);
  background: var(--school-year-accent-soft);
}

.school-year-date-control .button-svg {
  width: 17px;
  height: 17px;
}

.school-year-select-control.status-control select {
  font-weight: 800;
}

.school-year-select-control.status-control.preparation select { color: #a95400; background: #fff5df; }
.school-year-select-control.status-control.active select { color: #087a43; background: #ecfdf3; }
.school-year-select-control.status-control.draft select { color: #596579; background: #f4f6f9; }
.school-year-select-control.status-control.closed select { color: #4b5b73; background: #f1f4f7; }
.school-year-select-control.status-control.archived select { color: #5f6570; background: #eceef1; }

.school-year-display-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 11px;
}

.school-year-display-field.neutral { color: #778399; }
.school-year-display-field .button-svg { width: 15px; height: 15px; color: #64748b; }
.school-year-display-field.status-field { justify-content: flex-start; }
.school-year-display-field.status-field em { margin-left: auto; color: #6b7280; font-size: 9px; font-weight: 800; }

.school-year-history {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 16px 18px;
}

.school-year-table-wrap {
  max-width: 100%;
  margin-top: 11px;
  border: 1px solid #dbe3ec;
  border-radius: 7px;
  overflow-x: auto;
}

.school-year-table-wrap table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: #53627b;
  font-size: 11px;
}

.school-year-table-wrap th {
  padding: 10px 12px;
  color: #54617a;
  background: var(--school-year-accent-soft);
  font-size: 10px;
  text-align: left;
  white-space: nowrap;
}

.school-year-table-wrap td {
  padding: 9px 12px;
  border-top: 1px solid #e3e9f0;
  background: #fff;
  white-space: nowrap;
}

.school-year-table-wrap tbody tr:nth-child(even) td { background: #f8fbfe; }
.school-year-table-wrap tbody tr:hover td { background: var(--school-year-accent-soft); }
.school-year-table-wrap td strong { color: #192235; }
.school-year-table-empty { padding: 20px !important; color: #7a8699; text-align: center; }
.school-year-mode { font-size: 10px; font-weight: 700; }
.school-year-mode.readonly { color: #5e6c82; }

.school-year-preview-card {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: stretch;
  padding: 16px;
  border-color: var(--color-sidebar-bg, var(--navy));
  background: var(--color-sidebar-bg, var(--navy));
}

.school-year-preview-card > h3 {
  margin: 0 0 12px 3px;
  color: #fff;
}

.school-year-preview-card dl {
  margin: 0;
  border: 1px solid #e0e6ef;
  border-radius: 7px;
  overflow: hidden;
}

.school-year-preview-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(105px, auto);
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 8px 11px;
  border-bottom: 1px solid #e7ebf2;
  background: rgba(255, 255, 255, .88);
}

.school-year-preview-card dl > div:last-child { border-bottom: 0; }

.school-year-preview-card dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #53627b;
  font-size: 10px;
  font-weight: 700;
}

.school-year-preview-card dt > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.school-year-preview-card dt > span .button-svg { width: 16px; height: 16px; }
.school-year-preview-card dt > span.purple,
.school-year-preview-card dt > span.violet { color: #6f55e9; background: #f0edff; }
.school-year-preview-card dt > span.orange { color: #d98213; background: #fff1dc; }
.school-year-preview-card dt > span.green { color: #159b5b; background: #e6f7ee; }

.school-year-preview-card dd {
  margin: 0;
  color: #1b2436;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
}

.school-year-preview-card dd b { display: block; }
.school-year-preview-card dd small {
  display: inline-block;
  max-width: 105px;
  margin-top: 3px;
  padding: 3px 6px;
  border-radius: 5px;
  color: var(--school-year-accent);
  background: var(--school-year-accent-soft);
  font-size: 8px;
  line-height: 1.25;
}

.school-year-preview-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin-top: 10px;
  padding: 11px;
  color: var(--school-year-accent);
  background: var(--school-year-accent-soft);
  font-size: 10px;
  line-height: 1.55;
}

.school-year-preview-message .button-svg { width: 17px; height: 17px; }
.school-year-preview-message p { margin: 0; }

.school-year-placeholder,
.school-year-empty-state {
  min-height: 340px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  margin: 16px;
  padding: 32px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: #f8fafc;
  text-align: center;
}

.school-year-placeholder > span,
.school-year-empty-state > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--school-year-accent);
  background: var(--school-year-accent-soft);
}

.school-year-placeholder .card-svg,
.school-year-empty-state .card-svg { width: 24px; height: 24px; }
.school-year-placeholder h3,
.school-year-empty-state h3 { margin: 0; color: var(--navy); font-size: 19px; }
.school-year-placeholder p,
.school-year-empty-state p { max-width: 540px; margin: 0; font-size: 13px; }
.school-year-empty-state .primary-action { margin-top: 8px; }

@media (max-width: 1100px) {
  .school-year-main-grid { grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); }
  .school-year-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-year-subtabs { gap: 8px; }
}

@media (max-width: 860px) {
  .school-year-hero { grid-template-columns: 100px minmax(0, 1fr); padding: 16px 20px; }
  .school-year-logo,
  .school-year-logo .school-year-logo-image,
  .school-year-logo .school-logo { width: 84px; height: 84px; }
  .school-year-manage-button { grid-column: 1 / -1; justify-content: center; margin-top: 8px; }
  .school-year-main-grid { grid-template-columns: 1fr; }
  .school-year-context-card,
  .school-year-history,
  .school-year-preview-card { grid-column: auto; grid-row: auto; }
}

@media (max-width: 620px) {
  .school-year-heading { padding: 16px; }
  .school-year-heading h2 { font-size: 23px; }
  .school-year-subtabs { padding: 0 8px; }
  .school-year-overview { padding: 10px; }
  .school-year-hero { grid-template-columns: 68px minmax(0, 1fr); padding: 14px; }
  .school-year-logo,
  .school-year-logo .school-year-logo-image,
  .school-year-logo .school-logo { width: 58px; height: 58px; }
  .school-year-title-row { gap: 8px; }
  .school-year-title-row h2 { font-size: 24px; }
  .school-year-context-card,
  .school-year-preview-card { padding: 14px; }
  .school-year-fields { grid-template-columns: 1fr; }
  .school-year-preview-card dl > div { grid-template-columns: minmax(0, 1fr) auto; }
}

/* Shared three-step creation and duplication workflow. */
.academic-year-creation-flow {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  padding: 18px;
}

.academic-year-creation-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(7, 23, 39, .58);
  backdrop-filter: blur(3px);
}

.academic-year-creation-card {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100dvh - 52px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--color-sidebar-bg, var(--navy)) 24%, #d8e2ec);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 72px rgba(6, 24, 42, .34);
}

.academic-year-creation-card > header {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 13px 22px;
  color: #fff;
  background: var(--color-sidebar-bg, var(--navy));
}

.academic-year-creation-header-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .16);
}

.academic-year-creation-header-icon .card-svg { width: 24px; height: 24px; }
.academic-year-creation-card > header h2 { margin: 0; color: #fff; font-size: 21px; line-height: 1.15; letter-spacing: 0; }
.academic-year-creation-card > header p { margin: 4px 0 0; color: rgba(255, 255, 255, .84); font-size: 12px; }
.academic-year-creation-close { width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 5px; color: #fff; background: rgba(255, 255, 255, .06); font-size: 22px; line-height: 1; cursor: pointer; }
.academic-year-creation-close:hover { background: rgba(255, 255, 255, .14); }

.academic-year-creation-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 24px;
  background: #fff;
}

.academic-year-creation-card > footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 24px;
  border-top: 1px solid #dbe4ed;
  background: #fbfcfe;
}

.academic-year-creation-card > footer button { min-width: 126px; min-height: 36px; justify-content: center; font-size: 12px; }
.academic-year-creation-card[aria-busy="true"] > footer button { opacity: .62; cursor: wait; }

.academic-year-flow-basic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
}

.academic-year-flow-field,
.academic-year-flow-source,
.academic-year-flow-password {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: #20344d;
  font-size: 13px;
  font-weight: 800;
}

.academic-year-flow-field > span b,
.academic-year-flow-password > span b { color: #d53c36; }
.academic-year-flow-field input,
.academic-year-flow-field select,
.academic-year-flow-field textarea,
.academic-year-flow-source select,
.academic-year-flow-password input { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #cbd8e5; border-radius: 5px; color: #142a43; background: #fff; font: inherit; }
.academic-year-flow-field input,
.academic-year-flow-field select,
.academic-year-flow-source select { height: 34px; min-height: 34px !important; padding: 0 10px; }
.academic-year-flow-field textarea { height: 44px; min-height: 44px; padding: 7px 10px; resize: vertical; }
.academic-year-flow-field input:focus,
.academic-year-flow-field select:focus,
.academic-year-flow-field textarea:focus,
.academic-year-flow-source select:focus,
.academic-year-flow-password input:focus { outline: 0; border-color: var(--color-primary, var(--primary)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, var(--primary)) 14%, transparent); }
.academic-year-flow-field.invalid input,
.academic-year-flow-field.invalid select,
.academic-year-flow-field.invalid textarea,
.academic-year-flow-source.invalid select { border-color: #d84747; }
.academic-year-flow-field > small,
.academic-year-flow-source > small,
.academic-year-flow-copy-options > small { color: #bd3038; font-size: 11px; font-weight: 700; }
.academic-year-flow-input-icon { position: relative; }
.academic-year-flow-input-icon > .button-svg { position: absolute; top: 8px; left: 10px; width: 17px; height: 17px; color: #697f96; pointer-events: none; }
.academic-year-flow-input-icon input { padding-left: 36px; }
.academic-year-flow-date { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 35px; }
.academic-year-flow-date input[data-flow-date-display] { border-right: 0; border-radius: 5px 0 0 5px; }
.academic-year-flow-date .academic-year-flow-native-date { position: absolute; right: 36px; bottom: 0; width: 1px; height: 1px; min-width: 0; min-height: 0 !important; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.academic-year-flow-date button { display: grid; place-items: center; padding: 0; border: 1px solid #cbd8e5; border-radius: 0 5px 5px 0; color: #5c7188; background: #f8fafc; cursor: pointer; }
.academic-year-flow-date button:hover { color: var(--color-primary, var(--primary)); background: var(--color-primary-soft, #edf6ff); }
.academic-year-flow-date .button-svg { width: 18px; height: 18px; }

.academic-year-flow-methods { margin-top: 14px; padding-top: 12px; border-top: 1px solid #dce5ed; }
.academic-year-flow-methods > header { display: flex; align-items: center; gap: 12px; }
.academic-year-flow-methods > header > .card-svg { width: 22px; height: 22px; color: var(--color-sidebar-bg, var(--navy)); }
.academic-year-flow-methods h3 { margin: 0; color: #172d47; font-size: 15px; }
.academic-year-flow-methods header p { margin: 3px 0 0; color: #697c91; font-size: 12px; }
.academic-year-flow-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.academic-year-flow-method { position: relative; min-width: 0; display: grid; grid-template-columns: 16px 36px minmax(0, 1fr); align-items: start; gap: 8px; min-height: 74px; padding: 10px; border: 1px solid #cbd8e5; border-radius: 6px; background: #fff; cursor: pointer; }
.academic-year-flow-method:hover { border-color: color-mix(in srgb, var(--color-primary, var(--primary)) 48%, #cbd8e5); background: var(--color-primary-soft, #f2f8ff); }
.academic-year-flow-method.selected { border-color: var(--color-primary, var(--primary)); background: color-mix(in srgb, var(--color-primary-soft, #eef6ff) 62%, #fff); box-shadow: 0 0 0 1px var(--color-primary, var(--primary)); }
.academic-year-flow-method input { position: absolute; opacity: 0; pointer-events: none; }
.academic-year-flow-method > i { width: 16px; height: 16px; margin-top: 4px; border: 1px solid #92a4b7; border-radius: 50%; background: #fff; }
.academic-year-flow-method.selected > i { border: 5px solid var(--color-primary, var(--primary)); }
.academic-year-flow-method > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--color-sidebar-bg, var(--navy)); background: color-mix(in srgb, var(--color-sidebar-bg, var(--navy)) 8%, #fff); }
.academic-year-flow-method > span .card-svg { width: 18px; height: 18px; }
.academic-year-flow-method strong { display: block; color: #1b3150; font-size: 12px; line-height: 1.35; }
.academic-year-flow-method small { display: block; margin-top: 3px; color: #667a91; font-size: 10px; font-weight: 500; line-height: 1.3; }

.academic-year-flow-copy-panel { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(210px, .75fr); gap: 14px; margin-top: 10px; padding: 10px; border: 1px solid color-mix(in srgb, var(--color-primary, var(--primary)) 22%, #d6e0e9); border-radius: 6px; background: color-mix(in srgb, var(--color-primary-soft, #f2f8ff) 50%, #fff); }
.academic-year-flow-copy-options > strong { display: block; margin-bottom: 10px; color: #243a55; font-size: 12px; }
.academic-year-flow-copy-options > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.academic-year-flow-copy-options label { display: flex; align-items: center; gap: 7px; color: #405873; font-size: 11px; font-weight: 700; }
.academic-year-flow-copy-options input { width: 15px; height: 15px; accent-color: var(--color-primary, var(--primary)); }
.academic-year-flow-copy-options label span { display: inline-flex; align-items: center; gap: 5px; }
.academic-year-flow-copy-options .button-svg { width: 14px; height: 14px; color: var(--color-primary, var(--primary)); }
.academic-year-flow-source { align-content: start; }
.academic-year-flow-source .school-year-select-control select { height: 34px; }
.academic-year-flow-copy-warning { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; padding: 9px 11px; border-left: 3px solid var(--color-primary, var(--primary)); color: #50677f; background: color-mix(in srgb, var(--color-primary-soft, #edf6ff) 48%, #fff); font-size: 11px; line-height: 1.45; }
.academic-year-flow-copy-warning .button-svg { flex: 0 0 auto; width: 16px; height: 16px; color: var(--color-primary, var(--primary)); }
.academic-year-flow-readonly { min-height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #cbd8e5; border-radius: 5px; background: #fff; }
.academic-year-flow-readonly .button-svg { width: 17px; height: 17px; color: #667b91; }

.academic-year-flow-info,
.academic-year-flow-final-intro,
.academic-year-flow-alternative,
.academic-year-flow-warning { display: flex; align-items: flex-start; gap: 9px; margin-top: 10px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--color-primary, var(--primary)) 24%, #d4e1ec); border-radius: 5px; color: #31506d; background: color-mix(in srgb, var(--color-primary-soft, #edf6ff) 58%, #fff); }
.academic-year-flow-info > .button-svg,
.academic-year-flow-final-intro > .button-svg,
.academic-year-flow-alternative > .button-svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--color-primary, var(--primary)); }
.academic-year-flow-info p,
.academic-year-flow-final-intro p,
.academic-year-flow-alternative p,
.academic-year-flow-warning p { margin: 0; font-size: 12px; line-height: 1.5; }
.academic-year-flow-info.after p,
.academic-year-flow-warning p { display: grid; gap: 2px; }
.academic-year-flow-info.after p span,
.academic-year-flow-warning p span { font-weight: 500; }

.academic-year-flow-question { margin: 0 0 10px; color: #142c4b; font-size: 19px; }
.academic-year-flow-summary { margin: 0; border: 1px solid #d5e0e9; border-radius: 6px; overflow: hidden; }
.academic-year-flow-summary > div { display: grid; grid-template-columns: minmax(190px, .8fr) minmax(0, 1.2fr); min-height: 36px; border-bottom: 1px solid #dfe7ee; }
.academic-year-flow-summary > div:last-child { border-bottom: 0; }
.academic-year-flow-summary dt,
.academic-year-flow-summary dd { display: flex; align-items: center; gap: 8px; margin: 0; padding: 6px 10px; }
.academic-year-flow-summary dt { color: #38506a; border-right: 1px solid #dfe7ee; font-size: 12px; }
.academic-year-flow-summary dt .button-svg { width: 18px; height: 18px; color: var(--color-sidebar-bg, var(--navy)); }
.academic-year-flow-summary dd { color: #142f54; font-size: 13px; font-weight: 800; }
.academic-year-flow-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.academic-year-flow-review-grid > section { min-width: 0; padding: 10px; border: 1px solid #d5e0e9; border-radius: 6px; }
.academic-year-flow-review-grid h4 { margin: 0 0 10px; color: #213956; font-size: 13px; }
.academic-year-flow-method-review { display: flex; align-items: flex-start; gap: 11px; padding: 11px; border: 1px solid color-mix(in srgb, var(--color-primary, var(--primary)) 25%, #dae3eb); border-radius: 5px; background: var(--color-primary-soft, #f2f8ff); }
.academic-year-flow-method-review > .card-svg { flex: 0 0 auto; width: 25px; height: 25px; color: var(--color-primary, var(--primary)); }
.academic-year-flow-method-review strong { color: #193961; font-size: 12px; }
.academic-year-flow-method-review p { margin: 3px 0; color: #60758b; font-size: 10.5px; line-height: 1.4; }
.academic-year-flow-method-review small { color: #60758b; }
.academic-year-flow-method-review small b { color: #183b68; }
.academic-year-flow-review-grid ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; margin: 0; padding: 0; list-style: none; }
.academic-year-flow-review-grid li { display: flex; align-items: center; gap: 7px; color: #36516e; font-size: 11px; }
.academic-year-flow-review-grid li .button-svg { width: 16px; height: 16px; color: #1e9b62; }
.academic-year-flow-empty-copy { display: flex; gap: 8px; margin: 0; color: #65798e; font-size: 11px; }
.academic-year-flow-empty-copy .button-svg { width: 17px; height: 17px; }
.academic-year-flow-alternative { align-items: center; background: color-mix(in srgb, var(--color-primary-soft, #f2f8ff) 76%, #fff); }
.academic-year-flow-alternative p { flex: 1; display: grid; }
.academic-year-flow-alternative p span { color: #677a90; font-size: 11px; }
.academic-year-flow-alternative button { flex: 0 0 auto; min-height: 34px; }

.academic-year-flow-final-intro { margin-top: 0; align-items: center; padding: 9px 11px; }
.academic-year-flow-final-intro p { font-size: 14px; }
.academic-year-flow-final-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 12px; border: 1px solid #d4dfe9; border-radius: 6px; }
.academic-year-flow-final-summary > div { position: relative; min-width: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; padding: 9px 12px; }
.academic-year-flow-final-summary > div + div { border-left: 1px solid #dce5ec; }
.academic-year-flow-final-summary > div > .card-svg { grid-row: 1 / 3; align-self: center; width: 26px; height: 26px; padding: 7px; border-radius: 50%; color: var(--color-sidebar-bg, var(--navy)); background: color-mix(in srgb, var(--color-sidebar-bg, var(--navy)) 8%, #fff); }
.academic-year-flow-final-summary dt { color: #60758c; font-size: 11px; }
.academic-year-flow-final-summary dd { min-width: 0; margin: 2px 0 0; color: #17335a; font-size: 15px; font-weight: 800; line-height: 1.25; }
.academic-year-flow-final-summary dd small { display: block; margin-top: 2px; color: #536b84; font-size: 11px; }
.academic-year-flow-password { margin-top: 2px; }
.academic-year-flow-password > div { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; }
.academic-year-flow-password > div > span { display: grid; place-items: center; border: 1px solid #cbd8e5; border-right: 0; border-radius: 5px 0 0 5px; color: #667b90; background: #f8fafc; }
.academic-year-flow-password > div > span .button-svg { width: 18px; height: 18px; }
.academic-year-flow-password input { height: 34px; min-height: 34px !important; padding: 0 10px; border-right: 0; border-left: 0; border-radius: 0; }
.academic-year-flow-password button { display: grid; place-items: center; padding: 0; border: 1px solid #cbd8e5; border-radius: 0 5px 5px 0; color: #516a83; background: #fff; cursor: pointer; }
.academic-year-flow-password button .button-svg { width: 20px; height: 20px; }
.academic-year-flow-password > small { min-height: 16px; color: #bd3038; font-size: 11px; }
.academic-year-flow-warning { border-color: #edc56a; color: #4d3c18; background: #fff9eb; }
.academic-year-flow-warning > .card-svg { flex: 0 0 auto; width: 29px; height: 29px; color: #bd7d00; }

@media (max-width: 760px) {
  .academic-year-creation-flow { align-items: stretch; padding: 0; }
  .academic-year-creation-card { width: 100%; max-height: 100dvh; border: 0; border-radius: 0; }
  .academic-year-creation-card > header { grid-template-columns: 46px minmax(0, 1fr) 36px; gap: 11px; min-height: 88px; padding: 14px 16px; }
  .academic-year-creation-header-icon { width: 44px; height: 44px; }
  .academic-year-creation-header-icon .card-svg { width: 23px; height: 23px; }
  .academic-year-creation-card > header h2 { font-size: 19px; }
  .academic-year-creation-card > header p { margin-top: 4px; font-size: 11px; line-height: 1.35; }
  .academic-year-creation-body { padding: 18px 16px 24px; }
  .academic-year-creation-card > footer { position: sticky; bottom: 0; padding: 11px 16px; }
  .academic-year-creation-card > footer button { flex: 1; min-width: 0; }
  .academic-year-flow-basic-grid,
  .academic-year-flow-method-grid,
  .academic-year-flow-copy-panel,
  .academic-year-flow-review-grid,
  .academic-year-flow-final-summary { grid-template-columns: 1fr; }
  .academic-year-flow-copy-options > div,
  .academic-year-flow-review-grid ul { grid-template-columns: 1fr; }
  .academic-year-flow-summary > div { grid-template-columns: 1fr; }
  .academic-year-flow-summary dt { border-right: 0; border-bottom: 1px solid #edf1f5; }
  .academic-year-flow-final-summary > div + div { border-top: 1px solid #dce5ec; border-left: 0; }
  .academic-year-flow-alternative { align-items: stretch; flex-wrap: wrap; }
  .academic-year-flow-alternative p { min-width: calc(100% - 34px); }
  .academic-year-flow-alternative button { width: 100%; justify-content: center; }
}

/* Gestion des années scolaires */
.school-year-management {
  padding: 20px;
  background: #f7f9fc;
}

.school-year-management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 290px);
  gap: 20px;
  align-items: start;
}

.school-year-management-main {
  min-width: 0;
  display: grid;
  gap: 16px;
  container-type: inline-size;
}

.school-year-management-main > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.school-year-management-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.school-year-management-toolbar > div:first-child { min-width: 0; }
.school-year-management-toolbar h3 {
  margin: 0;
  color: #121c31;
  font-size: 21px;
  line-height: 1.2;
}

.school-year-management-toolbar p {
  max-width: 560px;
  margin: 5px 0 0;
  color: #67758d;
  font-size: 12px;
  line-height: 1.45;
}

.school-year-management-toolbar > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.school-year-management-toolbar button,
.school-year-management-filters > button,
.school-year-row-actions > button {
  min-height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  font-size: 11px;
  white-space: nowrap;
}

.school-year-management-toolbar .button-svg,
.school-year-management-filters .button-svg,
.school-year-row-actions .button-svg { width: 16px; height: 16px; }

.school-year-management-filters,
.school-year-management-table-card {
  min-width: 0;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(24, 43, 72, .08);
}

.school-year-management-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.55fr) repeat(3, minmax(96px, .75fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
}

.school-year-management-filter {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #4a5870;
  font-size: 11px;
  font-weight: 800;
}

.school-year-management-filter > div {
  position: relative;
  min-width: 0;
}

.school-year-management-filter input,
.school-year-management-filter select,
.school-year-dialog-grid input,
.school-year-dialog-grid select,
.school-year-dialog-grid textarea,
.school-year-export-dialog select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d4deea;
  border-radius: 6px;
  color: #182235;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  outline: 0;
}

.school-year-management-filter input,
.school-year-management-filter select,
.school-year-dialog-grid input,
.school-year-dialog-grid select,
.school-year-export-dialog select {
  height: 35px;
  min-height: 35px;
}

.school-year-management-filter input,
.school-year-management-filter select {
  height: 35px !important;
  min-height: 35px !important;
}

.school-year-management-filter input:focus,
.school-year-management-filter select:focus,
.school-year-dialog-grid input:focus,
.school-year-dialog-grid select:focus,
.school-year-dialog-grid textarea:focus,
.school-year-export-dialog select:focus {
  border-color: var(--school-year-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--school-year-accent) 12%, transparent);
}

.school-year-management-filter select,
.school-year-dialog-grid select,
.school-year-export-dialog select {
  appearance: none;
  padding: 0 34px 0 11px;
  cursor: pointer;
}

.school-year-management-filter.search > div > .button-svg {
  position: absolute;
  top: 50%;
  left: 11px;
  z-index: 1;
  width: 17px;
  height: 17px;
  color: #66758d;
  transform: translateY(-50%);
}

.school-year-management-filter.search input { padding: 0 10px 0 36px; font-weight: 500; }
.school-year-management-filters > button { height: 35px; }

.school-year-management-table-card { padding: 16px; }
.school-year-management-table-card { overflow: hidden; }
.school-year-management-table-card > h3 {
  margin: 0 0 13px;
  color: #182235;
  font-size: 16px;
}

.school-year-management-table-wrap {
  width: auto;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  overflow-x: auto;
  overflow-y: visible;
}

.school-year-management-table-wrap table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  color: #526077;
  font-size: 11px;
}

.school-year-management-table-wrap th {
  height: 41px;
  padding: 0 12px;
  color: #35445e;
  background: var(--school-year-accent-soft);
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  white-space: nowrap;
}

.school-year-management-table-wrap td {
  height: 44px;
  padding: 4px 12px;
  border-top: 1px solid #e3e9f0;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

.school-year-management-table-wrap tbody td button,
.school-year-management-table-wrap tbody td span {
  font-size: inherit;
  line-height: inherit;
}

.school-year-management-table-wrap tbody tr:nth-child(even) td { background: #f7fbfe; }
.school-year-management-table-wrap tbody tr:hover td { background: var(--school-year-accent-soft); }

.school-year-name-link {
  padding: 0;
  border: 0;
  color: var(--school-year-accent);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.school-year-name-link:hover { text-decoration: underline; }

.school-year-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #4f5e75;
  font-size: 11px;
  font-weight: 700;
}

.school-year-mode i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa6b8;
}

.school-year-mode.editable i { background: #16a05d; }
.school-year-mode.readonly i { background: #9aa6b8; }

.school-year-active-indicator {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
}

.school-year-active-indicator .button-svg { width: 15px; height: 15px; }
.school-year-active-indicator.yes { color: #119557; background: #dcf7e7; }
.school-year-active-indicator.no { color: #7b879a; background: #f0f3f6; }

.school-year-row-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.school-year-row-actions > button {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.school-year-menu-wrap { position: relative; display: inline-flex; }
.school-year-kebab {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #ccd8e5;
  border-radius: 6px;
  color: #31415b;
  background: #fff;
  cursor: pointer;
}

.school-year-kebab:hover { color: var(--school-year-accent); background: var(--school-year-accent-soft); }
.school-year-kebab .button-svg { width: 17px; height: 17px; }

.school-year-row-menu {
  position: absolute;
  z-index: 12;
  top: calc(100% + 6px);
  right: 0;
  width: 232px;
  display: none;
  padding: 6px;
  border: 1px solid #d5deea;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 31, 56, .18);
}

.school-year-row-menu.open { display: grid; }
.school-year-row-menu-portal {
  position: fixed;
  z-index: 1200;
}
.school-year-row-menu button {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 9px;
  border: 0;
  border-radius: 4px;
  color: #2d3c55;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.school-year-row-menu button:hover { color: var(--school-year-accent); background: var(--school-year-accent-soft); }
.school-year-row-menu button.danger { color: #c83f3f; }
.school-year-row-menu button.danger:hover { background: #fff0f0; }
.school-year-row-menu .button-svg { width: 15px; height: 15px; }
.school-year-row-menu .school-year-menu-lock { margin-left: auto; display: grid; place-items: center; color: #8795a8; }
.school-year-row-menu .school-year-menu-lock .button-svg { width: 13px; height: 13px; }
.school-year-row-menu button[data-password-protected=true]:hover .school-year-menu-lock { color: currentColor; }

.school-year-management-table-card > footer {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  color: #6b7890;
  font-size: 10px;
}

.school-year-management-table-card > footer nav { display: flex; align-items: center; gap: 5px; }
.school-year-management-table-card > footer nav button,
.school-year-management-table-card > footer nav strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid #d6e0ea;
  border-radius: 6px;
  color: #56647b;
  background: #fff;
}

.school-year-management-table-card > footer nav strong { color: #fff; border-color: var(--school-year-accent); background: var(--school-year-accent); }
.school-year-management-table-card > footer nav button:not(:disabled) { cursor: pointer; }
.school-year-management-table-card > footer nav button:disabled { opacity: .42; }

.school-year-management-rules {
  min-width: 0;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--color-sidebar-bg, var(--navy));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--color-sidebar-bg, var(--navy)) 23%, transparent);
}

.school-year-management-rules h3 { margin: 0 0 14px; color: #fff; font-size: 17px; }
.school-year-management-rules > div { display: grid; gap: 8px; }
.school-year-management-rules article {
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
}

.school-year-management-rules article > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.school-year-management-rules article > span.violet { color: #6e52e5; background: #f0edff; }
.school-year-management-rules article > span.orange { color: #d46d09; background: #fff0db; }
.school-year-management-rules article > span.blue { color: #1477c9; background: #e5f3ff; }
.school-year-management-rules article > span.green { color: #148c50; background: #e4f7ec; }
.school-year-management-rules article .button-svg { width: 18px; height: 18px; }
.school-year-management-rules article p { margin: 0; color: rgba(255, 255, 255, .92); font-size: 10px; line-height: 1.5; }

.school-year-management-rules > section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--school-year-accent) 52%, #fff);
  border-radius: 7px;
  color: #cce9ff;
  background: rgba(7, 42, 77, .28);
}

.school-year-management-rules > section .button-svg { width: 17px; height: 17px; }
.school-year-management-rules > section p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 10px; line-height: 1.55; }

.school-year-management-empty {
  min-height: 280px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #6a7890;
  text-align: center;
}

.school-year-management-empty .card-svg { width: 34px; height: 34px; color: var(--school-year-accent); }
.school-year-management-empty h4 { margin: 4px 0 0; color: #202c41; font-size: 17px; }
.school-year-management-empty p { margin: 0; font-size: 12px; }
.school-year-management-empty button { margin-top: 5px; }

.school-year-management-skeleton > div,
.school-year-management-skeleton > aside { display: grid; gap: 12px; }
.school-year-management-skeleton span,
.school-year-management-skeleton i {
  display: block;
  height: 54px;
  border-radius: 7px;
  background: linear-gradient(90deg, #edf2f7, #f9fbfd, #edf2f7);
  background-size: 200% 100%;
  animation: school-year-loading 1.2s linear infinite;
}
.school-year-management-skeleton span { height: 40px; }
.school-year-management-skeleton section { display: grid; gap: 7px; padding: 14px; border: 1px solid #e0e6ee; border-radius: 8px; background: #fff; }
.school-year-management-skeleton > aside { padding: 18px; background: var(--color-sidebar-bg, var(--navy)); }
@keyframes school-year-loading { to { background-position: -200% 0; } }

@container (max-width: 680px) {
  .school-year-management-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .school-year-management-toolbar > div:last-child {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .school-year-management-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-year-management-filter.search { grid-column: 1 / -1; }
  .school-year-management-filters > button { justify-self: start; }
}

.school-year-dialog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.school-year-dialog-grid > label,
.school-year-export-dialog label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #4e5c72;
  font-size: 11px;
  font-weight: 800;
}

.school-year-dialog-grid > .wide { grid-column: 1 / -1; }
.school-year-dialog-grid textarea { min-height: 72px; padding: 9px 10px; resize: vertical; }
.school-year-copy-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 13px;
  border: 1px solid #d7e0eb;
  border-radius: 7px;
}

.school-year-copy-options legend { padding: 0 6px; color: #35445d; font-size: 11px; font-weight: 800; }
.school-year-copy-options label { display: flex; align-items: center; gap: 8px; color: #526077; font-size: 10px; }
.school-year-copy-options input { width: 16px; height: 16px; }
.school-year-copy-warning,
.school-year-delete-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  color: #8b5b08;
  background: #fff7e5;
  font-size: 10px;
  line-height: 1.5;
}

.school-year-copy-warning .button-svg { width: 17px; height: 17px; }
.school-year-delete-warning { color: #9f3131; background: #fff0f0; }
.school-year-delete-warning .card-svg { width: 28px; height: 28px; }
.school-year-delete-warning strong { display: block; margin-bottom: 3px; font-size: 12px; }
.school-year-delete-warning p { margin: 0; }
.school-year-export-dialog { display: grid; gap: 13px; }
.school-year-export-dialog p { margin: 0; color: #59677e; font-size: 12px; }
.school-year-export-dialog small { color: #718096; }

.academic-year-step-up {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: grid;
  place-items: center;
  padding: 18px;
}

.academic-year-step-up-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 27, 48, .54);
}

.academic-year-step-up-card {
  position: relative;
  width: min(510px, 100%);
  overflow: hidden;
  border: 1px solid #ccd9e6;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(7, 27, 48, .32);
}

.academic-year-step-up-card > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 32px;
  align-items: start;
  gap: 11px;
  padding: 17px 18px;
  color: #fff;
  background: var(--color-sidebar-bg, var(--navy));
}

.academic-year-step-up-card > header > .card-svg { width: 25px; height: 25px; margin-top: 2px; color: color-mix(in srgb, var(--school-year-accent) 35%, #fff); }
.academic-year-step-up-card > header h2 { margin: 0; color: #fff; font-size: 18px; }
.academic-year-step-up-card > header p { margin: 3px 0 0; color: rgba(255, 255, 255, .78); font-size: 11px; }
.academic-year-step-up-card > header .icon-action { width: 30px; height: 30px; color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.academic-year-step-up-body { display: grid; gap: 14px; padding: 18px; }
.academic-year-step-up-body > dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border: 1px solid #dbe5ef; }
.academic-year-step-up-body > dl > div { min-width: 0; padding: 9px 11px; }
.academic-year-step-up-body > dl > div + div { border-left: 1px solid #dbe5ef; }
.academic-year-step-up-body dt { color: #708096; font-size: 10px; font-weight: 700; }
.academic-year-step-up-body dd { margin: 3px 0 0; color: #172a43; font-size: 13px; font-weight: 800; }
.academic-year-step-up-consequence { margin: 0; padding: 11px 12px; color: #465a70; border-left: 3px solid var(--school-year-accent); background: var(--school-year-accent-soft); font-size: 11px; line-height: 1.55; }
.academic-year-step-up-body > label { display: grid; gap: 6px; color: #334b62; font-size: 11px; font-weight: 800; }
.academic-year-typed-confirmation > small { color: #566b80; font-size: 11px; font-weight: 500; line-height: 1.45; }
.academic-year-typed-confirmation > small strong { color: #172a43; font-weight: 800; }
.academic-year-typed-confirmation > em { color: #718096; font-size: 10px; font-style: normal; font-weight: 500; }
.academic-year-typed-confirmation input[aria-invalid="true"] { border-color: #c9363e; box-shadow: 0 0 0 2px rgba(201, 54, 62, .12); }
.academic-year-step-up-body input,
.academic-year-step-up-body textarea { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid #cddbe8; border-radius: 4px; color: #14283d; background: #fff; font: inherit; }
.academic-year-step-up-body input { height: 35px; padding: 0 10px; }
.academic-year-step-up-body textarea { min-height: 66px; padding: 9px 10px; resize: vertical; }
.academic-year-password-control { display: grid; grid-template-columns: minmax(0, 1fr) 35px; }
.academic-year-password-control input { border-right: 0; border-radius: 4px 0 0 4px; }
.academic-year-password-control button { display: grid; place-items: center; padding: 0; border: 1px solid #cddbe8; border-radius: 0 4px 4px 0; color: #566b80; background: #f8fafc; cursor: pointer; }
.academic-year-password-control .button-svg { width: 17px; height: 17px; }
.academic-year-step-up-error { min-height: 17px; margin: -4px 0 0; color: #bd2e35; font-size: 11px; font-weight: 700; }
.academic-year-step-up-card > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 13px 18px; border-top: 1px solid #dce6ef; background: #fafcfe; }
.academic-year-step-up-card > footer button { min-height: 35px; }
.academic-year-step-up-card > footer .danger { border-color: #c9363e; background: #c9363e; }
.academic-year-step-up-card > footer button:disabled { opacity: .58; cursor: wait; }
.academic-year-step-up.destructive .academic-year-step-up-consequence { border-left-color: #c9363e; background: #fff1f1; }

.academic-year-details dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid #d9e4ee; }
.academic-year-details dl > div { padding: 10px 12px; border-bottom: 1px solid #e2eaf1; }
.academic-year-details dl > div:nth-child(even) { border-left: 1px solid #e2eaf1; }
.academic-year-details dt { color: #708096; font-size: 10px; font-weight: 700; }
.academic-year-details dd { margin: 4px 0 0; color: #17314a; font-size: 12px; font-weight: 800; }
.academic-year-details > p { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; padding: 9px 10px; color: #526b82; background: #eff7fd; font-size: 10px; }
.academic-year-details > p .button-svg { width: 14px; height: 14px; }

@media (max-width: 1460px) {
  .school-year-management-layout { grid-template-columns: 1fr; }
  .school-year-management-rules > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-year-management-rules > section { max-width: 620px; }
}

@media (max-width: 1180px) {
  .school-year-management-layout { grid-template-columns: 1fr; }
  .school-year-management-rules > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .school-year-management-rules > section { max-width: 620px; }
}

@media (max-width: 540px) {
  .academic-year-step-up { padding: 10px; }
  .academic-year-step-up-card > header { grid-template-columns: 30px minmax(0, 1fr) 30px; padding: 14px; }
  .academic-year-step-up-body { padding: 14px; }
  .academic-year-step-up-body > dl { grid-template-columns: 1fr; }
  .academic-year-step-up-body > dl > div + div { border-top: 1px solid #dbe5ef; border-left: 0; }
  .academic-year-step-up-card > footer { padding: 11px 14px; }
  .academic-year-details dl { grid-template-columns: 1fr; }
  .academic-year-details dl > div:nth-child(even) { border-left: 0; }
}

@media (max-width: 620px) {
  .school-year-management { padding: 12px; }
  .school-year-management-toolbar > div:last-child { width: 100%; }
  .school-year-management-toolbar button { flex: 1 1 180px; }
  .school-year-management-filters { grid-template-columns: 1fr; padding: 13px; }
  .school-year-management-filter.search { grid-column: auto; }
  .school-year-management-filters > button { width: 100%; }
  .school-year-management-table-card { padding: 12px; }
  .school-year-management-table-card > footer { align-items: flex-start; flex-direction: column; }
  .school-year-management-rules > div { grid-template-columns: 1fr; }
  .school-year-dialog-grid,
  .school-year-copy-options { grid-template-columns: 1fr; }
  .school-year-dialog-grid > .wide,
  .school-year-copy-options { grid-column: auto; }
}
