.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  background: #2a2a2a;
  border-radius: 10px;
  margin-bottom: 1em;
  gap: 10px;
}

.search-container input {
  padding: 8px;
  border: none;
  border-radius: 4px;
  background: #333;
  color: #fff;
  width: 200px;
}

.actions-container {
  display: flex;
  gap: 10px;
}

.action-btn {
  background: #444;
  border: none;
  padding: 8px;
  border-radius: 4px;
  color: #fff;
  font-size: 18px;
  transition: background 0.3s;
}

.action-btn.disabled {
  pointer-events: none;
  opacity: 0.5;
}

.action-btn:not(.disabled):hover {
  cursor: pointer;
  background: #666;
}

@media (max-width: 480px) {
  .table-header {
    flex-direction: column;
  }

  .search-container input {
    width: 100%;
  }
}

.filter-menu {
  position: fixed;
  top: 0;
  right: -350px;
  width: 350px;
  height: 100%;
  background: #212121; /* Новый цвет фона */
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.filter-menu.open {
  right: 0;
}

.filter-head {
  padding: 1em;
  height: 64px;
  background: #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.filter-head h3 {
  margin: 0;
  font-size: 18px;
}

.filter-head .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

.filter-body {
  flex: 1;
  padding: 1em;
  overflow-y: auto;
  color: #fff;
  display: flex;
  flex-flow: column;
  gap: 1em;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-item label {
  font-size: 14px;
  color: #ccc;
}

.filter-body select {
  width: 100%;
  padding: 8px;
  background: #333;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
}

.filter-item input[type="text"] {
  width: 100%;
  padding: 8px;
  background: #333;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.filter-item input[type="text"]::placeholder {
  color: #aaa;
}

.filter-item.checkbox {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

.filter-item.checkbox input[type="checkbox"] {
  margin: 0;
}

.filter-item.checkbox label {
  margin: 0;
}

.filter-footer {
  padding: 1em;
  background: #333;
  display: flex;
  justify-content: space-between;
}

.filter-footer button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: #4caf50; /* Зеленый фон для Apply */
  color: #fff;
  transition: background 0.3s ease; /* Плавное изменение фона */
}

.filter-footer button:hover {
  background: #66bb6a; /* Светлее при наведении на Apply */
}

.filter-footer button.reset {
  background: #f44336; /* Красный фон для Reset */
}

.filter-footer button.reset:hover {
  background: #ef5350; /* Светлее при наведении на Reset */
}

@media (max-width: 768px) {
  .filter-menu {
    width: 100%;
    right: -100%;
  }
}
