﻿:root {
    --vee-scale: .82;
    /* Size multiplier for things that sit inside a zoom-cancelled box (.vee-ac and its popup).
       1 everywhere else; becomes --vee-scale inside .vee-ac. */
    --vee-z: 1;
    --vee-primary: #1e3a8a;
    --vee-primary-hover: #1e3a8a;
    --vee-primary-soft: #e1e9f8;
    --vee-primary-fg: #ffffff;
    --vee-text: #0f172a;
    --vee-muted: #5b6678;
    --vee-label: #334155;
    --vee-border: #dce2e9;
    --vee-input-border: #dce2e9;
    --vee-surface: #ffffff;
    --vee-surface-alt: #f6f8fb;
    --vee-disabled-bg: #f2f5fa;
    --vee-note-bg: #f6f8fb;
    --vee-header-bg: #e6ecf8;
    --vee-ok-bg: #E1F1EE;
    --vee-ok-fg: #0F766E;
    --vee-warn-bg: #FCEFD9;
    --vee-warn-fg: #975006;
    --vee-warn-border: #f8e2bd;
    --vee-bad-bg: #FBE7E5;
    --vee-bad-fg: #B42318;
    --vee-close-hover: #B42318;
    --vee-neutral-bg: #f2f5fa;
    --vee-neutral-fg: #334155;
    --vee-medium-bg: #e1e9f8;
    --vee-medium-fg: #1e3a8a;
    --vee-font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --vee-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
    --vee-field-h: 40px;
    --vee-radius: 8px;
    --vee-btn-radius: 7px;
    --vee-drawer-head-h: calc(44px * var(--vee-scale));
    --vee-fw-label: 700;
    --vee-fw-head: 600;
    --vee-fw-body: 400;
    --vee-ring: 0 0 0 1px var(--vee-primary), 0 0 0 3px color-mix(in srgb, var(--vee-primary) 20%, #ffffff);
    --uuc-autocomplete-border: var(--vee-input-border);
    --uuc-autocomplete-border-hover: var(--vee-input-border);
    --uuc-autocomplete-border-focus: var(--vee-primary);
    --uuc-autocomplete-focus-shadow: var(--vee-ring);
    --uuc-select-border: var(--vee-input-border);
    --uuc-select-border-hover: var(--vee-input-border);
    --uuc-select-border-focus: var(--vee-primary);
    --uuc-select-focus-shadow: var(--vee-ring);
    --uuc-dropdown-option-hover-bg: var(--vee-primary-soft);
    --uuc-dropdown-option-hover-color: var(--vee-primary);
    --uuc-dropdown-option-selected-bg: var(--vee-primary-soft);
    --uuc-dropdown-option-selected-color: var(--vee-primary);
    --uuc-dropdown-check-color: var(--vee-primary);
    --uuc-checkbox-checked-bg: var(--vee-primary);
    --uuc-checkbox-checked-bg-hover: var(--vee-primary-hover);
    --uuc-checkbox-border-hover: var(--vee-primary);
}

/* Scaled areas (never nest .vee-root and .vee-dwr) */
.vee-root {
    zoom: var(--vee-scale);
}

/* ----- Layout helpers ----- */

.vee-page {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: var(--vee-font);
    font-size: 13px;
    color: var(--vee-text);
    --uuc-color-primary: var(--vee-primary);
}

    .vee-page [class*="primary"] {
        background-color: var(--vee-primary) !important;
        border-color: var(--vee-primary) !important;
        color: var(--vee-primary-fg);
    }

        .vee-page [class*="primary"]:hover {
            filter: brightness(1.15);
        }

    .vee-page button:not([role="tab"]) {
        border-radius: var(--vee-btn-radius);
        font-weight: var(--vee-fw-head);
    }

.vee-card {
    background: var(--vee-surface);
    border: 1px solid var(--vee-border);
    border-radius: 12px;
}

.vee-pad {
    padding: 12px 18px;
}

.vee-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.vee-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.vee-end {
    margin-left: auto;
}

.vee-tight {
    gap: 8px;
}

.vee-muted {
    color: var(--vee-muted);
}

.vee-arrow {
    color: var(--vee-muted);
}

.vee-mono {
    font-family: var(--vee-mono);
}

/* ----- Head office row ----- */

.vee-head-label {
    font-size: 11px;
    font-weight: var(--vee-fw-label);
    letter-spacing: .1em;
    color: var(--vee-primary);
}

.vee-head-name {
    font-size: 16px;
    font-weight: var(--vee-fw-label);
}

.vee-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.vee-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .vee-stat > :first-child {
        font-size: 11px;
        color: var(--vee-muted);
    }

    .vee-stat > :last-child {
        font-size: 15px;
        font-weight: var(--vee-fw-label);
        font-family: var(--vee-mono);
    }

/* ----- Outer tabs ----- */

.vee-tabs {
    padding: 0 22px;
}

    .vee-tabs [class*="tab"] {
        font-size: 14px;
        font-weight: var(--vee-fw-head);
    }

    .vee-tabs [class*="badge"] {
        font-size: 11px;
        font-weight: var(--vee-fw-label);
        color: var(--vee-medium-fg);
        background: var(--vee-primary-soft);
        border-radius: 99px;
    }

    .vee-tabs [role="tab"]:last-of-type [class*="badge"] {
        color: var(--vee-bad-fg);
        background: var(--vee-bad-bg);
    }

    .vee-tabs [class*="extra"] {
        border-left: 1px solid var(--vee-border);
        padding-left: 16px;
    }

        .vee-tabs [class*="extra"] button {
            border: 0;
            background: transparent;
            font-size: 14px;
            font-weight: var(--vee-fw-head);
        }

.vee-body-title strong {
    margin-right: 8px;
    font-size: 16px;
    font-weight: var(--vee-fw-label);
}

.vee-body-title span {
    font-size: 14px;
    color: var(--vee-muted);
}

/* ----- Pills / chips / steps ----- */

.vee-pill {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: var(--vee-fw-label);
    border-radius: 99px;
    white-space: nowrap;
}

.vee-pill-critical,
.vee-pill-bad {
    background: var(--vee-bad-bg);
    color: var(--vee-bad-fg);
}

.vee-pill-medium {
    background: var(--vee-medium-bg);
    color: var(--vee-medium-fg);
}

.vee-pill-low,
.vee-pill-retired {
    background: var(--vee-neutral-bg);
    color: var(--vee-neutral-fg);
}

.vee-pill-active,
.vee-pill-ok {
    background: var(--vee-ok-bg);
    color: var(--vee-ok-fg);
}

.vee-pill-draft,
.vee-pill-warn {
    background: var(--vee-warn-bg);
    color: var(--vee-warn-fg);
    border: 1px solid var(--vee-warn-border);
}

.vee-chip {
    padding: 3px 14px;
    font-size: 12px;
    color: var(--vee-label);
    background: var(--vee-surface-alt);
    border: 1px solid var(--vee-border);
    border-radius: 99px;
}

.vee-step {
    padding: 0 10px;
    font-size: 13px;
    font-weight: var(--vee-fw-head);
    color: var(--vee-label);
    border: 1px solid var(--vee-border);
    border-radius: 99px;
}

    .vee-step.is-current {
        color: var(--vee-primary-fg);
        background: var(--vee-primary);
        border-color: var(--vee-primary);
    }

/* ----- Notes / banners ----- */

.vee-note {
    padding: 12px 16px;
    background: var(--vee-note-bg);
    border: 1px solid var(--vee-border);
    border-left: 3px solid var(--vee-primary);
    border-radius: 6px;
}

    .vee-note strong {
        font-weight: var(--vee-fw-label);
    }

.vee-unsaved {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: none;
    margin-top: 10px;
    padding: 6px 12px;
    background: var(--vee-warn-bg);
    border: 1px solid var(--vee-warn-border);
    border-radius: 6px;
}

.vee-disabled {
    display: inline-flex;
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

/* ----- Toolbar ----- */

.vee-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

    .vee-toolbar [class*="form-item"] {
        margin-bottom: 0 !important;
    }

    .vee-toolbar .vee-end {
        align-self: flex-end;
    }

    .vee-toolbar button {
        height: var(--vee-field-h);
    }

        .vee-toolbar button,
        .vee-toolbar button * {
            font-size: 14px;
            font-weight: var(--vee-fw-head);
        }

.vee-w-200 {
    width: 200px;
}

.vee-w-220 {
    width: 220px;
}

.vee-w-240 {
    width: 240px;
}

/* ----- Labels ----- */

.vee-label,
.vee-page [class*="form-item"] label:not([class*="checkbox"]),
.vee-toolbar label:not([class*="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 11px;
    font-weight: var(--vee-fw-label);
    line-height: 14px;
    color: var(--vee-label);
}

.vee-field > .vee-label {
    margin: 0 0 6px;
}

.vee-field > .vee-err,
.vee-field > .vee-warn-text {
    margin-top: 6px;
}

.vee-req {
    color: var(--vee-bad-fg);
}

.vee-help,
.vee-page [class*="form-item"] [class*="help"] {
    font-size: 13px;
    line-height: 16px;
    color: var(--vee-muted);
}

.vee-section {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: var(--vee-fw-label);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vee-text);
}

.vee-i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    margin: -2px 0;
    font-size: 10px;
    font-weight: var(--vee-fw-label);
    font-family: var(--vee-mono);
    line-height: 1;
    color: var(--vee-label);
    text-transform: none;
    letter-spacing: 0;
    cursor: help;
    background: var(--vee-disabled-bg);
    border: 1px solid var(--vee-border);
    border-radius: 50%;
}

.vee-note .vee-i {
    vertical-align: middle;
}

/* ----- Inputs ----- */

.vee-select,
.vee-page textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    color: inherit;
    background: var(--vee-surface);
    border: 1px solid var(--vee-input-border);
    border-radius: var(--vee-radius);
}

