.subject-teacher-admin {
  width: 100%;
  margin: 18px 0 22px;
  padding: 18px;
  color: #172b3a;
  background: #f8fbfc;
  border: 1px solid #cfdde2;
  border-left: 5px solid #19796e;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 43, 58, 0.08);
}

.subject-teacher-admin-head,
.subject-teacher-admin-actions,
.subject-teacher-admin-activity-head,
.subject-teacher-admin-activity-row {
  display: flex;
  align-items: center;
}

.subject-teacher-admin-head {
  justify-content: space-between;
  gap: 18px;
}

.subject-teacher-admin-kicker {
  margin-bottom: 4px;
  color: #19796e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.subject-teacher-admin h3 {
  margin: 0;
  color: #172b3a;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0;
}

.subject-teacher-admin-head p {
  max-width: 680px;
  margin: 6px 0 0;
  color: #536872;
  font-size: 0.88rem;
  line-height: 1.6;
}

.subject-teacher-admin-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.subject-teacher-admin-status.is-active {
  color: #11645b;
  background: #dcf7ef;
}

.subject-teacher-admin-status.is-disabled {
  color: #68777e;
  background: #eef3f5;
}

.subject-teacher-admin-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px -18px 0;
  padding: 12px 18px;
  background: #edf5f6;
  border-top: 1px solid #d4e2e5;
  border-bottom: 1px solid #d4e2e5;
}

.subject-teacher-admin-meta > div {
  min-width: 0;
  padding-right: 14px;
}

.subject-teacher-admin-meta span,
.subject-teacher-admin-meta strong {
  display: block;
}

.subject-teacher-admin-meta span {
  margin-bottom: 3px;
  color: #61747d;
  font-size: 0.7rem;
  font-weight: 800;
}

.subject-teacher-admin-meta strong {
  overflow: hidden;
  color: #243b49;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subject-teacher-admin-warning {
  margin-top: 12px;
  padding: 9px 11px;
  color: #7a4a00;
  background: #fff1c8;
  border: 1px solid #e8c974;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.subject-teacher-admin-actions {
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #d8e3e6;
}

.subject-teacher-admin-button {
  min-height: 38px;
  padding: 8px 13px;
  color: #263e4b;
  background: #ffffff;
  border: 1px solid #aec1c7;
  border-radius: 6px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.subject-teacher-admin-button:hover:not(:disabled) {
  background: #eaf3f4;
  border-color: #718e97;
}

.subject-teacher-admin-button.is-primary {
  color: #ffffff;
  background: #19796e;
  border-color: #19796e;
}

.subject-teacher-admin-button.is-primary:hover:not(:disabled) {
  background: #12655c;
}

.subject-teacher-admin-button.is-danger {
  color: #a23737;
  border-color: #dfa0a0;
}

.subject-teacher-admin-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.subject-teacher-admin-button:focus-visible {
  outline: 3px solid rgba(25, 121, 110, 0.3);
  outline-offset: 2px;
}

.subject-teacher-admin-activity {
  padding-top: 13px;
}

.subject-teacher-admin-activity-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.subject-teacher-admin-activity-head strong {
  font-size: 0.9rem;
}

.subject-teacher-admin-activity-head span {
  color: #61747d;
  font-size: 0.76rem;
  font-weight: 800;
}

.subject-teacher-admin-activity-list {
  border-top: 1px solid #d8e3e6;
}

.subject-teacher-admin-activity-row {
  display: grid;
  grid-template-columns: 54px minmax(120px, 1fr) 58px minmax(148px, auto);
  gap: 9px;
  min-height: 38px;
  padding: 7px 0;
  border-bottom: 1px solid #e2eaec;
  font-size: 0.8rem;
}

.subject-teacher-admin-seat {
  color: #61747d;
  font-weight: 800;
}

.subject-teacher-admin-activity-row b {
  text-align: right;
}

.subject-teacher-admin-activity-row b.is-positive {
  color: #08715e;
}

.subject-teacher-admin-activity-row b.is-negative {
  color: #b34444;
}

.subject-teacher-admin-activity-row time {
  color: #61747d;
  text-align: right;
  white-space: nowrap;
}

.subject-teacher-admin-empty {
  margin: 0;
  padding: 10px 0 2px;
  color: #61747d;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .subject-teacher-admin {
    padding: 14px;
  }

  .subject-teacher-admin-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .subject-teacher-admin-meta {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .subject-teacher-admin-button {
    flex: 1 1 calc(50% - 8px);
  }

  .subject-teacher-admin-activity-row {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }

  .subject-teacher-admin-activity-row time {
    grid-column: 2 / 4;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subject-teacher-admin-button {
    transition: none;
  }
}
