/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f6f8;
}

.course-application-page {
  min-height: 100vh;
  padding: 24px 16px;
}

.course-application-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgb(31 41 55 / 12%);
}

.page-header {
  margin-bottom: 28px;
}
.page-header h1 {
  margin: 4px 0 8px;
  font-size: 1.5rem;
}
.page-header p {
  margin: 0;
  color: #4b5563;
}
.page-step {
  color: #0f5e9c !important;
  font-size: 0.8125rem;
  font-weight: 700;
}

.course-application-form,
.confirmation-actions {
  display: grid;
  margin-top: 28px;
  gap: 24px;
}
.form-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.form-fieldset legend,
.form-group > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
.form-group {
  display: grid;
  gap: 8px;
}
.form-fieldset > .form-group + .form-group {
  margin-top: 16px;
}
.required {
  display: inline-block;
  margin-left: 8px;
  color: #b42318;
  font-size: 0.75rem;
  font-weight: 700;
}
.affiliation-as-of {
  color: #b42318;
  text-decoration: underline;
  text-decoration-color: #b42318;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: inherit;
  font: inherit;
  background: #fff;
  border: 1px solid #9ca3af;
  border-radius: 6px;
}

.radio-list {
  display: grid;
  gap: 12px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #9ca3af;
  border-radius: 6px;
}
.radio-option input {
  inline-size: 20px;
  block-size: 20px;
}
.field-error {
  margin: 0;
  color: #b42318;
  font-size: 0.875rem;
}
.field-hint {
  margin: 0;
  color: #4b5563;
  font-size: 0.875rem;
}
.error-summary {
  margin-bottom: 24px;
  padding: 16px;
  color: #7a271a;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 6px;
}
.error-summary p {
  margin: 0 0 4px;
  font-weight: 700;
}
.error-summary ul {
  margin: 0;
  padding-left: 20px;
}
.test-mode-banner {
  margin: 0 0 24px;
  padding: 12px 16px;
  color: #7a271a;
  background: #fffaeb;
  border: 1px solid #fedf89;
  border-radius: 6px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.button-primary {
  color: #fff;
  background: #0f5e9c;
}
.button-secondary {
  color: #0f5e9c;
  background: #fff;
  border-color: #0f5e9c;
}
.confirmation-list {
  margin: 0;
  border-top: 1px solid #d1d5db;
}
.confirmation-list > div {
  padding: 16px 0;
  border-bottom: 1px solid #d1d5db;
}
.confirmation-list dt {
  margin-bottom: 4px;
  color: #4b5563;
  font-size: 0.875rem;
}
.confirmation-list dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.completion-card {
  text-align: center;
}

.auth-page {
  min-height: 100vh;
  padding: 24px 16px;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgb(31 41 55 / 12%);
}

.auth-header {
  margin-bottom: 28px;
}
.auth-header h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.auth-header p {
  margin: 0;
  color: #4b5563;
}
.auth-form {
  display: grid;
  gap: 24px;
}
.auth-link {
  margin: 24px 0 0;
  text-align: center;
}
.auth-link a {
  color: #0f5e9c;
}
.flash-message {
  margin-bottom: 24px;
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 6px;
}
.flash-message--alert {
  color: #7a271a;
  background: #fef3f2;
  border-color: #fecdca;
}
.flash-message--notice {
  color: #0f5e9c;
  background: #eff8ff;
  border-color: #b2ddff;
}

.portal-header {
  background: #fff;
  border-bottom: 1px solid #d1d5db;
}

.portal-header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 16px;
  gap: 16px;
}

.portal-header__site-name {
  color: #1f2937;
  font-weight: 700;
  text-decoration: none;
}

.portal-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.portal-header__logout-form {
  margin: 0;
}

.portal-header__password-link,
.portal-header__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  color: #0f5e9c;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  border: 1px solid #0f5e9c;
  border-radius: 6px;
  cursor: pointer;
}

