/* =============================================
   /serviceplan/show -- the service record as a PAGE

   The record itself is the shared .dsb-record sheet in dsb.css; only the frame around it is here.
   The page exists for the links in service notification e-mails, and as the target the print
   function renders (see service-record-print.css).
   ============================================= */

.dsb-record__page {
    max-width: calc(720px * var(--dsb-modal-scale));   /* the pop-up's own width (.dsb-modal--wide) -- the same sheet, at the same measure */
    padding: 4px 0 8px;
}


/* =============================================
   THE RECORD'S EDIT FORM (V2 2.26.25 / 2.26.29, guide .dg2-srch-rec__form)

   The sheet's rows as fields, in the same order. THREE blocks: the service itself, the reminder
   group (a hairline, air, a group title and one grey line, its two fields tight under it), and the
   OE upload callout after a second hairline -- the upload concerns the whole record, not the
   reminder. The fields are the shared .dsb-field / .dsb-date / .dsb-num / .dsb-att (dsb.css).
   Guide rem values converted x16.

   NOTE: this file is linked by Serviceplan/Show.cshtml only. A page that opens the record pop-up
   with the edit form must link it too (_ServiceRecordModal is rendered on several pages).
   ============================================= */
.dsb-record__form {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px 17.6px;
    padding: 8px 0 9.6px;
}
.dsb-record__form > .dsb-field { grid-column: span 2; }
.dsb-record__form > .dsb-record__half { grid-column: span 3; }
.dsb-record__form > .dsb-record__full { grid-column: 1 / -1; }
.dsb-record__form .dsb-field textarea { min-height: 96px; }
/* A hint that belongs to the row above -- the grid's gap is already its air. */
.dsb-record__form .dsb-field__hint { margin-top: -6.4px; }
/* The inline notice under a form group, full width of the grid. */
.dsb-record__form .dsb-alert { margin: 0; }

/* THE REMINDER GROUP: a hairline closes the record's own fields, then generous air, then the group
   title with one grey line saying what the group is for. */
.dsb-record__grp {
    margin-top: 8px;
    padding-top: 20.8px;
    border-top: 1px solid var(--dsb-border-color);
}
.dsb-record__grp .dsb-sec-h { margin: 0; font-size: 14.72px; }
.dsb-record__grp .dsb-sec-sub {
    margin: 3.2px 0 0;
    font-size: 13.44px;
    line-height: 1.45;
    color: var(--dsb-text-muted);
}
/* The title's fields sit closer than the grid's gap: they belong to the title, not to the gap. */
.dsb-record__grp + .dsb-field,
.dsb-record__grp + .dsb-field + .dsb-field { margin-top: -4.8px; }
/* The separator before the upload: the same hairline, then the grid's gap + 4.8px of air. */
.dsb-record__rule {
    margin: 8px 0 4.8px;
    height: 0;
    border: 0;
    border-top: 1px solid var(--dsb-border-color);
}

/* THE OE UPLOAD CALLOUT: the one irreversible choice in the form. A callout in the key facts strip's
   blue (the validated navy ramp: --dsb-navy-light as edge, the same at 22 % as fill), the cloud at
   the left, a title and its consequence, and the switch (.dsb-toggle) at the right -- the one
   decision that cannot be undone gets the one control that reads as a decision. On, the box steps
   one shade firmer (34 %): the box says what the switch says.
   Markup:
     <div class="dsb-record__full dsb-record__oecall">
       <i class="fa-solid fa-cloud-arrow-up dsb-record__oecall-ico" aria-hidden="true"></i>
       <div><div class="dsb-record__oecall-t">...</div><p class="dsb-record__oecall-d">... <strong>...</strong></p></div>
       <label class="dsb-toggle"><input type="checkbox"><span class="dsb-toggle__slider"></span></label>
     </div> */
