/* =========================================================================
   AEV Dealer Portal — corporate console design system
   Fluent-inspired: top app bar + left rail, cards on a quiet canvas,
   square-with-rounded-edges geometry (8px surfaces, 5px controls, 4px
   badges — no pill shapes for text, badges, chips, buttons, inputs,
   avatars or status marks). Neutrals derive from Radzen's own text/
   background tokens via color-mix, so light and dark themes both work
   with the appearance toggle.

   Brand: AEV blue is the accent. Filled blue buttons mark the PRIMARY action;
   destructive actions retain their semantic red and use
   ButtonStyle.Danger + Variant.Outlined, and error banners always carry an
   icon + text, never colour alone.
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
    /* AEV reference portal blues; white button labels remain legible in both themes. */
    --adp-accent: #1976d2;
    --adp-accent-strong: #1565c0;
    --adp-accent-light: #1e88e5;
    --adp-accent-soft: color-mix(in srgb, var(--adp-accent) 13%, transparent);
    --adp-accent-faint: color-mix(in srgb, var(--adp-accent) 8%, transparent);

    /* Link ink: blends 70% accent toward the theme's text colour, so it darkens on
       light and lightens on dark instead of vanishing (softer than the raw brand blue). */
    --adp-link: color-mix(in srgb, var(--adp-accent) 70%, var(--rz-text-color));
    --adp-link-hover: color-mix(in srgb, var(--adp-accent) 55%, var(--rz-text-color));

    /* Semantic status. */
    --adp-ok: #16a34a;
    --adp-warn: #d97706;
    --adp-danger: #dc2626;
    --adp-info: #0284c7;

    /* XA unit statuses retain their own hue across every list and theme. */
    --adp-unit-scheduled: #1976d2;
    --adp-unit-allocated: #7c3aed;
    --adp-unit-committed: #c0268c;
    --adp-unit-confirmed: #16a34a;
    --adp-unit-released: #00897b;
    --adp-unit-frozen: #0891b2;
    --adp-unit-backlog: #d97706;
    --adp-unit-shipped: #7b8f12;
    --adp-unit-cancelled: #dc2626;

    /* Geometry: squared with rounded edges — three steps, no pills. */
    --adp-radius-lg: 8px;   /* cards, tiles, dialogs, overlays  */
    --adp-radius: 5px;      /* buttons, inputs, nav items       */
    --adp-radius-sm: 4px;   /* badges, chips, count marks       */
    --rz-border-radius: 5px;

    /* Theme-adaptive neutrals. */
    --adp-border: color-mix(in srgb, var(--rz-text-color) 12%, transparent);
    --adp-border-strong: color-mix(in srgb, var(--rz-text-color) 24%, transparent);
    --adp-dim: color-mix(in srgb, var(--rz-text-color) 65%, transparent);
    --adp-faint: color-mix(in srgb, var(--rz-text-color) 44%, transparent);
    --adp-hover: color-mix(in srgb, var(--rz-text-color) 5%, transparent);
    --adp-surface: color-mix(in srgb, var(--rz-text-color) 2%, var(--rz-body-background-color));
    --adp-inset: color-mix(in srgb, var(--rz-text-color) 4.5%, var(--rz-body-background-color));

    /* Elevation. */
    --adp-shadow-card: 0 1px 2px color-mix(in srgb, #000 5%, transparent);
    --adp-shadow-pop: 0 6px 20px -6px color-mix(in srgb, #000 22%, transparent);
    --adp-shadow-overlay: 0 16px 40px -12px color-mix(in srgb, #000 32%, transparent),
                         0 4px 14px color-mix(in srgb, #000 14%, transparent);

    /* Typography — Windows-first corporate stack. */
    --adp-font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
               "Helvetica Neue", Arial, sans-serif;
    --adp-font-mono: "Cascadia Mono", Consolas, "Courier New", monospace;
    --rz-text-font-family: var(--adp-font);

    /* Layout. */
    --adp-topbar-h: 52px;
    --adp-sidenav-w: 224px;
    --adp-sidenav-collapsed-w: 58px;

    /* Recolor Radzen primary to the brand accent. */
    --rz-primary: var(--adp-accent);
    --rz-primary-dark: var(--adp-accent-strong);
    --rz-primary-light: var(--adp-accent-light);
    --rz-primary-lighter: var(--adp-accent-soft);
    --rz-on-primary: #ffffff; /* keep white ink on filled AEV blue in both themes */

    /* Grid hover/selection: material3 paints these on cells, so recolor the
       tokens (opaque, so they cover cleanly) instead of fighting the rows. */
    --rz-grid-hover-background-color: color-mix(in srgb, var(--rz-text-color) 6%, var(--rz-body-background-color));
    --rz-grid-selected-background-color: color-mix(in srgb, var(--adp-accent) 13%, var(--rz-body-background-color));

    /* Radzen overlay geometry. */
    --rz-dialog-border-radius: var(--adp-radius-lg);
    --rz-dialog-shadow: var(--adp-shadow-overlay);
    --rz-notification-border-radius: var(--adp-radius-lg);

    /* Radzen control geometry: square every corner the theme rounds into a pill. */
    --rz-button-border-radius: var(--adp-radius);
    --rz-input-border-radius: var(--adp-radius);
    --rz-checkbox-border-radius: var(--adp-radius-sm);
    --rz-checkbox-checked-icon-border-radius: 2px;
    --rz-radio-border-radius: var(--adp-radius-sm);
    --rz-chip-border-radius: var(--adp-radius-sm);
    --rz-badge-border-radius: var(--adp-radius-sm);
    --rz-badge-pill-border-radius: var(--adp-radius-sm);
    --rz-pager-button-border-radius: var(--adp-radius);
    --rz-tabs-border-radius: var(--adp-radius);
    --rz-card-border-radius: var(--adp-radius-lg);
    --rz-panel-border-radius: var(--adp-radius-lg);
    --rz-menu-item-border-radius: var(--adp-radius);
    --rz-panel-menu-item-border-radius: var(--adp-radius);
    --rz-profile-menu-border-radius: var(--adp-radius);
    --rz-grid-border-radius: var(--adp-radius);

    font-size: var(--rz-root-font-size);
}

html, body {
    margin: 0;
    height: 100%;
}

body {
    font-family: var(--adp-font);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--adp-link); text-decoration: none; }
a:hover, a:focus { color: var(--adp-link-hover); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 2px; border-radius: 2px; }

/* Quiet, consistent scrollbars. */
* { scrollbar-width: thin; scrollbar-color: var(--adp-border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: var(--adp-border-strong);
    border-radius: 8px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

/* ============================= Shell / top bar ============================ */

.adp-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.adp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--adp-topbar-h);
    padding: 0 20px 0 22px;
    background: var(--adp-surface);
    border-bottom: 1px solid var(--adp-border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.adp-brand { display: flex; align-items: center; gap: 12px; min-width: 0; color: inherit; }
.adp-brand:hover, .adp-brand:focus { color: inherit; text-decoration: none; }
.adp-brand:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 4px; border-radius: var(--adp-radius); }
.adp-brand-mark { height: 30px; width: calc(30px * 300 / 102); object-fit: contain; display: block; flex: 0 0 auto; }

.adp-topbar-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.adp-topbar-divider { width: 1px; height: 22px; background: var(--adp-border); }

/* Quick navigation is available in the header, including on touch-sized screens. */
.adp-quick-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    background: transparent;
    color: var(--adp-dim);
    font: 500 0.78rem var(--adp-font);
    cursor: pointer;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.adp-quick-nav-trigger:hover { background: var(--adp-hover); color: var(--rz-text-color); }
.adp-quick-nav-trigger:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 2px; }
.adp-quick-nav-trigger:disabled { opacity: 0.5; cursor: default; }
.adp-quick-nav-trigger .rzi { font-size: 1.1rem; }
.adp-quick-nav-trigger kbd, .adp-quick-nav-hints kbd {
    display: inline-block;
    padding: 1px 4px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius-sm);
    background: var(--adp-inset);
    color: var(--adp-dim);
    font: 500 0.68rem var(--adp-font-mono);
    line-height: 1.4;
}
.adp-quick-nav { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adp-quick-nav .adp-search-input { min-height: 42px; font-size: 0.9rem; }
.adp-quick-nav-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--adp-dim); font-size: 0.73rem; }
.adp-quick-nav-results { display: flex; flex-direction: column; gap: 4px; }
.adp-quick-nav-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: var(--adp-radius);
    cursor: pointer;
    transition: background-color 0.1s ease, border-color 0.1s ease;
}
.adp-quick-nav-result:hover { background: var(--adp-hover); }
.adp-quick-nav-result.is-active { background: var(--adp-accent-faint); border-color: color-mix(in srgb, var(--adp-accent) 35%, transparent); }
.adp-quick-nav-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); color: var(--adp-dim); background: var(--adp-surface); }
.adp-quick-nav-icon .rzi { font-size: 1.15rem; }
.adp-quick-nav-result.is-active .adp-quick-nav-icon { color: var(--adp-link); border-color: color-mix(in srgb, var(--adp-accent) 25%, transparent); }
.adp-quick-nav-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.adp-quick-nav-title { color: var(--rz-text-color); font-size: 0.88rem; font-weight: 650; }
.adp-quick-nav-description { font-size: 0.76rem; color: var(--adp-dim); line-height: 1.4; }
.adp-quick-nav-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; font-size: 0.68rem; color: var(--adp-dim); }
.adp-quick-nav-current { color: var(--adp-link); font-weight: 600; }
.adp-quick-nav-result .adp-quick-nav-arrow { font-size: 1rem; color: var(--adp-dim); }
.adp-quick-nav-hints { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.adp-quick-nav-hints > span { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; }
.adp-quick-nav-touch-hint, .adp-quick-nav-touch-close.rz-button { display: none; }
@container (max-width: 460px) {
    .adp-quick-nav-result { flex-wrap: wrap; gap: 7px 10px; padding: 10px; }
    .adp-quick-nav-meta { flex-basis: 100%; flex-direction: row; align-items: center; padding-left: 44px; }
    .adp-quick-nav-result .adp-quick-nav-arrow { display: none; }
}
@media (max-width: 1024px) {
    .adp-quick-nav-trigger-label { display: none; }
}
@media (max-width: 640px) {
    .adp-quick-nav-trigger { width: 32px; height: 32px; justify-content: center; padding: 0; border-color: transparent; }
    .adp-quick-nav-trigger kbd { display: none; }
    .adp-topbar-actions { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .adp-quick-nav-trigger, .adp-quick-nav-result { transition: none; }
}

/* Generic top-bar status chip (count + label + status mark). */
.adp-conn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    font-size: 0.76rem;
    color: var(--adp-dim);
}
.adp-conn-count {
    font-weight: 700;
    color: var(--rz-text-color);
    font-variant-numeric: tabular-nums;
}
.adp-conn-label { font-weight: 500; }

/* Appearance toggle: a ghost icon button, squared like everything else. */
.adp-topbar .rz-toggle-button,
.adp-topbar .rz-button.rz-button-icon-only {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    background: transparent !important;
    color: var(--adp-dim) !important;
    border-radius: var(--adp-radius) !important;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.adp-topbar .rz-toggle-button:hover,
.adp-topbar .rz-button.rz-button-icon-only:hover {
    background: var(--adp-hover) !important;
    color: var(--rz-text-color) !important;
}

/* Top-bar user block. */
.adp-user { display: flex; align-items: center; gap: 9px; min-width: 0; }
.adp-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.adp-signout { display: inline-flex; margin: 0; }

/* Avatar: square-rounded initials tile (never a circle). */
.adp-avatar {
    width: 28px;
    height: 28px;
    border-radius: var(--adp-radius);
    background: var(--adp-accent-soft);
    color: color-mix(in srgb, var(--adp-accent) 80%, var(--rz-text-color));
    display: inline-grid;
    place-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex: 0 0 auto;
    user-select: none;
}
.adp-avatar-lg { width: 40px; height: 40px; font-size: 0.9rem; border-radius: var(--adp-radius-lg); }

/* Ghost icon button (32px square-rounded). */
.adp-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: var(--adp-radius);
    color: var(--adp-dim);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    padding: 0;
    flex: 0 0 auto;
    font-family: inherit;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.adp-icon-btn .rzi { font-size: 1.2rem; }
.adp-icon-btn:hover { background: var(--adp-hover); color: var(--rz-text-color); }
.adp-icon-btn:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 1px; }
.adp-icon-btn:disabled { opacity: 0.5; cursor: default; background: transparent; }

.adp-main { flex: 1; min-height: 0; }

/* ========================== Workspace: rail + content ===================== */

.adp-workspace { display: flex; align-items: stretch; flex: 1 1 auto; min-height: 0; }

.adp-sidenav-frame {
    --adp-nav-width: var(--adp-sidenav-collapsed-w);
    --adp-nav-label-opacity: 0;
    --adp-nav-label-shift: -4px;
    --adp-nav-rule-opacity: 1;
    --adp-nav-shadow: none;
    width: var(--adp-sidenav-collapsed-w);
    flex: 0 0 var(--adp-sidenav-collapsed-w);
    align-self: flex-start;
    position: sticky;
    top: var(--adp-topbar-h);
    height: calc(100vh - var(--adp-topbar-h));
    height: calc(100dvh - var(--adp-topbar-h));
    z-index: 20;
    /* Keep this wrapper visible: its child expands over the content without resizing it. */
    overflow: visible;
}

.adp-sidenav-frame.is-open,
.adp-sidenav-frame:has(a:focus-visible) {
    --adp-nav-width: var(--adp-sidenav-w);
    --adp-nav-label-opacity: 1;
    --adp-nav-label-shift: 0px;
    --adp-nav-rule-opacity: 0;
    --adp-nav-shadow: var(--adp-shadow-pop);
}

@media (hover: hover) {
    .adp-sidenav-frame:hover {
        --adp-nav-width: var(--adp-sidenav-w);
        --adp-nav-label-opacity: 1;
        --adp-nav-label-shift: 0px;
        --adp-nav-rule-opacity: 0;
        --adp-nav-shadow: var(--adp-shadow-pop);
    }
}

.adp-sidenav {
    width: var(--adp-nav-width);
    max-width: calc(100vw - 24px);
    height: 100%;
    border-right: 1px solid var(--adp-border);
    background: var(--adp-surface);
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    box-shadow: var(--adp-nav-shadow);
    transition: width 180ms ease-out, box-shadow 180ms ease-out;
}

.adp-nav-links { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; }
.adp-nav-links > .adp-nav-item { flex-shrink: 0; }
.adp-nav-footer { padding-top: 14px; flex: 0 0 auto; }
.adp-nav-footer .adp-nav-item { margin: 0; }

.adp-nav-group {
    display: flex;
    align-items: flex-end;
    flex: 0 0 34px;
    padding: 0 10px 4px;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--adp-faint);
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}
.adp-nav-group::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 1px;
    background: var(--adp-border);
    opacity: var(--adp-nav-rule-opacity);
    transition: opacity 120ms ease-out;
}

.adp-nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 38px;
    flex-shrink: 0;
    padding: 9px 10px;
    overflow: hidden;
    border: none;
    background: transparent;
    border-radius: var(--adp-radius);
    color: var(--adp-dim);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
    position: relative;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.adp-nav-item .rzi { font-size: 1.2rem; width: 20px; flex: 0 0 20px; text-align: center; }
.adp-nav-item:hover, .adp-nav-item:focus { background: var(--adp-hover); color: var(--rz-text-color); text-decoration: none; }
.adp-nav-item:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: -2px; }
.adp-nav-item.active {
    background: var(--adp-accent-faint);
    color: var(--rz-text-color);
    font-weight: 600;
}
.adp-nav-item.active .rzi { color: var(--adp-accent); }
.adp-nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 22%;
    bottom: 22%;
    width: 3px;
    border-radius: 2px;
    background: var(--adp-accent);
}
.adp-nav-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: var(--adp-nav-label-opacity);
    transform: translateX(var(--adp-nav-label-shift));
    transition: opacity 120ms ease-out, transform 180ms ease-out;
}
.adp-nav-toggle, .adp-nav-dismiss { display: none; }
@media (any-pointer: coarse), (hover: none) {
    .adp-nav-toggle { display: flex; }
    .adp-nav-dismiss {
        display: block;
        position: fixed;
        inset: var(--adp-topbar-h) 0 0 var(--adp-sidenav-collapsed-w);
        z-index: 19;
        border: 0;
        padding: 0;
        background: transparent;
        cursor: default;
    }
    .adp-nav-item { min-height: 44px; }
}

/* The content pane is the scroll container: viewport height minus the top bar. This is
   the top of the fill chain (.adp-content > .adp-page > .adp-fill-card > .adp-card-body >
   .adp-grid-fill) that lets a virtualized grid fill the remaining height. */
.adp-content {
    flex: 1 1 auto;
    min-width: 0;
    height: calc(100vh - var(--adp-topbar-h));
    overflow: auto;
    padding: 18px 26px 22px;
    display: flex;
    flex-direction: column;
}
.adp-content:focus { outline: none; } /* Escape from navigation lands on this non-tab-stop landmark. */

/* Routed page wrapper: keyed on the URL so it remounts (and eases in) per navigation. */
.adp-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    animation: adp-page-in 180ms ease-out both;
}
@keyframes adp-page-in { from { opacity: 0; transform: translateY(4px); } }

/* Shared route authorization state; stays inside the workspace, leaving navigation usable. */
.adp-route-loading {
    flex: 1 1 auto;
    min-height: calc(100vh - var(--adp-topbar-h) - 48px);
    min-height: calc(100dvh - var(--adp-topbar-h) - 48px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    color: var(--adp-dim);
    font-size: 0.875rem;
    text-align: center;
}
.adp-route-loading-spinner {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    fill: none;
    stroke-width: 3;
}
.adp-route-loading-track { stroke: var(--adp-border); }
.adp-route-loading-arc {
    stroke: var(--adp-accent);
    stroke-linecap: round;
    stroke-dasharray: 36 84;
    transform-origin: center;
    animation: adp-route-loading-spin 0.9s linear infinite;
}
@keyframes adp-route-loading-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .adp-route-loading-arc { animation: none; }
}

