/* =========================================================
   20260919 儲蓄能量年度表（plan_year_1_2.php / new_plan_year_1_2.php）
   與 檢視資料 › 年度儲蓄（process_historydata.php is_now=3）
   外層加 .yt_page，覆寫既有 rwdv1_table / fixed_precolumn / fixed_lastcolumn
   ========================================================= */

.yt_page{ font-family:Arial, "Microsoft JhengHei", sans-serif; color:#1f2937; padding:4px 0 10px; }

/* 標題卡 */
.yt_hero{
	display:flex; align-items:center; gap:14px;
	margin:14px 0 14px; padding:14px 18px;
	background:#fff; border:1px solid #e3e8ee; border-left:5px solid var(--main-color);
	border-radius:12px; box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.yt_hero_icon{
	flex:0 0 42px; width:42px; height:42px; border-radius:11px;
	background:#e6f4fa; color:var(--main-color);
	display:flex; align-items:center; justify-content:center; font-size:20px;
}
.yt_hero_body{ flex:1 1 auto; min-width:0; }
.yt_hero_tag{
	display:inline-block; margin:0 0 4px; padding:2px 10px; border-radius:999px;
	background:#e6f4fa; color:#006b9a; font-size:12px; font-weight:600;
}
.yt_hero_title{ font-size:20px; font-weight:700; color:#111827; letter-spacing:1px; line-height:1.3; }
.yt_hero_sub{ margin-top:2px; font-size:12.5px; color:#6b7280; }

/* 說明摺疊（覆寫全站 clean-accordion） */
.yt_page .clean-accordion{
	max-width:none; margin:0 0 14px;
	border:1px solid #e3e8ee; border-radius:12px; box-shadow:none; font-family:inherit;
}
.yt_page .acc-header{ padding:11px 16px; font-size:14px; color:#374151; }
.yt_page .acc-header:hover{ background:#f7f9fb; }
.yt_page .acc-icon{
	width:26px; height:26px; margin-right:10px; border-radius:8px;
	background:#f1f4f8; color:var(--main-color); font-size:10px;
	display:inline-flex; align-items:center; justify-content:center;
}
.yt_page .acc-content{ background:#fff; }
.yt_page .acc-content .caption_block{
	background:#fff; color:#4b5563; padding:4px 16px 16px 52px; letter-spacing:.5px; line-height:1.8;
}

/* 工具列：摘要 + 圖例 */
.yt_toolbar{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:0 0 10px; }
.yt_stat{
	display:inline-flex; align-items:baseline; gap:6px;
	padding:7px 12px; border-radius:10px;
	background:#fff; border:1px solid #e3e8ee;
	font-size:12.5px; color:#6b7280; white-space:nowrap;
}
.yt_stat b{ font-size:15px; font-weight:700; color:#111827; font-variant-numeric:tabular-nums; }
.yt_stat.accent b{ color:var(--main-color); }
.yt_stat.warn b{ color:#b45309; }
.yt_legend{ margin-left:auto; display:flex; align-items:center; gap:14px; flex-wrap:wrap; font-size:12.5px; color:#6b7280; }
.yt_legend span{ display:inline-flex; align-items:center; gap:6px; }
.yt_legend i.sw{ width:14px; height:14px; border-radius:4px; display:inline-block; }
.yt_legend i.sw.edit{ background:#fff; border:1.5px solid var(--main-color); }
.yt_legend i.sw.retire{ background:#fff3e3; border:1px solid #f3c48a; }
.yt_legend i.sw.now{ background:#e6f4fa; border:1px solid #bfdff0; }

/* 表格容器 */
.yt_page .table_blcok{
	margin:0; border:1px solid #e3e8ee; border-radius:12px;
	background:#fff; box-shadow:0 2px 8px rgba(0,0,0,.04);
	max-height:calc(100vh - 260px);
}
.yt_page .rwdv1_table{ border:0; margin:0; min-width:100%; }
.yt_page .tablev1_thead{ background:#f7f9fb; color:#6b7280; font-size:12.5px; font-weight:700; }
.yt_page .tablev1_thead:first-child .tablev1_th{ font-size:12px; color:#9aa3af; letter-spacing:1px; border-bottom:0; }
.yt_page .tablev1_th{
	padding:9px 8px; line-height:1.35;
	border-right:1px solid #eceff3; border-bottom:1px solid #e3e8ee;
	letter-spacing:.3px; background:#f7f9fb;
}
.yt_page .tablev1_th .field_info{
	margin:0 0 0 3px; padding:1px 7px; border-radius:999px;
	background:#e6f4fa; color:#006b9a; font-size:11px; font-weight:600; box-shadow:none;
}
.yt_page .tablev1_th .field_info:hover{ background:var(--main-color); color:#fff; }
.yt_page .tablev1_tr{ border-top:1px solid #f1f4f8; transition:background .12s; }
.yt_page .tablev1_tr:nth-child(even){ background:#fff; }
.yt_page .tablev1_tr:nth-child(even) .tablev1_td.fixed_precolumn,
.yt_page .tablev1_tr:nth-child(even) .tablev1_td.fixed_lastcolumn{ background:#fff; }
.yt_page .tablev1_tr:hover,
.yt_page .tablev1_tr:hover .tablev1_td.fixed_precolumn,
.yt_page .tablev1_tr:hover .tablev1_td.fixed_lastcolumn{ background:#f4fafd; }
.yt_page .tablev1_td{
	padding:6px 8px; border-right:1px solid #f1f4f8;
	font-size:13.5px; font-variant-numeric:tabular-nums;
	display:flex; flex-direction:column; justify-content:center;
}
.yt_page .tablev1_td .mob_r{ text-align:right; line-height:1.5; }
.yt_page .tablev1_td.fixed_precolumn .mob_r{ text-align:center; font-weight:600; color:#374151; }
.yt_page .tablev1_td.fixed_lastcolumn .mob_r{ font-weight:600; }
.yt_page .tablev1_td.fixed_lastcolumn .mob_r[id^='fr_sy_']{ color:var(--main-color); font-weight:700; }

/* 凍結欄的分隔陰影 */
.yt_page .tablev1_th.fixed_precolumn, .yt_page .tablev1_td.fixed_precolumn{ z-index:2; }
.yt_page .tablev1_td.fixed_precolumn[style*='left:50px'],
.yt_page .tablev1_th.fixed_precolumn[style*='left:50px'],
.yt_page .tablev1_td.fixed_precolumn[style*='left:90px'],
.yt_page .tablev1_th.fixed_precolumn[style*='left:90px']{ box-shadow:4px 0 8px -4px rgba(0,0,0,.12); border-right:1px solid #e3e8ee; }
.yt_page .tablev1_td.fixed_lastcolumn[style*='right:140px'],
.yt_page .tablev1_th.fixed_lastcolumn[style*='right:140px']{ box-shadow:-4px 0 8px -4px rgba(0,0,0,.12); border-left:1px solid #e3e8ee; }
.yt_page .tablev1_th.fixed_lastcolumn{ background:#f7f9fb; }

/* 可編輯輸入框：藍框、靠右、聚焦放大 */
.yt_page .tablev1_td .form_input_v1{
	height:32px; padding:0 10px;
	border:1.5px solid #bfdff0; border-radius:7px; background:#fff;
	font-size:13.5px; color:#1f2937; text-align:right; box-shadow:none;
	font-variant-numeric:tabular-nums;
}
.yt_page .tablev1_td .form_input_v1:hover{ border-color:var(--main-color); }
.yt_page .tablev1_td .form_input_v1:focus{ border-color:var(--main-color); box-shadow:0 0 0 3px rgba(0,122,176,.15); background:#fff; }
.yt_page .tablev1_td .form_input_v1.all_s_t{ font-weight:700; }

/* 特殊列：規劃起始年、退休年（年度欄上方加小標籤） */
.yt_page .tablev1_tr.yt_now, .yt_page .tablev1_tr.yt_now .fixed_precolumn, .yt_page .tablev1_tr.yt_now .fixed_lastcolumn{ background:#eef7fb; }
.yt_page .tablev1_tr.yt_retire, .yt_page .tablev1_tr.yt_retire .fixed_precolumn, .yt_page .tablev1_tr.yt_retire .fixed_lastcolumn{ background:#fff7ea; }
.yt_page .tablev1_tr.yt_now .fixed_precolumn:first-child .mob_r:before,
.yt_page .tablev1_tr.yt_retire .fixed_precolumn:first-child .mob_r:before{
	content:'起始'; display:block; margin:0 auto 1px; width:max-content;
	padding:0 5px; border-radius:999px; font-size:9.5px; line-height:13px; font-weight:700;
	background:var(--main-color); color:#fff; letter-spacing:0;
}
.yt_page .tablev1_tr.yt_retire .fixed_precolumn:first-child .mob_r:before{ content:'退休'; background:#e07b00; }
.yt_page .tablev1_tr.yt_now.yt_retire .fixed_precolumn:first-child .mob_r:before{ content:'起始・退休'; background:#e07b00; }

/* 空狀態 */
.yt_empty{
	padding:44px 20px; text-align:center;
	border:1px dashed #cfd6de; border-radius:12px; background:#fbfcfd; color:#6b7280;
}
.yt_empty i{ font-size:34px; color:#c4ccd6; display:block; margin-bottom:10px; }
.yt_empty h4{ margin:0 0 6px; font-size:16px; font-weight:700; color:#374151; }
.yt_empty p{ margin:0; font-size:13.5px; line-height:1.7; }

/* 檢視資料內：頁面標題卡不需要、表格高度放寬 */
.yt_view .table_blcok{ max-height:none; }

@media screen and (max-width: 700px)
{
	.yt_hero{ padding:12px 14px; }
	.yt_legend{ margin-left:0; width:100%; }
	.yt_page .table_blcok{ max-height:none; }
}
.yt_page .tablev1_thead .tablev1_th.fixed_precolumn,
.yt_page .tablev1_thead .tablev1_th.fixed_lastcolumn{ background:#f7f9fb; }

/* 20261016 1014修訂：「財務責任與其他收支」「可儲蓄所得」群組標題字體加大、粗體 */
.yt_page .tablev1_thead:first-child .tablev1_th.yt_grp_title{ font-size:15px; font-weight:800; color:#1f2937; letter-spacing:1px; }

/* 20261018 1018(修訂V2)：年度／年齡／可支配所得／(以房養老)／生活支出 表頭字體同「財務責任與其他收支」，並置於上下兩列合併格的中央 */
.yt_page .tablev1_thead .tablev1_th.yt_main_th{ font-size:15px; font-weight:800; color:#1f2937; letter-spacing:1px; text-align:center; vertical-align:middle; }
.yt_page .tablev1_thead .tablev1_th.yt_main_th > span{ display:inline-block; position:relative; top:-16px; }
