/* === Percent → amount — простая таблица на 3 колонки ==================== */

/* Карточка */
.pct-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 6px 18px rgba(2,6,23,.06);
  padding:16px;
  margin-bottom:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
  width:fit-content;
}

/* Заголовок */
.pct-title{
  font-size:16px;
  font-weight:800;
  color:#0f172a;
  margin:0 0 12px;
}

/* ======= ОСНОВНОЙ КОНТЕЙНЕР (3 колонки) ======= */
.pct-grid{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* Каждая строка = flex c 3 секциями */
.pct-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:1px;
}

/* --- 1. ввод --- */
.pct-input,
.pct-value-input{
  display:flex;
  margin-bottom: 8px;
  align-items:center;
  gap:1px;
  border:1px solid var(--line);
  border-radius:10px;
  padding:1px 1px;
  background:#fff;
  width:80px;
}
.pct-input input{
  border:0; outline:0; width:100%;
  text-align:right; background:transparent; font:inherit;
}
.pct-prefix,.pct-suffix{ color:#334155; font-weight:700; }

/* --- 2. результат --- */
.pct-amount,
.pct-results-spacer{
  width:50px;              /* общая ширина для всей колонки */
  text-align:right;
  margin-left: 5px;
  white-space:nowrap;
  font-weight:800;
}
.pct-results-spacer{ opacity:.6; font-weight:400; }

/* --- 3. кнопки --- */
.pct-actions,
.pct-value-actions{
  display:flex;
  gap:4px;
  justify-content:flex-end;
  width:240px;              /* одинаковая ширина колонки */
}
.pct-btn,
.pct-bcopy,
.pct-bremove{
  border:0;
  border-radius:10px;
  padding:10px 12px;
  color:#fff;
  font-weight:700;
  min-width:100px;
  cursor:pointer;
  text-align:center;
}
.pct-btn-copyloan{ background:#22c55e; }
.pct-btn-add{ background:#334155; }
.pct-bcopy{ background:#4f46e5; }
.pct-bremove{ background:#475569; }

/* разделительная черта, если нужна */
.pct-mini{
  opacity:.6;
  margin:0 4px;
  font-size:18px;
  line-height:1;
}
