/* Generated from products/design-system/shared/tax-tool by Navorina/scripts/sync-ds-invoice-document.mjs. Do not edit. */
/* Tax tool (shared/tax-tool.js): the freelancer tax calculator on navorina.ai/tools/tax/<country>. It sits in the
   guide calculator island (shared/guide-page.css: island, fields, result figures) and adds only what a tax tool has:
   short segmented choices (regime, month or year, currency) and the next filing and payment dates. */

.nv-tax-field { display: grid; gap: 6px; min-width: 0; border: 0; }
.nv-tax-field > span { color: var(--nv-text-secondary); font-size: var(--nv-type-footnote-size, 12px); font-weight: 500; line-height: 16px; }
.nv-tax-input[hidden] { display: none; }

/* Segmented (DS Segmented control): separate 32 px pills that wrap, the chosen one takes the primary fill.
   Native radios underneath, so arrow keys move the choice. */
.nv-tax-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.nv-tax-seg__opt { position: relative; display: inline-flex; }
.nv-tax-seg__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.nv-tax-seg__opt span { display: inline-flex; min-height: 32px; align-items: center; padding: 0 12px; border-radius: 999px; background: var(--nv-guide-well); color: var(--nv-text-secondary); font-size: 13px; font-weight: 500; line-height: 16px; white-space: nowrap; transition: background-color .16s ease, color .16s ease; }
.nv-tax-seg__opt:hover span { background: var(--nv-guide-well-hover); color: var(--nv-text-primary); }
.nv-tax-seg__opt input:checked + span { background: var(--nv-text-primary); color: var(--nv-pub-page, var(--nv-guide-island)); }
.nv-tax-seg__opt input:focus-visible + span { box-shadow: 0 0 0 2px var(--nv-text-tertiary); }

/* Next dates: label left, the date and its period right; same rows before and after the browser fills the date. */
.nv-tax-dues { display: grid; gap: 2px; margin-block-start: 16px; margin-inline: -12px; }
.nv-tax-due { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 12px; border-radius: 14px; }
.nv-tax-due:hover { background: var(--nv-guide-well); }
.nv-tax-due dt { color: var(--nv-text-secondary); font-size: var(--nv-type-footnote-size, 12px); line-height: 16px; }
.nv-tax-due dd { margin: 0; text-align: end; font-size: var(--nv-type-body-size, 14px); line-height: 20px; }
.nv-tax-due dd strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.nv-tax-due dd span { color: var(--nv-text-tertiary); font-size: var(--nv-type-footnote-size, 12px); }

.nv-tax-regime-note { margin-block-start: 12px; color: var(--nv-text-tertiary); font-size: var(--nv-type-footnote-size, 12px); line-height: 16px; }
.nv-tax-empty { padding: 16px 0; color: var(--nv-text-secondary); font-size: var(--nv-type-body-size, 14px); line-height: 20px; }

/* Worked example: the answer in one line, on the canvas under the calculator. */
.nv-tax-example { max-width: 64ch; color: var(--nv-pub-text-2, var(--nv-text-secondary)); font-size: 16px; line-height: 1.6; }
.nv-tax-example strong { color: var(--nv-pub-text, var(--nv-text-primary)); font-weight: 600; }

@container nv-pub (max-width: 640px) {
  .nv-tax-due { align-items: flex-start; flex-direction: column; gap: 2px; }
  .nv-tax-due dd { text-align: start; }
}
