.filtersPanel {
  padding: 14px 16px;
  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: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

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

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

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

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

.fieldCol3 {
  grid-column: span 3;
}

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

.helperText {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

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

.entityChecks {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.entityGroup {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.entityGroup:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}

.entityGroup:first-child {
  padding-top: 4px;
}

.entityGroupTitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  min-width: 88px;
  flex-shrink: 0;
}

.entityNestedChecks {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.entityCheck {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}

.field .entityCheck input[type='checkbox'],
.entityCheck input[type='checkbox'],
.field .entityCheck input[type='radio'],
.entityCheck input[type='radio'] {
  appearance: auto;
  -webkit-appearance: auto;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.entityCheck span {
  line-height: 1.3;
}

.alertError {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}

.alertInfo {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #1d4ed8;
}

.alertSuccess {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.5;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #166534;
}

.migrateResultTitle {
  margin: 0;
  font-weight: 600;
}

.migrateResultList {
  margin: 8px 0 0;
  padding-inline-start: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.migrateResultList strong {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: var(--field-padding-y) var(--field-padding-x);
  font-size: var(--field-font-size);
  color: var(--text-primary);
  background-color: 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;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  min-height: var(--field-height);
  padding: var(--field-padding-y) var(--select-padding-end) var(--field-padding-y) var(--field-padding-x);
  background-color: rgba(255, 255, 255, 0.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--select-arrow-offset) center;
  background-size: var(--select-arrow-size);
  cursor: pointer;
}

.field input,
.field select {
  min-height: var(--field-height);
}

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

.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-rgb) / 0.3);
}

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

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

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

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

.actionsRow {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btnPrimary {
  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-rgb) / 0.3);
}

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

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

.btnGhost:hover:not(:disabled) {
  background: rgba(var(--primary-rgb) / 0.12);
  transform: translateY(-1px);
}

.btnDanger {
  color: white;
  background: linear-gradient(135deg, #f87171 0%, #ef4444 55%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.28);
  border: none;
}

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

.tablePanel {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
}

.tableWrap {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.tableHeader {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.tableHeaderTitle {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

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

.table {
  width: 100%;
  border-collapse: collapse;
}

.th,
.td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  vertical-align: middle;
}

.th {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.35);
}

.thActions,
.tdActions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}

.thTheme,
.tdTheme {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.tdTheme {
  padding-left: 8px;
  padding-right: 8px;
}

.thLocale,
.tdLocale {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.tdLocale {
  padding-left: 8px;
  padding-right: 8px;
}

.localeSelect {
  min-height: var(--field-height);
  padding: var(--field-padding-y) var(--select-padding-end) var(--field-padding-y)
    var(--field-padding-x);
  font-size: var(--field-font-size);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--text-primary);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--select-arrow-offset) center;
  background-size: var(--select-arrow-size);
  cursor: pointer;
}

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

.localeSelect:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb) / 0.12);
}

.td {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

.ownerCell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ownerName {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.ownerPhone {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
}

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

.domainCell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sslIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  cursor: help;
}

.sslOk {
  color: #16a34a;
  flex-shrink: 0;
}

.sslWarn {
  color: #f59e0b;
  flex-shrink: 0;
}

.rowActions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.toggleInActions {
  margin-right: 4px;
}

.controlBtn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s;
}

.controlBtn:hover:not(:disabled) {
  background: rgba(var(--primary-rgb) / 0.1);
  color: var(--primary);
}

.controlBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.controlBtnDanger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.pagination {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
}

.pagerBtns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pageBtn {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

.pageBtnActive {
  border-color: rgba(var(--primary-rgb) / 0.35);
  color: var(--primary);
  background: rgba(var(--primary-rgb) / 0.08);
}

.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  box-shadow: 0 8px 24px rgba(var(--primary-rgb) / 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--primary-rgb) / 0.4);
}

.formGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.sectionLabel {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.formFull {
  grid-column: 1 / -1;
}

.field textarea {
  width: 100%;
  min-height: 96px;
  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;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

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

.userSearchWrap {
  position: relative;
}

.userSearchDropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 10;
  max-height: 180px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
}

.userSearchItem,
.userSearchEmpty {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  color: var(--text-primary);
}

.userSearchItem {
  transition: background 0.15s;
}

.userSearchItem:hover {
  background: rgba(var(--primary-rgb) / 0.08);
}

.userSearchItemActive {
  background: rgba(var(--primary-rgb) / 0.1);
  color: var(--primary);
  font-weight: 600;
}

.userSearchEmpty {
  color: var(--text-muted);
}

.selectedOwner {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.hint {
  font-size: 11px;
  color: var(--text-muted);
}

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

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

  .fieldCol3 {
    grid-column: span 6;
  }
}

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

  .fieldCol3 {
    grid-column: span 1;
  }

  .formGrid {
    grid-template-columns: 1fr;
  }

  .fab {
    right: 16px;
    bottom: 16px;
  }

  .td,
  .th {
    padding: 10px 10px;
  }
}
