/* Workspace UI follows the compact, information-first conventions of modern
   administrative portals while keeping DosseyWorks' own identity. */

/* Self-hosted Inter (Api#571, the owner's call on 2026-10-31, superseding the
   Selawik decision of roadmap 20.1). The owner read DosseyWorks' text as muddy
   at the sizes this interface actually uses and asked for Inter's clarity in its
   place. One variable file carries every weight the interface asks for as a real
   drawn weight rather than a browser's synthetic smear, and its optical-size
   axis redraws the letterforms for 13px that it draws for 26px -- which is the
   part that speaks to the complaint. Self-hosted, so nothing is fetched from a
   font service at runtime; licence in wwwroot/fonts/INTER-LICENSE.txt. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-variable.woff2") format("woff2"); }

/* The alternative the workspace may choose (Api#573). IBM Plex Sans is the
   other face the owner wanted to read the interface in, self-hosted on the
   same terms as Inter -- variable, from wwwroot/fonts, nothing fetched at
   runtime, licence in wwwroot/fonts/IBM-PLEX-LICENSE.txt. Two files rather
   than one because Plex is published as unicode-range subsets: the browser
   fetches the second only for a page that actually uses a Latin Extended
   glyph, so the ordinary cost is the first file alone. Its weight axis stops
   at 700, which is every weight this interface asks for. */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("fonts/ibm-plex-sans-variable-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("fonts/ibm-plex-sans-variable-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* Design tokens (roadmap 20.2). This block is the ONLY place a literal colour
   may appear in this file; DesignTokenTests holds that. Colour resolves
   through the MudBlazor palette the theme provider emits, so switching the
   palette moves every native surface with it. Where the palette has no slot
   -- the tint behind a status and the ink on it -- a light-dark() pair names
   both themes explicitly; color-scheme follows the provider so the pair
   resolves with it. */
:root {
    color-scheme: var(--mud-native-html-color-scheme, light);

    /* Type: one stack, the same one DosseyWorksTypography gives MudBlazor. The
       fallbacks matter only for the instant before the woff2 arrives. */
    --dw-font-family: "Inter", Helvetica, Arial, sans-serif;
    /* Mono is for technical content only -- a DNS record to publish, an
       issued key, a template placeholder, a posting rule (Api#573). It was
       reaching SKUs, order numbers and account numbers too, because a
       hundred pages opted ordinary business data into dw-monospace; that is
       swept, and DesignTokenTests now names the pages allowed to ask. The
       platform mono leads, so what is left reads as this machine's code face
       rather than as Consolas specifically. */
    --dw-font-family-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;

    /* Weight: four real faces out of the one variable file, each with a job
       (Api#571). 400 reads body copy and table values. 500 carries a field
       label and an on-surface command, where Inter's 600 sits heavier than
       Selawik's 600 did and would have changed the page's weight balance under
       the guise of changing its font. 600 stays on headings and emphasis. 700
       is left to native strong, which the variable file can now actually draw. */
    --dw-font-weight-body: 400;
    --dw-font-weight-label: 500;
    --dw-font-weight-emphasis: 600;
    --dw-font-weight-strong: 700;
    --dw-font-xs: 13px;
    --dw-font-sm: 14px;
    --dw-font-md: 15px;
    --dw-font-lg: 16px;
    --dw-font-xl: 18px;
    --dw-font-2xl: 20px;
    --dw-font-3xl: 24px;
    --dw-font-kpi: 26px;

    /* Space. */
    --dw-space-1: 2px;
    --dw-space-2: 4px;
    --dw-space-3: 6px;
    --dw-space-4: 8px;
    --dw-space-5: 12px;
    --dw-space-6: 16px;
    --dw-space-7: 20px;
    --dw-space-8: 24px;
    --dw-space-9: 32px;

    /* Controls: the one scale (roadmap 20.1, decision four). Fluent 2's own
       small / medium / large, and nothing between them. */
    --dw-control-sm: 24px;
    --dw-control-md: 32px;
    --dw-control-lg: 40px;

    /* Radius. */
    --dw-radius-sm: 2px;
    --dw-radius-md: 4px;
    --dw-radius-lg: 6px;
    --dw-radius-pill: 10px;

    /* Widths: the sizing scale, each named for what it bounds. */
    --dw-width-reading: 520px;
    --dw-width-dialog-narrow: 680px;
    --dw-width-dialog: 760px;
    --dw-width-dialog-wide: 960px;
    --dw-width-kiosk: 820px;
    /* The kiosk's own touch scale (20.22): a floor screen read at arm's length, pressed with a glove on. */
    --dw-kiosk-text-xs: 16px;
    --dw-kiosk-text-sm: 18px;
    --dw-kiosk-text: 20px;
    --dw-kiosk-text-md: 22px;
    --dw-kiosk-text-lg: 24px;
    --dw-kiosk-text-xl: 30px;
    --dw-control-touch: 56px;
    --dw-width-editor: 1100px;
    --dw-width-context: 1440px;

    /* Colour: action. */
    --dw-color-action: var(--mud-palette-primary);
    --dw-color-action-hover: light-dark(#115ea3, #62abf5);
    --dw-color-action-tint: light-dark(#eff6fc, #0b2a45);
    --dw-color-action-tint-border: light-dark(#c7e0f4, #1f4a73);
    --dw-color-on-action: var(--mud-palette-primary-text);
    --dw-color-focus-ring: rgba(var(--mud-palette-primary-rgb), .25);
    --dw-color-accent: var(--mud-palette-secondary);
    --dw-color-accent-tint: light-dark(#fdf6f4, #2a1512);
    /* The avatar's disc and the initials on it (20.15): the brand red darkened
       until white initials pass 4.5:1, and the light red with dark ink in dark. */
    --dw-color-avatar: light-dark(#b8281c, #f1707b);
    --dw-color-on-avatar: light-dark(#ffffff, #1a1a1a);
    --dw-color-cta: var(--mud-palette-dark);
    --dw-color-on-cta: var(--mud-palette-dark-text);

    /* Colour: text. */
    --dw-color-text: var(--mud-palette-text-primary);
    --dw-color-text-muted: var(--mud-palette-text-secondary);
    --dw-color-text-disabled: var(--mud-palette-text-disabled);
    /* The app bar is black in both themes, so what sits on it does not move. */
    --dw-color-text-on-bar: var(--mud-palette-appbar-text);
    --dw-color-text-on-bar-muted: rgba(255,255,255,.72);
    --dw-color-bar-hover: rgba(255,255,255,.12);
    --dw-color-bar-active: rgba(255,255,255,.22);

    /* Colour: surfaces. */
    --dw-color-canvas: var(--mud-palette-background);
    --dw-color-surface: var(--mud-palette-surface);
    --dw-color-surface-raised: var(--mud-palette-drawer-background);
    --dw-color-surface-subdued: var(--mud-palette-background-gray);
    --dw-color-surface-hover: var(--mud-palette-table-hover);
    --dw-color-backdrop: var(--mud-palette-overlay-dark);
    --dw-color-shadow: light-dark(rgba(0,0,0,.08), rgba(0,0,0,.55));
    --dw-color-shadow-strong: light-dark(rgba(0,0,0,.2), rgba(0,0,0,.75));

    /* Colour: borders, three weights. */
    --dw-color-border-subtle: var(--mud-palette-divider);
    --dw-color-border: var(--mud-palette-lines-default);
    --dw-color-border-strong: var(--mud-palette-lines-inputs);
    --dw-color-border-muted: var(--mud-palette-gray-light);

    /* Colour: meaning. Each has the colour itself, the tint behind a status
       chip or notice, and the ink that reads on that tint. */
    --dw-color-success: var(--mud-palette-success);
    --dw-color-success-tint: light-dark(#dff6dd, #0f2e0f);
    --dw-color-success-ink: light-dark(#0b6a0b, #9fd89f);
    --dw-color-warning: var(--mud-palette-warning);
    --dw-color-warning-tint: light-dark(#fff4ce, #3a2a0a);
    --dw-color-warning-ink: light-dark(#7a4d05, #fdd9a6);
    --dw-color-danger: var(--mud-palette-error);
    --dw-color-danger-tint: light-dark(#fde7e9, #3f1215);
    --dw-color-danger-ink: light-dark(#a4262c, #f8b4b9);
    --dw-color-info-tint: light-dark(#f3f9fd, #16232f);
    --dw-color-info-ink: light-dark(#004578, #9ccbff);

    /* Paper: the work-order packet is a printed document, so it does not follow
       the screen theme. White text on a dark theme would print as nothing. */
    --dw-color-paper: #fff;
    --dw-color-ink: #000;
}

/* The workspace's choice (Api#573), carried on the root element by
   InterfaceFontState once the circuit knows which workspace it is in.
   Overriding the token rather than the rules is the whole point: every rule
   below already asks for var(--dw-font-family), and MudBlazor is handed the
   matching stack through its own typography, so one attribute moves the
   shell, the tables, the forms, the dialogs and the popovers together.
   Absent or unrecognised, nothing matches and Inter stands. */
:root[data-dw-font="plex"] {
    --dw-font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
}

html, body, .mud-typography, .mud-button-root, .mud-nav-link { font-family: var(--dw-font-family); }
html, body { font-size: var(--dw-font-sm); }
small { font-size: var(--dw-font-xs); }
/* The technical elements say so in their markup, so they are pointed at the
   mono token rather than left to whatever the browser calls monospace -- and
   at 1em, because that default also shrinks them against the text around. */
code, pre, kbd, samp { font-family: var(--dw-font-family-mono); font-size: 1em; }

/* Routes.razor focuses the page's h1 after every navigation, so a screen reader
   announces where it landed rather than leaving the reading position at the
   link that was just followed. To make a heading focusable at all, Blazor
   stamps tabindex="-1" on it -- and Chrome then treats it as a focus-visible
   target and draws its default ring, which reads as a box drawn around the
   page title.

   The focus is worth keeping; the ring is not. A heading is not something you
   can act on, so there is no state to indicate, and nothing is lost by hiding
   it. Scoped to exactly the attribute Blazor adds, so no genuinely interactive
   control can match this and lose its focus indicator. */
h1[tabindex="-1"]:focus { outline: none; }

/* Where the keyboard is (roadmap 20.15). Every control shows a ring when it
   is reached from the keyboard, whatever the browser's default or MudBlazor's
   reset would otherwise do -- a person tabbing through a fifty-line order has
   to be able to see which field they are in. :focus-visible, so a mouse click
   draws nothing. Components with a ring of their own keep it: theirs are more
   specific than these. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:not([tabindex="-1"]):focus-visible, [role="option"]:focus-visible {
    outline: 2px solid var(--dw-color-action); outline-offset: 2px;
}

/* The first thing a keyboard reaches on every page: straight past the header
   and the module menu to the page itself. Off-screen until focused. */
.dw-skip-link { position: absolute; z-index: 2000; top: -100px; left: 8px; padding: 10px 14px; border: 2px solid var(--dw-color-action); background: var(--dw-color-surface); color: var(--dw-color-action); font-weight: 600; text-decoration: none; }
.dw-skip-link:focus { top: 8px; }
main:focus { outline: none; }

/* A link inside running text is told apart by more than its colour (WCAG 1.4.1). */
main p a:not([class]) { text-decoration: underline; }

.validation-message {
    color: var(--mud-palette-error);
    font-size: var(--dw-font-xs);
}

.dw-wordmark {
    display: block;
    width: 7.6rem;
    height: auto;
}

.dw-public-main { min-height: 100vh; }
.dw-public-nav { border-bottom: 1px solid var(--dw-color-bar-hover); }
.dw-hero { padding: clamp(4.5rem, 8vw, 7rem) 0; background: linear-gradient(135deg, var(--dw-color-info-tint) 0%, var(--dw-color-surface) 60%, var(--dw-color-accent-tint) 100%); }
.dw-hero-title { max-width: 48rem; font-size: clamp(2.25rem, 4.2vw, 3.75rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; margin-top: .75rem; }
.dw-hero-copy { max-width: 44rem; color: var(--dw-color-text-muted); font-size: var(--dw-font-xl); line-height: 1.65; margin-top: 1.5rem; }
.dw-hero-panel { border-top: 4px solid var(--dw-color-accent); }
.dw-section { padding: 6rem 0; }
.dw-capability { height: 100%; border-color: var(--dw-color-border); }
.dw-cta { padding: 5rem 0; background: var(--dw-color-cta); color: var(--dw-color-on-cta); }
.dw-join { padding-top: clamp(5rem, 10vw, 9rem); padding-bottom: 4rem; }
.dw-field-label { display: block; margin: .85rem 0 .3rem; color: var(--dw-color-text); font-size: var(--dw-font-xs); font-weight: var(--dw-font-weight-label); }
/* The field (roadmap 20.6): help and problem under the control, a locked value shown as a value. */
.dw-field-required { color: var(--dw-color-danger); }
.dw-field-help, .dw-field-inherited { display: block; margin-top: 4px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-field-inherited { font-style: italic; }
.dw-field-problem { display: block; margin-top: 4px; color: var(--dw-color-danger); font-size: var(--dw-font-xs); font-weight: 600; }
.dw-field-invalid .dw-text-input { border-color: var(--dw-color-danger); }
.dw-field-locked { display: flex; flex-direction: column; gap: 2px; min-height: var(--dw-control-md); padding: 6px 0; }
.dw-input-unit .dw-text-input { border-radius: var(--dw-radius-sm) 0 0 var(--dw-radius-sm); }
.dw-text-input { display: block; width: 100%; height: var(--dw-control-md); padding: 0 .65rem; border: 1px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface); color: var(--dw-color-text); font: inherit; }
.dw-text-input:focus { border-color: var(--dw-color-action); outline: 2px solid var(--dw-color-focus-ring); }
.dw-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,26rem)); gap: .1rem 1.5rem; }.dw-form-grid .dw-grid-span { grid-column: 1/-1; }.dw-step-instructions { margin: 3px 0 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); white-space: pre-wrap; }
.dw-text-area { display: block; width: min(100%,53.5rem); min-height: 5rem; padding: .55rem .65rem; border: 1px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-sm); font: inherit; }.dw-key-reveal { margin: 14px 0; padding: 13px 15px; border: 1px solid var(--dw-color-warning); border-left-width: 4px; background: var(--dw-color-warning-tint); }.dw-key-reveal p { margin: 3px 0 9px; }.dw-key-reveal code { display: block; overflow-wrap: anywhere; padding: 9px; border: 1px solid var(--dw-color-border); background: var(--dw-color-surface); user-select: all; }.dw-row-actions .dw-command-run { display: inline-flex; align-items: center; gap: 3px; min-height: var(--dw-control-sm); padding: 0 9px; border: 1px solid var(--dw-color-action); border-radius: var(--dw-radius-sm); background: var(--dw-color-action); color: var(--dw-color-on-action); font-weight: 600; }.dw-row-actions .dw-command-run:hover { background: var(--dw-color-action-hover); text-decoration: none; }.dw-field-help { margin: 8px 0 15px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-row-actions details>summary { color: var(--dw-color-action-hover); cursor: pointer; font-size: var(--dw-font-xs); }.dw-row-actions details[open] { min-width: 190px; padding: 7px; border: 1px solid var(--dw-color-border); background: var(--dw-color-surface-raised); }.dw-row-actions details form { display: block; margin-top: 7px; }.dw-row-actions details .dw-text-input { height: var(--dw-control-md); }
.dw-input-unit { display: flex; align-items: stretch; }.dw-input-unit .dw-text-input { min-width: 0; border-radius: var(--dw-radius-sm) 0 0 var(--dw-radius-sm); }.dw-input-unit>span { display: inline-flex; align-items: center; padding: 0 .65rem; border: 1px solid var(--dw-color-border-strong); border-left: 0; border-radius: 0 var(--dw-radius-sm) var(--dw-radius-sm) 0; background: var(--dw-color-surface-subdued); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-check { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: var(--dw-font-sm); }
@media(max-width:700px){.dw-form-grid{grid-template-columns:1fr}}

.dw-user-menu { position: relative; color: inherit; }
.dw-user-menu summary { list-style: none; }
.dw-user-menu summary::-webkit-details-marker { display: none; }
.dw-user-trigger { display: flex; align-items: center; gap: .55rem; min-height: var(--dw-control-lg); padding: .25rem .55rem; border: 1px solid transparent; border-radius: var(--dw-radius-md); cursor: pointer; user-select: none; }
.dw-user-trigger:hover, .dw-user-menu[open] .dw-user-trigger { background: var(--dw-color-bar-hover); border-color: var(--dw-color-bar-active); }
.dw-user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--dw-color-avatar); color: var(--dw-color-on-avatar); font-size: var(--dw-font-xs); font-weight: 600; letter-spacing: .02em; }
.dw-user-trigger-name { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--dw-font-sm); }
.dw-user-card { position: absolute; z-index: 1400; top: calc(100% + .6rem); right: 0; width: min(22rem, calc(100vw - 2rem)); max-height: calc(100vh - 5rem); overflow-y: auto; overscroll-behavior: contain; padding: .75rem 0; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-md); background: var(--dw-color-surface); color: var(--dw-color-text); box-shadow: 0 8px 24px var(--dw-color-shadow-strong); }
.dw-user-identity { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem 1rem; }
.dw-user-avatar-large { width: 44px; height: 44px; flex-basis: 44px; font-size: var(--dw-font-lg); }
.dw-user-identity-text { min-width: 0; }
.dw-user-full-name { overflow: hidden; color: var(--dw-color-text); font-size: var(--dw-font-md); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dw-user-email { overflow: hidden; margin-top: .15rem; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); text-overflow: ellipsis; white-space: nowrap; }
.dw-user-divider { height: 1px; margin: 0 0 .4rem; background: var(--dw-color-border); }
.dw-user-action { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; color: var(--dw-color-text); text-decoration: none; font-size: var(--dw-font-sm); }
.dw-user-action:hover { background: var(--dw-color-surface-subdued); color: var(--dw-color-action); }
.dw-user-appearance { margin: .3rem 1rem .1rem; padding: 0; border: 0; }
.dw-user-appearance legend { padding: 0; margin-bottom: .3rem; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: 600; }
.dw-user-appearance label { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: var(--dw-font-sm); cursor: pointer; }
.dw-user-appearance input { margin: 0; accent-color: var(--dw-color-action); }
.dw-user-section-label { padding: .2rem 1rem .3rem; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: 600; }
.dw-user-companies .dw-user-action[aria-current="true"], .dw-user-start .dw-user-action[aria-current="true"] { color: var(--dw-color-action); font-weight: 600; }
.dw-user-badge { margin-left: auto; padding: .05rem .4rem; border: 1px solid var(--dw-color-border); border-radius: 3px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: 400; white-space: nowrap; }
.dw-user-prefer, .dw-user-choice { width: 100%; border: 0; background: none; font: inherit; font-size: var(--dw-font-sm); text-align: left; cursor: pointer; }
.dw-user-prefer:disabled, .dw-user-choice:disabled { cursor: progress; opacity: .6; }
.dw-user-said { margin: .1rem 1rem .5rem; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
/* Start in: choosing and opening side by side (Azure #809), two controls and never one in the other. */
.dw-user-start-row { display: flex; align-items: stretch; }
.dw-user-start-row .dw-user-choice { flex: 1 1 auto; width: auto; min-width: 0; }
.dw-user-open { display: flex; flex: none; align-items: center; padding: 0 1rem; border-left: 1px solid var(--dw-color-border); color: var(--dw-color-action); font-size: var(--dw-font-sm); text-decoration: none; }
.dw-user-open:hover { background: var(--dw-color-surface-subdued); text-decoration: underline; }
.dw-user-open:focus-visible { outline: 2px solid var(--dw-color-action); outline-offset: -2px; }

@media (max-width: 600px) {
    .dw-user-trigger-name { display: none; }
}

/* Administrative workspace shell */
.dw-portal-header { height: 48px; min-height: 48px; }
.dw-portal-header .mud-toolbar { min-height: 48px; padding: 0 12px; }
.dw-shell-brand { display: flex; align-items: center; height: 48px; padding: 0 8px; }
.dw-header-divider { width: 1px; height: 22px; margin: 0 14px 0 8px; background: var(--dw-color-bar-active); }
/* Where you are working (24.13): the workspace small, the company bold, and the
   company's colour as a swatch and a band across the top of the bar. */
.dw-company-band { position: absolute; top: 0; left: 0; right: 0; height: 4px; pointer-events: none; }
.dw-header-where { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dw-company-swatch { flex: none; width: 10px; height: 10px; border-radius: var(--dw-radius-sm); box-shadow: 0 0 0 1px var(--dw-color-text-on-bar-muted); }
.dw-header-lines { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.dw-header-workspace { max-width: 22rem; overflow: hidden; color: var(--dw-color-text-on-bar-muted); font-size: var(--dw-font-xs); text-overflow: ellipsis; white-space: nowrap; }
.dw-workspace-name { max-width: 22rem; overflow: hidden; color: var(--dw-color-text-on-bar); font-size: var(--dw-font-sm); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
/* A sandbox (Api#817), said in words beside the workspace on every page: a copy of live
   data must never be mistaken for it. Warning roles, so every material and both schemes
   carry it; a border as well as a fill, so it reads on the translucent bar. */
.dw-sandbox-mark { flex: none; padding: 1px 8px; border: 1px solid var(--dw-color-warning); border-radius: var(--dw-radius-pill); background: var(--dw-color-warning-tint); color: var(--dw-color-warning-ink); font-size: var(--dw-font-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.dw-company-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: var(--dw-radius-sm); vertical-align: baseline; }
/* The control that opens the sidebar where it is not docked (Web#348). Absent
   at the width where the drawer docks -- display: none rather than a visually
   hidden control, so it is out of the tab order and out of the accessibility
   tree instead of being a focus stop nobody can see. 959px is one pixel below
   MudBlazor's own md breakpoint, which is where it stops docking the drawer and
   starts hiding it. */
.dw-drawer-toggle { display: none; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; margin-right: 4px; padding: 0; border: 1px solid transparent; border-radius: var(--dw-radius-md); background: none; color: var(--dw-color-text-on-bar); cursor: pointer; }
.dw-drawer-toggle:hover { border-color: var(--dw-color-bar-active); background: var(--dw-color-bar-hover); }
.dw-drawer-toggle:focus-visible { outline: 2px solid var(--dw-color-text-on-bar); outline-offset: -2px; }
@media (max-width: 959px) { .dw-drawer-toggle { display: inline-flex; } }
.dw-workspace-drawer { border-right: 1px solid var(--dw-color-border); }
.dw-workspace-drawer .mud-drawer-content { background: var(--dw-color-surface-raised); }
.dw-workspace-navigation { display: flex; flex-direction: column; min-height: calc(100vh - 48px); }
/* The module sidebar. Follows the settings context nav it replaced -- same
   flat rows, same 3px active rail -- rather than inventing a second idiom for
   the same job. */
.dw-module-identity { display: flex; align-items: center; gap: 9px; padding: 14px 14px 12px; border-bottom: 1px solid var(--dw-color-border); }
.dw-module-identity svg { flex: none; color: var(--dw-color-action); }
.dw-module-identity span { display: block; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); text-transform: uppercase; letter-spacing: .04em; }
.dw-module-identity strong { display: block; margin-top: 1px; color: var(--dw-color-text); font-size: var(--dw-font-sm); font-weight: 600; }
/* The only way back out of a module, so it is above the module's own pages and
   in the same place in every one of them -- not pinned to the bottom, where it
   would move with the length of the list. */
.dw-module-launchpad { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 14px; border-bottom: 1px solid var(--dw-color-border); color: var(--dw-color-action-hover); font-size: var(--dw-font-xs); text-decoration: none; }
.dw-module-launchpad:hover { background: var(--dw-color-surface-subdued); }
/* Home (Azure #809): one line whatever it says, so the start page arriving moves nothing. */
.dw-module-home { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 14px; border-bottom: 1px solid var(--dw-color-border); color: var(--dw-color-action-hover); font-size: var(--dw-font-xs); text-decoration: none; white-space: nowrap; }
.dw-module-home:hover { background: var(--dw-color-surface-subdued); }
.dw-module-home:focus-visible { outline: 2px solid var(--dw-color-action); outline-offset: -2px; }
.dw-module-home svg { flex: none; color: inherit; }
.dw-module-home-where { overflow: hidden; min-width: 0; margin-left: auto; color: var(--dw-color-text-muted); text-overflow: ellipsis; }
.dw-module-nav { padding: 8px 0; }
.dw-module-nav a { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 14px; border-left: 3px solid transparent; color: var(--dw-color-text); font-size: var(--dw-font-sm); text-decoration: none; }
.dw-module-nav a:hover { background: var(--dw-color-surface-subdued); }
.dw-module-nav a.active { border-left-color: var(--dw-color-action); background: var(--dw-color-surface-subdued); color: var(--dw-color-text); font-weight: 600; }
.dw-module-nav a:focus-visible, .dw-module-launchpad:focus-visible { outline: 2px solid var(--dw-color-action); outline-offset: -2px; }
.dw-module-nav svg, .dw-module-launchpad svg { flex: none; color: inherit; }
/* Sidebar groups (F50 #998): a small heading that folds its entries. */
.dw-module-group + .dw-module-group { margin-top: 4px; }
.dw-module-group-head { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 28px; padding: 0 14px; border: 0; background: none; color: var(--dw-color-text-muted); font: inherit; font-size: var(--dw-font-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-align: left; cursor: pointer; }
.dw-module-group-head:hover { color: var(--dw-color-text); }
.dw-module-group-head:focus-visible { outline: 2px solid var(--dw-color-action); outline-offset: -2px; }
.dw-module-group-head svg { flex: none; color: inherit; }
.mud-container.dw-workspace-canvas { min-height: calc(100vh - 48px); padding: 16px 28px 48px; background: var(--dw-color-surface); }

/* Resource pages */
.dw-breadcrumb { display: flex; align-items: center; gap: .45rem; min-height: 25px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-breadcrumb a { color: var(--dw-color-action-hover); text-decoration: none; }
.dw-resource-header { display: flex; align-items: flex-start; justify-content: space-between; margin: 7px 0 12px; }
.dw-resource-header h1 { margin: 0; color: var(--dw-color-text); font-size: var(--dw-font-3xl); font-weight: 600; line-height: 1.25; }
.dw-resource-header h1 .dw-entity-mark { margin-right: .4rem; color: var(--dw-color-action-hover); vertical-align: -2px; }
.dw-entity-mark { flex: none; }
.dw-empty .dw-entity-mark { margin-bottom: 6px; color: var(--dw-color-text-disabled); }
.dw-context-mark { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-right: 12px; background: var(--dw-color-action); color: var(--dw-color-on-action); }
.dw-context-mark .dw-entity-mark { color: var(--dw-color-on-action); }
.dw-resource-link .dw-entity-mark, .dw-related-panel .dw-entity-mark { margin-right: .3rem; color: var(--dw-color-text-muted); vertical-align: -2px; }
.dw-resource-header p { margin: .25rem 0 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-sm); }
.dw-command-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; min-height: var(--dw-control-lg); margin: 0 -4px 16px; border-top: 1px solid var(--dw-color-border-subtle); border-bottom: 1px solid var(--dw-color-border-subtle); }
.dw-command-bar a, .dw-command-bar button { display: inline-flex; align-items: center; gap: .4rem; min-height: var(--dw-control-md); padding: 0 .65rem; border: 0; background: transparent; color: var(--dw-color-text); font: var(--dw-font-weight-label) var(--dw-font-xs) var(--dw-font-family); text-decoration: none; cursor: pointer; }
.dw-command-bar a:hover, .dw-command-bar button:hover { background: var(--dw-color-surface-subdued); }
.dw-command-bar .dw-command-primary { color: var(--dw-color-action-hover); }
/* Inside a resource card the bar sits flush under the identity header and the
   fact strip follows it directly: header, commands, facts, as the floorplan says. */
.dw-context-card > .dw-command-bar { margin: 0; padding: 0 14px; border-top: 0; }
/* The command bar's own grammar (roadmap 20.3): a gap before the exceptional
   group, a disabled command that still says what it is, and a labelled
   overflow that is a native details element. */
.dw-command-bar .dw-command-gap { width: 1px; height: var(--dw-control-sm); margin: 0 .35rem; background: var(--dw-color-border); }
.dw-command-bar .dw-command-exceptional { color: var(--dw-color-danger); }
.dw-command-bar button[disabled] { color: var(--dw-color-text-disabled); cursor: not-allowed; background: transparent; }
.dw-command-bar .dw-command-form { display: contents; }
.dw-command-overflow { position: relative; margin-left: auto; }
.dw-command-overflow summary { list-style: none; }
.dw-command-overflow summary::-webkit-details-marker { display: none; }
.dw-command-overflow-list { position: absolute; z-index: 1400; top: calc(100% + 4px); right: 0; display: flex; flex-direction: column; min-width: 14rem; padding: .3rem 0; border: 1px solid var(--dw-color-border); background: var(--dw-color-surface); box-shadow: 0 8px 24px var(--dw-color-shadow-strong); }
.dw-command-overflow-list a, .dw-command-overflow-list button { justify-content: flex-start; width: 100%; padding: 0 .9rem; }
/* The one dialog frame (roadmap 20.7): the dense panel over MudDialog, which
   owns focus, Escape and the backdrop. Width is the frame's to say. */
.mud-dialog.dw-dialog { width: min(var(--dw-width-dialog), calc(100vw - 32px)); max-width: none; border: 1px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface); box-shadow: 0 12px 35px var(--dw-color-shadow-strong); }
.mud-dialog.dw-dialog-narrow { width: min(var(--dw-width-dialog-narrow), calc(100vw - 32px)); }
.mud-dialog.dw-dialog-wide { width: min(var(--dw-width-dialog-wide), calc(100vw - 32px)); }
.dw-dialog .dw-dialog-header { display: flex; align-items: flex-start; min-height: 78px; padding: 14px 18px; border-bottom: 1px solid var(--dw-color-border); }
.dw-dialog .dw-dialog-kicker { display: block; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-dialog .dw-dialog-title { margin: 2px 0; color: var(--dw-color-text); font-size: var(--dw-font-xl); font-weight: 600; }
.dw-dialog .dw-dialog-lede { margin: 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
/* "Adds to <company>" (24.13): where a new record goes, in the company's colour. */
.dw-adds-to { margin: 4px 0 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-adds-to strong { color: var(--dw-color-text); font-weight: 600; }
.dw-dialog .dw-dialog-body { padding: 16px 18px 20px; }
.dw-dialog .dw-dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 18px; border-top: 1px solid var(--dw-color-border); background: var(--dw-color-surface-raised); }
.dw-dialog .dw-dialog-footer button { display: inline-flex; align-items: center; gap: 5px; min-height: var(--dw-control-md); padding: 0 13px; border: 1px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface); color: var(--dw-color-text); font: var(--dw-font-weight-label) var(--dw-font-xs) var(--dw-font-family); cursor: pointer; }
.dw-dialog .dw-dialog-footer .dw-action-primary { border-color: var(--dw-color-action); background: var(--dw-color-action); color: var(--dw-color-on-action); }
.dw-dialog .dw-dialog-footer button:disabled { border-color: var(--dw-color-border); background: var(--dw-color-surface-subdued); color: var(--dw-color-text-disabled); cursor: default; }
/* Said to assistive technology and nobody else. */
.dw-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dw-notice { margin-bottom: 12px; padding: 8px 12px; border-left: 3px solid; font-size: var(--dw-font-xs); }
.dw-notice.success { border-color: var(--dw-color-success); background: var(--dw-color-success-tint); }.dw-notice.error { border-color: var(--dw-color-danger); background: var(--dw-color-danger-tint); }
.dw-notice.warning { border-color: var(--dw-color-warning); background: var(--dw-color-warning-tint); }
.dw-notice.information { border-color: var(--dw-color-action); background: var(--dw-color-info-tint); }
.dw-notice strong { margin-right: .35rem; }
.dw-validation-list { margin: .35rem 0 0; padding-left: 1.2rem; }
/* The loading state (roadmap 20.4): said, so a slow read is not an empty one. */
.dw-loading { padding: 14px 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 18px; }
.dw-kpi { min-height: 104px; padding: 14px 16px; border: 1px solid var(--dw-color-border); border-top: 2px solid var(--dw-color-action); background: var(--dw-color-surface); }
.dw-kpi span { display: block; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: 600; }.dw-kpi strong { display: block; margin: 7px 0 3px; color: var(--dw-color-text); font-size: var(--dw-font-kpi); font-weight: var(--dw-font-weight-label); font-variant-numeric: tabular-nums; }.dw-kpi small { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-kpi small.positive { color: var(--dw-color-success); }.dw-kpi small.negative { color: var(--dw-color-danger); }
.dw-resource-panel { border: 1px solid var(--dw-color-border); background: var(--dw-color-surface); }
.dw-list-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 6px 10px; border-bottom: 1px solid var(--dw-color-border); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-filter-form { display: flex; align-items: center; width: min(28rem,60vw); height: var(--dw-control-md); padding: 0 8px; border: 1px solid var(--dw-color-border-strong); background: var(--dw-color-surface); }.dw-filter-form:focus-within { border-color: var(--dw-color-action); box-shadow: inset 0 0 0 1px var(--dw-color-action); }.dw-filter-form input { width: 100%; margin-left: 6px; border: 0; outline: 0; font: var(--dw-font-xs) var(--dw-font-family); }
.dw-list-search { width: auto; max-width: 100%; height: auto; min-height: var(--dw-control-md); flex-wrap: wrap; gap: 6px; }.dw-list-search input[type=search] { width: 16rem; max-width: 100%; }.dw-list-search select { height: var(--dw-control-sm); border: 1px solid var(--dw-color-border-muted); background: var(--dw-color-surface); font: var(--dw-font-xs) var(--dw-font-family); }.dw-list-search-apply { height: var(--dw-control-sm); padding: 0 10px; border: 1px solid var(--dw-color-border-strong); background: var(--dw-color-surface-subdued); font: var(--dw-font-xs) var(--dw-font-family); cursor: pointer; }.dw-list-search-apply:hover { background: var(--dw-color-surface-subdued); }
.dw-policy-table select { min-width: 18rem; }
.dw-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-top: 1px solid var(--dw-color-border); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-variant-numeric: tabular-nums; }.dw-pager-links { display: flex; align-items: center; gap: 12px; }.dw-pager-links a { color: var(--dw-color-action); text-decoration: none; }.dw-pager-links a:hover { text-decoration: underline; }.dw-pager-links span[aria-disabled] { color: var(--dw-color-text-disabled); }
.dw-locked-note { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-style: italic; }
/* A scroll region is also the CONTAINING BLOCK for what it holds (Web#345).
   Without `position: relative` it is not, and an absolutely positioned
   descendant -- every `.dw-visually-hidden` label in a table head, for one --
   is laid out against the document instead. It then sits at its static
   position, which inside a 901px table is well past a 320px viewport, escapes
   this region's clipping entirely, and drags the whole PAGE sideways: the
   members table made the document 709px wide and scrollable by 389px, from one
   1px span reading "Actions". The overflow-x here only ever clipped the table;
   it took this to clip what the table contains. */
.dw-table-scroll { overflow-x: auto; position: relative; }
/* A list that fits the window (Web#422, TableShell Fit). The pane becomes a
   column the height of the window below the header; the page's heading,
   commands and notices keep their size, and the list panel takes what is left,
   its rows scrolling under a pinned heading row with the pager at its foot. A
   short list stays as tall as its rows. Below a usable height the panel stops
   shrinking and the page scrolls as before; narrow (reflowed) widths, short
   windows and print never bound it. */
@media screen and (min-width: 701px) and (min-height: 560px) {
    .mud-container.dw-workspace-canvas:has(.dw-table-fit) { display: flex; flex-direction: column; height: calc(100dvh - var(--mud-appbar-height, 48px)); min-height: 0; padding-bottom: 16px; }
    .dw-workspace-canvas:has(.dw-table-fit) > main { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
    .dw-workspace-canvas:has(.dw-table-fit) > main > * { flex: none; }
    .dw-workspace-canvas:has(.dw-table-fit) > main > .dw-table-fit { display: flex; flex: 0 1 auto; flex-direction: column; min-height: 18rem; }
    .dw-table-fit > * { flex: none; }
    .dw-table-fit > .dw-table-scroll { flex: 0 1 auto; min-height: 0; overflow: auto; }
    .dw-table-fit thead th { position: sticky; top: 0; z-index: 1; background-clip: padding-box; }
    .dw-table-fit tbody * { scroll-margin-top: 3rem; scroll-margin-bottom: .5rem; }
}
/* The three table densities (roadmap 20.5). dw-resource-table is the one left of
   the two these replace (dw-data-table went with its last page in 20.24); it
   stays until the last page has moved. */
.dw-table { width: 100%; border-collapse: collapse; font-size: var(--dw-font-xs); font-variant-numeric: tabular-nums; }
.dw-table td { border-bottom: 1px solid var(--dw-color-border-subtle); vertical-align: middle; }
.dw-table td span { display: block; margin-top: .12rem; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-table td:last-child { white-space: nowrap; }
.dw-table-index th { height: 2.4rem; padding: .45rem .75rem; background: var(--dw-color-surface-raised); color: var(--dw-color-text); font-weight: 600; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--dw-color-border); }
.dw-table-index td { height: 3rem; padding: .45rem .75rem; }
/* A column head that is a phrase (F23 #1013: "Deposits not on the statement yet") wraps to two lines, so the words stay and the list keeps its width. */
.dw-table-index tbody tr:hover { background: var(--dw-color-surface-hover); }
.dw-table-related th { padding: 8px 10px; border-bottom: 1px solid var(--dw-color-border); background: var(--dw-color-surface-raised); color: var(--dw-color-text); font-weight: 600; text-align: left; }
.dw-table-related td { padding: 9px 10px; }
.dw-table-settings th { padding: 7px 8px; border-bottom: 1px solid var(--dw-color-border-subtle); color: var(--dw-color-text-muted); font-weight: 600; text-align: left; }
.dw-table-settings td { padding: 7px 8px; }
.dw-table-empty { padding: 4px 0; }
.dw-table .dw-number { text-align: right; font-variant-numeric: tabular-nums; }
/* A labelled control in the toolbar, where there is no room for a label above. */
.dw-list-search .dw-toolbar-field { display: inline-flex; align-items: center; gap: 5px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); white-space: nowrap; }
.dw-list-search .dw-toolbar-field input, .dw-list-search .dw-toolbar-field select { height: var(--dw-control-sm); padding: 0 6px; border: 1px solid var(--dw-color-border-muted); background: var(--dw-color-surface); color: var(--dw-color-text); font: var(--dw-font-xs) var(--dw-font-family); }.dw-number, th.dw-number, td.dw-number, .dw-related-panel .dw-number { text-align: right; font-variant-numeric: tabular-nums; }.dw-resource-link { color: var(--dw-color-action-hover); font-weight: 600; text-decoration: none; }.dw-resource-link:hover { text-decoration: underline; }.dw-attention { color: var(--dw-color-danger); font-weight: 600; }
/* A toolbar picker takes its width from its widest option, so one long name -- a customer's, a rep's, a test's
   generated one -- could widen a whole page past a 320px viewport (Azure #808). Its width is the toolbar's to
   decide: capped, shrinkable, the long option clipped inside the control and read whole in the open list. */
.dw-list-search .dw-toolbar-field, .dw-filter-row .dw-toolbar-field { min-width: 0; max-width: 100%; }
.dw-list-search .dw-toolbar-field select, .dw-filter-row .dw-toolbar-field select { max-width: min(100%, 14rem); min-width: 0; text-overflow: ellipsis; }
.dw-status, td>span.dw-status { display: inline-flex; align-items: center; width: fit-content; padding: 2px 7px; border-radius: var(--dw-radius-pill); font-size: var(--dw-font-xs); }.dw-status.active { background: var(--dw-color-success-tint); color: var(--dw-color-success-ink); }.dw-status.archived { background: var(--dw-color-surface-subdued); color: var(--dw-color-text-muted); }.dw-status.pending { margin-right: 6px; background: var(--dw-color-warning-tint); color: var(--dw-color-warning-ink); }.dw-status.failed { background: var(--dw-color-danger-tint); color: var(--dw-color-danger); }.dw-status.neutral { background: var(--dw-color-action-tint); color: var(--dw-color-info-ink); }.dw-overdue, td>span.dw-overdue { display: block; margin-top: 2px; color: var(--dw-color-danger); font-size: var(--dw-font-xs); }
.dw-row-actions { white-space: nowrap; }.dw-row-actions a, .dw-row-actions form, .dw-row-actions button { display: inline; }.dw-row-actions a, .dw-row-actions button { margin-right: 9px; border: 0; background: transparent; color: var(--dw-color-action-hover); font: var(--dw-font-xs) var(--dw-font-family); text-decoration: none; cursor: pointer; }
.dw-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 130px; color: var(--dw-color-text-muted); text-align: center; }.dw-empty strong { color: var(--dw-color-text); font-size: var(--dw-font-sm); }.dw-empty span { margin-top: 4px; }

/* Editors */
.dw-editor { max-width: var(--dw-width-editor); }.dw-editor section { margin-bottom: 16px; padding: 18px 20px 22px; border: 1px solid var(--dw-color-border); background: var(--dw-color-surface); }.dw-editor h2 { margin: 0; color: var(--dw-color-text); font-size: var(--dw-font-md); font-weight: 600; }.dw-editor section>p { margin: 3px 0 8px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-pricing-section, .dw-editor section.dw-pricing-section { border-left: 3px solid var(--dw-color-action); }.dw-pricing-guidance { display: flex; flex-direction: column; max-width: 42rem; padding: 11px 13px; border-left: 3px solid var(--dw-color-text-muted); background: var(--dw-color-surface-subdued); }.dw-pricing-guidance strong { font-size: var(--dw-font-sm); }.dw-pricing-guidance span { margin-top: 3px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-time-entry-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; margin-bottom: 14px; }.dw-time-entry-grid .dw-grid-span { grid-column: 1/-1; }.dw-time-entry-grid small { display: block; margin-top: 4px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-time-billing-preview { display: flex; align-items: baseline; justify-content: space-between; margin: 2px 0 14px; padding: 9px 11px; border-left: 3px solid var(--dw-color-action); background: var(--dw-color-info-tint); }.dw-time-billing-preview span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-time-billing-preview strong { font-size: var(--dw-font-xs); }.dw-hours-method { display: flex; gap: 20px; margin: 0 0 14px; padding: 11px 12px; border: 1px solid var(--dw-color-border); }.dw-hours-method legend { padding: 0 5px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: 600; }.dw-hours-method label { display: flex; align-items: center; gap: 6px; font-size: var(--dw-font-xs); }.dw-hours-input { max-width: 10rem; text-align: right; font-variant-numeric: tabular-nums; }.dw-time-note { margin: -6px 0 14px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }

/* Workspace settings */
/* Was a two-column grid with its own nav beside the content. The nav is the
   module sidebar now, so this is just the work surface. */.dw-settings-editor { max-width: 100%; }.dw-settings-editor fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }.dw-settings-editor fieldset:disabled { opacity: .7; }.dw-check.compact { margin-top: 5px; font-size: var(--dw-font-xs); }
.dw-link-button { padding: 0; border: 0; background: transparent; color: var(--dw-color-action-hover); font: var(--dw-font-xs) var(--dw-font-family); cursor: pointer; }.dw-link-button.danger { color: var(--dw-color-danger); }.dw-inline-form { display: inline; margin-left: 10px; }
.dw-attachment-table .dw-file-link { padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }.dw-version-history { margin-top: 3px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-version-history summary { color: var(--dw-color-action-hover); cursor: pointer; }.dw-version-history span { display: block; padding: 2px 0; white-space: nowrap; }.dw-attachment-form { display: grid; gap: 13px; padding: 16px 18px 20px; }.dw-attachment-form small { display: block; margin-top: 4px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-file-input { width: 100%; min-height: var(--dw-control-md); padding: 5px; border: 1px solid var(--dw-color-border-strong); background: var(--dw-color-surface); color: var(--dw-color-text); font: var(--dw-font-xs) var(--dw-font-family); }.dw-file-input::file-selector-button { min-height: var(--dw-control-sm); margin-right: 9px; padding: 0 10px; border: 1px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface-subdued); color: var(--dw-color-text); cursor: pointer; }.dw-selected-file { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--dw-color-border); background: var(--dw-color-surface-raised); }.dw-selected-file strong,.dw-selected-file span { display: block; font-size: var(--dw-font-xs); }.dw-selected-file span { margin-top: 2px; color: var(--dw-color-text-muted); }.dw-upload-progress { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-left: 3px solid var(--dw-color-action); background: var(--dw-color-info-tint); font-size: var(--dw-font-xs); }.dw-upload-progress>span { width: 15px; height: 15px; border: 2px solid var(--dw-color-action-tint-border); border-top-color: var(--dw-color-action); border-radius: 50%; animation: dw-spin .8s linear infinite; }@keyframes dw-spin{to{transform:rotate(360deg)}}
/* A line's files (#863): a paperclip and how many, opening the Attachments tab on that line. */
.dw-line-files { display: inline-flex; align-items: center; gap: var(--dw-space-1); margin-left: var(--dw-space-2); color: var(--dw-color-action); font-size: var(--dw-font-xs); text-decoration: none; }

/* The analysis and dashboard rules that styled the Sales analysis page went
   with it when 32.22 moved its figures into the Command Center's analysis view
   (Web#206): the period tabs, the dashboard grid, the column chart and the
   ageing bars. A trend is drawn by TrendStrips now, which brings its own.
   LegacyMarkupTests is what found them orphaned, which is what it is for. */
/* The launchpad at /workspace/{id}: one tile per module.
   Flat and bordered rather than cards -- no shadow, no large radius, no hero.
   Every colour is a theme variable rather than a hex, so the tiles stay legible
   if the dark palette MainLayout already defines is ever switched on; the hex
   fallbacks are the same Fluent greys the rest of this file uses. */
.dw-launchpad { display: grid; grid-template-columns: repeat(auto-fill,minmax(265px,1fr)); gap: 10px; max-width: var(--dw-width-editor); }
.dw-launchpad-tile { display: flex; align-items: flex-start; gap: 12px; min-height: 90px; padding: 14px 16px; border: 1px solid var(--mud-palette-lines-default,var(--dw-color-border)); border-radius: var(--dw-radius-sm); background: var(--mud-palette-surface,var(--dw-color-surface)); color: var(--mud-palette-text-primary,var(--dw-color-text)); text-decoration: none; }
.dw-launchpad-tile:hover { border-color: var(--mud-palette-primary,var(--dw-color-action)); background: var(--mud-palette-action-default-hover,var(--dw-color-info-tint)); }
/* The tiles are the only way out of this page, so the focus ring has to be
   visible rather than inherited from the browser default on a bordered box. */
.dw-launchpad-tile:focus-visible { outline: 2px solid var(--mud-palette-primary,var(--dw-color-action)); outline-offset: -1px; }
.dw-launchpad-tile svg { flex: none; color: var(--mud-palette-primary,var(--dw-color-action)); }
.dw-launchpad-tile strong { display: block; font-size: var(--dw-font-md); font-weight: 600; }
.dw-launchpad-tile small { display: block; margin-top: 4px; color: var(--mud-palette-text-secondary,var(--dw-color-text-muted)); font-size: var(--dw-font-xs); line-height: 1.45; }
/* The Workspaces row above the module tiles (Azure #809): the role workspaces, each one
   link, the start page said in words. Compact tiles on the launchpad's own width. */
.dw-workspace-row { max-width: var(--dw-width-editor); margin: 0 0 14px; }
.dw-workspace-row-label { margin: 0 0 6px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.dw-workspace-tiles { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 10px; }
.dw-workspace-tile { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--mud-palette-lines-default,var(--dw-color-border)); border-radius: var(--dw-radius-lg); background: var(--mud-palette-surface,var(--dw-color-surface)); color: var(--mud-palette-text-primary,var(--dw-color-text)); text-decoration: none; }
.dw-workspace-tile:hover { border-color: var(--mud-palette-primary,var(--dw-color-action)); }
.dw-workspace-tile:focus-visible { outline: 2px solid var(--mud-palette-primary,var(--dw-color-action)); outline-offset: -1px; }
.dw-workspace-tile svg { flex: none; color: var(--mud-palette-primary,var(--dw-color-action)); }
.dw-workspace-tile strong { min-width: 0; font-size: var(--dw-font-sm); font-weight: 600; }
.dw-workspace-row-state { max-width: var(--dw-width-editor); margin: 0 0 14px; }
.dw-workspace-row-said { color: var(--dw-color-text-muted); font-size: var(--dw-font-sm); }
/* The start page, wherever it is on the Modules page: a word, not a colour. */
.dw-start-badge { flex: none; margin-left: auto; padding: .05rem .4rem; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-sm); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: 400; white-space: nowrap; }
.dw-launchpad-tile .dw-start-badge { display: inline-block; margin: 6px 0 0; }
/* The workspace launchpad, Bento Box style (roadmap 31.3): one grid, tiles of
   three sizes, each a card. The one place AGENTS.md allows a card; corners stay
   at 6px and there is no shadow. Four columns on a desktop, two on a tablet,
   one on a phone; dense packing so a tile the person has no access to leaves
   no hole. The module's link is stretched over its card, and the shortcuts sit
   above that stretch so each is its own target. */
.dw-bento { grid-template-columns: repeat(4,minmax(0,1fr)); grid-auto-rows: minmax(96px,auto); grid-auto-flow: row dense; }
.dw-bento-tile { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 16px; border: 1px solid var(--mud-palette-lines-default,var(--dw-color-border)); border-radius: var(--dw-radius-lg); background: var(--mud-palette-surface,var(--dw-color-surface)); }
.dw-bento-tile:hover { border-color: var(--mud-palette-primary,var(--dw-color-action)); }
.dw-bento-tile:focus-within { border-color: var(--mud-palette-primary,var(--dw-color-action)); }
.dw-bento-wide { grid-column: span 2; }
.dw-bento-large { grid-column: span 2; grid-row: span 2; }
.dw-bento .dw-launchpad-tile { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.dw-bento .dw-launchpad-tile:hover { background: none; }
.dw-bento .dw-launchpad-tile::after { content: ""; position: absolute; inset: 0; border-radius: var(--dw-radius-lg); }
.dw-bento .dw-launchpad-tile:focus-visible { outline: none; }
.dw-bento .dw-launchpad-tile:focus-visible::after { outline: 2px solid var(--mud-palette-primary,var(--dw-color-action)); outline-offset: -1px; }
.dw-bento-shortcuts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 14px; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid var(--mud-palette-lines-default,var(--dw-color-border-subtle)); list-style: none; }
.dw-launchpad-shortcut { display: inline-flex; align-items: center; gap: 6px; padding: 3px 0; color: var(--mud-palette-primary,var(--dw-color-action)); font-size: var(--dw-font-sm); text-decoration: none; }
.dw-launchpad-shortcut:hover { text-decoration: underline; }
.dw-launchpad-shortcut:focus-visible { outline: 2px solid var(--mud-palette-primary,var(--dw-color-action)); outline-offset: 1px; }
.dw-launchpad-shortcut svg { flex: none; }
@media (max-width: 1023px) { .dw-bento { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 599px) {
  .dw-bento { grid-template-columns: minmax(0,1fr); }
  .dw-bento-wide, .dw-bento-large { grid-column: auto; grid-row: auto; }
  .dw-bento-large .dw-bento-shortcuts { margin-top: 12px; }
}

/* Customer resource context: Azure DevOps work-item-inspired structure */
.dw-context-card { max-width: var(--dw-width-context); border: 1px solid var(--dw-color-border-muted); background: var(--dw-color-surface); box-shadow: 0 2px 8px var(--dw-color-shadow); }
.dw-context-identity { display: flex; align-items: center; min-height: 82px; padding: 14px 18px; border-bottom: 1px solid var(--dw-color-border-subtle); }
.dw-context-title { min-width: 0; }.dw-context-title>span,.dw-context-title>small { display: block; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-context-title h1 { margin: 2px 0; color: var(--dw-color-text); font-size: var(--dw-font-2xl); font-weight: 600; }
.dw-context-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }.dw-context-actions a,.dw-context-actions button { display: inline-flex; align-items: center; gap: 5px; min-height: var(--dw-control-md); padding: 0 12px; border: 1px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface); color: var(--dw-color-text); font: 600 var(--dw-font-xs) var(--dw-font-family); text-decoration: none; cursor: pointer; }.dw-context-actions .dw-action-primary { border-color: var(--dw-color-action); background: var(--dw-color-action); color: var(--dw-color-on-action); }.dw-context-actions a:hover,.dw-context-actions button:hover { background: var(--dw-color-surface-subdued); }.dw-context-actions .dw-action-primary:hover { background: var(--dw-color-action-hover); }.dw-context-actions button:disabled,.dw-context-actions button:disabled:hover { border-color: var(--dw-color-border); background: var(--dw-color-surface-subdued); color: var(--dw-color-text-disabled); cursor: default; }
.dw-view-switch { display: flex; gap: 4px; margin: 0 0 14px; border-bottom: 1px solid var(--dw-color-border); }.dw-view-switch a { padding: 8px 14px; border-bottom: 2px solid transparent; color: var(--dw-color-text); font: 600 var(--dw-font-xs) var(--dw-font-family); text-decoration: none; }.dw-view-switch a:hover { background: var(--dw-color-surface-subdued); }.dw-view-switch a.current { border-bottom-color: var(--dw-color-action); color: var(--dw-color-action-hover); }.dw-view-switch .dw-view-count { margin-left: 6px; color: var(--dw-color-text-muted); font-weight: 400; }
.dw-state-strip { display: flex; align-items: stretch; min-height: 58px; padding: 0 18px; border-bottom: 1px solid var(--dw-color-border); background: var(--dw-color-surface-subdued); }.dw-state-strip>div { display: flex; flex-direction: column; justify-content: center; min-width: 150px; padding: 8px 24px 8px 0; }.dw-state-strip span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-state-strip strong { margin-top: 3px; color: var(--dw-color-text); font-size: var(--dw-font-xs); font-weight: 600; }.dw-state-strip strong.active { color: var(--dw-color-success); }.dw-state-strip strong.archived { color: var(--dw-color-danger); }.dw-state-strip .dw-state-action { align-items: flex-end; margin-left: auto; padding-right: 0; }.dw-state-action form,.dw-state-action button { margin: 0; }.dw-state-action button { border: 0; background: transparent; color: var(--dw-color-action-hover); font: 600 var(--dw-font-xs) var(--dw-font-family); cursor: pointer; }
.dw-resource-context-layout { display: grid; grid-template-columns: 175px minmax(0,1fr); }.dw-context-nav { padding: 12px 0; border-right: 1px solid var(--dw-color-border-subtle); background: var(--dw-color-surface-raised); }.dw-context-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 14px; border-left: 3px solid transparent; color: var(--dw-color-text); font-size: var(--dw-font-xs); text-decoration: none; }.dw-context-nav a:hover { background: var(--dw-color-surface-subdued); }.dw-context-nav a.active { border-left-color: var(--dw-color-action); background: var(--dw-color-surface-subdued); font-weight: 600; }.dw-context-nav a span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-context-content { min-width: 0; padding: 0 20px 30px; }.dw-context-section { padding: 20px 0 24px; border-bottom: 1px solid var(--dw-color-border-subtle); scroll-margin-top: 60px; }.dw-context-section:last-child { border-bottom: 0; }.dw-section-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }.dw-section-heading h2 { margin: 0; color: var(--dw-color-text); font-size: var(--dw-font-md); font-weight: 600; }.dw-section-heading p { margin: 3px 0 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-section-heading>a { color: var(--dw-color-action-hover); font-size: var(--dw-font-xs); text-decoration: none; }
.dw-property-grid { display: grid; grid-template-columns: repeat(4,minmax(130px,1fr)); border-top: 1px solid var(--dw-color-border-subtle); border-left: 1px solid var(--dw-color-border-subtle); }.dw-property-grid>div { min-height: 66px; padding: 10px 12px; border-right: 1px solid var(--dw-color-border-subtle); border-bottom: 1px solid var(--dw-color-border-subtle); }.dw-property-grid span,.dw-property-grid strong { display: block; }.dw-property-grid span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-property-grid strong { margin-top: 5px; color: var(--dw-color-text); font-size: var(--dw-font-xs); font-weight: 600; }
/* Bank matching (F23 #703): each candidate a bordered card with its evidence in words; a match's documents a plain list. Roles only. */
.dw-candidate-list,.dw-plain-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }.dw-candidate-list>li { padding: 10px 12px; border: 1px solid var(--dw-color-border-subtle); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface-raised); color: var(--dw-color-text); font-size: var(--dw-font-xs); }.dw-candidate-list>li[data-conflicted="true"] { border-color: var(--dw-color-border-strong); }.dw-candidate-doc { display: block; }
/* "What was this?" (#1008): one choice per kind of bank line, its hint beside it, and a ? to its help. */
/* One column that may shrink (#1032): left to its content's width, a form holding a table was as wide as the table, and the answer panel cut its words and its field off at the right. */
.dw-answer-form { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }.dw-answer-form h3 { margin: 0; color: var(--dw-color-text); font-size: var(--dw-font-sm); }.dw-answer-form>p { margin: 0; }.dw-payment-for,.dw-transfer-sides { margin: 0; padding: 10px 12px; border: 1px solid var(--dw-color-border-subtle); border-radius: var(--dw-radius-sm); display: grid; gap: 6px; }.dw-payment-for legend,.dw-transfer-sides legend { padding: 0 4px; color: var(--dw-color-text); font-size: var(--dw-font-xs); font-weight: 600; }.dw-scenario-choice[aria-pressed="true"] { text-decoration: underline; }
.dw-presort { display: grid; gap: 8px; margin: 0 0 12px; }.dw-presort-bar { padding: 10px 12px; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface-raised); color: var(--dw-color-text); font-size: var(--dw-font-xs); }.dw-presort-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }.dw-presort-actions { display: inline-flex; gap: 8px; }.dw-presort-lines { margin-top: 8px; }.dw-presort-lines>li { display: grid; grid-template-columns: minmax(16rem,1fr) 1fr auto auto; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--dw-color-border-subtle); }.dw-presort-lines>li[data-presort-out="true"]>span:first-child { text-decoration: line-through; }.dw-presort-group { margin: 8px 0 0; }@media (max-width: 640px) { .dw-presort-head,.dw-presort-lines>li { grid-template-columns: 1fr; } }
.dw-intake-layout { margin: 0; padding-left: 1.2rem; font-size: var(--dw-font-xs); }.dw-intake-balances { margin: 0; }.dw-intake-balances>summary { cursor: pointer; color: var(--dw-color-action-hover); font-size: var(--dw-font-xs); }.dw-intake-balances>summary:focus-visible { outline: 2px solid var(--dw-color-focus-ring); outline-offset: 2px; }
.dw-scenarios { margin-top: 14px; }.dw-scenarios h3 { margin: 0 0 6px; color: var(--dw-color-text); font-size: var(--dw-font-sm); }.dw-scenario-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }.dw-scenario-list>li { display: grid; grid-template-columns: 17rem minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid var(--dw-color-border-subtle); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface-raised); font-size: var(--dw-font-xs); }.dw-scenario-choice { justify-self: start; text-align: left; padding: 0; border: 0; background: none; color: var(--dw-color-action-hover); font-weight: 600; text-decoration: none; cursor: pointer; }.dw-scenario-choice:hover { text-decoration: underline; }.dw-scenario-choice:focus-visible { outline: 2px solid var(--dw-color-focus-ring); outline-offset: 2px; }.dw-scenario-help { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid var(--dw-color-border); border-radius: 50%; color: var(--dw-color-action-hover); text-decoration: none; font-weight: 600; }.dw-scenario-help:focus-visible { outline: 2px solid var(--dw-color-focus-ring); outline-offset: 2px; }@media (max-width: 640px) { .dw-scenario-list>li { grid-template-columns: 1fr auto; } .dw-scenario-list>li>.dw-muted { grid-column: 1 / -1; grid-row: 2; } }
/* The statement screen (F23 #1012): the three steps, the two checks, the lists with the answer beside them, and the proof. */
.dw-steps { margin: 0 0 14px; }.dw-steps>ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }.dw-steps li>a { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface); color: var(--dw-color-text); text-decoration: none; font-size: var(--dw-font-sm); }.dw-steps li>a:focus-visible { outline: 2px solid var(--dw-color-focus-ring); outline-offset: 2px; }.dw-steps li>a>small { grid-column: 2; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-step-name { font-weight: 600; }.dw-step-mark { grid-row: span 2; display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border: 1px solid var(--dw-color-border); border-radius: 50%; font-weight: 600; }.dw-steps li[aria-current="step"]>a { border-color: var(--dw-color-action); border-width: 2px; padding: 7px 11px; }.dw-steps li[data-step-state="done"] .dw-step-mark { border-color: var(--dw-color-action); color: var(--dw-color-action-hover); }
.dw-statement-checks { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 6px; font-size: var(--dw-font-sm); }.dw-statement-checks>li { padding: 8px 12px; border: 1px solid var(--dw-color-border-subtle); border-left-width: 4px; border-radius: var(--dw-radius-sm); background: var(--dw-color-surface-raised); color: var(--dw-color-text); }.dw-statement-checks>li[data-check-state="ok"] { border-left-color: var(--dw-color-success); }.dw-statement-checks>li[data-check-state="failing"] { border-left-style: double; border-left-color: var(--dw-color-danger); }.dw-check-mark { display: inline-block; width: 1.2rem; font-weight: 700; }
.dw-statement-starting,.dw-statement-closing { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface-raised); color: var(--dw-color-text); }.dw-statement-starting h3,.dw-statement-closing h3 { margin: 0 0 6px; font-size: var(--dw-font-md, 1rem); font-weight: 600; }.dw-statement-period { margin: 8px 0; }.dw-statement-period>summary { cursor: pointer; color: var(--dw-color-action-hover); font-size: var(--dw-font-xs); }.dw-statement-period>summary:focus-visible { outline: 2px solid var(--dw-color-focus-ring); outline-offset: 2px; }.dw-field-error { margin: 6px 0; color: var(--dw-color-text); font-weight: 600; font-size: var(--dw-font-xs); }
.dw-statement-work { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; align-items: start; }.dw-statement-work[data-answering="true"] { grid-template-columns: minmax(0,1fr) minmax(24rem,34rem); }.dw-statement-lists { min-width: 0; }.dw-statement-answer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }.dw-statement-answer-head h2 { margin: 0; font-size: var(--dw-font-md); color: var(--dw-color-text); }.dw-statement-answer-head p { margin: 2px 0 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-statement-answer { position: sticky; top: 64px; min-width: 0; max-height: calc(100vh - 80px); overflow: auto; }.dw-statement-answer .dw-scenario-list>li { grid-template-columns: minmax(0,1fr) auto; }.dw-statement-answer .dw-scenario-list>li>.dw-muted { grid-column: 1 / -1; grid-row: 2; }.dw-table-group>th { text-align: left; font-weight: 600; font-size: var(--dw-font-xs); color: var(--dw-color-text); }@media (max-width: 1100px) { .dw-statement-work[data-answering="true"] { grid-template-columns: minmax(0,1fr); } .dw-statement-answer { position: static; max-height: none; } .dw-steps>ol { grid-template-columns: 1fr; } }
.dw-statement-proof { width: min(100%,44rem); margin: 4px 0 14px; border-collapse: collapse; font-size: var(--dw-font-sm); color: var(--dw-color-text); }.dw-statement-proof th { padding: 7px 0; text-align: left; font-weight: 400; border-bottom: 1px solid var(--dw-color-border-subtle); }.dw-statement-proof td { padding: 7px 0 7px 16px; text-align: right; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--dw-color-border-subtle); }.dw-statement-proof-total th,.dw-statement-proof-total td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--dw-color-border); }.dw-statement-causes { margin: 8px 0; padding-left: 1.4rem; display: grid; gap: 10px; font-size: var(--dw-font-sm); color: var(--dw-color-text); }.dw-statement-causes p { margin: 2px 0 4px; }
/* The PDF beside the month (F23 #1023) and banking on the period close (#1025). */
.dw-statement-paper { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface-raised); color: var(--dw-color-text); font-size: var(--dw-font-sm); }.dw-statement-paper h3 { margin: 0 0 6px; font-size: var(--dw-font-md); font-weight: 600; }.dw-statement-paper-view { display: block; width: 100%; height: 28rem; border: 1px solid var(--dw-color-border-subtle); background: var(--dw-color-surface); }.dw-paper-figure { margin: 8px 0; padding: 8px 10px; border-left: 4px solid var(--dw-color-border); background: var(--dw-color-surface); }.dw-paper-figure p { margin: 2px 0; }.dw-paper-mark { display: inline-block; padding: 0 6px; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-sm); font-size: var(--dw-font-xs); font-weight: 600; }.dw-close-banking { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--dw-color-border-subtle); font-size: var(--dw-font-sm); color: var(--dw-color-text); }.dw-close-banking h3 { margin: 0 0 4px; font-size: var(--dw-font-sm); font-weight: 600; }
/* Banking's home (F23 #1011): the Next bar and the account-by-month board. A cell's word and shape carry its state. */
.dw-board-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--dw-color-border); border-left: 4px solid var(--dw-color-action); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface); color: var(--dw-color-text); font-size: var(--dw-font-sm); }.dw-board-next p { margin: 0; }.dw-board-next .dw-action-primary { padding: 6px 12px; border: 1px solid var(--dw-color-action); border-radius: var(--dw-radius-sm); background: var(--dw-color-action); color: var(--dw-color-on-action, var(--dw-color-surface)); text-decoration: none; font-weight: 600; }.dw-board-next .dw-action-primary:focus-visible { outline: 2px solid var(--dw-color-focus-ring); outline-offset: 2px; }
.dw-board .dw-board-month,.dw-board .dw-board-cell { padding-left: 4px; padding-right: 4px; text-align: center; white-space: nowrap; }.dw-board .dw-board-month>small { display: block; font-weight: 400; color: var(--dw-color-text-muted); }.dw-board-cell>a { display: inline-block; min-width: 3.6rem; padding: 2px 6px; border: 1px solid var(--dw-color-border-subtle); border-radius: var(--dw-radius-sm); color: var(--dw-color-text); text-decoration: none; font-size: var(--dw-font-xs); }.dw-board-cell>a:hover { border-color: var(--dw-color-action); }.dw-board-cell>a:focus-visible { outline: 2px solid var(--dw-color-focus-ring); outline-offset: 2px; }.dw-board-cell[data-cell-state="done"]>a { border-color: var(--dw-color-border); font-weight: 600; }.dw-board-cell[data-cell-state="left"]>a,.dw-board-cell[data-cell-state="missing"]>a { border-color: var(--dw-color-text); border-width: 2px; padding: 1px 5px; font-weight: 600; }.dw-board-cell[data-cell-state="add"]>a { border-style: dashed; color: var(--dw-color-text-muted); }[data-open-statement]+.dw-link-button { margin-left: 10px; }.dw-board-legend { margin: 6px 0 16px; font-size: var(--dw-font-xs); }.dw-board-drop { padding: 12px; border: 1px dashed var(--dw-color-border); border-radius: var(--dw-radius-sm); }
/* First look (#1029): the bars' confirm is a button, the selected line says so in shape as well, the board's marks are readable. */
.dw-presort-actions { align-items: center; gap: 12px; }.dw-presort-confirm { display: inline-flex; align-items: center; min-height: var(--dw-control-md); padding: 0 14px; border: 1px solid var(--dw-color-action); border-radius: var(--dw-radius-sm); background: var(--dw-color-action); color: var(--dw-color-on-action); font-weight: 600; cursor: pointer; }.dw-presort-confirm:hover:not(:disabled) { background: var(--dw-color-action-hover); }.dw-presort-confirm:focus-visible { outline: 2px solid var(--dw-color-focus-ring); outline-offset: 2px; }.dw-presort-confirm:disabled { border-color: var(--dw-color-border); background: var(--dw-color-surface-subdued); color: var(--dw-color-text-disabled); cursor: default; }
.dw-statement-lists tr.dw-selected>td { border-top: 2px solid var(--dw-color-action); border-bottom: 2px solid var(--dw-color-action); font-weight: 600; }.dw-statement-lists tr.dw-selected>td:first-child { border-left: 4px solid var(--dw-color-action); }.dw-line-open { margin-right: 8px; white-space: nowrap; }
.dw-candidate-question { margin: 6px 0; color: var(--dw-color-text); font-size: var(--dw-font-md); font-weight: 600; }.dw-candidate-why,.dw-cause-details { margin: 4px 0; font-size: var(--dw-font-xs); }.dw-candidate-why>summary,.dw-cause-details>summary { cursor: pointer; color: var(--dw-color-action-hover); }.dw-candidate-why>summary:focus-visible,.dw-cause-details>summary:focus-visible { outline: 2px solid var(--dw-color-focus-ring); outline-offset: 2px; }
.dw-board-shape { display: inline-block; min-width: 1.1em; font-size: var(--dw-font-md); font-weight: 700; line-height: 1; vertical-align: -1px; }
/* Help pages (#1008): steps read as a numbered list; the kinds as a short index. */
.dw-help-steps { margin: 6px 0; padding-left: 1.4rem; color: var(--dw-color-text); font-size: var(--dw-font-sm); display: grid; gap: 4px; }.dw-help-index { margin: 6px 0; padding-left: 1.2rem; columns: 2 18rem; font-size: var(--dw-font-sm); }
.dw-resource-notes { margin-top: 14px; padding: 12px; background: var(--dw-color-surface-raised); }.dw-resource-notes span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-resource-notes p { margin: 5px 0 0; color: var(--dw-color-text); font-size: var(--dw-font-xs); white-space: pre-wrap; }
/* An exchanged file shown as it was (F39 EDI document): collapsed, read-only, scrolled within its own box rather than widening the page. */
.dw-disclosure summary { color: var(--dw-color-action-hover); font-size: var(--dw-font-xs); cursor: pointer; }.dw-payload { max-height: 28rem; margin: 8px 0 0; padding: 10px 12px; overflow: auto; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface-raised); color: var(--dw-color-text); font-size: var(--dw-font-xs); white-space: pre; }
/* Bill to beside ship to (13.15): the same cell, label and type as the property
   grid above it, so an address block reads as one more fact about the resource
   rather than a panel of its own. Each line is its own strong, so a four-line
   address stacks instead of wrapping mid-street. */