.dsb-record__oecall {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-top: 0;
    padding: 16px 18.4px;
    background: rgba(162,180,210,.22);
    border: 1px solid var(--dsb-navy-light);
    border-radius: var(--dsb-radius);
    transition: background-color .18s ease, border-color .18s ease;
}
.dsb-record__oecall:has(input:checked) { background: rgba(162,180,210,.34); }
.dsb-record__oecall-ico {
    font-size: 22px;
    color: var(--dsb-link-color);
}
/* The guide declares 600; Roboto is loaded at 300/400/500/700 only, so 700 is what it renders. */
.dsb-record__oecall-t {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 15.2px;
    color: var(--dsb-text-color);
}
.dsb-record__oecall-d {
    margin: 3.2px 0 0;
    font-size: 13.6px;
    line-height: 1.45;
    color: var(--dsb-text-muted);
}
.dsb-record__oecall-d strong {
    color: var(--dsb-text-color);
    font-weight: 500;
}

/* THE INVOICE UPLOAD (2026-10-29): one file under its group title, then what was read from it — the number and
   the date as read-only fields side by side (the sheet's own .dsb-field[readonly]), and the lines as the invoice
   pop-up's table (.dsb-table--owncard). The reading moment is the form's spinner with one line of text. */
.dsb-record__invoice {
    display: grid;
    gap: 12.8px;
}
.dsb-record__invoice-scanning {
    display: flex;
    align-items: center;
    gap: 9.6px;
    font-size: 13.6px;
    color: var(--dsb-text-muted);
}
.dsb-record__invoice-read {
    display: grid;
    gap: 12.8px;
}
.dsb-record__invoice-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 17.6px;
}
.dsb-record__invoice-lines .dsb-invoice__qty,
.dsb-record__invoice-lines .dsb-record__invoice-qty {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.dsb-record__invoice-read .dsb-field__hint { margin-top: 0; }

/* THE MOMENTS BETWEEN: the form and the sheet fade (window.dsbFold owns the height glide; its
   .dsb-fold transition must win, hence :not(.dsb-fold) -- the guide found a plain rule here turned
   the Edit fold into a cut), and the footer's buttons fade out and take no clicks while the record
   says "saved" -- they stay in the flow, so the pop-up keeps its height. */
.dsb-record__form:not(.dsb-fold) { transition: opacity .18s ease; }
.dsb-record__kv:not(.dsb-fold) { transition: opacity .22s ease; }
.dsb-record__form.is-out,
.dsb-record__kv.is-out { opacity: 0; }
.dsb-record__card .dsb-modal__footer { transition: opacity .18s ease; }
/* Print (and Close, when shown) at the left, the actions at the right: the space is pushed after the last of them. */
.dsb-record__card .dsb-record__docs { margin-right: 0; }
.dsb-record__card .dsb-record__close { margin-right: auto; }
.dsb-record__card .dsb-modal__footer:not(:has(.dsb-record__close)) .dsb-record__docs { margin-right: auto; }
.dsb-record__card .dsb-modal__footer.is-fading {
    opacity: 0;
    pointer-events: none;
}

/* =============================================
   THE SAVED STAGE (V2 2.26.25, third pass, guide .dg2-srch-rec__saved)

   A stage of its own between the form and the sheet: the form's content fades, this stage takes the
   form's exact height (the pop-up does not move), a soft green disc scales in, the ring draws itself
   clockwise from the top (.55s), the tick is drawn in two strokes as the ring closes (.35s), a thin
   ring pulses outward once, and the words rise under it. It holds ~1.9s, fades, and glides to the
   next block's height. Run by window.dsbSaved.show(stageEl, { height, toHeight }) (dsb-fields.js).
   Reduced motion: everything simply stands complete, no glide.
   Markup:
     <div class="dsb-record__saved" role="status" hidden>
       <svg class="dsb-record__saved-svg" viewBox="0 0 120 120" aria-hidden="true">
         <circle class="disc" cx="60" cy="60" r="52"/><circle class="pulse" cx="60" cy="60" r="52"/>
         <circle class="ring" cx="60" cy="60" r="52"/><path class="tick" d="M38 61.5 53 76 83 45"/>
       </svg>
       <b>Changes saved</b>
       <span>The record and the vehicle's history are up to date.</span>
     </div>
   ============================================= */
.dsb-record__saved {
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 4.8px;
    box-sizing: border-box;
    padding: 24px 0;
    overflow: hidden;
    transition: height .38s cubic-bezier(.2,.7,.2,1), opacity .18s ease;
}
.dsb-record__saved.is-fading { opacity: 0; }
.dsb-record__saved-svg {
    display: block;
    width: 128px;
    height: 128px;
    margin-bottom: 17.6px;
    overflow: visible;
}
/* The disc is the button green at 12 % -- a literal: it equals --dsb-pill-updated-bg, but a pill
   token is not this disc's source, and a token cannot take an alpha of --theme-action here. */
.dsb-record__saved-svg .disc {
    fill: rgba(59,156,104,.12);
    transform-origin: 50% 50%;
    transform: scale(.6);
    opacity: 0;
}
.dsb-record__saved-svg .ring {
    fill: none;
    stroke: var(--theme-action);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 327 327;
    stroke-dashoffset: 327;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}
.dsb-record__saved-svg .pulse {
    fill: none;
    stroke: var(--theme-action);
    stroke-width: 2;
    opacity: 0;
    transform-origin: 50% 50%;
}
.dsb-record__saved-svg .tick {
    fill: none;
    stroke: var(--theme-action-dark);
    stroke-width: 6.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 66 66;
    stroke-dashoffset: 66;
}
.dsb-record__saved b {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 800;
    font-size: 21.6px;
    letter-spacing: -.015em;
    color: var(--dsb-head-color);
    opacity: 0;
    transform: translateY(8px);
}
.dsb-record__saved span {
    font-size: 14.72px;
    color: var(--dsb-text-muted);
    opacity: 0;
    transform: translateY(8px);
}
.dsb-record__saved.is-shown .disc  { animation: dsb-saved-disc .45s cubic-bezier(.2,.9,.3,1.2) both; }
.dsb-record__saved.is-shown .ring  { animation: dsb-saved-draw .55s cubic-bezier(.4,0,.2,1) .05s both; }
.dsb-record__saved.is-shown .tick  { animation: dsb-saved-draw .35s cubic-bezier(.3,0,.2,1) .42s both; }
.dsb-record__saved.is-shown .pulse { animation: dsb-saved-pulse .75s ease-out .6s both; }
.dsb-record__saved.is-shown b      { animation: dsb-saved-rise .35s ease-out .55s both; }
.dsb-record__saved.is-shown span   { animation: dsb-saved-rise .35s ease-out .68s both; }
@keyframes dsb-saved-disc  { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes dsb-saved-draw  { to { stroke-dashoffset: 0; } }
@keyframes dsb-saved-pulse { from { opacity: .45; transform: scale(1); } to { opacity: 0; transform: scale(1.32); } }
@keyframes dsb-saved-rise  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 620px) {
    .dsb-record__form > .dsb-field,
    .dsb-record__form > .dsb-record__half { grid-column: 1 / -1; }
    .dsb-record__invoice-facts { grid-template-columns: minmax(0, 1fr); }
    .dsb-record__oecall { grid-template-columns: auto minmax(0, 1fr); }
    .dsb-record__oecall .dsb-toggle { grid-column: 2; }
}
@media (prefers-reduced-motion: reduce) {
    .dsb-record__oecall, .dsb-record__saved, .dsb-record__form, .dsb-record__kv,
    .dsb-record__card .dsb-modal__footer { transition: none; }
    .dsb-record__saved.is-shown .disc,
    .dsb-record__saved.is-shown .ring,
    .dsb-record__saved.is-shown .tick,
    .dsb-record__saved.is-shown b,
    .dsb-record__saved.is-shown span { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
    .dsb-record__saved.is-shown .ring { transform: rotate(-90deg); }
    .dsb-record__saved.is-shown .pulse { animation: none; }
}

/* ===== The planned-service lifecycle in the record form (AB#4604) =====
   Two groups the guide's form does not have: the car's planned services to tick, and typed reminders.
   Built from the form's own parts (the group title, .dsb-field, .dsb-select, .dsb-date, .dsb-num) —
   only their arrangement lives here. */

/* Planned services: one row per plan — checkbox, what it is, where it stands. */
.dsb-record__planned {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    overflow: hidden;
}
.dsb-record__planned li + li { border-top: 1px solid var(--dsb-border-color); }
.dsb-record__planned label {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 0;
    padding: 10px 14px;
    font-size: 14.4px;
    font-weight: 400;
    color: var(--dsb-text-color);
    cursor: pointer;
}
.dsb-record__planned input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--theme-action);
}
.dsb-record__planned li:not(.is-info):not(.is-locked) label:hover { background: var(--dsb-fld-hover-bg); }
.dsb-record__planned-label small {
    display: block;
    font-size: 12.8px;
    color: var(--dsb-navy-soft);
}
/* Another workshop's plan, and a plan this record already closed: seen, not changed. */
.dsb-record__planned li.is-info label,
.dsb-record__planned li.is-locked label { cursor: default; }
.dsb-record__planned li.is-info label { color: var(--dsb-navy-soft); background: #f7f8fa; }

/* Reminders: Type · Reminder date · Expected mileage · remove, and a conflict line under them. */
.dsb-record__reminders { display: grid; gap: 12px; }
.dsb-record__reminders:empty { display: none; }
.dsb-record__reminder {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 36px;
    gap: 12.8px 17.6px;
    align-items: start;
}
.dsb-record__reminder-x {
    align-self: end;
    width: 36px;
    height: var(--dsb-ctl-h);
    border: 0;
    border-radius: var(--dsb-radius);
    background: transparent;
    color: var(--dsb-navy-soft);
    cursor: pointer;
}
.dsb-record__reminder-x:hover { background: var(--dsb-fld-hover-bg); color: var(--dsb-alert-danger-text); }
.dsb-record__reminder-x:focus-visible { outline: 2px solid var(--dsb-link-color); outline-offset: 2px; }
.dsb-record__reminder .dsb-select.is-placeholder .dsb-select__value { color: var(--dsb-placeholder-color); }

/* "Already planned: …" — Replace it / Keep both (decision Q7), in the warning family. */
.dsb-record__clash {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 9px 12px;
    border-radius: var(--dsb-radius);
    background: #fdf6e3;
    color: var(--dsb-text-color);
    font-size: 13.6px;
}
.dsb-record__clash i { color: var(--dsb-warn-ink); }
.dsb-record__clash span { flex: 1 1 200px; }
.dsb-record__clash .dsb-btn { white-space: nowrap; }
/* The picked answer keeps this form's green ring (docs/4604-design-guide-note.md: "the chosen button
   takes a green ring"). The shared .dsb-btn.is-chosen in dsb.css greys a button that is already
   chosen elsewhere; here the class marks the answer just given, and grey would read as switched off.
   !important because the shared rule pins its three colours. */
.dsb-record__clash .dsb-btn.is-chosen {
    background: transparent !important;
    border-color: var(--theme-action) !important;
    color: var(--theme-action-dark) !important;
    box-shadow: inset 0 0 0 1px var(--theme-action);
}

/* The form's first group needs no hairline above it: the pop-up's head is already the edge. */
.dsb-record__form > .dsb-record__grp:first-child { border-top: 0; padding-top: 0; margin-top: 0; }

/* The selects here (Type, a reminder's type, the times) are dsb.css's as they come: as wide as their field, and
   a long list — every service type — scrolls at the select's own cap. */

/* Propose another date: folds in under the sheet (decision R7). */
.dsb-record__propose {
    display: grid;
    gap: 9.6px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--dsb-border-color);
    max-width: 360px;
}
.dsb-record__propose-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Book kunde and the counter-proposal (2026-09-29): a day and its time, side by side as on the dashboard; Book
   kunde's warning above. */