/* Keep-alive views: all stay mounted (state + live updates survive), only one shown. */
.adp-view { display: none; }
.adp-view.active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.adp-page-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    flex: 0 0 auto;
}
.adp-page-head-text { min-width: 0; }
.adp-page-head h1 { margin: 0; font-size: 1.22rem; font-weight: 650; letter-spacing: -0.015em; }
.adp-page-head h1:focus { outline: none; } /* FocusOnNavigate lands here programmatically */
.adp-page-head p { margin: 4px 0 0; color: var(--adp-dim); font-size: 0.82rem; }
.adp-page-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }

/* ================================ Cards ================================= */

.adp-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--adp-border);
    background: var(--adp-surface);
    border-radius: var(--adp-radius-lg);
    box-shadow: var(--adp-shadow-card);
}

.rz-card {
    border-radius: var(--adp-radius-lg) !important;
    box-shadow: var(--adp-shadow-card) !important;
    border: 1px solid var(--adp-border);
    background: var(--adp-surface);
}

.adp-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-bottom: 1px solid var(--adp-border);
}

.adp-card-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 14px 0;
}

.adp-card-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 12px 14px 14px;
}

.adp-card-inset { padding: 12px 14px 0; }
.adp-card-inset-lg { padding: 16px 18px; }
.adp-card-meta { font-size: 0.75rem; color: var(--adp-dim); }

/* Right-aligned action cluster inside a card head / page head. */
.adp-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-inline-start: auto;
}

/* Generic toolbar row. */
.adp-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.adp-fill-card { flex: 1 1 auto; min-height: 0; }

.adp-section-title {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--adp-dim);
}

.adp-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

.adp-count-badge {
    font-size: 0.7rem;
    font-weight: 650;
    color: var(--adp-dim);
    background: var(--adp-inset);
    border: 1px solid var(--adp-border);
    padding: 1px 7px;
    border-radius: var(--adp-radius-sm);
    line-height: 1.5;
    min-width: 24px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.adp-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--adp-dim);
    padding: 3px 9px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius-sm);
    background: transparent;
    line-height: 1.5;
}
.adp-chip-mono { font-family: var(--adp-font-mono); font-weight: 500; }

/* Read-only XA statuses: tinted surfaces, square marks and labels preserve meaning without color. */
.adp-unit-status {
    --adp-unit-status-accent: var(--rz-text-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 6px;
    border: 1px solid color-mix(in srgb, var(--adp-unit-status-accent) 38%, var(--adp-surface));
    border-radius: var(--adp-radius-sm);
    background: color-mix(in srgb, var(--adp-unit-status-accent) 12%, var(--adp-surface));
    color: color-mix(in srgb, var(--adp-unit-status-accent) 40%, var(--rz-text-color));
    font-size: 0.64rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.045em;
    white-space: nowrap;
}
.adp-unit-status::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--adp-unit-status-accent);
}
.adp-unit-status-scheduled { --adp-unit-status-accent: var(--adp-unit-scheduled); }
.adp-unit-status-allocated { --adp-unit-status-accent: var(--adp-unit-allocated); }
.adp-unit-status-committed { --adp-unit-status-accent: var(--adp-unit-committed); }
.adp-unit-status-confirmed { --adp-unit-status-accent: var(--adp-unit-confirmed); }
.adp-unit-status-released { --adp-unit-status-accent: var(--adp-unit-released); }
.adp-unit-status-frozen { --adp-unit-status-accent: var(--adp-unit-frozen); }
.adp-unit-status-backlog { --adp-unit-status-accent: var(--adp-unit-backlog); }
.adp-unit-status-shipped { --adp-unit-status-accent: var(--adp-unit-shipped); }
.adp-unit-status-cancelled { --adp-unit-status-accent: var(--adp-unit-cancelled); }
.adp-unit-status-unknown { border-color: var(--adp-border); background: var(--adp-inset); }
.adp-unit-status-unknown::before { background: var(--adp-faint); }

.adp-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: color-mix(in srgb, var(--adp-ok) 60%, var(--rz-text-color));
}
.adp-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--adp-ok);
    animation: adp-pulse 2.4s ease-in-out infinite;
}
@keyframes adp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.adp-link-btn {
    display: inline-block;
    background: none;
    border: none;
    padding: 2px 4px;
    color: var(--adp-link);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--adp-radius-sm);
    text-decoration: none;
    transition: color 0.1s ease;
}
.adp-link-btn:hover { text-decoration: underline; color: var(--adp-link-hover); }
.adp-link-btn:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 1px; }

.adp-field-label {
    font-size: 0.7rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--adp-dim);
}

.adp-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    background: var(--adp-inset);
    color: var(--adp-dim);
    font-size: 0.78rem;
    line-height: 1.45;
    max-width: 560px;
    margin-top: 10px;
}
.adp-note .rzi { font-size: 1rem; color: var(--adp-accent); flex: 0 0 auto; }
.adp-note-warn { border-color: var(--adp-warn); color: color-mix(in srgb, var(--adp-warn) 75%, var(--rz-text-color)); }
.adp-note-warn .rzi { color: var(--adp-warn); }

.adp-flex-spacer { flex: 1 1 auto; }
.adp-grow { flex: 1 1 auto; min-width: 200px; }
.adp-stack > * + * { margin-top: 14px; }
.adp-mono { font-family: var(--adp-font-mono); font-size: 0.75rem; word-break: break-all; }

/* ============================== Inline alerts ============================ */

.adp-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid var(--adp-border);
    border-inline-start: 3px solid var(--adp-info);
    border-radius: var(--adp-radius);
    background: var(--adp-surface);
    color: var(--rz-text-color);
    font-size: 0.8rem;
    line-height: 1.45;
    margin: 0;
}
.adp-alert-icon { font-size: 1.05rem !important; flex: 0 0 auto; margin-top: 1px; color: var(--adp-info); }
.adp-alert-text { min-width: 0; overflow-wrap: anywhere; }
.adp-alert-info { border-inline-start-color: var(--adp-info); }
.adp-alert-info .adp-alert-icon { color: var(--adp-info); }
.adp-alert-success { border-inline-start-color: var(--adp-ok); }
.adp-alert-success .adp-alert-icon { color: var(--adp-ok); }
.adp-alert-warn { border-inline-start-color: var(--adp-warn); }
.adp-alert-warn .adp-alert-icon { color: var(--adp-warn); }
.adp-alert-danger { border-inline-start-color: var(--adp-danger); }
.adp-alert-danger .adp-alert-icon { color: var(--adp-danger); }

/* ============================== Form primitives ========================== */

.adp-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.adp-field > .adp-field-label { display: block; }
.adp-field .rz-textbox,
.adp-field .rz-inputtext,
.adp-field .rz-dropdown,
.adp-field .rz-lookup,
.adp-field .rz-numeric,
.adp-field .rz-textarea,
.adp-field .rz-datepicker,
.adp-field .rz-password { width: 100%; }
.adp-field-help { font-size: 0.74rem; color: var(--adp-dim); line-height: 1.4; }
.adp-field-error {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.74rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--adp-danger) 85%, var(--rz-text-color));
}
.adp-field-error .rzi { font-size: 0.95rem; flex: 0 0 auto; }
.adp-field-error:empty { display: none; }
.adp-field.invalid .rz-textbox,
.adp-field.invalid .rz-inputtext,
.adp-field.invalid .rz-dropdown,
.adp-field.invalid .rz-textarea,
.adp-field .rz-textbox.invalid,
.adp-field .rz-inputtext.invalid,
.adp-field .rz-textarea.invalid,
.adp-field input.invalid {
    border-color: var(--adp-danger) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--adp-danger) 14%, transparent) !important;
}
.validation-message {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    font-size: 0.74rem;
    line-height: 1.4;
    color: color-mix(in srgb, var(--adp-danger) 85%, var(--rz-text-color));
}
.validation-summary { margin: 0; padding: 0; list-style: none; }

.adp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    align-items: start;
}
.adp-form-grid .adp-span-2 { grid-column: 1 / -1; }
.adp-form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.adp-dealer-monthly-slots input, .adp-dealer-slots-value { font-variant-numeric: tabular-nums; }

/* =============================== Stat tiles ============================== */

.adp-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
    flex: 0 0 auto;
}

.adp-tile {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px 13px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius-lg);
    background: var(--adp-surface);
    box-shadow: var(--adp-shadow-card);
    min-width: 0;
}
.adp-tile-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--adp-dim);
}
.adp-tile-label .adp-dot { width: 7px; height: 7px; box-shadow: none; }
.adp-tile-value {
    font-size: 1.7rem;
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--rz-text-color);
    font-variant-numeric: tabular-nums;
}
.adp-tile-denominator { font-size: 0.95rem; font-weight: 600; color: var(--adp-dim); }
.adp-tile-hint { font-size: 0.72rem; color: var(--adp-dim); }

/* ============================= Master / detail =========================== */

.adp-md {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(330px, 2fr) 5fr;
    gap: 14px;
    align-items: stretch;
}
.adp-md > * { min-width: 0; min-height: 0; }

.adp-master-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 0; }
.adp-master-sub { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.adp-master-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0 14px 14px;
}

.adp-detail > .adp-empty { flex: 1 1 auto; }

.adp-detail-stack {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 14px;
    padding: 16px 18px;
}

.adp-detail-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
.adp-detail-id { min-width: 0; }
.adp-detail-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.adp-detail-title h2 { margin: 0; font-size: 1.05rem; font-weight: 650; letter-spacing: -0.01em; }
.adp-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.adp-detail-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 10px; }
.adp-meta-item { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.adp-meta-label {
    font-size: 0.62rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--adp-dim);
}
.adp-meta-value { font-size: 0.8rem; color: var(--rz-text-color); }

.adp-fill-half {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.adp-fill-half .adp-grid-fill { flex: 1 1 0; min-height: 120px; }
.adp-fill-half .adp-empty:not(.adp-empty-slim) { flex: 1; min-height: 0; }
.adp-fill-half .adp-empty-slim { flex: 1; min-height: 110px; }

/* =============================== Search field ============================ */

.adp-search { position: relative; min-width: 0; display: block; }
.adp-master-head .adp-search, .adp-card-toolbar .adp-search, .adp-toolbar .adp-search, .adp-dlg-toolbar .adp-search { flex: 1 1 auto; }
.adp-search .rz-textbox,
.adp-search .adp-search-input { width: 100%; padding-inline-start: 34px; padding-inline-end: 36px; }
.adp-search-icon {
    position: absolute;
    inset-inline-start: 9px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: var(--adp-faint);
    pointer-events: none;
    z-index: 1;
}
.adp-search-icon .rzi { font-size: 1.05rem !important; }
.adp-search-trailing {
    position: absolute;
    inset-inline-end: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 1;
}
.adp-search-clear {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: var(--adp-radius-sm);
    color: var(--adp-dim);
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    padding: 0;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.adp-search-clear .rzi { font-size: 1.05rem; }
.adp-search-clear:hover { background: var(--adp-hover); color: var(--rz-text-color); }
.adp-search-clear:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 1px; }
.adp-search-busy { display: inline-grid; place-items: center; width: 24px; height: 24px; }
.adp-search-busy-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--adp-accent);
    animation: adp-pulse 1s ease-in-out infinite;
}

/* ============================== Data grids ============================== */

.adp-grid-fill { flex: 1 1 auto; min-height: 180px; }
/* Virtualized grid inside the fill chain: the grid is a flex column (Radzen), so its
   data region must be allowed to shrink and scroll rather than grow to the row count. */
.adp-grid-fill.rz-data-grid,
.adp-grid-fill.rz-datatable { display: flex; flex-direction: column; min-height: 180px; }
.adp-grid-fill .rz-data-grid-data { flex: 1 1 auto; min-height: 0; overflow: auto; }
.adp-grid-fill .rz-virtual-grid { flex: 1 1 auto; min-height: 0; }

.rz-datatable,
.rz-data-grid {
    border-radius: var(--adp-radius);
    border: 1px solid var(--adp-border);
    font-size: 0.82rem;
    background: var(--adp-surface);
    max-width: 100%;
}

.rz-datatable .rz-column-title,
.rz-data-grid .rz-column-title,
.rz-grid-table thead th {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--adp-dim);
}

.rz-grid-table thead th {
    background: var(--adp-inset) !important;
    border-bottom: 1px solid var(--adp-border) !important;
}

.rz-grid-table td,
.rz-grid-table th {
    padding: 7px 10px !important;
    border-color: var(--adp-border) !important;
}

/* Neutralize the theme's inner header paddings so header text lines up with cells. */
.rz-grid-table thead th > div:not(.rz-cell-filter) { padding: 0; }
.rz-grid-table thead th .rz-column-title { padding-inline: 0; }

.rz-grid-table td { overflow-wrap: break-word; }

.rz-data-row { transition: background-color 0.08s ease; }
/* Hover fallback for non-selectable grids; selectable grids get the same color
   via --rz-grid-hover-background-color, painted on cells by the theme. */
.rz-data-row:hover { background-color: var(--adp-hover); }
.rz-selectable .rz-data-row.rz-state-highlight > td:first-child {
    box-shadow: inset 2px 0 0 var(--adp-accent);
}

.rz-datatable .rz-pager { border-top: 1px solid var(--adp-border); }
.rz-pager .rz-pager-element,
.rz-pager .rz-pager-page,
.rz-pager .rz-button { border-radius: var(--adp-radius) !important; }
.adp-rowclick .rz-data-row { cursor: pointer; }

.adp-cell-strong { font-weight: 600; }
.adp-cell-dim { color: var(--adp-dim); font-size: 0.78rem; }
.adp-cell-status { display: inline-flex; align-items: center; gap: 8px; }
.adp-cell-warn {
    color: color-mix(in srgb, var(--adp-warn) 72%, var(--rz-text-color));
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ========================= Badges & status marks ========================= */

.rz-badge {
    border-radius: var(--adp-radius-sm) !important;
    text-transform: uppercase;
    letter-spacing: 0.045em;
    font-size: 0.64rem !important;
    font-weight: 700;
    padding: 2.5px 7px !important;
    line-height: 1.4;
    border: 1px solid transparent;
}

.rz-badge-success {
    background: color-mix(in srgb, var(--adp-ok) 13%, transparent) !important;
    color: color-mix(in srgb, var(--adp-ok) 60%, var(--rz-text-color)) !important;
    border-color: color-mix(in srgb, var(--adp-ok) 32%, transparent);
}
.rz-badge-warning {
    background: color-mix(in srgb, var(--adp-warn) 13%, transparent) !important;
    color: color-mix(in srgb, var(--adp-warn) 60%, var(--rz-text-color)) !important;
    border-color: color-mix(in srgb, var(--adp-warn) 34%, transparent);
}
.rz-badge-danger,
.rz-badge-error {
    background: color-mix(in srgb, var(--adp-danger) 12%, transparent) !important;
    color: color-mix(in srgb, var(--adp-danger) 72%, var(--rz-text-color)) !important;
    border-color: color-mix(in srgb, var(--adp-danger) 32%, transparent);
}
.rz-badge-info {
    background: color-mix(in srgb, var(--adp-info) 12%, transparent) !important;
    color: color-mix(in srgb, var(--adp-info) 72%, var(--rz-text-color)) !important;
    border-color: color-mix(in srgb, var(--adp-info) 32%, transparent);
}
.rz-badge-primary {
    background: color-mix(in srgb, var(--adp-accent) 12%, transparent) !important;
    color: color-mix(in srgb, var(--adp-accent) 75%, var(--rz-text-color)) !important;
    border-color: color-mix(in srgb, var(--adp-accent) 32%, transparent);
}
.rz-badge-secondary,
.rz-badge-base,
.rz-badge-light {
    background: color-mix(in srgb, var(--rz-text-color) 6%, transparent) !important;
    color: var(--adp-dim) !important;
    border-color: var(--adp-border);
}

/* Status mark: a square, never a circle — squared house style. */
.adp-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
    flex: 0 0 auto;
}
.adp-dot.online, .adp-dot.ok { background: var(--adp-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--adp-ok) 20%, transparent); }
.adp-dot.offline, .adp-dot.warn { background: var(--adp-warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--adp-warn) 20%, transparent); }
.adp-dot.danger { background: var(--adp-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--adp-danger) 20%, transparent); }
.adp-dot.info { background: var(--adp-info); box-shadow: 0 0 0 3px color-mix(in srgb, var(--adp-info) 20%, transparent); }
.adp-dot.none { background: var(--adp-faint); }

/* ========================= Buttons / inputs / popups ===================== */

.rz-button {
    border-radius: var(--adp-radius) !important;
    font-weight: 600;
    letter-spacing: 0.005em;
    text-transform: none;
    box-shadow: none !important;
}
.rz-button:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 2px; }
.rz-button.rz-button-icon-only, .rz-toggle-button, .rz-splitbutton .rz-button { border-radius: var(--adp-radius) !important; }

/* Record actions: one direct action, or one menu trigger for multiple actions. The popup
   is portalled to body by Radzen, so its styles must not depend on a grid/dialog ancestor. */
