/* vat-refund - "VAT refund" sheet (opt-in key vatRefundSplit). Reuses the split-charge sheet vocabulary (.sc-*): same
   modal, summary strip, cards, pill pickers and footer. Only what is new lives here. Tokens only (light and dark). */
.loan-form-modal.sc-modal.vr-modal .modal-title::before { content: none; }
.vr-bycard { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.vr-bc { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-void, var(--bg-raised)); font-size: 13px; }
.vr-bc-n { font-weight: 600; color: var(--white); }
.vr-bc-v { color: var(--off-white); font-variant-numeric: tabular-nums; }

/* one watch line: name, then the weight and the share side by side */
.vr-line { grid-template-columns: minmax(0, 1fr) minmax(0, 340px) 44px; align-items: start; }
.vr-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.vr-f { display: grid; gap: 4px; min-width: 0; }
.vr-f > span { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--off-white); }
.vr-f input { width: 100%; min-width: 0; text-align: right; }
.vr-src[data-src="missing"] { color: var(--red, #d64545); font-weight: 600; }
.vr-note { margin-top: 10px; font-size: 12.5px; color: var(--off-white); min-height: 1em; }
.vr-vline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.vr-vline:last-child { border-bottom: 0; }
.vr-vamt { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the VAT refund box on a watch (own classes; same look as the cost rows and inline forms of the watch card) */
.vr-box-title { font-size: 11px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--off-white); margin-bottom: 12px; }
.vr-cost-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--white); padding: 3px 0; }
.vr-cost-label { color: var(--off-white); min-width: 0; }
.vr-cost-val { color: var(--white); text-align: right; }
.vr-cost-total { border-top: 1px solid var(--border); margin-top: 2px; padding-top: 6px; font-weight: 600; }
.vr-cost-total .vr-cost-label { color: var(--white); }
.vr-form { display: grid; gap: 12px; align-items: end; margin-top: 0; }
.vr-form > .btn { box-sizing: border-box; height: 40px; min-height: 40px; padding: 0 14px; }
.vr-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vr-field > span { font-size: 11px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--off-white); }
.vr-field input { background: var(--bg-void); border: 1.5px solid var(--border); border-radius: 8px; color: var(--white); padding: 0 10px; font-size: 13px; height: 40px; min-height: 40px; box-sizing: border-box; }
.vr-field input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 12%, transparent); }
.vr-field input::placeholder { color: var(--faint); }
@media (max-width: 768px) { .vr-field input { font-size: 16px; height: 44px; min-height: 44px; } .vr-cost-row { font-size: 15px; } }
.vr-box-sub { font-size: 13px; color: var(--off-white); margin: 2px 0 10px; line-height: 1.4; }
.vr-box-actions { margin-top: 10px; }
.vr-box .vr-form { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px; }
.vr-box .vr-form > .btn { justify-self: stretch; white-space: nowrap; }

@media (max-width: 899px) {
  .vr-line { grid-template-columns: minmax(0, 1fr) 44px; }
  .vr-fields { grid-column: 1 / -1; grid-row: 2; }
}
@media (min-width: 1100px) {
  /* the watch lines hold two inputs each: one per row, not two columns */
  .vr-lines.sc-lines { grid-template-columns: minmax(0, 1fr); }
}
html.wf-vr-blocked #inv-vat-refund-btn,
html.wf-vr-blocked #inv-vat-refund-mobile-btn { display: none !important; }
/* Phone: the Inventory entry button in the same outline style as the split-charge one. */
#inv-vat-refund-mobile-btn { min-height: 46px; border-radius: 12px; margin-bottom: 12px; }
@media (max-width: 768px) {
  /* phone: amount on its own row, then each action full width at the 44px touch floor */
  .vr-box .vr-form { grid-template-columns: minmax(0, 1fr); }
  .vr-box .vr-form > .btn { min-height: 44px; height: 44px; }
  .vr-box-actions .btn { width: 100%; min-height: 44px; }
}

/* The close button has its own class: scout.css sets `.sc-x { position: relative }` on phones, which pulled the split-charge X out of its corner. */
.vr-x { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; min-height: 44px !important; border-radius: 50% !important; border: 1px solid var(--border); background: var(--bg-raised); color: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; z-index: 2; }
.vr-x svg { width: 16px; height: 16px; }
.vr-x:hover { border-color: var(--blue, var(--gold)); }
@media (max-width: 768px) { .vr-x { top: 12px; right: 12px; } }
.vr-f input { padding-right: 14px !important; }
.vr-box .vr-form > .btn { text-align: center; justify-content: center; }

