.regras-view {
  display: grid;
  gap: 14px;
}

.regras-filters-panel,
.regras-layout .panel,
.regras-import-panel {
  padding: 14px;
}

.regras-filters-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 10px;
}

.regras-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
}

.regras-form-grid {
  grid-template-columns: repeat(2, minmax(200px, 1fr));
}

.regras-form-grid .wide {
  grid-column: 1 / -1;
}

.regras-import-box {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.regras-pagination {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.regras-empty {
  padding: 18px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1250px) {
  .regras-layout {
    grid-template-columns: 1fr;
  }

  .regras-filters-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 700px) {
  .regras-filters-grid,
  .regras-form-grid {
    grid-template-columns: 1fr;
  }
}