#system-audit-logs-app,
#system-audit-logs-app * { box-sizing: border-box; }

#system-audit-logs-app { min-width: 0; }
#system-audit-logs-app .audit-page { display: grid; gap: 16px; min-width: 0; }

#system-audit-logs-app .audit-intro {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 4px;
}
#system-audit-logs-app .audit-intro-icon {
  display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center;
  border: 1px solid #dbe5f3; border-radius: 13px; background: linear-gradient(145deg, #f7faff, #edf3fb);
}
#system-audit-logs-app .audit-intro-icon img { width: 23px; height: 23px; opacity: .82; }
#system-audit-logs-app .audit-intro strong { display: block; color: #344054; font-size: 14px; }
#system-audit-logs-app .audit-intro p { margin: 3px 0 0; color: #7b8799; font-size: 13px; }
#system-audit-logs-app .audit-total {
  margin-left: auto; padding: 7px 11px; border: 1px solid #e1e7f0; border-radius: 999px;
  background: #fff; color: #667085; font-size: 12px; white-space: nowrap;
}
#system-audit-logs-app .audit-total strong { display: inline; color: #3f66c8; font-size: inherit; }

#system-audit-logs-app .audit-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 13px;
  border: 1px solid color-mix(in srgb, var(--border-color) 86%, #b8c9e5); border-radius: 16px;
  background: color-mix(in srgb, var(--panel-bg) 88%, #f3f7fc);
}
#system-audit-logs-app .audit-date-range { flex: 1.8 1 260px; max-width: none; }
#system-audit-logs-app .audit-date-range .profit-report-range-popover { z-index: 3700; }
#system-audit-logs-app .audit-date-range [data-audit-range-confirm] { min-width: 62px; background: #4777e9; color: #fff; }
#system-audit-logs-app .audit-select {
  display: flex; flex: 1 1 132px; align-items: center; min-width: 132px; min-height: 44px; padding-left: 11px;
  border: 1px solid #dce4ef; border-radius: 11px; background: rgba(255, 255, 255, .84);
  transition: border-color .18s ease-out, box-shadow .18s ease-out, background .18s ease-out;
}
#system-audit-logs-app .audit-select:focus-within,
#system-audit-logs-app .audit-search:focus-within,
#system-audit-logs-app .audit-date-range:focus-within {
  border-color: rgba(83, 125, 216, .5); background: #fff; box-shadow: 0 0 0 3px rgba(83, 125, 216, .08);
}
#system-audit-logs-app .audit-select > span:first-child { flex: 0 0 auto; color: #8a96a8; font-size: 11px; font-weight: 700; }
#system-audit-logs-app .audit-select > select { width: 100%; min-width: 0; height: 42px; padding: 0 9px; border: 0; background: transparent; box-shadow: none; }
#system-audit-logs-app .audit-select > .system-control { flex: 1 1 auto; min-width: 0; }
#system-audit-logs-app .audit-select .system-control-trigger { min-height: 42px; gap: 6px; padding: 0 8px; border: 0; background: transparent; box-shadow: none; font-size: 13px; }
#system-audit-logs-app .audit-select .system-control-chevron { width: 14px; height: 14px; margin-left: 0; }
#system-audit-logs-app .audit-search-row { display: flex; flex: 1 0 100%; align-items: center; gap: 12px; min-width: 0; }
#system-audit-logs-app .audit-search {
  position: relative; display: flex; flex: 0 1 480px; align-items: center; min-width: 0; max-width: 480px; min-height: 44px;
  padding: 0 13px; border: 1px solid #dce4ef; border-radius: 11px; background: rgba(255, 255, 255, .84); color: #8290a4;
}
#system-audit-logs-app .audit-search > svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
#system-audit-logs-app .audit-search input { width: 100%; min-width: 0; height: 42px; padding: 0 0 0 10px; border: 0; background: transparent; box-shadow: none; outline: 0; }
#system-audit-logs-app .audit-clear { flex: 0 0 auto; min-height: 42px; padding: 0 11px; border-radius: 9px; white-space: nowrap; }

