/* 양로시스템 덧칠 — ECM 화면 자산(/ecm-ui/ecm.css 등, ECM 에서 복사) 위에 «양로에만 있는» 요소만 그린다.
   기준은 ECM 화면이다: 구획 카드는 수급자정보(writeRecipientInfo)의 .ri-sec, 표·단추·입력칸은 ECM 전역(부트스트랩 3 + 이카운트식 95-ecount).
   ECM 자산 파일은 고치지 말고 이 파일에만 쓴다. */

/* ── 구획 카드 (ECM writeRecipientInfo .ri-sec 그대로) ── */
.ri-sec {
	border: 1px solid #cbd8e6; border-radius: 8px; background: #fff;
	margin: 0 0 12px; overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 40, 80, 0.06);
}
.ri-sec-head {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	margin: 0; padding: 9px 14px;
	background: #eef3f9; border-bottom: 1px solid #cbd8e6;
	font-size: 14.5px; font-weight: 700; color: #1a365d;
}
.ri-sec-head > .ri-sec-title, .ri-sec-head.yr-titled {
	padding-left: 9px; border-left: 3px solid #1a365d; line-height: 1.25;
}
.ri-sec-head .yr-sp { flex: 1; }
.ri-sec-head .muted, .ri-sec-sub { font-size: 11.5px; color: #64748b; font-weight: 500; }
.ri-sec-body { padding: 12px 14px; }
.ri-sec > .table { margin-bottom: 0; border: 0; }
.ri-sec > form > .table, .ri-sec .yr-scroll > .table { margin-bottom: 0; }

/* 카드 안 표는 바깥 테두리를 카드가 대신한다 */
.ri-sec > .table.table-bordered > tbody > tr > td:first-child,
.ri-sec > .table.table-bordered > thead > tr > th:first-child { border-left: 0; }
.ri-sec > .table.table-bordered > tbody > tr > td:last-child,
.ri-sec > .table.table-bordered > thead > tr > th:last-child { border-right: 0; }

/* 라벨칸 — ECM 폼표 td.active 와 같은 폭 감각 */
.table.yr-form > tbody > tr > td.active { width: 140px; white-space: nowrap; text-align: center; vertical-align: middle; }
.table.yr-form > tbody > tr > td { vertical-align: middle; }

/* 입력칸 폭 — ECM 은 화면마다 인라인 width 를 준다. 같은 결과를 클래스로 */
.form-control.w-s { display: inline-block; width: 90px; }
.form-control.w-m { display: inline-block; width: 160px; }
.form-control.w-l { display: inline-block; width: 320px; max-width: 100%; }
.form-control.w-xl { display: inline-block; width: 100%; }
.form-control.ecm-date { display: inline-block; width: 130px; }
input.form-control.input-sm, select.form-control.input-sm { display: inline-block; width: auto; min-width: 70px; }
textarea.form-control { width: 100%; min-height: 84px; resize: vertical; line-height: 1.5; }
label.hand { font-weight: 500; margin-right: 12px; cursor: pointer; }
label.hand input { margin-right: 3px; }

/* 검색 판 — ECM 목록 화면의 table.table-bordered + td.active 라벨 */
.yr-search-tbl { margin-bottom: 10px; }
.yr-search-tbl > tbody > tr > td { vertical-align: middle; }
.yr-search-tbl > tbody > tr > td.active { white-space: nowrap; width: 1%; padding: 6px 12px; }
.yr-search-tbl > tbody > tr > td.yr-search-go { text-align: right; width: 1%; white-space: nowrap; }

/* 목록 위 작업줄 (건수 + 인쇄 등) */
.yr-strip { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 6px; }
.yr-strip .yr-sp { flex: 1; }
.yr-count { color: #4a5a6e; font-size: 13px; }
.yr-count b { color: #1f2d3d; }

/* 숫자 판 — ECM 대시보드 표 머리처럼 */
.yr-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #cbd8e6; border-radius: 8px; background: #fff; margin-bottom: 12px; overflow: hidden; }
.yr-kpi { padding: 12px 14px; border-right: 1px solid #e2e8f0; }
.yr-kpi:last-child { border-right: 0; }
.yr-kpi .k { font-size: 12px; font-weight: 600; color: #64748b; }
.yr-kpi .v { margin-top: 4px; font-size: 24px; font-weight: 700; color: #1a365d; font-variant-numeric: tabular-nums; }
.yr-kpi .v small { font-size: 13px; font-weight: 500; color: #64748b; margin-left: 3px; }
.yr-kpi .s { margin-top: 2px; font-size: 12px; color: #4a5a6e; }
.yr-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.yr-bar { height: 6px; background: #e2e8f0; margin-top: 8px; }
.yr-bar > i { display: block; height: 100%; background: #1a56db; }

/* 제목줄로 옮겨진 부제·단추 (yangro.js) */
#controlMenuSmall .titleName { font-size: 22px; font-weight: 700; color: #1f2d3d; }
#controlMenuSmall .yr-title-sub { margin-left: 10px; font-size: 13px; color: #64748b; vertical-align: 3px; }
#controlMenuSmall .yr-title-sub a { color: #1a56db; }
#controlMenuSmall .yr-title-btns { float: right; display: flex; gap: 4px; align-items: center; margin-top: 2px; }

/* 갖춤 표시 */
.yr-ok { color: #1e7e34; font-weight: 700; }
.yr-no { color: #c62828; font-weight: 700; }
.yr-due { color: #b45309; font-weight: 700; }
.text-muted, .muted { color: #7a8797; }
.empty { padding: 26px !important; text-align: center !important; color: #7a8797; }

/* 척도 표 */
.yr-scale td.text-center { width: 84px; }
.yr-scale input[type=radio] { width: 16px; height: 16px; }
.yr-scale .sum td { background: #f3f6fa; font-weight: 700; }
.yr-rows textarea.form-control { min-height: 54px; }
.yr-rows td { vertical-align: top !important; }

/* 고르기 칸 묶음 */
.yr-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.yr-picks label { display: flex; align-items: flex-start; gap: 6px; padding: 3px 0; font-weight: 500; }
.yr-picks label small { color: #7a8797; }

/* 글 본문 */
.yr-text { white-space: pre-wrap; line-height: 1.6; text-align: left; }
.yr-doc-body { padding: 18px 22px; white-space: pre-wrap; line-height: 1.75; font-size: 14px; }
.yr-print-only { display: none; }
.yr-scroll { overflow-x: auto; }

/* 사이드 메뉴 묶음 제목 */
.u-vmenu a.yr-vm-title { font-size: 11px !important; color: #94a3b8 !important; background: none !important; padding-top: 10px !important; }

/* ── 2027 평가 대비 ── */
.ev-head { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #cbd8e6; margin-bottom: 12px; }
.ev-head th, .ev-head td { border: 1px solid #e2e8f0; padding: 8px 10px; }
.ev-head th { background: #eef3f9; font-weight: 600; white-space: nowrap; width: 90px; }
.ev-code { display: inline-block; min-width: 38px; padding: 1px 6px; margin-right: 6px; text-align: center;
	font-weight: 700; color: #1a56db; border: 1px solid #1a56db; border-radius: 6px; }
.ev-goal { padding: 10px 14px; border-left: 3px solid #1a365d; background: #fff; }
.ev-detail { border-top: 1px solid #e2e8f0; }
.ev-detail:first-child { border-top: 0; }
.ev-detail h3 { margin: 0; padding: 9px 14px; font-size: 14px; font-weight: 700; background: #fbfcfe; border-bottom: 1px solid #e2e8f0; }
.ev-detail .ev-f { display: grid; grid-template-columns: 90px minmax(0, 1fr); border-bottom: 1px solid #e2e8f0; }
.ev-detail .ev-f > div { padding: 6px 14px; }
.ev-detail .ev-f > div:first-child { background: #eef3f9; font-weight: 600; font-size: 13px; }
.ev-body { margin: 0; padding: 10px 14px; white-space: pre-wrap; font-family: inherit; font-size: 13px; line-height: 1.6; color: #4a5a6e; background: none; border: 0; }
.ev-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; padding: 14px; }
.ev-pages figure { margin: 0; border: 1px solid #cbd8e6; background: #fff; }
.ev-pages img { display: block; width: 100%; height: auto; }
.ev-pages figcaption { padding: 4px 8px; font-size: 12px; color: #7a8797; border-top: 1px solid #e2e8f0; }
.ev-crit td.on { background: #eaf0fd !important; }
.ev-crit tr:hover td { cursor: pointer; }
.ev-score { font-variant-numeric: tabular-nums; font-weight: 700; }
.ev-ok { color: #1e7e34; font-weight: 700; }
.ev-warn { color: #b45309; font-weight: 700; }
.ev-raw summary { padding: 9px 14px; cursor: pointer; font-weight: 600; background: #eef3f9; }
.ev-raw pre { margin: 0; padding: 14px; max-height: 520px; overflow: auto; white-space: pre; font-size: 12px; line-height: 1.5; background: #fff; border: 0; }
.ev-months td, .ev-months th { text-align: center; padding: 5px 4px !important; }
.ev-months input { width: 52px; height: 26px; text-align: center; }
.ev-months .fut { color: #a8b3c0; }
.ev-st { display: inline-block; min-width: 54px; padding: 1px 6px; font-size: 12px; font-weight: 700; text-align: center;
	border: 1px solid currentColor; border-radius: 6px; }
.ev-st.ok { color: #1e7e34; }
.ev-st.part { color: #b45309; }
.ev-st.no { color: #c62828; }
.ev-st.manual { color: #7a8797; }
.ev-miss { margin-top: 4px; font-size: 13px; text-align: left; }
.ev-miss summary { cursor: pointer; color: #4a5a6e; }
.ev-miss ul { margin: 4px 0 0; padding-left: 18px; color: #4a5a6e; max-height: 220px; overflow: auto; }

@media (max-width: 900px) {
	.yr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.yr-grid2 { grid-template-columns: minmax(0, 1fr); }
	.ev-pages { grid-template-columns: minmax(0, 1fr); }
}
@media print {
	.ecm-tabs, .yr-noprint, .yr-strip .btn { display: none !important; }
	.yr-print-only { display: block; }
	.ri-sec { break-inside: avoid; box-shadow: none; }
	.yr-blank td { height: 64px; }
	.ev-pages, .ev-raw { display: none !important; }
}
.req { color: crimson; margin-left: 2px; }
.hint { margin-left: 8px; color: #7a8797; font-size: 12px; }
.yr-title { display: none; }

/* ECM 로고 (common/ecm_logo.jsp 의 인라인 규칙 그대로) */
.ecm-logo-img{max-width:100%;height:auto}.ecm-logo-wrap{position:relative;display:inline-block;overflow:hidden}.ecm-logo-wrap::after{content:'';position:absolute;top:0;left:-100%;width:60%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.5),transparent);transform:skewX(-20deg);pointer-events:none;animation:ecmLogoShimmer 5s ease 1.5s infinite}@keyframes ecmLogoShimmer{0%{left:-100%;opacity:0}5%{opacity:1}20%{left:200%;opacity:0}100%{left:200%;opacity:0}}

/* 표 안의 소계 줄 (재무회계 관 소계 등) */
.chtable tr.yr-subtotal td { font-weight: 700; }
