/* ============================
   Wrapper + Title
============================== */
html, body {
  background-color: #F6F7F9;
}

.unemp-wrapper {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: Pretendard, sans-serif;
  box-sizing: border-box;
}

.unemp-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #222;
}

.ad-box {
  margin: 32px 0;
  padding: 0;
}

/* ============================
   Layout
============================== */
.unemp-container {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 32px;
  align-items: stretch;
}

.unemp-left,
.unemp-right {
  padding: 28px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 18px;
}

/* ============================
   생년월일 + 장애여부 2컬럼
============================== */
.row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.row-2col .col label {
  font-weight: 600;
  font-size: 15px;
}

.row-2col .col input,
.row-2col .col select {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  margin-top: 8px;
  font-size: 15px;
  background: #F6F7F9;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}

/* ============================
   재직기간 Title
============================== */
.work-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 12px;
}

.work-title {
  font-weight: 700;
  font-size: 15px;
}

.work-sub {
  font-size: 14px;
  color: #555;
}

/* ============================
   회사 Row
============================== */
.company-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8f8f8;
  border-radius: 8px;
  margin-top: 10px;
  flex-wrap: wrap; /* 모바일 대응 */
}

.company-label {
  min-width: 50px;
  font-weight: 600;
  white-space: nowrap;
}

/* 날짜 input */
.company-row input[type="date"] {
  width: 160px;
  height: 42px;
  padding: 0 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.company-row .dash {
  font-size: 18px;
  font-weight: 600;
  color: #555;
}

/* 삭제 버튼 */
.remove-btn {
  padding: 6px 10px;
  border: 1px solid #ccc;
  background: #eee;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}

/* 회사 추가 버튼 */
.add-company-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #aaa;
  background: #F6F7F9;
  border-radius: 10px;
  cursor: pointer;
}

/* ============================
   최종월급 제목 + 체크박스
============================== */
.salary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 34px;
  margin-bottom: 14px;
}

.salary-title {
  font-size: 15px;
  font-weight: 700;
}

.salary-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}

.salary-check input {
  width: 16px;
  height: 16px;
}

/* ============================
   동일 월급 입력 박스
============================== */
.salary-same-box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  margin-bottom: 14px;
}

.salary-same-box .month-label {
  width: 60px;
  font-size: 14px;
  color: #3273ff;
}

/* ============================
   입력 박스 공통
============================== */
.won-box {
  position: relative;
  width: auto;
  max-width: 220px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #F6F7F9;
  padding-right: 36px;
}

.won-input {
  width: 100%;
  padding: 10px;
  padding-right: 20px;
  text-align: right;
  border: none;
  background: transparent;
  font-size: 15px;
}

.won-unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #555;
}

/* ============================
   개별 월 입력
============================== */
.salary-each-box {
  margin-top: 10px;
}

.salary-line {
  display: grid;
  grid-template-columns: 90px 60px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.text-kor {
  font-size: 14px;
  color: #3273ff;
  padding-left: 10px;
}

.salary-line .won-box {
  max-width: 220px;
  justify-self: end;
}

/* ============================
   토글
============================== */
#salarySameBox { display: flex; }
#salaryEachBox { display: none; }

/* ============================
   계산 버튼
============================== */
.calc-btn {
  width: 100%;
  margin-top: 28px;
  padding: 15px;
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================
   오른쪽 결과창
============================== */
.unemp-right h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.unemp-right {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.result-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.result-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

.copy-btn {
  width: 100%;
  margin-top: auto;
  padding: 15px;
  background: #0066ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ============================
   정보 섹션
============================== */
.unemp-info-section {
  max-width: 800px;
  margin-top: 40px;
  line-height: 1.6;
  color: #333;
  background: #fff;
  padding: 1.5em;
  border: 1px solid #ddd;
  border-radius: 18px;
}

.unemp-info-section .unemp-h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
}

/* 테이블 */
.info-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 16px;
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 10px 12px;
}

.info-table tr:nth-child(even) {
  background: #f8f8f8;
}

.info-table tr:first-child {
  background: #f0f0f0;
  font-weight: bold;
}

/* ============================
   모바일 스타일
============================== */
@media (max-width: 768px) {

  .unemp-container {
    grid-template-columns: 1fr;
  }

  .unemp-right {
    display: none;
  }

  .unemp-wrapper {
    width: 100%;
    padding: 0 16px;
  }

  .unemp-left {
    padding: 20px 16px;
  }

  .unemp-info-section {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 20px 16px;
  }

  .company-row {
    flex-wrap: wrap;
  }

  .company-row input[type="date"] {
    width: 100% !important;
    margin-top: 6px;
  }

  .salary-line {
    grid-template-columns: 1fr 1fr;
  }

  .salary-line .won-box {
    max-width: 100%;
  }

  /* iOS 날짜 입력 UX 수정 */
  input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    color: #222;
    padding: 10px 14px;
    width: 100%;
    border-radius: 8px;
  }
}