.vee-select {
    height: var(--vee-field-h);
}

.vee-page textarea {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px !important;
    line-height: 1.4;
}

    .vee-select:focus,
    .vee-page textarea:focus {
        outline: none;
        border-color: var(--vee-primary);
        box-shadow: var(--vee-ring);
    }

.vee-page ::placeholder {
    color: var(--vee-muted);
    opacity: .7;
}

.vee-page :has(> :is(input[type="text"], input[type="search"])):not([class*="select"]):not([class*="autocomplete"]) {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    height: var(--vee-field-h) !important;
    padding: 0 !important;
    background: var(--vee-surface);
    border: 1px solid var(--vee-input-border);
    border-radius: var(--vee-radius);
}

.vee-page :has(> :is(input[type="text"], input[type="search"]):focus):not([class*="select"]):not([class*="autocomplete"]) {
    border-color: var(--vee-primary);
    box-shadow: var(--vee-ring);
}

.vee-page :has(> input[type="text"]:disabled):not([class*="select"]):not([class*="autocomplete"]) {
    background: var(--vee-disabled-bg);
}

.vee-page :not([class*="select"]):not([class*="autocomplete"]) > :is(input[type="text"], input[type="search"]):not([class*="select"]):not([class*="autocomplete"]) {
    width: 100%;
    height: 100%;
    padding: 0 12px;
    font-size: 14px;
    color: inherit;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
}

