.logs-view {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  background: transparent;
}

.logs-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 0;
  padding: 28px 20px;
  text-align: center;
}

.logs-empty h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.logs-empty p {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 13px;
}

.system-logs-list.panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 16px 18px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .10), 0 1px 2px rgba(0, 0, 0, .06);
}

.system-logs-list .document-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.system-logs-list .filter-set,
.system-logs-list .document-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.system-logs-list .list-search {
  position: relative;
  width: 280px;
}

.system-logs-list .list-search .mdi {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 15px;
}

.system-logs-list .list-search input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 36px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.system-logs-list .list-search input::placeholder {
  color: #8da0b4;
}

.system-logs-list .list-search input:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.14);
  outline: none;
}

.system-logs-list .document-filter {
  position: relative;
}

.system-logs-list .filter-btn {
  min-width: 120px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}

.system-logs-list .filter-btn:hover,
.system-logs-list .document-filter.open .filter-btn {
  border-color: rgba(58, 124, 165, .32);
  color: var(--theme-primary-active);
}

.system-logs-list .status-dropdown-filter,
.system-logs-list .status-filter-trigger,
.system-logs-list .status-filter-menu {
  min-width: 154px;
}

.system-logs-list .status-filter-trigger > .mdi:first-child {
  color: var(--theme-primary);
}

.system-logs-list .document-filter-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 150px;
  max-height: 280px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.system-logs-list .document-filter-menu button {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}

.system-logs-list .document-filter-menu button:hover,
.system-logs-list .document-filter-menu button.active {
  background: rgba(58, 124, 165, 0.1);
  color: var(--theme-primary-active);
}

.system-logs-list .create-request-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-active));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 24px var(--theme-primary-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.system-logs-list .create-request-btn.secondary {
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #334155;
  box-shadow: none;
}

.system-logs-list .create-request-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px var(--theme-primary-shadow);
  filter: saturate(1.02);
}

.system-logs-list .create-request-btn.secondary:hover:not(:disabled) {
  border-color: rgba(58, 124, 165, .32);
  color: var(--theme-primary-active);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.system-logs-list .create-request-btn:disabled {
  cursor: not-allowed;
  opacity: .72;
  transform: none;
}

.system-logs-list .hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
}

.system-logs-list .table-wrap {
  min-height: 400px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  border: 1px solid #edf2f7;
  border-radius: 10px;
  background: linear-gradient(180deg, #fcfefd 0%, #f4f8f6 100%);
}

.system-logs-list .table-wrap.is-empty {
  align-items: center;
  justify-content: center;
}

.system-logs-list .table-state {
  width: 100%;
  min-height: 260px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 28px 20px;
  text-align: center;
  color: #64748b;
  background: linear-gradient(180deg, #fcfffd 0%, #f5f9f7 100%);
}

.system-logs-list .system-log-table {
  width: 100%;
  min-width: 1260px;
  align-self: flex-start;
  border-collapse: collapse;
  table-layout: fixed;
}

.system-logs-list .col-time { width: 13%; }

.system-logs-list .col-level { width: 8%; }

.system-logs-list .col-event { width: 13%; }

.system-logs-list .col-module { width: 15%; }

.system-logs-list .col-outcome { width: 8%; }

.system-logs-list .col-summary { width: 27%; }

.system-logs-list .col-request { width: 16%; }

.system-logs-list th,
.system-logs-list td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf2f7;
  color: #24324a;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.system-logs-list th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fafc;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.system-logs-list tbody tr {
  cursor: pointer;
}

.system-logs-list tbody tr:hover {
  background: linear-gradient(90deg, rgba(58, 124, 165, .08), rgba(58, 124, 165, .03));
}

.system-logs-list tbody tr:last-child td {
  border-bottom: 0;
}

.system-logs-list .summary-cell {
  text-align: left;
  white-space: normal;
}

.system-logs-list .summary-cell strong,
.system-logs-list .summary-cell span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.system-logs-list .summary-cell strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.system-logs-list .summary-cell span {
  margin-top: 4px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.system-logs-list .trace-cell {
  color: #2563eb;
  word-break: break-all;
  white-space: normal;
}

.system-logs-list .status-pill,
.system-logs-list .level-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.system-logs-list .status-pill.success {
  border-color: var(--success-line);
  background: var(--success-soft);
  color: var(--success-active);
}

.system-logs-list .status-pill.warning,
.system-logs-list .level-pill.warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #f97316;
}

.system-logs-list .status-pill.danger,
.system-logs-list .level-pill.danger {
  border-color: #fecaca;
  background: #fef2f2;
  color: #dc2626;
}

.system-logs-list .status-pill.muted,
.system-logs-list .level-pill.muted {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
}

.system-logs-list .level-pill.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.system-logs-list .inline-empty {
  padding: 36px 16px;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  text-align: center;
}

.system-logs-list .list-foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.system-logs-list .page-summary {
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
}

.system-logs-list .pager {
  display: inline-flex;
  justify-content: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.system-logs-list .pager button,
.system-logs-list .page-ellipsis {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
}

.system-logs-list .pager button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.system-logs-list .page-ellipsis {
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.system-logs-list .pager button:hover:not(.active):not(:disabled) {
  background: #fff;
  color: var(--theme-primary-active);
  box-shadow: 0 1px 4px rgba(15, 23, 42, .08);
}

.system-logs-list .pager button.active {
  background: var(--theme-primary-active);
  color: #fff;
  box-shadow: 0 8px 16px var(--theme-primary-shadow);
}

.system-logs-list .pager button:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
  opacity: 1;
}

.system-logs-list .page-size-select {
  width: 118px;
  justify-self: end;
}

@media (max-width: 1200px) {
  .system-logs-list .document-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .system-logs-list .document-actions {
    justify-content: flex-start;
  }

  .system-logs-list .list-foot {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .logs-view {
    padding: 0;
  }

  .system-logs-list.panel {
    padding: 16px;
  }

  .system-logs-list .filter-set,
  .system-logs-list .document-actions,
  .system-logs-list .list-search,
  .system-logs-list .filter-btn,
  .system-logs-list .page-size-select {
    width: 100%;
  }

  .system-logs-list .document-filter-menu {
    width: 100%;
  }
}


