/* 購屋房貸完整試算（t105）樣式；沿用 finance-v2.css 的 fv-* 零件 */
.mg-grp{font:700 15px var(--sans);margin:14px 0 8px;padding-left:9px;border-left:3px solid var(--c);color:var(--ink)}
.mg-grp:first-child{margin-top:0}
.mg-opt{margin:2px 0 12px;border:1px dashed var(--line);border-radius:10px;padding:6px 10px}
.mg-opt summary{cursor:pointer;font-weight:600;font-size:13.5px;color:var(--c)}
#t105 select,#t105 input{max-width:100%}
.mg-from3 td:nth-child(n+3),.mg-from3 th:nth-child(n+3),.mg-from2 td:nth-child(n+2),.mg-from2 th:nth-child(n+2){text-align:left}
.mg-from3 td:nth-child(n+3){font-size:12.5px;color:var(--sub);min-width:140px}
#mg-rules td:nth-child(2),#mg-rules td:nth-child(3){white-space:nowrap;min-width:0;font-size:inherit;color:inherit}
#mg-fees td:nth-child(2){min-width:0;font-size:inherit;color:inherit;text-align:right;white-space:nowrap}
#mg-fees th:nth-child(2){text-align:right}
#mg-rules th:nth-child(2),#mg-rules th:nth-child(3){text-align:right}
#mg-rules tr.mg-bind td{background:color-mix(in srgb,var(--c) 12%,transparent);font-weight:700}
#mg-rules tr.mg-off td{color:var(--sub)}
.mg-unconf{color:#B45309;font-weight:600}
.mg-src{font-size:12.5px;line-height:1.7;color:var(--sub);margin:4px 0;word-break:break-all;overflow-wrap:anywhere}
#mg-out .tbwrap{max-width:100%}
#mg-out .fv-ul li,#mg-out .fv-calc{overflow-wrap:anywhere}
@media(max-width:480px){#mg-out table.tb{font-size:12.5px}#mg-out table.tb th,#mg-out table.tb td{padding:6px 5px}.mg-from3 td:nth-child(n+3){min-width:120px}}
#mg-rules td:first-child{min-width:120px}
.mg-src-sub{margin-left:1em}