.vee-page :not([class*="select"]):not([class*="autocomplete"]) > input[type="text"]:not([class*="select"]):not([class*="autocomplete"]):disabled {
    color: var(--vee-muted);
}

.vee-page [class*="select"] input[type="text"],
.vee-page [class*="autocomplete"] input[type="text"] {
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    outline: 0;
}

.vee-page [class*="form-item"] {
    margin-bottom: 0 !important;
}

.vee-form .vee-check {
    text-transform: none;
    letter-spacing: 0;
    font-weight: var(--vee-fw-body);
    font-size: 13px;
    color: inherit;
}

.vee-check-row {
    display: flex;
    align-items: center;
    min-height: var(--vee-field-h);
    font-size: 14px;
}

.vee-ac {
    zoom: calc(1 / var(--vee-scale));
    --vee-z: var(--vee-scale);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    font-size: calc(14px * var(--vee-z));
}

    .vee-ac > * {
        box-sizing: border-box;
        width: 100%;
        height: calc(var(--vee-field-h) * var(--vee-z)) !important;
        min-height: calc(var(--vee-field-h) * var(--vee-z)) !important;
        border: 1px solid var(--vee-input-border) !important;
        border-radius: calc(var(--vee-radius) * var(--vee-z)) !important;
        box-shadow: none !important;
    }

        .vee-ac > *:not(:focus-within) {
            border-color: #d1d5db !important;
            box-shadow: none !important;
        }

        .vee-ac > *:focus-within {
            border: 1px solid var(--vee-primary) !important;
            box-shadow: var(--vee-ring) !important;
            outline: none !important;
        }

    .vee-ac input {
        font-size: inherit !important;
    }

        .vee-ac input::placeholder {
            color: var(--vee-text);
            opacity: 1;
        }

.vee-dwr :is([role="listbox"], .uuc-dropdown-popup, [class*="dropdown-popup"], [class*="autocomplete-dropdown"]):not(.vee-ac *) {
    zoom: calc(1 / var(--vee-scale));
    --vee-z: var(--vee-scale);
}

[role="listbox"],
.uuc-dropdown-popup,
[class*="dropdown-popup"],
[class*="autocomplete-dropdown"],
.ant-select-dropdown {
    box-sizing: border-box;
    max-height: calc(260px * var(--vee-z));
    overflow-y: auto;
    padding: 0 !important;
    font-family: var(--vee-font);
    background: #ffffff !important;
    border: 1px solid #767676 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

    /* Options: plain rows, black text */
    [role="listbox"] [role="option"] *,
    [class*="dropdown-option"] *,
    [class*="autocomplete-option"] * {
        font-size: calc(14px * var(--vee-z)) !important;
        line-height: 1.2 !important;
        color: inherit !important;
        background: transparent !important;
    }

    [role="listbox"] [role="option"],
    [class*="dropdown-option"],
    [class*="autocomplete-option"] {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        min-height: calc(31px * var(--vee-z));
        padding: 0 calc(14px * var(--vee-z)) !important;
        font-size: calc(14px * var(--vee-z)) !important;
        line-height: 1.2 !important;
        color: #000000 !important;
        background: #ffffff !important;
        border-radius: 0 !important;
        cursor: pointer;
    }

        /* Hover / selected: dark grey bar, white text (same as the reference) */
        [role="listbox"] [role="option"]:hover,
        [role="listbox"] [role="option"][aria-selected="true"],
        [class*="dropdown-option"]:hover,
        [class*="dropdown-option"][class*="selected"],
        [class*="dropdown-option"][class*="active"],
        [class*="autocomplete-option"]:hover,
        [class*="autocomplete-option"][class*="selected"],
        [class*="autocomplete-option"][class*="active"] {
            color: #ffffff !important;
            background: #6b6b6b !important;
        }

/* ----- Field & Forms ----- */

.vee-field {
    display: flex;
    flex-direction: column;
    gap: 0px;
    min-width: 0;
}

.vee-err,
.vee-warn-text {
    font-size: 13px;
    line-height: 16px;
}

.vee-err {
    color: var(--vee-bad-fg);
}

.vee-warn-text {
    color: var(--vee-warn-fg);
}

.vee-hint,
.vee-hier {
    font-size: 13px;
    color: var(--vee-muted);
}

    .vee-hier strong {
        color: var(--vee-label);
        font-weight: var(--vee-fw-label);
    }

.vee-avail {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--vee-muted);
}

