/* 共用表單、表格、結果樣式沿用 mortgage 的 site.css 元件。 */
.rb-tool { min-width: 0; }
.rb-tool .table-scroll { max-width: 100%; }
.rb-items { min-width: 940px; }
.rb-items input[type=text], .rb-items select { width: 100%; min-width: 95px; min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.rb-items tbody th { width: 220px; min-width: 190px; }
.rb-items small { display: block; margin-top: 6px; }
.rb-items .rb-auto { font-size: .85rem; padding: 4px 8px; margin-top: 6px; }
.rb-check { display: flex; gap: 6px; align-items: start; }
.rb-check input { width: 22px; height: 22px; flex: none; }
.rb-message { color: #a13516; }
#rb-detail { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; padding: 12px; background: var(--soft); border-radius: 8px; }
.rb-formulas { overflow-wrap: anywhere; }
#rb-result strong { overflow-wrap: anywhere; }
@media print {
  header, footer, main > :not(#rb-tool), #rb-tool > :not(.step), #rb-tool > .step:not(:last-child), #rb-tool > .step:last-child > :not(#rb-result) { display: none !important; }
  #rb-tool, #rb-tool > .step:last-child, #rb-result { display: block; margin: 0; padding: 0; border: 0; width: 100%; background: white; color: black; }
  #rb-result .total-box, #rb-result > table, #rb-result > p:last-child { display: none; }
  #rb-detail { padding: 0; background: white; }
}