.dw-address-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); border-left: 1px solid var(--dw-color-border-subtle); }
.dw-address-pair>div { padding: 10px 12px; border-right: 1px solid var(--dw-color-border-subtle); border-bottom: 1px solid var(--dw-color-border-subtle); }
.dw-address-pair span,.dw-address-pair strong,.dw-address-pair small { display: block; }
.dw-address-pair span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-address-pair strong { margin-top: 5px; color: var(--dw-color-text); font-size: var(--dw-font-xs); font-weight: 600; }
.dw-address-pair strong+strong { margin-top: 0; }
.dw-address-pair small { margin-top: 5px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-destination-panel .dw-address-pair { grid-template-columns: minmax(0,1fr); border-top: 1px solid var(--dw-color-border-subtle); }
/* An address line has no space to wrap at: "4416 W Diversey Ave." breaks, a postal
   code does not, and at 320px a long one is wider than its cell. Breaking inside the
   word is the only thing that keeps the page from dragging sideways (Web#345's rule:
   measure the settled layout rather than assuming the grid will cope). */
.dw-address-pair strong { overflow-wrap: anywhere; }
.dw-destination-panel p { margin: 10px 0 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-resource-metadata { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }.dw-resource-metadata>div { padding: 9px 11px; border-left: 2px solid var(--dw-color-border); }.dw-resource-metadata span,.dw-resource-metadata strong,.dw-resource-metadata small { display: block; }.dw-resource-metadata span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-resource-metadata strong { margin-top: 3px; font-size: var(--dw-font-xs); font-weight: 600; }.dw-resource-metadata small { margin-top: 2px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-monospace { overflow: hidden; font-family: var(--dw-font-family-mono); text-overflow: ellipsis; }.dw-link-button.dw-resource-link { font-size: inherit; font-weight: 600; text-align: left; }.dw-link-button.dw-resource-link:hover { text-decoration: underline; }
.dw-comment-editor { border: 1px solid var(--dw-color-border-muted); }.dw-comment-editor textarea { display: block; width: 100%; min-height: 74px; padding: 10px; border: 0; border-bottom: 1px solid var(--dw-color-border-subtle); outline: 0; resize: vertical; font: var(--dw-font-xs) var(--dw-font-family); }.dw-comment-editor:focus-within { border-color: var(--dw-color-action); }.dw-comment-editor>div { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 8px 0 10px; background: var(--dw-color-surface-raised); }.dw-comment-editor span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-comment-editor button { min-height: var(--dw-control-sm); padding: 0 12px; border: 0; background: var(--dw-color-action); color: var(--dw-color-on-action); font: 600 var(--dw-font-xs) var(--dw-font-family); cursor: pointer; }
.dw-discussion-list { margin-top: 14px; }.dw-comment { display: grid; grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--dw-color-border-subtle); }.dw-comment-avatar { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--dw-color-surface-subdued); color: var(--dw-color-text); font-size: var(--dw-font-xs); font-weight: 600; }.dw-comment header { display: flex; align-items: baseline; gap: 8px; }.dw-comment header strong { font-size: var(--dw-font-xs); }.dw-comment header span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-comment p { margin: 6px 0 0; font-size: var(--dw-font-xs); line-height: 1.45; white-space: pre-wrap; }
.dw-related-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.dw-related-panel { min-width: 0; border: 1px solid var(--dw-color-border); }.dw-related-panel>header { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 10px; border-bottom: 1px solid var(--dw-color-border-subtle); background: var(--dw-color-surface-raised); }.dw-related-panel h3 { margin: 0; font-size: var(--dw-font-xs); font-weight: 600; }.dw-related-panel header span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-related-panel table { width: 100%; border-collapse: collapse; font-size: var(--dw-font-xs); }.dw-related-panel th,.dw-related-panel td { padding: 7px 8px; border-bottom: 1px solid var(--dw-color-border-subtle); text-align: left; }.dw-related-panel th { color: var(--dw-color-text-muted); font-weight: 600; }.dw-related-panel td span { display: block; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-empty.compact { min-height: 88px; padding: 12px; }
.dw-timeline { margin-left: 7px; border-left: 2px solid var(--dw-color-border); }.dw-timeline article { position: relative; display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 8px; margin: 0 0 0 -7px; padding: 0 0 18px; }.dw-timeline-dot { width: 12px; height: 12px; margin-top: 2px; border: 3px solid var(--dw-color-surface); border-radius: 50%; background: var(--dw-color-action); box-shadow: 0 0 0 1px var(--dw-color-action); }.dw-timeline header { display: flex; align-items: baseline; justify-content: space-between; }.dw-timeline header strong { font-size: var(--dw-font-xs); }.dw-timeline time { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-timeline p { margin: 4px 0 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-timeline p span { margin-left: 5px; }

@media(max-width:1000px){.dw-kpi-grid{grid-template-columns:repeat(2,1fr)}.dw-property-grid{grid-template-columns:repeat(2,1fr)}.dw-related-grid{grid-template-columns:1fr}}
/* Bill to above ship to rather than beside it. Two address cells will not fit the
   narrow end of the desktop range side by side, and at 320px -- the WCAG zoom check,
   not a phone -- two columns dragged the customer page sideways. */
@media(max-width:700px){.dw-address-pair{grid-template-columns:1fr}}
@media(max-width:700px){.mud-container.dw-workspace-canvas{padding:12px}.dw-kpi-grid{grid-template-columns:1fr}.dw-form-grid,.dw-time-entry-grid{grid-template-columns:1fr}.dw-time-entry-grid .dw-grid-span{grid-column:auto}.dw-resource-header h1{font-size:var(--dw-font-2xl)}.dw-resource-context-layout{grid-template-columns:1fr}.dw-context-nav{display:flex;overflow-x:auto;border-right:0;border-bottom:1px solid var(--dw-color-border-subtle)}.dw-context-nav a{white-space:nowrap}.dw-context-content{padding:0 12px 20px}.dw-context-identity{align-items:flex-start;flex-wrap:wrap}.dw-context-actions{width:100%;margin:10px 0 0 54px}.dw-state-strip{flex-wrap:wrap}.dw-state-strip .dw-state-action{align-items:flex-start;margin-left:0}.dw-property-grid,.dw-resource-metadata{grid-template-columns:1fr}.dw-header-workspace{display:none}.dw-workspace-name{max-width:9rem}}

@media (max-width: 600px) {
    .dw-wordmark {
        width: 6.8rem;
    }
}

.blazor-error-boundary {
    background: var(--mud-palette-error);
    color: var(--mud-palette-error-text);
    padding: 1rem;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }
/* THE STAGE TRACKER (#673). The owner's words were "looks like crap", and three
   things were wrong with it.

   It RAN TOGETHER -- "Acknowledgment2 of 2 linesNov 8" -- because each stop was
   a label followed by a <small> whose only separation was a leading space, which
   Razor drops. So the note is a BLOCK here: its own second line, in the muted
   role, which is also what a trailing note in a table cell gets below. Every
   tracker on every page is built that way, so one rule fixes all of them.

   It SHOUTED. The current stage was a solid fill in the action colour, which
   out-shouted the command bar's actual primary action; done was success ink on a
   success tint, hard to read. Now the state is a crisp left edge in the role's
   colour -- accent for current, success for done, danger for an exit -- with the
   text in the ordinary role, which is the house style of borders over blocks of
   colour. State is never carried by that colour alone: current is also bold and
   keeps aria-current, and done also carries a check mark.

   It sat on the canvas as a strip of boxes rather than as a panel like the fact
   strip above it (Web#421 composition). It is a panel now, and v2.css gives it
   the solid surface every content panel takes under a material.

   Stages not yet reached were drawn in the DISABLED text role: 3.2-3.7:1 in the
   light materials, below AA, and waived in AccessibilityTests.PendingOwnerDecision
   while it stood. They are the muted role now, which is the role every other
   secondary line on a panel already passes with, and that waiver is gone. */
.dw-stages { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 14px; padding: 10px 14px; list-style: none; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-md); background: var(--dw-color-surface); }
.dw-stages li { flex: 1 1 110px; min-width: 0; padding: 2px 0 2px 10px; border-left: 2px solid var(--dw-color-border); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-stages li.done { border-left-color: var(--dw-color-success); color: var(--dw-color-text); }
.dw-stages li.current { border-left-color: var(--dw-color-action); color: var(--dw-color-text); font-weight: 600; }
.dw-stages li.exit { border-left-color: var(--dw-color-danger); color: var(--dw-color-danger); font-weight: 600; }
.dw-stage-mark { color: var(--dw-color-success); }
/* A note that belongs to the value above it, never jammed against it: the
   tracker's progress and date, a line's price source, a work order's status. */
.dw-stages li small, .dw-cell-note { display: block; margin-top: 2px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: 400; }
/* The draft line being changed in place on a new order (G28): marked on the
   row, so the fields below are visibly about THIS line. The words on the row say
   it too -- the edge is not the only carrier. */
.dw-row-editing > td:first-child { box-shadow: inset 2px 0 0 var(--dw-color-action); }
/* Reflow (WCAG 1.4.10, Web#369): six stages side by side are 510px, so at 320px they wrap rather than drag the page sideways. Two to a row there, each keeping its own edge. */
@media (max-width: 600px) { .dw-stages li { flex: 1 1 40%; } }
/* What the strip above cannot say on a line: how far below the order the open subassembly work goes (11.19). */
.dw-stages-note { margin: -8px 0 14px; font-size: var(--dw-font-xs); color: var(--dw-color-text-muted); }
.dw-packet { background: var(--dw-color-surface); color: var(--dw-color-ink); padding: 16px; }.dw-packet h1 { font-size: 22px; margin: 0; }.dw-packet .dw-packet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--dw-color-ink); padding-bottom: 8px; }.dw-packet table { width: 100%; border-collapse: collapse; margin-top: 10px; }.dw-packet th, .dw-packet td { border: 1px solid var(--dw-color-ink); padding: 4px 6px; font-size: 12px; vertical-align: top; }.dw-packet svg { width: 96px; height: 96px; }.dw-packet .dw-packet-step { page-break-inside: avoid; }.dw-packet .dw-packet-code-text { text-align: center; font-size: 11px; }.dw-packet .dw-packet-step-code { font-size: 10px; }.dw-packet .dw-packet-scan { width: 110px; }.dw-packet .dw-packet-count { width: 70px; }.dw-packet .dw-packet-initials { width: 90px; }.dw-packet .dw-packet-quantity { width: 160px; }.dw-packet .dw-packet-instructions { margin-top: 4px; font-size: 11px; white-space: pre-wrap; }
@media print { :root { color-scheme: light; } .dw-packet { background: var(--dw-color-paper); } .mud-drawer, .mud-appbar, header.dw-resource-header, nav, .dw-command-bar, .dw-no-print { display: none !important; } .mud-main-content, main { padding: 0 !important; margin: 0 !important; } .dw-packet { padding: 0; } }
.dw-kiosk-shell { min-height: 100vh; background: var(--dw-color-surface-subdued); padding: 16px; font-size: var(--dw-kiosk-text); }.dw-kiosk-card { max-width: var(--dw-width-kiosk); margin: 0 auto; background: var(--dw-color-surface); border: 1px solid var(--dw-color-border-muted); border-radius: 8px; padding: 20px 24px; }.dw-kiosk-card h1 { margin: 0 0 12px; font-size: var(--dw-kiosk-text-xl); }.dw-kiosk-card h2 { margin: 18px 0 8px; font-size: var(--dw-kiosk-text-md); }
.dw-kiosk-head { max-width: var(--dw-width-kiosk); margin: 0 auto 12px; display: flex; justify-content: space-between; align-items: center; font-size: var(--dw-kiosk-text-sm); color: var(--dw-color-text); }
.dw-kiosk-input { min-height: var(--dw-control-touch); width: 100%; box-sizing: border-box; font-size: var(--dw-kiosk-text-lg); padding: 12px 14px; border: 2px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-lg); margin: 6px 0 12px; }.dw-kiosk-input:focus { border-color: var(--dw-color-action); outline: 0; }
.dw-kiosk-button { min-height: var(--dw-control-touch); font-size: var(--dw-kiosk-text-md); padding: 14px 26px; border-radius: 8px; border: 2px solid var(--dw-color-border-strong); background: var(--dw-color-surface); cursor: pointer; min-width: 160px; }.dw-kiosk-button.primary { background: var(--dw-color-action); border-color: var(--dw-color-action); color: var(--dw-color-on-action); }.dw-kiosk-button.small { min-height: var(--dw-control-lg); font-size: var(--dw-kiosk-text-xs); padding: 8px 14px; min-width: 0; }.dw-kiosk-button:focus-visible, .dw-kiosk-input:focus-visible, .dw-kiosk-link:focus-visible { outline: 3px solid var(--dw-color-action); outline-offset: 2px; }.dw-kiosk-button:disabled { opacity: .45; cursor: default; }.dw-kiosk-link { min-height: var(--dw-control-lg); background: none; border: 0; color: var(--dw-color-action); font-size: var(--dw-kiosk-text-xs); cursor: pointer; }
.dw-kiosk-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 12px 0; }.dw-kiosk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }.dw-kiosk-grid label { display: flex; flex-direction: column; font-size: var(--dw-kiosk-text-xs); color: var(--dw-color-text-muted); }
.dw-kiosk-steps { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: var(--dw-kiosk-text-sm); }.dw-kiosk-steps th, .dw-kiosk-steps td { border-bottom: 1px solid var(--dw-color-border); padding: 8px 6px; text-align: left; }.dw-kiosk-steps tr.skipped { color: var(--dw-color-text-disabled); }
.dw-kiosk-error { background: var(--dw-color-danger-tint); color: var(--dw-color-danger); padding: 10px 14px; border-radius: var(--dw-radius-lg); max-width: var(--dw-width-kiosk); margin: 0 auto 12px; }.dw-kiosk-notice { background: var(--dw-color-success-tint); color: var(--dw-color-success-ink); padding: 10px 14px; border-radius: var(--dw-radius-lg); max-width: var(--dw-width-kiosk); margin: 0 auto 12px; }.dw-kiosk-flag { color: var(--dw-color-danger); }/* Said, never refused (11.30): a job-on that goes past rush work is warned about and still starts, so it must not wear the error colour. */.dw-kiosk-warning { background: var(--dw-color-warning-tint); color: var(--dw-color-warning-ink); border: 2px solid var(--dw-color-warning); border-radius: var(--dw-radius-lg); padding: 10px 14px; margin: 12px 0; }.dw-kiosk-warning p { margin: 6px 0 0; }.dw-kiosk-instructions { border: 1px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-lg); padding: 10px 14px; margin: 12px 0; }.dw-kiosk-instructions p { margin: 6px 0 0; white-space: pre-wrap; }.dw-kiosk-muted { color: var(--dw-color-text-muted); font-size: var(--dw-kiosk-text-xs); }.dw-kiosk-cut { border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-lg); padding: 10px 12px; margin-bottom: 10px; }
.dw-typeahead { position: relative; display: inline-block; min-width: 220px; }.dw-typeahead-chip { display: inline-flex; align-items: center; gap: 6px; min-height: var(--dw-control-md); padding: 0 8px; border: 1px solid var(--dw-color-action-tint-border); border-radius: var(--dw-radius-sm); background: var(--dw-color-action-tint); font-size: var(--dw-font-xs); }.dw-typeahead-chip small { color: var(--dw-color-text-muted); }.dw-typeahead-clear { min-width: 24px; min-height: 24px; border: 0; background: transparent; color: var(--dw-color-text-muted); font-size: 16px; line-height: 1; cursor: pointer; }.dw-typeahead-clear:hover { color: var(--dw-color-danger); }.dw-typeahead-matches { position: absolute; z-index: 20; left: 0; right: 0; max-height: 320px; margin: 2px 0 0; padding: 4px 0; overflow-y: auto; list-style: none; border: 1px solid var(--dw-color-border-strong); background: var(--dw-color-surface); box-shadow: 0 6px 18px var(--dw-color-shadow-strong); }.dw-typeahead-matches li { display: block; min-height: 24px; padding: 6px 10px; font: var(--dw-font-xs) var(--dw-font-family); cursor: pointer; }.dw-typeahead-matches li:hover { background: var(--dw-color-surface-subdued); }.dw-typeahead-matches li.active { background: var(--dw-color-action-tint); box-shadow: inset 3px 0 0 var(--dw-color-action); }.dw-typeahead-matches li small { margin-left: 6px; color: var(--dw-color-text-muted); }.dw-typeahead-note { display: block; margin-top: 4px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }.dw-typeahead-note:empty { margin: 0; }.dw-line-entry { padding: 8px 12px; }.dw-list-search .dw-typeahead { vertical-align: middle; }