.vee-form {
    gap: 16px;
}

.vee-grid,
.vee-grid-5,
.vee-grid-6,
.vee-grid-7 {
    display: grid;
    gap: 16px 18px;
    align-items: start;
}

.vee-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.vee-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px 18px;
}

.vee-grid-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px 18px;
}

.vee-grid-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px 18px;
}

.vee-span-2 {
    grid-column: span 2;
}

.vee-span-3 {
    grid-column: span 3;
}

.vee-span-6 {
    grid-column: span 6;
}

.vee-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--vee-border);
    border-radius: var(--vee-radius);
}

/* ----- Panel ----- */

.vee-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 14px 16px;
    background: var(--vee-surface);
    border: 1px solid var(--vee-primary);
    border-radius: var(--vee-radius);
}

.vee-panel-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

    .vee-panel-head strong {
        font-size: 13px;
        font-weight: var(--vee-fw-label);
    }

    .vee-panel-head span {
        font-size: 13px;
        color: var(--vee-muted);
    }

    .vee-panel-head.vee-between {
        align-items: center;
    }

.vee-soft-chip {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: var(--vee-fw-head);
    color: var(--vee-medium-fg);
    background: var(--vee-primary-soft);
    border-radius: 99px;
}

/* ----- Tables ----- */

.vee-table,
.vee-ptbl {
    overflow-x: auto;
}

    .vee-table table {
        min-width: 1700px;
    }

    .vee-table th,
    .vee-ptbl th {
        padding: 10px 14px !important;
        font-size: 13px !important;
        font-weight: var(--vee-fw-head) !important;
        color: var(--vee-label);
        background: var(--vee-surface-alt);
    }

        .vee-table th *,
        .vee-ptbl th * {
            white-space: nowrap !important;
            font-weight: var(--vee-fw-head) !important;
        }

    .vee-table td,
    .vee-ptbl td {
        padding: 10px 14px !important;
        font-size: 13px !important;
        font-weight: var(--vee-fw-body);
        vertical-align: middle;
    }

    .vee-table a {
        font-weight: var(--vee-fw-label);
        color: var(--vee-primary);
        text-decoration: none;
    }

.vee-group {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 6px;
}

    .vee-group strong {
        font-size: 14px;
        font-weight: var(--vee-fw-label);
        letter-spacing: .02em;
    }

    .vee-group span {
        color: var(--vee-muted);
    }

.vee-sub {
    font-size: 12px;
    color: var(--vee-muted);
}

.vee-empty {
    padding: 40px 0;
    text-align: center;
    color: var(--vee-muted);
}

.vee-empty-box {
    overflow: hidden;
    background: var(--vee-surface);
    border: 1px solid var(--vee-border);
    border-radius: var(--vee-radius);
}

.vee-thead,
.vee-trow {
    display: grid;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    font-size: 13px;
}

.vee-thead {
    font-weight: var(--vee-fw-head);
    color: var(--vee-label);
    background: var(--vee-surface-alt);
    border-bottom: 1px solid var(--vee-border);
}

.vee-trow {
    border-bottom: 1px solid var(--vee-border);
}

    .vee-trow:last-child {
        border-bottom: 0;
    }

.vee-empty-msg {
    padding: 12px;
    font-size: 13px;
    color: var(--vee-muted);
}

    .vee-empty-msg strong {
        display: block;
        font-weight: var(--vee-fw-label);
        color: var(--vee-text);
    }

    .vee-empty-msg.vee-plain {
        padding: 12px 14px;
        color: var(--vee-text);
    }

.vee-cols-params {
    grid-template-columns: 300fr 128fr 199fr 161fr 115fr 189fr 197fr 210fr 180fr 150fr;
}

.vee-cols-over {
    grid-template-columns: 186fr 383fr 212fr 325fr 239fr 309fr 150fr;
}

.vee-cols-test {
    grid-template-columns: 359fr 406fr 554fr 400fr;
}

.vee-foot {
    font-size: 13px;
    color: var(--vee-label);
}

    .vee-foot strong {
        color: var(--vee-text);
        font-weight: var(--vee-fw-label);
    }

/* ----- Drawer ----- */

[class*="drawer"] [class*="header"] {
    display: flex;
    align-items: center;
    height: var(--vee-drawer-head-h);
    min-height: var(--vee-drawer-head-h);
    padding: 0 calc(18px * var(--vee-scale));
    background: var(--vee-header-bg);
}

    [class*="drawer"] [class*="header"] [class*="title"] {
        font-size: calc(16px * var(--vee-scale)) !important;
        font-weight: var(--vee-fw-label) !important;
    }

    [class*="drawer"] [class*="header"] [class*="close"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: calc(8px * var(--vee-scale));
        transition: background-color .15s, color .15s;
    }

        [class*="drawer"] [class*="header"] [class*="close"]:hover,
        [class*="drawer"] [class*="header"] [class*="close"]:focus-visible {
            color: var(--vee-primary-fg);
            background: var(--vee-close-hover);
        }

