/* Canonical attendance absence and lateness notes. */

.att-reason {
  grid-column: 2/3;
  display: none;
  margin-top: 9px;
  padding: 10px 11px;
  border: 1px solid #e3e3df;
  border-radius: 11px;
  background: #fafaf8;
}
.att-reason.visible {
  display: block;
}
.att-reason label {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}
.att-reason-input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.att-reason-input input {
  min-width: 0;
  flex: 1;
  height: 38px;
  border: 1px solid #d8d8d3;
  border-radius: 9px;
  background: #fff;
  padding: 0 11px;
  font: inherit;
  font-size: 11px;
  color: #111;
}
.att-reason-input input:focus {
  outline: 2px solid #111;
  outline-offset: 1px;
}
.att-reason-input span {
  font-size: 8px;
  font-weight: 800;
  color: #888;
  white-space: nowrap;
}
.att-choice.late.active ~ * {
}
.attendance-row:has(.att-choice.late.active) .att-reason {
  border-left: 4px solid #d89316;
}
.attendance-row:has(.att-choice.just.active) .att-reason {
  border-left: 4px solid #7b64b5;
}
@media (max-width: 760px) {

  .att-reason {
    grid-column: 1;
    margin-top: 8px;
  }
  .att-reason-input {
    align-items: stretch;
    flex-direction: column;
  }
  .att-reason-input input {
    width: 100%;
    font-size: 16px;
  }
  .att-reason-input span {
    align-self: flex-end;
  }
}