.dsb-record__book,
.dsb-record__propose--when { max-width: 440px; }
.dsb-record__propose-was { margin: 0; color: var(--dsb-text-muted); font-size: 14px; }
.dsb-record__propose-was b { color: var(--dsb-text-color); font-weight: 600; }
.dsb-record__book .dsb-alert { margin: 0; }
.dsb-record__when { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 12px 16px; }

/* A foot waiting for the server: nothing in it can be pressed twice. */
.dsb-record__card .dsb-modal__footer.is-busy { pointer-events: none; opacity: .6; }

@media (max-width: 620px) {
    .dsb-record__reminder { grid-template-columns: minmax(0, 1fr) 36px; }
    .dsb-record__when { grid-template-columns: minmax(0, 1fr); }
    .dsb-record__reminder > .dsb-field { grid-column: 1; }
    .dsb-record__reminder-x { grid-column: 2; grid-row: 1; }
}

/* One column that may shrink: .dsb-field's implicit track is `auto`, which grows to the input's
   intrinsic width (~256px) and pushes a narrow column's field out of its cell (the reminder row). */
.dsb-record__form .dsb-field,
.dsb-record__propose .dsb-field { grid-template-columns: minmax(0, 1fr); }

/* The sheet's OE line (AB#4604): status, the Upload button, or why not and where to fix it. */
.dsb-record__oeline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dsb-record__oeline--uploaded i { color: var(--dsb-link-color); }
.dsb-record__oeline--blocked span,
.dsb-record__oeline--noteligible span { color: var(--dsb-navy-soft); font-weight: 400; }