[class*="drawer"] [class*="body"] {
    padding: 0 !important;
    overflow: hidden !important;
}

.vee-dwr {
    zoom: var(--vee-scale);
    display: flex;
    flex-direction: column;
    gap: 0;
    box-sizing: border-box;
    height: calc((100vh - var(--vee-drawer-head-h)) / var(--vee-scale));
    padding: 14px 6px 0 18px;
    overflow: hidden;
    font-size: 13px;
}

.vee-fixed {
    display: flex;
    flex-direction: column;
    flex: none;
    gap: 0;
    padding-right: 20px;
}

.vee-tabbar {
    display: flex;
    align-items: stretch;
    flex: none;
    height: 42px;
    margin: 10px 20px 0 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-bottom: 1px solid var(--vee-border);
}

.vee-crumbs {
    margin-bottom: 8px;
    line-height: 18px;
}

    .vee-crumbs * {
        font-size: 13px !important;
        font-weight: var(--vee-fw-head);
    }

    .vee-crumbs a {
        color: var(--vee-primary) !important;
        text-decoration: none;
    }

.vee-h1-row {
    margin-bottom: 4px;
}

.vee-h1 * {
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -.01em;
}

.vee-lead {
    margin-bottom: 8px;
    font-size: 13px;
}

.vee-stepper {
    margin-bottom: 10px;
}

.vee-dwr .vee-pill-warn,
.vee-dwr .vee-pill-ok {
    padding: 0 11px;
    font-size: 13px;
    line-height: 1.5;
}

.vee-actions {
    gap: 10px;
}

.vee-dwr button,
.vee-dwr button * {
    font-size: 13px !important;
    font-weight: var(--vee-fw-head) !important;
}

.vee-actions button {
    height: 35px;
    padding: 0 16px;
}

    .vee-actions button,
    .vee-actions button * {
        font-size: 14px !important;
    }

.vee-dwr button.vee-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    margin: 0 0 -1px;
    padding: 0 12px;
    font: inherit;
    font-size: 15px !important;
    font-weight: var(--vee-fw-head) !important;
    color: var(--vee-label);
    white-space: nowrap;
    cursor: pointer;
    background: none !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0;
}

    .vee-dwr button.vee-tab:hover {
        color: var(--vee-text);
    }

    .vee-dwr button.vee-tab.is-active {
        color: var(--vee-text);
        border-bottom-color: var(--vee-primary) !important;
    }

.vee-dwr button .vee-tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    font-size: 11px !important;
    font-weight: var(--vee-fw-label) !important;
    color: var(--vee-bad-fg);
    background: var(--vee-bad-bg);
    border-radius: 50%;
}

.vee-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 12px 24px 0;
    font-size: 13px;
    font-weight: var(--vee-fw-body);
    color: var(--vee-text);
}

/* ----- Responsive ----- */

@media (max-width: 1200px) {
    .vee-grid,
    .vee-grid-5,
    .vee-grid-6,
    .vee-grid-7 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vee-span-6 {
        grid-column: span 3;
    }
}

@media (max-width: 640px) {
    .vee-grid,
    .vee-grid-5,
    .vee-grid-6,
    .vee-grid-7 {
        grid-template-columns: minmax(0, 1fr);
    }

    .vee-span-2,
    .vee-span-3,
    .vee-span-6 {
        grid-column: span 1;
    }
}

.vrs-fs {
    --vrs-head-h: 48px;
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    background: var(--vee-surface);
    color: var(--vee-text);
}

.vee-root .vrs-fs {
    zoom: calc(1 / var(--vee-scale));
}

.vrs-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: none;
    box-sizing: border-box;
    height: var(--vrs-head-h);
    padding: 0 24px;
    background: var(--vee-header-bg);
    border-bottom: 1px solid var(--vee-border);
}

    .vrs-titlebar strong {
        font-size: 16px;
        font-weight: var(--vee-fw-label);
    }

.vrs-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 16px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 8px;
    transition: background-color .15s, color .15s;
}

    .vrs-x:hover,
    .vrs-x:focus-visible {
        color: var(--vee-primary-fg);
        background: var(--vee-close-hover);
    }

.vrs-fs .vee-dwr {
    height: calc((100vh - var(--vrs-head-h)) / var(--vee-scale));
}

.vrs-ro {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
/* ==========================================================================
   RULE SET 
   ========================================================================== */

/* extra status / severity pills */
.vee-pill-high,
.vee-pill-suspended {
    background: var(--vee-warn-bg);
    color: var(--vee-warn-fg);
}

/* clickable chip (triggers, days) - reuses .vee-step / .is-current */
.vee-step {
    cursor: pointer;
    background: var(--vee-surface);
}

.vee-page button.vee-step {
    padding: 3px 12px;
    border-radius: 99px;
}

/* member / exception table columns */
.vee-cols-mem {
    grid-template-columns: 70fr 160fr 300fr 200fr 170fr 190fr;
}

.vee-cols-exc {
    grid-template-columns: 160fr 160fr 240fr 130fr 130fr 100fr;
}

/* rule set list: native table, one header + group rows */
.vee-ptbl table {
    width: 100%;
    border-collapse: collapse;
}

.vee-ptbl th,
.vee-ptbl td {
    text-align: left;
    border-bottom: 1px solid var(--vee-border);
}

.vee-ptbl .vee-grow td {
    font-weight: var(--vee-fw-label);
    letter-spacing: .06em;
    color: var(--vee-label);
    background: var(--vee-surface-alt);
}

/* window: bar + vee-dwr body + dock */
.vrs-fs {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 23, 42, .35);
}

    .vrs-fs.is-min {
        inset: auto 0 0 0;
        background: none;
    }

