.attendance-deadline-field {
  grid-column: span 2;
}

.attendance-deadline-field small {
  min-height: 1.5em;
  color: var(--attendance-muted);
  font-size: .68rem;
  font-weight: 500;
}

.attendance-deadline-field small.is-open {
  color: var(--attendance-green);
  font-weight: 700;
}

.attendance-deadline-field small.is-closed {
  color: var(--attendance-danger);
  font-weight: 700;
}

.attendance-person-audit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, .9fr) minmax(0, 1.5fr);
  gap: 14px 24px;
  align-items: start;
  margin-top: 2px;
  padding: 12px 14px;
  border-top: 1px dashed var(--attendance-line);
  background: #f8faf9;
}

.attendance-audit-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: var(--attendance-muted);
  font-size: .72rem;
}

.attendance-audit-times span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.attendance-audit-times b {
  color: var(--attendance-navy);
  font-size: .68rem;
}

.attendance-history {
  min-width: 0;
  color: var(--attendance-muted);
  font-size: .72rem;
}

.attendance-history summary {
  width: fit-content;
  color: var(--attendance-green);
  font-weight: 700;
  cursor: pointer;
}

.attendance-history ol {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.attendance-history li {
  display: grid;
  grid-template-columns: 92px 82px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.attendance-history time {
  color: var(--attendance-muted);
  white-space: nowrap;
}

.attendance-history strong {
  color: var(--attendance-navy);
  font-size: .68rem;
}

.attendance-history-empty {
  color: var(--attendance-muted);
  font-size: .7rem;
}

.attendance-response-deadline,
.attendance-view-deadline {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
  font-weight: 700;
}

.attendance-response-deadline.is-closed,
.attendance-view-deadline.is-closed {
  color: #ffe2cf;
}

.attendance-response-app.is-deadline-closed .attendance-response-editor,
.attendance-response-app.is-deadline-closed [data-response-picker] {
  opacity: .72;
}

.attendance-response-app.is-deadline-closed button:disabled,
.attendance-response-app.is-deadline-closed select:disabled,
.attendance-response-app.is-deadline-closed textarea:disabled {
  cursor: not-allowed;
}

.attendance-response-entry.is-disabled {
  opacity: .62;
  cursor: not-allowed;
  pointer-events: none;
}

.attendance-message.is-success,
.form-message.is-success {
  color: var(--attendance-green, #315d54);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .attendance-deadline-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .attendance-person-audit {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .attendance-history li {
    grid-template-columns: 1fr;
    gap: 1px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--attendance-line);
  }

  .attendance-audit-times {
    display: grid;
  }
}
