/* 財稅工具頁：沿用站內深綠＋金色，與 document-section 版面一致 */
.tool-table-wrap{overflow-x:auto;margin:14px 0 6px;border:1px solid #d9e2dc;border-radius:10px;background:#fff}
.tool-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.75;min-width:520px}
.tool-table th,.tool-table td{padding:11px 14px;border-bottom:1px solid #e3e9e4;text-align:left;vertical-align:top}
.tool-table thead th{background:#123e44;color:#fff;font-weight:600;font-size:14px;letter-spacing:.03em}
.tool-table tbody th{color:#173b40;font-weight:600;width:38%}
.tool-table td{color:#264f4e;font-variant-numeric:tabular-nums}
.tool-table small{display:block;font-size:12.5px;font-weight:400;color:#6b7e71;margin-top:2px}
.tool-table .tool-src-row td{padding-top:0;border-bottom:1px solid #d9e2dc;background:#fbfcf9}
.tool-table tr:has(+ .tool-src-row) th,.tool-table tr:has(+ .tool-src-row) td{border-bottom:0}
.tool-src{display:block;font-size:12px;line-height:1.8;color:#6b7e71}
.tool-src a{color:#14555b;text-decoration:underline;text-decoration-color:#b9cbc3;text-underline-offset:3px;overflow-wrap:anywhere}
.tool-hint{font-size:14px;line-height:1.85;color:#5f7268}
.tool-note{margin-top:28px;padding:14px 16px;border-left:3px solid #ab8951;background:#f5f7f1;font-size:14px;line-height:1.85;color:#4a6158}
.tool-calendar td strong{display:block;color:#173b40}
.tool-form{display:grid;gap:14px;padding:20px;border:1px solid #d9e2dc;border-radius:12px;background:#fbfcf9;max-width:640px}
.tool-field{display:grid;gap:6px}
.tool-field span{font-size:14px;font-weight:600;color:#234e4c}
.tool-field input,.tool-field select{min-height:48px;padding:10px 12px;border:1px solid #c9d7cd;border-radius:8px;background:#fff;color:#173b40;font:400 16px/1.5 'Noto Sans TC','Microsoft JhengHei',sans-serif;box-sizing:border-box;width:100%}
.tool-field input:focus,.tool-field select:focus{outline:2px solid #a88845;outline-offset:1px}
.tool-form .button{justify-self:start;min-height:48px}
.tool-estimate{border:1px dashed #c9d7cd;border-radius:10px;padding:4px 14px 14px;background:#fff}
.tool-estimate>summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:600;color:#14555b;font-size:14px}
.tool-estimate[open]{display:grid;gap:12px}
.tool-row{display:grid;grid-template-columns:1fr 1.3fr;gap:10px}
.tool-result{margin-top:18px;max-width:760px}
.tool-result:empty{display:none}
.tool-figures{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px}
.tool-figures>div,.tool-compare>div{padding:16px;border:1px solid #d9e2dc;border-radius:12px;background:#fff}
.tool-figures span,.tool-compare span{display:block;font-size:13px;color:#6b7e71}
.tool-figures strong,.tool-compare strong{display:block;font-size:26px;line-height:1.4;color:#123e44;font-variant-numeric:tabular-nums}
.tool-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tool-compare small{display:block;font-size:12.5px;line-height:1.7;color:#6b7e71;margin-top:4px}
.tool-compare .is-low{border-color:#ab8951;background:#fffaf0;box-shadow:inset 0 0 0 1px #ab8951}
.tool-sub{font-size:14px;line-height:1.9;color:#4a6158;margin-top:12px}
.tool-error{color:#9b3b2f;font-weight:600}
.tool-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:14px}
.tool-card{display:flex;flex-direction:column;gap:8px;padding:20px;border:1px solid #d9e2dc;border-radius:12px;background:#fff;color:inherit;text-decoration:none;transition:border-color .18s,background .18s}
.tool-card strong{font-size:17px;color:#123e44}
.tool-card span{font-size:14px;line-height:1.8;color:#5f7268}
.tool-card em{margin-top:auto;font-style:normal;font-size:14px;font-weight:600;color:#14555b}
.tool-card:hover{border-color:#95ad98;background:#fcfdf8}
@media(max-width:640px){.tool-row,.tool-compare{grid-template-columns:1fr}.tool-form{padding:16px}.tool-figures strong,.tool-compare strong{font-size:23px}.tool-table{font-size:14px}}
@media print{.tool-form,.page-sidebar{display:none}}
@media(max-width:640px){
 .tool-table-wrap{overflow:visible;border-radius:10px}
 .tool-table{min-width:0}
 .tool-table thead{display:none}
 .tool-table tr{display:block;padding:10px 0;border-bottom:1px solid #e3e9e4}
 .tool-table th,.tool-table td,.tool-table tbody th{display:block;width:auto;border:0;padding:3px 14px}
 .tool-table tbody th{font-size:15px}
 .tool-table td[data-label]:before{content:attr(data-label) '　';color:#8a713f;font-size:12.5px;font-weight:600}
 .tool-table .tool-src-row{padding-top:0}
 .tool-table tr:has(+ .tool-src-row){border-bottom:0;padding-bottom:2px}
}
.tool-row.is-bad input{border-color:#b5483a;box-shadow:0 0 0 1px #b5483a}
.tool-form-wide{max-width:760px}
.tool-fieldset{border:1px solid #d9e2dc;border-radius:10px;padding:10px 14px 14px;display:grid;gap:12px;background:#fff;margin:0}
.tool-fieldset[hidden]{display:none}
.tool-fieldset legend{font-weight:700;color:#123e44;padding:0 6px;font-size:15px}
.tool-check{display:flex;align-items:center;gap:8px;min-height:44px;font-size:14px;color:#234e4c}
.tool-check input{width:20px;height:20px}
.tool-table tr.is-best th,.tool-table tr.is-best td{background:#fffaf0;color:#123e44;font-weight:700}
.tool-figures small{display:block;margin-top:4px}