.adp-record-actions { display: inline-flex; align-items: center; }
.adp-record-actions-trigger .rz-button-box { gap: 6px; }
.adp-record-actions-trigger .rzi { font-size: 18px; }
.adp-record-actions-menu {
    display: none;
    position: absolute;
    box-sizing: border-box;
    width: max-content;
    min-width: min(184px, var(--adp-record-menu-max-width, calc(100vw - 16px)));
    max-width: var(--adp-record-menu-max-width, calc(100vw - 16px));
    max-height: min(360px, var(--adp-record-menu-max-height, calc(100dvh - 16px)));
    overflow: auto;
    overscroll-behavior: contain;
    padding: 5px;
    background: var(--adp-surface);
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    box-shadow: var(--adp-shadow-pop);
    color: var(--rz-text-color);
    animation: none !important;
}
.adp-record-actions-menu:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 1px; }
.adp-record-actions-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--adp-radius-sm);
    background: transparent;
    color: inherit;
    font: 500 0.82rem / 1.3 var(--adp-font);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.1s ease;
}
.adp-record-actions-item .rzi { font-size: 18px; flex: 0 0 auto; }
.adp-record-actions-item > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.adp-record-actions-item:hover:not(:disabled),
.adp-record-actions-item:focus-visible { background: var(--adp-hover); }
.adp-record-actions-item:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: -2px; }
.adp-record-actions-item.is-destructive { color: color-mix(in srgb, var(--adp-danger) 72%, var(--rz-text-color)); }
.adp-record-actions-item:disabled { color: var(--adp-faint); cursor: not-allowed; }

/* Anchor styled as a Radzen button (static pages): keep link rules from leaking in. */
a.rz-button, a.rz-button:hover, a.rz-button:focus { text-decoration: none; color: var(--rz-on-primary); }
a.rz-button.rz-variant-outlined, a.rz-button.rz-variant-text, a.rz-button.rz-variant-flat { color: inherit; }

.rz-textbox,
.rz-inputtext,
.rz-dropdown,
.rz-lookup,
.rz-numeric,
.rz-textarea,
.rz-datepicker,
.rz-password {
    border-radius: var(--adp-radius) !important;
    font-size: 0.84rem;
}
.rz-textbox, .rz-inputtext, .rz-textarea { font-family: var(--adp-font); }

.rz-textbox:focus,
.rz-inputtext:focus,
.rz-textarea:focus,
.rz-dropdown:focus,
.rz-dropdown:focus-within,
.rz-numeric:focus-within,
.rz-datepicker:focus-within {
    border-color: var(--adp-accent) !important;
    box-shadow: 0 0 0 3px var(--adp-accent-soft) !important;
    outline: none;
}

.rz-dropdown-panel {
    border-radius: var(--adp-radius) !important;
    border: 1px solid var(--adp-border);
    box-shadow: var(--adp-shadow-pop) !important;
    overflow: hidden;
}
.rz-dropdown-item { font-size: 0.84rem; border-radius: 0; }
.rz-dropdown-item:hover { background: var(--adp-hover); }
.rz-dropdown-item.rz-state-highlight { background: var(--adp-accent-soft); color: var(--rz-text-color); }

/* Checkbox / radio / switch: squared corners, no pill track. */
.rz-chkbox-box { border-radius: var(--adp-radius-sm) !important; }
.rz-radiobutton-box { border-radius: var(--adp-radius-sm) !important; }
.rz-radiobutton-box .rzi-circle-on { border-radius: 2px !important; }
.rz-switch,
.rz-switch .rz-switch-circle { border-radius: var(--adp-radius) !important; }
.rz-switch .rz-switch-circle::before { border-radius: 3px !important; }

/* Tabs / chips / progress: squared. */
.rz-tabview-nav li { border-radius: var(--adp-radius) var(--adp-radius) 0 0; }
.rz-tabview-nav li:after { border-radius: 2px 2px 0 0; }
.rz-chip { border-radius: var(--adp-radius-sm) !important; }
.rz-progressbar, .rz-progressbar .rz-progressbar-value { border-radius: var(--adp-radius-sm) !important; }
.rz-progressbar .rz-progressbar-value { transition: width 0.4s ease; }

/* Profile menu (if used): squared surface and avatar. */
.rz-profile-menu .rz-navigation-item-wrapper,
.rz-profile-menu .rz-navigation-menu,
.rz-profile-menu .rz-gravatar,
.rz-gravatar { border-radius: var(--adp-radius) !important; }

.rz-tooltip-content {
    border-radius: var(--adp-radius) !important;
    font-size: 0.75rem;
    padding: 5px 9px;
}

.rz-alert { border-radius: var(--adp-radius) !important; font-size: 0.8rem; }

/* ================================ Dialogs ================================ */

.rz-dialog {
    border-radius: var(--adp-radius-lg) !important;
    border: 1px solid var(--adp-border);
    box-shadow: var(--adp-shadow-overlay) !important;
    background: var(--adp-surface);
    overflow: hidden;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    min-width: min(320px, calc(100vw - 32px));
    min-height: min(280px, calc(100dvh - 32px));
}

.rz-dialog-mask {
    background-color: color-mix(in srgb, #0b1220 45%, transparent);
    opacity: 1; /* the theme halves its mask via opacity: .5 — keep our alpha authoritative */
}

/* Stock title bar (used only if a dialog opts out of the house chrome). */
.rz-dialog-titlebar {
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--adp-border);
    background: transparent;
}
.rz-dialog-title { font-size: 0.95rem; font-weight: 650; }

/* House chrome: dialogs opened with UiDialogs.Frame render a AdpDialog shell. */
.rz-dialog:has(.adp-dlg) { display: flex; flex-direction: column; }
.rz-dialog:has(.adp-dlg) .rz-dialog-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

/* Keep a clear resize affordance above the footer without intercepting the native grip. */
.rz-dialog:has(.adp-dlg)::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 12px;
    height: 12px;
    color: var(--adp-dim);
    background: repeating-linear-gradient(135deg, transparent 0 3px, currentColor 3px 4px);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

.adp-dlg {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    container-type: inline-size;
    font-size: 0.85rem;
}

.adp-dlg-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--adp-border);
    flex: 0 0 auto;
}

.adp-dlg-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--adp-radius);
    display: grid;
    place-items: center;
    background: var(--adp-accent-soft);
    color: color-mix(in srgb, var(--adp-accent) 80%, var(--rz-text-color));
    flex: 0 0 auto;
}
.adp-dlg-icon .rzi { font-size: 1.25rem; }
.adp-dlg-icon.danger {
    background: color-mix(in srgb, var(--adp-danger) 11%, transparent);
    color: color-mix(in srgb, var(--adp-danger) 75%, var(--rz-text-color));
}
.adp-dlg-icon.warn {
    background: color-mix(in srgb, var(--adp-warn) 12%, transparent);
    color: color-mix(in srgb, var(--adp-warn) 75%, var(--rz-text-color));
}
.adp-dlg-icon.ok {
    background: color-mix(in srgb, var(--adp-ok) 12%, transparent);
    color: color-mix(in srgb, var(--adp-ok) 65%, var(--rz-text-color));
}
.adp-dlg-icon.accent { /* default palette — kept for explicit use */ }

.adp-dlg-heading { flex: 1 1 auto; min-width: 0; }
.adp-dlg-title { font-size: 0.95rem; font-weight: 650; letter-spacing: -0.005em; }
.adp-dlg-subtitle { font-size: 0.78rem; color: var(--adp-dim); margin-top: 2px; overflow-wrap: break-word; }

.adp-dlg-close {
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: var(--adp-radius);
    color: var(--adp-dim);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    margin: -2px -6px 0 0;
    padding: 0;
    transition: background-color 0.1s ease, color 0.1s ease;
}
.adp-dlg-close .rzi { font-size: 1.15rem; }
.adp-dlg-close:hover { background: var(--adp-hover); color: var(--rz-text-color); }
.adp-dlg-close:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 1px; }

.adp-dlg-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.adp-dlg-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 0 0 auto; }

.adp-dlg-grid-fill {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.adp-dlg-grid-fill .adp-grid-fill { min-height: 200px; }
.adp-dlg-grid-fill .adp-grid-fill.rz-data-grid,
.adp-dlg-grid-fill .adp-grid-fill.rz-datatable { min-height: 0; }

.adp-dlg-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--adp-border);
    background: var(--adp-inset);
    flex: 0 0 auto;
}
.adp-dlg-foot-info {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    min-width: 0;
    overflow: hidden;
}
.adp-dlg-foot-info .rzi { font-size: 1.05rem; color: var(--adp-dim); }
.adp-dlg-foot .rz-button { flex: 0 0 auto; white-space: nowrap; }

/* Resizing a desktop dialog narrow should reflow it just like a small viewport. */
@container (max-width: 480px) {
    .adp-dlg .adp-dlg-columns, .adp-dlg .adp-form-grid { grid-template-columns: 1fr; }
    .adp-dlg .adp-dealer-monthly-slots input { min-height: 44px; font-size: 16px; }
    .adp-dlg .adp-dlg-foot-info { flex-basis: 100%; }
    .adp-dlg .adp-facts { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (max-width: 768px) {
    .rz-dialog.adp-dialog:has(.adp-dlg) {
        width: var(--adp-dialog-width, calc(100vw - 32px)) !important;
        inset-block-start: auto !important;
    }
}

.adp-dlg-statusline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.8rem; }

.adp-dlg-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    align-items: start;
}
.adp-dlg-col > .adp-section-title { display: block; margin-bottom: 10px; }
.adp-dlg-col { min-width: 0; }

/* Facts (key/value) grid. */
.adp-facts {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 7px 14px;
    font-size: 0.82rem;
    align-items: start;
}
.adp-fact-label {
    color: var(--adp-dim);
    font-size: 0.66rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 2px;
}
.adp-fact-value { min-width: 0; overflow-wrap: anywhere; }
.adp-fact-value .adp-cell-status { max-width: 100%; flex-wrap: wrap; }

/* Confirm dialog. */
.adp-confirm-message { font-size: 0.875rem; line-height: 1.5; }
.adp-confirm-facts {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 6px 12px;
    padding: 12px 14px;
    background: var(--adp-inset);
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    font-size: 0.82rem;
}
.adp-confirm-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--adp-dim);
    font-size: 0.78rem;
    line-height: 1.45;
}
.adp-confirm-note .rzi { font-size: 1rem; color: var(--adp-accent); flex: 0 0 auto; }

/* Timeline (lifecycle stages). */
.adp-timeline { display: flex; flex-direction: column; }
.adp-tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.adp-tl-item:last-child { padding-bottom: 0; }
.adp-tl-item::after {
    content: "";
    position: absolute;
    inset-inline-start: 4.5px;
    top: 15px;
    bottom: 1px;
    width: 1px;
    background: var(--adp-border);
}
.adp-tl-item:last-child::after { display: none; }
.adp-tl-marker {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--adp-border-strong);
    margin-top: 3px;
    flex: 0 0 auto;
    z-index: 1;
}
.adp-tl-item.done .adp-tl-marker { background: var(--adp-accent); }
.adp-tl-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.adp-tl-label {
    font-size: 0.66rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--adp-dim);
}
.adp-tl-time { font-size: 0.78rem; }
.adp-tl-item:not(.done) .adp-tl-time { color: var(--adp-dim); }

/* Monospace result block. */
.adp-detail-block {
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    background: var(--adp-inset);
    padding: 12px 14px;
    max-height: 240px;
    overflow: auto;
    font-family: var(--adp-font-mono);
    font-size: 0.78rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    margin-top: 10px;
}

/* ============================== Notifications ============================ */

.rz-notification-item {
    border-radius: var(--adp-radius-lg) !important;
    border: 1px solid var(--adp-border);
    box-shadow: var(--adp-shadow-pop) !important;
    padding: 12px 14px !important;
}

.rz-notification-success .rz-notification-item,
.rz-notification-warn .rz-notification-item,
.rz-notification-error .rz-notification-item,
.rz-notification-info .rz-notification-item {
    background: var(--adp-surface);
    color: var(--rz-text-color);
}
.rz-notification-success .rz-notification-item { border-inline-start: 3px solid var(--adp-ok); }
.rz-notification-warn .rz-notification-item { border-inline-start: 3px solid var(--adp-warn); }
.rz-notification-error .rz-notification-item { border-inline-start: 3px solid var(--adp-danger); }
.rz-notification-info .rz-notification-item { border-inline-start: 3px solid var(--adp-info); }

.rz-notification-icon.rzi-check { color: var(--adp-ok) !important; }
.rz-notification-icon.rzi-exclamation-triangle { color: var(--adp-warn) !important; }
.rz-notification-icon.rzi-times { color: var(--adp-danger) !important; }
.rz-notification-icon.rzi-info-circle { color: var(--adp-info) !important; }

.rz-notification-title { font-weight: 650; font-size: 0.85rem; }
.rz-notification-content { font-size: 0.8rem; }
.rz-notification-close { color: var(--adp-dim); }

/* =============================== Skeleton ============================== */

.adp-skel {
    position: relative;
    overflow: hidden;
    background: var(--adp-inset);
    border-radius: var(--adp-radius);
}
.adp-skel::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, var(--adp-hover), transparent);
    animation: adp-shimmer 1.2s ease-in-out infinite;
}
@keyframes adp-shimmer { 100% { transform: translateX(100%); } }

.adp-skel-line { height: 12px; margin: 10px 0; }
.adp-skel-line.w40 { width: 40%; }
.adp-skel-line.w60 { width: 60%; }
.adp-skel-line.w80 { width: 80%; }
.adp-skel-line.tall { height: 18px; }
.adp-skel-row { height: 34px; margin: 6px 0; }
.adp-skel-group { display: block; min-width: 0; }
.adp-skel-group > .adp-skel:first-child { margin-top: 0; }
.adp-skel-group > .adp-skel:last-child { margin-bottom: 0; }

/* ============================= Empty / busy ============================ */

.adp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 200px;
    color: var(--adp-dim);
    text-align: center;
    padding: 36px 24px;
}

.adp-empty-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--adp-radius-lg);
    background: var(--adp-inset);
    border: 1px solid var(--adp-border);
    display: grid;
    place-items: center;
    margin-bottom: 8px;
}
.adp-empty-icon-wrap .rzi { font-size: 1.45rem; color: var(--adp-faint); }

.adp-empty-title { font-weight: 650; font-size: 0.88rem; color: var(--rz-text-color); }
.adp-empty-hint { font-size: 0.79rem; color: var(--adp-dim); max-width: 340px; line-height: 1.5; }
.adp-empty-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.adp-empty-slim {
    min-height: 110px;
    padding: 18px;
    border: 1px dashed var(--adp-border);
    border-radius: var(--adp-radius);
}
.adp-empty-slim .adp-empty-icon-wrap { width: 36px; height: 36px; margin-bottom: 4px; }
.adp-empty-slim .adp-empty-icon-wrap .rzi { font-size: 1.2rem; }

.adp-busy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 200px;
    color: var(--adp-dim);
    font-size: 0.85rem;
}

/* Call-to-action block (dashed, warn-tinted) and its icon variants. */
.adp-cta {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding: 32px 24px;
    border: 1px dashed color-mix(in srgb, var(--adp-warn) 45%, transparent);
    border-radius: var(--adp-radius-lg);
    background: color-mix(in srgb, var(--adp-warn) 4%, transparent);
}
.adp-cta .adp-empty-hint { max-width: 440px; }
.adp-cta-icon {
    border-color: color-mix(in srgb, var(--adp-warn) 40%, transparent);
    background: color-mix(in srgb, var(--adp-warn) 10%, transparent);
}
.adp-cta-icon .rzi { color: var(--adp-warn); }
.adp-cta-icon-ok {
    border-color: color-mix(in srgb, var(--adp-ok) 40%, transparent);
    background: color-mix(in srgb, var(--adp-ok) 10%, transparent);
}
.adp-cta-icon-ok .rzi { color: var(--adp-ok); }
.adp-cta-status { font-size: 0.82rem; font-weight: 600; }
.adp-cta-alert { max-width: 520px; }
.adp-cta-foot { font-size: 0.72rem; color: var(--adp-faint); }

/* Long-running operation progress block. */
.adp-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    background: var(--adp-inset);
}
.adp-progress-head { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.adp-progress-head .rzi { font-size: 1.05rem; color: var(--adp-accent); flex: 0 0 auto; }
.adp-progress-title { font-weight: 650; }
.adp-progress-meta { font-size: 0.73rem; color: var(--adp-dim); white-space: nowrap; }
.adp-progress-bar.rz-progressbar { height: 8px; }
.adp-progress-counts {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--adp-dim);
}
.adp-count.ok { color: color-mix(in srgb, var(--adp-ok) 65%, var(--rz-text-color)); font-weight: 600; }
.adp-count.bad { color: color-mix(in srgb, var(--adp-danger) 70%, var(--rz-text-color)); font-weight: 600; }
.adp-count.dim { color: var(--adp-dim); }

/* ============================ Overview dashboard ========================= */

.adp-dashboard {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    gap: 20px;
    width: 100%;
    max-width: 1600px;
    min-width: 0;
    margin-inline: auto;
    padding: 12px 16px 16px;
}
.adp-dash-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: -10px;
    color: var(--adp-dim);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}
