/* Admin UI v11: consistent flat layout across every admin tab */
.admin-body .admin-filter-bar {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body .admin-filter-bar.compact-filter {
  margin-bottom: 14px;
}

.admin-body .table-wrap {
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body .management-card {
  overflow: visible;
  margin-top: 2px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body .management-card::before {
  display: none;
}

.admin-body .management-card > h2 {
  margin-top: 0;
}

.admin-body .manager-registry {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body .queue-toolbar {
  align-items: flex-start;
  gap: 28px;
}

/* Tables stay readable without a second surrounding frame. */
.admin-body table {
  background: transparent;
}

.admin-body th:first-child,
.admin-body td:first-child {
  padding-left: 0;
}

.admin-body th:last-child,
.admin-body td:last-child {
  padding-right: 0;
}

/* Keep drawers structured, but remove redundant cards inside their top grids. */
.admin-body .admin-drawer .detail-grid > .card {
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body .admin-drawer .detail-grid > .card::before {
  display: none;
}

.admin-body .admin-drawer .admin-edit-card {
  padding: 16px 0;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-body .admin-drawer .admin-edit-card::before {
  display: none;
}

@media (max-width: 1080px) {
  .admin-body .queue-toolbar {
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .admin-body .queue-toolbar {
    gap: 14px;
  }

  .admin-body .admin-filter-bar {
    gap: 10px;
  }
}

/* Admin UI v13: journal moved inside Management */
.admin-body .management-journal {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid rgba(167, 170, 99, .14);
}

.admin-body .management-journal > h2 {
  margin-top: 0;
}

/* Admin UI v14: audit journal cleanup controls */
.admin-body .management-journal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.admin-body .management-journal-head h2 {
  margin-top: 6px;
  margin-bottom: 6px;
}

.admin-body .management-journal-head .danger {
  flex: 0 0 auto;
}

.admin-body .audit-delete-cell {
  width: 48px;
  text-align: center;
}

.admin-body .audit-delete-button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(234, 230, 210, .22);
  border-radius: 9px;
  color: var(--cream);
  background: rgba(80, 80, 57, .52);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.admin-body .audit-delete-button:hover {
  border-color: rgba(234, 230, 210, .42);
  background: rgba(80, 80, 57, .82);
}

.admin-body .audit-delete-button:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

@media (max-width: 680px) {
  .admin-body .management-journal-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-body .management-journal-head .danger {
    width: 100%;
  }
}
