.vf-tnved-wrap {
  border: 1px solid #e6eef8;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06);
  padding: 18px;
  margin: 16px 0;
  font-family: inherit;
}

.vf-tnved-header {
  background: linear-gradient(90deg, #0b5ed7, #1e88ff);
  border-radius: 12px;
  padding: 16px 16px 14px;
  color: #fff;
}

.vf-tnved-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.vf-tnved-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  opacity: 0.95;
}

.vf-tnved-controls {
  display: grid;
  grid-template-columns: 1fr 320px auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

@media (max-width: 900px) {
  .vf-tnved-controls { grid-template-columns: 1fr; }
}

.vf-tnved-field { display: flex; flex-direction: column; gap: 6px; }
.vf-tnved-label { font-size: 12px; color: #344054; }

.vf-tnved-input, .vf-tnved-select {
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}

.vf-tnved-input:focus, .vf-tnved-select:focus {
  border-color: #1e88ff;
  box-shadow: 0 0 0 4px rgba(30, 136, 255, 0.15);
}

.vf-tnved-btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: #0b5ed7;
  color: #fff;
  transition: transform .05s ease, opacity .15s ease;
  white-space: nowrap;
}

.vf-tnved-btn:active { transform: translateY(1px); }
.vf-tnved-btn:hover { opacity: 0.92; }

.vf-tnved-meta {
  margin-top: 10px;
  color: #475467;
  font-size: 13px;
}

.vf-tnved-card {
  margin-top: 12px;
  border: 1px solid #e6eef8;
  border-radius: 12px;
  overflow: hidden;
}

.vf-tnved-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.vf-tnved-table thead th {
  text-align: left;
  background: #f2f6ff;
  color: #0b5ed7;
  font-weight: 700;
  padding: 10px 12px;
  border-bottom: 1px solid #e6eef8;
}

.vf-tnved-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
}

.vf-tnved-code {
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: nowrap;
}

.vf-tnved-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 94, 215, 0.10);
  color: #0b5ed7;
  font-weight: 700;
  font-size: 12px;
}

.vf-tnved-hint {
  padding: 10px 12px;
  background: #fbfcff;
  color: #475467;
  font-size: 12px;
}

.vf-tnved-footer {
  margin-top: 12px;
  color: #667085;
  font-size: 12px;
}

.vf-tnved-title--main {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.vf-tnved-controls--stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.vf-tnved-input--big {
  font-size: 18px;
  padding: 14px 16px;
}

.vf-tnved-btn--full {
  width: 100%;
  font-size: 16px;
  padding: 14px;
}

/* Align TNVED search form to the left */
.vf-tnved-wrap .vf-tnved-controls {
  align-items: flex-start !important;
  text-align: left !important;
}

/* Make fields not centered */
.vf-tnved-wrap .vf-tnved-field {
  width: 100%;
  max-width: 520px; /* аккуратная ширина формы */
}

/* Compact search button */
.vf-tnved-wrap .vf-tnved-btn {
  width: auto !important;
  min-width: 160px;
  padding: 12px 22px !important;
  font-size: 15px !important;
  border-radius: 10px;
}

/* Align button with inputs */
.vf-tnved-wrap .vf-tnved-btn {
  align-self: flex-start;
}

.vf-tnved-wrap .vf-tnved-controls {
  gap: 12px !important;
}

/* Compact & neat search button */
.vf-tnved-wrap .vf-tnved-btn {
  width: auto !important;
  min-width: 140px;
  height: 44px;                 /* ключевое — меньше высота */
  padding: 0 20px !important;   /* убираем лишнюю «воздух» */
  font-size: 14px !important;
  font-weight: 600;
  border-radius: 8px;
  line-height: 44px;            /* вертикальное выравнивание текста */
}

/* Align button with inputs */
.vf-tnved-wrap .vf-tnved-btn {
  align-self: flex-start;
}

/* Clean status badge (not bubble) */
.vf-tnved-wrap .vf-tnved-status-ok,
.vf-tnved-wrap .vf-tnved-badge,
.vf-tnved-wrap .vf-tnved-result-status {
  display: inline-block;
  max-width: 260px;
  padding: 10px 14px;
  border-radius: 8px;              /* ключевое — аккуратное скругление */
  background: #e9f1ff;              /* спокойный голубой */
  color: #0b5ed7;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  white-space: normal;              /* перенос строк */
}

/* убираем возможную "кругляшность" */
.vf-tnved-wrap .vf-tnved-status-ok {
  border-radius: 8px !important;
}
