.admin-audit-page {
  width: min(100% - 48px, 1440px);
  margin: 0 auto;
  padding: 28px 0 40px;
  color: #1a1a18;
}

.admin-audit-heading {
  display: flex;
  min-height: 72px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 2px solid #1a1a18;
}

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

.admin-audit-heading p {
  color: #686861;
  font-size: 12px;
  font-weight: 800;
}

.admin-audit-heading h2 {
  padding: 4px 0 12px;
  font-size: 28px;
  line-height: 40px;
}

.admin-audit-heading time {
  padding-bottom: 14px;
  color: #686861;
  font-size: 12px;
}

.admin-audit-tabs {
  display: flex;
  gap: 0;
  margin-top: 24px;
  border-bottom: 1px solid #a9a9a2;
}

.admin-audit-tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #4f4f49;
  background: transparent;
  font-weight: 700;
}

.admin-audit-tabs button[aria-selected="true"] {
  border-bottom-color: #1a1a18;
  color: #1a1a18;
  background: #f4df32;
}

.admin-audit-failure {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 8px 12px;
  border-left: 4px solid #c92a24;
  background: #fff1ef;
}

.admin-audit-failure button,
.admin-audit-pagination button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #1a1a18;
  background: #fff;
  font-weight: 700;
}

.admin-audit-status {
  margin: 0;
  padding: 48px 16px;
  color: #686861;
}

.admin-audit-table-scroll {
  overflow-x: auto;
  border-bottom: 1px solid #a9a9a2;
}

.admin-audit-page table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-audit-page th,
.admin-audit-page td {
  min-height: 40px;
  padding: 10px 12px;
  border-bottom: 1px solid #d7d7d1;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.admin-audit-page th {
  color: #55554f;
  background: #efefeb;
  font-weight: 800;
}

.admin-audit-page th:nth-child(1) { width: 132px; }
.admin-audit-page th:nth-child(2) { width: 210px; }
.admin-audit-page th:nth-child(3) { width: 180px; }
.admin-audit-page th:nth-child(5) { width: 100px; }
.admin-audit-page th:nth-child(6) { width: 210px; }

.admin-audit-page td small {
  display: block;
  margin-top: 4px;
  color: #686861;
}

.admin-audit-page td strong {
  color: #16794b;
}

.admin-audit-page td strong.is-failed {
  color: #c92a24;
}

.admin-audit-pagination {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

.admin-audit-retention {
  margin: 24px 0 0;
  padding-top: 12px;
  border-top: 1px solid #d7d7d1;
  color: #686861;
  font-size: 12px;
}

.admin-audit-page :focus-visible {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .admin-audit-page { width: calc(100% - 24px); }
  .admin-audit-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .admin-audit-heading time { padding-bottom: 12px; }
  .admin-audit-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-audit-tabs button { min-width: 0; padding: 8px; }
}
