.filtersPanel {
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.filtersTitle {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.filtersGrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.filtersInputs {
  grid-column: span 10;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.filterActions {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fieldCol2 {
  grid-column: span 2;
}

.fieldHalfWidth input {
  width: 50%;
  min-width: 88px;
}

.fieldCol3 {
  grid-column: span 3;
}

.fieldCol4 {
  grid-column: span 4;
}

.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.field input,
.field select {
  width: 100%;
  padding: var(--field-padding-y) var(--field-padding-x);
  font-size: var(--field-font-size);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  min-height: var(--field-height);
}

.field select {
  padding: var(--field-padding-y) var(--select-padding-end) var(--field-padding-y) var(--field-padding-x);
}

.field input:focus,
.field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-dark-rgb) / 0.12);
}

.switchField {
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}

.switchFieldSpacer {
  display: none;
}

.switchInline {
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--field-height);
}

.switchInline label,
.switchLabel {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.iconActionBtn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.iconActionBtn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.iconActionBtnPrimary {
  color: white;
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  box-shadow: 0 4px 14px rgba(var(--primary-dark-rgb) / 0.3);
}

.iconActionBtnPrimary:hover:not(:disabled) {
  color: white;
}

.iconActionBtnGhost {
  background: rgba(var(--primary-dark-rgb) / 0.06);
  border: 1px solid rgba(var(--primary-dark-rgb) / 0.18);
  color: var(--primary);
}

.iconActionBtnGhost:hover:not(:disabled) {
  background: rgba(var(--primary-dark-rgb) / 0.12);
  color: var(--primary);
}

.iconActionBtn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .filtersInputs {
    grid-column: span 12;
  }

  .filterActions {
    grid-column: span 12;
    justify-content: flex-end;
  }

  .fieldCol2,
  .fieldCol3,
  .fieldCol4 {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .filtersInputs {
    grid-template-columns: 1fr;
  }

  .fieldCol2,
  .fieldCol3,
  .fieldCol4 {
    grid-column: span 1;
  }
}