/* 2026-10-27: VAT refund / FX adjustment. Kind switch, original amount, sold-watch reason, cost before -> after per line,
   the inline Mark posted / Undo forms, and the gross / refund / net rows on the watch (each refund row opens it). */
.vr-kind { margin: 0 0 14px; }
.vr-kind .sc-seg { max-width: 420px; }
.vr-foreign { display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 8px; }
.vr-foreign input { min-width: 0; }
.vr-foreign .vr-foreign-cur { text-transform: uppercase; text-align: center; }
.vr-reason-g[hidden] { display: none !important; }
.vr-move { display: block; margin-top: 2px; font-size: 12px; color: var(--off-white); font-variant-numeric: tabular-nums; }
.vr-move:empty { display: none; }
.vr-src[data-src="cost_fallback"] { color: var(--amber, #c98a1b); font-weight: 600; }
.vr-confirm { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; width: 100%; }
.vr-confirm .vr-f { flex: 1 1 200px; }
.vr-confirm .vr-f input { text-align: left; }
.vr-confirm .vr-f input.currency-input { text-align: right; }
.vr-confirm .sc-foot-r { margin-left: auto; }
.vr-tax-sub { font-size: 13px; color: var(--off-white); margin: 2px 0 12px; line-height: 1.4; }
.vr-tax-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vr-tax-actions .btn[hidden] { display: none !important; }
.vr-cost-card { display: grid; gap: 2px; }
button.vr-cost-link { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; border-radius: 6px; }
button.vr-cost-link:hover .vr-cost-label { color: var(--white); text-decoration: underline; }
@media (max-width: 768px) {
  .vr-tax-actions .btn { flex: 1 1 100%; min-height: 44px; }
  button.vr-cost-link { min-height: 44px; }
  .vr-confirm .sc-foot-r { width: 100%; display: flex; gap: 8px; }
  .vr-confirm .sc-foot-r .btn { flex: 1 1 0; min-height: 44px; }
}
/* the card field for a long card list: type to find it; the chosen card as one row with Change */
.vr-card-chosen { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px 6px 12px; border: 1.5px solid var(--gold); border-radius: 10px; background: var(--bg-raised); }
.vr-card-ic { display: inline-flex; width: 18px; height: 18px; color: var(--gold); flex: none; }
.vr-card-ic svg { width: 18px; height: 18px; }
.vr-card-name { flex: 1 1 auto; min-width: 0; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.vr-card-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.vr-card-quick-l { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--off-white); }
.vr-card-q-pill { min-height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-void, var(--bg-raised)); color: var(--white); font: inherit; font-size: 13px; cursor: pointer; }
.vr-card-q-pill:hover { border-color: var(--gold); }
.vr-card-hits[hidden] { display: none !important; }
@media (max-width: 768px) { .vr-card-q-pill { min-height: 44px; } }
/* 10-27 shot review: money never wraps away from its minus sign; the refund rows (buttons) keep the row's type size; actions centred */
.vr-cost-val { white-space: nowrap; flex: none; }
button.vr-cost-link { font-size: 12.5px; padding: 3px 0; color: var(--white); }
.vr-tax-actions .btn { justify-content: center; text-align: center; }
@media (max-width: 768px) { button.vr-cost-link { font-size: 15px; } }

/* Money & Pricing editor: the refund / credit lines kept read-only under the payment lines, and gross / refund / net (2026-10-27).
   Shown for every watch with a credit line (imported "Vat Refund" lines included), so it is not behind the key. */
.rce-credits { margin: 8px 0 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-void, var(--bg-raised)); display: grid; gap: 8px; }
.rce-credit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--off-white); }
.rce-credit-hint { font-size: 11.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--off-white); }
.rce-credit-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--white); min-width: 0; }
.rce-credit-name { min-width: 0; overflow-wrap: anywhere; }
.rce-credit-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--border); font-size: 11px; color: var(--off-white); }
.rce-credit-amt { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--green, var(--white)); }
.rce-credit-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.rce-credit-sum > div { display: grid; gap: 2px; min-width: 0; }
.rce-credit-sum span { font-size: 11px; color: var(--off-white); }
.rce-credit-sum b { font-size: 14px; font-weight: 600; color: var(--white); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rce-credit-sum > div:last-child { text-align: right; }