/* ===== What the old create page did that the form now does too (AB#4604, T14–T17) ===== */

/* Completed service / Upcoming service: two chips at the top of Add service. */
.dsb-record__mode { display: flex; gap: 8px; flex-wrap: wrap; }
.dsb-record__mode .dsb-chip i { margin-right: 4px; }

/* The car's owner: status pill, name, and — when the car is ours — how to reach them. */
.dsb-record__owner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin: 6.4px 0 0;
    font-size: 14.4px;
    color: var(--dsb-text-color);
}
.dsb-record__owner span:not(.dsb-pill) { color: var(--dsb-navy-soft); }
.dsb-record__form .iti { width: 100%; }

/* A checkbox with a title and one line under it (the OE service book search). */
.dsb-record__check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}
.dsb-record__check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--theme-action); }
.dsb-record__check b { display: block; font-size: 14.4px; font-weight: 500; color: var(--dsb-head-color); }
.dsb-record__check small { display: block; font-size: 13.12px; color: var(--dsb-navy-soft); }

/* The sheet's customer line: status pill, name, phone, e-mail — wraps as a group on a narrow sheet. */
.dsb-record__customer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.dsb-record__customer > span:not(.dsb-pill) { font-weight: 400; color: var(--dsb-text-muted); overflow-wrap: anywhere; }
.dsb-record__customer > .dsb-record__customer-name { font-weight: 500; color: var(--dsb-text-color); }

