.wage-title {
  flex-direction: column;
}

.wage-title-year {
  font-weight: 600;
}

.wage-input-card,
.wage-result-card {
  margin-top: 0.75rem;
}

.mode-field {
  display: block;
}

/* 근무 형태 선택 옵션 스타일 (라디오 버튼만) */
.wage-input-card .form-check:has(input[type="radio"]) {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background-color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wage-input-card .form-check:has(input[type="radio"]):hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
}

.wage-input-card .form-check:has(input[type="radio"]:checked) {
  border-color: #0d6efd;
  background-color: #eff6ff;
}

.wage-input-card .form-check:has(input[type="radio"]) input[type="radio"] {
  margin: 0.3rem 4px 0 0;
}

.wage-input-card .form-check:has(input[type="radio"]) .form-check-label {
  font-weight: 500;
}

.wage-input-card .form-check:has(input[type="radio"]:checked) .form-check-label {
  color: #0d6efd;
}

.wage-input-card .form-check:has(input[type="radio"]) .form-text {
  margin-left: 1.25rem;
}

@media (max-width: 768px) {
  /* 768px 이하에서는 옵션을 세로로 배치 (2줄) */
  .wage-input-card .form-check:has(input[type="radio"]) {
    flex: 1 1 100%;
    width: 100%;
  }
}

.mode-section {
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  background: #f8f9fa;
}

.result-main {
  font-size: 2rem;
  font-weight: 800;
}

.result-main-card {
  background: #eef5ff;
  border: 1px solid #d6e5ff;
  border-left: 4px solid var(--border-blue);
}

.result-main {
  color: #0d6efd;
  font-size: 2.2rem;
}

.result-subcard {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

/* 비교 정보 영역 */
.result-compare {
  border-top: 1px solid #e5e7eb;
  padding-top: 1rem;
}

.compare-card {
  background-color: #f9fafb;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.03);
}

.compare-card-primary {
  border: 1px solid var(--border-green);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.08);
  background: linear-gradient(135deg, #eff6ff, #f9fafb);
}

.compare-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.compare-text {
  font-size: 0.88rem;
  color: #111827;
  line-height: 1.4;
}

.compare-text .highlight-number {
  font-weight: 600;
  color: #00ac69;
}


/* 테이블과 주변 여백 기본값 */
#resultTable {
  margin-bottom: 0;
  font-size: 0.95rem;
}

#resultTable th,
#resultTable td {
  vertical-align: middle;
  text-align: center;
  padding: 0.55rem 0.5rem;
}

#resultTable th:first-child,
#resultTable td:first-child {
  font-weight: 700;
}

@media (max-width: 576px) {
  #resultTable {
    font-size: 0.9rem;
  }
  #resultTable th,
  #resultTable td {
    padding: 0.45rem 0.4rem;
  }

  /* 비교 정보 모바일 여백 줄이기 */
  .result-compare {
    padding-top: 0.75rem;
  }
  .compare-card {
      padding: 0.75rem 0.85rem;
  }
  .compare-text {
      font-size: 0.84rem;
  }
}

.error-text {
  font-size: 0.85rem;
  min-height: 1.1em;
}
