/* 연봉 세후 월급 계산기 전용 스타일 */
/* 네임스페이스: sal- 접두사 사용 */
/* 공통 스타일은 /css/_common/calculator-common.css 참조 */

/* 결과 카드 색상 구분 */
.sal-result-main {
    border-left: 4px solid #0d6efd;
}

.sal-result-annual {
  border-left: 4px solid #00ac69;
}

.sal-result-monthly {
  border-left: 4px solid #f4a100;
}

.sal-result-tax {
  border-left: 4px solid #e81500;
}

.sal-result-insurance {
  border-left: 4px solid #6900c7;
}


/* 입력 영역 카드 스타일 */
.sal-input-card .card-body {
  padding: 20px;
}

/* 반응형 조정 */
@media (max-width: 768px) {
  /* 모바일에서 계산 옵션을 세로 배치 */
  .sal-option-group .row {
    flex-direction: column;
  }
  
  .sal-option-group .col-md-6 {
    width: 100%;
    margin-bottom: 1rem;
  }
}


/* 입력 섹션 스타일 */
.sal-input-sections {
  display: flex;
  flex-direction: column;
}

.sal-input-section {
  width: 100%;
}

.sal-options-section {
  width: 100%;
}

/* 옵션 그룹 스타일 */
.sal-option-group {
  width: 100%;
}

.sal-option-group .form-check-label {
  font-size: 14px;
  color: #495057;
  font-weight: 500;
  margin-bottom: 0;
}

.sal-option-group .form-check-input {
  margin-top: 0;
  flex-shrink: 0;
}

/* 탭 버튼 커스텀 보조 스타일 (부트스트랩 버튼 사용 기반) */
.sal-mode-tab:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* 요약 바 스타일 */
.sal-summary {
  background: #f8fbff;
  border: 1px solid #d6e9ff;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

/* 결과 섹션 빈 상태 스타일 - CLS 완전 방지 */
.result-section {
  min-height: 260px;
  transition: min-height 0.3s ease;
}

.result-section.is-empty {
  visibility: visible;
  opacity: 1;
}

.result-section.is-empty .sal-result-value {
  color: #6c757d;
}

.sal-summary__title {
  font-weight: 600;
  color: #0062cc;
  margin-bottom: 0.75rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sal-hint {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 0.9rem;
}

.sal-summary__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sal-summary__list li {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  text-align: center;
  padding: 0.6rem 0.4rem;
  transition: background 0.2s ease;
}

.sal-summary__list li:hover {
  background: #f1f7ff;
}

.sal-summary__list span {
  font-size: 0.85rem;
  color: #555;
}

.sal-summary__list strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #0062cc;
  margin-top: 0.25rem;
}

.sal-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 0.5rem;
  text-align: right;
}

@media (max-width: 560px) {
  .sal-summary__list {
    grid-template-columns: 1fr;
  }
}

/* 모바일에서 주요 버튼들 44px 보장 */
@media (max-width: 768px) {
  .sal-mode-tab {
    min-height: 44px;
    padding: 10px 16px;
  }
}