/* A wizard's steps (roadmap 20.27): where a multi-step set-up stands, the
   current step marked for assistive technology by aria-current="step" and for
   the eye by its tone. Numbers and words both, so the state is never colour alone. */
.dw-wizard-steps { display: flex; gap: var(--dw-space-6); margin: 0 0 var(--dw-space-6); padding: 0; list-style: none; flex-wrap: wrap; }
.dw-wizard-step { display: flex; align-items: center; gap: var(--dw-space-4); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-wizard-step strong { display: block; font-weight: 600; }
.dw-wizard-step-state { display: block; }
.dw-wizard-step-number { display: inline-flex; align-items: center; justify-content: center; width: var(--dw-control-sm); height: var(--dw-control-sm); border: 1px solid var(--dw-color-border-subtle); border-radius: 50%; font-weight: 600; }
.dw-wizard-step.current { color: var(--dw-color-text); }
.dw-wizard-step.current .dw-wizard-step-number { border-color: var(--dw-color-action); color: var(--dw-color-action); }
.dw-wizard-step.done .dw-wizard-step-number { border-color: var(--dw-color-success); color: var(--dw-color-success); }

/* The focused dialog of the join page (roadmap 20.28): one bordered panel on
   the landing layout, the width of a dialog, not a raised paper. */
.dw-join-panel { max-width: var(--dw-width-reading); margin: var(--dw-space-9) auto; padding: var(--dw-space-8); border: 1px solid var(--dw-color-border-subtle); background: var(--dw-color-surface); }
.dw-join-panel h1 { margin: 0 0 var(--dw-space-6); font-size: var(--dw-font-2xl); font-weight: 600; }
.dw-join-lede { margin: 0 0 var(--dw-space-5); }
.dw-join-panel h2 { margin: var(--dw-space-7) 0 var(--dw-space-3); font-size: var(--dw-font-lg); font-weight: 600; }

/* The row of buttons that finishes an in-page action (ActionRow, roadmap 20.29),
   and the bordered section an action panel sits in. They were the resource
   header's own class and dw-settings-panel, spelled by hand on each page. */
.dw-action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: var(--dw-space-5); }
.dw-action-row a, .dw-action-row button { display: inline-flex; align-items: center; gap: 5px; min-height: var(--dw-control-md); padding: 0 12px; border: 1px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface); color: var(--dw-color-text); font: 600 var(--dw-font-xs) var(--dw-font-family); text-decoration: none; cursor: pointer; }
.dw-action-row .dw-action-primary { border-color: var(--dw-color-action); background: var(--dw-color-action); color: var(--dw-color-on-action); }
.dw-action-row a:hover, .dw-action-row button:hover { background: var(--dw-color-surface-subdued); }
.dw-action-row .dw-action-primary:hover { background: var(--dw-color-action-hover); }
.dw-action-row button:disabled, .dw-action-row button:disabled:hover { border-color: var(--dw-color-border); background: var(--dw-color-surface-subdued); color: var(--dw-color-text-disabled); cursor: default; }
.dw-section-panel { margin-bottom: 18px; padding: 16px 18px 20px; border: 1px solid var(--dw-color-border); background: var(--dw-color-surface); }
/* Standing on the page, a section, a table or a fact strip is framed as a panel
   in every theme (Web#421), so a V2 material paints the panel without moving
   anything: a section takes the section panel's frame, a table and a strip a
   border of their own. Inside a card, an editor or another panel they are part
   of it and take nothing here. */
