/* Стили таблицы реестра АУ. */

.au-registry {
  margin: 20px 0;
}

.au-registry__title {
  margin: 0 0 20px;
  font-size: 24px;
}

.au-registry__tabs {
  margin-bottom: 20px;
}

.au-registry__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 20px;
  padding: 15px;
  background: #f5f5f5;
  border-radius: 4px;
}

.au-registry__field {
  display: flex;
  flex-direction: column;
  min-width: 140px;
}

.au-registry__field--wide {
  flex: 1 1 280px;
  min-width: 240px;
}

.au-registry__field label {
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.au-registry__actions {
  display: flex;
  gap: 8px;
}

.au-registry__error {
  margin-bottom: 15px;
}

.au-registry__col-num {
  width: 60px;
  text-align: right;
  white-space: nowrap;
}

.au-registry__table th,
.au-registry__table td {
  vertical-align: middle;
}

/* Сортируемые заголовки. */
.au-registry__th-sortable {
  padding: 0 !important;
  background: #fafafa;
}

.au-registry__th-sortable .au-registry__sort-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  height: 100%;
}

.au-registry__th-sortable .au-registry__sort-link:hover,
.au-registry__th-sortable .au-registry__sort-link:focus {
  background: #e8e8e8;
  color: #000;
  text-decoration: none;
  outline: none;
}

.au-registry__th-sortable.is-active {
  background: #e6f0fa;
}

.au-registry__th-sortable.is-active .au-registry__sort-link {
  color: #004f9e;
  font-weight: 600;
}

.au-registry__sort-indicator {
  display: inline-block;
  min-width: 12px;
  text-align: center;
  font-size: 10px;
  line-height: 1;
  color: #004f9e;
}

.au-registry__empty {
  text-align: center;
  color: #888;
  font-style: italic;
  padding: 30px;
}

.au-registry__pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

.au-registry__counter {
  margin-top: 8px;
  color: #777;
  font-size: 12px;
}

@media (max-width: 768px) {
  .au-registry__filters {
    flex-direction: column;
    align-items: stretch;
  }
  .au-registry__field,
  .au-registry__field--wide {
    min-width: 0;
  }
}