/* A planned record says so over its title, and keeps saying it while it is edited (AB#4612). */
.dsb-record__kind {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .8);
}

/* The vehicle cannot be uploaded: the switch is off and dimmed, and the line says why. */
.dsb-record__oecall.is-off { background: var(--dsb-fld-hover-bg); }
.dsb-record__oecall.is-off .dsb-toggle { opacity: .5; cursor: not-allowed; }
.dsb-record__oecall.is-off .dsb-record__oecall-ico { opacity: .55; }

/* Auto OE upload covers the vehicle: the switch starts on, and one line says why. */
.dsb-record__oecall-auto {
    grid-column: 2 / -1;
    margin: 0;
    font-size: 13.12px;
    color: var(--dsb-navy-soft);
}

/* Before the form: the registration a VIN-only vehicle needs. */
.dsb-record__vehicle { display: grid; gap: 14.4px; }
.dsb-record__vehicle .dsb-field { grid-template-columns: minmax(0, 1fr); }
/* The vehicle step's country list (the plate's flag cell) hangs below the body, as on Add customer's
   dsb-modal--md: the card and body must not clip it. The head and foot then round their own corners. */
.dsb-record__card:has(.dsb-record__vehicle),
.dsb-record__card:has(.dsb-record__vehicle) > .dsb-modal__body { overflow: visible; }
.dsb-record__card:has(.dsb-record__vehicle) > .dsb-modal__header { border-radius: var(--dsb-radius-lg) var(--dsb-radius-lg) 0 0; }
.dsb-record__card:has(.dsb-record__vehicle) > .dsb-modal__footer { border-radius: 0 0 var(--dsb-radius-lg) var(--dsb-radius-lg); }

