/* Original-template manager: presentation only. Native controls and handlers stay intact. */
#adminTemplateManagement12252 .templateManagerFields {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  padding: 15px;
  border: 1px solid #e0ebf5;
  border-radius: 14px;
  background: #f5f9fd;
}

#adminTemplateManagement12252 .templateManagerFields:has(.templateManagerSemester[hidden]) {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}

#adminTemplateManagement12252 .templateManagerFields label {
  gap: 9px;
  margin: 0;
  text-align: center;
  color: #526e88;
  font-size: 13px;
  line-height: 1.4;
}

#adminTemplateManagement12252 .templateManagerFields select {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 48px !important;
  min-height: 48px;
  margin: 0;
  padding: 0 28px !important;
  border: 1px solid #cedeed !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m2 2 4 4 4-4' fill='none' stroke='%2367819b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 12px 8px !important;
  color: #244969 !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: normal;
  text-align: center !important;
  text-align-last: center !important;
  box-shadow: 0 2px 4px #24496906 !important;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

#adminTemplateManagement12252 .templateManagerFields select:focus-visible {
  border-color: #287bc4 !important;
  outline: 2px solid #287bc4 !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #287bc417 !important;
}

#adminTemplateManagement12252 .templateManagerFields select:disabled {
  background-color: #edf2f7 !important;
  border-color: #dde5ed !important;
  color: #6c8194 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
}

#adminTemplateManagement12252 .templateManagerFooter {
  gap: 12px 20px;
  margin-top: 16px;
  padding-top: 16px;
}

#adminTemplateManagement12252 #templateManagerReplace12252 {
  box-sizing: border-box;
  width: auto !important;
  max-width: 100%;
  min-height: 46px;
  padding: 12px 22px !important;
  border: 1px solid #2679c0 !important;
  border-radius: 10px !important;
  background: #2679c0 !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 3px 8px #287bc41f !important;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

#adminTemplateManagement12252 #templateManagerReplace12252:focus-visible {
  outline: 2px solid #155c9b !important;
  outline-offset: 3px;
}

#adminTemplateManagement12252 #templateManagerReplace12252:active:not(:disabled) {
  background: #1c64a6 !important;
  border-color: #1c64a6 !important;
  box-shadow: none !important;
}

#adminTemplateManagement12252 #templateManagerReplace12252:disabled {
  background: #edf2f7 !important;
  border-color: #d8e3ed !important;
  color: #6c8194 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  #adminTemplateManagement12252 .templateManagerFields select:hover:not(:disabled) {
    border-color: #83b3dd !important;
  }

  #adminTemplateManagement12252 #templateManagerReplace12252:hover:not(:disabled) {
    background: #216eaf !important;
    border-color: #216eaf !important;
    box-shadow: 0 4px 10px #287bc42b !important;
  }
}

@media (max-width: 1100px) {
  #adminTemplateManagement12252 .templateManagerFields {
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  }

  #adminTemplateManagement12252 .templateManagerFields:has(.templateManagerSemester[hidden]) {
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  }

  #adminTemplateManagement12252 .templateManagerKind {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  #adminTemplateManagement12252 .templateManagerFields,
  #adminTemplateManagement12252 .templateManagerFields:has(.templateManagerSemester[hidden]) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #adminTemplateManagement12252 .templateManagerFields {
    gap: 12px 10px;
    padding: 12px;
  }

  #adminTemplateManagement12252 .templateManagerFields select {
    padding-inline: 22px !important;
    background-position: right 9px center !important;
    font-size: 16px !important;
  }
}

@media (max-width: 380px) {
  #adminTemplateManagement12252 .templateManagerFields label:has(#templateManagerYear12252),
  #adminTemplateManagement12252 .templateManagerFields:not(:has(.templateManagerSemester[hidden])) label:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  #adminTemplateManagement12252 .templateManagerFields select,
  #adminTemplateManagement12252 #templateManagerReplace12252 {
    transition: none;
  }
}

@media (forced-colors: active) {
  #adminTemplateManagement12252 .templateManagerFields select {
    -webkit-appearance: auto;
    appearance: auto;
    background-image: none !important;
  }
}
