.status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  border-radius: 999px;
  vertical-align: middle;
}

.status-dot--ok {
  background: #2d8a4d;
}

.status-dot--bad {
  background: #d64545;
}

.document-section--compact {
  font-size: 13px;
}

.document-section--compact .data-table th,
.document-section--compact .data-table td {
  padding: 7px 8px;
}

.document-section--compact .document-preview {
  margin-bottom: 0;
}

.document-preview {
  display: block;
  width: 88px;
  max-width: 100%;
  margin-bottom: 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg);
}

.document-preview img {
  display: block;
  width: 100%;
  height: 58px;
  object-fit: cover;
}

.document-open-link {
  display: block;
  margin-top: 3px;
  font-size: 12px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-form input {
  width: auto;
  min-height: 38px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
}

.inline-form input[type="number"] {
  width: 92px;
}

.settings-table input[type="text"],
.settings-table input[type="number"] {
  min-width: 120px;
}

.payment-type-select {
  min-width: 180px;
}

.color-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-field input[type="color"],
.settings-table input[type="color"] {
  width: 46px;
  min-width: 46px;
  padding: 2px;
}

.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

label.toggle-card,
.toggle-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 160px;
  padding: 8px 12px 8px 36px;
  border: 1px solid #c8d0dc;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
  font-size: 13px;
}

.toggle-card:hover {
  border-color: #8aa1c4;
}

.toggle-card input[type="checkbox"],
.toggle-card input[type="radio"] {
  position: absolute;
  top: 50%;
  left: 11px;
  width: 16px;
  height: 16px;
  min-height: auto;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  accent-color: #1677c8;
  cursor: pointer;
}

.toggle-card__title {
  font-weight: 600;
  color: #1a2433;
  line-height: 1.25;
}

.toggle-card__hint {
  font-size: 11px;
  color: #66788a;
  line-height: 1.25;
}

.toggle-card:has(input[type="checkbox"]:checked),
.toggle-card:has(input[type="radio"]:checked) {
  border-color: #1677c8;
  background: #eef5fd;
  box-shadow: 0 0 0 1px #1677c8 inset;
}

.toggle-card:has(input[type="checkbox"]:checked) .toggle-card__title,
.toggle-card:has(input[type="radio"]:checked) .toggle-card__title {
  color: #0f4f8a;
}

/* Единый чекбокс-«пилюля» для фильтров, листа туристов и прочих мест.
   В отличие от toggle-card, тут чекбокс рисуется инлайн вместе с подписью
   — это нужно, например, для листа туристов, где в одном label лежат
   checkbox + radio + два span. */
label.check-inline,
.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #c8d0dc;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
  font-size: 13px;
  line-height: 1.25;
}

.check-inline:hover {
  border-color: #8aa1c4;
}

.check-inline input[type="checkbox"],
.check-inline input[type="radio"] {
  width: 14px;
  height: 14px;
  min-height: auto;
  margin: 0;
  padding: 0;
  accent-color: #1677c8;
  cursor: pointer;
  flex-shrink: 0;
}

.check-inline > span {
  color: inherit;
}

/* Подсветка по первому чекбоксу: выбран = «активный фильтр / выбранный
   турист». Радио «основной» внутри тех же лейблов не подкрашивает пилюлю,
   чтобы выбор «основного» не выглядел как полноценный выбор пункта. */
.check-inline:has(> input[type="checkbox"]:checked) {
  border-color: #1677c8;
  background: #eef5fd;
  box-shadow: 0 0 0 1px #1677c8 inset;
  color: #0f4f8a;
}

/* Внутри таблиц чекбокс без рамки: ячейка сама уже разделяет визуально */
.data-table .check-inline,
.settings-table .check-inline {
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 2px 4px;
}

.data-table .check-inline:has(input:checked),
.settings-table .check-inline:has(input:checked) {
  background: transparent;
  color: #0f4f8a;
}

.check-inline input[type="checkbox"],
.check-inline input[type="radio"] {
  width: auto;
  min-height: auto;
  margin: 0;
  padding: 0;
}

