/* /admin/channel-routes — маршруты заявок в чаты (блок на канал + add-форма). */

.routes-legend {
  list-style: none;
  padding: 0;
  margin: .5rem 0 0;
  font-size: .8125rem;
  color: #475569;
  line-height: 1.6;
}
.routes-legend code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 0 .25rem;
  font-size: .8125rem;
}

/* Add-форма */
.routes-add { margin-bottom: var(--space-3, 1rem); }
.routes-add__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .625rem;
  margin-top: .5rem;
}
.routes-add__field {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  min-width: 130px;
}
.routes-add__field--grow { flex: 1; min-width: 180px; }
.routes-add__label {
  font-size: .6875rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.routes-page {
  display: grid;
  gap: var(--space-3, 1rem);
  grid-template-columns: 1fr;
}

.routes-card { display: flex; flex-direction: column; gap: .5rem; }
.routes-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.routes-table th,
.routes-table td {
  vertical-align: middle;
}
.routes-table tbody tr.is-dirty { background: #fef9c3; }

.route-city { white-space: nowrap; color: #334155; font-weight: 600; }
.route-active { text-align: center; }
.route-active input { width: 18px; height: 18px; }

.route-input { min-width: 120px; }
.route-chat-input {
  font-variant-numeric: tabular-nums;
  min-width: 150px;
}
.routes-table tr.is-dirty .route-input {
  border-color: var(--brand, #0096c7);
  background: #f0f9ff;
}

.route-row__actions { white-space: nowrap; display: flex; gap: .375rem; }
