.event-list-panel {
  display: flex;
  flex-direction: column;
  width: var(--chat-box-width);
  background-color: #2d2d2d;
  border-left: 1px solid #3a3a3a;
  flex-shrink: 0;
  overflow: hidden;
}

.event-list-panel.is-hidden {
  display: none;
}

.event-list-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #3a3a3a;
  height: 40px;
  border-bottom: 1px solid #4a4a4a;
  padding: 0 15px;
  flex-shrink: 0;
}

.event-list-panel-header h3 {
  color: #e0e0e0;
  font-size: 12px;
  font-weight: bold;
  margin: 0;
}

.event-list-panel-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px;
  gap: 12px;
}

.event-list-tabs {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.event-list-scope-tabs {
  display: flex;
  background-color: #2d2d2d;
  border-bottom: 1px solid #3a3a3a;
  flex-shrink: 0;
}

.event-list-scope-tab {
  flex: 1;
  background: transparent;
  color: #999;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 500;
  padding: 8px 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.event-list-scope-tab:hover {
  color: #ccc;
}

.event-list-scope-tab.active {
  color: #e0e0e0;
  border-bottom-color: #5a9fd4;
}

.event-list-tab {
  flex: 1;
  background-color: #1e1e1e;
  color: #999;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  min-height: 20px;
  padding: 5px 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.event-list-tab:hover {
  color: #e0e0e0;
}

.event-list-tab.active {
  background-color: #5a9fd4;
  color: #fff;
}

.event-list-empty-state {
  color: #888;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  padding: 20px 8px;
  background-color: #252525;
  border-radius: 6px;
}

.event-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.event-list-toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.event-list-toolbar-group:first-child {
  gap: 0;
}

.event-list-toolbar-group-right {
  margin-left: auto;
  gap: 8px;
}

.event-list-add-button {
  width: 22px;
  height: 22px;
  border: 1px solid #444;
  border-right: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
  background-color: #2f2f2f;
  box-sizing: border-box;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  padding: 0;
  font-size: 11px;
}

.event-list-add-button:hover {
  background-color: #3b3b3b;
  border-right: 0;
}

.event-list-dropdown-button,
.event-list-quant-button,
.event-list-type-button {
  font-size: 11px;
}

.event-list-dropdown-button {
  margin-left: 0;
}

.event-list-quant-button {
  min-width: 78px;
  padding: 3px 5px;
}

.event-list-type-button {
  min-width: 88px;
  margin-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.event-list-delete-button {
  width: 22px;
  height: 22px;
  border: 1px solid #444;
  border-radius: 3px;
  background-color: #3a3a3a;
  color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  padding: 0;
  font-size: 11px;
}

.event-list-delete-button:hover:not(:disabled) {
  background-color: #464646;
  border-color: #5a5a5a;
}

.event-list-delete-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.event-list-table-shell {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background-color: #232323;
  border: 1px solid #373737;
  border-radius: 6px;
}

.event-list-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.event-list-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #343434;
  color: #bfc6d2;
  font-size: 11px;
  font-weight: 600;
  text-align: left;
  height: 20px;
  padding: 2px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-list-table tbody tr {
  color: #e0e0e0;
  cursor: default;
}

.event-list-table tbody tr:nth-child(odd) {
  background-color: #282828;
}

.event-list-table tbody tr:nth-child(even) {
  background-color: #303030;
}

.event-list-table tbody tr.selected {
  background-color: #5a9fd4;
  color: #fff;
}

.event-list-table td {
  height: 20px;
  padding: 2px 12px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}

.event-list-cell-input {
  width: calc(100% + 8px);
  height: 16px;
  margin: 0 -4px;
  padding: 0 4px;
  border: 1px solid #6d94ca;
  border-radius: 3px;
  background-color: #1f1f1f;
  color: #f3f6fb;
  font-size: 11px;
  line-height: 16px;
  outline: none;
}