#system-audit-logs-app .audit-list-panel {
  min-width: 0; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff;
  box-shadow: 0 7px 24px rgba(31, 47, 76, .045);
}
#system-audit-logs-app .audit-table-wrap { width: 100%; max-width: 100%; overflow: auto; overscroll-behavior-inline: contain; }
#system-audit-logs-app .audit-table { width: 100%; min-width: 1300px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
#system-audit-logs-app .audit-col-time { width: 126px; }
#system-audit-logs-app .audit-col-actor { width: 164px; }
#system-audit-logs-app .audit-col-module { width: 116px; }
#system-audit-logs-app .audit-col-action { width: 104px; }
#system-audit-logs-app .audit-col-object { width: 260px; }
#system-audit-logs-app .audit-col-result { width: 88px; }
#system-audit-logs-app .audit-col-summary { width: auto; }
#system-audit-logs-app .audit-col-tools { width: 92px; }
#system-audit-logs-app .audit-table th,
#system-audit-logs-app .audit-table td {
  min-width: 0; max-width: 0; overflow: hidden; padding: 11px 13px; border-bottom: 1px solid #edf0f5;
  text-align: left; vertical-align: middle;
}
#system-audit-logs-app .audit-table th {
  position: sticky; z-index: 2; top: 0; height: 46px; background: #f6f8fb; color: #667085;
  font-size: 12px; font-weight: 750; white-space: nowrap;
}
#system-audit-logs-app .audit-table td { height: 66px; color: #344054; font-size: 13px; }
#system-audit-logs-app .audit-col-resizer { right: 0; touch-action: none; }
#system-audit-logs-app .audit-col-resizer:focus-visible { opacity: 1; outline: 2px solid #4777e9; outline-offset: -2px; }
#system-audit-logs-app .audit-table tbody tr:last-child td { border-bottom: 0; }
#system-audit-logs-app .audit-table tbody tr:hover td { background: #fafcff; }
#system-audit-logs-app .audit-table td > *,
#system-audit-logs-app .audit-person > span:last-child,
#system-audit-logs-app .audit-object > span:last-child { min-width: 0; max-width: 100%; }
#system-audit-logs-app .audit-person,
#system-audit-logs-app .audit-object { display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; }
#system-audit-logs-app .audit-person strong,
#system-audit-logs-app .audit-object strong,
#system-audit-logs-app .audit-cell-ellipsis { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#system-audit-logs-app .audit-person small,
#system-audit-logs-app .audit-object small,
#system-audit-logs-app .audit-time small { display: block; margin-top: 3px; overflow: hidden; color: #98a2b3; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
#system-audit-logs-app .audit-avatar {
  display: grid; flex: 0 0 31px; width: 31px; height: 31px; overflow: hidden; place-items: center;
  border: 1px solid #dbe4f0; border-radius: 10px; background: #eef3fb; color: #4d68a8; font-size: 12px; font-weight: 800;
}
#system-audit-logs-app .audit-avatar img,
#audit-log-detail-dialog .audit-avatar img { width: 100%; height: 100%; object-fit: cover; }
#system-audit-logs-app .audit-avatar.is-icon { padding: 6px; background: linear-gradient(145deg, #f7faff, #eaf1fa); }
#system-audit-logs-app .audit-avatar.is-icon img { opacity: .78; object-fit: contain; }
#system-audit-logs-app .audit-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
#system-audit-logs-app .audit-time > span { display: block; font-weight: 650; }
#system-audit-logs-app .audit-summary {
  display: -webkit-box; max-width: 100%; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow-wrap: anywhere; line-height: 1.45;
}
#system-audit-logs-app .audit-result { display: inline-flex; max-width: 100%; padding: 4px 8px; overflow: hidden; border-radius: 999px; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
#system-audit-logs-app .audit-result-success { color: #16734b; background: #eaf8f1; }
#system-audit-logs-app .audit-result-failed { color: #b42318; background: #fff0ef; }
#system-audit-logs-app .audit-result-warning { color: #a14c00; background: #fff5e8; }
#system-audit-logs-app .audit-result-partial { color: #876000; background: #fff8d8; }
#system-audit-logs-app .audit-detail-button { max-width: 100%; padding: 6px 0; border: 0; background: transparent; color: #4f6ff0; font-size: 12px; font-weight: 750; white-space: nowrap; box-shadow: none; }
#system-audit-logs-app .audit-detail-button:hover { color: #3157ce; text-decoration: underline; }
#system-audit-logs-app .audit-empty { height: 210px !important; max-width: none !important; padding: 36px 20px !important; color: #7d8ba1; text-align: center !important; }
#system-audit-logs-app .audit-empty strong,
#system-audit-logs-app .audit-empty small { display: block; margin-top: 7px; }
#system-audit-logs-app .audit-empty small { color: #98a2b3; font-size: 12px; font-weight: 400; }
#system-audit-logs-app .audit-empty-icon { display: grid; width: 38px; height: 38px; margin: 0 auto; place-items: center; border-radius: 12px; background: #f0f4fa; }
#system-audit-logs-app .audit-empty-icon svg { width: 18px; fill: none; stroke: #8290a4; stroke-width: 1.8; }
#system-audit-logs-app .audit-error strong { color: #b42318; }
#system-audit-logs-app .audit-pagination { padding: 10px 14px 12px; border-top: 1px solid #edf0f5; }

