﻿/* ===================================================================
   DSB Design System — Global Component Styles
   ===================================================================
   Reusable components shared across all pages in the DSB platform.
   Loaded globally via _Layout.cshtml (after theme-defaults.css).
   All rules use the dsb- prefix to avoid conflicts with legacy styles.

   Based on the DSB Design Guide (docs/design-guide.html).
   Components: Buttons, Plate Input, VIN Input, Country Dropdown,
               Pills, Alerts, Tables, Pager, Tabs, Cards, Navigation.
   ===================================================================

   THE MOTION RULE (V2 2.26.9 — a rule for the whole guide, written at its top, so it is written
   at the top of this file too). NO STATE CHANGES INSTANTLY. Every change of state — a hover or
   focus colour, a text that becomes another text, something that appears or disappears, a row
   that arrives — passes through a short transition:

       colour            ≈ .18s
       a text swap         fade out ≈ .2s, then fade in ≈ .25s
       show / hide         through opacity (and visibility), NEVER a display cut

   It holds even when the animation is too short to see: it is still felt, and a snap is felt as
   hard. `prefers-reduced-motion: reduce` switches all of it off — every rule that animates in this
   file carries that media query beside it.

   The rule is why a few things here look roundabout. A prose link's underline is always present
   and transparent, so it can fade rather than appear. A modal overlay is always laid out and
   hidden with visibility, because display:none cannot be transitioned out of. Anything new that
   changes state should be built the same way. */

/* ===== Design system variables (non-theme) ===== */
:root {
    /* POP-UP WIDTH, ONE SETTING (Lasse, 2026-10-06: "all our pop-ups a little wider"). Every card with a
       fixed width scales with this: the base .dsb-modal (guide 520px), --wide (720px) and --md (800px).
       --xl (1120px, a record PAGE) and --lg (80vw) are already page-wide and stay as the guide has them.
       A deviation from the guide's numbers on purpose; 1 gives the guide's widths back. */
    --dsb-modal-scale:       1.15;
    /* V2-blæk: indhold, tabelceller, feltværdier. Var #1D2D49, som også dækkede overskrifter —
       V2 skiller de to (spec §3.3): blæk er hvad brugeren skriver, navy er hvad der overskriver det. */
    --dsb-text-color:        #15110c;
    --dsb-head-color:        #1d2d49;   /* NY — overskrifter og feltlabels */
    --dsb-text-muted:        rgba(21,17,12,.64);
    --dsb-text-light:        rgba(21,17,12,.42);
    --dsb-border-color:      rgba(29,45,73,.13);
    --dsb-border-light:      rgba(29,45,73,.08);
    --dsb-placeholder-color: rgba(21,17,12,.42);
    --dsb-bg-subtle:         rgba(29,45,73,.05);
    --dsb-bg-page:           #f5f6f8;
    --dsb-link-color:        #376DA4;

    /* Radius-hierarkiet er en regel, ikke to tal: en flade er rundere end kontrollerne i den, så en
       knap aldrig ser rundere ud end sin kasse. Den runde søgeboks (999px) er den ene undtagelse. */
    --dsb-radius:            10px;      /* kontroller: knap, felt, select, pager, tabs */
    --dsb-radius-lg:         14px;      /* flader: kort, tabelramme, alert, modal, menuer */

    /* Én kontrolhøjde: standardknappen OG hvert enkeltlinjefelt deler den, så en knap og et felt
       sidder i flugt i samme række. 44px er tabelrækkernes højde. */
    --dsb-ctl-h:             44px;

    /* Felt-interaktion (V2 2026-08-28) = nav-søgefeltets, ikke hjemmesidens grønne fokusring. */
    --dsb-fld-hover-bg:      #f8f9fa;
    --dsb-fld-hover-line:    rgba(29,45,73,.28);
    --dsb-fld-focus-line:    rgba(29,45,73,.28);
    --dsb-fld-focus-shadow:  0 4px 12px -4px rgba(15,23,38,.22);

    /* The keyboard focus ring: outline:none pairs with this, a faint outline gets missed. */
    --dsb-focus-ring:        0 0 12px rgba(38, 63, 107, .14), inset 0 0 0 2px var(--dsb-fld-focus-line);

    /* Hover-reglen: en grå kontrol går ÉT trin mørkere, aldrig til blæk. Midtpunktet mellem
       --dsb-text-muted (.64) og --dsb-text-color (1) er alfa .82 ved samme RGB. Skrevet statisk:
       color-mix bruges ikke ét sted i repoet, og en ugyldig color-mix i en custom property fejler
       uden fallback. */
    --dsb-quiet-hover:       rgba(21,17,12,.82);

    /* Ét flag-hjørne og én flag-skygge overalt (nummerplade, landevælger, mobilstrimmel).
       En skygge frem for en ring: et blåt flag skal løfte sig fra navy, et hvidt fra hvid. */
    --dsb-flag-r:            2px;
    --dsb-flag-shadow:       0 1px 3px rgba(0,0,0,.35), 0 0 1px rgba(0,0,0,.25);

    /* Hjemmesidens 72 % navy teksttone (V2 --navy-soft). En stille kontrol der er i slægt med de
       navy tekstknapper over sig uden at være dem, og mørkere end en dæmpet label — men aldrig
       fuldt blæk, for blæk er hvad værdierne er. */
    --dsb-navy-soft:         rgba(29,45,73,.72);

    /* Navy-rampens lyse trin (V2). Dashboardets validerede rampe, delt — ikke søgesidens egen,
       derfor et token og ikke en hex i pages/search.css. Kanten bruger den solidt, fyldet ved 22 %. */
    --dsb-navy-light:        #A2B4D2;

    /* The zebra tone (V2 2.26.24). Not a new colour: it is --dsb-navy-light at 10 %, the same
       validated navy ramp step the key-facts strip already uses — blue, never grey. Written out
       because a token cannot carry an alpha of another token without color-mix, which this repo
       does not use (see --dsb-quiet-hover). The guide tried 18 % first and turned it down: at 18 %
       the toned rows stood too far from the plain ones. On white this lands at about #F6F7FA. */
    --dsb-row-alt:           rgba(162,180,210,.10);

    /* Navbar dropdown material (V2 §7, design-guide 2.19.0+ — .dg2-nav--overlay's --menu-* set).
       One nav, one dropdown material: the language and profile dropdowns share these, exactly as
       the guide's .dg2-menu does for both .dg2-nav__lang and .dg2-nav__account. Translucent whites
       are this section's established idiom (R25) and have no separate token per row; --dsb-mint-strong
       and --dsb-menu-logout are real, reused colours (accent checkmark/underline; the logout row) and
       get their own token instead of being hardcoded in several rules. */
    --dsb-mint-strong:  #85E5BA;
    --dsb-menu-logout:  #ff9b9b;
    /* THE DROPDOWN IS THE BAR, ON ITS OWN (V2 2.26.11). The menus are built exactly like the top
       bar: the bar's own tint, at the bar's alpha, over a blurred page that has a neutral grey
       strip behind it. Until 2.26.11 the tint here was rgba(24,50,105,.9), left over from before
       the navy moved — over paper that lands near #2F4778, a duller, greyer navy hanging from a
       bar that is now #173A85.
       The alpha cannot simply be tuned: over bare paper a glass can let at most about 9 % through
       and still land on this navy, so a value that hits the colour reads as solid glass. The bar
       gets its 22 %, and its see-through of the white cards, only because the page strip lies
       under the page where it blurs. So the menu gets a strip of its own — .dsb-menu-strip,
       positioned on the open menu's footprint every frame by dsbMenuStrip in dsb.js — and with
       the same tint, the same strip and the same blur, menu and bar are the same material and the
       same colour. The two values below are ONE setting with the bar's: see §7a1. */
    --dsb-menu-bg:      rgba(1,46,142,.78);
    --dsb-menu-border:  rgba(255,255,255,.12);
    --dsb-menu-line:    rgba(255,255,255,.12);
    --dsb-menu-text:    rgba(255,255,255,.9);
    --dsb-menu-text-soft: rgba(255,255,255,.6);
    --dsb-menu-head:    #fff;
    --dsb-menu-hover:   rgba(255,255,255,.1);
    /* The chosen tab's ink on the phone's light pill (guide 2.38.4: #1746AB, a step bluer than the
       resting --theme-secondary). A token because the resting ink follows a white-label theme and
       this one cannot be derived from it without color-mix; a theme with its own navy sets it too. */
    --dsb-nav-tab-on:   #1746AB;
    /* The phone top bar's height. 56px until 2026-11-30, when it was asked to be about as tall as the
       tab bar: 68 is the tab bar's 58px pill and the 10px under it (the guide's .dg2-phone has 72, tried
       and found a little too tall). Everything that keeps clear of the bar reads this: <main>, the
       account pop-over, the sheet, the front page. */
    --dsb-mob-bar-h:    68px;

    /* Warning er GUL, ikke orange (V2 2.14.0): en advarsel må ikke forveksles med sol-orange
       dekoration. Erstatter det gamle #e8a13a. */
    --dsb-warn:              #f0c239;
    --dsb-warn-bg:           rgba(240,194,57,.22);
    --dsb-warn-line:         rgba(214,168,30,.6);
    --dsb-warn-ink:          #8a6a12;

    /* Alerts: gennemsigtig wash over baggrunden frem for solid pastel. */
    --dsb-alert-success-text:   #2f7e53;
    --dsb-alert-success-bg:     rgba(59,156,104,.10);
    --dsb-alert-success-border: rgba(59,156,104,.32);
    --dsb-alert-warning-text:   var(--dsb-warn-ink);
    --dsb-alert-warning-bg:     var(--dsb-warn-bg);
    --dsb-alert-warning-border: var(--dsb-warn-line);
    --dsb-alert-danger-text:    #9b2318;
    --dsb-alert-danger-bg:      rgba(192,57,43,.09);
    --dsb-alert-danger-border:  rgba(192,57,43,.30);
    --dsb-alert-info-text:      #1d2d49;
    --dsb-alert-info-bg:        rgba(29,45,73,.06);
    --dsb-alert-info-border:    rgba(29,45,73,.20);

    /* Pills: samme wash-logik. Info-pillen er informationsblå (blå = kig), success grøn.
       V2's .dg2-pill sætter kun `border: 1px solid;` og lader hver variant levere sin egen
       border-color (dg2-css.css:354-360) — uden den er --neutral's 3%-alpha fyld praktisk
       talt usynlig på hvid. */
    --dsb-pill-searching-text:   #376DA4;
    --dsb-pill-searching-bg:     rgba(55,109,164,.08);
    --dsb-pill-searching-border: rgba(55,109,164,.22);
    --dsb-pill-updated-text:     #2f7e53;
    --dsb-pill-updated-bg:       rgba(59,156,104,.12);
    --dsb-pill-updated-border:   rgba(59,156,104,.30);
    /* Neutral pill: deliberately darker than --dsb-text-light on --dsb-bg-subtle,
       which had too little contrast both for the label and for the pill against white
       (design guide 1.23.1). */
    --dsb-pill-neutral-text:   rgba(21,17,12,.53);
    --dsb-pill-neutral-bg:     rgba(29,45,73,.03);

    /* Danger. Var #934041/#7a3435. */
    --dsb-danger:            #c0392b;
    /* The mileage drop's own red (V2 2.27.3): --dsb-danger read too weak against the navy line. */
    --dsb-drop: #D92C18;
    --dsb-drop-bg: rgba(217,44,24,.12);
    --dsb-drop-ink: #A81F0F;
    --dsb-danger-dark:       #9b2318;

    /* Danish plate's EU band. */
    --dsb-eu-blue:           #003399;

    /* Table action button */
    --dsb-table-action:      #376DA4;
    --dsb-table-action-dark: #2d5a88;

    /* Fixed 4-colour categorical palette (fuel mix, or any future chart split by category) — stays
       put regardless of tenant branding, unlike --theme-*. */
    --dsb-chart-1: #376DA4;
    --dsb-chart-2: #3B9C68;
    --dsb-chart-3: #A2B4D2;
    --dsb-chart-4: #EF9D5B;

    /* .dsb-btn--primary:hover's glow (V2 §3). Behind a var so a white-label theme file — which
       _Layout.cshtml loads AFTER dsb.css — can override it; the default is a tint of the
       DEFAULT theme's --theme-action-dark (#2f7e53), not of the customer's. */
    --dsb-btn-primary-glow:  rgba(47,126,83,.45);

    /* .dsb-table-tooltip__content's halo ring (V2 §13, dg2-css.css:857 --tip-ring). V2 derives it
       with color-mix(in srgb, var(--nav-navy) 62%, #fff); color-mix is unused everywhere else in
       this repo on purpose (see the note above --dsb-quiet-hover), so this is the same static
       precomputation, and — same convention as --dsb-btn-primary-glow — a tint of the DEFAULT
       theme's --theme-secondary, not of a white-label customer's.
       Re-solved for the new navy (V2 2.26.2): .62·#173A85 + .38·#fff = rgb(111,133,179). It was
       #7884a6 while the navy was #26396F — a derived value has to move with what it derives from. */
    --dsb-tooltip-ring:      #6F85B3;
}

/* =============================================
   TYPOGRAFI
   =============================================
   V2's typeskala bor her, ikke i vendor.css, så hele skalaen tilhører denne
   stylesheet-version — første skridt mod at al styling bærer dsb-.

   Vinder uden !important: _Layout indlæser vendor.css på linje 49 og dsb.css på
   61, og specificiteten er ens, så kilderækkefølgen afgør det. Erstatter
   vendor.css:35605 (Red Hat Display 14px/1.6) og vendor.css:41032 (color #696c6d).

   TO FAMILIER, TO REGLER:
     Red Hat Display — overskrifter, labels, knapper, tabelhoveder, pills, badges,
                       tabs. Vægt 700; 800 på h1-h4.
     Roboto          — brødtekst, feltværdier, tabelceller, placeholders.
                       Vægt 400/500 og ALDRIG 600 (se font-linket i _Layout).

   ALLE VÆRDIER I PX: vendor.css:35600 sætter html på 10px, så 1rem = 10px i hele
   appen. Design-guiden er kalibreret til 16px og bruger rem 412 gange — hver af
   dem er konverteret ×16 på vej hertil. Indfør ikke rem.
   ============================================= */
body {
    font-family: 'Roboto', ui-sans-serif, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: var(--dsb-text-color);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* V2's overskriftsskala (design-guide.html:6476-6478, hvor rem er 16px):
     h1 2.6rem = 42px · h2 2rem = 32px · h3 1.4rem = 22px
   h4-h6 er IKKE defineret i guiden; deres værdier her er valg, ikke kilde, og skal
   bekræftes i design-guiden — antag ikke at de er rigtige fordi de står her.

   h4 er 18px I FORVEJEN (.h4, h4 ved vendor.css:35730, som slår 1.5rem på linje 377),
   så den værdi ændrer sig ikke. h4-assertionen består derfor både før og efter og er
   en regressionspind, ikke et fremdriftssignal.

   Det der ER i stykker i dag: h1, h2 og h3 er ALLE 24px (vendor.css:41041), så de tre
   øverste niveauer kan ikke skelnes fra hinanden. Skalaen herunder genskaber hierarkiet.

   h5/h6 er en GULVREGEL, ikke et designet trin (kendelse R13). Uden dem arver de
   brødtekstens Roboto mens vendor.css fastholder dem på 14px (35734) og 12px (35738) —
   altså mindre end, i samme familie som, og lettere end den tekst de overskriver. Målt i
   den kørende app efter typografiblokken landede: Roboto 500 14px / 12px. De får derfor
   brødtekstens 17px som GULV og henter deres identitet som overskrift fra familie, vægt
   og tracking frem for fra størrelse. To niveauer med samme størrelse er acceptabelt her,
   hvor h1-h3's ens 24px ikke var: h5 og h6 optræder så godt som aldrig sammen.

   Leading 1.04 er en accepteret layoutændring: en tolinjers overskrift bliver
   ~14px lavere. Den er ført i docs/design-v2-port.md. */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Red Hat Display', 'Roboto', sans-serif;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.04;
    color: var(--dsb-head-color);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
/* Gulvet: en overskrift må aldrig være mindre end den brødtekst den overskriver. */
h5, h6 { font-size: 17px; }

::selection { background: rgba(59,156,104,.22); }

/* =============================================
   BUTTONS
   =============================================
   !important is used because vendor.css and Site.css apply styles
   to generic selectors (input[type="submit"], .btn, .form-control)
   that override our component styles. Remove !important once
   legacy stylesheets are cleaned up.

   HOVER: each type sets its own --dsb-btn-fill, a ::before layer of that colour that fades in on hover; isolation:isolate
   keeps the layer (z-index:-1) inside the button, under its label.
   ============================================= */
.dsb-btn {
    all: unset;
    box-sizing: border-box !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* Separates a leading icon from the label (guide .5rem). No effect on a text-only button —
       a flex gap needs two children. */
    gap: 8px;
    height: var(--dsb-ctl-h);
    padding: 0 24px !important;
    border-radius: var(--dsb-radius) !important;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 15.68px !important;
    font-weight: 700 !important;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, border-color .18s ease, opacity .18s ease;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap;
}
/* The display above is !important, which beats the [hidden] attribute (vendor.css's [hidden] rule is !important
   too, but loads first): a button a script hides with `hidden` must stay hidden. */
.dsb-btn[hidden] { display: none !important; }
/* An icon in a button is a step smaller than its label (guide .btn i). */
.dsb-btn i { font-size: .95em; }
.dsb-btn::before {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    inset: 0;
    background: var(--dsb-btn-fill, transparent);
    opacity: 0;
    transition: opacity .18s ease;
}
/* Only where there is a real hover: on a touch screen the wash would stick after a tap. */
@media (hover: hover) { .dsb-btn:hover::before { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dsb-btn::before { transition: none; } }

.dsb-btn--primary {
    background: var(--theme-action) !important;
    color: #fff !important;
    border: 1px solid var(--theme-action) !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
    --dsb-btn-fill: var(--theme-action-dark);
}
/* Hover changes neither the background nor the border (guide .btn--primary): the darker fill fades
   in over the padding box only, so a 1px rim of the rest green stays around it — the same rim
   --table and --danger already have here. It used to repaint both to the dark green. */
.dsb-btn--primary:hover {
    /* V2's glow, behind --dsb-btn-primary-glow — a customer's white-label theme file (loaded
       AFTER dsb.css by _Layout.cshtml) can override the token, same as it overrides any other
       --dsb-* default here. Left un-derived from --theme-action-dark on purpose: a runtime
       colour-mix isn't used anywhere in this file (see --dsb-quiet-hover above), so the default
       is written as the literal tint of the DEFAULT theme's green, not computed from it. */
    box-shadow: 0 6px 18px -10px var(--dsb-btn-primary-glow);
}

.dsb-btn--secondary {
    /* Guide-målt i knap-kataloget (§v2-buttons): GENNEMSIGTIG bund og en 1px kant — ikke hvid
       med 2px. Bunden er ikke kosmetik: guidens OE-række ligger på en tonet flade
       (rgba(29,45,73,.035)), og en hvid knapflade dér ville stå som en lys plet i rækken. */
    background: transparent !important;
    color: var(--theme-action-dark) !important;
    border: 1px solid var(--theme-action) !important;
    --dsb-btn-fill: rgba(29,45,73,.04);
}
.dsb-btn--secondary:hover { border-color: var(--theme-action-dark) !important; }
/* Vehicle already selected — button is fully greyed out and disabled */
.dsb-btn--secondary.is-selected {
    border-color: #d4d8dd !important;
    color: #b0b5bc !important;
    background: #f5f6f7 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}
.dsb-btn--secondary.is-selected:hover {
    background: #f5f6f7 !important;
}

/* Not in V2's button section — its palette has no blue; V1's informational blue, kept by user
   decision. Ported structurally only: the fill token mirrors its old static hover colour so the
   shared JS mechanic has something to sweep in. */
.dsb-btn--blue {
    background: var(--theme-primary);
    color: #fff !important;   /* !important: an <a> button must beat vendor.css's a { color !important } */
    border: 1px solid var(--theme-primary);
    --dsb-btn-fill: var(--theme-primary-dark);
}
.dsb-btn--blue:hover { border-color: var(--theme-primary-dark); }

.dsb-btn--danger {
    background: var(--dsb-danger);
    color: #fff !important;
    border: 1px solid var(--dsb-danger);
    --dsb-btn-fill: var(--dsb-danger-dark);
}

.dsb-btn--danger-text {
    background: transparent;
    color: var(--dsb-danger) !important;
    border: 0;
    /* No box, no padding, no radius, height:auto — the hit area IS the text. The !importants
       fight the base rule's own armour (padding/border-radius), which otherwise wins. overflow
       must go back to visible: the base's overflow:hidden (for the fill circle) would clip an
       auto-height text button's descenders. */
    height: auto;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible;
}
.dsb-btn--danger-text::before { display: none; } /* no fill animation — only the colour deepens */
.dsb-btn--danger-text:hover { color: var(--dsb-danger-dark) !important; }

/* Not in V2's button section — pre-port amber, kept structurally per the same reasoning as
   --blue above (create-customer.js toggles this class for a warning state). Whole-branch review
   (final fix wave): the §3.5 warning-family sweep (orange #e8a13a -> gold #f0c239, --dsb-warn-*)
   never reached this rule, so a .dsb-alert--warning and this button disagreed inside the same
   modal, and white-on-#e8a13a sat near a WCAG contrast failure. Brought into the family by
   following .dsb-badge--warning's own pattern (dsb.css:1477): --dsb-warn background, near-black
   --dsb-text-color ink, not white. */
.dsb-btn--warning {
    background: var(--dsb-warn);
    color: var(--dsb-text-color) !important;
    border: 1px solid var(--dsb-warn);
    --dsb-btn-fill: var(--dsb-warn-line);
}

.dsb-btn--ghost {
    background: transparent;
    color: var(--dsb-text-color) !important;
    border: 1px solid var(--dsb-border-color);
    --dsb-btn-fill: rgba(29,45,73,.07);
}
.dsb-btn--ghost:hover { border-color: var(--dsb-text-color); }

.dsb-btn--table {
    background: var(--dsb-table-action) !important;
    color: #fff !important;
    border: 1px solid var(--dsb-table-action) !important;
    --dsb-btn-fill: var(--dsb-table-action-dark);
}

/* The outlined counterpart to --table, for a secondary action in a table row: same colour family,
   lower weight. 1px rather than --secondary's 2px — in a dense row the heavier stroke reads louder
   than the borderless filled --table it sits next to. */
.dsb-btn--table-outline {
    background: #fff !important;
    color: var(--dsb-table-action) !important;
    border: 1px solid var(--dsb-table-action) !important;
    --dsb-btn-fill: rgba(55,109,164,.10);
}
.dsb-btn--table-outline:hover {
    border-color: var(--dsb-table-action-dark) !important;
    color: var(--dsb-table-action-dark) !important;
}

/* V2's neutral sibling of --danger-text (2.13.32): quiet tool rows, e.g. the Search page's vehicle
   tools. Unlike --danger-text it keeps the button's height/radius, so it lines up with real
   buttons in a row and has a proper hit area — no box at rest, icon + label in navy, filling on
   hover like every other button, in a light navy wash. */
.dsb-btn--text {
    background: transparent;
    border: 1px solid transparent;
    color: var(--theme-secondary) !important;
    --dsb-btn-fill: rgba(29,45,73,.07);
}
.dsb-btn--text.dsb-btn--sm { padding: 0 12px !important; }

/* Disabled is a STATE any type can be in, not a type of its own (guide §3): the button keeps its
   own colours and is only dimmed. It used to be painted green here, which turned a disabled ghost
   or danger button into a green one. */
.dsb-btn--disabled,
.dsb-btn[disabled] {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    /* Otherwise pointerenter still fires on a disabled button and it sweeps like a live one. */
    pointer-events: none !important;
    box-shadow: none !important;
}

/* The same look for an element that cannot carry the disabled attribute (an <a>): use it with
   aria-disabled="true" tabindex="-1". */
.dsb-btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* CHOSEN (guide .btn.is-chosen): "selected, and still clickable" — any type, greyed to a flat fill
   with soft text, hovering in the light navy wash. Not disabled: it keeps its pointer and its click.
   !important and the compound selector: the green and blue types pin their own background, colour
   and border with !important (vendor.css), and their :hover border rules are two selectors too, so
   this has to match them and come after them. */
.dsb-btn.is-chosen {
    background: #e6e9ee !important;
    border-color: #e6e9ee !important;
    color: var(--dsb-text-muted) !important;
    --dsb-btn-fill: rgba(29,45,73,.07);
}

/* FULL WIDTH (guide .btn--block, 2.39.1): the one action of a narrow form fills the form's width.
   Any type, any size. */
.dsb-btn--block { width: 100%; }

/* BUSY (guide .btn.is-busy, 2.39.1): while the button's own action runs, the micro spinner stands
   before the label in the label's colour; the button keeps its colour and cannot be clicked again.
   Markup: the spinner is the button's FIRST child and the label sits in .dsb-btn__lbl —
     <button class="dsb-btn dsb-btn--primary">
       <span class="dsb-spinner dsb-spinner--micro" aria-hidden="true"></span>
       <span class="dsb-btn__lbl">Send link</span>
     </button>
   For a wait of a second or two; a long wait is shown where the answer lands, not in the button.
   The spinner is cut in with display, as in the guide: at rest it must take no room in the row. */
.dsb-btn > .dsb-spinner { display: none; flex: none; margin-right: 8.8px; }
.dsb-btn.is-busy > .dsb-spinner { display: inline-block; }
.dsb-btn.is-busy { pointer-events: none; }

.dsb-btn--sm { height: 34px !important; font-size: 13.6px !important; padding: 0 16px !important; }
/* Keyboard focus: a ring outside the button, so it reads on every fill. */
.dsb-btn:focus-visible { outline: 2px solid var(--theme-secondary); outline-offset: 2px; }

.dsb-btn--lg { height: 50px !important; font-size: 16.8px !important; padding: 0 32px !important; }

/* =============================================
   PLATE INPUT (country flag + registration)
   =============================================
   !important is used throughout this section because vendor.css
   applies conflicting styles via .hero__input__plate-graphics-custom
   with !important. Once vendor.css legacy styles are removed,
   these !important declarations can be cleaned up.

   THE GUIDE'S FIELD IS THE BASE (V2 §4 "Vehicle search bar", .dg2-vsearch-field + .dg2-country).
   Until 2026-11-26 only the Search page had it, through .dsb-srch-page rules in pages/search.css,
   and every other page that asks for a plate kept the old one: a 46px column cell with the flag
   over the code, centred 500 text, a 2px navy line before the field. Now it is one field:
   the country cell is a ROW (flag, code, chevron), the text is written from the left in 400, the
   WHOLE field answers to hover and focus like any other field, and the country list hangs under
   the whole field, as wide as it.
   ============================================= */
.dsb-plate-input {
    /* The country list measures itself against the FIELD, not the cell (the guide's 2.14.2: the
       cell is static, the field relative), so the list is exactly as wide as the plate field. */
    position: relative;
    display: flex !important;
    align-items: stretch !important;
    height: 50px !important;
    /* Guide-målt (.dg2-vsearch-field): hvid bund og en 1px HÅRSTREG — ikke en 2px ramme i
       brandfarven. --dsb-border-color er byte-identisk med guidens --line.
       Flag-CELLEN beholder var(--theme-secondary): den farve er lejerens brandfarve, skrevet
       fra databasen ved opstart (custom/*.css), ikke en konstant. Det er RAMMEN der bliver
       neutral, ikke cellen. */
    background: #fff !important;
    border: 1px solid var(--dsb-border-color) !important;
    border-radius: var(--dsb-radius) !important;
    overflow: visible;
    cursor: text;
    /* Everything eases .22s like the search pill (V2 field-interaction contract, kendelse R16). */
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
/* THE CELL IS A ROW (.dg2-country > summary): flag, country code and chevron beside each other,
   gap 8px, padding 0 16px, as wide as its content. Static, so the list below positions against
   the field. */
.dsb-plate-input__flag {
    display: flex !important;
    flex: none;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 16px !important;
    background: var(--theme-secondary) !important;
    color: #fff !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: 13.6px;
    /* R21: V2's prose ("navy country button in Roboto 600") is stale. The guide's 2026-08-28
       sweep corrected every Roboto-600 declaration to 500 and the comment was never updated.
       The live rule (.dg2-country > summary { font:inherit; font-weight:500 }) is Roboto 500 —
       read the rule, not the comment beside it. */
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    /* R19 holdt cellen firkantet, og det var rigtigt SÅ LÆNGE pladen havde en 2px ramme i
       samme farve: rammen skjulte de skarpe hjørner. Nu er rammen en 1px hårstreg på hvid
       bund (se .dsb-plate-input ovenfor), og med overflow:visible ville cellens skarpe venstre
       hjørner stikke ud af den 10px afrundede ramme. Guiden gør præcis det samme:
       .dg2-country > summary har border-radius: var(--ctl-r) 0 0 var(--ctl-r). */
    border-radius: var(--dsb-radius) 0 0 var(--dsb-radius) !important;
    cursor: pointer;
    position: static !important;
    top: auto !important;
    left: auto !important;
    user-select: none;
    overflow: visible;
}
/* Override legacy absolute positioning from vendor.css */
.dsb-plate-input__flag.hero__input__plate-graphics-custom {
    position: static !important;
    width: auto !important;
    height: auto !important;
    top: auto !important;
    left: auto !important;
}
.dsb-plate-input__flag .current-country-flag {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    height: auto !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
/* The code stands on the flag's line, in the guide's size (.85rem), in a FIXED 20px slot
   (.dg2-country__cc, 2.10.1): the codes render at different widths (11.3px for FI, 19.0px for NO),
   and without the slot the navy cell changes width when the country changes. */
.dsb-plate-input__flag .current-country {
    position: relative !important;
    bottom: auto !important;
    width: 20px !important;
    display: block !important;
    text-align: center !important;
    font-size: 13.6px !important;
    color: #fff !important;
    margin-top: 0;
}
.dsb-plate-input__flag .iti__flag {
    display: inline-block !important;
    width: 20px !important;
    margin-top: 0 !important;
    max-height: 15px !important;
    /* R19: radius + shadow belong on the GRAPHIC, not the navy cell. A ring was tried and
       dropped in V2 — a blue flag must lift off navy and a white flag off white, and no single
       ring colour can do both, hence a shadow instead. Scoped under .dsb-plate-input__flag so it
       beats intlTelInput.min.css's own .iti__flag rule; this also nests the .dsb-plate-input__flag
       .country-list dropdown below, so every flag in the list picks up the same radius+shadow
       through the same ancestor. --dsb-flag-r / --dsb-flag-shadow existed since Opgave 2 but were
       unused until now. */
    border: 0 !important;
    border-radius: var(--dsb-flag-r) !important;
    box-shadow: var(--dsb-flag-shadow) !important;
}
.dsb-plate-input__flag-emoji .iti__flag,
.dsb-plate-input__flag-emoji .fi {
    display: inline-block !important;
    margin: 0 auto !important;
    font-size: 16px;
    line-height: 1;
    margin-top: 0 !important;
    max-height: none !important;
}
.dsb-plate-input__flag-code {
    color: #fff !important;
    font-size: 13.6px !important;
    /* R21: same cell, same corrected rule — Roboto 500, not Red Hat Display 600. */
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 1;
    margin-top: 0;
    position: relative !important;
    bottom: auto !important;
    width: 20px !important;
    text-align: center !important;
}
/* The guide's .dg2-country__chev: an 11px stroked SVG, the cell's one sign that it can be pressed.
   It turns while the list is open (dsb-vehicle-search.js sets .dsb-is-open on the cell). A direct
   child of the cell, never wrapped with flag and code: the script opens the list with
   $cell.children('ul.country-list'). */
.dsb-plate-input__flag-chev {
    width: 11px;
    height: 11px;
    flex: none;
    color: #fff;
    transition: transform .2s ease;
}
.dsb-plate-input__flag.dsb-is-open .dsb-plate-input__flag-chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
    .dsb-plate-input, .dsb-plate-input__flag-chev { transition: none; }
}
/* THE FIELD WRITES FROM THE LEFT (.dg2-vsearch-field > input): text-align start, 400, padding
   0 17.6px, no line of its own — the cell beside it is the edge. The fill is the wrapper's, so the
   whole field tints on hover, not the white part alone.

   text-transform: uppercase stays, a deliberate departure: the guide capitalises only the
   placeholder, but registrations and chassis numbers ARE uppercase in our data and that is what is
   typed here. Invisible for real content; a typing behaviour, not a layout. */
.dsb-plate-input__field {
    flex: 1 !important;
    border: none !important;
    /* The right corners belong to the box itself. .dsb-plate-input is overflow: visible, because
       the country list hangs out of it, so a square white field paints over its rounded corners and
       the right end reads as a notch. Inner radius = the outer one minus the 1px border. */
    border-radius: 0 calc(var(--dsb-radius) - 1px) calc(var(--dsb-radius) - 1px) 0 !important;
    outline: none !important;
    /* Roboto, not Red Hat Display: the user types here. Roboto never gets 600 (only fetched in
       300/400/500/700 — a 600 declaration synthesises to 700 and renders bold), so 500. */
    font-family: 'Roboto', sans-serif;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    text-align: left !important;
    color: var(--dsb-text-color) !important;
    padding: 0 17.6px !important;
    background: transparent !important;
    height: 100% !important;
    box-shadow: none !important;
    width: 100% !important;
    margin: 0 !important;
}
/* The placeholder is its own pseudo-element: without a size it takes the field's 16px. Guide:
   .88rem, .03em (of 14.08px), uppercase — the last comes from the field's own text-transform. */
.dsb-plate-input__field::placeholder {
    color: var(--dsb-placeholder-color) !important;
    font-size: 14.08px;
    font-weight: 400;
    letter-spacing: .4224px;
}
.dsb-plate-input__field:focus-visible { outline: none !important; }
/* FIELD INTERACTION, on the whole field (.dg2-vsearch-field): hover while NOT focused darkens the
   hairline and tints the fill one step; focus goes back to white with the .28 hairline and the soft
   shadow. The navy cell keeps its colour through both. !important because the resting border and
   fill above carry it. */
.dsb-plate-input:not(:focus-within):hover {
    background: var(--dsb-fld-hover-bg) !important;
    border-color: var(--dsb-fld-hover-line) !important;
}
.dsb-plate-input:focus-within {
    background: #fff !important;
    border-color: var(--dsb-fld-focus-line) !important;
    box-shadow: var(--dsb-fld-focus-shadow);
}

/* =============================================
   VIN INPUT
   =============================================
   !important is used because vendor.css applies styles to
   generic input selectors that override our component styles.
   Remove !important once legacy stylesheets are cleaned up.
   ============================================= */
.dsb-vin-input {
    width: 100% !important;
    height: 50px !important;
    /* The plate field's inset, text and placeholder (.dg2-vsearch-field > input): from the left,
       400, 0 17.6px. Uppercase stays for the same reason as the plate. */
    padding: 0 17.6px !important;
    /* Samme hårstreg som pladen — se .dsb-plate-input. */
    border: 1px solid var(--dsb-border-color) !important;
    border-radius: var(--dsb-radius) !important;
    background: #fff !important;
    font-family: 'Roboto', sans-serif;
    font-size: 16px !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    text-align: left !important;
    color: var(--dsb-text-color) !important;
    outline: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.dsb-vin-input::placeholder {
    color: var(--dsb-placeholder-color) !important;
    font-size: 14.08px;
    font-weight: 400;
    letter-spacing: .4224px;
}
/* The same interaction as the plate field beside it: hover while NOT focused darkens the hairline
   and tints the fill, focus is white with the .28 hairline and the soft shadow — not a navy edge.
   The shadow carries !important because the resting `box-shadow: none !important` above would
   otherwise hold it back for good (it did: the VIN had no focus shadow at all). */
.dsb-vin-input:not(:focus):hover {
    background: var(--dsb-fld-hover-bg) !important;
    border-color: var(--dsb-fld-hover-line) !important;
}
.dsb-vin-input:focus {
    background: #fff !important;
    border-color: var(--dsb-fld-focus-line) !important;
    box-shadow: var(--dsb-fld-focus-shadow) !important;
    outline: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .dsb-vin-input { transition: none; }
}

/* A plate or VIN a form found wrong: the field error's red hairline (.dsb-field input.is-invalid), nothing
   else moves — also under the pointer and while focused, so every state is named here and outranks the
   hover and focus rules above. !important for the same reason as the borders above. */
.dsb-plate-input.is-invalid,
.dsb-plate-input.is-invalid:not(:focus-within):hover,
.dsb-plate-input.is-invalid:focus-within,
.dsb-vin-input.is-invalid,
.dsb-vin-input.is-invalid:not(:focus):hover,
.dsb-vin-input.is-invalid:focus {
    border-color: rgba(192,57,43,.6) !important;
}

/* =============================================
   COUNTRY DROPDOWN
   ============================================= */
/* Legacy country-list (from _SearchCountryList partial) — hidden by default. Legacy markup
   (flag-box / country-name, not dsb-*-prefixed) is not renamed or restructured here — it's
   slated for removal — but its colours are re-tokened so it doesn't sit in the old palette
   beside V2's (kendelse: don't invest in it, just don't leave it looking foreign).
   V2 dropped the country-code column (2.14.2): flag + name are enough, the code is read back in
   the plate cell once a country is chosen. This partial (Partials/_SearchCountryList.cshtml)
   never rendered a code to begin with, so there is nothing to hide. */
/* THE LIST HANGS UNDER THE WHOLE FIELD, IN TWO COLUMNS, WITHOUT SCROLL (.dg2-country-menu, 2.14.2).
   The country in the field is usually a PRESELECTION the person never made, and a list that shows
   five at a time is exactly how a wrong preselection goes unnoticed — so every country is seen at
   once. Lived under .dsb-srch-page in pages/search.css until 2026-11-26; three things it learned
   there still hold:

   1. NOT display:grid. dsb-vehicle-search.js opens the list with jQuery slideToggle, which writes
      INLINE display:block while it is open and display:none when it closes; inline beats the
      sheet, and !important would mean the list never closes again. CSS columns work on a block
      container and fill like the guide's grid-auto-flow:column — down the first, then the next.
      They also balance themselves: the countries are a live lookup (the languages switched on for
      search), not the guide's fixed twelve, so six rows are never assumed.

   2. vendor.css gives the list (.country-list.all-country-list; .hero__input__plate-graphics-custom
      .country-list, also inside two media queries) height:200px, min-width:400px, width:70px,
      overflow-y:scroll, text-align:center, bottom:30px and position:fixed. We are later and win,
      but only on what is DECLARED here — so each of them is stated, even where the value looks
      like a default. width:auto matters most: an explicit width over-constrains left + right and
      the browser silently drops the right. bottom:auto next: with top AND bottom set the height
      is resolved from the field and the list opens as a sliver.

   3. left/right are -1px: the field is the containing block and its padding box starts inside the
      1px border, so -1px puts the list's edges on the field's outer edges. */
.dsb-plate-input__flag .country-list,
.dsb-grid-search__plate .country-list {
    display: none;
    position: absolute;
    top: calc(100% + 7.2px);
    bottom: auto;
    left: -1px;
    right: -1px;
    width: auto;
    height: auto;
    min-width: 0;
    max-height: none;
    margin: 0;
    padding: 5.6px;
    background: #fff;
    color: var(--dsb-text-color);
    border: 1px solid var(--dsb-border-color);
    /* Flade, ikke kontrol: var(--dsb-radius-lg), som V2's dg2-country-menu (--surf-r). */
    border-radius: var(--dsb-radius-lg);
    list-style: none;
    text-align: left;
    overflow-y: visible;
    z-index: 50;
    box-shadow: 0 22px 44px -22px rgba(29,45,73,.45);
    column-count: 2;
    column-gap: 22.4px;
    cursor: default;
}
/* The hairline between the columns: without it the left column's names read as one line with the
   right column's flags. */
.dsb-plate-input__flag .country-list::before,
.dsb-grid-search__plate .country-list::before {
    content: "";
    position: absolute;
    top: 9.6px;
    bottom: 9.6px;
    left: 50%;
    width: 1px;
    background: var(--dsb-border-color);
}
.dsb-plate-input__flag .country-list .country-list__item,
.dsb-grid-search__plate .country-list .country-list__item {
    display: flex;
    align-items: center;
    /* Guide-measured: a row is 42px — 8.8 x 2 padding plus the line box. */
    gap: 8.8px;
    padding: 8.8px 9.6px;
    border-radius: 8px;
    /* a row never breaks across the column change */
    break-inside: avoid;
    white-space: nowrap;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14.72px;
    /* Stated, not inherited: the row sits inside the cell, whose weight is 500. */
    font-weight: 400;
    color: var(--dsb-text-color);
    transition: background-color .12s ease;
}
.dsb-plate-input__flag .country-list .country-list__item:hover,
.dsb-grid-search__plate .country-list .country-list__item:hover {
    background: var(--dsb-bg-subtle);
}
/* The country in the field (.dg2-country-menu li.is-sel): dsb-vehicle-search.js marks it each time
   the list opens, from the cell's hidden input. */
.dsb-plate-input__flag .country-list .country-list__item.is-selected,
.dsb-grid-search__plate .country-list .country-list__item.is-selected {
    color: var(--theme-action-dark);
    font-weight: 500;
}
/* vendor.css gives .country-name width:100% and .flag-box float:left with a 24px height — in a
   narrow column that breaks the name onto a second line. The sprite draws every flag at its own
   national ratio (20x15 for Denmark, 20x10 for Ireland), so one 20x15 box, the tallest, lines them
   up; each flag centres in it and never shrinks when a row is tight. Four classes on purpose:
   vendor's own selector for both is (0,4,0), so three would lose to it whatever the order. */
.dsb-plate-input__flag .country-list .country-list__item .country-name,
.dsb-grid-search__plate .country-list .country-list__item .country-name {
    width: auto;
}
.dsb-plate-input__flag .country-list .country-list__item .flag-box,
.dsb-grid-search__plate .country-list .country-list__item .flag-box {
    float: none;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 15px;
    margin: 0;
}
/* Narrow frames, the guide's own break: one scrolling column, and the hairline has no second column
   to stand between. column-count auto, not 1: a multi-column box with a definite height spills its
   overflow SIDEWAYS into another column, which overflow-y cannot scroll. */
@media (max-width: 900px) {
    .dsb-plate-input__flag .country-list,
    .dsb-grid-search__plate .country-list {
        column-count: auto;
        max-height: 288px;
        overflow-y: auto;
    }
    .dsb-plate-input__flag .country-list::before,
    .dsb-grid-search__plate .country-list::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .dsb-plate-input__flag .country-list .country-list__item,
    .dsb-grid-search__plate .country-list .country-list__item { transition: none; }
}

/* New-style dsb-country-dropdown (for future migration) — same material as the legacy
   .country-list above, kept in step for when the legacy partial is eventually retired. */
.dsb-country-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin: 2px 0 0 0;
    padding: 4px 0;
    background: #fff;
    color: var(--dsb-text-color);
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius-lg);
    list-style: none;
    min-width: 220px;
    max-height: 320px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 22px 44px -22px rgba(29,45,73,.45);
}
.dsb-country-dropdown.is-open,
.dsb-country-dropdown.dsb-is-open { display: block; }
.dsb-country-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--dsb-text-color);
    transition: background .1s;
}
.dsb-country-dropdown__item:hover { background: var(--dsb-bg-subtle); }
/* R21: valgt er Roboto (arvet fra .dsb-country-dropdown__item ovenfor, ingen family-override
   her) vaegt 500, farve --theme-action-dark, med et checkmark. V2's egen regel
   (.dg2-country-menu li.is-sel { color:green-deep; font-weight:500 }) saetter ingen family —
   den forklarende kommentar ved siden af ("chosen = green-deep 600") er forældet efter guidens
   2026-08-28-sweep der rettede hver Roboto-600 til 500. Samme rettelse paa
   .dsb-select__option.dsb-is-selected (Opgave 5) nedenfor. */
.dsb-country-dropdown__item.is-selected {
    font-weight: 500;
    color: var(--theme-action-dark);
}
.dsb-country-dropdown__item.is-selected::after {
    content: "\2713";
    margin-left: auto;
    font-size: 12px;
}
.dsb-country-dropdown__flag {
    display: inline-block;
    width: 24px;
    text-align: center;
}
.dsb-country-dropdown__flag .iti__flag,
.dsb-country-dropdown__flag .fi {
    font-size: 18px;
    line-height: 1;
    border-radius: var(--dsb-flag-r);
    box-shadow: var(--dsb-flag-shadow);
}
.dsb-country-dropdown__scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--dsb-border-color) transparent;
}
.dsb-country-dropdown__scrollbar::-webkit-scrollbar { width: 6px; }
.dsb-country-dropdown__scrollbar::-webkit-scrollbar-thumb { background: var(--dsb-border-color); border-radius: 3px; }

/* =============================================
   TEXT UTILITIES
   ============================================= */
/* Secondary / explanatory text. Markup already referenced .dsb-text-muted before it
   existed, and pages inline `color: var(--dsb-text-muted)` instead — use this. */
.dsb-text-muted { color: var(--dsb-text-muted); }

/* A loading placeholder bar — the shimmer used wherever content is still being fetched.
   Generic on purpose: give it a height/width and drop it in. */
.dsb-skeleton {
    display: block;
    background: linear-gradient(90deg, var(--dsb-border-light) 25%, var(--dsb-bg-subtle) 50%, var(--dsb-border-light) 75%);
    background-size: 200% 100%;
    animation: dsb-skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: var(--dsb-radius);
}
@keyframes dsb-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =============================================
   PLATE (Danish registration, read-only display)
   ============================================= */
/* Generic wherever a registration is shown as a plate — not .dsb-plate-input, which is the
   registration search field. Sized by font-size, so a consumer sets the size, not this rule. */
.dsb-plate {
    display: inline-flex;
    align-items: stretch;
    height: 1.9em;
    border: 2px solid var(--dsb-danger);
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    vertical-align: middle;
}
.dsb-plate__band {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .25em;
    background: var(--dsb-eu-blue);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: .5em;
}
/* A plate from outside the EU (the UK): its sign on the plate's own white, no European blue. */
.dsb-plate__band--plain {
    background: transparent;
    color: var(--dsb-text-color);
    border-right: 1px solid var(--dsb-border-color);
}
.dsb-plate__number {
    display: flex;
    align-items: center;
    padding: 0 .45em;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: .62em;
    letter-spacing: .04em;
    font-variant-numeric: tabular-nums;
    color: var(--dsb-text-color);
}

/* =============================================
   PILLS (status indicators)
   ============================================= */
.dsb-pill {
    display: inline-flex;
    align-items: center;
    gap: 6.4px;
    /* One padding, with or without an icon (guide .34rem .7rem). */
    padding: 5.44px 11.2px;
    border-radius: 999px;
    /* V2 §6: base sets the style, each variant supplies its own border-color below. Without
       this, --neutral's 3%-alpha fill is practically invisible on white. */
    border: 1px solid;
    /* The one component in the whole port that stays Red Hat Display 600 (V2 §6): every other
       structural rule is RHD 700 and every text-like rule is Roboto 500, but .dg2-pill itself is
       the sole 600 — Red Hat Display is the only family that font actually ships. */
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    font-size: 12.48px;
    line-height: 1;
    white-space: nowrap;
}
.dsb-pill i { font-size: 1.15em; }
.dsb-pill--searching { color: var(--dsb-pill-searching-text); background-color: var(--dsb-pill-searching-bg); border-color: var(--dsb-pill-searching-border); }
.dsb-pill--searching i { color: var(--dsb-pill-searching-text); }
.dsb-pill--updated { color: var(--dsb-pill-updated-text); background-color: var(--dsb-pill-updated-bg); border-color: var(--dsb-pill-updated-border); }
.dsb-pill--updated i { color: var(--dsb-pill-updated-text); }
/* The red pill's wash is a step stronger than the red alert's (.10 against .09), as in the guide. */
.dsb-pill--danger { color: var(--dsb-alert-danger-text); background-color: rgba(192,57,43,.10); border-color: var(--dsb-alert-danger-border); }
/* Follows the alert to yellow (V2 2.14.0) — one warning colour, not a separate goldenrod. */
.dsb-pill--warning { color: var(--dsb-warn-ink); background-color: var(--dsb-warn-bg); border-color: var(--dsb-warn-line); }
/* The info pill is the information BLUE (guide 2.10.12), not the info alert's navy: the same
   values as --searching. */
.dsb-pill--info { color: var(--dsb-pill-searching-text); background-color: var(--dsb-pill-searching-bg); border-color: var(--dsb-pill-searching-border); }
/* --neutral's fill is 3% alpha — the border is what makes it a pill and not a blank space. */
.dsb-pill--neutral { color: var(--dsb-pill-neutral-text); background-color: var(--dsb-pill-neutral-bg); border-color: var(--dsb-border-light); }
/* Green "all good" pill (active, accepted, enabled). Distinct from --updated, which marks
   a recent change rather than a steady state; both are the guide's one green pill, so they share
   its values (.12 / .30, a step stronger than the green alert's wash). */
.dsb-pill--success { color: var(--dsb-pill-updated-text); background-color: var(--dsb-pill-updated-bg); border-color: var(--dsb-pill-updated-border); }
.dsb-pill--success i { color: var(--dsb-pill-updated-text); }
/* Kept for the markup that carries it: the base padding is symmetric now, so --plain changes
   nothing. */
.dsb-pill--plain { padding: 5.44px 11.2px; }
/* Outline pill — border + text in table-action blue, no fill (e.g. the "You" pill). */
.dsb-pill--outline {
    background: transparent;
    border: 1.5px solid var(--dsb-table-action);
    color: var(--dsb-table-action);
    font-weight: 700;
    padding: 4.48px 9.6px;
}

/* DUE NOTES (guide point 6, .dg2-due, 2.39.1 — lifted from the Dashboard's Pending service tables,
   where they were .wd-due). Words after a date in the same cell, never a pill: small and grey, they
   say how far away the date is or what was asked. A note takes colour only when the date asks for
   something: red when overdue, navy today, blue while a suggested time waits for the customer's
   answer.
     28/09/2026 <span class="dsb-due">in 12 days</span>
   --late is the stronger red (guide --danger #D92C18, here --dsb-drop): the buttons' red reads dark
   at this size. --sent has no consumer yet: the Dashboard's rows carry no "suggested, awaiting
   reply" state on a reminder (an appointment says it with a pill). */
.dsb-due { margin-left: 5.6px; font-size: 12.8px; color: var(--dsb-text-light); white-space: nowrap; }
.dsb-due--late { color: var(--dsb-drop); font-weight: 500; }
.dsb-due--today { color: var(--dsb-navy-soft); font-weight: 600; }
.dsb-due--sent { color: var(--dsb-table-action); font-weight: 500; }

/* =============================================
   CHIPS (toggle filters, e.g. the fleet vehicle list)
   ============================================= */
.dsb-chip {
    all: unset;
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--dsb-border-light);
    background: var(--dsb-bg-subtle);
    color: var(--dsb-text-muted);
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.dsb-chip:hover { border-color: var(--dsb-table-action); color: var(--dsb-table-action); }
.dsb-chip.dsb-chip--active { background: var(--dsb-table-action); border-color: var(--dsb-table-action); color: #fff; }
/* A chip that is a link has to outrank vendor.css's `a { color: ... !important }`. */
a.dsb-chip { color: var(--dsb-text-muted) !important; }
a.dsb-chip:hover { color: var(--dsb-table-action) !important; }
a.dsb-chip.dsb-chip--active { color: #fff !important; }
.dsb-chip:focus-visible {
    outline: none;
    box-shadow: var(--dsb-focus-ring);
}
/* A chip that holds a radio (2026-10-02): a choice of one, in a .dsb-chip-group fieldset, that works without scripts.
   The radio is visually hidden but keeps focus and the keyboard; the chip shows its state, as .dsb-chip--active does. */
.dsb-chip-group { border: 0; margin: 0; padding: 0; min-width: 0; }
/* The legend reads as a .dsb-field label; vendor.css gives a legend a full width and a bottom border. */
.dsb-chip-group > legend { float: none; width: auto; border: 0; padding: 0; margin: 0 0 6px; font-size: 13.6px; font-weight: 500; line-height: inherit; color: var(--dsb-head-color); }
.dsb-chip-group__options { display: flex; flex-wrap: wrap; gap: 8px; }
.dsb-chip:has(> input[type="radio"]) { position: relative; }
.dsb-chip > input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.dsb-chip:has(> input[type="radio"]:checked) { background: var(--dsb-table-action); border-color: var(--dsb-table-action); color: #fff; }
.dsb-chip:has(> input[type="radio"]:focus-visible) { box-shadow: var(--dsb-focus-ring); }

/* =============================================
   ALERTS
   ============================================= */
.dsb-alert {
    display: flex;
    align-items: flex-start;
    gap: 11.2px;
    padding: 14.4px 17.6px;
    border: 1px solid transparent;
    /* Surface radius, not control radius (V2 §5): an alert is a flat, and a flat is rounder
       than the controls inside it. */
    border-radius: var(--dsb-radius-lg);
    font-size: 15.2px;
    line-height: 1.5;
    margin-bottom: 12px;
}
/* The alert's own icon only (a direct child), at the text's size: an icon inside a button in the
   alert is the button's. */
.dsb-alert > i { margin-top: 2.88px; flex: none; }
/* The bold lead ("one bold sentence that says it all"): <b> as well as <strong>, because the pages
   write both. */
.dsb-alert strong, .dsb-alert b { font-family: 'Red Hat Display', sans-serif; font-weight: 700; }
.dsb-alert--success { color: var(--dsb-alert-success-text); background: var(--dsb-alert-success-bg); border-color: var(--dsb-alert-success-border); }
.dsb-alert--warning { color: var(--dsb-alert-warning-text); background: var(--dsb-alert-warning-bg); border-color: var(--dsb-alert-warning-border); }
.dsb-alert--danger  { color: var(--dsb-alert-danger-text);  background: var(--dsb-alert-danger-bg);  border-color: var(--dsb-alert-danger-border); }
.dsb-alert--info    { color: var(--dsb-alert-info-text);    background: var(--dsb-alert-info-bg);    border-color: var(--dsb-alert-info-border); }
/* AN ALERT WITH A WAY OUT (guide point 5, .dg2-bill-due, 2.39.1: "With a way out, the button stands
   at the right"). Any colour; Settings' "Payment failed" is the first. The icon, a body with the
   bold line and a softer paragraph under it, and the action at the right, all centred on one line:
     <div class="dsb-alert dsb-alert--danger dsb-alert--action">
       <i class="fa-solid fa-credit-card" aria-hidden="true"></i>
       <div class="dsb-alert__body"><b>What happened.</b><p>The detail.</p></div>
       <form method="post" class="dsb-alert__action"><button class="dsb-btn dsb-btn--primary dsb-btn--sm">…</button></form>
     </div>
   .dsb-alert__action is the same element the demo bar uses: the button itself, or the form a
   posting button needs. */
.dsb-alert--action { align-items: center; gap: 14.4px; padding: 13.6px 16px 13.6px 17.6px; }
.dsb-alert--action > i { margin-top: 0; font-size: 16.8px; }
.dsb-alert__body { flex: 1 1 auto; min-width: 0; }
/* vendor.css gives every p a bottom margin; the paragraph is the alert's colour, a step softer. */
.dsb-alert__body p { margin: 1.6px 0 0; font-size: 13.76px; line-height: 1.45; color: inherit; opacity: .88; }
.dsb-alert--action .dsb-alert__action { flex: none; margin: 0; }
/* Not in the guide, which has no phone rule for it: on a phone the text cannot share the line with
   the button, so the button drops under it. This is how Settings' unpaid alert already behaved. */
@media (max-width: 767px) {
    .dsb-alert--action { flex-wrap: wrap; }
    .dsb-alert--action .dsb-alert__body { flex-basis: 240px; }
}
/* A bar across the top of the page (the demo site's warning): no radius, no margin, centred, its action at the right. */
/* A full-width strip variant (the demo banner): square, full width, centred, and in the solid warning yellow rather
   than the tint, so it reads as a site-wide notice and not as one page's alert. The ink is the body colour: the alert's
   own warning ink is tuned for the tint and is too faint on the solid. */
.dsb-alert--bar { border-radius: 0; margin: 0 0 12px; align-items: center; justify-content: center; flex-wrap: wrap; border-width: 1px 0; padding: 8px 16px; background: var(--dsb-warn); color: var(--dsb-text-color); }
.dsb-alert--bar .dsb-alert__action { margin-left: 8px; }
.dsb-alert--bar .dsb-btn { padding: 4px 12px; font-size: 13px; }

/* The demo banner (AB#6192, Partials/_DemoBanner.cshtml): the strip fixed above the fixed top bar, the full width of the
   window, above the bar (1030) and below sheets and modals (1041+). html.dsb-demo is set by _Layout inside a demo, and
   --dsb-demo-bar is the strip's measured height (the partial's script): everything that hangs from the top of the
   window moves down by it, and so does the page, so main's own margin still clears the top bar as before. */
:root { --dsb-demo-bar: 0px; }
.dsb-demo-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 1031; margin: 0; }
/* #app, not body: vendor.css has body { padding: 0 !important }. */
html.dsb-demo #app { padding-top: var(--dsb-demo-bar); }
/* The desktop bar (header.header.hidden-xs) and its strip, and on a phone the wrap alone: the phone's header.header
   is a zero-height box whose child wrap is the fixed bar, and dsb.js gives that header a transform on scroll, which
   makes it the wrap's containing block. Moving the header too would then move the wrap twice. */
html.dsb-demo header.header.hidden-xs, html.dsb-demo .dsb-nav-strip, html.dsb-demo .dsb-navbar-mob-wrap { top: var(--dsb-demo-bar); }
/* The text is written twice in the markup for the phone ticker below; a desktop shows the first copy only. */
.dsb-demo-bar__run + .dsb-demo-bar__run { display: none; }
/* A phone (the designer, 2026-11-19): one line, the text as a ticker, and a smaller Leave button. The text box takes
   what the button leaves and clips; both copies of the text run left as one inline-block each, so when the first has
   gone a full width the second stands where it started, and the loop never shows a seam. */
@media (max-width: 767px) {
    .dsb-demo-bar { flex-wrap: nowrap; gap: 8px; padding: 4px 8px; font-size: 13px; }
    .dsb-demo-bar__text { flex: 1 1 auto; min-width: 0; display: flex; overflow: hidden; white-space: nowrap; }
    .dsb-demo-bar__run { display: inline-block; flex: 0 0 auto; padding-right: 48px; animation: dsb-demo-ticker 18s linear infinite; }
    .dsb-demo-bar__run + .dsb-demo-bar__run { display: inline-block; }
    .dsb-demo-bar .dsb-alert__action { margin: 0; flex: 0 0 auto; }
    /* !important as .dsb-btn--sm does: .dsb-btn pins its padding with one. */
    .dsb-demo-bar .dsb-btn { padding: 0 10px !important; font-size: 12px !important; height: 28px !important; }
}
@keyframes dsb-demo-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
/* Without motion the text stands still and clips with an ellipsis; the second copy would only be a repeat. */
@media (prefers-reduced-motion: reduce) {
    .dsb-demo-bar__run { animation: none; }
    .dsb-demo-bar__text { display: block; text-overflow: ellipsis; }
    .dsb-demo-bar__run + .dsb-demo-bar__run { display: none; }
}

/* =============================================
   WARNING ICON
   ============================================= */
.dsb-warning {
    /* Yellow, not orange (V2 2.14.0) — matches the alert/pill warning ink so an advisory
       icon is never mistaken for sun-orange decoration. */
    color: var(--dsb-warn-ink);
    font-size: 14px;
    cursor: help;
}

/* THE MILEAGE DROP (V2 2.27.3/2.27.7): the reading and the triangle are one trigger with one bubble. */
/* Two classes: .dsb-table-tooltip, later in the file, sets cursor: default. */
.dsb-table-tooltip.dsb-kmdrop { gap: 7.2px; white-space: nowrap; color: var(--dsb-drop); font-weight: 500; cursor: help; transition: color .15s ease; }
.dsb-table-tooltip.dsb-kmdrop:hover, .dsb-table-tooltip.dsb-kmdrop:focus-visible { color: var(--dsb-drop-ink); outline: none; }
.dsb-kmdrop__f { font-size: 13px; line-height: 1; }
.dsb-kmdrop .dsb-table-tooltip__content { white-space: normal; width: 290px; text-align: left; }
.dsb-kmdrop .dsb-table-tooltip__content b { display: block; margin-bottom: 3.2px; font-weight: 600; }

/* =============================================
   TABLES
   ============================================= */
.dsb-table-wrapper {
    /* THE TABLE OWNS ITS SURFACE (V2 2.13.28): a flat is rounder than the controls inside it,
       and without an explicit white background the rows borrow whatever sits behind the wrapper —
       paper-grey on an open page, white inside a card — so the hover shadow (below) disappears on
       whichever one isn't white. */
    /* margin-top folded in from the duplicate DevExtreme-section definition (Opgave 13, kendelse
       R23): both .dsb-table and .dsb-dx-grid markup sit directly under a heading/hint on every one
       of the 7 pages that use this wrapper, so the spacing is the wrapper's own, not something
       DevExtreme-specific. */
    margin-top: 24px;
    border-radius: var(--dsb-radius-lg);
    overflow: hidden;
    /* The frame is the full hairline (guide --line); the lighter --dsb-border-light is for the
       lines between the rows inside it. */
    border: 1px solid var(--dsb-border-color);
    background: #fff;
}
/* Fixed-width name slot so trailing status pills ("Invited") align in a column across
   rows instead of drifting with name length — names keep their shared left edge, which
   is what the eye scans by. Width ≈ the longest name in the column. */
.dsb-cell-name {
    display: inline-block;
    min-width: 105px;
}
/* Multi-line cell for combined columns (e.g. Brand/Model, Reg/VIN) */
.dsb-cell-multiline {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    padding: 2px 0;
}
.dsb-cell-multiline__primary {
    /* Roboto is not fetched at 600 — a 600 declaration synthesizes to 700 and renders bold. */
    font-weight: 500;
    font-size: 13px;
}
.dsb-cell-multiline__secondary {
    font-size: 11px;
    color: var(--dsb-text-muted);
}
/* Cellens linje 2 for FRI TEKST (V2 2.20.1) — værkstedets håndskrevne note under servicetypen.
   Ikke det samme som .dsb-cell-multiline__secondary, som er en kort strukturel underlinje: den her
   er en ukendt mængde tekst der skal ombryde uden at æde tabellen.

   ASK vs USE, og begge dele er nødvendige: width:max-content under 44ch-loftet er hvad noten BEDER
   tabellen om — en kort note udvider aldrig sin kolonne, en lang udvider den til 44ch og ikke mere.
   min-width:100% er hvad den BRUGER, når kolonnerne har delt sliddet, så den løber så få linjer som
   kolonnen tillader i stedet for at stå som en smal høj blok med luft ved siden af. Procenten
   opløses først mod cellen ved layout og fodrer derfor ikke tilbage i asken.

   GUTTER: de 16px højrepolstring ligger INDEN I boksen (border-box), så en note der fylder sin
   kolonne stopper en cellepolstring fra naboen i stedet for at løbe ind i den. */
/* EN TOM TABEL siger hvorfor den er tom, centreret over hele bredden og i dæmpet blæk — en
   tabelramme med ingenting i læses som en fejl (V2: .dg2-cust-empty). Rækken står i markup'en fra
   starten og skjules med [hidden], så et filter kan slå den til uden at bygge en række. */
.dsb-table__empty td {
    text-align: center;
    color: var(--dsb-text-muted);
    padding: 25.6px 16px;
}
.dsb-table tbody tr.dsb-table__empty:hover > td { background: transparent; }

.dsb-table__sub {
    display: block;
    margin-top: 3.2px;
    width: max-content;
    max-width: calc(44ch + 16px);
    min-width: 100%;
    box-sizing: border-box;
    padding-right: 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 13.12px;
    line-height: 1.3;
    color: var(--dsb-text-muted);
    white-space: normal;
    overflow-wrap: anywhere;
}
/* En række med en note top-justerer ALLE sine celler — ellers flyder middel-justerede naboer
   halvvejs ned ad en lang note, og dato, km og værksted står ikke på typens linje.
   Efterkommer og ikke barn: dsbTableCards pakker en celle med flere dele i .dsb-mval i alle bredder. */
.dsb-table tbody tr:has(> td .dsb-table__sub) > td { vertical-align: top; line-height: 1.3; }
/* OPT-IN (.dsb-table--middle, guide 2.25.0): a row whose two-line cell sits beside CONTROLS centres
   everything on the row's middle instead. Top-aligned, a select and the row's bin hang at the top of
   a two-line cell — which is exactly what Team looked like once the e-mail became a sub-line.

   The second selector is not redundant. The rule above carries the specificity of its :has()
   argument, so a plain .dsb-table--middle td loses to it and the declaration would silently do
   nothing; this restates the same shape and wins on source order. Text-only rows keep the top
   alignment, which is right for a wrapping service note. */
.dsb-table.dsb-table--middle tbody tr > td,
.dsb-table.dsb-table--middle tbody tr:has(> td .dsb-table__sub) > td { vertical-align: middle; }
/* Car match badge - shown when search matches a VIN/registration */
.dsb-car-match {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
/* Count badge (V2 R21: .dg2-badge is Red Hat Display 700). Was font-weight:600 with no
   font-family — since the typography task it silently inherited body's Roboto, which has no
   600, so it synthesised to bold. */
.dsb-car-match__count {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
}
.dsb-car-match__badge {
    font-size: 11px;
    background: var(--dsb-bg-subtle, #f0fdf4);
    color: var(--dsb-success, #16a34a);
    border: 1px solid var(--dsb-success, #16a34a);
    border-radius: 12px;
    padding: 2px 8px;
    white-space: nowrap;
}
.dsb-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    /* 15px, a step over the guide's .92rem (14.72px): the tables were hard to read at the guide's
       size (Alexandar, 2026-11-27). The column heads go up with them, 11.84px to 12px. The DevExtreme
       grids take the same two sizes (DEVEXTREME DATAGRID OVERRIDES). */
    font-size: 15px;
}
/* Header type = the platform's column header on navy: Red Hat Display 700, tracked uppercase. */
.dsb-table thead th {
    background: var(--theme-secondary);
    color: #fff;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .13em;
    text-transform: uppercase;
    text-align: left;
    padding: 12.8px 16px;
    white-space: nowrap;
    border: none;
}
.dsb-table tbody td {
    padding: 12.8px 16px;
    border-top: 1px solid var(--dsb-border-light);
    color: var(--dsb-text-color);
    vertical-align: middle;
}
/* ZEBRA (V2 2.26.24 — reverses 2.13.28, which had dropped the tint): every second row is a
   whisper darker so the eye can follow a long row across the table. The hairlines stay; tone plus
   hairline is deliberately two separators for one job, and the guide records that if the tone
   proves enough live, the hairline can go.

   COUNTED AMONG THE VISIBLE ROWS (:nth-child(even of :not([hidden]))), so a filtered or removed
   row never leaves two toned rows touching. NOTE for a later reader: no table in this app hides
   rows client-side today (checked 2026-09-16), so the guarantee is presently untested here — and
   a page that starts hiding rows must do it with the [hidden] attribute, not a class or
   display:none, or the count silently goes wrong.

   :where() — weight zero, on purpose. The row-hover shadow, a row with a background of its own,
   and any page's own row state all win over the tone without needing to out-specify it. */
.dsb-table tbody tr:where(:nth-child(even of :not([hidden]))) > td {
    background-color: var(--dsb-row-alt);
}

/* THE ROW LIFT: a row "steps toward you" on hover — shadow only, never a transform and never a
   tint. V2 removed scale(1.006): a scaled row rasterises on its own layer, so its text visibly
   changes weight on mouse-out and smears while hovered. A surface that steps toward you moves
   toward the light — it gets lighter and casts a shadow, it does not darken — so the shadow alone
   is the signal. Rows stay position:relative permanently so the fading shadow keeps its paint order
   on mouse-out.

   EVERY ROW OF EVERY TABLE (owner decision, 2026-11-26). Until then the lift was opt-in twice over:
   .dsb-table--rowlift on the table and data-report on the row (V2 2.16.5), so only the lists of
   records lifted. The guide still writes it per table (.dg2-table--rowlift); here it is the table's
   own. .dsb-table--rowlift is still in the markup and no longer does anything. The lift says "this
   is the row you are on", not "this row opens": the pointer cursor and the focus ring stay with the
   rows that open something (--rowlink / --rowclick below).

   Three rows are not rows of data and stay still, as the guide's own heading row does
   (.dg2-pend__byerow): a group heading, the "nothing here" row, and the search page's OE row — which
   the guide keeps out of the lift by putting it in the thead, and which lives in the tbody here (the
   AJAX contract). A row that is ONE cell across the whole table is a message too (loading, "no
   match", an error), whatever class it carries, so it stays still as well.
   :where(), so the exceptions add no weight and a page's own row state still wins. */
.dsb-table tbody tr:where(:not(.dsb-table__group, .dsb-table__empty, .dsb-srch-oe, :has(> td[colspan]:only-child))) {
    position: relative;
    transition: box-shadow .15s ease;
}
/* V2 2.26.24, fifth cut: THE LIGHT FALLS STRAIGHT ON THE ROW — no offset, so the shadow is the
   same above and below. It used to be 0 3px 12px, the 3px drop of a light from above that every
   other lifted surface in V2 has; on a row that read as heavier underneath, made plainer by the
   hairline above it and the toned row below. Rows only — cards and pop-ups keep their top-lit
   shadows; the guide has this marked as a trial, and if it stays the other lifted surfaces follow. */
.dsb-table tbody tr:where(:not(.dsb-table__group, .dsb-table__empty, .dsb-srch-oe, :has(> td[colspan]:only-child))):hover {
    z-index: 1;
    box-shadow: 0 0 12px rgba(38, 63, 107, .14);
}
/* V2 2.26.24, fourth cut: a toned row is a shade darker, so the same shadow carries less weight
   against it and the lift read weaker there. The toned rows hover at .19 against the plain rows'
   .14, so a lifted row looks equally lifted whichever stripe it is on. */
.dsb-table tbody tr:where(:not(.dsb-table__group, .dsb-table__empty, .dsb-srch-oe, :has(> td[colspan]:only-child))):where(:nth-child(even of :not([hidden]))):hover {
    box-shadow: 0 0 12px rgba(38, 63, 107, .19);
}
@media (prefers-reduced-motion: reduce) {
    .dsb-table tbody tr { transition: none; }
}
/* ROW-LINK (opt-in, .dsb-table--rowlink): the whole row is the link — pointer cursor, and a click
   anywhere on the row that is not on an inner control follows the row's primary link. Opt-in per
   row with data-report: a table can have rows that are not records and open nothing. */
.dsb-table--rowlink tbody tr[data-report] { cursor: pointer; }
.dsb-table--rowlink tbody tr[data-report]:not(:has(a[href])) { cursor: default; }
.dsb-table--rowlink tbody tr[data-report]:focus-visible {
    outline: none;
    z-index: 1;
    /* Same no-offset lift as the hover above (V2 2.26.24, fifth cut) — keyboard and mouse must
       show the row the same way. */
    box-shadow: 0 0 12px rgba(38, 63, 107, .14), inset 0 0 0 2px var(--dsb-fld-focus-line);
}
/* A row-link's cells ease a change of background (guide, with .is-lit / .is-marked): the search
   page's history rows light up with the timeline's dots and stay marked after a click, and neither
   may snap. :where(), so a cell with a transition of its own (the OE search's arriving row) keeps it. */
:where(.dsb-table--rowlink) tbody td { transition: background-color .18s ease; }
@media (prefers-reduced-motion: reduce) {
    :where(.dsb-table--rowlink) tbody td { transition: none; }
}
/* ROW-CLICK (opt-in, .dsb-table--rowclick): the row navigates through its own script reading
   data-href, for a report with no inner link to delegate to. Same focus ring as --rowlink, and
   opt-in per row the same way. */
.dsb-table--rowclick tbody tr[data-report] { cursor: pointer; }
.dsb-table--rowclick tbody tr[data-report]:focus-visible {
    outline: none;
    z-index: 1;
    box-shadow: 0 0 12px rgba(38, 63, 107, .14), inset 0 0 0 2px var(--dsb-fld-focus-line);
}
/* TABLE COLOUR ROLES: green belongs to the status pills alone; links are the information blue;
   plain data is ink. A button in a table is the buttons component's button — it keeps its own
   colour and never underlines on hover. */
.dsb-table a:not(.dsb-btn) {
    /* !important: vendor.css:41045 hits the bare "a" selector with its own !important color,
       and a plain rule here loses to it silently. */
    color: var(--dsb-table-action) !important;
    text-decoration: none;
    font-weight: 500;
}
.dsb-table a:not(.dsb-btn):hover { text-decoration: underline; }
/* The open arrow in a row-action cell is a table link, but an ICON: 14px like the tools beside it,
   and on hover it goes to the table-action button's darker blue with no underline (guide 2.17.2:
   "hover = the control's own colour, darker"). */
.dsb-table .dsb-rowact a:not(.dsb-btn) { font-size: 14px; }
.dsb-table .dsb-rowact a:not(.dsb-btn):hover { color: var(--dsb-table-action-dark) !important; text-decoration: none; }

/* =============================================
   ROW ACTIONS (V2 §2.20 team page — guide source .dg2-rowact/.dg2-team-act, design-guide.html
   2438-2663; guide markup 8837-8887, the same anatomy on member AND invited rows)
   =============================================
   A hard rule, not a style choice (guide comment 2.17.2/user): a destructive action never sits
   in the OUTERMOST slot of a row-action cell, so a stray click landing where the eye expects a
   harmless action can never be the one that deletes something. Two fixed 16px lanes, the bin one
   lane IN; the outer lane holds the row's positive action (Resend) or, on a row with none (the
   owner), stays reserved-but-empty via .dsb-rowact__slot so every bin still lines up in one
   column. Icons are quiet until the row is noticed — guide 3.4 (user): "like the bin — quiet,
   and only when the pointer is on the row" — fading in over .15s; the reveal also fires on
   keyboard focus (guide 2.20.0, user: "KEYBOARD focus shows it, not any focus — a select closed
   with the mouse left its button focused and the bin stuck on", hence :focus-visible and not
   :focus) and stays permanently visible where there is no pointer to hover with at all.

   Markup (bare button — member row):
     <td class="dsb-rowact dsb-team-act">
       <button type="button" class="dsb-rowact--danger" title="Remove member" aria-label="Remove member">
         <i class="fa-regular fa-trash-can"></i>
       </button>
       <span class="dsb-rowact__slot" aria-hidden="true"></span>
     </td>
   Markup (form-wrapped — invited row, each action posts on its own): the <form> becomes the 16px
   lane instead of the button, since the guide has no server and its buttons are bare.
     <td class="dsb-rowact dsb-team-act">
       <form method="post" asp-page-handler="RevokeInvite">…<button class="dsb-rowact--danger">…</button></form>
       <form method="post" asp-page-handler="ResendInvite">…<button class="dsb-rowact--positive">…</button></form>
     </td>
   ============================================= */
.dsb-rowact {
    text-align: right;
    white-space: nowrap;
    vertical-align: middle;
}

/* Every lane is a fixed 16px box, centred, no matter what fills it (bare button, empty slot, or
   the <form> a real submit needs) — the guide-measured 17.6px (1.1rem × 16) gap sits only on the
   SECOND lane, so a row with one lane never carries a stray gap. */
.dsb-rowact > * {
    display: inline-block;
    width: 16px;
    text-align: center;
    vertical-align: middle;
    margin: 0;
}
.dsb-rowact > * + * {
    margin-left: 17.6px;
}
/* The reserved-but-empty outer lane on a row with no positive action (e.g. the owner's bin lane
   has nothing past it) — a placeholder, not a disabled control. */
.dsb-rowact__slot {
    height: 14px;
}
/* A form-wrapped lane (RemoveMember/ResendInvite each post independently): the form itself is
   sized by .dsb-rowact > * above; line-height:0 clears the inline-block "mystery gap" a normal
   line box would leave under it, and the button inside just fills the lane. */
.dsb-rowact > form {
    line-height: 0;
}
.dsb-rowact > form > button {
    width: 100%;
}
.dsb-rowact--danger,
.dsb-rowact--positive {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    transition: opacity .15s ease, color .15s ease;
}
/* Rest colour rgba(21,17,12,.42) = --dsb-text-light, guide-measured; both lanes start equally
   quiet so neither reads as more important than the other until the pointer picks one out. */
.dsb-rowact--danger,
.dsb-rowact--positive {
    color: var(--dsb-text-light);
}
/* Hover: a destructive action speaks danger only when pointed at (#c0392b = --dsb-danger, guide
   source 2642); a positive one just goes one shade darker, the same quiet-control rule every
   other grey control in this file follows (--dsb-quiet-hover). :active is the press on a touch
   screen, where there is no hover to speak with. */
.dsb-rowact--danger:hover,
.dsb-rowact--danger:active { color: var(--dsb-danger); }
.dsb-rowact--positive:hover { color: var(--dsb-quiet-hover); }
/* HIDDEN UNTIL THE ROW IS POINTED AT — and only in a table row. The bin is every "remove" on the
   platform (owner decision, 2026-11-26: the always-visible red .dsb-bin is gone, the guide's quiet
   bin took its place; removing is still confirmed in a pop-up, by the page's script). A bin that
   stands outside a row — on a phone card, in a pop-up's footer — has no row to be pointed at, so it
   is simply there: grey, red under the pointer or the press. */
.dsb-table tbody tr .dsb-rowact--danger,
.dsb-table tbody tr .dsb-rowact--positive {
    opacity: 0;
}
.dsb-table tbody tr:hover .dsb-rowact--danger,
.dsb-table tbody tr:hover .dsb-rowact--positive,
.dsb-table tbody tr:has(:focus-visible) .dsb-rowact--danger,
.dsb-table tbody tr:has(:focus-visible) .dsb-rowact--positive {
    opacity: 1;
}
/* No pointer to hover with — the action stays visible rather than permanently hidden. */
@media (hover: none) {
    .dsb-table tbody tr .dsb-rowact--danger,
    .dsb-table tbody tr .dsb-rowact--positive {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .dsb-rowact--danger,
    .dsb-rowact--positive { transition: none; }
}

/* "+ ADD" IN AN EMPTY CELL THAT CAN BE FILLED (guide point 8, .dg2-tagadd; it lived in
   pages/customers.css for the Tags column). Like the bin: it shows only when the pointer is on its
   row, or the row has focus, and always where there is no pointer to hover with. A row WITH a value
   shows the value at rest; the "+ Add" behind it still waits for the hover (V2 2.17.2). Both kinds
   of row are named: a .dsb-table's <tr> and a DevExtreme grid's .dx-data-row.
     <a class="dsb-tagadd" href="…"><i class="fa-solid fa-plus" aria-hidden="true"></i> Add</a> */
.dsb-tagadd {
    opacity: 0;
    transition: opacity .15s ease;
    white-space: nowrap;
    /* At least a 24px target; the negative margin keeps the text where it was. */
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 6px;
    margin: -2px -6px;
}
tr:hover .dsb-tagadd,
tr:focus-within .dsb-tagadd,
.dx-data-row:hover .dsb-tagadd,
.dx-data-row:focus-within .dsb-tagadd { opacity: 1; }
@media (hover: none) { .dsb-tagadd { opacity: 1; } }
/* The plus matches the word — the text's own colour at full strength, only a little smaller. No
   dimming: that read as weak (V2 2.17.1 / 2.17.2). */
.dsb-tagadd i { font-size: .8em; vertical-align: .02em; margin-right: .1em; }
@media (prefers-reduced-motion: reduce) { .dsb-tagadd { transition: none; } }

/* =============================================
   8b. TABLES ON A PHONE: EVERY ROW A CARD (design guide V2 "MOBILE 2.31.0")
   =============================================
   The columns that matter run off a phone's right edge, so the head steps aside and each row becomes
   a card. A row with no card design of its own gets the GENERAL card: the first cell is the title,
   every other cell a line of "column name … value", the name copied from the head by dsbTableCards.
   .dsb-table--owncard (the guide's .dg2-mcustom) opts a table out and uses grid areas instead. */
@media (max-width: 767px) {
    /* The wrapper gives up its frame: each row carries one now. */
    .dsb-table-wrapper {
        border: 0;
        border-radius: 0;
        background: none;
        overflow: visible;
    }
    .dsb-table,
    .dsb-table > tbody { display: block; width: 100%; }
    /* The column names step aside; a head row that is CONTENT and not names — the locked preview's
       OE row — stays, laid out like the rows below it. */
    .dsb-table > thead, .dsb-table > thead > tr { display: block; }
    .dsb-table > thead > tr:first-child { display: none; }
    .dsb-table > tbody > tr {
        display: block;
        padding: 12px 14.4px;
        border: 1px solid var(--dsb-border-light);
        border-radius: 12px;
        background: #fff;
    }
    .dsb-table > tbody > tr + tr { margin-top: 8px; }
    /* The hover lift is a table's furniture, not a card's; the stripe goes with the cell background.
       A card that opens something (data-report) answers the press instead. */
    .dsb-table > tbody > tr:hover { box-shadow: none; }
    .dsb-table > tbody > tr[data-report]:active { box-shadow: 0 6px 16px -10px rgba(15,23,38,.35); }
    .dsb-table > tbody > tr > td {
        display: block;
        padding: 0;
        border: 0;
        background: none !important;
        white-space: normal;
    }

    /* The general card. */
    .dsb-table:not(.dsb-table--owncard) > tbody > tr > td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 2.9px 0;
        text-align: right;
    }
    .dsb-table:not(.dsb-table--owncard) > tbody > tr > td:first-child {
        display: block;
        padding: 0 0 4.8px;
        font-weight: 600;
        font-size: 14.7px;
        color: var(--dsb-head-color);
        text-align: left;
    }
    .dsb-table:not(.dsb-table--owncard) > tbody > tr > td:not(:first-child)[data-label]::before {
        content: attr(data-label);
        flex: none;
        font-size: 12.5px;
        font-weight: 400;
        color: var(--dsb-text-light);
        text-align: left;
    }
    /* A cell with no column name of its own (an action, a button) simply sits at the right. */
    .dsb-table:not(.dsb-table--owncard) > tbody > tr > td:not(:first-child):not([data-label]),
    .dsb-table:not(.dsb-table--owncard) > tbody > tr > td[data-label=""] { justify-content: flex-end; }
    .dsb-table:not(.dsb-table--owncard) > tbody > tr > td[colspan] { display: block; text-align: left; }
    /* A value of several parts (a number and its note) is one item beside its label, so the label
       stays on the first line; dsbTableCards wraps those in .dsb-mval. */
    .dsb-table:not(.dsb-table--owncard) .dsb-mval { min-width: 0; overflow-wrap: anywhere; }
    .dsb-table:not(.dsb-table--owncard) .dsb-mval .dsb-table__sub { display: block; margin-top: 1.6px; white-space: normal; }
    .dsb-table .dsb-table__sub { width: auto; min-width: 0; max-width: none; }

    /* The legacy phone layout hid columns to make the table fit (vendor.css ~43660: the workshop and
       the comment, inside .table-responsive). A card has room for all of them, so they come back. */
    #app .container .table-responsive .service_book-workshop { display: flex; }
    #app .container .table-responsive .service_book_comment { display: flex !important; }
    /* vendor.css indents the first cell 8px (#app .container .table-responsive td:first-child); in a card it lines up with the rest. */
    #app .container .table-responsive .dsb-table > tbody > tr > td:first-child { padding-left: 0; }

    /* ---- The service record card (guide: "date and mileage, the type and its note, the workshop
       and View"). Columns: date · type · mileage · workshop · the row's action. ---- */
    .car_inspections > tbody > tr:not(.dsb-srch-oe) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "date km"
            "type type"
            "ws   view";
        row-gap: 3.2px;
        column-gap: 12.8px;
    }
    .car_inspections > tbody > tr > td:nth-child(1) { grid-area: date; font-weight: 600; color: var(--dsb-head-color); }
    .car_inspections > tbody > tr > td:nth-child(2) { grid-area: type; min-width: 0; overflow-wrap: anywhere; }
    .car_inspections > tbody > tr > td:nth-child(3) { grid-area: km; text-align: right; color: var(--dsb-text-muted); }
    .car_inspections > tbody > tr > td:nth-child(4) { grid-area: ws; color: var(--dsb-text-muted); }
    .car_inspections > tbody > tr > td:nth-child(5) { grid-area: view; text-align: right; }
    .car_inspections .dsb-table__sub { display: block; margin-top: 1.6px; font-size: 13.1px; color: var(--dsb-text-muted); overflow-wrap: anywhere; }
}

/* =============================================
   SORTABLE TABLE HEADER (V2 §8 .dg2-th-sort)
   ============================================= */
.dsb-th-sort a, .dsb-th-sort button {
    all: unset;
    display: inline-flex;
    align-items: center;
    gap: 7.2px;
    cursor: pointer;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}
.dsb-th-sort a:focus-visible, .dsb-th-sort button:focus-visible { box-shadow: 0 0 0 2px rgba(255,255,255,.7); border-radius: 4px; }
/* Outranks `.dsb-table a:not(.dsb-btn)`, which would paint a header link table-blue on the navy head. */
.dsb-table thead .dsb-th-sort a { color: #fff !important; text-decoration: none; }
.dsb-th-sort__icon { width: 8px; height: 5px; opacity: .35; transition: opacity .18s ease, transform .18s ease; }
.dsb-th-sort a:hover .dsb-th-sort__icon, .dsb-th-sort button:hover .dsb-th-sort__icon { opacity: .7; }
.dsb-th-sort[aria-sort=ascending] .dsb-th-sort__icon, .dsb-th-sort[aria-sort=descending] .dsb-th-sort__icon { opacity: 1; }
.dsb-th-sort[aria-sort=ascending] .dsb-th-sort__icon { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .dsb-th-sort__icon { transition: none; } }

/* =============================================
   PAGER
   ============================================= */
.dsb-pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 11.2px 16px;
    font-size: 13px;
    color: var(--dsb-text-light);
    background: #fff;
    border-top: 1px solid var(--dsb-border-color);
}
.dsb-pager__nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.6px;
    color: var(--dsb-text-muted);
}
.dsb-pager__btn {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    color: var(--dsb-text-color);
}
.dsb-pager__btn:hover { background: var(--dsb-bg-page); }
/* The whole button dims (guide opacity .4), not only its arrow. */
.dsb-pager__btn--disabled { opacity: .4; cursor: default; pointer-events: none; }
.dsb-pager__page-input {
    width: 42px;   /* + the two 1px borders = the guide's 44px */
    height: 32px;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    background: #fff;
    text-align: center;
    font-family: inherit;
    font-size: 13.6px;
    color: var(--dsb-text-color);
    padding: 0;
    -moz-appearance: textfield;
    box-sizing: content-box;
}
.dsb-pager__page-input::-webkit-outer-spin-button,
.dsb-pager__page-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dsb-pager__page-input:focus { outline: none; border-color: var(--theme-secondary); box-shadow: 0 0 0 2px rgba(29,45,73,.15); }
.dsb-pager__nav-label { font-size: 13.6px; color: var(--dsb-text-muted); }
.dsb-pager__size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.6px;
    color: var(--dsb-text-muted);
}
.dsb-pager__size-label {
    font-size: 13.6px;
    color: var(--dsb-text-muted);
    white-space: nowrap;
}
.dsb-pager__size select {
    height: 32px;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    background-color: #fff;
    padding: 4.8px 24px 4.8px 8px;
    font-family: inherit;
    font-size: 13.6px;
    color: var(--dsb-text-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* The system's stroked chevron in soft ink (guide .dg2-pager__size select), drawn at 10px and
       8px in from the right — the same air as left of the value. It was a filled grey triangle. */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.75 4.5 6 7.75 9.25 4.5' stroke='%23696763' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 10px;
    cursor: pointer;
}
.dsb-pager__size select:focus {
    outline: none;
    border-color: var(--dsb-text-muted);
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
}

/* =============================================
   TABS
   ============================================= */
.dsb-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}
.dsb-tab {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 14.72px;
    cursor: pointer;
    background: var(--theme-tab-bg);
    color: #fff !important; /* defensive: vendor.css's "a { color:#0089d0 !important }" would win on an <a>-rendered
                                filled tab. No such markup exists today (both consumers are accounted for — see the
                                underline armour below, which IS proven against a real <a>) but the filled variant
                                has no reason to behave differently from a rendering choice alone. */
    transition: background-color .18s ease;
}
/* .dsb-tab--active must both come after :hover in source order AND match its specificity, or the
   active tab flips to hover-blue on mouse-over instead of staying green: ".dsb-tab:hover" is two
   selectors (0,2,0) and a bare ".dsb-tab--active" is only one (0,1,0), so :hover would win by
   specificity regardless of order. Compounding it onto ".dsb-tab.dsb-tab--active" (0,2,0) — true to
   the real markup, which always carries both classes together — makes source order the tiebreaker.
   This is not a repo-only precaution: V2 itself writes the compound ".dg2-tab.is-on" (dg2-css.css:758),
   not a bare ".is-on" — the guide never relied on source order alone either. */
.dsb-tab:hover { background: var(--dsb-table-action); }
.dsb-tab.dsb-tab--active { background: var(--theme-tab-active); }
/* Inside the tab: a band clips anything drawn outside it. */
.dsb-tab:focus-visible { outline: 2px solid #fff; outline-offset: -5px; }
.dsb-tab:first-child { border-radius: var(--dsb-radius) 0 0 var(--dsb-radius); }
.dsb-tab:last-child { border-radius: 0 var(--dsb-radius) var(--dsb-radius) 0; }

/* Band variant (V2 2.13.29) — the live platform's Search-page vehicle tab bar: a full-width navy
   band with the tabs melting into it (inactive tabs are transparent; the band itself carries the
   colour), active = green, hover = information blue — same roles as the plain filled tab, painted
   onto one shared surface instead of per tab. Søgesiden er dens første forbruger (2026-09-11).
   Søsteren ".dsb-tabs--icons" står lige under. */
.dsb-tabs--band {
    justify-content: center;
    background: var(--theme-tab-bg);
    border-radius: var(--dsb-radius-lg);
    overflow: hidden;
}
.dsb-tabs--band .dsb-tab { background: transparent; border-radius: 0; }
.dsb-tabs--band .dsb-tab:hover { background: var(--dsb-table-action); }
.dsb-tabs--band .dsb-tab.dsb-tab--active { background: var(--theme-tab-active); }

/* Ikon-variant (V2 2.13.35) — søgesidens køretøjsbånd: ikon over label, og ALLE faner lige brede,
   så båndet læses som én segmenteret kontrol og den aktive blok beholder sin størrelse fra fane til
   fane. 124px rummer den længste label med luft. */
.dsb-tabs--icons .dsb-tab {
    flex-direction: column;
    gap: 5px;
    height: 64px;
    width: 124px;
    padding: 0;
    font-size: 12.8px;
}
.dsb-tabs--icons .dsb-tab i { font-size: 16px; }

/* A band that SCROLLS instead of wrapping (.dsb-tabs--scroll; js/dsb-tabs.js sets the edge classes).
   One row at every width, and it shows that it scrolls: a fade in the band's own colour with a chevron
   on each side where more tabs are, and on a phone a tab cut at the edge. Centred when all tabs fit. */
.dsb-tabs--scroll {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    /* Snapping and keyboard focus keep a tab out from under the 40px fades. */
    scroll-padding-inline: 40px;
    scrollbar-width: none;
}
.dsb-tabs--scroll::-webkit-scrollbar { display: none; }
.dsb-tabs--scroll .dsb-tab { flex: 0 0 auto; scroll-snap-align: start; }
/* Auto margins centre the row without clipping its start once it overflows (justify-content would). */
.dsb-tabs--scroll .dsb-tab:first-of-type { margin-left: auto; }
.dsb-tabs--scroll .dsb-tab:last-of-type { margin-right: auto; }
.dsb-tabs--scroll::before,
.dsb-tabs--scroll::after {
    content: "";
    position: sticky;
    z-index: 1;
    flex: 0 0 40px;
    align-self: stretch;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
    background-repeat: no-repeat;
    background-size: 8px 13px, 100% 100%;
}
.dsb-tabs--scroll::before {
    order: -1;
    left: 0;
    margin-right: -40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='M6.5 1.5 1.5 6.5l5 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
                      linear-gradient(to right, var(--theme-tab-bg) 45%, transparent);
    background-position: 10px center, 0 0;
}
.dsb-tabs--scroll::after {
    right: 0;
    margin-left: -40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='m1.5 1.5 5 5-5 5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
                      linear-gradient(to left, var(--theme-tab-bg) 45%, transparent);
    background-position: calc(100% - 10px) center, 0 0;
}
.dsb-tabs--scroll.is-more-left::before,
.dsb-tabs--scroll.is-more-right::after { opacity: 1; }
/* About four and a half tabs on a phone: the half tab says there is more. */
@media (max-width: 767px) {
    .dsb-tabs--scroll.dsb-tabs--icons .dsb-tab { width: auto; min-width: 78px; padding: 0 4px; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) { .dsb-tabs--scroll::before, .dsb-tabs--scroll::after { transition: none; } }

/* LEAF (guide point 9, "Leaf — the faces of one box", 2.39.1): the vehicle band from 821px.
   .dsb-tabs--leaf on the band; below 821px the band stays the navy band above. The tabs stand in the
   middle of a paper track; the chosen one is a white leaf with a thin frame and no bottom, so it
   runs into the white content under it, its name navy and bold. The others are plain grey names
   that turn navy under the pointer. No green: the leaf's shape says which one is chosen.

   THE LEAF IS ONE ELEMENT (.dsb-tabs__leaf, added and placed by js/dsb-tabs.js) that glides from tab
   to tab in .3s; the chosen tab itself only carries the navy bold name. Without the script the leaf
   is simply not there, and the name still says which tab is chosen.

   Two things are written differently from the guide, for the same reason — the same band holds
   four tabs on one page and seven on another (the owner's vehicle page, where it SCROLLS), so it
   must stay ONE ROW that may scroll, and a scroller clips whatever sticks out of it:
   - the track's bottom line is an inset shadow, where the guide has a border that the tabs and the
     leaf hang 1px over. The same pixels, and nothing leaves the box;
   - the row is centred with auto margins, not justify-content, which would cut off its start once
     it overflows (as .dsb-tabs--scroll does).

   The guide shows Leaf on the Search page only. The owner's vehicle page draws the same band from
   the same partial and is not in the guide, so it takes the same look: one component, one look. */
.dsb-tabs__leaf { display: none; }
@media (min-width: 821px) {
    .dsb-tabs--leaf {
        position: relative;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 4.8px;
        padding: 23.2px 20.8px 0;
        background: var(--dsb-bg-page);
        border-radius: 0;
        box-shadow: inset 0 -1px 0 var(--dsb-border-color);
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }
    .dsb-tabs--leaf::-webkit-scrollbar { display: none; }
    .dsb-tabs--leaf .dsb-tab {
        position: relative;
        z-index: 1;
        flex: 0 0 auto;
        /* The script reserves each tab's bold width as its min-width, measured border to border. */
        box-sizing: border-box;
        flex-direction: row;
        gap: 8px;
        width: auto;
        height: auto;
        padding: 10.4px 18.4px;
        border: 1px solid transparent;
        border-bottom: 0;
        border-radius: 10px 10px 0 0;
        font-family: 'Roboto', sans-serif;
        font-weight: 500;
        font-size: 14.72px;
        /* The guide's tab is a <button> at the browser's own line height; .dsb-tab's all:unset
           would inherit the page's 1.65 and make the track 7px taller. */
        line-height: normal;
        background: none;
        color: var(--dsb-text-muted) !important;   /* .dsb-tab pins its white with !important */
        transition: color .18s ease, background-color .18s ease;
    }
    .dsb-tabs--leaf .dsb-tab:first-of-type { margin-left: auto; }
    .dsb-tabs--leaf .dsb-tab:last-of-type { margin-right: auto; }
    .dsb-tabs--leaf .dsb-tab i { font-size: 14px; }
    .dsb-tabs--leaf .dsb-tab:not(.dsb-tab--active):hover {
        background: rgba(29,45,73,.05);
        color: var(--theme-secondary) !important;
    }
    /* After the band's own :hover and --active rules and as heavy as they are, so a chosen tab stays
       unfilled under the pointer too. */
    .dsb-tabs--leaf .dsb-tab.dsb-tab--active {
        background: none;
        color: var(--theme-secondary) !important;
        font-weight: 700;
    }
    /* The base ring is white, for the navy band. Inside the tab: the track clips what leaves it. */
    .dsb-tabs--leaf .dsb-tab:focus-visible { outline: 2px solid var(--theme-secondary); outline-offset: -2px; }
    .dsb-tabs--leaf > .dsb-tabs__leaf {
        display: block;
        position: absolute;
        z-index: 0;
        left: 0;
        top: 23.2px;
        bottom: 0;
        width: 0;
        box-sizing: border-box;
        background: #fff;
        border: 1px solid var(--dsb-border-color);
        border-bottom: 0;
        border-radius: 10px 10px 0 0;
        pointer-events: none;
        transition: transform .3s cubic-bezier(.3,.7,.2,1), width .3s cubic-bezier(.3,.7,.2,1);
    }
    /* A scrolling leaf band fades into the paper track, not into navy, with a soft-ink chevron; and
       the fades lie over the tabs, which are lifted above the leaf. */
    .dsb-tabs--leaf.dsb-tabs--scroll::before,
    .dsb-tabs--leaf.dsb-tabs--scroll::after { z-index: 2; }
    .dsb-tabs--leaf.dsb-tabs--scroll::before {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='M6.5 1.5 1.5 6.5l5 5' fill='none' stroke='%2315110c' stroke-opacity='.64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
                          linear-gradient(to right, var(--dsb-bg-page) 45%, transparent);
    }
    .dsb-tabs--leaf.dsb-tabs--scroll::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 13'%3E%3Cpath d='m1.5 1.5 5 5-5 5' fill='none' stroke='%2315110c' stroke-opacity='.64' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
                          linear-gradient(to left, var(--dsb-bg-page) 45%, transparent);
    }
}
@media (min-width: 821px) and (prefers-reduced-motion: reduce) {
    .dsb-tabs--leaf .dsb-tab,
    .dsb-tabs--leaf > .dsb-tabs__leaf { transition: none; }
}

/* What a tab band switches between (js/dsb-tabs.js). Nothing but the showing and the hiding — the
   surface a panel sits on belongs to the page, because the same band is used inside a card on one
   page and directly on the ground on another. `is-on` rather than `.dsb-tabpanel--active`: the
   script writes it, and a state class is the repo's existing spelling for that (.dsb-tab--active is
   a VARIANT, set in the markup and only moved by the script). */
.dsb-tabpanel { display: none; }
.dsb-tabpanel.is-on { display: block; }

/* Underline variant — a quieter switcher for lists *inside* a page (Service Plan), where the filled
   blocks above would compete with the table header right below them. Green marks the active tab in
   both variants. The tab row's own hairline is normally the page's hero divider, so a page using
   this drops its <hr>. */
.dsb-tabs--underline {
    gap: 26.4px;
    border-bottom: 1px solid var(--dsb-border-color);
}
.dsb-tabs--underline .dsb-tab {
    height: auto;
    padding: 0 2px 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    background: none;
    color: var(--dsb-text-muted) !important; /* Serviceplan's tabs are <a>; see .dsb-tab's note */
    border-radius: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .18s ease, border-color .18s ease;
}
.dsb-tabs--underline .dsb-tab:hover { background: none; color: var(--dsb-text-color) !important; }
/* The base tab's ring is white, drawn inside a navy band; an underline tab stands on the page, where
   white cannot be seen. The same navy ring a button has (not a guide value: the guide leaves the
   browser's own ring, which all:unset removes here). */
.dsb-tabs--underline .dsb-tab:focus-visible { outline: 2px solid var(--theme-secondary); outline-offset: 2px; }
/* Same specificity trap as the filled variant's ".dsb-tab.dsb-tab--active" above — compounded onto
   ".dsb-tab" so it matches :hover's specificity and wins on source order. Harmless today only
   because hover's own colour happens to equal the active colour; still fixed, since a hovered active
   tab must not depend on that coincidence. */
.dsb-tabs--underline .dsb-tab.dsb-tab--active {
    background: none;
    color: var(--dsb-text-color) !important;
    font-weight: 700;
    border-bottom-color: var(--theme-tab-active);
}
/* On a phone the three Service Plan tabs in English need ~375px at the desktop size, so the last one
   wrapped onto a line of its own; tighter and smaller they share one line down to a 360px screen. */
@media (max-width: 767px) {
    .dsb-tabs--underline { flex-wrap: nowrap; gap: 16px; }
    .dsb-tabs--underline .dsb-tab { font-size: 14px; white-space: nowrap; }
    .dsb-tabs--underline .dsb-tab__count { margin-left: 4px; }
}
/* Count badge — workload at a glance on actionable tabs; archive tabs stay bare (a count of things
   already done is not a queue). Circular at 1–2 digits (min-width = height), stretching to a
   stadium at 3+ — cap the rendered value at "99+". Family is declared explicitly (Red Hat Display,
   not inherit): the badge sits inside both the filled tab (RHD 700) and the underline tab (Roboto
   500), and it must read the same — RHD 700 — under either parent. */
.dsb-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin-left: 6px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--dsb-border-light);   /* rgba(29,45,73,.08), the guide's own value for the count */
    color: var(--dsb-text-muted);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 10.88px;
    font-weight: 700;
    line-height: 1;
}

/* An underline tab row that shares its line with a note on the right. The hairline moves from the
   tabs to this wrapper (the tabs then set border-bottom: none) so the rule runs the full width
   instead of stopping at the last tab. Lets a quiet, always-visible message sit above the fold
   without adding a band of its own or breaking the toolbar → table reading order.

   NARROW SCREENS (2026-10-06): the bar wraps. On a phone the note no longer fits beside the tabs, and
   with nowrap it pushed the whole page sideways (Serviceplan at 390px: 464px wide). Now it drops to
   its own line under the tabs, still above the hairline, and its text wraps there. On a wide screen
   nothing changes: the note fits, so the line never breaks. */
.dsb-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    column-gap: 16px;
    border-bottom: 1px solid var(--dsb-border-color);
}
.dsb-tabs-bar .dsb-tabs--underline {
    border-bottom: none;
}
.dsb-tab-aside {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
    font-size: 12.5px;
    color: var(--dsb-text-muted);
    min-width: 0;
}
.dsb-tab-aside i { font-size: 11px; flex: none; }
.dsb-tab-aside a {
    color: var(--dsb-link-color) !important; /* vendor.css: a { color:#0089d0 !important } */
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

/* =============================================
   NØGLEFAKTA-STRIP (.dsb-facts — V2 2.13.34 / 2.13.41 / 2.16.11)
   Et lavt bånd på tværs: lige brede baner med label over værdi. Læses vandret, ikke som en liste.

   GENERISK MED VILJE. Strippet stod som .dsb-srch-facts i pages/search.css indtil kundearket
   (2.26.21) bad om præcis det samme bånd med fem baner i stedet for fire plus en værktøjsbane.
   Basen — båndet, typografien, kopiknappens ophæng — er her; ANTALLET AF BANER er sidens, fordi
   det er indholdet der bestemmer det, så hver side sætter selv sin grid-template-columns.
   ============================================= */
.dsb-facts {
    display: grid;
    column-gap: 24px;
    margin: 0;
    padding: 13.6px 16px;
    /* --dsb-navy-light ved 22 %, statisk forudberegnet: color-mix bruges ingen steder i repoet
       (se noten over --dsb-quiet-hover). */
    background: rgba(162,180,210,.22);
    border: 1px solid var(--dsb-navy-light);
    border-radius: var(--dsb-radius);
    text-align: center;
}
.dsb-facts > div {
    display: grid;
    row-gap: 3.2px;
    align-content: start;
    justify-items: center;
}
.dsb-facts dt {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 10.88px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dsb-text-light);
}
.dsb-facts dd {
    margin: 0;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-size: 15.2px;
    font-weight: 500;
    color: var(--dsb-text-color);
    font-variant-numeric: tabular-nums;
    letter-spacing: .02em;
    white-space: nowrap;
}
/* VÆRDIEN er det der centreres; kopiknappen hænger uden for centreringen på dens højre kant —
   ellers ser parret ude af centrum ud */
.dsb-facts__v { position: relative; display: inline-block; }
.dsb-facts__v .dsb-copy {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 4.8px;
}
.dsb-facts__v .dsb-copy__done {
    position: absolute;
    left: calc(100% + 26px + 8.8px);
    top: 50%;
    transform: translateY(-50%);
}
@media (max-width: 700px) {
    .dsb-facts { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 14.4px; }
}

/* =============================================
   NØGLE/VÆRDI-ARK (V2 2.13.38)
   Rækker på bløde hårstreger: label i dæmpet blæk, værdi i blæk 500. Alternativet til en
   to-kolonners <table> for data der ikke er en tabel.
   ============================================= */
.dsb-kv { margin: 0; display: grid; grid-template-columns: minmax(0,1fr); column-gap: 48px; }
.dsb-kv--2col { grid-template-columns: repeat(2, minmax(0,1fr)); }
.dsb-kv > div {
    display: grid;
    grid-template-columns: minmax(120px,38%) minmax(0,1fr);
    column-gap: 19.2px;
    align-items: baseline;
    padding: 9.92px 0;
    border-bottom: 1px solid var(--dsb-border-light);
    font-size: 14.4px;
}
.dsb-kv dt { margin: 0; font-family: 'Roboto', sans-serif; color: var(--dsb-text-muted); }
.dsb-kv dd {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: var(--dsb-text-color);
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Mange felter i KATEGORIER: et grid, ikke flydende kolonner — de to grupper i en række starter på
   samme linje uanset naboens længde. Den tomme plads under en kort gruppe er prisen for overblikket. */
.dsb-kv-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    column-gap: 48px;
    row-gap: 32px;
    align-items: start;
    margin-top: 12.8px;
}
.dsb-kv-group { min-width: 0; }
/* Overskriften som en lille tonet bjælke, så en ny kategori er umiskendelig ved et blik. Klassen
   (0,1,0) slår vendor.css's h4-elementregel (0,0,1) — se testen
   Kategorioverskriften_slaar_vendors_h4_regel i Dsb.Atlas.E2E.Tests/Tests/ComponentStyleTests.cs. */
.dsb-kv-group__hd {
    margin: 0 0 2.4px;
    padding: 7.2px 12px;
    background: var(--dsb-bg-subtle);
    border-radius: 8px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 11.2px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dsb-head-color);
}
/* Rækkerne rykker ind til overskriftens tekst. */
.dsb-kv-group .dsb-kv > div { padding-left: 12px; padding-right: 12px; }

/* The guide stacks at 700px; two groups squeeze the labels onto three lines up to 1100px here. */
@media (max-width: 1100px) {
    .dsb-kv-groups { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
    .dsb-kv--2col { grid-template-columns: minmax(0,1fr); }
    /* .dsb-kv--stack: the label goes above its value on a phone, for sheets whose labels are long
       ("Registration status updated date") or whose values are (an address, an e-mail). */
    .dsb-kv--stack > div { grid-template-columns: minmax(0,1fr); row-gap: 2px; }
    .dsb-kv--stack dt { font-size: 12.5px; }
}

/* =============================================
   KOPIKNAP (V2 2.13.34)
   Ingen skal taste 17 tegn af. Klik → hak + "Kopieret" i 1,4 s, annonceret høfligt.
   ============================================= */
.dsb-copy {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--dsb-text-light);
    cursor: pointer;
    font-size: 13px;
    transition: background-color .15s ease, color .15s ease;
}
/* Stille-kontrol-reglen (V2 2.17.2): ink-faint → ink-soft → quiet-hover. Basen er ink-faint
   (--dsb-text-light); hover træder ÉT trin op til ink-soft (--dsb-text-muted er byte-identisk med
   guidens --ink-soft) — ikke to trin til --dsb-quiet-hover, som guiden ikke bruger her
   (design-guide.html:3074, .dg2-copy:hover). */
.dsb-copy:hover { background: var(--dsb-bg-subtle); color: var(--dsb-text-muted); }
.dsb-copy.is-copied { color: var(--theme-action-dark); }
.dsb-copy__done {
    font-family: 'Roboto', sans-serif;
    font-size: 11.52px;
    font-weight: 500;
    color: var(--theme-action-dark);
    opacity: 0;
    transition: opacity .2s ease;
}
.dsb-copy.is-copied + .dsb-copy__done { opacity: 1; }

/* =============================================
   ANKOMST (V2 2.14.0)
   For alt der dukker op SOM SVAR til brugeren. Én bevægelse, så stilstand — ikke et blink.
   ============================================= */
@keyframes dsb-arrive-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
.dsb-arrive.is-arriving { animation: dsb-arrive-in .35s ease-out both; }
@media (prefers-reduced-motion: reduce) { .dsb-arrive.is-arriving { animation: none; } }

/* =============================================
   CARDS
   ============================================= */
.dsb-card {
    background: #fff;
    border: 1px solid var(--dsb-border-light);
    border-radius: var(--dsb-radius-lg);
    overflow: hidden;
}
.dsb-card__header {
    background: var(--theme-secondary);
    color: #fff;
    padding: 14px 18px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 15px;
}
.dsb-card__header--action { background: var(--theme-action); }
.dsb-card__header--primary { background: var(--theme-primary); }
.dsb-card__body {
    padding: 18px;
}

/* =============================================
   SEARCH BOX
   ============================================= */
/* .dsb-search-box is the --ctl-r case, not the site's 999px pill (V2 user decision 2.16.6):
   IN A PAGE TOOLBAR, beside buttons, the search box takes the controls' radius — a field that
   filters a table is a control among controls. The round pill is the website's one-of-a-kind
   global search, which this platform does not have.
   Height comes from --dsb-ctl-h (was a hardcoded 36px, 8px shorter than the button beside it in
   the same toolbar — exactly what V2's ONE CONTROL HEIGHT rule exists to prevent). */
.dsb-search-box {
    position: relative;
    display: flex;
    align-items: stretch;
    /* The guide's inset (.dg2-search): 17.6px at both ends, the 16px loupe, 9.6px, then the text —
       which so starts about 43px in. It was a 36px icon cell with the text hard against it and 12px
       at the right. */
    gap: 9.6px;
    padding: 0 17.6px;
    height: var(--dsb-ctl-h);
    background: #fff;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    overflow: hidden;
    cursor: text;
    /* Everything eases .22s, box-shadow included (V2: "Everything eases .22s like the search
       pill" — kendelse R16). A computed-style read taken right after focus lands mid-transition;
       that's what StyleProbe.ComputedWhenSettledAsync is for, not a reason to drop the easing. */
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
/* hover only while NOT focused — an active field stays white under the pointer (V2 field
   interaction, shared with .dsb-form-input and .dsb-select__btn). */
.dsb-search-box:not(:focus-within):hover {
    background: var(--dsb-fld-hover-bg);
    border-color: var(--dsb-fld-hover-line);
}
.dsb-search-box:focus-within {
    background: #fff;
    border-color: var(--dsb-fld-focus-line);
    box-shadow: var(--dsb-fld-focus-shadow);
}
.dsb-search-box__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    color: var(--dsb-text-light);
    flex: none;
    font-size: 16px;
    transition: color .22s ease;
}
.dsb-search-box:hover .dsb-search-box__icon,
.dsb-search-box:focus-within .dsb-search-box__icon {
    color: var(--dsb-text-color);
}
.dsb-search-box__input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 16px;
    color: var(--dsb-text-color);
    min-width: 0;
    padding: 0;
    background: transparent;
}
.dsb-search-box__input::placeholder { color: var(--dsb-placeholder-color); font-weight: 400; }
@media (prefers-reduced-motion: reduce) {
    .dsb-search-box, .dsb-search-box__icon { transition: none; }
}

/* The standard list toolbar: search on the left (filters the list below), the page's primary action
   on the right. Lived in pages/customers.css until AB#3645 needed it on the Service Plan page too —
   it is a design-guide component used by every list page, not Customers-specific. */
.dsb-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.dsb-toolbar .dsb-search-box {
    width: 240px;
}

/* =============================================
   FORM INPUTS
   ============================================= */
.dsb-form-section {
    margin-bottom: 20px;
}
.dsb-form-section__label {
    display: block;
    margin-bottom: 2px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}
.dsb-form-section__hint {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--dsb-text-muted, #64748b);
}
.dsb-form-section__description {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--dsb-text-color);   /* was var(--dsb-text, #1e293b): --dsb-text is not a token, so the fallback always rendered */
}
.dsb-form-row {
    display: flex;
    gap: 12px;
}
.dsb-form-row__col {
    flex: 1;
    min-width: 0;
}
.dsb-form-validation {
    display: none;
    font-size: 12px;
}
.dsb-form-error {
    display: none;
    margin-bottom: 12px;
    font-size: 13px;
}
/* Hidden by default above, because these containers are normally revealed by script.
   A span driven by asp-validation-for is revealed by ASP.NET instead: it swaps
   .field-validation-valid for .field-validation-error once the field has a message.
   Without this rule the message renders in the HTML but stays invisible. */
.dsb-form-error.field-validation-error {
    display: block;
    margin-bottom: 0;
    color: var(--dsb-alert-danger-text);
}
/* A field the V2 validation (dsbValid, dsb-fields.js) or the server found wrong. */
.dsb-form-input.is-invalid,
.dsb-form-input.input-validation-error {
    /* The guide's invalid field (.6), the same red .dsb-field input.is-invalid has: the alert's .30
       border was too faint to mark a field. */
    border-color: rgba(192,57,43,.6);
}
.dsb-form-alert {
    display: none;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.dsb-form-alert .dsb-btn {
    margin-top: 8px;
}
.dsb-form-group { margin-bottom: 16px; }
/* Feltlabel er NAVY (--dsb-head-color), ikke blæk (V2 user decision 2026-08-28): en label er en
   lille overskrift for sit felt; blæk er reserveret til det brugeren skriver. VÆGT 500, aldrig 600:
   Roboto hentes kun i 300/400/500/700, så 600 syntetiseres op til 700 og render fed. */
.dsb-form-label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 13.6px;
    font-weight: 500;
    color: var(--dsb-head-color);
    margin-bottom: 6.4px;
}
.dsb-form-hint {
    margin: 0 0 8px;
    font-size: 13px;
    color: var(--dsb-text-muted);
}
.dsb-form-input + .dsb-form-hint { margin: 6px 0 0; }
/* FIELD INTERACTION (V2 2026-08-28, user decision) = the nav search field's, not the old green
   ring: resting look unchanged; HOVER while NOT focused darkens the hairline and tints the fill
   one step; FOCUS goes back to white with the .28 hairline and a soft drop shadow — no outline,
   no green ring. Shared by .dsb-search-box and .dsb-select__btn below (--dsb-fld-* tokens),
   and reused by the plate/VIN fields (Opgave 6). */
.dsb-form-input {
    width: 100%;
    height: var(--dsb-ctl-h);
    padding: 0 16px;
    border: 1px solid var(--dsb-border-color);
    /* !important: vendor.css:33766 has a bare `input { border-radius:0 !important; }` reset. */
    border-radius: var(--dsb-radius) !important;
    font-family: 'Roboto', sans-serif;
    /* 16px, ikke brødtekstens 17: V2's felt er 1rem ved 16px-basis. */
    font-size: 16px;
    color: var(--dsb-text-color);
    background: #fff;
    outline: none;
    /* Everything eases .22s, box-shadow included (V2: "Everything eases .22s like the search
       pill" — kendelse R16). A computed-style read taken right after focus lands mid-transition;
       that's what StyleProbe.ComputedWhenSettledAsync is for, not a reason to drop the easing. */
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
/* A file field: the browser's own picker, its button drawn as our secondary button. Still a plain form post. */
.dsb-form-input[type="file"] {
    height: auto;
    min-height: var(--dsb-ctl-h);
    padding: 6px 8px;
    color: var(--dsb-text-muted);
    cursor: pointer;
}
.dsb-form-input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 16px;
    border: 1px solid var(--theme-action);
    border-radius: var(--dsb-radius);
    background: transparent;
    color: var(--theme-action-dark);
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color .18s ease;
}
.dsb-form-input[type="file"]:hover::file-selector-button { background: rgba(29,45,73,.04); }
.dsb-form-input[type="file"]:focus-visible { box-shadow: var(--dsb-focus-ring); }
/* hover only while NOT focused — an active field stays white under the pointer. */
.dsb-form-input:not(:disabled):not(:focus):hover {
    background: var(--dsb-fld-hover-bg);
    border-color: var(--dsb-fld-hover-line);
}
.dsb-form-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--dsb-fld-focus-line);
    box-shadow: var(--dsb-fld-focus-shadow);
}
.dsb-form-input:disabled { opacity: .55; cursor: not-allowed; }
.dsb-form-input::placeholder {
    color: var(--dsb-placeholder-color);
    font-weight: 400;
}
.dsb-form-input--error { border-color: #934041; }
.dsb-form-input--success { border-color: #328559; }
.dsb-form-input--error:focus   { border-color: #934041; box-shadow: var(--dsb-fld-focus-shadow); }
.dsb-form-input--success:focus { border-color: #328559; box-shadow: var(--dsb-fld-focus-shadow); }

.dsb-form-textarea {
    min-height: 110px;
    padding: 12.8px 16px;
    /* The guide's textarea has the browser's own line-height. vendor.css hands every form control
       the page's (line-height: inherit, 1.65 here), which sets the lines visibly wider apart. */
    line-height: normal;
    resize: vertical;
}

.dsb-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%239aa0a8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    /* 16px, matching .dsb-form-input's new side inset (was 12px against the old padding). */
    background-position: right 16px center;
    padding-right: 40px;
}

/* Checkbox & Radio (V2 §4, .dg2-check): a DRAWN box — 20px, a 1px hairline, 6px corners; on, it is
   the action green with a white tick. A radio is the same box as a circle, solid green when on, no
   dot. The words beside it are 15.2px ink, 9.6px away.

   It is still the browser's own input. The guide hides the input and draws a sibling <span>; here
   `appearance: none` takes the system drawing off and the box is drawn ON the input, so the markup
   stays `input + text` and Tab, Space, the arrows inside a radio group, the form post and
   validation are all the browser's. (It was the system control tinted with accent-color.) */
.dsb-form-check {
    display: flex;
    align-items: center;
    gap: 9.6px;
    margin-bottom: 8px;
    cursor: pointer;
}
/* A run of choices stacks 14.4px apart (.dg2-choices); the last keeps the form's own 8px. */
.dsb-form-check:has(+ .dsb-form-check) { margin-bottom: 14.4px; }
.dsb-form-check:has(input:disabled) { cursor: not-allowed; }
/* margin and padding are stated because vendor.css and .dsb-field both hand inputs their own;
   !important on the radius only, against vendor.css's `input { border-radius: 0 !important }`. */
.dsb-form-check input[type="checkbox"],
.dsb-form-check input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--dsb-border-color);
    border-radius: 6px !important;
    background: transparent;
    color: transparent;
    font-size: 11.2px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.dsb-form-check input[type="radio"] { border-radius: 50% !important; }
/* The tick is always there and transparent, so it has a colour to fade to (the motion rule). */
.dsb-form-check input[type="checkbox"]::before { content: "\2713"; }
.dsb-form-check input[type="checkbox"]:checked,
.dsb-form-check input[type="radio"]:checked {
    background: var(--theme-action);
    border-color: var(--theme-action);
    color: #fff;
}
/* vendor.css draws the system outline on every focused checkbox, after a click too. The keyboard
   ring is the guide's, the same one the toggle has. */
.dsb-form-check input[type="checkbox"]:focus,
.dsb-form-check input[type="radio"]:focus { outline: none; }
.dsb-form-check input[type="checkbox"]:focus-visible,
.dsb-form-check input[type="radio"]:focus-visible { box-shadow: 0 0 0 3px rgba(59, 156, 104, .25); }
/* Locked: dimmed like a locked switch. The box only — the words stay readable. */
.dsb-form-check input[type="checkbox"]:disabled,
.dsb-form-check input[type="radio"]:disabled { opacity: .45; cursor: not-allowed; }
/* margin: a consumer writes this as a <label> beside the input, and vendor.css gives every
   <label> 5px under it, which would lift the words off the box's centre line. */
.dsb-form-check__label {
    margin: 0;
    font-size: 15.2px;
    color: var(--dsb-text-color);
    cursor: pointer;
}
.dsb-form-check:has(input:disabled) .dsb-form-check__label { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
    .dsb-form-check input[type="checkbox"],
    .dsb-form-check input[type="radio"] { transition: none; }
}

/* Toggle switch. Geometry aligned to the guide's .dg2-toggle (design-guide.html 2063-2069) on
   2026-09-17 — 42x24 track, a 20px knob inset 2px, 18px of travel — when Settings became its first
   consumer. It had been written to nothing in particular and used by nothing at all, so there was
   no page to regress and no reason to keep numbers that agreed with no source. The element is still
   called __slider rather than the guide's __track: a rename with one consumer buys nothing. */
.dsb-toggle {
    position: relative;
    width: 42px;
    height: 24px;
    display: inline-block;
    flex: none;
}
.dsb-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.dsb-toggle__slider {
    position: absolute;
    inset: 0;
    background: var(--dsb-border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: background .18s ease;
}
.dsb-toggle__slider::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    transition: transform .18s ease;
}
.dsb-toggle input:checked + .dsb-toggle__slider { background: var(--theme-action); }
.dsb-toggle input:checked + .dsb-toggle__slider::before { transform: translateX(18px); }
/* The keyboard ring: the input itself is 0x0 and invisible, so focus has to show on the track. */
.dsb-toggle input:focus-visible + .dsb-toggle__slider { box-shadow: 0 0 0 3px rgba(59, 156, 104, .25); }
/* A locked switch takes the buttons' disabled state, like any control. */
.dsb-toggle:has(input:disabled) { opacity: .45; pointer-events: none; }
/* WITH ITS WORDS (the guide's .dg2-toggle as §4 shows it: the switch, then what it switches, 10.4px
   apart in 15.2px ink). The bare toggle above is a fixed 42x24 box with the track laid over all of
   it — right for a setting row, where the words stand in their own column — so the words cannot
   simply be written into it. With this modifier the label is a row and the track an item in it:
     <label class="dsb-toggle dsb-toggle--text"><input type="checkbox"><span class="dsb-toggle__slider"></span> Words</label>
   margin: vendor.css gives every <label> 5px under it. */
.dsb-toggle--text {
    display: inline-flex;
    align-items: center;
    gap: 10.4px;
    width: auto;
    height: auto;
    margin: 0;
    font-size: 15.2px;
    color: var(--dsb-text-color);
    cursor: pointer;
}
.dsb-toggle--text .dsb-toggle__slider {
    position: relative;
    inset: auto;
    flex: none;
    width: 42px;
    height: 24px;
}
@media (prefers-reduced-motion: reduce) {
    .dsb-toggle__slider, .dsb-toggle__slider::before { transition: none; }
}

/* =============================================
   BADGES
   ============================================= */
.dsb-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 20px;
    height: 20px;
    /* Measured 2px top inset (V2 §6): Red Hat Display reserves descender space a digit doesn't
       use, so a numeral sits ~1px above the box centre; the top pad shifts it into optical
       centre. text-box-trim was tried and did not re-centre in practice. */
    padding: 2px 6px 0;
    border-radius: 999px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.dsb-badge--primary   { background: var(--theme-primary); color: #fff; }
.dsb-badge--action    { background: var(--theme-action);  color: #fff; }
.dsb-badge--secondary { background: var(--theme-secondary); color: #fff; }
.dsb-badge--danger    { background: var(--dsb-danger); color: #fff; }
.dsb-badge--warning   { background: var(--dsb-warn); color: var(--dsb-text-color); }

/* =============================================
   NAVBAR
   ============================================= */
/* V2 §7 bar height (guide 2.19.0, --nav-h): 98px desktop, 84px ≤980px, 72px ≤560px. One
   declaration for every consumer, on a selector LIST rather than on :root: .dsb-navbar__link
   inherits it from the bar and .dsb-nav-strip (§7a1) is not inside the bar, so it is named here
   too — three consumers and one number is the only arrangement they cannot drift apart in. Not
   :root, because that block is the white-label token surface and a bar height is structure, not
   theme. In practice only the 98px tier is ever seen: header.header.hidden-xs (this bar) is
   already hidden below the Bootstrap sm breakpoint (768px) in favour of the separate, untouched
   .dsb-navbar-mob — the 84/72 tiers are kept anyway for parity with the guide's own token. */
.dsb-navbar, .dsb-nav-strip { --dsb-nav-h: 98px; }
@media (max-width: 980px) { .dsb-navbar, .dsb-nav-strip { --dsb-nav-h: 84px; } }
@media (max-width: 560px) { .dsb-navbar, .dsb-nav-strip { --dsb-nav-h: 72px; } }
.dsb-navbar {
    display: flex;
    align-items: center;
    /* No gap on purpose (guide .dg2-nav__row): the row is three groups - logo, links, right - and
       space-between is what spreads them. */
    gap: 0;
    /* The guide's fluid gutter (clamp(1.25rem,4vw,3rem)): 48px on a wide screen, down to 20px, so
       the row keeps its room on a narrow desktop window. */
    padding: 0 clamp(20px, 4vw, 48px);
    justify-content: space-between;
    height: var(--dsb-nav-h);
    color: #fff;
    /* 1466px = the guide's --wrap-w since 2.38.22: 1370px of content plus the two 48px gutters. It
       is the guide's ONE number for the bar's row and the page column; the bar's left edge is meant
       to be the page's left edge. Was 1400px. */
    max-width: 1466px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    /* Own background, not just inherited from header.header: header.header is full-bleed
       (it also wraps the mobile bar), while this row is the part a computed-style probe on the
       real page actually measures. Reads var(--theme-nav-bg) so a white-label theme's :root
       override still wins. This used to add "and stays navy in the gutters past 1400px" — true of
       the solid bar, false of the mirror bar (§7a1), where BOTH backgrounds go transparent and the
       glass is painted full-bleed on header.header instead, so the gutters are glass as well. That
       variant also does not read --theme-nav-bg at all; see §7a1. */
    background-color: var(--theme-nav-bg);
}

/* Fixed header bar — full-width background, contains the constrained navbar */
header.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: var(--theme-nav-bg);
    margin-bottom: 0 !important;
    transition: transform .25s ease;
}

/* V2 §7 material — desktop bar only (.hidden-xs): hairline + resting shadow, ported from
   .dg2-nav--overlay (dg2-css.css:402, "the variant in use on every page"). Colour is the
   established translucent-white-on-navy idiom (R25) — no token exists for it and none should
   be invented. THE DESKTOP BAR IS PINNED (owner's decision, 2026-11-26): it stays in place when the
   page scrolls, so its transition list carries no transform. The "transform .25s ease" on the
   shared header.header rule above is left for the phone's header, which dsb.js still moves.
   REVERSED (user decision, taken with the cost stated): this block used to record
   that .dg2-nav's translucent background + backdrop-filter blur were NOT ported, on the grounds
   that the platform's <main> starts below the fixed bar via .dsb-page-main and so nothing ever
   scrolls under the bar — a blur would sample the page's flat base background forever and be inert
   CSS. The premise was wrong: .dsb-page-main's margin-top only keeps content clear of the bar at
   scroll 0; from the first scrolled pixel the whole page runs under it. What made the glass
   genuinely unattractive was the other thing — the hard vertical cut at the content column's
   edges — and §2.18.9's mirror layer is the guide's answer to that. The glass is ported now, in
   §7a1 below, gated on one class. Scoped away from
   header.header.hidden-md.hidden-lg.hidden-sm (the mobile bar) on purpose — mobile nav gets
   its own design-guide pass later (docs/design-implementation.md) and is not touched here
   beyond the two font-weight fixes in 7b/7c below. */
header.header.hidden-xs {
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 30px -26px rgba(15,23,38,.5);
    transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
@media (prefers-reduced-motion: reduce) {
    header.header.hidden-xs { transition: none; }
}

/* =============================================
   7a1. THE GLASS BAR (design-guide V2 §2.18.9 → 2.26.15/2.26.16 — .dg2-nav--mirror;
        guide CSS 2351-2375, the over-light rules at 2297-2321)
   =============================================
   The bar is glass: it blurs and tints the real page running underneath it, exactly as the
   dropdown menus do. One material, one construction — tint, alpha, strip, saturate and now the
   same 24px blur.

   THE STRIP IS WHAT MAKES THE COLOUR POSSIBLE. Over paper a glass can let at most about 9 %
   through and still land on this navy; the bar shows 22 % — and shows the white cards — only
   because a neutral grey strip lies under the page content in the band the bar covers. The paper
   itself never shows through the bar either. So the three values are ONE setting:

       .78 · rgba(1,46,142) + .22 · #646464 = rgb(23,58,133) = #173A85 = --theme-secondary

   Change any one of them and the other two have to be re-solved by the guide's formula
   (tint = (target − 22)/.78). The strip is NEUTRAL grey on purpose (2.26.2): saturate() leaves a
   grey alone in every engine, while the warm strips that came before it (#5e493b, #665A5C)
   rendered about 14 redder in a real Chrome than in a headless one.

   THE MIRROR LAYER IS GONE (2.26.15), and this note is here so it is not rebuilt. 2.18.4 put a
   copy of the page behind the bar, stretched 1.33× so the content column filled the bar's width,
   to hide the step where the white column meets the navy gutters; a 40px blur hid the stretch.
   Bringing the blur down to the menus' 24px exposed the stretch as distortion, and the guide then
   tried and rejected, on the user's own screenshots, a 1:1 copy faded inward from the column edge,
   a 1:1 copy reflected into the gutter, and the stretch itself. The root finding: there is no
   column edge to cure. What lies at the edge is a card's edge like any other, and a card edge
   blurred 24px is exactly what reads right in the open menu. So: no copy, no shadow root, no
   scaleX, no rebuild-on-click — all of it is out of dsb.js with this. What is left is the strip.

   ONE CLASS, deliberately. Everything here is gated on .dsb-navbar--mirror in _Layout.cshtml: the
   glass through :has(), the strip because dsbNavStrip in dsb.js builds nothing without it. Taking
   that one class off <nav class="dsb-navbar"> restores the solid bar without touching CSS or JS.

   WHY THE GLASS SITS ON header.header AND NOT ON .dsb-navbar (a deviation from the guide, whose
   .dg2-nav--mirror IS the full-width bar): .dsb-navbar is max-width 1400px and centred,
   header.header is full-bleed. Painted on the row, the glass would stop at 1400px and every wider
   viewport would show a raw, unblurred band in the gutters. :has() is how one class on the child
   reaches the parent; a browser without :has() drops these rules and keeps the solid navy bar,
   which is the right fallback anyway. */
header.header.hidden-xs:has(.dsb-navbar--mirror) {
    /* 2.26.15: 40px → 24px = the dropdowns' blur (.dsb-navbar__menu). Bar and menu are one
       construction and now one glass too — the page's shapes show through the bar as softly as
       through an open menu. */
    --dsb-mirror-blur: 24px;
    /* 2.26.16: how far the wide glass at the sides carries light. THE PHYSICS: there is nothing
       under the gutter but the strip, so the only light that can reach it is light the blur
       carries there, and a Gaussian carries about one radius. The edge blur is the gutter's width;
       72px could never light a ~170px gutter. The trade-off is unavoidable — light spread wider is
       dimmer at the card's own edge, a long gentle ramp instead of a step. This is the one dial. */
    --dsb-edge-blur: 160px;
    background: transparent;
}
/* TWO LAYERS, and which one carries what changed with 2.26.16.
   ::before is the bar's own glass AND the tint: blur + saturate the page, then paint the tint on
   top of it, in that order — over light content the tint is not part of what the blur sees, so
   whites render as they did and colours come through truer. saturate(250%) is the over-light
   value; every page we have is light content, so there is no .is-over-light to toggle here.
   It reaches 1px BELOW the padding box (2.26.6): the bar is the row plus its 1px bottom line, and
   that line pixel must see navy under it, not the page's paper — on the website the line is a
   white hairline at 12 %, and over near-white paper it was simply invisible.
   ::after carries NO colour any more: it is a second, wider glass toward the sides, masked so it
   is nothing at the centre of the bar and full at both frame edges. It samples ::before's finished
   output, so the tint — uniform — is unchanged by the extra blur; only what has shape is spread,
   in proportion to how far out it lies, on the left exactly as on the right. It stops at inset:0,
   never −1px, so the hairline row drawn on ::before is never blurred. */
header.header.hidden-xs:has(.dsb-navbar--mirror)::before,
header.header.hidden-xs:has(.dsb-navbar--mirror)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
header.header.hidden-xs:has(.dsb-navbar--mirror)::before {
    inset: 0 0 -1px;
    -webkit-backdrop-filter: blur(var(--dsb-mirror-blur)) saturate(250%);
    backdrop-filter: blur(var(--dsb-mirror-blur)) saturate(250%);
    /* The tint. Solved against the neutral strip for --theme-secondary; see the block comment.
       Was rgba(15,54,133,.78) against the warm strip and the old #26396F navy. */
    background: rgba(1, 46, 142, .78);
    /* THE BAR'S BOTTOM LINE (2.26.6), drawn HERE and not as the header's border-bottom, which is
       still declared above and still sets the bar's height. A negative-z pseudo-element paints
       AFTER its parent's background AND border, so the tint covers that border completely — which
       is the other half of why the line never showed. On the tint layer, at the pixel this rule
       reaches down into, it is the website's own hairline: white at 12 %, 1px, at the bottom. */
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12);
}
header.header.hidden-xs:has(.dsb-navbar--mirror)::after {
    -webkit-backdrop-filter: blur(var(--dsb-edge-blur));
    backdrop-filter: blur(var(--dsb-edge-blur));
    /* One linear mask, mirrored about the middle — no zone, no column maths. A zoned version was
       tried (2.26.16, second cut) and it treated the two sides alike only when the page's content
       happened to end at the column edge, which is true on one side and false on the other. */
    -webkit-mask-image: linear-gradient(to right, #000 0, transparent 50%, #000 100%);
    mask-image: linear-gradient(to right, #000 0, transparent 50%, #000 100%);
}
/* Compound, not bare .dsb-navbar--mirror: .dsb-navbar sets background-color a few rules up at the
   same specificity, and this must not depend on which of the two is written last. */
.dsb-navbar.dsb-navbar--mirror { background-color: transparent; }

/* THE PAGE STRIP (guide .dg2-pagestrip, 2781-2782; in production the guide describes it as a fixed
   body::before at z-index:-1). A grey rectangle the height of the bar plus its line, lying under
   the page content, so the bar has something dark to blur where the page is bare paper.

   z-index:-1 is what puts it under the content and over the page's background — a negative-z
   positioned element paints before in-flow block backgrounds. That only works if nothing between
   it and the page paints over it, which is why #app goes transparent below and the paper moves to
   <body>: #app's own white background would otherwise be painted after the strip and hide it. This
   was the reason the strip could not be ported in 2.18.9 and the mirror layer was built instead.

   It is pinned like the bar it lies under: the desktop bar no longer hides on scroll, so the strip
   has no transform and no transition. (dsb.js used to slide the strip away on scroll-down while
   the bar itself stayed, which left the glass over bare paper.) */
.dsb-nav-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* +1px (2.26.6): the bar is --dsb-nav-h plus its 1px bottom line, and the line pixel must see
       the strip, not paper. */
    height: calc(var(--dsb-nav-h) + 1px);
    z-index: -1;
    pointer-events: none;
    /* NOT navy, and not a mistake — see the block comment above. This colour is never seen
       directly; it is only ever looked at through blur + saturate(250%) + the .78 tint. */
    background: #646464;
}
/* THE MENU STRIP (V2 2.26.11). A dropdown opens over the page itself, not over the band the page
   strip covers, so it needs a strip of its own: one grey rectangle on exactly the open menu's
   footprint, under the page content, kept there every animation frame while a menu is open (hover,
   focus-within or the open class). Same tint, same strip, same blur as the bar — so the menu is
   the same navy AND shows the white cards through it the same way. Rounded like the menu, so no
   grey corner peeks out past it. Built by dsbMenuStrip in dsb.js; one element for the whole page.
   Only a page that has the glass bar has it — the no-glass fallback below hides it with the rest. */
.dsb-menu-strip {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: -1;
    pointer-events: none;
    background: #646464;
    /* The menu's own shape: square where it hangs from the bar, rounded below. */
    border-radius: 0 0 12px 12px;
    /* Covered until its menu opens, then uncovered from the top by the same clip, in the same time
       and with the same easing as the menu's own (.dsb-nav-lang__menu): the strip is never seen
       past the menu's edge. dsbMenuStrip in dsb.js only places it and sets the class. */
    clip-path: inset(0 0 100% 0);
    transition: clip-path .2s ease;
}
.dsb-menu-strip.dsb-is-on { clip-path: inset(0); }
@media (prefers-reduced-motion: reduce) { .dsb-menu-strip { transition: none; } }

/* The paper moves off #app so the strip can be seen at all (see .dsb-nav-strip). vendor.css:41154
   sets #app { background-color:#fff }, which is the page's white surface today; the same white is
   put on <body> instead, so nothing changes visually and the strip gains a place to live.
   BOTH RULES ARE UNCONDITIONAL, and that pairing is the point: #app goes transparent on every page
   that loads this sheet, so gating the white on :has(.dsb-navbar--mirror) would leave any page
   without the glass bar — signin, an error page — with no background at all. */
#app { background-color: transparent; }
/* The page is PAPER (guide point 1: "Paper — page background", #f5f6f8) and every card, table frame
   and panel on it is white. It was white until 2026-11-26, when the palette was marked final. */
body { background-color: var(--dsb-bg-page); }
/* Below 768px this bar is display:none (Bootstrap .hidden-xs) and .dsb-navbar-mob takes over,
   untouched by design ("Phone and website untouched"). Without this the strip would be a grey band
   across the top of every phone page with no bar over it to hide it. */
/* Both strips, not just the page one: the .dsb-nav-lang host is also what the phone panel's own
   switchers use, so without this a dropdown opened inside .dsb-mobile would put a grey rectangle
   behind itself with no glass bar over it to explain it. dsbMenuStrip scopes its selector to the
   desktop bar as well — belt and braces, because the two failures look identical on a phone. */
@media (max-width: 991px) {
    .dsb-nav-strip, .dsb-menu-strip { display: none; }
}
/* Nor on paper: a strip is only ever meant to be seen through the bar's glass. The open menu's
   strip is named with its state class, which would otherwise outweigh this. */
@media print {
    .dsb-nav-strip, .dsb-menu-strip, .dsb-menu-strip.dsb-is-on { display: none; }
}

/* NO-GLASS FALLBACK (guide 2212-2216, and the same rule on the website's editorial.css). Without
   backdrop-filter the bar would be a thin see-through tint over a razor-sharp page — worse than
   the solid bar it replaces. Fall back to solid --theme-nav-bg: the bar, and with it the dropdowns
   and the phone panel, which have been glass since §7b/§7d and never had this fallback ported.
   The tint layer and the mirror layer are dropped; solid covers them, and the layer's JS stops by
   itself because it reads display:none back off offsetHeight. --dsb-menu-bg is overridden HERE and
   only here — its real value (the bar's own tint, .78, which needs a strip and a blur to land on
   the navy) is untouched, and a theme's own :root still wins over this. Without backdrop-filter
   there is no blur for either strip to be seen through, so both strips go too. */
@supports not ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
    :root { --dsb-menu-bg: var(--theme-nav-bg); }
    header.header.hidden-xs:has(.dsb-navbar--mirror) { background: var(--theme-nav-bg); }
    header.header.hidden-xs:has(.dsb-navbar--mirror)::before,
    header.header.hidden-xs:has(.dsb-navbar--mirror)::after { content: none; }
    .dsb-navbar.dsb-navbar--mirror { background-color: var(--theme-nav-bg); }
    .dsb-nav-strip, .dsb-menu-strip { display: none; }
}

/* THE GUIDE'S "KEYED GLASS" (V2 2.38.2) IS NOT PORTED, ON PURPOSE. It paints the strip pure magenta
   and runs the bar's backdrop through an SVG colour-key filter that is meant to swap the magenta for
   navy again. It was tried here on 2026-11-27 and taken out the same day: wherever the key misses,
   the magenta bleeds through as a purple haze, and over green content it turns pink; the filter also
   made the bar's hovers stutter. The guide is right about the LOOK (a navy glass bar that shows the
   page under it); the strip glass above gives that look with a plain blur. Do not bring the filter
   back from the guide's code. */
.dsb-navbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    /* No margin toward the links: the row's space-between spreads the three groups. */
    flex: none;
}
.dsb-navbar__brand i { font-size: 22px; color: var(--theme-action); }
/* THE LINKS (guide 2.38.4, "ICONS", the default with the icon OVER the name): each item is its own
   icon and its name, and "you are here" is ONE line on the bar's bottom edge that glides between
   the items (.dsb-navbar__slide, placed by dsbNavLine in dsb.js).
   The list and every item in it are the full height of the bar (align-self/align-items stretch),
   so the line can lie on the bar's bottom edge. No flex:1: the list is as wide as its content and
   the row's space-between places it. position:relative makes the list the line's containing block. */
.dsb-navbar__links {
    position: relative;
    display: flex;
    flex: none;
    align-self: stretch;
    align-items: stretch;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.dsb-navbar__links > li { display: flex; }
/* An item: the icon over the name, centred, the full height of the bar (guide: column, gap 4px,
   padding 0 1.1rem, Roboto .8rem/500).
   THE INK IS ONE TOKEN, DIMMED AT REST. The guide writes the resting name as white at 72 % and the
   hovered / chosen one as full white. Here the colour is --theme-nav-text-hover in every state
   (#fff by default, and what a white-label theme already sets for this bar's links) and the
   icon and the name are dimmed with opacity .72 instead - the same picture, and a theme's own ink
   keeps working. The guide dims its icon with opacity for a reason of its own: a translucent ink
   adds up where an icon's shapes overlap.
   !important on colour: vendor.css sets a bare `a { color:#0089d0 !important }`. */
.dsb-navbar__link {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
    padding: 0 17.6px;
    color: var(--theme-nav-text-hover) !important;
    text-decoration: none !important;
    font-family: 'Roboto', sans-serif;
    /* 14px, not the guide's .8rem (12.8px): at 12.8px, and dimmed at rest, the names were too small
       to read on a real screen (Alexandar, 2026-11-27). The dimming stays as the guide has it. */
    font-size: 14px;
    /* "OE data" is two words; without this the label breaks over two lines in the bar. */
    white-space: nowrap;
    font-weight: 500;
}
/* The icon: the guide's own solid drawing (the sprite in _Layout.cshtml), 21px.
   IT LIFTS WITH A TRANSFORM, NOT WITH `top` AS THE GUIDE'S CODE DOES. The guide moves it with `top`
   so the icon is redrawn crisp in every frame; but `top` is layout, and every frame of layout inside
   this bar makes the browser blur the page under the glass again - the hovers stuttered
   (2026-11-27). A transform is moved by the compositor alone and costs nothing. It rests on whole
   pixels (0, -2px), so the icon is crisp wherever it stands still.
   --dsb-ic-cut is the colour of the lines cut INTO a solid icon (the calendar's rule, the cloud's
   arrows): the colour of what the icon stands on. */
.dsb-navbar__ico {
    display: block;
    flex: none;
    width: 21px;
    height: 21px;
    overflow: visible;
    opacity: .72;
    --dsb-ic-cut: var(--theme-nav-bg);
    /* The way down: quick and plain. */
    transition: opacity .3s ease, transform .3s ease;
}
/* The glass bar is the platform navy whatever the theme says (see 7a1), so the cut-outs are too. */
.dsb-navbar--mirror .dsb-navbar__ico { --dsb-ic-cut: #173A85; }
.dsb-navbar__label {
    display: inline-block;
    text-align: center;
    opacity: .72;
    transition: opacity .18s ease, transform .45s cubic-bezier(.22,1,.36,1) .05s;
}
/* NOTHING MOVES WHEN THE CHOSEN ITEM CHANGES: the bold name is wider than the plain one, so each
   name reserves the width of its bold self - an invisible bold copy under it, of no height. The
   icon then stands over the name's centre in both weights and the neighbours are never pushed. */
.dsb-navbar__label[data-label]::after {
    content: attr(data-label);
    display: block;
    height: 0;
    overflow: hidden;
    visibility: hidden;
    font-weight: 700;
}
/* HOVER: full ink, the icon lifts 2px on a long soft ease-out and the name follows by 1px a beat
   later. No line: the line means "you are here" and nothing else. Keyboard focus looks the same. */
.dsb-navbar__link:hover .dsb-navbar__ico,
.dsb-navbar__link:focus-visible .dsb-navbar__ico {
    opacity: 1;
    /* The way up: the long soft ease-out. */
    transition: opacity .3s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.dsb-navbar__link:hover .dsb-navbar__label,
.dsb-navbar__link:focus-visible .dsb-navbar__label { opacity: 1; }
.dsb-navbar__link:hover:not(.dsb-navbar__link--active) .dsb-navbar__ico { transform: translateY(-2px); }
.dsb-navbar__link:hover:not(.dsb-navbar__link--active) .dsb-navbar__label { transform: translateY(-1px); }
/* THE CHOSEN ITEM: a bold name in full ink, the icon in the line's colour, and the line. Mint, not
   the bar's own green (--theme-action): green on navy reads muddy (guide --mint-strong, #85E5BA).
   Two classes, so the rest state's opacity above cannot win by standing later in the file. */
.dsb-navbar__link.dsb-navbar__link--active .dsb-navbar__ico {
    color: var(--dsb-mint-strong);
    opacity: 1;
    transition: opacity .3s ease, transform .3s ease, color .35s ease;
}
.dsb-navbar__link.dsb-navbar__link--active .dsb-navbar__label { opacity: 1; }
/* A click on another item: its icon and name rise 3px together and settle while the line glides
   to it (dsbNavLine adds the class for the time the page is on its way). */
.dsb-navbar__link.dsb-is-arriving .dsb-navbar__ico,
.dsb-navbar__link.dsb-is-arriving .dsb-navbar__label { animation: dsbNavRise .55s cubic-bezier(.22,1,.36,1) both; }
@keyframes dsbNavRise { 0% { transform: translateY(0); } 40% { transform: translateY(-3px); } 100% { transform: translateY(0); } }
/* THE LINE (guide .dg2-nav__slide): one element for the bar, 3px, flush on the bar's bottom edge
   under the chosen item's content, rounded on top and square below. dsbNavLine in dsb.js places it
   (left and width) and a click glides it to the item clicked - one calm movement, the width easing
   with it. It is an <li> because it lives in the <ul>; role and aria-hidden keep it out of the list. */
.dsb-navbar__slide {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 2px 2px 0 0;
    background: var(--dsb-mint-strong);
    pointer-events: none;
    opacity: 0;
    transition: left .55s cubic-bezier(.22,1,.36,1), width .55s cubic-bezier(.22,1,.36,1), opacity .2s ease;
}
.dsb-navbar__slide.dsb-is-on { opacity: 1; }
/* Placed without motion: the first paint, a resize, a font that arrived and widened the names. */
.dsb-navbar__slide.dsb-is-still { transition: none; }
/* A text link in the right group (a visitor's Log in and Register; guide .dg2-nav__login). It is
   an item like the others - the same ink, type, side padding and full height, measured on the
   guide's own guest bar - with no icon and no line; only the step of air before the language
   bubble is its own (guide .3rem). */
.dsb-navbar__link--text + .dsb-nav-lang { margin-left: 4.8px; }
/* Keyboard focus on the navy bar: a white ring (the guide's focus on navy). Drawn inside the item,
   which is as tall as the bar - an outer ring would be cut off at the window's top edge. */
.dsb-navbar__link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -8px;
    border-radius: 12px;
}
.dsb-navbar__brand:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 6px;
}
@media (prefers-reduced-motion: reduce) {
    .dsb-navbar__ico, .dsb-navbar__label, .dsb-navbar__slide,
    .dsb-navbar__link:hover .dsb-navbar__ico, .dsb-navbar__link:focus-visible .dsb-navbar__ico,
    .dsb-navbar__link.dsb-navbar__link--active .dsb-navbar__ico { transition: none; }
    .dsb-navbar__link.dsb-is-arriving .dsb-navbar__ico,
    .dsb-navbar__link.dsb-is-arriving .dsb-navbar__label { animation: none; }
}

/* Skip to content: the first Tab stop, out of sight until it has focus. */
.dsb-skip {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: #fff;
    color: var(--theme-secondary) !important;
    font-weight: 700;
    box-shadow: 0 6px 16px -6px rgba(8,25,60,.6);
    transform: translateY(-200%);
}
.dsb-skip:focus-visible { transform: none; outline: 2px solid var(--dsb-fld-focus-line); outline-offset: 2px; }
#dsb-main:focus { outline: none; }

/* No background box on hover or active: the bold name, the mint icon and the line are the signal. */
.dsb-navbar__link--active {
    font-weight: 700;
}

/* Brand logo inside dsb-navbar */
.dsb-navbar__brand-logo {
    display: block;
    /* Guide-målt: 224×40. Vores stod på 34px og rendrede 196×34. */
    max-height: 40px;
    width: auto;
    /* Pulled up 2px to sit optically centred: the wordmark's descenders pull its mass down (guide
       .dg2-nav__logo-img). */
    transform: translateY(-2px);
}

/* =============================================
   7b. NAVBAR LANGUAGE SWITCHER (design-guide V2 §7, guide 2.19.0)
   Round 2: was a solid white dropdown with a flag in the trigger. The guide's .dg2-nav__lang
   trigger is a globe + the code as text (the flag moves into the dropdown rows), and BOTH
   dropdowns — language and profile — share the same navy-glass .dg2-menu material, because in
   the guide they are literally the same class under the same .dg2-nav--overlay ancestor. Kept
   as one shared .dsb-nav-lang__dropdown / .dsb-nav-lang__option pair here for the same reason:
   _ContextSwitcher.cshtml's dropdown reuses these two classes rather than duplicating the glass.
   ============================================= */
/* The right group (guide .dg2-nav__right): the language bubble, then the profile. It is the one
   group that may give way when the row runs out of room - the company name in the profile control
   is then cut with an ellipsis, so the bubbles never leave the window. */
.dsb-navbar__right {
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: 0 1 auto;
    min-width: 0;
    gap: 6.4px;
}
/* An item of the right group spans the full height of the bar, so its menu (top:100%) hangs flush
   from the bar's bottom edge (guide .dg2-nav__item). */
.dsb-nav-lang {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: none;
    z-index: 2;
}
/* Round 3 (measured side by side with the guide's own nav, not the .dg2-nav__link rule an
   earlier round mistakenly matched this against): .dg2-nav__util — the language/account
   trigger's own class, never .dg2-nav__link — is Red Hat Display 13.6px/500, letter-spacing
   .04em. Not Roboto. ComponentStyleTests.cs's isolated probe was pinned to the wrong value for
   the same reason and is corrected alongside this (see
   Sprogknappen_er_Red_Hat_Display_500_den_daekkede_mobil_sproglabel_forbliver_Roboto_500). The
   globe/code/chevron below now MATCH this rule rather than overriding it — one source of truth,
   not two. Padding is .dg2-nav__util's .5rem .6rem and the gap its .2rem; no fixed height, the
   38.4px globe bubble plus padding sets it, centred by the item's align-items:center.
   NO BACKGROUND ON HOVER: the trigger itself never lights up - hover darkens only the bubble's
   fill (below). */
.dsb-nav-lang__btn {
    appearance: none;
    border: none;
    background: none;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3.2px;
    padding: 8px 9.6px;
    border-radius: 6px;
    color: var(--theme-nav-text-hover);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 13.6px;
    font-weight: 500;
    letter-spacing: .04em;
    transition: color .3s ease;
}
.dsb-nav-lang__btn:focus-visible,
.dsb-profile__btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}
/* the round bubble shell (.dg2-nav__bubble, 2.4rem = 38.4px, 1px ring) — shared between the
   globe here and the avatar in _ContextSwitcher.cshtml's trigger (.dsb-profile__btn), same as
   the guide shares it between .dg2-nav__lang and .dg2-nav__account. */
.dsb-nav-lang__bubble {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38.4px;
    height: 38.4px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.55);
    background: rgba(255,255,255,.08);
    overflow: hidden;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
/* Hover (and an open menu) darkens ONLY the bubble's fill (guide .dg2-nav__item:hover .dg2-nav__bubble). */
.dsb-nav-lang:hover .dsb-nav-lang__bubble,
.dsb-nav-lang.dsb-lang-open .dsb-nav-lang__bubble { background: rgba(15,23,38,.28); }
.dsb-nav-lang__globe {
    width: 100%;
    height: 100%;
    display: block;
    opacity: .6;
}
/* the current language code, centred ON TOP of the globe rather than beside it — guide's
   .dg2-nav__lang-code (line 2089), measured live across all 21 instances in the guide:
   RHD 800 / 10.88px / letter-spacing .01em.

   Round 3 changed this to 14px/500/.04em on the reasoning that 800/11px "measured too small and
   too heavy against the guide". That premise was a mix-up of two different elements: the 13.6px/500
   it matched to is `.dg2-nav__util`, the utility TEXT label ("EN" standing on the bar), not the
   code overlaid on the globe. The two are deliberately different in the guide — small and very
   heavy when it sits inside the bubble, larger and lighter when it stands as a label. Restored to
   the guide's own value. */
.dsb-nav-lang__code {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 800;
    font-size: 10.88px;
    letter-spacing: .01em;
    line-height: 1;
}
/* The chevron is the guide's own 11px stroked drawing (an <svg>, not a Font Awesome glyph) and it
   turns half a round while its menu is open. */
.dsb-nav-lang__chevron {
    flex: none;
    width: 11px;
    height: 11px;
    transition: transform .3s ease-in-out;
}
.dsb-nav-lang.dsb-lang-open .dsb-nav-lang__chevron { transform: rotate(180deg); }
/* THE MENU IS A CURTAIN (guide .dg2-menu): it hangs flush from the bar's bottom edge and unrolls
   downwards. THE LOOK IS THE GUIDE'S, THE CONSTRUCTION IS NOT: the guide grows a grid row from 0fr
   to 1fr, which is a new layout on every frame, under a blurred glass, with the menu strip being
   re-measured each of those frames. Here the menu is laid out once at its full size and a clip-path
   on its glass box uncovers it from the top - no layout while it moves, and the strip under it is
   uncovered by the same clip in the same time (.dsb-menu-strip), so the two cannot drift apart. The clip is open
   60px past the sides and the bottom so the box's shadow is not cut off; never past the top, where
   the bar is. Nothing is cut in or out with display (the motion rule).
   .dsb-nav-lang__menu is the curtain; the box inside it (.dsb-nav-lang__dropdown) carries the
   glass, the ring and the rows.
   OPEN = .dsb-lang-open on the host, and that class is the ONE state. dsbNavMenu in dsb.js sets it
   on hover, on keyboard focus inside the host and on a click or tap, and keeps one menu open at a
   time; the menu strip, the toast column (which hides under an open menu) and the notifications
   panel all read the same class, which is why hover is not a second, CSS-only way to open. */
.dsb-nav-lang__menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1050;
    min-width: 196px;
    visibility: hidden;
    transition: visibility .2s;
}
.dsb-nav-lang.dsb-lang-open > .dsb-nav-lang__menu { visibility: visible; }
/* THE CLIP IS ON THE GLASS BOX ITSELF, NEVER ON AN ELEMENT AROUND IT. A clip-path on an ancestor
   closes the glass in: its backdrop-filter may then only blur what is inside that ancestor, which
   is nothing, and the page behind the menu shows through sharp and unblurred (it did, for an hour,
   on 2026-11-27: the buttons under the menu could be read through it). On the box that carries
   the backdrop-filter the same clip only crops what the box draws. */
.dsb-nav-lang__menu > .dsb-nav-lang__dropdown {
    clip-path: inset(0 -60px 100% -60px);
    transition: clip-path .2s ease;
}
.dsb-nav-lang.dsb-lang-open > .dsb-nav-lang__menu > .dsb-nav-lang__dropdown { clip-path: inset(0 -60px -60px -60px); }
/* navy glass (guide: .dg2-nav--overlay's --menu-* set, applied through .dg2-menu__inner). The ring
   is an inset box-shadow, not a border.
   position:relative: the notifications panel is laid over the rows inside this box (§16). */
.dsb-nav-lang__dropdown {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: var(--dsb-menu-bg);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    border: 0;
    box-shadow: inset 0 0 0 1px var(--dsb-menu-border), 0 26px 52px -26px rgba(15,23,38,.5);
    border-radius: 0 0 12px 12px;
    padding: 0 7px;
    list-style: none;
    margin: 0;
}
.dsb-nav-lang__dropdown > :first-child { margin-top: 7px; }
/* The bottom inset goes on the last child IN THE FLOW. The account menu's last child is the
   notifications view (§16), which is laid over the rows and takes no room: there the inset belongs
   to the row before it, or the last row would stand on the rounded edge - and the view itself must
   not take it, or it would end 7px short of the box it covers. */
.dsb-nav-lang__dropdown > :last-child:not(.dsb-notifications) { margin-bottom: 7px; }
.dsb-nav-lang__dropdown > :has(+ .dsb-notifications:last-child) { margin-bottom: 7px; }
@media (prefers-reduced-motion: reduce) {
    .dsb-nav-lang__btn, .dsb-nav-lang__bubble, .dsb-nav-lang__chevron, .dsb-nav-lang__menu,
    .dsb-nav-lang__menu > .dsb-nav-lang__dropdown { transition: none; }
}
/* row anatomy (guide: .dg2-menu a — .58rem/.75rem padding, 8px radius, .65rem gap, Roboto .9rem).
   Round 4 (measured): these rows are <button> as well as <a> — the switch forms submit via a
   button, not the language/Support/Log ud rows' <a>. A button's UA default supplies its own
   background/border/appearance ("buttonface", ~rgb(240,240,240)), and nothing here reset them,
   so the buttons rendered white text on a near-white button face — unreadable. appearance/
   background/border below are the fix; hover is the ONLY background a row ever gets. */
.dsb-nav-lang__option {
    display: flex;
    align-items: center;
    /* guide's .dg2-menu a (line 2103), measured live: 14.4px Roboto 500, padding 9.28px 12px,
       gap 9.6px, radius 8px. The gap is the measured value, not the rule's own `.65rem` (10.4px)
       — something later in the guide overrides it, and what renders is what we match. */
    gap: 9.6px;
    padding: 9.28px 12px;
    border-radius: 8px;
    cursor: pointer;
    appearance: none;
    background: transparent;
    border: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 14.4px;
    font-weight: 500;
    /* vendor.css sets bare `a { color: #0089d0 !important }`; Support/FeatureGates are <a> rows
       using this class with no more specific rule of their own, so without !important here they
       rendered vendor blue (round 4, measured: rgb(0,137,208)). Buttons aren't matched by that
       selector, so this was invisible on the switch rows even though the same declaration governs
       them too. */
    color: var(--dsb-menu-text) !important;
    text-decoration: none !important;
    transition: background-color .16s ease, color .16s ease;
}
.dsb-nav-lang__option:hover { background: var(--dsb-menu-hover); color: var(--dsb-menu-head) !important; }
/* selected = brighter text + the mint check, not a background tint or bold (guide:
   .dg2-ctx-rows a.is-sel { color:var(--menu-head); }, checkmark coloured via --menu-accent) */
.dsb-nav-lang__option.dsb-lang-selected { color: var(--dsb-menu-head) !important; }
/* Round 5: the !important armour round 4 put on both states here guarded against a phantom.
   Round 4's evidence was the string "Flåde ✓" read off a hidden row's textContent, which includes
   text from display:none descendants — the ✓ was there precisely because the element was hidden,
   not despite it. Measured per row today: selected company block, selected view block, unselected
   view none — correct throughout, with no competing rule in sight. Back to the guide's plain pair
   (design-guide.html line 2340-2341): default hidden, shown only on the selected row. */
.dsb-nav-lang__check {
    display: none;
    margin-left: auto;
    color: var(--dsb-mint-strong);
    font-size: 13px;
}
.dsb-nav-lang__option.dsb-lang-selected .dsb-nav-lang__check { display: inline; }
/* the flag moved here from the trigger (guide: .dg2-menu .lang-flag) — one flag corner, one flag
   shadow everywhere (see --dsb-flag-r / --dsb-flag-shadow above), not the guide's separate --line
   ring, so this flag reads identically to every other flag on the platform. */
.dsb-nav-lang__option .fi {
    width: 20px;
    height: 15px;
    border-radius: var(--dsb-flag-r);
    box-shadow: var(--dsb-flag-shadow);
    flex-shrink: 0;
    background-size: cover;
}

/* =============================================
   7a2. NAVBAR PROFILE BUBBLE (design-guide V2 §7, guide 2.19.0)
   Carries the signed-in person's identity (avatar, company, view) plus the switch (FIRMA/PRIVAT),
   Min profil, Support and Log ud. The wrapper element (_ContextSwitcher.cshtml) carries
   .dsb-nav-lang alongside .dsb-profile so it inherits that class's position/open-state/
   outside-click behaviour (dsb.js closes any .dsb-nav-lang on an outside click) for free.

   Round 2 rewrite: the dropdown reuses 7b's .dsb-nav-lang__dropdown / .dsb-nav-lang__option /
   .dsb-lang-selected / .dsb-nav-lang__check wholesale — in the guide the language and account
   dropdowns are the same .dg2-menu class, so ours share the same row material rather than
   keeping a second, near-duplicate set of rules that could drift out of sync with it. Only what
   the profile dropdown has and the language one does not — the head, eyebrows, hint, dot rows,
   nested indentation — gets its own rules below. Overrides of the shared .dsb-nav-lang__dropdown
   rule use a doubled selector so they win on specificity, regardless of source order. */
/* The trigger is the language trigger's twin (guide: both are .dg2-nav__util): the same padding,
   the same 3.2px gap, no background on hover. The identity lines carry their own margins, which
   is what makes bubble -> lines 9.6px and lines -> chevron 10.4px.
   min-width:0 down the chain (host, trigger, lines) is what lets a long company name be cut with
   an ellipsis when the row runs out of room, instead of pushing the bubble out of the window. */
.dsb-nav-lang.dsb-profile { flex: 0 1 auto; min-width: 0; }
.dsb-profile__btn {
    appearance: none;
    border: none;
    background: none;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 3.2px;
    padding: 8px 9.6px;
    border-radius: 6px;
    color: var(--theme-nav-text-hover);
    /* The trigger's own type size, as on the language trigger: the identity lines' 1.15 leading is
       measured from it (15.64px), not from the body's 17px. */
    font-family: 'Red Hat Display', sans-serif;
    font-size: 13.6px;
    font-weight: 500;
}
.dsb-profile__btn .dsb-nav-lang__bubble { flex: none; }
/* base avatar: green disc + initials (guide: .dg2-profile__avatar, RHD 800). Sized per context —
   100% to fill the trigger's round bubble shell (.dsb-nav-lang__bubble, 38.4px, shared with the
   language globe), bare 34px in the dropdown head (guide: unwrapped, no outer ring there). */
.dsb-profile__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--theme-action);
    color: #fff;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 800;
}
/* 12.48px = the guide's .78rem on .dg2-profile__avatar, in the bubble and in the menu's head alike. */
.dsb-nav-lang__bubble .dsb-profile__avatar { width: 100%; height: 100%; font-size: 12.48px; }
.dsb-profile__head .dsb-profile__avatar { width: 34px; height: 34px; font-size: 12.48px; }
/* The identity lines (guide .dg2-ctx__lines): company in bold, the type under it; in the private
   context the second line says so. Read left to right as one unit: bubble, lines, chevron. */
.dsb-profile__identity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 160px;
    margin: 0 7.2px 0 6.4px;
    line-height: 1.15;
    text-align: left;
}
.dsb-profile__company {
    /* Guide .dg2-ctx__company: Red Hat Display 700, .8rem, .005em. */
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 12.8px;
    letter-spacing: .005em;
    color: #fff;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dsb-profile__view {
    /* Guide .dg2-ctx__view: Roboto 400, .7rem, .02em, white at 70 %. */
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 11.2px;
    letter-spacing: .02em;
    color: rgba(255,255,255,.7);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* min-width 300px, not 272px: the guide itself declares .dg2-menu--account twice (dg2-css.css)
   and the later rule is the one that actually wins in its own cascade — matched here rather than
   the earlier, overridden number. max-height + scroll: guide's .dg2-menu--account .dg2-menu__inner,
   for the "many companies" state (AB#3725's own admission the list can run to 8+ rows). 740px, not
   640px (round 5, guide line 2329): the guide's number exists precisely for the overflow case we
   now make worse by adding a second eyebrow (KONTO) and the MIN PROFIL one back — more fixed
   chrome before the same "8+ companies" list starts scrolling. */
.dsb-nav-lang__dropdown.dsb-profile__dropdown {
    min-width: 360px; /* 2.30.7: 300 -> 360, one box for the account rows and the Notifications view */
    /* The guide's cap is 740px; the window's own height under the bar is the second cap, or the
       last rows of a long menu could not be reached on a low screen. */
    max-height: min(740px, calc(100vh - var(--dsb-nav-h) - 16px));
    scrollbar-width: thin;
}
/* THE DROPDOWN SCROLL RULE (guide 2.24.1): a dropdown never shows a scrollbar for the moment its
   curtain is still unfolding and then loses it again. The box stays overflow:hidden; dsbNavMenu
   measures the rows against the cap as the menu opens and adds this class only when they are
   taller than it, so a scrollbar is either there from the first frame or never. A class and not an
   inline style: the notifications view's own overflow:hidden (§16) must still win over it. */
.dsb-profile__dropdown.dsb-is-scroll { overflow-y: auto; }
/* The account rows stand a touch further from their icon than the language rows from their flag
   (guide .dg2-menu a: .65rem; a.is-lang: .6rem). The phone's rows are not in this box and keep theirs. */
.dsb-profile__dropdown .dsb-nav-lang__option { gap: 10.4px; }
/* the whole head row is one link to /myprofile (guide: <a class="dg2-menu__user">) — avatar,
   name, "company · view", and a forward chevron (.dg2-menu__go) at the right. Not a separate
   line below the avatar block: round 1 had "Min profil" as its own row under the identity; the
   guide folds it into the head itself. */
/* Round 4 (measured): neither this nor .dsb-profile__switch set their own font-size, so both
   inherited the body's 17px (Broedteksten_er_17px) instead of the guide's row size — nothing in
   either rule's own text is what renders (the head's text is .dsb-profile__head-name/-meta,
   which already had their own explicit sizes; the switch has no direct text at all), but the
   guide's own .dg2-menu__user matches its base row rule (.dg2-menu a, .dg2-menu__head) at Roboto
   .9rem/500 same as every other row, so this is set to match rather than left implicit. Corrected
   in round 5: round 4 removed the "MIN PROFIL" eyebrow above this block on the claim the guide has
   none there — wrong (design-guide.html comment 2313-2316: MIN PROFIL IS the section's title, this
   head is the section's one row under it). The eyebrow is back in _ContextSwitcher.cshtml; this
   block's own border-bottom is unchanged — it still separates the head from FIRMA below, same as
   before, it just now sits under a titled section instead of an untitled one. */
/* V2 2.26.1: THE SECTION LINE IS NOT THIS PANEL'S BORDER. The head is a rounded hover panel, so a
   border-bottom on it bent at the corners at rest and its padding had to be lopsided (10/12/13) to
   sit right against the line. The line is a separate .dsb-profile__sep under the panel now — the
   same divider as the one over PRIVAT — straight, inset 12px, and the padding is symmetric again.
   All three of the menu's section lines are that one divider; the switch block below used to draw
   its own, which ran 12px wider at each side. */
.dsb-profile__head {
    display: flex;
    align-items: center;
    /* The head is a row like the others, measured on the guide's open menu (its .dg2-menu a rule
       outweighs .dg2-menu__user's own numbers): gap 10.4px, padding 9.28px 12px, 14.4px. */
    gap: 10.4px;
    padding: 9.28px 12px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 14.4px;
    font-weight: 500;
    color: var(--dsb-menu-text) !important;
    text-decoration: none !important;
    transition: background-color .16s ease, color .16s ease;
}
.dsb-profile__head:hover { background: var(--dsb-menu-hover); color: var(--dsb-menu-head) !important; }
.dsb-profile__head-id {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}
.dsb-profile__head-name {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 14.72px; /* guide .92rem (.dg2-menu__id b); the phone's head sets its own 16px */
    color: var(--dsb-menu-head);
}
/* The desktop head's second line is the guide's .78rem; the phone's head keeps the shared 12px below. */
.dsb-profile__head .dsb-profile__head-meta { font-size: 12.48px; }
.dsb-profile__head-meta {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: var(--dsb-menu-text-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dsb-profile__go {
    flex: none;
    margin-left: auto;
    display: flex;
    color: var(--dsb-menu-text-soft);
    transition: color .18s ease, transform .18s ease;
}
.dsb-profile__go svg { display: block; width: 12px; height: 12px; }
.dsb-profile__head:hover .dsb-profile__go { color: var(--dsb-menu-head); transform: translateX(2px); }
/* FIRMA/PRIVAT together (guide: .dg2-ctx-rows inside .dg2-menu--account) — one border under the
   whole switch, separating it from the head above and Team/Support/Log ud below. */
/* V2 2.26.1: its own border-bottom is gone with the head's — a .dsb-profile__sep after the block
   draws the line instead, so it is inset like every other section line in the menu. */
.dsb-profile__switch {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
}
/* separator before PRIVAT (guide §7 script, line 10654: <span class="dg2-menu__sep"></span>
   inserted just ahead of the PRIVAT eyebrow) — no existing dsb- class covers this, so a new one.
   Same hairline colour as the switch-block divider above (--dsb-menu-line = rgba(255,255,255,.12)),
   not a new hardcoded rgba — that divider itself is untouched, already measured correct. Guide's
   margin is the guide's BASE rule (line 2113: `margin:.35rem .75rem`) = 5.6px vertical, 12px
   horizontal — the 12px inset lands the line flush with the rows' own 12px text indent. Line 2351's
   `.35rem .25rem` is the phone-menu override, not this one.

   `display: block` is load-bearing, not decoration: the element is an empty <span>, and on a
   non-replaced inline box `height` does nothing and an empty inline paints no background — the
   separator was invisible without it. */
.dsb-profile__sep {
    display: block;
    height: 1px;
    margin: 5.6px 12px;
    background: var(--dsb-menu-line);
}
/* eyebrow (FIRMA/PRIVAT) + hint ("Et skift åbner forsiden i den nye sammenhæng.") — guide:
   .dg2-menu__eyebrow / .dg2-ctx-rows .dg2-menu__hint, the hint reading as the eyebrow's own
   description directly under it. */
.dsb-profile__eyebrow {
    display: block;
    padding: 9px 12px 4px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    /* 10.56px = guidens .66rem (.dg2-menu__eyebrow, linje 2332). Stod som 11px, afrundet "tæt nok"
       da sektionstitlerne kom til — men den runder også letter-spacing op fra 1.478px til 1.54px,
       og eyebrowen er nu menuens mest gentagne element (MIN PROFIL · FIRMA · PRIVAT ·
       ADMINISTRATION · KONTO, på både skærm og telefon). Målt i guiden: 10.56px / 700 / 1.478px. */
    font-size: 10.56px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dsb-menu-text-soft);
}
/* The desktop menu's eyebrow takes the guide's exact .55rem top; the phone's keeps the 9px above. */
.dsb-profile__dropdown .dsb-profile__eyebrow { padding: 8.8px 12px 4px; }
.dsb-profile__hint {
    display: block;
    padding: 0 12px 7px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4;
    color: var(--dsb-menu-text-soft);
}
.dsb-profile__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dsb-profile__form {
    margin: 0;
}
/* icons on every account-menu row — FIRMA/PRIVAT/view rows and, since round 5, KONTO's
   Support/Log ud/FeatureGates too (guide: .dg2-menu--account a i, comment line 2333, "one system —
   every row in the account menu carries an icon"). One selector already covers both: it matches
   any direct-child <i> under a .dsb-nav-lang__option row inside the profile dropdown, which is
   exactly what the KONTO rows switched to (see item 3, round 5) — no new rule needed for them.

   Opgave 2: the phone panel's rows join the same rule rather than getting a copy — the guide has
   one rule for both frames too (its selector list ends in `.dg2-mobile a i`). Guide's own numbers
   are 1.15rem/.85rem = 18.4px/13.6px. The desktop menu takes them exactly (2026-11-26, the 2.38
   port); the phone's rows keep round 5's 18px/14px, because the phone's sizes were left alone in
   that port. */
.dsb-profile__dropdown .dsb-nav-lang__option > i {
    flex: none;
    width: 18.4px;
    text-align: center;
    font-size: 13.6px;
    opacity: .85;
}
.dsb-mobile a > i,
.dsb-mobile .dsb-nav-lang__option > i {
    flex: none;
    width: 18px;
    text-align: center;
    font-size: 14px;
    opacity: .85;
}
/* THE CONTEXT ROW (V2 2.21.0 — guide .dg2-ctx-rows a + .dg2-ctx__end). The guide's row is one <a>
   with the gear button nested inside it. Ours cannot be: the row itself is a form submit (a company
   switch is a POST), and a <button> inside a <button> is invalid HTML that browsers unnest. So the
   row becomes a flex box holding two forms, and the ROW — not the inner button — owns the padding,
   the radius and the hover, so the hover reaches under the gear exactly as the guide's does.
   The inner button keeps .dsb-nav-lang__option for its type and gap and gives up only its own box. */
.dsb-ctx__row {
    display: flex;
    align-items: center;
    border-radius: 8px;
    /* The same 12px the row's own text is inset by (.dsb-nav-lang__option's padding), so the end
       cluster stops where every other row's content stops. Measured against the guide at 1280px:
       the cluster's right edge sits 19px inside the menu (7px row inset + 12px), the check at 255
       from the left and the gear at 227.4 — the guide's exact numbers. */
    padding-right: 12px;
    transition: background-color .16s ease;
}
.dsb-ctx__row:hover { background: var(--dsb-menu-hover); }
.dsb-ctx__row:hover .dsb-nav-lang__option { color: var(--dsb-menu-head) !important; }
.dsb-ctx__pick { flex: 1; min-width: 0; }
/* The row paints the hover now; a second background on the button would sit inside it as a lighter
   rectangle that stops short of the gear. */
.dsb-ctx__row .dsb-nav-lang__option,
.dsb-ctx__row .dsb-nav-lang__option:hover { background: transparent; }
.dsb-ctx__row .dsb-ctx__pick .dsb-nav-lang__option { width: 100%; }
.dsb-ctx__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
/* THE END CLUSTER: the gear, then the fold or the check. The outer slot is always occupied — the
   check keeps its 26px box, invisible, on a row that is not chosen — so the gear stands at the same
   x in every row whether the company has a chevron or not (guide's own words: "a company without a
   chevron must not push its gear outward"). */
.dsb-ctx__end {
    flex: none;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.6px; /* guide .1rem */
}
.dsb-ctx__gear,
.dsb-ctx__fold {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    appearance: none;
    cursor: pointer;
    color: var(--dsb-menu-text-soft);
    transition: background-color .16s ease, color .16s ease;
}
.dsb-ctx__gear { font-size: 12.5px; } /* guide .78rem */
.dsb-ctx__gear:hover,
.dsb-ctx__fold:hover { background: var(--dsb-menu-hover); color: var(--dsb-menu-head); }
.dsb-ctx__gear:focus-visible,
.dsb-ctx__fold:focus-visible { outline: 2px solid var(--dsb-menu-head); outline-offset: 1px; }
/* The gear's own icon must not take the account menu's shared row-icon sizing — that rule matches
   any direct-child <i> of a row inside this dropdown, and it would widen the gear's glyph to the
   18px column meant for the row's leading icon. */
.dsb-ctx__gear > i { width: auto; font-size: inherit; opacity: 1; }
.dsb-ctx__fold-chev { width: 11px; height: 11px; transition: transform .2s ease; }
.dsb-ctx__fold[aria-expanded="true"] .dsb-ctx__fold-chev { transform: rotate(180deg); }
/* The check in the outer slot: 26px = the fold's box, so a row with a check and a row with a fold
   end alike. Invisible rather than gone when the row is not chosen, and it FADES, because 2.24.1
   moves it between the company row and its type row as the fold shuts and opens. */
.dsb-ctx__row .dsb-ctx__check,
.dsb-profile__option--nested .dsb-ctx__check {
    display: inline-block;
    width: 26px;
    margin-left: auto;
    text-align: center;
    opacity: 0;
    transition: opacity .22s ease;
}
.dsb-ctx__row--sel .dsb-ctx__check,
.dsb-nav-lang__option.dsb-lang-selected .dsb-ctx__check { opacity: 1; }
/* The inline check on a company that has a fold — right after the name, not in the outer slot,
   because the fold has to stay clickable while the types are shut. */
.dsb-ctx__check--inline {
    display: inline-block;
    width: auto;
    margin-left: -2.4px; /* guide -.15rem */
    opacity: 0;
    transition: opacity .22s ease;
}
.dsb-nav-lang__option.dsb-lang-selected .dsb-ctx__check--inline { opacity: 1; }
/* A company row that carries an inline check gives its name only the room it needs, so the check
   sits against the name rather than at the far end of the row. */
.dsb-nav-lang__option:has(.dsb-ctx__check--inline) .dsb-ctx__name { flex: 0 1 auto; }
/* A nested type row must fill the row, or its check sits against the label instead of in the outer
   slot with the companies' checks. The form is the button's only parent, so both have to stretch —
   a <form> is a block but a submit button is not. Measured: without this the check landed at 111-137
   from the left depending on the label's length; the guide has every view row 286 wide with the
   check at 255, the same x as a company row's. */
.dsb-ctx__types .dsb-profile__form { display: block; }
.dsb-ctx__types .dsb-nav-lang__option { width: 100%; }

/* THE CURTAIN (V2 2.24.1): the acting company's types glide shut and open in place — the same
   grid-rows reveal every menu in the guide uses. The rows stay in the DOM, so the fold is motion
   rather than a repaint, and the motion rule holds. */
.dsb-ctx__types {
    display: grid;
    grid-template-rows: 0fr;
    overflow: hidden;
    transition: grid-template-rows .22s ease;
}
.dsb-ctx__types > * { min-height: 0; }
.dsb-ctx__types.dsb-is-open { grid-template-rows: 1fr; }
@media (prefers-reduced-motion: reduce) {
    .dsb-ctx__types, .dsb-ctx__check, .dsb-ctx__check--inline, .dsb-ctx__fold-chev,
    .dsb-ctx__row, .dsb-ctx__gear, .dsb-ctx__fold { transition: none; }
}

/* 2.30.9: the chosen context is a short green bar at the row's left edge, not a check. The bar follows
   .dsb-lang-selected, which dsbCtxFold already moves: folded out it sits on the type, folded shut on the
   company. The check slots stay (invisible) so a row with a check and a row with a fold still end alike. */
.dsb-ctx__row .dsb-ctx__check,
.dsb-profile__option--nested .dsb-ctx__check { visibility: hidden; }
.dsb-ctx__check--inline { display: none; }
.dsb-ctx__row .dsb-nav-lang__option,
.dsb-profile__option--nested { position: relative; }
.dsb-ctx__row .dsb-nav-lang__option::before,
.dsb-profile__option--nested::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    bottom: 9px;
    width: 3px;
    border-radius: 3px;
    background: var(--dsb-mint-strong);
    opacity: 0;
    transform: scaleY(.4);
    transition: opacity .22s ease, transform .22s ease;
}
.dsb-ctx__row .dsb-nav-lang__option.dsb-lang-selected::before,
.dsb-profile__option--nested.dsb-lang-selected::before { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .dsb-ctx__row .dsb-nav-lang__option::before, .dsb-profile__option--nested::before { transition: none; }
}

/* a company's views, nested under it (guide: .dg2-ctx-rows a.is-view, 2.1rem/.86rem/.9rem) — 34px
   padding-left already matched the guide (2.1rem = 33.6px); round 5 fixes the font-size step round
   4 missed (both firma and view rows landed on the same 14px, erasing the nesting signal) and the
   soft colour on an unselected view row (guide: --menu-text-soft).

   Round 6: the 14.4px that used to sit here, scoped to .dsb-profile__switch, has moved to the
   shared .dsb-nav-lang__option base where it belongs. Round 5 kept it narrow on the premise that
   "the language dropdown's rows were measured correct in round 3" — but round 3 measured their
   height and padding, never their font-size, and the language rows were 14px against the guide's
   14.4px too. One row size for every .dg2-menu row, as the guide has it. Only the NESTED view
   row is genuinely switcher-specific, and it stays scoped below. */
.dsb-profile__option--nested {
    padding-left: 34px;
}
.dsb-profile__switch .dsb-profile__option--nested {
    font-size: 13.8px; /* guide: .86rem = 13.76px — the nested view row, one step smaller */
    color: var(--dsb-menu-text-soft) !important;
}
/* .dsb-lang-selected / :hover must out-specificity the unselected colour just above with a
   compound selector, not rely on source order — the same .dsb-tab--active-vs-:hover trap noted in
   task 9. A bare .dsb-profile__option--nested.dsb-lang-selected ties on specificity with the rule
   above (two classes each) and would lose if it happened to sit earlier in the file. */
.dsb-profile__switch .dsb-profile__option--nested.dsb-lang-selected,
.dsb-profile__switch .dsb-profile__option--nested:hover {
    color: var(--dsb-menu-head) !important;
}
/* Log ud only — guide: --menu-logout:#ff9b9b, a genuine colour (not a translucent white), so it
   gets a token like the mint accent rather than being hardcoded here. */
.dsb-profile__logout,
.dsb-profile__logout:hover {
    color: var(--dsb-menu-logout) !important;
}

/* =============================================
   7c. MOBILE NAVBAR (design-guide v1.9.4)
   ============================================= */

/* WHICH BAR AT WHICH WIDTH. The desktop bar's row is a fixed 1022px that does not shrink - brand
   230, links 513, language 73, profile 134 - so from 768 up to about 1040 it ran past the right
   edge, taking the language picker and the profile menu with it: unreachable on an iPad in
   portrait, and clipped in landscape. Bootstrap switches the two headers at 768; the phone
   navigation, which this app already has, covers the whole range below 992 instead. */
@media (max-width: 991px) {
    header.header.hidden-xs { display: none !important; }
    header.header.hidden-sm.hidden-md.hidden-lg,
    .dsb-phone-nav.hidden-sm.hidden-md.hidden-lg { display: block !important; }
}
/* And from 992 the row has to earn its place. The guide's own compact trims come first (the right
   group's gap from its column width down, the triggers' side padding from 1080px down). They are
   not enough here: the guide goes to its burger at 980px, while this bar runs down to 992px with a
   company name beside the bubble. So below 1200px the items give back side padding and the gap
   between them, and below 1100px the logo goes to the guide's own 36px tier - rather than the bar
   giving up its brand or its profile. Past that the company name is cut (see .dsb-navbar__right). */
@media (max-width: 1466px) {
    .dsb-navbar__right { gap: 4.8px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .dsb-navbar__links { gap: 2px; }
    .dsb-navbar__link { padding-left: 11.2px; padding-right: 11.2px; }
}
@media (min-width: 992px) and (max-width: 1099px) {
    .dsb-navbar__links { gap: 0; }
    .dsb-navbar__link { padding-left: 8px; padding-right: 8px; }
    .dsb-navbar__brand-logo { max-height: 36px; }
    .dsb-profile__identity { max-width: 120px; }
}
@media (max-width: 1080px) {
    .dsb-nav-lang__btn, .dsb-profile__btn { padding-left: 6.4px; padding-right: 6.4px; }
}
.dsb-navbar-mob-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: transform .25s ease;
}
/* The phone top bar as the guide's glass (the desktop bar's §7a1, without the strip): the theme navy at
   84% over a blur of the page running under it, and the bar's white hairline at the bottom. Solid navy
   where color-mix is unknown.
   2026-11-26 (the 2.38 port, LOOK ONLY on the phone): the blur and saturate are the desktop bar's own
   numbers now (24px / 250 %), so colour passing under the two bars comes through alike. The tint is
   NOT the desktop's .78: that number is solved against the grey page strip, which the phone does not
   have, and it still follows --theme-nav-bg here. */
.dsb-navbar-mob {
    position: relative;
    isolation: isolate;
    background: transparent;
    padding: 0 20px;
    height: var(--dsb-mob-bar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}
.dsb-navbar-mob::before {
    content: "";
    position: absolute;
    inset: 0 0 -1px;
    z-index: -1;
    pointer-events: none;
    background: var(--theme-nav-bg);
    background: color-mix(in srgb, var(--theme-nav-bg) 84%, transparent);
    -webkit-backdrop-filter: blur(24px) saturate(250%);
    backdrop-filter: blur(24px) saturate(250%);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.12);
}
.dsb-navbar-mob__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
}
.dsb-navbar-mob__brand-logo {
    display: block;
    max-height: 32px; /* the guide's phone logo (.dg2-phone .dg2-nav__logo-img) */
    width: auto;
}
/* The profile bubble at the right of the phone top bar, opening the account pop-over (it carries
   aria-controls="dsb-mob-account", so dsbMobileNav mirrors its state). It is the desktop bar's bubble
   (guide .dg2-nav__bubble): a 1px white ring at 55 %, a faint white fill, the avatar filling it, and
   a darker fill while its menu is open. The box is still 38px - border-box, so the ring is drawn
   inside it; the unread dot is measured from inside the ring and is set out by it below. */
.dsb-navbar-mob__profile {
    all: unset;
    box-sizing: border-box;
    position: relative;   /* the unread dot is placed against this box */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease, background-color .2s ease;
}
.dsb-navbar-mob__profile:active { transform: scale(.92); }
.dsb-navbar-mob__profile[aria-expanded="true"] { background: rgba(15,23,38,.28); }
.dsb-navbar-mob__profile:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dsb-navbar-mob__profile .dsb-profile__avatar {
    width: 100%;
    height: 100%;
    font-size: 12px;
}
@media (prefers-reduced-motion: reduce) {
    .dsb-navbar-mob__profile { transition: none; }
}
/* The dot straddles the phone bubble's edge 1px outside its 38px box, where it has always stood. Its
   offsets are measured from inside the 1px ring, so they are that 1px plus the ring's width. */
.dsb-navbar-mob__profile .dsb-navbar__unread { top: -2px; right: -2px; }
/* The desktop bubble clips to its circle (overflow hidden for the globe and flags); the profile bubble
   must not, or the unread dot on its corner is cut to a sliver. */
#dsb-nav-profile-desktop .dsb-nav-lang__bubble { overflow: visible; }
/* The burger and its cross animation are gone with 2.31.0: the phone navigates through the tab bar (§7e). */

/* The old .dsb-navbar-mob__menu <ul> (a max-height:480px fold of flat --theme-nav-bg rows with a
   3px active bar on the left) was deleted in Opgave 2 — §7d below is what the burger opens now. */

/* Den gamle mobil-sprogstribe (.dsb-navbar-mob__lang-*) er slettet: sprogvalget er flyttet ind i
   telefonpanelet som .dsb-mobile__lang (guidens .dg2-mobile__lang), og striben havde nul
   markup-forbrugere tilbage. Syv regler for et element der ikke fandtes. */

/* =============================================
   7d. PHONE MENU PANEL (design-guide V2 §7 — .dg2-mobile; guide CSS 2148-2188 and the five
   shared-row overrides at 2347-2351; guide markup 6949-6980)
   =============================================
   What the burger opens on a phone: the identity head, the company/view fold, the page links,
   the KONTO rows and a language flag row. It is the same material and the same curtain fold as
   the desktop dropdowns above (7b/7a2) and deliberately reuses their row classes — the guide's
   phone overrides name .dg2-menu__eyebrow / .dg2-menu__hint / .dg2-ctx-rows, i.e. the desktop
   classes, rather than giving the phone a parallel set.

   UNIT NOTE: the guide's root is 16px and ours is 10px (vendor.css:35600 `html{font-size:10px}`),
   so every rem below is written as px = rem × 16. dsb.css contains zero rem; DsbCssConventionTests
   fails the build otherwise. `clamp(20px,4vw,48px)` is the guide's own clamp, converted.

   STATE NAMES: the guide toggles `.open` / `.is-settled` on the panel. Ours are prefixed
   (.dsb-is-open / .dsb-is-settled, the same idiom as .dsb-select.dsb-is-open) because this file's
   whole premise is that "all rules use the dsb- prefix to avoid conflicts with legacy styles" —
   and bare `.open` is a live Bootstrap 3 class in vendor.css (`.open > .btn-*.dropdown-toggle`).
   Behaviour, timings and meaning are the guide's; only the spelling is ours. See dsbMobileNav in
   dsb.js, which owns both. */
/* The sheet (2.31.0): no longer a curtain hanging from the top bar but a panel rising from the
   bottom edge, under the tab bar's More. Same material as before — the dense navy tint, re-solved
   in the comment this replaced: .94 · rgba(8,45,125) + .06 · paper = #173A85, solid glass. */
.dsb-mobile {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1042;
    visibility: hidden;
    max-height: calc(100vh - var(--dsb-mob-bar-h));
    max-height: calc(100dvh - var(--dsb-mob-bar-h));
    border-radius: 26px 26px 0 0;
    background: rgba(8,45,125,.94);
    color: var(--dsb-menu-text);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 -20px 60px -20px rgba(8,25,60,.6);
    transform: translateY(104%);
    transition: transform .36s cubic-bezier(.2,.8,.2,1), visibility .36s;
}
.dsb-mobile.dsb-is-open { transform: none; visibility: visible; }
.dsb-mobile__inner {
    min-height: 0;
    overflow: hidden;
    padding-inline: clamp(20px, 4vw, 48px);
    scrollbar-width: thin;
    /* Stops a swipe that reaches the end of this box from chaining to the window, which would
       otherwise hand the scroll straight to the hide-on-scroll handler in dsb.js. */
    overscroll-behavior: contain;
}
/* Only once the .3s curtain has finished (plus slack) may the panel scroll — scrolling a box that
   is still growing fights the fold. dsb.js adds this 340ms after the open. */
.dsb-mobile.dsb-is-settled .dsb-mobile__inner { overflow-y: auto; }
.dsb-mobile__inner > :first-child { margin-top: 9.6px; }   /* guide .6rem */
.dsb-mobile__inner > :last-child { margin-bottom: 20px; }  /* guide 1.25rem */

/* Staggered reveal (guide 2159-2168): the children fade and settle in top→bottom once the curtain
   is moving, .025s apart to the 7th and .175s for everything after it, so the panel unfolds rather
   than blinking into place. Switched off wholesale under prefers-reduced-motion. */
.dsb-mobile__inner > * {
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.dsb-mobile.dsb-is-open .dsb-mobile__inner > * {
    opacity: 1;
    transform: none;
    transition-duration: .3s, .4s;
}
.dsb-mobile.dsb-is-open .dsb-mobile__inner > :nth-child(2) { transition-delay: .025s; }
.dsb-mobile.dsb-is-open .dsb-mobile__inner > :nth-child(3) { transition-delay: .05s; }
.dsb-mobile.dsb-is-open .dsb-mobile__inner > :nth-child(4) { transition-delay: .075s; }
.dsb-mobile.dsb-is-open .dsb-mobile__inner > :nth-child(5) { transition-delay: .1s; }
.dsb-mobile.dsb-is-open .dsb-mobile__inner > :nth-child(6) { transition-delay: .125s; }
.dsb-mobile.dsb-is-open .dsb-mobile__inner > :nth-child(7) { transition-delay: .15s; }
.dsb-mobile.dsb-is-open .dsb-mobile__inner > :nth-child(n+8) { transition-delay: .175s; }
@media (prefers-reduced-motion: reduce) {
    .dsb-mobile,
    .dsb-mobile__inner > * { transition: none; }
    .dsb-mobile.dsb-is-open .dsb-mobile__inner > * { transition-delay: 0s; }
}

/* A row. Bigger than a dropdown row (16.8px against 14.4px) because a thumb hits it, not a mouse:
   the guide's 1.05rem/.85rem padding, not .9rem/.58rem. The `!important` on colour is the same
   vendor trap the dropdown rows document above — vendor.css sets a bare `a { color:#0089d0
   !important }`, which a plain declaration here cannot beat. */
.dsb-mobile a {
    display: flex;
    align-items: center;
    gap: 9.6px;             /* guide .6rem */
    padding: 13.6px 4px;    /* guide .85rem .25rem */
    font-family: 'Roboto', sans-serif;
    font-size: 16.8px;      /* guide 1.05rem */
    font-weight: 500;
    color: var(--dsb-menu-text) !important;
    border-bottom: 1px solid var(--dsb-menu-line);
    text-decoration: none !important;
    transition: color .16s ease;
}
.dsb-mobile a:hover { color: var(--dsb-menu-head) !important; }
/* "You are here" (guide: .dg2-mobile a.is-active { color:var(--menu-accent) }). --dsb-mint-strong
   is our name for the menu accent — the same colour the check marks use. */
.dsb-mobile a.dsb-is-active { color: var(--dsb-mint-strong) !important; }
/* Log ud keeps its colour through hover, exactly as in the account menu. */
.dsb-mobile a.dsb-mobile__logout,
.dsb-mobile a.dsb-mobile__logout:hover { color: var(--dsb-menu-logout) !important; }

/* The identity head — the same anatomy as the desktop bubble's, so it reuses .dsb-profile__head-*
   and .dsb-profile__go rather than restating them. Only the two things the guide changes for the
   phone are restated: a shorter top / taller bottom padding, and a 16px name.
   The guide also declares `gap:.7rem` on .dg2-mobile__user, but that rule is (0,1,0) against
   `.dg2-mobile a`'s (0,1,1) and never renders — the row's own 9.6px is what the guide shows, so
   no gap is set here either. */
.dsb-mobile a.dsb-mobile__user { padding: 9.6px 4px 14.4px; }   /* guide .6rem .25rem .9rem */
.dsb-mobile__user .dsb-profile__avatar { width: 34px; height: 34px; font-size: 12px; }
.dsb-mobile__user .dsb-profile__head-name { font-size: 16px; }  /* guide: __user .dg2-menu__id b, 1rem */

/* The fold. A <summary> is a row that happens not to be a link, so it repeats the row's own
   metrics; justify-content pushes the chevron to the far edge, and the two list-style resets kill
   the UA disclosure triangle in Firefox and WebKit respectively. */
.dsb-mobile details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 13.6px 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 16.8px;
    font-weight: 500;
    color: var(--dsb-menu-text);
    border-bottom: 1px solid var(--dsb-menu-line);
    transition: color .16s ease;
}
.dsb-mobile details summary::-webkit-details-marker { display: none; }
.dsb-mobile details summary:hover,
.dsb-mobile details[open] summary { color: var(--dsb-menu-head); }
.dsb-mobile__chev {
    flex: none;
    width: 15px;
    height: 15px;
    color: var(--dsb-menu-text-soft);
    transition: transform .2s ease;
}
.dsb-mobile details[open] .dsb-mobile__chev { transform: rotate(180deg); color: var(--dsb-mint-strong); }

/* The shared switch rows inside the fold (_ContextSwitchRows.cshtml). The guide restyles them with
   `.dg2-mobile details .sub a` — a deeper indent, one size down, soft colour — and then pulls the
   nested view rows further right again. Ours are <button class="dsb-nav-lang__option"> inside the
   switch forms rather than <a>, so the selectors name the class instead of the element; the guide's
   sixth override, `.dg2-mobile .dg2-ctx-rows a { border-bottom:0 }`, has no counterpart here
   because a <button> never picked up the row border in the first place. */
.dsb-mobile__sub .dsb-nav-lang__option {
    /* The guide's rows are <a>, which fill their line box on their own; a <button> is shrink-to-fit,
       so without this the fold's rows would be ragged stubs under full-width links — and the check
       mark's `margin-left:auto` would have nothing to push against. Scoped to the fold: the desktop
       dropdown is a narrow, fixed-width panel where the difference does not read. */
    width: 100%;
    padding: 9.6px 4px 9.6px 17.6px;  /* guide .6rem .25rem .6rem 1.1rem */
    font-size: 15.4px;                /* guide .96rem */
    color: var(--dsb-menu-text-soft) !important;
}
.dsb-mobile__sub .dsb-nav-lang__option:hover,
.dsb-mobile__sub .dsb-nav-lang__option.dsb-lang-selected { color: var(--dsb-menu-head) !important; }
/* A company's views, nested under it. 40px against the desktop's 34px: the phone override
   (guide 2348) is 2.5rem where the desktop rule is 2.1rem. Must follow the padding rule above —
   the two selectors tie on specificity, so source order is what decides. */
.dsb-mobile__sub .dsb-profile__option--nested { padding-left: 40px; }

/* The three eyebrow/hint/separator overrides the guide scopes to the phone (2349-2351): the panel
   has no 12px dropdown inset, so its section furniture sits at the rows' own 4px instead. */
.dsb-mobile .dsb-profile__eyebrow { padding-left: 4px; }                  /* guide .25rem */
.dsb-mobile .dsb-profile__hint { padding: 0 4px 8px; }                    /* guide 0 .25rem .5rem */
.dsb-mobile .dsb-profile__sep { margin: 5.6px 4px; }                      /* guide .35rem .25rem */

/* Language: named rows in two columns, the current one ticked, in place of the guide's bare flag strip
   (.dg2-mobile__lang), whose flags were guesswork. */
.dsb-mobile__lang {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    padding: 8px 4px 0;
}
/* Two classes, so the sheet's row rule (.dsb-mobile a) gives way. */
.dsb-mobile__lang .dsb-mobile__langopt {
    min-height: 44px;
    padding: 0 4px;
    border-bottom: 0;
    font-size: 15.2px;              /* guide .95rem */
    color: var(--dsb-menu-text-soft) !important;
}
.dsb-mobile__lang .dsb-mobile__langopt.dsb-lang-selected { color: var(--dsb-menu-head) !important; font-weight: 700; }
.dsb-mobile__langname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsb-mobile__lang .dsb-mobile__langopt > i { color: var(--dsb-mint-strong); opacity: 1; }
.dsb-mobile__lang .dsb-mobile__flag {
    flex: none;
    display: block;
    width: 24px;
    height: 18px;
    border-radius: var(--dsb-flag-r);
    box-shadow: var(--dsb-flag-shadow);
    background-size: cover;
}

/* =============================================
   7e. PHONE TAB BAR + MORE SHEET (design-guide V2 "MOBILE 2.31.0", the .dg2-tabbar and the More
   sheet. The bar wears the guide's 2.38.4 light pill - white glass, navy icons, a round well with
   a green arc under the chosen tab - inside the box, the tabs and the behaviour it had before:
   that port, 2026-11-26, changed the look and nothing else. The sheet rises from the bottom edge.)
   =============================================
   Markup: _MobileNav.cshtml, rendered after <main>. Behaviour: dsbMobileNav and dsbTabBar in dsb.js.
   Only ever shown below 768px; the wrapper carries Bootstrap's hidden-sm/md/lg. */
.dsb-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    display: flex;
    align-items: stretch;
    height: 58px;
    padding: 5px;
    border-radius: 999px;
    /* THE LIGHT PILL (guide 2.38.4 on the un-themed platform, its Safari construction): white glass
       at 78 % over a blur of the page, a 2px ring of opaque white drawn inside the edge, and a
       two-part shadow - a tight navy contact line and a soft drop. No sheen on a light pill.
       2026-11-26, LOOK ONLY: the pill's place, height, insets and padding are what they were, and
       so is everything dsbTabBar measures. The guide's colour-key filter for the pill is not
       used (see the note at the bar's glass); this plain blur is the guide's own fallback.
       It needs no second fallback: without backdrop-filter, white at 78 % over a light page is
       still a white pill.
       2026-11-30: .78 -> .55, the pill was found not see-through enough. The guide's own tint is
       now 36 %, but over the front page's navy that leaves the navy icons at 2:1; .55 is the lowest
       that keeps them at 3:1 there. Over light pages the blur still turns text into soft colour. */
    background: rgba(255,255,255,.55);
    -webkit-backdrop-filter: blur(24px) saturate(250%);
    backdrop-filter: blur(24px) saturate(250%);
    /* The edge, 2026-11-30: the guide's 2px ring of opaque white read as a hard white outline once the
       pill was see-through. Now glass catching light: a faint 1px rim all round and a
       brighter 1px along the top. */
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(255,255,255,.22), 0 0 3px rgba(23,58,133,.20), 0 4px 12px rgba(15,23,38,.13);
    isolation: isolate;
}
/* "YOU ARE HERE" (guide .dg2-tabbar__tile + __tline): a round well pressed into the pill - the navy
   at 8 %, a soft inner shadow above and a white lip below - with a 3px arc of the action green on
   its lower rim. The arc is a full ring cut down by a conic mask to the 84 degrees around the foot.
   The well is as tall as the room inside the pill (48px) and stands centred in its tab.
   At rest the active tab draws both itself (::before the well, ::after the arc: centred by
   construction, no measuring). On a tap dsbTabBar lends the floating copy below for the slide to
   the tapped tab, so the choice lands before the navigation does; while it slides the tabs' own
   marks are hidden. The floating element is still the tab's full box, exactly as dsbTabBar sizes
   and moves it - it is only no longer painted itself: its two pseudo-elements are the well and arc.
   The ink is --theme-secondary and the arc --theme-action, so a white-label theme's own navy and
   green carry through; on the platform they are the guide's #173A85 and #3b9c68. */
.dsb-tabbar__item.dsb-is-on::before,
.dsb-tabbar__item.dsb-is-on::after,
.dsb-tabbar__pill::before,
.dsb-tabbar__pill::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    border-radius: 50%;
    pointer-events: none;
}
.dsb-tabbar__item.dsb-is-on::before,
.dsb-tabbar__item.dsb-is-on::after { z-index: -1; }
.dsb-tabbar__item.dsb-is-on::before,
.dsb-tabbar__pill::before {
    background: rgba(23,58,133,.08);
    box-shadow: inset 0 2px 5px rgba(23,58,133,.22), inset 0 -1px 0 rgba(255,255,255,.9);
}
.dsb-tabbar__item.dsb-is-on::after,
.dsb-tabbar__pill::after {
    border: 3px solid var(--theme-action);
    -webkit-mask: conic-gradient(from 138deg, transparent 0deg, #000 12deg, #000 72deg, transparent 84deg, transparent 360deg);
    mask: conic-gradient(from 138deg, transparent 0deg, #000 12deg, #000 72deg, transparent 84deg, transparent 360deg);
}
.dsb-tabbar.dsb-is-sliding .dsb-tabbar__item::before,
.dsb-tabbar.dsb-is-sliding .dsb-tabbar__item::after { opacity: 0; }
.dsb-tabbar__pill {
    position: absolute;
    top: 5px;
    left: 5px;
    height: 48px;
    width: 0;
    opacity: 0;
    transition: transform .32s cubic-bezier(.2,.8,.2,1), width .32s cubic-bezier(.2,.8,.2,1);
}
.dsb-tabbar.dsb-is-sliding .dsb-tabbar__pill { opacity: 1; }
.dsb-tabbar__item {
    position: relative;
    isolation: isolate;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    /* The pill's ink: the navy, opaque, with the ICON dimmed to 55 % at rest (an opaque ink dimmed
       as a whole, so an icon's overlapping shapes cannot add up). !important: vendor.css sets
       `a { color:#0089d0 !important }`. */
    color: var(--theme-secondary) !important;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    transition: color .2s ease;
}
.dsb-tabbar__ico {
    display: grid;
    place-items: center;
    width: 30px;
    height: 26px;
    font-size: 20px;
    opacity: .55;
    transition: transform .34s cubic-bezier(.3,1.5,.5,1), opacity .18s ease;
}
/* The guide's own solid drawings (the sprite in _Layout.cshtml), 24px, inside the same 30 x 26 box
   the Font Awesome glyphs stand in. The lines cut into a solid icon take the pill's colour. */
.dsb-tabbar__ico svg {
    display: block;
    width: 24px;
    height: 24px;
    overflow: visible;
    --dsb-ic-cut: #fff;
}
/* Pressed: the icon dips under the finger (guide: scale .86 in .1s) and springs back. */
.dsb-tabbar__item:active .dsb-tabbar__ico { transform: scale(.86); transition-duration: .1s; }
/* Chosen: full strength, a step bluer than the resting navy (--dsb-nav-tab-on, the guide's #1746AB).
   The More tab while its sheet is open reads the same way. */
.dsb-tabbar__item.dsb-is-on,
.dsb-tabbar__item[aria-expanded="true"] { color: var(--dsb-nav-tab-on) !important; }
.dsb-tabbar__item.dsb-is-on .dsb-tabbar__ico,
.dsb-tabbar__item[aria-expanded="true"] .dsb-tabbar__ico { opacity: 1; }
/* Keyboard focus: a ring on the icon, in the pill's ink (guide), not on the whole tab. */
.dsb-tabbar__item:focus-visible { outline: none; }
.dsb-tabbar__item:focus-visible .dsb-tabbar__ico { outline: 2px solid var(--theme-secondary); outline-offset: 2px; border-radius: 6px; }

/* The backdrop and the sheet itself. The sheet is .dsb-mobile too, so the burger panel's rows
   (§7d, above) render inside it unchanged. */
.dsb-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1041;
    background: rgba(8,25,60,.42);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}
.dsb-sheet-backdrop.dsb-is-open { opacity: 1; visibility: visible; }
.dsb-sheet__handle {
    display: block;
    width: 36px;
    height: 4px;
    margin: 10px auto 4px;
    border-radius: 2px;
    background: rgba(255,255,255,.35);
}
.dsb-sheet .dsb-mobile__inner {
    max-height: calc(100vh - var(--dsb-mob-bar-h));
    max-height: calc(100dvh - var(--dsb-mob-bar-h));
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
html.dsb-sheet-open { overflow: hidden; }

/* The account pop-over (#dsb-mob-account): the same material and rows as the sheet, hung under the
   top bar's profile bubble at the right, and opened like a menu rather than risen like a sheet. */
.dsb-mobile.dsb-mobile--popover {
    top: calc(var(--dsb-mob-bar-h) + 8px + env(safe-area-inset-top, 0px));
    right: 12px;
    left: auto;
    bottom: auto;
    width: min(340px, calc(100vw - 24px));
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    border-radius: 18px;
    transform-origin: top right;
    transform: translateY(-8px) scale(.96);
    opacity: 0;
    transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .18s ease, visibility .22s;
}
.dsb-mobile.dsb-mobile--popover.dsb-is-open { transform: none; opacity: 1; }
.dsb-mobile--popover .dsb-mobile__inner {
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    padding: 6px 16px 10px;
}

/* The page keeps clear of the bar: its height plus a step of air. */
@media (max-width: 991px) {
    /* 84px clears the tab bar, but the chat launcher sits above it - 48px at bottom 80 - and owns
       the corner up to 128px. The page needs enough room after its content that everything can be
       scrolled clear of both; at rest the last card and the pager were under one or the other. */
    .dsb-page-main { padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
    /* The translation-report button (vendor.css #report-language-toggle, bottom:20px) lifts above the bar. */
    #report-language-toggle { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
    /* So does the Intercom launcher (its own stylesheet puts it at bottom:20px). */
    .intercom-lightweight-app-launcher, #intercom-container .intercom-app > div[class*="intercom-with-namespace"] { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
}
@media (prefers-reduced-motion: reduce) {
    .dsb-tabbar__pill, .dsb-tabbar__item, .dsb-tabbar__ico, .dsb-sheet-backdrop { transition: none; }
    .dsb-tabbar__item:active .dsb-tabbar__ico { transform: none; }
}

/* =============================================
   SPACING: gap between fixed navbar and page content
   ============================================= */
.dsb-page-content-spacer {
    padding-top: 80px;
}
/* <main class="container dsb-page-main"> in _Layout.cshtml: tracks the desktop bar's height, which
   the flat inline margin-top:80px it replaced could not. The phone has its own tier below. */
.dsb-page-main {
    margin-top: 80px;
}

/* Below 992 the phone's own top bar is shown (--dsb-mob-bar-h); its height plus 8 here, plus the 8 a
   page gets below, leave the guide's one step (16px) under it. The desktop bar is 98px; the old 84px
   tier belonged to a desktop bar between 768 and 980, which no longer appears there. */
@media (max-width: 991px) {
    .dsb-page-main { margin-top: calc(var(--dsb-mob-bar-h) + 8px); }
}
@media (min-width: 992px) {
    .dsb-page-main { margin-top: 98px; }

    /* A NOTICE A LIBRARY PUTS AT THE VERY TOP OF THE PAGE STANDS UNDER THE BAR'S EDGE, NOT UNDER THE
       BAR. DevExtreme adds <dx-license> as the body's first child when its licence key is not
       accepted: an orange 30px strip, on every page that builds a grid. The fixed bar lay on top
       of it, and the bar is glass: the orange came through as a red haze along the bar's top, on
       those pages only (2026-11-27). The strip cannot be styled (the library locks its own styles
       inline), so the page makes room above it instead: the bar's height, plus its 1px line, goes
       in front of the strip, and <main> gives up the margin that did that job. The strip is then
       readable in full, which is what it is for, and the bar has only the page under it.
       ::before and not padding on <body>: vendor.css pins the body's padding.
       Nothing here applies once the key is accepted and the strip is gone. */
    body:has(> dx-license)::before { content: ""; display: block; height: 99px; }
    body:has(> dx-license) .dsb-page-main { margin-top: 0; }
}

/* =============================================
   THE PAGE FOOTER (_SiteFooter.cshtml) - the bottom bar of the website's footer, in its navy form
   =============================================
   digital-servicebook.com's footer bar (Dsb.Websites tailwind.input.css, .foot__bar and
   .foot__social), its values written as px (the site's rem is 16px), on the app's navy: the copyright
   line at the left, the social links at the right. The site's legal links
   and link groups are left out on purpose (2026-11-27). The social links' hover is a plain colour
   change; the site cuts the glyph out of a mint fill with a CSS mask, and a colour gives the same
   look. vendor.css colours every <a> with !important, hence the !important on the links here. */

/* The footer stands at the bottom of the window when a page is short: the page column is a flex
   column and <main> takes the room that is left. Below 1200px .container is width:auto !important
   (further down), which in a flex column would shrink <main> to its content, so it is given the full
   width back there. */
#app { display: flex; flex-direction: column; min-height: 100vh; }
#app > .dsb-page-main { flex: 1 0 auto; }
@media (max-width: 1199px) {
    #app > .dsb-page-main { width: 100% !important; }
}

.dsb-foot {
    flex: none;
    margin-top: 48px;
    padding: 18px 0;
    /* The app's own navy, the one the bar renders and the table heads are (--theme-secondary,
       #173A85), not the website's footer gradient (#263f6b to #1d2d49): next to the bar and the
       tables the site's darker navy read as a different blue (2026-11-27). A white-label theme's
       own colour follows. */
    background: var(--theme-secondary);
    font-family: 'Roboto', sans-serif;
}
.dsb-foot__bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13.12px;
    color: rgba(255,255,255,.5);
}
.dsb-foot__social { display: flex; gap: 8px; }
.dsb-foot__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    color: rgba(255,255,255,.72) !important;
    text-decoration: none !important;
    transition: color .18s ease, border-color .18s ease;
}
.dsb-foot__social-link svg { display: block; width: 18px; height: 18px; fill: currentColor; }
.dsb-foot__social-link:hover { border-color: var(--dsb-mint-strong); color: var(--dsb-mint-strong) !important; }
.dsb-foot__social-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .dsb-foot__social-link { transition: none; } }
@media print { .dsb-foot { display: none; } }

/* THE CHAT LAUNCHER (Intercom) is fixed 20px in from the window's bottom right corner, 48px square:
   scrolled to the end, it stood on the social links. The links end 76px from the window's right edge
   instead. At 1200px and up the bar is the 1400px .container, centred: its right edge is half the
   window's spare width plus its 15px padding in, and the links give back what is missing. 100vw
   counts the scrollbar, which this over-reckons by half of; 70px, not 61px, makes up for it. Below
   1200px the container's padding is 12px, so the links take the full 64px. */
@media (min-width: 1200px) {
    .dsb-foot__social { margin-right: max(0px, calc(70px - (100vw - 1400px) / 2)); }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .dsb-foot__social { margin-right: 64px; }
}
/* On a phone the page's last room under the tab bar and the chat launcher moves from <main> to the
   footer: the footer is what has to scroll clear of them now, and <main> keeps a normal step of air. */
@media (max-width: 991px) {
    .dsb-page-main:has(~ .dsb-foot) { padding-bottom: 32px; }
    .dsb-foot { margin-top: 32px; padding-bottom: calc(136px + env(safe-area-inset-bottom, 0px)); }
}
/* =============================================
   LEGACY OVERRIDES — .rect__* components
   =============================================
   Temporary overrides for the legacy .rect layout system
   (defined in assets/sass/app.scss, bundled into vendor.css).
   These reduce excessive padding/spacing globally until each
   page is individually migrated to .dsb-* classes.

   TODO: Remove these overrides once all pages have been
   migrated away from .rect__* to .dsb-* components.
   ============================================= */
.rect__body {
    padding: 16px !important;
    padding-bottom: 24px !important;
}
.rect__heading {
    padding: 16px !important;
    border-bottom: none !important;
}

/* Responsive container: reduce side whitespace at smaller widths */
@media (max-width: 1199px) {
    .container {
        width: auto !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .rect__body {
        padding: 8px !important;
        padding-bottom: 16px !important;
    }
    .rect__heading {
        padding: 8px !important;
    }
}

/* =============================================
   PAGE HERO — title + subtitle + CTA
   =============================================
   Design-guide section 15.1. Used as the page header
   on migrated pages (replaces rect__heading).
   ============================================= */
.dsb-page-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0 20px;
}
.dsb-page-hero__titles {
    flex: 1 1 auto;
    min-width: 0;
}
.dsb-page-hero__title {
    margin: 0 0 4px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 25.6px;   /* guide point 2, "Page title" (1.6rem); was 22px */
    font-weight: 800;
    color: var(--dsb-head-color);
}
.dsb-page-hero__subtitle {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--dsb-text-muted, #6b6b6b);
}
/* TEXT LINKS IN PAGE PROSE (V2 2.26.7, and the first application of the motion rule, 2.26.9).
   A link inside a sentence on a page is not a table link: it takes the platform's navy — the
   colour of the bars and of every text action (2.26.4) — medium weight, and no underline at rest.
   The underline IS always there, transparent, so on hover and keyboard focus it can FADE in
   instead of appearing; colour unchanged. Buttons in prose are excepted.

   .dsb-prose is the opt-in for any page paragraph that needs it; the hero sub-line is the one
   consumer that has it today, and it is the guide's own case (Preferences' "… are in My Profile").
   NOT written as `.dsb-page-main p a` — that would reach every legacy page in the app at once.

   !important: vendor.css:41045 hits the bare "a" selector with its own !important color, and a
   plain rule here loses to it silently — the same trap the table-link rule records. */
.dsb-prose a:not(.dsb-btn),
.dsb-page-hero__subtitle a:not(.dsb-btn) {
    color: var(--theme-secondary) !important;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color .18s ease, text-decoration-color .18s ease;
}
.dsb-prose a:not(.dsb-btn):hover,
.dsb-prose a:not(.dsb-btn):focus-visible,
.dsb-page-hero__subtitle a:not(.dsb-btn):hover,
.dsb-page-hero__subtitle a:not(.dsb-btn):focus-visible {
    text-decoration-color: currentColor;
}
@media (prefers-reduced-motion: reduce) {
    .dsb-prose a:not(.dsb-btn),
    .dsb-page-hero__subtitle a:not(.dsb-btn) { transition: none; }
}

.dsb-page-hero__action {
    flex-shrink: 0;
}
.dsb-page-hero__stats {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dsb-stat-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 3px;
    background: var(--dsb-bg-subtle);
    border: 1px solid var(--dsb-border-color);
    padding: 1px 7px;
    border-radius: 4px;
}
.dsb-stat-pill__value {
    font-size: 11px;
    font-weight: 700;
    color: var(--dsb-text-color);
    line-height: 1;
}
.dsb-stat-pill__label {
    font-size: 10px;
    font-weight: 500;
    color: var(--dsb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dsb-page-hero + hr {
    border: none;
    border-top: 1px solid var(--dsb-border-light, #e2e8f0);
    margin: 0 0 20px;
}

@media (max-width: 576px) {
    .dsb-page-hero {
        flex-direction: column;
        padding: 16px 0 12px;
    }
    .dsb-page-hero__action {
        align-self: stretch;
    }
    .dsb-page-hero__action .dsb-btn {
        width: 100%;
    }
}

/* =============================================
   MODAL / POPUP
   ============================================= */
/* OPENS, NEVER APPEARS (V2 2.26.19, and the motion rule at the top of this file). The overlay used
   to switch display:none → flex, which no transition can carry: tint, blur and card landed in one
   frame. Now the overlay is always laid out and hidden instead — visibility:hidden + opacity 0 —
   and .dsb-modal-open fades it up over .22s while the card settles into place from 10px below at
   .98 scale. Closing runs the same way, faster (.16s), with visibility held until the fade has
   ended so nothing is cut: that is what `visibility 0s linear .16s` buys.

   HIDDEN MEANS HIDDEN: visibility:hidden takes the overlay out of hit-testing and out of the tab
   order, so a closed overlay neither swallows clicks on the page under it nor lets focus reach its
   close button — the two things display:none used to guarantee for free.

   The tint is the guide's rgba(15,23,38,.5) over a 2px blur; the overlay's own opacity carries
   both, which is why "the blurred background comes in together with the pop-up" needs no second
   transition. Padding stays 16px (ours, not the guide's 24px) — 2.26.19 is a motion change.

   THE TINT IS INERT (2026-11-03, tablet test): a click or tap on the overlay beside the card does not
   close the modal — dsb.js no longer listens for it. A modal closes only through its own controls
   (.dsb-modal__close, a footer button) or Escape, so every modal must carry one of those. */
.dsb-modal-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 38, .5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    transition: opacity .16s ease, visibility 0s linear .16s;
}
.dsb-modal-overlay.dsb-modal-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .22s ease, visibility 0s;
}
/* Ensure DevExtreme dropdowns (TagBox, SelectBox etc.) rendered inside
   a dsb-modal appear above the overlay, not behind it */
.dx-overlay-wrapper.dx-dropdowneditor-overlay {
    z-index: 2100 !important;
}
.dx-popup-wrapper.dx-dropdowneditor-overlay > .dx-overlay-content {
    z-index: 2100 !important;
}
.dsb-modal {
    background: #fff;
    border-radius: var(--dsb-radius-lg);
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    max-width: calc(520px * var(--dsb-modal-scale));
    width: 100%;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    /* The card's half of 2.26.19: it settles UP into place rather than landing. */
    transform: translateY(10px) scale(.98);
    transition: transform .16s ease;
}
.dsb-modal-overlay.dsb-modal-open .dsb-modal {
    transform: none;
    transition: transform .22s cubic-bezier(.2,.7,.2,1);
}
/* Reduced motion in the OS: the states just switch, as everywhere else in this file. */
@media (prefers-reduced-motion: reduce) {
    .dsb-modal-overlay,
    .dsb-modal-overlay.dsb-modal-open,
    .dsb-modal,
    .dsb-modal-overlay.dsb-modal-open .dsb-modal {
        transition: none;
        transform: none;
    }
}
.dsb-modal--md {
    max-width: calc(800px * var(--dsb-modal-scale));
    width: calc(800px * var(--dsb-modal-scale));
    overflow: visible;
}
.dsb-modal--md .dsb-modal__body {
    overflow: visible;
}
.dsb-modal--md .dsb-modal__body .form-control {
    height: 50px !important;
    border: 2px solid var(--theme-secondary) !important;
    border-radius: var(--dsb-radius) !important;
    font-size: 16px !important;
    padding: 0 12px !important;
}
.dsb-modal--md .dsb-modal__body .iti {
    width: 100% !important;
}
.dsb-modal--md .dsb-modal__body .iti input {
    height: 50px !important;
    border: 2px solid var(--theme-secondary) !important;
    border-radius: var(--dsb-radius) !important;
    font-size: 16px !important;
    padding-left: 52px !important;
}
.dsb-modal__body .dsb-modal__footer {
    margin: 20px -20px -20px;
}
.dsb-modal--lg {
    max-width: 80vw;
    width: 80vw;
}
.dsb-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--theme-secondary);
    color: #fff;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}
/* h1-h6 carries its own color: var(--dsb-head-color) (navy) from the global heading rule
   (line ~161), which as an element selector still beats an inherited value. If a modal title
   is ever marked up as a heading, it must not go navy-on-navy inside this navy band. */
.dsb-modal__header h1,
.dsb-modal__header h2,
.dsb-modal__header h3,
.dsb-modal__header h4,
.dsb-modal__header h5,
.dsb-modal__header h6 {
    color: #fff;
}
.dsb-modal__close {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    /* The header is navy (--theme-secondary); --dsb-text-muted / --dsb-quiet-hover are dark
       ink tones and would composite to ~1.6:1 contrast here — effectively invisible. Same
       "hover is the control's own colour, darker" rule, applied in the header's actual
       colour space (V2 §10's .dg2-modal__close): white at reduced opacity, hover to full white. */
    color: rgba(255, 255, 255, .7);
    padding: 4px 8px;
}
.dsb-modal__close:hover {
    color: #fff;
}
/* :focus-visible, and white — V2 §10's own rule (.dg2-modal__close:focus-visible). dsbModal.open
   focuses this button so the keyboard lands somewhere sensible, and a plain :focus painted a green
   ring on every modal the moment it opened, for mouse users who never asked for it. The green also
   had no business in a navy band: the close button's own colour is white. */
.dsb-modal__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}
.dsb-modal__body {
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-width: 0;
}
/* A FORM AROUND THE BODY AND THE FOOTER (most pop-ups that post). The card is a column whose body takes the scroll;
   a form between them was an ordinary block, so the body never shrank: content taller than the card pushed the
   footer's buttons out of the card, where overflow: hidden cut them off with nothing to scroll (found 2026-11-30
   with many photos in the service-book pop-up, on a phone from the 7th). The form is the same column, passed on. */
.dsb-modal > form {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
}

.dsb-modal--scrollable {
    overflow: hidden;
}
.dsb-modal--scrollable .dsb-modal__body {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Constrain tables and grids inside modal body */
.dsb-modal__body .dsb-table-wrapper,
.dsb-modal__body .dsb-dx-grid {
    max-width: 100%;
    overflow-x: auto;
}
.dsb-modal__body .dx-datagrid {
    max-width: 100%;
}
.dsb-modal__body .dx-datagrid-rowsview,
.dsb-modal__body .dx-datagrid-headers {
    overflow: hidden;
}
.dsb-modal__body .dx-datagrid-table {
    width: 100% !important;
}
.dsb-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: var(--dsb-bg-page);
    border-top: 1px solid var(--dsb-border-light);
    flex-shrink: 0;
}

/* A wider card for a pop-up that carries a record rather than a question (V2 2.26.25:
   .dg2-modal--wide, 720px). */
.dsb-modal--wide {
    max-width: calc(720px * var(--dsb-modal-scale));
}
/* The widest card: a pop-up that carries a RECORD PAGE rather than a record — the customer sheet's
   own page, at a third of a width more than --wide (V2 2.26.23: .dg2-modal--xl, 1120px). */
.dsb-modal--xl {
    max-width: 1120px;
}
/* OPTIONAL HEAD PART (V2 §10 .dg2-modal__titles): a title with a sub-line under it — the vehicle a
   record belongs to, the thing a question is about. The header's own font-weight/size belong to the
   title, so the band's rule is overridden here rather than weakened there. */
.dsb-modal__titles {
    display: grid;
    gap: 2.4px;
    min-width: 0;
}
.dsb-modal__title {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: #fff;
}
.dsb-modal__sub {
    font-family: 'Roboto', sans-serif;
    font-size: 13.44px;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, .72);
    overflow-wrap: anywhere;
}

/* A menu in the footer keeps its own height rather than being stretched by the row. */
@media (max-width: 576px) {
    .dsb-modal__footer .dsb-menu {
        align-self: flex-end;
    }
}

/* =============================================
   10b. POP-UPS ON A PHONE (design guide V2 "MOBILE 2.31.0": "small = a sheet from the bottom,
   big = the whole screen with a back arrow")
   =============================================
   A pop-up on a phone is not a card floating in the middle of the screen. A small one rises from the
   bottom edge, full width, with a grab handle on its header; a big one — the record, View all, the day
   — takes the whole screen and leaves the way it was entered, so its close cross becomes a back arrow
   at the start of the header. Nothing else changes: the same markup, the same dsbModal calls, the same
   contents. The breakpoint is the platform's phone width, 767px, and not the guide's 560px: the
   desktop pop-up is already too wide for a tablet in portrait. */
@media (max-width: 767px) {
    .dsb-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .dsb-modal {
        max-width: none;
        width: 100%;
        /* 28px of the page stays visible above the sheet, so it reads as lying over the page. */
        max-height: calc(100% - 28px);
        border-radius: var(--dsb-radius-lg) var(--dsb-radius-lg) 0 0;
        /* It slides up from the edge instead of settling in place (the desktop's translateY(10px)). */
        transform: translateY(100%);
        transition: transform .2s ease;
    }
    .dsb-modal-overlay.dsb-modal-open .dsb-modal {
        transform: none;
        transition: transform .3s cubic-bezier(.2,.7,.2,1);
    }
    /* The grab handle: the one mark that says "this is a sheet". White on the navy header. */
    .dsb-modal__header {
        position: relative;
        padding: 20px 17.6px 16px;
    }
    .dsb-modal__header::before {
        content: "";
        position: absolute;
        top: 7px;
        left: 50%;
        width: 36px;
        height: 4px;
        margin-left: -18px;
        border-radius: 2px;
        background: rgba(255, 255, 255, .35);
    }
    /* A sheet always clips to its rounded top and scrolls its own body — including the form variant,
       which on a desktop lets a dropdown escape the card (.dsb-modal--md, overflow visible). Content
       taller than the screen would otherwise hang out of the sheet and over the page. */
    .dsb-modal, .dsb-modal--md { overflow: hidden; }
    .dsb-modal__body, .dsb-modal--md .dsb-modal__body { overflow-y: auto; overflow-x: hidden; }
    .dsb-modal__body { padding: 17.6px; }
    /* A footer marked up INSIDE the body is pulled out to the body's edges by a negative margin that
       assumes the desktop padding; it has to follow the sheet's. */
    .dsb-modal__body .dsb-modal__footer { margin: 17.6px -17.6px -17.6px; }
    /* The footer rides above the home indicator and its buttons share the row. One carrying four (the
       dashboard's vehicle sheet) wraps rather than squeezing every label, hence auto and not 0 as the
       basis. Only .dsb-btn: the fleet sheet's bin is a direct child too and stays a bin. */
    .dsb-modal__footer {
        flex-wrap: wrap;
        padding: 12px 17.6px calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .dsb-modal__footer > .dsb-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    /* A record rather than a question: the whole screen, entered and left the same way. */
    .dsb-modal--wide,
    .dsb-modal--xl {
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    .dsb-modal--wide .dsb-modal__header,
    .dsb-modal--xl .dsb-modal__header {
        justify-content: flex-start;
        gap: 9.6px;
        padding: 14.4px 16px;
    }
    .dsb-modal--wide .dsb-modal__header::before,
    .dsb-modal--xl .dsb-modal__header::before { display: none; }   /* a full screen is no sheet */
    /* The × becomes the back arrow, and leads the header. The button's own text is hidden rather than
       changed: the markup, its aria-label and its onclick stay exactly as they are. */
    .dsb-modal--wide .dsb-modal__close,
    .dsb-modal--xl .dsb-modal__close {
        order: -1;
        flex: none;
        width: 36px;
        height: 36px;
        margin: 0 0 0 -6.4px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        color: #fff;
    }
    .dsb-modal--wide .dsb-modal__close::before,
    .dsb-modal--xl .dsb-modal__close::before {
        content: "\f060";
        font: 900 17px/1 'Font Awesome 6 Free';
    }
    .dsb-modal--wide .dsb-modal__close:active,
    .dsb-modal--xl .dsb-modal__close:active { background: rgba(255, 255, 255, .12); }
    .dsb-modal--wide .dsb-modal__title,
    .dsb-modal--xl .dsb-modal__title { font-size: 16.8px; }
}
/* The floating helpers stand on the page, not on a panel lying over it, and the chat launcher's own
   z-index (2147483000) is far above the overlay's — so they step aside while a sheet, the account
   pop-over or a pop-up is open. dsbMobileNav marks the first two on <html>; a pop-up needs :has(). */
@media (max-width: 767px) {
    html.dsb-sheet-open #intercom-container,
    html.dsb-sheet-open .intercom-lightweight-app,
    html.dsb-sheet-open #report-language-toggle,
    html.dsb-sheet-open #report-language-bug-wrapper,
    html.dsb-sheet-open .dsb-dev,
    body:has(.dsb-modal-overlay.dsb-modal-open) #intercom-container,
    body:has(.dsb-modal-overlay.dsb-modal-open) .intercom-lightweight-app,
    body:has(.dsb-modal-overlay.dsb-modal-open) #report-language-toggle,
    body:has(.dsb-modal-overlay.dsb-modal-open) #report-language-bug-wrapper,
    body:has(.dsb-modal-overlay.dsb-modal-open) .dsb-dev { display: none !important; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .dsb-modal,
    .dsb-modal-overlay.dsb-modal-open .dsb-modal { transition: none; transform: none; }
}

/* =============================================
   ATTACHMENT CHIPS (V2 2.26.25, .dg2-att)
   A file as a chip: an icon for its kind, the name in ink. For anywhere a record shows its
   documents without being a table -- the service record's sheet, later its form (where the chip
   gains its x).
   ============================================= */
.dsb-att {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7.2px;
    /* It is usually a grid or flex item (.dsb-field is a grid), and such an item will not go narrower than its
       longest chip unless told it may: a long file name then ran past a phone's edge, its x out of reach
       (2026-11-30). With this the chip's own max-width: 100% holds and the name is cut with an ellipsis. */
    min-width: 0;
}
.dsb-att__chip {
    display: inline-flex;
    align-items: center;
    gap: 7.2px;
    height: 34px;
    padding: 0 12.8px;
    background: #fff;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    font-family: 'Roboto', sans-serif;
    font-size: 13.76px;
    font-weight: 500;
    color: var(--dsb-text-color);
    text-decoration: none;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: border-color .18s ease, background-color .18s ease;
}
.dsb-att__chip:hover {
    background: var(--dsb-bg-subtle);
    border-color: var(--dsb-fld-hover-line);
    color: var(--dsb-text-color);
    text-decoration: none;
}
.dsb-att__chip i {
    flex: none;
    font-size: 14px;
    color: var(--dsb-link-color);
}
.dsb-att__chip i.fa-file-pdf { color: #C0392B; }

/* =============================================
   THE SERVICE RECORD (V2 2.26.25 / 2.26.26)
   One service as a sheet. A shared component, not a page one: the pop-up opens from the search
   history and from the service-plan grid, and /serviceplan/show renders the same sheet.
   ============================================= */
/* THE OWN LINE: only on a record this workshop saved itself -- who, when, and whether it can still
   be changed. Another company's record gets no line: there is nothing to explain. */
.dsb-record__own {
    display: flex;
    align-items: flex-start;
    gap: 9.6px;
    margin: 6.4px 0 8px;
    padding: 9.6px 13.6px;
    background: rgba(29, 45, 73, .035);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 13.76px;
    line-height: 1.45;
    color: var(--dsb-text-muted);
}
.dsb-record__own i {
    flex: none;
    margin-top: 3.2px;
    font-size: 13px;
    color: var(--dsb-link-color);
}
/* Closed or uploaded: the icon stops pointing at an action. */
.dsb-record__own.is-closed i { color: var(--dsb-text-light); }
/* The note's button (Request a correction, Withdraw) keeps its own width: in this flex row the long
   sentence beside it squeezed it below its label, and a button clips what does not fit (2026-11-27).
   The sentence wraps instead. */
.dsb-record__own .dsb-btn { flex: none; }
.dsb-record__own b {
    color: var(--dsb-text-color);
    font-weight: 500;
}
/* The record's rows stand a step roomier than a plain key/value sheet (V2: .7rem against the base
   .62rem) -- the sheet is the whole point of the card, not a detail inside one. */
.dsb-record__kv > div { padding: 11.2px 0; }
/* The sheet's last row needs no hairline -- the footer's own closes it. */
.dsb-record__kv > div:last-child { border-bottom: 0; }
.dsb-record__kv dd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7.2px;
}
.dsb-record__oe { color: var(--dsb-link-color); }
/* THE SHEET ON A PHONE (AB#5232, 2026-11-30; 620px is the record's own breakpoint, pages/service-record.css).
   Two things did not survive the narrow sheet as a row; the owner chose both from pictures of before and after:
   - The own line. Its button keeps its width (above), so at 375px the sentence beside it was left a column 73px
     wide, fifteen lines tall. The button goes under the sentence instead, at its own width, in line with it.
   - The repair photos. In the value column (about 150px there) the tiles stood one to a row: six photos were 890px
     of scrolling. The row gives them the sheet's whole width, the label above: three to a row. */
@media (max-width: 620px) {
    .dsb-record__own {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 9.6px;
        row-gap: 8px;
    }
    .dsb-record__own .dsb-btn { grid-column: 2; justify-self: start; }
    .dsb-record__kv > .dsb-record__photos { grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
    /* Three to a row needs the compact tile (88px): the gallery's own phone rule further down asks for 96px, which
       leaves two in a 375px sheet. Named by the row, so that rule's order in the file does not decide it. */
    .dsb-record__photos .dsb-gallery--compact { grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
}
/* An inspection's remarks from the register. A numbered list inside a value cell, indented to its
   own numbers rather than to the sheet's column. */
.dsb-record__errors {
    margin: 0;
    padding-left: 18px;
}
.dsb-record__errors li + li { margin-top: 6px; }
/* Focus parks on the CARD when a pop-up loads, so the keyboard is inside the dialog; there is nothing
   to see, the way the guide parks focus on its dialog rather than on a control. Every card that
   takes parked focus (tabindex="-1"), not the record's alone: the owner's booking pop-up, the fleet
   request and the customer sheet park focus the same way and had no such rule, so the browser drew
   its own black-and-white ring round the whole card whenever it judged the focus worth showing
   (a pop-up opened by a ?booking= link on page load, or after any key press). The controls inside
   keep their own focus rings. */
.dsb-modal[tabindex="-1"]:focus { outline: none; }
.dsb-record__loading {
    display: grid;
    place-items: center;
    min-height: 160px;
}
/* THE DOCUMENT GROUP in the footer: the report in the table's blue and, right beside it, print as a
   BARE ICON. Print belongs to the document, not to the record's actions -- hence no button frame. */
.dsb-record__docs {
    display: flex;
    align-items: center;
    gap: 5.6px;
    margin-right: auto;
}
.dsb-record__print {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: var(--dsb-radius);
    background: none;
    /* The quiet icon grey, not navy: the same rule as the date field's calendar button and the
       chip's x. */
    color: var(--dsb-text-light);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    transition: color .18s ease;
}
.dsb-record__print:hover { color: var(--dsb-text-muted); }
.dsb-record__print:focus-visible {
    outline: 2px solid var(--dsb-fld-focus-line);
    outline-offset: 2px;
}

@media (max-width: 576px) {
    /* The footer stacks on mobile (see the modal rule above), so the document group no longer pushes. */
    .dsb-record__docs {
        margin-right: 0;
        justify-content: space-between;
    }
}

/* =============================================
   SPINNER (loading indicators)
   =============================================
   V2's COMET (dg2-css.css §12, 815-848): a fixed 3/4 arc at a constant 1.6s linear turn -- the
   only mathematically even motion -- solid almost all the way, with only the tail's last ~60deg
   fading to nothing. SVG cannot run a gradient along a stroke, so the arc is a conic-gradient
   (head at 12 o'clock) cut into a ring by a radial-gradient mask; the arc's rounded front edge is
   a ::before dot, painted, not animated -- nothing about the motion itself varies. Ring weights
   mirror V1 (2/16, 3/26, 4/40 px -- repo's 24/36 become 26/40 to match V2's own sizes).
   `dsb-spin`'s keyframes (UTILITY: spinner, below) are reused for the turn: identical 0->360deg
   rotation, no reason to duplicate it. */
.dsb-spinner {
    --sw: 3px;
    display: inline-block;
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--theme-action);
    background-color: var(--dsb-border-color); /* the faint full track (V2 --line, dg2-css.css:824) */
    background-image: conic-gradient(transparent 90deg, currentColor 150deg); /* 0-90deg gap; tail fades 90->150deg, solid 150deg->head */
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--sw) - 1px), #000 calc(100% - var(--sw)));
    mask: radial-gradient(farthest-side, transparent calc(100% - var(--sw) - 1px), #000 calc(100% - var(--sw)));
    animation: dsb-spin 1.6s linear infinite;
}
.dsb-spinner::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% - var(--sw) / 2);
    width: var(--sw);
    height: var(--sw);
    border-radius: 50%;
    background: currentColor; /* the arc's own rounded end, not a separate "head" */
}
.dsb-spinner--action { color: var(--theme-action); } /* V2 has one accent (--accent-strong = green); kept as a no-op alias so existing markup keeps working */
.dsb-spinner--sm { width: 16px; height: 16px; --sw: 2px; }
.dsb-spinner--lg { width: 40px; height: 40px; --sw: 4px; }
/* MICRO (guide .dg2-spinner--micro): the size for INSIDE another control — a busy button. Fixed 14px
   with Small's 2px ring, the same turn; the colour is the host's (the label's colour, not the
   spinner's own green) and the track is that colour at 25 %. The guide writes the track as a
   colour-mix of currentColor, which this repo does not use (see --dsb-quiet-hover), so the track is
   the ::before disc at opacity .25 instead: it lies under the same ring mask as the arc and composites
   to the same pixels. That takes the place of the rounded cap, which Micro does not have — at this
   ring it can only render as a lump. */
.dsb-spinner--micro { width: 14px; height: 14px; --sw: 2px; color: inherit; background-color: transparent; }
.dsb-spinner--micro::before { inset: 0; width: auto; height: auto; opacity: .25; }
@media (prefers-reduced-motion: reduce) {
    .dsb-spinner { animation: none; } /* stands still as the same comet arc */
}

/* =============================================
   TOOLTIPS
   ============================================= */
.dsb-table-tooltip,
.dsb-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
    cursor: default;
    vertical-align: middle;
    top: -2px;
}
.dsb-table-tooltip__content,
.dsb-tip__bubble {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--theme-secondary); /* V2's tooltip is a navy surface, not white (dg2-css.css:857 --nav-navy) */
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* R20: font-family is set above, so a weight must be paired in the SAME rule.
       font-weight inherits -- an ancestor with a 600/700 rule would otherwise leak into the bubble
       and synthesize bold with nothing to grep for. Round-1 fix: this was missing. */
    line-height: 1.4;
    padding: 8px 11px; /* .5rem .7rem @16px base */
    border-radius: 8px;
    font-size: 13px; /* .8rem @16px base */
    white-space: nowrap;
    pointer-events: none;
    z-index: 100;
    /* Both shadow layers ported from dg2-css.css:857 (round-1 fix: the elevation layer was missed
       the first pass). The 1px ring is the HALO (dg2-css.css:857 comment): it keeps a navy bubble a
       distinct shape on any surface it opens over -- a navy table header included, which is exactly
       where this component's trigger sits. A plain rgba(0,0,0,.06) ring is invisible on navy.
       --dsb-tooltip-ring is a static tint (color-mix is unused in this repo on purpose, see :root's
       note on --dsb-quiet-hover) of the DEFAULT theme's --theme-secondary, not a per-tenant one. The
       second layer is V2's own elevation shadow, ported verbatim (no token exists for a shadow tint;
       raw rgba() shadow colours are the established convention elsewhere in this file). */
    box-shadow: 0 0 0 1px var(--dsb-tooltip-ring), 0 12px 30px -12px rgba(15,23,38,.5);
}
.dsb-table-tooltip__content::after,
.dsb-tip__bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--theme-secondary); /* the arrow inverts with the bubble */
    /* No box-shadow here (checked live, then reverted): V2's arrow is a rotated 10x10 square whose
       BORDER BOX is the visible diamond, so an offset shadow traces its edges cleanly. This arrow is
       a border-triangle -- border-box is a 10x10 square but the PAINTED shape is a downward triangle
       inside it, so an offset shadow traces the invisible bounding square instead: a stray light "L"
       floating beside/under the triangle tip. Confirmed by rendering the probe at 4x zoom. Swapping
       to V2's rotated-square technique would be an anatomy change on the one live-consumer component
       (Serviceplan/Index.cshtml, Workshop/_TeamTable.cshtml, Workshop/Factorydata/Index.cshtml) that
       this task's scope doesn't call for -- so the arrow stays halo-less; only the bubble carries it. */
}
.dsb-table-tooltip:hover .dsb-table-tooltip__content,
/* Keyboard too (guide .dg2-tip:focus-within, 2743-2755): the trigger carries tabindex="0", and a
   hint reachable only by pointer is not a hint for everyone. Added with .dsb-tip below; it applies
   to the three existing consumers as well, which is the fix they were missing. */
.dsb-table-tooltip:focus-within .dsb-table-tooltip__content,
.dsb-tip:hover .dsb-tip__bubble,
.dsb-tip:focus-within .dsb-tip__bubble { display: block; }
/* The base class offsets itself to sit next to something (a value it annotates). When the tooltip
   wraps the cell's entire content there is nothing to sit beside, so the offsets have to go. */
.dsb-table-tooltip--flush { margin-left: 0; top: 0; }
/* No room above inside the clipping ancestor: dsb.js sets .is-below and the bubble opens downward. */
.dsb-table-tooltip.is-below .dsb-table-tooltip__content,
.dsb-tip.is-below .dsb-tip__bubble { bottom: auto; top: calc(100% + 8px); }
.dsb-table-tooltip.is-below .dsb-table-tooltip__content::after,
.dsb-tip.is-below .dsb-tip__bubble::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--theme-secondary); }
/* For an explanation rather than a label. The base nowrap keeps short hints on one line; a sentence
   needs to wrap or the tooltip grows wider than the page. */
.dsb-table-tooltip--wide .dsb-table-tooltip__content {
    white-space: normal;
    width: 260px;
    text-align: left;
}
/* A DataGrid cell clips its content (DevExtreme sets overflow: hidden on every td for its ellipsis),
   so a bubble opening from inside the cell was cut to the strip that fell within the 44px row: a
   navy block with no text above every plate on the service plan (Lasse, 2026-10-30). The cell that
   carries a tooltip must not clip; the grid's rows view still does, and the flip in dsb.js then
   measures against it and opens the first row's bubble downward. */
.dx-datagrid .dx-row > td:has(.dsb-table-tooltip, .dsb-tip) { overflow: visible !important; }

/* DOCUMENTATION MARKERS (AB#6166, placeholder until the designer's proposal): what a service record has attached, one
   small mark per kind - invoice, documents with a count, an OE portal's report, photos with a count, a check sheet - and
   a quiet dash when nothing is. They say what EXISTS; opening it is the record's job and follows the record's rule. The
   invoice is the one mark in the accent, because it is the proof of the work. Used in the vehicle history and in the
   service plan's grid. A mark may be a link (the grid opens the invoice from it): it then looks the same, and has to
   outrank vendor.css's `a { color: ... !important }` as a.dsb-chip does. */
.dsb-docs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.dsb-docs__item {
    all: unset;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 1px 7px; border: 1px solid var(--dsb-border-light); border-radius: 6px;
    background: var(--dsb-bg-subtle); color: var(--dsb-text-muted);
    font-size: 12px; font-weight: 500; line-height: 18px; white-space: nowrap;
}
.dsb-docs__item > i { font-size: 11px; }
.dsb-docs__item--invoice { border-color: var(--dsb-table-action); color: var(--dsb-table-action); background: transparent; }
a.dsb-docs__item { cursor: pointer; color: var(--dsb-text-muted) !important; text-decoration: none !important; }
a.dsb-docs__item.dsb-docs__item--invoice { color: var(--dsb-table-action) !important; }
a.dsb-docs__item:hover { border-color: var(--dsb-table-action-dark); color: var(--dsb-table-action-dark) !important; }
a.dsb-docs__item:focus-visible { box-shadow: var(--dsb-focus-ring); }
.dsb-docs__none { color: var(--dsb-text-light); }

/* TABLE GROUP HEADING (AB#6174): a row that names the rows under it, e.g. a vehicle history's "Upcoming" above its
   "History". Quiet small caps on the subtle ground, never a row of data: it has no row lift and opens nothing. A row
   inside the group that is still to come takes .dsb-table__row--ahead (its date in the heading ink). */
.dsb-table tbody tr.dsb-table__group > td {
    padding: 8px 16px; background: var(--dsb-bg-subtle); color: var(--dsb-text-muted);
    font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.dsb-table tbody tr.dsb-table__row--ahead .service_book-date { color: var(--dsb-head-color); font-weight: 600; }

/* THE GENERIC NAME (2026-09-17). The component above IS the guide's .dg2-tip; it was named for the
   first place it was needed, a table cell, and Settings needs the same bubble beside a section
   heading and a panel title. Aliased, not duplicated and not renamed: a rename would touch three
   live pages (Serviceplan/Index, Settings/_TeamTable, Workshop/Factorydata/Index) for no gain, and
   a second bubble would be two tooltips to keep in step. .dsb-tip is added to each selector list
   above; only the two differences a prose bubble needs are restated here. New markup uses
   .dsb-tip / .dsb-tip__bubble; .dsb-table-tooltip stays for what already uses it. */
.dsb-tip {
    /* No margin-left and no 2px lift: a tip beside a heading has nothing to sit next to. */
    margin-left: 0;
    top: 0;
    cursor: help;
}
.dsb-tip .dsb-tip__bubble {
    /* A sentence, not a label — the base nowrap would grow the bubble wider than the page. */
    white-space: normal;
    width: 260px;
    text-align: left;
}
/* On a phone the bubble is wider than the screen and hung off the left edge. It wraps, takes at most
   the card's width, and hangs from the trigger's right edge inward, arrow under the trigger. It has
   to sit after the rules above: a media query carries no specificity of its own. */
@media (max-width: 767px) {
    .dsb-table-tooltip__content,
    .dsb-tip__bubble {
        left: auto;
        right: -8px;
        transform: none;
        width: max-content;
        max-width: min(260px, calc(100vw - 48px));
        white-space: normal;
    }
    .dsb-table-tooltip__content::after,
    .dsb-tip__bubble::after {
        left: auto;
        right: 12px;
        transform: none;
    }
}

/* =============================================
   BREADCRUMBS
   ============================================= */
/* A way back to where the page was opened from, above its title ("← Back", "← My vehicles"). It keeps
   the platform's link colour: vendor.css sets a { color } !important, and a back link reads as a link. */
.dsb-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.dsb-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}
.dsb-breadcrumbs li { display: flex; align-items: center; }
.dsb-breadcrumbs li + li::before {
    content: '/';
    margin: 0 8px;
    color: var(--dsb-text-light);
}
.dsb-breadcrumbs a { color: var(--dsb-link-color); text-decoration: none; }
.dsb-breadcrumbs a:hover { text-decoration: underline; }
/* Roboto ikke hentet i 600; en 600-erklæring ville syntetiseres op til 700 og render fed
   (per-opgave-kort linje 47). Familien arves fra body (Roboto), ingen egen font-family her. */
.dsb-breadcrumbs .dsb-current { color: var(--dsb-text-muted); font-weight: 500; }

/* =============================================
   PROGRESS BAR
   =============================================
   V2 §11 (dg2-css.css 804-814): height, border, radius, transition ported 1:1. V2's ONE-colour
   rule ("state and severity live in pills and alerts, never in the bar's colour") removed every
   variant but green; this repo keeps --primary/--action/--danger/--warning (0 live consumers,
   but not this task's call to prune) and re-tokenises only what was flagged: --warning's hardcoded
   old orange. --danger's #934041 has no V2 counterpart to port from (the variant was deleted
   there) and is left as-is — see task-11-report.md. */
.dsb-progress { height: 8px; background: var(--dsb-bg-page); border: 1px solid var(--dsb-border-light); border-radius: 999px; overflow: hidden; }
.dsb-progress__bar { height: 100%; border-radius: 999px; transition: width .3s ease; }
.dsb-progress__bar--action { background: var(--theme-action); }
.dsb-progress__bar--primary { background: var(--theme-primary); }
.dsb-progress__bar--danger { background: #934041; }
.dsb-progress__bar--warning { background: var(--dsb-warn); }
@media (prefers-reduced-motion: reduce) {
    .dsb-progress__bar { transition: none; }
}

/* =============================================
   UTILITY: spinner
   ============================================= */
.dsb-spin {
    animation: dsb-spin 1s linear infinite;
}
@keyframes dsb-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .dsb-spin { animation: none; }
}

/* =============================================
   PAGE WRAPPER — neutralize legacy rect/heading styles
   =============================================
   Use .dsb-page on pages migrated to the design system.
   It resets legacy .rect, .rect__heading, .rect__body
   so they don't interfere with component styles.
   ============================================= */
.dsb-page {
    /* Declares its own family AND weight rather than a blind inherit (Global Constraint 11,
       kendelse R20): mirrors body's (TYPOGRAFI) Roboto 400 exactly, so this is the same value as
       before, just no longer chained through an unstated inherited weight. */
    font-family: 'Roboto', ui-sans-serif, system-ui, sans-serif;
    font-weight: 400;
    color: var(--dsb-text-color);
}
/* 24px between the navy menu and the content (the guide: nav bottom -> content top = 24px). .dsb-page-main's
   margin is exactly the bar's height, so a page's first air comes from .dsb-page-hero's top padding; a page
   with no hero (the dashboard, OE data, search) sat flush against the menu. :where() keeps this at .dsb-page's
   own weight, so a page that sets its own padding (.dsb-auth) still wins. */
.dsb-page:where(:not(:has(.dsb-page-hero))) {
    padding-top: 24px;
}
/* A phone's bar is shorter and sits closer: 8px here and .dsb-page-main's 64 make the guide's one
   step. Same shape as the rule above so it wins on source order alone, which leaves a page that
   brings its own padding (.dsb-auth, later in this file) winning over both. */
@media (max-width: 767px) {
    .dsb-page:where(:not(:has(.dsb-page-hero))) {
        padding-top: 8px;
    }
}
/* The over-limit banner sits in main above the page, so it gets the same 24px under the desktop menu itself. */
@media (min-width: 768px) {
    [data-plan-limit-banner] { margin-top: 24px; }
}
.dsb-page .rect__heading--search-car,
.rect__heading--search-car {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}
.dsb-page .rect__body {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}
.dsb-page .rect {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* =============================================
   LEGACY ALERT OVERRIDES
   =============================================
   Makes legacy Bootstrap .alert elements match the design system
   when used inside a .dsb-page wrapper.
   ============================================= */
.dsb-page .alert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 10px 0;
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    text-align: center;
}
.dsb-page .alert i { font-size: 1.1em; }
/* Re-tokened (Opgave 9) to the same --dsb-alert-* family as .dsb-alert, so this legacy
   Bootstrap markup doesn't sit in the old solid-pastel palette beside the new alerts. Markup
   and class names are unchanged on purpose — this is slated for deletion, not investment. */
.dsb-page .alert.alert-warning { color: var(--dsb-alert-warning-text); background: var(--dsb-alert-warning-bg); border-color: var(--dsb-alert-warning-border); }
.dsb-page .alert.alert-danger  { color: var(--dsb-alert-danger-text);  background: var(--dsb-alert-danger-bg);  border-color: var(--dsb-alert-danger-border); }
.dsb-page .alert.alert-success { color: var(--dsb-alert-success-text); background: var(--dsb-alert-success-bg); border-color: var(--dsb-alert-success-border); }
.dsb-page .alert.alert-info    { color: var(--dsb-alert-info-text);    background: var(--dsb-alert-info-bg);    border-color: var(--dsb-alert-info-border); }

/* =============================================
   DEVEXTREME DATAGRID OVERRIDES
   =============================================
   Standard styling for DevExtreme DataGrid widgets when wrapped
   with the .dsb-dx-grid class inside a .dsb-page.
   ============================================= */
/* .dsb-table-wrapper itself lives in the TABLES section — it is shared by hand-written
   <table class="dsb-table"> markup and DevExtreme grids alike, and used to be redeclared here
   with the control radius (10px) instead of the surface radius (14px). Source order made this
   copy win, so every table frame in the app rendered at 10px and TABLES' --dsb-radius-lg was
   inert (Opgave 13, kendelse R23). Removed; do not reintroduce it here. */
.dsb-dx-grid,
.dsb-dx-grid .dx-datagrid {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    color: var(--dsb-text-color);
    border-radius: var(--dsb-radius-lg);
    overflow: hidden;
    background: #fff !important;
}
.dsb-dx-grid .dx-datagrid-headers,
.dsb-dx-grid .dx-datagrid-headers .dx-datagrid-table,
.dsb-dx-grid .dx-datagrid-headers td {
    background: var(--theme-secondary) !important;
    color: #fff !important;
    border: none !important;
}
/* A GRID IS THE SAME TABLE AS .dsb-table (TABLES), in every measure (2026-11-27). Until then its
   head was a plain 13px sentence in a fixed 42px row and its rows 13px in a fixed 44px, left over from
   before the V2 port ("dimensions belong to the page-by-page pass", which never came); the lists that
   use grids - Serviceplan, Customers, Partnerdata - were the smallest text in the app. Now the head is
   the table's tracked capitals and the rows the table's 15px, with the table's padding and no fixed
   height: the row is as tall as its content, as a table row is.
   Red Hat Display 700, not Roboto 600: Roboto has no 600 and synthesises a bold (Opgave 13). */
.dsb-dx-grid .dx-datagrid-headers .dx-row > td {
    padding: 12.8px 16px !important;
    font-family: 'Red Hat Display', sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: .13em;
    text-transform: uppercase;
    border-bottom: none !important;
    line-height: 1.65 !important;
    height: auto !important;
    vertical-align: middle !important;
}
.dsb-dx-grid .dx-datagrid .dx-datagrid-text-content {
    padding: 0 !important;
    margin: 0 !important;
}
.dsb-dx-grid .dx-datagrid-rowsview .dx-row > td {
    padding: 12.8px 16px !important;
    border-top: none !important;
    border-bottom: 1px solid var(--dsb-border-light) !important;
    background: #ffffff !important;
    color: var(--dsb-text-color);
    font-size: 15px;
    line-height: 1.65;
    height: auto !important;
    vertical-align: middle !important;
}
/* ZEBRA (V2 2.26.24, mirrors .dsb-table in TABLES — reverses the 2.13.28 removal): a DataGrid is
   the same visual idea as a hand-written table, so it takes the same tone. Where the hand-written
   table counts its own visible rows in CSS, a DataGrid marks them itself: .dx-row-alt, which the
   grid only emits when rowAlternationEnabled is on — so every .dsb-dx-grid consumer sets it (five
   grids, 2026-09-16). !important because the rule above paints every row cell white the same way. */
.dsb-dx-grid .dx-datagrid-rowsview .dx-row.dx-row-alt > td {
    background: var(--dsb-row-alt) !important;
}
.dsb-dx-grid .dx-datagrid-rowsview .dx-data-row:last-child > td {
    border-bottom: none !important;
}
/* Row-link grids — the whole row opens a detail view; pointer + a lift on hover signal it.
   The design guide spells this .dsb-table--rowlink for hand-written tables; this is the DevExtreme
   half of the same pattern, because a dx grid's rows are .dx-data-row, not .dsb-table tbody tr.

   SHADOW ALONE, as in the hand-written table (guide point 8: "Row hover = shadow alone. No tint, no
   scale"). This variant kept `transform: scale(1.006)` until 2026-11-26; a scaled row rasterises on
   its own layer and its text smears while hovered, which is why TABLES dropped it first.

   The shadow follows 2.26.24 with the hand-written table's (TABLES): no offset, and a stronger one
   on a toned row so the lift reads the same on either stripe. Without the second rule the zebra
   would make every other row in these grids look less clickable than its neighbour. */
.dsb-dx-grid--rowlink .dx-datagrid-rowsview .dx-data-row {
    cursor: pointer;
    transition: box-shadow .15s ease;
}
.dsb-dx-grid--rowlink .dx-datagrid-rowsview .dx-data-row:hover {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 12px rgba(38, 63, 107, .14);
}
.dsb-dx-grid--rowlink .dx-datagrid-rowsview .dx-data-row.dx-row-alt:hover {
    box-shadow: 0 0 12px rgba(38, 63, 107, .19);
}
@media (prefers-reduced-motion: reduce) {
    .dsb-dx-grid--rowlink .dx-datagrid-rowsview .dx-data-row { transition: none; }
}
/* PAGER (V2 §8). The guide's pager is a strip under the table: rows-per-page at the left, and at
   the right the page you are on between two square steppers. DevExtreme's light mode renders those
   parts in that order already, so the work here is the dress, not the markup — a flex strip in
   place of two floats, the steppers as controls, the page box as a field.

   .dx-info is the verbose "Page 1 of 2 (12 items)" and stays hidden. In light mode the same class
   carries the single word "of" between the box and the count, which the guide shows, so that one
   is let back in.

   The strip's own numbers are .dsb-pager's (guide .dg2-pager): 11.2px 16px of padding, a 16px gap,
   the full hairline above it, and every text in it at 13.6px. */
.dsb-dx-grid .dx-datagrid-pager {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 11.2px 16px !important;
    border-top: 1px solid var(--dsb-border-color);
    background: #fff;
}
/* The two halves are floated by the vendor sheet, and a float takes no part in a flex line. */
.dsb-dx-grid .dx-datagrid-pager .dx-page-sizes,
.dsb-dx-grid .dx-datagrid-pager .dx-pages { float: none !important; }
.dsb-dx-grid .dx-info { display: none !important; }

/* "Rows per page" is a label DevExtreme does not render at all. It stays English until a page hands
   it a translation through --dsb-pager-rows-label (set in _Layout, where the dictionary is). */
.dsb-dx-grid .dx-page-sizes {
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 8px;
}
.dsb-dx-grid .dx-page-sizes::after {
    content: var(--dsb-pager-rows-label, "Rows per page");
    font-size: 13.6px;
    color: var(--dsb-text-muted);
    white-space: nowrap;
    order: 99;
}
/* A control among controls, one step down from --dsb-ctl-h as the guide's own select is. */
.dsb-dx-grid .dx-page-sizes .dx-selectbox.dx-editor-outlined {
    width: 74px !important;
    min-height: 32px !important;
    border-radius: var(--dsb-radius) !important;
    border-color: var(--dsb-border-color) !important;
    background: #fff !important;
}
.dsb-dx-grid .dx-page-sizes .dx-selectbox .dx-texteditor-input {
    min-height: 30px;
    padding: 0 0 0 10px;
    font-size: 13.6px;
    color: var(--dsb-text-color);
}

.dsb-dx-grid .dx-pages .dx-page-indexes {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}
/* The steppers are buttons and now look like buttons: a 32px square carrying the control radius.
   The arrow inside is DevExtreme's own glyph (DXIcons); only the box around it is ours, so the
   font-family is left alone and the box is sized in border-box, not the vendor's content-box. */
.dsb-dx-grid .dx-pages .dx-navigate-button {
    box-sizing: border-box !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    background: #fff;
    color: var(--dsb-text-color);
    font-size: 14px;
    line-height: 1;
}
.dsb-dx-grid .dx-pages .dx-navigate-button:not(.dx-button-disable):hover {
    background: var(--dsb-bg-page);
}
/* The arrow is Font Awesome's chevron, as the guide's is, and it is laid out by the square rather
   than by DevExtreme: the vendor sheet puts this glyph at top:50% with margin-top:-10.5px, half of
   the 21px line-height it assumes, so any other size lands that far too high. Back to static and
   the flex box centres it. */
.dsb-dx-grid .dx-pages .dx-navigate-button::before {
    content: "\f053";
    font: 900 13.6px/1 "Font Awesome 6 Free";
    position: static;
    width: auto;
    margin: 0;
}
.dsb-dx-grid .dx-pages .dx-next-button::before { content: "\f054"; }

.dsb-dx-grid .dx-light-pages {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 13.6px;
    color: var(--dsb-text-muted);
}
.dsb-dx-grid .dx-light-pages .dx-info-text,
.dsb-dx-grid .dx-light-pages .dx-pages-count {
    display: inline-block !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
}
.dsb-dx-grid .dx-light-pages .dx-page-index {
    display: inline-block !important;
    width: 44px !important;
    min-height: 32px !important;
    border-radius: var(--dsb-radius) !important;
    border-color: var(--dsb-border-color) !important;
    background: #fff !important;
}
.dsb-dx-grid .dx-light-pages .dx-page-index .dx-texteditor-input {
    min-height: 30px;
    padding: 0 2px;
    text-align: center;
    font-size: 13.6px;
    color: var(--dsb-text-color);
}
/* On a phone the label is what tips the strip over a second line: 74px of box and 164px of nav sit
   inside 300px, 95px of "Rows per page" does not, and the nav wrapped to a line of its own with the
   width it needed standing empty beside it. The box keeps its own meaning next to the page count. */
@media (max-width: 560px) {
    .dsb-dx-grid .dx-page-sizes::after { display: none; }
}
/* Sort indicator — use a proper down-arrow triangle */
.dsb-dx-grid .dx-sort-up::before,
.dsb-dx-grid .dx-sort-down::before {
    content: " \25BC" !important;
    font-size: 9px !important;
    margin-left: 4px;
}
.dsb-dx-grid .dx-sort-up::before {
    content: " \25B2" !important;
}
/* Hide the default DevExtreme sort/filter icons (replaced by ::before pseudo-elements) */
.dsb-dx-grid .dx-datagrid-headers .dx-header-filter {
    font-size: 0 !important;
}
.dsb-dx-grid .dx-datagrid-headers .dx-column-indicators .dx-sort {
    font-size: 0 !important;
}
.dsb-dx-grid .dx-sort.dx-sort-none {
    display: none !important;
}
/* A LINK IN A CELL is the information blue at 500, as in a hand-written table (.dsb-table a).
   !important: vendor.css paints every link #0089d0 with one, so the plain rule that stood here
   never applied. Three things that are links in the markup but not table links keep their own
   colours and are named out: a real button (.dsb-btn, the command column's --table and
   --danger-text), the command column's text button (.dsb-grid-link-btn, muted or --primary), and a
   documentation mark (.dsb-docs__item). "+ Add" (.dsb-tagadd) IS a table link and takes this. */
.dsb-dx-grid .dx-datagrid-rowsview .dx-row a:not(.dsb-btn):not(.dsb-grid-link-btn):not(.dsb-docs__item) {
    color: var(--dsb-link-color) !important;
    font-weight: 500;
    text-decoration: none;
}
.dsb-dx-grid .dx-datagrid-rowsview .dx-row a:hover {
    text-decoration: underline;
}
/* Remove the outer border/frame that DevExtreme adds around the widget */
.dsb-dx-grid.dx-widget {
    border: none !important;
}
.dsb-dx-grid .dx-datagrid-borders > .dx-datagrid-headers,
.dsb-dx-grid .dx-datagrid-borders > .dx-datagrid-rowsview,
.dsb-dx-grid .dx-datagrid-borders > .dx-datagrid-pager,
.dsb-dx-grid .dx-datagrid-borders > .dx-datagrid-header-panel {
    border: none !important;
}
.dsb-dx-grid .dx-datagrid-search-panel {
    border: 1px solid var(--dsb-border-color, #d6dae0) !important;
    border-radius: var(--dsb-radius) !important;
    box-shadow: none !important;
}
/* Command column buttons styled as plain text links (not buttons) */
.dsb-grid-link-btn.dx-link {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 8px !important;
    color: var(--dsb-text-muted, #6b6b6b) !important;
    font-size: 13px !important;
    text-decoration: none !important;
}
.dsb-grid-link-btn.dx-link:hover {
    text-decoration: underline !important;
    /* R25's hover rule: a control's own colour goes ONE step further, never to ink. This link is
       an action, so it darkens toward the table-action blue rather than the text colour it used
       to fall back to (font-weight-og-farve-kort.md, Opgave 13 row). */
    color: var(--dsb-table-action-dark) !important;
}
.dsb-grid-link-btn--primary.dx-link {
    /* It's a button (font-weight-og-farve-kort.md, Opgave 13 row): Red Hat Display 700, not a
       bare Roboto 600 — Roboto has no 600 and synthesises to a bold 700. */
    font-family: 'Red Hat Display', sans-serif !important;
    color: var(--dsb-link-color) !important;
    font-weight: 700 !important;
}

/* Design-guide table action buttons inside DevExtreme grids */
.dsb-dx-grid .dx-command-cell .dsb-btn.dx-link {
    text-decoration: none !important;
    border-radius: var(--dsb-radius) !important;
    cursor: pointer !important;
    line-height: 1 !important;
}
/* Vertically center the action button anchor inside DevExtreme command cells.
   The cell is already vertical-align: middle, so the cell was never the problem — the
   line box was. The font strut, plus the trailing &nbsp; DevExtreme emits after the
   button, make the line box taller than the 34px button. Zeroing the cell's
   line-height drops the strut, so the line box is exactly the button and the cell
   centers it at any row height.

   This replaces a full-height ghost ::before that was meant to do the same job. The
   ghost was height:100%, so a row grown taller by wrapped cell content (a two-line
   email made the row 76px) produced a 76px ghost, which pushed the button clean past
   the bottom of a cell that is overflow:hidden. The button still rendered at the right
   size and colour — it was just clipped away entirely, which is a hard thing to see. */
.dsb-dx-grid .dx-command-edit {
    line-height: 0 !important;
}
.dsb-dx-grid .dx-command-edit .dsb-btn.dx-link {
    vertical-align: middle !important;
}
/* The row action sits at the right edge, as it does on every table in the design guide
   (`<td style="text-align:right">`). DevExtreme only honours a column's `alignment` on DATA columns —
   a command column's cell just inherits the table's left alignment — so a wide filled button used to
   *look* right-aligned by filling the 100px cell, while a quiet text link sat at its left. AB#3645 */
.dsb-dx-grid .dx-datagrid-content .dx-datagrid-table .dx-row .dx-command-edit {
    padding-right: 14px !important;
    text-align: right !important;
}
.dsb-dx-grid .dx-command-cell .dsb-btn--table.dx-link {
    background: var(--dsb-table-action) !important;
    color: #fff !important;
    border: 1.5px solid var(--dsb-table-action) !important;
}
.dsb-dx-grid .dx-command-cell .dsb-btn--table.dx-link:hover {
    background: var(--dsb-table-action-dark) !important;
    border-color: var(--dsb-table-action-dark) !important;
}
.dsb-dx-grid .dx-command-cell .dsb-btn--danger-text.dx-link {
    /* Mirrors .dsb-btn--danger-text (BUTTONS): var(--dsb-danger)/var(--dsb-danger-dark) replaced
       the old #934041/#7a3435 pair everywhere else in the port; this copy was missed (Opgave 13). */
    background: transparent !important;
    color: var(--dsb-danger) !important;
    border: 1.5px solid transparent !important;
}
.dsb-dx-grid .dx-command-cell .dsb-btn--danger-text.dx-link:hover {
    color: var(--dsb-danger-dark) !important;
}

/* Status cells (OE-data grid): the OE Data and Campaign columns each hold a single
   status pill with a hover tooltip. overflow:visible lets the tooltip escape the cell. */
.dsb-dx-grid .dsb-status-cell {
    padding-right: 12px !important;
    white-space: nowrap;
    overflow: visible !important;
    text-overflow: clip !important;
}
.dsb-dx-grid .dsb-status-cell .dx-datagrid-text-content,
.dsb-dx-grid .dsb-status-cell > .dx-datagrid-text-content {
    overflow: visible !important;
    text-overflow: clip !important;
    max-width: none !important;
    white-space: nowrap !important;
}
.dsb-dx-grid .dsb-status-cell .dsb-table-tooltip {
    margin-left: 0;
    top: 0;
}

/* =============================================
   POPUP HELPERS (Magnific Popup)
   ============================================= */
.mfp-hide { display: none; }
.white-popup {
    position: relative;
    background: #FFF;
    padding: 20px;
    width: 850px;
    max-width: 850px;
    margin: 20px auto;
}

/* =============================================
   RESPONSIVE: DataGrid + components on mobile
   ============================================= */
@media (max-width: 600px) {
    /* A phone keeps the grid narrower and a step smaller, but not the 12px it was: that was the
       smallest text in the app (2026-11-27). */
    .dsb-dx-grid .dx-datagrid-headers .dx-row > td,
    .dsb-dx-grid .dx-datagrid-rowsview .dx-row > td {
        padding: 10px !important;
    }
    .dsb-dx-grid .dx-datagrid-headers .dx-row > td { font-size: 11.5px !important; }
    .dsb-dx-grid .dx-datagrid-rowsview .dx-row > td { font-size: 14px !important; }
    .dsb-pill {
        padding: 5px 10px 5px 8px;
        font-size: 12px;
    }
    .dsb-alert {
        font-size: 13px;
        padding: 8px 10px;
    }
}

/* ===== Search Grid Layout (.dsb-grid-search) =====
   The vehicle search bar (V2 §4, .dg2-vsearch-bar): plate | VIN | ONE button, all 50px.
   Default columns: plate(4fr) | vin(4fr) | action(at least its label, 2fr)

   The guide dropped the second button in 2.39.1. One page still has the pair — OE data
   (Workshop/Factorydata: "Choose vehicle" + "Search data") — and keeps the old four columns for as
   long as it does: a bar that holds the second button's cell (.dsb-grid-search__cta) is the pair,
   read from the markup so that page is not touched. Whether the pair stays is a product decision.
   ============================================================= */
.dsb-grid-search {
    display: grid !important;
    grid-template-columns: 4fr 4fr minmax(max-content, 2fr);
    column-gap: 10px;
    row-gap: 0;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}
.dsb-grid-search__plate    { grid-column: 1; position: relative; }
.dsb-grid-search__vin      { grid-column: 2; }
.dsb-grid-search__action   { grid-column: 3; }
.dsb-grid-search__cta      { grid-column: 4; display: contents; }

/* The pair (see the head of this block): four columns, on a desktop only — inside a media query so
   the tablet and phone rules below, which are one class light, still take over under 992px. */
@media (min-width: 992px) {
    .dsb-grid-search:has(.dsb-grid-search__cta) { grid-template-columns: 4fr 4fr 2fr 2fr; }
}

/* Tre kolonner: plade · VIN · handling, uden CTA-kolonnen. Klassen har været brugt af
   Fleet/Cars/Create og Usershop/Cars/Create siden de blev portet, men aldrig defineret — begge
   sider rendrede med basisgriddets fire kolonner og en tom 2fr i højre side.
   Since 2026-11-26 this IS the base grid: the class says nothing the base does not, and stays
   only because the one-button pages carry it in their markup. */
.dsb-grid-search--3col { grid-template-columns: 4fr 4fr minmax(max-content, 2fr); }

/* Forms inside the grid use display:contents to flatten into grid */
.dsb-grid-search > form,
.dsb-grid-search > div > form { display: contents !important; }

/* Full-width button sizing for grid cells. Side padding 14px (.dg2-vsearch-bar .btn): the large
   button's own 32px would push a long label past its 2fr column. !important because .dsb-btn--lg
   sets its padding that way. */
.dsb-grid-search .dsb-btn {
    width: 100%;
    padding: 0 14px !important;
    white-space: nowrap;
}

/* CTA wrapper — full-width flex container for action buttons */
.dsb-cta-wrapper {
    width: 100%;
    grid-column: 4;
    display: flex;
    align-items: center;
}
.dsb-cta-wrapper .dsb-btn {
    width: 100%;
}

/* ===== Search Grid Meta Items ===== */
.dsb-grid-search__vehicle-label {
    grid-column: 1 / -1;
    margin: 6px 0 0 0;
    font-size: 13px;
    color: var(--dsb-text-muted);
    line-height: 1.4;
}
/* font-family is set alongside the weight (kendelse R20): the family had been inherit, silently
   picking up body's Roboto after the typography task, and a bare 600 on Roboto synthesises to a
   bold 700. */
.dsb-grid-search__vehicle-label strong { font-family: 'Roboto', sans-serif; font-weight: 500; }

.dsb-grid-search__counter {
    grid-column: 3 / -1;
    margin: 4px 0 0 0;
    font-size: 12px;
    color: var(--dsb-text-light);
    text-align: right;
}
/* Was #8f2b2b — the old danger pair (#934041/#7a3435, see :root) has since become
   var(--dsb-danger)/var(--dsb-danger-dark); this is the same dark-red family. */
.dsb-grid-search__counter.is-empty { color: var(--dsb-danger-dark); font-family: 'Roboto', sans-serif; font-weight: 500; }

/* Response time / status notice */
.dsb-grid-search__notice {
    grid-column: 1 / -1;
    display: block;
    margin: 14px 0 0 0;
    line-height: 1.4;
}
.dsb-grid-search__notice strong {
    display: block;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    color: var(--dsb-text-color);
}
.dsb-grid-search__notice small {
    display: block;
    font-size: 13px;
    color: var(--dsb-text-muted);
    margin-top: 2px;
}

/* Alerts area below grid */
.dsb-grid-search__alerts {
    grid-column: 1 / -1;
    margin-top: 10px;
}

/* ===== Search Grid Responsive ===== */

/* Tablet: 2-column layout */
@media (max-width: 991px) {
    .dsb-grid-search {
        grid-template-columns: 1fr 1fr;
        row-gap: 10px;
    }
    .dsb-grid-search__plate  { grid-column: 1; grid-row: 1; }
    .dsb-grid-search__vin    { grid-column: 2; grid-row: 1; }
    /* The one button takes the whole second row; in the pair it is the first of two. */
    .dsb-grid-search__action { grid-column: 1 / -1; grid-row: 2; }
    .dsb-grid-search:has(.dsb-grid-search__cta) .dsb-grid-search__action { grid-column: 1; }
    .dsb-cta-wrapper         { grid-column: 2; grid-row: 2; }

    .dsb-grid-search__vehicle-label,
    .dsb-grid-search__notice,
    .dsb-grid-search__alerts,
    .dsb-grid-search__counter {
        grid-column: 1 / -1;
    }
}

/* Mobile: single column */
@media (max-width: 600px) {
    .dsb-grid-search__notice { margin-bottom: 10px; }
    .dsb-grid-search__notice strong { font-size: 15px; }
    .dsb-grid-search__notice small  { font-size: 12px; }

    .dsb-grid-search {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }
    .dsb-grid-search__plate,
    .dsb-grid-search__vin,
    .dsb-grid-search__action,
    .dsb-cta-wrapper {
        grid-column: 1;
    }
    .dsb-grid-search__plate  { grid-row: 1; }
    .dsb-grid-search__vin    { grid-row: 2; }
    .dsb-grid-search__action { grid-row: 3; }
    .dsb-cta-wrapper         { grid-row: 4; }

    .dsb-grid-search .dsb-plate-input,
    .dsb-grid-search .dsb-vin-input,
    .dsb-grid-search .dsb-btn {
        height: 46px !important;
    }
    .dsb-grid-search .dsb-plate-input__field,
    .dsb-grid-search .dsb-vin-input {
        font-size: 15px;
    }
    .dsb-grid-search .dsb-btn {
        font-size: 16px;
    }
}

/* ─── Contact Card ─── */
.dsb-contact-card {
    background: #fff;
    border: 1px solid var(--dsb-border-color);
    /* A surface (Global Constraint 6): flader får --dsb-radius-lg (14px), ikke en tilfældig 8px. */
    border-radius: var(--dsb-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.dsb-contact-card__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dsb-contact-card__label {
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--dsb-text-muted);
    letter-spacing: 0.05em;
}

.dsb-contact-card__value {
    font-size: 14px;
    color: var(--dsb-text-color);
}

.dsb-contact-card__value a {
    color: var(--dsb-link-color) !important;
    text-decoration: none;
}

.dsb-contact-card__value a:hover {
    text-decoration: underline;
}

/* =============================================
   INLINE SELECT (custom dropdown)
   =============================================
   A styled stand-in for <select> where each option needs more than a single line
   of text (a name plus a description) — something a native <option> cannot render.
   For plain option lists keep using .dsb-form-select on a real <select>.

   Behaviour lives in dsb.js (window.dsbSelect: toggle, close on outside click / Esc).

   THE GUIDE'S SELECT, WHOLE (V2 §4 "Selects", .dg2-select; ported 2026-11-26). A select is a FIELD:
   a block as wide as its column with a full-width button, and the list is the field's own lower
   half — flush under it, exactly its width, unfolding like a curtain. Until now it was an inline
   button with a detached list, and each page stretched it by hand. A page that wants a narrower
   select sizes the WRAPPER; the two that are as wide as their content say so themselves
   (.dsb-select--title, .dsb-unit).

   Markup — what a page writes:
     <div class="dsb-select">
       <button class="dsb-select__btn" onclick="dsbSelect.toggle(this)" aria-haspopup="listbox">
         <span class="dsb-select__value">Current</span>
         <i class="fa-solid fa-chevron-down dsb-select__chevron"></i>
       </button>
       <ul class="dsb-select__menu" role="listbox">
         <li class="dsb-select__option dsb-is-selected" role="option" onclick="…">
           <span>
             <span class="dsb-select__label">Current</span>
             <span class="dsb-select__desc">What this option means</span>
           </span>
         </li>
       </ul>
     </div>

   Two things differ from the guide's own markup, both so that a dozen partials and four scripts did
   not have to be rewritten:
   - THE CURTAIN IS ADDED BY THE SCRIPT. The fold needs a grid track around the list (see
     .dsb-select__curtain below); dsbSelect wraps the <ul> in it the first time the select opens.
     The guide's .dg2-select__menu is our __curtain + __sheet, its .dg2-select__list our __menu.
     A select opened by a page's own script must call dsbSelect.prepare(wrap) first.
   - THE CHEVRON AND THE TICK ARE DRAWN HERE. The <i> stays what the pages wrote; the picture is
     this file's (see .dsb-select__chevron and the option's ::after).
   ============================================= */
.dsb-select {
    position: relative;
    /* display stated: several consumers are <span>s (a select inside a heading or a label line). */
    display: block;
}
/* The trigger is dressed exactly like a field (2026-08-28, user): a native <select>'s open list
   can't be styled, so this button carries the field material (radius, hairline, focus shadow,
   Roboto, control height) and the list below is our own. */
.dsb-select__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12.8px;
    width: 100%;
    min-width: 0;
    height: var(--dsb-ctl-h);
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    /* 400: what stands in the field is a value, typed or chosen — the same weight as an input's. */
    font-weight: 400;
    line-height: normal;
    text-align: left;
    color: var(--dsb-text-color);
    background: #fff;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    /* Chevronen sidder 16px fra højre kant — samme indryk som teksten har fra venstre. */
    padding: 0 16px;
    cursor: pointer;
    /* Everything eases .22s, box-shadow included (V2: "Everything eases .22s like the search
       pill" — kendelse R16). A computed-style read taken right after focus lands mid-transition;
       that's what StyleProbe.ComputedWhenSettledAsync is for, not a reason to drop the easing.
       The last two are the CLOSE: the bottom corners and the dark bottom line glide back over
       .16s from .03s, landing just before the list's .22s fold ends. Listed after border-color,
       so for the bottom edge they are the ones that count. */
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease,
                border-radius .16s cubic-bezier(.4,0,.2,1) .03s,
                border-bottom-color .16s cubic-bezier(.4,0,.2,1) .03s;
}
/* hover only while NOT open and NOT focused — same guard as .dsb-form-input. */
.dsb-select:not(.dsb-is-open) .dsb-select__btn:not(:focus):hover {
    background: var(--dsb-fld-hover-bg);
    border-color: var(--dsb-fld-hover-line);
}
.dsb-select__btn:disabled {
    cursor: default;
    opacity: .6;
}
.dsb-select__btn:disabled:hover {
    background: #fff;
    border-color: var(--dsb-border-color);
}
.dsb-select__btn:focus { outline: none; }
.dsb-select__btn:focus-visible,
.dsb-select.dsb-is-open .dsb-select__btn {
    background: #fff;
    border-color: var(--dsb-fld-focus-line);
    box-shadow: var(--dsb-fld-focus-shadow);
}
/* OPEN = FIELD AND LIST MERGE INTO ONE BLOCK: the field loses its bottom corners and its shadow, a
   soft hairline parts the value row from the list, and the list carries the block's shadow. All
   of it at once on open (the last three durations are 0s), so the field meets the list's square
   top from the first frame; the glide back is the close's, in the base rule above. */
.dsb-select.dsb-is-open .dsb-select__btn {
    border-radius: var(--dsb-radius) var(--dsb-radius) 0 0;
    box-shadow: none;
    border-bottom-color: var(--dsb-border-light);
    transition-duration: .22s, .22s, 0s, 0s, 0s;
    transition-delay: 0s;
}
/* A long value is cropped with an ellipsis; it never pushes the chevron out or breaks the row. */
.dsb-select__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* THE CHEVRON is the guide's 12px stroked SVG (stroke 1.6, round ends), the same drawing as the
   country cell's and the calendar's arrows — not Font Awesome's heavier glyph. The pages write an
   <i class="fa-solid fa-chevron-down">; rather than change every one of them, the glyph is taken
   out and the element becomes a 12px box painted in its own colour THROUGH the drawing as a mask.
   So currentColor, a variant's hover colour and the turn all work as on any icon.
   `i.` on the ::before: Font Awesome's own rule for the glyph is (0,1,1), and which of the two
   sheets loads last should not decide it. */
.dsb-select__chevron {
    flex: none;
    width: 12px;
    height: 12px;
    color: var(--dsb-text-muted);
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.75 4.5 6 7.75 9.25 4.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.75 4.5 6 7.75 9.25 4.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .22s cubic-bezier(.4,0,.2,1);
}
i.dsb-select__chevron::before { content: none; }
.dsb-select.dsb-is-open .dsb-select__chevron { transform: rotate(180deg); }

/* OPEN / CLOSE = THE CURTAIN (the guide's .dg2-select__menu, the website's menu reveal, the date
   field's calendar). The outer element is a grid whose single row eases 0fr -> 1fr in .2s while what
   is inside keeps its final layout and is simply uncovered — never squashed. Closing folds in .22s
   and the sheet dissolves over .16s meanwhile, so the last squeeze at the bottom is never seen;
   only the exit dissolves, the entrance is crisp from the first frame. One class (.dsb-is-open)
   drives all of it in CSS timing: reopening mid-close reverses cleanly.

   THE RULE OF THE TRACK: its child may carry NO border and NO vertical padding — either is a floor
   the row cannot fold below, and a sliver pops in before the fold starts. So the sheet's edge is an
   inset shadow ring (left, right, bottom — the top line is the field's own soft bottom border) and
   the air around the options is the list's padding, one level further in.

   WHY TWO ELEMENTS AROUND THE LIST, where the guide has one. There the list is itself the track's
   child and also the thing that scrolls, so while it folds it is shorter than its rows and would
   show a scrollbar — which the guide's script prevents by measuring the rows and writing overflow-y
   by hand. Here the __sheet is what folds and the list inside it never changes height: it scrolls
   when its rows pass the cap and at no other moment, with nothing measured. It also means a list a
   page filters while it is open (the integrations search) needs no re-measuring. */
.dsb-select__curtain {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 300;
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .22s cubic-bezier(.4,0,.2,1), visibility 0s linear .22s;
}
.dsb-select.dsb-is-open .dsb-select__curtain {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .2s cubic-bezier(.4,0,.2,1), visibility 0s;
}
.dsb-select__sheet {
    min-height: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 0 0 var(--dsb-radius) var(--dsb-radius);
    box-shadow: inset 1px 0 0 0 var(--dsb-fld-focus-line), inset -1px 0 0 0 var(--dsb-fld-focus-line),
                inset 0 -1px 0 0 var(--dsb-fld-focus-line), var(--dsb-fld-focus-shadow),
                0 22px 44px -22px rgba(29,45,73,.35);
    opacity: 0;
    transition: opacity .16s ease;
}
.dsb-select.dsb-is-open .dsb-select__sheet { opacity: 1; transition: opacity 0s; }
/* A list the script has not wrapped yet is not there at all. Nobody sees this state: every way of
   opening goes through dsbSelect, which wraps it first. */
.dsb-select > .dsb-select__menu { display: none; }
/* THE LIST. Order is fixed (never re-sorted around the choice); a long one caps at about five and
   a half rows and scrolls, and opens with the chosen option in view (dsb.js). No background of its
   own: the sheet's ring is painted under it and must show through.
   line-height is stated because the list can sit inside anything (a table cell, a heading) and the
   rows must be the guide's 45.6px everywhere: 9.6 x 2 + 16px x 1.65.
   NOT positioned, on purpose: the list used to be the absolutely placed element, and a rule written
   for that (top / left / right on .dsb-select__menu) must fall dead now, not start shifting it. */
.dsb-select__menu {
    list-style: none;
    margin: 0;
    padding: 5.6px;
    max-height: 248px;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    text-align: left;
    color: var(--dsb-text-color);
    scrollbar-width: thin;
    scrollbar-color: rgba(29,45,73,.25) transparent;
}
.dsb-select__menu::-webkit-scrollbar { width: 11px; }
.dsb-select__menu::-webkit-scrollbar-track { background: transparent; }
.dsb-select__menu::-webkit-scrollbar-thumb {
    background-color: rgba(29,45,73,.25);
    border-radius: 999px;
    border: 3px solid transparent;
    background-clip: content-box;
}
.dsb-select__menu::-webkit-scrollbar-thumb:hover { background-color: rgba(29,45,73,.4); }
/* AN OPTION: ink in 400, like the value it becomes. The chosen one is the action green in 500 with
   a tick at the RIGHT end of the row — so no row reserves a slot at the left for a tick it does not
   have, and every label starts on the same line as the field's own text. */
.dsb-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9.6px;
    padding: 9.6px 10.4px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .12s ease;
}
.dsb-select__option:hover { background: var(--dsb-bg-subtle); }
.dsb-select__option.dsb-is-selected {
    color: var(--theme-action-dark);
    font-weight: 500;
}
.dsb-select__option.dsb-is-selected::after {
    content: "\2713";
    flex: none;
    font-size: 12.8px;
}
/* The old tick: an icon in a slot at the LEFT of every row. It is still in the partials' markup;
   the ::after above replaced it, so it is switched off here rather than edited out of each file. */
.dsb-select__check { display: none; }
/* The option's text takes the row's type — the row decides size, weight and colour (chosen or
   not, compact or not), so a variant sets them in one place. */
.dsb-select__label { display: block; }
/* A second line under the name, saying what the option means. Only the name goes into the field. */
.dsb-select__desc {
    display: block;
    margin-top: 1.6px;
    font-size: 12.48px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--dsb-text-muted);
    white-space: normal;
}
/* The open state is named too: its rules set their own transition with three classes, and the
   plain selectors would not reach them. */
@media (prefers-reduced-motion: reduce) {
    .dsb-select__btn,
    .dsb-select.dsb-is-open .dsb-select__btn,
    .dsb-select__chevron,
    .dsb-select__curtain,
    .dsb-select.dsb-is-open .dsb-select__curtain,
    .dsb-select__sheet,
    .dsb-select__option { transition: none; }
}

/* =============================================
   MENU (⋯) -- a button that folds out a short list of actions (2026-10-02). <details> based, so it opens
   without script; dsb.js closes it on Esc, an outside click and an item click. --up opens above the button
   (a modal footer), --end aligns its right edge with the button. A destructive item comes last, after a
   divider (the guide: destructive is never the outermost action). Same material as the country dropdown
   and the select list: white, the hairline, surface radius, Roboto items, hover tint = --dsb-bg-subtle.
   ============================================= */
.dsb-menu { position: relative; display: inline-block; }
.dsb-menu > summary { list-style: none; cursor: pointer; }
.dsb-menu > summary::-webkit-details-marker { display: none; }
.dsb-menu__list {
    position: absolute;
    z-index: 300;
    top: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    padding: 4px;
    display: grid;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius-lg);
    box-shadow: 0 22px 44px -22px rgba(29,45,73,.45);
}
.dsb-menu--up .dsb-menu__list { top: auto; bottom: calc(100% + 6px); }
.dsb-menu--end .dsb-menu__list { left: auto; right: 0; }
.dsb-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: var(--dsb-radius);
    background: none;
    color: var(--dsb-text-color);
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: background .1s;
}
.dsb-menu__item:hover,
.dsb-menu__item:focus-visible { background: var(--dsb-bg-subtle); outline: none; }
.dsb-menu__item i { width: 16px; text-align: center; color: var(--dsb-text-muted); }
.dsb-menu__item--danger,
.dsb-menu__item--danger i { color: var(--dsb-danger); }
.dsb-menu__sep { margin: 4px 6px; border: 0; border-top: 1px solid var(--dsb-border-light); }

/* Multi-select variant: the option row carries a checkbox instead of the single-select
   check mark, and the menu grows a footer for the action that applies the choice.
   Clicks inside a .dsb-select never close it (see dsb.js), so ticking several boxes
   needs no JavaScript of its own. */
.dsb-select--multi .dsb-select__option { justify-content: flex-start; }
/* margin: vendor.css gives every <label> 5px under it, which would sit inside the row. */
.dsb-select__multi-label {
    display: flex;
    align-items: center;
    gap: 9.6px;
    width: 100%;
    margin: 0;
    cursor: pointer;
}
/* The option's box (.dg2-select--multi li::before): the §4 checkbox one size down — 18px, 1px
   line, radius 5, green with a white tick when on. The guide draws it on the row; ours is a real
   checkbox with the system drawing taken off (appearance: none) and the same box drawn on it, so
   Tab and Space keep working and the row still posts what is ticked.
   !important on the radius only: vendor.css has `input { border-radius: 0 !important }`. */
.dsb-select__multi-label input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--dsb-border-color);
    border-radius: 5px !important;
    background: transparent;
    color: transparent;
    font-size: 9.92px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.dsb-select__multi-label input[type="checkbox"]::before { content: "\2713"; }
.dsb-select__multi-label input[type="checkbox"]:checked {
    background: var(--theme-action);
    border-color: var(--theme-action);
    color: #fff;
}
/* vendor.css draws the system focus outline on every checkbox, also after a click; the keyboard
   ring is the §4 one instead. */
.dsb-select__multi-label input[type="checkbox"]:focus { outline: none; }
.dsb-select__multi-label input[type="checkbox"]:focus-visible { box-shadow: 0 0 0 3px rgba(59,156,104,.25); }
/* A view the person may not give: there, dimmed, not for ticking. */
.dsb-select__multi-label input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
.dsb-select__multi-label:has(input:disabled) { cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) {
    .dsb-select__multi-label input[type="checkbox"] { transition: none; }
}
/* The foot (All types / Done) is ours — the guide's list has no buttons. It keeps the place it had
   in the old list: the line runs between the list's inner edges, the buttons end 12px from the
   right. It wraps, because the list is now exactly as wide as its field. */
.dsb-select__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    padding: 8px 6.4px 2.4px;
    margin-top: 4px;
    border-top: 1px solid var(--dsb-border-light);
}

/* =============================================
   INLINE SELECT — COMPACT (V2 §2.20 team page, .dg2-select--sm; design-guide.html 2670-2678):
   a 34px field for a single choice INSIDE a table row (Team page: role, and the views/access
   multi-select — guide markup 8856/8874 pairs --sm with --multi on that exact column). Generic
   here, not Team-specific: any table row that needs a select this small gets the same field.

   The 210px width is deliberately fixed and shared, not sized to any one column's content — guide
   comment 3.6 (user): "the list is exactly as wide as the field; all compact fields share ONE
   width, the widest value's" — and that widest value is literally this page's Views column
   ("Workshop, Fleet, Sales" in the guide's own copy). Keep 210px even where today's longest value
   is shorter; a later longer value must not be what breaks the column. */
.dsb-select--sm {
    width: 210px;
}
.dsb-select--sm .dsb-select__btn {
    height: 34px;
    font-size: 14.4px;
    padding: 0 11.2px;
    gap: 9.6px;
}
/* The list's text is .92rem. A name over a description starts at the top of its row (the two lines
   read from the top), and the tick still stands at the row's middle. */
.dsb-select--sm .dsb-select__option {
    align-items: flex-start;
    font-size: 14.72px;
}
.dsb-select--sm .dsb-select__option.dsb-is-selected::after { align-self: center; }
/* Several choices: box and label on one centre line (guide 3.10). After the rule above, which it
   must outrank for a select that is both. */
.dsb-select--sm.dsb-select--multi .dsb-select__option { align-items: center; }

/* Table wrapper variant for rows containing a .dsb-select (or any absolutely
   positioned menu): the default wrapper clips it with overflow:hidden, so the radii
   that clip provided move onto the corner cells instead. */
.dsb-table-wrapper--overflow { overflow: visible; }
/* The wrapper is a surface (--dsb-radius-lg, 14px), not a control — these corners only agreed
   with --dsb-radius (10px) by accident, because the wrapper's base radius was itself wrongly
   pinned to 10px by the now-removed DevExtreme duplicate (Opgave 13, kendelse R23). */
.dsb-table-wrapper--overflow .dsb-table thead th:first-child { border-top-left-radius: calc(var(--dsb-radius-lg) - 1px); }
.dsb-table-wrapper--overflow .dsb-table thead th:last-child { border-top-right-radius: calc(var(--dsb-radius-lg) - 1px); }
.dsb-table-wrapper--overflow .dsb-table tbody tr:last-child td:first-child { border-bottom-left-radius: calc(var(--dsb-radius-lg) - 1px); }
.dsb-table-wrapper--overflow .dsb-table tbody tr:last-child td:last-child { border-bottom-right-radius: calc(var(--dsb-radius-lg) - 1px); }

/* =============================================
   VEHICLE TIMELINE (V2 2.27.1, eighth cut; design-guide.html .dg2-tl, 3649-3702)

   The Service history drawn as the car's life: a mileage curve on the page's paper with a
   blue-to-green wash under it, a coloured dot per record with the type's icon floating above it,
   dotted drop-lines to the years, period tabs in the head, a faint km scale at the left with
   hairline rows, and a lit column plus a glass card on hover.

   Generic on purpose (never .dsb-srch-*): the block is built from whatever history table it is
   pointed at, so the owner's car page and the customer sheet can have it for markup alone. The
   ROW STATES it drives (.is-lit, .is-marked) land on .dsb-table, a shared component, and are
   therefore scoped to their page in pages/search.css rather than set here.

   Every rem in the guide's block is multiplied by 16 (html is 10px in this app). The px values
   inside vehicle-timeline.js are the guide's own and carry over unchanged.
   ============================================= */
.dsb-tl {
    position: relative;
    margin: 16px 0;
    padding: 18.4px 20.8px 16px;
    border-radius: var(--dsb-radius-lg);
    color: var(--dsb-text-color);
    background: #fff;
    border: 1px solid var(--dsb-border-color);

    /* A FIXED series palette, the way the dashboard chart fixes its own: a tenant that maps
       --theme-action onto its brand colour must not repaint a chart whose legend is the only key
       the reader has. Service is the table's information blue (--dsb-table-action); inspection is
       the platform green, written out because the halos below need it at an alpha and color-mix is
       unused in this repo on purpose (see :root's note on --dsb-quiet-hover).
       A third type is one line here, one .dsb-tl__dot--* block, one legend swatch and one KIND
       entry in vehicle-timeline.js — nothing else. */
    --tl-service: var(--dsb-table-action);
    --tl-inspection: #3B9C68;
    --tl-repair: #EF9D5B; /* the guide's --sun; the dashboard's charts are the first to draw repairs */
}
.dsb-tl[hidden] { display: none; }

/* THE LOCKED PANEL (V2 2.27.21's CARD view). The same surface, keeping its own head, with the plot
   replaced by one sentence and one small button — so a company that buys the add-on finds the panel
   where it already was rather than discovering a new one.

   No height of its own: the live panel is 232px of plot, and holding that height for two lines of
   copy would leave a tall empty box under the title. The guide's dashboard cards do keep their
   height, because there the card sits in a grid whose rows would otherwise jump; this one stands
   alone above a table and can be as short as its content. */
.dsb-tl--locked .dsb-tl__pitch {
    margin: 10px 0 14px;
    max-width: 560px;
    color: var(--dsb-text-muted);
}

.dsb-tl__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dsb-tl__title {
    margin: 0;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 16.8px; /* stated, not inherited: vendor.css sizes h4 at 1.5rem = 15px in this app */
    color: var(--dsb-head-color);
}

/* The dashboard's segment: the active period is nav navy on white. */
.dsb-tl__tabs { display: flex; gap: 2.4px; }
.dsb-tl__tabs button {
    border: 0;
    background: transparent;
    padding: 5.6px 11.2px;
    border-radius: 999px;
    font: 500 12.8px 'Roboto', sans-serif;
    color: var(--dsb-text-muted);
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}
.dsb-tl__tabs button:hover { color: var(--dsb-text-color); background: rgba(29,45,73,.05); }
.dsb-tl__tabs button.is-on { color: #fff; background: var(--theme-secondary); }

.dsb-tl__plot { position: relative; height: 232px; }
/* overflow:visible — the hover card deliberately hangs above the plot's top edge, into the head. */
.dsb-tl__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

.dsb-tl__grid { stroke: var(--dsb-border-light); stroke-width: 1; shape-rendering: crispEdges; }
.dsb-tl__base { stroke: var(--dsb-border-color); stroke-width: 1; shape-rendering: crispEdges; }
.dsb-tl__yr,
.dsb-tl__ky { font: 500 11px 'Roboto', sans-serif; fill: var(--dsb-text-light); }
.dsb-tl__line { fill: none; stroke: var(--dsb-head-color); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dsb-tl__glow { fill: none; stroke: var(--dsb-table-action); stroke-width: 10; opacity: .16; filter: blur(6px); stroke-linejoin: round; stroke-linecap: round; }
.dsb-tl__drop { stroke: var(--dsb-head-color); stroke-opacity: .22; stroke-width: 1; stroke-dasharray: 1.5 4; stroke-linecap: round; }

/* The lit column: a navy gradient strip standing under the event being read. */
.dsb-tl__band {
    position: absolute;
    width: 44px;
    margin-left: -22px;
    background: linear-gradient(180deg, rgba(29,45,73,0), rgba(29,45,73,.05) 45%, rgba(29,45,73,.08));
    border-radius: 10px 10px 0 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, left .18s ease;
}
.dsb-tl.is-hover .dsb-tl__band { opacity: 1; }

.dsb-tl__dots { position: absolute; inset: 0; }

/* The small dot, the type's icon floating above it in the dot's own colour. */
.dsb-tl__dot {
    position: absolute;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--tl-c);
    color: var(--tl-c);
    cursor: pointer;
    transition: box-shadow .18s ease;
}
/* The hit area: dot + icon + a little air. */
.dsb-tl__dot::before { content: ""; position: absolute; inset: -28px -9px -9px; }
/* The column under the event, down to the axis — invisible, but it hovers and clicks as the dot. */
.dsb-tl__col { position: absolute; cursor: pointer; }
.dsb-tl__dot i {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    font-size: 12px;
    line-height: 1;
    color: var(--tl-c);
    pointer-events: none;
    transition: transform .18s ease;
}
/* The dot stays put — a scaled dot would drag its icon along. The halo grows, the icon lifts. */
.dsb-tl__dot:hover i,
.dsb-tl__dot:focus-visible i,
.dsb-tl__dot.is-lit i { transform: translateX(-50%) scale(1.15); }
.dsb-tl__dot:hover,
.dsb-tl__dot:focus-visible,
.dsb-tl__dot.is-lit { outline: none; z-index: 2; }

.dsb-tl__dot--service { --tl-c: var(--tl-service); box-shadow: 0 0 0 4px rgba(55,109,164,.30); }
.dsb-tl__dot--service:hover,
.dsb-tl__dot--service:focus-visible,
.dsb-tl__dot--service.is-lit { box-shadow: 0 0 0 6px rgba(55,109,164,.34), 0 0 14px rgba(55,109,164,.60); }

.dsb-tl__dot--inspection { --tl-c: var(--tl-inspection); box-shadow: 0 0 0 4px rgba(59,156,104,.30); }
.dsb-tl__dot--inspection:hover,
.dsb-tl__dot--inspection:focus-visible,
.dsb-tl__dot--inspection.is-lit { box-shadow: 0 0 0 6px rgba(59,156,104,.34), 0 0 14px rgba(59,156,104,.60); }

/* V2 2.27.3: the mileage drop keeps its type's fill, wears a red ring and a red triangle. */
.dsb-tl__dot--flag { border-color: var(--dsb-drop); box-shadow: 0 0 0 5px var(--dsb-drop-bg); }
.dsb-tl__dot--flag i { color: var(--dsb-drop); font-size: 13px; }
.dsb-tl__dot--flag:hover,
.dsb-tl__dot--flag:focus-visible,
.dsb-tl__dot--flag.is-lit { box-shadow: 0 0 0 7px var(--dsb-drop-bg), 0 0 14px rgba(217,44,24,.6); }
/* A dot squeezed into its band shows no icon, so its hit area loses the room above. */
.dsb-tl__dot.is-tight::before { inset: -9px; }
/* The line's colour stops: navy, and red through a fall. */
.dsb-tl__s0 { stop-color: var(--dsb-head-color); }
.dsb-tl__s1 { stop-color: var(--dsb-drop); }

/* First registration is the curve's origin, not a record — a navy mark with nothing to open. */
.dsb-tl__dot--reg { --tl-c: var(--dsb-head-color); cursor: default; box-shadow: 0 0 0 3px #fff; }
.dsb-tl__dot--reg:hover,
.dsb-tl__dot--reg.is-lit { box-shadow: 0 0 0 5px rgba(29,45,73,.20); }

/* The hover card: V2's tooltip glass, hung from the dot. The @supports fallback is the solid navy
   the rest of this file's tooltips already use — .8 glass over a blurred page renders as
   --theme-secondary, so the two are the same colour by construction. */
.dsb-tl__tip {
    position: absolute;
    transform: translate(-50%, 4px);
    background: rgba(23,58,133,.8);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: 12.8px;
    line-height: 1.45;
    padding: 8.8px 12.8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 0 0 1px rgba(255,255,255,.28), 0 12px 30px -12px rgba(15,23,38,.5);
    transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
    pointer-events: none;
    z-index: 5;
}
.dsb-tl__tip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: var(--ax, 50%);
    width: 10px;
    height: 10px;
    background: rgba(23,58,133,.8);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    transform: translate(-50%,-50%) rotate(45deg);
    box-shadow: 1px 1px 0 0 rgba(255,255,255,.28);
    clip-path: polygon(100% 0, 120% 120%, 0 100%);
}
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
    .dsb-tl__tip,
    .dsb-tl__tip::after { background: var(--theme-secondary); }
}
.dsb-tl__tip.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.dsb-tl__tip b { font-weight: 600; }
/* The card never outgrows the plot (V2 2.27.2): the facts wrap, the note stays one ellipsised line. */
.dsb-tl__tip { white-space: normal; width: max-content; max-width: min(480px, 100%); }
.dsb-tl__tip-note { display: block; margin-top: 2.4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255,255,255,.74); }
/* The guide's lifted red for the navy glass; it wraps, because the drop's distance must never be cut. */
.dsb-tl__tip-note--warn { color: #FF9080; white-space: normal; }
.dsb-tl__tip-note--warn i { margin-right: 5.6px; }

.dsb-tl__foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 8.8px;
    font-size: 12px;
    color: var(--dsb-text-muted);
}
.dsb-tl__legend { display: flex; gap: 17.6px; }
.dsb-tl__legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6.4px;
    vertical-align: middle;
}
.dsb-tl__c--service { background: var(--tl-service); }
.dsb-tl__c--inspection { background: var(--tl-inspection); }

@media (max-width: 767px) {
    /* The head stacks before the tabs would wrap onto the title. */
    .dsb-tl { padding: 16px 12.8px 12.8px; }
    .dsb-tl__head { flex-direction: column; align-items: flex-start; gap: 9.6px; }
    .dsb-tl__foot { flex-direction: column; align-items: flex-start; gap: 6.4px; }
    .dsb-tl__legend { gap: 12.8px; }
}

@media (prefers-reduced-motion: reduce) {
    .dsb-tl__dot,
    .dsb-tl__dot i,
    .dsb-tl__tip,
    .dsb-tl__band,
    .dsb-tl__tabs button { transition: none; }
}

/* =============================================
   THE BARE TIMELINE — a chart card drawn by the timeline's hand (V2 2.27.16–2.27.29, .dg2-tl--bare)

   The same head, hairline scale, teeth, lit column and glass card as the vehicle timeline, without
   the timeline's own surface: the card around it supplies that. What the variant adds is the head's
   anatomy the dashboard's charts share — title, the period control at the right, and the legend on a
   row of its own whose series are SWITCHES (aria-pressed). The last series on cannot go off; the
   script disables it.
   ============================================= */
.dsb-tl--bare { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.dsb-tl--bare .dsb-tl__head { justify-content: flex-start; flex-wrap: wrap; margin-bottom: 1.6px; }
.dsb-tl--bare .dsb-tl__tabs { margin-left: auto; }
.dsb-tl--bare .dsb-tl__plot { height: auto; min-height: 196px; }
.dsb-tl__plotwrap { position: relative; }

.dsb-tl--bare .dsb-tl__legend {
    order: 3;
    flex-basis: 100%;
    display: flex;
    align-items: center;
    gap: 1.6px;
    margin: 1.6px 0 0;
}
.dsb-tl--bare .dsb-tl__legend button,
.dsb-tl--bare .dsb-tl__legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6.4px;
    padding: 5.6px 11.2px 5.6px 0;
    border: 0;
    background: transparent;
    border-radius: 999px;
    font: 400 12px 'Roboto', sans-serif;
    color: var(--dsb-text-muted);
}
.dsb-tl--bare .dsb-tl__legend button { cursor: pointer; transition: color .18s ease; }
.dsb-tl--bare .dsb-tl__legend button:hover { color: var(--dsb-text-color); }
.dsb-tl--bare .dsb-tl__legend button:focus-visible { outline: 2px solid var(--theme-secondary); outline-offset: 1px; }
.dsb-tl--bare .dsb-tl__legend button:disabled { cursor: default; }
.dsb-tl--bare .dsb-tl__legend button:disabled:hover { color: var(--dsb-text-muted); }
.dsb-tl--bare .dsb-tl__legend i {
    width: 8px;
    height: 8px;
    margin: 0;
    border-radius: 50%;
    transition: background-color .18s ease, box-shadow .18s ease;
}
.dsb-tl__legend [data-kind="service"] i { background: var(--tl-service); }
.dsb-tl__legend [data-kind="inspection"] i { background: var(--tl-inspection); }
.dsb-tl__legend [data-kind="repair"] i { background: var(--tl-repair); }
/* A series switched off keeps its place in the legend as a hollow ring. */
.dsb-tl--bare .dsb-tl__legend button[aria-pressed="false"] { color: var(--dsb-text-light); }
.dsb-tl--bare .dsb-tl__legend button[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dsb-text-light); }

/* A padlock marker in the head stands right after the title (the guide's .dg2-lock order). */
.dsb-tl__head > .dsb-tl__title { order: -2; }
.dsb-tl__head > .dsb-feature-gate__lock { order: -1; margin-left: 8.8px; }

.dsb-tl__tick { stroke: var(--dsb-text-light); stroke-opacity: .55; stroke-width: 1; shape-rendering: crispEdges; }
.dsb-tl__line,
.dsb-tl__dwash { transition: opacity .25s ease; }
/* The scale and the teeth dim for a moment while a period change travels, then come back. */
.dsb-tl__frame { transition: opacity .28s ease; }
.dsb-tl__frame.is-in { opacity: .35; transition: none; }

/* The hover's dotted hairline and the plain dots riding the lines at the month being read. */
.dsb-tl__guide {
    position: absolute;
    width: 1px;
    background-image: linear-gradient(rgba(29,45,73,.22) 1.5px, rgba(29,45,73,0) 1.5px);
    background-size: 1px 5.5px;
}
.dsb-tl__dot--plain { cursor: default; pointer-events: none; }
.dsb-tl__dot--plain::before { display: none; }
.dsb-tl__dot--repair { --tl-c: var(--tl-repair); box-shadow: 0 0 0 4px rgba(239,157,91,.30); }

/* The card glides between months instead of jumping; .no-slide lets a card that was away appear in place. */
.dsb-tl--bare .dsb-tl__tip { transition: opacity .18s ease, transform .18s ease, left .18s ease, bottom .18s ease, visibility 0s .18s; }
.dsb-tl--bare .dsb-tl__tip.no-slide { transition: opacity .18s ease, transform .18s ease, visibility 0s .18s; }
.dsb-tl--bare .dsb-tl__tip.is-on { transition-delay: 0s; }

/* The strip under a chart that is showing something other than the company's own data right now —
   sample data, or a demo — and how to lay it back. */
.dsb-tl__example {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 11.2px;
    padding: 4px 4px 4px 12.8px;
    min-height: 34px;
    border-radius: var(--dsb-radius);
    background: var(--dsb-bg-page);
    border: 1px dashed var(--dsb-border-color);
    font-size: 12.8px;
    color: var(--dsb-text-muted);
}
.dsb-tl__example > span { display: inline-flex; align-items: center; gap: 7.2px; }
.dsb-tl__example[hidden] { display: none; }

/* Phone width: the base timeline stacks its head into a column, which would let a six-key legend run
   off the card. The bare head stays a wrapping row, and the legend wraps inside it. */
@media (max-width: 767px) {
    .dsb-tl--bare .dsb-tl__head { flex-direction: row; align-items: center; }
    .dsb-tl--bare .dsb-tl__legend { flex-wrap: wrap; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .dsb-tl--bare .dsb-tl__tip,
    .dsb-tl--bare .dsb-tl__legend button,
    .dsb-tl__frame,
    .dsb-tl__line,
    .dsb-tl__dwash { transition: none; }
}

/* =============================================
   SETTINGS ANATOMY (V2 2.22.0 / 2.25.0 / 2.26.20-22)
   =============================================
   The parts a settings page is assembled from. Every one of them is written for "a page with
   sections of settings", not for /settings — a second such page would use the same rules. What is
   specific to Settings (its own widths, the plan grid, the integration cards) is in
   wwwroot/css/pages/settings.css.

   Guide sources: .dg2-settings / .dg2-sidenav (design-guide.html 2987-2999), .dg2-card -> .dsb-panel
   (3201-3204), .dg2-savebar (2945-2952), .dg2-team-toolbar + .dg2-sec-h/.dg2-sec-sub (2915-2917),
   .dg2-setgroup / .dg2-setrow (3016-3046), .dg2-form-grid (1820-1821). Every rem is x16 into px —
   html is 10px in this app (see DsbCssConventionTests).

   NOT here, on purpose:
   - the tooltip. The guide's .dg2-tip was already ported as .dsb-table-tooltip; it is aliased to
     the generic name .dsb-tip below rather than written a second time.
   - a panel switcher (.dg2-setpanel). The guide demo folds five panels into one document because it
     has no server; we have one page per section, so there is nothing to show and hide. */

/* The page frame: a fixed side menu, the section beside it. */
.dsb-settings {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

/* The side menu. Sticky BELOW the top bar (2.25.9): at top:16px it slid under the bar and the
   first item disappeared first. The offset is the bar's height plus 16px, but --dsb-nav-h is
   declared on .dsb-navbar/.dsb-nav-strip and does not reach page content, so the height is
   restated here at the same breakpoints rather than borrowed from a variable that resolves to
   nothing at all. */
.dsb-sidenav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: sticky;
    top: 114px;
}
.dsb-sidenav a {
    display: flex;
    align-items: center;
    gap: 11.2px;
    padding: 9.6px 13.6px;
    border-radius: var(--dsb-radius);
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14.72px;
    /* !important on every colour here, and nowhere else in this block: vendor.css declares
       a { color: #0089d0 !important } globally, which no amount of specificity beats. Measured, not
       assumed — the menu rendered entirely in that blue, the "you are here" row included, white
       text on navy turned into blue text on navy. The same reason the button rules above carry it. */
    color: var(--dsb-text-muted) !important;
    text-decoration: none;
    transition: background-color .16s ease, color .16s ease;
}
.dsb-sidenav a i {
    flex: none;
    width: 17.6px;
    text-align: center;
    font-size: 13.6px;
    opacity: .85;
}
/* The hover rule: one step darker, never ink (see --dsb-quiet-hover in :root). */
.dsb-sidenav a:hover {
    background: var(--dsb-bg-subtle);
    color: var(--dsb-quiet-hover) !important;
    text-decoration: none;
}
/* "You are here" = V1's filled navy item. --theme-secondary is what this file already resolves the
   guide's --nav-navy to (see .dsb-table-tooltip__content), so a white-label theme moves both. */
.dsb-sidenav a.is-on { background: var(--theme-secondary); color: #fff !important; }
.dsb-sidenav a.is-on i { opacity: 1; }
.dsb-sidenav a:focus-visible { outline: 2px solid var(--theme-secondary); outline-offset: -2px; }
.dsb-sidenav a.is-on:focus-visible { outline-color: #fff; outline-offset: -4px; }

/* A caption over a run of rows. The guide has no such thing — its Settings menu is one list and the
   personal sections live on a page of its own — so this is the join between the two (see
   SettingsGroup). Quiet by design: it labels, it is not a row, and it is never clickable.
   Aligned on the rows' own 13.6px inset so the words start where the labels do. */
.dsb-sidenav__group {
    padding: 0 13.6px;
    margin: 16px 0 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 11.2px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dsb-text-light);
}
.dsb-sidenav__group:first-child { margin-top: 0; }

@media (max-width: 980px) { .dsb-sidenav { top: 100px; } }
@media (max-width: 860px) {
    /* Below the fold point the menu stops being a column beside the section and becomes a row
       above it — a 220px rail on a phone leaves the section nothing. */
    /* One row that scrolls sideways (settings.js brings the current item into view). Wrapped, the
       menu stood three to five rows tall above every section on a phone. */
    .dsb-settings { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .dsb-sidenav {
        position: static;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 4px;
        overflow-x: auto;
        scrollbar-width: none;
        scroll-padding-inline: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--dsb-border-light);
    }
    .dsb-sidenav::-webkit-scrollbar { display: none; }
    .dsb-sidenav a { flex: none; white-space: nowrap; min-height: 44px; box-sizing: border-box; }
    /* Inline between items a caption reads as a disabled item; the row carries no captions. */
    .dsb-sidenav__group { display: none; }
}
@media (max-width: 560px) { .dsb-sidenav { top: 88px; } }

/* A plain paper surface with a hairline — the guide's .dg2-card. NOT .dsb-card, which is a
   different component in this file (a coloured header plus a body) and is live on
   Invitations/Accept, NoViews and Onboarding/ChoosePlan. */
.dsb-panel {
    background: #fff;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius-lg);
    padding: 18.4px 20.8px;
}
.dsb-panel__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dsb-panel__title {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--dsb-head-color);
}
.dsb-panel__sub {
    font-size: 13.6px;
    color: var(--dsb-text-muted);
    margin-top: 2.4px;
}

/* A section heading and its sub-line, with the toolbar carrying the section's one action. 2.22.0
   gave these the general names: they are "a section on a page", not Team's own. */
.dsb-sec-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14.4px;
}
.dsb-sec-h {
    margin: 0 0 2.4px;
    font-family: 'Red Hat Display', sans-serif;
    /* 800, not the 700 the guide DECLARES: measured on the guide's own markup at 1280px, a
       .dg2-sec-h <h3> computes to 800 — its h1-h6 base rule wins over the declaration, exactly as
       ours would. The rendered value is the spec; the declaration is not (memory:
       design-guide-visual-diff). Restated rather than left to inherit so a future change to the
       base rule cannot move it silently. */
    font-weight: 800;
    font-size: 16.8px;
    color: var(--dsb-head-color);
}
.dsb-sec-sub {
    margin: 0;
    font-size: 14.08px;
    color: var(--dsb-text-muted);
    max-width: 64ch;
    line-height: 1.5;
}
/* The right slot of a section head. A column, because a <feature-gate> around the action uses
   display:contents — its warning notice becomes a sibling flex item and must stack under the
   button rather than beside it. */
.dsb-sec-head__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    max-width: 380px;
}
@media (max-width: 640px) {
    .dsb-sec-head { flex-direction: column; align-items: stretch; }
    .dsb-sec-head__action { align-items: stretch; max-width: none; }
}

/* The save row (2.22.0: general — every settings section that is not live uses it; 2.26.10: after
   a save the message says so for about three seconds, then fades back). */
.dsb-savebar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}
.dsb-savebar__msg {
    margin-right: auto;
    min-width: 0;
    font-size: 14.4px;
    color: var(--dsb-text-muted);
    transition: opacity .18s ease, color .18s ease;
}
.dsb-savebar > .dsb-btn { flex-shrink: 0; }
.dsb-savebar__msg.is-out { opacity: 0; }
.dsb-savebar__msg.is-saved { color: var(--dsb-alert-success-text); font-weight: 500; }
.dsb-savebar__msg.is-saved i { margin-right: 4.8px; }
/* Phone: the message gets its own line and the buttons share the one under it. */
@media (max-width: 560px) {
    .dsb-savebar { flex-wrap: wrap; gap: 8px 12px; }
    .dsb-savebar__msg { flex: 1 0 100%; }
    /* Two equal halves, as before. A label longer than its half wraps inside the button rather than being cut
       (AB#5824: German "Änderungen speichern" and French "Enregistrer les modifications" do not fit half a phone). */
    .dsb-savebar > .dsb-btn { flex: 1 1 0; min-height: 44px; height: auto; padding-block: 6px; white-space: normal; }
}

/* A group of setting rows, and the rows themselves (2.26.20 hierarchy, 2.26.22 the two-column
   rule). A row is TWO FIXED COLUMNS — the text on a 60ch lane, the control right after it — not
   text left and control shoved to the surface's far edge: on a 1084px panel that put the switch
   about 500px from the words it belongs to. Every control in a panel therefore sits on one
   vertical line, and a narrower panel simply shrinks the text lane. */
/* A group of setting rows. It carries NO padding of its own: the guide declares .15rem 1.3rem on
   .dg2-setgroup, but .dg2-card is declared after it and wins on the .dg2-card.dg2-setgroup the
   guide actually renders — measured at 18.4px 20.8px, the surface's own padding. Ours sits on
   .dsb-panel, which is declared BEFORE this, so a padding here would win and tighten the group to
   2.4px — the same value, the opposite outcome. Left off rather than restated, so the surface
   decides its own inset. */
.dsb-setgroup__h {
    display: flex;
    align-items: center;
    gap: 9.6px;
    margin: 25.6px 0 3.2px;
}
.dsb-setgroup__h:first-child { margin-top: 0; }
/* A group title sits ONE step under the section title, so the eye finds page > section > group. */
.dsb-setgroup__h .dsb-sec-h { margin: 0; font-size: 14.72px; }
.dsb-setgroup__h .dsb-pill { font-size: 11.2px; padding: 4.48px 9.6px; }
.dsb-setgroup__sub {
    margin: 0 0 11.2px;
    font-size: 13.6px;
    color: var(--dsb-text-muted);
    max-width: 64ch;
    line-height: 1.5;
}
.dsb-setgroup__h + .dsb-panel { margin-top: 9.6px; }

.dsb-setrow {
    display: grid;
    grid-template-columns: minmax(0, 60ch) auto;
    justify-content: start;
    align-items: center;
    column-gap: 35.2px;
    /* 15.2px (.95rem), measured on the guide's Preferences panel. This said 13.6px until 2026-09-17:
       the first measuring pass took a row inside an Integrations card's sub-panel, which the guide
       tightens on purpose (.dg2-intg-card__sub .dg2-setrow, .85rem). That nested variant belongs
       with Integrations, not here — every ordinary setting row is 15.2px. */
    padding: 15.2px 0;
}
.dsb-setrow + .dsb-setrow { border-top: 1px solid var(--dsb-border-light); }
.dsb-setrow__t { font-weight: 600; font-size: 15.2px; color: var(--dsb-text-color); }
.dsb-setrow__d {
    margin: 3.2px 0 0;
    font-size: 13.6px;
    line-height: 1.45;
    color: var(--dsb-text-muted);
}
/* A count stated inside a row's text — scannable, and tabular so a column of them lines up. */
.dsb-setrow__n { font-weight: 500; color: var(--dsb-text-color); font-variant-numeric: tabular-nums; }
.dsb-setrow__ctl { flex: none; display: flex; align-items: center; gap: 13.6px; }
/* The acknowledgement on a live row. In the markup from the start at opacity 0: with the control
   column left-aligned, an empty span filling on the first flip would shove the switch right. */
.dsb-setrow__ack {
    font-size: 13.12px;
    font-weight: 500;
    color: var(--dsb-alert-success-text);
    white-space: nowrap;
    opacity: 0;
    transition: opacity .18s ease;
}
.dsb-setrow__ack.is-on { opacity: 1; }
.dsb-setrow__ack i { margin-right: 4.8px; }
/* Phone: the text takes the row and the control hugs the right edge. */
@media (max-width: 560px) {
    .dsb-setrow { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
    .dsb-sec-head__action .dsb-btn--sm,
    .dsb-intg-card .dsb-btn--sm { height: 44px !important; }
    /* A row whose control is a button with a sentence beside it: the button goes under the text, so the text keeps
       the width (the guide's narrow rule, .dg2-bill-end), at a thumb's 44px. */
    .dsb-setrow--stack { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
    .dsb-setrow--stack .dsb-btn--sm { height: 44px !important; }
}

/* Two columns of fields. */
.dsb-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17.6px;
    max-width: 704px;
}
.dsb-form-grid__wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .dsb-form-grid { grid-template-columns: 1fr; } }

/* ONE FIELD — a label over its control (guide .field, design-guide.html 1822-1848 + 1991).
   Generic on purpose: the Settings page is the first consumer, but nothing here knows about it.

   The label is NAVY, not ink, and 500 rather than 600: ink is reserved for what the user types, and
   Roboto ships 300/400/500/700 only, so 600 synthesises up to bold. Both rules are the guide's.

   align-content:start keeps a short field's label against its input when a tall neighbour stretches
   the grid row. The height comes from --dsb-ctl-h — the same 44px as a button, so a field and a
   button placed side by side line up — which is why the vertical padding is zero and the text
   centres in the box instead. */
.dsb-field {
    display: grid;
    gap: 6.4px;
    align-content: start;
}
/* margin: vendor.css gives every <label> 5px under it, which stood on top of the 6.4px gap — the
   label sat 11.4px over its field, where the guide has the gap alone. */
.dsb-field > label {
    margin: 0;
    font-size: 13.6px;
    font-weight: 500;
    color: var(--dsb-head-color);
}
.dsb-field input,
.dsb-field textarea,
.dsb-field select {
    width: 100%;
    min-width: 0;
    font-family: inherit;
    font-size: 16px;
    color: var(--dsb-text-color);
    background: #fff;
    border: 1px solid var(--dsb-border-color);
    /* !important because vendor.css declares `input { border-radius: 0 !important }` globally, which
       squares off every field on the page without a word. Only the radius needs it — the border,
       fill, height and padding above all come through. */
    border-radius: var(--dsb-radius) !important;
    padding: 0 16px;
    height: var(--dsb-ctl-h);
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.dsb-field textarea {
    resize: vertical;
    min-height: 110px;
    height: auto;
    padding: 12.8px 16px;
    /* the browser's own, as the guide's — see .dsb-form-textarea */
    line-height: normal;
}
.dsb-field input::placeholder,
.dsb-field textarea::placeholder { color: var(--dsb-placeholder-color); }
/* Hover only while NOT focused: an active field stays white under the pointer.
   [readonly], not :read-only — the pseudo-class also matches a file input, a checkbox and a button,
   so :read-only would tint and freeze controls that are perfectly editable. */
.dsb-field input:not(:disabled):not([readonly]):not(:focus):hover,
.dsb-field textarea:not(:disabled):not([readonly]):not(:focus):hover,
.dsb-field select:not(:disabled):not(:focus):hover {
    background: var(--dsb-fld-hover-bg);
    border-color: var(--dsb-fld-hover-line);
}
.dsb-field input:focus,
.dsb-field textarea:focus,
.dsb-field select:focus {
    outline: none;
    background: #fff;
    border-color: var(--dsb-fld-focus-line);
    box-shadow: var(--dsb-fld-focus-shadow);
}
.dsb-field input:disabled,
.dsb-field select:disabled { opacity: .55; cursor: not-allowed; }
/* Read-only is NOT disabled: the value is real and worth reading, it is simply maintained
   elsewhere. It keeps full contrast and loses only the affordance — no hover, no caret. */
.dsb-field input[readonly] {
    background: var(--dsb-bg-subtle);
    cursor: default;
}
/* A line under a field explaining it — where a value comes from, what a link is for. */
.dsb-field__hint {
    margin: 0;
    font-size: 12.8px;
    line-height: 1.45;
    color: var(--dsb-text-light);
}

/* ===== TAG INPUT (.dsb-taginput, dsbTagInput in dsb-fields.js) =====
   A field that holds a set of words: the chosen ones as neutral pills with an x, a text input after them that
   filters the known words in a list under the field, and Enter or a comma that makes a new word of what is
   typed. The box is a .dsb-field input's (hairline, radius, 44px, hover tint, focus line and shadow), grown
   to wrap its pills. The list sits IN the flow under the box, not over the page: a modal clips what hangs
   out of it, and the list is short. */
.dsb-taginput { position: relative; }
.dsb-taginput__box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: var(--dsb-ctl-h);
    padding: 6px 10px;
    background: #fff;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    cursor: text;
    transition: border-color .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.dsb-taginput__box:not(:focus-within):hover {
    background: var(--dsb-fld-hover-bg);
    border-color: var(--dsb-fld-hover-line);
}
.dsb-taginput__box:focus-within {
    background: #fff;
    border-color: var(--dsb-fld-focus-line);
    box-shadow: var(--dsb-fld-focus-shadow);
}
.dsb-taginput__box .dsb-pill { gap: 4px; padding-right: 6px; font-size: 12.8px; }
.dsb-taginput__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
}
.dsb-taginput__x:hover { opacity: 1; background: rgba(29,45,73,.08); }
.dsb-taginput__x:focus-visible { outline: 2px solid var(--dsb-fld-focus-line); outline-offset: 1px; opacity: 1; }
/* !important: vendor.css styles every input (border, radius, height); this one is the box's inside. */
.dsb-taginput__field {
    flex: 1 1 120px;
    min-width: 80px;
    height: 30px !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: var(--dsb-text-color);
}
.dsb-taginput__field::placeholder { color: var(--dsb-placeholder-color); }
.dsb-taginput__menu {
    list-style: none;
    margin: 6px 0 0;
    padding: 4px 0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--dsb-fld-focus-line);
    border-radius: var(--dsb-radius);
    box-shadow: var(--dsb-fld-focus-shadow);
    scrollbar-width: thin;
    scrollbar-color: var(--dsb-border-color) transparent;
}
.dsb-taginput__menu[hidden] { display: none; }
.dsb-taginput__option {
    padding: 9px 14px;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    color: var(--dsb-text-color);
    cursor: pointer;
}
.dsb-taginput__option:hover,
.dsb-taginput__option.is-active { background: var(--dsb-bg-subtle); }
/* The typed word that is not a tag yet: "+ word", in the action colour. */
.dsb-taginput__option--new { color: var(--theme-action-dark); font-weight: 500; }

/* ===== A ROW IN A LIST OF THINGS YOU HAVE (V2 2.25.0-2.26.14, guide .dg2-intg*) =====
   Icon tile · what it is · (its price) · its status · its one action. Fixed columns on purpose, so
   nothing shifts when one row's pill is wider than another's. Used by Subscription & invoices for
   the plan, the add-ons and the shop, and by Integrations for the systems a company is connected to.

   No padding of its own — see .dsb-setgroup above for why the surface owns its inset. */
.dsb-intg__row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 104px 120px;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
}
/* A price column before the status. */
.dsb-intg--priced .dsb-intg__row {
    grid-template-columns: 40px minmax(0, 1fr) 120px 104px 120px;
}
.dsb-intg__row .dsb-pill { justify-self: center; }
.dsb-intg__row .dsb-btn { justify-self: end; }
.dsb-intg__row + .dsb-intg__row { border-top: 1px solid var(--dsb-border-light); }
/* Phone: the fixed columns leave the name no room, so price, status and action line up under it. */
@media (max-width: 560px) {
    .dsb-intg__row,
    .dsb-intg--priced .dsb-intg__row { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 14px; align-items: start; }
    .dsb-intg__row > :nth-child(n+3) { grid-column: 2; justify-self: start; }
    .dsb-intg__row .dsb-intg__price { min-width: 0; text-align: left; }
}

.dsb-intg__icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(29, 45, 73, .07);
    color: var(--dsb-head-color);
    font-size: 16px;
}
.dsb-intg__body { flex: 1; min-width: 0; }
.dsb-intg__body b { display: block; font-size: 15.2px; color: var(--dsb-text-color); }
.dsb-intg__body p {
    margin: 2.4px 0 0;
    font-size: 13.6px;
    line-height: 1.45;
    color: var(--dsb-text-muted);
    max-width: 60ch;
}
/* The amount, and under it how it came about — "per month", or "14 uploads x 75 kr." on a row
   billed by usage. The column explains its own figure; nothing in a row outranks its name. */
.dsb-intg__price { flex: none; min-width: 120px; text-align: right; line-height: 1.25; }
/* nowrap on the amount as well as its sub-label: a long currency label ("1.049,00 DKK") would
   otherwise break the figure across two lines and the column would stop reading as a column. */
.dsb-intg__price b { display: block; font-size: 15.2px; color: var(--dsb-text-color); white-space: nowrap; }
.dsb-intg__price span { font-size: 12.48px; color: var(--dsb-text-muted); white-space: nowrap; }

/* ===== FIND YOUR SYSTEM (V2 2.26.13, guide .dg2-intg-find) =====
   The catalogue is NOT a list on the page: it is the select's own list folded out under a search
   field. Focus or type and it opens, each partner as icon · name · what it is.

   It IS a .dsb-select — the same wrapper class, so the menu opens on .dsb-is-open and dsb.js closes
   it on a click outside and on Escape, with nothing here restating either. Only what a select cannot
   know is set below: it is a block rather than inline-block, the list is as wide as the field, and
   nothing in it is pressable.

   NOTHING IN THE LIST IS PRESSABLE, deliberately, which is where we part from the guide. There the
   list is a shop — pick a partner and its empty card lands under Active integrations. Ours cannot
   be: what a company is connected to follows its plan and its entitlements, never a click here. So
   the list answers one question instead — do you connect to my system? — and every row says where
   that system stands. Hence no hover tint and no pointer: an option that lit up under the mouse
   would be promising a click that does nothing. */
.dsb-intg-find { display: block; }
.dsb-intg-find .dsb-search-box { width: 100%; }
/* The field and the list below it read as one surface while it is open — the field squares off at
   the bottom and the list carries the shadow (the guide's "same merge as the select"). */
.dsb-intg-find.dsb-is-open .dsb-search-box {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--dsb-fld-focus-line);
    box-shadow: none;
}
.dsb-intg-find .dsb-select__menu {
    top: 100%;
    left: 0;
    right: 0;
    max-height: 312px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}
.dsb-intg-find .dsb-select__option {
    align-items: center;
    gap: 12px;
    padding: 8px 10.4px;
    cursor: default;
}
.dsb-intg-find .dsb-select__option:hover { background: none; }
/* .dsb-select__option is display:flex, which beats the [hidden] attribute — a row the query does not
   match would stay on screen. */
.dsb-intg-find .dsb-select__option[hidden] { display: none; }

/* The catalogue's own icon tile: the row's, one size down, because a list item is not a card head. */
.dsb-intg-find__icon { width: 32px; height: 32px; border-radius: 8px; font-size: 13.6px; }

/* Name over one line of what it is — the option's type, not a heading's. */
.dsb-intg-find__opt { flex: 1; min-width: 0; }
.dsb-intg-find__opt b { display: block; font-weight: 500; font-size: 15.2px; color: var(--dsb-text-color); }
.dsb-intg-find__opt small { display: block; font-size: 12.8px; color: var(--dsb-text-muted); }

/* Where that system stands, at the end of the row. */
.dsb-intg-find__state { flex: none; font-size: 12.8px; color: var(--dsb-text-light); }

/* SOMETHING WE DO NOT CONNECT TO (yet). Greyed out by demoting the two things that carry rank — the
   icon tile and the name — never by fading the row.

   MEASURED: `opacity` over a whole row puts its name at 4.15:1 over paper and its second line at
   2.29:1. Greyed out has to mean "we do not have this", not "you cannot read this", and a row nobody
   can read is the one state a catalogue must not have. The name at --dsb-text-muted is 5.66:1 and
   still plainly a step below the rows above it; the line under it is left exactly as it is. */
.dsb-intg-find__opt--off b { color: var(--dsb-text-muted); }
.dsb-intg-find .is-unavailable .dsb-intg-find__icon { opacity: .45; }

/* No partner matches what was typed. A list item, so it sits where the rows it replaces sat. */
.dsb-intg-find__none {
    display: block;
    padding: 14px 10.4px;
    font-size: 13.6px;
    line-height: 1.5;
    color: var(--dsb-text-muted);
}

/* ===== ONE INTEGRATION'S CARD (V2 2.26.13, guide .dg2-intg-card) =====
   A partner card: the head says which system it is and what it needs, the fields under it are what
   goes where. Sits on a .dsb-panel, which keeps its own inset — nothing here restates padding.

   Two kinds of field live in a card. What YOU enter is an ordinary .dsb-field; what WE issue for you
   to paste at the partner is .dsb-issued below — a locked box with a copy icon, never an input,
   because there is nothing to type in it. */
.dsb-intg-card { margin-bottom: 16px; }
.dsb-intg-card__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 17.6px;
    border-bottom: 1px solid var(--dsb-border-light);
}
/* A card that is nothing BUT its head — an integration with no fields to show yet — keeps neither
   the rule nor the space under it, or the card ends in a hairline over nothing. */
.dsb-intg-card__head--last { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
/* The action sits at the end of the head, against the edge, whatever the text above it does. */
.dsb-intg-card__head .dsb-btn { flex: none; margin-left: auto; }
/* Phone: beside the text the action squeezed it to a word per line; it goes under it instead. */
@media (max-width: 560px) {
    .dsb-intg-card__head { flex-wrap: wrap; }
    .dsb-intg-card__head .dsb-btn { flex: 1 0 100%; margin-left: 0; min-height: 44px; }
}

/* A VALUE WE ISSUED (V2 2.26.13, guide .dg2-issued). Same height as a field so a grid of the two
   lines up, and the value is monospace because it is read a character at a time when it has to be
   checked by eye. */
.dsb-issued {
    display: flex;
    align-items: center;
    gap: 1.6px;
    height: var(--dsb-ctl-h);
    padding: 0 7.2px 0 16px;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    /* The page's own paper, not white: it is the same shape as a field and would otherwise read as
       one. Measured on the guide (--paper, #f5f6f8 — byte-identical to our --dsb-bg-page). */
    background: var(--dsb-bg-page);
}
.dsb-issued code {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 14.4px;
    color: var(--dsb-text-color);
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    margin-right: 8px;
}
/* A revoked key is still shown — it is what every system out there still has — but it is struck
   through, because it no longer works. That is a state, not decoration. */
.dsb-issued code.is-revoked { text-decoration: line-through; color: var(--dsb-text-light); }
.dsb-issued .dsb-copy__done { margin-left: 4.8px; white-space: nowrap; }

/* A SECOND SUBJECT INSIDE A CARD (guide .dg2-intg-card__sub) — settings that belong to this
   integration and nothing else. Ruled off from the card's own fields above it. */
.dsb-intg-card__sub {
    margin-top: 22.4px;
    padding-top: 17.6px;
    border-top: 1px solid var(--dsb-border-light);
}
.dsb-intg-card__sub > b { display: block; font-size: 15.2px; color: var(--dsb-text-color); }
.dsb-intg-card__sub > p {
    margin: 2.4px 0 1.6px;
    font-size: 13.6px;
    line-height: 1.45;
    color: var(--dsb-text-muted);
    max-width: 60ch;
}
/* The guide tightens a setting row inside a card's sub-panel on purpose (.85rem against the ordinary
   row's .95rem) — it is a row within a subject within a card, and the ordinary spacing reads as a
   new section. Two classes deep, so it beats .dsb-setrow whichever is declared first. */
.dsb-intg-card__sub .dsb-setrow { padding: 13.6px 0; border-bottom: 1px solid var(--dsb-border-light); }
.dsb-intg-card__sub > .dsb-btn { margin-top: 14.4px; }

/* A RULE ROW (V2 2.26.13, guide .dg2-rule) — field, condition, value, and the way to remove it. The
   header names the three columns once in the fields' own label type, so the rows carry no labels. */
.dsb-rule__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 34px;
    gap: 12.8px;
    align-items: center;
}
.dsb-rules-head { margin-top: 17.6px; font-size: 13.6px; font-weight: 500; color: var(--dsb-head-color); }
/* Over no rules the header names nothing, so it is hidden — and .dsb-rule__grid's own display:grid
   beats the [hidden] attribute, which is how a "hidden" element stays on screen. */
.dsb-rules-head[hidden] { display: none; }
.dsb-rule { margin-top: 9.6px; }
/* Quiet grey, danger only when pointed at — the quiet-controls rule (V2 2.17.2). */
.dsb-rule__x {
    width: 34px;
    height: var(--dsb-ctl-h);
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--dsb-text-light);
    font-size: 15px;
    transition: color .15s ease;
}
.dsb-rule__x:hover { color: var(--dsb-danger); }

/* ===== THE SUBSCRIPTION AS ONE STATEMENT (V2 2.25.6, guide .dg2-plan) =====
   The plan, the add-ons you own and the seats are rows on one grid, and the total closes the card
   under the prices like the last line of an invoice. */
/* No padding of its own: the guide declares .dg2-plan { padding-top:1rem } and .dg2-card is declared
   after it and wins at 18.4px — measured. Ours would be declared after .dsb-panel and win the other
   way, so it is left off and the surface keeps its own inset. Same trap as .dsb-setgroup above. */
.dsb-plan__eyebrow { margin: 0 0 5.6px; }
/* EVERY row in the statement is ruled off, the first one included — the eyebrow sits above it and the
   hairline separates the two. That is why this is not the + rule the plain lists use. */
.dsb-plan .dsb-intg__row {
    grid-template-columns: 40px minmax(0, 1fr) 120px 104px 120px;
    border-top: 1px solid var(--dsb-border-light);
}

/* The plan row is the anchor the rest hangs on — the one filled tile. */
.dsb-plan__line--plan .dsb-intg__icon { background: var(--theme-secondary); color: #fff; }
.dsb-plan__line--plan .dsb-intg__body b { font-size: 16.8px; }

/* Seats are the plan's third line, not a row of their own: a line of their own read as an add-on. */
.dsb-plan__line--plan {
    grid-template-areas: "icon body price pill acts" "icon seats seats seats acts";
    row-gap: 6.4px;
    align-items: start;
}
.dsb-plan__line--plan > .dsb-intg__icon { grid-area: icon; }
.dsb-plan__line--plan > .dsb-intg__body { grid-area: body; }
.dsb-plan__line--plan > .dsb-intg__price { grid-area: price; padding-top: 2.4px; }
.dsb-plan__line--plan > .dsb-pill { grid-area: pill; justify-self: center; margin-top: 3.2px; }
.dsb-plan__line--plan > .dsb-plan__acts { grid-area: acts; }
/* 34px = a small button, so the seats action centres on the line. */
.dsb-plan__line--plan > .dsb-plan__seats-n { grid-area: seats; margin-top: 0; min-height: 34px; }
/* Phone: the plan row stacks under its name like every other .dsb-intg__row. */
@media (max-width: 560px) {
    .dsb-plan .dsb-intg__row { grid-template-columns: 40px minmax(0, 1fr); }
    .dsb-plan__line--plan { grid-template-areas: "icon body" "icon price" "icon pill" "icon seats" "icon acts"; }
    .dsb-plan__line--plan > .dsb-pill,
    .dsb-plan__line--plan > .dsb-plan__acts { justify-self: start; align-items: flex-start; }
    .dsb-plan__foot > span:empty:not(:first-child) { display: none; }
}

/* Quiet while seats are free — there is nothing to act on. */
.dsb-plan__seats-n {
    display: flex;
    align-items: center;
    gap: 9.6px;
    font-size: 13.76px;
    color: var(--dsb-text-muted);
}
/* The price of one more seat, on the SAME line as the count so the line stays one button tall. */
.dsb-plan__seats-p { display: none; font-weight: 400; color: var(--dsb-text-muted); }
.dsb-plan__seats-p::before { content: "\00b7"; margin-right: 9.6px; }
/* Every paid seat taken: the count steps forward and the price of one more appears. */
.dsb-plan__line--plan.is-full [data-seats-count] { color: var(--dsb-text-color); font-weight: 600; }
.dsb-plan__line--plan.is-full .dsb-plan__seats-p { display: inline; }
/* ONE action on the seats line, always the next useful step: invite while a seat is free, buy while
   they are all taken. Both are in the markup; this shows one. */
/* !important because .dsb-btn itself carries `display: inline-flex !important` (line ~265), which
   no amount of specificity here can beat — both of these are buttons. */
.dsb-plan__line--plan:not(.is-full) [data-seats-full],
.dsb-plan__line--plan.is-full [data-seats-free] { display: none !important; }

.dsb-plan__acts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6.4px;
    justify-self: end;
    align-self: stretch;
}

/* The total: a heavier rule and a bigger number, like the last line of an invoice. Same ink as the
   prices above it — navy read as a different kind of thing.
   Two classes deep so it beats the 1px hairline `.dsb-plan .dsb-intg__row` puts on every row; one
   class would tie on specificity and lose to whichever came last. */
.dsb-plan .dsb-plan__foot { border-top: 2px solid var(--dsb-border-color); padding-bottom: 5.6px; }
.dsb-plan__foot .dsb-intg__body b { font-family: 'Red Hat Display', sans-serif; font-weight: 700; }
.dsb-plan__foot .dsb-intg__price b {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 800;
    font-size: 18.4px;
    color: var(--dsb-text-color);
}

/* Used of total. --used is a percentage, so it holds for any seat count. */
.dsb-seatbar {
    display: inline-block;
    width: 64px;
    height: 6px;
    border-radius: 3px;
    background: var(--dsb-border-light);
    overflow: hidden;
}
.dsb-seatbar::after {
    content: "";
    display: block;
    height: 100%;
    width: var(--used, 0%);
    border-radius: 3px;
    background: var(--theme-secondary);
}

/* THE BUILD MARKERS (2026-09-17, ours — the guide has no such thing).
   --todo     the guide designed it and there is no code behind it yet
   --unplaced we have the code and the guide has no place for it yet
   Both are the pill above: the component already carries the shape, the ring and the icon rule.
   Neither is a data status, which is why each reads as words and why the ring is dashed — an
   unfinished edge, not a state of the thing it sits on. */
.dsb-pill--todo {
    color: var(--dsb-warn-ink);
    background-color: var(--dsb-warn-bg);
    border-color: var(--dsb-warn-line);
    border-style: dashed;
}
.dsb-pill--todo i { color: var(--dsb-warn-ink); }
.dsb-pill--unplaced {
    color: var(--dsb-pill-neutral-text);
    background-color: var(--dsb-pill-neutral-bg);
    border-color: var(--dsb-border-color);
    border-style: dashed;
}
.dsb-pill--unplaced i { color: var(--dsb-pill-neutral-text); }

@media (prefers-reduced-motion: reduce) {
    .dsb-sidenav a,
    .dsb-savebar__msg,
    .dsb-setrow__ack { transition: none; }
}

/* THE HERO TITLE AS A PICKER (V2 2.25.0, .dg2-select--title, design-guide.html 3001-3013).
   The select above, dressed as a page title: no box, the title's type, a chevron. Used where the
   page's subject is itself a choice — Settings, where the title says WHOSE settings.

   Type is inherited from .dsb-page-hero__title, which is the guide's 25.6px on every page. */
.dsb-select--title { display: inline-block; }
.dsb-select--title .dsb-select__btn {
    height: auto;
    width: auto;
    padding: 0 1.6px 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    gap: 8.8px;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.2;
    color: inherit;
}
/* A long company name wraps onto a second line rather than pushing the page sideways (AB#5824, 2026-11-30: at 375px
   "Autoværkstedet Nørrebro ApS" made every Settings page 40px too wide). A one-line title looks as before; on a
   wrapped one the chevron stands at the right of the title, centred on its lines. */
.dsb-select--title { max-width: 100%; }
.dsb-select--title .dsb-select__btn { max-width: 100%; }
.dsb-select--title .dsb-select__value { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.dsb-select--title .dsb-select__btn:hover,
.dsb-select--title .dsb-select__btn:focus-visible,
.dsb-select--title.dsb-is-open .dsb-select__btn {
    background: transparent;
    border: 0;
    box-shadow: none;
}
.dsb-select--title .dsb-select__chevron { width: 16px; height: 16px; color: var(--dsb-navy-soft); }
.dsb-select--title .dsb-select__btn:hover .dsb-select__chevron { color: var(--dsb-quiet-hover); }
/* One context: the title is still the title, it just has nothing to pick between. */
.dsb-select--title.dsb-is-single .dsb-select__btn { pointer-events: none; }
.dsb-select--title.dsb-is-single .dsb-select__chevron { display: none; }
/* A title has no box for a list to be the lower half of: this one hangs loose under the title, at
   least 320px wide, with the ring all the way round and every corner rounded. */
.dsb-select--title .dsb-select__curtain { left: 0; right: auto; top: calc(100% + 6.4px); min-width: 320px; }
.dsb-select--title .dsb-select__sheet {
    border-radius: var(--dsb-radius);
    box-shadow: inset 0 0 0 1px var(--dsb-border-color), 0 22px 44px -22px rgba(29,45,73,.35);
}
/* The row's content is a form that is only as wide as its words (pages/settings.css takes the row's
   own padding off for it), so the tick is sent to the far end and given the inset the row lost. */
.dsb-select--title .dsb-select__option.dsb-is-selected::after { margin: 0 14px 0 auto; }
/* The list sits INSIDE the <h2> and must not inherit the title's 800 and tight leading — it is the
   select's own list, nothing else. */
.dsb-select--title .dsb-select__menu {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: normal;
    letter-spacing: 0;
    color: var(--dsb-text-color);
}
.dsb-select--title .dsb-select__option { justify-content: flex-start; gap: 10.4px; }
.dsb-select--title .dsb-select__option i {
    flex: none;
    width: 17.6px;
    text-align: center;
    font-size: 13.6px;
    color: var(--dsb-navy-soft);
}

/* An eyebrow over a page title: the hero must be able to say WHAT this page is when the title is
   busy saying whose (V2 .dg2-page-hero__eyebrow, 2.22.0). */
.dsb-page-hero__eyebrow {
    display: block;
    margin-bottom: 4px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 11.2px;
    letter-spacing: 1.568px;
    text-transform: uppercase;
    color: var(--dsb-text-muted);
}

/* ── Workshop finder (Pages/Partials/_WorkshopFinder) ───────────────────────────────────────────
   "Find et værksted": a search field over a list beside a map. Drawn wherever a workshop is
   chosen — the add-a-vehicle page, the owner's vehicle page, and a page of its own to come — which
   is why it lives here and not in a page sheet (2026-09-18).
   ─────────────────────────────────────────────────────────────────────────────────────────────── */

.workshop-finder {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
    min-height: 400px;
    border: 1px solid var(--dsb-border-light, #e2e8f0);
    border-radius: var(--dsb-radius);
    overflow: hidden;
}

.workshop-finder__list {
    overflow-y: auto;
    max-height: 400px;
    padding: 8px 0;
}

.workshop-finder__map {
    min-height: 400px;
}

/* Workshop list items */
.workshop-finder__item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--dsb-border-light, #e2e8f0);
    transition: background 0.15s;
}

.workshop-finder__item:hover {
    background: var(--dsb-alert-info-bg, #f0f4ff);
}

.workshop-finder__item--active {
    background: var(--dsb-alert-info-bg, #f0f4ff);
    border-left: 3px solid var(--theme-primary, #10b981);
}

.workshop-finder__item-name {
    font-size: 14px;
    /* Roboto has no 600 cut (synthesizes to bold) — a list row's primary text (like
       .dsb-cell-multiline__primary in dsb.css), not a heading. */
    font-weight: 500;
    /* Was var(--dsb-text, #1e293b) — --dsb-text is not a defined token, so this always rendered
       its hardcoded fallback. Row content, not a page/section heading: --dsb-text-color (ink). */
    color: var(--dsb-text-color);
}

.workshop-finder__item-address {
    font-size: 12px;
    color: var(--dsb-text-muted, #64748b);
    margin-top: 2px;
}

.workshop-finder__item-no-coords {
    display: inline-block;
    font-size: 10px;
    color: var(--dsb-text-muted, #94a3b8);
    margin-left: 8px;
}

.workshop-finder__loading {
    padding: 20px 14px;
    color: var(--dsb-text-muted, #64748b);
    font-size: 14px;
}

.workshop-finder__empty {
    padding: 20px 14px;
    color: var(--dsb-text-muted, #64748b);
    font-size: 14px;
    text-align: center;
}

/* "Not on list" section */
.workshop-finder__not-on-list {
    margin-top: 12px;
    text-align: right;
}

/* The chosen workshop. Was #workshop-selected: an id cannot appear twice, which is what kept the
   finder to one instance per page. */
.workshop-finder__selected {
    display: flex;
    align-items: center;
    margin-top: 16px;
}

/* Mobile: stack list above map */
@media (max-width: 768px) {
    .workshop-finder {
        grid-template-columns: 1fr;
        grid-template-rows: auto 300px;
    }

    .workshop-finder__list {
        max-height: 250px;
    }

    .workshop-finder__map {
        min-height: 300px;
    }
}

/* DIT VÆRKSTED: the card, not a caption. It was a label over a name, sitting on top of a
   full-height map of every workshop in the country — the one fact the owner came for, dressed as a
   footnote to the errand they were not on (2026-09-21). Now it holds the contact details and the
   way to change workshop, and the finder folds away behind it. */
.workshop-finder__current {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 24px;
    padding: 16px 20px;
    border: 1px solid var(--dsb-border-light);
    border-radius: 12px;
    background: var(--dsb-bg-subtle);
}

/* The contact rows are the shared key/value sheet — same component as the Info tab's categories, so
   an address reads the same wherever it is shown. The sheet's own hairlines are enough inside a
   card, and the last one would otherwise draw a line above the button. */
.workshop-finder__contact {
    margin-top: 12px;
}

/* The sheet's 38% label column is measured for the Info tab, where the categories grid has already
   halved the width. This card is full width, so 38% left "Adresse" alone at one end of 400px of
   nothing. A contact label is two words; give it what two words need. */
.workshop-finder__contact > div {
    grid-template-columns: minmax(96px, 148px) minmax(0, 1fr);
}

.workshop-finder__contact > div:last-child {
    border-bottom: none;
}

.workshop-finder__current-actions {
    margin-top: 12px;
}

/* A folded picker is not in the layout at all — .workshop-finder is a grid, and a hidden grid
   parent with display:grid would still reserve its rows. */
.workshop-finder__picker[hidden] { display: none; }

.workshop-finder__current-label {
    font-size: 12px;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--dsb-text-muted, #64748b);
}

.workshop-finder__current-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--dsb-text-color);
}

.workshop-finder__search {
    margin-bottom: 16px;
}

/* The field fills the component. On the page this came from it sat in a .dsb-form-row__col, which
   is where its width came from; a component cannot depend on a wrapper its host may not draw. */
.workshop-finder__search .form-control {
    width: 100%;
    /* Measured 8px over its container without this — the padding was landing outside the width. */
    box-sizing: border-box;
}
/* "Workshop name, Postal code, CVR or City" is wider than a phone's field at the field's own size; only
   the hint steps down, so what is typed keeps the size that stops iOS zooming in. */
@media (max-width: 420px) {
    .workshop-finder__search .form-control::placeholder { font-size: 13.6px; }
}
@media (max-width: 379px) {
    .workshop-finder__search .form-control::placeholder { font-size: 13px; }
}

/* HIDDEN HAS TO WIN. .dsb-alert sets display:flex, which beats the [hidden] attribute's own
   display:none — so the confirmation box rendered as an empty green bar before anything was
   chosen. Measured in a browser, 2026-09-18. */
.workshop-finder__selected[hidden] {
    display: none;
}

/* Pushed to the far side of the alert, so the way out of a choice is never mistaken for part of
   the confirmation. */
.workshop-finder__change {
    margin-left: auto;
}

/* The host's own submit under the finder — the vehicle page's "Godkend". The finder draws no
   button of its own: what confirming a choice means is the host's business. */
.workshop-finder__save {
    margin-top: 20px;
}

.workshop-finder__popup {
    min-width: 180px;
}

.workshop-finder__popup span {
    font-size: 12px;
    color: var(--dsb-text-muted, #64748b);
}



/* =============================================
   FORM FIELDS: DATE, NUMBER WITH A UNIT, EDITABLE ATTACHMENTS, FOLD
   (V2 2.26.25-2.26.29, guide .dg2-date / .dg2-num + .dg2-unit / .dg2-att / .dg2-fold)
   =============================================
   Generic field components. The service record's edit form is their first consumer, but nothing
   here knows about it. Behaviour lives in js/dsb-fields.js (window.dsbDate, window.dsbNum,
   window.dsbAtt, window.dsbFold), which must load after dsb.js.

   All of them sit inside a .dsb-field, whose input material (height, border, radius, focus
   shadow) they build on. Guide rem values are converted x16 (the app's html is 10px).

   Token map from the guide: --ink -> --dsb-text-color, --ink-soft/--text-soft -> --dsb-text-muted,
   --ink-faint -> --dsb-text-light, --line -> --dsb-border-color, --line-soft -> --dsb-border-light,
   --paper-2 -> #fff, --head -> --dsb-head-color, --green -> --theme-action, --green-deep ->
   --theme-action-dark, --table-action -> --dsb-link-color, --quiet-hover -> --dsb-quiet-hover,
   --fld-* -> --dsb-fld-*, --ctl-h -> --dsb-ctl-h, --ctl-r -> --dsb-radius. */

/* ===== THE ONE RED LINE UNDER A FIELD (guide .dg2-field__err, the date's error made general) =====
   It is in the markup from the start (the date wiring creates it) and fades in, so the form does
   not jump; the field's hairline turns the danger red with it. The negative top margin cancels the
   .dsb-field gap while the line is empty. */
.dsb-field__err {
    display: block;
    font-size: 12.8px;
    line-height: 1.4;
    color: var(--dsb-alert-danger-text);
    opacity: 0;
    max-height: 0;
    margin-top: -6.4px;
    overflow: hidden;
    transition: opacity .18s ease, max-height .18s ease, margin-top .18s ease;
}
.dsb-field__err.is-on {
    opacity: 1;
    max-height: 48px;
    margin-top: 0;
}
/* The danger family's red as a hairline, nothing else moves. rgba(192,57,43,.6) has no token: the
   alert border is the same red at .30, too faint for a field edge. The hover selector repeats the
   base hover rule's guards so it outranks it. */
.dsb-field input.is-invalid,
.dsb-field input.is-invalid:focus,
.dsb-field input.is-invalid:not(:disabled):not([readonly]):not(:focus):hover {
    border-color: rgba(192,57,43,.6);
}
@media (prefers-reduced-motion: reduce) {
    .dsb-field__err { transition: none; }
}

/* ===== PASSWORD: AN EYE IN THE FIELD (guide .dg2-pw + .dg2-pw__eye, §4 "Field error & password") =====
   An eye at the field's right edge shows and hides what was typed. Lived in pages/onboarding.css as
   .onboarding-pw until 2026-11-26; it is a §4 component, so it is here.

   THE TWO ICONS CROSS-FADE (.18s). Both are in the button from the start, stacked in one grid cell,
   one of them transparent — it was a display cut, which the motion rule does not allow. The guide
   wraps them in a span to stack them; the button is a grid already, so they stack in it directly.

   Only the look is shared. Which fields an eye turns is the page's (sign-up: one eye for the
   password and its repeat), so the page's script toggles .is-shown, aria-pressed and the label.

   Markup:
     <div class="dsb-pw">
       <input type="password" class="dsb-form-input">
       <button type="button" class="dsb-pw__eye" aria-label="Show password" aria-pressed="false">
         <i class="fa-regular fa-eye" aria-hidden="true"></i><i class="fa-regular fa-eye-slash" aria-hidden="true"></i>
       </button>
     </div> */
.dsb-pw { position: relative; }
/* Room for the eye. After .dsb-form-input and .dsb-field input in this file, whose padding it
   has to outlast at the same weight. */
.dsb-pw input { padding-right: 48px; }
.dsb-pw__eye {
    position: absolute;
    top: 50%;
    right: 5.6px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--dsb-text-light);
    font-size: 15.2px;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}
/* A grey control: one step darker, never ink. */
.dsb-pw__eye:hover { color: var(--dsb-text-muted); background: var(--dsb-bg-subtle); }
.dsb-pw__eye:focus-visible { outline: 2px solid var(--dsb-fld-focus-line); outline-offset: 1px; }
.dsb-pw__eye > i { grid-area: 1 / 1; transition: opacity .18s ease; }
.dsb-pw__eye > i:last-child { opacity: 0; }
.dsb-pw__eye.is-shown > i:first-child { opacity: 0; }
.dsb-pw__eye.is-shown > i:last-child { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .dsb-pw__eye, .dsb-pw__eye > i { transition: none; }
}

/* ===== DATE FIELD (V2 2.26.25, final design per the Version History's eleven passes) =====
   DEVIATION FROM THE GUIDE (AB#4871, 2026-10-06): the guide draws the field as dd/mm/yyyy for every
   language. Here the ORDER and SEPARATOR follow the page's language (<html data-date-pattern>, set by
   the layouts from the request culture): da dd.mm.yyyy, sv yyyy-mm-dd, nl dd-mm-yyyy, en-GB
   dd/mm/yyyy. Widths stay 2/2/4, so the field is ten characters in every language and nothing below
   changes; where this comment says dd/mm/yyyy or a slash, read the page's pattern and separator.

   A text field, dd/mm/yyyy typed as usual, with a quiet calendar button at its right. Day, month and
   year are three SEGMENTS (the browser's own date field's model): a digit fills the taken segment
   and steps on, so correcting the month never moves the day or the year.

   The field's own glyphs are transparent; the GHOST layer laid over it paints every glyph — digits
   in ink, the pattern's unfilled letters and open slashes in placeholder grey ("09/mm/yyyy"). The
   ghost has the field's face, size, inset and border width, so its glyphs stand exactly where the
   field's transparent ones do; the caret is the field's own. Decisions kept from the guide: ONE
   face (plain Roboto, no monospace — the small width shift while a letter becomes a digit is an
   accepted transient), no mark on the taken segment (the blinking caret is the one pointer), no
   visible browser selection.

   The calendar opens in the select's pop-over: the same curtain, the same ring, the field squaring
   off above it. Monday-first, today in a hairline ring, the chosen day in the button green, the
   neighbouring months faint but live, ‹ › step months, "Today" at the foot (only when today is
   allowed). It opens UPWARD (.is-up) when the room below is under 340px.

   Markup (the wiring creates the ghost, the error line, and the button/pop-over when missing):
     <div class="dsb-field">
       <label>Date</label>
       <div class="dsb-date" data-required data-max="today" data-max-msg="…">
         <input type="text" inputmode="numeric" autocomplete="off" value="2026-09-16">
         <input type="hidden" name="Date">   (optional — kept in sync with the ISO value)
       </div>
     </div> */
/* min-width:0 — as a grid or flex item the field would otherwise refuse to shrink below its input's
   intrinsic width (~20 characters) and push out of a narrow column. */
.dsb-date { position: relative; min-width: 0; }
.dsb-date input[type="text"] {
    padding-right: 46.4px;
    font-variant-numeric: tabular-nums;
    color: transparent;
    caret-color: var(--dsb-text-color);
}
.dsb-date input[type="text"]::placeholder { color: transparent; }
.dsb-date input[type="text"]::selection { background: transparent; color: transparent; }
/* .dsb-date__seg wraps the taken segment while the field has focus and carries NO mark (guide
   decision: "nothing but the blinking caret"). The hook stays, so a mark can be tried in CSS alone. */
.dsb-date__ghost {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;   /* the input is the only child in flow, so this is exactly the field's height */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: normal;
    letter-spacing: normal;
    color: var(--dsb-text-color);
    font-variant-numeric: tabular-nums;
    white-space: pre;
    pointer-events: none;
    user-select: none;
}
.dsb-date__ghost i {
    font-style: normal;
    color: var(--dsb-text-light);
}
.dsb-date__btn {
    position: absolute;
    right: 7.2px;
    top: calc(var(--dsb-ctl-h) / 2);
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--dsb-text-light);
    font-size: 15px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
/* The quiet-controls rule: one step darker, never ink. */
.dsb-date__btn:hover,
.dsb-date__btn:focus-visible,
.dsb-date.is-open .dsb-date__btn {
    background: rgba(29,45,73,.06);
    color: var(--dsb-text-muted);
    outline: none;
}
/* Open: the field squares off above the calendar. !important only on the radius, for the same
   reason as .dsb-field input (vendor.css forces input { border-radius: 0 !important }). */
.dsb-date.is-open input[type="text"],
.dsb-date.is-open input[type="text"]:not(:disabled):not([readonly]):not(:focus):hover {
    border-radius: var(--dsb-radius) var(--dsb-radius) 0 0 !important;
    box-shadow: none;
    background: #fff;
    border-color: var(--dsb-fld-focus-line);
    border-bottom-color: var(--dsb-border-light);
}
.dsb-date.is-open.is-up input[type="text"],
.dsb-date.is-open.is-up input[type="text"]:not(:disabled):not([readonly]):not(:focus):hover {
    border-radius: 0 0 var(--dsb-radius) var(--dsb-radius) !important;
    border-bottom-color: var(--dsb-fld-focus-line);
    border-top-color: var(--dsb-border-light);
}
/* The curtain: a grid track from 0fr to 1fr; the child carries no border and no vertical padding
   (the ring is inset shadow, the air lives on the head and foot rows). */
.dsb-date__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 20;
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows .22s cubic-bezier(.4,0,.2,1), visibility 0s linear .22s;
}
.dsb-date.is-up .dsb-date__menu { top: auto; bottom: 100%; }
.dsb-date.is-open .dsb-date__menu {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows .2s cubic-bezier(.4,0,.2,1), visibility 0s;
}
.dsb-date__cal {
    min-height: 0;
    overflow: hidden;
    padding: 0 9.6px;
    background: #fff;
    border-radius: 0 0 var(--dsb-radius) var(--dsb-radius);
    box-shadow: inset 1px 0 0 0 var(--dsb-fld-focus-line), inset -1px 0 0 0 var(--dsb-fld-focus-line),
                inset 0 -1px 0 0 var(--dsb-fld-focus-line), var(--dsb-fld-focus-shadow),
                0 22px 44px -22px rgba(29,45,73,.35);
    opacity: 0;
    transition: opacity .16s ease;
}
.dsb-date.is-up .dsb-date__cal {
    border-radius: var(--dsb-radius) var(--dsb-radius) 0 0;
    box-shadow: inset 1px 0 0 0 var(--dsb-fld-focus-line), inset -1px 0 0 0 var(--dsb-fld-focus-line),
                inset 0 1px 0 0 var(--dsb-fld-focus-line), 0 -4px 12px -4px rgba(15,23,38,.22),
                0 -22px 44px -22px rgba(29,45,73,.35);
}
/* Opening: crisp from frame 1; the dissolve is for the exit only. */
.dsb-date.is-open .dsb-date__cal { opacity: 1; transition: opacity 0s; }
.dsb-date__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8.8px 0 4.8px;
}
.dsb-date__title {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 14.72px;
    color: var(--dsb-text-color);
}
.dsb-date__nav {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--dsb-text-muted);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.dsb-date__nav svg { width: 12px; height: 12px; }
.dsb-date__nav:hover,
.dsb-date__nav:focus-visible {
    background: rgba(29,45,73,.06);
    color: var(--dsb-quiet-hover);
    outline: none;
}
.dsb-date__wd,
.dsb-date__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}
.dsb-date__wd span {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 10.56px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--dsb-text-light);
    padding: 3.2px 0 4.8px;
}
.dsb-date__day {
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-family: 'Roboto', sans-serif;
    font-size: 14.4px;
    color: var(--dsb-text-color);
    cursor: pointer;
    font-variant-numeric: tabular-nums;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.dsb-date__day:hover,
.dsb-date__day:focus-visible {
    background: var(--dsb-bg-subtle);
    outline: none;
}
.dsb-date__day.is-out { color: var(--dsb-text-light); }
.dsb-date__day.is-today { box-shadow: inset 0 0 0 1px var(--dsb-fld-focus-line); }
.dsb-date__day.is-sel,
.dsb-date__day.is-sel:hover {
    background: var(--theme-action);
    color: #fff;
    font-weight: 500;
    box-shadow: none;
}
/* Outside the field's bounds — there, but not for taking. */
.dsb-date__day.is-off,
.dsb-date__day.is-off:hover {
    color: var(--dsb-text-light);
    opacity: .4;
    background: transparent;
    cursor: default;
}
.dsb-date__ft {
    display: flex;
    justify-content: flex-end;
    margin: 1.6px 0 6.4px;
}
.dsb-date__ft .dsb-btn--text { --dsb-btn-fill: transparent; }
@media (prefers-reduced-motion: reduce) {
    .dsb-date__menu, .dsb-date__cal, .dsb-date__day, .dsb-date__btn, .dsb-date__nav { transition: none; }
}

/* ===== NUMBER FIELD WITH A UNIT (V2 2.26.27, guide .dg2-num + .dg2-unit) =====
   A mileage is typed as bare digits; the field groups them itself in the page language's way
   (75.000 in Danish, 75,000 in English, 75 000 in Swedish). The unit is chosen INSIDE the field at
   the right: a compact .dsb-select showing only the chosen unit ("km" + chevron), in the calendar
   button's grey, so the line reads "75.000 km". Its list opens under it, right-aligned.

   STEADY SIZE: the button holds every option as an invisible ghost (.dsb-unit__ghost) in the same
   grid cell as the visible value, so it is always as wide as its widest option and never shifts.

   Markup (the wiring builds the unit select when it is missing):
     <div class="dsb-num" data-units="km mi" data-unit="km" data-example="75000">
       <input type="text" inputmode="numeric" autocomplete="off">
     </div> */
.dsb-num { position: relative; min-width: 0; }
.dsb-num input[type="text"] {
    padding-right: 86.4px;
    font-variant-numeric: tabular-nums;
}
.dsb-unit {
    position: absolute;
    right: 7.2px;
    top: calc(var(--dsb-ctl-h) / 2);
    transform: translateY(-50%);
}
/* The transform makes the unit its own stacking layer — without this the open list sits UNDER
   later controls in the form (the guide probed it: the OE toggle painted over "mi"). */
.dsb-unit.dsb-is-open { z-index: 20; }
.dsb-unit .dsb-select__btn {
    width: auto;
    height: 28px;
    padding: 0 8px 0 9.6px;
    gap: 5.6px;
    border: 0;
    border-radius: 7px;
    background: rgba(29,45,73,.06);
    font-size: 12.8px;
    font-weight: 500;
    line-height: 1;
    color: var(--dsb-text-muted);
    box-shadow: none;
}
/* Repeats the base hover/open selectors' weight (0,4,0 and 0,3,0) so the compact grey button does
   not revert to the field look. The quiet-controls rule: one step darker, never ink. */
.dsb-select.dsb-unit:not(.dsb-is-open) .dsb-select__btn:not(:focus):hover {
    background: rgba(29,45,73,.1);
    border-color: transparent;
    color: var(--dsb-quiet-hover);
}
/* border-radius too: an open select squares its bottom corners to meet its list, and this list
   hangs loose under the button. */
.dsb-select.dsb-unit.dsb-is-open .dsb-select__btn,
.dsb-select.dsb-unit .dsb-select__btn:focus-visible {
    background: rgba(29,45,73,.1);
    border-color: transparent;
    border-radius: 7px;
    box-shadow: none;
}
.dsb-unit .dsb-select__chevron {
    width: 10px;
    height: 10px;
    color: var(--dsb-text-light);
}
.dsb-unit__stack {
    display: grid;
    flex: 1;
    min-width: 0;
    text-align: left;
}
.dsb-unit__stack > * { grid-area: 1 / 1; }
.dsb-unit__ghost {
    visibility: hidden;
    pointer-events: none;
    white-space: nowrap;
}
/* A detached list: 6px under the button, right-aligned, sized by its rows and never narrower than
   the button — so the ring goes all the way round (the field's border is not its top edge here). */
.dsb-unit .dsb-select__curtain {
    top: calc(100% + 6px);
    left: auto;
    right: 0;
    width: max-content;
    min-width: 100%;
}
.dsb-unit .dsb-select__sheet {
    border-radius: var(--dsb-radius);
    box-shadow: inset 0 0 0 1px var(--dsb-fld-focus-line), var(--dsb-fld-focus-shadow),
                0 22px 44px -22px rgba(29,45,73,.35);
}
.dsb-unit .dsb-select__option {
    padding: 7.2px 9.6px;
    font-size: 14.4px;
}
/* Every row reserves the tick's room and keeps one weight, so the list is the same width whichever
   unit is chosen (the STEADY SIZE rule above, for the list). */
.dsb-unit .dsb-select__option::after {
    content: "\2713";
    flex: none;
    font-size: 12.8px;
    visibility: hidden;
}
.dsb-unit .dsb-select__option.dsb-is-selected { font-weight: inherit; }
.dsb-unit .dsb-select__option.dsb-is-selected::after { visibility: visible; }

/* ===== EDITABLE ATTACHMENTS (V2 2.26.25, guide .dg2-att in EDIT) =====
   The chips from .dsb-att above, in a form: each carries its x, "Add file" is the text button at the
   end of the row, and the file input behind it is hidden. A chip arrives and leaves through opacity
   (the motion rule) — never a cut. Wired by window.dsbAtt.wire(el). */
.dsb-att__chip { transition: border-color .18s ease, background-color .18s ease, opacity .18s ease; }
.dsb-att__chip.is-out { opacity: 0; }
/* An editable chip is not a link: it keeps its rest look under the pointer, only its x reacts. */
span.dsb-att__chip:hover {
    background: #fff;
    border-color: var(--dsb-border-color);
}
.dsb-att__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dsb-att__x {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 20px;
    height: 20px;
    margin-right: -5.6px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--dsb-text-light);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.dsb-att__x:hover,
.dsb-att__x:focus-visible {
    background: rgba(29,45,73,.06);
    color: var(--dsb-text-muted);
    outline: none;
}
.dsb-att .dsb-btn--text { --dsb-btn-fill: transparent; }
/* A picture's chip shows it (2026-10-30): the thumbnail stands where the icon stood, big enough to tell
   one repair photo from the next before its x is pressed, and opens the original in the viewer. */
.dsb-att__chip--thumb {
    height: 48px;
    padding-left: 5.6px;
}
.dsb-att__thumb {
    display: block;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--dsb-bg-subtle);
}
.dsb-att__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dsb-att__thumb:focus-visible { outline: 2px solid var(--dsb-link-color); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
    .dsb-att__chip, .dsb-att__x { transition: none; }
}
/* A PLAIN FORM'S FILE FIELD AS CHIPS (2026-11-30, dsbAtt.fields in dsb-fields.js). The form keeps its real file
   input, which carries the post and the browser's own "required"; the chips before it are the control. So the
   input is out of sight but still in the page: not display:none or [hidden], which would take it out of the form's
   validation ("an invalid form control is not focusable") and leave an empty required field to fail in silence. */
input[type="file"][data-att-real] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}
/* The browser focuses the real input when its required file is missing (the only way it gets the focus: it is no tab
   stop and takes no pointer). It is invisible, so "Add file", which is what the keys then act on, shows the ring.
   The real input stands right before its chips for this, and so that Tab goes on into them. */
input[type="file"][data-att-real]:focus + .dsb-att .dsb-att__add {
    outline: 2px solid var(--theme-secondary);
    outline-offset: 2px;
}
/* A one-file field that holds its file offers no second one (data-single). !important: .dsb-btn's display is. */
.dsb-att.is-full .dsb-att__add { display: none !important; }

/* ===== THE FOLD (V2 2.26.13, guide .dg2-fold) =====
   The shared idiom for a block that closes or opens: height + opacity + margins glide, never a cut.
   window.dsbFold sets the heights inline and adds this class only while it runs, so a component's
   own transitions return afterwards. Reduced motion: the JS skips the class and switches at once. */
.dsb-fold {
    transition: height .24s cubic-bezier(.4,0,.2,1), opacity .2s ease, margin .24s cubic-bezier(.4,0,.2,1);
}

/* "(optional)" after a label or a group title (guide .dg2-opt, 2.26.29): a step smaller than the
   label, italic, regular weight, faint ink, and a touch further off than a plain space — it
   qualifies the label, it is not part of it. */
.dsb-opt { margin-left: .3em; font-weight: 400; font-style: italic; font-size: .88em; color: var(--dsb-text-light); }

/* =============================================
   16. NOTIFICATIONS (design guide V2 §16, 2.29.0–2.30.17 — .dg2-nav__unread, .dg2-menu__notif,
       .dg2-notif*, .dg2-ctx__new, .dg2-sysbar; AB#5040)
   =============================================
   One store, shown four ways. The bar itself is NOT changed: no bell. The one sign in it is the green
   UNREAD DOT on the profile bubble's edge; the way in is the "Notifications · n" row under the user
   head in the profile menu; the PANEL is a view inside that same menu's box, laid over its rows (the
   rows fade, they do not move; no glass of its own). Messages from Digital Servicebook also get the
   SERVICE BAR under the navbar — the one layer the guide lets move the page.
   Guide rem is the browser's 16px; here 1rem is 10px (vendor.css html), so every size below is the
   guide's rem x 16, written in px. Guide --menu-* is --dsb-menu-*, --nav-navy is --theme-nav-bg. */

/* the unread dot — on the bubble's upper right edge, the menu accent ringed in white so it reads against
   the avatar whatever its colour (the default avatar is green, and a navy ring lost it). Shown and
   hidden by opacity (motion rule): the attribute alone would clip. */
.dsb-navbar__unread {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dsb-mint-strong);
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(8,25,60,.35);
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.dsb-navbar__unread[hidden] { display: block !important; opacity: 0; transform: scale(.5); }

/* the row in the profile menu and the phone menu: bell, word, count */
.dsb-account-menu__notifications { margin-top: 1.6px; }
.dsb-account-menu__notifications > i { width: 16px; text-align: center; }
.dsb-account-menu__count {
    flex: none;
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 2px 6px 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 11.5px;
    line-height: 1;
    background: var(--dsb-mint-strong);
    color: #10311f;
    transition: opacity .18s ease;
}
.dsb-account-menu__count[hidden] { display: inline-flex !important; opacity: 0; }
.dsb-mobile .dsb-account-menu__count { margin-left: 8px; }

/* the panel: a VIEW inside the profile menu's box (2.29.2). .has-notifications on the profile host holds
   the menu open, fades its rows out (.16 s) and the view in (.22 s); the box grows to a floor of
   min(560px, 72vh) while the view is up and stops scrolling — the list inside scrolls instead. */
.dsb-profile__dropdown { transition: min-height .22s ease; }
.dsb-profile.has-notifications .dsb-profile__dropdown { display: block; min-height: min(560px, 72vh); overflow: hidden; }
.dsb-profile__dropdown > :not(.dsb-notifications) { transition: opacity .16s ease; }
.dsb-profile.has-notifications .dsb-profile__dropdown > :not(.dsb-notifications) { opacity: 0; pointer-events: none; }

.dsb-notifications {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s;
    text-align: left;
    font-family: 'Roboto', sans-serif;
}
.dsb-profile.has-notifications .dsb-notifications { visibility: visible; opacity: 1; pointer-events: auto; }
.dsb-notifications__inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    color: var(--dsb-menu-text);
    background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,0) 140px);
}
.dsb-notifications__head { display: flex; align-items: center; gap: 9.6px; padding: 16.8px 17.6px 4.8px; }
.dsb-notifications__head b {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 17.9px;
    letter-spacing: -.005em;
    color: #fff;
    white-space: nowrap;
}
.dsb-notifications__back {
    all: unset;
    cursor: pointer;
    flex: none;
    width: 26px;
    height: 26px;
    margin: -4px 1.6px -4px -4.8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--dsb-menu-text-soft);
    transition: background-color .16s ease, color .16s ease;
}
.dsb-notifications__back:hover { background: var(--dsb-menu-hover); color: var(--dsb-menu-head); }
.dsb-notifications__back:focus-visible { outline: 2px solid var(--dsb-menu-head); outline-offset: 1px; }
.dsb-notifications__back svg { width: 12px; height: 12px; }
.dsb-notifications__n {
    display: inline-flex;
    align-items: center;
    height: 19px;
    padding: 0 8.8px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--dsb-mint-strong) 55%, transparent);
    color: var(--dsb-mint-strong);
    font-size: 10.24px;
    font-weight: 700;
    letter-spacing: .06em;
    white-space: nowrap;
    transition: opacity .18s ease, transform .18s ease;
}
.dsb-notifications__n[hidden] { display: inline-flex !important; opacity: 0; transform: scale(.8); }
.dsb-notifications__readall-form { margin: 0 0 0 auto; display: inline; }
.dsb-notifications__readall {
    all: unset;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--dsb-mint-strong);
    white-space: nowrap;
}
.dsb-notifications__readall:hover { text-decoration: underline; text-underline-offset: 2px; }
.dsb-notifications__readall:focus-visible { outline: 2px solid var(--dsb-menu-head); outline-offset: 2px; }
.dsb-notifications__readall[hidden] { display: inline !important; opacity: 0; pointer-events: none; }

.dsb-notifications__list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 0 7px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.28) transparent;
}
/* the day label is the only thing in spaced capitals: that is where the eye stops (2.30.5) */
.dsb-notifications__day {
    display: flex;
    align-items: center;
    gap: 11.2px;
    padding: 16.8px 17.6px 4.8px;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 10.4px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dsb-menu-text-soft);
}
.dsb-notifications__day::after { content: ""; flex: 1 1 auto; height: 1px; background: rgba(255,255,255,.12); }
.dsb-notifications__day:first-child { padding-top: 6.4px; }

/* a row: two levels of text (title, one soft line), a clock time, a quiet chevron, and a 10px status dot
   at the left in the weight's colour — red blocks, amber runs out, green is good, white is quiet.
   Unread: a soft white band, the brightest title, a glowing dot. Read: transparent, text steps down,
   the dot dims. Hover = the menu's own wash; nothing moves (2.30.3 third cut, 2.30.6). */
.dsb-notifications__item {
    all: unset;
    box-sizing: border-box;
    cursor: pointer;
    position: relative;
    display: flex;
    gap: 13.6px;
    align-items: flex-start;
    width: calc(100% - 14px);
    margin: 0 7px;
    padding: 13.6px 30.4px 14.4px 13.6px;
    border-radius: 10px;
    color: var(--dsb-menu-text);
    text-decoration: none;
    transition: background-color .16s ease;
}
.dsb-notifications__item + .dsb-notifications__item { margin-top: 6px; }
.dsb-notifications__item::after {
    content: "";
    position: absolute;
    left: 13.6px;
    right: 12.8px;
    bottom: 0;
    height: 1px;
    background: rgba(255,255,255,.09);
}
.dsb-notifications__item:last-child::after,
.dsb-notifications__item:has(+ .dsb-notifications__day)::after,
.dsb-notifications__item.is-unread::after { display: none; }
.dsb-notifications__item:hover,
.dsb-notifications__item:focus-visible { background: var(--dsb-menu-hover); color: var(--dsb-menu-text); text-decoration: none; }
.dsb-notifications__item:focus-visible { outline: 2px solid var(--dsb-menu-head); outline-offset: -2px; }
.dsb-notifications__item.is-unread { background: rgba(255,255,255,.085); }
.dsb-notifications__item.is-unread:hover,
.dsb-notifications__item.is-unread:focus-visible { background: rgba(255,255,255,.125); }

.dsb-notifications__chip {
    flex: none;
    width: 10px;
    height: 10px;
    margin-top: 6.4px;
    border-radius: 50%;
    background: var(--dsb-notification-dot, rgba(255,255,255,.42));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dsb-notification-dot, rgba(255,255,255,.42)) 22%, transparent),
                0 0 10px color-mix(in srgb, var(--dsb-notification-dot, rgba(255,255,255,.42)) 55%, transparent);
}
.dsb-notifications__item[data-sev="alert"] { --dsb-notification-dot: #ff8577; }
.dsb-notifications__item[data-sev="attention"] { --dsb-notification-dot: #ffc24a; }
.dsb-notifications__item[data-sev="good"] { --dsb-notification-dot: var(--dsb-mint-strong); }
.dsb-notifications__item--system .dsb-notifications__chip { --dsb-notification-dot: var(--dsb-warn); }
.dsb-notifications__item--system.is-info .dsb-notifications__chip { --dsb-notification-dot: rgba(255,255,255,.42); }
.dsb-notifications__item:not(.is-unread) .dsb-notifications__chip {
    opacity: 1;
    background: transparent;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--dsb-notification-dot, #fff) 55%, transparent);
}
/* the weight's wash (2.29.2): a small corner of colour at the row's top right, gone within the first quarter */
.dsb-notifications__item { isolation: isolate; }
.dsb-notifications__item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 12px;
    background: linear-gradient(225deg, color-mix(in srgb, var(--dsb-notification-wash, transparent) 46%, transparent) 0%,
                color-mix(in srgb, var(--dsb-notification-wash, transparent) 12%, transparent) 10%, transparent 24%);
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.dsb-notifications__item[data-sev]::before { opacity: 1; }
.dsb-notifications__item[data-sev="alert"] { --dsb-notification-wash: #ff5f52; }
.dsb-notifications__item[data-sev="attention"] { --dsb-notification-wash: #ffc24a; }
.dsb-notifications__item[data-sev="good"] { --dsb-notification-wash: var(--dsb-mint-strong); }

.dsb-notifications__body { min-width: 0; flex: 1 1 auto; display: block; }
.dsb-notifications__t {
    display: flex;
    align-items: baseline;
    gap: 9.6px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 14.7px;
    font-weight: 700;
    letter-spacing: .004em;
    line-height: 1.65; /* measured on the guide: 24.3px at 14.72px */
    color: rgba(255,255,255,.92);
}
.dsb-notifications__t > span { min-width: 0; }
.dsb-notifications__item.is-unread .dsb-notifications__t { color: #fff; }
.dsb-notifications__item:not(.is-unread) .dsb-notifications__t { color: rgba(255,255,255,.6); }
.dsb-notifications__t time {
    margin-left: auto;
    flex: none;
    font: 400 11.2px 'Roboto', sans-serif;
    color: var(--dsb-menu-text-soft);
    font-variant-numeric: tabular-nums;
}
.dsb-notifications__p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 3.2px 0 0;
    font-size: 12.6px;
    line-height: 1.45;
    color: var(--dsb-menu-text-soft);
}
.dsb-notifications__item:not(.is-unread) .dsb-notifications__p,
.dsb-notifications__item:not(.is-unread) .dsb-notifications__t time { opacity: .6; }
/* a message from Digital Servicebook folds open instead of being a door */
.dsb-notifications__item--system.is-open .dsb-notifications__p { display: none; }
.dsb-notifications__more {
    display: block;
    font-size: 12.8px;
    line-height: 1.5;
    color: var(--dsb-menu-text);
    margin-top: 8.8px;
    padding-top: 8.8px;
    border-top: 1px solid var(--dsb-menu-line);
}
.dsb-notifications__more[hidden] { display: none; }
.dsb-notifications__more a { color: var(--dsb-mint-strong); text-decoration: underline; }
/* the door's quiet chevron at the row's edge; it nudges and takes the accent on hover */
.dsb-notifications__dot {
    position: absolute;
    right: 15.2px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    color: var(--dsb-menu-text-soft);
    opacity: .55;
    transform: rotate(-45deg);
    transition: transform .2s ease, color .2s ease, opacity .2s ease;
}
.dsb-notifications__item:hover .dsb-notifications__dot,
.dsb-notifications__item:focus-visible .dsb-notifications__dot {
    opacity: 1;
    color: var(--dsb-mint-strong);
    transform: translateX(2px) rotate(-45deg);
}
.dsb-notifications__chev {
    position: absolute;
    right: 12.8px;
    bottom: 16px;
    width: 11px;
    height: 11px;
    color: var(--dsb-menu-text-soft);
    transition: transform .2s ease;
}
.dsb-notifications__item.is-open .dsb-notifications__chev { transform: rotate(180deg); }
.dsb-notifications__empty { padding: 27px 16px 30px; text-align: center; font-size: 13.4px; color: var(--dsb-menu-text-soft); }
.dsb-notifications__empty i { display: block; font-size: 20.8px; margin-bottom: 7.2px; color: var(--dsb-mint-strong); }

/* the same list as a page (/notifications — the phone's way in) and inline on a subject's own page:
   a block in the navy glass's colour rather than a layer; no back arrow (there is no menu) and, on the
   page, no second title under the page's own. */
.dsb-notifications--page,
.dsb-notifications--inline {
    position: static;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: var(--theme-nav-bg, #173A85);
    border-radius: 14px;
    overflow: hidden;
}
.dsb-notifications--page { max-width: 720px; }
.dsb-notifications--page .dsb-notifications__back,
.dsb-notifications--page .dsb-notifications__head > b,
.dsb-notifications--inline .dsb-notifications__back,
.dsb-notifications--inline .dsb-notifications__head { display: none; }
.dsb-notifications--inline .dsb-notifications__list { padding-top: 7px; }

/* the green dot after a company's name in the profile menu's company rows: something waits there
   (2.30.6), with a slow breathing ring (3.4 s, 2.30.8; off without motion). The name becomes a small row so
   the ring has room to breathe out past the text's edge. */
.dsb-ctx__name:has(> .dsb-ctx__new) { display: flex; align-items: center; gap: 8px; overflow: visible; padding-right: 8px; }
.dsb-ctx__nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsb-ctx__new {
    display: inline-block;
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dsb-mint-strong);
    position: relative;
    top: -1px;
    transition: opacity .2s ease, transform .2s ease;
}
.dsb-ctx__new::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid var(--dsb-mint-strong);
    opacity: 0;
    animation: dsbCtxPulse 3.4s ease-out infinite;
}
.dsb-ctx__new[hidden] { display: inline-block !important; opacity: 0; transform: scale(.4); }
@keyframes dsbCtxPulse { 0% { transform: scale(.7); opacity: .9; } 30% { transform: scale(1.45); opacity: 0; } 100% { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dsb-ctx__new::after { animation: none; } }

/* THE SERVICE BAR: a message from Digital Servicebook, full width directly under the navbar on every
   page — warn (yellow) for something down or limited now, info (the bar's navy) for planned work.
   It sits first in <main> and breaks out of the container to the viewport's edges. */
.dsb-service-bar {
    position: relative;
    z-index: 45;
    margin: 0 calc(50% - 50vw) 16px;
    font-family: 'Roboto', sans-serif;
    font-size: 13.8px;
    line-height: 1.35;
    text-align: left;
}
.dsb-service-bar__inner {
    display: flex;
    align-items: center;
    gap: 12.8px;
    max-width: 1320px;
    margin-inline: auto;
    padding: 9.6px clamp(20px, 4vw, 48px);
}
.dsb-service-bar--warn { background: color-mix(in srgb, var(--dsb-warn) 78%, #fff); color: var(--dsb-warn-ink); border-bottom: 1px solid var(--dsb-warn-line); }
.dsb-service-bar--info { background: var(--theme-nav-bg, #173A85); color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.dsb-service-bar__inner > i { flex: none; font-size: 16px; }
.dsb-service-bar__text { min-width: 0; flex: 1 1 auto; }
.dsb-service-bar__text p { margin: 0; }
.dsb-service-bar__text a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dsb-service-bar form { margin: 0; flex: none; }
.dsb-service-bar__x {
    all: unset;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    opacity: .7;
    transition: opacity .18s ease, background-color .18s ease;
}
.dsb-service-bar__x:hover { opacity: 1; background: rgba(0,0,0,.08); }
.dsb-service-bar--info .dsb-service-bar__x:hover { background: rgba(255,255,255,.14); }
.dsb-service-bar__x:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; opacity: 1; }
/* A derived to-do's door (AB#5866), e.g. "Choose a plan": an outline button in the bar's own colour. */
.dsb-service-bar__action {
    flex: none;
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .18s ease;
}
.dsb-service-bar__action:hover { background: rgba(0,0,0,.08); color: inherit; }
.dsb-service-bar--info .dsb-service-bar__action:hover { background: rgba(255,255,255,.14); }
.dsb-service-bar__action:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

/* THE TOAST (design guide V2 §16, 2.29.0–2.30.18 — .dg2-laycol, .dg2-toast*; AB#5042)
   An island in the menus' navy glass that drops from under the bar, top right: one line — a dot in the
   weight's colour, the title with its time, and × with its ring clock (9 s each). When more wait, one or two
   cards of the same glass peek out under it. Hover pauses the clock and opens the line's text under it.
   × or the clock brings the next one up from below; after the last the island draws back into the bar and
   the bubble's dot blinks once. A LAYER over the page, never in it: fixed, so nothing moves.
   Top = the page's own clearance under the fixed bar (.dsb-page-main: 80 / 84 / 98px) + 14px. */
.dsb-toast-column {
    position: fixed;
    top: 94px;
    right: 22px;
    z-index: 1040;
    width: 380px;
    max-width: calc(100% - 32px);
    pointer-events: none;
    /* the layer column (2.29.2): the toast, then the context note under it */
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (min-width: 768px) and (max-width: 980px) { .dsb-toast-column { top: 98px; } }
@media (min-width: 981px) { .dsb-toast-column { top: 112px; } }
@media (max-width: 767px) { .dsb-toast-column { right: 16px; } }

.dsb-toast {
    position: relative;
    isolation: isolate;
    width: 100%;
    opacity: 0;
    transform: translateY(-14px) scale(.96);
    filter: blur(3px);
    transition: opacity .34s cubic-bezier(.2,.7,.2,1), transform .46s cubic-bezier(.2,.9,.25,1.12), filter .3s ease;
    pointer-events: none;
    font-family: 'Roboto', sans-serif;
    text-align: left;
    color: var(--dsb-menu-text);
}
.dsb-toast.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; }
/* out of the column's flow while invisible, so a note takes the first place (guide .dg2-toast:not(.is-on)) */
.dsb-toast:not(.is-on) { position: absolute; top: 0; left: 0; right: 0; }
.dsb-toast.is-leaving {
    opacity: 0;
    transform: translateY(-12px) scale(.92);
    filter: blur(2px);
    transition: opacity .26s ease-in, transform .3s cubic-bezier(.4,0,.8,.4), filter .26s ease;
    pointer-events: none;
}
.dsb-toast__card {
    position: relative;
    background: var(--dsb-menu-bg);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    backdrop-filter: blur(24px) saturate(150%);
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px var(--dsb-menu-border), 0 26px 52px -26px rgba(15,23,38,.6), 0 2px 10px rgba(15,23,38,.12);
    overflow: hidden;
    transition: box-shadow .2s ease;
}
.dsb-toast:hover .dsb-toast__card,
.dsb-toast:focus-within .dsb-toast__card {
    box-shadow: inset 0 0 0 1px var(--dsb-menu-border), 0 32px 60px -26px rgba(15,23,38,.7), 0 3px 12px rgba(15,23,38,.16);
}
/* the cards waiting behind: one or two edges of the same glass under the island */
.dsb-toast::before,
.dsb-toast::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: -4px;
    height: 10px;
    border-radius: 0 0 12px 12px;
    background: var(--dsb-menu-bg);
    box-shadow: inset 0 0 0 1px var(--dsb-menu-border);
    z-index: -1;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .24s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.dsb-toast::after { left: 20px; right: 20px; bottom: -8px; }
.dsb-toast.has-2::before { opacity: .8; transform: none; }
.dsb-toast.has-3::after { opacity: .5; transform: none; }

.dsb-toast__head { display: flex; align-items: center; gap: 7.2px; padding: 0 8px 0 0; }
.dsb-toast__stage { position: relative; flex: 1 1 auto; min-width: 0; height: 46px; overflow: hidden; }
.dsb-toast__msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 11.2px;
    padding: 0 4px 0 16px;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
.dsb-toast__msg:hover, .dsb-toast__msg:focus-visible { color: inherit; text-decoration: none; }
.dsb-toast__msg:focus-visible { outline: 2px solid var(--dsb-menu-head); outline-offset: -3px; border-radius: 12px; }
.dsb-toast__dot {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--dsb-notification-dot, rgba(255,255,255,.5));
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--dsb-notification-dot, #fff) 16%, transparent),
                0 0 12px 0 color-mix(in srgb, var(--dsb-notification-dot, #fff) 45%, transparent);
}
.dsb-toast [data-sev="alert"] { --dsb-notification-dot: #ff8577; }
.dsb-toast [data-sev="attention"] { --dsb-notification-dot: #ffc24a; }
.dsb-toast [data-sev="good"] { --dsb-notification-dot: var(--dsb-mint-strong); }
.dsb-toast__t {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 14.4px;
    letter-spacing: .004em;
    color: #fff;
}
.dsb-toast__msg time {
    flex: none;
    margin-left: -1.6px;
    font: 400 11.2px 'Roboto', sans-serif;
    color: var(--dsb-menu-text-soft);
    font-variant-numeric: tabular-nums;
}
.dsb-toast__card { transition: box-shadow .2s ease, transform .44s cubic-bezier(.2,.9,.25,1.1), opacity .32s ease; }
/* 2.30.19: when one goes, the WHOLE card lifts towards the bubble and fades (a ghost of it), and the next
   card comes forward from the peeking stack, a touch lower and smaller, up to full size */
.dsb-toast__ghost { position: absolute; left: 0; right: 0; top: 0; z-index: 3; pointer-events: none; transition: transform .36s cubic-bezier(.4,0,.6,1), opacity .3s ease; }
.dsb-toast__ghost.is-up { transform: translateY(-26px) scale(.97); opacity: 0; }
.dsb-toast__card.is-next { transform: translateY(7px) scale(.965); opacity: .55; transition: none; }
.dsb-toast__msg.is-out { animation: dsbToastOut .22s cubic-bezier(.4,0,1,1) forwards; pointer-events: none; }
.dsb-toast__msg.is-in { animation: dsbToastIn .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dsbToastOut { to { transform: translateY(-9px); opacity: 0; } }
@keyframes dsbToastIn { from { transform: translateY(11px); opacity: 0; } }

/* how many wait is the peeking stack (::before / ::after above); 2.30.17 dropped the counter. */

/* × with its ring clock: the × is drawn, two lines through the exact middle */
.dsb-toast__x {
    flex: none;
    background: none;
    border: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--dsb-menu-text-soft);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition: background-color .18s ease, color .18s ease;
}
.dsb-toast__x:hover { background: var(--dsb-menu-hover); color: #fff; }
.dsb-toast__x:focus-visible { outline: 2px solid var(--dsb-menu-head); outline-offset: 1px; }
.dsb-toast__x > span { grid-area: 1 / 1; position: relative; width: 28px; height: 28px; }
.dsb-toast__x > span::before,
.dsb-toast__x > span::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transform: translate(-50%, -50%) rotate(45deg);
}
.dsb-toast__x > span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.dsb-toast__ring { grid-area: 1 / 1; width: 28px; height: 28px; transform: rotate(-90deg); pointer-events: none; }
.dsb-toast__ring circle { fill: none; stroke-width: 1.5; }
.dsb-toast__ring-bg { stroke: rgba(255,255,255,.14); }
.dsb-toast__ring-fg {
    stroke: var(--dsb-notification-dot, var(--dsb-mint-strong));
    stroke-linecap: round;
    stroke-dasharray: 75.4;
    stroke-dashoffset: 0;
}
/* the clock: the ring drains over 9 s; hover holds it where it is */
.dsb-toast__ring-fg.is-running { animation: dsbToastClock 9s linear forwards; }
.dsb-toast.is-held .dsb-toast__ring-fg { animation-play-state: paused; opacity: .45; }
@keyframes dsbToastClock { to { stroke-dashoffset: 75.4; } }

/* hover opens the line's text under it */
.dsb-toast__more {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .34s cubic-bezier(.2,.8,.2,1), opacity .24s ease;
}
.dsb-toast__more > div { min-height: 0; overflow: hidden; }
.dsb-toast:hover .dsb-toast__more,
.dsb-toast:focus-within .dsb-toast__more { grid-template-rows: 1fr; opacity: 1; }
.dsb-toast__p { margin: -4px 0 0; padding: 0 51px 13.6px 35px; font-size: 12.8px; line-height: 1.45; color: var(--dsb-menu-text-soft); cursor: pointer; }

/* an open nav menu always wins over the toast (it unfolds in the same corner) */
body:has(.dsb-nav-lang.dsb-lang-open) .dsb-toast-column,
body:has(.dsb-mob-open) .dsb-toast-column { visibility: hidden; }

/* after the last: the bubble's dot blinks once */
.dsb-navbar__unread.is-blink { animation: dsbDotBlink .75s ease-out; }
@keyframes dsbDotBlink { 0% { transform: scale(1); } 35% { transform: scale(1.7); } 100% { transform: scale(1); } }

/* without motion: no ring and no slide — the card still waits its 9 s */
@media (prefers-reduced-motion: reduce) {
    .dsb-toast, .dsb-toast.is-leaving { transition: opacity .01s; transform: none; filter: none; }
    .dsb-toast__msg.is-in, .dsb-toast__msg.is-out, .dsb-navbar__unread.is-blink { animation: none; }
    .dsb-toast__ghost { display: none; }
    .dsb-toast__ring { display: none; }
}

/* THE ARRIVAL NOTE after a context switch (design guide §7 "After a switch", .dg2-ctxnote; 2.29.2, 2.30.10)
   §5's info alert made solid — a layer over the page must not let the page through — in the layer column
   under the toast. dsbCtxNote in dsb.js places it and runs its 7 s. */
.dsb-ctxnote {
    position: relative;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
}
.dsb-ctxnote.is-on { opacity: 1; transform: none; }
.dsb-ctxnote__card {
    position: relative;
    pointer-events: auto;
    margin: 0;
    padding-right: 41.6px;
    align-items: center;
    font-size: 13.44px;
    line-height: 1.45;
    box-shadow: 0 24px 48px -20px rgba(15,23,38,.45), 0 2px 8px rgba(15,23,38,.06);
}
.dsb-ctxnote__card.dsb-alert--info { background: color-mix(in srgb, #1d2d49 6%, #fff); }
/* the same layer for a page's own outcome (a reminder sent, AB#5073): the success and warning washes made solid */
.dsb-ctxnote__card.dsb-alert--success { background: color-mix(in srgb, rgb(59,156,104) 10%, #fff); }
.dsb-ctxnote__card.dsb-alert--warning { background: color-mix(in srgb, var(--dsb-warn-bg) 100%, #fff); }
.dsb-ctxnote__card > i { margin-top: 0; }
.dsb-ctxnote__x {
    position: absolute;
    right: 9.6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    font-size: 20.8px;
    line-height: 1;
    color: inherit;
    opacity: .6;
    cursor: pointer;
    padding: 3.2px 6.4px;
}
.dsb-ctxnote__x:hover { opacity: 1; }
.dsb-ctxnote__x:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: 1px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .dsb-ctxnote { transition: opacity .01s; transform: none; } }

/* TOUCH TARGETS. A 22-30px control is under every platform's floor (iOS asks 44). These are small
   by design - an icon beside a value, a lock on a gated row - so the box stays its size and only
   the area that answers a finger grows around it. Measured before: copy 26px, the gate's lock
   22px, Del detaljer 30px. */
@media (max-width: 991px) {
    .dsb-copy, .dsb-feature-gate__lock { position: relative; }
    .dsb-copy::after, .dsb-feature-gate__lock::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 44px;
        height: 44px;
        transform: translate(-50%, -50%);
    }
    .dsb-srch-facts__share { min-height: 40px; }
}

/* =============================================
   STAT CARDS (.dsb-stat*) — the dashboards' figure cards (guide .dg2-stats). Workshop and fleet.
   ============================================= */
/* An author display beats the [hidden] attribute, so the card row says it. */
.dsb-stats [hidden] { display: none !important; }
.dsb-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* minmax(0,…): content can never widen a card */
    gap: 16px;
    margin-bottom: 16px;
}

/* .dsb-card has no padding of its own; the guide's .dg2-card does (1.15rem 1.3rem) and a hairline one
   step firmer than --dsb-border-light. */
.dsb-stat {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    display: flex;
    flex-direction: column;
    padding: 18.4px 20.8px;
    border-color: var(--dsb-border-color);
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform;
}
/* A tablet keeps the three in one row, shorter, so the work list starts on the first screen. */
@media (min-width: 768px) and (max-width: 1024px) {
    .dsb-stats { gap: 12px; }
    .dsb-stat { min-height: 0; padding: 14.4px 16px; }
}
/* The whole card is a click target: a stretched link BEHIND the figures (z 0 vs their z 1). */
.dsb-stat__cardlink { position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.dsb-stat:hover,
.dsb-stat:has(> .dsb-stat__cardlink:focus-visible) {
    transform: scale(1.01);
    box-shadow: 0 3px 12px rgba(38, 63, 107, .14);
}
@media (prefers-reduced-motion: reduce) {
    .dsb-stat, .dsb-stat:hover, .dsb-stat:has(> .dsb-stat__cardlink:focus-visible) { transition: none; transform: none; will-change: auto; }
}
.dsb-stat__head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 9.6px;
    margin: -4.8px 0 0 -7.2px; /* icon + name pull into the corner */
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.65;
    color: var(--stat-c, var(--theme-primary));
    pointer-events: none;
}
.dsb-stat__chip {
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(29, 45, 73, .07);
    color: var(--stat-c, var(--theme-primary));
    font-size: 15px;
}
.dsb-stat__figs {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    margin: auto 0;
    padding: 9.6px 0;
    pointer-events: none;
}
.dsb-stat__fig {
    flex: 1;
    min-width: 0;
    display: block;
    text-align: center;
    padding: 9.6px 8px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none !important;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color .18s ease;
}
.dsb-stat__fig:first-child {
    border-right: 1px solid var(--dsb-border-color);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.dsb-stat__fig + .dsb-stat__fig { border-top-left-radius: 0; border-bottom-left-radius: 0; }
a.dsb-stat__fig:hover { background: rgba(29, 45, 73, .08); }
a.dsb-stat__fig:focus-visible { outline: none; box-shadow: var(--dsb-focus-ring); }
.dsb-stat__num {
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 800;
    font-size: 30.4px;
    line-height: 1;
    color: var(--dsb-head-color);
    font-variant-numeric: tabular-nums;
}
.dsb-stat__lbl {
    margin-top: 5.6px;
    font-size: 12.8px;
    line-height: 1.65;
    color: var(--dsb-text-muted);
}
/* The card's own icon, huge in the corner, in one quiet gradient shared by all three cards. */
.dsb-stat__wm {
    position: absolute;
    z-index: 0;
    right: -16px;
    bottom: -20px;
    font-size: 128px;
    line-height: 1;
    pointer-events: none;
    background: linear-gradient(to top left, #A2B4D2, #ffffff 80%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: .25;
}

/* The dots under the swipe row are hidden until the phone rule below turns them on. */
.dsb-statdots { display: none; }

/* ---------- The stat cards on a phone (guide "MOBILE 2.31.0", #dg2d .dg2-stats) ----------
   Three stacked cards cost three screens of scrolling before the day's work; the guide lays them in one
   row you swipe, each card 84% wide so its neighbours peek, snapping to the one you land on, with dots
   under it. The row bleeds to the screen edges and hides its scrollbar. Nothing but the layout changes:
   the same cards, the same links, the same figures. All values in px (vendor.css puts html at 10px, so
   this file carries no rem). */
@media (max-width: 767px) {
    .dsb-stats {
        display: flex;
        grid-template-columns: none;
        gap: 9.6px;
        /* Out to the screen edges and back in, so a card can sit flush at either end. The bleed is
           .container's own gutter (12px): one pixel more and the page scrolls sideways. */
        margin: 0 -12px 12.8px;
        padding: 2px 12px 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 12px;
        scrollbar-width: none;
        overscroll-behavior-x: contain;
    }
    .dsb-stats::-webkit-scrollbar { display: none; }
    .dsb-stat {
        flex: 0 0 84%;
        min-height: 0;
        padding: 15.2px 16px 12.8px;
        scroll-snap-align: center;   /* the card you land on stands centred, one peeking at each side */
    }
    .dsb-stat:first-child { scroll-snap-align: start; }
    .dsb-stat:last-child { scroll-snap-align: end; }
    .dsb-stat__head { margin: 0; font-size: 15.2px; gap: 8px; }
    .dsb-stat__chip { width: 30px; height: 30px; border-radius: 9px; font-size: 13px; }
    .dsb-stat__figs { margin: 0; padding: 7.2px 0 0; }
    .dsb-stat__fig { padding: 7.2px 4.8px; }
    .dsb-stat__num { font-size: 25.6px; }
    .dsb-stat__lbl { font-size: 12.5px; margin-top: 4.8px; }
    .dsb-stat__wm { font-size: 96px; right: -12px; bottom: -16px; }
    /* A phone has no hover: neither the card nor a figure may light up under a passing pointer. */
    .dsb-stat:hover, .dsb-stat:has(> .dsb-stat__cardlink:focus-visible) { transform: none; box-shadow: var(--dsb-card-shadow, none); }
    a.dsb-stat__fig:hover { background: transparent; }
    a.dsb-stat__fig:active { background: rgba(29, 45, 73, .08); }   /* the tap's answer instead */
    .dsb-statdots { display: flex; justify-content: center; gap: 6px; margin: -4.8px 0 14.4px; }
}

/* The dots: built by dsbStatDots in dsb.js. */
.dsb-statdots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(29, 45, 73, .18);
    transition: background-color .18s ease, width .18s ease;
}
.dsb-statdots i.is-on { width: 16px; border-radius: 3px; background: var(--theme-nav-bg, #173A85); }
@media (prefers-reduced-motion: reduce) {
    .dsb-statdots i { transition: none; }
}

/* =============================================
   AUTH CARD (.dsb-auth*) — one centred card for signing in and registering, with a line under it.
   ============================================= */
.dsb-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px;
}
.dsb-auth__card { width: 100%; max-width: 440px; }
.dsb-auth__submit { width: 100%; margin-top: 8px; }
.dsb-auth__foot,
.dsb-auth__outside {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}
.dsb-auth__outside { margin-top: 20px; color: var(--dsb-text-muted); }
.dsb-auth__foot a,
.dsb-auth__outside a { color: var(--dsb-link-color); text-decoration: underline; }
@media (max-width: 767px) {
    .dsb-auth { padding: 24px 0; }
    .dsb-auth__submit { min-height: 44px; }
}

/* =============================================
   FORM RULE (.dsb-form-rule) — a requirement under a field: an empty circle that becomes a tick once it is met.
   Onboarding and register. The page script toggles .is-ok.
   ============================================= */
.dsb-form-rules { list-style: none; margin: 6.4px 0 0; padding: 0; }
.dsb-form-rule {
    display: flex;
    align-items: center;
    gap: 7.2px;
    margin-top: 6.4px;
    font-size: 12.8px;
    color: var(--dsb-text-muted);
    transition: color .18s ease;
}
.dsb-form-rules .dsb-form-rule { margin-top: 3.2px; }
.dsb-form-rule i { font-size: 11.5px; }
.dsb-form-rule .fa-circle-check { display: none; }
.dsb-form-rule.is-ok { color: var(--dsb-alert-success-text); }
.dsb-form-rule.is-ok .fa-circle { display: none; }
.dsb-form-rule.is-ok .fa-circle-check { display: inline; }
@media (prefers-reduced-motion: reduce) { .dsb-form-rule { transition: none; } }

/* =============================================
   THUMBNAIL STRIP (.dsb-thumbs) — a row's photos at a glance, inside a table cell (AB#1430).
   Up to a few square thumbs edge to edge, then a "+N" tile for the rest. Generic: any list whose
   rows carry images (repair albums, service-book pages, later a vehicle's documents).
   ============================================= */
.dsb-thumbs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}
.dsb-thumbs__item,
.dsb-thumbs__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--dsb-bg-subtle);
    border: 1px solid var(--dsb-border-color);
    flex: none;
}
.dsb-thumbs__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dsb-thumbs__more {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--dsb-text-muted);
    font-variant-numeric: tabular-nums;
}

/* =============================================
   GALLERY (.dsb-gallery) — a grid of square photo tiles (AB#1430).
   The service-book album, a repair album's photos, and the same tiles in a form, where each tile
   gains its x (.dsb-gallery--edit). A tile may carry a stamp (a .dsb-pill in .dsb-gallery__stamp)
   at its top-left. The tile is a link the host wires to its lightbox; no rule here depends on
   which lightbox that is.
   ============================================= */
.dsb-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}
/* The same tiles a step smaller: inside a record sheet's value cell (a flex row, hence the width),
   where 132 px tiles would leave two to a row. */
.dsb-gallery--compact {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 8px;
    flex: 1 1 100%;
}
.dsb-gallery__item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--dsb-radius);
    overflow: hidden;
    background: var(--dsb-bg-subtle);
    border: 1px solid var(--dsb-border-color);
    transition: border-color .18s ease, box-shadow .18s ease;
}
.dsb-gallery__item:hover,
.dsb-gallery__item:focus-within {
    border-color: var(--dsb-fld-hover-line, var(--dsb-border-color));
    box-shadow: 0 2px 10px rgba(29, 45, 73, .12);
}
.dsb-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
}
.dsb-gallery__link:focus-visible { outline: 2px solid var(--dsb-link-color); outline-offset: -2px; }
.dsb-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .18s ease;
}
.dsb-gallery__item:hover img { transform: scale(1.03); }
.dsb-gallery__stamp {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 1;
    pointer-events: none;
}
/* A pill's tint is made for paper, not a photo: over an image it gets a solid white ground and a
   shadow, so its word reads on any picture. */
.dsb-gallery__stamp .dsb-pill {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .28);
}
/* The x of an editable tile: the attachment chip's x, laid over the photo's corner. Quiet until the
   tile is noticed (the row-action rule), always visible where there is no pointer. */
.dsb-gallery__x {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(21, 17, 12, .62);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity .15s ease, background-color .18s ease;
}
.dsb-gallery__item:hover .dsb-gallery__x,
.dsb-gallery__x:focus-visible { opacity: 1; }
.dsb-gallery__x:hover,
.dsb-gallery__x:focus-visible { background: var(--dsb-danger); }
.dsb-gallery__item.is-out { opacity: 0; transition: opacity .18s ease; }
@media (hover: none) { .dsb-gallery__x { opacity: 1; } }
.dsb-gallery__empty {
    grid-column: 1 / -1;
    color: var(--dsb-text-muted);
    font-size: 13.76px;
    padding: 12px 0;
}
@media (max-width: 767px) {
    .dsb-gallery { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .dsb-gallery__item, .dsb-gallery__item img, .dsb-gallery__x, .dsb-gallery__item.is-out { transition: none; }
    .dsb-gallery__item:hover img { transform: none; }
}

/* =============================================
   LIGHTBOX (.dsb-lightbox) — the photo viewer (AB#1430, dsbLightbox in dsb.js).
   One element for the whole platform, built by the script on first use. The photo at its largest on
   a near-black ground (the modal's tint, deeper: a photo wants no colour around it), the arrows at
   the sides, Close at the corner, the counter under the photo. It opens over everything, the modals
   included (its z-index is set by the script from the topmost open modal). Phone: the arrows go, a
   swipe steps; the buttons stay large enough for a thumb. The gallery (.dsb-gallery) is where it is
   opened from; the magnific-popup that did this before is not used for photos any more.
   ============================================= */
.dsb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 38, .92);
    visibility: hidden;
    opacity: 0;
    transition: opacity .16s ease, visibility 0s linear .16s;
    -webkit-user-select: none;
    user-select: none;
}
.dsb-lightbox.is-open {
    visibility: visible;
    opacity: 1;
    transition: opacity .2s ease, visibility 0s;
}
body.dsb-lightbox-open { overflow: hidden; }
.dsb-lightbox__stage {
    position: relative;
    margin: 0;
    max-width: calc(100vw - 128px);
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.dsb-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 88px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--dsb-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
    background: #0b1220;
    cursor: pointer;
    transition: opacity .18s ease, filter .18s ease;
}
/* The thumbnail standing in for the original: softened, so the swap reads as "arriving", not as a jump. */
.dsb-lightbox__img.is-thumb { filter: blur(6px); }
.dsb-lightbox__img:not([src]) { visibility: hidden; min-width: 240px; min-height: 240px; }
.dsb-lightbox__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -20px 0 0 -20px;
    display: none;
    color: #fff;
    background-color: rgba(255, 255, 255, .25);
}
.dsb-lightbox.is-loading .dsb-lightbox__spinner { display: inline-block; }
.dsb-lightbox.is-failed .dsb-lightbox__img { opacity: .35; }
.dsb-lightbox__bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 24px;
    padding: 10px 2px 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13.76px;
    line-height: 1.3;
}
.dsb-lightbox__caption { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsb-lightbox__counter { flex: 0 0 auto; margin-left: auto; font-variant-numeric: tabular-nums; }
.dsb-lightbox__close,
.dsb-lightbox__nav {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .82);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.dsb-lightbox__close:hover,
.dsb-lightbox__nav:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.dsb-lightbox__close:focus-visible,
.dsb-lightbox__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.dsb-lightbox__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
}
.dsb-lightbox__nav {
    top: 50%;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    font-size: 18px;
}
.dsb-lightbox__nav--prev { left: 16px; }
.dsb-lightbox__nav--next { right: 16px; }
.dsb-lightbox__nav[hidden] { display: none; }
@media (max-width: 767px) {
    .dsb-lightbox__stage { max-width: 100vw; padding: 0 8px; }
    .dsb-lightbox__img { max-height: calc(100vh - 72px); border-radius: 0; }
    .dsb-lightbox__nav { display: none; }
    .dsb-lightbox__close { top: 10px; right: 10px; background: rgba(0, 0, 0, .35); }
    .dsb-lightbox__bar { padding: 8px 6px 0; }
}
@media (prefers-reduced-motion: reduce) {
    .dsb-lightbox, .dsb-lightbox.is-open, .dsb-lightbox__img, .dsb-lightbox__close, .dsb-lightbox__nav { transition: none; }
}

/* =============================================
   INVOICE SHEET (.dsb-invoice)
   =============================================
   One service's invoice: who issued it and its facts (.dsb-panel + .dsb-kv), then its lines
   (.dsb-table), then its notes. Rendered by the invoice pop-up (Partials/_InvoiceModalContent),
   the invoice page and its printout (Partials/_InvoiceSheet). Was css/pages/invoice.css while the
   invoice was a page of its own (until 2026-10-29).
   ============================================= */
.dsb-invoice__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: start;
}
.dsb-invoice__from .dsb-sec-sub { margin-top: 4px; }
.dsb-invoice__head .dsb-kv > div:last-child { border-bottom: 0; }
.dsb-invoice__vin { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.dsb-invoice .dsb-table-wrapper { margin-top: 16px; }

.dsb-invoice .dsb-table th.dsb-invoice__qty,
.dsb-invoice .dsb-table td.dsb-invoice__qty { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsb-invoice__part { white-space: nowrap; font-variant-numeric: tabular-nums; }

.dsb-invoice__notes { margin-top: 28px; }
.dsb-invoice__notes p {
    margin: 6px 0 0;
    max-width: 70ch;
    font-size: 14.4px;
    line-height: 1.5;
    color: var(--dsb-text-color);
}

@media (max-width: 767px) {
    .dsb-invoice__head { grid-template-columns: minmax(0, 1fr); gap: 16px; }

    /* The lines as ONE card with a row each (the table's own card is a card per row, too tall for an
       invoice of twenty lines): what it is, its part number under it, the quantity on the right. */
    .dsb-invoice .dsb-table--owncard > tbody {
        border: 1px solid var(--dsb-border-light);
        border-radius: 12px;
        background: #fff;
    }
    .dsb-invoice .dsb-table--owncard > tbody > tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 16px;
        align-items: center;
        border: 0;
        border-radius: 0;
        background: none;
    }
    .dsb-invoice .dsb-table--owncard > tbody > tr + tr { margin-top: 0; border-top: 1px solid var(--dsb-border-light); }
    .dsb-invoice__desc { grid-column: 1; grid-row: 1; font-weight: 500; overflow-wrap: anywhere; }
    .dsb-invoice .dsb-table td.dsb-invoice__part { grid-column: 1; grid-row: 2; margin-top: 2px; font-size: 12.8px; color: var(--dsb-text-muted); }
    .dsb-invoice .dsb-table td.dsb-invoice__qty { grid-column: 2; grid-row: 1 / span 2; font-weight: 500; }
    .dsb-invoice .dsb-table td.dsb-invoice__qty::before {
        content: attr(data-label);
        display: block;
        font-size: 11.2px;
        font-weight: 400;
        color: var(--dsb-text-muted);
    }
}

/* =============================================
   PULL TO REFRESH (inside the mobile shell only: html[data-app], dsbPullRefresh in dsb.js)
   A white disc that comes down from under the status bar with the pull, carrying the comet arc at rest.
   Past the threshold the arc takes the action colour; while the page reloads it turns. The disc follows
   the finger without easing (its transform is set per move); the transition only plays the retract.
   ============================================= */
.dsb-pull {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) - 44px);
    left: 50%;
    z-index: 1200;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(29, 45, 73, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, 0);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease-out, opacity .12s ease;
}
.dsb-pull .dsb-spinner { color: var(--dsb-navy-light); animation: none; }
.dsb-pull--armed { opacity: 1; transition: opacity .12s ease; }
.dsb-pull--ready .dsb-spinner { color: var(--theme-action); }
.dsb-pull--loading .dsb-spinner { animation: dsb-spin 1.6s linear infinite; }
@media (prefers-reduced-motion: reduce) {
    .dsb-pull { transition: none; }
}

/* =============================================
   STEPS ROW (AB#4735, shared since the OE upload sign-up wizard): numbered steps on a track; the green
   stretch runs to where the person stands. --n = visible steps, --g = how far they have come.
   ============================================= */

.dsb-steps {
    --steps-accent: var(--theme-action);
    --steps-accent-deep: var(--theme-action-dark);
    --steps-on: var(--theme-nav-bg);
    --steps-disc: color-mix(in srgb, var(--dsb-head-color) 30%, #fff);
    --steps-track: color-mix(in srgb, var(--dsb-head-color) 16%, #fff);
}

.dsb-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.dsb-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--n), minmax(0, 1fr));
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

/* The track runs from the first circle's centre to the last one's; the green stretch up to where you stand. */
.dsb-steps::before,
.dsb-steps::after {
    content: "";
    position: absolute;
    top: 14px;
    height: 3px;
    border-radius: 2px;
    left: calc(50% / var(--n));
}

.dsb-steps::before {
    right: calc(50% / var(--n));
    background: var(--steps-track);
}

.dsb-steps::after {
    right: calc(100% - (var(--g) - .5) * 100% / var(--n));
    background: var(--steps-accent);
}

.dsb-steps li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6.4px;
    min-width: 0;
}

.dsb-steps .n {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--steps-disc);
    color: #fff;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    font-size: 13.1px;
    line-height: 1;
}

.dsb-steps .n i { font-size: 11.5px; }

.dsb-steps .t {
    font-weight: 500;
    font-size: 12.2px;
    line-height: 1.2;
    color: var(--dsb-text-light);
    white-space: nowrap;
}

.dsb-steps li.is-on .n { background: var(--steps-on); }
.dsb-steps li.is-on .t { color: var(--dsb-head-color); font-weight: 700; }
.dsb-steps li.is-done .n { background: var(--steps-accent); }
.dsb-steps li.is-done .t { color: var(--steps-accent-deep); }

/* A step that only applies to some account types (Company, Plan), hidden while it does not. */
.dsb-steps li[hidden] { display: none; }

@media (max-width: 420px) {
    /* A long step name (Digital Servicebook Connect) wraps under its dot instead of running into the next. */
    .dsb-steps .t { font-size: 10.9px; white-space: normal; text-align: center; }
}

/* =============================================
   CHOICE TILE (AB#4735, shared since the OE upload sign-up wizard): a radio drawn as a card with a dot;
   the chosen one takes the action colour. Markup: label.dsb-choice > input + .dsb-choice__dot + __ic? + __t/__d.
   ============================================= */

.dsb-choice {
    position: relative;
    display: flex;
    gap: 11.2px;
    align-items: flex-start;
    padding: 13.6px 38.4px 13.6px 14.4px;
    border: 1px solid var(--dsb-border-color);
    border-radius: var(--dsb-radius);
    background: #fff;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.dsb-choice:hover {
    border-color: var(--dsb-fld-hover-line);
    background: var(--dsb-fld-hover-bg);
}

.dsb-choice input {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    border: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.dsb-choice__dot {
    position: absolute;
    top: 50%;
    right: 13.6px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 1px solid var(--dsb-border-color);
    border-radius: 50%;
    transition: background-color .15s ease, border-color .15s ease;
}

.dsb-choice input:checked ~ .dsb-choice__dot {
    background: var(--theme-action);
    border-color: var(--theme-action);
}

.dsb-choice:has(input:checked) {
    border-color: var(--theme-action);
    box-shadow: inset 0 0 0 1px var(--theme-action);
    background: color-mix(in srgb, var(--theme-action) 5%, #fff);
}

.dsb-choice:has(input:focus-visible) {
    box-shadow: var(--dsb-fld-focus-shadow), inset 0 0 0 1px var(--dsb-fld-focus-line);
}

.dsb-choice__ic {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(29, 45, 73, .07);
    color: var(--theme-nav-bg);
    font-size: 15px;
}

.dsb-choice__t {
    display: block;
    font-weight: 500;
    font-size: 14.7px;
    line-height: 1.25;
    color: var(--dsb-head-color);
}

.dsb-choice__d {
    display: block;
    margin-top: 2.4px;
    font-size: 12.8px;
    line-height: 1.4;
    color: var(--dsb-text-muted);
}

/* AB#6389: a km or date that differs from the invoice, and the service's change history. */
.dsb-kv .dsb-record__diff {
    grid-column: 2;
    margin: 3.2px 0 0;
    font-weight: 400;
    font-size: 13.76px;
    line-height: 1.45;
    color: var(--dsb-text-muted);
}
.dsb-record__changes {
    margin: 8px 0;
    font-size: 13.76px;
    color: var(--dsb-text-muted);
}
.dsb-record__changes summary { cursor: pointer; color: var(--dsb-link-color); }
.dsb-record__changes ul { list-style: none; margin: 8px 0 0; padding: 0; }
.dsb-record__changes li { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid rgba(29, 45, 73, .08); }
.dsb-record__changes-why { font-style: italic; }
.dsb-diffmark { margin-left: 6px; font-size: 12px; color: var(--dsb-text-light); cursor: help; }
.dsb-record__reason-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.dsb-record__reason textarea { margin-top: 6px; }

/* AB#6390: a field of the request-a-correction form that differs from the value the form opened with. */
.dsb-field.is-changed {
    box-shadow: inset 3px 0 0 var(--dsb-link-color);
    padding-left: 10px;
}
