/* 二代健保補充保費試算（kit.css 之上只加版面） */
.ns-top { padding-bottom: 4px; }
.ns-grid { max-width: 1080px; margin: 0 auto; }
.ns-form { padding-top: 8px; }
.ns-out { padding-top: 0; }
.ns-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ns-head { margin: 0 0 10px; padding: 12px 14px; background: var(--accent-soft); border-radius: 10px; font-size: .9rem; }
.ns-head b { display: block; font: 800 1.9rem/1.25 var(--font-head); color: var(--accent); font-variant-numeric: tabular-nums; }
.ns-head span { display: block; color: var(--ink-soft); font-size: .85rem; font-variant-numeric: tabular-nums; }
.ns-head.zero { background: var(--card); border: 1.5px solid var(--line-strong); }
.ns-head.zero b { color: var(--ink); }
.ns-why { margin: 0 0 4px; font-weight: 600; }
.ns-block { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.ns-block h3 { margin: 0 0 8px; font: 700 1rem/1.4 var(--font-head); }
.ns-rows { margin: 0; }
.ns-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.ns-rows dt { color: var(--ink-soft); flex: 0 1 auto; max-width: 62%; }
.ns-rows dd { margin: 0; font-variant-numeric: tabular-nums; text-align: right; }
.ns-rows .sum { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.ns-rows .sum dt { color: var(--ink); font-weight: 700; }
.ns-steps { margin: 0; }
.ns-steps div { padding: 7px 0; border-bottom: 1px dotted var(--line); }
.ns-steps div:last-child { border-bottom: 0; }
.ns-steps dt { font-size: .82rem; color: var(--ink-soft); }
.ns-steps dd { margin: 2px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ns-steps div:last-child dd { font-weight: 700; }
.ns-law { font-size: .86rem; color: var(--ink-soft); margin: 12px 0 0; }
.ns-law a { color: var(--ink-soft); }
.ns-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.ns-pro { margin-top: 22px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ns-pro h3 { font-size: 1rem; margin: 18px 0 8px; }
.ns-add { display: grid; grid-template-columns: 1fr; gap: 8px; align-items: end; }
.ns-add .field { margin-bottom: 0; }
.ns-table-wrap { overflow-x: auto; margin-top: 12px; }
.ns-table { width: 100%; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.ns-cap { font-size: 1rem; margin: 14px 0 0; }
.receipt .r-total.zero b { color: var(--ink-soft); }
.ns-table th, .ns-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.ns-table th:first-child, .ns-table td:first-child, .ns-table th:nth-child(2), .ns-table td:nth-child(2) { text-align: left; white-space: normal; }
.ns-table td:first-child { min-width: 4.5em; }
.ns-table td small { display: block; color: var(--ink-soft); font-size: .78rem; }
.ns-table tfoot th, .ns-table tfoot td { font-weight: 800; border-top: 2px solid var(--ink); }
.ns-del { min-height: 40px; min-width: 40px; border: 1px solid var(--line); background: var(--paper); border-radius: 8px; cursor: pointer; color: var(--ink-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ns-disclaim { font-size: .84rem; color: var(--ink-soft); margin-top: 18px; }
.ns-stamp { font-size: .78rem; color: #555; margin-top: 14px; }
.ns-print-head p { margin: 0 0 4px; }
/* 手機：結果在畫面外時，底部固定一條金額，點了捲到明細 */
.ns-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--paper); border: 0; width: 100%; font: 700 .95rem var(--font-body); cursor: pointer; transform: translateY(110%); transition: transform .2s; }
.ns-bar b { font: 800 1.35rem/1 var(--font-head); color: #ffd9cc; font-variant-numeric: tabular-nums; }
.ns-bar.on { transform: none; }
@media (prefers-reduced-motion: reduce) { .ns-bar { transition: none; } }
@media (max-width: 480px) { .ns-net { display: none; } .ns-table { font-size: .85rem; } .ns-table th, .ns-table td { padding: 8px 4px; } }
@media (min-width: 640px) { .ns-add { grid-template-columns: 1fr auto; } }
@media (min-width: 960px) {
  .ns-bar { display: none; }
  .ns-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 24px; align-items: start; padding: 0 16px; }
  .ns-grid > .kit-wrap { max-width: none; margin: 0; padding-left: 0; padding-right: 0; }
  .ns-out { position: sticky; top: 76px; padding-top: 8px; }
  .ns-grid[data-paid="1"] .ns-out { position: static; }
  .ns-top { max-width: 1080px; }
}
@media print {
  .ns-grid { display: block; }
  .ns-out { position: static; }
  .ns-disclaim { font-size: .75rem; }
  .ns-law a { color: #333; text-decoration: none; }
  .ns-pro { border: 0; padding: 0; background: none; }
  .ns-pro > :not(#ns-ledger) { display: none; }
  @page { size: A4; margin: 16mm; }
}