.adp-dash-eyebrow > span:first-child { width: 7px; height: 7px; border-radius: 2px; background: var(--adp-accent); flex: 0 0 auto; }
.adp-dash-eyebrow-divider { color: var(--adp-faint); }
.adp-dash-heading { align-items: center; margin: 0; }
.adp-dash-heading h1 { font-size: 30px; line-height: 1.2; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.adp-dash-heading p { margin-top: 8px; line-height: 1.5; }
.adp-dash-preview-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    background: var(--adp-surface);
    color: var(--adp-dim);
    font-size: 11px;
    font-weight: 550;
    white-space: nowrap;
}
.adp-dash-preview-label .rzi { color: var(--adp-link); font-size: 16px; }
.adp-dash-preview-note {
    display: flex;
    align-items: center;
    gap: 8px 10px;
    flex-wrap: wrap;
    padding: 10px 13px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    background: var(--adp-inset);
    color: var(--adp-dim);
    font-size: 12px;
    line-height: 1.5;
}
.adp-dash-preview-note > .rzi { color: var(--adp-link); font-size: 17px; flex: 0 0 auto; }
.adp-dash-preview-note > span:nth-child(2) { flex: 1 1 350px; min-width: 0; }
.adp-dash-preview-note strong { color: var(--rz-text-color); font-weight: 600; }
.adp-dash-sample-week { font-size: 11px; margin-inline-start: auto; }
.adp-dash-metrics { gap: 16px; margin: 0; }
.adp-dash-metric { padding: 17px 18px 16px; gap: 7px; }
.adp-dash-metric .adp-tile-label { font-size: 12px; }
.adp-dash-metric .adp-tile-value { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 26px; line-height: 1.3; }
.adp-dash-metric .adp-tile-value > .rzi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--adp-radius); background: var(--adp-accent-faint); color: var(--adp-link); font-size: 20px; }
.adp-dash-metric .adp-tile-hint { font-size: 11px; line-height: 1.4; }
.adp-dash-percent { font-size: 17px; font-weight: 550; margin-inline-start: 1px; }
.adp-dash-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.adp-dash-row > * { min-width: 0; }
.adp-dash-card-heading { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 20px 16px; }
.adp-dash-card-heading > div:first-child { min-width: 0; }
.adp-dash-card-heading h2, .adp-dash-workspace h2 { margin: 0; font-size: 15px; line-height: 1.4; font-weight: 650; letter-spacing: -0.015em; }
.adp-dash-card-heading p, .adp-dash-workspace p { margin: 4px 0 0; color: var(--adp-dim); font-size: 12px; line-height: 1.5; }
.adp-dash-card-heading > .rzi { flex: 0 0 auto; font-size: 21px; color: var(--adp-faint); }
.adp-dash-segmented { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); background: var(--adp-inset); }
.adp-dash-segmented button { border: 1px solid transparent; border-radius: var(--adp-radius-sm); padding: 5px 9px; background: transparent; color: var(--adp-dim); font: 550 11px/1.35 var(--adp-font); white-space: nowrap; cursor: pointer; transition: background-color 0.1s ease, color 0.1s ease; }
.adp-dash-segmented button:hover { background: var(--adp-hover); color: var(--rz-text-color); }
.adp-dash-segmented button[aria-pressed="true"] { background: var(--adp-surface); border-color: var(--adp-border); color: var(--rz-text-color); box-shadow: var(--adp-shadow-card); }
.adp-dash-segmented button:focus-visible, .adp-dash-days button:focus-visible, .adp-dash-build > summary:focus-visible,
.adp-dash-chart-values > summary:focus-visible, .adp-dash-workspace-links a:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 2px; }
.adp-dash-card-foot { display: flex; align-items: center; gap: 7px; padding: 13px 20px; margin-top: auto; border-top: 1px solid var(--adp-border); color: var(--adp-dim); font-size: 11px; line-height: 1.4; }
.adp-dash-card-foot > .rzi { font-size: 15px; flex: 0 0 auto; }

/* The chart controls its own SVG sizing through Radzen's ResizeObserver. */
.adp-dash-chart-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; flex-wrap: wrap; padding: 0 20px 15px; }
.adp-dash-chart-total { font-size: 26px; font-weight: 650; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.adp-dash-chart-total > span { margin-inline-start: 4px; color: var(--adp-dim); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.adp-dash-chart-ratio { display: inline-flex; align-items: center; gap: 4px; color: color-mix(in srgb, var(--adp-ok) 65%, var(--rz-text-color)); font-size: 11px; font-weight: 600; }
.adp-dash-chart-ratio .rzi { font-size: 15px; }
.adp-dash-chart-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 0 20px; color: var(--adp-dim); font-size: 11px; }
.adp-dash-chart-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.adp-dash-chart-legend i { display: inline-block; width: 17px; height: 0; border-top: 2px solid var(--adp-accent); }
.adp-dash-chart-legend i.adp-dash-key-released { border-top: 2px dashed var(--adp-info); }
.adp-dash-chart-unit { margin-inline-start: auto; }
.adp-dash-chart { width: calc(100% - 24px); min-width: 0; height: 245px; margin: 8px 12px 0; }
.adp-dash-chart-values { margin: 0 20px 15px; color: var(--adp-dim); font-size: 11px; }
.adp-dash-chart-values > summary { width: fit-content; max-width: 100%; padding: 3px 0; border-radius: var(--adp-radius-sm); cursor: pointer; }
.adp-dash-chart-values > summary:hover { color: var(--adp-link); }
.adp-dash-chart-values ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 6px 0 0; margin: 0; list-style: none; }
.adp-dash-chart-values li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; padding: 7px 0; border-bottom: 1px solid var(--adp-border); }
.adp-dash-chart-values li strong { color: var(--rz-text-color); font-weight: 600; }

.adp-dash-mix-total { display: flex; align-items: center; gap: 15px; padding: 6px 20px 23px; }
.adp-dash-mix-total > strong { font-size: 40px; font-weight: 650; line-height: 1.1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.adp-dash-mix-total > span { color: var(--adp-dim); font-size: 12px; line-height: 1.5; }
.adp-dash-mix-list { display: flex; flex-direction: column; gap: 23px; padding: 0 20px 25px; }
.adp-dash-family-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 12px; }
.adp-dash-family-label > span { display: inline-flex; align-items: center; gap: 8px; }
.adp-dash-family-label .rzi { color: var(--adp-dim); font-size: 17px; }
.adp-dash-family-label strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.adp-dash-family-label small { color: var(--adp-dim); font-size: 11px; font-weight: 400; }
.adp-dash-family .rz-progressbar, .adp-dash-build-details > .rz-progressbar { height: 6px; background: var(--adp-inset); }
.adp-dashboard .rz-progressbar, .adp-dashboard .rz-progressbar .rz-progressbar-value { border-radius: 2px !important; }
.adp-dash-family-pumpers .rz-progressbar.rz-progressbar-determinate .rz-progressbar-value { background-color: var(--adp-accent); }
.adp-dash-family-aerials .rz-progressbar.rz-progressbar-determinate .rz-progressbar-value { background-color: var(--adp-info); }
.adp-dash-family-rescue .rz-progressbar.rz-progressbar-determinate .rz-progressbar-value { background-color: var(--adp-ok); }

.adp-dash-build-list { padding: 0 20px 14px; }
.adp-dash-build { border-top: 1px solid var(--adp-border); }
.adp-dash-build > summary { display: flex; align-items: center; gap: 12px; padding: 17px 14px; border-radius: var(--adp-radius-sm); list-style: none; cursor: pointer; transition: background-color 0.1s ease; }
.adp-dash-build > summary::-webkit-details-marker { display: none; }
.adp-dash-build > summary:hover { background: var(--adp-hover); }
.adp-dash-build-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border-radius: var(--adp-radius); border: 1px solid var(--adp-border); background: var(--adp-inset); color: var(--adp-dim); }
.adp-dash-build-icon .rzi { font-size: 19px; }
.adp-dash-build-name { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.adp-dash-build-name strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.adp-dash-build-name > span { font-size: 11px; color: var(--adp-dim); }
.adp-dash-build > summary > .rz-badge { flex: 0 0 auto; }
.adp-dash-build-open { display: inline-flex; align-items: center; gap: 5px; color: var(--adp-dim); font-size: 11px; flex: 0 0 auto; }
.adp-dash-build-open .rzi { font-size: 17px; transition: transform 0.1s ease; }
.adp-dash-build[open] .adp-dash-build-open .rzi { transform: rotate(180deg); }
.adp-dash-build[open] .adp-dash-build-name strong { color: var(--adp-link); }
.adp-dash-build-details { padding: 0 14px 18px 61px; }
.adp-dash-build-details > p { margin: 0 0 15px; color: var(--adp-dim); font-size: 12px; line-height: 1.6; }
.adp-dash-build-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-bottom: 17px; }
.adp-dash-build-facts > span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.adp-dash-build-facts small { color: var(--adp-dim); font-size: 10px; }
.adp-dash-build-facts strong { font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.adp-dash-build-readiness { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 11px; color: var(--adp-dim); }
.adp-dash-build-readiness strong { color: var(--rz-text-color); font-weight: 600; font-variant-numeric: tabular-nums; }

.adp-dash-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0 20px 19px; }
.adp-dash-days button { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 9px 2px; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); background: transparent; color: var(--adp-dim); font-family: var(--adp-font); cursor: pointer; transition: background-color 0.1s ease, border-color 0.1s ease; }
.adp-dash-days button > span { font-size: 10px; font-weight: 500; }
.adp-dash-days button > strong { color: var(--rz-text-color); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.adp-dash-days button:hover { background: var(--adp-hover); }
.adp-dash-days button[aria-pressed="true"] { border-color: color-mix(in srgb, var(--adp-accent) 60%, var(--adp-border)); background: var(--adp-accent-faint); color: var(--adp-link); }
.adp-dash-days button[aria-pressed="true"] > strong { color: var(--adp-link); }
.adp-dash-agenda-items { display: flex; flex-direction: column; gap: 20px; padding: 0 20px 24px; min-height: 166px; }
.adp-dash-agenda-item { display: flex; align-items: stretch; gap: 11px; }
.adp-dash-agenda-item > div { min-width: 0; }
.adp-dash-agenda-marker { width: 3px; flex: 0 0 3px; border-radius: 2px; background: var(--adp-accent); }
.adp-dash-agenda-item:nth-child(even) .adp-dash-agenda-marker { background: var(--adp-info); }
.adp-dash-agenda-time { color: var(--adp-dim); font-size: 10px; font-variant-numeric: tabular-nums; }
.adp-dash-agenda-item h3 { margin: 4px 0 0; font-size: 12px; font-weight: 600; line-height: 1.45; }
.adp-dash-agenda-item p { margin: 4px 0 0; color: var(--adp-dim); font-size: 11px; line-height: 1.5; }

.adp-dash-workspace { display: grid; grid-template-columns: minmax(190px, 0.85fr) minmax(0, 3fr); align-items: center; gap: 18px; padding: 19px 20px; }
.adp-dash-workspace-intro { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adp-dash-workspace-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 auto; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); background: var(--adp-inset); color: var(--adp-dim); }
.adp-dash-workspace-icon .rzi { font-size: 19px; }
.adp-dash-workspace-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 9px; min-width: 0; }
.adp-dash-workspace-links a { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 10px 11px; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); color: var(--rz-text-color); font-size: 12px; font-weight: 550; line-height: 1.4; text-decoration: none; transition: background-color 0.1s ease, border-color 0.1s ease; }
.adp-dash-workspace-links a:hover { background: var(--adp-hover); border-color: var(--adp-border-strong); }
.adp-dash-workspace-links a > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.adp-dash-workspace-links a > .rzi { flex: 0 0 auto; font-size: 18px; color: var(--adp-link); }
.adp-dash-workspace-links a > .rzi:last-child { font-size: 14px; color: var(--adp-faint); }
.adp-dash-workspace-links small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; color: var(--adp-dim); }
.adp-dash-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 16px; margin: -3px 0 0; color: var(--adp-dim); font-size: 10px; line-height: 1.5; }
.adp-dash-account-error { min-width: 0; }
.adp-dash-account-error .rz-alert { margin: 0; }

@media (max-width: 1180px) {
    .adp-dash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adp-dash-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .adp-dash-row { grid-template-columns: minmax(0, 1fr); }
    .adp-dash-chart { height: 265px; }
    .adp-dash-mix-list { gap: 19px; }
    .adp-dash-agenda-items { min-height: 156px; }
}
@media (max-width: 800px) {
    .adp-dash-chart .adp-dash-axis-label-secondary { display: none; }
}
@media (max-width: 640px) {
    .adp-dashboard { gap: 18px; padding: 8px 6px 12px; }
    .adp-dash-heading h1 { font-size: 26px; }
    .adp-dash-heading p { font-size: 12px; }
    .adp-dash-preview-note { align-items: flex-start; gap: 7px; padding: 10px 11px; font-size: 11px; }
    .adp-dash-preview-note > span:nth-child(2) { flex-basis: calc(100% - 24px); }
    .adp-dash-sample-week { margin-inline-start: 24px; font-size: 10px; }
    .adp-dashboard .adp-dash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .adp-dash-card-heading { padding: 16px 16px 14px; }
    .adp-dash-card-heading h2 { font-size: 14px; }
    .adp-dash-card-heading p { font-size: 11px; }
    .adp-dash-card-foot { padding: 12px 16px; }
    .adp-dash-chart-summary { padding: 0 16px 13px; }
    .adp-dash-chart-legend { padding-inline: 16px; gap: 7px 12px; }
    .adp-dash-chart-unit { font-size: 10px; }
    .adp-dash-chart { width: calc(100% - 12px); margin-inline: 6px; height: 230px; }
    .adp-dash-chart-values { margin-inline: 16px; }
    .adp-dash-chart-values ul { grid-template-columns: 1fr; }
    .adp-dash-mix-total { padding: 3px 16px 20px; }
    .adp-dash-mix-list { padding: 0 16px 22px; }
    .adp-dash-build-list { padding: 0 16px 8px; }
    .adp-dash-build > summary { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px 10px; padding: 14px 10px; }
    .adp-dash-build-icon { grid-row: 1 / 3; width: 30px; height: 34px; align-self: start; }
    .adp-dash-build-name { grid-column: 2; }
    .adp-dash-build > summary > .rz-badge { grid-row: 2; grid-column: 2; justify-self: start; }
    .adp-dash-build-open { grid-column: 3; grid-row: 1 / 3; }
    .adp-dash-build-open > span { display: none; }
    .adp-dash-build-details { padding-inline: 10px; }
    .adp-dash-build-facts { grid-template-columns: 1fr; }
    .adp-dash-days { margin: 0 16px 18px; gap: 5px; }
    .adp-dash-agenda-items { padding: 0 16px 22px; }
    .adp-dash-workspace { padding: 16px; gap: 15px; }
    .adp-dash-workspace-links { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .adp-dashboard .adp-dash-metrics { grid-template-columns: minmax(0, 1fr); }
    .adp-dash-metric { padding: 14px 16px; gap: 4px; }
    .adp-dash-chart-summary { align-items: flex-start; }
    .adp-dash-chart-total > span { display: block; margin: 3px 0 0; font-size: 11px; }
    .adp-dash-chart-ratio { padding-top: 6px; }
    .adp-dash-chart-unit { flex-basis: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .adp-dash-segmented button, .adp-dash-days button, .adp-dash-build > summary,
    .adp-dash-build-open .rzi, .adp-dash-workspace-links a { transition: none; }
}

/* =============================== Not found ============================== */

.adp-notfound {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--rz-body-background-color);
}
.adp-notfound-card {
    max-width: 420px;
    width: min(420px, 100%);
    min-width: 0;
    overflow-wrap: anywhere;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    padding: 44px 40px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius-lg);
    background: var(--adp-surface);
    box-shadow: var(--adp-shadow-card);
}
.adp-notfound-code {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--adp-accent);
}
.adp-notfound-card h1 { margin: 0; font-size: 1.1rem; font-weight: 650; }
.adp-notfound-card p { margin: 0 0 10px; color: var(--adp-dim); font-size: 0.84rem; line-height: 1.55; }
.adp-notfound-card .adp-mono { color: var(--adp-dim); }

/* ============================== Responsive ============================== */

@media (max-width: 1180px) {
    .adp-content { height: auto; overflow: visible; }
    .adp-page { flex: none; height: auto; }
    .adp-view.active { flex: none; height: auto; }
    .adp-md { grid-template-columns: 1fr; }
    .adp-master-body { height: 420px; flex: none; }
    .adp-fill-half { flex: none; }
    .adp-fill-half .adp-grid-fill { height: 300px; flex: none; }
    .adp-fill-card { flex: none; }
    .adp-card-body { flex: none; }
    .adp-card-body .adp-grid-fill { height: 480px; flex: none; }
    .adp-stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .adp-content { padding: 14px 14px 18px; }
    .adp-topbar { padding: 0 12px 0 14px; }
    .adp-stat-row { grid-template-columns: 1fr; }
    .adp-conn-label { display: none; }
    .adp-user-name { display: none; }
    .adp-dlg-columns { grid-template-columns: 1fr; }
    .adp-dlg-foot { flex-wrap: wrap; }
    .adp-dlg-foot-info { flex-basis: 100%; }
    .adp-dlg-foot .rz-button { flex: 0 0 auto; white-space: nowrap; }
    .adp-form-grid { grid-template-columns: 1fr; }
    .adp-facts { grid-template-columns: 96px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    .adp-sidenav, .adp-nav-label, .adp-nav-group::before { transition: none; }
    .adp-page { animation: none; }
    .adp-live-dot, .adp-search-busy-dot { animation: none; }
    .adp-skel::after { animation: none; }
    .rz-data-row, .adp-nav-item, .adp-icon-btn, .adp-link-btn, .adp-dlg-close, .adp-search-clear, .adp-record-actions-item { transition: none; }
    .rz-progressbar .rz-progressbar-value { transition: none; }
}

/* ============================== Error UI =============================== */

#blazor-error-ui {
    background: #b91c1c;
    color: #fff;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 4rem max(0.7rem, env(safe-area-inset-bottom)) 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: var(--adp-font);
    font-size: 0.85rem;
}

#blazor-error-ui .reload {
    color: #fff;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    border-radius: var(--adp-radius);
    color: inherit;
    background: transparent;
    font: inherit;
}
#blazor-error-ui :is(.reload, .dismiss):focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.blazor-error-boundary {
    background: #b91c1c;
    padding: 1rem;
    color: white;
    border-radius: var(--adp-radius);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: var(--adp-border);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--adp-accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* FocusOnNavigate lands on the heading programmatically; no visible ring needed. */
.adp-notfound-card h1:focus { outline: none; }

