/* The design system, in load order. See CAS.Blazor.Core/wwwroot/css/. */
/* CAS design system — token layer
   Variables only. No selectors beyond :root and .dark, no @apply, no class
   names. This is the only file that may contain a literal colour.
   Loaded in order: tokens.css, base.css, components.css. */

/* CSS Variables for consistent theming */
:root {
    --border-color: 229 231 235; /* gray-200 RGB values */

    /* ── Neutrals, as values ────────────────────────────────────────────────
       The same grays the text-, bg-surface- and border-default classes apply, for the
       stylesheets that are not run through Tailwind (markdown.css, code-editor.css,
       pdf-viewer-wrapper.css). They used to read --color-* names that were never
       defined, so they fell back to light-mode hex and ignored dark mode. */
    --text-heading:      #111827;
    --text-body:         #111827;
    --text-secondary:    #374151;
    --text-muted:        #6b7280;
    --text-placeholder:  #9ca3af;
    --surface:           #ffffff;
    --surface-secondary: #f9fafb;
    --surface-hover:     #f3f4f6;
    --surface-inset:     #f9fafb;
    --border-default:    #e5e7eb;

    /* Syntax highlighting palette - uses --cas-tint as accent for keys */
    --syntax-key: rgb(var(--cas-tint, 37 99 235));      /* tint - property names */
    --syntax-string: #16a34a;      /* green-600 - string values */
    --syntax-number: #d97706;      /* amber-600 - number values */
    --syntax-literal: #7c3aed;     /* violet-600 - true, false, null */
    --syntax-punctuation: #64748b; /* slate-500 - { } [ ] : , */
    --syntax-comment: #94a3b8;     /* slate-400 - comments */
    --syntax-link: rgb(var(--cas-tint, 37 99 235));
    --syntax-quote: #64748b;       /* slate-500 - blockquotes */
    --syntax-text: #1e293b;        /* slate-800 - base text */

    /* ── Brand tint, in three roles ───────────────────────────────────────
       --cas-tint / --cas-tint-dark are the raw RGB triples the host writes from
       EnvironmentSettings. Everything downstream reads one of the roles below,
       so "the tint" can no longer mean a hover shade in one file, a darker
       shade in the next and the dark-mode accent in a third. */
    --tint:         rgb(var(--cas-tint));
    --tint-hover:   color-mix(in srgb, rgb(var(--cas-tint)), black 18%);
    --tint-on-dark: color-mix(in srgb, rgb(var(--cas-tint)), white 42%);
    --tint-soft:    color-mix(in srgb, rgb(var(--cas-tint)), transparent 92%);

    /* ── Status, in four meanings plus admin ─────────────────────────────
       The whole colour set besides the tint and the grays. Every status class,
       badge, alert, toast, dot and chart series reads one of these; a page never
       picks its own green. One shade per meaning, the 600 step that the checks and
       warnings always had; washes and edges are the same colour at an alpha
       (bg-ok/10, border-ok/30). Info has no token of its own: info is the tint.
       RGB triples, so Tailwind can put an alpha on them (tailwind.preset.js). */
    --ok:    22 163 74;    /* green-600  done, approved, connected      */
    --warn:  217 119 6;    /* amber-600  stopped, waiting, needs a look */
    --bad:   220 38 38;    /* red-600    failed, error, destructive     */
    --admin: 124 58 237;   /* violet-600 only CAS staff sees this       */

    /* ── Type ───────────────────────────────────────────────────────────────
       Inter, self-hosted in wwwroot/fonts, is the whole interface. Until now no
       font-family was declared anywhere, so the app rendered in whatever the OS
       offered: SF Pro on a Mac, Segoe UI on Windows, Arial in the worst case.
       Three different x-heights means three different column widths for the same
       table, and the canvas could never be a spec for something it didn't share
       a face with.

       The two names below are the only place a face is chosen. tailwind.preset.js
       reads them into theme.fontFamily, and Tailwind's preflight puts the sans
       one on <html>, so everything inherits it. Swap the first entry here and the
       whole product follows. */
    --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
                 'Liberation Mono', monospace;

    /* ── Shape: four radii, applied by role ─────────────────────────────── */
    --r-xs: 0.25rem;   /* 4px   checkbox, tag, swatch */
    --r-sm: 0.375rem;  /* 6px   button, input, menu item */
    --r-md: 0.5rem;    /* 8px   panel, card, popover */
    --r-lg: 0.75rem;   /* 12px  modal, slide-over */

    /* ── Depth: three levels, each with a meaning ───────────────────────── */
    --e-1: 0 1px 2px rgb(15 23 42 / .05);                                        /* resting  */
    --e-2: 0 2px 8px -2px rgb(15 23 42 / .09), 0 1px 3px rgb(15 23 42 / .05);    /* floating */
    --e-3: 0 14px 34px -10px rgb(15 23 42 / .20), 0 4px 12px -4px rgb(15 23 42 / .10); /* overlay */

    /* Resting depth again, spelled for filter: drop-shadow(), which takes a single
       layer and cannot read a box-shadow value. A drop-shadow traces the shape's
       outline rather than its box, so on a ring it shows up far more than --e-1
       does on a panel — hence a lower alpha than you would expect. Kept here so
       the two are tuned together instead of drifting apart. */
    --e-1-drop: 0 1px 3px rgb(15 23 42 / .10);

    /* ── Control heights ────────────────────────────────────────────────── */
    --h-xs: 28px;  /* inside a dense table */
    --h-sm: 32px;  /* toolbars, filter bars */
    --h-md: 38px;  /* the default everywhere */
    --h-lg: 44px;  /* empty states, wizards */

    /* Row dividers are a shade lighter than a panel edge: one border weight, two roles.
       Not much lighter, though — at #f0f1f3 the line was 6% off white and simply did not
       read on a white panel, which is what made tables look like they had lost their row
       separators once the heads gave up their grey fill (#1246). */
    --border-subtle: 231 233 238;

    /* Loading placeholders. bg-skeleton was used 29 times and never existed, so
       every skeleton in the app rendered with no background at all. */
    --skeleton: 229 231 235;

    /* ── Document types ─────────────────────────────────────────────────────
       One palette. DocTypeColor() in the Client read from two different sets,
       so the same certificate was a different blue depending on the screen. */
    --doc-cert:    #5e89b8;
    --doc-invoice: #c2934f;
    --doc-note:    #4f9b7c;
    --doc-multi:   #9277ce;
    --doc-attach:  #8c8fa6;
    --doc-unknown: #9ca3af;
}

.dark {
    --border-color: 55 65 81; /* gray-700 RGB values */

    --text-heading:      #ffffff;
    --text-body:         #f9fafb;
    --text-secondary:    #d1d5db;
    --text-muted:        #9ca3af;
    --text-placeholder:  #6b7280;
    --surface:           #1f2937;
    --surface-secondary: #1f2937;
    --surface-hover:     #374151;
    --surface-inset:     #111827;
    --border-default:    #374151;

    --syntax-key: var(--tint-on-dark);   /* tint, lifted for a dark surface */
    --syntax-string: #4ade80;      /* green-400 - string values */
    --syntax-number: #fbbf24;      /* amber-400 - number values */
    --syntax-literal: #a78bfa;     /* violet-400 - true, false, null */
    --syntax-punctuation: #94a3b8; /* slate-400 - { } [ ] : , */
    --syntax-comment: #64748b;     /* slate-500 */
    --syntax-link: var(--tint-on-dark);
    --syntax-quote: #94a3b8;       /* slate-400 */
    --syntax-text: #e5e7eb;        /* gray-200 */

    /* On a dark surface the tint has to come up, not down. This is the bug the
       old --cas-tint-dark caused: on production it resolves to #0A3D54, which
       is 1.4:1 against gray-800 — effectively invisible. */
    --tint-hover:    color-mix(in srgb, rgb(var(--cas-tint)), white 22%);
    --tint-soft:     color-mix(in srgb, rgb(var(--cas-tint)), transparent 86%);

    --ok:    74 222 128;   /* green-400  */
    --warn:  251 191 36;   /* amber-400  */
    --bad:   248 113 113;  /* red-400    */
    --admin: 167 139 250;  /* violet-400 */
    --border-subtle: 53 63 77;
    --skeleton:      55 65 81;

    --e-1: 0 1px 2px rgb(0 0 0 / .35);
    --e-2: 0 2px 8px -2px rgb(0 0 0 / .45), 0 1px 3px rgb(0 0 0 / .30);
    --e-3: 0 14px 34px -10px rgb(0 0 0 / .60), 0 4px 12px -4px rgb(0 0 0 / .40);
    --e-1-drop: 0 1px 3px rgb(0 0 0 / .45);

    --doc-cert:    #8fb4d9;
    --doc-invoice: #dcb877;
    --doc-note:    #7cc3a4;
    --doc-multi:   #b7a1e8;
    --doc-attach:  #a9acc0;
}
/* CAS design system — element layer
   Bare elements and universal selectors only — no class names. Everything
   here reads from the tokens.
   Loaded in order: tokens.css, base.css, components.css. */

/* ── Inter, self-hosted ───────────────────────────────────────────────────
   One variable file per subset covers every weight the app uses (400 body,
   500 medium, 600 semibold, 700 bold), so there is no faux-bold anywhere and
   no second request when a heading appears.

   Two subsets, split on unicode-range: latin (48 KB) loads always, latin-ext
   (85 KB) only when a glyph outside it actually shows up — so a Dutch, German
   or English screen pays for the first file alone. No italic file: the five
   places that use italic are all muted placeholder text, where the browser's
   synthesised oblique is indistinguishable and 85 KB cheaper.

   The url is absolute because postcss-import inlines this file into each app's
   css/app.css without rewriting relative urls — the same reason the logo mask
   in components.css is written out in full. */
@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/_content/CAS.Blazor.Core/fonts/inter-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: Inter;
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/_content/CAS.Blazor.Core/fonts/inter-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;
}

/* calt is Inter's contextual alternates — it is what keeps a run of capitals and
   figures like "A1-24-0987" evenly spaced instead of collapsing the hyphen.
   On by default in most browsers, stated here so it survives a reset. */
html {
    font-variant-ligatures: contextual;
}

/* Remove focus outline from non-interactive elements (headings, divs, table rows, etc.) */
*:focus:not(input):not(select):not(textarea):not(button):not(a):not([role="button"]):not(summary) {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* ── The cursor, decided in one place ──────────────────────────────────────
   One rule for the whole app: a thing you can operate shows the hand, and
   everything else shows the arrow. Nothing else may set a cursor on a strip,
   a row or a panel — a hand over a background you cannot click is a lie, and
   two such surfaces next to each other make the pointer flip every time you
   cross the seam. `cursor` inherits, so an icon inside a button is covered by
   the button's own cursor and never needs one of its own. */
button:not(:disabled),
[role="button"]:not([aria-disabled="true"]),
summary,
select:not(:disabled),
input[type="checkbox"]:not(:disabled),
input[type="radio"]:not(:disabled),
input[type="file"]:not(:disabled) {
    cursor: pointer;
}

button:disabled,
[role="button"][aria-disabled="true"],
select:disabled {
    cursor: not-allowed;
}

/* Universal scrollbar styling for all elements */
* {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--r-xs);
}

*::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: var(--r-xs);
    border: 1px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
    background-clip: content-box;
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

/* Dark mode universal scrollbar */
.dark * {
    scrollbar-color: #4b5563 transparent;
}

.dark *::-webkit-scrollbar-thumb {
    background: #4b5563;
    background-clip: content-box;
}

.dark *::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
    background-clip: content-box;
}
/* CAS design system — component layer
   The @apply layer: one class per visual thing. A class here is what a Razor
   component renders — not a shortcut a page reaches for.
   Loaded in order: tokens.css, base.css, components.css.

   ONE TRAP, WRITTEN DOWN ONCE
   A class defined in this file is a plain CSS class, not a Tailwind utility, so
   it cannot take a Tailwind variant or an opacity modifier. dark:bg-surface,
   hover:bg-surface-hover, placeholder:text-placeholder, bg-surface/70 and
   dark:text-cas-tint-light all generate nothing at all - no error, no warning,
   the element simply loses that styling. When you need a variant, either use the
   underlying Tailwind colours (dark:bg-gray-800) or make a class that carries
   the variant itself (hover-default, hover-text-tertiary). */

/* CAS Shared Styling - Used by CAS.Client and CAS.Admin */

/* Tint-derived border color (darker shade of the theme tint) */


/* Form controls */
.form-control {
    display: block;
    width: 100%;
    border-radius: var(--r-sm);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.form-control::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.form-control::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.form-control:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.2);
}
.form-control:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.form-control:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.form-control:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

/* Fixed height for single-line inputs and selects (not textareas) */
input.form-control,
select.form-control,
.form-control-select {
    height: 38px;
}

/* The focus ring, per semantic role. focus: is a Tailwind variant, so it cannot be
   written on a class from this file at the call site - it has to live in the @apply. */
.focus-ring-primary:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}
.focus-ring-success:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--ok) / var(--tw-ring-opacity, 1));
}
.focus-ring-warning:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--warn) / var(--tw-ring-opacity, 1));
}
.focus-ring-error:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--bad) / var(--tw-ring-opacity, 1));
}

/* Invalid state styling */
.invalid.form-control {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
    background-color: rgb(var(--bad) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.invalid.form-control:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
    --tw-ring-color: rgb(var(--bad) / 0.2);
}
.invalid.form-control:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}

