:root {
    --cvx-yellow: #ffcd11;
    --cvx-rail-bg: #1a1a1a;
    --cvx-rail-width: 64px;
    --cvx-rail-width-expanded: 232px;
    --cvx-page-bg: #f9fafc;
    --cvx-surface: #ffffff;
    --cvx-surface-subtle: #f9fafc;
    --cvx-border: #e0e0e0;
    --cvx-text: #1a1a1a;
    --cvx-text-muted: #6C707B;
    --cvx-text-muted-alt: #a1a1aa;
    --cvx-link: #0064c8;
    --cvx-footer-bg: #e8e8e8;
    --cvx-confidential: #2e9e4f;
    --cvx-selection-bg: #d4d4d8;
    --cvx-selection-text: var(--cvx-text);
    --cvx-autofill-bg: #e8f0fe;
    --cvx-radius: 4px;
    --cvx-gutter: 40px;
    --cvx-font-family: 'Univers', 'Univers LT Std', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --fontFamilyBase: var(--cvx-font-family);
}

html, body {
    font-family: var(--cvx-font-family);
    margin: 0;
    color: var(--cvx-text);
    background: var(--cvx-page-bg);
}

::selection {
    background-color: var(--cvx-selection-bg);
    color: var(--cvx-selection-text);
}

h1:focus {
    outline: none;
}

a {
    color: var(--cvx-link);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.cvx-boot {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: var(--cvx-page-bg);
}

.cvx-boot__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 72px;
    padding: 14px 0;
    background: var(--cvx-rail-bg);
    border-radius: var(--cvx-radius);
}

.cvx-boot__logo-mark {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    color: var(--cvx-yellow);
}

.cvx-boot__logo-badge {
    padding: 0 6px;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    color: var(--cvx-rail-bg);
    background: var(--cvx-yellow);
    border-radius: 2px;
}

.cvx-boot__title {
    margin: 20px 0 0;
    font-size: 20px;
    font-weight: 600;
}

.cvx-boot__subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--cvx-text-muted);
}

.cvx-boot__track {
    position: relative;
    width: min(260px, 70vw);
    height: 4px;
    margin-top: 20px;
    overflow: hidden;
    background: var(--cvx-border);
    border-radius: 2px;
}

.cvx-boot__track::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(26, 26, 26, 0.14), transparent);
    animation: cvx-boot-sweep 1.4s ease-in-out infinite;
}

.cvx-boot__bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--blazor-load-percentage, 0%);
    background: var(--cvx-yellow);
    transition: width 0.2s linear;
}

.cvx-boot__percent {
    min-height: 16px;
    margin: 10px 0 0;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    color: var(--cvx-text-muted);
}

.cvx-boot__percent::after {
    content: var(--blazor-load-percentage-text, "");
}

@keyframes cvx-boot-sweep {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cvx-boot__track::before {
        animation: none;
    }

    .cvx-boot__bar {
        transition: none;
    }
}

#blazor-error-ui {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1000;
    padding: 12px 56px 12px var(--cvx-gutter);
    font-size: 13px;
    color: var(--cvx-text);
    background: var(--cvx-yellow);
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.2);
}

#blazor-error-ui .reload {
    margin-left: 8px;
    color: inherit;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 50%;
    right: var(--cvx-gutter);
    transform: translateY(-50%);
    padding: 4px;
    font-size: 14px;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

@media (max-width: 720px) {
    :root {
        --cvx-gutter: 16px;
    }
}

.cvx-state {
    padding: 32px 0;
    font-size: 13px;
    color: var(--cvx-text-muted);
}

.cvx-state--centered {
    text-align: center;
}

.cvx-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 720px;
    margin: 32px auto;
    text-align: center;
}

.cvx-empty-state__art {
    width: 100%;
    max-width: 675px;
    height: auto;
    margin-bottom: 16px;
}

.cvx-empty-state__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
}

.cvx-empty-state__caption {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--cvx-text-muted);
}

.cvx-empty-state__action {
    margin-top: 24px;
}

.cvx-table__group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e8eef6;
    color: var(--cvx-text-muted);
    white-space: nowrap;
}

.cvx-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 16px;
    font-size: 12px;
    color: var(--cvx-text-muted);
}

.cvx-breadcrumb a {
    text-decoration: none;
}

.cvx-breadcrumb__sep {
    color: #b4b4b4;
}

.cvx-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 8px 16px;
    margin-bottom: 16px;
    background: #f5faff;
    border: 1px solid #e4e4e7;
    border-radius: 4px;
    -webkit-backdrop-filter: blur(30px);
    backdrop-filter: blur(30px);
}

.cvx-form-header__title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cvx-form-header__title h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #3f3f46;
}