.vee-root .vrs-fs {
    zoom: calc(1 / var(--vee-scale));
}

.vrs-win {
    --vrs-chrome: 118px; /* bar 54 + dock 64 */
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: var(--vee-surface);
    border: 1px solid var(--vee-primary);
}

    .vrs-win.is-float {
        --vrs-chrome: 162px;
        margin: 32px 64px 12px;
        border-radius: 12px;
    }

    .vrs-win .vee-dwr {
        height: calc((100vh - var(--vrs-chrome)) / var(--vee-scale));
    }

.vrs-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 10px;
    font-size: 15px;
    background: var(--vee-header-bg);
}

.vrs-x {
    width: 34px;
    height: 34px;
    color: inherit;
    cursor: pointer;
    background: transparent;
    border: 0;
}

    .vrs-x:hover {
        background: rgba(15, 23, 42, .1);
    }

    .vrs-x:last-child:hover {
        color: var(--vee-primary-fg);
        background: var(--vee-close-hover);
    }

.vrs-dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 16px;
    color: #ffffff;
    background: #0b1530;
}

    .vrs-dock button {
        font-size: 15px;
        color: inherit;
        cursor: pointer;
        background: none;
        border: 0;
    }

    .vrs-dock .is-on {
        height: 42px;
        padding: 0 16px;
        background: rgba(255, 255, 255, .12);
        border-bottom: 3px solid #f59e0b;
    }

.vee-members-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

    .vee-members-split.has-edit {
        grid-template-columns: minmax(0, 1fr) 380px;
    }

/* no sticky, no max-height, no overflow: the panel grows to its content */
.vee-members-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vee-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .vee-stack .vee-select {
        width: 100%;
    }

.vee-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* save bar + status text */
.vee-save-bar {
    margin-top: 12px;
    align-items: center;
}

.vee-save-ok {
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
}

.vee-save-err {
    color: #b91c1c;
    font-size: 13px;
    font-weight: 600;
}

