 @charset "utf-8";
 /* CSS Document */
/* ── 폼 섹션 (board.css .form_wrap 동일) ── */
.calculator-wrap .form_wrap .form_tit { border-bottom: 1px solid #111; padding: .75em 0; }
.calculator-wrap .form_wrap .form_tit .t1 { font-weight: 700; font-size: 1.815rem; color: #111; }
.calculator-wrap .form_wrap .form_tit .t3 { font-weight: 500; font-size: 1.125em; color: #555; margin-top: .25em; display: block; }

.calculator-wrap .form_st { border-top: 1px solid #111; list-style: none; padding-left: 0; margin: 0; }
.calculator-wrap .form_st > li { border-bottom: 1px solid #ddd; padding: .75em 0; }
.calculator-wrap .form_st > li.bd0 { border-bottom: none !important; }

.calculator-wrap .form_lab { display: flex; align-items: center; }
.calculator-wrap .form_lab .lab_tit,
.calculator-wrap .form_lab .lab_con { min-height: 3em; box-sizing: border-box; display: flex; align-items: center; flex-wrap: wrap; }
.calculator-wrap .form_lab .lab_tit { position: relative; width: 9em; min-width: 9em; margin-right: 2em; padding-left: .25em; gap: .3em 0; }
.calculator-wrap .form_lab .lab_tit::before { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 18px; background: #ddd; content: ''; }
.calculator-wrap .form_lab .tit1 { font-weight: 600; color: var(--color-point); font-size: 1.063em; }
.calculator-wrap .form_lab .lab_con { flex: 1 1 0%; min-width: 0; gap: .5em; color: #444; }
.calculator-wrap .form_lab .lab_con .inp_tt { flex: 0 0 auto; font-size: .938em; color: #666; }

/* ── 입력 필드 (board.css .input_st 동일) ── */
.calculator-wrap input[type="text"],
.calculator-wrap input[type="date"],
.calculator-wrap input[type="number"],
.calculator-wrap select {
border: 1px solid #ddd; color: #111; padding: .5em .75em;
box-sizing: border-box; border-radius: .5rem; height: 3em; font-weight: 500;
width: 100%; font-family: inherit; font-size: 1rem; background: #fff;
transition: border-color .2s; letter-spacing: -.5px;
}
.calculator-wrap input:focus, select:focus { border-color: var(--color-point); outline: none; box-shadow: 0 0 0 3px rgba(27,53,81,.1); }
.calculator-wrap input::placeholder { color: #aaa; }
.calculator-wrap input[disabled], select[disabled] { background: #f5f5f5; color: #999; cursor: not-allowed; }

/* 버튼 기준 (.input_st.s1.c1) */
.calculator-wrap .input_st.s1 { height: 3.5em; padding: .5em 1.5em; font-size: 1.125em; font-weight: 600; cursor: pointer;
border: 1px solid #ddd; border-radius: .5rem; box-sizing: border-box; font-family: inherit; }
.calculator-wrap .input_st.c1 { background: var(--color-point); border-color: var(--color-point); color: #fff; }
.calculator-wrap .input_st.c1:hover { background: var(--color-point3); border-color: var(--color-point3); }
.calculator-wrap .input_st.w100 { width: 100%; }

/* ── 버튼 래퍼 (.page_btn) ── */
.calculator-wrap .page_btn { display: flex; align-items: center; justify-content: center; gap: .5em; flex-wrap: wrap; }
.calculator-wrap .page_btn > * { flex: 1 1 0%; min-width: 0; }

/* ── 공유 버튼 ── */
.share-group { display: flex; gap: .6em; flex-wrap: wrap; justify-content: center; margin-top: 1em; }
.share-group.full { margin-top: 1.25em; }
.share-group.full .share-btn-link, .share-group.full .share-btn-kakao { flex: 1; justify-content: center; }
.share-btn-link { display: inline-flex; align-items: center; gap: 6px; padding: .65em 1.5em;
background: #fff; color: var(--color-point); border: 1.5px solid var(--color-point); border-radius: .5rem;
font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .2s; }
.share-btn-link:hover { background: var(--color-point); color: #fff; }
.share-btn-kakao { display: inline-flex; align-items: center; gap: 6px; padding: .65em 1.5em;
background: #FEE500; color: #191600; border: none; border-radius: .5rem;
font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit; transition: opacity .2s; }
.share-btn-kakao:hover { opacity: .88; }
.btn-call { display: inline-flex; align-items: center; gap: 6px; padding: .65em 1.5em;
background: var(--color-point); color: #fff; border: none; border-radius: .5rem;
font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
text-decoration: none; transition: background .2s, border-color .2s; }
.btn-call:hover { background: var(--color-point3); }
.share-group.full .btn-call { flex: 1; justify-content: center; }

/* ── 토스트 ── */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(120px);
background: var(--color-point); color: #fff; padding: .85em 1.75em; border-radius: .5rem;
font-size: 16px; font-weight: 600; box-shadow: 0 8px 28px rgba(0,0,0,.2);
transition: transform .4s cubic-bezier(.34,1.56,.64,1); z-index: 9999;
white-space: nowrap; max-width: 90vw; text-align: center; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── 도움말 텍스트 ── */
.help-text { font-size: 16px; color: #555; margin: .4em 0; line-height: 1.7;
padding: .5em .85em; border-left: 3px solid var(--color-point3);
background: #f0f5ff; border-radius: 0 .35rem .35rem 0; }

/* ── 접기/펼치기 ── */
.collapsible-header { display: flex; align-items: center; justify-content: space-between;
cursor: pointer; padding: .65em .85em; margin: .4em 0;
background: #f9fafb; border-radius: .5rem; border: 1px solid #ddd;
font-weight: 600; color: var(--color-point2); font-size: 1rem; transition: background .2s; }
.collapsible-header:hover { background: #f1f5f9; }
.collapsible-header .arrow { transition: transform .3s; }
.collapsible-header.active .arrow { transform: rotate(180deg); }
.collapsible-content { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.collapsible-content.show { max-height: 2000px; }
.collapsible-content-inner { padding: .75em .75em .75em 1em; margin-bottom: .5em; font-size: 16px; border-left: 3px solid #ddd; }
.accident-guide, .rest-guide, .grade-guide { line-height: 1.8; color: var(--color-point2); }

/* ── 안내 테이블 ── */
.rest-guide-table, .grade-table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 16px; }
.rest-guide-table th, .grade-table th { background: var(--color-point); color: #fff; padding: .6em .75em; text-align: left; font-weight: 700; }
.rest-guide-table td, .grade-table td { padding: .55em .75em; border-bottom: 1px solid #ddd; }
.rest-guide-table tr:last-child td, .grade-table tr:last-child td { border-bottom: none; }
.rest-guide-table tbody tr:hover, .grade-table tbody tr:hover { background: #f9fafb; }

/* ── 안내 박스 ── */
.info-box { font-size: 16px; color: #374151; margin: 1em 0; line-height: 1.7;
padding: .5em .85em; border-left: 3px solid #ddd; background: #f9fafb; border-radius: 0 .35rem .35rem 0; }
.error-notice { font-size: 16px; color: #991b1b; margin: .5em 0; line-height: 1.6;
padding: .5em .85em; border-left: 3px solid #fca5a5; background: #fff5f5; border-radius: 0 .35rem .35rem 0; font-weight: 600; }
.law-notice { font-size: 16px; color: var(--color-point); margin: .5em 0; line-height: 1.7;
padding: .5em .85em; border-left: 3px solid var(--color-point3); background: #f0f5ff; border-radius: 0 .35rem .35rem 0; font-weight: 500; }
.law-notice.warning { color: #991b1b; border-left-color: #fca5a5; background: #fff5f5; padding-left: .85em; }

/* ── 근로 형태 선택 ── */
.checkbox-group { display: flex; gap: .75em; flex-wrap: wrap; margin: .25em 0; }
.checkbox-item { display: flex; align-items: center; gap: .5em; cursor: pointer;
padding: .55em 1.1em; border: 1px solid #ddd; border-radius: .5rem; background: #fff; transition: all .2s; }
.checkbox-item:hover { border-color: var(--color-point); background: #f0f5ff; }
.checkbox-item.active { border-color: var(--color-point); background: #e8f0fb; }
.checkbox-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.checkbox-item label { margin: 0; cursor: pointer; font-weight: 600; color: #333; font-size: 1rem; }

/* ── 날짜 그리드 ── */
.date-group { display: flex; gap: .75em; flex: 1; }
.date-group input { flex: 1; }

/* ── 라디오 옵션 ── */
.rest-option, .calc-option { display: flex; gap: 1.5em; flex-wrap: wrap; align-items: center; min-height: 3em; }
.rest-option label, .calc-option label { display: flex; align-items: center; gap: .4em; cursor: pointer; font-weight: 600; color: #333; font-size: 1rem; }
.rest-option input[type="radio"], .calc-option input[type="radio"] { width: 16px; height: 16px; }

/* ── 일수 표시 ── */
.days-display { text-align: center; padding: .65em; background: #e8f0fb; border-radius: .5rem;
color: var(--color-point); font-weight: 700; margin: .4em 0; font-size: 1rem; border: 1px solid var(--color-point3); }

/* ── 결과 영역 ── */
.result { padding: 1.75em; border-radius: .5rem; margin-top: 1.5em; display: none; border: 1px solid #ddd; background: #f9fafb; }
.result.show { display: block; animation: slideIn .45s ease; }
.result h3 { color: var(--color-point); margin: 0 0 1.25em; font-size: 1.25rem; text-align: center; }
.result > div { padding: .26em 0; margin: .16em 0; font-size: 1rem; }
.result > div:empty { padding: 0; margin: 0; }
#totalBenefit { margin-bottom: 1.5em; padding-left: .4em; }
.result .info-box { border-left: none; background: none; border-radius: 0; padding: .26em 0; margin: .16em 0; }
#avgWageBox { padding: .26em 0; margin: .16em 0; }
#avgWageBox > div { padding: 0; margin: 0; font-size: 1rem; }

/* ── 경고 안내 ── */
.warning { padding: 1em 0; margin-top: 1.5em; font-size: 16px; color: #555; border-top: 1px solid #ddd; line-height: 1.8; }
.warning strong { color: var(--color-point); }

@keyframes slideIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ── 모바일 ── */
@media (max-width: 768px) {
.calculator-wrap .form_lab { flex-direction: column; align-items: flex-start; }
.calculator-wrap .form_lab .lab_tit { width: 100%; min-width: 0; margin-right: 0; margin-bottom: .4em; min-height: auto; }
.calculator-wrap .form_lab .lab_tit::before { display: none; }
.calculator-wrap .form_lab .lab_con { width: 100%; min-height: auto; }
.date-group { flex-direction: column; }
.checkbox-group { flex-direction: column; gap: .5em; }
.rest-guide-table, .grade-table { font-size: .8rem; }
.rest-guide-table th, .rest-guide-table td, .grade-table th, .grade-table td { padding: .45em .5em; }
.toast { white-space: normal; width: 85vw; }
}

/* ── 3개월 임금 테이블 ── */
.wage-table-wrap { overflow-x: auto; margin: .75em 0; }
.wage-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 560px; }
.wage-table th { background: var(--color-point); color: #fff; padding: 10px 8px; text-align: center; font-weight: 700; font-size: 15px; white-space: nowrap; }
.wage-table td { padding: 7px 6px; border-bottom: 1px solid #ddd; vertical-align: middle; text-align: center; }
.wage-table tbody tr:hover { background: #f9fafb; }
.wage-table tfoot td { background: #e8f0fb; font-weight: 700; color: var(--color-point); padding: 10px 8px; }
.wage-table .period-cell { min-width: 210px; white-space: nowrap; }
.wage-table .period-cell input[type="date"] { padding: 5px 4px; font-size: 14.5px; width: 130px;
border: 1px solid #ddd; border-radius: .35rem; background: #fff; display: inline-block; height: auto; }
.wage-table td input[type="text"], .wage-table td input[type="number"] {
padding: 6px 6px; font-size: 15px; width: 108px; max-width: 100%;
border: 1px solid #ddd; border-radius: .35rem; background: #fff; text-align: right; font-family: inherit; height: auto; }
.wage-table td input[readonly] { background: #e8f0fb; color: var(--color-point); font-weight: 700; text-align: center; width: 52px; }
.wage-table .subtotal { font-weight: 700; color: var(--color-point3); }
#wageAdjustNotice { margin: .25em 0 0; padding-left: .4em !important; font-size: 15px; color: #374151; line-height: 1.6; font-weight: 400; }
.accurate-daily-wage { margin: .75em 0 .25em; padding: .875em 1.25em; background: #e8f0fb; border-radius: .5rem;
border-left: 4px solid var(--color-point3); font-size: 1rem; color: var(--color-point); font-weight: 600; }
.accurate-daily-wage strong { font-size: 1.25rem; color: var(--color-point3); }
@media (max-width: 768px) {
.wage-table .period-cell input[type="date"] { width: 120px; font-size: 13.5px; }
.wage-table td input[type="text"], .wage-table td input[type="number"] { width: 90px; font-size: 14px; }
}


/* 입력칸 래퍼 */
.cdp-wrap { position:relative; display:inline-block; vertical-align:middle; }
/* 네이티브 피커 차단용 투명 오버레이 */
.cdp-trig {
    position:absolute; top:0; left:0; right:0; bottom:0;
    cursor:pointer; z-index:2;
}
.cdp-trig.cdp-off { cursor:default; pointer-events:none; }

/* 팝업 배경 */
#_cdpBg { position:fixed; top:0; left:0; right:0; bottom:0; z-index:9998; }

/* 팝업 본체 */
#_cdp {
    position:fixed; z-index:9999;
    background:#fff; border:1px solid #d1d5db; border-radius:12px;
    box-shadow:0 8px 32px rgba(0,0,0,.18); padding:14px 12px 12px;
    width:272px; user-select:none; font-family:inherit;
}
#_cdp .cdp-hd {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:10px;
}
#_cdp .cdp-arr {
    background:none; border:none; font-size:20px; cursor:pointer;
    color:#374151; padding:3px 10px; border-radius:8px; line-height:1;
    transition:background .12s;
}
#_cdp .cdp-arr:hover { background:#f3f4f6; }
#_cdp .cdp-ttl { font-weight:700; font-size:15px; color:#111827; }
#_cdp .cdp-wk {
    display:grid; grid-template-columns:repeat(7,1fr);
    text-align:center; margin-bottom:4px;
}
#_cdp .cdp-wk span { font-size:11px; color:#9ca3af; font-weight:600; padding:3px 0; }
#_cdp .cdp-wk span:first-child { color:#ef4444; }
#_cdp .cdp-wk span:last-child  { color:#3b82f6; }
#_cdp .cdp-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
#_cdp .cdp-d {
    display:flex; align-items:center; justify-content:center;
    height:34px; border-radius:8px; cursor:pointer;
    font-size:13px; color:#374151; border:none; background:none; width:100%;
    transition:background .1s;
}
#_cdp .cdp-d:hover:not(.empty):not(.off) { background:#f3f4f6; }
#_cdp .cdp-d.sel   { background:#1a56db; color:#fff !important; font-weight:700; }
#_cdp .cdp-d.tod   { font-weight:700; color:#2563eb; }
#_cdp .cdp-d.tod.sel { color:#fff; }
#_cdp .cdp-d.sun   { color:#ef4444; }
#_cdp .cdp-d.sat   { color:#3b82f6; }
#_cdp .cdp-d.off   { color:#d1d5db; cursor:not-allowed; }
#_cdp .cdp-d.empty { cursor:default; }