/* Ensure search control stays clickable if another layer overlaps */
.uzbekistan-germanyuz-confirm-row img[alt="search"] {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* —— Center modal overlay (любая страница SPA) —— */
.vm-status-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  box-sizing: border-box;
  background: rgba(25, 24, 24, 0.48);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: vm-fade-in 0.22s ease-out;
}

@keyframes vm-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.vm-status-dialog {
  width: 100%;
  max-width: 920px;
  max-height: min(92vh, 880px);
  display: flex;
  flex-direction: column;
  background: var(--dl-color-theme-neutral-light, #fbfaf9);
  border-radius: 12px;
  border: 1px solid rgba(49, 84, 102, 0.18);
  box-shadow:
    0 4px 6px rgba(49, 84, 102, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  color: var(--dl-color-gray-black, #1a1a1a);
  font-family: Roboto, Inter, system-ui, sans-serif;
  animation: vm-pop-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes vm-pop-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.vm-status-dialog-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  background: linear-gradient(
    135deg,
    var(--dl-color-primary-main, #315466) 0%,
    #3d6a7d 100%
  );
  color: #fff;
}

.vm-status-dialog-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.vm-status-dialog-head .vm-visa-approved {
  color: #ffeb3b;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.vm-app-status-embed .vm-es-banner--info .vm-visa-approved {
  color: #b8860b;
  font-weight: 700;
}

.vm-status-dialog-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.vm-status-dialog-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.vm-status-dialog-body {
  flex: 1;
  overflow: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

/* Content inside modal */
.vm-app-status-embed.vm-status-modal-inner {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 20px 24px;
  box-sizing: border-box;
}

/* Embedded application status — same tokens as сайт */
.vm-app-status-embed {
  width: 100%;
  max-width: 1120px;
  margin: var(--dl-space-space-twounits, 24px) auto;
  padding: 0 16px 32px;
  box-sizing: border-box;
  color: var(--dl-color-gray-black, #1a1a1a);
  font-family: Roboto, Inter, system-ui, sans-serif;
}

.vm-app-status-embed .vm-es-title {
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
  color: var(--dl-color-gray-maingray, #313131);
}

.vm-app-status-embed .vm-es-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .vm-app-status-embed .vm-es-grid {
    grid-template-columns: 1fr;
  }
}

.vm-app-status-embed .vm-es-card {
  background: var(--dl-color-theme-secondary2, #fbf1eb);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.vm-app-status-embed .vm-es-card h2 {
  margin: 0;
  padding: 14px 16px;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(49, 49, 49, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.vm-app-status-embed .vm-es-card-body {
  padding: 18px 16px;
}

.vm-app-status-embed .vm-es-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
}

.vm-app-status-embed .vm-es-avatar--slot {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.vm-app-status-embed .vm-es-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.vm-app-status-embed .vm-es-photo.vm-es-photo--show {
  opacity: 1;
}

.vm-app-status-embed .vm-es-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.vm-app-status-embed .vm-es-field {
  margin-bottom: 12px;
}

.vm-app-status-embed .vm-es-field label {
  display: block;
  font-size: 11px;
  color: var(--dl-color-gray-500, #595959);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.vm-app-status-embed .vm-es-value {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  word-break: break-word;
}

.vm-app-status-embed .vm-es-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.vm-app-status-embed .vm-es-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.vm-app-status-embed .vm-es-btn-primary {
  background: var(--dl-color-primary-main, #315466);
  color: #fff;
}

.vm-app-status-embed .vm-es-btn-primary:hover {
  filter: brightness(1.06);
}

.vm-app-status-embed .vm-es-btn-ghost {
  background: transparent;
  color: var(--dl-color-primary-main, #315466);
  border: 1px solid var(--dl-color-primary-main, #315466);
}

.vm-app-status-embed .vm-es-btn-ghost:hover {
  background: rgba(49, 84, 102, 0.06);
}

.vm-app-status-embed .vm-es-banner {
  background: #c8e6c9;
  border: 1px solid #81c784;
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #1b5e20;
}

.vm-app-status-embed .vm-es-banner--info {
  background: #fff;
  border: 1px solid rgba(49, 84, 102, 0.15);
  border-left: 4px solid var(--dl-color-primary-main, #315466);
  color: var(--dl-color-gray-maingray, #313131);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.vm-app-status-embed .vm-es-banner--info p {
  color: var(--dl-color-gray-500, #595959);
}

.vm-app-status-embed .vm-es-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(
    145deg,
    var(--dl-color-theme-accent2, #f5d1b0) 0%,
    rgba(49, 84, 102, 0.12) 100%
  );
  border: 1px solid rgba(49, 84, 102, 0.12);
}

.vm-app-status-embed .vm-es-banner .vm-es-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2e7d4a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.vm-app-status-embed .vm-es-banner strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.vm-app-status-embed .vm-es-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.95;
}

.vm-app-status-embed .vm-es-timeline {
  background: var(--dl-color-theme-secondary2, #fbf1eb);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 0;
}

.vm-app-status-embed .vm-es-timeline h3 {
  margin: 0;
  padding: 14px 18px 12px;
  font-size: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(49, 49, 49, 0.06);
}

.vm-app-status-embed .vm-es-step {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  align-items: start;
  font-size: 14px;
}

.vm-app-status-embed .vm-es-step:last-of-type {
  border-bottom: none;
}

.vm-app-status-embed .vm-es-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin-top: 2px;
}

.vm-app-status-embed .vm-es-dot.ok {
  background: #2e7d4a;
}

.vm-app-status-embed .vm-es-dot.progress {
  background: #9ccc65;
}

.vm-app-status-embed .vm-es-dot.info {
  background: #c65c12;
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.vm-app-status-embed .vm-es-step-title {
  font-weight: 600;
}

.vm-app-status-embed .vm-es-step-sub {
  color: var(--dl-color-gray-500, #595959);
  font-size: 13px;
  margin-top: 4px;
}

.vm-app-status-embed .vm-es-follow-sub {
  white-space: pre-line;
}

.vm-app-status-embed .vm-es-step-status {
  font-size: 13px;
  white-space: nowrap;
  color: #2e7d4a;
  font-weight: 500;
}

.vm-app-status-embed .vm-es-footnote {
  padding: 14px 18px;
  font-size: 13px;
  color: #bf4408;
  font-weight: 500;
  line-height: 1.4;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