.cvx-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    box-sizing: border-box;
    padding: 0 6px;
    border-radius: 4px;
    background: #BBDEFB;
    color: #1B65BA;
    border: 1px solid #1B65BA;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    white-space: nowrap;
}

.cvx-badge--draft {
    background: #F8C1EC;
    color: #9A0079;
    border-color: #9A0079;
}

.cvx-form-header__meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
}

.cvx-form-header__meta div {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.cvx-form-header__meta > div + div {
    position: relative;
    padding-left: 15px;
    border-left: 0;
}

.cvx-form-header__meta > div + div::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 24px;
    background: rgba(27, 101, 186, 0.25);
    content: "";
    transform: translateY(-50%);
}

.cvx-form-header__meta dt {
    font-family: var(--cvx-font-family);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    color: #3f3f46;
}

.cvx-form-header__meta dd {
    margin: 0;
    font-family: var(--cvx-font-family);
    font-size: 12px;
    line-height: 18px;
}

.cvx-form-header__person {
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--cvx-font-family);
    font-size: 12px;
    line-height: 18px;
    color: #115ea3;
    cursor: pointer;
}

.cvx-form-header__person:hover {
    text-decoration: underline;
}

/* Info Alert: process banner with a colored left rule and leading icon. */
.cvx-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    align-items: stretch;
    gap: 16px;
}

.cvx-form-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (max-width: 1080px) {
    .cvx-form-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.cvx-panel {
    background: var(--cvx-surface);
    border: 1px solid var(--cvx-border);
    border-radius: var(--cvx-radius);
}

.cvx-panel__title {
    margin: 0;
    padding: 12px 16px;
    background: var(--cvx-surface-subtle);
    font-size: 15px;
    font-weight: 700;
}

.cvx-panel--muted {
    background: #fafafa;
}

.cvx-panel__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
    background: var(--cvx-surface-subtle);
}

fluent-field > :is(fluent-text-input, fluent-textarea, fluent-dropdown)[slot="input"] {
    width: 100%;
    max-width: none;
    --inline-size: 100%;
}

fluent-text-input,
fluent-textarea {
    --colorNeutralBackgroundInverted: var(--cvx-selection-bg);
    --colorNeutralForegroundInverted: var(--cvx-selection-text);
}

fluent-text-input::part(root) {
    overflow: clip;
}

fluent-text-input::part(control):autofill,
fluent-textarea::part(control):autofill {
    box-shadow: inset 0 0 0 100vmax var(--cvx-autofill-bg), 0 0 0 100vmax var(--cvx-autofill-bg);
}

fluent-text-input > [slot="start"] {
    position: relative;
}

fluent-dropdown {
    --colorStrokeFocus2: transparent;
}

fluent-option:state(active) {
    background-color: var(--colorNeutralBackground1Hover);
}

fluent-popover-b *,
fluent-popover-b *::before,
fluent-popover-b *::after,
.fluent-calendar,
.fluent-calendar *,
.fluent-calendar *::before,
.fluent-calendar *::after {
    box-sizing: border-box;
}

.cvx-panel__body fluent-field:has(> :is(fluent-text-input, fluent-textarea, fluent-dropdown)) {
    width: 100%;
}

.cvx-dynamic-field {
    width: 100%;
}

fluent-tooltip {
    width: max-content;
    max-width: min(440px, calc(100vw - 32px));
}

.cvx-dynamic-field--small {
    max-width: 25%;
}

.cvx-dynamic-field--medium {
    max-width: 50%;
}

@media (max-width: 1080px) {
    .cvx-dynamic-field--small {
        max-width: 50%;
    }

    .cvx-dynamic-field--medium {
        max-width: 100%;
    }
}

@media (max-width: 720px) {
    .cvx-dynamic-field--small {
        max-width: 100%;
    }
}

.cvx-label-plain {
    margin: 0;
    color: #3f3f46;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.cvx-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

fluent-toast-b.cvx-toast::part(dialog) {
    border-inline-start: 6px solid;
    color: var(--cvx-text);
}

fluent-toast-b.cvx-toast > [slot="title"] {
    font-weight: 700;
}

fluent-toast-b.cvx-toast--danger::part(dialog) {
    border-inline-start-color: #d13438;
    background-color: #fdf1f1;
}

fluent-toast-b.cvx-toast--warning::part(dialog) {
    border-inline-start-color: #c77c02;
    background-color: #fff8e6;
}

fluent-toast-b.cvx-toast--info::part(dialog) {
    border-inline-start-color: #0067b8;
    background-color: #eef6fc;
}

fluent-toast-b.cvx-toast--success::part(dialog) {
    border-inline-start-color: #107c10;
    background-color: #f1faf1;
}
