.admin-audit-log-page {
  display: grid;
  gap: 1rem;
}

.admin-audit-log-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
}

.admin-audit-log-heading h1,
.admin-audit-log-heading p {
  margin: 0;
}

.admin-audit-log-heading > div > p:last-child {
  color: #475569;
  margin-top: 0.35rem;
}

.admin-audit-log-heading .page-kicker {
  margin-bottom: 0.55rem;
}

.admin-audit-log-filters {
  align-items: end;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(14rem, 2fr) repeat(3, minmax(9rem, 1fr)) auto;
  padding: 0.9rem;
}

.admin-audit-log-filter {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.admin-audit-log-filter label {
  color: #334155;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-audit-log-filter input,
.admin-audit-log-filter select {
  border: 1px solid #94a3b8;
  border-radius: 6px;
  font: inherit;
  min-height: 2.5rem;
  padding: 0.5rem 0.6rem;
  width: 100%;
}

.admin-audit-log-filter-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.admin-audit-log-filter-actions input {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.admin-audit-log-table-wrap {
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  overflow-x: auto;
}

.admin-audit-log-table {
  border-collapse: collapse;
  min-width: 68rem;
  width: 100%;
}

.admin-audit-log-table th,
.admin-audit-log-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.8rem;
  text-align: left;
  vertical-align: top;
}

.admin-audit-log-table th {
  background: #eff4fb;
  color: #1e3a5f;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-audit-log-table td:first-child {
  white-space: nowrap;
}

.admin-audit-log-table td span,
.admin-audit-log-table td strong {
  display: block;
}

.admin-audit-log-table td span {
  color: #64748b;
  font-size: 0.85rem;
}

.admin-audit-log-table td p {
  margin: 0;
}

.admin-audit-log-category {
  color: var(--tlfl-blue) !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-audit-log-status {
  border-radius: 999px;
  display: inline-block !important;
  font-size: 0.72rem !important;
  font-weight: 900;
  padding: 0.25rem 0.55rem;
  text-transform: uppercase;
}

.admin-audit-log-status-completed {
  background: #dcfce7;
  color: #166534 !important;
}

.admin-audit-log-status-queued {
  background: #dbeafe;
  color: #1d4ed8 !important;
}

.admin-audit-log-table details {
  margin-top: 0.45rem;
}

.admin-audit-log-table summary {
  color: var(--tlfl-blue);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-audit-log-table dl {
  display: grid;
  font-size: 0.78rem;
  gap: 0.2rem 0.6rem;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 0.45rem 0 0;
}

.admin-audit-log-table dt {
  color: #475569;
  font-weight: 800;
}

.admin-audit-log-table dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-audit-log-empty-row td {
  color: #64748b;
  padding: 2rem;
  text-align: center;
}

.admin-audit-log-pagination {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

@media (max-width: 70rem) {
  .admin-audit-log-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-audit-log-search,
  .admin-audit-log-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 42rem) {
  .admin-audit-log-filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-audit-log-search,
  .admin-audit-log-filter-actions {
    grid-column: auto;
  }

  .admin-audit-log-table {
    min-width: 0;
  }

  .admin-audit-log-table thead {
    display: none;
  }

  .admin-audit-log-table,
  .admin-audit-log-table tbody,
  .admin-audit-log-table tr,
  .admin-audit-log-table td {
    display: block;
    width: 100%;
  }

  .admin-audit-log-table tr {
    border-bottom: 1px solid #cbd5e1;
    padding: 0.35rem 0;
  }

  .admin-audit-log-table td {
    border-bottom: 0;
    padding: 0.55rem 0.75rem 0.55rem 7rem;
    position: relative;
    white-space: normal;
  }

  .admin-audit-log-table td::before {
    color: #475569;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 900;
    left: 0.75rem;
    position: absolute;
    text-transform: uppercase;
    top: 0.65rem;
  }
}