#main-content > .dw-context-section:not(.dw-section-panel) { margin-bottom: 18px; padding: 16px 18px 20px; border: 1px solid var(--dw-color-border); background: var(--dw-color-surface); }
#main-content > .dw-context-section:not(.dw-section-panel):last-child { border-bottom: 1px solid var(--dw-color-border); }
#main-content > .dw-table-shell:not(.dw-resource-panel) { margin-bottom: 18px; border: 1px solid var(--dw-color-border); background: var(--dw-color-surface); }
#main-content > .dw-state-strip { margin-bottom: 18px; border: 1px solid var(--dw-color-border); }
.dw-reveal { user-select: all; word-break: break-all; }

/* The font chooser and its preview (Api#573). No colour, size or control
   height of its own: every value here is a token, so the chooser is subject to
   the same system it chooses for. The two preview panels set a family on
   themselves and nothing else, which is what lets them show a face the
   workspace has not adopted without the rest of the page moving. */
.dw-font-choice { display: grid; grid-template-columns: repeat(auto-fit,minmax(19rem,1fr)); gap: 12px; min-width: 0; margin: 0; padding: 0; border: 0; }
.dw-font-choice:disabled { opacity: .7; }
.dw-font-option { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--dw-color-border-strong); border-radius: var(--dw-radius-sm); background: var(--dw-color-surface); cursor: pointer; }
.dw-font-choice:disabled .dw-font-option { cursor: default; }
.dw-font-option:focus-within { border-color: var(--dw-color-action); box-shadow: inset 0 0 0 1px var(--dw-color-action); }
.dw-font-option.chosen { border-color: var(--dw-color-action); background: var(--dw-color-action-tint); }
.dw-font-option input { margin-top: 3px; }
.dw-font-option-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dw-font-option-body strong { display: flex; align-items: center; gap: 7px; color: var(--dw-color-text); font-size: var(--dw-font-lg); font-weight: var(--dw-font-weight-emphasis); }
.dw-font-option-body span { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-font-option-tag { padding: 1px 6px; border: 1px solid var(--dw-color-border); border-radius: var(--dw-radius-pill); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: var(--dw-font-weight-body); white-space: nowrap; }
.dw-font-option-tag.current { border-color: var(--dw-color-action); color: var(--dw-color-action); }
.dw-font-previews { display: grid; grid-template-columns: repeat(auto-fit,minmax(21rem,1fr)); gap: 14px; min-width: 0; }
.dw-font-preview { min-width: 0; padding: 14px 16px 16px; border: 1px solid var(--dw-color-border); background: var(--dw-color-surface); }
.dw-font-preview.chosen { border-color: var(--dw-color-action); }
.dw-font-preview header { display: flex; align-items: center; gap: 7px; padding-bottom: 9px; margin-bottom: 11px; border-bottom: 1px solid var(--dw-color-border-subtle); }
.dw-font-preview header strong { color: var(--dw-color-text); font-size: var(--dw-font-md); font-weight: var(--dw-font-weight-emphasis); }
.dw-font-preview-label { margin: 0; color: var(--dw-color-text); font-size: var(--dw-font-xs); font-weight: var(--dw-font-weight-label); }
.dw-font-preview-value { margin: 2px 0 10px; color: var(--dw-color-text); font-size: var(--dw-font-sm); }
.dw-font-preview-body { margin: 0 0 12px; color: var(--dw-color-text); font-size: var(--dw-font-sm); line-height: 1.5; }
.dw-font-preview-figures { margin-bottom: 12px; }
.dw-font-preview-command { display: flex; gap: 8px; margin: 0; }
.dw-preview-button { display: inline-flex; align-items: center; min-height: var(--dw-control-md); padding: 0 13px; border: 1px solid var(--dw-color-action); border-radius: var(--dw-radius-sm); background: var(--dw-color-action); color: var(--dw-color-on-action); font-size: var(--dw-font-xs); font-weight: var(--dw-font-weight-emphasis); }
.dw-preview-button.secondary { border-color: var(--dw-color-border-strong); background: var(--dw-color-surface); color: var(--dw-color-text); font-weight: var(--dw-font-weight-label); }

/*
    The filter row on the planning screens (11.27's load view, 11.29's release
    workbench): the span controls above a dense matrix.

    Its own row rather than .dw-list-search, which belongs to a list's toolbar
    and carries that toolbar's border and spacing. Written here rather than in a
    scoped file because both screens use it, and 11.27 spelled it without ever
    defining it, so its controls stacked instead of sitting in a row.
*/
.dw-filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0 0 10px; }
.dw-filter-row .dw-toolbar-field { display: inline-flex; flex-direction: column; gap: 3px; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); white-space: nowrap; }
.dw-filter-row .dw-toolbar-field input, .dw-filter-row .dw-toolbar-field select { height: var(--dw-control-sm); padding: 0 6px; border: 1px solid var(--dw-color-border-muted); background: var(--dw-color-surface); color: var(--dw-color-text); font: var(--dw-font-xs) var(--dw-font-family); }

