.audit-page .admin-header { gap: 20px; }
.audit-page .admin-users-nav-link.active { color: var(--blue); background: var(--blue-soft); box-shadow: inset 3px 0 0 var(--blue); font-weight: 700; }
.audit-page button { cursor: pointer; }
.audit-page button:disabled { cursor: default; opacity: .5; }
.audit-panel { background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; overflow: hidden; }
.audit-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 24px; border-bottom: 1px solid var(--border, #e5e7eb); }
.audit-filters label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; }
.audit-filters .audit-search { grid-column: span 2; }
.audit-filters input, .audit-filters select { width: 100%; min-width: 0; height: 42px; background: #fff; color: var(--text); padding: 8px 12px; border: 1px solid var(--border, #dce2ea); border-radius: 6px; font: inherit; }
.audit-filter-actions { display: flex; align-items: end; gap: 8px; grid-column: span 2; }
.audit-page button { min-height: 38px; border: 1px solid var(--border, #dce2ea); border-radius: 6px; padding: 8px 14px; background: #fff; color: var(--text); font: inherit; font-size: 13px; white-space: nowrap; }
.audit-page button.primary { background: var(--blue, #0453ff); color: #fff; border-color: var(--blue, #0453ff); }
.audit-table-scroll { overflow-x: auto; }
.audit-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.audit-table th { background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.audit-table td, .audit-table th { padding: 18px 20px; border-bottom: 1px solid var(--border, #e5e7eb); vertical-align: top; }
.audit-table td { max-width: 300px; overflow-wrap: anywhere; }
.audit-table td small { display: block; color: var(--muted); margin-top: 5px; }
.audit-table tbody tr:hover { background: #fafcff; }
.audit-action { display: inline-block; padding: 4px 9px; border-radius: 5px; background: #eef3ff; color: #214dc0; white-space: nowrap; }
.audit-action.DELETE, .audit-action.SOFT_DELETE { background: #fff0f0; color: #aa3030; }
.audit-action.CREATE, .audit-action.RESTORE { background: #eaf8f0; color: #227249; }
.audit-pagination, .audit-pagination > div { display: flex; align-items: center; gap: 14px; }
.audit-pagination { justify-content: space-between; padding: 20px 24px; color: var(--muted); font-size: 13px; }
.audit-help { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 16px; }
#audit-notice { background: #fff0f0; color: #a42525; border: 1px solid #ffd9d9; border-radius: 6px; padding: 14px; }
.audit-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); border: 0; border-radius: 12px; padding: 28px; box-shadow: 0 20px 80px #172c4d30; }
.audit-dialog::backdrop { background: #14233b70; }
.audit-dialog > header { display: flex; justify-content: space-between; align-items: start; gap: 24px; margin-bottom: 20px; }
.audit-dialog h2 { margin: 0 0 10px; font-size: 24px; }
.audit-dialog p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.audit-diff { table-layout: fixed; min-width: 620px; }
.audit-diff th:first-child { width: 24%; }
.audit-diff td { white-space: pre-wrap; }
.audit-diff td:nth-child(2) { background: #fff8f7; }
.audit-diff td:nth-child(3) { background: #f5fbf7; }
@media (max-width: 1000px) { .audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .audit-page .admin-nav a { flex: 0 0 auto; white-space: nowrap; }
  .audit-page .admin-header { margin-bottom: 20px; }
  .audit-filters { padding: 16px; gap: 14px; }
  .audit-pagination { flex-wrap: wrap; padding: 16px; }
  .audit-dialog { padding: 16px; }
}
@media (max-width: 400px) { .audit-filters { grid-template-columns: minmax(0, 1fr); }.audit-filters .audit-search, .audit-filter-actions { grid-column: span 1; } }