.home-page {
  padding: 24px 16px;
}
.home-content {
  max-width: 960px;
  margin: 0 auto;
}
.home-content p {
  margin: 3px;
}
.portal-notice {
  margin-bottom: 16px;
  color: #1f2937;
}
.portal-notice__body {
  padding: 16px;
  background: #f3f8ff;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.portal-notice h2,
.portal-notice h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
}
.portal-notice p {
  margin: 0;
  font-weight: 400;
  line-height: 1.7;
}
.portal-notice p + p {
  margin-top: 12px;
}
.portal-notice > h2 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  line-height: 1.5;
}
.portal-notice a {
  color: #0f5e9c;
  text-decoration: underline;
}
.portal-notice h3 {
  margin-bottom: 12px;
  line-height: 1.6;
}
.portal-notice a.portal-notice__contact {
  font-weight: 700;
  overflow-wrap: normal;
  white-space: nowrap;
}
.portal-notice a.portal-notice__contact:hover {
  color: #0a4a7a;
}
.portal-notice__contact:focus-visible {
  outline: 2px solid #0f5e9c;
  outline-offset: 2px;
}
.portal-notice__link-note {
  display: block;
  margin-top: 4px;
  color: #4b5563;
  font-size: 0.875rem;
}
.portal-notice .portal-notice__note {
  margin-top: 16px;
  color: #4b5563;
}
.portal-notice__item + .portal-notice__item {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #93c5fd;
}
.auth-card > .portal-notice {
  margin: 24px 0 0;
}
.home-guidance {
  padding: 16px;
  font-weight: 700;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(31 41 55 / 8%);
}
.home-applications {
  margin-top: 32px;
}
.home-applications > h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.home-applications > p {
  color: #4b5563;
}
.home-application-card {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(31 41 55 / 8%);
}
.home-application-card h2 {
  margin: 0 0 16px;
  font-size: 1.125rem;
}
.home-learning-information {
  margin-top: 32px;
}
.home-learning-information > h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.home-learning-information > p {
  color: #4b5563;
}
.home-learning-information-card {
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(31 41 55 / 8%);
}
.home-learning-information-card > h2 {
  margin: 0 0 20px;
  font-size: 1.125rem;
}
.learning-information-group {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.learning-information-group--comptia {
  border-color: #b2ddff;
}
.learning-information-group--lms {
  border-color: #c7d7fe;
}
.learning-information-group--online-training {
  border-color: #b7ebd1;
}
.learning-information-group h3 {
  margin: 0;
  padding: 12px 16px;
  font-size: 1rem;
  border-bottom: 1px solid #d1d5db;
}
.learning-information-group--comptia h3 {
  color: #075985;
  background: #eff8ff;
  border-color: #b2ddff;
}
.learning-information-group--lms h3 {
  color: #3730a3;
  background: #eef2ff;
  border-color: #c7d7fe;
}
.learning-information-group--online-training h3 {
  color: #166534;
  background: #ecfdf3;
  border-color: #b7ebd1;
}
.learning-information-list {
  margin: 0;
}
.learning-information-list > div {
  padding: 14px 16px;
  border-bottom: 1px solid #d1d5db;
}
.learning-information-list > div:last-child {
  border-bottom: 0;
}
.learning-information-list dt {
  margin-bottom: 4px;
  color: #4b5563;
  font-size: 0.875rem;
}
.learning-information-list dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.learning-information-list a {
  color: #0f5e9c;
}
.learning-information-note {
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
}
.online-training-options {
  padding: 16px;
}
.online-training-options__guidance {
  margin: 0 0 12px;
  color: #374151;
  font-weight: 700;
}
.online-training-options__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.online-training-option {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
}
.online-training-option--special {
  background: #fffbeb;
  border-color: #f59e0b;
  border-top-width: 4px;
}
.online-training-option__badge {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 8px;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f3f4f6;
  border-radius: 999px;
}
.online-training-option--special .online-training-option__badge {
  color: #92400e;
  background: #fef3c7;
}
.online-training-option__notice,
.online-training-option__title {
  margin: 0 0 16px;
  color: #1f2937;
  font-weight: 700;
  line-height: 1.5;
}
.online-training-option__notice {
  color: #991b1b;
}
.online-training-option__join {
  margin-top: auto;
}
.online-training-option__details {
  margin-top: 14px;
  border-top: 1px solid #d1d5db;
}
.online-training-option__details summary {
  padding-top: 14px;
  color: #0f5e9c;
  font-weight: 700;
  cursor: pointer;
}
.online-training-option__credentials {
  margin: 12px 0 0;
}
.online-training-option__credentials > div {
  padding: 10px 0;
  border-top: 1px solid #e5e7eb;
}
.online-training-option__credentials dt {
  margin-bottom: 4px;
  color: #4b5563;
  font-size: 0.875rem;
}
.online-training-option__credentials dd {
  margin: 0;
  font-weight: 700;
}
.secret-value {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 8px;
}
.secret-value [data-secret-value-target="value"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
}
.secret-value__toggle {
  flex: 0 0 auto;
  width: auto;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 0.875rem;
  line-height: 1.25;
}
.home-content .learning-information-warning {
  margin: 24px 0 0;
  padding: 12px;
  color: #0f5e9c;
  font-weight: 700;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 6px;
}

@media (max-width: 599px) {
  .home-page {
    padding: 20px 12px;
  }
  .home-learning-information-card,
  .home-application-card {
    padding: 16px;
  }
  .learning-information-list > div {
    padding: 12px;
  }
  .online-training-options {
    padding: 12px;
  }
  .online-training-options__cards {
    grid-template-columns: 1fr;
  }
  .secret-value {
    gap: 6px;
  }
  .secret-value [data-secret-value-target="value"] {
    font-size: 0.875rem;
  }
}

.operations-page {
  padding: 24px 16px;
}
.operations-content {
  max-width: 960px;
  margin: 0 auto;
}
.operations-menu h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.operations-menu p {
  margin: 0;
  color: #4b5563;
}
.operations-menu__groups {
  display: grid;
  margin-top: 24px;
  gap: 32px;
}
.operations-menu-group {
  padding: 20px;
  background: #eaf0f6;
  border: 1px solid #d1dbe6;
  border-radius: 12px;
}
.operations-menu-group__header {
  padding-bottom: 16px;
  border-bottom: 1px solid #c4d0dc;
}
.operations-menu-group__header h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}
.operations-menu-group__cards {
  display: grid;
  margin-top: 20px;
  gap: 16px;
}
.operations-menu-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(31 41 55 / 8%);
}
.operations-menu-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
}
.operations-menu-card__actions {
  display: grid;
  margin-top: auto;
  padding-top: 20px;
  gap: 12px;
}
.operations-page-header {
  margin-bottom: 24px;
}
.operations-page-header > a {
  color: #0f5e9c;
}
.operations-page-header h1 {
  margin: 16px 0 8px;
  font-size: 1.5rem;
}
.operations-page-header p {
  margin: 0;
  color: #4b5563;
}
.operations-form-card {
  max-width: 680px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(31 41 55 / 8%);
}
.operations-lmsq-results {
  margin-top: 24px;
}
.operations-lmsq-results-table {
  height: 1000px;
  overflow: auto;
}
.operations-lmsq-results-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
}
.operations-form-card h2 {
  margin: 0 0 24px;
  font-size: 1.125rem;
}
.operations-import-form {
  display: grid;
  gap: 24px;
}
.operations-correction-guidance {
  margin-bottom: 24px;
  padding: 16px;
  color: #344054;
  background: #f8fafc;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}
.operations-correction-guidance p {
  margin: 0 0 8px;
}
.operations-correction-guidance p:last-child,
.operations-correction-guidance ul:last-child {
  margin-bottom: 0;
}
.operations-correction-guidance a {
  color: #0f5e9c;
  font-weight: 700;
}
.operations-correction-content {
  max-width: 1280px;
}
.operations-correction-warning {
  margin-top: 24px;
  padding: 16px;
  color: #7a2e0e;
  font-weight: 700;
  background: #fffaeb;
  border: 1px solid #fedf89;
  border-radius: 6px;
}
.operations-correction-table td:nth-child(3),
.operations-correction-table td:nth-child(5),
.operations-correction-table td:nth-child(6) {
  white-space: normal;
}
.operations-correction-badge {
  display: inline-block;
  padding: 3px 8px;
  color: #175cd3;
  font-size: 0.75rem;
  font-weight: 700;
  background: #eff8ff;
  border: 1px solid #b2ddff;
  border-radius: 999px;
}
.operations-correction-badge--test {
  color: #7a2e0e;
  background: #fffaeb;
  border-color: #fedf89;
}
.operations-correction-arrow {
  display: inline-block;
  margin: 0 6px;
  color: #667085;
}
.operations-correction-result-actions {
  display: grid;
  margin-top: 24px;
  gap: 12px;
}
.operations-course-session-selection {
  margin-bottom: 24px;
}
.operations-course-session-selection > p {
  margin: -12px 0 20px;
  color: #4b5563;
}
.operations-course-session-selection__form,
.operations-course-session-selection__options {
  display: grid;
  gap: 12px;
}
.operations-course-session-selection__option {
  display: flex;
  align-items: center;
  gap: 8px;
}
input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  color: inherit;
  font: inherit;
}
.operations-allocation-summaries {
  display: grid;
  gap: 16px;
}
.operations-allocation-card,
.operations-shortage-card,
.operations-allocation-action {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(31 41 55 / 8%);
}
.operations-allocation-card h2,
.operations-shortage-card h2,
.operations-allocation-action h2 {
  margin: 0 0 16px;
  font-size: 1.125rem;
}
.operations-allocation-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 16px;
}
.operations-allocation-counts div {
  min-width: 0;
}
.operations-allocation-counts dt {
  color: #4b5563;
  font-size: 0.8125rem;
}
.operations-allocation-counts dd {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.operations-allocation-count--warning {
  color: #b42318;
}
.operations-shortage-card,
.operations-allocation-action {
  margin-top: 24px;
}
.operations-shortage-card > p,
.operations-allocation-action > p {
  margin: 0 0 16px;
  color: #4b5563;
}
.operations-shortage-card > .button {
  max-width: 360px;
  margin-top: 20px;
}
.operations-table-wrapper {
  overflow-x: auto;
}
.operations-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.operations-table th,
.operations-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #d1d5db;
}
.operations-table th {
  color: #4b5563;
  font-size: 0.8125rem;
}
.operations-allocation-action {
  max-width: 680px;
}
.operations-allocation-action form {
  margin: 0;
}
.operations-notification-summary {
  margin-top: 24px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgb(31 41 55 / 8%);
}
.operations-notification-summary h2 {
  margin: 0 0 16px;
  font-size: 1.125rem;
}
.operations-notification-reason-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  gap: 12px 20px;
}
.operations-notification-reason-counts dt {
  color: #4b5563;
  font-size: 0.8125rem;
}
.operations-notification-reason-counts dd {
  margin: 2px 0 0;
  font-weight: 700;
}
.operations-notification-reasons {
  white-space: normal;
}
.operations-notification-reasons span {
  display: inline-block;
  margin: 2px;
  padding: 3px 8px;
  color: #7a271a;
  font-size: 0.75rem;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: 999px;
}
.operations-notification-actions {
  display: flex;
  margin-top: 16px;
  gap: 12px;
}
.operations-notification-actions .button {
  width: auto;
}
.operations-notification-filter {
  align-items: flex-end;
}
.operations-notification-navigation {
  margin-bottom: 24px;
}
.operations-notification-error {
  max-width: 320px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.operations-notification-excluded-list .operations-table-wrapper {
  max-height: calc((0.8125rem * 1.5 + 24px) + (10 * (1em * 1.5 + 24px)));
  overflow: auto;
}
.operations-notification-excluded-list .operations-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 0 1px 0 #d1d5db;
}