@media (max-width: 1100px) {
    .vee-members-split.has-edit {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===== Exceptions list ===== */

/* status tabs: one joined bar, active one filled */
.vee-seg {
    display: flex;
    overflow-x: auto;
    background: var(--vee-surface);
    border: 1px solid var(--vee-border);
    border-radius: var(--vee-radius);
}

.vee-page .vee-seg button {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: var(--vee-fw-head);
    color: var(--vee-text);
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: 0 !important;
    border-right: 1px solid var(--vee-border) !important;
    border-radius: 0 !important;
}

    .vee-page .vee-seg button.is-on {
        color: var(--vee-primary-fg);
        background: var(--vee-primary);
    }

/* filters row */
.vee-exc-filters {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1fr 1.6fr 1fr 1.5fr;
    gap: 16px;
    align-items: end;
}

.vee-exc-search {
    min-width: 0;
}

/* table columns */
.vee-cols-exl {
    grid-template-columns: 130fr 120fr 130fr 150fr 220fr 100fr 110fr 150fr 70fr 150fr 90fr;
}

.vee-empty-box:has(.vee-cols-exl) {
    overflow-x: auto;
}

.vee-cols-exl {
    min-width: 1400px;
}

/* status pills */
.vee-pill-open {
    background: var(--vee-warn-bg);
    color: var(--vee-warn-fg);
}

.vee-pill-assigned,
.vee-pill-in-review {
    background: var(--vee-medium-bg);
    color: var(--vee-medium-fg);
}

.vee-pill-resolved {
    background: var(--vee-ok-bg);
    color: var(--vee-ok-fg);
}

.vee-pill-closed {
    background: var(--vee-neutral-bg);
    color: var(--vee-neutral-fg);
}

@media (max-width: 1200px) {
    .vee-exc-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
/* ===== Execution list ===== */
.vee-cols-exe {
    grid-template-columns: 130fr 190fr 300fr 230fr 150fr 150fr 190fr 140fr 100fr 100fr;
    min-width: 1600px;
}

.vee-empty-box:has(.vee-cols-exe) {
    overflow-x: auto;
}

.vee-pill-queued {
    background: var(--vee-neutral-bg);
    color: var(--vee-neutral-fg);
}

.vee-pill-running {
    background: var(--vee-medium-bg);
    color: var(--vee-medium-fg);
}

.vee-pill-completed {
    background: var(--vee-ok-bg);
    color: var(--vee-ok-fg);
}

.vee-pill-completed-with-exceptions {
    background: var(--vee-warn-bg);
    color: var(--vee-warn-fg);
    border: 1px solid var(--vee-warn-border);
}

.vee-pill-failed {
    background: var(--vee-bad-bg);
    color: var(--vee-bad-fg);
}

/* ===== Edit & Revalidation ===== */
.vee-edit-filters {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.vee-cols-edr {
    grid-template-columns: 120fr 150fr 110fr 130fr 160fr 150fr 150fr 120fr 120fr 130fr 160fr 130fr 160fr 90fr;
    min-width: 1900px;
}

.vee-empty-box:has(.vee-cols-edr) {
    overflow-x: auto;
}

/* edit / revalidation status pills */
.vee-pill-approved,
.vee-pill-passed {
    background: var(--vee-ok-bg);
    color: var(--vee-ok-fg);
}

.vee-pill-submitted,
.vee-pill-pending-approval {
    background: var(--vee-medium-bg);
    color: var(--vee-medium-fg);
}

.vee-pill-returned {
    background: var(--vee-warn-bg);
    color: var(--vee-warn-fg);
}

.vee-pill-rejected {
    background: var(--vee-bad-bg);
    color: var(--vee-bad-fg);
}

.vee-pill-pending {
    background: var(--vee-neutral-bg);
    color: var(--vee-neutral-fg);
}

@media (max-width: 1200px) {
    .vee-edit-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ===== Edit & Revalidation summary cards =====*/
.vee-stats:has(.vee-sub) {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.vee-stat:has(> .vee-sub) {
    padding: 12px 14px;
    background: var(--vee-surface);
    border: 1px solid var(--vee-border);
    border-radius: var(--vee-radius);
}

.vee-stat > .vee-sub:last-child {
    font-size: 12px;
    font-weight: var(--vee-fw-body);
    font-family: var(--vee-font);
    color: var(--vee-muted);
}

.vee-stat:has(> .vee-sub) > :nth-child(2) {
    font-size: 20px;
    font-weight: var(--vee-fw-label);
    font-family: var(--vee-mono);
    color: var(--vee-text);
}

@media (max-width: 1200px) {
    .vee-stats:has(.vee-sub) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.vee-page :has(> input.vee-select) {
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
/* ===== Table pager (inside .vee-empty-box, under the rows) ===== */
.vee-xscroll {
    overflow-x: auto;
}

/* the scroll now lives in .vee-xscroll, so the box itself must not scroll */
.vee-empty-box:has(.vee-xscroll) {
    overflow: hidden;
}

.vee-pager {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
    background: var(--vee-surface-alt);
    border-top: 1px solid var(--vee-border);
}

.vee-pager-info {
    color: var(--vee-text);
}

.vee-pager-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.vee-page .vee-pager-pages button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 14px;
    color: var(--vee-text);
    cursor: pointer;
    background: var(--vee-surface);
    border: 1px solid var(--vee-border);
    border-radius: var(--vee-btn-radius);
}

    .vee-page .vee-pager-pages button:hover:not(:disabled) {
        border-color: var(--vee-primary);
        color: var(--vee-primary);
    }

    .vee-page .vee-pager-pages button.is-on {
        color: var(--vee-primary-fg);
        background: var(--vee-primary);
        border-color: var(--vee-primary);
    }

    .vee-page .vee-pager-pages button:disabled {
        opacity: .45;
        cursor: not-allowed;
    }

.vee-pager-size {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    color: var(--vee-text);
}

    .vee-pager-size .vee-select {
        width: 76px;
        height: 32px;
        padding: 0 8px;
    }

@media (max-width: 900px) {
    .vee-pager {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .vee-pager-size {
        justify-self: center;
    }
}
.vee-stat.vee-card-click {
    cursor: pointer;
}

    .vee-stat.vee-card-click:hover {
        border-color: var(--vee-primary);
    }

    .vee-stat.vee-card-click.is-on {
        border: 2px solid var(--vee-primary);
    }

/* ==========================================================================
   ESTIMATION 
   ========================================================================== */

/* ----- Header ----- */
.est-eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: var(--vee-fw-label);
    letter-spacing: .1em;
    color: var(--vee-primary);
}

.est-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.01em;
}

.est-code {
    font-family: var(--vee-mono);
}

.est-ver {
    font-family: var(--vee-mono);
    background: var(--vee-neutral-bg);
    color: var(--vee-neutral-fg);
}

.est-toast {
    margin-left: 8px;
    font-size: 13px;
}

/* ----- Buttons (primary colour comes from your .vee-page [class*="primary"] rule) ----- */
.vee-page .est-btn {
    height: 35px;
    padding: 0 16px;
    color: var(--vee-text);
    cursor: pointer;
    background: var(--vee-surface);
    border: 1px solid var(--vee-input-border);
}

    .vee-page .est-btn:hover:not(:disabled) {
        border-color: var(--vee-primary);
        color: var(--vee-primary);
    }

    .vee-page .est-btn:disabled {
        opacity: .5;
        cursor: not-allowed;
    }

    .vee-page .est-btn.est-btn-primary,
    .vee-page .est-btn.est-btn-primary:hover:not(:disabled) {
        color: var(--vee-primary-fg);
    }

    .vee-page .est-btn.est-btn-sm {
        height: 28px;
        padding: 0 10px;
    }

/* ----- Cards ----- */
.est-card {
    margin-bottom: 16px;
    padding: 14px 16px 16px;
    background: var(--vee-surface);
    border: 1px solid var(--vee-border);
    border-radius: var(--vee-radius);
}

.est-card-h {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

    .est-card-h strong {
        font-size: 13px;
        font-weight: var(--vee-fw-label);
        letter-spacing: .04em;
        text-transform: uppercase;
    }

    .est-card-h .vee-muted {
        font-size: 13px;
    }

.est-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ----- Form fields ----- */
.est-grid {
    display: grid;
    gap: 12px 18px;
    align-items: start;
    margin-bottom: 14px;
}

.est-grid-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.est-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.est-f {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

    .est-f > span {
        font-size: 11px;
        font-weight: var(--vee-fw-label);
        line-height: 14px;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--vee-label);
    }

.est-wide {
    width: 100%;
    margin-bottom: 12px;
}

.est-in {
    box-sizing: border-box;
    width: 100%;
    height: var(--vee-field-h);
    padding: 0 12px;
    font: inherit;
    font-size: 14px;
    color: inherit;
    background: var(--vee-surface);
    border: 1px solid var(--vee-input-border);
    border-radius: var(--vee-radius);
}

textarea.est-in {
    height: auto;
    padding: 10px 12px;
}

.est-in:focus {
    outline: none;
    border-color: var(--vee-primary);
    box-shadow: var(--vee-ring);
}

.est-in[readonly],
.est-in:disabled {
    color: var(--vee-muted);
    background: var(--vee-disabled-bg);
}

.est-inline {
    display: flex;
    align-items: center;
    gap: 6px;
}

.est-mono {
    font-family: var(--vee-mono);
}

/* ----- Tables ----- */
.est-tablewrap {
    overflow-x: auto;
}

.est-table {
    width: 100%;
    border-collapse: collapse;
}

    .est-table th {
        padding: 10px 14px;
        font-size: 13px;
        font-weight: var(--vee-fw-head);
        text-align: left;
        white-space: nowrap;
        color: var(--vee-label);
        background: var(--vee-surface-alt);
        border-bottom: 1px solid var(--vee-border);
    }

    .est-table td {
        padding: 8px 10px;
        font-size: 13px;
        vertical-align: middle;
        border-bottom: 1px solid var(--vee-border);
    }

    .est-table input[type="checkbox"],
    .est-checks input[type="checkbox"] {
        accent-color: var(--vee-primary);
    }

/* ----- Steps ----- */
.est-steps {
    display: grid;
    gap: 8px;
    padding-left: 24px;
    margin: 0;
    list-style: decimal;
}

    .est-steps li {
        display: flex;
        align-items: center;
        gap: 8px;
    }

/* ----- Chips (include / exclude) ----- */
.est-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 6px 6px 0;
    padding: 3px 12px;
    font-size: 13px;
    color: var(--vee-medium-fg);
    background: var(--vee-medium-bg);
    border-radius: 99px;
}

.est-chip-x {
    color: var(--vee-bad-fg);
    background: var(--vee-bad-bg);
}

.vee-page .est-chip button {
    padding: 0;
    font-size: 15px;
    line-height: 1;
    color: inherit;
    cursor: pointer;
    background: transparent;
    border: 0;
}

.est-addrow {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* ----- Checks / results ----- */
.est-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 8px 0;
    font-size: 14px;
}

    .est-checks label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-transform: none;
        letter-spacing: 0;
        font-weight: var(--vee-fw-body);
    }

.est-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .est-list li {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .est-list li span {
            font-weight: var(--vee-fw-label);
        }

        .est-list li.ok span {
            color: var(--vee-ok-fg);
        }

        .est-list li.bad span {
            color: var(--vee-warn-fg);
        }

.est-result {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: var(--vee-radius);
}

    .est-result.ok {
        color: var(--vee-ok-fg);
        background: var(--vee-ok-bg);
    }

    .est-result.bad {
        color: var(--vee-warn-fg);
        background: var(--vee-warn-bg);
    }

/* ----- Responsive ----- */
@media (max-width: 1200px) {
    .est-grid-5,
    .est-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .est-grid-5,
    .est-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .est-two {
        grid-template-columns: 1fr;
    }
}
.est-card-h strong {
    font-size: 14px;
    font-weight: var(--vee-fw-label);
    letter-spacing: 0;
    text-transform: none;
}

/* key / value rows (Applicability, Result & Exception, Version) */
.est-kv {
    display: flex;
    flex-direction: column;
}

.est-kv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 46px;
    padding: 6px 0;
    font-size: 14px;
    border-top: 1px solid var(--vee-border);
}

    .est-kv-row > span:first-child {
        flex: none;
    }

    .est-kv-row .est-in {
        width: auto;
        flex: 1;
        max-width: 60%;
        font-family: var(--vee-mono);
        text-align: right;
    }

    .est-kv-row input[type="date"].est-in {
        flex: none;
        width: 180px;
    }

.est-kv-val {
    font-family: var(--vee-mono);
    font-weight: var(--vee-fw-label);
    text-align: right;
}

/* test checkbox */
.est-check {
    width: 22px;
    height: 22px;
    accent-color: var(--vee-primary);
}