/*
    Legacy history (34.29, Web#477): the AS/400's documents, read-only. A panel
    is a heading over the shared related table; the window's addresses keep the
    line breaks the invoice printed with.
*/
.dw-legacy-history { display: grid; gap: 6px; margin: 0 0 14px; }
.dw-legacy-heading { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--dw-font-sm); font-weight: 600; }
.dw-legacy-addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 10px 0; }
.dw-legacy-addresses h3 { margin: 0 0 3px; }
.dw-legacy-address, .dw-legacy-notes { margin: 0; white-space: pre-line; font-size: var(--dw-font-xs); }

/*
    Role workspaces (F4/F5 plan C.6, Azure #798): the Workspace archetype. A
    dense two-column grid of widgets, each the shared section panel (so a V2
    material paints it solid, like every other panel), with its heading, its
    as-of line and its drill-through in one row. Roles only; no page palette.
*/
.dw-workspace-asof { margin: 0 0 var(--dw-space-5); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-workspace-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dw-space-6); align-items: start; }
.dw-workspace-grid > .dw-widget { min-width: 0; margin-bottom: 0; }
.dw-workspace-grid > .dw-widget.wide { grid-column: 1 / -1; }
/* A band's heading across the grid (the owner's view, 24.9): what is late first, then the rest in his order. */
.dw-workspace-grid > .dw-workspace-band { grid-column: 1 / -1; margin: var(--dw-space-3) 0 calc(-1 * var(--dw-space-3)); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); font-weight: var(--dw-font-weight-emphasis); letter-spacing: .04em; text-transform: uppercase; }
.dw-workspace-grid > .dw-workspace-band:first-child { margin-top: 0; }
.dw-widget-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--dw-space-5); margin-bottom: var(--dw-space-5); }
.dw-widget-heading h2 { margin: 0; color: var(--dw-color-text); font-size: var(--dw-font-md); font-weight: var(--dw-font-weight-emphasis); }
.dw-widget-asof { margin: var(--dw-space-1) 0 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-widget-drill { flex: none; color: var(--dw-color-action-hover); font-size: var(--dw-font-xs); font-weight: var(--dw-font-weight-emphasis); text-decoration: none; }
.dw-widget-drill:hover { text-decoration: underline; }
.dw-widget-retry { margin: 0 0 var(--dw-space-4); }
.dw-widget .dw-notice .dw-widget-retry { margin: 0 0 0 var(--dw-space-3); }
.dw-widget .dw-table-shell { margin-bottom: 0; }
.dw-sourced-facts { display: flex; flex-wrap: wrap; align-items: stretch; margin: 0 0 var(--dw-space-5); padding: 0 var(--dw-space-5); border: 1px solid var(--dw-color-border-subtle); background: var(--dw-color-surface-subdued); }
.dw-sourced-facts > div { display: flex; flex-direction: column; justify-content: center; min-width: 150px; padding: var(--dw-space-4) var(--dw-space-8) var(--dw-space-4) 0; }
.dw-sourced-facts dt { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
.dw-sourced-facts dd { margin: 0; }
.dw-sourced-facts .dw-sourced-value { margin-top: var(--dw-space-1); color: var(--dw-color-text); font-size: var(--dw-font-lg); font-weight: var(--dw-font-weight-emphasis); font-variant-numeric: tabular-nums; }
.dw-sourced-facts .dw-sourced-provenance { margin-top: var(--dw-space-1); color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
/* A count of what is late, when it is not nought (24.9): the warning ink, never a literal. */
.dw-sourced-facts .dw-sourced-value.dw-sourced-late, .dw-sourced-facts .dw-sourced-value.dw-sourced-late a { color: var(--dw-color-warning-ink); }
.dw-queue-unavailable { color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
/* The reason is the column a queue exists for: it keeps room to read in a half-width widget rather than yielding to the action column. */
.dw-queue-why { min-width: 14rem; }
.dw-queue-also { margin-left: var(--dw-space-4); }
.dw-queue-also > * + * { margin-left: var(--dw-space-4); }
.dw-widget-more { margin: var(--dw-space-4) 0 0; color: var(--dw-color-text-muted); font-size: var(--dw-font-xs); }
@media (max-width: 1100px) { .dw-workspace-grid { grid-template-columns: minmax(0, 1fr); } }
