/* ═══════════════════════════════════════════════
 *  급여제공결과평가 (benefit-evaluation)
 * ═══════════════════════════════════════════════ */

.be-page {
	padding: 20px 24px;
	color: #0f172a;
	display: flex;
	flex-direction: column;
	height: 100vh;
	box-sizing: border-box;
}

/* ═══ Split Layout ═══ */
.be-split {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 16px;
	flex: 1;
	min-height: 0;
}

/* ─── 좌측 패널 ─── */
.be-left {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.be-left__head {
	padding: 14px 16px 10px;
	border-bottom: 1px solid #f1f5f9;
}
.be-left__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 700;
	color: #0f172a;
}
.be-left__title i { color: #0891b2; font-size: 15px; }
.be-count {
	margin-left: auto;
	padding: 2px 10px;
	background: #ecfeff;
	color: #0891b2;
	border-radius: 10px;
	font-size: 12px;
	font-weight: 800;
}

/* 검색 */
.be-search {
	position: relative;
	margin: 10px 16px 10px;
}
.be-search i {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 13px;
	pointer-events: none;
}
.be-search input {
	width: 100%;
	padding: 9px 36px 9px 36px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	color: #0f172a;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.be-search input:focus {
	outline: none;
	border-color: #0891b2;
	box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}
.be-search__clear {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	border: none;
	background: #f1f5f9;
	color: #94a3b8;
	border-radius: 50%;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 11px;
}
.be-search__clear:hover { background: #e2e8f0; color: #475569; }

/* 필터 칩 */
.be-filter-chips {
	display: flex;
	gap: 4px;
	padding: 0 16px 12px;
	flex-wrap: wrap;
}
.be-chip {
	padding: 3px 8px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	transition: all 0.15s;
	font-family: inherit;
	white-space: nowrap;
}
.be-chip:hover {
	background: #ecfeff;
	border-color: #a5f3fc;
	color: #0891b2;
}
.be-chip.active {
	background: linear-gradient(180deg, #0891b2, #0e7490);
	border-color: #0e7490;
	color: #fff;
	box-shadow: 0 2px 6px rgba(124,58,237,0.25);
}

/* 목록 */
.be-list-wrap {
	flex: 1;
	overflow-y: auto;
	padding: 0 0 12px;
}
.be-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 0 8px;
}
.be-item {
	padding: 10px 12px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.12s;
	border: 1px solid transparent;
}
.be-item:hover {
	background: #f8fafc;
	border-color: #e2e8f0;
}
.be-item.selected {
	background: #ecfeff;
	border-color: #a5f3fc;
}
.be-item.selected .be-item__name { color: #0e7490; }
.be-item__row1 {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
}
.be-item__name {
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 0;
}
.be-item__num {
	display: inline-block;
	padding: 2px 8px;
	background: transparent;
	color: rgba(15, 23, 42, 0.9);
	border: 1px solid #c7d2fe;
	border-radius: 4px;
	font-family: 'Consolas', 'Menlo', monospace;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.be-item.selected .be-item__num {
	border-color: #6366f1;
}
.be-item__row2 { margin-top: 4px; }
.be-item__grade {
	display: inline-block;
	padding: 1px 7px;
	background: #fef3c7;
	color: #92400e;
	border-radius: 4px;
	font-weight: 700;
	font-size: 11.5px;
}

/* 로딩 / 에러 / 빈 상태 */
.be-list__loading,
.be-list__error,
.be-list__empty {
	padding: 50px 20px;
	text-align: center;
	color: #94a3b8;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.be-list__loading i,
.be-list__error i,
.be-list__empty i {
	display: block;
	font-size: 32px;
	margin-bottom: 10px;
	color: #cbd5e1;
}
.be-list__loading p,
.be-list__error p,
.be-list__empty p {
	margin: 0 0 4px;
	font-size: 14px;
	color: #64748b;
	font-weight: 600;
}
.be-list__error i { color: #f59e0b; }
.be-list__error small { font-size: 12px; color: #94a3b8; }

/* ─── 우측 패널 ─── */
.be-right {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03);
	display: flex;
	flex-direction: column;
}
.be-right__empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	text-align: center;
}
.be-right__empty-icon {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, #ecfeff, #cffafe);
	border: 2px dashed #67e8f9;
	border-radius: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 42px;
	color: #0891b2;
	margin-bottom: 20px;
}
.be-right__empty h2 {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
}
.be-right__empty p {
	margin: 0;
	font-size: 14px;
	color: #64748b;
	line-height: 1.7;
}
#beRightContent {
	flex: 1;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

/* ═══ 상단: 평가 목록 섹션 ═══ */
.be-esec {
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}
/* 상단 5:5 — 공단 데이터 불러오기 | 케어하자 저장 된 문서 */
.be-toprow {
	display: grid;
	grid-template-columns: 1fr 1fr;
	flex-shrink: 0;
	border-bottom: 1px solid #e2e8f0;
}
.be-toprow .be-esec { border-bottom: none; min-width: 0; }
.be-toprow .be-esec + .be-esec { border-left: 1px solid #e2e8f0; }
.be-toprow .be-etable-wrap { max-height: 190px; overflow-y: auto; }
/* 좌우 테이블 행 높이 고정 — 삭제 버튼 유무와 무관하게 양쪽 높이 일치 */
.be-toprow .be-etable thead th {
	height: 36px;
	padding-top: 0;
	padding-bottom: 0;
}
.be-toprow .be-etable tbody td {
	height: 44px;
	padding-top: 0;
	padding-bottom: 0;
	vertical-align: middle;
}
.be-pof__empty {
	padding: 24px 16px;
	text-align: center;
	color: #94a3b8;
	font-size: 13px;
	font-weight: 600;
}
/* 공단 계획서 표는 3칸뿐이라 최소폭이 필요 없다 — «칸이 남는데도 좌우 스크롤» 의 원인.
   ⚠ .be-etable 의 min-width 규칙이 아래(줄 아래쪽)에 있어 같은 특이도로는 진다.
      클래스를 둘 겹쳐 특이도를 한 칸 올려 둔다 — 순서를 바꿔도 안전하다. (2026-09-04) */
.be-etable.be-etable--pof { min-width: 0; }
.be-pof-row { cursor: pointer; }
.be-pof__badge {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 8px;
	background: linear-gradient(180deg, #0891b2, #0e7490);
	color: #fff;
	border-radius: 9px;
	font-size: 10.5px;
	font-weight: 700;
	vertical-align: 1px;
}
.be-esec__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px 10px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}
.be-esec__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
}
.be-esec__title i { color: #0891b2; font-size: 14px; }
.be-esec__note {
	font-size: 11.5px;
	font-weight: 400;
	color: #ef4444;
	margin-left: 4px;
}
.be-btn-planer {
	padding: 5px 12px;
	background: #f97316;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: background 0.15s;
}
.be-btn-planer:hover { background: #ea6c0a; }
.be-etable-wrap {
	overflow-x: auto;
}
.be-etable {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	/* 컬럼이 가장 많은 «케어하자 저장 된 문서» 표(8칸)의 실측 자연폭 ≈ 497px.
	   종전 700px 은 근거 없이 큰 값이라 반쪽 패널에서 늘 가로 스크롤을 만들었다 → 500px (2026-09-04).
	   3칸짜리 공단 표는 위 .be-etable--pof 가 0 으로 푼다. */
	min-width: 500px;
}
.be-etable thead th {
	background: #f1f5f9;
	color: #475569;
	font-weight: 600;
	padding: 8px 10px;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
}
.be-etable tbody td {
	padding: 8px 10px;
	text-align: center;
	border-bottom: 1px solid #f1f5f9;
	color: #0f172a;
	font-size: 13px;
}
.be-etable tbody tr:hover td { background: #fafafa; }
.be-etable tbody tr.selected td { background: #ecfeff; }
.be-etable tbody tr.be-etable__active td { background: #ecfeff; font-weight: 600; color: #155e75; }
.be-etable__empty {
	padding: 24px !important;
	color: #94a3b8;
	font-size: 13px;
}

/* ═══ 하단: 결과평가 폼 섹션 ═══ */
.be-fsec {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.be-fsec__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 20px 10px;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}
.be-fsec__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
}
.be-fsec__title i { color: #0891b2; font-size: 14px; }
.be-fsec__save {
	font-size: 11.5px;
	color: #64748b;
}

/* 기본 정보 테이블 */
.be-finfo {
	border-bottom: 1px solid #d1d5db;
	flex-shrink: 0;
	padding: 12px 20px;
}
.be-finfo-tbl {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin: 0;
	table-layout: fixed;
}
.be-finfo-tbl th {
	background: #f1f5f9;
	color: #374151;
	font-weight: 600;
	font-size: 12px;
	padding: 7px 10px;
	border: 1px solid #d1d5db;
	white-space: nowrap;
	text-align: center;
	width: 110px;
}
.be-finfo-tbl td {
	background: #fff;
	padding: 5px 8px;
	border: 1px solid #d1d5db;
}
.be-fcell {
	display: flex;
	align-items: center;
	gap: 5px;
	min-width: 0;
}
.be-finput {
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	padding: 4px 7px;
	font-size: 13px;
	font-family: inherit;
	color: #0f172a;
	background: #fff;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	min-width: 0;
	box-sizing: border-box;
}
.be-finput:focus { border-color: #0891b2; box-shadow: 0 0 0 2px rgba(8,145,178,0.12); }
.be-finput[readonly] { background: #f8fafc; color: #64748b; }
.be-finput--grow { flex: 1; min-width: 0; }
.be-finput--xs { flex: none; width: 48px; text-align: center; }
.be-finput--date { flex: none; width: 118px; }
.be-finput--locked { background: #f1f5f9 !important; color: #94a3b8 !important; cursor: not-allowed; }
.be-fselect {
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	padding: 4px 24px 4px 7px;
	font-size: 13px;
	font-family: inherit;
	color: #0f172a;
	background: #fff;
	outline: none;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 7px center;
	min-width: 80px;
}
.be-fselect--grow { flex: 1; min-width: 0; }
.be-fselect:focus { border-color: #0891b2; box-shadow: 0 0 0 2px rgba(8,145,178,0.12); }
.be-fgender {
	display: flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
}
.be-gender-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	user-select: none;
	white-space: nowrap;
}
.be-gender-btn input[type="radio"] { display: none; }
.be-gender-btn span {
	display: block;
	padding: 3px 12px;
	font-size: 12.5px;
	font-weight: 600;
	color: #64748b;
	background: #f8fafc;
	border: 1px solid #d1d5db;
	line-height: 1.6;
	transition: all 0.12s;
}
.be-gender-btn:first-child span {
	border-radius: 4px 0 0 4px;
	border-right: none;
}
.be-gender-btn:last-child span {
	border-radius: 0 4px 4px 0;
}
.be-gender-btn input[type="radio"]:checked + span {
	background: #0891b2;
	border-color: #0891b2;
	color: #fff;
}
.be-fage { font-size: 12px; color: #64748b; white-space: nowrap; flex-shrink: 0; }
.be-fsep { font-size: 13px; color: #94a3b8; flex-shrink: 0; }

/* 탭 */
.be-tabs {
	display: flex;
	padding: 0 20px;
	border-bottom: 2px solid #e2e8f0;
	background: #fff;
	gap: 2px;
	flex-shrink: 0;
}
.be-tab {
	padding: 9px 16px;
	border: none;
	background: none;
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-family: inherit;
	transition: all 0.15s;
	white-space: nowrap;
}
.be-tab:hover { color: #0891b2; }
.be-tab.active {
	color: #0891b2;
	border-bottom-color: #0891b2;
}

/* 탭 패널 */
.be-pane {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.be-pane-todo {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	color: #94a3b8;
	gap: 12px;
}
.be-pane-todo i { font-size: 36px; color: #a5f3fc; }
.be-pane-todo p { margin: 0; font-size: 14px; font-weight: 600; }

/* 급여제공계획 테이블 */
.be-ptable-wrap {
	overflow-x: auto;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}
.be-ptable {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;      /* +0.5px */
	font-weight: 450;     /* +50 */
	min-width: 900px;
}
.be-ptable thead th {
	background: #f1f5f9;
	color: #475569;
	font-weight: 650;
	padding: 8px 10px;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
	border-right: 1px solid #e2e8f0;
	line-height: 1.4;
}
.be-ptable thead th:last-child { border-right: none; }
.be-pt-type { width: 80px; }
.be-pt-group {
	background: #f8fafc;
	font-weight: 650;
	font-size: 13.5px;
	color: #374151;
	text-align: center;
	vertical-align: middle;
	white-space: normal;   /* '일상생활지원,환경관리' 같은 긴 영역명 줄바꿈 허용 */
	word-break: keep-all;
}
.be-pt-detail {
	font-size: 13.5px;
	font-weight: 450;
	color: #374151;
	vertical-align: top;
	padding-top: 8px !important;
}
/* 세부목표 — 문장별 줄바꿈 표시 */
.be-pt-goal {
	text-align: left;
	line-height: 1.65;
}

/* ─── 심신상태 소견작성 모달 (탭 1 AI 작성) ─── */
.be-modal--sm { width: 500px; }
.be-opform {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	padding: 20px 22px 18px;
	box-sizing: border-box;
}
.be-opform__label {
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-top: 8px;
}
.be-opform__label:first-child { margin-top: 0; }
.be-opform__inp {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	font-family: inherit;
	font-size: 13.5px;
	color: #0f172a;
	box-sizing: border-box;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.be-opform__inp:focus {
	outline: none;
	border-color: #0891b2;
	box-shadow: 0 0 0 3px rgba(8,145,178,0.12);
}
.be-opform__foot {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 14px;
}
.be-opform__cancel,
.be-opform__submit {
	padding: 9px 18px;
	border-radius: 9px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	border: 1px solid transparent;
	transition: all 0.15s;
}
.be-opform__cancel {
	background: #fff;
	border-color: #dbe3ec;
	color: #475569;
}
.be-opform__cancel:hover { border-color: #94a3b8; color: #0f172a; }
.be-opform__submit {
	background: linear-gradient(180deg, #0891b2, #0e7490);
	color: #fff;
	box-shadow: 0 2px 8px rgba(8,145,178,0.3);
}
.be-opform__submit:hover { filter: brightness(1.07); }
.be-pt-input { vertical-align: top; padding: 4px !important; }
.be-pt-sel {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 4px 6px;
	font-size: 13px;
	font-family: inherit;
	background: #fff;
	outline: none;
}
.be-pt-sel:focus { border-color: #0891b2; }
.be-pt-ta {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 4px 6px;
	font-size: 13.5px;
	font-weight: 450;
	font-family: inherit;
	resize: none;
	outline: none;
	box-sizing: border-box;
	min-width: 100px;
}
.be-pt-ta:focus { border-color: #0891b2; }
.be-pt-num {
	width: 60px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	padding: 4px 6px;
	font-size: 13.5px;
	font-weight: 450;
	font-family: inherit;
	text-align: center;
	outline: none;
}
.be-pt-num:focus { border-color: #0891b2; }
.be-ptable tbody td {
	padding: 8px 10px;
	border-bottom: 1px solid #f1f5f9;
	border-right: 1px solid #f1f5f9;
	color: #0f172a;
	font-weight: 450;
	vertical-align: middle;
}
.be-ptable tbody td:last-child { border-right: none; }
.be-ptable__empty {
	padding: 40px !important;
	text-align: center;
	color: #94a3b8;
	font-size: 14px;
}

/* 총괄 */
.be-summary {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 16px;
}
.be-summary__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.be-summary__label {
	font-size: 16.5px;
	font-weight: 600;
	color: #0f172a;
}
.be-btn-ai {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #0891b2;
	background: #ecfeff;
	border: 1px solid #a5f3fc;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.be-btn-ai:hover { background: #cffafe; color: #155e75; }
.be-btn-ai i { font-size: 12px; }
.be-req-mark { color: #ef4444; margin-right: 2px; }
.be-summary__ta {
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14.5px;
	font-family: inherit;
	color: #0f172a;
	resize: vertical;
	line-height: 1.6;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.be-summary__ta:focus { border-color: #0891b2; box-shadow: 0 0 0 3px rgba(8,145,178,0.1); }

/* 저장 버튼 */
.be-factions {
	padding: 12px 20px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	background: #f8fafc;
	flex-shrink: 0;
}
.be-btn-save {
	padding: 8px 24px;
	background: linear-gradient(180deg, #0891b2, #0e7490);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 8px rgba(124,58,237,0.3);
	transition: opacity 0.15s;
}
.be-btn-save:hover { opacity: 0.88; }
.be-btn-nhis {
	padding: 8px 24px;
	background: linear-gradient(180deg, #059669, #047857);
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 6px;
	box-shadow: 0 2px 8px rgba(5,150,105,0.3);
	transition: opacity 0.15s;
}
.be-btn-nhis:hover { opacity: 0.88; }
.be-btn-nhis:disabled { opacity: 0.5; cursor: not-allowed; }

/* 급여제공계획서 불러오기 버튼 */
.be-fsec__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}
.be-btn-load-plan {
	padding: 5px 12px;
	background: #0ea5e9;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: background 0.15s;
	white-space: nowrap;
}
.be-btn-load-plan:hover { background: #0284c7; }
.be-btn-load-plan:disabled {
	background: #e2e8f0;
	color: #94a3b8;
	cursor: not-allowed;
}
.be-btn-load-plan:disabled:hover { background: #e2e8f0; }

/* 계획서 선택 모달 */
.be-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}
.be-modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.2);
	width: 860px;
	max-width: 95vw;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.be-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
	flex-shrink: 0;
}
.be-modal__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
}
.be-modal__title i { color: #0891b2; }
.be-modal__close {
	width: 28px;
	height: 28px;
	border: none;
	background: none;
	color: #94a3b8;
	font-size: 15px;
	cursor: pointer;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.12s;
}
.be-modal__close:hover { background: #f1f5f9; color: #475569; }
.be-modal__body {
	padding: 16px 20px;
	overflow-y: auto;
	flex: 1;
}
.be-modal__status {
	padding: 40px 20px;
	text-align: center;
	color: #64748b;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}
.be-modal__status i { color: #0891b2; font-size: 18px; }
.be-modal__table-wrap {
	overflow-x: auto;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}
.be-modal__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}
.be-modal__table thead th {
	background: #f1f5f9;
	color: #475569;
	font-weight: 600;
	padding: 8px 10px;
	text-align: center;
	border-bottom: 1px solid #e2e8f0;
	white-space: nowrap;
}
.be-modal__table tbody td {
	padding: 8px 10px;
	text-align: center;
	border-bottom: 1px solid #f1f5f9;
	color: #0f172a;
}
.be-modal__table tbody tr:hover td { background: #f8fafc; }
.be-modal__mono { font-family: 'Consolas', monospace; font-size: 12px; }
.be-modal__sel-btn {
	padding: 3px 12px;
	background: #0891b2;
	color: #fff;
	border: none;
	border-radius: 5px;
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.12s;
}
.be-modal__sel-btn:hover { background: #0e7490; }
.be-modal__empty { text-align: center; padding: 24px; color: #94a3b8; font-size: 13px; }
.be-modal--wide { width: 760px; }

/* 업무수행일지 불러오기 버튼 */
.be-log-import-bar {
	padding: 10px 0 6px;
	display: flex;
	justify-content: flex-end;
}
.be-btn-load-log {
	margin-bottom: 6px;
	padding: 12px 22px;
	background: linear-gradient(135deg, #0ea5e9, #0891b2);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15.5px;
	box-shadow: 0 4px 12px rgba(8, 145, 178, .35);
	font-weight: 800;
	font-family: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: filter 0.15s, transform 0.1s;
	white-space: nowrap;
}
.be-btn-load-log i { font-size: 15px; }
.be-btn-load-log:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* 업무수행일지 검색폼 */
.be-clog-search {
	padding: 12px 20px;
	border-bottom: 1px solid #e2e8f0;
	background: #f8fafc;
	flex-shrink: 0;
}
.be-clog-search__row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}
.be-clog-search__label {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	white-space: nowrap;
}
.be-clog-search__text { width: 130px; }
.be-clog-search__btn {
	padding: 5px 12px;
	background: #0891b2;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	transition: background 0.15s;
}
.be-clog-search__btn:hover { background: #0e7490; }

/* ── Tab 1: 심신상태 및 환경변화 평가 ── */
.be-body-wrap { padding: 2px 0; }
.be-body-tbl {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.be-body-tbl--mt { margin-top: 8px; }
.be-body-tbl th, .be-body-tbl td {
	border: 1px solid #cbd5e1;
	padding: 7px 10px;
	vertical-align: middle;
	text-align: center;
}
.be-body-tbl thead th {
	background: #f1f5f9;
	font-weight: 600;
	color: #475569;
	font-size: 13.5px;
}
.be-bt-parent {
	background: #f8fafc;
	font-size: 13.5px;
	font-weight: 600;
	color: #334155;
	line-height: 1.6;
	width: 80px;
}
.be-bt-sub {
	font-size: 13.5px;
	color: #475569;
	text-align: left;
	width: 100px;
}
.be-bt-solo {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	text-align: left;
	background: #f8fafc;
}
.be-bt-r { width: 46px; }
.be-bt-r input[type=radio] { width: 16px; height: 16px; cursor: pointer; }
.be-body-ta {
	width: 100%;
	box-sizing: border-box;
	resize: vertical;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 5px 7px;
	font-size: 13.5px;
	font-family: inherit;
	color: #334155;
}
.be-body-ta--tall { min-height: 60px; }
.be-bt-other-th {
	background: #f8fafc;
	font-weight: 600;
	color: #334155;
	font-size: 14px;
	width: 160px;
	white-space: nowrap;
}

/* ── Tab 2: 종합의견 및 향후계획 ── */
.be-fp-wrap { padding: 2px 0; }
.be-fp-tbl {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.be-fp-tbl th, .be-fp-tbl td {
	border: 1px solid #cbd5e1;
	padding: 10px 14px;
	vertical-align: middle;
}
.be-fp-th {
	background: #f1f5f9;
	font-weight: 600;
	color: #334155;
	width: 130px;
	text-align: center;
	white-space: nowrap;
}
.be-fp-td { text-align: left; }
.be-fp-chk-group { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.be-fp-chk {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 14px;
	color: #334155;
}
.be-fp-chk input[type=checkbox],
.be-fp-chk input[type=radio] {
	width: 15px;
	height: 15px;
	cursor: pointer;
	flex-shrink: 0;
}

/* ─── 계획 표 제공여부 체크박스 ─── */
.be-pt-chkcell { text-align: center; vertical-align: middle; }
.be-pt-chk { width: 17px; height: 17px; cursor: pointer; accent-color: #2563eb; }

/* ─── 평가 목록 삭제 버튼 ─── */
.be-eval-del {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 26px;
	padding: 0 10px;
	border: 1px solid #fecaca;
	border-radius: 6px;
	background: #fff;
	color: #dc2626;
	font: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}
.be-eval-del:hover { background: #fef2f2; border-color: #f87171; }

/* ─── 향후계획 체크리스트 (공단 양식) ─── */
.be-fp-plan { display: flex; flex-direction: column; gap: 10px; }
.be-fp-plan__row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.be-fp-plan__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.be-fp-inp {
	flex: 1;
	min-width: 220px;
	max-width: 640px;
	height: 30px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 0 10px;
	font: inherit;
	font-size: 13.5px;
	color: #334155;
	outline: none;
}
.be-fp-inp:focus { border-color: #60a5fa; }
.be-fp-inp--etc { max-width: 320px; }
.be-fp-paren { font-size: 14px; color: #334155; }
@media (max-width: 900px) {
	.be-fp-plan__grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════
 *  모바일(≤768px)
 *
 *  좌/우 배치는 layouts/split-mobile.css 가 맡는다
 *  — 폰에서는 목록이 전체화면, 수급자를 누르면 문서가 전체화면 시트로 올라온다.
 *  여기는 «시트 안쪽» 내용만 펀다(표·카드가 좁은 칸에 갇혀 글자가 세로로 쌓이던 것).
 * ═══════════════════════════════ */
@media (max-width: 768px) {

	/* 상단 5:5(공단 불러오기 | 저장된 문서)도 펀다 — 한 칸이 182px 로 눌려 표가 글자 몇 개 폭이 됐다 */
	.be-toprow { grid-template-columns: 1fr; }
	.be-toprow .be-esec + .be-esec { border-left: none; border-top: 1px solid #e2e8f0; }

	/* 표는 감싸개(.be-ptable-wrap)가 가로로 스크롤된다 — 다만 «필요내용» 칸이 37px 라
	   «옷 갈 아 입 기» 처럼 한 글자씩 세로로 쌓였다. 좁은 화면에서만 최소 폭을 준다. */
	.be-ptable td.be-pt-detail { min-width: 88px; }

	/* 문서 머리(수급자명·생년월일·인정번호…)는 라벨 칸이 110px 로 고정된 6칸짜리 표라
	   364px 안에서는 값 칸이 10px 대로 눌려 입력칸 글자가 서로 포개졌다. 최소 폭을 주고 가로로 스크롤시킨다. */
	.be-finfo-tbl { min-width: 780px; }
	.be-finfo { overflow-x: auto; }
	/* 날짜 두 칸(서비스기간)이 한 칸 폭을 넘으면 겹쳐 그려졌다 — 넘치면 다음 줄로 접히게 한다 */
	.be-fcell { flex-wrap: wrap; }
}