#audit-log-detail-dialog.audit-drawer-dialog {
  inset: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0;
  overflow: hidden; border: 0; background: transparent; color: #344054;
}
#audit-log-detail-dialog::backdrop { background: rgba(20, 27, 43, .38); }
#audit-log-detail-dialog .audit-drawer {
  display: flex; width: min(560px, calc(100vw - 28px)); height: 100dvh; margin-left: auto; flex-direction: column;
  overflow: hidden; border-left: 1px solid #e2e8f0; background: #f8fafc;
  box-shadow: -22px 0 58px rgba(26, 37, 58, .2); animation: audit-drawer-enter .2s ease-out;
}
@keyframes audit-drawer-enter { from { transform: translateX(24px); opacity: .72; } to { transform: translateX(0); opacity: 1; } }
#audit-log-detail-dialog header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 22px 19px;
  border-bottom: 1px solid #e7ebf1; background: rgba(255, 255, 255, .95);
}
#audit-log-detail-dialog .audit-drawer-heading { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
#audit-log-detail-dialog .audit-drawer-heading > .audit-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; overflow: hidden; place-items: center; border: 1px solid #dbe4f0; border-radius: 12px; background: #eef3fb; color: #4d68a8; font-size: 13px; font-weight: 800; }
#audit-log-detail-dialog .audit-drawer-heading > .audit-avatar.is-icon { padding: 8px; }
#audit-log-detail-dialog .audit-drawer-heading > .audit-avatar.is-icon img { object-fit: contain; }
#audit-log-detail-dialog .audit-drawer-heading > div { min-width: 0; }
#audit-log-detail-dialog .audit-drawer-heading h2 { margin: 0 0 8px; overflow-wrap: anywhere; color: var(--primary-button, #386cf3); font-size: 26px; font-weight: 700; line-height: 1.35; }
#audit-log-detail-dialog .audit-drawer-heading p { margin: 0; color: #748196; font-size: 14px; line-height: 1.55; }
#audit-log-detail-dialog .audit-drawer-heading .audit-detail-subtitle { margin-bottom: 5px; color: #475467; font-size: 16px; font-weight: 600; }
#audit-log-detail-dialog .audit-drawer-close { display: grid; flex: 0 0 34px; width: 34px; height: 34px; padding: 0; place-items: center; border: 1px solid #e1e7ef; border-radius: 10px; background: #fff; color: #667085; font-size: 22px; line-height: 1; box-shadow: none; }
#audit-log-detail-dialog .audit-drawer-close:hover { background: #f3f6fa; color: #344054; }
#audit-log-detail-dialog .audit-drawer-body { display: grid; gap: 14px; padding: 18px 20px 28px; overflow: auto; }
#audit-log-detail-dialog .audit-drawer-section { padding: 16px; border: 1px solid #e5eaf1; border-radius: 14px; background: #fff; }
#audit-log-detail-dialog .audit-drawer-section h3 { margin: 0 0 12px; color: #344054; font-size: 13px; }
#audit-log-detail-dialog dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
#audit-log-detail-dialog dl div { min-width: 0; }
#audit-log-detail-dialog dt { color: #98a2b3; font-size: 11px; }
#audit-log-detail-dialog dd { margin: 4px 0 0; overflow-wrap: anywhere; color: #3f4f65; font-size: 12px; line-height: 1.5; }
#audit-log-detail-dialog .audit-changes { display: grid; gap: 8px; }
#audit-log-detail-dialog .audit-changes > div { display: grid; grid-template-columns: minmax(110px, .45fr) 1fr; gap: 12px; padding: 11px 12px; border-radius: 10px; background: #f7f9fc; }
#audit-log-detail-dialog .audit-changes > div > span { color: #748196; font-size: 12px; }
#audit-log-detail-dialog .audit-changes strong { display: flex; min-width: 0; align-items: center; gap: 8px; overflow-wrap: anywhere; font-size: 12px; }
#audit-log-detail-dialog .audit-changes em { min-width: 0; color: #344054; font-style: normal; }
#audit-log-detail-dialog .audit-changes b { color: #8c99aa; font-weight: 500; }
#audit-log-detail-dialog .audit-raw { padding: 2px 3px; color: #64748b; font-size: 12px; }
#audit-log-detail-dialog .audit-raw summary { cursor: pointer; font-weight: 700; }
#audit-log-detail-dialog pre { max-height: 280px; overflow: auto; padding: 14px; border-radius: 11px; background: #17202d; color: #e8edf5; font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  #system-audit-logs-app .audit-date-range { max-width: none; }
  #system-audit-logs-app .audit-select { flex: 1 1 140px; }
  #system-audit-logs-app .audit-search { flex-basis: 100%; }
}
@media (max-width: 560px) {
  #system-audit-logs-app .audit-intro { align-items: flex-start; }
  #system-audit-logs-app .audit-total { display: none; }
  #system-audit-logs-app .audit-date-range,
  #system-audit-logs-app .audit-select,
  #system-audit-logs-app .audit-search { flex-basis: 100%; max-width: none; }
  #system-audit-logs-app .audit-search-row { flex-wrap: wrap; }
  #system-audit-logs-app .audit-clear { justify-content: center; }
  #audit-log-detail-dialog .audit-drawer { width: calc(100vw - 10px); }
  #audit-log-detail-dialog dl { grid-template-columns: 1fr; }
  #audit-log-detail-dialog .audit-changes > div { grid-template-columns: 1fr; }
}