/* + New appointment: how the date is agreed — proposed to the customer, or booked with them. */
.dsb-record__appt { display: flex; flex-direction: column; gap: 8px; }
.dsb-record__appt-label { font-size: 13.6px; font-weight: 500; color: var(--dsb-head-color); } /* reads as a field label (.dsb-field > label) */
.dsb-record__appt .dsb-field__hint { margin: 0; }
.dsb-record__appt .dsb-chip:disabled { opacity: .5; cursor: not-allowed; border-color: var(--dsb-border-light); color: var(--dsb-text-muted); }

/* On a phone the record pop-up is the whole screen (dsb.css §10b): the head and foot drop the corners
   they round for a floating card, and the card clips again so the body's own scrolling stays inside. */
@media (max-width: 767px) {
    .dsb-record__card:has(.dsb-record__vehicle) { overflow: hidden; }
    .dsb-record__card:has(.dsb-record__vehicle) > .dsb-modal__body { overflow-x: hidden; overflow-y: auto; }
    .dsb-record__card:has(.dsb-record__vehicle) > .dsb-modal__header,
    .dsb-record__card:has(.dsb-record__vehicle) > .dsb-modal__footer { border-radius: 0; }
}

/* INVOICE-FIRST (AB#5895, 2026-11-05): a new service opens on two choices, Upload the invoice / Enter manually; the
   form and its footer wait behind them. A read invoice marks the fields it filled with a small "from the invoice"
   chip and says what it came to in one line above the read block. The vehicle-search step offers the same upload
   under an "or" rule. */
.is-behind-first { display: none !important; }
.dsb-record__first {
    display: grid;
    gap: 16px;
}
.dsb-record__first-choice {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12.8px;
}
.dsb-record__choice {
    display: grid;
    gap: 4px;
    justify-items: start;
    text-align: left;
    padding: 16px;
    border: 1.5px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    background: #fff;
    color: var(--dsb-text-color);
    font: inherit;
    cursor: pointer;
}
.dsb-record__choice i { font-size: 20px; color: var(--dsb-link-color); margin-bottom: 4px; }
.dsb-record__choice b { font-size: 15.2px; font-weight: 600; }
.dsb-record__choice span { font-size: 13.6px; color: var(--dsb-text-muted); }
.dsb-record__choice:hover,
.dsb-record__choice:focus-visible { border-color: var(--dsb-link-color); outline: none; }
.dsb-record__choice.is-primary { border-color: var(--dsb-link-color); background: var(--dsb-bg-subtle); }
.dsb-record__first-error { display: grid; gap: 9.6px; }
.dsb-record__first-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dsb-record__src {
    display: inline-flex;
    align-items: center;
    gap: 4.8px;
    margin-top: 4.8px;
    padding: 1.6px 8px;
    border-radius: 999px;
    font-size: 12px;
    color: var(--dsb-link-color);
    background: var(--dsb-bg-subtle);
}
.dsb-record__src.is-warn { color: var(--dsb-warn-ink); background: var(--dsb-warn-bg); }
.dsb-record__invoice-note {
    margin: 0;
    padding: 9.6px 12.8px;
    border-radius: var(--dsb-radius);
    font-size: 13.6px;
    background: var(--dsb-alert-success-bg);
    color: var(--dsb-alert-success-text);
}
.dsb-record__invoice-note.is-warn { background: var(--dsb-warn-bg); color: var(--dsb-warn-ink); }
.dsb-record__find-invoice { display: grid; gap: 12.8px; margin-top: 16px; }
.dsb-record__find-or {
    display: flex;
    align-items: center;
    gap: 12.8px;
    font-size: 12.8px;
    color: var(--dsb-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.dsb-record__find-or::before,
.dsb-record__find-or::after { content: ""; flex: 1; height: 1px; background: var(--dsb-border-color); }
.dsb-record__find-found { display: grid; gap: 9.6px; }
@media (max-width: 620px) {
    .dsb-record__first-choice { grid-template-columns: minmax(0, 1fr); }
}