/* Permission selection in role and membership dialogs. */
.adp-permission-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.adp-stack > .adp-permission-group { margin-top: 14px; }
.adp-permission-group > legend { padding: 0; margin-bottom: 8px; }
.adp-permission-list { display: grid; gap: 8px; }
.adp-permission-choice { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); background: var(--adp-surface); }
.adp-permission-choice input { accent-color: var(--adp-accent); width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; }
.adp-permission-copy { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.adp-permission-title { font-weight: 600; }
.adp-user-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.adp-user-lockout-hint { line-height: 1.2; }
.adp-copy-target { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: var(--adp-inset); border: 1px solid var(--adp-border); border-radius: var(--adp-radius); }
.adp-copy-person { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.adp-copy-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; flex: 1 1 0; min-height: 0; }
.adp-copy-picker { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.adp-copy-section-head { display: flex; align-items: center; gap: 8px; }
.adp-copy-section-head h2, .adp-copy-preview h2 { margin: 0; }
.adp-copy-preview { display: flex; flex-direction: column; gap: 14px; min-width: 0; min-height: 0; overflow-y: auto; padding-left: 18px; border-left: 1px solid var(--adp-border); }
.adp-copy-role-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.adp-copy-role-list li { display: flex; flex-direction: column; gap: 5px; padding: 10px; background: var(--adp-inset); border: 1px solid var(--adp-border); border-radius: var(--adp-radius); }
.adp-copy-role-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; overflow-wrap: anywhere; }
.adp-copy-kept { display: flex; flex-direction: column; gap: 5px; overflow-wrap: anywhere; }
@container (max-width: 680px) {
    .adp-copy-layout { display: flex; flex-direction: column; flex: 0 0 auto; }
    .adp-copy-picker { min-height: 340px; height: 340px; flex: 0 0 auto; }
    .adp-copy-preview { overflow: visible; border-left: 0; border-top: 1px solid var(--adp-border); padding: 16px 0 0; flex: 0 0 auto; }
}

/* My Profile keeps account facts separate from the password form at every viewport. */
.adp-profile { display: grid; gap: 14px; min-width: 0; }
.adp-profile-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 14px; align-items: start; }
.adp-profile-column { display: grid; gap: 14px; min-width: 0; }
.adp-profile .adp-section-title { margin: 0; }
.adp-profile-account { gap: 18px; padding: 18px; }
.adp-profile-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.adp-profile-identity > div { min-width: 0; overflow-wrap: anywhere; }
.adp-profile-name { font-size: 1rem; font-weight: 650; margin-bottom: 3px; }
.adp-profile-facts { margin: 0; gap: 12px 16px; grid-template-columns: 136px minmax(0, 1fr); }
.adp-profile-facts dd { margin: 0; }
.adp-profile-role-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.adp-profile-role-list li { display: flex; align-items: center; gap: 8px; padding: 9px 10px; background: var(--adp-inset); border: 1px solid var(--adp-border); border-radius: var(--adp-radius); font-size: 0.82rem; }
.adp-profile-role-list .rzi { color: var(--adp-dim); font-size: 1.05rem; flex: 0 0 auto; }
.adp-profile-role-list span { min-width: 0; overflow-wrap: anywhere; }
.adp-profile-password > .adp-card-body { gap: 16px; padding: 18px; }
.adp-profile-intro { margin: 0; color: var(--adp-dim); font-size: 0.82rem; line-height: 1.5; }
.adp-profile-password-form { display: grid; gap: 16px; }
.adp-profile-password-input { position: relative; min-width: 0; }
.adp-profile-password-input input { padding-inline-end: 42px; min-width: 0; max-width: 100%; }
.adp-profile-password-input > .adp-icon-btn { position: absolute; inset-inline-end: 5px; top: 50%; transform: translateY(-50%); color: var(--adp-dim); }
.adp-profile-password-input > .adp-icon-btn .rzi { font-size: 1.15rem; }
.adp-profile-password-errors:focus { outline: none; }
.adp-profile-password-errors .rz-alert { margin: 0; }
.adp-profile-password-errors .rz-alert a { display: inline-block; margin-top: 8px; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.adp-profile-password-form .adp-form-actions { padding-top: 2px; }
@media (max-width: 1000px) {
    .adp-profile-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .adp-profile-facts { grid-template-columns: 110px minmax(0, 1fr); gap: 11px 12px; }
    .adp-profile-account, .adp-profile-password > .adp-card-body { padding: 14px; }
    .adp-profile-password-form .adp-form-actions > .rz-button { width: 100%; }
}

/* Audit history: compact query controls and readable, encoded historical snapshots. */
.adp-audit-search-toolbar { flex-wrap: wrap; }
.adp-audit-search-toolbar .adp-search { min-width: min(290px, 100%); }
.adp-audit-filter-toolbar { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(140px, 1fr) minmax(130px, .9fr) minmax(150px, 1fr) minmax(150px, 1fr); align-items: end; gap: 10px; }
.adp-audit-time-hint { margin: 8px 14px 0; color: var(--adp-dim); font-size: .73rem; flex: 0 0 auto; }
.adp-audit-summary { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adp-audit-overview { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--adp-inset); border: 1px solid var(--adp-border); border-radius: var(--adp-radius); min-width: 0; }
.adp-audit-overview h2 { margin: 0; font-size: 1rem; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.adp-audit-event-status, .adp-audit-section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.adp-audit-event-time { display: flex; flex-wrap: wrap; gap: 5px 18px; font-size: .8rem; }
.adp-audit-reason { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-size: .78rem; overflow-wrap: anywhere; }
.adp-audit-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.adp-audit-detail-section { min-width: 0; padding: 14px; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); }
.adp-audit-detail-section h3 { margin: 0 0 12px; }
.adp-audit-section-head { justify-content: space-between; margin-bottom: 12px; }
.adp-audit-section-head h3 { margin: 0; }
.adp-audit-facts { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: baseline; gap: 9px 12px; margin: 0; font-size: .8rem; }
.adp-audit-facts dt { color: var(--adp-dim); font-size: .72rem; }
.adp-audit-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.adp-audit-change { min-width: 0; overflow: hidden; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); }
.adp-audit-change + .adp-audit-change { margin-top: 10px; }
.adp-audit-change-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 9px 12px; background: var(--adp-inset); border-bottom: 1px solid var(--adp-border); }
.adp-audit-change.is-changed .adp-audit-change-head { border-inline-start: 3px solid var(--adp-info); padding-inline-start: 9px; }
.adp-audit-property { min-width: 0; overflow-wrap: anywhere; font-size: .79rem; }
.adp-audit-change-head .adp-card-meta { flex: 0 0 auto; }
.adp-audit-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.adp-audit-value { min-width: 0; padding: 10px 12px; }
.adp-audit-value + .adp-audit-value { border-inline-start: 1px solid var(--adp-border); }
.adp-audit-value pre, .adp-audit-metadata pre { margin: 7px 0 0; font-family: var(--adp-font-mono); font-size: .78rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; tab-size: 2; color: inherit; }
.adp-audit-value pre.adp-audit-value-missing { font-family: var(--adp-font); font-style: italic; color: var(--adp-dim); }
.adp-audit-metadata { align-items: start; grid-template-columns: minmax(120px, .7fr) minmax(0, 2fr); }
.adp-audit-metadata dt { overflow-wrap: anywhere; }
.adp-audit-metadata pre { margin: 0; }
.adp-audit-related-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.adp-audit-related-record { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--adp-inset); border-radius: var(--adp-radius); overflow-wrap: anywhere; }
.adp-audit-empty-copy { margin: 0; color: var(--adp-dim); font-size: .78rem; line-height: 1.5; }
.adp-audit-facts + .adp-audit-empty-copy { margin-top: 12px; }
.adp-audit-retention-note { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--adp-dim); font-size: .75rem; line-height: 1.5; }
.adp-audit-retention-note .rzi { font-size: 1rem; flex: 0 0 auto; }
@container (max-width: 680px) {
    .adp-audit-parties, .adp-audit-comparison, .adp-audit-related-list { grid-template-columns: minmax(0, 1fr); }
    .adp-audit-value + .adp-audit-value { border-inline-start: 0; border-top: 1px solid var(--adp-border); }
    .adp-audit-facts { grid-template-columns: 94px minmax(0, 1fr); }
}
@media (max-width: 1180px) {
    .adp-audit-filter-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .adp-audit-filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adp-audit-filter-toolbar > .adp-field:first-child { grid-column: 1 / -1; }
    .adp-audit-parties, .adp-audit-comparison, .adp-audit-related-list { grid-template-columns: minmax(0, 1fr); }
    .adp-audit-value + .adp-audit-value { border-inline-start: 0; border-top: 1px solid var(--adp-border); }
    .adp-audit-facts { grid-template-columns: 90px minmax(0, 1fr); gap: 9px; }
}

/* Live production schedule: the reference calendar's blue accents within the portal geometry. */
.adp-schedule { overflow: hidden; }
.adp-schedule-monthbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; color: var(--rz-on-primary); background: linear-gradient(112deg, var(--adp-accent-strong), var(--adp-accent)); flex: 0 0 auto; }
.adp-schedule-monthnav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.adp-schedule-calendar-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--rz-on-primary) 25%, transparent); border-radius: var(--adp-radius-lg); background: color-mix(in srgb, var(--rz-on-primary) 9%, transparent); }
.adp-schedule-calendar-icon .rzi { font-size: 1.65rem; }
.adp-schedule-eyebrow { display: block; font-size: .66rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; opacity: .82; }
.adp-schedule-month-heading h2 { margin: 3px 0 0; font-size: 1.45rem; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; color: inherit; }
.adp-schedule-month-button { display: inline-flex; align-items: center; gap: 7px; padding: 3px 5px; margin: -3px -5px; border: 0; border-radius: var(--adp-radius); background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; transition: background .1s ease; }
.adp-schedule-month-button:hover { background: color-mix(in srgb, var(--rz-on-primary) 14%, transparent); }
.adp-schedule-month-button .rzi { font-size: 1.3rem; opacity: .85; }
.adp-month-picker { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.adp-month-picker-year { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: end; gap: 16px; }
.adp-month-picker-year-field { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.adp-month-picker-year-input { box-sizing: border-box; width: 100%; max-width: 144px; min-width: 0; height: 44px; padding: 6px 10px; border: 1px solid var(--adp-border-strong); border-radius: var(--adp-radius); background: var(--adp-inset); color: var(--rz-text-color); font: inherit; font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; text-align: center; }
.adp-month-picker-year-input[aria-invalid="true"] { border-color: var(--adp-danger); }
.adp-month-picker-year-nav { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; }
.adp-month-picker-year-nav, .adp-month-picker-month { border: 1px solid var(--adp-border); border-radius: var(--adp-radius); background: var(--adp-inset); color: var(--rz-text-color); font: inherit; cursor: pointer; transition: background .1s ease, border-color .1s ease; }
.adp-month-picker-year-nav:hover:not(:disabled), .adp-month-picker-month:hover:not(:disabled) { border-color: var(--adp-accent); background: var(--adp-accent-faint); color: var(--adp-link); }
.adp-month-picker-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; min-width: 0; }
.adp-month-picker-month { position: relative; min-width: 0; min-height: 50px; padding: 12px 6px; font-size: .87rem; font-weight: 600; overflow-wrap: anywhere; }
.adp-month-picker-month.is-selected { border-color: var(--adp-accent); background: var(--adp-accent-soft); color: var(--adp-link); }
.adp-month-picker-selected-mark { position: absolute; width: 4px; height: 4px; bottom: 5px; left: calc(50% - 2px); border-radius: 1px; background: currentColor; }
.adp-month-picker-year-nav:disabled, .adp-month-picker-month:disabled { opacity: .45; cursor: default; }
.adp-month-picker button:focus-visible, .adp-month-picker-year-input:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: 2px; }
.adp-schedule-month-actions { display: flex; align-items: center; gap: 5px; margin-inline-start: 5px; }
.adp-schedule-nav, .adp-schedule-view-toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; transition: background .1s ease, border-color .1s ease; }
.adp-schedule-nav { min-height: 32px; border: 1px solid color-mix(in srgb, var(--rz-on-primary) 30%, transparent); border-radius: var(--adp-radius); background: color-mix(in srgb, var(--rz-on-primary) 8%, transparent); color: inherit; }
.adp-schedule-nav { width: 32px; padding: 0; }
.adp-schedule-nav:hover:not(:disabled) { background: color-mix(in srgb, var(--rz-on-primary) 22%, transparent); }
.adp-schedule-nav:disabled { opacity: .5; cursor: default; }
.adp-schedule-monthbar button:focus-visible, .adp-schedule-monthbar input:focus-visible { outline: 2px solid var(--rz-on-primary); outline-offset: 2px; }
.adp-schedule-date-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.adp-schedule-control-label { font-size: .68rem; opacity: .85; }
.adp-schedule-date-select { max-width: 100%; }
.adp-schedule-date-select:focus-visible { outline: 2px solid var(--rz-on-primary); outline-offset: 2px; }
.adp-schedule-toolbar { flex-wrap: wrap; padding-block: 13px; }
.adp-schedule-search { flex: 1 1 280px; min-width: 0; max-width: 510px; margin-inline-end: auto; }
.adp-schedule-search-label { display: none; }
.adp-schedule-list-hint { display: none; }
.adp-schedule-mobile-copy { display: none; }
.adp-schedule-unit-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.adp-schedule-view-toggle { display: inline-flex; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); overflow: hidden; background: var(--adp-inset); flex: 0 0 auto; }
.adp-schedule-view-toggle button { min-height: 32px; padding: 6px 11px; border: 0; background: transparent; color: var(--adp-dim); }
.adp-schedule-view-toggle button + button { border-inline-start: 1px solid var(--adp-border); }
.adp-schedule-view-toggle button[aria-pressed="true"] { background: var(--adp-accent-soft); color: var(--adp-link); }
.adp-schedule-view-toggle button:hover:not([aria-pressed="true"]) { background: var(--adp-hover); color: var(--rz-text-color); }
.adp-schedule-view-toggle button:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: -3px; }
.adp-schedule-view-toggle .rzi { font-size: 1rem; }
.adp-schedule-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 0 15px 12px; border-bottom: 1px solid var(--adp-border); flex: 0 0 auto; }
.adp-schedule-summary-primary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; color: var(--adp-dim); font-size: .76rem; }
.adp-schedule-scope { display: flex; align-items: center; gap: 5px; overflow-wrap: anywhere; }
.adp-schedule-scope .rzi { font-size: .95rem; }
.adp-schedule-body { padding: 0; }
/* Keep complete unit-list headings readable at every width, beside their sort arrows. */
.adp-schedule .rz-grid-table thead th .rz-column-title,
.adp-schedule .rz-grid-table thead th .rz-column-title-content {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
}
.adp-schedule .rz-grid-table thead th .rz-column-title-content { min-width: 0; overflow-wrap: anywhere; }
.adp-schedule .rz-grid-table thead th .rzi-grid-sort { flex-shrink: 0; }
/* Reserve the same job-cell height for every virtualized WIP row. */
.adp-wip-job { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-height: 48px; }
.adp-wip-response { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 4px; border: 1px solid color-mix(in srgb, var(--adp-warn) 35%, transparent); border-radius: var(--adp-radius-sm); background: color-mix(in srgb, var(--adp-warn) 9%, var(--adp-surface)); color: color-mix(in srgb, var(--adp-warn) 55%, var(--rz-text-color)); font-size: .64rem; font-weight: 600; line-height: 1.35; white-space: normal; }
.adp-wip-response .rzi { flex: 0 0 auto; font-size: .8rem; }
.adp-schedule-calendar-scroll { flex: 1 1 auto; min-height: 310px; overflow: auto; }
.adp-schedule-calendar-scroll:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: -2px; }
.adp-schedule-calendar { min-width: 920px; }
.adp-schedule-weekdays, .adp-schedule-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.adp-schedule-weekdays { position: sticky; top: 0; z-index: 1; background: var(--adp-inset); border-bottom: 1px solid var(--adp-border-strong); }
.adp-schedule-weekdays > div { padding: 12px 10px; font-size: .66rem; font-weight: 700; color: var(--adp-dim); letter-spacing: .05em; text-transform: uppercase; border-inline-end: 1px solid var(--adp-border); }
.adp-schedule-weekdays > div:last-child { border-inline-end: 0; }
.adp-schedule-day { min-height: 124px; padding: 9px 7px; border-inline-end: 1px solid var(--adp-border); border-bottom: 1px solid var(--adp-border); min-width: 0; background: var(--adp-surface); }
.adp-schedule-day:last-child { border-inline-end: 0; }
.adp-schedule-day.is-weekend { background: var(--adp-inset); }
.adp-schedule-day.is-today { background: color-mix(in srgb, var(--adp-accent) 7%, var(--adp-surface)); box-shadow: inset 0 3px 0 var(--adp-accent); }
.adp-schedule-day.is-outside { background: var(--adp-inset); color: var(--adp-faint); }
.adp-schedule-day-heading { display: flex; align-items: center; gap: 5px; min-height: 23px; margin-bottom: 8px; }
.adp-schedule-day-heading time { font-size: .78rem; font-weight: 650; padding: 3px 5px; border-radius: var(--adp-radius-sm); }
.adp-schedule-day.is-today time { background: var(--adp-accent); color: var(--rz-on-primary); }
.adp-schedule-adjacent-month { font-size: .67rem; font-weight: 400; }
.adp-schedule-today-label { color: var(--adp-link); font-size: .64rem; font-weight: 600; }
.adp-schedule-day-count { margin-inline-start: auto; color: var(--adp-dim); font-size: .65rem; font-variant-numeric: tabular-nums; }
.adp-schedule-mobile-day { display: none; }
.adp-schedule-unit { margin-top: 7px; padding: 9px 8px; background: var(--rz-body-background-color); border: 1px solid var(--adp-border); border-inline-start: 3px solid var(--adp-accent); border-radius: var(--adp-radius); box-shadow: var(--adp-shadow-card); overflow-wrap: anywhere; }
.adp-schedule-unit-top { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px; }
.adp-schedule-unit-top strong { font-size: .88rem; font-weight: 700; letter-spacing: -.015em; }
.adp-schedule-unit-top > span { margin-inline-start: auto; max-width: 100%; text-align: end; font-size: .59rem; text-transform: uppercase; color: var(--adp-dim); }
.adp-schedule-unit-details { display: flex; align-items: baseline; gap: 8px; margin-top: 5px; }
.adp-schedule-unit-customer { flex: 1; min-width: 0; font-size: .73rem; line-height: 1.4; }
.adp-schedule-unit-dealer { display: flex; flex: 0 0 auto; gap: 4px; align-items: center; justify-content: flex-end; text-align: end; color: var(--adp-dim); font-size: .66rem; }
.adp-schedule-unit-dealer .rzi { font-size: .82rem; }
.adp-schedule-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 15px; border-top: 1px solid var(--adp-border); color: var(--adp-dim); font-size: .69rem; flex: 0 0 auto; }
.adp-schedule-footer > span:first-child { display: flex; align-items: center; gap: 5px; }
.adp-schedule-footer .rzi { font-size: .9rem; }
.adp-schedule-print-frame { position: fixed; inset-inline-start: -10000px; width: 1200px; height: 1px; border: 0; }
@media (max-width: 1180px) {
    .adp-schedule-date-controls { align-items: flex-start; }
    .adp-schedule-calendar-scroll { max-height: 720px; }
}
@media (max-width: 800px) {
    .adp-schedule-monthbar { padding: 16px; gap: 16px; }
    .adp-schedule-calendar { min-width: 0; }
    .adp-schedule-weekdays { display: none; }
    .adp-schedule-week { grid-template-columns: minmax(0, 1fr); }
    .adp-schedule-day { min-height: 54px; padding: 10px 13px; border-inline-end: 0; }
    .adp-schedule-day.is-outside { display: none; }
    .adp-schedule-day-heading { margin-bottom: 0; }
    .adp-schedule-mobile-day { display: inline; }
    .adp-schedule-desktop-day { display: none; }
    .adp-schedule-day-heading time { font-size: .8rem; min-width: 0; max-width: 100%; line-height: 1.5; }
    .adp-schedule-unit { padding: 11px; }
    .adp-schedule-unit-top strong { font-size: .95rem; }
}
@media (max-width: 640px) {
    .adp-schedule-search { flex-basis: 100%; max-width: none; }
    .adp-schedule-summary-primary { gap: 7px 10px; }
    .adp-schedule-scope { flex-basis: 100%; }
    .adp-schedule-footer > span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .adp-month-picker-year-nav, .adp-month-picker-month { transition: none; }
    .adp-schedule-nav, .adp-schedule-month-button, .adp-schedule-view-toggle button { transition: none; }
}