/* Disabled/Readonly state styling */
.form-control:disabled,
.form-control[readonly] {
    cursor: not-allowed;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    opacity: 0.75;
}
.form-control:disabled:is(.dark *),
.form-control[readonly]:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.form-control:disabled:focus,
.form-control[readonly]:focus {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.form-control:disabled:focus:is(.dark *),
.form-control[readonly]:focus:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* The control scale, the same four heights the buttons use: 28 in a dense table
   (form-control-compact), 32 in a toolbar or a filter sheet, 38 everywhere else
   (form-control on its own), 44 in an empty state or a wizard. */
.form-control-sm,
input.form-control-sm,
select.form-control-sm {
    height: 32px;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.job-row .form-control-sm,.job-row 
input.form-control-sm,.job-row 
select.form-control-sm {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.form-control-lg,
input.form-control-lg,
select.form-control-lg {
    height: 44px;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

/* Compact form controls for inline/tree editing */
.form-control-compact {
    display: block;
    height: 28px;
    width: 100%;
    border-radius: var(--r-xs);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.job-row .form-control-compact {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.form-control-compact::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.form-control-compact::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.form-control-compact:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.2);
}
.form-control-compact:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.form-control-compact:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.form-control-compact:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

input.form-control-compact,
select.form-control-compact {
    height: 28px;
}

.form-control-compact:disabled {
    cursor: not-allowed;
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    opacity: 0.75;
}

.form-control-compact:disabled:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

/* Inline dropdown trigger - inherits font from parent context */
.dropdown-inline-trigger {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    gap: 0.125rem;
    white-space: nowrap;
    font: inherit;
    line-height: inherit;
}

.dropdown-inline-trigger.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* Hidden sizer: stacked item labels set the trigger's min-width */
.dropdown-sizer {
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 0;
    visibility: hidden;
}

/* Panel System */
/* Every raised surface: one radius, clipped, and its outline drawn as an INSET ring rather
   than a border.
   - Clipping is not decoration. A panel whose content starts with its own band — a
     panel-header, a table's thead, a strip — paints a square corner over the rounded one,
     so half the panels looked round and half did not.
   - The ring is an overlay pseudo-element, not a border and not an inset box-shadow. A border
     paints on the border box while overflow:hidden clips the children one border-width further
     in — two curves a pixel apart, which left a pale fuzzy seam in every corner. An inset
     box-shadow shares the clip's curve but paints UNDER the children, so any child that fills
     to the edge (a map, a table's rows) simply covered it and the ring vanished along that
     side. The overlay sits at inset:0 with the same radius: over the children, no layout.
   - It used to be an `outline` with a negative offset, which is a cheaper way to say the same
     thing — except that an outline does not in fact beat every child. A child that scrolls
     gets its own compositing layer and paints above the ancestor's outline, so a panel whose
     content is a scrolling table lost its left and right edge for exactly the height of that
     table while keeping them beside the header and the footer. The overlay wins that on
     z-index, which is also why it is above the table's own sticky heads (z-20).
   Anything that must escape the clip (a menu, a filter sheet, a chart tooltip) goes in the
   top layer instead of trying to break out; see wwwroot/js/popover.js. */
/* .card is the same surface under its older name; one rule, so the two cannot drift apart. */
.panel, .card {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.panel:is(.dark *), .card:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

/* The ring itself. Every class that borrows the panel treatment with `@apply panel`/`@apply
   card` inherits the box but not this rule — a pseudo-element cannot be @apply'd — so a new
   raised surface has to be named here too. */
.panel::after,
.card::after,
.stat-card::after,
.fill-panel::after,
.table-container::after,
.table-bordered::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(var(--border-color));
    border-radius: inherit;
    pointer-events: none;
    z-index: 20;
}
/* ===========================================
   Incidents page — the morning round (#1406)
   =========================================== */
/* A count that is also a filter: the kind cards above the list. Borrows .card for its ring. */
.incident-kind-card {
    display: flex;
    cursor: pointer;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem;
    text-align: left;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.incident-kind-card-active {
    background: var(--tint-soft);
}
.incident-kind-card-active::after {
    border: 2px solid var(--tint);
}
.incident-kind-dot {
    height: 0.625rem;
    width: 0.625rem;
    border-radius: 9999px;
}
.incident-kind-dot-stalled {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--warn) / var(--tw-bg-opacity, 1));
}
.incident-kind-dot-failed {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--bad) / var(--tw-bg-opacity, 1));
}
.incident-kind-dot-reported { background: var(--tint); }

.incident-list {
    flex: 999 1 560px;
    min-width: 0px;
}
.incident-detail {
    flex: 1 1 340px;
    display: flex;
    max-width: 420px;
    flex-direction: column;
    gap: 18px;
    padding: 1.25rem;
}
.incident-detail-title {
    overflow-wrap: break-word;
    font-size: 1.125rem;
    line-height: 1.75rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.incident-detail-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
/* One grid for the head and every row, so the columns line up. */
.incident-grid {
    display: grid;
    align-items: center;
    gap: 1rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.35fr) 96px;
}
/* An older type ("Validation failed") is longer than the column: one line, cut off. */
.incident-kind-cell {
    display: flex;
    min-width: 0px;
}
.incident-kind-cell > * {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.incident-list-head {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.incident-list-head:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.incident-list-head {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.incident-list-head:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.incident-row {
    width: 100%;
    border-top-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    text-align: left;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.incident-row:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.incident-row:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.incident-row:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.incident-row:hover:is(.dark *) {
    background-color: rgb(55 65 81 / 0.4);
}
.incident-row-selected,
.incident-row-selected:hover {
    background: var(--tint-soft);
    box-shadow: inset 2px 0 0 0 var(--tint);
}
.incident-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.incident-section-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.job-row .incident-section-label {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.incident-section-dot {
    height: 0.375rem;
    width: 0.375rem;
    border-radius: 9999px;
}
.incident-section-dot-new {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}
.incident-section-dot-older {
    --tw-bg-opacity: 1;
    background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}
.incident-facts {
    display: grid;
    -moz-column-gap: 0.75rem;
         column-gap: 0.75rem;
    row-gap: 0.625rem;
    font-size: 13px;
    grid-template-columns: 110px minmax(0, 1fr);
}
/* A reason can be a whole stack trace: wrap it, and scroll past a few lines. */
.incident-detail-reason {
    max-height: 15rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.incident-detail-reason:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.incident-facts dt {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.incident-facts dt:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.incident-facts dd {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.incident-facts dd:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.incident-detail-hint {
    display: flex;
    gap: 0.5rem;
    border-top-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    padding-top: 0.875rem;
    font-size: 13px;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.incident-detail-hint:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.incident-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    text-align: center;
}
.incident-empty-icon {
    display: flex;
    height: 3.5rem;
    width: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: rgb(var(--ok) / 0.1);
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.015em;
}
.incident-empty-icon:is(.dark *) {
    background-color: rgb(var(--ok) / 0.2);
}

/* CustomPanel's head, drawn the same as Panel's: white, the section title, a rule under it.
   It used to be a grey band with a lighter, medium-weight title, so two panels side by side
   on one page looked like two different products. */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom-width: 1px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.panel-header:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.panel-title {
    white-space: nowrap;
    font-size: 1.125rem;
    line-height: 1.75rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.panel-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.panel-header-actions {
    display: flex;
    align-items: center;
}

.panel-header-actions > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}




/* Fix for table border conflicts within panels */
.panel .table > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-y-reverse: 0;
    border-top-width: calc(0px * calc(1 - var(--tw-divide-y-reverse)));
    border-bottom-width: calc(0px * var(--tw-divide-y-reverse));
}

/* Table System */
.table-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.table-container:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.table-container::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(var(--border-color));
    border-radius: inherit;
    pointer-events: none;
    z-index: 20;
}
.table-container .table > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-y-reverse: 0;
    border-top-width: calc(0px * calc(1 - var(--tw-divide-y-reverse)));
    border-bottom-width: calc(0px * var(--tw-divide-y-reverse));
}

.table {
    width: 100%;
    line-height: 1.5rem;
}

/* The head carries no fill of its own. The panel is one white surface, and a grey band across it
   reads as a second box inside the first (#1246, Patriek). What marks the heads is the text —
   small, uppercase, muted — and the rule under the row. */
.table-header {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.table-header:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

/* The head's bottom line, on the cells — same story as .table-row > td below. On the <tr> it was
   a collapsed border, which the table centres on the grid line between the head and the first
   body row: half a pixel either side, painted at half strength, gone on a white panel. On the
   cell it is one whole pixel. Inset and not an outset `0 1px`, which would paint the line one
   pixel *below* the head, over the first body row's top edge, a pixel lower than every other
   separator — that is what knocked the JobPipelinePopover out of alignment on the first row.
   The filter row is excluded: it carries its own divider-b, and would otherwise draw two. */
.table-header > tr:not(.table-filter-row) > th {
    box-shadow: inset 0 -1px 0 0 rgb(var(--border-color));
}

/* Header cell styling - used for th elements */
/* The head row shows the hand, because clicking it sorts. The flicker that came with that was
   not the head's fault: the toolbar strip sits one pixel above it and showed the arrow, so
   sweeping along the heads crossed the seam over and over. The strip carries this table's
   controls, so it takes the same hand and the seam is gone — the nearest place the cursor still
   changes is the top of the strip, fifty pixels away from anything you aim at. */
.table-header-cell {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    text-align: left;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.table-header-cell:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .table-header-cell {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
/* The hand belongs on a head you can click, and the whole row is either clickable or it is not:
   sorting is locked for the table, never for one column. Deciding this per column is what made
   the cursor flip as you swept along the row. */
.table-sortable .table-header-cell { cursor: pointer; }

/* A frozen head cell carries its own opaque background so it can slide over its neighbours, and
   with .sticky-edge the right edge and the depth cue come along. All of it goes in one shadow —
   a second box-shadow replaces rather than adds — so the bottom line has to be repeated here.
   Hovered and plain frozen cells need no rule of their own any more: the line lives on every
   head cell above, which is painted over the cell's own background either way. */
.table-header-cell.sticky.sticky-edge {
    box-shadow: inset -1px 0 0 0 rgb(var(--border-color)),
                inset 0 -1px 0 0 rgb(var(--border-color)),
                6px 0 6px -4px rgba(0, 0, 0, 0.35);
}

/* Bordered table container - standalone use with outer border */
/* A table that carries its own outline is a raised surface like a panel, and gets the same
   treatment. Without the radius it was the one square box among round ones. */
.table-bordered {
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
}

/* Cell borders - vertical lines between columns */
.table-cell-borders .table-header-cell,
.table-cell-borders .table-filter-row > th,
.table-cell-borders .table-cell {
    border-right-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.table-cell-borders .table-header-cell:is(.dark *),
.table-cell-borders .table-filter-row > th:is(.dark *),
.table-cell-borders .table-cell:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.table-cell-borders .table-header-cell:last-child,
.table-cell-borders .table-filter-row > th:last-child,
.table-cell-borders .table-cell:last-child {
    border-right-width: 0px;
}

/* The outer left edge. Cells carry their separator on the right, so without this the first
   column has a line on one side and the table's left edge has none at all. */
.table-cell-borders tr > *:first-child {
    border-left-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.table-cell-borders tr > *:first-child:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* Column-filter popovers (date range, number range, value list).
   They live inside a <th>, so they inherit its bold, centred, letter-spaced typography unless they
   say otherwise — hence the explicit reset. One class so every filter popover is the same object. */
.filter-popover {
    overflow: hidden;
    border-radius: var(--r-sm);
    border-width: 1px;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.filter-popover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.filter-popover {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.filter-popover:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.filter-popover {
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0em;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.filter-popover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.job-row .filter-popover {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.filter-popover-option {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.filter-popover-option:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.filter-popover-option {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.filter-popover-option:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.filter-popover-option:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.dt-file-dropdown [role="option"].filter-popover-option {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].filter-popover-option:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.filter-popover-option-active {
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.filter-popover-option-active:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

/* Footer block of a popover: the part you fill in yourself, set apart from the quick choices. */
.filter-popover-section {
    border-top-width: 1px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.filter-popover-section:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.filter-popover-section {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.filter-popover-section:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.filter-popover-label {
    margin-bottom: 0.25rem;
    display: block;
    font-size: 11px;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.filter-popover-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.filter-popover-input {
    font-size: 0.75rem;
    line-height: 1rem;
    display: block;
    width: 100%;
    border-radius: var(--r-sm);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.filter-popover-input::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.filter-popover-input::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.filter-popover-input:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.2);
}

.filter-popover-input:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.filter-popover-input:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.filter-popover-input:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

input.filter-popover-input,
select.filter-popover-input {
    height: 38px;
}

.invalid.filter-popover-input {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
    background-color: rgb(var(--bad) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}

.invalid.filter-popover-input:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
    --tw-ring-color: rgb(var(--bad) / 0.2);
}

.invalid.filter-popover-input:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}

.filter-popover-input:disabled,.filter-popover-input[readonly] {
    cursor: not-allowed;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    opacity: 0.75;
}

.filter-popover-input:disabled:is(.dark *),.filter-popover-input[readonly]:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.filter-popover-input:disabled,.filter-popover-input[readonly] {
    cursor: not-allowed;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    opacity: 0.75;
}

.filter-popover-input:disabled:is(.dark *),.filter-popover-input[readonly]:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.filter-popover-input:disabled:focus,.filter-popover-input[readonly]:focus {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.filter-popover-input:disabled:focus:is(.dark *),.filter-popover-input[readonly]:focus:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.filter-popover-input:disabled:focus,.filter-popover-input[readonly]:focus {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.filter-popover-input:disabled:focus:is(.dark *),.filter-popover-input[readonly]:focus:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.table-compact thead .filter-popover-input,
.table-compact thead select.filter-popover-input {
    height: 2rem;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    line-height: 1.25;
}

.job-row .table-compact thead .filter-popover-input,.job-row 
.table-compact thead select.filter-popover-input {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.table-compact thead .filter-popover-input,
.table-compact thead select.filter-popover-input {
    height: 2rem;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    line-height: 1.25;
}

.job-row .table-compact thead .filter-popover-input,.job-row 
.table-compact thead select.filter-popover-input {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.gutter-filter .filter-popover-input {
    height: auto;
    width: auto;
    border-width: 0px;
    background-color: transparent;
    padding: 0px;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.job-row .filter-popover-input {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.filter-popover-input {
    height: 2rem !important;
    padding-top: 0px !important;
    padding-bottom: 0px !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.filter-popover-action {
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.filter-popover-action:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.job-row .filter-popover-action {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.filter-popover-action:hover {
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

/* Right edge of the frozen (sticky) columns. The line is an *inset* shadow, not a border: the table
   collapses its borders, so a border-r belongs to the table rather than the cell and stops being
   painted the moment the frozen cell scrolls over its neighbours — exactly when the edge matters
   most. The outset half is the depth cue over the content sliding underneath. */
.sticky-edge {
    box-shadow: inset -1px 0 0 0 rgb(var(--border-color)), 6px 0 6px -4px rgba(0, 0, 0, 0.35);
}

/* In a table that draws cell borders, that inset line landed right beside the cell's own border-r:
   two one-pixel lines a pixel apart, which reads as one thick smudge down the frozen edge. The
   shadow is the one that keeps painting while the cell slides over its neighbours, so the border
   is the one that goes. */
.table-cell-borders .sticky-edge {
    border-right-width: 0;
}

/* A hovered header cell redraws its own bottom separator (see .table-header-cell:hover); on a frozen
   cell that would drop the right edge, so it keeps both. */
.table-header-cell.sticky-edge:hover {
    box-shadow: inset -1px 0 0 0 rgb(var(--border-color)), inset 0 -1px 0 0 rgb(var(--border-color)), 6px 0 6px -4px rgba(0, 0, 0, 0.35);
}

/* Column resize handle - thin hit area at the right edge of a header cell.
   The ::after element is the visible indicator line on hover/drag. */
/* Inside its own cell, not straddling the border. At right:-4px with a width of 8 it reached
   four pixels into the next column, so every boundary was an eight-pixel band of col-resize with
   a sortable head's pointer on either side — rest the mouse anywhere near an edge and the cursor
   flips back and forth on the smallest movement. Five pixels on its own side is still an easy
   grab and the band no longer belongs to two columns at once. */
/* Nine pixels, not three: a three-pixel band is a target you find by accident, which is why the
   column edges read as not draggable at all. The cursor says so too — the header around it is one
   clickable surface for sorting, so without a cursor of its own the band is indistinguishable from
   the cell it sits in. The ::after line still lights up on hover; the two signals agree. */
.col-resize-handle {
    position: absolute;
    top: 0;
    right: 0;
    width: 9px;
    height: 100%;
    z-index: 1;
    cursor: col-resize;
    touch-action: none;
}

.col-resize-handle::after {
    content: "";
    position: absolute;
    top: 0;
    left: 9px;
    width: 2px;
    height: 100%;
}

.col-resize-handle:hover::after,
.col-resize-handle.col-resize-active::after {
    background-color: var(--cas-tint, rgb(37 99 235));
}

.table-body {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.table-body:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.table-row {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.table-row:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.table-row:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

/* The row separator is an inset shadow on the cells, not a border on the <tr>. The table collapses
   its borders, so a border on the row is centred on the grid line *between* two rows: it lands on a
   half pixel, the browser paints it as two pixels at half strength, and a line that is only a tenth
   off white to begin with disappears. Whether a given row happened to land on a whole or a half
   pixel is what made the separators show up in one panel and not the next (#1246). Drawn inside the
   cell it is one whole pixel at full colour — the same reason .sticky-edge and .sticky-header-shadow
   are shadows — and it survives the row's hover background, which used to paint over the border. */
.table-row > td {
    box-shadow: inset 0 -1px 0 0 rgb(var(--border-subtle));
}

/* A frozen cell already carries its right edge and depth cue in one shadow; a second box-shadow
   would replace it, so the separator joins that list. */
.table-row > td.sticky-edge {
    box-shadow: inset -1px 0 0 0 rgb(var(--border-color)),
                inset 0 -1px 0 0 rgb(var(--border-subtle)),
                6px 0 6px -4px rgba(0, 0, 0, 0.35);
}

.table-row-focused {
    background-color: rgb(var(--cas-tint) / 0.15);
    box-shadow: inset 3px 0 0 0 var(--cas-tint);
}
.table-row-selected {
    background-color: rgb(var(--cas-tint) / 0.1);
}
/* Soft-deleted documents are only ever shown to CAS employees — render the whole row
   (all columns + icons) dimmed grey so it reads as inactive, not as something that needs
   attention (#917). No background tint. !important beats the inline colours that badges
   and status icons set on themselves. */
.table-row-deleted,
.table-row-deleted * {
    color: rgb(107 114 128) !important; /* gray-500 */
}
.table-row-deleted:is(.dark *),
.table-row-deleted:is(.dark *) * {
    color: rgb(156 163 175) !important; /* gray-400 */
}
.table-row-deleted {
    opacity: 0.6;
}

/* Keyboard shortcuts modal */
.kbd {
    display: inline-flex;
    height: 1.5rem;
    min-width: 24px;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xs);
    border-width: 1px;
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
}
.job-row .kbd {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.kbd {
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.kbd:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.kbd {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.kbd:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.kbd {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.kbd:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dt-file-dropdown [role="option"].kbd {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].kbd:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.shortcut-section-title {
    margin-bottom: 0.75rem;
    border-bottom-width: 1px;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.shortcut-section-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.shortcut-section-title {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.shortcut-section-title:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.job-row .shortcut-section-title {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.shortcut-list > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0px * var(--tw-space-y-reverse));
}

.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.shortcut-row dt {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.shortcut-row dt:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].shortcut-row dt {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].shortcut-row dt:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.job-row .shortcut-row dt {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.shortcut-row dd {
    margin-left: 0.5rem;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.25rem;
}

.table-body-flush > :last-child {
    border-bottom-width: 0px;
}

/* Restore last-row border inside DefinitionTable (section headers follow field tables) */
.dt-panel .table-body-flush > :last-child {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.dt-panel .table-body-flush > :last-child:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* Table view (`dt-flat`, HideHierarchy): nothing follows the single field table, so the
   restored border would float in the air whenever the table ends above the panel bottom —
   the resize-handle divider is the separator there. */
.dt-panel.dt-flat .table-body-flush > :last-child {
    border-bottom-width: 0px;
}

/* Every measured value in CAS is a number in a column: tabular figures are
   what let a column of them be compared down the page rather than read one by
   one. Letters are unaffected. */
.table-cell {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.table-cell:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.table-cell {
    font-variant-numeric: tabular-nums;
}
/* A cell keeps its text inside its own column: cut with an ellipsis rather than spill over the next
   one or past the panel edge. A cell that opens something inline (a dropdown) opts out with
   !overflow-visible; the table popovers are position: fixed and are not cut. */
.table-fixed .table-cell:not(.\!overflow-visible) { overflow: hidden; text-overflow: ellipsis; }

/* A table that scrolls sideways shows a soft shadow on the edge that has more columns behind it, so a
   half-visible last column reads as "more this way" rather than as cut off. table.js places the two
   edge elements beside the rows and shows them on scroll and resize; they are elements of their own
   because the table's ::after already draws its border. */
/* Meant to be only just noticed: no line anywhere. The fade eases out rather than running straight
   (a straight one shows where it starts), and it fades out at the top and bottom as well. */
.tbl-edge {
    position: absolute; width: 36px; pointer-events: none; z-index: 15; opacity: 0; transition: opacity 200ms ease;
    top: var(--tbl-edge-top, 0); height: var(--tbl-edge-height, 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 24px), transparent);
            mask-image: linear-gradient(to bottom, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    --tbl-edge-fade: rgb(15 23 42 / 0.08) 0%, rgb(15 23 42 / 0.055) 20%, rgb(15 23 42 / 0.03) 45%,
                     rgb(15 23 42 / 0.012) 70%, rgb(15 23 42 / 0) 100%;
}
.tbl-edge-right { right: 0; background: linear-gradient(to left, var(--tbl-edge-fade)); }
.tbl-edge-left  { left: 0;  background: linear-gradient(to right, var(--tbl-edge-fade)); }
.tbl-more-right > .tbl-edge-right, .tbl-more-left > .tbl-edge-left { opacity: 1; }

/* Compact table variants */
.table-compact .table-header-cell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.table-compact .table-cell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.table-compact thead .form-control,
.table-compact thead select.form-control {
    height: 2rem;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    line-height: 1.25;
}

.job-row .table-compact thead .form-control,.job-row 
.table-compact thead select.form-control {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

/* Table cell content layouts */
.table-cell-icon-text {
    display: flex;
    min-width: 0px;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.table-cell-logo {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    height: 1lh;
    width: 2.5rem;
}

.table-cell-logo img {
    position: relative;
    max-height: 100%;
    max-width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

/* Logo slot of a factory that was not recognised: an empty frame the size of a logo */
.factory-logo-placeholder {
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xs);
    border-width: 1px;
    border-style: dashed;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    font-size: 0.625rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.factory-logo-placeholder:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

/* Table cell padding overrides - work with both normal and compact tables */
.table-cell.table-cell-p-0 {
    padding: 0px;
}

.table-cell.table-cell-pl-0 {
    padding-left: 0px;
}

.table-cell.table-cell-pl-1 {
    padding-left: 0.25rem;
}

/* Table cell horizontal padding override */
.table-cell.table-cell-px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

/* Table header padding overrides */
.table-header-cell.table-cell-pl-0 {
    padding-left: 0px;
}

.table-header-cell.table-cell-pl-1 {
    padding-left: 0.25rem;
}

.table-header-cell.table-cell-px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

/* Loading States */
@keyframes pulse {
    50% {
        opacity: .5;
    }
}
.table-loading-row {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Skeleton rows separate like real ones, and for the same reason on the cell rather than the
   row — otherwise the placeholder table has visible separators and the loaded one does not. */
.table-loading-row > td {
    box-shadow: inset 0 -1px 0 0 rgb(var(--border-color));
}

/* An expanded row's panel hangs under the row it belongs to and closes with a line of its own. */
.table-expanded-row > td {
    box-shadow: inset 0 -1px 0 0 rgb(var(--border-color));
}

.loading-skeleton {
    height: 1rem;
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.loading-skeleton:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}


/* A skeleton bar that stands in for a line of text. Exactly one line tall, so a loading row
   is the same height as the row that replaces it: the page-fit measurement reads the first
   row in the tbody, and a skeleton eight pixels taller than the real thing made it report
   one number while loading and another once the data arrived — a loop of reloads. */
.loading-skeleton-line {
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.loading-skeleton-line:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.loading-skeleton-line {
    height: 1lh;
}


.loading-spinner {
    height: 1.25rem;
    width: 1.25rem;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.loading-spinner {
    animation: spin 1s linear infinite;
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.loading-spinner svg {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}

/* Modal System */
.modal-overlay {
    position: fixed;
    inset: 0px;
    background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
    --tw-bg-opacity: 0.75;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.modal-overlay:is(.dark *) {
    background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
    --tw-bg-opacity: 0.75;
}

.modal-container {
    position: fixed;
    inset: 0px;
    z-index: 50;
    overflow-y: auto;
}

.modal-content {
    border-radius: var(--r-lg);
    --tw-shadow: var(--e-3);
    --tw-shadow-colored: var(--e-3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.modal-content:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.modal-header {
    border-bottom-width: 1px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.modal-header:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.modal-header {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.modal-header:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

@media (min-width: 640px) {
    .modal-header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.modal-body {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

@media (min-width: 640px) {
    .modal-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.modal-footer {
    border-top-width: 1px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.modal-footer:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.modal-footer {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.modal-footer:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

@media (min-width: 640px) {
    .modal-footer {
        display: flex;
        flex-direction: row-reverse;
        gap: 0.75rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Button System */
.btn {
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--r-sm);
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.job-row .btn {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-width: 2px;
}

.btn-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--r-sm);
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.job-row .btn-primary {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.btn-primary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-width: 2px;
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-primary:hover {
    --tw-bg-opacity: 0.9;
}

.btn-primary:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}

.btn-secondary {
    border-width: 1px;
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--r-sm);
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.job-row .btn-secondary {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.btn-secondary:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-width: 2px;
}

.btn-secondary {
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.btn-secondary:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.btn-secondary {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.btn-secondary:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.btn-secondary {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.btn-secondary:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}

.dt-file-dropdown [role="option"].btn-secondary {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].btn-secondary:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.btn-secondary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-secondary:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.btn-secondary:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}

.btn-secondary:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.btn-danger {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--bad) / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--r-sm);
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.job-row .btn-danger {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.btn-danger:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-width: 2px;
}

.btn-danger:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-danger:hover {
    background-color: rgb(var(--bad) / 0.9);
}

.btn-danger:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--bad) / var(--tw-ring-opacity, 1));
}

.btn-warning {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--warn) / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--r-sm);
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.job-row .btn-warning {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.btn-warning:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-width: 2px;
}

.btn-warning:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-warning:hover {
    background-color: rgb(var(--warn) / 0.9);
}

.btn-warning:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--warn) / var(--tw-ring-opacity, 1));
}

/* Icon Buttons - Round buttons with icons */
.icon-btn {
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.icon-btn-sm {
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.icon-btn-xs {
    display: flex;
    height: 1.25rem;
    width: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Solid icon buttons - using semantic colors */
.icon-btn-primary {
    background-color: rgb(var(--cas-tint) / 0.7);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.icon-btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.icon-btn-primary:hover {
    background-color: rgb(var(--cas-tint) / 0.8);
}

.icon-btn-success {
    background-color: rgb(var(--ok) / 0.7);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.icon-btn-success:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-success:hover {
    background-color: rgb(var(--ok) / 0.8);
}

.icon-btn-success:disabled {
    --tw-bg-opacity: 1;
    background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}

.icon-btn-warning {
    background-color: rgb(var(--warn) / 0.7);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.icon-btn-warning:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-warning:hover {
    background-color: rgb(var(--warn) / 0.8);
}

.icon-btn-danger {
    background-color: rgb(var(--bad) / 0.7);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.icon-btn-danger:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-danger:hover {
    background-color: rgb(var(--bad) / 0.8);
}

/* Ghost icon buttons (transparent background) */
.icon-btn-ghost {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.icon-btn-ghost:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.icon-btn-ghost:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.icon-btn-ghost:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.icon-btn-ghost:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.icon-btn-ghost-primary {
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}

.icon-btn-ghost-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-ghost-primary:hover {
    background-color: rgb(var(--cas-tint) / 0.1);
}

.icon-btn-ghost-success {
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}

.icon-btn-ghost-success:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-ghost-success:hover {
    background-color: rgb(var(--ok) / 0.1);
}

.icon-btn-ghost-warning {
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}

.icon-btn-ghost-warning:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-ghost-warning:hover {
    background-color: rgb(var(--warn) / 0.1);
}

.icon-btn-ghost-danger {
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}

.icon-btn-ghost-danger:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-ghost-danger:hover {
    background-color: rgb(var(--bad) / 0.1);
}

/* Logo delete button - small circular delete overlay on images */
.logo-delete-btn {
    display: flex;
    height: 1.25rem;
    width: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(var(--bad) / var(--tw-bg-opacity, 1));
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.job-row .logo-delete-btn {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.logo-delete-btn:hover {
    background-color: rgb(var(--bad) / 0.9);
}
.group:hover .logo-delete-btn {
    opacity: 1;
}

/* Small variants */
.icon-btn-sm-primary {
    background-color: rgb(var(--cas-tint) / 0.7);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.icon-btn-sm-primary:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.icon-btn-sm-primary:hover {
    background-color: rgb(var(--cas-tint) / 0.8);
}

.icon-btn-sm-success {
    background-color: rgb(var(--ok) / 0.7);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.icon-btn-sm-success:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-sm-success:hover {
    background-color: rgb(var(--ok) / 0.8);
}

/* Small ghost variants */
.icon-btn-sm-ghost {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.icon-btn-sm-ghost:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.icon-btn-sm-ghost:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.icon-btn-sm-ghost:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.icon-btn-sm-ghost:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.icon-btn-sm-ghost-success {
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}

.icon-btn-sm-ghost-success:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-sm-ghost-success:hover {
    background-color: rgb(var(--ok) / 0.1);
}

.icon-btn-sm-ghost-warning {
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}

.icon-btn-sm-ghost-warning:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-sm-ghost-warning:hover {
    background-color: rgb(var(--warn) / 0.1);
}

.icon-btn-sm-ghost-danger {
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}

.icon-btn-sm-ghost-danger:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.icon-btn-sm-ghost-danger:hover {
    background-color: rgb(var(--bad) / 0.1);
}

/* Extra small variants */


/* Avatar/initials circle */
.avatar {
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: rgb(var(--cas-tint) / 0.7);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.job-row .avatar {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

/* ===========================================
   SEMANTIC COLOR SYSTEM
   Use these classes everywhere for consistent colors
   =========================================== */

/* Text colors - for icons, text */
.color-primary {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.color-success {
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}
.color-warning {
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}
.color-error {
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.color-info {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.color-purple {
    --tw-text-opacity: 1;
    color: rgb(var(--admin) / var(--tw-text-opacity, 1));
}

/* Semantic borders */
.border-error {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
}

/* Solid backgrounds - for buttons, indicators, progress bars */
.bg-primary {
    background-color: rgb(var(--cas-tint) / 0.7);
}
.bg-success {
    background-color: rgb(var(--ok) / 0.7);
}
.bg-warning {
    background-color: rgb(var(--warn) / 0.7);
}
.bg-error {
    background-color: rgb(var(--bad) / 0.7);
}
.bg-info {
    background-color: rgb(var(--cas-tint) / 0.7);
}

/* Light backgrounds - for subtle backgrounds, badges */
.bg-primary-light {
    background-color: rgb(var(--cas-tint) / 0.1);
}
.bg-primary-light:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}
.bg-success-light {
    background-color: rgb(var(--ok) / 0.1);
}
.bg-success-light:is(.dark *) {
    background-color: rgb(var(--ok) / 0.2);
}
.bg-warning-light {
    background-color: rgb(var(--warn) / 0.1);
}
.bg-warning-light:is(.dark *) {
    background-color: rgb(var(--warn) / 0.2);
}
.bg-error-light {
    background-color: rgb(var(--bad) / 0.1);
}
.bg-error-light:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}
.bg-info-light {
    background-color: rgb(var(--cas-tint) / 0.1);
}
.bg-info-light:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}
.bg-admin {
    background-color: rgb(var(--admin) / 0.7);
}
.bg-admin-light {
    background-color: rgb(var(--admin) / 0.1);
}
.bg-admin-light:is(.dark *) {
    background-color: rgb(var(--admin) / 0.2);
}

/* Status indicator dot */
.status-dot {
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 9999px;
}
.status-dot-success {
    background-color: rgb(var(--ok) / 0.7);
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 9999px;
}
.status-dot-warning {
    background-color: rgb(var(--warn) / 0.7);
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 9999px;
}
.status-dot-danger {
    background-color: rgb(var(--bad) / 0.7);
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 9999px;
}

/* Alert styles - consistent background, border, and text colors */
.alert-success {
    border-color: rgb(var(--ok) / 0.3);
    background-color: rgb(var(--ok) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}
.alert-success:is(.dark *) {
    border-color: rgb(var(--ok) / 0.4);
    background-color: rgb(var(--ok) / 0.2);
}
.alert-warning {
    border-color: rgb(var(--warn) / 0.3);
    background-color: rgb(var(--warn) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}
.alert-warning:is(.dark *) {
    border-color: rgb(var(--warn) / 0.4);
    background-color: rgb(var(--warn) / 0.2);
}
.alert-error {
    border-color: rgb(var(--bad) / 0.3);
    background-color: rgb(var(--bad) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.alert-error:is(.dark *) {
    border-color: rgb(var(--bad) / 0.4);
    background-color: rgb(var(--bad) / 0.2);
}
.alert-info {
    border-color: rgb(var(--cas-tint) / 0.2);
    background-color: rgb(var(--cas-tint) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.alert-info:is(.dark *) {
    border-color: rgb(var(--cas-tint) / 0.3);
    background-color: rgb(var(--cas-tint) / 0.2);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* Badge styles - for pills and tags */
.badge-success {
    background-color: rgb(var(--ok) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}
.badge-success:is(.dark *) {
    background-color: rgb(var(--ok) / 0.2);
}
.badge-warning {
    background-color: rgb(var(--warn) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}
.badge-warning:is(.dark *) {
    background-color: rgb(var(--warn) / 0.2);
}
.badge-error {
    background-color: rgb(var(--bad) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.badge-error:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}
.badge-primary {
    background-color: rgb(var(--cas-tint) / 0.15);
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.badge-primary:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* Toast styles. A toast floats over the page, so its wash sits on an opaque
   surface: a bare bg-ok/10 let the table underneath show through the text (#1499). */
.toast-success {
    border-color: rgb(var(--ok) / 0.3);
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}
.toast-success:is(.dark *) {
    border-color: rgb(var(--ok) / 0.4);
}
.toast-success {
    --toast-wash: rgb(var(--ok) / .1);
}
.toast-warning {
    border-color: rgb(var(--warn) / 0.3);
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}
.toast-warning:is(.dark *) {
    border-color: rgb(var(--warn) / 0.4);
}
.toast-warning {
    --toast-wash: rgb(var(--warn) / .1);
}
.toast-error {
    border-color: rgb(var(--bad) / 0.3);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.toast-error:is(.dark *) {
    border-color: rgb(var(--bad) / 0.4);
}
.toast-error {
    --toast-wash: rgb(var(--bad) / .1);
}
.toast-info {
    border-color: rgb(var(--cas-tint) / 0.2);
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.toast-info:is(.dark *) {
    border-color: rgb(var(--cas-tint) / 0.3);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.toast-info {
    --toast-wash: rgb(var(--cas-tint) / .1);
}
.dark .toast-success { --toast-wash: rgb(var(--ok) / .2); }
.dark .toast-warning { --toast-wash: rgb(var(--warn) / .2); }
.dark .toast-error   { --toast-wash: rgb(var(--bad) / .2); }
.dark .toast-info    { --toast-wash: rgb(var(--cas-tint) / .2); }

/* Button solid backgrounds - for primary action buttons */
.btn-bg-success {
    background-color: rgb(var(--ok) / 0.7);
}
.btn-bg-success:hover {
    background-color: rgb(var(--ok) / 0.8);
}
.btn-bg-success:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--ok) / var(--tw-ring-opacity, 1));
}
.btn-bg-warning {
    background-color: rgb(var(--warn) / 0.7);
}
.btn-bg-warning:hover {
    background-color: rgb(var(--warn) / 0.8);
}
.btn-bg-warning:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--warn) / var(--tw-ring-opacity, 1));
}
.btn-bg-error {
    background-color: rgb(var(--bad) / 0.7);
}
.btn-bg-error:hover {
    background-color: rgb(var(--bad) / 0.8);
}
.btn-bg-error:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--bad) / var(--tw-ring-opacity, 1));
}
.btn-bg-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}
.btn-bg-primary:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint-dark) / var(--tw-bg-opacity, 1));
}
.btn-bg-primary:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}

/* Icon background - subtle background for icon containers */
.icon-bg-success {
    background-color: rgb(var(--ok) / 0.1);
}
.icon-bg-success:is(.dark *) {
    background-color: rgb(var(--ok) / 0.2);
}
.icon-bg-warning {
    background-color: rgb(var(--warn) / 0.1);
}
.icon-bg-warning:is(.dark *) {
    background-color: rgb(var(--warn) / 0.2);
}
.icon-bg-error {
    background-color: rgb(var(--bad) / 0.1);
}
.icon-bg-error:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}
.icon-bg-primary {
    background-color: rgb(var(--cas-tint) / 0.1);
}
.icon-bg-primary:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}

/* Chip Input - inline tag editor with chips + input in one container */
.chip-input {
    display: flex;
    min-height: 38px;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    border-radius: var(--r-md);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}
.chip-input:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
    background-color: rgb(55 65 81 / 0.5);
}

.chip-input:focus-within {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}

.chip-input-field {
    min-width: 100px;
    flex: 1 1 0%;
    border-style: none;
    background-color: transparent;
    padding: 0px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.job-row .chip-input-field {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.chip-input-field:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.chip-input-field::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.chip-input-field::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.chip-input-field:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.chip-input-field:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: var(--r-xs);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.job-row .chip {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.chip-blue {
    --tw-bg-opacity: 1;
    background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}

.chip-blue:is(.dark *) {
    background-color: rgb(30 58 138 / 0.3);
    --tw-text-opacity: 1;
    color: rgb(147 197 253 / var(--tw-text-opacity, 1));
}

.chip-purple {
    --tw-bg-opacity: 1;
    background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}

.chip-purple:is(.dark *) {
    background-color: rgb(88 28 135 / 0.3);
    --tw-text-opacity: 1;
    color: rgb(216 180 254 / var(--tw-text-opacity, 1));
}

.chip-green {
    --tw-bg-opacity: 1;
    background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}

.chip-green:is(.dark *) {
    background-color: rgb(20 83 45 / 0.3);
    --tw-text-opacity: 1;
    color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}

.chip-orange {
    --tw-bg-opacity: 1;
    background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(154 52 18 / var(--tw-text-opacity, 1));
}

.chip-orange:is(.dark *) {
    background-color: rgb(124 45 18 / 0.3);
    --tw-text-opacity: 1;
    color: rgb(253 186 116 / var(--tw-text-opacity, 1));
}

.chip-remove {
    opacity: 0.6;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.chip-remove:hover {
    opacity: 1;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    text-align: center;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.empty-state:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.empty-state-title {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.empty-state-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].empty-state-title {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].empty-state-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

/* Log Parameter Highlighting - colored parameters in structured log messages */
.log-param {
    --tw-text-opacity: 1;
    color: rgb(2 132 199 / var(--tw-text-opacity, 1));
}
.log-param:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(56 189 248 / var(--tw-text-opacity, 1));
}

/* Log Flash Animation - subtle highlight for new logs */
@keyframes log-flash {
    0% {
        background-color: rgb(254 240 138 / 0.5); /* yellow-200 with transparency */
    }
    100% {
        background-color: transparent;
    }
}

.log-flash-animation {
    animation: log-flash 1.2s ease-out forwards;
    will-change: auto; /* Don't retain will-change after animation */
}

/* Dark mode flash animation */
.dark .log-flash-animation {
    animation: log-flash-dark 1.2s ease-out forwards;
}

@keyframes log-flash-dark {
    0% {
        background-color: rgb(133 77 14 / 0.4); /* yellow-800 with transparency */
    }
    100% {
        background-color: transparent;
    }
}

/* SVG Icon Color Matching */
.svg-icon {
    /* Match text-gray-600 (#4B5563 = rgb(75, 85, 99)) */
    filter: brightness(0) saturate(100%) invert(31%) sepia(7%) saturate(684%) hue-rotate(185deg) brightness(96%) contrast(91%);
    flex-shrink: 0;
}

.dark .svg-icon {
    /* Match text-gray-300 (#D1D5DB = rgb(209, 213, 219)) */
    filter: brightness(0) saturate(100%) invert(87%) sepia(4%) saturate(349%) hue-rotate(185deg) brightness(95%) contrast(88%);
}

/* ===========================================
   DESIGN SYSTEM - Text Colors
   Semantic text color classes for consistent light/dark mode
   =========================================== */

.text-heading {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.text-heading:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-body {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-body:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.text-secondary {
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-secondary:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.text-tertiary {
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-tertiary:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-muted {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-muted:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-placeholder:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-disabled {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-disabled:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Surface / Background Colors
   =========================================== */

.bg-surface {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-surface:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-surface-secondary {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-surface-secondary:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-surface-header {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-surface-header:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-surface-hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-surface-hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-surface-muted {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-surface-muted:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-surface-inset {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-surface-inset:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Borders
   =========================================== */

.border-default {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.border-default:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.border-input {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-input:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.divide-default > :not([hidden]) ~ :not([hidden]) {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.divide-default > :not([hidden]) ~ :not([hidden]):is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.divider {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.divider:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.divider-t {
    border-top-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.divider-t:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Hover States
   =========================================== */

.hover-default {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover-default:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.hover-default:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.hover-subtle {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-subtle:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.hover-subtle:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Form Classes
   =========================================== */

.form-label {
    margin-bottom: 0.25rem;
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.form-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].form-label {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].form-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.job-row .form-label {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.form-help {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.form-help:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .form-help {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.form-error {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.job-row .form-error {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.form-control-select {
    cursor: pointer;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    display: block;
    width: 100%;
    border-radius: var(--r-sm);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.form-control-select::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.form-control-select::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.form-control-select:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.2);
}
.form-control-select:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.form-control-select:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.form-control-select:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
input.form-control-select,
select.form-control-select {
    height: 38px;
}
.invalid.form-control-select {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
    background-color: rgb(var(--bad) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.invalid.form-control-select:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
    --tw-ring-color: rgb(var(--bad) / 0.2);
}
.invalid.form-control-select:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}
.form-control-select:disabled,.form-control-select[readonly] {
    cursor: not-allowed;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    opacity: 0.75;
}
.form-control-select:disabled:is(.dark *),.form-control-select[readonly]:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.form-control-select:disabled,.form-control-select[readonly] {
    cursor: not-allowed;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    opacity: 0.75;
}
.form-control-select:disabled:is(.dark *),.form-control-select[readonly]:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.form-control-select:disabled:focus,.form-control-select[readonly]:focus {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.form-control-select:disabled:focus:is(.dark *),.form-control-select[readonly]:focus:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.form-control-select:disabled:focus,.form-control-select[readonly]:focus {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.form-control-select:disabled:focus:is(.dark *),.form-control-select[readonly]:focus:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.table-compact thead .form-control-select,
.table-compact thead select.form-control-select {
    height: 2rem;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    line-height: 1.25;
}
.job-row .table-compact thead .form-control-select,.job-row 
.table-compact thead select.form-control-select {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.table-compact thead .form-control-select,
.table-compact thead select.form-control-select {
    height: 2rem;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    line-height: 1.25;
}
.job-row .table-compact thead .form-control-select,.job-row 
.table-compact thead select.form-control-select {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.gutter-filter .form-control-select {
    height: auto;
    width: auto;
    border-width: 0px;
    background-color: transparent;
    padding: 0px;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.form-control-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
}
:is(.dark .form-control-select) {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239ca3af'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
}
.form-control-textarea {
    resize: vertical;
    display: block;
    width: 100%;
    border-radius: var(--r-sm);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.form-control-textarea::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.form-control-textarea::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.form-control-textarea:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.2);
}
.form-control-textarea:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.form-control-textarea:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.form-control-textarea:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
input.form-control-textarea,
select.form-control-textarea {
    height: 38px;
}
.invalid.form-control-textarea {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
    background-color: rgb(var(--bad) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.invalid.form-control-textarea:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
    --tw-ring-color: rgb(var(--bad) / 0.2);
}
.invalid.form-control-textarea:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}
.form-control-textarea:disabled,.form-control-textarea[readonly] {
    cursor: not-allowed;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    opacity: 0.75;
}
.form-control-textarea:disabled:is(.dark *),.form-control-textarea[readonly]:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.form-control-textarea:disabled,.form-control-textarea[readonly] {
    cursor: not-allowed;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
    opacity: 0.75;
}
.form-control-textarea:disabled:is(.dark *),.form-control-textarea[readonly]:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.form-control-textarea:disabled:focus,.form-control-textarea[readonly]:focus {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.form-control-textarea:disabled:focus:is(.dark *),.form-control-textarea[readonly]:focus:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.form-control-textarea:disabled:focus,.form-control-textarea[readonly]:focus {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.form-control-textarea:disabled:focus:is(.dark *),.form-control-textarea[readonly]:focus:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.table-compact thead .form-control-textarea,
.table-compact thead select.form-control-textarea {
    height: 2rem;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    line-height: 1.25;
}
.job-row .table-compact thead .form-control-textarea,.job-row 
.table-compact thead select.form-control-textarea {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.table-compact thead .form-control-textarea,
.table-compact thead select.form-control-textarea {
    height: 2rem;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 400;
    line-height: 1.25;
}
.job-row .table-compact thead .form-control-textarea,.job-row 
.table-compact thead select.form-control-textarea {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.gutter-filter .form-control-textarea {
    height: auto;
    width: auto;
    border-width: 0px;
    background-color: transparent;
    padding: 0px;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* ===========================================
   DESIGN SYSTEM - Typography
   =========================================== */

.section-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.section-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.section-title-sm {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.section-title-sm:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.stat-title {
    font-weight: 600;
    text-transform: uppercase;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.stat-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.stat-title {
    font-size: 11px;
    letter-spacing: .07em;
}
.stat-value {
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: -0.02em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.stat-value:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.stat-value {
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
/* The micro-label in mono that names a unit, a scope or a source: "Dit jaar",
   "MPa", "1.132 autonomous". Terse by definition — a mono figure is about 40%
   wider than the same text set proportionally, so anything longer than three or
   four words belongs in .panel-hint below. Never carries meaning of its own. */
.spec {
    font-family: var(--font-mono);
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.spec:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.spec {
    font-size: 11px;
}

/* The sentence beside a panel title that says what the panel is showing. The
   canvas draws this in .spec, but it drew it with English fragments ("by country
   of the mill"); the product ships Dutch and German sentences, and in mono at
   10.5px those ran into the title and truncated mid-word. Same weight and colour,
   proportional, half a step larger because it is meant to be read. */
.panel-hint {
    font-size: 11px;
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.panel-hint:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

/* Status filter pills */
.status-pill {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    border-width: 1px;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.status-pill:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.status-pill {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.status-pill:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.status-pill {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.status-pill:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.job-row .status-pill {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.status-pill i {
    font-size: 0.75rem;
    line-height: 1rem;
}
.job-row .status-pill i {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.status-pill:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.status-pill:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.status-pill-active {
    border-color: rgb(var(--cas-tint) / 0.3);
    background-color: rgb(var(--cas-tint) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.status-pill-active:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* Status pill popover */
.status-pill-popover {
    position: absolute;
    z-index: 50;
    display: none;
    font-size: 0.75rem;
    line-height: 1rem;
}
.job-row .status-pill-popover {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.status-pill-popover {
    top: 100%;
    left: 0;
    padding-top: 4px;
    pointer-events: none;
}
.status-pill:hover .status-pill-popover {
    display: block;
}
.status-pill-popover-inner {
    border-radius: var(--r-md);
    border-width: 1px;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.status-pill-popover-inner:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.status-pill-popover-inner {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.status-pill-popover-inner:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.status-pill-popover-inner {
    min-width: 140px;
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    -moz-column-gap: 1rem;
         column-gap: 1rem;
}
.status-pill-popover-row {
    align-items: center;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    text-align: left;
    display: grid;
    grid-template-columns: subgrid;
    grid-column: 1 / -1;
}
.status-pill-popover-row-clickable {
    margin-left: -0.375rem;
    margin-right: -0.375rem;
    cursor: pointer;
    border-radius: var(--r-xs);
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    background: transparent;
    border: none;
}
.status-pill-popover-row-clickable:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.status-pill-popover-row-clickable:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.status-pill-popover-row-clickable.status-pill-popover-row-active {
    background-color: var(--tint-soft);
}
.status-pill-popover-label {
    white-space: nowrap;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.status-pill-popover-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.status-pill-popover-value {
    white-space: nowrap;
    text-align: right;
    font-family: var(--font-mono);
    font-weight: 500;
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.status-pill-popover-value:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.status-pill-popover-value {
    min-width: 1.75rem;
}

/* ===========================================
   DESIGN SYSTEM - Containers
   =========================================== */

/* One figure on a dashboard: padded, and a column so a Footer can take the rest. */
.stat-card {
    display: flex;
    flex-direction: column;
    padding: 1rem;
}
.card-section {
    border-radius: var(--r-md);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(var(--border-subtle) / var(--tw-border-opacity, 1));
    padding: 1rem;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.card-section:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Page Layout
   =========================================== */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-width: 1px;
    padding: 0.5rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.page-header:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
/* The name of the page, in its header bar. No margin of its own — the bar's
   padding sets the height, so every page's header is the same height. */
.page-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.015em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.page-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.page-title {
    letter-spacing: -.012em;
}

/* ===========================================
   DESIGN SYSTEM - Menu / Dropdown
   =========================================== */

.dropdown-menu {
    z-index: 50;
    overflow: hidden;
    border-radius: var(--r-md);
    border-width: 1px;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.dropdown-menu:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dropdown-menu {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dropdown-menu:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dropdown-item {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.dropdown-item:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dropdown-item {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.dropdown-item:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.dropdown-item:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.dt-file-dropdown [role="option"].dropdown-item {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].dropdown-item:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.job-row .dropdown-item {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.dropdown-item-danger {
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.dropdown-item-danger:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dropdown-item-danger {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.dropdown-item-danger:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.dropdown-item-danger:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.dt-file-dropdown [role="option"].dropdown-item-danger {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].dropdown-item-danger:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.job-row .dropdown-item-danger {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.dropdown-item-danger:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.dropdown-header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dropdown-header:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.context-menu {
    position: absolute;
    right: 0px;
    top: 100%;
    z-index: 50;
    margin-top: 0.5rem;
    width: 14rem;
    border-radius: var(--r-md);
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1));
    --tw-ring-opacity: 0.05;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.context-menu:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Badges (additions)
   =========================================== */

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
}

.job-row .badge {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.badge-default {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.badge-default:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(229 231 235 / var(--tw-text-opacity, 1));
}
.badge-info {
    background-color: rgb(var(--cas-tint) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.badge-info:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}

/* ===========================================
   DESIGN SYSTEM - Buttons (additions)
   =========================================== */

.btn-success {
    background-color: rgb(var(--ok) / 0.7);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--r-sm);
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.job-row .btn-success {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.btn-success:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-width: 2px;
}

.btn-success:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-success:hover {
    background-color: rgb(var(--ok) / 0.8);
}

.btn-success:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--ok) / var(--tw-ring-opacity, 1));
}
.btn-ghost {
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--r-sm);
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.job-row .btn-ghost {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.btn-ghost:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-width: 2px;
}
.btn-ghost {
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.btn-ghost:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].btn-ghost {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].btn-ghost:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.btn-ghost:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.btn-ghost:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.btn-ghost:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity, 1));
}
.btn-ghost:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.btn-link {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
    text-decoration-line: underline;
    text-underline-offset: 4px;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--r-sm);
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.job-row .btn-link {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.btn-link:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-offset-width: 2px;
}
.btn-link:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.btn-link:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}
.btn-link:hover {
    color: var(--tint-hover);
}
/* An icon-only button is square: the same four heights, width locked to match. */
.btn-icon-sm {
    width: 32px;
    padding-left: 0px;
    padding-right: 0px;
}
.btn-icon {
    width: 38px;
    padding-left: 0px;
    padding-right: 0px;
}
.btn-icon-lg {
    width: 44px;
    padding-left: 0px;
    padding-right: 0px;
}

.btn-disabled {
    cursor: not-allowed;
    opacity: 0.5;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.btn-xs {
    height: 28px;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

.job-row .btn-xs {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.btn-sm {
    height: 32px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.job-row .btn-sm {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.btn-lg {
    height: 44px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

/* Easter egg: button runs away on mouseenter */
.btn-runaway-away {
    position: fixed !important;
    z-index: 9999;
    box-shadow: var(--e-3);
    transition: left 0.3s cubic-bezier(0.2, 0, 0, 1), top 0.3s cubic-bezier(0.2, 0, 0, 1);
}

/* ===========================================
   DESIGN SYSTEM - Table Cell Editing
   =========================================== */

.table-cell-input {
    width: 100%;
    border-width: 0px;
    background-color: transparent;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.job-row .table-cell-input {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.table-cell-input::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.table-cell-input::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.table-cell-input:focus {
    background-color: rgb(var(--cas-tint) / 0.1);
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.table-cell-input:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.table-cell-input:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.table-cell-input:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.table-cell-input:focus:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}
.table-cell-select {
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border-width: 0px;
    background-color: transparent;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.job-row .table-cell-select {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.table-cell-select:focus {
    background-color: rgb(var(--cas-tint) / 0.1);
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.table-cell-select:focus:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}

/* ===========================================
   DESIGN SYSTEM - Overlay / Backdrop
   =========================================== */

.backdrop {
    position: fixed;
    inset: 0px;
    z-index: 40;
}
.overlay {
    position: fixed;
    inset: 0px;
    background-color: rgb(107 114 128 / 0.75);
}
.overlay:is(.dark *) {
    background-color: rgb(0 0 0 / 0.75);
}

/* ===========================================
   DESIGN SYSTEM - Slide-in Panel
   =========================================== */

/* Resizable document detail panel layout — DefinitionTable + PDF on top, NormalizedSamples
   below. Two CSS variables drive sizes; JS handles drag and persistence to localStorage. */
.cas-resizable-panel {
    --panel-h: 40%;
    --panel-v: 60%;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.cas-panel-top {
    display: flex;
    flex-basis: var(--panel-v);
    flex-shrink: 0;
    min-height: 0;
}
.cas-panel-left {
    flex-basis: var(--panel-h);
    flex-shrink: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.cas-panel-right {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
}
.cas-panel-bottom {
    flex: 1 1 0;
    min-height: 0;
}
.cas-resize-handle {
    flex-shrink: 0;
    background: transparent;
    transition: background-color 100ms ease;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    position: relative;
}
.cas-resize-handle-h {
    width: 5px;
    cursor: col-resize;
    margin: 0 -2px;
    z-index: 1;
}
.cas-resize-handle-v {
    height: 5px;
    cursor: row-resize;
    margin: -2px 0;
    z-index: 1;
}
/* The -2px margins above enlarge the grab area, which means a border on the handle
   itself would paint 2px INSIDE the neighbouring panel (z-index 1), over its content —
   e.g. across the bottom edge of the definition table's last row. Draw the divider
   line with a pseudo-element at the true panel boundary instead. */
.cas-resize-handle-h::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2px;
    width: 1px;
    background-color: rgb(var(--border-color));
}
.cas-resize-handle-v::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 2px;
    height: 1px;
    background-color: rgb(var(--border-color));
}
.cas-resize-handle:hover,
body.cas-resizing .cas-resize-handle {
    background-color: rgb(var(--cas-tint) / 0.4);
}

/* On a phone the document panel stacks: the fields, then the PDF, then the samples, scrolling as
   one page. Side by side there is 326px for both, and the drag handles need a mouse. The !important
   beats the sizes the resize script and the markup put inline. */
@media (max-width: 767px) {
    .cas-resizable-panel { overflow-y: auto; }
    .cas-panel-top { flex-direction: column; flex-basis: auto !important; flex-shrink: 0; }
    .cas-panel-left { flex-basis: auto !important; }
    .cas-panel-right { flex: 0 0 auto; height: 75vh; border-left: 0; border-top: 1px solid rgb(var(--border-color)); }
    .cas-panel-bottom { flex: 0 0 auto; min-height: 50vh; }
    .cas-resize-handle { display: none; }
    .slide-panel { width: 100vw !important; }
    /* A full-width panel leaves no room beside it to tap, and the dark wash behind it only showed
       under Safari's status bar, which turned that bar grey. */
    .slide-panel-backdrop { display: none; }
}

.slide-panel-backdrop {
    position: fixed;
    inset: 0px;
    z-index: 40;
    background-color: rgb(0 0 0 / 0.5);
}

.slide-panel-backdrop:is(.dark *) {
    background-color: rgb(0 0 0 / 0.7);
}

.slide-panel-backdrop {
    animation: fade-in 200ms ease-out;
}
.slide-panel-backdrop-closing {
    animation: fade-out 200ms ease-in forwards;
}
.slide-panel {
    position: fixed;
    top: 0px;
    right: 0px;
    z-index: 50;
    display: flex;
    height: 100%;
    flex-direction: column;
    --tw-shadow: var(--e-3);
    --tw-shadow-colored: var(--e-3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.slide-panel:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.slide-panel {
    animation: slide-in-right 250ms cubic-bezier(0.2, 0, 0, 1);
}
.slide-panel-closing {
    animation: slide-out-right 200ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes slide-in-right {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}
@keyframes slide-out-right {
    from { transform: translateX(0); }
    to { transform: translateX(100%); }
}
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* ===========================================
   DESIGN SYSTEM - Navigation
   =========================================== */

.nav-item-active {
    background-color: rgb(var(--cas-tint) / 0.1);
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.sidebar-item-active {
    font-weight: 600;
    background: var(--tint-soft);
    box-shadow: inset 2px 0 0 var(--tint);
    color: var(--tint) !important;
}

/* ===========================================
   DESIGN SYSTEM - Logo
   =========================================== */

/* The wordmark is masked instead of embedded as an <img> so it takes the colour
   of the surrounding text — that is how it follows the environment tint.
   Absolute URL: these rules are inlined into the apps' app.css by postcss-import,
   so a relative path would resolve against the wrong base there. */
.logo {
    display: inline-block;
    aspect-ratio: 400 / 120;
    background-color: currentColor;
    -webkit-mask: url('/_content/CAS.Blazor.Core/images/cas-logo.svg') no-repeat center / contain;
    mask: url('/_content/CAS.Blazor.Core/images/cas-logo.svg') no-repeat center / contain;
}

/* Just the "c" of the wordmark, for the collapsed sidebar. */
.logo-collapsed {
    display: inline-block;
    height: 2rem;
    aspect-ratio: 117 / 120;
    background-color: currentColor;
    -webkit-mask: url('/_content/CAS.Blazor.Core/images/cas-logo-mark.svg') no-repeat center / contain;
    mask: url('/_content/CAS.Blazor.Core/images/cas-logo-mark.svg') no-repeat center / contain;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}

/* Required field asterisk */
.text-required {
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}

/* Input icon positioning */
.input-icon-left {
    pointer-events: none;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    display: flex;
    align-items: center;
    padding-left: 0.75rem;
}
.input-icon-right {
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    padding-right: 0.75rem;
}

/* Link styling */
.link {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.link:hover {
    text-decoration-line: underline;
}

/* Progress bar track */
.progress-track {
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.progress-track:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

/* Job pipeline — bar and click-triggered popover.
   The bar is a <button popovertarget> that toggles a native Popover-API popover
   (light-dismiss: click outside / Esc closes). The cell is the positioning anchor —
   exactly as the old hover popover, but :has(:popover-open) sets the anchor-name only
   on the cell whose popover is open (one at a time), where :hover used to. */
/* Fills the whole cell so a click anywhere in the pipeline cell — not just the 6px bar —
   opens the popover. The bar stays vertically centred. */
.job-pipeline-bar-trigger {
    display: flex;
    height: 100%;
    width: 100%;
    cursor: pointer;
    align-items: center;
    border-width: 0px;
    background-color: transparent;
    padding: 0px;
    text-align: left;
}

.job-pipeline-cell:has(.job-pipeline-popover:popover-open) {
    anchor-name: --pipeline-cell;
}

.job-pipeline-bar {
    display: flex;
    width: 100%;
    gap: 1px;
    overflow: hidden;
    border-radius: 9999px;
    height: 6px;
}


.job-pipeline-bar .pipeline-pulse {
    animation: pipeline-pulse 1.5s ease-in-out infinite;
}

@keyframes pipeline-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.job-pipeline-popover {
    z-index: 50;
    font-size: 0.75rem;
    line-height: 1rem;
}

.job-row .job-pipeline-popover {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.job-pipeline-popover {
    position: fixed;
    inset: auto;
    margin: 0;
    border: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    min-width: 280px;
    position-anchor: --pipeline-cell;
    left: anchor(right);
    top: calc(anchor(top) - 1px);
    position-try-fallbacks: flip-block;
}
.job-pipeline-popover-inner {
    border-width: 1px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.job-pipeline-popover-inner:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.job-pipeline-popover-inner {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.job-pipeline-popover-inner:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* Generic CSS-only hover tooltip — used by <FieldLabel> for renamed certificate fields */
/* Normalization factor popover — CSS-only hover tooltip for chemical factor info */
.dt-has-normalization-popover:hover {
    anchor-name: --normpop;
}

.dt-normalization-popover {
    z-index: 50;
    display: none;
    font-size: 0.75rem;
    line-height: 1rem;
}

.job-row .dt-normalization-popover {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.dt-normalization-popover {
    position: fixed;
    position-anchor: --normpop;
    bottom: calc(anchor(top) + 4px);
    left: anchor(left);
    pointer-events: none;
    position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
}

.dt-has-normalization-popover:hover > .dt-normalization-popover {
    display: block;
}

.dt-normalization-popover-inner {
    border-radius: var(--r-md);
    border-width: 1px;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.dt-normalization-popover-inner:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dt-normalization-popover-inner {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-normalization-popover-inner:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.dt-normalization-popover-inner {
    min-width: 160px;
}

.dt-normalization-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}

.dt-normalization-label {
    white-space: nowrap;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.dt-normalization-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.dt-normalization-value {
    white-space: nowrap;
    font-family: var(--font-mono);
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-normalization-value:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.dt-normalization-result {
    margin-top: 0.125rem;
    border-top-width: 1px;
    padding-top: 0.25rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-normalization-result:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* Definition table keyboard focus */
.dt-keyboard-focus {
    background-color: rgb(var(--cas-tint) / 0.15) !important;
}

/* Table inline input */
.table-inline-input {
    height: 36px;
    width: 100%;
    background-color: transparent;
    padding-left: 1rem;
    padding-right: 1rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.table-inline-input:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.table-inline-input:focus {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.table-inline-input:focus:is(.dark *) {
    background-color: rgb(55 65 81 / 0.5);
}
.table-inline-input { text-overflow: ellipsis; }

/* Table validation error input */
.table-inline-input-error {
    height: 36px;
    width: 100%;
    border-top-width: 1px;
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
    background-color: rgb(var(--bad) / 0.1);
    padding-left: 1rem;
    padding-right: 1rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.table-inline-input-error:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.table-inline-input-error:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.table-inline-input-error:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}

/* Checkbox styling (for forms and tables) */
/* align-middle: a bare checkbox in a table cell otherwise sits on the text baseline, which reads
   as a few pixels too high next to the row's text and status icon. */
.form-checkbox {
    height: 1rem;
    width: 1rem;
    border-radius: var(--r-xs);
    vertical-align: middle;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.form-checkbox:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.form-checkbox {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.form-checkbox:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.form-checkbox:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}

/* SortableJS drag and drop styling */
.sortable-ghost {
    opacity: 0.4;
    background-color: rgb(var(--cas-tint-rgb, 59 130 246) / 0.1);
}

.sortable-chosen {
    background-color: rgb(var(--cas-tint-rgb, 59 130 246) / 0.05);
}

.sortable-drag {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    opacity: 1;
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.dark .sortable-drag {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Compact UI Components
   For dense/tool-like interfaces (sidebars, panels, toolbars)
   =========================================== */

/* Sidebar tree item — factory/location/certificate navigation */
.sidebar-item {
    display: flex;
    width: 100%;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    align-items: center;
    gap: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.job-row .sidebar-item {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.sidebar-item-child {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.sidebar-item-child:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.sidebar-item-child {
    display: flex;
    width: 100%;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    align-items: center;
    gap: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.job-row .sidebar-item-child {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.sidebar-item-child {
    padding-left: 34px;
}

.sidebar-item-grandchild {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.sidebar-item-grandchild:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.sidebar-item-grandchild {
    display: flex;
    width: 100%;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    align-items: center;
    gap: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    text-align: left;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.job-row .sidebar-item-grandchild {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.sidebar-item-grandchild {
    padding-left: 56px;
}

/* Collapsible section header — details/summary */
.collapsible-header {
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.collapsible-header:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.collapsible-header {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.collapsible-header:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.collapsible-header {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.collapsible-header:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.collapsible-header:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.job-row .collapsible-header {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.collapsible-body {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.collapsible-body:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.collapsible-body {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.collapsible-body:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.job-row .collapsible-body {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

/* Toolbar — horizontal bar with actions */
.toolbar {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.toolbar:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.job-row .toolbar {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.toolbar-divider {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.toolbar-divider:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.toolbar-divider {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.toolbar-divider:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.job-row .toolbar-divider {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}


/* Tab button — underlined tab in a toolbar */
.tab-btn {
    height: 100%;
    border-bottom-width: 2px;
    border-color: transparent;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.tab-btn:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.job-row .tab-btn {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.tab-btn:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.tab-btn:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}


/* Pill toggle button — small rounded toggle in a group */
.pill-btn {
    border-radius: var(--r-xs);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.pill-btn:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .pill-btn {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.pill-btn:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.pill-btn:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

/* Replaces .pill-btn, never sits beside it: .pill-btn carries a dark variant, which outranks this
   rule and paints the selected pill grey on tint. */
.pill-btn-active {
    border-radius: var(--r-xs);
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.job-row .pill-btn-active {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

/* Run history chip — clickable extraction run in horizontal list */
.run-chip {
    display: flex;
    flex-shrink: 0;
    cursor: pointer;
    align-items: center;
    gap: 0.375rem;
    border-radius: var(--r-xs);
    border-width: 1px;
    border-color: transparent;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 11px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.run-chip:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.run-chip:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.run-chip:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.run-chip:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.run-chip:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

/* Inline action link */
.action-link {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.job-row .action-link {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.action-link:hover {
    opacity: 0.8;
}

/* Upload button — outlined tint button for file upload */
.btn-upload {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    gap: 0.375rem;
    border-radius: var(--r-xs);
    border-width: 1px;
    border-color: rgb(var(--cas-tint) / 0.3);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.job-row .btn-upload {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.btn-upload:hover {
    background-color: rgb(var(--cas-tint) / 0.1);
}

/* Stats bar — monospace info bar */

/* Compact select — small inline select for toolbars */
.select-compact {
    border-radius: var(--r-xs);
    border-width: 1px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.select-compact:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.select-compact {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.select-compact:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.select-compact {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.select-compact:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.job-row .select-compact {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

/* Inline form label — small label above input in compact contexts */
.label-compact {
    margin-bottom: 0.25rem;
    display: block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.label-compact:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .label-compact {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}


/* ===========================================
   DEFINITION TABLE (.dt-*)
   Styles for DefinitionTable and DtSection components.
   --dt-cell-py / --dt-header-py / --dt-px on .dt-panel are the single
   source of truth for all internal spacing.
   =========================================== */

/* ── Panel wrapper ────────────────────────────────────────────────── */

.dt-panel {
    font-variant-numeric: tabular-nums;
    --dt-cell-py: 4px;
    --dt-header-py: 8px;
    --dt-px: 12px;
    border-right-width: 1px;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.dt-panel:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dt-panel {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-panel:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.job-row .dt-panel {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.dt-panel .table {
    table-layout: fixed;
}

.dt-panel .table-row:hover {
    --tw-bg-opacity: 0;
}

/* All td cells inside the panel use cell padding */
.dt-panel .table-cell {
    padding: var(--dt-cell-py) var(--dt-px);
}

/* ── Empty state ──────────────────────────────────────────────────── */

.dt-no-data {
    display: flex;
    flex: 1 1 0%;
    align-items: center;
    justify-content: center;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.dt-no-data:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

/* ── Sticky header wrapper ────────────────────────────────────────── */

.dt-sticky-header {
    position: sticky;
    top: 0px;
    z-index: 10;
}

.table-header-cell.dt-sticky-header.sticky-edge {
    box-shadow: inset -1px 0 0 0 rgb(var(--border-color)),
                inset 0 -1px 0 0 rgb(var(--border-color)),
                6px 0 6px -4px rgba(0, 0, 0, 0.35);
}

/* ── Toolbar (summary bar) ────────────────────────────────────────── */

.dt-toolbar {
    display: flex;
    min-width: 0px;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-toolbar:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.dt-summary-correct {
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}

.dt-summary-btn {
    cursor: pointer;
    font-weight: 500;
}

.dt-summary-btn:hover {
    text-decoration-line: underline;
}

/* ── Column header row (Property / Saved / Now) ──────────────────── */

.dt-column-header {
    display: flex;
    border-bottom-width: 1px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.dt-column-header:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.dt-column-header {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.dt-column-header:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dt-column-header {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-column-header:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.dt-column-header {
    font-size: 0.625rem;
}

.dt-column-header > div {
    padding: var(--dt-cell-py) var(--dt-px);
}

.dt-column-header > div + div {
    border-left-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-column-header > div + div:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* ── Run selector dropdown ────────────────────────────────────────── */

.dt-run-select {
    margin-top: -0.125rem;
    margin-bottom: -0.125rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: inherit;
}

/* ── Section (collapsible header) ─────────────────────────────────── */

.dt-section-header {
    padding: var(--dt-header-py) var(--dt-px);
    display: flex;
    width: 100%;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    align-items: center;
    justify-content: space-between;
    border-top-width: 1px;
    border-bottom-width: 1px;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-section-header:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.dt-section-header {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.dt-section-header:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dt-section-header {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-section-header:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.dt-section-header {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.dt-section-header:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.dt-section-header:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.dt-section {
    margin-top: -1px;
}

.dt-section > div > table {
    margin-top: -1px;
}

.dt-section-chevron {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    width: 10px;
    font-size: 0.5em;
}

.dt-section-chevron.open {
    transform: rotate(90deg);
}

.dt-section-content {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.dt-section-content:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dt-section-title-group {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.dt-section-title {
    font-family: var(--font-mono);
}

.dt-section-subtitle {
    font-family: var(--font-mono);
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}


/* ── Add button + dropdown ────────────────────────────────────────── */

.dt-add-wrapper {
    position: relative;
}

.dt-add-btn {
    border: none;
    background: none;
    color: var(--syntax-string);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transition: opacity 150ms;
}
.dt-add-root:hover .dt-add-btn,
.dt-section-header:hover .dt-add-btn {
    opacity: 0.7;
}
.dt-add-btn:hover {
    opacity: 1;
}

.dt-add-root {
    display: flex;
    justify-content: flex-end;
    padding: 4px var(--dt-px);
    border-bottom: 1px solid var(--border-default);
}

.dt-add-overlay {
    position: fixed;
    inset: 0;
    z-index: 49;
}

.dt-add-dropdown {
    position: fixed;
    z-index: 50;
    min-width: 200px;
    max-height: 360px;
    overflow-y: auto;
    border-radius: var(--r-md);
    border: 1px solid var(--border-default);
    box-shadow: var(--e-2);
    padding: 6px;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.dt-add-dropdown:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dt-add-dropdown-divider {
    height: 1px;
    margin: 4px 0;
    background: var(--border-default);
}

.dt-add-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 6px 10px;
    font-size: var(--dt-font-size);
    color: var(--text-body);
    background: none;
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
}
.dt-add-dropdown-item:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.dt-add-dropdown-item:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dt-add-dropdown-action {
    color: var(--syntax-string);
    font-weight: 500;
}

.dt-add-dropdown-indent {
    padding-left: 26px;
}

.dt-add-dropdown-group {
    padding: 10px 10px 3px;
    font-size: calc(var(--dt-font-size) - 1px);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.dt-add-dropdown-group:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

/* ── Dropdown cell ────────────────────────────────────────────────── */
/* Negative margin stretches container to td edges (+ 1px for the td
   border) so the fixed-position panel aligns with the cell borders.
   Padding on the trigger restores the normal cell spacing. */

.dt-dropdown-cell {
    margin: calc(-1 * var(--dt-cell-py)) calc(-1 * var(--dt-px)) calc(-1 * var(--dt-cell-py)) calc(-1 * var(--dt-px) - 1px);
}

.dt-dropdown-cell [role="button"] {
    padding: var(--dt-cell-py) var(--dt-px) var(--dt-cell-py) calc(var(--dt-px) + 1px);
}

/* ── File dropdown (toolbar) ──────────────────────────────────────── */
/* Stretch trigger to toolbar edges so the dropdown panel aligns with
   the toolbar's bottom border, matching dt-dropdown-cell behaviour. */

.dt-file-dropdown {
    align-self: stretch;
}

.dt-file-dropdown [role="button"] {
    height: 100%;
    gap: 0.5rem;
    border-left-width: 1px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-file-dropdown [role="button"]:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.dt-file-dropdown [role="option"].text-secondary {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].text-secondary:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

/* ── Editable cell ────────────────────────────────────────────────── */

.dt-cell-editable {
    position: relative;
    display: flex;
    height: 100%;
    width: 100%;
    align-items: center;
}

.dt-cell-editable input {
    min-width: 0px;
    flex: 1 1 0%;
    border-width: 0px;
    background-color: transparent;
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-cell-editable input:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.dt-cell-editable input {
    padding: 0 16px 0 0;
    font: inherit;
    line-height: inherit;
}

/* A date field renders as <input type="date">, which Chrome gives its own intrinsic height
   (2px taller than the text input it replaces, because of the calendar icon). Left alone the
   row jumps as soon as a date cell enters edit mode. Pin the height to the line box and strip
   the spin button, which serves no purpose here and shifts the segments as the value changes. */
.dt-cell-editable input[type="date"] {
    height: 1lh;
    line-height: inherit;
}

.dt-cell-editable input[type="date"]::-webkit-calendar-picker-indicator {
    padding: 0;
    margin: 0;
}

.dt-cell-editable input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

/* DefinitionTable validation — `dt-cell-invalid` / `dt-cell-valid` live on an inner div
   (`dt-cell-display` / `dt-cell-editable`) inside the `<td>`. The fill is hoisted onto the
   parent <td> via `:has()` so it sits flush with the cell edges instead of appearing as a
   small box inside the td padding.

   Fill and text colour only, no border of its own: recolouring all four edges of every
   uncertain cell turned a block of them into a grid of little red boxes. Without it the
   same block reads as one coloured area, and the table's own lines still separate the
   cells. This is the bridge for DefinitionTable until it migrates to the unified
   ValidatedDataTable (which puts the class on the <td> directly). */
.dt-panel td:has(> .dt-cell-invalid),
.dt-panel td:has(> .dt-cell-display.dt-cell-invalid),
.dt-panel td:has(> .dt-cell-editable.dt-cell-invalid) {
    /* Same red as the samples-table invalid cells and the low-confidence tint —
       one attention colour across both tables. */
    background-color: rgb(var(--bad) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.dt-panel td:has(> .dt-cell-invalid):is(.dark *),
.dt-panel td:has(> .dt-cell-display.dt-cell-invalid):is(.dark *),
.dt-panel td:has(> .dt-cell-editable.dt-cell-invalid):is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}

/* Force the colour onto every descendant — overrides .dt-json-string / .dt-json-number
   syntax colours that would otherwise win on specificity ties. */
.dt-panel td:has(> .dt-cell-invalid) *,
.dt-panel td:has(> .dt-cell-display.dt-cell-invalid) *,
.dt-panel td:has(> .dt-cell-editable.dt-cell-invalid) * {
    color: inherit;
}

.dt-panel td:has(> .dt-cell-valid),
.dt-panel td:has(> .dt-cell-display.dt-cell-valid),
.dt-panel td:has(> .dt-cell-editable.dt-cell-valid) {
    background-color: rgb(var(--ok) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}

.dt-panel td:has(> .dt-cell-valid):is(.dark *),
.dt-panel td:has(> .dt-cell-display.dt-cell-valid):is(.dark *),
.dt-panel td:has(> .dt-cell-editable.dt-cell-valid):is(.dark *) {
    background-color: rgb(var(--ok) / 0.2);
}

.dt-panel td:has(> .dt-cell-valid) *,
.dt-panel td:has(> .dt-cell-display.dt-cell-valid) *,
.dt-panel td:has(> .dt-cell-editable.dt-cell-valid) * {
    color: inherit;
}

/* ==========================================================================
   ValidatedDataTable (vdt-*) — unified table primitive used by both
   DefinitionTable and NormalizedSamplesTable.

   Border strategy: `border-collapse: collapse` so adjacent invalid cells
   share a single 1px red border. Column separators live on <col> elements
   (col-level border, lower precedence than cell). Row separators live on
   <tr> (row-level, lower precedence than cell). Validation borders sit on
   the <td> itself (cell-level, highest precedence) so they win against
   neighbouring gray separators on every side.

   Cell layout: <td> has zero padding. The single inner element
   (`.vdt-cell-content` or `.vdt-cell-input`) carries the padding and fills
   the cell, so the validation border sits flush at the cell edge and the
   click-area is the full cell.
   ========================================================================== */

.vdt-table {
    /* Cell spacing — vertical bigger than horizontal for legibility. Single
       source of truth shared by both DefinitionTable and NormalizedSamplesTable. */
    --vdt-cell-py: 6px;
    --vdt-header-py: 4px;
    --vdt-px: 8px;
    border-collapse: collapse;
    width: 100%;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
}

.job-row .vdt-table {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.vdt-table > colgroup > col + col {
    border-left-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.vdt-table > colgroup > col + col:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.vdt-table > thead > tr {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.vdt-table > thead > tr:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.vdt-table > tbody > tr.vdt-row {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.vdt-table > tbody > tr.vdt-row:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.vdt-table > tbody > tr.vdt-row:last-child {
    border-bottom: 0;
}

.vdt-table > thead > tr > th,
.vdt-table > tbody > tr > td {
    padding: 0;
    vertical-align: middle;
    /* Lower bound so columns can't shrink to 1-char widths and force-truncate
       data on focus. Matches the old `.normalized-samples-table` min-width. */
    min-width: 70px;
}

/* Body cells use the smaller cell padding. */
.vdt-cell-content {
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    width: 100%;
    height: 100%;
    padding: var(--vdt-cell-py) var(--vdt-px);
    min-width: 0;
    /* Anchor for the per-cell hover tooltip below. */
    position: relative;
}

/* The validation message on a cell. Deliberately NOT the shared data-tip bubble:
   it is red rather than neutral because it reports a failure, and it is pure CSS
   because this grid renders thousands of cells and attaching a JS hook to each one
   has a per-render cost the tooltip for a toolbar button does not.
   Uses CSS Anchor Positioning (position: fixed + anchor()) so it escapes
   overflow:hidden / overflow:auto containers and flips above the cell when there's
   no room below. Same pattern as .dt-normalization-popover. */
.vdt-cell-content:hover {
    anchor-name: --vdtcellpop;
}

.vdt-cell-error {
    z-index: 50;
    display: none;
    font-size: 0.75rem;
    line-height: 1rem;
}

.job-row .vdt-cell-error {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.vdt-cell-error {
    position: fixed;
    position-anchor: --vdtcellpop;
    top: calc(anchor(bottom) + 6px);
    left: anchor(left);
    pointer-events: none;
    /* Browser tries below first; flips to above (with the arrow flipping too) when the
       tooltip wouldn't fit at the bottom of the viewport. */
    position-try-fallbacks: flip-block;
}

.vdt-cell-content:hover > .vdt-cell-error {
    display: block;
}

.vdt-cell-error-inner {
    display: block;
    border-radius: var(--r-sm);
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    font-weight: 500;
    line-height: 1.375;
    background: #dc2626;
    color: white;
    max-width: 320px;
    white-space: normal;
    box-shadow: var(--e-2);
}

.dark .vdt-cell-error-inner {
    background: #ef4444;
    box-shadow: var(--e-2);
}

/* Dropdown cell — the whole cell is the click target. Cursor: pointer is the affordance;
   chevron darkens on hover (see .vdt-cell-dropdown-chevron rule below). No bg-tint on hover
   because uncertain cells already carry a red-50 background — stacking a cas-tint tint
   on top produced a muddy color and looked like "weird hover" feedback. */
.vdt-cell-content-has-dd {
    cursor: pointer;
}

/* The CURRENT uncertain cell/row (navigation cursor). Same red background as every other
   uncertain cell — the cursor is the ring, not a second shade (two shades read as two
   different states). red-500 ring at 75% keeps contrast in light and dark mode. */
/* Where the keyboard is: a 3px bar on the leading edge. Reads as "you are here" without
   competing with the validation colours, which own the cell background. A ring drawn inside
   the cell was a second border; a line along the bottom means "being edited", not "here". */
.vdt-cell-current {
    box-shadow: inset 3px 0 0 0 var(--tint);
}
.vdt-cell-invalid.vdt-cell-current {
    box-shadow: inset 3px 0 0 0 #ef4444;
}

tr.dt-row-current {
    outline: 2px solid rgb(239 68 68 / 0.75);
    outline-offset: -2px;
}

/* The value display sits where the editable input would; same monospace + padding so the
   visual position is identical to plain cells. */
.vdt-cell-dropdown-trigger {
    pointer-events: none;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    /* Reserve room on the right so the value never slides under the chevron. */
    padding-right: 14px;
}

/* Chevron at the right edge — visual hint that the cell is a dropdown. pointer-events:
   none so the cell-content's onclick owns every click. */
.vdt-cell-dropdown-chevron {
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.vdt-cell-dropdown-chevron:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].vdt-cell-dropdown-chevron {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].vdt-cell-dropdown-chevron:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.vdt-cell-dropdown-chevron {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
}

.vdt-cell-content-has-dd:hover .vdt-cell-dropdown-chevron {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.vdt-cell-content-has-dd:hover .vdt-cell-dropdown-chevron:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

/* Anchor name applied to the cell when its dropdown is open. The popover (a sibling of the
   truncate div) anchors to it. */
.vdt-cell-dd-open {
    anchor-name: --vdtcelldd;
}

/* Invisible backdrop — covers the viewport and closes the dropdown when clicked. Lives below
   the popover (sibling order: backdrop first, popover second) so a click on a popover item
   doesn't bubble to the backdrop. */
.vdt-cell-dropdown-backdrop {
    position: fixed;
    inset: 0;
    z-index: 95;
    background: transparent;
}

/* Popover with the alternatives. Top layer (HTML `popover="manual"` + showPopover) so it
   escapes any ancestor overflow / containing block; positioning is set inline by JS in
   OnAfterRenderAsync — pixel-perfect aligned to the cell, no border-radius, butts up
   against the cell's bottom edge. Same monospace + text-xs as the table cells so the
   alternatives read as a continuation of the cell. */
.vdt-cell-dropdown-popover {
    overflow-y: auto;
    border-radius: var(--r-md);
    border-width: 1px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-shadow: var(--e-3);
    --tw-shadow-colored: var(--e-3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.vdt-cell-dropdown-popover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.vdt-cell-dropdown-popover {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.vdt-cell-dropdown-popover:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.job-row .vdt-cell-dropdown-popover {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.vdt-cell-dropdown-popover {
    min-width: 160px;
    max-width: 280px;
    max-height: 320px;
    z-index: 100;
    /* HTML [popover] elements carry a user-agent padding (0.25em) and margin; both are reset
       here so the sheet's own 5px gutter is the only inset around the items. */
    padding: 5px;
    margin: 0;
}

/* Items: roomier than table cells — the popover is a focused interaction, items get
   their own padding so they're easy to read and click. Inherits the popover's monospace
   font + text-xs but bumps padding generously. */
.vdt-cell-dropdown-item {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    border-radius: var(--r-xs);
    gap: 16px;
    padding: 6px 9px;
    background: transparent;
    border: 0;
    text-align: left;
    color: inherit;
    font: inherit;
}

.vdt-cell-dropdown-item:hover {
    background-color: rgb(var(--cas-tint) / 0.1);
}

.vdt-cell-dropdown-item-current {
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}
.vdt-cell-dropdown-item-current .vdt-cell-dropdown-item-suffix {
    color: rgb(255 255 255 / 0.7);
}

.vdt-cell-dropdown-item-value {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.vdt-cell-dropdown-item-value:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.vdt-cell-dropdown-item-suffix {
    white-space: nowrap;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.vdt-cell-dropdown-item-suffix:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.vdt-cell-dropdown-item-suffix {
    font-variant-numeric: tabular-nums;
}


.vdt-cell-content-truncate {
    min-width: 0px;
    flex: 1 1 0%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vdt-cell-input {
    width: 100%;
    height: 100%;
    /* Input elements have a browser-default min-width that would push the
       column wider on focus. min-width: 0 keeps the cell width fixed. */
    min-width: 0;
    /* No internal padding — .vdt-cell-input always lives inside .vdt-cell-content which
       already provides the cell padding via --vdt-cell-py/--vdt-px. Setting padding here
       would double up (visible as: input text drifting ~6-8px inward when a read-only
       span shows at the cell's content edge, or in advanced-mode JSON-quoted spans the
       value appearing visually higher/inset compared to editable rows). */
    padding: 0;
    background: transparent;
    border: 0;
    outline: 0;
    margin: 0;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-align: inherit;
    text-indent: 0;
    color: inherit;
    box-sizing: border-box;
}

/* Header background and slightly taller padding (matches dt-header-py). */
.vdt-table > thead {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.vdt-table > thead:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.vdt-table > thead > tr > th .vdt-cell-content {
    padding: var(--vdt-header-py) var(--vdt-px);
}

.vdt-table > thead > tr > th {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.vdt-table > thead > tr > th:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.job-row .vdt-table > thead > tr > th {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.vdt-table > thead > tr > th {
    text-transform: none;
}

/* Validation: cell-level borders win precedence under collapse, so the
   red/green outline shows on all 4 sides regardless of neighbouring gray.
   ONE attention colour everywhere: validation problems and low-confidence
   cells share the same red — different colours for the same "needs your
   attention" read as different states. */
/* Fill and text colour, no outline of its own: the grid keeps its own lines, so a block of
   uncertain cells reads as one coloured area instead of a set of little boxes. */
.vdt-cell-invalid {
    background-color: rgb(var(--bad) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.vdt-cell-invalid:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}

.vdt-cell-valid {
    background-color: rgb(var(--ok) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}

.vdt-cell-valid:is(.dark *) {
    background-color: rgb(var(--ok) / 0.2);
}

/* Depth indentation: the first cell on a row pads left proportional to
   `--vdt-depth` (set inline by the table primitive). Indented inside the
   content wrapper so it doesn't shift the validation border. */
.vdt-row > td:first-child > .vdt-cell-content {
    padding-left: calc(0.75rem + var(--vdt-depth, 0) * 16px);
}

/* Section header rendered as a tr-with-colspan inside the table. */
.vdt-section-row > .vdt-section-cell {
    padding: 0;
}





.vdt-section-chevron {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    width: 10px;
    font-size: 0.5em;
}

.vdt-section-chevron.open {
    transform: rotate(90deg);
}

/* Custom rows: full-width slots for stats, remarks, link rows, add-buttons. */
.vdt-custom-row > .vdt-custom-cell {
    padding: 0;
}

/* Outer wrapper. Flex column so toolbar + scroll viewport + footer share parent height
   correctly. `min-height: 0` lets the wrapper shrink inside a flex parent — without it
   the table sizes to its content (6000+ px on big certs) and Virtualize "sees" a huge
   viewport, defeating row virtualization. */
.vdt {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

/* Optional slots above and below the table; both stay put while the table scrolls. */

/* Sticky-header wrapper: the table sits inside a scroll container so a sticky <thead> can pin.
   `flex: 1 1 0` + `min-height: 0` makes this the actual scroll viewport, bounded by `.vdt`. */

/* ==========================================================================
   DataTable<T> — unified table component (greenfield, replaces Vdt* over time)
   See CAS.Blazor.Core/Components/DataTable/.
   ========================================================================== */

.datatable {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.datatable-scroll {
    overflow: auto;
    flex: 1 1 0;
    min-height: 0;
    overscroll-behavior: contain;
}

.datatable-table {
    --datatable-cell-py: 5px;
    --datatable-px: 10px;
    /* Mirror the legacy vdt-* custom properties onto datatable-table so cell templates that
       still use `.vdt-cell-content` / `.vdt-cell-content-truncate` (NormalizedSamplesTable
       hasn't fully migrated its inner markup yet) inherit the right padding. */
    /* Body cells: roomier than the tight 3px/6px the legacy override used — the read view
       was too cramped. Headers: tighter than the 8px override so the column titles don't
       dominate vertically over the data. */
    --vdt-cell-py: 7px;
    --vdt-px: 10px;
    --vdt-header-py: 5px;
    /* Inherit the same monospace + size as .vdt-table / DefinitionTable so cell text and
       inputs render in the project's standard mono — without this, descendants fall back
       to the body's sans-serif default. */
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
}

.job-row .datatable-table {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.datatable-table {
    border-collapse: collapse;
    /* Fixed layout makes <col width> values authoritative — auto layout treats them as
       hints and shrinks columns containing inputs (which have no intrinsic width) below
       what the content actually needs. */
    table-layout: fixed;
    width: 100%;
}

.datatable-table > colgroup > col + col {
    border-left-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.datatable-table > colgroup > col + col:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.datatable-table > thead > tr > th {
    box-shadow: inset 0 -1px 0 0 rgb(var(--border-color));
}

/* Same reasoning as .table-row > td above: a border on the row is collapsed onto the grid line
   between two rows, lands on a half pixel and is painted at half strength — so it vanishes on a
   white panel. Drawn inside the cell it is one whole pixel. The validation and focus rings set
   their own box-shadow on the td and take the cell over completely, so they are kept out. */
.datatable-table > tbody > tr.datatable-row > td:not(.datatable-cell-invalid):not(.datatable-cell-valid):not(.datatable-cell-focused) {
    box-shadow: inset 0 -1px 0 0 rgb(var(--border-color));
}

.datatable-table > tbody > tr.datatable-row:last-child > td:not(.datatable-cell-invalid):not(.datatable-cell-valid):not(.datatable-cell-focused) {
    box-shadow: none;
}

.datatable-table > thead > tr > th,
.datatable-table > tbody > tr > td {
    padding: 0;
    vertical-align: middle;
    min-width: 70px;
}

.datatable-table > thead {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.datatable-table > thead:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.datatable-table > thead > tr > th {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.datatable-table > thead > tr > th:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.job-row .datatable-table > thead > tr > th {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.datatable-table > thead > tr > th {
    text-transform: none;
}

/* Header cells delegate padding to the inner .datatable-cell, with a tighter vertical
   value than body cells (matches the vdt-table convention exactly). */
.datatable-table > thead > tr > th .datatable-cell {
    padding: var(--vdt-header-py) var(--vdt-px);
}

.datatable-thead-sticky {
    position: sticky;
    top: 0px;
    z-index: 10;
}

.table-header-cell.datatable-thead-sticky.sticky-edge {
    box-shadow: inset -1px 0 0 0 rgb(var(--border-color)),
                inset 0 -1px 0 0 rgb(var(--border-color)),
                6px 0 6px -4px rgba(0, 0, 0, 0.35);
}

/* Body cell wrapper. Same metrics for display and editing-input states so the swap doesn't
   shift content — the input replaces the div in place with matching padding/line-height. */
.datatable-cell,
.datatable-cell-input {
    width: 100%;
    height: 100%;
    padding: var(--datatable-cell-py) var(--datatable-px);
    line-height: 1.25;
    font: inherit;
    box-sizing: border-box;
    min-width: 0;
}

.datatable-cell {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.datatable-cell-clickable {
    cursor: pointer;
}

.datatable-cell-input {
    background: transparent;
    border: 0;
    outline: 0;
    text-indent: 0;
    color: inherit;
}

.datatable-cell-input:focus {
    background: transparent;
}

/* First-column inset scales with row depth so nested sections indent without a separate
   class per level. */
.datatable-row > td:first-child > .datatable-cell {
    padding-left: calc(var(--datatable-px) + var(--datatable-depth, 0) * 16px);
}

/* Section headers + custom rows render as full-width tr (colspan handled inline). */
.datatable-section-row > .datatable-section-cell,
.datatable-custom-row > .datatable-custom-cell {
    padding: 0;
}

.datatable-section-header {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: 0.5rem;
    padding: 6px var(--datatable-px);
}

.datatable-section-title {
    font-weight: 500;
}

.datatable-section-subtitle {
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.datatable-section-subtitle:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.job-row .datatable-section-subtitle {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.datatable-section-actions {
    margin-left: auto;
}

.datatable-custom-cell {
    padding: 6px var(--datatable-px);
}

/* Validation classes — adapter sets these on td via CellClassProvider. */
.datatable-cell-invalid {
    box-shadow: inset 0 0 0 2px rgba(239, 68, 68, 0.85);
}

.datatable-cell-valid {
    box-shadow: inset 0 0 0 2px rgba(34, 197, 94, 0.85);
}

.datatable-cell-corrected {
    background: rgba(34, 197, 94, 0.10);
}

.datatable-cell-uncertain {
    background: rgba(251, 191, 36, 0.18);
}

.datatable-cell-focused {
    background: rgba(255, 220, 0, 0.35);
    box-shadow: inset 0 0 0 2px rgba(220, 180, 0, 1);
}


.dt-cell-overlay {
    pointer-events: none;
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    right: 0;
    top: 0;
    bottom: 0;
}

.dt-cell-overlay > * {
    pointer-events: auto;
}

.dt-delete-field {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    margin-left: 4px;
    opacity: 0;
    transition: opacity 150ms;
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}

.dt-cell-display:hover .dt-delete-field {
    opacity: 1;
}

.dt-cell-reset {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.dt-cell-reset:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.dt-cell-reset {
    font-size: 0.625rem;
}

.dt-cell-reset:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-cell-reset:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* ── Display cell ─────────────────────────────────────────────────── */

.dt-cell-display {
    display: flex;
    height: 100%;
    width: 100%;
    cursor: pointer;
    align-items: center;
}


.dt-status-dot {
    margin-right: 0.25rem;
    height: 0.5rem;
    width: 0.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
}

/* ── JSON syntax colours ──────────────────────────────────────────── */

.dt-json-null {
    color: var(--syntax-literal);
    font-style: italic;
}

.dt-json-string {
    color: var(--syntax-string);
}

.dt-json-number {
    color: var(--syntax-number);
}

.dt-json-boolean {
    color: var(--syntax-literal);
}

.dt-json-value {
    min-width: 0px;
    flex: 1 1 0%;
    word-break: break-all;
}

.dt-now-value {
    word-break: break-all;
}

/* ── Stats table ──────────────────────────────────────────────────── */

.dt-stats-table {
    width: 100%;
    table-layout: fixed;
}

.dt-stats-body > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-y-reverse: 0;
    border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
    border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-stats-body > :not([hidden]) ~ :not([hidden]):is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.dt-stats-label {
    border-right-width: 1px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-right: 0.5rem;
    text-align: right;
    vertical-align: top;
    font-family: var(--font-mono);
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.dt-stats-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.dt-stats-label {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-stats-label:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.dt-stats-label {
    padding-left: var(--dt-px);
}

.dt-stats-value {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    vertical-align: top;
    font-family: var(--font-mono);
}

/* ── Remarks section ──────────────────────────────────────────────── */

.dt-remarks {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-top-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.dt-remarks:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* ===========================================
   NORMALIZED SAMPLES TABLE
   =========================================== */

.normalized-samples-table {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
}

.job-row .normalized-samples-table {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.normalized-samples-table {
    table-layout: auto;
    /* `separate` lets per-cell borders (notably the validation indicator)
       render on all four sides without competing against neighbouring cells.
       `border-spacing: 0` keeps the visual layout flush like collapse. */
    border-collapse: separate;
    border-spacing: 0;
}

.normalized-samples-table .table-header-cell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    text-transform: none;
}

.job-row .normalized-samples-table .table-header-cell {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.normalized-samples-table .table-header-cell {
    min-width: 70px;
}

.normalized-samples-table .table-cell {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
}

.job-row .normalized-samples-table .table-cell {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

/* Vertical separators between every column. The `:not(.dt-cell-invalid)`
   guard keeps the gray border off invalid cells so the red validation
   border doesn't compete with column-separator gray. */
.normalized-samples-table .table-header-cell:not(:last-child),
.normalized-samples-table .table-cell:not(:last-child):not(.dt-cell-invalid):not(.dt-cell-valid) {
    border-right-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.normalized-samples-table .table-header-cell:not(:last-child):is(.dark *),
.normalized-samples-table .table-cell:not(:last-child):not(.dt-cell-invalid):not(.dt-cell-valid):is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* Horizontal separators per row. In `separate` mode the existing
   `tr.table-row { border-b }` is ignored, so the line is moved to each body
   cell. The header gets its bottom line from `sticky-header-shadow` already,
   so it's intentionally excluded here. The last row drops its border so the
   table edge stays clean. */
.normalized-samples-table tbody .table-cell:not(.dt-cell-invalid):not(.dt-cell-valid) {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.normalized-samples-table tbody .table-cell:not(.dt-cell-invalid):not(.dt-cell-valid):is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.normalized-samples-table tbody tr:last-child .table-cell {
    border-bottom: 0;
}

.normalized-level-prefix {
    margin-right: 0.5rem;
    font-weight: 600;
}

.normalized-row-number .datatable-cell {
    justify-content: flex-end;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.normalized-row-number .datatable-cell:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.normalized-level-heat {
    --tw-text-opacity: 1;
    color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}

.normalized-level-product {
    --tw-text-opacity: 1;
    color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}

.normalized-level-sample {
    --tw-text-opacity: 1;
    color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}

.normalized-samples-table .table-cell.dt-cell-corrected {
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}

.normalized-samples-table .normalized-cell-input {
    margin: 0px;
    width: 100%;
    border-width: 0px;
    background-color: transparent;
    padding: 0px;
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.normalized-samples-table .normalized-cell-input:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.normalized-samples-table .normalized-cell-input {
    font: inherit;
}

/* Source cell highlight when linked to a bounding box.
   Two shapes:
   - On a single <td> (NormalizedSamplesTable cell click): highlight that cell directly.
   - On a <tr> (DefinitionTable row whose id matches the field path): highlight only the
     value cell (last column), never the property/label cell. */
td.field-source-active,
tr.field-source-active > td:last-child,
.vdt-cell-content.field-source-active {
    box-shadow: inset 0 0 0 2px rgba(220, 180, 0, 1) !important;
}

/* ── Kolommen-cockpit ───────────────────────────────────────────────
   De modeltabel vult de zijbalk edge-to-edge: geen eigen rechterrand
   (de aside draagt er al één) en geen buitenmarge. */
.kolommen-cockpit .dt-panel {
    border-right: 0;
}
.kolommen-cockpit #definition-table-scroll {
    height: 100%;
}

/* De actieve rij valt als geheel op: label én waarde een zachtgele
   achtergrond, en een geel kader om de hele rij — de connectorlijn
   loopt naar de waardecel. Alleen hier, niet in de review-UI. */
.kolommen-cockpit tr.field-source-active > td {
    background: rgba(250, 204, 21, 0.14) !important;
    box-shadow: inset 0 2px 0 0 rgba(220, 180, 0, 1),
                inset 0 -2px 0 0 rgba(220, 180, 0, 1) !important;
}
.kolommen-cockpit tr.field-source-active > td:first-child {
    box-shadow: inset 2px 0 0 0 rgba(220, 180, 0, 1),
                inset 0 2px 0 0 rgba(220, 180, 0, 1),
                inset 0 -2px 0 0 rgba(220, 180, 0, 1) !important;
}
.kolommen-cockpit tr.field-source-active > td:last-child {
    box-shadow: inset -2px 0 0 0 rgba(220, 180, 0, 1),
                inset 0 2px 0 0 rgba(220, 180, 0, 1),
                inset 0 -2px 0 0 rgba(220, 180, 0, 1) !important;
}

/* Het detailtabblad van de kolommen-cockpit in dezelfde vormtaal als de
   modeltabel ernaast: rand-tot-rand rijen met haarlijnen, sectiekoppen als
   tabelkoppen, monolabels links en waarden rechts. */
.kolommen-details .kd-section {
    border-top-width: 1px;
    border-bottom-width: 1px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.kolommen-details .kd-section:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.kolommen-details .kd-section {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.kolommen-details .kd-section:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.kolommen-details .kd-section {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.kolommen-details .kd-section:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.job-row .kolommen-details .kd-section {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.kolommen-details .kd-section:first-child {
    border-top: 0;
}
.kolommen-details .kd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-bottom-width: 1px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.kolommen-details .kd-row:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.job-row .kolommen-details .kd-row {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.kolommen-details .kd-row > dt {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.kolommen-details .kd-row > dt:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .kolommen-details .kd-row > dt {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.kolommen-details .kd-row > dd {
    word-break: break-all;
    text-align: right;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.kolommen-details .kd-row > dd:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.kolommen-details .kd-empty {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.kolommen-details .kd-empty:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .kolommen-details .kd-empty {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.kolommen-details .kd-actions {
    border-bottom-width: 1px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.kolommen-details .kd-actions:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* ── Segmented control (radio-group as pill row) ────────────────── */

.segmented-control {
    display: inline-flex;
    flex-wrap: wrap;
    overflow: hidden;
    border-radius: var(--r-sm);
    border-width: 1px;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.segmented-control:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.segmented-control {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.segmented-control:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.segmented-control-segment {
    background-color: transparent;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.segmented-control-segment:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].segmented-control-segment {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].segmented-control-segment:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.job-row .segmented-control-segment {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.segmented-control-segment {
    border-left-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.segmented-control-segment:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.segmented-control-segment {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    cursor: pointer;
}

.segmented-control-segment:first-child {
    border-left: 0;
}

.segmented-control-segment:hover:not(:disabled):not(.selected) {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.segmented-control-segment:hover:not(:disabled):not(.selected):is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.segmented-control-segment:hover:not(:disabled):not(.selected) {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.segmented-control-segment:hover:not(:disabled):not(.selected):is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.segmented-control-segment.selected,
.segmented-control-segment.selected:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.segmented-control-segment:disabled {
    cursor: not-allowed;
}

/* ApexCharts legend labels: ApexCharts inlines the text colour, which defaults to a
   washed-out grey that's hard to read on our surfaces. Override it (needs !important to
   beat the inline style) with a theme-aware readable tone. */
.apexcharts-legend-text {
    color: #374151 !important; /* gray-700 */
}
.dark .apexcharts-legend-text {
    color: #d1d5db !important; /* gray-300 */
}
/* ApexCharts draws its own tooltip and cannot be told to use ours, so it is dressed
   to match .cas-tip instead: the same dark bubble, the same 6px radius, the same
   overlay shadow, the same 12px text. Previously only dark mode was touched, which
   left the charts as the one place in the product where hovering produced a white
   box with a grey border while everything else produced a dark bubble.
   !important throughout — Apex writes these as inline styles. */
.apexcharts-tooltip.apexcharts-theme-light,
.apexcharts-tooltip.apexcharts-theme-dark {
    background: #111827 !important;
    border: 0 !important;
    border-radius: var(--r-sm) !important;
    box-shadow: var(--e-3) !important;
    color: white !important;
    font-size: 12px !important;
}
.dark .apexcharts-tooltip.apexcharts-theme-light,
.dark .apexcharts-tooltip.apexcharts-theme-dark {
    background: #374151 !important;
}
/* The title strip is one shade up from the body, the way a panel header is. */
.apexcharts-tooltip-title {
    background: rgb(255 255 255 / .07) !important;
    border-bottom: 0 !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
    padding: 5px 9px !important;
}
.apexcharts-tooltip-text-y-label,
.apexcharts-tooltip-text-y-value,
.apexcharts-tooltip .apexcharts-tooltip-text {
    color: white !important;
}
/* A measured value in a tooltip lines up like a measured value anywhere else. */
.apexcharts-tooltip-text-y-value {
    font-variant-numeric: tabular-nums;
}

/* The row inside the bubble, which is what actually shows. Apex writes the SERIES
   COLOUR onto it as an inline background-color, so dressing .apexcharts-tooltip
   alone was not enough: the green of a pie slice painted straight over the dark
   box and you got a green bubble with white text. The marker dot gets the same
   inline colour and is the one place the series colour belongs. */
.apexcharts-tooltip-series-group,
.apexcharts-tooltip-series-group.apexcharts-active {
    background: transparent !important;
    padding: 4px 9px 5px !important;
}
/* Apex writes font-family: Helvetica, Arial inline on the text node. Without this
   the chart tooltips were the only text in the product not set in Inter. */
.apexcharts-tooltip-text,
.apexcharts-tooltip-title {
    font-family: inherit !important;
}
/* Ruimte tussen de donut-delen (#882 point 12): a stroke in the panel-surface colour separates the
   slices. Scoped to .cas-donut-gap so only the dashboard donuts get it; theme-aware via .dark. */

/* The donut has to be EXACTLY square: ApexCharts draws a square chart and centres it
   horizontally, but a box that is taller than it is wide leaves the ring sitting above
   the box's middle — and the HTML total, which centres on the box, then floats below the
   hole. `height: 100%` plus `max-width` cannot fix that: with the height fixed, the
   aspect ratio has no axis left to give, so the box just stops being square.
   min() on the container's own two sides picks whichever side is the binding one and
   sets both, so the box is square by construction. */
.donut-row        { container-type: size; }
.donut-square {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 42%;
    min-width: 7rem;
    max-width: 20rem;
    flex-shrink: 0;
}
.donut-square-fit {
    position: relative;
    flex-shrink: 0;
    height: min(100cqh, 48cqw);
    width: min(100cqh, 48cqw);
}

.cas-donut-gap .apexcharts-pie-area {
    stroke: #ffffff !important; /* bg-surface (light) */
    stroke-width: 4px !important;
}
.dark .cas-donut-gap .apexcharts-pie-area {
    stroke: #1f2937 !important; /* bg-surface (dark, gray-800) */
}
/* Horizontal bar chart (dashboard #882): grid lines + axis labels are themed here, not in the C#
   chart options — so they follow the theme purely via CSS. The grid uses the shared --border-color
   token, which already flips gray-200 -> gray-700 under .dark, so the lines adapt on their own. */
.apexcharts-gridline {
    stroke: rgb(var(--border-color)) !important;
}
.dark .apexcharts-gridline {
    stroke: #4b5563 !important; /* gray-600 — a touch lighter than the gray-700 border token */
}
.apexcharts-xaxis-label,
.apexcharts-yaxis-label {
    fill: #6b7280 !important; /* gray-500 */
}
.dark .apexcharts-xaxis-label,
.dark .apexcharts-yaxis-label {
    fill: #d1d5db !important; /* gray-300 — lighter so labels stay readable on a dark panel */
}
/* The bar chart's tooltip pops up above the top bar; let it escape the panel body's overflow-hidden
   (scoped to this panel) so its top isn't clipped under the header. The header is static, so DOM order
   already paints the tooltip over it. */
.chart-tooltip-visible > div:last-child {
    overflow: visible !important;
}
/* Depth for the dashboard donuts (#882 point 12) via a CSS drop-shadow on the chart itself. NOT
   ApexCharts' chart.dropShadow: that reserves layout space and shifts the donut off-centre, so the
   centred HTML total overlay no longer lines up with the hole. A CSS filter is purely visual. */
.cas-donut-gap .apexcharts-canvas {
    filter: drop-shadow(var(--e-1-drop));
}
/* The centre total's fade-in is driven by ApexCharts' OnAnimationEnd (event-exact), not a CSS delay
   guess — see Dashboard.razor. Only the transition lives in markup (Tailwind transition-opacity). */
/* ── Dashboard grid ────────────────────────────────────────────────────────
   Twelve columns, and three row heights instead of "whatever the content needs".
   That is the whole point: two 1u panels plus the gap are exactly one 2u panel,
   so a row never ends up half a panel taller than the one beside it.
   150 / 316 / 482 = 1u, 2u = 2×1u + gap, 3u = 3×1u + 2 gaps. */
.dash {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
}
@media (min-width: 1024px) {
    .dash {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}
.dash    { grid-auto-rows: 150px; }
.dash > * { min-width: 0; }

/* A dashboard with a fixed set of panels divides the window instead of running past the
   bottom of it: the row unit becomes a share of the height rather than 150px, so the spans
   keep their proportions and the whole board fits on one screen. It follows a resize on its
   own — the browser recomputes the fraction. Only for a board whose panels are known, never
   for one the reader can add to; there, the height is whatever the panels add up to and the
   page scrolls. The floor is the point below which dividing stops helping — a chart squeezed
   under it is not a smaller chart, it is an unreadable one — so a window shorter than that
   gets a scrollbar instead of five illegible panels. */
.dash-fit { grid-auto-rows: minmax(110px, 1fr); overflow-y: auto; }

/* Height is a row span, not a pixel value: that is what keeps a row of mixed panels
   from going ragged. With a 16px gap, 2 rows are 150+16+150 = 316 and 3 are 482 —
   which is where those numbers come from. */
.dash-1u, .dash-2u, .dash-3u, .dash-4u {
    display: flex;
    flex-direction: column;
}
.dash-1u { grid-row: span 1; }
.dash-2u { grid-row: span 2; }
.dash-3u { grid-row: span 3; }
.dash-4u { grid-row: span 4; }
/* Whatever a slot holds - a panel, a card - takes the slot's full height. */
.dash-1u > *, .dash-2u > *, .dash-3u > *, .dash-4u > * {
    min-height: 0px;
    flex: 1 1 0%;
}

/* ── Editable dashboard board (#882) ───────────────────────────────────────
   The client's board, where the reader places the panels. Twelve columns and the
   same 150px row unit as the grid above, but the position is the panel's own:
   it owns a rectangle (x, y, w, h) and keeps it. Nothing reflows on its own, so
   a gap left on purpose stays a gap until the reader tidies up.

   The coordinates are cells, never pixels. A column is a fraction of the width,
   so a wider window makes the columns wider and moves nothing at all. Below md
   the same rectangles are read as a single column (reading order: y, then x) —
   the placement classes simply stop applying. */
.dash-wrap {
    position: relative;
}

/* While editing, the slot layer runs one row past the lowest panel — the row you are still allowed to
   drop into. The board itself is not that tall, so without this the extra row hangs over whatever
   follows and the buttons underneath end up behind it. One row plus its gap: 150 + 16. */
@media (min-width: 768px) {
.dash-wrap-editing { padding-bottom: 166px; }
}
.dash-board {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    align-items: stretch;
    gap: 1rem;
}
@media (min-width: 768px) {
    .dash-board {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}
.dash-board { grid-auto-rows: 150px; }
.dash-board > * {
    display: flex;
    min-width: 0px;
    flex-direction: column;
}
/* Whatever a slot holds - a panel, a card - takes the slot's full height. */
.dash-board > * > * {
    min-height: 0px;
    flex: 1 1 0%;
}

/* Placement. Written out rather than composed inline: a grid position is static CSS,
   and below md the column placement stops applying — the heights below do not. */
@media (min-width: 768px) {
.dash-x-0 { grid-column-start: 1; }
.dash-x-1 { grid-column-start: 2; }
.dash-x-2 { grid-column-start: 3; }
.dash-x-3 { grid-column-start: 4; }
.dash-x-4 { grid-column-start: 5; }
.dash-x-5 { grid-column-start: 6; }
.dash-x-6 { grid-column-start: 7; }
.dash-x-7 { grid-column-start: 8; }
.dash-x-8 { grid-column-start: 9; }
.dash-x-9 { grid-column-start: 10; }
.dash-x-10 { grid-column-start: 11; }
.dash-x-11 { grid-column-start: 12; }

.dash-w-1 { grid-column-end: span 1; }
.dash-w-2 { grid-column-end: span 2; }
.dash-w-3 { grid-column-end: span 3; }
.dash-w-4 { grid-column-end: span 4; }
.dash-w-5 { grid-column-end: span 5; }
.dash-w-6 { grid-column-end: span 6; }
.dash-w-7 { grid-column-end: span 7; }
.dash-w-8 { grid-column-end: span 8; }
.dash-w-9 { grid-column-end: span 9; }
.dash-w-10 { grid-column-end: span 10; }
.dash-w-11 { grid-column-end: span 11; }
.dash-w-12 { grid-column-end: span 12; }

.dash-y-0 { grid-row-start: 1; }
.dash-y-1 { grid-row-start: 2; }
.dash-y-2 { grid-row-start: 3; }
.dash-y-3 { grid-row-start: 4; }
.dash-y-4 { grid-row-start: 5; }
.dash-y-5 { grid-row-start: 6; }
.dash-y-6 { grid-row-start: 7; }
.dash-y-7 { grid-row-start: 8; }
.dash-y-8 { grid-row-start: 9; }
.dash-y-9 { grid-row-start: 10; }
.dash-y-10 { grid-row-start: 11; }
.dash-y-11 { grid-row-start: 12; }
.dash-y-12 { grid-row-start: 13; }
.dash-y-13 { grid-row-start: 14; }
.dash-y-14 { grid-row-start: 15; }
.dash-y-15 { grid-row-start: 16; }
.dash-y-16 { grid-row-start: 17; }
.dash-y-17 { grid-row-start: 18; }
.dash-y-18 { grid-row-start: 19; }
.dash-y-19 { grid-row-start: 20; }
.dash-y-20 { grid-row-start: 21; }
.dash-y-21 { grid-row-start: 22; }
.dash-y-22 { grid-row-start: 23; }
.dash-y-23 { grid-row-start: 24; }
}

/* Height applies at every width: a donut squeezed into one row is unreadable on a phone too.
   Only the column placement above is md-only, because a row start in a single column would just
   leave holes nobody can fill. */
.dash-h-1 { grid-row-end: span 1; }
.dash-h-2 { grid-row-end: span 2; }
.dash-h-3 { grid-row-end: span 3; }
.dash-h-4 { grid-row-end: span 4; }
.dash-h-5 { grid-row-end: span 5; }
.dash-h-6 { grid-row-end: span 6; }
.dash-h-7 { grid-row-end: span 7; }
.dash-h-8 { grid-row-end: span 8; }

/* Edit mode. Behind the board lies one empty slot per cell, in the same twelve columns with the same
   16px gap and the same rounding as a panel — because that is what the board is: boxes with space
   between them, not a ruled sheet. An open slot then reads as a slot, and a gap the reader left shows
   its real size instead of having to be counted off against lines.

   The layer is its own grid over the board, so the slots land on the real tracks at any width, and it
   runs one row past the lowest panel: exactly as deep as a panel is allowed to be dropped. */
.dash-guides {
    pointer-events: none;
    position: absolute;
    inset: 0px;
    display: none;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 768px) {
    .dash-guides {
        display: grid;
    }
}
.dash-guides { grid-auto-rows: 150px; }
/* A tint per theme rather than one colour at one opacity: on the dark board gray-800 over gray-900 is
   already a clear step, while on the light board the same idea lands between two near-whites and
   disappears. The slot has to read as an empty slot in both. */
.dash-guide {
    border-radius: var(--r-md);
    background-color: rgb(229 231 235 / 0.6);
}
.dash-guide:is(.dark *) {
    background-color: rgb(31 41 55 / 0.4);
}

/* Where the dragged panel will land. */
.dash-placeholder {
    pointer-events: none;
    border-radius: var(--r-md);
    border-width: 2px;
    border-style: dashed; border-color: var(--tint); background: var(--tint-soft);
}

/* A panel in edit mode: ringed, grabbable, with its controls in the corners. */
.dash-editable {
    position: relative;
    cursor: grab;
    touch-action: none;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    border-radius: var(--r-md);
}
.dash-editable > * {
    pointer-events: none;
}
.dash-remove {
    pointer-events: auto;
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    z-index: 20;
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.dash-remove:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dash-remove {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.dash-remove:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.dash-remove {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.dash-remove:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dash-remove {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.dash-remove:hover {
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.dash-remove {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.dash-resize {
    pointer-events: auto;
    position: absolute;
    bottom: -0.25rem;
    right: -0.25rem;
    z-index: 20;
    display: none;
    height: 1.75rem;
    width: 1.75rem;
    cursor: nwse-resize;
    touch-action: none;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.dash-resize:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dash-resize {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.dash-resize:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.dash-resize {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.dash-resize:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dash-resize {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.dash-resize:hover {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
@media (min-width: 768px) {
    .dash-resize {
        display: flex;
    }
}
/* The size readout while resizing: a panel's minimum differs per panel, so the
   reader can see what they are getting instead of discovering it on release. */
.dash-size {
    pointer-events: none;
    position: absolute;
    bottom: 0.5rem;
    right: 2.25rem;
    z-index: 20;
    border-radius: 9999px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}
.job-row .dash-size {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

/* The panel under the cursor leaves the grid and follows the pointer. JS drives it, because a per-frame
   position cannot go through a render loop — but it writes only the variables below, never a property.
   That is what makes letting go free: the moment Blazor drops the class the variables stop being read,
   so it does not matter whether JS has cleaned up yet. Clearing real inline styles meant one frame in
   which the class and the styles disagreed, and the panel visibly jumped through it.
   The panel is already in its target cell in the grid by then, so there is nothing left to recompute:
   dropping the class puts it exactly where the placeholder was.

   Both classes, and after .dash-editable: a one-class rule loses to that rule's own `relative`, and the
   panel then offsets from where it already is instead of from the viewport — which put the clone at
   twice its own distance from the cursor. The panel carries animate-colors, not animate-all, so nothing
   eases `transform`: while dragging it would trail the cursor, and on release it would fly in. */
.dash-editable.dash-dragging {
    pointer-events: none;
    position: fixed;
    z-index: 50;
    opacity: 0.9;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    left:   var(--dash-l);
    top:    var(--dash-t);
    width:  var(--dash-w);
    height: var(--dash-h);
    transform: translate(var(--dash-dx, 0px), var(--dash-dy, 0px));
}


/* A share as a bar, for a breakdown that is easier to read than a donut. */

/* ===========================================
   DESIGN SYSTEM - Icons
   Size and tone come from CasIcon's parameters, never from a utility class on
   the tag. Five sizes, seven tones, nothing in between.
   =========================================== */

.cas-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cas-icon-xs { font-size: 10px; }
.cas-icon-sm { font-size: 12px; }
.cas-icon    { font-size: 14px; }   /* the default */
.cas-icon-lg { font-size: 18px; }
.cas-icon-xl { font-size: 24px; }

.cas-icon-muted {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.cas-icon-muted:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.cas-icon-tint {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.cas-icon-success {
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}
.cas-icon-warning {
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}
.cas-icon-danger {
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.cas-icon-info {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.cas-icon-white {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Page frame
   The layout every content page repeats. See CasPage.razor for why.
   =========================================== */

.cas-page {
    padding: 1.5rem;
}
.cas-page-compact {
    padding: 1rem;
}
.cas-page-flush {
    padding: 0px;
}

/* Scrolls as a whole. */
.cas-page-scroll {
    min-height: 0px;
    flex: 1 1 0%;
    overflow-y: auto;
}
/* Fills the frame; a child does the scrolling. */
.cas-page-fill {
    display: flex;
    min-height: 0px;
    flex: 1 1 0%;
    flex-direction: column;
    overflow: hidden;
}

/* A page with a <Header>: the bar stays put on its own surface and the body below
   it scrolls. Without a Header nothing wraps the page and this does not apply. */
.cas-page-frame {
    display: flex;
    min-height: 0px;
    flex: 1 1 0%;
    flex-direction: column;
    overflow: hidden;
}
/* One height for every page, so the title does not jump when you navigate: the bar's bottom rule
   lines up with the foot of the CAS wordmark in the sidebar beside it. min-height rather than a
   fixed one, because the right-hand controls still wrap to a second line on a narrow window. */
.cas-page-head {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.cas-page-head:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.cas-page-head {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.cas-page-head:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
@media not all and (min-width: 768px) {
    .cas-page-head {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
.cas-page-head  { min-height: 75px; }
.cas-page-titles {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 0.125rem;
}
.cas-page-subtitle {
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.cas-page-subtitle:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .cas-page-subtitle {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.cas-page-actions {
    display: flex;
    min-width: 0px;
    max-width: 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* ── List beside detail ────────────────────────────────────────────────────
   Support, the factory library, log browsing: a rail of rows next to the thing
   they open. The rail must not read as a second sidebar, so it keeps the surface
   and only a rule separates it — and the open row lifts to the tint, joining the
   pane it opened. */
.listrail {
    display: flex;
    flex: none;
    flex-direction: column;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.listrail:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.listrail {
    border-right-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.listrail:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.listrail-body {
    min-height: 0px;
    flex: 1 1 0%;
    overflow-y: auto;
}

/* The hover ground is spelled out in Tailwind's own colours: bg-surface-hover is a
   class from this file, and a class cannot take a hover: variant. See the trap at the top. */
.listrow {
    display: block;
    width: 100%;
    cursor: pointer;
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(var(--border-subtle) / var(--tw-border-opacity, 1));
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    text-align: left;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.listrow:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.listrow:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.listrow-on    { background: var(--tint-soft); box-shadow: inset 3px 0 0 var(--tint); }
.listrow-on:hover { background: var(--tint-soft); }
.listrow-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
}
.listrow-title {
    margin-top: 0.5rem;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.375;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.listrow-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.listrow-on .listrow-title {
    font-weight: 600;
}
/* Two lines of the message and no more — a rail of full paragraphs is unreadable. */
.listrow-snip {
    margin-top: 0.375rem;
    overflow: hidden;
    font-size: 0.75rem;
    line-height: 1rem;
    line-height: 1.625;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.listrow-snip:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .listrow-snip {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.listrow-snip  {
                 display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.detailpane {
    display: flex;
    min-width: 0px;
    flex: 1 1 0%;
    flex-direction: column;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.detailpane:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

/* ── Document type, as one colour in two places ────────────────────────────
   The icon in the row gutter and the badge in the type column read the same
   token, so they can never disagree. A type colour says WHAT a thing is, never
   how it is doing — the pipeline bar beside it carries the state. */
.gutter-cell {
    width: 40px;
    text-align: left; padding-left: 8px !important; padding-right: 0 !important;
}


.badge-doc-cert    { background: color-mix(in srgb, var(--doc-cert) 14%, transparent);    color: var(--doc-cert); }
.badge-doc-invoice { background: color-mix(in srgb, var(--doc-invoice) 16%, transparent); color: var(--doc-invoice); }
.badge-doc-note    { background: color-mix(in srgb, var(--doc-note) 14%, transparent);    color: var(--doc-note); }
.badge-doc-multi   { background: color-mix(in srgb, var(--doc-multi) 14%, transparent);   color: var(--doc-multi); }
.badge-doc-attach  { background: color-mix(in srgb, var(--doc-attach) 14%, transparent);  color: var(--doc-attach); }
.badge-doc-unknown {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.badge-doc-unknown:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.badge-doc-unknown {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.badge-doc-unknown:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

/* The filter sheet: hangs from its own column, 6px clear of the header, on the
   highest elevation — it has to read as a sheet lying over the table, never as
   more rows. */
/* In the top layer (HTML popover), positioned by wwwroot/js/popover.js. It cannot hang off
   the header cell: every panel clips its content so its corners stay round, and an absolutely
   positioned sheet inside one gets cut off at the first overflow it meets. */
/* The two buttons share the width evenly and never wrap onto a second line. */
/* Nothing else may sit above an open sheet. */

/* The impersonation customer list, in the top layer for the same reason as .fpop: the
   profile menu it belongs to clips its content to keep its corner round, and this list
   opens upward, so it was being cut off at the menu's top edge. Scrolls at seventeen
   rows rather than growing past the top of the screen. */
.customer-pop {
    position: fixed;
    max-height: 18rem;
    min-width: 16rem;
    max-width: min(28rem,calc(100vw - 2rem));
    overflow-y: auto;
    border-radius: var(--r-md);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    --tw-shadow: var(--e-3);
    --tw-shadow-colored: var(--e-3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.customer-pop:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.customer-pop {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.customer-pop:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.customer-pop {
    margin: 0;
}
/* Above the profile menu (z-50), so a click outside the list closes the list and does not
   land on a menu item behind it. The list itself is in the top layer, above both. */
.customer-pop-backdrop {
    position: fixed;
    inset: 0px;
    z-index: 60;
}

/* The impersonation customer list, in the top layer for the same reason as .fpop: the
   profile menu it belongs to clips its content to keep its corner round, and this list
   opens upward, so it was being cut off at the menu's top edge. Scrolls at seventeen
   rows rather than growing past the top of the screen. */
.customer-pop {
    position: fixed;
    max-height: 18rem;
    min-width: 16rem;
    max-width: min(28rem,calc(100vw - 2rem));
    overflow-y: auto;
    border-radius: var(--r-md);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    --tw-shadow: var(--e-3);
    --tw-shadow-colored: var(--e-3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.customer-pop:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.customer-pop {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.customer-pop:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.customer-pop {
    margin: 0;
}
/* Above the profile menu (z-50), so a click outside the list closes the list and does not
   land on a menu item behind it. The list itself is in the top layer, above both. */
.customer-pop-backdrop {
    position: fixed;
    inset: 0px;
    z-index: 60;
}

/* The share pop-up of a document (#1522), in the top layer for the same reason as .customer-pop:
   the panel header it hangs off clips its content. Two links written out, each with a Kopieer. */
.share-pop {
    position: fixed;
    display: flex;
    width: 26rem;
    max-width: calc(100vw - 1rem);
    flex-direction: column;
    gap: 0.875rem;
    border-radius: var(--r-md);
    padding: 1rem;
    --tw-shadow: var(--e-3);
    --tw-shadow-colored: var(--e-3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.share-pop:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.share-pop {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.share-pop:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.share-pop:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.share-pop {
    margin: 0;
}
.share-pop:not(:popover-open) { display: none; }
.share-pop-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.share-pop-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.job-row .share-pop-title {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.share-pop-block {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}
.share-pop-label {
    font-size: 13px;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.share-pop-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.share-pop-hint {
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.share-pop-hint:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .share-pop-hint {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.share-pop-row {
    display: flex;
    align-items: stretch;
    gap: 0.375rem;
}
/* The link itself, readable and selectable; a long one ends in an ellipsis, the title holds all of it. */
.share-pop-link {
    min-width: 0px;
    flex: 1 1 0%;
    -webkit-user-select: all;
       -moz-user-select: all;
            user-select: all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: var(--r-sm);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.share-pop-link:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.share-pop-link {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.share-pop-link:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.share-pop-link {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.share-pop-link:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.job-row .share-pop-link {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

/* The number of values a column is filtering on, on the head itself. */
.th-count {
    display: inline-flex;
    height: 15px;
    min-width: 15px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-size: 9px;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* ── Active-filter strip ───────────────────────────────────────────────────
   Only there when something is actually filtering. A funnel in a column head
   says "this column can filter"; a chip here says "this is what you are looking
   at", and it is the one place where all of that is visible at once. */
/* The table's toolbar: which filters are on, on the left, and the search box plus the funnel
   that opens the filter row on the right. One strip above every table in the product — before
   this, each page built its own out of whatever was to hand, which is why no two tables looked
   the same. */
.tbl-toolbar {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.tbl-toolbar:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.tbl-toolbar {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.tbl-toolbar:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.tbl-toolbar-end {
    margin-left: auto;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
}

.tbl-search {
    position: relative;
}
.tbl-search-icon {
    pointer-events: none;
    position: absolute;
    left: 0.625rem;
    top: 50%;
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.tbl-search-icon:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.tbl-search-input {
    height: 1.75rem;
    width: 14rem;
    max-width: 40vw;
    border-radius: var(--r-sm);
    border-width: 1px;
    padding-left: 1.75rem;
    padding-right: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.tbl-search-input:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.tbl-search-input {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.tbl-search-input:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.tbl-search-input {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.tbl-search-input:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.job-row .tbl-search-input {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
/* Its own rule, not a placeholder: variant in the @apply above: text-placeholder is a class from
   this file, and a Tailwind variant on one of those compiles to nothing at all. */
.tbl-search-input::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.tbl-search-input::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.tbl-search-input:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.tbl-search-input:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.tbl-search-input { cursor: text; }
.tbl-search-input:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Inside the toolbar the chips carry no strip of their own any more. */
.fchip-bar {
    display: flex;
    min-width: 0px;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* The filter row under the heads. On the surface like the rest of the table; the inputs carry
   their own borders, so the band reads as controls without a shade behind it. */
.table-filter-row > th {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    vertical-align: top;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.table-filter-row > th:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.table-filter-row > th {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.table-filter-row > th:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
/* The gutter's filter is the funnel and nothing else: no field, no border, no width to spare. */
.table-filter-row > th.gutter-filter {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    text-align: center;
    vertical-align: middle;
}
.gutter-filter .form-control,
.gutter-filter .dropdown-toggle {
    height: auto;
    width: auto;
    border-width: 0px;
    background-color: transparent;
    padding: 0px;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
/* A plain toggle in the gutter's filter cell: the icon is the whole control. */
.gutter-toggle {
    display: inline-flex;
    height: 1.5rem;
    width: 1.5rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xs);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.gutter-toggle:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.gutter-toggle:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

/* The match-mode button lives INSIDE the text filter, on its left: a borderless word on the
   field's own background, with a divider between it and what you type. As a second bordered
   control beside the input it took most of a column and left three characters for the text.
   One click switches between contains and exact, and the word on it is the mode that is on. */
/* Clear of the mode button AND its divider, so the text does not start against the line. */
.txt-filter-input {
    padding-left: 4.6rem;
}
.txt-op {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    width: 4rem;
    cursor: pointer;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-top-left-radius: var(--r-sm);
    border-bottom-left-radius: var(--r-sm);
    border-width: 0px;
    background-color: transparent;
    padding-left: 0.5rem;
    padding-right: 0.25rem;
    text-align: left;
    font-size: 11px;
    line-height: 1;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.txt-op:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.txt-op {
    border-right: 1px solid rgb(var(--border-color));
}
.txt-op:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.txt-op:focus:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.txt-op:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.txt-op:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
/* Exact is the mode that narrows, so it reads as switched on rather than as the quiet default. */
.txt-op-on {
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}

/* The same choice on a search box that is not a column filter (Support, Incidents): the word sits
   at the right-hand end, where the clear cross is on the inside of it. */
.search-filter-input {
    padding-right: 4.4rem;
}
.search-op {
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 3.8rem;
    cursor: pointer;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-top-right-radius: var(--r-sm);
    border-bottom-right-radius: var(--r-sm);
    border-width: 0px;
    background-color: transparent;
    padding-left: 0.5rem;
    padding-right: 0.25rem;
    text-align: left;
    font-size: 11px;
    line-height: 1;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.search-op:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.search-op {
    border-left: 1px solid rgb(var(--border-color));
}
.search-op:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.search-op:focus:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.search-op:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.search-op:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.search-op-on {
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.fchip {
    display: inline-flex;
    height: 1.5rem;
    align-items: center;
    gap: 0.375rem;
    border-radius: 9999px;
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    background-color: rgb(var(--cas-tint) / 0.1);
    padding-left: 0.625rem;
    padding-right: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.job-row .fchip {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.fchip b {
    font-weight: 600;
}
/* A chip that is a switch rather than a filter that is on. */
.fchip-x {
    display: inline-flex;
    height: 1rem;
    width: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.fchip-x:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* ── Column head affordances ───────────────────────────────────────────────
   The sort arrow is an affordance, not information. It appears while the pointer
   is over that head, and it stays put on the column that is actually sorting. A
   full row of grey arrows standing there permanently is noise: it repeats on
   every column what is true of almost every column.

   A plain descendant selector, not a group-hover variant: .th-act is a class from
   this file, and a Tailwind variant on one of those compiles to nothing. */
.th-act {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.th-act-idle {
    opacity: 0;
}
.table-header-cell:hover .th-act-idle {
    opacity: 1;
}

/* The head of a column that is doing something carries the tint, so you can see
   which column narrowed the list without reading every arrow. */
.th-on { background: var(--tint-soft); }
.th-on .cas-icon { color: var(--tint); }

/* ── The page that IS a table ──────────────────────────────────────────────
   Documents, the archive, a customer list: one panel that takes the whole body,
   with an optional strip of filters on top and a pinned footer under it. The
   rows area keeps the page ground behind it, so the space under the last row
   reads as "that is all" instead of as an unexplained gap. */
.fill-panel {
    display: flex;
    min-height: 0px;
    flex: 1 1 0%;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.fill-panel:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.fill-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(var(--border-color));
    border-radius: inherit;
    pointer-events: none;
    z-index: 20;
}
.fill-panel-strip {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.fill-panel-strip:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.fill-panel-strip {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.fill-panel-strip:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
/* The rows keep the surface. NOT `> *`: a fixed-position overlay that happens to be
   a child of this box — the document detail's backdrop, a dropdown's veil — would
   get an opaque white ground and stop being see-through. */
.fill-panel-body {
    min-height: 0px;
    flex: 1 1 0%;
    overflow: hidden;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.fill-panel-body:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.cas-page-stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.cas-page-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .cas-page-grid-1 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .cas-page-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .cas-page-grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .cas-page-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ===========================================
   DESIGN SYSTEM - Type roles
   A size plus a weight plus a colour, together, mean something. Name the
   meaning once here instead of respelling the combination at every call site:
   "text-xs text-muted" appeared 300+ times and drifted into text-tertiary and
   text-placeholder variants that were meant to be the same thing.
   =========================================== */

/* Secondary information beside a value: a timestamp, a count, a hint. */
.text-meta {
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-meta:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .text-meta {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.text-meta-xs {
    font-size: 11px;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-meta-xs:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

/* Something a machine wrote: an id, a path, a raw value. */
.text-code {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
}
.job-row .text-code {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.text-code-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-code-meta:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .text-code-meta {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

/* The one thing on a line that carries the meaning. */
.text-strong {
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-strong:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-strong-body {
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-strong-body:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.text-strong-secondary {
    font-weight: 500;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-strong-secondary:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].text-strong-secondary {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].text-strong-secondary:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

/* A heading over a group of values. .stat-title is the same idea at panel level. */
.text-label {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .text-label {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

/* ===========================================
   DESIGN SYSTEM - Choice controls
   Checkbox, radio and toggle all draw the same way: a visually-hidden native
   input keeps the keyboard and screen-reader behaviour, and the boxes beside it
   take the colours. Every styled part must be a SIBLING of the input — Tailwind's
   peer-checked: compiles to `.peer:checked ~ &`, so a mark nested inside the box
   never lights up. That is why these components used to draw two checkmarks: the
   inner one silently did nothing and an absolutely-positioned copy was laid over
   it to compensate.
   =========================================== */

/* A native <input type="checkbox|radio"> that is deliberately NOT wrapped in
   CustomCheckbox/CustomRadioGroup - inside a table cell, say. accent-color is the
   only thing that repaints a native control; text/bg/border classes do nothing to
   one, which is why the old markup here looked untouched. */
.accent-tint { accent-color: var(--tint); }

.choice {
    display: inline-flex;
    cursor: pointer;
    align-items: flex-start;
    gap: 0.5rem;
}
.choice-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.choice-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* `peer` has to sit literally on the element - Tailwind needs to see it in the
   markup to generate the peer-* variants, so it cannot be @apply'd. */
.choice-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.choice-text {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.choice-text:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].choice-text {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].choice-text:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.choice-hint {
    display: block;
    font-weight: 400;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.choice-hint:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.checkbox-face {
    display: flex;
    height: 1.25rem;
    width: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xs);
    border-width: 2px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.checkbox-face:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.checkbox-face {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.checkbox-face:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}

.peer:checked ~ .checkbox-face {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}

.peer:focus-visible ~ .checkbox-face {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.3);
}
.checkbox-mark {
    pointer-events: none;
    position: absolute;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.peer:checked ~ .checkbox-mark {
    opacity: 1;
}

.radio-face {
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 9999px;
    border-width: 2px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.radio-face:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.radio-face {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.radio-face:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}

.peer:checked ~ .radio-face {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
}

.peer:focus-visible ~ .radio-face {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.3);
}
.radio-dot {
    pointer-events: none;
    position: absolute;
    height: 0.625rem;
    width: 0.625rem;
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.peer:checked ~ .radio-dot {
    opacity: 1;
}

/* iOS-style pill: a stadium knob inset 4px in the track. */
/* block, not the span default: an inline box ignores a width and a height, which
   left the whole switch 0x0 and invisible. */
.toggle-track {
    display: block;
    height: 1.5rem;
    width: 2.5rem;
    border-radius: 9999px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.toggle-track:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.peer:checked ~ .toggle-track {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}
.peer:focus-visible ~ .toggle-track {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.4);
}
.toggle-knob {
    position: absolute;
    left: 0.25rem;
    top: 0.25rem;
    height: 1rem;
    width: 1.25rem;
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}
.peer:checked ~ .toggle-knob {
    --tw-translate-x: 0.75rem;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.toggle-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.toggle-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].toggle-label {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].toggle-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.job-row .toggle-label {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

/* ===========================================
   DESIGN SYSTEM - The remaining roles
   Named for what they mean, so a call site never has to spell out a border
   colour, a hover reveal or a heading size again.
   =========================================== */

.bordered {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.bordered:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* An affordance that only appears while the pointer is over its row or card.
   Put `group` on the container. */
.reveal-on-hover {
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.group:hover .reveal-on-hover {
    opacity: 1;
}

.text-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.015em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.text-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}   /* the headline of a view */
.text-subtitle {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-subtitle:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}   /* a heading inside one */
.text-note {
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-note:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .text-note {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}                   /* a sentence of explanation */
.text-emphasis {
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-emphasis:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}           /* the word that matters */
.text-numeric {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}                         /* a value in a column */

/* Text sitting on the brand tint. */
.on-tint {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Loading placeholders
   =========================================== */

.bg-skeleton   { background-color: rgb(var(--skeleton)); }
@keyframes pulse {
    50% {
        opacity: .5;
    }
}
.skeleton {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: var(--r-xs); background-color: rgb(var(--skeleton));
}
@keyframes pulse {
    50% {
        opacity: .5;
    }
}
.skeleton-top {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-top-left-radius: var(--r-xs);
    border-top-right-radius: var(--r-xs); background-color: rgb(var(--skeleton));
}
@keyframes pulse {
    50% {
        opacity: .5;
    }
}
.skeleton-pill {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    border-radius: 9999px; background-color: rgb(var(--skeleton));
}

/* ===========================================
   DESIGN SYSTEM - The rest of the vocabulary
   Added because a call site needed them and had to spell out utilities instead.
   =========================================== */

/* Vertical dividers, symmetric with .divider / .divider-t. Used on every
   split-pane edge and on bordered grid cells. */
.divider-r {
    border-right-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.divider-r:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.divider-l {
    border-left-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.divider-l:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.divider-b {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.divider-b:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* Named steps of the type scale, for the cases the role classes do not cover:
   a small value that is not muted, a line of secondary body copy. */
.text-small {
    font-size: 0.75rem;
    line-height: 1rem;
}
.job-row .text-small {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.text-body-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.job-row .text-body-sm {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
/* Monospace without committing to a size — .text-code bundles text-xs. */
.text-mono {
    font-family: var(--font-mono);
}


/* The plain column head: no uppercase, no tracking. A different object from
   .table-header-cell, not a variant of it. */

.bordered-input {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.bordered-input:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}
.hover-dim {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-dim:hover {
    opacity: 0.8;
}

/* The lighter error and success shades, the ones .form-error already uses. */
.color-error-soft {
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.color-success-soft {
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}

/* Completes the status-dot set: unknown, offline, not started. */
.status-dot-neutral {
    --tw-bg-opacity: 1;
    background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
    height: 0.75rem;
    width: 0.75rem;
    border-radius: 9999px;
}
.status-dot-neutral:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}
/* The pulse ring behind a live indicator. */
.status-ping {
    position: absolute;
    display: inline-flex;
    height: 100%;
    width: 100%;
}
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}
.status-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(var(--ok) / var(--tw-bg-opacity, 1));
    opacity: 0.75;
}

/* A colour sample, and the fill inside .progress-track. */
.swatch {
    border-radius: var(--r-xs);
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* The dashed target of a file drop area. */
.dropzone {
    border-radius: var(--r-md);
    border-width: 2px;
    border-style: dashed;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.dropzone:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

/* The tinted round medallion above a status heading or at the top of a confirm
   dialog. Pair with icon-bg-success / -warning / -error / -primary. */
.icon-circle {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}
.icon-circle-sm {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

/* A weight without a colour: the colour is inherited or set by the caller's
   own state class. The text-strong* roles all pin a colour. */
.text-medium {
    font-weight: 500;
}

/* The largest heading on a page of its own (a delivery, an invitation). */
.text-page-title {
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: -0.02em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-page-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
/* A heading over a block, louder than .text-label. */
.section-label {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.section-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.job-row .section-label {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

/* Disabled is a state of the element, not a class the caller remembers to add. */
.btn:disabled,
.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled,
.btn-success:disabled, .btn-warning:disabled, .btn-ghost:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* Pill-shaped actions on a quiet bar — the dashboard's own edit controls.
   .pill-btn is square and borderless; a different object. */
/* A badge that is also a button: click to flip. Both states carry their own hover
   and dark variant, which is exactly what a call site cannot express. */
.badge-toggle-on {
    background-color: rgb(var(--ok) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}
.badge-toggle-on:hover {
    background-color: rgb(var(--ok) / 0.2);
}
.badge-toggle-on:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--ok) / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.badge-toggle-on:hover:is(.dark *) {
    background-color: rgb(var(--ok) / 0.9);
}
.badge-toggle-off {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.badge-toggle-off:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.badge-toggle-off:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.badge-toggle-off:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}

.pill-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border-width: 1px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.pill-btn-outline:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.pill-btn-outline {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.pill-btn-outline:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.dt-file-dropdown [role="option"].pill-btn-outline {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.dt-file-dropdown [role="option"].pill-btn-outline:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.job-row .pill-btn-outline {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.pill-btn-outline:hover {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.pill-btn-tint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.job-row .pill-btn-tint {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.pill-btn-tint:hover {
    opacity: 0.9;
}

/* Square ghost icon buttons, for a dense row where a 32px circle is too loud. */
.icon-btn-sq {
    border-radius: var(--r-xs);
    padding: 0.25rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.icon-btn-sq-danger {
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
    border-radius: var(--r-xs);
    padding: 0.25rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.icon-btn-sq-danger:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
.icon-btn-sq-danger:hover {
    background-color: rgb(var(--bad) / 0.1);
}

/* status-dot is fixed at 12px; these are the two neighbours it needed. */
.status-dot-sm {
    display: inline-block;
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 9999px;
}
.status-dot-lg {
    display: inline-block;
    height: 0.875rem;
    width: 0.875rem;
    border-radius: 9999px;
}

/* A small confirmation that floats beside what it confirms. */
/* Not a tooltip: the short-lived confirmation that appears under the button you
   just pressed ("link copied") and goes away by itself. It is state-driven, not
   hover-driven — the hover tooltip is .cas-tip and there is only one. */
.flash-note {
    white-space: nowrap;
    border-radius: var(--r-xs);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.flash-note:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.flash-note {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.flash-note:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.job-row .flash-note {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

/* A card with a coloured edge rather than a coloured fill: used when the message
   must stay readable over a page, not stand out as a block. */
/* A system-level notice across the top of the app frame — the agent is offline, an
   impersonation is running. Full width with a rule under it, so it reads as part of
   the frame and not as a card floating in white space above the page header. */
.banner-strip {
    display: flex;
    flex: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    border-bottom-width: 1px;
    border-color: rgb(var(--bad) / 0.3);
    background-color: rgb(var(--bad) / 0.1);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}
.banner-strip:is(.dark *) {
    border-color: rgb(var(--bad) / 0.4);
    background-color: rgb(var(--bad) / 0.2);
}
@media not all and (min-width: 768px) {
    .banner-strip {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ── Phone shell (below md) ──────────────────────────────────────────────
   The sidebar leaves the flow and becomes a drawer over the page; a bar at the top
   of <main> opens it (BaseMainLayout). From md up none of this applies. */
@media not all and (min-width: 768px) {
    .drawer {
        position: fixed;
        top: 0px;
        bottom: 0px;
        left: 0px;
        z-index: 40;
        width: 16rem !important;
        --tw-translate-x: -100%;
        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    }
}
/* The shadow only when open: a closed drawer's shadow would fall into view along the left edge. */
@media not all and (min-width: 768px) {
    .drawer-open {
        --tw-translate-x: 0px;
        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
        --tw-shadow: var(--e-3);
        --tw-shadow-colored: var(--e-3);
        box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    }
}
/* The ground the pages sit on: grey on a large screen, where the panels are cards on it. On a phone
   it is white, top to bottom — Safari colours its own bars from it, and a grey margin around a panel
   is only lost width there. */
.app-canvas {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.app-canvas:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
@media not all and (min-width: 768px) {
    .app-canvas {
        --tw-bg-opacity: 1;
        background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    }
    .app-canvas:is(.dark *) {
        --tw-bg-opacity: 1;
        background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
    }
}
@media (max-width: 767px) {
    html, body { background-color: var(--surface); }
}
/* The factory library rail: a rule on its right beside the profile; on a phone it sits above, rule below. */
.library-rail {
    border-right-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.library-rail:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
@media not all and (min-width: 768px) {
    .library-rail {
        border-right-width: 0px;
        border-bottom-width: 1px;
    }
}
/* Light rather than dark behind the open drawer: Safari tints its own bars from what lies under
   them, and a dark wash turned them grey. */
.drawer-backdrop {
    position: fixed;
    inset: 0px;
    z-index: 30;
    background-color: rgb(255 255 255 / 0.7);
}
.drawer-backdrop:is(.dark *) {
    background-color: rgb(17 24 39 / 0.6);
}
.drawer-backdrop { backdrop-filter: blur(2px); }
.mobile-topbar {
    display: flex;
    height: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.mobile-topbar:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.mobile-topbar {
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.mobile-topbar:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.banner-error-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.job-row .banner-error-title {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

/* A new version is live and this tab still runs the old one: the whole screen is covered until the
   reader reloads. A card with a tint header carrying the white wordmark, the big "c" of the mark as a
   watermark in its corner. */
.update-overlay {
    position: fixed;
    inset: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2147483646; /* above every modal; the toasts may stay on top */
    background: rgb(15 23 42 / .55);
    backdrop-filter: blur(3px) saturate(.8);
    animation: update-overlay-fade .25s ease-out both;
}
.update-overlay-card {
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.update-overlay-card:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.update-overlay-card {
    border-radius: var(--r-lg);
    box-shadow: var(--e-3);
    animation: update-overlay-in .35s cubic-bezier(.2, .8, .2, 1) .05s both;
}
.update-overlay-head {
    position: relative;
    overflow: hidden;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
    padding-bottom: 1.75rem;
    background: linear-gradient(135deg, var(--tint), var(--tint-hover));
}
.update-overlay-head .logo {
    position: relative;
    height: 2.1rem;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.update-overlay-mark {
    position: absolute;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    right: -1.5rem; top: -1.25rem; height: 9rem; aspect-ratio: 117 / 120; opacity: .12;
    -webkit-mask: url('/_content/CAS.Blazor.Core/images/cas-logo-mark.svg') no-repeat center / contain;
    mask: url('/_content/CAS.Blazor.Core/images/cas-logo-mark.svg') no-repeat center / contain;
}
.update-overlay-body {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.75rem;
}
.update-overlay-title {
    margin-bottom: 0.375rem;
    font-size: 1.125rem;
    line-height: 1.75rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.update-overlay-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.update-overlay-text {
    font-size: 0.875rem;
    line-height: 1.25rem;
    line-height: 1.625;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.job-row .update-overlay-text {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.update-overlay-text:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.update-overlay-text b {
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.update-overlay-text b:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.update-overlay-footer {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.update-overlay-versions {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.job-row .update-overlay-versions {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.update-overlay-versions:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.update-overlay-versions span {
    font-weight: 600; color: var(--tint);
}
.dark .update-overlay-versions span { color: var(--tint-on-dark); }
@keyframes update-overlay-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes update-overlay-in {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

/* The "everything below here is new" rule in a conversation. */
.msg-separator {
    height: 1px;
    background-color: rgb(var(--warn) / 0.5);
}
.msg-separator-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}

/* A block of machine output: a stack trace, a payload, a command. */
.code-block {
    overflow: auto;
    border-radius: var(--r-xs);
    padding: 0.75rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.code-block:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.code-block {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.code-block:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.dt-file-dropdown [role="option"].code-block {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].code-block:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.code-block {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
}
.job-row .code-block {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.hover-danger {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover-danger:hover {
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}

/* ===========================================
   DESIGN SYSTEM - Completing the vocabulary
   The last roles the migration needed. Every one of these replaced a raw
   utility that a component was spelling out by hand.
   =========================================== */

/* Weights and slants without a colour, mirroring .text-medium. */
.text-semibold {
    font-weight: 600;
}
.text-bold {
    font-weight: 700;
}
.text-italic {
    font-style: italic;
}

/* Below text-xs. Named steps, not arbitrary values scattered through markup. */
/* 11px is the floor for anything anyone reads: a count, a unit, a suffix. */
.text-xxs {
    font-size: 11px;
}
/* 10px is a glyph size, not a reading size — chevrons and inline icons only. */
.text-xxxs {
    font-size: 10px;
}

.leading-flat {
    line-height: 1;
}
.leading-close {
    line-height: 1.25;
}

/* Transitions as named roles, so a call site never writes a bare transition-*. */
.animate-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.animate-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.animate-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.animate-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ── Syntax highlighting ──────────────────────────────────────────────────
   These complete the --syntax-* variables that tokens.css has always defined
   but that only the JSON viewer ever used. They matter more than they look:
   several of these class names are built inside C# string literals for a regex
   replace, where Tailwind cannot see them at all — so a raw utility there stops
   working the moment .razor leaves the content globs, silently. */
.syntax-key   { color: var(--syntax-key); }
.syntax-path  { color: var(--syntax-link); }
.syntax-line  { color: var(--syntax-number); }
.syntax-text  { color: var(--syntax-text); }
.syntax-quote { color: var(--syntax-quote); }

/* ── The remaining one-offs ───────────────────────────────────────────────── */

/* The base each variant already assumed existed. */
.alert {
    border-radius: var(--r-md);
    border-width: 1px;
    padding: 0.75rem;
}
/* The one line that says what the alert is about, above the explanation. */
.alert-title {
    margin-bottom: 0.125rem;
    font-weight: 600;
}
.toast {
    border-radius: var(--r-md);
    border-width: 1px;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    background: linear-gradient(var(--toast-wash), var(--toast-wash)), var(--surface);
}

/* A customer or factory without an uploaded mark: their initials, in the tint. */
.logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background-color: rgb(var(--cas-tint) / 0.1);
    font-weight: 600;
    text-transform: uppercase;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}

/* The whole-window overlay while a file is dragged over the app. */
.dropzone-tint {
    border-radius: var(--r-lg);
    border-width: 4px;
    border-style: dashed;
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
    --tw-shadow: var(--e-3);
    --tw-shadow-colored: var(--e-3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

/* A filter trigger lives inside a <th>, so it has to undo the column head's
   uppercase, tracking and weight. */
.filter-trigger-reset {
    text-align: left;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0em;
}

.hover-text-tertiary {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover-text-tertiary:hover {
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.hover-text-tertiary:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.hover-text-heading {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-text-heading:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.hover-text-heading:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.hover-text-body {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-text-body:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.hover-text-body:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.status-ring-warning {
    border-radius: 9999px;
    border-width: 2px;
    --tw-border-opacity: 1;
    border-color: rgb(var(--warn) / var(--tw-border-opacity, 1));
}

/* Text on a dark ground that is not the brand tint. */
.text-inverse {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* The world map's markers. */
.map-pin {
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}
.map-pin-halo {
    border-radius: 9999px;
    background-color: rgb(var(--cas-tint) / 0.25);
}

.flag-image {
    border-radius: var(--r-xs);
}
.dropdown-item:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===========================================
   DESIGN SYSTEM - The last of it
   =========================================== */

.bg-tint {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}
.bg-tint-wash {
    background-color: rgb(var(--cas-tint) / 0.05);
}
.bg-tint-soft {
    background-color: rgb(var(--cas-tint) / 0.1);
}

/* ── The tint as a role, so no call site has to spell out cas-tint ──────────
   Everything below exists because the raw form needs a Tailwind variant
   (focus:, hover:) or an opacity modifier, and a class from this file cannot
   take either. See the trap at the top of the file. */

/* Border colour only: the element already has a border from .dropzone,
   .bordered or a border-b-2. */
.border-tint        { border-color: var(--tint); }
.border-l-tint      { border-left-color: var(--tint); }
/* The !important form, for a dropdown that must beat .bordered-input. */
.border-tint-strong { border-color: var(--tint) !important; }
.hover-border-tint {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-border-tint:hover {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
}
.hover-bg-tint-wash {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-bg-tint-wash:hover {
    background-color: rgb(var(--cas-tint) / 0.05);
}
.hover-text-tint {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-text-tint:hover {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}

/* Border plus colour in one, for an element that has neither yet. */
.bordered-tint-strong {
    border-width: 1px; border-color: var(--tint-hover);
}

/* Selection and focus rings in the tint. --tint-hover is deliberate over
   cas-tint-dark: it lightens in dark mode instead of going near-black. */
.ring-tint {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}
.ring-tint-soft {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.2);
}
.focus-ring-tint:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}
.focus-ring-tint-sm:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}
.focus-border-tint:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
}

/* The tint as an interactive colour: a link or an affordance that darkens on
   hover in light mode and lightens in dark mode. */
.link-tint       { color: var(--tint); transition: color .15s ease; }
.link-tint:hover { color: var(--tint-hover); }

/* Secondary text on a tinted fill — a timestamp under a message, say. */
.on-tint-soft {
    color: rgb(255 255 255 / 0.7);
}

/* A marker that has to stay visible on any map tile. */
.pin-ring {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(255 255 255 / 0.7);
}

/* A hit inside a searched string. */
.search-highlight {
    border-radius: var(--r-xs);
    background-color: rgb(var(--warn) / 0.2);
    padding-left: 0.125rem;
    padding-right: 0.125rem;
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}

/* Alternating row tint, light enough to survive both themes. */
.row-stripe {
    background-color: rgb(0 0 0 / 0.02);
}
.row-stripe:is(.dark *) {
    background-color: rgb(255 255 255 / 0.03);
}

.icon-btn-sq:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* Microsoft's own blue, in the one place we show their mark. */
.brand-microsoft { color: #00a4ef; }

/* Unread is a full-strength amber; .bg-warning is the same hue at 70%. */
.status-dot-unread {
    height: 0.625rem;
    width: 0.625rem;
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(var(--warn) / var(--tw-bg-opacity, 1));
}

/* A message in a conversation. Completes msg-separator / msg-separator-label. */
.msg-bubble {
    border-radius: var(--r-md);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.msg-bubble-in {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.msg-bubble-in:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.msg-bubble-in {
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.msg-bubble-in:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.msg-bubble-in {
    border-radius: var(--r-md);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.msg-bubble-out {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    border-radius: var(--r-md);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* A full-width option in a list of choices — the split/classify pickers. */
.btn-choice {
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--r-md);
    border-width: 1px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    text-align: left;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.btn-choice:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.btn-choice {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.btn-choice:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.btn-choice:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.btn-choice:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* A short aside inside a form or a card. */
.note-box {
    border-radius: var(--r-sm);
    padding: 0.75rem;
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.note-box:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

/* Regex tester: one sample per row - status, the value with the matched part marked, what CAS
   stores, and the verdict of the validation. */
.regex-sample {
    display: grid;
    align-items: center;
    -moz-column-gap: 0.75rem;
         column-gap: 0.75rem;
    row-gap: 0.25rem;
    border-radius: var(--r-sm);
    border-width: 1px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.regex-sample:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.regex-sample {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.regex-sample:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.regex-sample {
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
}
.regex-sample-fail {
    border-color: rgb(var(--bad) / 0.3);
    background-color: rgb(var(--bad) / 0.1);
}
.regex-sample-fail:is(.dark *) {
    border-color: rgb(var(--bad) / 0.4);
    background-color: rgb(var(--bad) / 0.15);
}
.regex-sample-value {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.regex-sample-value:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.job-row .regex-sample-value {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.regex-sample-value  { white-space: pre-wrap; word-break: break-all; }
.regex-sample-stored {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.regex-sample-stored:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.job-row .regex-sample-stored {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.regex-sample-stored { white-space: pre-wrap; word-break: break-all; }
.regex-hit {
    border-radius: var(--r-xs);
    background-color: rgb(var(--cas-tint) / 0.15);
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-color: rgb(var(--cas-tint) / 0.25);
}
.regex-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: var(--r-xs);
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-family: var(--font-mono);
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.regex-group:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.regex-group {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.regex-group:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.dt-file-dropdown [role="option"].regex-group {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].regex-group:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.regex-group {
    font-size: 11px;
}
.regex-group-key {
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}

/* The floating control bar over an editable dashboard panel, and the panel
   itself while it is being dragged. */

/* A transparent file input laid over its own drop area. */
.input-overlay {
    position: absolute;
    inset: 0px;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

/* Two fixed dim levels, so opacity stops being a number typed at a call site. */
.dim-70 {
    opacity: 0.7;
}
.dim-30 {
    opacity: 0.3;
}

/* The two type steps that were still spelled out. */
.text-hero {
    font-size: 2.25rem;
    line-height: 2.5rem;
    letter-spacing: -0.03em;
}
.text-body-base {
    font-size: 1rem;
    line-height: 1.5rem;
}
.text-13 {
    font-size: 13px;
}

/* The type ladder, finished. .text-small / .text-body-sm were the bottom two;
   these are the rest, so a size never has to be spelled out again. */
.text-large {
    font-size: 1.125rem;
    line-height: 1.75rem;
    letter-spacing: -0.01em;
}
.text-xlarge {
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.015em;
}
.text-2xlarge {
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: -0.02em;
}
.text-3xlarge {
    font-size: 1.875rem;
    line-height: 2.25rem;
    letter-spacing: -0.025em;
}

/* StatisticsCard's three value sizes. */

/* A tint wash lighter than bg-primary-light (which is 20/30%). */
.bg-primary-soft {
    background-color: rgb(var(--cas-tint) / 0.1);
}
/* The fill behind a cell the extraction is not sure about. */
.bg-uncertain {
    background-color: rgb(var(--bad) / 0.1);
}
.bg-uncertain:is(.dark *) {
    background-color: rgb(var(--bad) / 0.15);
}
/* A progress segment that has not been reached; square, unlike progress-track. */
.bg-track {
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-track:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.avatar-alert {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--bad) / var(--tw-bg-opacity, 1));
}
.avatar-neutral {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.avatar-neutral:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

/* The count beside a navigation item. */
.nav-badge {
    display: inline-flex;
    height: 1.25rem;
    min-width: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.nav-badge:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.nav-badge {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.nav-badge:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.dt-file-dropdown [role="option"].nav-badge {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].nav-badge:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.job-row .nav-badge {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
/* Spelled out rather than `@apply nav-badge bg-bad text-white`: @apply expands .nav-badge last,
   so its own bg-surface-hover and text-secondary — dark variants and all — landed after the red and
   the white and won. The alert badge came out grey on grey. */
.nav-badge-alert {
    display: inline-flex;
    height: 1.25rem;
    min-width: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    --tw-bg-opacity: 1;
    background-color: rgb(var(--bad) / var(--tw-bg-opacity, 1));
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.job-row .nav-badge-alert {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.dim-40 {
    opacity: 0.4;
}
.dim-50 {
    opacity: 0.5;
}
.dim-60 {
    opacity: 0.6;
}
.dim-90 {
    opacity: 0.9;
}
/* Visible but out of reach — a panel behind an open editor, a disabled region. */
/* A disabled state on something that is not a .btn. */
.disabled-dim:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.disabled-dim-40:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
/* Shown and faded as states, for the ternaries that toggle an affordance. */
.is-shown {
    opacity: 1;
}
.is-faded {
    opacity: 0;
}

/* A touch screen has no hover: what appears under the pointer (a row's delete button, an edit toggle)
   is simply shown there, or it could never be reached. */
@media (hover: none) {
    .reveal-on-hover, .is-faded { opacity: 1; }
}

/* iOS zooms the whole page in when a field under 16px gets focus, and leaves it zoomed. On a touch
   screen every field is 16px; the compact 12–14px sizes stay for mouse and keyboard. */
@media (pointer: coarse) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
}

.focus-text-tertiary:focus {
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.focus-text-tertiary:focus:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
/* A hover that works on any ground, including a tinted one. */
.hover-overlay {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-overlay:hover {
    background-color: rgb(0 0 0 / 0.1);
}
.hover-overlay:hover:is(.dark *) {
    background-color: rgb(255 255 255 / 0.1);
}

.uppercased {
    text-transform: uppercase;
}
.uppercase-tracked {
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* The tint wash under a file being dragged over its target. */
.dropzone-overlay {
    background-color: rgb(var(--cas-tint) / 0.1);
}
.dropzone-overlay:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}
/* logo-fallback without the uppercase, for the wide variant that prints a name. */

/* An input that carries no box of its own - inside a dropdown, inside a cell. */
.input-plain {
    width: 100%;
    border-width: 0px;
    background-color: transparent;
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.input-plain:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.input-plain::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.input-plain::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.input-plain:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.input-plain:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

/* A small immutable label on a value: a format, a unit, a kind. */
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: var(--r-xs);
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.tag:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.tag {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.tag:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.dt-file-dropdown [role="option"].tag {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].tag:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.tag {
    font-size: 11px;
}

/* A loading veil over the thing it is loading. */
.overlay-inset {
    position: absolute;
    inset: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(255 255 255 / 0.7);
}
.overlay-inset:is(.dark *) {
    background-color: rgb(31 41 55 / 0.7);
}
/* A near-opaque veil over a drop target. */
.surface-veil {
    background-color: rgb(255 255 255 / 0.9);
}
.surface-veil:is(.dark *) {
    background-color: rgb(31 41 55 / 0.9);
}
/* (#897) A mail shown as its recipient sees it: white on both themes, its own HTML decides the rest. */
/* ── Mail detail panel (#897) ────────────────────────────────────────────
   A reading pane: a status strip that says what happened, the envelope as a
   row of facts, and the message itself taking the rest of the height. The
   frame is sandboxed, so the mail brings its own styles; it stays light in
   dark mode on purpose, the way a mail client's reading pane does. */
.mail-detail {
    display: flex;
    height: 100%;
    min-height: 0px;
    flex-direction: column;
}
.mail-status {
    display: flex;
    flex-shrink: 0;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom-width: 1px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}
.mail-status-sent {
    border-color: rgb(var(--ok) / 0.3);
    background-color: rgb(var(--ok) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}
.mail-status-sent:is(.dark *) {
    border-color: rgb(var(--ok) / 0.4);
    background-color: rgb(var(--ok) / 0.2);
}
.mail-status-failed {
    border-color: rgb(var(--bad) / 0.3);
    background-color: rgb(var(--bad) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.mail-status-failed:is(.dark *) {
    border-color: rgb(var(--bad) / 0.4);
    background-color: rgb(var(--bad) / 0.2);
}
.mail-status-pending {
    border-color: rgb(var(--warn) / 0.3);
    background-color: rgb(var(--warn) / 0.1);
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}
.mail-status-pending:is(.dark *) {
    border-color: rgb(var(--warn) / 0.4);
    background-color: rgb(var(--warn) / 0.2);
}
.mail-status-skipped {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.mail-status-skipped:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.mail-status-skipped {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.mail-status-skipped:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.mail-status-skipped {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.mail-status-skipped:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.mail-status > i {
    margin-top: 3px;
}
.mail-status-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
}
.job-row .mail-status-title {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.mail-status-text {
    overflow-wrap: break-word;
    font-size: 0.875rem;
    line-height: 1.25rem;
    opacity: 0.9;
}
.job-row .mail-status-text {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.mail-facts {
    display: grid;
    flex-shrink: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    -moz-column-gap: 1.5rem;
         column-gap: 1.5rem;
    row-gap: 1rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.mail-facts:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
@media (min-width: 768px) {
    .mail-facts {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.mail-facts dt {
    margin-bottom: 0.125rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.mail-facts dt:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .mail-facts dt {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.mail-facts dd {
    min-width: 0px;
    overflow-wrap: break-word;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.mail-facts dd:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.job-row .mail-facts dd {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.mail-error {
    flex-shrink: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.mail-error:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.mail-error-trace {
    margin-top: 0.5rem;
    max-height: 15rem;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.mail-error-trace:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.mail-error-trace {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
}
.job-row .mail-error-trace {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.mail-body-empty {
    margin: 0px;
    display: flex;
    flex: 1 1 0%;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    text-align: center;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.mail-body-empty:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.mail-body-empty {
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.mail-body-empty:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .mail-body-empty {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.mail-preview {
    min-height: 28rem;
    width: 100%;
    flex: 1 1 0%;
    border-width: 0px;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.mail-plain {
    margin: 0px;
    min-height: 0px;
    flex: 1 1 0%;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    padding: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.mail-plain:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.mail-plain {
    font-size: 0.75rem;
    line-height: 1rem;
}
.job-row .mail-plain {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
/* The panel a TruncatedText reveals. */
/* ── The one tooltip ───────────────────────────────────────────────────────
   Driven by wwwroot/js/tooltip.js: anything with data-tip gets this, and the
   browser's own title tooltip is not used anywhere. Dark on both themes — a
   tooltip is a label floating over the page, not another surface of it, and a
   light one over a light panel needs a border to be seen at all. */
.cas-tip {
    position: fixed;
    z-index: 100;
    max-width: 20rem;
    border-radius: var(--r-sm);
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    line-height: 1.375;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    --tw-shadow: var(--e-3);
    --tw-shadow-colored: var(--e-3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.job-row .cas-tip {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.cas-tip:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.cas-tip {
    margin: 0;
    border: 0;
    pointer-events: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* dropdown-menu with no radius, for a menu flush against a cell edge. */


.pagination-page {
    border-radius: var(--r-xs);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}


.pagination-page:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}


.pagination-page {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}


.pagination-page:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}


.pagination-page:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}


.dt-file-dropdown [role="option"].pagination-page {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}


.dt-file-dropdown [role="option"].pagination-page:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}


.pagination-page {
    font-size: 0.875rem;
    line-height: 1.25rem;
}


.job-row .pagination-page {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
/* Spelled out, not `@apply pagination-page …` — see .nav-badge-alert for why the inherited
   text-secondary would win over the white. */
.pagination-current {
    border-radius: var(--r-xs);
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.job-row .pagination-current {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.pagination-page:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

/* An alert that spans a whole column: square, edge to edge. */

.animate-grid-rows {
    transition-property: grid-template-rows;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* ── Not styling: hooks ──────────────────────────────────────────────────────
   .dropdown-toggle and .dropdown-popover carry no declarations on purpose.
   wwwroot/js/dropdown.js uses them with closest() to decide whether a click
   landed inside an open dropdown. They look like dead class names in a grep and
   they are not — deleting them breaks click-outside on every filter dropdown. */
.dropdown-toggle,
.dropdown-popover { /* JS hook, see wwwroot/js/dropdown.js */ }

/* ===========================================
   DESIGN SYSTEM - Radius, by role
   Tailwind's rounded-* happen to carry the right values, but they name a size,
   not a role, and they are invisible to review. These say which of the four
   steps in tokens.css is meant.
   =========================================== */

.radius-xs {
    border-radius: var(--r-xs);
}        /* 4px  — checkbox, tag, swatch */
.radius-sm {
    border-radius: var(--r-sm);
}     /* 6px  — button, input, menu item */
.radius-md {
    border-radius: var(--r-md);
}     /* 8px  — panel, card, popover */
.radius-lg {
    border-radius: var(--r-lg);
}     /* 12px — modal, slide-over */
.radius-full {
    border-radius: 9999px;
}
/* Squares off a component that carries its own radius: a panel flush in a
   corner, a menu against a cell edge. */
.radius-none {
    border-radius: 0px;
}

/* ── The rest of the Admin round ─────────────────────────────────────────── */

.borderless {
    border-width: 0px;
}
/* The !important form, for a cell that must beat the table's own border rule. */
.\!borderless { border-width: 0 !important; }

/* The seven log levels need seven distinguishable fills: bg-error / bg-warning
   would collapse Critical into Error. */
.bg-level-critical {
    --tw-bg-opacity: 1;
    background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-level-error {
    --tw-bg-opacity: 1;
    background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.bg-level-warning {
    --tw-bg-opacity: 1;
    background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}
.bg-level-info {
    --tw-bg-opacity: 1;
    background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.bg-level-debug {
    --tw-bg-opacity: 1;
    background-color: rgb(139 92 246 / var(--tw-bg-opacity, 1));
}
.bg-level-trace {
    --tw-bg-opacity: 1;
    background-color: rgb(148 163 184 / var(--tw-bg-opacity, 1));
}
.bg-level-none {
    --tw-bg-opacity: 1;
    background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}

/* The same seven levels as text, where a fill would be too loud. Only the two that
   have no colour role of their own are spelled out here; the rest are color-error,
   color-warning, color-info, text-muted. */
.color-level-debug {
    --tw-text-opacity: 1;
    color: rgb(124 58 237 / var(--tw-text-opacity, 1));
}
.color-level-debug:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(167 139 250 / var(--tw-text-opacity, 1));
}

.hover-danger-soft {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.hover-danger-soft:hover {
    background-color: rgb(var(--bad) / 0.1);
}

.hover-danger-soft:hover:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}
.hover-inverse {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-inverse:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.hover-inverse:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.hover-tint-soft {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.hover-tint-soft:hover {
    background-color: rgb(var(--cas-tint) / 0.2);
}

/* A dark box on a light page: a code sample, a tooltip, a legend. */
.bg-inverse {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-inverse:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-neutral {
    --tw-bg-opacity: 1;
    background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}

.color-caution {
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}
/* The dark-mode lamp in the sidebar foot turns amber once dark mode is on. Spelled as a rule of its own:
   `dark:color-caution` on a class from this file compiles to nothing. */
.dark .icon-dark-caution { color: rgb(var(--warn)); }
.icon-bg-info {
    background-color: rgb(var(--cas-tint) / 0.1);
}
.icon-bg-info:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}

/* Weaker than e-1: a panel that should barely lift. */
.shadow-flat {
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
/* A round action floating over content. */
.shadow-float {
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.icon-btn:disabled,
.icon-btn-sm:disabled,
.icon-btn-xs:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.tracked {
    letter-spacing: 0.025em;
}

/* Only the fade half of reveal-on-hover, for markup that must keep a NAMED
   group (group-hover/row:, group-hover/batch:) — Tailwind needs those literally. */
.reveal-base {
    opacity: 0;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ── Support images (#1330) ───────────────────────────────────────────────── */
/* The message box an image can be pasted or dropped on; tinted while a file hovers over it. */
.attach-area {
    position: relative;
    border-radius: var(--r-sm);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.attach-area.attach-dragging {
    outline-style: dashed;
    outline-width: 2px;
    outline-offset: 2px;
    background-color: rgb(var(--cas-tint) / 0.1);
}
.attach-area.attach-dragging:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}
.attach-area.attach-dragging { outline-color: var(--tint); }
/* A waiting image in the composer, with its remove button in the corner. */
.attach-thumb {
    position: relative;
    height: 4rem;
    width: 4rem;
    flex-shrink: 0;
}
.attach-thumb-open {
    display: block;
    height: 100%;
    width: 100%;
    overflow: hidden;
    border-radius: var(--r-sm);
    border-width: 1px;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.attach-thumb-open:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.attach-thumb-open {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.attach-thumb-open:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.attach-thumb-open:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}
.attach-thumb-open:hover {
    opacity: 0.9;
}
.attach-thumb-open img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}
.attach-thumb-remove {
    position: absolute;
    top: -0.375rem;
    right: -0.375rem;
    display: flex;
    height: 1.25rem;
    width: 1.25rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: rgb(17 24 39 / 0.8);
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.attach-thumb-remove:hover {
    background-color: rgb(var(--bad) / 0.9);
}
/* The mark-up canvas: holds the image at full size, scaled down to fit the modal. */
.attach-editor-canvas {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-height: 65vh;
    max-width: 100%;
    cursor: crosshair;
    touch-action: none;
    border-radius: var(--r-sm);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.attach-editor-canvas:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
/* A sent image inside a message bubble. */
.attach-bubble-thumb {
    display: block;
    overflow: hidden;
    border-radius: var(--r-sm);
    border-width: 1px;
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.attach-bubble-thumb:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.attach-bubble-thumb {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.attach-bubble-thumb:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.attach-bubble-thumb:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}
.attach-bubble-thumb:hover {
    opacity: 0.9;
}
/* A fixed height, so a thread that scrolled to its newest message stays there while the image loads. */
.attach-bubble-thumb img {
    display: block;
    height: 10rem;
    width: auto;
    max-width: 16rem;
    -o-object-fit: contain;
       object-fit: contain;
}
.attach-lightbox-image {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-height: 75vh;
    max-width: 100%;
    border-radius: var(--r-sm);
    -o-object-fit: contain;
       object-fit: contain;
}
/* The modal a screenshot is taken from steps aside for the one frame that is captured. */
.capture-hidden { visibility: hidden; }

/* --- Verzoeken (#1238): a certificate request from the customer's ERP held up against the certificates it matched. --- */
/* A row still waiting for the customer's choice stands out in the list. */
.request-row-choose {
    background-color: rgb(var(--warn) / 0.1);
}
/* The choice panel: the document panel's layout, without its bottom half. */
.request-compare > .cas-panel-top { flex: 1 1 0; }
/* The comparison: the ERP's column first, then one column per certificate. */
.request-erp-col {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.request-erp-col:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.request-col-picked {
    background-color: rgb(var(--cas-tint) / 0.1);
}
.request-col-shown   { box-shadow: inset 0 -2px 0 0 var(--cas-tint); }
/* Fixed columns, so a long certificate number cannot push the other certificates out of view; the full
   value is in the cell's tooltip. */
.request-compare-table { table-layout: fixed; }
.request-compare-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* The field names wrap rather than lose their end: "Purchase order number" has to be readable. */
.request-compare-table tbody th {
    white-space: normal;
}
/* The head itself clips, not the cell: the line of the column handle (#1519) sits on the cell's edge. */
.request-col-head {
    display: flex;
    width: 100%;
    min-width: 0px;
    cursor: pointer;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.125rem;
    overflow: hidden;
    text-align: left;
    text-transform: none;
    letter-spacing: 0em;
}

/* ===========================================
   API guide (client, #1394, #1443) — developer documentation of the customer API: a
   navigation on the left, and two kinds of page that must not look alike. A REST
   endpoint is a reference (neutral rule, square marker, a label beside each part);
   the certificate request path is a guide (tint rule, round marker, numbered steps
   on a line).
   =========================================== */
.guide-card {
    flex-shrink: 0;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.guide-card:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.guide-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(var(--border-color));
    border-radius: inherit;
    pointer-events: none;
    z-index: 20;
}
.guide-card        { scroll-margin-top: 1.5rem; } /* a jump lands level with the navigation, which sticks at the page padding */
.guide-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-shrink: 0;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.guide-intro:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.guide-intro::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(var(--border-color));
    border-radius: inherit;
    pointer-events: none;
    z-index: 20;
}
.guide-intro        { scroll-margin-top: 1.5rem; }
.guide-eyebrow {
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.job-row .guide-eyebrow {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.guide-lead {
    max-width: 48rem;
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.015em;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-lead:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-lead        { line-height: 1.45; }
.guide-text {
    max-width: 48rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.guide-text:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-text {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-text:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.job-row .guide-text {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.guide-text        { line-height: 1.6; }

.guide-flow-actor {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.guide-flow-actor:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.guide-flow-title {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-flow-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-flow-text {
    font-size: 13px;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.guide-flow-text:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-flow-text {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-flow-text:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.guide-flow-text   { line-height: 1.5; }

/* The frame: the navigation stays in view beside the page while the page scrolls. */
.guide-layout {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    align-items: flex-start;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .guide-layout {
        grid-template-columns: 16.5rem minmax(0,1fr);
    }
}
.guide-content {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 1.5rem;
}
.guide-nav {
    display: flex;
    flex-direction: column;
    padding: 0px;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.guide-nav:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.guide-nav::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(var(--border-color));
    border-radius: inherit;
    pointer-events: none;
    z-index: 20;
}
@media (min-width: 1024px) {
    .guide-nav {
        position: sticky;
        top: 0px;
    }
}
.guide-nav-group {
    display: flex;
    flex-direction: column;
    padding-bottom: 0.75rem;
}
/* A document opens with a plain header, and the second one starts under a full-width rule, so the two parts stand apart. */
.guide-nav-doc {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 1rem;
    padding-bottom: 0.5rem;
}
.guide-nav-group + .guide-nav-group {
    border-top-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.guide-nav-group + .guide-nav-group:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.guide-nav-doc-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-nav-doc-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-nav-doc-sub {
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-nav-doc-sub:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .guide-nav-doc-sub {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.guide-nav-doc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
/* A document that folds: its header is the switch, the chevron turns when it is open. */
.guide-nav-toggle {
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    list-style-type: none;
}
.guide-nav-toggle::-webkit-details-marker {
    display: none;
}
.guide-nav-toggle:hover .guide-nav-doc-title {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.guide-nav-chevron {
    font-size: 10px;
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-nav-chevron:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
details.guide-nav-group[open] .guide-nav-chevron {
    --tw-rotate: 90deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
details.guide-nav-group:not([open]) {
    padding-bottom: 0.5rem;
}
.guide-nav-heading {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.25rem;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-nav-heading:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
/* Square rows from edge to edge, like the main navigation; the page you are on carries its sidebar-item-active. */
.guide-nav-link {
    display: flex;
    min-width: 0px;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 13px;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.guide-nav-link:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-nav-link {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-nav-link:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.guide-nav-link:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-nav-link:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-nav-link:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.guide-nav-link:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.guide-nav-link.sidebar-item-active:hover { background: var(--tint-soft); }
.guide-nav-method {
    width: 2.5rem;
    flex-shrink: 0;
    border-radius: var(--r-xs);
    padding-top: 1px;
    padding-bottom: 1px;
    text-align: center;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.025em;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-nav-path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 12px;
}
/* What hangs under an entry: the steps and the registering endpoint under the path, the elements under section C. */
.guide-nav-child {
    padding-left: 2rem;
    font-size: 12.5px;
}
/* The endpoint tree: one step deeper per folder of the path. */
.guide-nav-depth-0 {
    padding-left: 2rem;
}
.guide-nav-depth-1 {
    padding-left: 3rem;
}
.guide-nav-depth-2 {
    padding-left: 4rem;
}
.guide-nav-depth-3 {
    padding-left: 5rem;
}
.guide-nav-folder {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-right: 1rem;
    font-family: var(--font-mono);
    font-size: 12px;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-nav-folder:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.guide-nav-letter {
    display: flex;
    height: 18px;
    width: 18px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-xs);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-nav-letter:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-nav-letter {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.guide-nav-letter:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

/* The certificate guide (EN 10168): a reference, a card per section with its letter. */
.guide-section {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 1rem; scroll-margin-top: 1.5rem;
}
.guide-section-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}
.guide-letter {
    display: flex;
    height: 2.75rem;
    width: 2.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-md);
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
    font-family: var(--font-mono);
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.015em;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-letter:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}
.guide-section-title {
    font-size: 1.125rem;
    line-height: 1.75rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 1.25;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-section-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-range {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-range:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .guide-range {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.guide-code-name {
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-code-name:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-subhead {
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 13px;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-subhead:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-subhead       { scroll-margin-top: 1.5rem; }
.guide-codes th:nth-child(1) {
    width: 6rem;
}
.guide-codes th:nth-child(2) { width: 24%; }
.guide-codes th:nth-child(3) { width: 28%; }
.guide-code-label {
    display: inline-block;
    white-space: nowrap;
    border-radius: var(--r-xs);
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.job-row .guide-code-label {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.guide-code-label    {
                       background: rgb(var(--cas-tint) / 0.1); }
.guide-field-name {
    overflow-wrap: break-word;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-field-name:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.job-row .guide-field-name {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.guide-field-none {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.guide-field-none:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-elements {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .guide-elements {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1280px) {
    .guide-elements {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}
.guide-element {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 0.125rem;
    border-radius: var(--r-md);
    border-width: 1px;
    padding: 0.75rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.guide-element:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.guide-element-none {
    opacity: 0.6;
}
.guide-element-symbol {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.015em;
    font-weight: 700;
    line-height: 1.25;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.guide-element-none .guide-element-symbol {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-element-none .guide-element-symbol:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.guide-element-name {
    font-size: 12.5px;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-element-name:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-element-field {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 11px;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-element-field:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

/* What kind of page or card this is: a reference or a guide. */
.guide-kind {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-start;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.guide-kind::before      { content: ''; height: 0.375rem; width: 0.375rem; background-color: currentColor; }
.guide-kind-reference .guide-kind {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-kind-reference .guide-kind:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-kind-guide .guide-kind {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.guide-kind-guide .guide-kind::before {
    border-radius: 9999px;
}
.guide-page-title {
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: -0.02em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-page-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* The overview: the REST endpoints beside the path of a certificate request, each linking to its page. */
.guide-columns {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    align-items: flex-start;
    gap: 1.5rem;
}
@media (min-width: 1280px) {
    .guide-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.guide-column {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 0.875rem;
}
.guide-endpoint-line {
    display: flex;
    min-width: 0px;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-mono);
    font-size: 13px;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-endpoint-line:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-endpoint-path {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.guide-more {
    align-self: flex-start;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.job-row .guide-more {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.guide-more:hover {
    text-decoration-line: underline;
}
/* The steps of the path, joined by a line from number to number. */
.guide-path {
    margin: 0px;
    display: flex;
    list-style-type: none;
    flex-direction: column;
    padding: 0px;
}
.guide-path-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: var(--r-md);
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.guide-path-item:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.guide-path-item:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.guide-path-number {
    position: relative;
    z-index: 1;
    display: flex;
    height: 1.75rem;
    width: 1.75rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 700;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.job-row .guide-path-number {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.guide-path-number   {
                       background: rgb(var(--cas-tint)); }
.guide-path li:not(:last-child) .guide-path-item::after {
                       content: '';
                       position: absolute;
                       width: 0.125rem; left: calc(1.375rem - 1px); top: 2.625rem; bottom: -0.625rem;
                       background: rgb(var(--cas-tint) / 0.25); }
/* A step of the path that calls an endpoint links to its reference. */
.guide-endpoint-ref {
    display: flex;
    min-width: 0px;
    align-items: center;
    gap: 0.625rem;
    border-radius: var(--r-sm);
    border-width: 1px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-family: var(--font-mono);
    font-size: 13px;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-endpoint-ref:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-endpoint-ref {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.guide-endpoint-ref:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.guide-endpoint-ref {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.guide-endpoint-ref:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.guide-endpoint-ref-go {
    margin-left: auto;
    flex-shrink: 0;
    padding-left: 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.job-row .guide-endpoint-ref-go {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}


.guide-tile-title {
    font-size: 15px;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}


.guide-tile-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-letter-tint {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
    font-size: 1rem;
    line-height: 1.5rem;
}

/* The general page of the API: the two ways side by side, and the basics as a list of terms. */
.guide-way {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 0.625rem;
    border-radius: var(--r-lg);
    border-width: 1px;
    padding: 1.25rem;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.guide-way:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.guide-way {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.guide-way:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.guide-basics {
    margin: 0px;
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    -moz-column-gap: 1.5rem;
         column-gap: 1.5rem;
    row-gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.job-row .guide-basics {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
@media (min-width: 640px) {
    .guide-basics {
        grid-template-columns: 8rem minmax(0,1fr);
    }
}
.guide-basics dt {
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-basics dt:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-basics dd {
    margin: 0px;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.guide-basics dd:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-basics dd {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-basics dd:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}


/* An endpoint's reference: its signature, then one card per part with its label beside it. */
.guide-ref-hero {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.guide-ref-signature {
    margin: 0px;
    display: flex;
    min-width: 0px;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.015em;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-ref-signature:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-method-lg {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 13px;
}
.guide-ref {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    -moz-column-gap: 2rem;
         column-gap: 2rem;
    row-gap: 0.75rem;
}
@media (min-width: 1024px) {
    .guide-ref {
        grid-template-columns: 9rem minmax(0,1fr);
    }
}
.guide-ref           { scroll-margin-top: 1.5rem; }
.guide-ref-label {
    margin: 0px;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-ref-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .guide-ref-label {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
@media (min-width: 1024px) {
    .guide-ref-label {
        padding-top: 0.125rem;
    }
}
.guide-ref-body {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 0.875rem;
}
.guide-ref-sublabel {
    margin: 0px;
    font-size: 15px;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-ref-sublabel:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-status {
    display: inline-block;
    border-radius: var(--r-xs);
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
}
.guide-status-ok {
    background-color: rgb(16 185 129 / 0.1);
    --tw-text-opacity: 1;
    color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}
.guide-status-ok:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(52 211 153 / var(--tw-text-opacity, 1));
}
.guide-status-error {
    background-color: rgb(244 63 94 / 0.1);
    --tw-text-opacity: 1;
    color: rgb(190 18 60 / var(--tw-text-opacity, 1));
}
.guide-status-error:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(251 113 133 / var(--tw-text-opacity, 1));
}

.guide-step {
    display: grid;
    -moz-column-gap: 1.25rem;
         column-gap: 1.25rem;
    flex-shrink: 0;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    border-radius: var(--r-md);
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.guide-step:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.guide-step::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgb(var(--border-color));
    border-radius: inherit;
    pointer-events: none;
    z-index: 20;
}

.guide-step        { grid-template-columns: 2.75rem minmax(0, 1fr); scroll-margin-top: 1.5rem; }
.guide-step-number {
    display: flex;
    height: 2.5rem;
    width: 2.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.job-row .guide-step-number {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.guide-step-number {
                     background: rgb(var(--cas-tint) / 0.12); }
.guide-step-body {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 0.875rem;
}
.guide-step-title {
    font-size: 1.125rem;
    letter-spacing: -0.01em;
    font-weight: 600;
    line-height: 2.5rem;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-step-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

/* The customer's own values, so a developer sees at a glance what is set up for them. */
.guide-settings {
    display: grid;
    gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.guide-setting {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 0.125rem;
    border-radius: var(--r-sm);
    border-width: 1px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.guide-setting:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.guide-setting-label {
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-setting-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .guide-setting-label {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.guide-setting-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-setting-value:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.guide-endpoint {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: var(--r-sm);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    font-family: var(--font-mono);
    font-size: 13px;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.guide-endpoint:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.guide-endpoint {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.guide-endpoint:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.guide-method {
    border-radius: var(--r-xs);
    padding-left: 0.375rem;
    padding-right: 0.375rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 11px;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.guide-method-post {
    --tw-bg-opacity: 1;
    background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}
.guide-method-get {
    --tw-bg-opacity: 1;
    background-color: rgb(5 150 105 / var(--tw-bg-opacity, 1));
}
.guide-snippet {
    overflow: hidden;
    border-radius: var(--r-md);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.guide-snippet:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.guide-snippet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom-width: 1px;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-snippet-head:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.guide-snippet-head {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.guide-snippet-head:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.guide-snippet-head {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.guide-snippet-head:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.job-row .guide-snippet-head {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.guide-snippet-type {
    font-family: var(--font-mono);
}
.guide-code {
    margin: 0px;
    overflow-x: auto;
    white-space: pre;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
    font-family: var(--font-mono);
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.guide-code:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.guide-code {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.guide-code:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.guide-code {
    font-size: 13px; line-height: 1.65;
}
/* A full message can run to hundreds of lines; it scrolls inside its box. */
.guide-code-long {
    overflow-y: auto; max-height: 28rem;
}
/* The customer's message layout: one row per element, indented by how deep it sits. */
.guide-structure {
    overflow-y: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem; max-height: 28rem;
}
.guide-structure-name {
    white-space: nowrap;
    font-family: var(--font-mono);
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
    font-size: 13px; padding-left: calc(var(--depth, 0) * 1.25rem);
}
/* The documentation's key page: which of the customer's keys the examples show. */
.guide-key-select {
    max-width: 28rem;
}
.guide-note {
    border-radius: var(--r-sm);
    padding-left: 0.875rem;
    padding-right: 0.875rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    font-size: 13px;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.guide-note:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.guide-note {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.guide-note:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-note {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-note:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.guide-note         { line-height: 1.55; }

.guide-table {
    width: 100%;
    font-size: 13px;
}
.guide-table th {
    border-bottom-width: 1px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 1rem;
    text-align: left;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.guide-table th:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.guide-table th {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.guide-table th:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.job-row .guide-table th {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.guide-table td {
    border-bottom-width: 1px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 1rem;
    vertical-align: top;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.guide-table td:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.guide-table td {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.guide-table td:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-table td {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].guide-table td:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.guide-table td:last-child, .guide-table th:last-child {
    white-space: nowrap;
    padding-right: 0px;
}
.guide-table-text td:last-child {
    white-space: normal;
} /* a last column of explanation, not of a status */
/* Markdown in a card of Documentation (Admin): its text and tables read as the rest of the guide. Doubled with
   markdown-body, so it wins over markdown.css whatever order the two stylesheets load in. */
.markdown-body.guide-markdown {
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.markdown-body.guide-markdown:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].markdown-body.guide-markdown {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].markdown-body.guide-markdown:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.markdown-body.guide-markdown            { line-height: 1.6; }
.markdown-body.guide-markdown > :first-child {
    margin-top: 0px;
}
.markdown-body.guide-markdown > :last-child {
    margin-bottom: 0px;
}
.markdown-body.guide-markdown > :is(p, ul, ol) {
    max-width: 48rem;
} /* text keeps the guide's measure; a table takes the card */
.markdown-body.guide-markdown table {
    width: 100%;
}
.markdown-body.guide-markdown th {
    border-width: 0px;
    border-bottom-width: 1px;
    background-color: transparent;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 1rem;
    text-align: left;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.markdown-body.guide-markdown th:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.markdown-body.guide-markdown th {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.markdown-body.guide-markdown th:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.markdown-body.guide-markdown td {
    border-width: 0px;
    border-bottom-width: 1px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-right: 1rem;
    vertical-align: top;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.markdown-body.guide-markdown td:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.markdown-body.guide-markdown td {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.markdown-body.guide-markdown td:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dt-file-dropdown [role="option"].markdown-body.guide-markdown td {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].markdown-body.guide-markdown td:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.guide-field {
    white-space: nowrap;
    font-family: var(--font-mono);
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
    font-size: 13px;
}

/* ── Timeline (#1254) — shared: <Timeline> and <TimelineStep>. A thin line through round nodes; the node's tone
   says what happened, the text stays quiet. ─────────────────────────────────────────────────────────────── */
.timeline {
    margin: 0px;
    display: flex;
    list-style-type: none;
    flex-direction: column;
    padding: 0px;
}
.timeline-step {
    position: relative;
    display: grid;
    -moz-column-gap: 0.625rem;
         column-gap: 0.625rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem; grid-template-columns: 22px minmax(0, 1fr);
}
.timeline-step::before { content: ""; position: absolute; top: 0px; bottom: 0px; width: 1px; --tw-bg-opacity: 1; background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1)); }
.timeline-step:is(.dark *)::before {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.timeline-step::before { left: 10.5px; }
.timeline-step:first-child::before { top: 14px; }
.timeline-step:last-child::before  { bottom: calc(100% - 14px); }
.timeline-step:only-child::before {
    display: none;
}
/* Every node the same: a soft disc in the tone of what happened, no ring, one plain glyph in that tone. The soft
   tone lies over an opaque surface, so the line of the timeline does not show through the disc. */
.timeline-node {
    position: relative;
    z-index: 1;
    display: grid;
    height: 22px;
    width: 22px;
    place-items: center;
    border-radius: 9999px;
    font-size: 10px;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.timeline-node:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.timeline-node-success {
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1)); background-image: linear-gradient(rgb(var(--ok) / .12), rgb(var(--ok) / .12));
}
.timeline-node-warning {
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1)); background-image: linear-gradient(rgb(var(--warn) / .16), rgb(var(--warn) / .16));
}
.timeline-node-danger {
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1)); background-image: linear-gradient(rgb(var(--bad) / .12), rgb(var(--bad) / .12));
}
.timeline-node-tint {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1)); background-image: linear-gradient(var(--tint-soft), var(--tint-soft));
}
.timeline-node-muted {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.timeline-node-muted:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
/* The glyph sits small inside its disc, the size the design chose (#1254); an xs icon on its own is a size bigger. */
/* One step under the icon scale (xs is 10px), on purpose: inside the soft disc 10px leaves too
   little air around the glyph. Fabian, 2026-11-09, after seeing 9 and 10 side by side. */
.timeline-node .cas-icon { font-size: 9px; }
.timeline-body {
    display: flex;
    min-width: 0px;
    flex-direction: column;
    gap: 0.25rem;
}
.timeline-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
}
.timeline-title {
    min-width: 0px;
    font-size: 13px;
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.timeline-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.timeline-time {
    white-space: nowrap;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.timeline-time:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .timeline-time {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.timeline-meta {
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.timeline-meta:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .timeline-meta {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

/* ── Document history (#1254): the Geschiedenis panel in the place of the PDF, and a field's own history ── */
.history-toggle-on {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1)); background: var(--tint-soft);
}
.history-panel {
    display: flex;
    height: 100%;
    min-height: 0px;
    flex-direction: column;
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.history-panel:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.history-head {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.75rem;
    border-bottom-width: 1px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.history-head:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.history-title {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.history-title:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.job-row .history-title {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.history-filter {
    margin-left: auto;
    display: flex;
    overflow: hidden;
    border-radius: var(--r-sm);
    border-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.history-filter:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.history-filter button {
    cursor: pointer;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
    font-size: 11.5px;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.history-filter button:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.history-filter button + button {
    border-left-width: 1px;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.history-filter button + button:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.history-filter .history-filter-on {
    font-weight: 600;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1)); background: var(--tint-soft);
}
.history-body {
    display: flex;
    min-height: 0px;
    flex: 1 1 0%;
    flex-direction: column;
    gap: 0.5rem;
    overflow-y: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 1rem;
}
.history-empty {
    padding-top: 2rem;
    padding-bottom: 2rem;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.25rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.history-empty:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .history-empty {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}
.history-person {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.history-version {
    font-family: var(--font-mono);
    font-size: 10.5px;
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.history-version:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.history-detail {
    margin: 0px;
    overflow-wrap: break-word;
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.history-detail:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].history-detail {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].history-detail:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.job-row .history-detail {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.history-link {
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.job-row .history-link {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.history-link:hover {
    text-decoration-line: underline;
}
.history-changes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.history-change {
    display: grid;
    align-items: baseline;
    -moz-column-gap: 0.375rem;
         column-gap: 0.375rem;
    border-radius: var(--r-sm);
    border-width: 1px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-family: var(--font-mono);
    font-size: 11.5px;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.history-change:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.history-change {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.history-change:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.history-change    {
                     grid-template-columns: auto auto minmax(0, 1fr); }
.history-change-field {
    grid-column: span 3 / span 3;
    font-family: var(--font-sans);
    font-size: 11px;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.history-change-field:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.history-change-from {
    word-break: break-all;
    --tw-text-opacity: 1;
    color: rgb(185 28 28 / var(--tw-text-opacity, 1));
    text-decoration-line: line-through;
}
.history-change-from:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}
.history-change-from  { text-decoration-color: rgb(185 28 28 / .4); }
.history-change-arrow {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.history-change-arrow:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.history-change-to {
    word-break: break-all;
    --tw-text-opacity: 1;
    color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}
.history-change-to:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}
.history-more summary {
    cursor: pointer;
    list-style-type: none;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.job-row .history-more summary {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.history-more[open] summary {
    margin-bottom: 0.25rem;
}
.history-run {
    border-radius: var(--r-sm);
    border-width: 1px;
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.history-run:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.history-run {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.history-run:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.history-run summary {
    display: flex;
    cursor: pointer;
    list-style-type: none;
    flex-wrap: wrap;
    align-items: center;
    -moz-column-gap: 0.375rem;
         column-gap: 0.375rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.history-run summary:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.job-row .history-run summary {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}
.history-run summary::-webkit-details-marker, .history-more summary::-webkit-details-marker {
    display: none;
}
.history-run-name {
    font-weight: 600;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.history-run-name:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].history-run-name {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-file-dropdown [role="option"].history-run-name:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}
.history-run-chevron {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.history-run[open] .history-run-chevron {
    --tw-rotate: 90deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.history-run .timeline {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    padding-bottom: 0.25rem;
}

.dt-history-mark {
    margin-left: 0.375rem;
    display: inline-grid;
    height: 1rem;
    width: 1rem;
    flex-shrink: 0;
    place-items: center;
    border-radius: var(--r-xs);
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1)); background: var(--tint-soft);
}
/* Scoped under the popover inside the panel: a validated cell colours every descendant green
   (.dt-panel td:has(> .dt-cell-valid) *), and the history keeps its own colours. */
.dt-history-popover {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    border-radius: var(--r-md);
    border-width: 1px;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-left: 0.625rem;
    padding-right: 0.625rem;
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.dt-history-popover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.dt-history-popover {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.dt-history-popover:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dt-history-popover { min-width: 220px; max-width: 340px; }
.dt-history-line {
    display: flex;
    flex-direction: column;
}
.dt-history-line + .dt-history-line {
    border-top-width: 1px;
    padding-top: 0.375rem;
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.dt-history-line + .dt-history-line:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-label {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-label:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-value {
    word-break: break-all;
    font-family: var(--font-mono);
    font-weight: 500;
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-value:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-meta {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-meta:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-meta *  { color: inherit; }
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-person {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-version {
    font-family: var(--font-mono);
    font-size: 10px;
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.dt-panel .dt-normalization-popover .dt-history-popover .dt-history-version:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
/* SplitReview flat-canvas (issue #887) — professional, minimalist splitter.
   Cards separate groups (background + soft shadow, never border+background together);
   pages are large; every label is anchored to its element (no floating text). */

.split-review-v2 {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;

    /* No native text/image selection while dragging pages or rubber-band selecting. */
    -moz-user-select: none;
         user-select: none;
    -webkit-user-select: none;

    /* The app's own neutrals and tint (tokens.css); they follow dark mode by themselves. */
    --split-bg: var(--surface-hover);
    --split-card: var(--surface);
    --split-heading: var(--text-heading);
    --split-muted: var(--text-muted);
    --split-hairline: rgba(15, 23, 42, 0.08);
    /* Exactly the header divider's border (app `.divider` → rgb(var(--border-color))). */
    --split-border: rgb(var(--border-color));
    --split-accent: var(--tint);
    --split-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --split-tile-w: 320px;

    background: var(--split-bg);
    color: var(--split-heading);
}
.dark .split-review-v2 {
    --split-bg: var(--surface-inset);
    --split-hairline: rgba(255, 255, 255, 0.08);
    --split-accent: var(--tint-on-dark);
}

/* Loader */
.split-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--split-bg);
    z-index: 5;
    transition: opacity 220ms ease;
}
.split-review-v2.is-images-ready .split-loader { opacity: 0; pointer-events: none; }
.split-loader[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.split-loader-spinner {
    width: 34px; height: 34px;
    border: 3px solid var(--split-hairline);
    border-top-color: var(--split-accent);
    border-radius: 50%;
    animation: split-spin 0.8s linear infinite;
}
@keyframes split-spin { to { transform: rotate(360deg); } }

/* Canvas: scrollable document column + pinned attachment rail */
.split-canvas {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    overflow: auto;
}
.split-docs {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Bottom breathing room above the footer that the scroll container reliably keeps. */
    padding-bottom: 8px;
}

/* A document group — one clean card. A single hairline border separates it (matches the top
   chrome); no shadow, so nothing competes inside the panel. */
.split-doc {
    --stack-color: var(--split-accent);
    background: var(--split-card);
    border: 1px solid var(--split-border);
    padding: 18px 22px 22px;
}

/* "Overige pagina's" — pages not in a certificate (e.g. an invoice cover). Visible so nothing
   vanishes; muted, draggable into a certificate / the attachment dropzone / the trash. */
.split-doc-other { background: transparent; }
.split-doc-other-title { color: var(--split-muted); font-weight: 600; }
.split-doc-other-icon { color: var(--split-muted); font-size: 0.8125rem; }
.split-other-pages { --split-tile-w: 132px; gap: 12px; min-height: 0; }

.split-doc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.split-doc-accent {
    width: 11px; height: 11px;
    border-radius: 50%;
    background: var(--stack-color);
    box-shadow: 0 0 0 4px var(--stack-color-soft, rgba(37, 99, 235, 0.16));
    flex-shrink: 0;
}
.split-doc-type { font-size: 0.875rem; font-weight: 600; color: var(--split-heading); }
.split-doc-select {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--split-heading);
    cursor: pointer;
    padding: 2px 22px 2px 2px;
    border-radius: var(--r-sm);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right center;
}
.split-doc-select:hover { background-color: var(--split-hairline); }
.split-doc-select:focus-visible { outline: 2px solid var(--split-accent); outline-offset: 1px; }
.split-doc-pages {
    margin-left: auto;
    font-size: 0.8125rem;
    color: var(--split-muted);
    font-variant-numeric: tabular-nums;
}

/* Pages grid */
.split-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-content: flex-start;
    align-items: flex-start;
    border-radius: var(--r-md);
}
/* Only reserve a drop row while dragging, so a new row can be created — no dead space otherwise. */
.split-review-v2.is-dragging .split-pages-container { min-height: 120px; }

/* Page tile — large, clean. Shadow (not border) gives the edge; selection adds an accent ring. */
.split-thumb-large {
    position: relative;
    width: var(--row-tile-w, var(--split-tile-w));
    aspect-ratio: var(--page-aspect, 0.707);
    border-radius: var(--r-xs);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14), 0 6px 18px rgba(15, 23, 42, 0.08);
    cursor: grab;
    transition: width 220ms var(--split-ease), box-shadow 160ms ease, transform 160ms var(--split-ease);
}
.dark .split-thumb-large { background: #0f172a; }
.split-thumb-large:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16), 0 12px 28px rgba(15, 23, 42, 0.12); }
.split-thumb-large:active { cursor: grabbing; }
.split-review-v2.is-readonly .split-thumb-large { cursor: zoom-in; }
.split-thumb-large.is-selected {
    box-shadow: 0 0 0 3px var(--split-accent), 0 6px 18px rgba(37, 99, 235, 0.25);
}
.split-thumb-large.is-newly-added { animation: split-pulse 1.1s var(--split-ease); }
@keyframes split-pulse {
    0% { box-shadow: 0 0 0 4px var(--split-accent); }
    100% { box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14), 0 6px 18px rgba(15, 23, 42, 0.08); }
}
.split-thumb-image { width: 100%; height: 100%; -o-object-fit: contain; object-fit: contain; display: block; pointer-events: none; }
.split-thumb-pagenum {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; font-size: 2rem; font-weight: 600; color: var(--split-muted);
}
/* Page number — anchored chip on the tile, not floating text */
.split-thumb-badge {
    position: absolute; left: 10px; bottom: 10px;
    min-width: 24px;
    padding: 3px 9px;
    border-radius: var(--r-sm);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.8125rem; font-weight: 600; line-height: 1.1;
    text-align: center;
    pointer-events: none;
}

/* Each document card body: certificate pages on the left, its own attachment dropzone on the right. */
.split-doc-body {
    display: flex;
    gap: 18px;
    align-items: stretch;
}
.split-doc-main { flex: 1; min-width: 0; }

/* Add-stack drop target — a calm dashed bar at the bottom of the document column */
/* Bottom actions (new-stack + delete dropzones) exist only while dragging — no persistent bar.
   They float as one bar pinned to the bottom of the splitter so they stay visible no matter how
   far the page list is scrolled; you drag a page onto them. */
.split-actions {
    display: none;
    gap: 14px;
}
.split-review-v2.is-dragging .split-actions {
    display: flex;
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    width: min(640px, calc(100% - 48px));
    padding: 12px;
    border-radius: var(--r-lg);
    background: var(--split-card);
    border: 1px solid var(--split-border);
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.22);
    z-index: 9;
}
.dark .split-review-v2.is-dragging .split-actions { box-shadow: 0 14px 44px rgba(0, 0, 0, 0.45); }
.split-add-doc {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 62px;
    padding: 16px;
    border: 1.5px dashed var(--split-border);
    background: transparent;
    color: var(--split-muted);
    font-size: 0.875rem; font-weight: 500;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease;
}
.split-add-doc:hover, .split-add-doc.is-drop-active {
    border-color: var(--split-accent); color: var(--split-accent); background: rgba(37, 99, 235, 0.06);
}
.split-add-doc-icon {
    display: flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--split-hairline);
    font-size: 0.8125rem;
}

/* Per-certificate attachment dropzone (Cert bijlage), to the right of the certificate's pages */
.split-doc-attach {
    flex-shrink: 0;
    width: 188px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border: 1px dashed var(--split-border);
    background: rgba(100, 116, 139, 0.04);
}
.dark .split-doc-attach { background: rgba(255, 255, 255, 0.03); }
.split-attach-head {
    display: flex; align-items: center; gap: 9px;
    font-size: 0.875rem; font-weight: 600; color: var(--split-heading);
}
.split-attach-head > i { color: var(--split-muted); }
.split-attach-count {
    margin-left: auto;
    min-width: 22px; padding: 1px 9px;
    border-radius: 999px;
    background: var(--split-hairline);
    color: var(--split-muted);
    font-size: 0.75rem; font-weight: 600; text-align: center;
}
.split-attach-pages { --split-tile-w: 132px; gap: 12px; min-height: 0; }
/* Empty attachment: one centred dashed dropzone, single line of text */
.split-attach-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 150px;
    border: 1.5px dashed var(--split-border);
    color: var(--split-muted);
    font-size: 0.8125rem;
    text-align: center;
    padding: 16px;
}
.split-attach-empty::before {
    content: "\f0c6"; /* paperclip */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    font-size: 1.4rem;
    opacity: 0.5;
}

/* Delete dropzone — only present while dragging, beside the new-stack target, danger-styled. */
.split-trash {
    flex: 1;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 62px;
    padding: 16px;
    border: 1.5px dashed rgb(var(--bad));
    background: rgba(239, 68, 68, 0.06);
    color: rgb(var(--bad)); font-size: 0.875rem; font-weight: 600;
    transition: background-color 160ms ease, color 160ms ease, border-style 160ms ease;
}
.split-review-v2.is-dragging .split-trash { display: flex; }
.split-trash.is-drop-active, .split-trash:hover {
    background: rgb(var(--bad)); color: #fff; border-style: solid;
}
.split-trash-icon { display: flex; font-size: 1.05rem; }

/* Only the dedicated dropzones highlight on hover-drag — the page area itself doesn't need a
   raster outline (the ghost already shows where a page lands). */
.split-attach-pages.is-drop-active { background: rgba(37, 99, 235, 0.08); }
.split-doc-attach:has(.split-attach-pages.is-drop-active) { border-color: var(--split-accent); }

/* Marquee selection rectangle */
.split-marquee {
    position: absolute;
    border: 1.5px solid var(--split-accent);
    background: rgba(37, 99, 235, 0.12);
    border-radius: var(--r-xs);
    pointer-events: none;
    z-index: 7;
}

/* SortableJS drag artefacts */
.split-thumb-ghost { opacity: 0.4; }
.split-thumb-chosen { opacity: 0.55; }
.split-thumb-drag {
    cursor: grabbing !important;
    background: transparent !important;
    box-shadow: none !important;
}
.split-thumb-drag-inner {
    width: 100%; height: 100%;
    border-radius: var(--r-xs); overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.4);
    transition: transform 120ms ease;
}
.dark .split-thumb-drag-inner { background: #0f172a; }
/* Over a drop target the floating clone hides — the ghost placeholder shows where it lands,
   so there's no clone overlapping/duplicating the page at its next location. */
.split-thumb-drag-inner.is-shrunk { opacity: 0; }
.split-thumb-drag-inner > .split-thumb-image { width: 100%; height: 100%; -o-object-fit: contain; object-fit: contain; }
.split-thumb-drag.is-multi-drag .split-thumb-drag-inner {
    box-shadow: 7px 7px 0 -2px var(--split-accent), 14px 14px 0 -4px rgba(37, 99, 235, 0.3), 0 12px 32px rgba(15, 23, 42, 0.4);
}
.split-drag-count {
    position: absolute; top: -10px; right: -10px;
    min-width: 24px; height: 24px; padding: 0 7px;
    display: flex; align-items: center; justify-content: center;
    background: var(--split-accent); color: #fff;
    font-size: 0.8125rem; font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Zoom overlay (single-page inspect) */
.split-zoom-overlay {
    position: fixed; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(8, 12, 22, 0.86);
    z-index: 60;
    animation: split-zoom-in 240ms var(--split-ease);
}
@keyframes split-zoom-in { from { opacity: 0; } to { opacity: 1; } }
.split-zoom-image {
    max-width: 90vw; max-height: 90vh;
    -o-object-fit: contain;
       object-fit: contain; opacity: 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
    border-radius: var(--r-sm);
}
.split-zoom-close, .split-nav-btn {
    position: absolute;
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.14); color: #fff; border: none; cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background-color 150ms ease;
}
.split-zoom-close:hover, .split-nav-btn:hover { background: rgba(255, 255, 255, 0.28); }
.split-zoom-close { top: 22px; right: 22px; }
.split-nav-btn { top: 50%; transform: translateY(-50%); }
.split-nav-prev { left: 22px; }
.split-nav-next { right: 22px; }

*, ::before, ::after {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:  ;
    --tw-pan-y:  ;
    --tw-pinch-zoom:  ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:  ;
    --tw-gradient-via-position:  ;
    --tw-gradient-to-position:  ;
    --tw-ordinal:  ;
    --tw-slashed-zero:  ;
    --tw-numeric-figure:  ;
    --tw-numeric-spacing:  ;
    --tw-numeric-fraction:  ;
    --tw-ring-inset:  ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:  ;
    --tw-brightness:  ;
    --tw-contrast:  ;
    --tw-grayscale:  ;
    --tw-hue-rotate:  ;
    --tw-invert:  ;
    --tw-saturate:  ;
    --tw-sepia:  ;
    --tw-drop-shadow:  ;
    --tw-backdrop-blur:  ;
    --tw-backdrop-brightness:  ;
    --tw-backdrop-contrast:  ;
    --tw-backdrop-grayscale:  ;
    --tw-backdrop-hue-rotate:  ;
    --tw-backdrop-invert:  ;
    --tw-backdrop-opacity:  ;
    --tw-backdrop-saturate:  ;
    --tw-backdrop-sepia:  ;
    --tw-contain-size:  ;
    --tw-contain-layout:  ;
    --tw-contain-paint:  ;
    --tw-contain-style:  ;
}

::backdrop {
    --tw-border-spacing-x: 0;
    --tw-border-spacing-y: 0;
    --tw-translate-x: 0;
    --tw-translate-y: 0;
    --tw-rotate: 0;
    --tw-skew-x: 0;
    --tw-skew-y: 0;
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    --tw-pan-x:  ;
    --tw-pan-y:  ;
    --tw-pinch-zoom:  ;
    --tw-scroll-snap-strictness: proximity;
    --tw-gradient-from-position:  ;
    --tw-gradient-via-position:  ;
    --tw-gradient-to-position:  ;
    --tw-ordinal:  ;
    --tw-slashed-zero:  ;
    --tw-numeric-figure:  ;
    --tw-numeric-spacing:  ;
    --tw-numeric-fraction:  ;
    --tw-ring-inset:  ;
    --tw-ring-offset-width: 0px;
    --tw-ring-offset-color: #fff;
    --tw-ring-color: rgb(59 130 246 / 0.5);
    --tw-ring-offset-shadow: 0 0 #0000;
    --tw-ring-shadow: 0 0 #0000;
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    --tw-blur:  ;
    --tw-brightness:  ;
    --tw-contrast:  ;
    --tw-grayscale:  ;
    --tw-hue-rotate:  ;
    --tw-invert:  ;
    --tw-saturate:  ;
    --tw-sepia:  ;
    --tw-drop-shadow:  ;
    --tw-backdrop-blur:  ;
    --tw-backdrop-brightness:  ;
    --tw-backdrop-contrast:  ;
    --tw-backdrop-grayscale:  ;
    --tw-backdrop-hue-rotate:  ;
    --tw-backdrop-invert:  ;
    --tw-backdrop-opacity:  ;
    --tw-backdrop-saturate:  ;
    --tw-backdrop-sepia:  ;
    --tw-contain-size:  ;
    --tw-contain-layout:  ;
    --tw-contain-paint:  ;
    --tw-contain-style:  ;
}

/* ! tailwindcss v3.4.18 | MIT License | https://tailwindcss.com *//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: var(--font-sans); /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: var(--font-mono); /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
    html.dark,
    html.dark body {
        background-color: rgb(17 24 39); /* gray-900 */
        color: rgb(249 250 251); /* gray-50 */
    }
.\!container {
    width: 100% !important;
}
.container {
    width: 100%;
}
@media (min-width: 640px) {
    .\!container {
        max-width: 640px !important;
    }
    .container {
        max-width: 640px;
    }
}
@media (min-width: 768px) {
    .\!container {
        max-width: 768px !important;
    }
    .container {
        max-width: 768px;
    }
}
@media (min-width: 1024px) {
    .\!container {
        max-width: 1024px !important;
    }
    .container {
        max-width: 1024px;
    }
}
@media (min-width: 1280px) {
    .\!container {
        max-width: 1280px !important;
    }
    .container {
        max-width: 1280px;
    }
}
@media (min-width: 1536px) {
    .\!container {
        max-width: 1536px !important;
    }
    .container {
        max-width: 1536px;
    }
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
.pointer-events-none {
    pointer-events: none;
}
.pointer-events-auto {
    pointer-events: auto;
}
.\!visible {
    visibility: visible !important;
}
.visible {
    visibility: visible;
}
.invisible {
    visibility: hidden;
}
.collapse {
    visibility: collapse;
}
.static {
    position: static;
}
.fixed {
    position: fixed;
}
.absolute {
    position: absolute;
}
.relative {
    position: relative;
}
.sticky {
    position: sticky;
}
.inset-0 {
    inset: 0px;
}
.inset-y-0 {
    top: 0px;
    bottom: 0px;
}
.-bottom-1 {
    bottom: -0.25rem;
}
.-right-1 {
    right: -0.25rem;
}
.-right-1\.5 {
    right: -0.375rem;
}
.-right-2 {
    right: -0.5rem;
}
.-right-6 {
    right: -1.5rem;
}
.-top-1\.5 {
    top: -0.375rem;
}
.-top-2 {
    top: -0.5rem;
}
.bottom-0 {
    bottom: 0px;
}
.bottom-2 {
    bottom: 0.5rem;
}
.bottom-4 {
    bottom: 1rem;
}
.bottom-full {
    bottom: 100%;
}
.bottom-px {
    bottom: 1px;
}
.left-0 {
    left: 0px;
}
.left-1 {
    left: 0.25rem;
}
.left-1\/2 {
    left: 50%;
}
.left-2 {
    left: 0.5rem;
}
.left-2\.5 {
    left: 0.625rem;
}
.left-full {
    left: 100%;
}
.left-px {
    left: 1px;
}
.right-0 {
    right: 0px;
}
.right-1\.5 {
    right: 0.375rem;
}
.right-2 {
    right: 0.5rem;
}
.right-3 {
    right: 0.75rem;
}
.right-4 {
    right: 1rem;
}
.right-9 {
    right: 2.25rem;
}
.right-\[4rem\] {
    right: 4rem;
}
.right-full {
    right: 100%;
}
.right-px {
    right: 1px;
}
.top-0 {
    top: 0px;
}
.top-1 {
    top: 0.25rem;
}
.top-1\/2 {
    top: 50%;
}
.top-2 {
    top: 0.5rem;
}
.top-full {
    top: 100%;
}
.top-px {
    top: 1px;
}
.isolate {
    isolation: isolate;
}
.z-10 {
    z-index: 10;
}
.z-20 {
    z-index: 20;
}
.z-30 {
    z-index: 30;
}
.z-40 {
    z-index: 40;
}
.z-50 {
    z-index: 50;
}
.z-\[100\] {
    z-index: 100;
}
.z-\[1\] {
    z-index: 1;
}
.z-\[5\] {
    z-index: 5;
}
.z-\[60\] {
    z-index: 60;
}
.z-\[9998\] {
    z-index: 9998;
}
.z-\[9999\] {
    z-index: 9999;
}
.col-span-3 {
    grid-column: span 3 / span 3;
}
.m-0 {
    margin: 0px;
}
.m-auto {
    margin: auto;
}
.-mx-1\.5 {
    margin-left: -0.375rem;
    margin-right: -0.375rem;
}
.-my-0 {
    margin-top: -0px;
    margin-bottom: -0px;
}
.mx-3 {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
}
.mx-4 {
    margin-left: 1rem;
    margin-right: 1rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}
.my-auto {
    margin-top: auto;
    margin-bottom: auto;
}
.-mt-2 {
    margin-top: -0.5rem;
}
.-mt-3 {
    margin-top: -0.75rem;
}
.mb-0 {
    margin-bottom: 0px;
}
.mb-1 {
    margin-bottom: 0.25rem;
}
.mb-1\.5 {
    margin-bottom: 0.375rem;
}
.mb-2 {
    margin-bottom: 0.5rem;
}
.mb-3 {
    margin-bottom: 0.75rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.mb-8 {
    margin-bottom: 2rem;
}
.ml-0\.5 {
    margin-left: 0.125rem;
}
.ml-1 {
    margin-left: 0.25rem;
}
.ml-1\.5 {
    margin-left: 0.375rem;
}
.ml-2 {
    margin-left: 0.5rem;
}
.ml-3 {
    margin-left: 0.75rem;
}
.ml-4 {
    margin-left: 1rem;
}
.ml-6 {
    margin-left: 1.5rem;
}
.ml-7 {
    margin-left: 1.75rem;
}
.ml-auto {
    margin-left: auto;
}
.mr-0\.5 {
    margin-right: 0.125rem;
}
.mr-1 {
    margin-right: 0.25rem;
}
.mr-1\.5 {
    margin-right: 0.375rem;
}
.mr-2 {
    margin-right: 0.5rem;
}
.mr-3 {
    margin-right: 0.75rem;
}
.mr-auto {
    margin-right: auto;
}
.mt-0\.5 {
    margin-top: 0.125rem;
}
.mt-1 {
    margin-top: 0.25rem;
}
.mt-1\.5 {
    margin-top: 0.375rem;
}
.mt-2 {
    margin-top: 0.5rem;
}
.mt-3 {
    margin-top: 0.75rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mt-5 {
    margin-top: 1.25rem;
}
.mt-6 {
    margin-top: 1.5rem;
}
.mt-\[3cqw\] {
    margin-top: 3cqw;
}
.mt-\[3px\] {
    margin-top: 3px;
}
.block {
    display: block;
}
.inline-block {
    display: inline-block;
}
.inline {
    display: inline;
}
.flex {
    display: flex;
}
.inline-flex {
    display: inline-flex;
}
.table {
    display: table;
}
.table-cell {
    display: table-cell;
}
.table-row {
    display: table-row;
}
.grid {
    display: grid;
}
.inline-grid {
    display: inline-grid;
}
.contents {
    display: contents;
}
.\!hidden {
    display: none !important;
}
.hidden {
    display: none;
}
.aspect-square {
    aspect-ratio: 1 / 1;
}
.\!h-8 {
    height: 2rem !important;
}
.h-1 {
    height: 0.25rem;
}
.h-1\.5 {
    height: 0.375rem;
}
.h-10 {
    height: 2.5rem;
}
.h-11 {
    height: 2.75rem;
}
.h-12 {
    height: 3rem;
}
.h-14 {
    height: 3.5rem;
}
.h-16 {
    height: 4rem;
}
.h-2 {
    height: 0.5rem;
}
.h-2\.5 {
    height: 0.625rem;
}
.h-3 {
    height: 0.75rem;
}
.h-3\.5 {
    height: 0.875rem;
}
.h-4 {
    height: 1rem;
}
.h-40 {
    height: 10rem;
}
.h-5 {
    height: 1.25rem;
}
.h-6 {
    height: 1.5rem;
}
.h-7 {
    height: 1.75rem;
}
.h-8 {
    height: 2rem;
}
.h-9 {
    height: 2.25rem;
}
.h-\[15px\] {
    height: 15px;
}
.h-\[18px\] {
    height: 18px;
}
.h-\[2\.1rem\] {
    height: 2.1rem;
}
.h-\[22px\] {
    height: 22px;
}
.h-\[26px\] {
    height: 26px;
}
.h-\[28px\] {
    height: 28px;
}
.h-\[32px\] {
    height: 32px;
}
.h-\[36px\] {
    height: 36px;
}
.h-\[38px\] {
    height: 38px;
}
.h-\[44px\] {
    height: 44px;
}
.h-\[51px\] {
    height: 51px;
}
.h-\[calc\(100vh-4rem\)\] {
    height: calc(100vh - 4rem);
}
.h-auto {
    height: auto;
}
.h-dvh {
    height: 100dvh;
}
.h-full {
    height: 100%;
}
.h-px {
    height: 1px;
}
.max-h-48 {
    max-height: 12rem;
}
.max-h-60 {
    max-height: 15rem;
}
.max-h-64 {
    max-height: 16rem;
}
.max-h-72 {
    max-height: 18rem;
}
.max-h-80 {
    max-height: 20rem;
}
.max-h-96 {
    max-height: 24rem;
}
.max-h-\[420px\] {
    max-height: 420px;
}
.max-h-\[50vh\] {
    max-height: 50vh;
}
.max-h-\[60vh\] {
    max-height: 60vh;
}
.max-h-\[65vh\] {
    max-height: 65vh;
}
.max-h-\[75vh\] {
    max-height: 75vh;
}
.max-h-\[calc\(100vh-4rem\)\] {
    max-height: calc(100vh - 4rem);
}
.max-h-full {
    max-height: 100%;
}
.min-h-0 {
    min-height: 0px;
}
.min-h-\[100px\] {
    min-height: 100px;
}
.min-h-\[28rem\] {
    min-height: 28rem;
}
.min-h-\[38px\] {
    min-height: 38px;
}
.min-h-\[4\.75rem\] {
    min-height: 4.75rem;
}
.min-h-\[62px\] {
    min-height: 62px;
}
.min-h-\[70px\] {
    min-height: 70px;
}
.min-h-full {
    min-height: 100%;
}
.min-h-screen {
    min-height: 100vh;
}
.w-0 {
    width: 0px;
}
.w-1\.5 {
    width: 0.375rem;
}
.w-1\/2 {
    width: 50%;
}
.w-1\/3 {
    width: 33.333333%;
}
.w-1\/4 {
    width: 25%;
}
.w-1\/5 {
    width: 20%;
}
.w-10 {
    width: 2.5rem;
}
.w-11 {
    width: 2.75rem;
}
.w-12 {
    width: 3rem;
}
.w-14 {
    width: 3.5rem;
}
.w-16 {
    width: 4rem;
}
.w-2 {
    width: 0.5rem;
}
.w-2\.5 {
    width: 0.625rem;
}
.w-2\/3 {
    width: 66.666667%;
}
.w-2\/5 {
    width: 40%;
}
.w-20 {
    width: 5rem;
}
.w-24 {
    width: 6rem;
}
.w-28 {
    width: 7rem;
}
.w-3 {
    width: 0.75rem;
}
.w-3\.5 {
    width: 0.875rem;
}
.w-3\/4 {
    width: 75%;
}
.w-3\/5 {
    width: 60%;
}
.w-32 {
    width: 8rem;
}
.w-4 {
    width: 1rem;
}
.w-4\/5 {
    width: 80%;
}
.w-40 {
    width: 10rem;
}
.w-44 {
    width: 11rem;
}
.w-48 {
    width: 12rem;
}
.w-5 {
    width: 1.25rem;
}
.w-56 {
    width: 14rem;
}
.w-6 {
    width: 1.5rem;
}
.w-7 {
    width: 1.75rem;
}
.w-8 {
    width: 2rem;
}
.w-9 {
    width: 2.25rem;
}
.w-\[120px\] {
    width: 120px;
}
.w-\[130px\] {
    width: 130px;
}
.w-\[140px\] {
    width: 140px;
}
.w-\[150px\] {
    width: 150px;
}
.w-\[15rem\] {
    width: 15rem;
}
.w-\[160px\] {
    width: 160px;
}
.w-\[17rem\] {
    width: 17rem;
}
.w-\[180px\] {
    width: 180px;
}
.w-\[18px\] {
    width: 18px;
}
.w-\[200px\] {
    width: 200px;
}
.w-\[220px\] {
    width: 220px;
}
.w-\[22px\] {
    width: 22px;
}
.w-\[260px\] {
    width: 260px;
}
.w-\[26rem\] {
    width: 26rem;
}
.w-\[3\.8rem\] {
    width: 3.8rem;
}
.w-\[30\%\] {
    width: 30%;
}
.w-\[32\%\] {
    width: 32%;
}
.w-\[32px\] {
    width: 32px;
}
.w-\[36px\] {
    width: 36px;
}
.w-\[38px\] {
    width: 38px;
}
.w-\[40px\] {
    width: 40px;
}
.w-\[42\%\] {
    width: 42%;
}
.w-\[44px\] {
    width: 44px;
}
.w-\[48px\] {
    width: 48px;
}
.w-\[4rem\] {
    width: 4rem;
}
.w-\[50\%\] {
    width: 50%;
}
.w-\[64px\] {
    width: 64px;
}
.w-\[72px\] {
    width: 72px;
}
.w-\[75\%\] {
    width: 75%;
}
.w-\[X\] {
    width: X;
}
.w-auto {
    width: auto;
}
.w-full {
    width: 100%;
}
.w-max {
    width: -moz-max-content;
    width: max-content;
}
.w-px {
    width: 1px;
}
.min-w-0 {
    min-width: 0px;
}
.min-w-\[1\.25rem\] {
    min-width: 1.25rem;
}
.min-w-\[100px\] {
    min-width: 100px;
}
.min-w-\[12rem\] {
    min-width: 12rem;
}
.min-w-\[14rem\] {
    min-width: 14rem;
}
.min-w-\[150px\] {
    min-width: 150px;
}
.min-w-\[15px\] {
    min-width: 15px;
}
.min-w-\[16rem\] {
    min-width: 16rem;
}
.min-w-\[200px\] {
    min-width: 200px;
}
.min-w-\[24px\] {
    min-width: 24px;
}
.min-w-\[280px\] {
    min-width: 280px;
}
.min-w-\[7rem\] {
    min-width: 7rem;
}
.min-w-full {
    min-width: 100%;
}
.max-w-2xl {
    max-width: 42rem;
}
.max-w-40 {
    max-width: 10rem;
}
.max-w-\[16rem\] {
    max-width: 16rem;
}
.max-w-\[180px\] {
    max-width: 180px;
}
.max-w-\[20rem\] {
    max-width: 20rem;
}
.max-w-\[280px\] {
    max-width: 280px;
}
.max-w-\[40vw\] {
    max-width: 40vw;
}
.max-w-\[420px\] {
    max-width: 420px;
}
.max-w-\[440px\] {
    max-width: 440px;
}
.max-w-\[80\%\] {
    max-width: 80%;
}
.max-w-\[calc\(100vw-1rem\)\] {
    max-width: calc(100vw - 1rem);
}
.max-w-\[min\(28rem\2c calc\(100vw-2rem\)\)\] {
    max-width: min(28rem,calc(100vw - 2rem));
}
.max-w-\[min\(32rem\2c calc\(100vw-6rem\)\)\] {
    max-width: min(32rem,calc(100vw - 6rem));
}
.max-w-full {
    max-width: 100%;
}
.max-w-md {
    max-width: 28rem;
}
.max-w-sm {
    max-width: 24rem;
}
.max-w-xs {
    max-width: 20rem;
}
.flex-1 {
    flex: 1 1 0%;
}
.flex-none {
    flex: none;
}
.flex-shrink {
    flex-shrink: 1;
}
.flex-shrink-0 {
    flex-shrink: 0;
}
.shrink {
    flex-shrink: 1;
}
.shrink-0 {
    flex-shrink: 0;
}
.grow {
    flex-grow: 1;
}
.grow-0 {
    flex-grow: 0;
}
.table-fixed {
    table-layout: fixed;
}
.border-collapse {
    border-collapse: collapse;
}
.origin-right {
    transform-origin: right;
}
.-translate-x-1\/2 {
    --tw-translate-x: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-1\/2 {
    --tw-translate-y: -50%;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.rotate-180 {
    --tw-rotate: 180deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-50 {
    --tw-scale-x: .5;
    --tw-scale-y: .5;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-\[0\.7\] {
    --tw-scale-x: 0.7;
    --tw-scale-y: 0.7;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes pulse {
    50% {
        opacity: .5;
    }
}
.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.animate-spin {
    animation: spin 1s linear infinite;
}
.cursor-crosshair {
    cursor: crosshair;
}
.cursor-default {
    cursor: default;
}
.cursor-grab {
    cursor: grab;
}
.cursor-grabbing {
    cursor: grabbing;
}
.cursor-not-allowed {
    cursor: not-allowed;
}
.cursor-nwse-resize {
    cursor: nwse-resize;
}
.cursor-pointer {
    cursor: pointer;
}
.select-none {
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}
.select-all {
    -webkit-user-select: all;
       -moz-user-select: all;
            user-select: all;
}
.resize-none {
    resize: none;
}
.resize {
    resize: both;
}
.list-decimal {
    list-style-type: decimal;
}
.list-disc {
    list-style-type: disc;
}
.list-none {
    list-style-type: none;
}
.appearance-none {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
}
.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-\[auto_1fr\] {
    grid-template-columns: auto 1fr;
}
.grid-rows-\[0fr\] {
    grid-template-rows: 0fr;
}
.grid-rows-\[1fr\] {
    grid-template-rows: 1fr;
}
.flex-row {
    flex-direction: row;
}
.flex-col {
    flex-direction: column;
}
.flex-wrap {
    flex-wrap: wrap;
}
.place-items-center {
    place-items: center;
}
.items-start {
    align-items: flex-start;
}
.items-end {
    align-items: flex-end;
}
.items-center {
    align-items: center;
}
.items-baseline {
    align-items: baseline;
}
.items-stretch {
    align-items: stretch;
}
.justify-start {
    justify-content: flex-start;
}
.justify-end {
    justify-content: flex-end;
}
.justify-center {
    justify-content: center;
}
.justify-between {
    justify-content: space-between;
}
.gap-0 {
    gap: 0px;
}
.gap-0\.5 {
    gap: 0.125rem;
}
.gap-1 {
    gap: 0.25rem;
}
.gap-1\.5 {
    gap: 0.375rem;
}
.gap-2 {
    gap: 0.5rem;
}
.gap-2\.5 {
    gap: 0.625rem;
}
.gap-3 {
    gap: 0.75rem;
}
.gap-3\.5 {
    gap: 0.875rem;
}
.gap-4 {
    gap: 1rem;
}
.gap-5 {
    gap: 1.25rem;
}
.gap-6 {
    gap: 1.5rem;
}
.gap-8 {
    gap: 2rem;
}
.gap-\[18px\] {
    gap: 18px;
}
.gap-px {
    gap: 1px;
}
.gap-x-1\.5 {
    -moz-column-gap: 0.375rem;
         column-gap: 0.375rem;
}
.gap-x-2\.5 {
    -moz-column-gap: 0.625rem;
         column-gap: 0.625rem;
}
.gap-x-3 {
    -moz-column-gap: 0.75rem;
         column-gap: 0.75rem;
}
.gap-x-4 {
    -moz-column-gap: 1rem;
         column-gap: 1rem;
}
.gap-x-6 {
    -moz-column-gap: 1.5rem;
         column-gap: 1.5rem;
}
.gap-x-8 {
    -moz-column-gap: 2rem;
         column-gap: 2rem;
}
.gap-y-1 {
    row-gap: 0.25rem;
}
.gap-y-2 {
    row-gap: 0.5rem;
}
.gap-y-2\.5 {
    row-gap: 0.625rem;
}
.gap-y-3 {
    row-gap: 0.75rem;
}
.gap-y-4 {
    row-gap: 1rem;
}
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.25rem * var(--tw-space-x-reverse));
    margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(1rem * var(--tw-space-x-reverse));
    margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
    --tw-divide-y-reverse: 0;
    border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
    border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.self-start {
    align-self: flex-start;
}
.self-stretch {
    align-self: stretch;
}
.overflow-auto {
    overflow: auto;
}
.overflow-hidden {
    overflow: hidden;
}
.\!overflow-visible {
    overflow: visible !important;
}
.overflow-visible {
    overflow: visible;
}
.overflow-x-auto {
    overflow-x: auto;
}
.overflow-y-auto {
    overflow-y: auto;
}
.overflow-x-hidden {
    overflow-x: hidden;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.text-ellipsis {
    text-overflow: ellipsis;
}
.whitespace-nowrap {
    white-space: nowrap;
}
.whitespace-pre {
    white-space: pre;
}
.whitespace-pre-line {
    white-space: pre-line;
}
.whitespace-pre-wrap {
    white-space: pre-wrap;
}
.break-words {
    overflow-wrap: break-word;
}
.break-all {
    word-break: break-all;
}
.rounded {
    border-radius: var(--r-xs);
}
.rounded-full {
    border-radius: 9999px;
}
.rounded-lg {
    border-radius: var(--r-md);
}
.rounded-md {
    border-radius: var(--r-sm);
}
.rounded-xl {
    border-radius: var(--r-lg);
}
.rounded-l-md {
    border-top-left-radius: var(--r-sm);
    border-bottom-left-radius: var(--r-sm);
}
.rounded-r-md {
    border-top-right-radius: var(--r-sm);
    border-bottom-right-radius: var(--r-sm);
}
.rounded-t {
    border-top-left-radius: var(--r-xs);
    border-top-right-radius: var(--r-xs);
}
.border {
    border-width: 1px;
}
.border-0 {
    border-width: 0px;
}
.border-2 {
    border-width: 2px;
}
.border-4 {
    border-width: 4px;
}
.border-x-0 {
    border-left-width: 0px;
    border-right-width: 0px;
}
.border-y {
    border-top-width: 1px;
    border-bottom-width: 1px;
}
.\!border-t-0 {
    border-top-width: 0px !important;
}
.border-b {
    border-bottom-width: 1px;
}
.border-b-2 {
    border-bottom-width: 2px;
}
.border-l {
    border-left-width: 1px;
}
.border-l-2 {
    border-left-width: 2px;
}
.border-r {
    border-right-width: 1px;
}
.border-t {
    border-top-width: 1px;
}
.border-dashed {
    border-style: dashed;
}
.border-none {
    border-style: none;
}
.border-bad {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
}
.border-bad\/30 {
    border-color: rgb(var(--bad) / 0.3);
}
.border-cas-tint {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
}
.border-cas-tint\/20 {
    border-color: rgb(var(--cas-tint) / 0.2);
}
.border-cas-tint\/30 {
    border-color: rgb(var(--cas-tint) / 0.3);
}
.border-gray-100 {
    --tw-border-opacity: 1;
    border-color: rgb(243 244 246 / var(--tw-border-opacity, 1));
}
.border-gray-200 {
    --tw-border-opacity: 1;
    border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-300 {
    --tw-border-opacity: 1;
    border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-ok\/30 {
    border-color: rgb(var(--ok) / 0.3);
}
.border-subtle {
    --tw-border-opacity: 1;
    border-color: rgb(var(--border-subtle) / var(--tw-border-opacity, 1));
}
.border-transparent {
    border-color: transparent;
}
.border-warn {
    --tw-border-opacity: 1;
    border-color: rgb(var(--warn) / var(--tw-border-opacity, 1));
}
.border-warn\/30 {
    border-color: rgb(var(--warn) / 0.3);
}
.border-l-transparent {
    border-left-color: transparent;
}
.bg-admin {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--admin) / var(--tw-bg-opacity, 1));
}
.bg-admin\/10 {
    background-color: rgb(var(--admin) / 0.1);
}
.bg-bad {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--bad) / var(--tw-bg-opacity, 1));
}
.bg-bad\/10 {
    background-color: rgb(var(--bad) / 0.1);
}
.bg-bad\/70 {
    background-color: rgb(var(--bad) / 0.7);
}
.bg-black\/50 {
    background-color: rgb(0 0 0 / 0.5);
}
.bg-black\/\[0\.02\] {
    background-color: rgb(0 0 0 / 0.02);
}
.bg-blue-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}
.bg-cas-tint {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}
.bg-cas-tint\/10 {
    background-color: rgb(var(--cas-tint) / 0.1);
}
.bg-cas-tint\/15 {
    background-color: rgb(var(--cas-tint) / 0.15);
}
.bg-cas-tint\/70 {
    background-color: rgb(var(--cas-tint) / 0.7);
}
.bg-emerald-500\/10 {
    background-color: rgb(16 185 129 / 0.1);
}
.bg-gray-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-200 {
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-200\/60 {
    background-color: rgb(229 231 235 / 0.6);
}
.bg-gray-400 {
    --tw-bg-opacity: 1;
    background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-gray-500 {
    --tw-bg-opacity: 1;
    background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}
.bg-gray-500\/75 {
    background-color: rgb(107 114 128 / 0.75);
}
.bg-gray-700 {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}
.bg-gray-800 {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-gray-900 {
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.bg-gray-900\/80 {
    background-color: rgb(17 24 39 / 0.8);
}
.bg-green-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}
.bg-info {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}
.bg-info\/10 {
    background-color: rgb(var(--cas-tint) / 0.1);
}
.bg-ok {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--ok) / var(--tw-bg-opacity, 1));
}
.bg-ok\/10 {
    background-color: rgb(var(--ok) / 0.1);
}
.bg-ok\/70 {
    background-color: rgb(var(--ok) / 0.7);
}
.bg-orange-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
}
.bg-primary {
    --tw-bg-opacity: 1;
    background-color: rgb(59 130 246 / var(--tw-bg-opacity, 1));
}
.bg-purple-100 {
    --tw-bg-opacity: 1;
    background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}
.bg-rose-500\/10 {
    background-color: rgb(244 63 94 / 0.1);
}
.bg-transparent {
    background-color: transparent;
}
.bg-warn {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--warn) / var(--tw-bg-opacity, 1));
}
.bg-warn\/10 {
    background-color: rgb(var(--warn) / 0.1);
}
.bg-warn\/20 {
    background-color: rgb(var(--warn) / 0.2);
}
.bg-warn\/70 {
    background-color: rgb(var(--warn) / 0.7);
}
.bg-white {
    --tw-bg-opacity: 1;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-white\/70 {
    background-color: rgb(255 255 255 / 0.7);
}
.bg-white\/90 {
    background-color: rgb(255 255 255 / 0.9);
}
.bg-opacity-75 {
    --tw-bg-opacity: 0.75;
}
.object-contain {
    -o-object-fit: contain;
       object-fit: contain;
}
.object-cover {
    -o-object-fit: cover;
       object-fit: cover;
}
.\!p-0 {
    padding: 0px !important;
}
.p-0 {
    padding: 0px;
}
.p-1 {
    padding: 0.25rem;
}
.p-1\.5 {
    padding: 0.375rem;
}
.p-12 {
    padding: 3rem;
}
.p-2 {
    padding: 0.5rem;
}
.p-3 {
    padding: 0.75rem;
}
.p-4 {
    padding: 1rem;
}
.p-5 {
    padding: 1.25rem;
}
.p-6 {
    padding: 1.5rem;
}
.p-7 {
    padding: 1.75rem;
}
.\!px-0 {
    padding-left: 0px !important;
    padding-right: 0px !important;
}
.\!px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}
.\!py-0 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
.px-0 {
    padding-left: 0px;
    padding-right: 0px;
}
.px-0\.5 {
    padding-left: 0.125rem;
    padding-right: 0.125rem;
}
.px-1 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}
.px-1\.5 {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
}
.px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.px-2\.5 {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
}
.px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
.px-3\.5 {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
}
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
.px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}
.py-0 {
    padding-top: 0px;
    padding-bottom: 0px;
}
.py-0\.5 {
    padding-top: 0.125rem;
    padding-bottom: 0.125rem;
}
.py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.py-1\.5 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}
.py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}
.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
.py-14 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}
.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.py-2\.5 {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}
.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.py-3\.5 {
    padding-top: 0.875rem;
    padding-bottom: 0.875rem;
}
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.py-px {
    padding-top: 1px;
    padding-bottom: 1px;
}
.\!pr-0 {
    padding-right: 0px !important;
}
.pb-0\.5 {
    padding-bottom: 0.125rem;
}
.pb-1 {
    padding-bottom: 0.25rem;
}
.pb-1\.5 {
    padding-bottom: 0.375rem;
}
.pb-2 {
    padding-bottom: 0.5rem;
}
.pb-20 {
    padding-bottom: 5rem;
}
.pb-3 {
    padding-bottom: 0.75rem;
}
.pb-4 {
    padding-bottom: 1rem;
}
.pb-6 {
    padding-bottom: 1.5rem;
}
.pl-10 {
    padding-left: 2.5rem;
}
.pl-2 {
    padding-left: 0.5rem;
}
.pl-2\.5 {
    padding-left: 0.625rem;
}
.pl-3 {
    padding-left: 0.75rem;
}
.pl-4 {
    padding-left: 1rem;
}
.pl-5 {
    padding-left: 1.25rem;
}
.pl-7 {
    padding-left: 1.75rem;
}
.pl-8 {
    padding-left: 2rem;
}
.pl-9 {
    padding-left: 2.25rem;
}
.pl-\[4\.6rem\] {
    padding-left: 4.6rem;
}
.pr-0 {
    padding-right: 0px;
}
.pr-1 {
    padding-right: 0.25rem;
}
.pr-1\.5 {
    padding-right: 0.375rem;
}
.pr-10 {
    padding-right: 2.5rem;
}
.pr-2 {
    padding-right: 0.5rem;
}
.pr-3 {
    padding-right: 0.75rem;
}
.pr-4 {
    padding-right: 1rem;
}
.pr-6 {
    padding-right: 1.5rem;
}
.pr-7 {
    padding-right: 1.75rem;
}
.pr-\[4\.4rem\] {
    padding-right: 4.4rem;
}
.pt-1 {
    padding-top: 0.25rem;
}
.pt-1\.5 {
    padding-top: 0.375rem;
}
.pt-2 {
    padding-top: 0.5rem;
}
.pt-3 {
    padding-top: 0.75rem;
}
.pt-4 {
    padding-top: 1rem;
}
.pt-5 {
    padding-top: 1.25rem;
}
.pt-6 {
    padding-top: 1.5rem;
}
.pt-8 {
    padding-top: 2rem;
}
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.align-top {
    vertical-align: top;
}
.align-middle {
    vertical-align: middle;
}
.align-bottom {
    vertical-align: bottom;
}
.font-mono {
    font-family: var(--font-mono);
}
.font-sans {
    font-family: var(--font-sans);
}
.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: -0.02em;
}
.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}
.text-\[0\.625rem\] {
    font-size: 0.625rem;
}
.text-\[10\.5px\] {
    font-size: 10.5px;
}
.text-\[10px\] {
    font-size: 10px;
}
.text-\[11\.5px\] {
    font-size: 11.5px;
}
.text-\[11px\] {
    font-size: 11px;
}
.text-\[12\.5px\] {
    font-size: 12.5px;
}
.text-\[12px\] {
    font-size: 12px;
}
.text-\[13px\] {
    font-size: 13px;
}
.text-\[15px\] {
    font-size: 15px;
}
.text-\[9\.5px\] {
    font-size: 9.5px;
}
.text-\[9px\] {
    font-size: 9px;
}
.text-base {
    font-size: 1rem;
    line-height: 1.5rem;
}
.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
    letter-spacing: -0.01em;
}
.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}
.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
    letter-spacing: -0.015em;
}
.text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
}
.font-bold {
    font-weight: 700;
}
.font-medium {
    font-weight: 500;
}
.font-normal {
    font-weight: 400;
}
.font-semibold {
    font-weight: 600;
}
.uppercase {
    text-transform: uppercase;
}
.lowercase {
    text-transform: lowercase;
}
.normal-case {
    text-transform: none;
}
.italic {
    font-style: italic;
}
.ordinal {
    --tw-ordinal: ordinal;
    font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.tabular-nums {
    --tw-numeric-spacing: tabular-nums;
    font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.leading-4 {
    line-height: 1rem;
}
.leading-6 {
    line-height: 1.5rem;
}
.leading-none {
    line-height: 1;
}
.leading-relaxed {
    line-height: 1.625;
}
.leading-snug {
    line-height: 1.375;
}
.leading-tight {
    line-height: 1.25;
}
.tracking-normal {
    letter-spacing: 0em;
}
.tracking-wide {
    letter-spacing: 0.025em;
}
.tracking-wider {
    letter-spacing: 0.05em;
}
.text-bad {
    --tw-text-opacity: 1;
    color: rgb(var(--bad) / var(--tw-text-opacity, 1));
}
.text-black {
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}
.text-blue-800 {
    --tw-text-opacity: 1;
    color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}
.text-cas-tint {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.text-current {
    color: currentColor;
}
.text-emerald-700 {
    --tw-text-opacity: 1;
    color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}
.text-gray-300 {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
    --tw-text-opacity: 1;
    color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-green-700 {
    --tw-text-opacity: 1;
    color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}
.text-green-800 {
    --tw-text-opacity: 1;
    color: rgb(22 101 52 / var(--tw-text-opacity, 1));
}
.text-info {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}
.text-ok {
    --tw-text-opacity: 1;
    color: rgb(var(--ok) / var(--tw-text-opacity, 1));
}
.text-orange-800 {
    --tw-text-opacity: 1;
    color: rgb(154 52 18 / var(--tw-text-opacity, 1));
}
.text-purple-800 {
    --tw-text-opacity: 1;
    color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}
.text-red-700 {
    --tw-text-opacity: 1;
    color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.text-rose-700 {
    --tw-text-opacity: 1;
    color: rgb(190 18 60 / var(--tw-text-opacity, 1));
}
.text-secondary {
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}
.text-sky-600 {
    --tw-text-opacity: 1;
    color: rgb(2 132 199 / var(--tw-text-opacity, 1));
}
.text-violet-600 {
    --tw-text-opacity: 1;
    color: rgb(124 58 237 / var(--tw-text-opacity, 1));
}
.text-warn {
    --tw-text-opacity: 1;
    color: rgb(var(--warn) / var(--tw-text-opacity, 1));
}
.text-white {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.underline {
    text-decoration-line: underline;
}
.line-through {
    text-decoration-line: line-through;
}
.underline-offset-4 {
    text-underline-offset: 4px;
}
.accent-primary {
    accent-color: #3b82f6;
}
.opacity-0 {
    opacity: 0;
}
.opacity-100 {
    opacity: 1;
}
.opacity-40 {
    opacity: 0.4;
}
.opacity-50 {
    opacity: 0.5;
}
.opacity-60 {
    opacity: 0.6;
}
.opacity-75 {
    opacity: 0.75;
}
.opacity-90 {
    opacity: 0.9;
}
.shadow-e1 {
    --tw-shadow: var(--e-1);
    --tw-shadow-colored: var(--e-1);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-e2 {
    --tw-shadow: var(--e-2);
    --tw-shadow-colored: var(--e-2);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-e3 {
    --tw-shadow: var(--e-3);
    --tw-shadow-colored: var(--e-3);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-none {
    --tw-shadow: 0 0 #0000;
    --tw-shadow-colored: 0 0 #0000;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.outline-none {
    outline: 2px solid transparent;
    outline-offset: 2px;
}
.outline {
    outline-style: solid;
}
.outline-dashed {
    outline-style: dashed;
}
.outline-2 {
    outline-width: 2px;
}
.ring {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-1 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-2 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-black {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1));
}
.ring-cas-tint {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}
.ring-opacity-5 {
    --tw-ring-opacity: 0.05;
}
.blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.drop-shadow {
    --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.invert {
    --tw-invert: invert(100%);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.sepia {
    --tw-sepia: sepia(100%);
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
    filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.backdrop-blur-sm {
    --tw-backdrop-blur: blur(4px);
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-filter {
    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-\[grid-template-rows\] {
    transition-property: grid-template-rows;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-colors {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-150 {
    transition-duration: 150ms;
}
.duration-200 {
    transition-duration: 200ms;
}
.duration-300 {
    transition-duration: 300ms;
}
.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ease-in-out {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

/* Client-specific styling */

/* Compact job row styling */
.job-row {
    height: 22px;
    max-height: 22px;
}

.job-row td {
    padding-top: 2px;
    padding-bottom: 2px;
    vertical-align: middle;
}

.job-row .text-sm {
    font-size: 0.8125rem; /* Slightly smaller than default text-sm */
    line-height: 1.2;
}

.job-row .text-xs {
    font-size: 0.6875rem; /* Slightly smaller than default text-xs */
    line-height: 1.1;
}

.placeholder\:text-gray-400::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.placeholder\:text-gray-400::placeholder {
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.last\:mb-0:last-child {
    margin-bottom: 0px;
}

.last\:border-r-0:last-child {
    border-right-width: 0px;
}

.hover\:border-cas-tint:hover {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
}

.hover\:bg-bad\/10:hover {
    background-color: rgb(var(--bad) / 0.1);
}

.hover\:bg-bad\/80:hover {
    background-color: rgb(var(--bad) / 0.8);
}

.hover\:bg-bad\/90:hover {
    background-color: rgb(var(--bad) / 0.9);
}

.hover\:bg-black\/10:hover {
    background-color: rgb(0 0 0 / 0.1);
}

.hover\:bg-cas-tint:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}

.hover\:bg-cas-tint-dark:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint-dark) / var(--tw-bg-opacity, 1));
}

.hover\:bg-cas-tint\/10:hover {
    background-color: rgb(var(--cas-tint) / 0.1);
}

.hover\:bg-cas-tint\/80:hover {
    background-color: rgb(var(--cas-tint) / 0.8);
}

.hover\:bg-gray-100:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-200:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-50:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-700:hover {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.hover\:bg-ok\/20:hover {
    background-color: rgb(var(--ok) / 0.2);
}

.hover\:bg-ok\/80:hover {
    background-color: rgb(var(--ok) / 0.8);
}

.hover\:bg-warn\/80:hover {
    background-color: rgb(var(--warn) / 0.8);
}

.hover\:bg-warn\/90:hover {
    background-color: rgb(var(--warn) / 0.9);
}

.hover\:bg-opacity-90:hover {
    --tw-bg-opacity: 0.9;
}

.hover\:text-cas-tint:hover {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint) / var(--tw-text-opacity, 1));
}

.hover\:text-cas-tint-dark:hover {
    --tw-text-opacity: 1;
    color: rgb(var(--cas-tint-dark) / var(--tw-text-opacity, 1));
}

.hover\:text-gray-600:hover {
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-900:hover {
    --tw-text-opacity: 1;
    color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.hover\:text-primary:hover {
    --tw-text-opacity: 1;
    color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}

.hover\:text-secondary:hover {
    --tw-text-opacity: 1;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.hover\:underline:hover {
    text-decoration-line: underline;
}

.hover\:opacity-100:hover {
    opacity: 1;
}

.hover\:opacity-80:hover {
    opacity: 0.8;
}

.hover\:opacity-90:hover {
    opacity: 0.9;
}

.focus\:border-bad:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--bad) / var(--tw-border-opacity, 1));
}

.focus\:border-cas-tint:focus {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
}

.focus\:bg-gray-50:focus {
    --tw-bg-opacity: 1;
    background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.focus\:bg-info\/10:focus {
    background-color: rgb(var(--cas-tint) / 0.1);
}

.focus\:text-gray-600:focus {
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.focus\:ring-1:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-2:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-cas-tint:focus {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(var(--cas-tint) / var(--tw-ring-opacity, 1));
}

.focus\:ring-cas-tint\/20:focus {
    --tw-ring-color: rgb(var(--cas-tint) / 0.2);
}

.disabled\:cursor-not-allowed:disabled {
    cursor: not-allowed;
}

.disabled\:bg-gray-400:disabled {
    --tw-bg-opacity: 1;
    background-color: rgb(156 163 175 / var(--tw-bg-opacity, 1));
}

.disabled\:opacity-40:disabled {
    opacity: 0.4;
}

.disabled\:opacity-50:disabled {
    opacity: 0.5;
}

.disabled\:hover\:bg-transparent:hover:disabled {
    background-color: transparent;
}

.group[open] .group-open\:rotate-90 {
    --tw-rotate: 90deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:scale-100 {
    --tw-scale-x: 1;
    --tw-scale-y: 1;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group:hover .group-hover\:scale-150 {
    --tw-scale-x: 1.5;
    --tw-scale-y: 1.5;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.group\/job:hover .group-hover\/job\:opacity-0 {
    opacity: 0;
}

.group\/job:hover .group-hover\/job\:opacity-100 {
    opacity: 1;
}

.group\/pinhdr:hover .group-hover\/pinhdr\:opacity-100 {
    opacity: 1;
}

.group\/thead:hover .group-hover\/thead\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

.group:hover .group-hover\:ring-white {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1));
}

.peer:checked ~ .peer-checked\:border-cas-tint {
    --tw-border-opacity: 1;
    border-color: rgb(var(--cas-tint) / var(--tw-border-opacity, 1));
}

.peer:checked ~ .peer-checked\:bg-cas-tint {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--cas-tint) / var(--tw-bg-opacity, 1));
}

.peer:focus-visible ~ .peer-focus-visible\:ring-2 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.dark\:border-bad\/40:is(.dark *) {
    border-color: rgb(var(--bad) / 0.4);
}

.dark\:border-cas-tint\/30:is(.dark *) {
    border-color: rgb(var(--cas-tint) / 0.3);
}

.dark\:border-gray-600:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}

.dark\:border-gray-700:is(.dark *) {
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}

.dark\:bg-bad\/20:is(.dark *) {
    background-color: rgb(var(--bad) / 0.2);
}

.dark\:bg-black:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}

.dark\:bg-blue-900\/30:is(.dark *) {
    background-color: rgb(30 58 138 / 0.3);
}

.dark\:bg-cas-tint\/20:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}

.dark\:bg-gray-500:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(107 114 128 / var(--tw-bg-opacity, 1));
}

.dark\:bg-gray-600:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}

.dark\:bg-gray-700:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.dark\:bg-gray-700\/50:is(.dark *) {
    background-color: rgb(55 65 81 / 0.5);
}

.dark\:bg-gray-800:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dark\:bg-gray-900:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}

.dark\:bg-green-900\/30:is(.dark *) {
    background-color: rgb(20 83 45 / 0.3);
}

.dark\:bg-ok:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(var(--ok) / var(--tw-bg-opacity, 1));
}

.dark\:bg-ok\/20:is(.dark *) {
    background-color: rgb(var(--ok) / 0.2);
}

.dark\:bg-orange-900\/30:is(.dark *) {
    background-color: rgb(124 45 18 / 0.3);
}

.dark\:bg-purple-900\/30:is(.dark *) {
    background-color: rgb(88 28 135 / 0.3);
}

.dark\:bg-warn\/20:is(.dark *) {
    background-color: rgb(var(--warn) / 0.2);
}

.dark\:bg-opacity-75:is(.dark *) {
    --tw-bg-opacity: 0.75;
}

.dark\:text-gray-100:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}

.dark\:text-gray-300:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.dark\:text-gray-50:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.dark\:text-gray-500:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.dark\:text-green-300:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(134 239 172 / var(--tw-text-opacity, 1));
}

.dark\:text-red-300:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(252 165 165 / var(--tw-text-opacity, 1));
}

.dark\:text-white:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.dark\:ring-gray-700:is(.dark *) {
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity, 1));
}

.dark\:placeholder\:text-gray-500:is(.dark *)::-moz-placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.dark\:placeholder\:text-gray-500:is(.dark *)::placeholder {
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.dark\:hover\:bg-gray-700:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
}

.dark\:hover\:bg-gray-700\/40:hover:is(.dark *) {
    background-color: rgb(55 65 81 / 0.4);
}

.dark\:hover\:bg-gray-800:hover:is(.dark *) {
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.dark\:hover\:text-gray-300:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.dark\:focus\:bg-info\/20:focus:is(.dark *) {
    background-color: rgb(var(--cas-tint) / 0.2);
}

@media not all and (min-width: 768px) {
    .max-md\:fixed {
        position: fixed;
    }
    .max-md\:inset-y-0 {
        top: 0px;
        bottom: 0px;
    }
    .max-md\:left-0 {
        left: 0px;
    }
    .max-md\:z-40 {
        z-index: 40;
    }
    .max-md\:block {
        display: block;
    }
    .max-md\:hidden {
        display: none;
    }
    .max-md\:\!w-64 {
        width: 16rem !important;
    }
    .max-md\:w-full {
        width: 100%;
    }
    .max-md\:max-w-full {
        max-width: 100%;
    }
    .max-md\:translate-x-0 {
        --tw-translate-x: 0px;
        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
    }
    .max-md\:gap-3 {
        gap: 0.75rem;
    }
    .max-md\:overflow-x-auto {
        overflow-x: auto;
    }
    .max-md\:whitespace-nowrap {
        white-space: nowrap;
    }
    .max-md\:border-r-0 {
        border-right-width: 0px;
    }
    .max-md\:bg-white {
        --tw-bg-opacity: 1;
        background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    }
    .max-md\:p-3 {
        padding: 0.75rem;
    }
    .max-md\:px-3 {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .max-md\:px-4 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (min-width: 640px) {
    .sm\:my-8 {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }
    .sm\:mt-0 {
        margin-top: 0px;
    }
    .sm\:block {
        display: block;
    }
    .sm\:inline-block {
        display: inline-block;
    }
    .sm\:flex {
        display: flex;
    }
    .sm\:h-screen {
        height: 100vh;
    }
    .sm\:w-auto {
        width: auto;
    }
    .sm\:w-full {
        width: 100%;
    }
    .sm\:max-w-2xl {
        max-width: 42rem;
    }
    .sm\:max-w-4xl {
        max-width: 56rem;
    }
    .sm\:max-w-6xl {
        max-width: 72rem;
    }
    .sm\:max-w-lg {
        max-width: 32rem;
    }
    .sm\:max-w-sm {
        max-width: 24rem;
    }
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .sm\:grid-cols-\[8rem_minmax\(0\2c 1fr\)\] {
        grid-template-columns: 8rem minmax(0,1fr);
    }
    .sm\:flex-row-reverse {
        flex-direction: row-reverse;
    }
    .sm\:gap-3 {
        gap: 0.75rem;
    }
    .sm\:p-0 {
        padding: 0px;
    }
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .sm\:align-middle {
        vertical-align: middle;
    }
}

@media (min-width: 768px) {
    .md\:flex {
        display: flex;
    }
    .md\:inline-flex {
        display: inline-flex;
    }
    .md\:grid {
        display: grid;
    }
    .md\:hidden {
        display: none;
    }
    .md\:w-\[340px\] {
        width: 340px;
    }
    .md\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:sticky {
        position: sticky;
    }
    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .lg\:grid-cols-\[16\.5rem_minmax\(0\2c 1fr\)\] {
        grid-template-columns: 16.5rem minmax(0,1fr);
    }
    .lg\:grid-cols-\[9rem_minmax\(0\2c 1fr\)\] {
        grid-template-columns: 9rem minmax(0,1fr);
    }
    .lg\:pt-0 {
        padding-top: 0px;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .xl\:grid-cols-\[minmax\(0\2c 2fr\)_minmax\(0\2c 1fr\)\] {
        grid-template-columns: minmax(0,2fr) minmax(0,1fr);
    }
}

@media print {
    .print\:block {
        display: block;
    }
}
