.audit-log-panel > header {
  align-items: flex-start;
}

.audit-log-panel > header p:last-child {
  margin: 5px 0 0;
  color: #687b7c;
  font-size: 13px;
}

.audit-log-panel > header > span {
  padding: 6px 11px;
  border: 1px solid #c6d2ce;
  border-radius: 999px;
  color: #173a40;
  font-size: 12px;
  white-space: nowrap;
}

.audit-log-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #d8ded9;
  border-bottom: 1px solid #d8ded9;
  background: #f4f2e9;
}

.audit-log-filters label {
  display: grid;
  gap: 6px;
}

.audit-log-filters label > span {
  color: #627677;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.audit-log-filters input,
.audit-log-filters select {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #bdc9c6;
  border-radius: 3px;
  background: #fffdf6;
  color: #173a40;
}

.audit-log-keyword {
  grid-column: span 2;
}

.audit-log-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
}

.audit-log-table-wrap {
  max-height: 640px;
  overflow: auto;
}

.audit-log-table-wrap table {
  min-width: 1120px;
}

.audit-log-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.audit-log-table-wrap :where(td) > b,
.audit-log-table-wrap :where(td) > small,
.audit-log-po b,
.audit-log-po small {
  display: block;
}

.audit-log-table-wrap :where(td) > small,
.audit-log-po small {
  margin-top: 4px;
  color: #718182;
  font-size: 11px;
}

.audit-source,
.audit-event-kind {
  display: inline-flex;
  padding: 4px 8px;
  border: 1px solid #c2cdca;
  border-radius: 999px;
  background: #eef2ed;
  color: #315455;
  font-size: 11px;
  white-space: nowrap;
}

.audit-source.source-miniapp,
.audit-source.source-miniapp-test {
  border-color: #9ebfb0;
  background: #e6f2e9;
  color: #1d6545;
}

.audit-log-po {
  padding: 0;
  border: 0;
  background: transparent;
  color: #173a40;
  text-align: left;
  cursor: pointer;
}

.audit-log-po:hover b {
  text-decoration: underline;
}

.audit-log-loading,
.audit-log-error,
.audit-log-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 42px 16px;
  color: #6b7c7d;
  text-align: center;
}

.audit-log-error {
  color: #8d3a35;
}

.audit-log-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-top: 1px solid #d8ded9;
  color: #667879;
  font-size: 12px;
}

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

  .audit-log-keyword {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .audit-log-filters {
    grid-template-columns: 1fr;
  }

  .audit-log-keyword {
    grid-column: auto;
  }
}