/* Customer mobile layouts. Administration pages retain their existing geometry. */
.adp-customer-shell .adp-search:has(.adp-search-busy):has(.adp-search-clear) .adp-search-input,
.adp-quick-nav-dialog .adp-search:has(.adp-search-busy):has(.adp-search-clear) .adp-search-input { padding-inline-end: 64px; }
@media (max-width: 800px), (any-pointer: coarse) {
    .adp-customer-shell .adp-brand { min-height: 44px; }
    .adp-customer-shell .adp-topbar :is(.adp-quick-nav-trigger, .adp-icon-btn, .rz-toggle-button, .rz-button-icon-only) { min-width: 44px; width: 44px; height: 44px; }
    .adp-customer-shell .adp-quick-nav-trigger { justify-content: center; padding: 0; }
    .adp-customer-shell .adp-quick-nav-trigger :is(.adp-quick-nav-trigger-label, kbd) { display: none; }
    .adp-customer-shell .adp-topbar-actions { gap: 4px; }
    .adp-customer-shell .adp-topbar-divider, .adp-customer-shell .adp-user .adp-avatar { display: none; }
    .adp-customer-shell .adp-nav-item { min-height: 44px; }
    .adp-customer-shell .adp-sidenav { padding-inline: 6px; }
    .adp-customer-shell .adp-search-input, .adp-quick-nav-dialog .adp-search-input { min-height: 48px; font-size: 16px; padding-inline-end: 52px; }
    .adp-customer-shell .adp-search-clear, .adp-quick-nav-dialog .adp-search-clear { width: 44px; height: 44px; }
    .adp-customer-shell .adp-search-trailing, .adp-quick-nav-dialog .adp-search-trailing { inset-inline-end: 2px; }
    .adp-customer-shell .adp-search:has(.adp-search-busy):has(.adp-search-clear) .adp-search-input,
    .adp-quick-nav-dialog .adp-search:has(.adp-search-busy):has(.adp-search-clear) .adp-search-input { padding-inline-end: 78px; }
    .adp-schedule :is(.adp-schedule-nav, .adp-schedule-view-toggle button, .rz-button, .adp-link-btn) { min-height: 44px; }
    .adp-schedule-nav { width: 44px; }
    .adp-schedule-month-button { min-height: 44px; text-align: start; }
    .adp-schedule-date-select { min-height: 44px; font-size: 16px; }
    .adp-schedule-date-select .rz-inputtext { font-size: 16px; }
    .adp-profile :is(.rz-button, .adp-link-btn) { min-height: 44px; }
    .adp-profile-password-input input { min-height: 48px; font-size: 16px; padding-inline-end: 50px; }
    .adp-profile-password-input > .adp-icon-btn { width: 44px; min-width: 44px; height: 44px; inset-inline-end: 2px; }
    :is(.adp-schedule-month-dialog, .adp-quick-nav-dialog) .adp-dlg-close { width: 44px; height: 44px; margin: -6px -6px 0 0; }
    :is(.adp-schedule-month-dialog, .adp-quick-nav-dialog) .adp-dlg-foot .rz-button { min-height: 44px; }
    .adp-quick-nav-hints { display: none; }
    .adp-quick-nav-touch-hint { display: block; flex: 1 1 100px; color: var(--adp-dim); font-size: .85rem; }
    .adp-quick-nav-touch-close.rz-button { display: inline-flex; }
}
@media (max-width: 800px) {
    .adp-schedule-calendar-scroll { max-height: none; overflow: visible; }
    .adp-schedule-day-heading { flex-wrap: wrap; }
    .adp-schedule-unit-top strong .adp-schedule-unit-label { position: static; width: auto; height: auto; clip-path: none; white-space: normal; font-weight: 500; }
    .adp-schedule-mobile-copy { display: inline; }
    .adp-schedule-unit-customer { font-size: .9rem; }
    .adp-schedule-unit-dealer { font-size: .8rem; }
    .adp-schedule-unit-top > span { font-size: .72rem; }
    .adp-schedule-list-hint { display: block; flex: 0 0 auto; margin: 0; padding: 12px 14px; color: var(--adp-dim); background: var(--adp-inset); font-size: .8rem; line-height: 1.5; }
    .adp-schedule .rz-column-title { min-height: 44px; }
    .adp-schedule-mobile-copy { margin-inline-end: .25em; }
    .adp-schedule-mobile-copy { margin-inline-start: .25em; }
    .adp-schedule .rz-data-grid-data { overscroll-behavior-x: contain; }
    .adp-schedule .adp-grid-fill { min-height: 280px; }
}
@media (max-width: 640px) {
    .adp-customer-shell .adp-topbar { gap: 8px; padding-inline: 10px; }
    .adp-customer-shell .adp-brand { gap: 8px; }
    .adp-customer-shell .adp-content { padding: 14px 10px max(18px, env(safe-area-inset-bottom)); }
    .adp-customer-shell .adp-page-head { flex-wrap: wrap; gap: 12px; }
    .adp-customer-shell .adp-page-head-text { min-width: 0; overflow-wrap: anywhere; }
    .adp-customer-shell .adp-page-head-actions .rz-button { min-height: 44px; }
    .adp-schedule-monthbar { padding: 14px; }
    .adp-schedule-calendar-icon { display: none; }
    .adp-schedule-monthnav { width: 100%; gap: 10px; }
    .adp-schedule-month-heading { flex: 1 1 140px; min-width: 0; }
    .adp-schedule-month-heading h2 { font-size: 1.25rem; }
    .adp-schedule-month-actions { margin-inline-start: 0; }
    .adp-schedule-date-controls { width: 100%; align-items: stretch; }
    .adp-schedule-control-label { font-size: .8rem; }
    .adp-schedule-date-select { width: 100% !important; }
    .adp-schedule-toolbar { padding: 12px; gap: 10px; }
    .adp-schedule-search-label { display: block; margin-bottom: 6px; color: var(--adp-dim); font-size: .8rem; }
    .adp-schedule-view-toggle { display: flex; width: 100%; }
    .adp-schedule-view-toggle button { flex: 1 1 50%; }
    .adp-schedule-toolbar > .rz-button { width: 100%; }
    .adp-schedule-summary { padding-inline: 12px; }
    .adp-schedule-scope { min-width: 0; }
    .adp-schedule .adp-empty { padding: 24px 14px; overflow-wrap: anywhere; }
    .adp-schedule-footer > span:first-child { align-items: flex-start; line-height: 1.5; }
    .adp-schedule-footer .rzi { flex: 0 0 auto; }
    .adp-profile-facts { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .adp-profile-facts dd:not(:last-child) { margin-bottom: 12px; }
    .adp-profile-facts .adp-cell-status { align-items: flex-start; }
    .adp-profile .adp-field-help, .adp-profile .adp-profile-intro { font-size: .875rem; }
    .adp-notfound { padding: 16px; }
    .adp-notfound-card { padding: 28px 20px; }
    .adp-notfound-card p { font-size: .94rem; }
    .adp-notfound-card .rz-button { min-height: 44px; width: 100%; white-space: normal; }
    :is(.adp-schedule-month-dialog, .adp-quick-nav-dialog) .adp-dlg-head { padding: 16px 12px 12px; gap: 8px; }
    :is(.adp-schedule-month-dialog, .adp-quick-nav-dialog) .adp-dlg-body { padding: 16px 12px; }
    :is(.adp-schedule-month-dialog, .adp-quick-nav-dialog) .adp-dlg-foot { padding: 12px; }
}

/* Allocated: an annual planning form with separate monthly dealer capacities. */
.adp-allocation { flex: 0 0 auto; min-width: 0; }
.adp-allocation-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border-bottom: 1px solid var(--adp-border); }
.adp-allocation-toolbar h2 { margin: 0 0 5px; font-size: 1rem; font-weight: 650; }
.adp-allocation-toolbar p { margin: 0; color: var(--adp-dim); font-size: .82rem; line-height: 1.55; }
.adp-allocation-year { flex: 0 0 auto; }
.adp-allocation-year > label { display: block; margin-bottom: 6px; }
.adp-allocation-year-controls { display: flex; align-items: stretch; gap: 6px; }
.adp-allocation-year-controls input { width: 100px; min-width: 0; font-variant-numeric: tabular-nums; text-align: center; }
.adp-allocation-summary { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 18px; color: var(--adp-dim); font-size: .78rem; border-bottom: 1px solid var(--adp-border); }
.adp-allocation-edit-window { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--adp-accent-faint); border-bottom: 1px solid var(--adp-border); }
.adp-allocation-edit-window > .rzi { flex: 0 0 auto; color: var(--adp-accent); }
.adp-allocation-edit-window p { flex: 1; min-width: 0; margin: 0; color: var(--adp-dim); font-size: .8rem; line-height: 1.55; }
.adp-allocation-edit-window strong { color: var(--rz-text-color); }
.adp-allocation-edit-window > button { flex: 0 0 auto; }
.adp-allocation-info { align-items: flex-start; }
.adp-allocation-info > div { flex: 1; min-width: 0; display: grid; gap: 6px; overflow-wrap: anywhere; }
.adp-allocation-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 18px; font-size: .82rem; line-height: 1.5; color: var(--adp-dim); overflow-wrap: anywhere; }
.adp-allocation-note > .rzi { flex: 0 0 auto; font-size: 1.1rem; }
.adp-allocation-note.is-warning { color: var(--adp-warn); }
.adp-allocation-outstanding { margin: 12px 18px; border: 1px solid color-mix(in srgb, var(--adp-warn) 45%, var(--adp-border)); border-radius: var(--adp-radius); background: color-mix(in srgb, var(--adp-warn) 5%, var(--adp-surface)); }
.adp-allocation-outstanding-heading { display: flex; align-items: flex-start; gap: 9px; padding: 12px; }
.adp-allocation-outstanding-heading > .rzi { flex: 0 0 auto; color: var(--adp-warn); font-size: 20px; }
.adp-allocation-outstanding h3 { margin: 0 0 4px; font-size: .85rem; font-weight: 650; }
.adp-allocation-outstanding p { margin: 0; font-size: .76rem; line-height: 1.5; color: var(--adp-dim); overflow-wrap: anywhere; }
.adp-allocation-outstanding ul { margin: 0; padding: 0; list-style: none; }
.adp-allocation-outstanding li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; border-top: 1px solid var(--adp-border); padding: 12px; }
.adp-allocation-outstanding li > div { display: flex; flex: 1 1 240px; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; font-size: .78rem; }
.adp-allocation-outstanding li strong { font-weight: 600; }
.adp-allocation-outstanding li span { color: var(--adp-dim); font-size: .74rem; }
.adp-allocation-outstanding li > a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 44px; }
.adp-allocation-outstanding li > a[aria-disabled="true"] { opacity: .6; cursor: default; }
.adp-allocation-outstanding li > a .rzi { font-size: 18px; }
.adp-allocation-loading { padding: 18px; }
.adp-allocation-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; padding: 18px; }
.adp-allocation-month { min-width: 0; overflow: hidden; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); }
.adp-allocation-month.is-open { border-color: var(--adp-accent); }
.adp-allocation-month-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 13px 14px; background: var(--adp-inset); border-bottom: 1px solid var(--adp-border); }
.adp-allocation-month.is-open .adp-allocation-month-head { background: var(--adp-accent-faint); }
.adp-allocation-month-head h3 { margin: 0; font-size: 1rem; font-weight: 650; }
.adp-allocation-month-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.adp-allocation-month-state { padding: 2px 6px; border: 1px solid var(--adp-border-strong); border-radius: var(--adp-radius-sm); color: var(--adp-dim); font-size: .7rem; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.adp-allocation-month-state.is-open { color: var(--adp-accent); border-color: var(--adp-accent); }
.adp-allocation-month-head h3, .adp-allocation-dealer-head h4 { scroll-margin-block-start: calc(var(--adp-topbar-h) + 16px); }
.adp-allocation-dealer + .adp-allocation-dealer { border-top: 2px solid var(--adp-border-strong); }
.adp-allocation-dealer { min-width: 0; }
.adp-allocation-dealer-head { padding: 12px 14px; background: var(--adp-inset); border-bottom: 1px solid var(--adp-border); }
.adp-allocation-dealer-head h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; font-size: .85rem; line-height: 1.4; overflow-wrap: anywhere; }
.adp-allocation-dealer-head h4 .adp-mono { color: var(--adp-dim); font-size: .76rem; font-weight: 500; }
.adp-allocation-capacity { display: block; margin-top: 6px; font-size: .73rem; color: var(--adp-dim); line-height: 1.65; }
.adp-allocation-empty { margin: 0; padding: 16px 14px; font-size: .82rem; color: var(--adp-dim); }
.adp-allocation-slot { min-width: 0; padding: 12px 14px; }
.adp-allocation-slot + .adp-allocation-slot { border-top: 1px solid var(--adp-border); }
.adp-allocation-slot.needs-review { border-inline-start: 3px solid var(--adp-warn); padding-inline-start: 11px; }
.adp-allocation-slot-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.adp-allocation-slot-number { font-size: .75rem; font-weight: 650; }
.adp-allocation-slot-state { font-size: .71rem; color: var(--adp-dim); }
.adp-allocation-slot-fields { display: grid; grid-template-columns: minmax(105px, .7fr) minmax(0, 1.6fr); align-items: start; gap: 10px; }
.adp-allocation-slot-fields > .adp-field { min-width: 0; }
.adp-allocation-slot-fields .rz-dropdown { width: 100%; min-width: 0; }
.adp-allocation-slot-fields .rz-dropdown-label { text-overflow: ellipsis; }
.adp-allocation-slot-fields .adp-field-label { font-size: .65rem; }
.adp-allocation-unit-select { display: flex; align-items: center; gap: 8px; min-width: 0; }
.adp-allocation-unit-select > .rz-dropdown { flex: 1 1 0; width: 0; }
.adp-allocation-unit-select > .adp-record-actions { flex: 0 0 auto; }
.adp-allocation-stream-option { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; min-width: 0; }
.adp-allocation-option-reason { font-size: .7rem; color: var(--adp-dim); }
.adp-allocation-unit-option { display: flex; flex-direction: column; min-width: 0; gap: 3px; padding-block: 3px; white-space: normal; overflow-wrap: anywhere; }
.adp-allocation-unit-option strong { font-size: .82rem; }
.adp-allocation-unit-option > span { font-size: .8rem; }
.adp-allocation-unit-option small { font-size: .7rem; color: var(--adp-dim); }
.adp-allocation-dropdown-empty { display: block; padding: 10px; font-size: .8rem; white-space: normal; line-height: 1.5; }
.adp-allocation-readonly strong { font-size: .8rem; font-weight: 650; }
.adp-allocation-readonly span { font-size: .8rem; }
.adp-allocation-review { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; color: var(--adp-warn); }
.adp-allocation-review > .rzi { flex: 0 0 auto; font-size: 1.1rem; }
.adp-allocation-review > div { display: flex; flex-direction: column; gap: 3px; font-size: .75rem; line-height: 1.4; }
.adp-allocation-review strong { font-weight: 650; }
.adp-allocation-readonly { display: flex; gap: 12px; align-items: baseline; }
.adp-allocation-readonly-stream { color: var(--adp-dim); flex: 0 0 auto; }
.adp-allocation-readonly > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.adp-allocation-readonly-row { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.adp-allocation-readonly-row > .adp-allocation-readonly { flex: 1 1 180px; min-width: 0; }
.adp-allocation-xa-status { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 10px; font-size: .7rem; color: var(--adp-dim); }
.adp-allocation-xa-status > span:first-child { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.adp-allocation-xa-status .rzi { font-size: 16px; flex: 0 0 auto; }
.adp-allocation-xa-status strong { font-weight: 550; }
.adp-allocation-xa-status.is-pending .rzi { color: var(--adp-warn); }
.adp-allocation-carry-notice { display: flex; align-items: flex-start; gap: 8px; margin-top: 10px; padding: 10px; border: 1px solid var(--adp-border); border-inline-start: 3px solid var(--adp-accent); border-radius: var(--adp-radius-sm); background: var(--adp-accent-faint); }
.adp-allocation-carry-notice > .rzi { flex: 0 0 auto; color: var(--adp-accent); font-size: 18px; }
.adp-allocation-carry-notice > div { display: flex; flex-direction: column; min-width: 0; gap: 5px; font-size: .75rem; line-height: 1.5; overflow-wrap: anywhere; }
.adp-allocation-carry-notice strong { font-weight: 650; color: var(--rz-text-color); }
.adp-allocation-carry-notice span { color: var(--adp-dim); }
.adp-allocation-carry-notice:is(.is-blocked, .is-urgent, .is-pending) { border-inline-start-color: var(--adp-warn); background: color-mix(in srgb, var(--adp-warn) 7%, var(--adp-surface)); }
.adp-allocation-carry-notice:is(.is-blocked, .is-urgent, .is-pending) > .rzi { color: var(--adp-warn); }
.adp-allocation-history { border-top: 1px solid var(--adp-border); background: var(--adp-inset); font-size: .76rem; }
.adp-allocation-history > summary { cursor: pointer; padding: 12px 14px; line-height: 1.5; min-height: 44px; }
.adp-allocation-history > summary > strong { font-weight: 600; }
.adp-allocation-history > summary > span { display: block; margin-inline-start: 16px; font-size: .7rem; color: var(--adp-dim); }
.adp-allocation-history > summary:focus-visible { outline: 2px solid var(--adp-accent); outline-offset: -3px; }
.adp-allocation-history ol { margin: 0; padding: 0 14px 14px; list-style: none; }
.adp-allocation-history li { display: flex; flex-direction: column; gap: 4px; padding: 11px; margin-bottom: 8px; border: 1px solid var(--adp-border); border-inline-start: 3px solid var(--adp-border-strong); border-radius: var(--adp-radius-sm); background: var(--adp-surface); overflow-wrap: anywhere; line-height: 1.5; }
.adp-allocation-history li:last-child { margin-bottom: 0; }
.adp-allocation-history li > strong { font-weight: 550; }
.adp-allocation-history li > span, .adp-allocation-history p { color: var(--adp-dim); }
.adp-allocation-history p { margin: 2px 0 0; white-space: pre-wrap; }
.adp-allocation-history-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 3px; }
.adp-allocation-history-head strong { color: var(--adp-accent); font-weight: 650; }
.adp-allocation-history-head time { font-size: .68rem; color: var(--adp-dim); }
.adp-allocation-override :is(.rz-dropdown, .rz-textarea) { width: 100%; min-width: 0; }
.adp-allocation-override textarea { resize: vertical; min-height: 90px; }
.adp-allocation-override-current { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); background: var(--adp-inset); font-size: .82rem; overflow-wrap: anywhere; }
.adp-allocation-override-current > span:last-child { color: var(--adp-dim); font-size: .75rem; }
.adp-allocation-window { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--adp-border); font-size: .75rem; color: var(--adp-dim); }
.adp-allocation-window > div { display: flex; gap: 6px; }
@media (max-width: 1180px) {
    .adp-allocation-months { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
    .adp-allocation :is(.rz-button, .rz-dropdown, input.rz-textbox) { min-height: 44px; }
    .adp-allocation :is(.rz-dropdown-label, input.rz-textbox) { font-size: 16px; }
    .adp-allocation-toolbar { flex-wrap: wrap; gap: 14px; }
    .adp-allocation-toolbar p { font-size: .875rem; }
}
@media (max-width: 640px) {
    .adp-allocation-toolbar { padding: 14px 12px; }
    .adp-allocation-year { width: 100%; }
    .adp-allocation-year-controls input { flex: 1; }
    .adp-allocation-summary { padding: 12px; }
    .adp-allocation-edit-window { flex-wrap: wrap; align-items: flex-start; padding: 12px; }
    .adp-allocation-edit-window p { font-size: .875rem; }
    .adp-allocation-edit-window > button { min-height: 44px; margin-inline-start: 34px; }
    .adp-allocation-note { padding-inline: 12px; }
    .adp-allocation-outstanding { margin-inline: 12px; }
    .adp-allocation-months { padding: 12px; gap: 14px; }
    .adp-allocation-month-head, .adp-allocation-dealer-head { padding-inline: 12px; }
    .adp-allocation-slot { padding: 12px; }
    .adp-allocation-slot.needs-review { padding-inline-start: 9px; }
    .adp-allocation-slot-fields { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .adp-allocation-slot-fields .adp-field-label { font-size: .7rem; }
    .adp-allocation-slot-state { font-size: .75rem; }
    .adp-allocation-carry-notice > div { font-size: .8rem; }
    .adp-allocation-xa-status { font-size: .74rem; }
    .adp-allocation-history > summary { padding-inline: 12px; }
    .adp-allocation-history ol { padding-inline: 12px; }
    .adp-allocation-override :is(.rz-dropdown, .rz-textbox, .rz-textarea) { min-height: 44px; font-size: 16px; }
    .adp-allocation-unit-select .adp-record-action-direct { min-width: 44px; min-height: 44px; }
    .adp-allocation-month-head h3 { font-size: 1.06rem; }
}

/* Live dealer overview: scoped metrics, production charts and allocation planning. */
.adp-dashboard-page-head { margin-bottom: 20px; }
.adp-dashboard-page-head h1 { font-size: 1.45rem; letter-spacing: -.035em; }
.adp-dashboard-date { display: inline-flex; align-items: center; gap: 7px; color: var(--adp-dim); font-size: .76rem; }
.adp-dashboard-date .rzi { font-size: 18px; }
.adp-dashboard { padding: 0; gap: 18px; max-width: none; }
.adp-dashboard > * { min-width: 0; }
.adp-dashboard a { text-decoration: none; }
.adp-dashboard a:focus-visible, .adp-dashboard button:focus-visible { outline: 2px solid var(--adp-link); outline-offset: 3px; }
.adp-dashboard .adp-card { margin: 0; }
.adp-dashboard-eyebrow { display: block; font-size: .64rem; font-weight: 650; letter-spacing: .115em; text-transform: uppercase; color: var(--adp-dim); }
.adp-dashboard-hero { display: flex; flex-direction: row; align-items: center; gap: 28px; padding: 28px 30px; background: var(--adp-accent-strong); border-color: transparent; color: var(--rz-on-primary); position: relative; }
.adp-dashboard-hero-title { flex: 1 1 auto; min-width: 0; }
.adp-dashboard-hero .adp-dashboard-eyebrow { color: color-mix(in srgb, var(--rz-on-primary) 80%, transparent); }
.adp-dashboard-hero h2 { color: inherit; font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.16; margin: 9px 0 10px; }
.adp-dashboard-hero h2 span { font-weight: 350; color: color-mix(in srgb, var(--rz-on-primary) 82%, transparent); }
.adp-dashboard-hero p { margin: 0; font-size: .78rem; color: color-mix(in srgb, var(--rz-on-primary) 90%, transparent); line-height: 1.55; }
.adp-dashboard-scope { display: flex; flex-direction: column; gap: 7px; padding-inline-start: 26px; border-inline-start: 1px solid color-mix(in srgb, var(--rz-on-primary) 25%, transparent); min-width: 0; max-width: 260px; }
.adp-dashboard-scope > strong { font-size: 1.7rem; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.adp-dashboard-scope > strong span { font-size: .84rem; font-weight: 450; }
.adp-dashboard-scope-codes { font-size: .72rem; line-height: 1.5; overflow-wrap: anywhere; color: color-mix(in srgb, var(--rz-on-primary) 85%, transparent); }
.adp-dashboard-primary { display: inline-flex; align-items: center; justify-content: center; gap: 16px; flex: 0 0 auto; padding: 11px 15px; min-height: 44px; border-radius: var(--adp-radius); color: var(--adp-accent-strong); background: var(--rz-on-primary); border: 1px solid var(--rz-on-primary); font-size: .8rem; font-weight: 650; transition: transform .1s ease, background-color .1s ease; }
.adp-dashboard-primary:hover { color: var(--adp-accent-strong); transform: translateY(-1px); background: color-mix(in srgb, var(--rz-on-primary) 90%, var(--adp-accent-light)); }
.adp-dashboard-primary .rzi { font-size: 18px; }
.adp-dashboard-hero a:focus-visible { outline-color: var(--rz-on-primary); }
.adp-dashboard-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.adp-dashboard-attention { min-width: 0; overflow: hidden; }
.adp-dashboard-attention.needs-response { border-inline-start: 3px solid var(--adp-warn); }
.adp-dashboard-attention-head { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 26px; padding: 20px 24px; }
.adp-dashboard-attention.needs-response .adp-dashboard-attention-head { background: color-mix(in srgb, var(--adp-warn) 6%, var(--adp-surface)); }
.adp-dashboard-attention-heading { display: flex; align-items: flex-start; gap: 13px; flex: 1 1 340px; min-width: 0; }
.adp-dashboard-attention-heading > div { min-width: 0; }
.adp-dashboard-attention-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); color: var(--adp-dim); background: var(--adp-inset); }
.adp-dashboard-attention.needs-response .adp-dashboard-attention-icon { color: color-mix(in srgb, var(--adp-warn) 55%, var(--rz-text-color)); background: color-mix(in srgb, var(--adp-warn) 12%, var(--adp-surface)); border-color: color-mix(in srgb, var(--adp-warn) 35%, var(--adp-border)); }
.adp-dashboard-attention-heading h2 { margin: 0; font-size: 1.05rem; font-weight: 650; line-height: 1.4; letter-spacing: -.025em; }
.adp-dashboard-attention-heading p { margin: 5px 0 0; color: var(--adp-dim); font-size: .8rem; line-height: 1.55; overflow-wrap: anywhere; }
.adp-dashboard-attention-count { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adp-dashboard-attention-count strong { font-size: 2.25rem; line-height: 1.1; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.adp-dashboard-attention-count span { max-width: 95px; color: var(--adp-dim); font-size: .74rem; line-height: 1.4; }
.adp-dashboard-attention-head > a { min-height: 44px; }
.adp-dashboard-attention-units { padding: 0; margin: 0; list-style: none; }
.adp-dashboard-attention-units li { border-top: 1px solid var(--adp-border); }
.adp-dashboard-attention-unit { display: flex; align-items: center; gap: 18px; min-width: 0; padding: 14px 24px; color: var(--rz-text-color); transition: background-color .1s ease; }
.adp-dashboard-attention-unit:hover { color: var(--rz-text-color); background: var(--adp-hover); }
.adp-dashboard-attention-unit-main { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 4px; overflow-wrap: anywhere; }
.adp-dashboard-attention-unit-main strong { font-size: .83rem; font-weight: 650; }
.adp-dashboard-attention-unit-main > span { font-size: .77rem; line-height: 1.4; }
.adp-dashboard-attention-unit-main small { color: var(--adp-dim); font-size: .69rem; line-height: 1.45; }
.adp-dashboard-attention-unit-date { display: flex; flex-direction: column; gap: 5px; font-size: .72rem; text-align: end; }
.adp-dashboard-attention-unit-date > span:first-child { color: var(--adp-dim); font-size: .66rem; }
.adp-dashboard-attention-unit > .rzi { flex: 0 0 auto; font-size: 17px; color: var(--adp-link); }
.adp-dashboard-attention-retry { padding: 0 24px 18px; }
@media (max-width: 640px) {
    .adp-dashboard-attention-head { gap: 14px; padding: 18px 14px; }
    .adp-dashboard-attention-heading { flex-basis: 100%; }
    .adp-dashboard-attention-head > a { margin-inline-start: auto; }
    .adp-dashboard-attention-unit { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 9px 12px; padding: 14px; }
    .adp-dashboard-attention-unit-main { grid-column: 1; }
    .adp-dashboard-attention-unit-date { grid-column: 1; flex-direction: row; flex-wrap: wrap; gap: 5px; text-align: start; align-items: baseline; }
    .adp-dashboard-attention-unit > .rzi { grid-column: 2; grid-row: 1 / 3; }
    .adp-dashboard-attention-retry { padding-inline: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .adp-dashboard-attention-unit { transition: none; }
}
.adp-dashboard-metric { display: flex; flex-direction: column; padding: 19px 20px 17px; min-width: 0; color: var(--rz-text-color); transition: border-color .1s ease, transform .1s ease, background-color .1s ease; }
.adp-dashboard-metric:hover { color: var(--rz-text-color); border-color: var(--adp-accent); background: color-mix(in srgb, var(--adp-accent) 3%, var(--adp-surface)); transform: translateY(-2px); }
.adp-dashboard-metric-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: .78rem; font-weight: 550; }
.adp-dashboard-metric-top > .rzi { font-size: 20px; color: var(--adp-link); }
.adp-dashboard-metric-value { display: block; margin: 9px 0 15px; font-size: clamp(2rem, 3.2vw, 2.65rem); line-height: 1.1; letter-spacing: -.04em; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adp-dashboard-metric-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; font-size: .7rem; color: var(--adp-dim); }
.adp-dashboard-metric-foot .rzi { font-size: 16px; flex: 0 0 auto; color: var(--adp-link); }
.adp-dashboard-metric.is-start { border-top: 2px solid var(--adp-accent); }
.adp-dashboard-metric.is-delivery { border-top: 2px solid var(--adp-info); }
.adp-dashboard-metric.is-backlog { border-top: 2px solid var(--adp-border-strong); }
.adp-dashboard-metric.is-allocation { border-top: 2px solid var(--adp-link); }
.adp-dashboard-availability { min-width: 0; }
.adp-dashboard-availability-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0 15px; }
.adp-dashboard-availability-head h2 { margin: 0; font-size: 1.05rem; line-height: 1.35; font-weight: 650; letter-spacing: -.025em; }
.adp-dashboard-availability-head p { margin: 5px 0 0; font-size: .75rem; line-height: 1.5; color: var(--adp-dim); }
.adp-dashboard-availability-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr)); gap: 14px; }
.adp-dashboard-available { display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 16px; color: var(--rz-text-color); border-top: 2px solid var(--adp-accent); transition: border-color .1s ease, background-color .1s ease, transform .1s ease; animation: adp-dashboard-enter 180ms ease-out both; }
.adp-dashboard-available:hover { color: var(--rz-text-color); background: color-mix(in srgb, var(--adp-accent) 4%, var(--adp-surface)); border-color: var(--adp-accent); transform: translateY(-2px); }
.adp-dashboard-available-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adp-dashboard-available-top h3 { margin: 0; font-size: .82rem; font-weight: 650; }
.adp-dashboard-available-top .rzi { color: var(--adp-link); font-size: 19px; }
.adp-dashboard-available-date { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 8px; margin: 16px 0 17px; color: var(--adp-link); line-height: 1.2; font-variant-numeric: tabular-nums; }
.adp-dashboard-available-date strong { font-size: clamp(1.3rem, 1.8vw, 1.6rem); letter-spacing: -.035em; font-weight: 650; }
.adp-dashboard-available-date > span { font-size: .93rem; font-weight: 450; }
.adp-dashboard-available-dealers { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.adp-dashboard-available-dealers > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.adp-dashboard-available-dealers strong { font-size: .72rem; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; }
.adp-dashboard-available-dealers small { color: var(--adp-dim); font-size: .65rem; }
.adp-dashboard-available-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--adp-border); padding-top: 12px; margin-top: auto; color: var(--adp-link); font-size: .68rem; }
.adp-dashboard-available-link .rzi { font-size: 16px; }
.adp-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; }
.adp-dashboard-grid:empty { display: none; }
.adp-dashboard-grid > :only-child { grid-column: 1 / -1; }
.adp-dashboard-panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.adp-dashboard-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 24px 18px; }
.adp-dashboard-panel-head > div { min-width: 0; }
.adp-dashboard-panel-head h2 { margin: 6px 0 0; font-size: 1.05rem; line-height: 1.35; font-weight: 650; letter-spacing: -.025em; }
.adp-dashboard-text-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto; min-width: 32px; min-height: 36px; color: var(--adp-link); font-size: .74rem; border-radius: var(--adp-radius); }
.adp-dashboard-text-link:hover { color: var(--adp-link-hover); background: var(--adp-accent-faint); }
.adp-dashboard-text-link .rzi { font-size: 19px; }
.adp-dashboard-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; padding: 0 24px; font-size: .68rem; color: var(--adp-dim); }
.adp-dashboard-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.adp-dashboard-legend i { display: block; width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.adp-dashboard-legend .is-start { background: var(--adp-accent); }
.adp-dashboard-legend .is-delivery { background: var(--adp-accent-soft); border: 1px dashed var(--adp-link); }
.adp-dashboard-legend .is-capacity { background: color-mix(in srgb, var(--adp-accent) 18%, var(--adp-surface)); border: 1px solid var(--adp-border-strong); }
.adp-dashboard-legend-note { margin-inline-start: auto; }
.adp-dashboard-schedule-chart { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 6px 24px 0; gap: 12px; margin-top: auto; }
.adp-dashboard-week { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.adp-dashboard-week svg { width: 100%; height: 188px; overflow: visible; }
.adp-dashboard-week > span { font-size: .69rem; color: var(--adp-dim); }
.adp-dashboard-chart-baseline { stroke: var(--adp-border-strong); stroke-width: 1; }
.adp-dashboard-chart-gridline { stroke: var(--adp-border); stroke-width: .6; stroke-dasharray: 2 3; }
.adp-dashboard-chart-start { fill: var(--adp-accent); }
.adp-dashboard-chart-delivery { fill: var(--adp-accent-soft); stroke: var(--adp-link); stroke-width: 1.1; stroke-dasharray: 3 2; }
.adp-dashboard-chart-value { fill: var(--rz-text-color); font-size: 10px; font-family: var(--adp-font); font-weight: 600; font-variant-numeric: tabular-nums; }
.adp-dashboard-chart-caption { padding: 12px 24px 20px; text-align: center; color: var(--adp-dim); font-size: .65rem; }
.adp-dashboard-panel-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 14px 24px; border-top: 1px solid var(--adp-border); font-size: .7rem; color: var(--adp-dim); margin-top: auto; }
.adp-dashboard-panel-foot strong { color: var(--rz-text-color); font-weight: 650; }
.adp-dashboard-panel-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--adp-link); }
.adp-dashboard-panel-foot .rzi { font-size: 16px; }
.adp-dashboard-streams { display: flex; flex-direction: column; gap: 20px; padding: 9px 24px 26px; flex: 1; }
.adp-dashboard-stream > div { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; gap: 12px; font-size: .78rem; }
.adp-dashboard-stream strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.adp-dashboard-stream small { display: inline-block; min-width: 37px; text-align: end; margin-inline-start: 10px; font-size: .66rem; color: var(--adp-dim); font-weight: 400; }
.adp-dashboard-stream svg { width: 100%; height: 7px; display: block; }
.adp-dashboard-track { fill: var(--adp-inset); }
.adp-dashboard-allocation-body { display: grid; grid-template-columns: minmax(175px, .7fr) minmax(0, 3fr); gap: 24px; padding: 6px 24px 24px; }
.adp-dashboard-allocation-focus { border-inline-end: 1px solid var(--adp-border); padding: 12px 24px 10px 0; }
.adp-dashboard-allocation-focus > strong { display: block; margin: 14px 0 10px; font-size: 2.75rem; line-height: 1.1; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adp-dashboard-allocation-focus > strong span { display: block; font-size: .8rem; letter-spacing: 0; font-weight: 450; color: var(--adp-dim); margin-top: 6px; }
.adp-dashboard-allocation-focus p { font-size: .74rem; margin: 15px 0 7px; line-height: 1.5; }
.adp-dashboard-quiet-note { font-size: .69rem; color: var(--adp-dim); line-height: 1.5; }
.adp-dashboard-allocation-chart-wrap { min-width: 0; }
.adp-dashboard-allocation-chart-wrap .adp-dashboard-legend { padding: 0 0 12px; }
.adp-dashboard-allocation-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.adp-dashboard-month { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 7px 3px 10px; border: 1px solid transparent; border-radius: var(--adp-radius); color: var(--rz-text-color); transition: background-color .1s ease, border-color .1s ease; }
.adp-dashboard-month:hover { color: var(--rz-text-color); background: var(--adp-hover); border-color: var(--adp-border); }
.adp-dashboard-month.is-current { background: var(--adp-accent-faint); border-color: color-mix(in srgb, var(--adp-accent) 40%, var(--adp-border)); }
.adp-dashboard-month svg { width: 100%; height: 105px; }
.adp-dashboard-month > strong { margin: 6px 0 5px; font-size: .68rem; font-weight: 600; }
.adp-dashboard-month > span { font-size: .7rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.adp-dashboard-month small { color: var(--adp-dim); font-size: .6rem; }
.adp-dashboard-chart-capacity { fill: color-mix(in srgb, var(--adp-accent) 18%, var(--adp-surface)); stroke: var(--adp-border-strong); stroke-width: .6; }
.adp-dashboard-month-warning.rzi { color: var(--adp-warn); font-size: 15px; margin-top: 5px; }
.adp-dashboard-review { display: flex; align-items: flex-start; gap: 5px; font-size: .7rem; line-height: 1.5; color: color-mix(in srgb, var(--adp-warn) 70%, var(--rz-text-color)); }
.adp-dashboard-review .rzi { font-size: 17px; flex: 0 0 auto; }
.adp-dashboard-dealers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); gap: 1px; border-top: 1px solid var(--adp-border); background: var(--adp-border); }
.adp-dashboard-dealer { display: flex; align-items: center; gap: 15px; padding: 16px 24px; min-width: 0; color: var(--rz-text-color); background: var(--adp-surface); transition: background-color .1s ease; }
.adp-dashboard-dealer:hover { color: var(--rz-text-color); background: color-mix(in srgb, var(--adp-accent) 4%, var(--adp-surface)); }
.adp-dashboard-dealer > div:first-child { flex: 1; min-width: 0; }
.adp-dashboard-dealer strong { display: block; font-size: .77rem; font-weight: 600; overflow-wrap: anywhere; }
.adp-dashboard-dealer span { display: block; margin-top: 4px; font-size: .67rem; color: var(--adp-dim); overflow-wrap: anywhere; }
.adp-dashboard-dealer-count { text-align: end; flex: 0 0 auto; }
.adp-dashboard-dealer-count strong { font-size: 1rem; font-variant-numeric: tabular-nums; }
.adp-dashboard-dealer-count small { font-weight: 400; color: var(--adp-dim); font-size: .74rem; }
.adp-dashboard-dealer > .rzi { font-size: 19px; color: var(--adp-dim); flex: 0 0 auto; }
.adp-dashboard-dealer > .adp-dashboard-warning { color: var(--adp-warn); }
.adp-dashboard-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 24px 24px; }
.adp-dashboard-event { display: flex; align-items: flex-start; gap: 12px; padding: 16px 14px; min-width: 0; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); color: var(--rz-text-color); transition: background-color .1s ease, border-color .1s ease; }
.adp-dashboard-event:hover { color: var(--rz-text-color); background: var(--adp-accent-faint); border-color: color-mix(in srgb, var(--adp-accent) 50%, var(--adp-border)); }
.adp-dashboard-event-date { display: flex; flex-direction: column; align-items: center; width: 39px; flex: 0 0 39px; padding: 7px 3px; border-radius: var(--adp-radius-sm); background: var(--adp-accent-faint); color: var(--adp-link); }
.adp-dashboard-event-date strong { font-size: 1.2rem; line-height: 1; font-weight: 650; }
.adp-dashboard-event-date span { font-size: .64rem; margin-top: 5px; text-transform: uppercase; }
.adp-dashboard-event-body { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.adp-dashboard-event-kind { text-transform: uppercase; letter-spacing: .065em; font-size: .58rem; font-weight: 650; color: var(--adp-link); }
.adp-dashboard-event-body strong { font-size: .8rem; font-weight: 650; overflow-wrap: anywhere; }
.adp-dashboard-event-body > span:not(.adp-dashboard-event-kind) { font-size: .72rem; line-height: 1.45; overflow-wrap: anywhere; }
.adp-dashboard-event-body small { color: var(--adp-dim); font-size: .66rem; overflow-wrap: anywhere; }
.adp-dashboard-event > .rzi { flex: 0 0 auto; font-size: 15px; color: var(--adp-faint); }
.adp-dashboard-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--adp-dim); font-size: .65rem; padding: 0 2px 6px; }
.adp-dashboard-footer > span { display: inline-flex; align-items: center; gap: 5px; }
.adp-dashboard-footer .rzi { font-size: 14px; }
.adp-dashboard-placeholder { padding: 24px; }
.adp-dashboard-unavailable { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 12px; text-align: center; padding: 38px 24px; flex: 1; }
.adp-dashboard-unavailable > .rzi { color: var(--adp-dim); font-size: 28px; }
.adp-dashboard-unavailable strong { font-size: .9rem; font-weight: 600; }
.adp-dashboard-unavailable p { max-width: 330px; margin: 0; color: var(--adp-dim); font-size: .76rem; line-height: 1.65; }
.adp-dashboard-metric, .adp-dashboard-panel { animation: adp-dashboard-enter 180ms ease-out both; }
@keyframes adp-dashboard-enter { from { opacity: .25; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1180px) {
    .adp-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adp-dashboard-availability-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adp-dashboard-hero { flex-wrap: wrap; gap: 22px; }
    .adp-dashboard-hero-title { flex: 1 1 300px; }
    .adp-dashboard-primary { margin-inline-start: auto; }
    .adp-dashboard-allocation-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .adp-dashboard-allocation-focus { border-inline-end: 0; border-bottom: 1px solid var(--adp-border); padding: 0 0 20px; }
    .adp-dashboard-allocation-focus > strong span { display: inline; margin-inline-start: 9px; }
    .adp-dashboard-allocation-focus > strong { margin: 10px 0; }
    .adp-dashboard-events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .adp-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .adp-dashboard-schedule-chart { padding-top: 14px; }
    .adp-dashboard-week svg { height: 168px; }
    .adp-dashboard-date { font-size: .7rem; }
    .adp-dashboard-allocation-chart { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 5px; }
    .adp-dashboard-month svg { height: 78px; }
}
@media (max-width: 640px) {
    .adp-dashboard { gap: 14px; padding: 0; }
    .adp-dashboard-page-head { align-items: flex-start; }
    .adp-dashboard-page-head .adp-page-head-actions { margin-top: 5px; }
    .adp-dashboard-hero { padding: 23px 20px; gap: 20px; }
    .adp-dashboard-hero-title { flex-basis: 100%; }
    .adp-dashboard-hero h2 { font-size: 2.05rem; }
    .adp-dashboard-hero p { font-size: .75rem; }
    .adp-dashboard-scope { padding-inline-start: 0; border: 0; max-width: 100%; flex: 1 1 auto; }
    .adp-dashboard-scope > strong { font-size: 1.4rem; }
    .adp-dashboard-primary { margin: 0; width: 100%; justify-content: space-between; }
    .adp-dashboard-metrics { gap: 10px; }
    .adp-dashboard-metric { padding: 14px 12px; }
    .adp-dashboard-metric-top { font-size: .72rem; gap: 5px; min-height: 34px; }
    .adp-dashboard-metric-top > .rzi { font-size: 17px; }
    .adp-dashboard-metric-value { font-size: 2rem; margin: 8px 0 13px; }
    .adp-dashboard-metric-foot { font-size: .65rem; gap: 3px; }
    .adp-dashboard-metric-foot .rzi { display: none; }
    .adp-dashboard-availability-head { padding: 4px 0 12px; }
    .adp-dashboard-availability-head h2 { font-size: .97rem; }
    .adp-dashboard-availability-head p { font-size: .72rem; }
    .adp-dashboard-availability-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .adp-dashboard-available { padding: 16px; }
    .adp-dashboard-available-date { margin: 13px 0; }
    .adp-dashboard-available-date strong { font-size: 1.5rem; }
    .adp-dashboard-panel-head { padding: 18px 16px 16px; gap: 8px; align-items: flex-start; }
    .adp-dashboard-panel-head h2 { font-size: .97rem; }
    .adp-dashboard-panel-head > .adp-dashboard-text-link { font-size: .68rem; gap: 4px; max-width: 95px; min-height: 44px; }
    .adp-dashboard-text-link { min-width: 44px; }
    .adp-dashboard-legend { padding-inline: 16px; gap: 8px 12px; font-size: .63rem; }
    .adp-dashboard-schedule-chart { padding-inline: 16px; gap: 3px; }
    .adp-dashboard-week svg { height: 150px; }
    .adp-dashboard-week > span { font-size: .65rem; }
    .adp-dashboard-chart-caption { padding-inline: 16px; font-size: .61rem; }
    .adp-dashboard-panel-foot { padding: 12px 16px; font-size: .67rem; }
    .adp-dashboard-streams { padding: 4px 16px 22px; }
    .adp-dashboard-allocation-body { padding: 2px 16px 20px; }
    .adp-dashboard-allocation-focus > strong { font-size: 2.4rem; }
    .adp-dashboard-month { padding-inline: 1px; }
    .adp-dashboard-month > strong { font-size: .65rem; }
    .adp-dashboard-month > span { font-size: .63rem; }
    .adp-dashboard-month small { font-size: .55rem; }
    .adp-dashboard-legend-note { display: none !important; }
    .adp-dashboard-dealer { padding: 15px 16px; gap: 10px; }
    .adp-dashboard-dealer strong { font-size: .73rem; }
    .adp-dashboard-dealer-count strong { font-size: .95rem; }
    .adp-dashboard-dealer-count small { font-size: .7rem; }
    .adp-dashboard-events { grid-template-columns: minmax(0, 1fr); padding: 0 16px 16px; gap: 10px; }
    .adp-dashboard-event { padding: 14px 12px; }
    .adp-dashboard-placeholder { padding: 18px; }
    .adp-dashboard .adp-link-btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .adp-dashboard *, .adp-dashboard *::before, .adp-dashboard *::after { animation: none !important; transition: none !important; }
    .adp-dashboard-metric:hover, .adp-dashboard-primary:hover, .adp-dashboard-available:hover { transform: none; }
}

/* Effective-dated dealer capacity editor. */
.adp-slot-definitions { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--adp-border); border-radius: var(--adp-radius); display: flex; flex-direction: column; gap: 12px; }
.adp-slot-definitions legend { padding: 0 6px; }
.adp-slot-definition { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(140px, 1fr) minmax(90px, .8fr) 36px; align-items: end; gap: 10px; }
.adp-slot-definition .adp-field { min-width: 0; }
.adp-slot-definition input { min-width: 0; width: 100%; box-sizing: border-box; }
.adp-slot-definition-remove { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.adp-slot-definition-error { grid-column: 1 / -1; }
html[data-theme="dark"] :is(.adp-slot-definition input[type="month"], .adp-allocation-year input) { color-scheme: dark; }
html[data-theme="light"] :is(.adp-slot-definition input[type="month"], .adp-allocation-year input) { color-scheme: light; }
@media (max-width: 640px) {
    .adp-slot-definitions { padding: 12px; }
    .adp-slot-definition { grid-template-columns: minmax(0, 1fr) 44px; padding-bottom: 12px; border-bottom: 1px solid var(--adp-border); }
    .adp-slot-definition > .adp-field:nth-child(-n+2) { grid-column: 1 / -1; }
    .adp-slot-definition input, .adp-slot-definition .rz-dropdown { min-height: 44px; font-size: 16px; }
    .adp-slot-definition-remove { min-height: 44px; justify-self: end; min-width: 44px; }
}

/* Local signup password guidance; neutral surfaces follow the active theme. */
.adp-password-strength {
    display: block;
    min-width: 0;
    margin-top: 9px;
    padding: 12px 13px;
    border: 1px solid var(--adp-border);
    border-radius: var(--adp-radius);
    background: var(--adp-inset);
    --adp-strength-color: var(--adp-border-strong);
}
.adp-password-strength[data-score="1"] { --adp-strength-color: color-mix(in srgb, var(--adp-danger) 75%, var(--rz-text-color)); }
.adp-password-strength[data-score="2"] { --adp-strength-color: color-mix(in srgb, var(--adp-warn) 70%, var(--rz-text-color)); }
.adp-password-strength[data-score="3"] { --adp-strength-color: color-mix(in srgb, var(--adp-info) 75%, var(--rz-text-color)); }
.adp-password-strength[data-score="4"] { --adp-strength-color: color-mix(in srgb, var(--adp-ok) 65%, var(--rz-text-color)); }
.adp-password-strength-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--rz-text-color); font-size: .85rem; line-height: 1.5; }
.adp-password-strength-heading > span { font-weight: 600; }
.adp-password-strength-heading > strong { font-weight: 650; color: var(--adp-strength-color); }
.adp-password-strength[data-score="0"] .adp-password-strength-heading > strong { color: var(--adp-dim); font-weight: 450; }
.adp-password-strength-policy { margin: 4px 0 0; color: var(--adp-dim); font-size: .8rem; line-height: 1.5; }
.adp-password-strength-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 9px 0 12px; }
.adp-password-strength-track > span { height: 4px; border-radius: 2px; background: var(--adp-border-strong); transition: background-color .1s ease; }
.adp-password-strength-track > span[data-filled="true"] { background: var(--adp-strength-color); }
.adp-password-strength-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 0; margin: 0; list-style: none; }
.adp-password-strength-rules li { display: flex; gap: 6px; align-items: flex-start; color: var(--adp-dim); font-size: .8rem; line-height: 1.5; min-width: 0; }
.adp-password-strength-rules .rzi { flex: 0 0 14px; font-size: 14px; line-height: 1.15; margin-top: 1px; }
.adp-password-strength-rules li[data-met="true"] .rzi { color: color-mix(in srgb, var(--adp-ok) 65%, var(--rz-text-color)); }
.adp-password-strength-rules li[data-met="true"] > span:last-child { color: var(--rz-text-color); }
.adp-password-strength-tip { margin: 11px 0 0; padding-top: 9px; border-top: 1px solid var(--adp-border); color: var(--rz-text-color); font-size: .8rem; line-height: 1.5; }
.adp-password-strength-caption { margin: 4px 0 0; color: var(--adp-dim); font-size: .75rem; line-height: 1.5; }
.adp-password-strength-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Let the local meter notice silent browser autofill without polling or visible motion. */
@media (prefers-reduced-motion: no-preference) {
    input[autocomplete="new-password"]:-webkit-autofill { animation-name: adp-password-autofill; animation-duration: 1ms; }
    @keyframes adp-password-autofill { from { caret-color: auto; } to { caret-color: auto; } }
}
@media (max-width: 420px) {
    .adp-password-strength { padding: 11px; }
    .adp-password-strength-rules { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    .adp-password-strength-track > span { transition: none; }
}