@media (min-width: 1024px) {
  .operations-notification-search-content {
    max-width: 1520px;
  }
  .operations-notification-excluded-list .operations-table {
    table-layout: fixed;
    white-space: normal;
  }
  .operations-notification-excluded-list .operations-table th:nth-child(1) {
    width: 7%;
  }
  .operations-notification-excluded-list .operations-table th:nth-child(2) {
    width: 18%;
  }
  .operations-notification-excluded-list .operations-table th:nth-child(3) {
    width: 12%;
  }
  .operations-notification-excluded-list .operations-table th:nth-child(4) {
    width: 17%;
  }
  .operations-notification-excluded-list .operations-table th:nth-child(5) {
    width: 15%;
  }
  .operations-notification-excluded-list .operations-table th:nth-child(6) {
    width: 18%;
  }
  .operations-notification-excluded-list .operations-table th:nth-child(7) {
    width: 13%;
    white-space: nowrap;
  }
  .operations-notification-excluded-list .operations-table td {
    overflow-wrap: anywhere;
  }
  .operations-notification-excluded-list .operations-table td:nth-child(7) {
    white-space: nowrap;
  }
  .operations-notification-excluded-list .operations-table td:nth-child(7) form {
    margin: 0;
  }
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (min-width: 600px) {
  .course-application-page {
    padding: 48px 24px;
  }
  .course-application-card {
    padding: 36px;
  }
  .auth-page {
    padding: 48px 24px;
  }
  .auth-card {
    padding: 36px;
  }
  .portal-header__content {
    padding-right: 24px;
    padding-left: 24px;
  }
  .home-page {
    padding: 48px 24px;
  }
  .operations-page {
    padding: 48px 24px;
  }
  .operations-menu-group {
    padding: 24px;
  }
  .operations-menu-group__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .operations-menu-card {
    padding: 24px;
  }
  .operations-form-card {
    padding: 32px;
  }
  .operations-allocation-summaries {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .operations-allocation-card,
  .operations-shortage-card,
  .operations-allocation-action,
  .operations-notification-summary {
    padding: 24px;
  }
  .operations-allocation-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .confirmation-actions {
    grid-template-columns: 1fr 1fr;
  }
}
