/* 🟡 Калькулятор зарплаты после индексации — янтарная тема обновления */

.calc-intro {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 8px 0 0;
}

.calc-block h1 {
  color: #3e2723;
}

.calc-block label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
  font-size: 15px;
  color: #222;
}

/* 🎛 Поля ввода */
.calc-block input,
.calc-block select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ecd9a8;
  border-radius: 8px;
  font-size: 16px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-block input:hover,
.calc-block select:hover {
  border-color: #d4b462;
}

.calc-block input:focus,
.calc-block select:focus {
  outline: none;
  border-color: #f9a825;
  box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.18);
}

.field-hint {
  display: block;
  color: #888;
  font-size: 12px;
  font-weight: normal;
  margin-top: 3px;
}

.calc-block button {
  margin-top: 22px;
  padding: 12px 24px;
  background: #f9a825;
  color: #3e2723;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s ease;
}

.calc-block button:hover {
  background: #f08f00;
}

.calc-block button:active {
  background: #d98100;
}

/* 🎴 Карточка результата */
.result-block h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  color: #3e2723;
}

.result-output {
  background: #fff;
  border: 1px solid #f0e2bb;
  border-radius: 12px;
}

.sai-placeholder {
  color: #999;
  font-size: 14px;
  line-height: 1.5;
  margin: 4px 0;
}

.sai-error {
  color: #b71c1c;
  font-weight: bold;
  font-size: 14px;
  line-height: 1.5;
  margin: 4px 0;
}

/* 📈 Бейдж прибавки */
.sai-verdict {
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
  background: #fff8e1;
  border: 1px solid #f0e0a8;
  color: #5d4037;
}

.sai-verdict .sai-big {
  display: block;
  font-size: 1.15rem;
  font-weight: bold;
  margin: 2px 0;
  color: #e65100;
}

/* 🎴 Карточки «до» и «после» */
.sai-cards {
  display: flex;
  gap: 12px;
  margin: 10px 0 14px;
}

.sai-card {
  flex: 1;
  min-width: 0;
  border: 1px solid #f0e2bb;
  border-radius: 10px;
  padding: 12px;
  background: #fffdf5;
}

.sai-card.new {
  border-color: #f9a825;
  box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.15);
  background: #fffaf0;
}

.sai-card-title {
  font-weight: bold;
  color: #5d4037;
  font-size: 13px;
  text-align: center;
  margin-bottom: 8px;
}

.sai-gross {
  text-align: center;
  font-size: 0.95rem;
  font-weight: bold;
  color: #8d6e63;
  margin-bottom: 4px;
}

.sai-gross .tag {
  font-size: 10px;
  font-weight: normal;
  color: #a1887f;
  display: block;
}

.sai-net {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #e65100;
  margin: 4px 0 2px;
  white-space: nowrap;
}

.sai-net .unit {
  font-size: 0.7rem;
  font-weight: normal;
  color: #888;
  display: block;
}

.sai-tax {
  text-align: center;
  font-size: 11.5px;
  color: #8d6e63;
  margin-top: 6px;
  border-top: 1px dashed #f0e2bb;
  padding-top: 6px;
}

/* 📊 Шкалы */
.sai-bars {
  margin: 12px 0 4px;
}

.sai-bar-row {
  margin: 10px 0;
}

.sai-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #555;
  margin-bottom: 4px;
}

.sai-bar {
  height: 14px;
  background: #f5f0e3;
  border-radius: 8px;
  overflow: hidden;
}

.sai-bar-fill {
  height: 100%;
  border-radius: 8px;
  background: linear-gradient(90deg, #ffd54f, #f9a825);
  transition: width 0.6s ease;
}

.sai-bar-fill.old {
  background: linear-gradient(90deg, #d7ccc8, #a1887f);
}

/* ➕ Прибавка */
.sai-diff {
  margin-top: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #fff8e1;
  border: 1px solid #f0e0a8;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.sai-diff .diff-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.sai-diff .diff-value {
  font-weight: bold;
  white-space: nowrap;
  color: #e65100;
}

.sai-note {
  font-size: 12px;
  color: #888;
  margin-top: 12px;
  line-height: 1.5;
  border-top: 1px dashed #ddd;
  padding-top: 10px;
}

@media (max-width: 480px) {
  .sai-cards {
    flex-direction: column;
  }
}
