:root {
    --layout-width: 1160px;
    --dashboard-header-height: 52px;
    --dashboard-window-top-offset: 82px;
    --app-motion-soft: cubic-bezier(0.16, 1, 0.3, 1);
    --font-family-base: "Segoe UI Variable Text", "Segoe UI", "Aptos", Arial, sans-serif;
    --color-brand-background: #107c41;
    --color-brand-background-hover: #0e6f3a;
    --color-brand-background-pressed: #0c5f32;
    --color-brand-background-subtle: #e8f5ec;
    --color-brand-foreground: #0f6b3a;
    --color-neutral-background-1: #ffffff;
    --color-neutral-background-2: #fafafa;
    --color-neutral-background-3: #f5f5f5;
    --color-neutral-background-4: #f0f0f0;
    --color-neutral-foreground-1: #242424;
    --color-neutral-foreground-2: #424242;
    --color-neutral-foreground-3: #616161;
    --color-neutral-stroke-1: #d1d1d1;
    --color-neutral-stroke-2: #e0e0e0;
    --color-neutral-stroke-subtle: #ebebeb;
    --color-status-danger: #c50f1f;
    --color-status-warning: #8a6100;
    --radius-control: 4px;
    --radius-surface: 8px;
    --radius-panel: 12px;
    --radius-pill: 999px;
    --shadow-2: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-4: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-8: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-16: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-soft: var(--shadow-8);
    --bg: var(--color-neutral-background-3);
    --panel: var(--color-neutral-background-1);
    --panel-soft: var(--color-neutral-background-2);
    --border: var(--color-neutral-stroke-2);
    --text: var(--color-neutral-foreground-1);
    --text-soft: var(--color-neutral-foreground-3);
    --icon-strong: var(--color-brand-foreground);
    --primary: var(--color-brand-background);
    --primary-deep: var(--color-brand-background-pressed);
    --warning: var(--color-status-warning);
    --error: var(--color-status-danger);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Aptos", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    caret-color: transparent;
    background:
        radial-gradient(circle at top left, rgba(0, 200, 111, 0.1), transparent 28%),
        radial-gradient(circle at top right, rgba(116, 232, 160, 0.08), transparent 24%),
        linear-gradient(180deg, #fbfdfb 0%, #eef5ef 100%);
}

body.search-open {
    overflow: hidden;
}

body.app-window-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-style: normal;
    font-weight: normal;
    font-size: 1.25rem;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-user-select: none;
    user-select: none;
    caret-color: transparent;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    -webkit-user-select: none;
    user-select: none;
    caret-color: transparent;
}

input,
textarea,
[contenteditable="true"] {
    caret-color: auto;
}

.heading-with-icon,
.dashboard-searchbar-main,
.dashboard-user-chip-main,
.module-link-header,
.table-heading {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.heading-with-icon {
    flex-wrap: wrap;
}

.heading-with-icon > .material-symbols-outlined {
    font-size: 0.9em;
}

.heading-with-icon .material-symbols-outlined,
.dashboard-user-chip-main .material-symbols-outlined,
.module-link-icon,
.app-page-stat-icon {
    color: var(--icon-strong);
}

.auth-body {
    min-height: 100vh;
}

.auth-shell,
.dashboard-shell {
    width: min(var(--layout-width), calc(100% - 48px));
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    align-items: center;
    gap: 36px;
}

.auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.92fr);
}

.auth-shell-wide {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
}

.brand-panel,
.auth-card,
.dashboard-card,
.dashboard-header,
.dashboard-hero {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(34, 77, 57, 0.08);
}

.brand-panel {
    padding: 36px;
}

.auth-card {
    padding: 32px;
}

.second-factor-shell {
    width: min(1040px, calc(100% - 48px));
    grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 0.86fr);
    gap: 28px;
}

.second-factor-brand,
.second-factor-card {
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(24, 57, 42, 0.1);
}

.second-factor-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 430px;
    padding: 44px;
    overflow: hidden;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 244, 0.96) 100%),
        var(--panel);
}

.second-factor-brand-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 30px;
    border: 1px solid rgba(15, 107, 67, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--icon-strong);
    box-shadow: 0 12px 26px rgba(24, 57, 42, 0.08);
}

.second-factor-brand-lock .material-symbols-outlined {
    font-size: 2rem;
}

.second-factor-shell .eyebrow {
    letter-spacing: 0;
}

.second-factor-brand .eyebrow {
    margin-bottom: 14px;
    color: rgba(15, 107, 67, 0.92);
    font-size: 0.9rem;
}

.second-factor-shell .second-factor-brand h1 {
    max-width: 520px;
    margin: 0;
    color: #10291d;
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.second-factor-card {
    align-self: center;
    padding: 34px;
}

.second-factor-card-head {
    display: grid;
    gap: 14px;
}

.second-factor-card .second-factor-card-head h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.55rem);
    line-height: 1.06;
    letter-spacing: 0;
}

.second-factor-account {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(24, 57, 42, 0.1);
    border-radius: 14px;
    background: rgba(246, 249, 247, 0.96);
    color: rgba(23, 48, 36, 0.84);
    font-size: 1rem;
    font-weight: 700;
}

.second-factor-account span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.second-factor-code-panel,
.second-factor-status {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid rgba(24, 57, 42, 0.1);
    border-radius: 16px;
    background: rgba(247, 250, 248, 0.98);
}

.second-factor-meta {
    display: grid;
    gap: 0;
    margin: 0;
}

.second-factor-meta div {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid rgba(24, 57, 42, 0.08);
}

.second-factor-meta div:first-child {
    border-top: 0;
}

.second-factor-meta dt,
.second-factor-meta dd {
    min-width: 0;
    margin: 0;
}

.second-factor-meta dt {
    color: rgba(23, 48, 36, 0.58);
    font-size: 0.82rem;
    font-weight: 700;
}

.second-factor-meta dd {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.second-factor-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--icon-strong);
}

.second-factor-status-warning {
    color: #8a5b08;
    background: rgba(255, 250, 238, 0.98);
}

.second-factor-card .auth-form-grid {
    gap: 14px;
    margin-top: 22px;
}

.second-factor-card .auth-form-stack {
    margin-top: 10px;
}

.second-factor-card .field-group > span {
    display: block;
    margin-bottom: 8px;
    color: rgba(23, 48, 36, 0.72);
    font-size: 0.9rem;
    font-weight: 700;
}

.second-factor-card .field-group input {
    min-height: 58px;
    padding: 15px 16px;
    border-radius: 12px;
    font-size: 1.08rem;
}

.second-factor-card .primary-button,
.second-factor-card .secondary-button {
    min-height: 58px;
    border-radius: 12px;
}

.second-factor-card .primary-button {
    box-shadow: 0 12px 26px rgba(0, 122, 58, 0.18);
}

.auth-card-head h2,
.brand-panel h1,
.dashboard-hero h1,
.dashboard-card h2 {
    margin: 0 0 12px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.brand-panel h1,
.dashboard-hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
}

.auth-card-head h2,
.dashboard-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.eyebrow {
    margin: 0 0 12px;
    color: #0d8d53;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lead,
.auth-card-head p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.brand-pills span {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.field-span-2 {
    grid-column: 1 / -1;
}

.field-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: rgba(23, 48, 36, 0.86);
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 17px 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-size: 1.04rem;
    line-height: 1.2;
}

.registry-lookup-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 8px;
}

.registry-lookup-row input[data-contact-tax-id-input] {
    min-width: 0;
    padding-block: 14px;
    border-radius: 16px;
    font-size: 1rem;
}

.registry-lookup-button {
    width: 52px;
    min-height: 0;
    padding: 0;
    border-radius: 16px;
    white-space: nowrap;
}

.registry-lookup-button .app-icon {
    font-size: 1.2rem;
}

.field-group textarea {
    min-height: 132px;
    resize: vertical;
}

.settings-toggle {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font-weight: 700;
}

.settings-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    accent-color: var(--primary-deep);
}

.settings-toggle span {
    min-width: 0;
}

.checkbox-field {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid var(--color-neutral-stroke-1);
    border-radius: var(--radius-surface);
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    cursor: pointer;
    box-shadow: var(--shadow-2);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s var(--app-motion-soft);
}

.checkbox-field input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.checkbox-field span {
    min-width: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.checkbox-field::before {
    content: "OFF";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    min-width: 78px;
    height: 38px;
    border: 1px solid var(--color-neutral-stroke-1);
    border-radius: var(--radius-control);
    background: var(--color-neutral-background-3);
    color: var(--text-soft);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.checkbox-field::after {
    content: none;
}

.checkbox-field:hover {
    border-color: #b6d7c2;
    box-shadow: var(--shadow-8);
}

.checkbox-field:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid var(--color-brand-background);
    outline-offset: 2px;
}

.checkbox-field:has(input[type="checkbox"]:checked) {
    border-color: #8ccaa2;
    background: #f1faf4;
    box-shadow: var(--shadow-4);
}

.checkbox-field:has(input[type="checkbox"]:checked)::before {
    content: "ON";
    border-color: var(--color-brand-background);
    background: var(--color-brand-background);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 122, 58, 0.18);
}

.checkbox-field:has(input[type="checkbox"]:checked)::after {
    content: none;
}

.checkbox-field:has(input[type="checkbox"]:checked) span {
    color: var(--color-brand-foreground);
}

.field-group input[type="file"] {
    padding: 10px 12px;
    min-height: 62px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(243, 247, 244, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    cursor: pointer;
}

.field-group input[type="file"]:hover {
    border-color: rgba(15, 107, 67, 0.22);
    background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(239, 245, 241, 0.99));
}

.field-group input[type="file"]::file-selector-button {
    margin-right: 14px;
    padding: 10px 16px;
    border: 1px solid rgba(24, 57, 42, 0.16);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(239, 244, 241, 0.98) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 20px rgba(25, 59, 43, 0.08);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.field-group input[type="file"]::-webkit-file-upload-button {
    margin-right: 14px;
    padding: 10px 16px;
    border: 1px solid rgba(24, 57, 42, 0.16);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(239, 244, 241, 0.98) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.92), 0 8px 20px rgba(25, 59, 43, 0.08);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.field-group input[type="file"]:hover::file-selector-button,
.field-group input[type="file"]:focus::file-selector-button,
.field-group input[type="file"]:focus-visible::file-selector-button {
    border-color: rgba(15, 107, 67, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, rgba(234, 244, 238, 1) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 24px rgba(15, 107, 67, 0.12);
    transform: translateY(-1px);
}

.field-group input[type="file"]:hover::-webkit-file-upload-button,
.field-group input[type="file"]:focus::-webkit-file-upload-button,
.field-group input[type="file"]:focus-visible::-webkit-file-upload-button {
    border-color: rgba(15, 107, 67, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, rgba(234, 244, 238, 1) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 24px rgba(15, 107, 67, 0.12);
    transform: translateY(-1px);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.56);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.app-date-field {
    position: relative;
}

.app-date-input-control {
    padding-right: 58px !important;
    cursor: pointer;
}

.app-date-trigger {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(15, 107, 67, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: #0f6b43;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-date-trigger:hover,
.app-date-trigger:focus-visible,
.app-date-field-open .app-date-trigger {
    outline: none;
    border-color: rgba(15, 107, 67, 0.36);
    background: rgba(236, 248, 242, 0.98);
    box-shadow: 0 10px 24px rgba(34, 77, 57, 0.12);
}

.app-date-picker-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: min(340px, calc(100vw - 40px));
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.98)),
        rgba(255, 255, 255, 0.98);
    box-shadow:
        0 28px 60px rgba(34, 77, 57, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.app-date-field-open-upward .app-date-picker-panel {
    top: auto;
    bottom: calc(100% + 10px);
}

.app-date-picker-head,
.app-date-picker-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-date-picker-head {
    margin-bottom: 14px;
}

.app-date-picker-title {
    color: #22342c;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-date-picker-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-date-picker-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(23, 50, 42, 0.12);
    border-radius: 12px;
    background: rgba(248, 251, 249, 0.98);
    color: #17322a;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.app-date-picker-nav-button:hover,
.app-date-picker-nav-button:focus-visible {
    outline: none;
    border-color: rgba(15, 107, 67, 0.24);
    background: rgba(236, 244, 239, 0.98);
    box-shadow: 0 10px 24px rgba(34, 77, 57, 0.12);
}

.app-date-picker-weekdays,
.app-date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.app-date-picker-weekdays {
    margin-bottom: 10px;
}

.app-date-picker-weekdays span {
    display: grid;
    place-items: center;
    min-height: 28px;
    color: #6d867f;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-date-picker-day {
    display: grid;
    place-items: center;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: transparent;
    color: #22342c;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-date-picker-day:hover,
.app-date-picker-day:focus-visible {
    outline: none;
    border-color: rgba(15, 107, 67, 0.24);
    background: rgba(240, 247, 243, 0.98);
    transform: translateY(-1px);
}

.app-date-picker-day.is-outside-month {
    color: rgba(83, 104, 95, 0.56);
}

.app-date-picker-day.is-today:not(.is-selected) {
    border-color: rgba(15, 107, 67, 0.24);
    background: rgba(236, 244, 239, 0.98);
    font-weight: 800;
}

.app-date-picker-day.is-in-range {
    border-color: rgba(0, 200, 111, 0.08);
    background: rgba(0, 200, 111, 0.1);
    color: #0f6b43;
}

.app-date-picker-day.is-selected {
    border-color: transparent;
    background: linear-gradient(135deg, #0f6b43, #1a8c5e);
    box-shadow: 0 14px 26px rgba(15, 107, 67, 0.26);
    color: #ffffff;
}

.app-date-picker-day.is-disabled,
.app-date-picker-day:disabled {
    cursor: not-allowed;
    opacity: 0.38;
    transform: none;
}

.app-date-picker-day.is-disabled:hover,
.app-date-picker-day.is-disabled:focus-visible,
.app-date-picker-day:disabled:hover,
.app-date-picker-day:disabled:focus-visible {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.app-date-time-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(23, 50, 42, 0.1);
}

.app-date-time-field {
    display: grid;
    gap: 6px;
    color: #52665f;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-date-time-field input {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(23, 50, 42, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: #17322a;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
}

.app-date-time-field input:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.56);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.app-date-picker-actions {
    margin-top: 14px;
}

.app-date-picker-action {
    border: 0;
    background: transparent;
    color: #0f6b43;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.app-date-picker-action:hover,
.app-date-picker-action:focus-visible {
    outline: none;
    color: #0b5a38;
}

.app-date-picker-action.is-primary {
    color: #17322a;
}

.app-time-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 38px;
    align-items: stretch;
    gap: 6px;
    width: 100%;
    max-width: 100%;
}

.app-time-input-control {
    min-width: 0;
}

.app-time-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid rgba(23, 50, 42, 0.12);
    border-radius: 8px;
    background: rgba(248, 251, 249, 0.98);
    color: #17322a;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.app-time-trigger .app-icon {
    font-size: 1.25rem;
}

.app-time-trigger:hover,
.app-time-trigger:focus-visible {
    outline: none;
    border-color: rgba(15, 107, 67, 0.24);
    background: rgba(236, 244, 239, 0.98);
    box-shadow: 0 10px 24px rgba(34, 77, 57, 0.12);
}

.app-time-field.is-disabled .app-time-trigger,
.app-time-trigger:disabled {
    cursor: not-allowed;
    opacity: 0.46;
    box-shadow: none;
}

.app-time-picker-panel {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    width: min(300px, calc(100vw - 32px));
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.98)),
        rgba(255, 255, 255, 0.98);
    box-shadow:
        0 28px 60px rgba(34, 77, 57, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.app-time-picker-head,
.app-time-picker-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.app-time-picker-title {
    color: #22342c;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0;
}

.app-time-mode-switch {
    display: inline-flex;
    overflow: hidden;
    border: 1px solid rgba(23, 50, 42, 0.12);
    border-radius: 8px;
    background: rgba(248, 251, 249, 0.98);
}

.app-time-mode-button {
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #52665f;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
}

.app-time-mode-button:hover,
.app-time-mode-button:focus-visible {
    outline: none;
    background: rgba(236, 244, 239, 0.98);
    color: #17322a;
}

.app-time-mode-button.is-active {
    background: #0f6b43;
    color: #ffffff;
}

.app-time-clock-face {
    position: relative;
    width: 228px;
    height: 228px;
    margin: 14px auto 12px;
    border: 1px solid rgba(23, 50, 42, 0.1);
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.98), rgba(235, 244, 239, 0.96));
}

.app-time-clock-hand {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 3px;
    height: var(--time-hand-length);
    border-radius: 999px;
    background: #0f6b43;
    transform: translate(-50%, -100%) rotate(var(--time-hand-angle));
    transform-origin: 50% 100%;
    box-shadow: 0 8px 18px rgba(15, 107, 67, 0.22);
    pointer-events: none;
}

.app-time-clock-center {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0f6b43;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.app-time-clock-option {
    position: absolute;
    left: var(--time-option-x);
    top: var(--time-option-y);
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #22342c;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.app-time-clock-option.is-inner {
    width: 30px;
    height: 30px;
    font-size: 0.76rem;
}

.app-time-clock-option:hover,
.app-time-clock-option:focus-visible {
    outline: none;
    border-color: rgba(15, 107, 67, 0.24);
    background: rgba(240, 247, 243, 0.98);
}

.app-time-clock-option.is-selected {
    border-color: transparent;
    background: #0f6b43;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(15, 107, 67, 0.24);
}

.app-time-picker-actions {
    margin-top: 8px;
}

.app-time-picker-action {
    border: 0;
    background: transparent;
    color: #0f6b43;
    font: inherit;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    padding: 6px 4px;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.app-time-picker-action:hover,
.app-time-picker-action:focus-visible {
    outline: none;
    color: #0b5a38;
}

.app-time-picker-action.is-primary {
    color: #17322a;
}

select.app-select-native {
    display: none;
}

.field-group.has-open-select,
.page-filter-field.has-open-select {
    position: relative;
    z-index: 35;
}

.records-table tr.has-open-select,
.records-table td.has-open-select,
.records-table th.has-open-select {
    position: relative;
    z-index: 45;
}

.app-select {
    position: relative;
    --app-select-panel-gap: 8px;
    --app-select-panel-top: calc(100% + var(--app-select-panel-gap));
    --app-select-panel-bottom: auto;
    --app-select-panel-origin: top center;
    --app-select-options-max-height: 280px;
}

.app-select.app-select-open-upward {
    --app-select-panel-top: auto;
    --app-select-panel-bottom: calc(100% + var(--app-select-panel-gap));
    --app-select-panel-origin: bottom center;
}

.app-select-control {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field-group .app-select-control {
    min-height: 60px;
    padding: 17px 50px 17px 20px;
}

.page-filter-field .app-select-control {
    min-height: 50px;
    padding: 12px 48px 12px 18px;
}

.app-select-control::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 9px;
    height: 9px;
    border-right: 2px solid rgba(23, 48, 36, 0.78);
    border-bottom: 2px solid rgba(23, 48, 36, 0.78);
    transform: translateY(-60%) rotate(45deg);
    transition: transform 0.18s ease;
    pointer-events: none;
}

.app-select.is-open .app-select-control::after {
    transform: translateY(-15%) rotate(-135deg);
}

.app-select-control:hover,
.app-select-control:focus-visible {
    outline: none;
    border-color: rgba(0, 200, 111, 0.56);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.app-select-control:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.app-select-current {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.app-select-current-primary,
.app-select-current-secondary {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-select-current-primary {
    font-weight: 600;
    font-size: 1.03rem;
    line-height: 1.25;
}

.app-select-current-secondary {
    color: var(--text-soft);
    font-size: 0.96rem;
}

.app-select-control.is-placeholder .app-select-current {
    color: var(--text-soft);
}

.app-select-panel {
    position: absolute;
    top: var(--app-select-panel-top);
    bottom: var(--app-select-panel-bottom);
    left: 0;
    right: 0;
    z-index: 40;
    padding: 10px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(34, 77, 57, 0.14);
    backdrop-filter: blur(16px);
    transform-origin: var(--app-select-panel-origin);
}

.app-select-search {
    margin-bottom: 8px;
}

.app-select-search-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 14px;
    background: rgba(247, 250, 248, 0.96);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.app-select-inline-search-input {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    min-height: 50px;
    padding: 12px 48px 12px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.app-select.is-inline-searching .app-select-inline-search-input {
    display: block;
}

.app-select-search-input:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.56);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.app-select-inline-search-input:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.56);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.app-select-empty {
    margin-bottom: 4px;
    padding: 10px 12px;
    color: var(--text-soft);
    font-size: 0.92rem;
}

.app-select-options {
    display: grid;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.app-select-option {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.app-select-option-content {
    display: grid;
    gap: 3px;
}

.app-select-option-label {
    font-weight: 600;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.app-select-option-description {
    color: var(--text-soft);
    font-size: 0.96rem;
    line-height: 1.24;
    overflow-wrap: anywhere;
}

.app-select-option:hover,
.app-select-option:focus-visible {
    outline: none;
    background: rgba(15, 107, 67, 0.08);
}

.app-select-option.is-selected {
    background: rgba(0, 200, 111, 0.18);
    color: var(--icon-strong);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(0, 200, 111, 0.44);
}

.app-select-option.is-selected:hover,
.app-select-option.is-selected:focus-visible {
    background: rgba(0, 200, 111, 0.24);
}

.app-select-option:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.field-group input[readonly] {
    background: rgba(244, 248, 245, 0.98);
    font-weight: 700;
}

.field-hint,
.field-error {
    margin: 8px 0 0;
    font-size: 0.9rem;
}

.field-hint {
    color: var(--text-soft);
}

.field-error {
    color: var(--error);
}

.app-form-alert {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(247, 250, 248, 0.98);
}

.app-form-alert strong,
.app-form-alert p {
    margin: 0;
}

.app-form-alert p {
    color: var(--text-soft);
    line-height: 1.6;
}

.app-form-alert-success {
    border-color: rgba(0, 200, 111, 0.24);
    background: rgba(239, 252, 245, 0.99);
}

.app-form-alert-error {
    border-color: rgba(210, 74, 74, 0.28);
    background: rgba(255, 245, 245, 0.99);
}

.user-create-role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.user-create-role-option {
    display: flex;
    align-items: start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.user-create-role-option:hover {
    border-color: rgba(15, 107, 67, 0.26);
    box-shadow: 0 14px 28px rgba(34, 77, 57, 0.06);
    transform: translateY(-1px);
}

.user-create-role-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--primary-deep);
    flex-shrink: 0;
}

.user-create-role-option-content {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.user-create-role-option-content > span:last-of-type,
.user-create-role-option-content small {
    color: var(--text-soft);
    line-height: 1.55;
}

.user-create-role-option-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.user-create-role-option-head strong {
    font-size: 1rem;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border-radius: 18px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.primary-button {
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    color: #ffffff;
}

.secondary-button {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
}

.message {
    position: fixed;
    top: calc(var(--dashboard-header-height) + 16px + (var(--toast-index, 0) * 66px));
    left: 50%;
    z-index: 620;
    width: min(1120px, calc(100vw - 28px));
    margin: 0;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 46px rgba(34, 77, 57, 0.14);
    backdrop-filter: blur(18px);
    line-height: 1.6;
    animation: app-message-toast-lifecycle 5.8s ease forwards;
    transform: translateX(-50%);
}

.message:hover,
.message:focus-within {
    animation-play-state: paused;
}

.message p {
    margin: 4px 0 0;
}

.message strong {
    display: block;
}

.message.success {
    border-color: rgba(0, 200, 111, 0.24);
    background: rgba(239, 252, 245, 0.99);
}

.message.error {
    border-color: rgba(210, 74, 74, 0.28);
    background: rgba(255, 245, 245, 0.99);
}

.message.info {
    border-color: rgba(24, 57, 42, 0.12);
    background: rgba(247, 250, 248, 0.99);
}

.message.warning {
    border-color: rgba(232, 194, 106, 0.34);
    background: rgba(255, 250, 238, 0.99);
}

.message.is-hiding {
    animation: app-message-toast-exit 0.24s ease forwards;
}

@keyframes app-message-toast-lifecycle {
    0% {
        opacity: 0;
        visibility: visible;
        transform: translate(-50%, -14px);
    }

    7%,
    82% {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -14px);
    }
}

@keyframes app-message-toast-exit {
    from {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0);
    }

    to {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -14px);
    }
}

.info-card {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(247, 250, 248, 0.96);
}

.info-card strong {
    display: block;
    margin-bottom: 6px;
}

.info-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.auth-form-stack {
    margin-top: 12px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.dashboard-body {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    overflow-x: clip;
}

.dashboard-shell {
    width: calc(100% - 48px);
    max-width: none;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding-bottom: 0;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: clamp(12px, 1.6vh, 22px);
    align-items: stretch;
}

.dashboard-header,
.dashboard-hero,
.dashboard-grid {
    display: grid;
    gap: 24px;
}

.dashboard-start {
    display: grid;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 0 0 clamp(10px, 1.4vh, 18px);
    align-items: stretch;
}

.dashboard-start-card {
    width: 100%;
    min-height: 100%;
    display: grid;
    align-content: stretch;
    gap: clamp(12px, 1.8vh, 24px);
    padding: clamp(22px, 4vh, 42px) clamp(28px, 5vw, 56px);
}

.dashboard-start-card .eyebrow,
.dashboard-start-card .lead,
.dashboard-start-card h1 {
    margin: 0;
}

.dashboard-start-card h1 {
    font-size: clamp(2.6rem, 5.8vh, 4.25rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.dashboard-start-card .lead {
    max-width: 72ch;
}

.dashboard-start-intro {
    display: grid;
    gap: clamp(6px, 0.9vh, 12px);
}

.dashboard-start-structure-card {
    width: 100%;
    min-height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.dashboard-start-structure-card .dashboard-start-intro {
    max-width: min(1120px, 100%);
    margin-bottom: 0;
}

.dashboard-start-grid {
    --dashboard-start-grid-gap: clamp(10px, 1.4vh, 18px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: var(--dashboard-start-grid-gap);
    min-height: 0;
    height: 100%;
    align-content: stretch;
}

.dashboard-start-module {
    position: relative;
    display: grid;
    height: 100%;
    min-height: 0;
    padding: clamp(16px, 2.2vh, 28px);
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.98)),
        rgba(255, 255, 255, 0.98);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 18px 40px rgba(34, 77, 57, 0.06);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.dashboard-start-module:hover,
.dashboard-start-module:focus-within {
    outline: none;
    transform: translateY(-2px);
    border-color: rgba(15, 107, 67, 0.24);
    box-shadow: 0 22px 46px rgba(34, 77, 57, 0.1);
    background:
        linear-gradient(180deg, rgba(250, 253, 251, 1), rgba(241, 248, 244, 1)),
        rgba(255, 255, 255, 0.99);
}

.dashboard-start-module-main {
    display: grid;
    grid-template-rows: minmax(54px, 1fr) auto auto;
    gap: clamp(8px, 1.25vh, 16px);
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.dashboard-start-module-main:focus-visible {
    outline: none;
}

.dashboard-start-module-head,
.dashboard-start-module-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dashboard-start-module-head {
    width: 100%;
    min-height: 0;
    justify-content: center;
    align-items: center;
    justify-self: center;
    align-self: center;
    text-align: center;
}

.dashboard-start-module-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-inline: auto;
    font-size: clamp(4.6rem, 4.1rem + 2.2vw, 7.2rem);
    line-height: 1;
    color: var(--icon-strong);
    transition: transform 0.22s ease;
}

.dashboard-start-module:hover .dashboard-start-module-icon,
.dashboard-start-module:focus-within .dashboard-start-module-icon {
    transform: translateY(-2px) scale(1.04);
}

.dashboard-start-module-copy {
    display: grid;
    gap: 0;
    align-content: end;
}

.dashboard-start-module-copy h2,
.dashboard-start-module-copy p {
    margin: 0;
}

.dashboard-start-module-copy h2 {
    font-size: clamp(1.55rem, 3.4vh, 2.45rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.dashboard-start-module-copy p {
    color: var(--text-soft);
    line-height: 1.65;
}

.dashboard-start-module-meta {
    min-height: 0;
    padding-right: clamp(96px, 11vw, 140px);
    justify-content: flex-start;
    align-items: flex-end;
    color: var(--icon-strong);
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-start-module-children {
    margin-right: auto;
}

.dashboard-start-module-meta .material-symbols-outlined {
    font-size: 1.12rem;
    color: var(--icon-strong);
}

.dashboard-start-module-popout {
    position: absolute;
    right: clamp(16px, 2vh, 24px);
    bottom: clamp(16px, 2vh, 24px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 107, 67, 0.04);
    color: var(--icon-strong);
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-start-module-popout:hover,
.dashboard-start-module-popout:focus-visible {
    outline: none;
    transform: translateY(-1px);
    background: rgba(15, 107, 67, 0.08);
    box-shadow: 0 10px 20px rgba(15, 107, 67, 0.08);
}

.dashboard-start-module-popout-label {
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-start-module-popout .material-symbols-outlined {
    font-size: 1rem;
}

.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 260;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 16px;
    min-height: var(--dashboard-header-height);
    padding: 4px 16px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(135deg, #00783a 0%, #005f2e 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 28px rgba(0, 95, 46, 0.18);
    font-size: 0.88rem;
    line-height: 1;
}

.dashboard-brand {
    display: grid;
    gap: 4px;
    width: fit-content;
    text-decoration: none;
}

.dashboard-brand-logo-only {
    display: flex;
    align-items: center;
    gap: 8px;
    grid-column: 1;
    justify-self: start;
    min-height: 26px;
    width: fit-content;
    max-width: max-content;
    padding: 0;
    margin-left: 10px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-brand-logo {
    display: block;
    width: min(92px, 100%);
    height: auto;
    object-fit: contain;
    filter:
        brightness(1.08)
        contrast(1.12)
        saturate(1.08)
        drop-shadow(0 4px 10px rgba(0, 0, 0, 0.16))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.18));
}

.dashboard-brand-mark {
    width: 34px;
    aspect-ratio: 1;
    object-fit: contain;
}

.dashboard-brand-wordmark {
    width: 96px;
    max-width: none;
    flex: 0 0 auto;
}

.app-environment-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.dashboard-brand-logo-only .app-environment-badge {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-window-head .app-environment-badge {
    min-height: 30px;
    color: #2d4137;
    background: rgba(23, 48, 36, 0.06);
    border-color: rgba(24, 57, 42, 0.12);
}

.app-environment-badge[data-environment-tone="local"] {
    color: #375248;
    background: rgba(23, 48, 36, 0.06);
    border-color: rgba(24, 57, 42, 0.12);
}

.app-environment-badge[data-environment-tone="test"] {
    color: var(--icon-strong);
    background: rgba(0, 122, 58, 0.1);
    border-color: rgba(0, 122, 58, 0.18);
}

.app-environment-badge[data-environment-tone="staging"] {
    color: var(--warning);
    background: rgba(198, 134, 22, 0.12);
    border-color: rgba(198, 134, 22, 0.18);
}

.app-environment-badge[data-environment-tone="prod"] {
    color: var(--error);
    background: rgba(196, 77, 77, 0.12);
    border-color: rgba(196, 77, 77, 0.18);
}

.app-environment-badge[data-environment-tone="neutral"] {
    color: #50635a;
    background: rgba(23, 48, 36, 0.08);
    border-color: rgba(24, 57, 42, 0.12);
}

.dashboard-brand-logo-only .app-environment-badge[data-environment-tone="local"],
.dashboard-brand-logo-only .app-environment-badge[data-environment-tone="neutral"] {
    color: rgba(255, 255, 255, 0.94);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.dashboard-brand-logo-only .app-environment-badge[data-environment-tone="test"] {
    color: #ffffff;
    background: rgba(0, 200, 111, 0.18);
    border-color: rgba(179, 245, 212, 0.28);
}

.dashboard-brand-logo-only .app-environment-badge[data-environment-tone="staging"] {
    color: #ffffff;
    background: rgba(198, 134, 22, 0.24);
    border-color: rgba(255, 231, 186, 0.28);
}

.dashboard-brand-logo-only .app-environment-badge[data-environment-tone="prod"] {
    color: #ffffff;
    background: rgba(196, 77, 77, 0.24);
    border-color: rgba(255, 216, 216, 0.28);
}

.dashboard-brand .eyebrow {
    margin-bottom: 0;
}

.dashboard-brand strong {
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.dashboard-brand-meta {
    color: var(--text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.dashboard-searchbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font: inherit;
    cursor: pointer;
}

.dashboard-search-shell {
    position: relative;
    width: auto;
    flex-shrink: 0;
}

.dashboard-searchbar-label {
    display: none;
    color: rgba(245, 248, 243, 0.78);
    font-weight: 600;
}

.dashboard-searchbar-main {
    justify-content: center;
    min-width: 0;
}

.dashboard-searchbar-main .material-symbols-outlined {
    color: #ffffff;
}

.dashboard-searchbar-shortcut {
    display: none;
    padding: 6px 10px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 999px;
    background: rgba(247, 250, 248, 0.98);
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    grid-column: 3;
    justify-content: flex-end;
    justify-self: end;
    gap: 4px;
    overflow: visible;
}

.dashboard-system-clock {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    grid-column: 2;
    justify-self: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: default;
}

.dashboard-system-clock-date {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1;
}

.dashboard-system-clock-time {
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1;
}

.dashboard-header-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-counter-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.92);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.dashboard-counter-badge[hidden] {
    display: none;
}

.dashboard-inbox-shell {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dashboard-inbox-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 360;
    width: min(380px, calc(100vw - 28px));
    max-height: min(560px, calc(100vh - 92px));
    overflow: hidden;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
    color: var(--text);
}

.dashboard-inbox-popover[hidden] {
    display: none !important;
}

.dashboard-inbox-popover-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid rgba(24, 57, 42, 0.08);
}

.dashboard-inbox-popover-head div {
    display: grid;
    gap: 2px;
    min-width: 0;
    margin-right: auto;
}

.dashboard-inbox-popover-head strong {
    color: var(--text);
    font-size: 0.98rem;
    line-height: 1.25;
}

.dashboard-inbox-popover-head span {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.dashboard-inbox-popover-head a,
.dashboard-inbox-window-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 8px;
    background: rgba(237, 248, 241, 0.92);
    color: var(--color-brand-primary);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.dashboard-inbox-window-button .material-symbols-outlined {
    color: var(--color-brand-primary);
    font-size: 1rem;
}

.dashboard-inbox-popover-head a:hover,
.dashboard-inbox-popover-head a:focus-visible,
.dashboard-inbox-window-button:hover,
.dashboard-inbox-window-button:focus-visible {
    outline: none;
    border-color: rgba(0, 120, 58, 0.24);
    background: rgba(219, 242, 226, 0.98);
}

.dashboard-inbox-list {
    display: grid;
    gap: 0;
    max-height: min(480px, calc(100vh - 160px));
    overflow-y: auto;
}

.dashboard-inbox-item {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(24, 57, 42, 0.08);
    background: #ffffff;
    color: var(--text);
    text-decoration: none;
}

.dashboard-inbox-item:last-child {
    border-bottom: 0;
}

.dashboard-inbox-item:hover,
.dashboard-inbox-item:focus-visible {
    outline: none;
    background: rgba(237, 248, 241, 0.98);
}

.dashboard-inbox-item-unread {
    background: rgba(237, 248, 241, 0.72);
}

.dashboard-inbox-item-unread::before {
    content: "";
    position: absolute;
    top: 17px;
    right: 14px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--color-brand-primary);
}

.dashboard-inbox-item strong {
    padding-right: 14px;
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.3;
}

.dashboard-inbox-item p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dashboard-inbox-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.dashboard-inbox-status {
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(24, 57, 42, 0.08);
    color: var(--text);
}

.dashboard-inbox-status[data-status="OPEN"] {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.dashboard-inbox-status[data-status="IN_PROGRESS"] {
    background: rgba(245, 158, 11, 0.13);
    color: #92400e;
}

.dashboard-inbox-status[data-status="DONE"] {
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
}

.dashboard-inbox-status[data-status="CANCELLED"] {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.dashboard-inbox-empty {
    padding: 22px 16px;
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.45;
    text-align: center;
}

.hr-manager-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.hr-manager-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
}

.hr-manager-tabs a.is-active {
    border-color: rgba(0, 120, 58, 0.24);
    background: var(--color-brand-background-subtle);
    color: var(--color-brand-primary);
}

.hr-manager-panel {
    display: grid;
    gap: 16px;
}

.field-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hr-manager-recipient-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hr-manager-recipient-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(247, 250, 248, 0.72);
}

.hr-planner-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 12px;
    overflow-x: auto;
}

.hr-planner-column {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 220px;
    padding: 12px;
    border: 1px solid rgba(24, 57, 42, 0.1);
    border-radius: 8px;
    background: rgba(247, 250, 248, 0.96);
}

.hr-planner-column-head h2 {
    margin: 0;
    font-size: 0.96rem;
}

.hr-task-card {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.hr-task-card:hover,
.hr-task-card:focus-visible {
    outline: none;
    border-color: rgba(0, 120, 58, 0.28);
    background: var(--color-brand-background-subtle);
}

.hr-task-card span,
.hr-task-card small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.button-link {
    border: 0;
    background: transparent;
    color: var(--color-brand-primary);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.hr-planner-commandbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(24, 57, 42, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.hr-planner-commandbar-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.hr-planner-commandbar-copy .eyebrow,
.hr-planner-commandbar-copy h2 {
    margin: 0;
}

.hr-planner-commandbar-copy h2 {
    font-size: 1rem;
}

.hr-planner-view-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(24, 57, 42, 0.1);
    border-radius: 8px;
    background: rgba(247, 250, 248, 0.92);
}

.hr-planner-view-tabs a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 6px;
    color: var(--text-soft);
    font-weight: 800;
    text-decoration: none;
}

.hr-planner-view-tabs a:hover,
.hr-planner-view-tabs a:focus-visible,
.hr-planner-view-tabs a.is-active {
    outline: none;
    background: #ffffff;
    color: var(--color-brand-primary);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.hr-planner-workspace {
    gap: 14px;
}

.hr-planner-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.hr-planner-create-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(24, 57, 42, 0.1);
    border-radius: 8px;
    background: #ffffff;
}

.hr-planner-create-card summary {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}

.hr-planner-create-card summary::-webkit-details-marker {
    display: none;
}

.hr-planner-create-card[open] summary {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(24, 57, 42, 0.08);
}

.hr-planner-list-view .form-actions {
    justify-content: flex-end;
    margin: 0 0 10px;
}

.hr-planner-table td {
    vertical-align: top;
}

.hr-planner-table .record-primary {
    max-width: 420px;
}

.hr-planner-type-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.1);
    color: #475569;
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
}

.hr-planner-type-pill.is-task {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.hr-planner-type-pill.is-notification {
    background: rgba(245, 158, 11, 0.13);
    color: #92400e;
}

.hr-planner-bucket-board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 1fr);
    gap: 12px;
    min-height: 520px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.hr-planner-bucket {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 480px;
    padding: 12px;
    border: 1px solid rgba(24, 57, 42, 0.1);
    border-radius: 8px;
    background: rgba(247, 250, 248, 0.96);
}

.hr-planner-bucket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
}

.hr-planner-bucket-head h2 {
    margin: 0;
    font-size: 0.94rem;
}

.hr-planner-notification-bucket {
    background: rgba(255, 251, 235, 0.92);
}

.hr-planner-card {
    display: grid;
    gap: 7px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

button.hr-planner-card {
    cursor: pointer;
}

.hr-planner-card:hover,
.hr-planner-card:focus-visible {
    outline: none;
    border-color: rgba(0, 120, 58, 0.28);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.hr-planner-card > span:not(.hr-planner-type-pill),
.hr-planner-card small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hr-planner-card.is-notification {
    border-color: rgba(245, 158, 11, 0.2);
}

.hr-gantt-scale {
    display: grid;
    grid-template-columns: 240px repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
    padding: 0 12px;
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hr-gantt-scale span:first-child {
    grid-column: 2;
}

.hr-gantt {
    display: grid;
    gap: 8px;
}

.hr-gantt-row {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(360px, 1fr);
    gap: 10px;
    align-items: stretch;
}

.hr-gantt-row-copy {
    display: grid;
    gap: 5px;
    padding: 10px 12px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 8px;
    background: #ffffff;
}

.hr-gantt-row-copy small {
    color: var(--text-soft);
}

.hr-gantt-track {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    min-height: 62px;
    padding: 8px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 8px;
    background:
        repeating-linear-gradient(
            to right,
            rgba(24, 57, 42, 0.05),
            rgba(24, 57, 42, 0.05) 1px,
            transparent 1px,
            transparent calc(100% / 12)
        ),
        rgba(247, 250, 248, 0.8);
}

.hr-gantt-bar,
.hr-gantt-marker {
    display: grid;
    align-content: center;
    gap: 2px;
    min-height: 38px;
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    text-align: left;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.hr-gantt-bar small,
.hr-gantt-marker small {
    font-size: 0.72rem;
    font-weight: 800;
    opacity: 0.9;
}

.hr-gantt-bar {
    grid-column: var(--gantt-start, 2) / span var(--gantt-span, 4);
    cursor: pointer;
    background: #2563eb;
}

.hr-gantt-bar.is-progress {
    background: #0f766e;
}

.hr-gantt-bar.is-done {
    background: #15803d;
}

.hr-gantt-bar.is-cancelled {
    background: #64748b;
}

.hr-gantt-marker {
    grid-column: var(--gantt-start, 6) / span var(--gantt-span, 2);
    background: #b45309;
}

.hr-gantt-marker.is-unread-notification {
    background: #d97706;
}

@media (max-width: 900px) {
    .hr-planner-commandbar {
        align-items: stretch;
        flex-direction: column;
    }

    .hr-planner-view-tabs {
        width: 100%;
    }

    .hr-planner-view-tabs a {
        flex: 1 1 120px;
    }

    .hr-planner-create-grid {
        grid-template-columns: 1fr;
    }

    .hr-gantt-scale {
        display: none;
    }

    .hr-gantt-row {
        grid-template-columns: 1fr;
    }

    .hr-gantt-track {
        min-width: 540px;
        overflow-x: auto;
    }

    .hr-planner-bucket-board {
        grid-auto-columns: minmax(240px, 86vw);
    }

    .hr-manager-shell .field-grid-3,
    .hr-manager-shell .field-grid-4 {
        grid-template-columns: 1fr;
    }
}

.hr-task-modal {
    width: min(860px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 40px));
    padding: 18px;
    border: 1px solid rgba(24, 57, 42, 0.14);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
}

.hr-task-modal::backdrop {
    background: rgba(15, 23, 42, 0.34);
}

.dashboard-header-icon-button:hover,
.dashboard-header-icon-button:focus-visible,
.dashboard-searchbar:hover,
.dashboard-searchbar:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 10px 18px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.dashboard-user-chip {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 4px 0 0;
    border: 0;
    background: transparent;
    color: #ffffff;
}

.dashboard-user-chip-button {
    min-height: 36px;
    padding: 0 10px;
    margin-left: 4px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.88rem;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-user-chip-button:hover,
.dashboard-user-chip-button:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 10px 18px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.dashboard-header-icon-button[data-window-current="true"],
.dashboard-user-chip-button[data-window-current="true"] {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.dashboard-user-chip strong {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    color: #ffffff;
}

.dashboard-user-chip span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.dashboard-logout {
    white-space: nowrap;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 12px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.dashboard-logout:hover,
.dashboard-logout:focus-visible {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 10px 18px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.dashboard-logout .material-symbols-outlined,
.dashboard-user-chip-main .material-symbols-outlined {
    color: #ffffff;
}

.dashboard-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: stretch;
    padding: 32px;
}

.dashboard-hero-copy {
    display: grid;
    align-content: center;
    gap: 14px;
}

.dashboard-hero-copy .eyebrow,
.dashboard-hero-copy .lead {
    margin: 0;
}

.dashboard-hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-stat-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.98)),
        rgba(255, 255, 255, 0.98);
}

.dashboard-stat-value {
    display: block;
    color: #0d8d53;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.dashboard-stat-card strong {
    font-size: 1rem;
}

.dashboard-stat-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.dashboard-section-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    gap: 18px;
    margin-bottom: 22px;
}

.dashboard-section-head h2 {
    margin-bottom: 0;
}

.dashboard-section-head .lead {
    justify-self: end;
    max-width: 56ch;
}

.dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
    padding: 28px;
}

.dashboard-grid-modules {
    align-items: stretch;
}

.dashboard-window-shell,
.app-page-card,
.app-page-hero {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--panel);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(34, 77, 57, 0.08);
}

.dashboard-window-shell {
    position: fixed;
    top: var(--dashboard-window-top-offset);
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 220;
    display: grid;
    gap: 18px;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 22px;
    border-radius: 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 245, 0.98)),
        rgba(255, 255, 255, 0.98);
    box-shadow:
        0 28px 90px rgba(34, 77, 57, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    animation: app-window-shell-enter 0.26s var(--app-motion-soft) both;
    transform-origin: top center;
}

.dashboard-window-shell[hidden] {
    display: none !important;
}

[hidden] {
    display: none !important;
}

.dashboard-window-head,
.records-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: end;
}

.records-head-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    margin-left: auto;
    text-align: right;
}

.record-selection-summary {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid rgba(0, 122, 58, 0.16);
    border-radius: 999px;
    background: rgba(224, 246, 232, 0.98);
    color: #0d6f43;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.dashboard-window-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.dashboard-window-sync-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 122, 58, 0.08);
    color: #375248;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        opacity 0.18s ease,
        transform 0.18s var(--app-motion-soft);
    animation: app-toolbar-item-enter 0.22s var(--app-motion-soft) both;
}

.dashboard-window-sync-status[hidden] {
    display: none !important;
}

.dashboard-window-sync-status[data-sync-tone="ready"] {
    background: rgba(0, 122, 58, 0.08);
    color: #375248;
}

.dashboard-window-sync-status[data-sync-tone="saving"] {
    background: rgba(208, 139, 34, 0.12);
    color: var(--warning);
}

.dashboard-window-sync-status[data-sync-tone="warning"] {
    background: rgba(208, 139, 34, 0.12);
    color: var(--warning);
}

.dashboard-window-sync-status[data-sync-tone="saved"] {
    background: rgba(0, 122, 58, 0.12);
    color: var(--icon-strong);
}

.dashboard-window-sync-status[data-sync-tone="error"] {
    background: rgba(192, 54, 54, 0.1);
    color: var(--error);
}

.dashboard-window-sync-status[data-sync-tone="saving"] [data-app-window-sync-icon] {
    animation: card-sync-spin 0.7s linear infinite;
}

.primary-button .material-symbols-outlined,
.secondary-button .material-symbols-outlined {
    font-size: 1.1rem;
}

.dashboard-window-head {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 6px 10px;
    border: 1px solid rgba(214, 226, 219, 0.14);
    border-radius: 16px;
    background: rgba(242, 247, 244, 0.96);
    color: #28342d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.22s var(--app-motion-soft);
    animation: app-top-toolbar-enter 0.24s var(--app-motion-soft) both;
}

.dashboard-window-head.is-updating .dashboard-window-title-group,
.dashboard-window-head.is-updating .dashboard-window-actions > * {
    animation: app-toolbar-item-refresh 0.22s var(--app-motion-soft) both;
}

.app-standalone-window-head {
    margin-bottom: 18px;
}

.dashboard-window-head-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.dashboard-window-title-group {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.dashboard-window-section {
    margin: 0;
    color: var(--icon-strong);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-window-title {
    margin: 0;
    color: #2b3730;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.dashboard-window-nav-button,
.dashboard-window-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dashboard-window-nav-button {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(0, 122, 58, 0.12);
    color: #264136;
}

.dashboard-window-nav-button:hover,
.dashboard-window-nav-button:focus-visible {
    outline: none;
    background: rgba(0, 122, 58, 0.18);
    transform: translateX(-1px);
}

.dashboard-window-icon-button {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: transparent;
    color: #4d6459;
}

.dashboard-window-icon-button:hover,
.dashboard-window-icon-button:focus-visible {
    outline: none;
    background: rgba(0, 122, 58, 0.08);
    color: #20382d;
}

.dashboard-window-icon-button:disabled,
.dashboard-window-nav-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.dashboard-window-nav-button .material-symbols-outlined,
.dashboard-window-icon-button .material-symbols-outlined {
    font-size: 1.08rem;
    color: var(--icon-strong);
}

.dashboard-window-stage {
    min-height: 0;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(246, 250, 247, 1)),
        rgba(255, 255, 255, 1);
}

.dashboard-window-pane {
    position: relative;
    height: 100%;
    background: #ffffff;
    animation: app-window-pane-enter 0.24s var(--app-motion-soft) both;
}

.app-page-loading-overlay,
.dashboard-window-loading {
    display: grid;
    place-items: center;
    background: rgba(248, 251, 249, 0.58);
    backdrop-filter: blur(2px);
}

.app-page-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 360;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.app-page-loading-overlay[hidden] {
    display: none !important;
}

body.app-page-is-loading .app-page-loading-overlay {
    opacity: 1;
    pointer-events: auto;
}

.dashboard-window-loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
}

.dashboard-window-pane.is-loading .dashboard-window-loading {
    opacity: 1;
    pointer-events: auto;
}

.app-page-loading-card {
    display: grid;
    gap: 9px;
    width: min(156px, calc(100vw - 48px));
    padding: 10px 12px 9px;
    border: 1px solid rgba(15, 107, 67, 0.09);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 12px 34px rgba(34, 77, 57, 0.09);
}

.app-page-loading-rail {
    position: relative;
    display: block;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15, 107, 67, 0.1);
}

.app-page-loading-glint {
    position: absolute;
    inset: 0 auto 0 0;
    width: 58%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            rgba(15, 107, 67, 0.16),
            rgba(0, 200, 111, 0.44) 48%,
            rgba(15, 107, 67, 0.52)
        );
    transform-origin: left center;
    animation: app-loading-glide 1.9s var(--app-motion-soft) infinite alternate;
}

.app-page-loading-dots {
    display: inline-grid;
    grid-template-columns: repeat(3, 4px);
    gap: 6px;
    justify-self: center;
}

.app-page-loading-dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #0f6b43;
    opacity: 0.2;
    transform: scale(0.78);
    animation: app-loading-dot 1.9s ease-in-out infinite;
}

.app-page-loading-dots span:nth-child(2) {
    animation-delay: 0.22s;
}

.app-page-loading-dots span:nth-child(3) {
    animation-delay: 0.44s;
}

@keyframes app-loading-glide {
    0% {
        opacity: 0.36;
        transform: translateX(-12%) scaleX(0.34);
    }

    44% {
        opacity: 0.72;
        transform: translateX(3%) scaleX(1.12);
    }

    100% {
        opacity: 0.42;
        transform: translateX(70%) scaleX(0.82);
    }
}

@keyframes app-loading-dot {
    0%,
    76%,
    100% {
        opacity: 0.2;
        transform: scale(0.78);
    }

    34% {
        opacity: 0.48;
        transform: scale(0.96);
    }
}

.app-system-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 280;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    background: rgba(236, 243, 239, 0.44);
    backdrop-filter: blur(6px);
}

.app-system-dialog-overlay[hidden] {
    display: none !important;
}

.app-system-dialog {
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 22px 24px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 246, 0.98)),
        rgba(255, 255, 255, 0.98);
    box-shadow:
        0 28px 90px rgba(34, 77, 57, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.app-system-dialog-head {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.app-system-dialog-head h2 {
    margin: 0;
    color: #22342c;
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.app-system-dialog-message {
    margin: 0;
    color: #53685f;
}

.app-system-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.transport-order-decision-dialog,
.transport-order-rejection-dialog,
.transport-order-window-warning-dialog {
    width: min(520px, calc(100vw - 32px));
}

.transport-order-rejection-form {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.transport-order-rejection-form label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}

.transport-order-rejection-form textarea {
    width: 100%;
    min-height: 128px;
    padding: 12px 14px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-weight: 500;
    line-height: 1.45;
}

.transport-order-rejection-form textarea:focus {
    outline: none;
    border-color: rgba(197, 15, 31, 0.42);
    box-shadow: 0 0 0 3px rgba(197, 15, 31, 0.12);
}

.transport-order-rejection-error {
    margin: 0;
    color: var(--error);
    font-size: 0.86rem;
    font-weight: 700;
}

.secondary-button.transport-order-reject-button {
    border-color: rgba(197, 15, 31, 0.24);
    background: #fff6f6;
    color: var(--error);
}

.secondary-button.transport-order-reject-button:hover,
.secondary-button.transport-order-reject-button:focus-visible {
    border-color: rgba(197, 15, 31, 0.42);
    background: #ffecec;
    color: var(--error);
}

.contact-conversion-dialog {
    width: min(540px, calc(100vw - 32px));
}

.contact-conversion-dialog-form {
    display: grid;
    gap: 18px;
}

.contact-conversion-dialog-options {
    display: grid;
    gap: 12px;
}

.contact-conversion-dialog-option {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.contact-conversion-dialog-option:hover,
.contact-conversion-dialog-option:focus-within {
    border-color: rgba(15, 107, 67, 0.24);
    background: rgba(242, 248, 244, 0.98);
    transform: translateY(-1px);
}

.contact-conversion-dialog-option-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-conversion-dialog-option-head input {
    margin: 0;
    accent-color: #0f6b43;
}

.contact-conversion-dialog-option-title {
    color: #22342c;
    font-weight: 700;
}

.contact-conversion-dialog-option-copy {
    color: var(--text-soft);
    line-height: 1.5;
}

.contact-duplicate-dialog {
    width: min(940px, calc(100vw - 32px));
}

.contact-duplicate-score-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0;
    color: var(--text-soft);
    font-weight: 700;
}

.contact-duplicate-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(197, 15, 31, 0.22);
    border-radius: 8px;
    background: #fff6f6;
    color: var(--error);
    font-weight: 800;
}

.contact-duplicate-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.contact-duplicate-panel {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
}

.contact-duplicate-panel strong,
.contact-duplicate-panel span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.contact-duplicate-table-wrap {
    max-height: min(42dvh, 360px);
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.contact-duplicate-table {
    min-width: 760px;
}

.contact-duplicate-table td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.contact-duplicate-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.contact-duplicate-status[data-status="match"] {
    background: rgba(15, 107, 67, 0.10);
    color: #0f6b43;
}

.contact-duplicate-status[data-status="partial"] {
    background: rgba(176, 123, 0, 0.12);
    color: #7a5400;
}

.contact-duplicate-status[data-status="different"] {
    background: rgba(83, 104, 95, 0.10);
    color: var(--text-soft);
}

.contact-duplicate-status[data-status="empty"] {
    background: rgba(83, 104, 95, 0.06);
    color: var(--text-muted);
}

.contact-duplicate-other {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.contact-duplicate-other-list {
    display: grid;
    gap: 8px;
}

.contact-duplicate-other-item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.contact-duplicate-other-item:hover,
.contact-duplicate-other-item:focus-visible,
.contact-duplicate-other-item.is-active {
    border-color: rgba(15, 107, 67, 0.28);
    background: rgba(242, 248, 244, 0.98);
    outline: none;
}

.contact-duplicate-other-item span {
    color: var(--text-soft);
    font-size: 0.86rem;
}

.contact-duplicate-error {
    margin-top: 12px;
}

.contact-duplicate-actions {
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .contact-duplicate-cards {
        grid-template-columns: 1fr;
    }

    .contact-duplicate-actions > .primary-button,
    .contact-duplicate-actions > .secondary-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-height: 820px) {
    .app-system-dialog-overlay {
        place-items: start center;
    }
}

.dashboard-window-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    background: #ffffff;
    color-scheme: light;
}

body.dashboard-embedded-window .dashboard-header,
body.dashboard-embedded-window .dashboard-start {
    display: none;
}

body.dashboard-embedded-window .app-standalone-window-head {
    display: none;
}

body.dashboard-embedded-window .dashboard-shell {
    width: 100%;
}

body.dashboard-embedded-window .dashboard-window-shell {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 22px;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

body.dashboard-embedded-window .dashboard-window-stage {
    background: transparent;
}

body.dashboard-embedded-window.app-page-body,
body.dashboard-embedded-window.contact-card-page-body {
    padding: 14px;
}

body.dashboard-embedded-window .app-page-shell,
body.dashboard-embedded-window .contact-card-layout {
    gap: 16px;
}

body.dashboard-embedded-window .app-page-main,
body.dashboard-embedded-window .app-page-side,
body.dashboard-embedded-window .contact-card-main,
body.dashboard-embedded-window .contact-card-side {
    gap: 16px;
}

body.dashboard-embedded-window .app-page-card,
body.dashboard-embedded-window .app-page-hero,
body.dashboard-embedded-window .app-page-side-panel,
body.dashboard-embedded-window .contact-card-side-panel,
body.dashboard-embedded-window .location-card-summary-panel,
body.dashboard-embedded-window .location-card-map-panel,
body.dashboard-embedded-window .accepted-logistics-card-panel {
    padding: 20px;
}

body.dashboard-embedded-window .records-head,
body.dashboard-embedded-window .app-page-card-head,
body.dashboard-embedded-window .dashboard-window-head-main,
body.dashboard-embedded-window .page-filter-actions {
    gap: 14px;
}

body.dashboard-embedded-window .records-head,
body.dashboard-embedded-window .app-page-card-head,
body.dashboard-embedded-window .dashboard-window-head-main,
body.dashboard-embedded-window .app-table-toolbar-form,
body.dashboard-embedded-window .page-filter-form,
body.dashboard-embedded-window .page-filter-toolbar-main,
body.dashboard-embedded-window .page-filter-actions {
    flex-wrap: wrap;
}

body.dashboard-embedded-window .records-head,
body.dashboard-embedded-window .app-page-card-head,
body.dashboard-embedded-window .dashboard-window-head-main {
    align-items: flex-start;
}

body.dashboard-embedded-window .app-page-card-head-side,
body.dashboard-embedded-window .records-head .lead,
body.dashboard-embedded-window .records-head-meta,
body.dashboard-embedded-window .dashboard-window-title-group,
body.dashboard-embedded-window .page-filter-toolbar-main > * {
    min-width: 0;
}

body.dashboard-embedded-window .app-page-card-head-side,
body.dashboard-embedded-window .records-head > .lead {
    flex: 1 1 280px;
    max-width: 100%;
}

body.dashboard-embedded-window .records-head-meta {
    max-width: 100%;
}

body.dashboard-embedded-window .page-filter-actions {
    margin-left: 0;
    justify-content: flex-start;
}

body.dashboard-embedded-window .records-table th,
body.dashboard-embedded-window .records-table td {
    padding: 13px 14px;
}

body.dashboard-embedded-window .records-table {
    min-width: 820px;
}

body.dashboard-embedded-window .records-table-wrap {
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

body.dashboard-embedded-window .records-table-scroll-area {
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

body.dashboard-embedded-window .app-page-stat-grid-sidebar {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.module-placeholder-card {
    min-height: 180px;
}

.search-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(460px, 100%);
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.search-trigger strong {
    padding: 6px 10px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 999px;
    background: rgba(247, 250, 248, 0.98);
    font-size: 0.84rem;
}

.search-trigger-note {
    margin: 12px 0 0;
    color: var(--text-soft);
    line-height: 1.6;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 380px));
    justify-content: start;
    align-items: stretch;
    gap: 18px;
    margin-top: 24px;
}

.module-link {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(36px, 1fr) auto;
    gap: 14px 18px;
    min-height: 176px;
    padding: 24px;
    border: 1px solid rgba(214, 226, 219, 0.72);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(248, 251, 249, 0.98));
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.module-link::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    padding: 1px;
    border-radius: inherit;
    background: conic-gradient(
        from var(--module-border-angle, 0deg),
        rgba(15, 107, 67, 0.08),
        rgba(0, 200, 111, 0.34),
        rgba(15, 107, 67, 0.1),
        rgba(183, 235, 205, 0.28),
        rgba(15, 107, 67, 0.08)
    );
    opacity: 0.62;
    pointer-events: none;
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: module-link-border-orbit 8s linear infinite;
}

.module-link > * {
    position: relative;
    z-index: 1;
}

.module-link:hover,
.module-link:focus-visible {
    border-color: rgba(15, 107, 67, 0.24);
    background: linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(245, 250, 247, 0.99));
    box-shadow: inset 0 0 0 1px rgba(15, 107, 67, 0.08);
    outline: none;
}

.module-link:hover::before,
.module-link:focus-visible::before {
    opacity: 0.9;
    padding: 2px;
}

.module-link-eyebrow {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    color: var(--icon-strong);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.module-link-icon {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    justify-self: end;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(3.1rem, 3.4vw, 4.55rem);
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.module-link:hover .module-link-icon,
.module-link:focus-visible .module-link-icon {
    transform: scale(1.04);
}

.module-link strong {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    max-width: 14ch;
    color: #20382d;
    font-size: clamp(1.28rem, 1vw + 1rem, 1.72rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.module-link p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

@property --module-border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes module-link-border-orbit {
    to {
        --module-border-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .module-link::before {
        animation: none;
    }

    .dashboard-window-shell,
    .dashboard-window-head,
    .dashboard-window-pane,
    .dashboard-window-sync-status,
    .app-table-toolbar-card,
    .page-filter-toolbar-main > *,
    .page-filter-actions > *,
    .dashboard-window-actions > *,
    .page-related-panel,
    .analysis-crop-skeleton-bar,
    .app-page-loading-glint,
    .app-page-loading-dots span,
    .price-heatmap-flow-line-pulse {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

.data-list {
    display: grid;
    gap: 18px;
    margin: 20px 0 0;
}

.data-list div {
    display: grid;
    gap: 6px;
}

.data-list dt {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.data-list dd {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.session-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.session-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
}

.session-item p,
.session-item small,
.session-item span {
    margin: 4px 0 0;
    color: var(--text-soft);
}

.search-popover {
    position: fixed;
    top: calc(var(--dashboard-header-height) + 16px);
    left: 50%;
    width: min(1120px, calc(100vw - 28px));
    z-index: 320;
    transform: translateX(-50%);
    animation: search-popover-enter 0.22s ease;
}

.search-dialog {
    width: 100%;
    display: grid;
    gap: 8px;
    max-height: min(72vh, 760px);
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.search-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: start;
    margin-bottom: 22px;
}

.search-dialog-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    letter-spacing: -0.03em;
}

.search-close-button {
    white-space: nowrap;
}

.search-label {
    display: block;
    margin-bottom: 0;
    color: rgba(23, 48, 36, 0.86);
    font-size: clamp(1rem, 1.6vw, 1.1rem);
    font-weight: 500;
}

.search-input {
    width: 100%;
    min-height: 56px;
    padding: 12px 20px;
    border: 1px solid rgba(0, 200, 111, 0.42);
    border-radius: 20px;
    background: rgba(255, 255, 255, 1);
    color: var(--text);
    font: inherit;
    font-size: clamp(0.98rem, 1.4vw, 1.08rem);
    box-shadow:
        0 0 0 4px rgba(0, 200, 111, 0.12),
        0 14px 34px rgba(34, 77, 57, 0.08);
}

.search-input:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.72);
    box-shadow:
        0 0 0 5px rgba(0, 200, 111, 0.16),
        0 14px 34px rgba(34, 77, 57, 0.1);
}

.search-hint,
.search-placeholder,
.search-empty,
.search-error {
    color: var(--text-soft);
    line-height: 1.6;
}

.search-hint {
    margin: 14px 0 18px;
}

.search-results {
    display: grid;
    gap: 12px;
    margin-top: 4px;
    padding: 12px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 24px 80px rgba(34, 77, 57, 0.12);
}

.search-results[hidden] {
    display: none !important;
}

.search-result-item {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.search-result-item:hover,
.search-result-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(116, 232, 160, 0.28);
    background: rgba(237, 248, 241, 0.98);
    outline: none;
}

.search-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.search-result-category,
.search-result-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-result-category {
    background: rgba(237, 244, 239, 0.95);
    color: var(--text);
}

.search-result-badge {
    background: rgba(0, 200, 111, 0.14);
    color: #0d8d53;
}

.search-result-title {
    margin: 0;
    font-size: 1.04rem;
    font-weight: 700;
}

.search-result-subtitle {
    margin: 0;
    color: var(--text-soft);
}

@keyframes search-popover-enter {
    from {
        opacity: 0;
        transform: translate(-50%, -14px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.app-page-body {
    margin: 0;
    min-height: 100dvh;
    padding: 24px;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(0, 200, 111, 0.06), transparent 42%),
        linear-gradient(180deg, #f4f8f3 0%, #f4f8f3 100%);
    background-repeat: no-repeat;
}

.app-page-shell {
    display: grid;
    gap: 20px;
}

.app-page-shell-split {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: stretch;
    height: calc(100dvh - 48px);
    min-height: 0;
}

.offer-card-shell.app-page-shell-split {
    grid-template-columns: minmax(0, 1fr) clamp(280px, 20vw, 320px);
}

.app-page-shell-split:not(:has(> .app-page-side)) {
    grid-template-columns: minmax(0, 1fr);
}

.app-page-shell-tile-menu.app-page-shell-split,
.app-page-shell-tile-menu.contact-card-layout {
    grid-template-columns: minmax(0, 1fr);
}

.app-page-shell-tile-menu > .app-page-side,
.app-page-shell-tile-menu > .contact-card-side {
    display: none;
}

.app-page-shell-tile-menu .app-table-card > .records-head {
    display: none;
}

.app-page-shell-tile-menu .records-table-wrap {
    margin-top: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    scrollbar-gutter: auto;
}

.app-page-shell-tile-menu.app-page-shell-contained-table .records-table-wrap {
    flex: 0 0 auto;
}

.app-page-card > .module-grid:first-child,
.app-page-shell-tile-menu .records-table-wrap > .module-grid:first-child {
    margin-top: 0;
}

.app-page-main,
.app-page-side {
    min-width: 0;
}

.app-page-shell-split > .app-page-main,
.app-page-shell-split > .app-page-side {
    min-height: 0;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.app-page-shell-split > .app-page-main {
    overflow-y: auto;
    padding-right: 8px;
}

.app-page-shell-split > .app-page-side {
    overflow-y: auto;
    padding-right: 6px;
}

body.dashboard-embedded-window .app-page-shell-split {
    grid-template-columns: minmax(0, 1fr) clamp(250px, 24vw, 290px);
    height: calc(100dvh - 28px);
}

body.dashboard-embedded-window .app-page-shell-split > .app-page-main,
body.dashboard-embedded-window .app-page-shell-split > .app-page-side {
    scrollbar-gutter: auto;
}

.app-page-main {
    display: grid;
    gap: 20px;
    align-content: start;
    grid-auto-rows: max-content;
}

.matching-live-results {
    display: grid;
    gap: 20px;
    min-width: 0;
}

.app-page-shell-matching {
    grid-template-columns: minmax(0, 1fr) clamp(240px, 18vw, 280px);
}

.app-page-shell-matching .app-page-card-head,
.app-page-shell-matching .records-head {
    align-items: flex-start;
    flex-wrap: wrap;
}

.app-page-shell-matching .app-page-card-head-copy,
.app-page-shell-matching .records-head > div {
    min-width: 0;
}

.app-page-shell-matching .records-head .lead {
    flex: 1 1 280px;
    max-width: 520px;
    margin: 0;
}

body.dashboard-embedded-window.app-page-body {
    padding: 14px;
}

body.dashboard-embedded-window .app-page-shell-matching {
    gap: 16px;
}

body.dashboard-embedded-window .app-page-shell-matching .app-page-main {
    gap: 16px;
}

body.dashboard-embedded-window .app-page-shell-matching .app-page-card,
body.dashboard-embedded-window .app-page-shell-matching .app-page-side-panel {
    padding: 20px;
}

.app-page-shell-matching .records-table-scroll-area {
    height: auto;
    max-height: none;
}

body.dashboard-embedded-window .app-page-shell-matching .records-table-scroll-area {
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
}

.app-page-shell-contained-table > .app-page-main {
    display: flex;
    flex-direction: column;
    overflow-y: hidden;
    scrollbar-gutter: auto;
}

.app-page-shell-contained-table .app-table-card {
    flex: 0 1 auto;
    max-height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.app-page-shell-contained-table .records-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    display: block;
    overflow: auto;
    scrollbar-gutter: stable;
}

.records-table-scroll-area {
    min-height: 0;
    height: 100%;
    max-height: 100%;
    overflow: auto;
    scrollbar-gutter: stable;
}

.app-page-shell-contained-table .records-table-wrap > .records-table,
.app-page-shell-contained-table .records-table-scroll-area > .records-table {
    border-collapse: separate;
    border-spacing: 0;
}

.app-page-shell-contained-table .records-table-wrap > .records-table thead th,
.app-page-shell-contained-table .records-table-scroll-area > .records-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: inset 0 -1px 0 var(--border);
}

.app-page-side {
    display: grid;
    gap: 20px;
    align-content: start;
}

.app-page-hero,
.app-page-card {
    padding: 26px;
}

.app-page-card {
    position: relative;
}

.app-page-card.has-open-related-menu {
    z-index: 380;
}

.app-page-hero {
    display: grid;
    gap: 22px;
}

.app-page-hero-copy {
    display: grid;
    gap: 12px;
}

.app-page-hero-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.7rem);
    letter-spacing: -0.03em;
}

.app-page-card-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.app-page-card-head-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.app-page-card-head-side {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 260px;
    max-width: 260px;
    width: 100%;
}

.app-page-card-head-field {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    max-width: 260px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.app-page-card-head-field label {
    margin-bottom: 0;
    white-space: nowrap;
}

.app-page-card-head-field input,
.app-page-card-head-field select,
.app-page-card-head-field textarea {
    width: auto;
    min-width: 164px;
    background: rgba(255, 255, 255, 0.98);
}

.app-page-card-head-copy .eyebrow,
.app-page-card-head-copy h2 {
    margin: 0;
}

.app-page-card-action {
    flex-shrink: 0;
    min-height: 40px;
    padding: 10px 14px;
    border-radius: 14px;
}

.app-page-side-head {
    display: grid;
    gap: 10px;
}

.app-page-side-head .eyebrow,
.app-page-side-head .lead,
.app-page-side-head h2 {
    margin: 0;
}

.app-page-side-head h2 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    letter-spacing: -0.03em;
}

.app-page-side-panel {
    display: grid;
    gap: 18px;
}

.app-page-shell-split > .app-page-side .app-page-side-panel {
    min-height: 100%;
    align-content: start;
}

.offer-card-shell.app-page-shell-split > .offer-card-side .app-page-side-panel {
    min-height: 0;
}

.offer-card-side {
    align-content: start;
    min-width: 0;
}

.offer-side-summary-panel {
    align-content: start;
    overflow: auto;
}

.offer-card-side .app-page-side-panel,
.offer-card-side .app-page-stat-grid-sidebar,
.offer-card-side .app-page-stat-card,
.offer-card-side .record-comments-panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.offer-card-shell .offer-card-side .app-page-stat-grid-sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.offer-card-side .app-page-stat-card {
    overflow: hidden;
}

.offer-card-side .offer-side-summary-panel .app-page-stat-grid-sidebar {
    gap: 10px;
}

.offer-card-side .offer-side-summary-panel .app-page-stat-card {
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 4px 10px;
    padding: 12px;
}

.offer-card-side .offer-side-summary-panel .app-page-stat-head {
    grid-row: 1 / span 2;
    min-height: 0;
}

.offer-card-side .offer-side-summary-panel .app-page-stat-icon {
    font-size: 1.35rem;
}

.offer-card-side .offer-side-summary-panel .app-page-stat-card p {
    display: none;
}

.offer-card-shell .offer-card-side .app-page-stat-grid-sidebar .app-page-stat-value {
    font-size: clamp(1rem, 1.25vw, 1.22rem);
    line-height: 1.18;
    letter-spacing: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.offer-card-side .app-page-stat-card strong,
.offer-card-side .app-page-stat-card p,
.offer-card-side .app-page-side-head .lead {
    overflow-wrap: anywhere;
}

.record-comments-panel {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offer-card-side .record-comments-panel {
    min-height: 0;
}

.offer-card-side .record-comments-list {
    flex: 1 1 auto;
    max-height: min(44dvh, 520px);
}

.offer-card-side .record-comment-form,
.offer-card-side .record-comment-form textarea {
    min-width: 0;
    max-width: 100%;
}

.offer-card-side .record-comment-form-actions {
    justify-content: flex-end;
}

.offer-card-side .record-comment-status {
    flex: 1 1 120px;
    min-width: 0;
}

@media (min-width: 2201px) {
    .offer-card-shell.app-page-shell-split > .offer-card-side {
        height: 100%;
        overflow: hidden;
        padding-right: 0;
        scrollbar-gutter: auto;
        display: flex;
        flex-direction: column;
    }

    .offer-card-shell.app-page-shell-split > .offer-card-side .offer-side-summary-panel {
        flex: 0 1 auto;
        min-height: 0;
        max-height: min(52%, 560px);
    }

    .offer-card-shell.app-page-shell-split > .offer-card-side .record-comments-panel {
        flex: 1 1 300px;
        min-height: 220px;
        overflow: hidden;
    }

    .offer-card-shell.app-page-shell-split > .offer-card-side .record-comments-list {
        max-height: none;
    }
}

@media (min-width: 1481px) {
    body.dashboard-embedded-window .offer-card-shell.app-page-shell-split > .offer-card-side {
        height: 100%;
        overflow: hidden;
        padding-right: 0;
        scrollbar-gutter: auto;
        display: flex;
        flex-direction: column;
    }

    body.dashboard-embedded-window .offer-card-shell.app-page-shell-split > .offer-card-side .offer-side-summary-panel {
        flex: 0 1 auto;
        min-height: 0;
        max-height: min(52%, 560px);
    }

    body.dashboard-embedded-window .offer-card-shell.app-page-shell-split > .offer-card-side .record-comments-panel {
        flex: 1 1 300px;
        min-height: 220px;
        overflow: hidden;
    }

    body.dashboard-embedded-window .offer-card-shell.app-page-shell-split > .offer-card-side .record-comments-list {
        max-height: none;
    }
}

.record-comment-form,
.record-comment-reply-form {
    display: grid;
    gap: 10px;
}

.record-comment-form textarea,
.record-comment-reply-form textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    line-height: 1.4;
}

.record-comment-reply-form textarea {
    min-height: 72px;
}

.record-comment-form textarea:focus,
.record-comment-reply-form textarea:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.46);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.1);
}

.record-comment-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.record-comment-status {
    min-height: 1.2rem;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.record-comment-status[data-status-tone="error"] {
    color: var(--error);
}

.record-comments-empty {
    padding: 12px 0;
    color: var(--text-soft);
    font-weight: 700;
}

.record-comments-empty p {
    margin: 0;
}

.record-comments-list,
.record-comment-replies {
    display: grid;
    gap: 12px;
}

.record-comments-list {
    min-height: 0;
    overflow: auto;
    padding-right: 2px;
}

.record-comment-replies {
    margin-top: 12px;
    padding-left: min(18px, calc(var(--comment-depth, 0) * 8px + 12px));
    border-left: 2px solid rgba(24, 57, 42, 0.08);
}

.record-comment-item {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.record-comment-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.record-comment-header strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 0.92rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-comment-header time {
    flex: 0 0 auto;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
}

.record-comment-body {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.record-comment-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.record-comment-action {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.record-comment-action .app-icon {
    font-size: 1rem;
}

.record-comment-action:hover,
.record-comment-action:focus-visible,
.record-comment-action.is-active {
    outline: none;
    border-color: rgba(15, 107, 67, 0.16);
    background: rgba(239, 247, 241, 0.98);
    color: var(--icon-strong);
}

.app-page-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.app-page-stat-grid-sidebar {
    grid-template-columns: 1fr;
}

.app-page-stat-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
}

.app-page-stat-value {
    display: block;
    color: var(--icon-strong);
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.app-page-stat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 24px;
}

.app-page-stat-card strong {
    font-size: 0.98rem;
}

.app-page-stat-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.contact-card-page-body {
    --contact-card-page-padding: 24px;
    height: 100dvh;
    padding: var(--contact-card-page-padding);
    overflow: hidden;
}

.contact-card-layout {
    height: calc(100dvh - (var(--contact-card-page-padding) * 2));
    min-height: 0;
    align-items: stretch;
}

.contract-execution-page-body,
body.dashboard-embedded-window.contract-execution-page-body {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.contract-execution-page-body .contact-card-layout,
body.dashboard-embedded-window.contract-execution-page-body .contact-card-layout {
    height: auto;
    min-height: calc(100dvh - (var(--contact-card-page-padding) * 2));
}

.contract-execution-page-body .contact-card-main,
body.dashboard-embedded-window.contract-execution-page-body .contact-card-main {
    overflow: visible;
    padding-right: 0;
    scrollbar-gutter: auto;
}

body.dashboard-embedded-window .contact-card-page-body {
    --contact-card-page-padding: 14px;
    height: 100dvh;
}

body.dashboard-embedded-window .contact-card-layout {
    height: calc(100dvh - (var(--contact-card-page-padding) * 2));
}

.location-card-layout-balanced {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.contact-card-main,
.contact-card-side {
    min-height: 0;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

.contact-card-main {
    overflow-y: auto;
    padding-right: 8px;
}

.contact-card-side {
    overflow-y: auto;
    padding-right: 6px;
}

.contact-card-side-panel {
    min-height: 100%;
    align-content: start;
}

.location-card-side-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    align-content: stretch;
    height: 100%;
    overflow-y: hidden;
    padding-right: 0;
}

.location-card-summary-panel,
.location-card-map-panel {
    min-height: 0;
    align-content: start;
}

.location-card-summary-panel {
    gap: 12px;
    padding: 18px;
}

.location-card-summary-panel .app-page-side-head {
    gap: 6px;
}

.location-card-summary-panel .app-page-side-head h2,
.location-card-map-panel .app-page-side-head h2 {
    font-size: 1.16rem;
}

.location-card-summary-panel .lead {
    font-size: 0.82rem;
    line-height: 1.4;
}

.location-card-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 10px;
}

.location-card-summary-grid .app-page-stat-card {
    gap: 6px;
    padding: 12px 13px;
}

.location-card-summary-grid .app-page-stat-head {
    min-height: 18px;
}

.location-card-summary-grid .app-page-stat-value {
    font-size: 1.16rem;
}

.location-card-summary-grid .app-page-stat-card strong {
    font-size: 0.84rem;
}

.location-card-summary-grid .app-page-stat-card p {
    font-size: 0.76rem;
    line-height: 1.35;
}

.location-card-map-panel {
    gap: 10px;
    padding: 18px;
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
}

.accepted-logistics-card-page {
    --contact-card-page-padding: 18px;
}

.accepted-logistics-card-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 18px;
}

.accepted-logistics-card-layout .contact-card-main,
.accepted-logistics-card-layout .contact-card-side {
    overflow: hidden;
    padding-right: 0;
}

.accepted-logistics-card-layout .dashboard-window-head {
    margin-bottom: 12px;
}

.accepted-logistics-card-layout .app-table-toolbar-card {
    padding: 8px 10px;
}

.accepted-logistics-card-panel {
    gap: 14px;
    padding: 18px;
}

.accepted-logistics-card-panel .app-page-card-head {
    margin-bottom: 14px;
}

.accepted-logistics-card-panel .app-page-card-head-copy {
    gap: 8px;
}

.accepted-logistics-card-form {
    gap: 14px;
}

.accepted-logistics-card-section {
    gap: 16px;
    padding: 18px;
}

.accepted-logistics-card-section .contact-card-section-copy {
    gap: 8px;
}

.accepted-logistics-card-section .contact-card-section-copy p {
    font-size: 0.9rem;
    line-height: 1.45;
}

.accepted-logistics-card-grid {
    gap: 14px;
}

.accepted-logistics-summary-panel {
    gap: 10px;
    padding: 14px;
    min-height: auto;
}

.accepted-logistics-summary-panel .app-page-side-head {
    gap: 4px;
}

.accepted-logistics-summary-panel .app-page-side-head h2,
.accepted-logistics-map-panel .app-page-side-head h2 {
    font-size: 1.08rem;
}

.accepted-logistics-summary-panel .lead,
.accepted-logistics-map-panel .lead {
    font-size: 0.8rem;
    line-height: 1.35;
}

.accepted-logistics-summary-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.accepted-logistics-summary-meta-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 16px;
    background: rgba(247, 250, 248, 0.96);
}

.accepted-logistics-summary-meta-item strong {
    font-size: 0.74rem;
    color: var(--text-soft);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.accepted-logistics-summary-meta-item span {
    color: var(--text-strong);
    font-size: 0.9rem;
    font-weight: 700;
}

.accepted-logistics-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.accepted-logistics-summary-grid .app-page-stat-card {
    gap: 6px;
    padding: 12px 13px;
}

.accepted-logistics-summary-grid .app-page-stat-head {
    min-height: 18px;
}

.accepted-logistics-summary-grid .app-page-stat-value {
    font-size: 1.02rem;
    line-height: 1.3;
}

.accepted-logistics-summary-grid .app-page-stat-card strong {
    font-size: 0.84rem;
}

.accepted-logistics-summary-grid .app-page-stat-card p {
    font-size: 0.76rem;
    line-height: 1.35;
}

.accepted-logistics-map-panel {
    gap: 8px;
    padding: 14px;
    grid-template-rows: auto auto auto minmax(0, 1fr);
}

.accepted-logistics-map-panel .location-map-side {
    min-height: 210px;
    height: clamp(210px, 27vh, 236px);
}

.location-card-map-panel .app-page-side-head {
    gap: 4px;
}

.location-map-search {
    display: grid;
    gap: 9px;
}

.location-map-search label {
    margin-bottom: -1px;
    font-size: 0.86rem;
    font-weight: 700;
    color: rgba(23, 48, 36, 0.86);
}

.location-map-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.location-map-search-row input {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-size: 0.98rem;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.location-map-search-row input::placeholder {
    color: rgba(23, 48, 36, 0.48);
}

.location-map-search-row input:hover {
    border-color: rgba(15, 107, 67, 0.22);
}

.location-map-search-row input:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.56);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.location-map-search-button {
    min-height: 54px;
    padding-inline: 18px;
    white-space: nowrap;
}

.location-map-search-status {
    margin: -2px 0 0;
    min-height: 1.05rem;
    font-size: 0.78rem;
    color: var(--text-soft);
}

.location-map-search-status:empty {
    display: none;
}

.location-map-search-status[data-state="error"] {
    color: #a43f28;
}

.location-map-search-status[data-state="success"] {
    color: var(--icon-strong);
}

.location-map-search-results {
    display: grid;
    gap: 6px;
    max-height: 156px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.location-map-search-result {
    width: 100%;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-strong);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.location-map-search-result:hover,
.location-map-search-result:focus-visible {
    border-color: rgba(16, 79, 59, 0.34);
    box-shadow: 0 8px 18px rgba(24, 57, 42, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.location-map-search-result strong {
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-map-search-result span {
    overflow: hidden;
    font-size: 0.75rem;
    color: var(--text-soft);
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-map-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.location-map-action {
    min-height: 40px;
}

@media (max-width: 560px) {
    .location-map-search-row {
        grid-template-columns: 1fr;
    }

    .location-map-search-button {
        width: 100%;
    }
}

.contact-card-form {
    display: grid;
    gap: 22px;
}

.contract-execution-card {
    display: grid;
    gap: 24px;
    align-content: start;
}

.contract-execution-card > .app-page-card-head {
    margin-bottom: 0;
}

.contract-execution-card > .message {
    margin: 0;
}

.contact-card-section {
    display: grid;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 24px;
    background: rgba(247, 250, 248, 0.96);
}

.contact-card-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.contact-card-section-copy,
.contact-card-subsection {
    display: grid;
    gap: 14px;
}

.record-card-grid,
.record-card-field-grid,
.contact-card-general-grid,
.contact-card-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.payment-rule-group {
    display: grid;
    gap: 10px;
}

.payment-rule-label {
    display: block;
    font-size: 1rem;
    color: rgba(23, 48, 36, 0.86);
}

.payment-rule-values {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.payment-rule-values label {
    display: grid;
    gap: 6px;
    margin: 0;
    min-width: 0;
}

.payment-rule-values label > span {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--muted);
}

.payment-rule-values input {
    min-width: 0;
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 0.96rem;
}

.record-card-subsections-grid,
.contact-card-communication-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.transport-registration-plate-field {
    max-width: 760px;
}

.license-plate-editor {
    --plate-background: #fbfbf4;
    --plate-ink: #111827;
    --plate-border: #171717;
    --plate-slot-background: #064ea7;
    --plate-slot-ink: #ffffff;
    --plate-slot-control-background: rgba(255, 255, 255, 0.08);
    --plate-slot-control-hover-background: rgba(255, 255, 255, 0.16);
    --plate-slot-focus-ring: rgba(255, 255, 255, 0.28);
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    min-height: 112px;
    overflow: visible;
    border: 3px solid var(--plate-border);
    border-radius: 8px;
    background: var(--plate-background);
    color: var(--plate-ink);
    box-shadow: 0 12px 26px rgba(23, 48, 36, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.72);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.license-plate-editor:focus-within {
    border-color: rgba(0, 127, 76, 0.92);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.14), 0 12px 26px rgba(23, 48, 36, 0.12);
}

.license-plate-country-slot {
    position: relative;
    z-index: 3;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 7px;
    min-width: 0;
    padding: 12px 8px;
    border-right: 2px solid var(--plate-border);
    background: var(--plate-slot-background);
    color: var(--plate-slot-ink);
}

.license-plate-country-mark {
    width: 34px;
    height: 28px;
    display: grid;
    place-items: center;
}

.license-plate-stars {
    width: 34px;
    height: 28px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    align-items: center;
    justify-items: center;
}

.license-plate-stars span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #ffcc00;
}

.license-plate-flag {
    position: relative;
    display: none;
    width: 34px;
    height: 24px;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.license-plate-editor[data-country-mark="eu"] .license-plate-stars {
    display: grid;
}

.license-plate-editor[data-country-mark="flag"] .license-plate-flag,
.license-plate-editor[data-country-mark="gb"] .license-plate-flag,
.license-plate-editor[data-country-mark="no"] .license-plate-flag,
.license-plate-editor[data-country-mark="rs"] .license-plate-flag,
.license-plate-editor[data-country-mark="ua"] .license-plate-flag,
.license-plate-editor[data-country-mark="tr"] .license-plate-flag,
.license-plate-editor[data-country-mark="ch"] .license-plate-flag {
    display: block;
}

.license-plate-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.license-plate-editor[data-country-mark="gb"] .license-plate-flag {
    background:
        linear-gradient(34deg, transparent 0 41%, #ffffff 41% 47%, #c8102e 47% 53%, #ffffff 53% 59%, transparent 59%),
        linear-gradient(-34deg, transparent 0 41%, #ffffff 41% 47%, #c8102e 47% 53%, #ffffff 53% 59%, transparent 59%),
        linear-gradient(to right, transparent 0 41%, #ffffff 41% 59%, transparent 59%),
        linear-gradient(to bottom, transparent 0 36%, #ffffff 36% 64%, transparent 64%),
        linear-gradient(to right, transparent 0 46%, #c8102e 46% 54%, transparent 54%),
        linear-gradient(to bottom, transparent 0 43%, #c8102e 43% 57%, transparent 57%),
        #012169;
}

.license-plate-editor[data-country-mark="no"] .license-plate-flag {
    background:
        linear-gradient(to right, transparent 0 28%, #ffffff 28% 42%, #00205b 42% 56%, #ffffff 56% 70%, transparent 70%),
        linear-gradient(to bottom, transparent 0 36%, #ffffff 36% 48%, #00205b 48% 60%, #ffffff 60% 72%, transparent 72%),
        #ba0c2f;
}

.license-plate-editor[data-country-mark="rs"] .license-plate-flag {
    background: linear-gradient(to bottom, #c6363c 0 33.33%, #0c4076 33.33% 66.66%, #ffffff 66.66%);
}

.license-plate-editor[data-country-mark="ua"] .license-plate-flag {
    background: linear-gradient(to bottom, #0057b7 0 50%, #ffd700 50%);
}

.license-plate-editor[data-country-mark="tr"] .license-plate-flag {
    background: #e30a17;
}

.license-plate-editor[data-country-mark="tr"] .license-plate-flag::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 5px;
    width: 13px;
    height: 13px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 4px 0 0 #e30a17;
}

.license-plate-editor[data-country-mark="tr"] .license-plate-flag::after {
    content: "★";
    position: absolute;
    top: 5px;
    right: 6px;
    color: #ffffff;
    font-size: 8px;
    line-height: 1;
}

.license-plate-editor[data-country-mark="ch"] .license-plate-flag {
    width: 26px;
    height: 26px;
    background: #d52b1e;
    box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.14);
}

.license-plate-editor[data-country-mark="ch"] .license-plate-flag::before,
.license-plate-editor[data-country-mark="ch"] .license-plate-flag::after {
    content: "";
    position: absolute;
    background: #ffffff;
    border-radius: 1px;
}

.license-plate-editor[data-country-mark="ch"] .license-plate-flag::before {
    left: 6px;
    right: 6px;
    top: 11px;
    height: 4px;
}

.license-plate-editor[data-country-mark="ch"] .license-plate-flag::after {
    top: 6px;
    bottom: 6px;
    left: 11px;
    width: 4px;
}

.license-plate-country-slot .app-select {
    width: 100%;
    --app-select-panel-gap: 10px;
    --app-select-options-max-height: 220px;
}

.license-plate-country-slot .app-select-control {
    justify-content: center;
    min-height: 34px;
    padding: 4px 22px 4px 8px;
    border: 0;
    border-radius: 6px;
    background: var(--plate-slot-control-background);
    color: var(--plate-slot-ink);
    box-shadow: none;
}

.license-plate-country-slot .app-select-control::after {
    right: 8px;
    width: 7px;
    height: 7px;
    border-color: currentColor;
}

.license-plate-country-slot .app-select-control:hover,
.license-plate-country-slot .app-select-control:focus-visible {
    border-color: transparent;
    background: var(--plate-slot-control-hover-background);
    box-shadow: 0 0 0 2px var(--plate-slot-focus-ring);
}

.license-plate-country-slot .app-select-current {
    justify-content: center;
    width: 100%;
}

.license-plate-country-slot .app-select-current-text {
    justify-items: center;
}

.license-plate-country-slot .app-select-current-primary {
    color: var(--plate-slot-ink);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
}

.license-plate-editor:not([data-country-slot="neutral"]):not([data-country-slot="light"]) .license-plate-country-slot .app-select-current-primary {
    color: #f8fbff;
    text-shadow: 0 1px 1px rgba(0, 31, 76, 0.32);
}

.license-plate-country-slot .app-select-current-secondary {
    display: none;
}

.license-plate-country-slot .app-select-panel {
    left: 0;
    width: min(280px, calc(100vw - 40px));
}

.license-plate-editor input[data-transport-registration-number] {
    width: 100%;
    min-width: 0;
    min-height: 106px;
    height: 100%;
    padding: 10px 24px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--plate-ink);
    font-family: "Bahnschrift", "DIN 1451", "Arial Narrow", Arial, sans-serif;
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    box-shadow: none;
}

.license-plate-editor input[data-transport-registration-number]::placeholder {
    color: rgba(17, 24, 39, 0.34);
}

.license-plate-editor input[data-transport-registration-number]:focus {
    outline: none;
    border-color: transparent;
    box-shadow: none;
}

.license-plate-editor[data-plate-font="fe"] input[data-transport-registration-number] {
    font-family: "Bahnschrift SemiCondensed", "Arial Narrow", "DIN Condensed", Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.075em;
}

.license-plate-editor[data-plate-font="uk"] input[data-transport-registration-number] {
    font-family: "Charles Wright", "UKNumberPlate", "Arial Narrow", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.license-plate-editor[data-plate-font="belgian"] input[data-transport-registration-number] {
    font-family: "Bahnschrift Condensed", "Arial Narrow", Arial, sans-serif;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.license-plate-editor[data-plate-spacing="wide"] input[data-transport-registration-number] {
    letter-spacing: 0.11em;
}

.license-plate-editor[data-plate-spacing="tight"] input[data-transport-registration-number] {
    letter-spacing: 0.055em;
}

.license-plate-editor[data-plate-spacing="uk"] input[data-transport-registration-number] {
    letter-spacing: 0.13em;
}

.license-plate-editor[data-plate-tone="yellow"] {
    --plate-background: #f4d547;
}

.license-plate-editor[data-plate-tone="belgian"] {
    --plate-ink: #9a1027;
}

.license-plate-editor[data-country-slot="neutral"] {
    --plate-slot-background: #f3f4f6;
    --plate-slot-ink: #374151;
    --plate-slot-control-background: rgba(17, 24, 39, 0.06);
    --plate-slot-control-hover-background: rgba(17, 24, 39, 0.1);
    --plate-slot-focus-ring: rgba(17, 24, 39, 0.12);
}

.license-plate-editor[data-country-slot="light"] {
    --plate-slot-background: #ffffff;
    --plate-slot-ink: #111827;
    --plate-slot-control-background: rgba(17, 24, 39, 0.06);
    --plate-slot-control-hover-background: rgba(17, 24, 39, 0.1);
    --plate-slot-focus-ring: rgba(17, 24, 39, 0.14);
}

.transport-plate-link {
    display: inline-flex;
    color: inherit;
    text-decoration: none;
}

.transport-plate-mini {
    --plate-background: #fbfbf4;
    --plate-ink: #111827;
    --plate-border: #171717;
    --plate-slot-background: #064ea7;
    --plate-slot-ink: #ffffff;
    display: grid;
    grid-template-columns: 44px minmax(108px, 1fr);
    width: min(230px, 100%);
    min-height: 42px;
    overflow: hidden;
    border: 2px solid var(--plate-border);
    border-radius: 5px;
    background: var(--plate-background);
    color: var(--plate-ink);
    box-shadow: 0 6px 14px rgba(23, 48, 36, 0.12);
}

.transport-plate-mini-country {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    gap: 1px;
    min-width: 0;
    padding: 4px 4px 3px;
    border-right: 1px solid var(--plate-border);
    background: var(--plate-slot-background);
    color: var(--plate-slot-ink);
}

.transport-plate-mini .license-plate-flag {
    display: block;
    width: 22px;
    height: 15px;
    border-radius: 2px;
}

.transport-plate-mini .license-plate-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.transport-plate-mini .license-plate-stars {
    display: none;
    width: 22px;
    height: 16px;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
}

.transport-plate-mini .license-plate-stars span {
    width: 2px;
    height: 2px;
}

.transport-plate-mini[data-flag-state="fallback"][data-country-mark="eu"] .license-plate-flag,
.transport-plate-mini[data-country-mark="none"] .license-plate-flag {
    display: none;
}

.transport-plate-mini[data-flag-state="fallback"][data-country-mark="eu"] .license-plate-stars {
    display: grid;
}

.transport-plate-mini[data-country-mark="gb"] .license-plate-flag {
    background:
        linear-gradient(34deg, transparent 0 41%, #ffffff 41% 47%, #c8102e 47% 53%, #ffffff 53% 59%, transparent 59%),
        linear-gradient(-34deg, transparent 0 41%, #ffffff 41% 47%, #c8102e 47% 53%, #ffffff 53% 59%, transparent 59%),
        linear-gradient(to right, transparent 0 41%, #ffffff 41% 59%, transparent 59%),
        linear-gradient(to bottom, transparent 0 36%, #ffffff 36% 64%, transparent 64%),
        linear-gradient(to right, transparent 0 46%, #c8102e 46% 54%, transparent 54%),
        linear-gradient(to bottom, transparent 0 43%, #c8102e 43% 57%, transparent 57%),
        #012169;
}

.transport-plate-mini[data-country-mark="no"] .license-plate-flag {
    background:
        linear-gradient(to right, transparent 0 28%, #ffffff 28% 42%, #00205b 42% 56%, #ffffff 56% 70%, transparent 70%),
        linear-gradient(to bottom, transparent 0 36%, #ffffff 36% 48%, #00205b 48% 60%, #ffffff 60% 72%, transparent 72%),
        #ba0c2f;
}

.transport-plate-mini[data-country-mark="rs"] .license-plate-flag {
    background: linear-gradient(to bottom, #c6363c 0 33.33%, #0c4076 33.33% 66.66%, #ffffff 66.66%);
}

.transport-plate-mini[data-country-mark="ua"] .license-plate-flag {
    background: linear-gradient(to bottom, #0057b7 0 50%, #ffd700 50%);
}

.transport-plate-mini[data-country-mark="tr"] .license-plate-flag {
    background: #e30a17;
}

.transport-plate-mini[data-country-mark="tr"] .license-plate-flag::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 3px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 3px 0 0 #e30a17;
}

.transport-plate-mini[data-country-mark="tr"] .license-plate-flag::after {
    content: "★";
    position: absolute;
    top: 3px;
    right: 4px;
    color: #ffffff;
    font-size: 6px;
    line-height: 1;
}

.transport-plate-mini[data-country-mark="ch"] .license-plate-flag {
    width: 16px;
    height: 16px;
    background: #d52b1e;
    box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.14);
}

.transport-plate-mini[data-country-mark="ch"] .license-plate-flag::before,
.transport-plate-mini[data-country-mark="ch"] .license-plate-flag::after {
    content: "";
    position: absolute;
    background: #ffffff;
    border-radius: 1px;
}

.transport-plate-mini[data-country-mark="ch"] .license-plate-flag::before {
    left: 4px;
    right: 4px;
    top: 7px;
    height: 2px;
}

.transport-plate-mini[data-country-mark="ch"] .license-plate-flag::after {
    top: 4px;
    bottom: 4px;
    left: 7px;
    width: 2px;
}

.transport-plate-mini-code {
    max-width: 100%;
    color: var(--plate-slot-ink);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transport-plate-mini:not([data-country-slot="neutral"]):not([data-country-slot="light"]) .transport-plate-mini-code {
    color: #f8fbff;
    text-shadow: 0 1px 1px rgba(0, 31, 76, 0.32);
}

.transport-plate-mini-number {
    min-width: 0;
    display: grid;
    place-items: center;
    padding: 5px 12px 4px;
    color: var(--plate-ink);
    font-family: "Bahnschrift", "DIN 1451", "Arial Narrow", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.transport-plate-mini[data-plate-font="fe"] .transport-plate-mini-number {
    font-family: "Bahnschrift SemiCondensed", "Arial Narrow", "DIN Condensed", Arial, sans-serif;
    letter-spacing: 0.075em;
}

.transport-plate-mini[data-plate-font="uk"] .transport-plate-mini-number {
    font-family: "Charles Wright", "UKNumberPlate", "Arial Narrow", Arial, sans-serif;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.transport-plate-mini[data-plate-font="belgian"] .transport-plate-mini-number {
    font-family: "Bahnschrift Condensed", "Arial Narrow", Arial, sans-serif;
    letter-spacing: 0.1em;
}

.transport-plate-mini[data-plate-spacing="wide"] .transport-plate-mini-number {
    letter-spacing: 0.1em;
}

.transport-plate-mini[data-plate-spacing="tight"] .transport-plate-mini-number {
    letter-spacing: 0.055em;
}

.transport-plate-mini[data-plate-spacing="uk"] .transport-plate-mini-number {
    letter-spacing: 0.12em;
}

.transport-plate-mini[data-plate-tone="yellow"] {
    --plate-background: #f4d547;
}

.transport-plate-mini[data-plate-tone="belgian"] {
    --plate-ink: #9a1027;
}

.transport-plate-mini[data-country-slot="neutral"] {
    --plate-slot-background: #f3f4f6;
    --plate-slot-ink: #374151;
}

.transport-plate-mini[data-country-slot="light"] {
    --plate-slot-background: #ffffff;
    --plate-slot-ink: #111827;
}

@media (max-width: 640px) {
    .transport-registration-plate-field {
        max-width: none;
    }

    .license-plate-editor {
        grid-template-columns: 70px minmax(0, 1fr);
        min-height: 92px;
    }

    .license-plate-country-slot {
        padding: 10px 6px;
    }

    .license-plate-country-mark {
        width: 30px;
        height: 24px;
    }

    .license-plate-stars {
        width: 30px;
        height: 24px;
        gap: 2px;
    }

    .license-plate-flag {
        width: 30px;
        height: 21px;
    }

    .license-plate-country-slot .app-select-current-primary {
        font-size: 0.92rem;
    }

    .license-plate-editor input[data-transport-registration-number] {
        min-height: 86px;
        padding-inline: 14px;
        font-size: clamp(1.7rem, 10vw, 2.6rem);
        letter-spacing: 0.05em;
    }
}

.contact-card-section-copy .eyebrow,
.contact-card-section-copy h3,
.contact-card-section-copy p,
.contact-card-subsection h4 {
    margin: 0;
}

.contact-card-section-copy h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    letter-spacing: -0.03em;
}

.contact-card-section-copy p,
.contact-card-subsection p {
    color: var(--text-soft);
    line-height: 1.6;
}

.contact-card-subsection h4 {
    font-size: 1.08rem;
}

.transport-order-card-layout {
    grid-template-columns: minmax(0, 1fr);
}

.transport-order-card-main {
    padding-right: 0;
}

.transport-order-card {
    display: grid;
    gap: 24px;
}

.transport-order-card .app-page-card-head {
    margin-bottom: 0;
}

.transport-order-workflow {
    display: grid;
    gap: 24px;
    min-width: 0;
}

.transport-order-status-panel {
    display: grid;
    gap: 16px;
    min-width: 0;
    padding: 18px 0 20px;
    border-top: 1px solid rgba(23, 48, 36, 0.08);
    border-bottom: 1px solid rgba(23, 48, 36, 0.08);
}

.transport-order-status-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.transport-order-status-head .eyebrow,
.transport-order-status-head h3 {
    margin: 0;
}

.transport-order-status-head h3 {
    margin-top: 6px;
    font-size: 1.22rem;
    letter-spacing: 0;
}

.transport-order-status-percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(0, 122, 58, 0.16);
    border-radius: 999px;
    color: var(--icon-strong);
    background: rgba(0, 122, 58, 0.08);
    font-weight: 800;
    white-space: nowrap;
}

.transport-order-status-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 50, 42, 0.08);
}

.transport-order-status-fill {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #0f6b43, #00c86f);
}

.transport-order-status-steps {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.transport-order-status-step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--text-soft);
}

.transport-order-status-step .app-icon {
    flex: 0 0 auto;
    color: rgba(23, 50, 42, 0.32);
}

.transport-order-status-step strong {
    min-width: 0;
    color: inherit;
    font-size: 0.78rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.transport-order-status-step.is-done,
.transport-order-status-step.is-current {
    color: var(--icon-strong);
}

.transport-order-status-step.is-current strong {
    color: var(--text);
}

.transport-order-status-step.is-done .app-icon,
.transport-order-status-step.is-current .app-icon {
    color: var(--icon-strong);
}

.transport-order-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    min-width: 0;
}

.transport-order-column {
    display: grid;
    align-content: start;
    gap: 18px;
    min-width: 0;
    padding: 0 22px;
    border-left: 1px solid rgba(23, 48, 36, 0.08);
}

.transport-order-column:first-child {
    padding-left: 0;
    border-left: 0;
}

.transport-order-column:last-child {
    padding-right: 0;
}

.transport-order-loading-column {
    order: 1;
    padding-left: 0;
    border-left: 0;
}

.transport-order-carriage-column {
    order: 2;
    padding-left: 22px;
    border-left: 1px solid rgba(23, 48, 36, 0.08);
}

.transport-order-recipient-column {
    order: 3;
}

.transport-order-column-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.transport-order-column-head .app-icon {
    flex: 0 0 auto;
    color: var(--icon-strong);
}

.transport-order-column-head .eyebrow,
.transport-order-column-head h3 {
    margin: 0;
}

.transport-order-column-head h3 {
    margin-top: 5px;
    font-size: 1.06rem;
    letter-spacing: 0;
}

.transport-order-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
    min-width: 0;
}

.transport-order-checklist-wrap {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid rgba(23, 48, 36, 0.08);
}

.transport-order-checklist-wrap .eyebrow {
    margin: 0;
}

.transport-document-form {
    gap: 12px;
}

.transport-document-upload-grid {
    display: grid;
    grid-template-columns: minmax(132px, 0.82fr) minmax(148px, 1fr);
    align-items: end;
    gap: 10px;
    min-width: 0;
}

.transport-document-upload-grid .field-group {
    min-width: 0;
}

.transport-document-upload-grid .field-group input,
.transport-document-upload-grid .field-group select {
    min-height: 48px;
    border-radius: 8px;
}

.transport-document-upload-grid .field-group input[type="file"] {
    width: 100%;
    min-height: 46px;
    padding: 6px 8px;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.transport-document-upload-grid .field-group input[type="file"]::file-selector-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 7px 12px;
    border-radius: 6px;
    box-shadow: none;
}

.transport-document-upload-grid .field-group input[type="file"]::-webkit-file-upload-button {
    min-height: 32px;
    margin-right: 10px;
    padding: 7px 12px;
    border-radius: 6px;
    box-shadow: none;
}

.transport-document-file-field {
    grid-column: 1 / -1;
}

.transport-document-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    min-width: 0;
}

.transport-document-actions .table-action-button {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 6px;
}

.contact-card-form[data-transport-quality-autosave] fieldset {
    display: grid;
    gap: 22px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.transport-order-checklist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.transport-order-checklist-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid rgba(23, 48, 36, 0.08);
    border-radius: 8px;
    background: rgba(247, 250, 248, 0.72);
}

.transport-order-checklist-item .app-icon {
    color: var(--text-soft);
}

.transport-order-checklist-form {
    display: contents;
}

.transport-order-checklist-inline-form {
    margin-top: 8px;
}

.transport-order-checklist-item.is-done > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    min-width: 0;
}

.transport-order-checklist-item.is-done > div > strong,
.transport-order-checklist-item.is-done > div > small {
    grid-column: 1;
}

.transport-order-checklist-item.is-done .transport-order-checklist-inline-form {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    justify-self: end;
    margin-top: 0;
}

.transport-order-checklist-button {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.transport-order-checklist-button:focus-visible {
    outline: 2px solid rgba(0, 122, 58, 0.42);
    outline-offset: 4px;
    border-radius: 6px;
}

.transport-order-window-action {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-width: 0;
}

.transport-order-window-action-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.transport-order-window-action-body .transport-order-checklist-mini-button {
    justify-self: start;
}

.transport-order-trailer-types {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    width: min(540px, 100%);
    padding: 9px 10px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
}

.transport-order-trailer-types .app-icon {
    color: var(--text-soft);
}

.transport-order-trailer-types > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.transport-order-trailer-types strong {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.transport-order-trailer-types span:not(.app-icon) {
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.3;
}

.transport-order-trailer-types small {
    color: var(--text-soft);
    font-size: 0.78rem;
    line-height: 1.35;
}

.transport-order-trailer-types.is-success {
    border-color: rgba(16, 124, 65, 0.22);
    background: rgba(16, 124, 65, 0.055);
}

.transport-order-trailer-types.is-success .app-icon {
    color: var(--icon-strong);
}

.transport-order-trailer-types.is-warning {
    border-color: rgba(184, 115, 0, 0.28);
    background: rgba(255, 243, 205, 0.72);
}

.transport-order-trailer-types.is-warning .app-icon,
.transport-order-trailer-types.is-warning span:not(.app-icon) {
    color: #8a5a00;
}

.transport-order-rate-mode-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.transport-order-rate-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid rgba(24, 57, 42, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
}

.transport-order-rate-mode-option:has(input:checked) {
    border-color: rgba(16, 124, 65, 0.28);
    background: rgba(16, 124, 65, 0.055);
}

.transport-order-rate-mode-option input {
    width: 15px;
    height: 15px;
    accent-color: var(--icon-strong);
}

.transport-order-offer-amount {
    display: grid;
    gap: 5px;
    width: min(190px, 100%);
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.transport-order-carrier-select {
    width: min(360px, 100%);
}

.transport-order-driver-select {
    width: min(420px, 100%);
}

.transport-order-vehicle-select-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    gap: 10px;
    width: min(540px, 100%);
    min-width: 0;
}

.transport-order-vehicle-select {
    width: 100%;
    min-width: 0;
}

.transport-order-offer-amount input,
.transport-order-offer-amount select {
    width: 100%;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid rgba(24, 57, 42, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: none;
}

.transport-order-offer-amount .app-select {
    width: 100%;
    --app-select-panel-gap: 5px;
    --app-select-options-max-height: 210px;
}

.transport-order-offer-amount .app-select-control {
    min-height: 34px;
    padding: 6px 34px 6px 9px;
    border-color: rgba(24, 57, 42, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: none;
}

.transport-order-offer-amount .app-select-control::after {
    right: 12px;
}

.transport-order-offer-amount .app-select-current-primary {
    font-size: 0.84rem;
    font-weight: 700;
}

.transport-order-offer-amount .app-select-current-secondary {
    font-size: 0.78rem;
}

.transport-order-offer-amount .app-select-panel {
    border-radius: 8px;
}

@media (max-width: 640px) {
    .transport-order-vehicle-select-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.transport-order-offer-amount input:focus,
.transport-order-offer-amount select:focus {
    outline: none;
    border-color: rgba(16, 124, 65, 0.42);
    box-shadow: 0 0 0 2px rgba(16, 124, 65, 0.1);
}

.transport-order-window-toggle,
.transport-order-window-time {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 700;
}

.transport-order-window-toggle input {
    width: 16px;
    height: 16px;
    accent-color: var(--icon-strong);
}

.transport-order-window-time {
    flex-wrap: wrap;
    align-items: flex-start;
}

.transport-order-window-time > span,
.transport-order-window-time > label {
    flex: 0 0 100%;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.transport-order-window-time .app-time-field {
    width: 132px;
}

.transport-order-window-time input {
    width: 132px;
    max-width: 100%;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid rgba(0, 122, 58, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
}

.transport-order-window-time .app-time-input-control {
    width: 100%;
}

.transport-order-window-time .app-time-trigger {
    min-height: 34px;
}

.transport-order-window-time input:focus {
    outline: none;
    border-color: rgba(0, 122, 58, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 122, 58, 0.12);
}

.transport-order-checklist-mini-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid rgba(24, 57, 42, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--icon-strong);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.transport-order-checklist-mini-button .app-icon {
    font-size: 1rem;
}

.transport-order-checklist-mini-button:hover,
.transport-order-checklist-mini-button:focus-visible {
    border-color: rgba(16, 124, 65, 0.28);
    background: rgba(16, 124, 65, 0.045);
}

.transport-order-checklist-mini-button:disabled {
    border-color: rgba(24, 57, 42, 0.1);
    background: rgba(245, 247, 246, 0.9);
    color: var(--text-muted);
    cursor: not-allowed;
}

.transport-order-checklist-item.is-action:hover {
    border-color: rgba(16, 124, 65, 0.2);
    background: rgba(255, 255, 255, 0.96);
}

.transport-order-checklist-item strong,
.transport-order-checklist-item small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.transport-order-checklist-item strong {
    color: var(--text);
    font-size: 0.88rem;
}

.transport-order-checklist-item small {
    margin-top: 3px;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}

.transport-order-checklist-item.is-current {
    border-color: rgba(16, 124, 65, 0.16);
    background:
        linear-gradient(90deg, rgba(16, 124, 65, 0.055), rgba(255, 255, 255, 0) 84px),
        rgba(255, 255, 255, 0.94);
    box-shadow: inset 3px 0 0 rgba(16, 124, 65, 0.44);
}

.transport-order-checklist-item.is-current .app-icon {
    color: var(--icon-strong);
}

.transport-order-checklist-item.is-done {
    border-color: rgba(0, 122, 58, 0.18);
    background: rgba(0, 122, 58, 0.05);
}

.transport-order-checklist-item.is-done .app-icon {
    color: var(--icon-strong);
}

.transport-order-checklist-item.is-locked {
    background: rgba(247, 250, 248, 0.52);
}

.transport-order-checklist-item.is-locked strong {
    color: var(--text-soft);
}

@media (max-width: 560px) {
    .transport-order-checklist-item.is-done > div {
        grid-template-columns: minmax(0, 1fr);
    }

    .transport-order-checklist-item.is-done .transport-order-checklist-inline-form {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 8px;
    }
}

.transport-order-detail-item {
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 13px 0;
    border-top: 1px solid rgba(23, 48, 36, 0.08);
}

.transport-order-detail-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.transport-order-detail-item dt {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.transport-order-detail-item dd {
    display: grid;
    gap: 4px;
    margin: 0;
    min-width: 0;
    color: var(--text);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.transport-order-detail-item dd span {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 600;
}

.transport-order-detail-item dd.transport-order-price-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.transport-order-price-column {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-left: 8px;
    border-left: 1px solid rgba(23, 48, 36, 0.1);
}

.transport-order-price-column:first-child {
    padding-left: 0;
    border-left: 0;
}

.transport-order-price-column small {
    min-width: 0;
    color: var(--text-soft);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.transport-order-price-column strong {
    min-width: 0;
    color: var(--text);
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.transport-order-product-detail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.transport-order-product-detail strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.transport-order-detail-mini-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 8px;
    border: 1px solid rgba(0, 122, 58, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--icon-strong);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.transport-order-detail-mini-button .app-icon {
    font-size: 1rem;
}

.transport-order-detail-item dd .transport-order-detail-mini-button span {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.transport-order-detail-mini-button:hover,
.transport-order-detail-mini-button:focus-visible {
    border-color: rgba(0, 122, 58, 0.42);
    background: rgba(0, 122, 58, 0.08);
}

.transport-order-formula {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(23, 48, 36, 0.08);
}

.transport-order-formula .eyebrow,
.transport-order-formula p {
    margin: 0;
}

.transport-order-formula p:not(.eyebrow) {
    color: var(--text-soft);
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
    .transport-order-status-steps,
    .transport-order-columns {
        grid-template-columns: 1fr;
    }

    .transport-order-loading-column,
    .transport-order-carriage-column,
    .transport-order-recipient-column {
        order: initial;
    }

    .transport-order-column {
        padding: 18px 0 0;
        border-top: 1px solid rgba(23, 48, 36, 0.08);
        border-left: 0;
    }

    .transport-order-column:first-child {
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 560px) {
    .transport-document-upload-grid {
        grid-template-columns: 1fr;
    }

    .transport-document-file-field,
    .transport-document-actions {
        grid-column: auto;
    }

    .transport-document-actions .table-action-button {
        width: 100%;
    }
}

.app-table-toolbar-card.transport-order-status-toolbar {
    padding: 7px 10px;
}

.transport-order-status-toolbar .app-table-toolbar-form {
    align-items: center;
    gap: 10px;
}

.transport-order-toolbar-main {
    align-items: stretch;
    flex: 1 1 780px;
}

.transport-order-status-toolbar .page-filter-actions {
    align-self: center;
}

.transport-order-toolbar-main .transport-order-status-panel {
    display: grid;
    grid-template-columns: minmax(180px, max-content) minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 5px;
    width: 100%;
    padding: 1px 0 2px;
    border: 0;
}

.transport-order-toolbar-main .transport-order-status-head {
    display: contents;
}

.transport-order-toolbar-main .transport-order-status-head > div {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    min-width: 0;
    max-width: 280px;
    padding-right: 4px;
}

.transport-order-toolbar-main .transport-order-status-head .eyebrow {
    font-size: 0.67rem;
    letter-spacing: 0.16em;
}

.transport-order-toolbar-main .transport-order-status-head h3 {
    margin-top: 2px;
    font-size: 1rem;
    line-height: 1.18;
}

.transport-order-toolbar-main .transport-order-status-percent {
    grid-column: 3;
    grid-row: 1;
    min-width: 52px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.8rem;
}

.transport-order-toolbar-main .transport-order-status-track {
    grid-column: 2;
    grid-row: 1;
    height: 7px;
}

.transport-order-toolbar-main .transport-order-status-steps {
    grid-column: 2 / 4;
    grid-row: 2;
    gap: 8px;
}

.transport-order-toolbar-main .transport-order-status-step {
    gap: 5px;
}

.transport-order-toolbar-main .transport-order-status-step .app-icon {
    font-size: 0.92rem;
}

.transport-order-toolbar-main .transport-order-status-step strong {
    font-size: 0.69rem;
    line-height: 1.15;
}

@media (max-width: 1180px) {
    .transport-order-status-toolbar .app-table-toolbar-form {
        flex-wrap: wrap;
    }

    .transport-order-status-toolbar .page-filter-actions {
        margin-left: 0;
    }

    .transport-order-toolbar-main .transport-order-status-panel {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .transport-order-toolbar-main .transport-order-status-head > div,
    .transport-order-toolbar-main .transport-order-status-track,
    .transport-order-toolbar-main .transport-order-status-percent,
    .transport-order-toolbar-main .transport-order-status-steps {
        grid-row: auto;
    }

    .transport-order-toolbar-main .transport-order-status-head > div {
        grid-column: 1;
    }

    .transport-order-toolbar-main .transport-order-status-percent {
        grid-column: 2;
    }

    .transport-order-toolbar-main .transport-order-status-track,
    .transport-order-toolbar-main .transport-order-status-steps {
        grid-column: 1 / -1;
    }

    .transport-order-toolbar-main .transport-order-status-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .transport-order-toolbar-main .transport-order-status-steps {
        grid-template-columns: 1fr;
    }
}

.contract-schedule-section {
    gap: 18px;
}

.contract-schedule-type-section {
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
}

.contract-schedule-type-section .contact-card-section-head {
    align-items: center;
}

.contract-schedule-type-section .contact-card-section-copy {
    gap: 7px;
}

.contract-schedule-type-section .contact-card-section-copy h3 {
    font-size: 1.18rem;
    letter-spacing: 0;
}

.contract-schedule-type-section .contact-card-section-copy p {
    max-width: 780px;
    line-height: 1.45;
}

.contract-schedule-type-form {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.contract-schedule-type-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.contract-schedule-type-grid .field-span-2 {
    grid-column: auto;
}

.contract-schedule-type-section .field-group label {
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 700;
}

.contract-schedule-type-section .field-group select {
    min-height: 46px;
    padding: 0 44px 0 16px;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 700;
}

.contract-schedule-type-section .field-group .app-select-control {
    min-height: 46px;
    padding: 10px 44px 10px 16px;
    border-radius: 14px;
}

.contract-schedule-type-section .app-select-current-primary {
    font-size: 0.96rem;
    font-weight: 700;
}

.contract-schedule-type-actions {
    justify-content: flex-end;
    margin-left: 0;
}

.contract-schedule-type-actions .primary-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .contract-schedule-type-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .contract-schedule-type-actions {
        justify-content: stretch;
    }
}

.transport-status-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 18px;
    background: rgba(247, 250, 248, 0.96);
}

.transport-status-legend-title {
    margin-right: 2px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.transport-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #17322a;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.transport-status-chip::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
}

.transport-status-chip-planned {
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
}

.transport-status-chip-in-progress {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
}

.transport-status-chip-done {
    background: rgba(0, 122, 58, 0.12);
    color: #0f6b43;
}

.transport-status-chip-delayed {
    background: rgba(208, 139, 34, 0.14);
    color: var(--warning);
}

.contract-execution-contract-col {
    width: 14%;
}

.contract-execution-counterparty-col {
    width: 18%;
}

.contract-execution-product-col {
    width: 17%;
}

.contract-execution-window-col {
    width: 13%;
}

.contract-execution-quantity-col {
    width: 16%;
}

.contract-execution-schedule-col {
    width: 22%;
}

.quantity-progress {
    display: grid;
    gap: 7px;
    min-width: 170px;
}

.quantity-progress-head,
.quantity-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.quantity-progress-head strong {
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.2;
}

.quantity-progress-head span {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.quantity-progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 50, 42, 0.08);
}

.quantity-progress-fill {
    display: block;
    height: 100%;
    min-width: 0;
    border-radius: inherit;
    background: rgba(23, 50, 42, 0.28);
}

.quantity-progress[data-progress-tone="partial"] .quantity-progress-fill {
    background: linear-gradient(90deg, #d08b22, #f4b84a);
}

.quantity-progress[data-progress-tone="complete"] .quantity-progress-fill {
    background: linear-gradient(90deg, #0f6b43, #00c86f);
}

.quantity-progress[data-progress-tone="empty"] .quantity-progress-fill {
    background: rgba(23, 50, 42, 0.22);
}

.quantity-progress-meta {
    color: var(--text-soft);
    font-size: 0.72rem;
    line-height: 1.2;
}

.contract-schedule-create-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.contract-schedule-planner-layout {
    display: grid;
    grid-template-columns: minmax(390px, 500px) minmax(560px, 1fr);
    gap: 16px;
    align-items: stretch;
}

.contract-schedule-planner-main {
    display: grid;
    gap: 12px;
    min-width: 0;
    align-content: start;
}

.contract-schedule-planner-form {
    gap: 0;
}

.contract-schedule-selection-card,
.contract-schedule-entry-panel,
.contract-schedule-gantt-panel {
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
}

.contract-schedule-selection-card,
.contract-schedule-entry-panel {
    display: grid;
    gap: 12px;
}

.contract-schedule-selection-head,
.contract-schedule-entry-panel-head,
.contract-schedule-gantt-head,
.contract-schedule-entry-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.contract-schedule-selection-head,
.contract-schedule-entry-card-head {
    justify-content: flex-start;
}

.contract-schedule-selection-head > .app-icon,
.contract-schedule-entry-card-head > .app-icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 122, 58, 0.08);
    color: var(--primary-deep);
}

.contract-schedule-selection-head .eyebrow,
.contract-schedule-gantt-head .eyebrow,
.contract-schedule-entry-panel-head .eyebrow,
.contract-schedule-entry-panel-head h4,
.contract-schedule-gantt-head h4 {
    margin: 0;
}

.contract-schedule-selection-head strong,
.contract-schedule-entry-card-head strong {
    display: block;
    color: var(--text);
    font-size: 1.02rem;
    line-height: 1.22;
}

.contract-schedule-entry-card-head span:not(.app-icon) {
    display: block;
    margin-top: 2px;
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.35;
}

.contract-schedule-planner-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.contract-schedule-planner-fields .field-group:nth-child(3),
.contract-schedule-create-action {
    grid-column: 1 / -1;
}

.contract-schedule-planner-fields .field-group label,
.contract-schedule-entry-edit-grid .field-group label {
    margin-bottom: 5px;
    font-size: 0.78rem;
    font-weight: 800;
}

.contract-schedule-planner-fields .field-group input,
.contract-schedule-entry-edit-grid .quick-edit-input {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
}

.contract-schedule-create-action .primary-button {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.contract-schedule-entry-panel-head {
    align-items: center;
}

.contract-schedule-entry-list {
    display: grid;
    gap: 10px;
}

.contract-schedule-entry-card {
    position: relative;
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-left-width: 5px;
    border-radius: 16px;
    background: rgba(247, 250, 248, 0.96);
}

.contract-schedule-entry-card[data-contract-schedule-tone="0"] {
    border-left-color: #1d7ed8;
}

.contract-schedule-entry-card[data-contract-schedule-tone="1"] {
    border-left-color: #0f8a7a;
}

.contract-schedule-entry-card[data-contract-schedule-tone="2"] {
    border-left-color: #b46a00;
}

.contract-schedule-entry-card[data-contract-schedule-tone="3"] {
    border-left-color: #8f4bb8;
}

.contract-schedule-entry-card[data-contract-schedule-tone="4"] {
    border-left-color: #b43d5a;
}

.contract-schedule-entry-card[data-contract-schedule-tone="5"] {
    border-left-color: #577a22;
}

.contract-schedule-entry-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.contract-schedule-entry-edit-grid .field-group {
    min-width: 0;
}

.contract-schedule-entry-edit-grid .field-group:nth-child(3) {
    grid-column: 1 / -1;
}

.contract-schedule-entry-edit-grid .app-date-field {
    min-width: 0;
}

.contract-schedule-entry-edit-grid .app-date-input-control {
    padding-right: 50px !important;
    font-variant-numeric: tabular-nums;
}

.contract-schedule-entry-edit-grid .app-date-trigger {
    right: 8px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.contract-schedule-entry-card .contract-schedule-row-actions {
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(24, 57, 42, 0.08);
}

.contract-schedule-entry-card .contract-schedule-row-actions .secondary-button {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.contract-schedule-entry-card[data-save-state="warning"] .contract-schedule-row-actions,
.contract-schedule-entry-card[data-save-state="error"] .contract-schedule-row-actions,
.contract-schedule-entry-card[data-warning-message]:not([data-warning-message=""]) .contract-schedule-row-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

.contract-schedule-entry-card[data-save-state="warning"] .contract-schedule-row-status,
.contract-schedule-entry-card[data-save-state="error"] .contract-schedule-row-status,
.contract-schedule-entry-card[data-warning-message]:not([data-warning-message=""]) .contract-schedule-row-status {
    width: 100%;
    flex-basis: auto;
    text-wrap: pretty;
    overflow-wrap: normal;
}

.contract-schedule-entry-card[data-save-state="warning"] .contract-schedule-row-actions .secondary-button,
.contract-schedule-entry-card[data-save-state="error"] .contract-schedule-row-actions .secondary-button,
.contract-schedule-entry-card[data-warning-message]:not([data-warning-message=""]) .contract-schedule-row-actions .secondary-button {
    justify-self: end;
}

.contract-schedule-gantt-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-content: start;
    min-height: 420px;
    padding: 18px;
    background:
        linear-gradient(180deg, rgba(248, 252, 250, 0.98), rgba(240, 248, 244, 0.96)),
        rgba(255, 255, 255, 0.92);
}

.contract-schedule-gantt-head {
    align-items: center;
}

.contract-schedule-gantt-head > div:first-child {
    display: grid;
    gap: 0;
    min-width: 0;
}

.contract-schedule-gantt-head h4 {
    font-size: 1rem;
    line-height: 1.25;
}

.contract-schedule-gantt-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.contract-schedule-gantt-nav .secondary-button {
    width: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
}

.contract-schedule-gantt {
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
}

.contract-schedule-gantt-grid {
    display: grid;
    min-width: max-content;
    align-items: stretch;
}

.contract-schedule-gantt-row-label,
.contract-schedule-gantt-day,
.contract-schedule-gantt-cell {
    min-width: 0;
    border-right: 1px solid rgba(24, 57, 42, 0.06);
    border-bottom: 1px solid rgba(24, 57, 42, 0.06);
}

.contract-schedule-gantt-row-label {
    position: sticky;
    left: 0;
    z-index: 4;
    display: grid;
    align-content: center;
    gap: 5px;
    padding: 10px 12px;
    background: rgba(250, 253, 251, 0.98);
    color: var(--text);
}

.contract-schedule-gantt-row-label strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contract-schedule-gantt-row-label span {
    min-width: 0;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contract-schedule-gantt-row-label.is-header,
.contract-schedule-gantt-day {
    background: rgba(244, 250, 247, 0.98);
}

.contract-schedule-gantt-row-label.is-selected {
    color: var(--primary-deep);
}

.contract-schedule-gantt-row-label.has-warning strong,
.contract-schedule-gantt-row-label.has-warning span {
    color: var(--warning);
}

.contract-schedule-gantt-row-label.is-empty span {
    color: var(--text-soft);
}

.contract-schedule-gantt-day {
    position: relative;
    display: grid;
    grid-template-rows: 16px 24px 16px;
    align-items: center;
    justify-items: center;
    gap: 0;
    min-height: 60px;
    padding: 2px 3px;
    border-top: 0;
    border-left: 0;
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.contract-schedule-gantt-day:hover,
.contract-schedule-gantt-day:focus-visible {
    outline: none;
    background: rgba(234, 246, 239, 0.98);
    box-shadow: inset 0 0 0 1px rgba(0, 122, 58, 0.22);
}

.contract-schedule-gantt-day-month,
.contract-schedule-gantt-day-weekday {
    color: var(--text-soft);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
}

.contract-schedule-gantt-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 900;
    line-height: 1;
}

.contract-schedule-gantt-day.is-weekend,
.contract-schedule-gantt-cell.is-weekend {
    background: rgba(247, 250, 248, 0.6);
}

.contract-schedule-gantt-day.is-disabled,
.contract-schedule-gantt-cell.is-disabled {
    opacity: 0.42;
}

.contract-schedule-gantt-day.is-disabled {
    cursor: not-allowed;
}

.contract-schedule-gantt-day.is-in-selected-range,
.contract-schedule-gantt-cell.is-in-selected-range {
    background: rgba(0, 200, 111, 0.08);
}

.contract-schedule-gantt-day.is-selected-boundary .contract-schedule-gantt-day-number {
    background: linear-gradient(135deg, #0f6b43, #00a65a);
    color: #fff;
}

.contract-schedule-gantt-day.has-entry::after {
    content: "";
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #1d7ed8;
}

.contract-schedule-gantt-day.has-entry-tone-0::after {
    background: #1d7ed8;
}

.contract-schedule-gantt-day.has-entry-tone-1::after {
    background: #0f8a7a;
}

.contract-schedule-gantt-day.has-entry-tone-2::after {
    background: #b46a00;
}

.contract-schedule-gantt-day.has-entry-tone-3::after {
    background: #8f4bb8;
}

.contract-schedule-gantt-day.has-entry-tone-4::after {
    background: #b43d5a;
}

.contract-schedule-gantt-day.has-entry-tone-5::after {
    background: #577a22;
}

.contract-schedule-gantt-cell {
    position: relative;
    min-height: 62px;
    background: rgba(255, 255, 255, 0.72);
}

.contract-schedule-gantt-bar {
    z-index: 3;
    align-self: center;
    justify-self: stretch;
    min-width: 0;
    min-height: 26px;
    margin: 0 5px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    overflow: hidden;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(23, 50, 42, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    pointer-events: none;
}

.contract-schedule-gantt-bar-tone-selected {
    background: linear-gradient(90deg, #0f6b43, #00a65a);
}

.contract-schedule-gantt-bar-tone-0 {
    background: linear-gradient(90deg, #1d7ed8, #4aa3f2);
}

.contract-schedule-gantt-bar-tone-1 {
    background: linear-gradient(90deg, #0f8a7a, #26b9a4);
}

.contract-schedule-gantt-bar-tone-2 {
    background: linear-gradient(90deg, #b46a00, #e49a2c);
}

.contract-schedule-gantt-bar-tone-3 {
    background: linear-gradient(90deg, #8f4bb8, #bd75da);
}

.contract-schedule-gantt-bar-tone-4 {
    background: linear-gradient(90deg, #b43d5a, #e0718b);
}

.contract-schedule-gantt-bar-tone-5 {
    background: linear-gradient(90deg, #577a22, #8aaa36);
}

.contract-schedule-gantt-bar.has-warning {
    background: linear-gradient(90deg, #b46a00, #e49a2c);
}

.contract-schedule-gantt-legend {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.contract-schedule-gantt-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.contract-schedule-gantt-legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.contract-schedule-gantt-legend-swatch-selected {
    background: #0f6b43;
}

.contract-schedule-gantt-legend-swatch-planned {
    width: 24px;
    border-radius: 999px;
    background: linear-gradient(90deg, #1d7ed8 0 16%, #0f8a7a 16% 32%, #b46a00 32% 48%, #8f4bb8 48% 64%, #b43d5a 64% 80%, #577a22 80% 100%);
}

.contract-schedule-gantt-legend-swatch-warning {
    background: #b46a00;
}

@media (max-width: 1180px) {
    .contract-schedule-planner-layout {
        grid-template-columns: 1fr;
    }

    .contract-schedule-planner-main {
        max-width: none;
    }

    .contract-schedule-gantt-panel {
        min-height: 0;
    }
}

.contract-schedule-section .app-date-input-control[readonly],
.contract-schedule-table .app-date-input-control[readonly] {
    background: rgba(255, 255, 255, 0.98);
}

.contract-schedule-create-action .primary-button {
    width: 100%;
    min-height: 54px;
}

.contract-schedule-table-wrap {
    margin-top: 2px;
}

.contract-schedule-table .quick-edit-input {
    min-height: 44px;
}

.contract-schedule-row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 10px;
}

.contract-schedule-row-status {
    flex: 1 1 140px;
    margin: 0;
    min-width: 0;
    line-height: 1.35;
    white-space: normal;
}

tr[data-save-state="dirty"] .contract-schedule-row-status,
tr[data-save-state="saving"] .contract-schedule-row-status {
    color: var(--text);
}

tr[data-save-state="saved"] .contract-schedule-row-status {
    color: var(--primary-deep);
}

tr[data-save-state="warning"] .contract-schedule-row-status {
    color: var(--warning);
}

tr[data-save-state="error"] .contract-schedule-row-status {
    color: #b42318;
}

[data-contract-schedule-row][data-save-state="dirty"] .contract-schedule-row-status,
[data-contract-schedule-row][data-save-state="saving"] .contract-schedule-row-status {
    color: var(--text);
}

[data-contract-schedule-row][data-save-state="saved"] .contract-schedule-row-status {
    color: var(--primary-deep);
}

[data-contract-schedule-row][data-save-state="warning"] .contract-schedule-row-status {
    color: var(--warning);
}

[data-contract-schedule-row][data-save-state="error"] .contract-schedule-row-status {
    color: #b42318;
}

.location-type-settings-list {
    display: grid;
    gap: 16px;
}

.location-type-settings-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(24, 57, 42, 0.1);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(5, 150, 105, 0.06), rgba(255, 255, 255, 0.96) 42%),
        rgba(255, 255, 255, 0.98);
    box-shadow: 0 1px 2px rgba(24, 57, 42, 0.04);
}

.location-type-settings-row-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.location-type-settings-row-head .app-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f6b43;
    background: rgba(5, 150, 105, 0.12);
    border-radius: 14px;
    font-size: 24px;
}

.location-type-settings-row-head strong {
    display: block;
    color: var(--text-strong);
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.location-type-settings-fields {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.location-type-transport-trailer-settings {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border: 1px dashed rgba(24, 57, 42, 0.14);
    border-radius: 16px;
    background: rgba(247, 250, 248, 0.7);
}

.location-type-transport-trailer-subhead {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-weight: 700;
    font-size: 0.98rem;
}

.location-type-transport-trailer-subhead .app-icon {
    color: var(--icon-strong);
}

.location-type-transport-trailer-hint {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

.location-type-trailers-empty {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    color: var(--text-soft);
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 1280px) {
    .location-type-settings-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.location-map-wrapper {
    display: grid;
    gap: 10px;
    margin-top: 6px;
}

.location-map-wrapper-side {
    min-height: 0;
    height: auto;
    margin-top: 0;
    grid-template-rows: 1fr;
    align-content: stretch;
}

.location-map {
    height: 320px;
    border-radius: 14px;
    border: 1px solid rgba(24, 57, 42, 0.12);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-map-side {
    height: 100%;
    min-height: 250px;
}

.location-map[data-geo-mode="manual"] {
    border-color: rgba(16, 79, 59, 0.36);
    box-shadow: 0 0 0 3px rgba(16, 79, 59, 0.1);
}

.location-map[data-geo-selection-armed="true"] {
    border-color: rgba(193, 120, 32, 0.42);
    box-shadow: 0 0 0 3px rgba(193, 120, 32, 0.14);
    cursor: crosshair;
}

.location-map-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-soft);
}

.record-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.record-link:hover,
.record-link:focus-visible {
    color: var(--icon-strong);
    outline: none;
}

.inline-edit-form {
    display: grid;
    gap: 18px;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid rgba(24, 57, 42, 0.1);
    border-radius: 22px;
    background: rgba(247, 250, 248, 0.98);
}

.inline-edit-form-head {
    display: grid;
    gap: 6px;
}

.inline-edit-form-head strong,
.inline-edit-form-head p {
    margin: 0;
}

.inline-edit-form-head p {
    color: var(--text-soft);
    line-height: 1.6;
}

.inline-edit-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

@keyframes app-window-shell-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes app-window-pane-enter {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes app-top-toolbar-enter {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes app-toolbar-item-enter {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes app-toolbar-item-refresh {
    0% {
        opacity: 0.72;
        transform: translateY(3px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes app-toolbar-menu-enter {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes card-sync-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.auto-save-spin-icon {
    display: inline-block;
    animation: card-sync-spin 0.7s linear infinite;
}

.auto-save-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-right: 4px;
    transition: color 0.2s ease;
}

.auto-save-status[data-sync-tone="saving"] {
    color: var(--warning);
}

.auto-save-status[data-sync-tone="dirty"] {
    color: var(--warning);
}

.auto-save-status[data-sync-tone="warning"] {
    color: var(--warning);
}

.auto-save-status[data-sync-tone="saved"] {
    color: var(--icon-strong);
}

.auto-save-status[data-sync-tone="error"] {
    color: var(--error);
}

.matching-hold-status {
    max-width: 760px;
    line-height: 1.45;
    white-space: normal;
}

.app-table-toolbar-card,
.app-table-card {
    position: relative;
}

.app-table-toolbar-card {
    z-index: 40;
    padding: 10px 12px;
    animation: app-top-toolbar-enter 0.24s var(--app-motion-soft) both;
    transform-origin: top center;
}

.location-card-toolbar-sticky {
    position: sticky;
    top: 0;
    z-index: 160;
    box-shadow: 0 14px 28px rgba(34, 77, 57, 0.08);
}

.app-table-toolbar-card[data-table-kind="standard"],
.app-table-card[data-table-kind="standard"],
.app-table-toolbar-card[data-table-kind="quick-edit"],
.app-table-card[data-table-kind="quick-edit"] {
    isolation: isolate;
}

.page-filter-form,
.app-table-toolbar-form {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 6px 8px;
    min-width: 0;
}

.page-filter-toolbar-main {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    gap: 8px;
}

.page-filter-toolbar-main > *,
.page-filter-actions > *,
.dashboard-window-actions > * {
    animation: app-toolbar-item-enter 0.22s var(--app-motion-soft) both;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease,
        opacity 0.18s ease,
        transform 0.18s var(--app-motion-soft);
}

.page-filter-toolbar-main > *:nth-child(2),
.page-filter-actions > *:nth-child(2),
.dashboard-window-actions > *:nth-child(2) {
    animation-delay: 0.03s;
}

.page-filter-toolbar-main > *:nth-child(3),
.page-filter-actions > *:nth-child(3),
.dashboard-window-actions > *:nth-child(3) {
    animation-delay: 0.06s;
}

.page-filter-toolbar-main > *:nth-child(4),
.page-filter-actions > *:nth-child(4),
.dashboard-window-actions > *:nth-child(4) {
    animation-delay: 0.09s;
}

.page-inline-search {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 34px;
    max-width: 34px;
    transition: flex-basis 0.24s ease, max-width 0.24s ease;
}

.page-inline-search.is-expanded {
    flex: 1 1 340px;
    max-width: 500px;
}

.page-inline-search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--icon-strong);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.page-inline-search-toggle:hover,
.page-inline-search-toggle:focus-visible {
    outline: none;
    border-color: rgba(15, 107, 67, 0.24);
    background: rgba(242, 248, 244, 0.98);
    box-shadow: 0 10px 22px rgba(34, 77, 57, 0.08);
}

.page-inline-search-field {
    width: 0;
    min-width: 0;
    margin-left: 0;
    opacity: 0;
    overflow: hidden;
    transition: width 0.24s ease, margin-left 0.24s ease, opacity 0.18s ease;
}

.page-inline-search.is-expanded .page-inline-search-field {
    width: 100%;
    margin-left: 8px;
    opacity: 1;
}

.page-inline-search-field input,
.page-filter-select,
.analysis-crop-product-yield-input {
    width: 100%;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 1);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
}

.page-inline-search-field input:focus,
.page-filter-select:focus,
.analysis-crop-product-yield-input:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.56);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.page-filter-field {
    margin: 0;
}

.customer-intelligence-filter-toolbar-main {
    flex-wrap: wrap;
}

.customer-intelligence-filter-toolbar-main .page-filter-field {
    flex: 1 1 150px;
    display: grid;
    gap: 6px;
    min-width: 140px;
}

.customer-intelligence-filter-toolbar-main .page-filter-field > span {
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.customer-intelligence-filter-toolbar-main .page-filter-select {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 0.92rem;
}

.customer-intelligence-toolbar-card {
    padding: 12px;
}

.customer-intelligence-toolbar-card .app-table-toolbar-form {
    align-items: end;
    gap: 12px;
}

.customer-intelligence-toolbar-card .page-filter-actions {
    flex: 0 0 auto;
    align-items: end;
}

.price-check-filter-toolbar-main {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 14px;
}

.price-check-filter-field {
    min-width: 0;
}

.price-check-filter-form {
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 18px;
}

.price-check-filter-footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
}

.price-check-parameter-preview {
    flex: 1 1 420px;
    display: grid;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(15, 107, 67, 0.14);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(251, 255, 252, 0.98), rgba(245, 250, 247, 0.98));
}

.price-check-parameter-preview-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.price-check-parameter-preview-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.price-check-parameter-preview-copy .eyebrow,
.price-check-parameter-preview-copy h3,
.price-check-parameter-preview-copy .lead {
    margin: 0;
}

.price-check-filter-actions {
    margin-left: 0;
    justify-content: flex-end;
    align-self: stretch;
    flex-wrap: wrap;
}

.price-check-parameter-panel {
    width: 100%;
}

.price-check-parameter-actions {
    margin-left: 0;
    justify-content: flex-start;
}

.price-check-sections {
    display: grid;
    gap: 30px;
    min-height: 0;
    height: 100%;
    overflow: auto;
    align-content: start;
    padding-right: 4px;
}

.price-check-section {
    display: grid;
    gap: 18px;
    align-content: start;
}

.price-check-inline-empty {
    min-height: 0;
}

.price-check-section .records-head {
    align-items: flex-start;
    flex-wrap: wrap;
}

.price-check-section .records-head > div {
    min-width: 0;
}

.price-check-section .records-head .lead {
    flex: 1 1 360px;
    max-width: 760px;
    margin: 0;
}

.price-check-section .records-table-scroll-area {
    height: auto;
    max-height: none;
}

.price-check-section-card {
    display: grid;
    gap: 22px;
}

.price-check-card-status {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(214, 226, 219, 0.86);
}

.price-check-card-status .eyebrow,
.price-check-card-status .lead {
    margin: 0;
}

.price-check-card-status .lead {
    flex: 1 1 320px;
    max-width: 640px;
}

.price-check-source-clickable-row {
    cursor: pointer;
}

.price-check-source-clickable-row:focus-visible {
    outline: 2px solid rgba(16, 185, 129, 0.5);
    outline-offset: -2px;
}

.price-check-source-clickable-row:hover td {
    background: rgba(234, 250, 242, 0.72);
}

.price-heatmap-page-body {
    overflow: hidden;
    padding: 10px;
}

.price-heatmap-shell.app-page-shell-split {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    height: calc(100dvh - 20px);
    min-height: calc(100dvh - 20px);
    overflow: hidden;
}

body.dashboard-embedded-window.price-heatmap-page-body {
    padding: 10px;
}

body.dashboard-embedded-window .price-heatmap-shell.app-page-shell-split {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    height: calc(100dvh - 20px);
    min-height: calc(100dvh - 20px);
}

body.dashboard-embedded-window .price-heatmap-shell.app-page-shell-split > .app-page-main {
    gap: 10px;
    overflow: hidden;
    padding-right: 0;
}

.price-heatmap-shell > .app-page-main {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    align-content: stretch;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding-right: 0;
}

.price-heatmap-shell .app-standalone-window-head {
    margin-bottom: 0;
}

.price-heatmap-shell > .app-page-side {
    display: none;
}

.price-heatmap-workbench {
    position: relative;
    grid-row: 2;
    display: block;
    align-self: stretch;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(155, 171, 190, 0.28);
    border-radius: 18px;
    background: #e7edf3;
    box-shadow: var(--shadow-soft);
}

.price-heatmap-menu {
    position: absolute;
    top: 12px;
    left: 12px;
    bottom: 12px;
    z-index: 440;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: clamp(286px, 16vw, 322px);
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 14px;
    border: 1px solid rgba(214, 226, 219, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.price-heatmap-menu-form {
    display: contents;
}

.price-heatmap-menu-head,
.price-heatmap-section-head {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.price-heatmap-menu-head .eyebrow,
.price-heatmap-menu-head h2,
.price-heatmap-menu-head .lead,
.price-heatmap-section-head .eyebrow,
.price-heatmap-section-head h3 {
    margin: 0;
}

.price-heatmap-menu-head h2 {
    color: #14301f;
    font-size: 1.1rem;
    line-height: 1.2;
}

.price-heatmap-filter-toolbar-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    gap: 10px;
}

.price-heatmap-product-field {
    min-width: 0;
}

.price-heatmap-percentile-control {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(214, 226, 219, 0.86);
    border-radius: 16px;
    background: rgba(248, 251, 249, 0.9);
}

.price-heatmap-percentile-control label,
.price-heatmap-percentile-ticks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.price-heatmap-percentile-control label {
    color: #14301f;
    font-size: 0.88rem;
    font-weight: 720;
}

.price-heatmap-percentile-control strong {
    color: #008052;
    font-size: 1rem;
}

.price-heatmap-percentile-control input[type="range"] {
    width: 100%;
    accent-color: #00a86b;
}

.price-heatmap-percentile-ticks {
    color: #607085;
    font-size: 0.72rem;
}

.price-heatmap-parameter-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(214, 226, 219, 0.86);
    border-radius: 16px;
    background: rgba(248, 251, 249, 0.9);
}

.price-heatmap-parameter-preview .eyebrow,
.price-heatmap-parameter-preview h3,
.price-heatmap-parameter-preview .lead {
    margin: 0;
}

.price-heatmap-parameter-preview h3 {
    font-size: 0.98rem;
}

.price-heatmap-parameter-preview .lead {
    margin-top: 4px;
    font-size: 0.88rem;
}

.price-heatmap-menu-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 42px;
    gap: 8px;
}

.price-heatmap-menu-actions .primary-button,
.price-heatmap-menu-actions .secondary-button {
    min-width: 0;
    width: 100%;
    justify-content: center;
    min-height: 38px;
    padding: 8px 10px;
}

.price-heatmap-menu-actions .secondary-button[aria-label] {
    padding-inline: 0;
}

.price-heatmap-parameter-panel {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.price-heatmap-parameter-list {
    display: grid;
    gap: 10px;
}

.price-heatmap-parameter-row {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(214, 226, 219, 0.86);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.price-heatmap-parameter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.price-heatmap-parameter-label strong {
    min-width: 0;
    color: #14301f;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.price-heatmap-parameter-label span {
    flex: 0 0 auto;
    color: #607085;
    font-size: 0.78rem;
}

.price-heatmap-parameter-range {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.price-heatmap-parameter-range input {
    min-width: 0;
}

.price-heatmap-menu-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.price-heatmap-stat {
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(214, 226, 219, 0.86);
    border-radius: 14px;
    background: rgba(248, 251, 249, 0.96);
}

.price-heatmap-stat .app-icon {
    color: #078f56;
    font-size: 1.05rem;
}

.price-heatmap-stat strong {
    color: #0d5639;
    font-size: 1rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.price-heatmap-stat p {
    margin: 0;
    color: #607085;
    font-size: 0.76rem;
    line-height: 1.25;
}

.price-heatmap-map-panel {
    position: relative;
    z-index: 0;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    isolation: isolate;
    overflow: hidden;
    border: 0;
    border-radius: inherit;
    background: #e7edf3;
}

.price-heatmap-map {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #e7edf3;
}

.price-heatmap-map-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    left: calc(clamp(286px, 16vw, 322px) + 36px);
    z-index: 420;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    width: auto;
    padding: 12px 14px;
    border: 1px solid rgba(214, 226, 219, 0.86);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(29, 45, 38, 0.12);
    pointer-events: none;
}

.price-heatmap-map-panel .leaflet-left {
    left: calc(clamp(286px, 16vw, 322px) + 24px);
}

.price-heatmap-flow-line-halo {
    filter: blur(1.4px) drop-shadow(0 0 9px rgba(16, 185, 129, 0.26));
    pointer-events: none;
}

.price-heatmap-flow-line-base {
    filter: drop-shadow(0 1px 3px rgba(17, 24, 39, 0.16)) drop-shadow(0 0 6px rgba(246, 196, 83, 0.2));
    pointer-events: none;
}

.price-heatmap-flow-line-pulse {
    animation: priceHeatmapFlowDash 0.92s linear infinite;
    filter: drop-shadow(0 0 7px rgba(253, 230, 138, 0.68));
    pointer-events: none;
    stroke-dashoffset: 0;
}

@keyframes priceHeatmapFlowDash {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -34;
    }
}

.price-heatmap-map-overlay .eyebrow,
.price-heatmap-map-overlay h2,
.price-heatmap-map-overlay .lead {
    margin: 0;
}

.price-heatmap-map-overlay h2 {
    color: #14301f;
    font-size: 1.05rem;
}

.price-heatmap-map-overlay .lead {
    max-width: 360px;
    text-align: right;
    font-size: 0.88rem;
}

.price-heatmap-detail {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 430;
    display: grid;
    align-content: start;
    gap: 12px;
    width: min(380px, calc(100% - 32px));
    min-width: 0;
    min-height: 0;
    max-height: min(46%, 430px);
    padding: 14px;
    overflow: auto;
    border: 1px solid rgba(214, 226, 219, 0.86);
    border-radius: 16px;
    background: rgba(248, 251, 249, 0.95);
    box-shadow: 0 18px 48px rgba(29, 45, 38, 0.14);
    backdrop-filter: blur(10px);
}

.price-heatmap-detail[hidden] {
    display: none;
}

.price-heatmap-detail-empty,
.price-heatmap-detail-head {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.price-heatmap-detail-empty .eyebrow,
.price-heatmap-detail-empty h3,
.price-heatmap-detail-empty .lead,
.price-heatmap-detail-head .eyebrow,
.price-heatmap-detail-head h3,
.price-heatmap-detail-head .lead {
    margin: 0;
}

.price-heatmap-detail h3 {
    font-size: 1rem;
    line-height: 1.25;
}

.price-heatmap-detail-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    color: #0d5639;
    background: rgba(221, 247, 233, 0.92);
    font-size: 0.98rem;
    font-weight: 760;
}

.price-heatmap-connection-list {
    display: grid;
    gap: 9px;
}

.price-heatmap-connection {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 10px;
    border: 1px solid rgba(214, 226, 219, 0.86);
    border-radius: 13px;
    background: #ffffff;
}

.price-heatmap-connection-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #0d5639;
    background: rgba(221, 247, 233, 0.92);
    font-size: 0.8rem;
    font-weight: 760;
}

.price-heatmap-connection strong,
.price-heatmap-connection p {
    margin: 0;
}

.price-heatmap-connection strong {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.price-heatmap-connection p {
    color: #607085;
    font-size: 0.8rem;
}

@media (max-width: 1100px) {
    .price-heatmap-page-body {
        overflow: hidden;
        padding: 12px;
    }

    .price-heatmap-shell.app-page-shell-split {
        height: calc(100dvh - 24px);
        min-height: calc(100dvh - 24px);
    }

    .price-heatmap-shell > .app-page-main {
        height: 100%;
        overflow: hidden;
    }

    .price-heatmap-workbench {
        height: 100%;
        min-height: 0;
    }

    .price-heatmap-menu {
        width: min(322px, calc(100% - 24px));
        overflow-y: auto;
    }

    .price-heatmap-map-panel {
        min-height: 0;
    }

    .price-heatmap-detail {
        max-height: 300px;
    }
}

@media (max-width: 720px) {
    .price-heatmap-workbench {
        height: 100%;
        min-height: 0;
    }

    .price-heatmap-menu,
    .price-heatmap-map-panel {
        border-radius: 18px;
    }

    .price-heatmap-menu {
        padding: 14px;
        right: 12px;
        bottom: auto;
        width: auto;
        max-height: min(52%, 430px);
    }

    .price-heatmap-menu-actions {
        grid-template-columns: 1fr 1fr 40px;
    }

    .price-heatmap-menu-stats {
        grid-template-columns: 1fr;
    }

    .price-heatmap-map-panel {
        min-height: 0;
    }

    .price-heatmap-map-overlay {
        top: calc(12px + min(52%, 430px) + 12px);
        right: 12px;
        left: 12px;
        width: auto;
        flex-direction: column;
        gap: 6px;
    }

    .price-heatmap-map-panel .leaflet-left {
        left: 0;
        top: auto;
        bottom: 12px;
    }

    .price-heatmap-map-overlay .lead {
        text-align: left;
    }

    .price-heatmap-detail {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
        max-height: 240px;
    }
}

.page-filter-status-field {
    flex: 0 0 216px;
}

.page-filter-actions {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 6px;
    margin-left: auto;
}

.table-action-button {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 12px;
    white-space: nowrap;
}

.page-filter-actions > .primary-button,
.page-filter-actions > .secondary-button,
.page-filter-actions .secondary-button,
.page-filter-actions .primary-button {
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 12px;
    white-space: nowrap;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        color 0.18s ease,
        opacity 0.18s ease,
        transform 0.18s var(--app-motion-soft);
}

.app-table-toolbar-card .material-symbols-outlined {
    font-size: 1rem;
}

.page-related-menu {
    position: relative;
    z-index: 1;
}

.page-related-menu.is-open {
    z-index: 390;
}

.page-related-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 400;
    width: min(360px, calc(100vw - 64px));
    max-height: min(320px, calc(100vh - 220px));
    display: grid;
    gap: 10px;
    overflow: auto;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 20px 50px rgba(34, 77, 57, 0.12);
    animation: app-toolbar-menu-enter 0.18s var(--app-motion-soft) both;
    transform-origin: top right;
}

.page-related-panel[hidden] {
    display: none !important;
}

.page-related-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

button.page-related-item {
    width: 100%;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

button.page-related-item:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
    background: rgba(248, 250, 249, 0.98);
}

.page-related-action-form {
    margin: 0;
}

.page-related-action-form .primary-button {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 12px;
}

.page-related-action-form .primary-button span {
    color: inherit;
}

.page-related-item:hover,
.page-related-item:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(15, 107, 67, 0.24);
    background: rgba(242, 248, 244, 0.98);
}

button.page-related-item:disabled:hover,
button.page-related-item:disabled:focus-visible {
    transform: none;
    border-color: var(--border);
    background: rgba(248, 250, 249, 0.98);
}

.page-related-item strong {
    font-size: 0.98rem;
}

.page-related-item span {
    color: var(--text-soft);
    line-height: 1.5;
}

.page-related-item > span {
    display: none;
}

.page-selection-action-danger {
    border-color: rgba(196, 77, 77, 0.18);
}

.page-selection-action-danger:hover,
.page-selection-action-danger:focus-visible {
    border-color: rgba(196, 77, 77, 0.32);
    background: rgba(253, 244, 244, 0.98);
}

.page-selection-action-danger strong,
.page-selection-action-danger .material-symbols-outlined {
    color: var(--error);
}

.page-selection-action-empty {
    cursor: default;
}

.related-record-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.records-table-wrap {
    margin-top: 22px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 20px;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 940px;
}

.records-table th,
.records-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.records-table th {
    font-size: 0.86rem;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.locations-records-table-wrap {
    margin-top: 18px;
}

.locations-records-table th,
.locations-records-table td {
    padding: 12px 16px;
}

.locations-records-table td {
    vertical-align: middle;
}

.locations-records-table .record-primary {
    gap: 2px;
}

.locations-records-table .status-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.74rem;
    line-height: 1;
}

.records-table-sticky-head {
    border-collapse: separate;
    border-spacing: 0;
}

.records-table-sticky-head thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: inset 0 -1px 0 var(--border);
}

.table-heading {
    white-space: nowrap;
}

.records-table th .table-heading {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 6px;
}

.records-table th .table-heading > span:not(.material-symbols-outlined):not(.app-icon) {
    display: -webkit-box;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    max-height: 2.3em;
    overflow: hidden;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.records-table th .table-heading .material-symbols-outlined {
    flex: 0 0 auto;
}

.records-table th.is-sortable {
    position: relative;
    padding-right: 70px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.records-table th.is-sortable:hover,
.records-table th.is-sortable:focus-visible {
    outline: none;
    background: rgba(239, 247, 241, 0.98);
    color: var(--text);
}

.records-table th.is-sortable::after {
    content: '↕';
    position: absolute;
    top: 50%;
    right: 46px;
    transform: translateY(-50%);
    color: rgba(23, 48, 36, 0.42);
    font-size: 0.85rem;
    line-height: 1;
}

.records-table th[data-sort-direction="asc"]::after {
    content: '↑';
    color: var(--icon-strong);
}

.records-table th[data-sort-direction="desc"]::after {
    content: '↓';
    color: var(--icon-strong);
}

.records-table-sticky-head thead th.is-sortable,
.app-page-shell-contained-table .records-table-wrap > .records-table thead th.is-sortable,
.app-page-shell-contained-table .records-table-scroll-area > .records-table thead th.is-sortable {
    position: sticky;
}

.records-column-resizer {
    position: absolute;
    top: 0;
    right: -4px;
    bottom: 0;
    z-index: 7;
    width: 8px;
    cursor: col-resize;
    touch-action: none;
}

.records-table th:last-child > .records-column-resizer {
    right: 0;
}

.records-column-resizer::before {
    content: '';
    position: absolute;
    top: 8px;
    bottom: 8px;
    left: 3px;
    width: 2px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.records-column-resizer:hover::before,
.records-column-resizer:focus-visible::before,
html.is-resizing-records-column .records-column-resizer::before {
    background: rgba(0, 120, 212, 0.7);
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.1);
}

.records-column-resizer:focus-visible {
    outline: none;
}

.records-table[data-table-kind="quick-edit"]:not([data-quick-edit-grid="true"]) .records-column-resizer {
    display: none;
}

html.is-resizing-records-column,
html.is-resizing-records-column * {
    cursor: col-resize !important;
    user-select: none !important;
}

.table-heading .material-symbols-outlined {
    font-size: 1.05rem;
}

.column-filter-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: rgba(23, 48, 36, 0.48);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.column-filter-toggle .material-symbols-outlined {
    font-size: 1rem;
}

.column-filter-toggle:hover,
.column-filter-toggle:focus-visible,
.records-table th.has-column-filter .column-filter-toggle {
    outline: none;
    border-color: rgba(15, 128, 83, 0.18);
    background: rgba(6, 188, 117, 0.1);
    color: var(--icon-strong);
    box-shadow: 0 8px 16px rgba(34, 77, 57, 0.08);
}

.column-filter-panel {
    position: fixed;
    z-index: 400;
    display: grid;
    gap: 10px;
    width: min(300px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.99);
    color: var(--text);
    box-shadow: 0 22px 44px rgba(34, 77, 57, 0.16);
    cursor: default;
    text-align: left;
}

.column-filter-sort {
    display: grid;
    gap: 6px;
}

.column-filter-command {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.column-filter-command:hover,
.column-filter-command:focus-visible {
    outline: none;
    border-color: rgba(15, 128, 83, 0.16);
    background: rgba(239, 247, 241, 0.98);
}

.column-filter-search {
    display: grid;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--muted);
    text-transform: uppercase;
}

.column-filter-search input {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
}

.column-filter-checks {
    display: grid;
    gap: 6px;
}

.column-filter-select-all,
.column-filter-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 700;
}

.column-filter-select-all {
    grid-template-columns: 18px minmax(0, 1fr);
    padding: 0 2px 6px;
    border-bottom: 1px solid var(--border);
}

.column-filter-option input,
.column-filter-select-all input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.column-filter-values {
    display: grid;
    gap: 2px;
    max-height: 220px;
    overflow: auto;
    padding-right: 2px;
}

.column-filter-option {
    padding: 4px 2px;
    border-radius: 6px;
}

.column-filter-option:hover {
    background: rgba(239, 247, 241, 0.98);
}

.column-filter-option-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.column-filter-option-count {
    color: var(--muted);
    font-size: 0.78rem;
}

.column-filter-empty {
    padding: 10px 2px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.column-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 2px;
}

.column-filter-actions .primary-button,
.column-filter-actions .secondary-button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
}

.records-table[data-table-kind="standard"] tbody tr,
.records-table:not([data-table-kind]) tbody tr {
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.records-table[data-table-kind="standard"] tbody tr:hover,
.records-table:not([data-table-kind]) tbody tr:hover {
    background: rgba(239, 247, 241, 0.98);
}

.records-table tbody tr.is-context-menu-row {
    background: rgba(232, 245, 236, 0.98);
    box-shadow: inset 3px 0 0 var(--primary);
}

.app-context-menu {
    position: fixed;
    z-index: 10020;
    min-width: 210px;
    max-width: min(340px, calc(100vw - 20px));
    padding: 6px;
    border: 1px solid rgba(209, 209, 209, 0.92);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-16);
    color: var(--text);
}

.app-context-menu-title {
    max-width: 100%;
    padding: 8px 10px 7px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-context-menu-item {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.app-context-menu-item .app-icon {
    color: var(--icon-strong);
    font-size: 1.16rem;
}

.app-context-menu-item:hover,
.app-context-menu-item:focus-visible {
    outline: none;
    background: var(--color-brand-background-subtle);
}

.app-context-menu-item:disabled {
    color: var(--text-soft);
    cursor: not-allowed;
    opacity: 0.58;
}

.app-context-menu-item:disabled .app-icon {
    color: var(--text-soft);
}

.app-context-menu-separator {
    height: 1px;
    margin: 5px 4px;
    background: var(--color-neutral-stroke-subtle);
}

.app-context-menu-clipboard-helper {
    position: fixed;
    left: -10000px;
    top: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.records-table[data-table-kind="quick-edit"] tbody tr {
    cursor: default;
}

.records-table[data-table-kind="quick-edit"] th,
.records-table[data-table-kind="quick-edit"] td {
    vertical-align: middle;
}

.quick-edit-view-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 16px;
}

.quick-edit-view-switch-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 5px 0 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: #4e6157;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(24, 57, 42, 0.04);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.quick-edit-view-switch-button:hover,
.quick-edit-view-switch-button:focus-visible {
    outline: none;
    border-color: rgba(0, 120, 212, 0.28);
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
    color: var(--text);
}

.quick-edit-view-switch-button.is-active {
    border-color: rgba(0, 120, 212, 0.28);
    background: rgba(0, 120, 212, 0.08);
    color: #005a9e;
}

.quick-edit-view-state {
    min-width: 36px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef3ef;
    color: #4e6157;
    font-size: 0.72rem;
    letter-spacing: 0;
}

.quick-edit-view-switch-button.is-active .quick-edit-view-state {
    background: #0078d4;
    color: #fff;
}

.records-table[data-quick-edit-grid="true"] {
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    color: var(--text);
    font-size: 0.92rem;
}

.records-table[data-quick-edit-grid="true"],
.records-table[data-quick-edit-grid="true"] th,
.records-table[data-quick-edit-grid="true"] td,
.records-table[data-quick-edit-grid="true"] button,
.records-table[data-quick-edit-grid="true"] .record-primary,
.records-table[data-quick-edit-grid="true"] .app-select-control,
.records-table[data-quick-edit-grid="true"] .app-select-current,
.records-table[data-quick-edit-grid="true"] .inventory-meta-pill,
.records-table[data-quick-edit-grid="true"] .status-pill {
    user-select: none;
}

.records-table[data-quick-edit-grid="true"] input,
.records-table[data-quick-edit-grid="true"] textarea,
.records-table[data-quick-edit-grid="true"] .app-select-search-input {
    user-select: text;
}

.records-table[data-quick-edit-grid="true"] th,
.records-table[data-quick-edit-grid="true"] td {
    height: 34px;
    padding: 0;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
    vertical-align: middle;
}

.records-table[data-quick-edit-grid="true"] th:last-child,
.records-table[data-quick-edit-grid="true"] td:last-child {
    border-right: 0;
}

.records-table[data-quick-edit-grid="true"] thead th {
    height: 32px;
    padding: 0 12px;
    background: #f7faf8;
    color: #4e6157;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.records-table[data-quick-edit-grid="true"] tbody tr:hover td,
.records-table[data-quick-edit-grid="true"] tbody tr.is-grid-active-row td {
    background: #fbfdfc;
}

.records-table[data-quick-edit-grid="true"] td.is-grid-active-cell,
.records-table[data-quick-edit-grid="true"] td.is-grid-selected-cell {
    position: relative;
    background: #fff;
}

.records-table[data-quick-edit-grid="true"] td.is-grid-active-cell::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: 2;
    border: 2px solid #0078d4;
    pointer-events: none;
}

.records-table[data-quick-edit-grid="true"] td.is-grid-selected-cell:not(.is-grid-active-cell)::after {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: 1;
    border: 1px solid rgba(0, 120, 212, 0.55);
    background: rgba(0, 120, 212, 0.08);
    pointer-events: none;
}

.records-table[data-quick-edit-grid="true"] td.is-grid-range-end-cell {
    overflow: visible;
}

.quick-edit-grid-selection-handle {
    position: absolute;
    right: -4px;
    bottom: -4px;
    z-index: 4;
    width: 8px;
    height: 8px;
    border: 1px solid #fff;
    border-radius: 1px;
    background: #0078d4;
    box-shadow: 0 0 0 1px rgba(0, 120, 212, 0.7);
    cursor: crosshair;
}

.records-table[data-quick-edit-grid="true"] tr[data-save-state="dirty"] td:first-child {
    box-shadow: inset 3px 0 0 #f2a13a;
}

.records-table[data-quick-edit-grid="true"] tr[data-save-state="saving"] td:first-child {
    box-shadow: inset 3px 0 0 #0078d4;
}

.records-table[data-quick-edit-grid="true"] tr[data-save-state="error"] td:first-child {
    box-shadow: inset 3px 0 0 #c2372b;
}

.records-table[data-quick-edit-grid="true"] .quick-edit-cell,
.records-table[data-quick-edit-grid="true"] .quick-edit-status,
.records-table[data-quick-edit-grid="true"] .quick-edit-grid-add-actions,
.records-table[data-quick-edit-grid="true"] .record-primary,
.records-table[data-quick-edit-grid="true"] .page-filter-actions {
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
}

.records-table[data-quick-edit-grid="true"] .quick-edit-cell,
.records-table[data-quick-edit-grid="true"] .record-primary {
    padding: 0 10px;
}

.records-table[data-quick-edit-grid="true"] .quick-edit-status,
.records-table[data-quick-edit-grid="true"] .quick-edit-grid-add-actions,
.records-table[data-quick-edit-grid="true"] .page-filter-actions {
    padding: 0 8px;
}

.records-table[data-quick-edit-grid="true"] .quick-edit-input {
    width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 600;
}

.records-table[data-quick-edit-grid="true"] select.quick-edit-input {
    padding-right: 28px;
}

.records-table[data-quick-edit-grid="true"] .quick-edit-input:hover,
.records-table[data-quick-edit-grid="true"] .quick-edit-input:focus {
    outline: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.records-table[data-quick-edit-grid="true"] .status-pill {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.records-table[data-quick-edit-grid="true"] .secondary-button,
.records-table[data-quick-edit-grid="true"] .primary-button {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 4px;
    font-size: 0.76rem;
    letter-spacing: 0;
    line-height: 1;
    white-space: nowrap;
}

.records-table[data-quick-edit-grid="true"] .quick-edit-status-button:hover,
.records-table[data-quick-edit-grid="true"] .quick-edit-status-button:focus-visible {
    transform: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.16);
}

.records-table[data-quick-edit-grid="true"] .quick-edit-grid-add-row td {
    background: #f8fbff;
}

.records-table[data-quick-edit-grid="true"] .quick-edit-grid-add-row .quick-edit-input::placeholder {
    color: rgba(78, 97, 87, 0.66);
}

.records-table[data-quick-edit-grid="true"] .quick-edit-grid-create-button {
    min-width: 76px;
    justify-content: center;
}

.records-table[data-quick-edit-grid="true"] .quick-edit-grid-add-prompt-row td {
    height: 38px;
    background: #fff;
}

.quick-edit-grid-add-prompt {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    color: #7a2378;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.quick-edit-grid-add-prompt .material-symbols-outlined {
    color: #4e6157;
    font-size: 1rem;
}

.quick-edit-grid-add-prompt:hover,
.quick-edit-grid-add-prompt:focus-visible,
.quick-edit-grid-add-prompt-row:focus-within .quick-edit-grid-add-prompt {
    outline: none;
    background: rgba(0, 120, 212, 0.05);
}

.quick-edit-create-panel-hidden,
.quick-edit-create-command-hidden {
    display: none !important;
}

.contract-schedule-section .quick-edit-view-switch,
.records-table-wrap.contract-schedule-table-wrap {
    width: min(100%, 840px);
}

.contract-schedule-section .quick-edit-view-switch {
    margin-top: 4px;
}

.records-table-wrap.contract-schedule-table-wrap {
    margin-top: 8px;
    border-radius: 16px;
    background: #fff;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] {
    min-width: 760px;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] th,
.records-table.contract-schedule-table[data-quick-edit-grid="true"] td {
    height: 40px;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] thead th {
    height: 34px;
    padding: 0 10px;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] .table-heading {
    gap: 6px;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] .table-heading .app-icon {
    font-size: 1rem;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] .quick-edit-cell {
    padding: 0 7px;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] .quick-edit-input {
    min-height: 32px;
    padding: 0 9px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] input[type="date"].quick-edit-input {
    font-variant-numeric: tabular-nums;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] td:last-child {
    padding: 0;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] .contract-schedule-row-actions {
    min-width: 0;
    height: 100%;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 8px;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] .contract-schedule-row-status {
    flex: 0 1 auto;
    min-width: 0;
    color: var(--primary-deep);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] .contract-schedule-row-actions .secondary-button {
    min-height: 28px;
    padding: 0 9px;
    border-radius: 6px;
    gap: 5px;
}

.records-table.contract-schedule-table[data-quick-edit-grid="true"] .contract-schedule-row-actions .secondary-button .app-icon {
    font-size: 1rem;
}

.records-table[data-quick-edit-table="number-series"] {
    table-layout: fixed;
    min-width: 1440px;
}

.records-table[data-quick-edit-table="number-series"] .number-series-col-number {
    width: 140px;
}

.records-table[data-quick-edit-table="number-series"] .number-series-col-type {
    width: 140px;
}

.records-table[data-quick-edit-table="number-series"] .number-series-col-object {
    width: 210px;
}

.records-table[data-quick-edit-table="number-series"] .number-series-col-series,
.records-table[data-quick-edit-table="number-series"] .number-series-col-format {
    width: 210px;
}

.records-table[data-quick-edit-table="number-series"] .number-series-col-step {
    width: 120px;
}

.records-table[data-quick-edit-table="number-series"] .number-series-col-last,
.records-table[data-quick-edit-table="number-series"] .number-series-col-next {
    width: 150px;
}

.records-table[data-quick-edit-table="number-series"] .number-series-col-status {
    width: 168px;
}

.records-table[data-quick-edit-table="number-series"] .quick-edit-cell,
.records-table[data-quick-edit-table="number-series"] .record-primary,
.records-table[data-quick-edit-table="number-series"] .quick-edit-status {
    min-width: 0;
}

.records-table[data-quick-edit-table="number-series"] .quick-edit-input {
    min-width: 0;
}

.analysis-region-card .records-head {
    margin-bottom: 0;
}

.analysis-region-edit-form {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.analysis-region-edit-form .auth-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analysis-region-create-section {
    gap: 14px;
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
}

.analysis-region-create-section .contact-card-section-head {
    align-items: center;
}

.analysis-region-create-section .contact-card-section-copy {
    gap: 8px;
}

.analysis-region-create-section .contact-card-section-copy h3 {
    font-size: 1.12rem;
}

.analysis-region-create-grid {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
    gap: 12px 14px;
}

.analysis-region-create-grid .field-group {
    gap: 6px;
}

.analysis-region-create-grid input {
    min-height: 38px;
    padding: 0 12px;
}

.analysis-region-create-grid .page-filter-actions {
    align-self: end;
    justify-content: flex-end;
}

.analysis-region-table-wrap {
    min-height: clamp(320px, calc(100vh - 420px), 540px);
}

.app-page-shell-analysis-crop > .app-page-main {
    overflow-y: auto;
}

.analysis-crop-card {
    display: grid;
    gap: 18px;
}

.analysis-crop-product-mapping-card {
    display: grid;
    gap: 18px;
}

.analysis-crop-mapping-section {
    gap: 14px;
    margin-top: 0;
    padding: 18px 20px;
    border-radius: 18px;
}

.analysis-crop-record-table-wrap {
    margin-top: 0;
}

.analysis-crop-import-dialog {
    width: min(620px, calc(100vw - 32px));
}

.analysis-crop-import-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.analysis-crop-import-dialog-head .eyebrow {
    margin: 0 0 6px;
}

.analysis-crop-import-dialog-close {
    flex: 0 0 auto;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
}

.analysis-crop-import-dialog-form {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.analysis-crop-import-dialog-grid {
    display: grid;
    gap: 14px;
}

.analysis-crop-import-dialog-mode {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 34px;
    margin: 0;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(0, 200, 111, 0.14);
    color: #0d8d53;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.analysis-crop-import-dialog-mode input {
    width: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    accent-color: #0d8d53;
}

.analysis-crop-mapping-table-wrap {
    margin-top: 0;
    max-height: 420px;
}

.analysis-crop-product-mapping-table-wrap {
    margin-top: 0;
    min-height: clamp(320px, calc(100vh - 420px), 560px);
}

.analysis-crop-product-mapping-form {
    display: block;
}

.analysis-crop-product-mapping-form .page-filter-select {
    min-width: 0;
}

.analysis-crop-product-mapping-form .app-select {
    width: 100%;
    --app-select-panel-gap: 4px;
    --app-select-options-max-height: 220px;
}

.analysis-crop-product-mapping-form .app-select-control {
    min-height: 44px;
    padding: 6px 38px 6px 12px;
    border-radius: var(--radius-control);
}

.analysis-crop-product-mapping-form .app-select-control::after {
    right: 14px;
}

.analysis-crop-product-mapping-form .app-select-current {
    min-width: 0;
}

.analysis-crop-product-mapping-form .app-select-current-primary {
    font-size: 0.96rem;
    line-height: 1.2;
}

.analysis-crop-product-mapping-form .app-select-current-secondary {
    font-size: 0.8rem;
    line-height: 1.15;
}

.analysis-crop-product-mapping-form .app-select-panel {
    z-index: 560;
}

.analysis-crop-product-yield-input {
    min-width: 0;
}

.analysis-crop-record-table-wrap > .records-table,
.analysis-crop-mapping-table-wrap > .records-table,
.analysis-crop-product-mapping-table-wrap > .records-table {
    border-collapse: separate;
    border-spacing: 0;
}

.analysis-crop-record-table-wrap > .records-table thead th,
.analysis-crop-mapping-table-wrap > .records-table thead th,
.analysis-crop-product-mapping-table-wrap > .records-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: inset 0 -1px 0 var(--border);
}

.analysis-crop-record-table-wrap .records-table[data-table-kind="standard"] tbody tr.analysis-crop-detail-row {
    cursor: default;
}

.analysis-crop-record-table-wrap .records-table[data-table-kind="standard"] tbody tr.analysis-crop-detail-row:hover {
    background: transparent;
}

.analysis-crop-record-table-wrap .records-table[data-table-kind="standard"] tbody tr[data-crop-area-row-open] {
    cursor: pointer;
}

.analysis-crop-status-skeleton {
    display: inline-flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    width: min(240px, 36vw);
}

.analysis-crop-skeleton-row td {
    padding-top: 14px;
    padding-bottom: 14px;
}

.analysis-crop-skeleton-table {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 1680px;
}

.analysis-crop-skeleton-line {
    display: grid;
    grid-template-columns: 70px 128px 150px 190px 86px 96px 106px 68px 96px 68px 118px 92px 210px;
    gap: 32px;
    align-items: center;
}

.analysis-crop-skeleton-bar {
    display: block;
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(223, 235, 228, 0.56) 0%,
            rgba(246, 251, 248, 0.78) 42%,
            rgba(223, 235, 228, 0.56) 100%
        );
    background-size: 260% 100%;
    animation: analysisCropSkeleton 3.4s var(--app-motion-soft) infinite alternate;
}

.analysis-crop-skeleton-bar.is-xs {
    width: 52%;
}

.analysis-crop-skeleton-bar.is-sm {
    width: 66%;
}

.analysis-crop-skeleton-bar.is-md {
    width: 78%;
}

.analysis-crop-skeleton-bar.is-lg {
    width: 88%;
}

.analysis-crop-skeleton-bar.is-xl {
    width: 96%;
}

.analysis-crop-skeleton-line:nth-child(2n) .analysis-crop-skeleton-bar {
    animation-delay: 0.18s;
}

.analysis-crop-skeleton-line:nth-child(3n) .analysis-crop-skeleton-bar {
    animation-delay: 0.34s;
}

@keyframes analysisCropSkeleton {
    0% {
        background-position: 92% 0;
        opacity: 0.84;
    }
    42% {
        background-position: 36% 0;
        opacity: 1;
    }
    100% {
        background-position: -18% 0;
        opacity: 0.88;
    }
}

.analysis-crop-record-table-wrap tr.is-open {
    background: rgba(224, 246, 232, 0.98);
    box-shadow: inset 4px 0 0 rgba(15, 107, 67, 0.9);
}

.analysis-crop-row-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.analysis-crop-row-chevron {
    color: var(--icon-soft);
    font-size: 1.05rem;
    transition: transform 0.18s ease;
}

.analysis-crop-row-link {
    min-width: 0;
    color: #22342c;
    font-weight: 700;
    text-decoration: none;
}

.analysis-crop-row-link:hover,
.analysis-crop-row-link:focus-visible {
    color: #0f6b43;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.analysis-crop-record-table-wrap tr[data-crop-area-row-open]:hover .analysis-crop-row-chevron,
.analysis-crop-record-table-wrap tr[data-crop-area-row-open]:focus-within .analysis-crop-row-chevron {
    color: var(--icon-strong);
}

tr.is-open .analysis-crop-row-chevron {
    transform: rotate(90deg);
    color: var(--icon-strong);
}

.analysis-crop-detail-row td {
    padding: 0 18px 16px;
    background: rgba(249, 252, 250, 0.96);
}

.analysis-crop-detail-panel {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(118, 143, 128, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
}

.analysis-crop-detail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.analysis-crop-detail-head h3 {
    margin: 0;
    font-size: 1rem;
}

.analysis-crop-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.analysis-crop-detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(118, 143, 128, 0.18);
    border-radius: 10px;
    background: rgba(246, 250, 248, 0.88);
}

.analysis-crop-detail-item strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.analysis-crop-detail-item span {
    flex: 0 0 auto;
    color: var(--text-soft);
    white-space: nowrap;
}

.app-page-shell-analysis-crop-detail > .app-page-main {
    overflow-y: auto;
}

.analysis-crop-detail-card {
    display: grid;
    gap: 18px;
}

.analysis-crop-detail-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(118, 143, 128, 0.18);
    border-radius: 14px;
    background: rgba(246, 250, 248, 0.88);
}

.analysis-crop-detail-search {
    width: min(420px, 100%);
}

.analysis-crop-detail-table-wrap {
    margin-top: 0;
    width: max-content;
    max-width: 100%;
    max-height: min(620px, calc(100vh - 330px));
}

.analysis-crop-detail-year-table {
    width: max-content;
    min-width: min(100%, 560px);
    table-layout: fixed;
}

.analysis-crop-detail-crop-col {
    width: 280px;
}

.analysis-crop-detail-year-col {
    width: 140px;
}

.analysis-crop-detail-year-table th:first-child,
.analysis-crop-detail-year-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 280px;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.98);
}

.analysis-crop-detail-year-table thead th:first-child {
    z-index: 4;
}

.analysis-crop-detail-year-table th:not(:first-child),
.analysis-crop-detail-year-table td:not(:first-child) {
    min-width: 132px;
    text-align: right;
    white-space: nowrap;
}

.analysis-crop-detail-year-heading .table-heading {
    justify-content: flex-end;
}

.analysis-crop-detail-crop-cell strong {
    overflow-wrap: anywhere;
}

.analysis-crop-detail-area-cell {
    color: #22342c;
    font-weight: 700;
}

.analysis-crop-detail-area-cell.is-empty-value {
    color: var(--text-soft);
    font-weight: 600;
}

.analysis-crop-detail-window-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.analysis-crop-detail-filter-empty[hidden] {
    display: none;
}

.analysis-crop-detail-side-panel {
    gap: 18px;
}

.analysis-crop-detail-meta-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.analysis-crop-detail-meta-list > div {
    display: grid;
    grid-template-columns: minmax(110px, 0.82fr) minmax(0, 1fr);
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid rgba(118, 143, 128, 0.16);
}

.analysis-crop-detail-meta-list > div:last-child {
    border-bottom: 0;
}

.analysis-crop-detail-meta-list dt {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.analysis-crop-detail-meta-list dd {
    min-width: 0;
    margin: 0;
    color: #22342c;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.analysis-crop-detail-back-link {
    justify-content: center;
}

.records-table[data-quick-edit-table="analysis-regions"] th,
.records-table[data-quick-edit-table="analysis-regions"] td {
    padding: 12px 14px;
}

.records-table[data-quick-edit-table="analysis-regions"] .quick-edit-input {
    min-height: 38px;
    padding: 0 12px;
}

.records-table tbody tr.is-selected {
    background: rgba(224, 246, 232, 0.98);
    box-shadow: inset 4px 0 0 rgba(15, 107, 67, 0.9);
}

.records-table tbody tr.is-selected:hover {
    background: rgba(224, 246, 232, 0.98);
}

.permission-tree-card form {
    display: grid;
    gap: 22px;
}

.permission-tree-toolbar {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
}

.permission-tree-toolbar-copy {
    display: grid;
    gap: 10px;
}

.permission-tree-sync-status {
    margin-right: 0;
}

.permission-tree-toolbar-copy .eyebrow,
.permission-tree-toolbar-copy .lead,
.permission-tree-toolbar-copy h2 {
    margin: 0;
}

.permission-tree-toolbar-copy h2 {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    letter-spacing: -0.03em;
}

.permission-tree-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.permission-tree,
.permission-tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.permission-tree {
    display: grid;
    gap: 14px;
}

.permission-tree-children {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    margin-left: 26px;
    padding-left: 18px;
    border-left: 1px dashed rgba(24, 57, 42, 0.16);
}

.permission-tree-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.permission-tree-toggle,
.permission-tree-toggle-spacer {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
}

.permission-tree-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(24, 57, 42, 0.16);
    border-radius: 999px;
    background: rgba(237, 244, 239, 0.95);
    color: var(--icon-strong);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.permission-tree-toggle:hover,
.permission-tree-toggle:focus-visible {
    border-color: rgba(15, 107, 67, 0.3);
    background: rgba(217, 241, 227, 0.98);
    transform: translateY(-1px);
}

.permission-tree-toggle .app-icon {
    font-size: 1.15rem;
}

.permission-tree-node-collapsed > .permission-tree-item {
    border-style: solid;
}

.permission-tree-node-active > .permission-tree-item {
    border-color: rgba(15, 107, 67, 0.3);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 250, 246, 0.96));
}

.permission-tree-node-mixed > .permission-tree-item {
    border-style: dashed;
    border-color: rgba(125, 110, 74, 0.28);
}

.permission-tree-item:hover {
    border-color: rgba(15, 107, 67, 0.26);
    box-shadow: 0 14px 28px rgba(34, 77, 57, 0.06);
    transform: translateY(-1px);
}

.permission-tree-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary-deep);
    flex-shrink: 0;
}

.permission-tree-content {
    display: grid;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.permission-tree-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.permission-tree-head strong {
    font-size: 1rem;
}

.permission-code-badge,
.permission-direct-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.permission-code-badge {
    background: rgba(237, 244, 239, 0.95);
    color: var(--text);
}

.permission-direct-badge {
    background: rgba(0, 200, 111, 0.14);
    color: var(--icon-strong);
}

.permission-tree-description {
    color: var(--text-soft);
    line-height: 1.55;
}

.permission-scope-control {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 270px;
    max-width: 330px;
}

.permission-scope-control .app-select {
    width: 100%;
    min-width: 0;
}

.permission-scope-control .app-select.is-open {
    z-index: 60;
}

.permission-scope-control > span {
    color: var(--text-soft);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.permission-scope-select {
    min-width: 0;
    width: 100%;
    min-height: 40px;
    padding: 0 36px 0 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background-color: #fff;
    color: var(--text);
    font: inherit;
    font-weight: 700;
}

.permission-scope-control .app-select-control {
    min-height: 48px;
    padding: 10px 46px 10px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, rgba(247, 250, 248, 0.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.permission-scope-control .app-select-current-primary {
    font-weight: 800;
}

.permission-scope-control .app-select-panel {
    padding: 6px;
    border-color: rgba(15, 107, 67, 0.18);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(34, 77, 57, 0.16);
}

.permission-scope-control .app-select-option {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 12px;
}

.permission-scope-control .app-select-option.is-selected {
    background: rgba(0, 200, 111, 0.14);
}

.permission-scope-control small {
    color: var(--text-soft);
    line-height: 1.45;
}

.record-primary,
.record-stack {
    display: grid;
    gap: 6px;
}

.record-primary span,
.record-primary small,
.record-stack small {
    color: var(--text-soft);
}

.record-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-commission-form {
    display: grid;
    gap: 10px;
    min-width: 290px;
}

.user-commission-inputs {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.user-commission-form .field-group label {
    margin-bottom: 6px;
    font-size: 0.8rem;
}

.user-commission-form .field-group input {
    padding: 10px 12px;
    border-radius: 14px;
}

.user-commission-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-commission-actions .secondary-button {
    padding: 10px 14px;
}

.user-commission-form[data-auto-sync-enabled="true"] .user-commission-actions {
    display: none;
}

.user-commission-form[data-save-state="saving"] .field-group input {
    border-color: rgba(24, 152, 90, 0.28);
}

.user-commission-form[data-save-state="error"] .field-group input {
    border-color: rgba(210, 74, 74, 0.34);
    background: rgba(255, 245, 245, 0.98);
}

.user-row-actions {
    display: flex;
    justify-content: flex-end;
    min-width: 112px;
}

.user-delete-form {
    margin: 0;
}

.user-delete-button {
    padding: 10px 12px;
    border-color: rgba(196, 77, 77, 0.28);
    color: #9f2f2f;
    background: rgba(255, 248, 248, 0.96);
}

.user-delete-button:hover,
.user-delete-button:focus-visible {
    border-color: rgba(196, 77, 77, 0.44);
    background: rgba(255, 239, 239, 0.98);
}

.user-delete-button .material-symbols-outlined {
    color: var(--error);
}

.user-delete-button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.user-commission-save-status[data-status="saving"],
.user-commission-save-status[data-status="saved"] {
    color: var(--text);
}

@media (max-width: 1280px) {
    .user-commission-inputs {
        grid-template-columns: 1fr;
    }
}

.matching-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.matching-results-head-side {
    display: grid;
    justify-items: end;
    gap: 12px;
    min-width: 0;
}

.matching-results-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.matching-selection-status {
    justify-self: end;
    text-align: right;
    max-width: min(560px, 100%);
}

.matching-table th:nth-child(1),
.matching-table td:nth-child(1),
.matching-table th:nth-child(2),
.matching-table td:nth-child(2) {
    width: 20%;
}

.matching-table th:nth-child(3),
.matching-table td:nth-child(3),
.matching-table th:nth-child(4),
.matching-table td:nth-child(4) {
    width: 14%;
}

.matching-table th:nth-child(5),
.matching-table td:nth-child(5) {
    width: 8%;
}

.matching-table th:nth-child(6),
.matching-table td:nth-child(6) {
    width: 8%;
}

.matching-table th:nth-child(7),
.matching-table td:nth-child(7) {
    width: 16%;
}

.matching-table th,
.matching-table td {
    padding: 12px 10px;
    vertical-align: top;
    overflow-wrap: break-word;
}

.matching-table th {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.matching-summary-row {
    cursor: pointer;
}

.matching-summary-row td {
    background: rgba(251, 253, 251, 0.98);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.matching-summary-row:hover td,
.matching-summary-row:focus-within td {
    background: rgba(239, 247, 241, 0.98);
}

.matching-summary-row.is-selected td {
    background: rgba(224, 246, 232, 0.98);
}

.matching-summary-row.is-selected td:first-child {
    box-shadow: inset 4px 0 0 rgba(15, 107, 67, 0.9);
}

.matching-summary-row.is-selected:hover td,
.matching-summary-row.is-selected:focus-within td {
    background: rgba(224, 246, 232, 0.98);
}

.matching-summary-row:focus-visible {
    outline: none;
}

.matching-record-primary {
    gap: 8px;
}

.matching-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.matching-wrap-text {
    white-space: normal;
    line-height: 1.6;
}

.matching-user-line {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.8rem;
    line-height: 1.35;
}

.matching-profit-cell {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.matching-row-open-button {
    max-width: 100%;
    width: fit-content;
    padding: 8px 12px;
}

.matching-table .record-primary,
.matching-table .record-stack {
    min-width: 0;
}

.matching-table .status-pill,
.matching-table .inventory-meta-pill-group {
    max-width: 100%;
    min-height: 0;
    padding: 6px 10px;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    white-space: normal;
    line-height: 1.25;
}

.matching-row-open-button .material-symbols-outlined {
    transition: transform 0.2s ease;
}

.matching-detail-panel {
    display: grid;
    gap: 18px;
    margin-top: -1px;
    padding: 22px;
    border: 1px solid rgba(23, 48, 36, 0.08);
    border-radius: 0 0 24px 24px;
    background: linear-gradient(180deg, rgba(244, 249, 246, 0.99), rgba(252, 253, 252, 0.99));
}

.matching-detail-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.matching-detail-header h3 {
    margin: 0;
    font-size: 1.12rem;
}

.matching-detail-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.matching-detail-card,
.matching-formula-card,
.matching-cost-card {
    border: 1px solid rgba(23, 48, 36, 0.08);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
}

.matching-detail-card {
    padding: 18px 20px;
}

.matching-detail-card strong {
    display: block;
    margin-bottom: 8px;
}

.matching-detail-price {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

.matching-cost-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.matching-cost-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(248, 251, 248, 0.98), rgba(238, 245, 241, 0.98));
}

.matching-cost-label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.matching-cost-card strong {
    font-size: 1rem;
}

.matching-cost-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.45;
}

.matching-parameter-comparison {
    display: grid;
    gap: 10px;
}

.matching-parameter-comparison-head h4 {
    margin: 0;
    color: rgba(23, 48, 36, 0.86);
    font-size: 1rem;
    font-weight: 700;
}

.matching-parameter-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.98);
}

.matching-parameter-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.matching-parameter-table th,
.matching-parameter-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(23, 48, 36, 0.08);
    text-align: left;
    vertical-align: middle;
    line-height: 1.35;
}

.matching-parameter-table th {
    background: rgba(244, 249, 246, 0.98);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.matching-parameter-table tbody tr:last-child td {
    border-bottom: 0;
}

.matching-parameter-table td strong {
    color: var(--text);
    font-size: 0.96rem;
}

.matching-parameter-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.matching-parameter-status-success {
    background: rgba(0, 200, 111, 0.14);
    color: #0d8d53;
}

.matching-parameter-status-danger {
    background: rgba(205, 62, 62, 0.12);
    color: #a42b2b;
}

.matching-parameter-status-neutral {
    background: rgba(237, 244, 239, 0.95);
    color: var(--text-soft);
}

.matching-parameter-empty {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(248, 251, 248, 0.98);
    color: var(--text-soft);
    line-height: 1.45;
}

.matching-formula-card {
    padding: 18px 20px;
    background: rgba(247, 250, 248, 0.98);
}

.matching-formula-text {
    margin: 0;
    color: var(--text);
    font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.7;
    white-space: normal;
    word-break: break-word;
}

.matching-formula-breakdown {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.matching-formula-breakdown p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.55;
}

.matching-detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.matching-accept-form {
    display: inline-flex;
}

@media (max-width: 1120px) {
    .matching-detail-grid,
    .matching-cost-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .matching-detail-grid,
    .matching-cost-grid {
        grid-template-columns: 1fr;
    }

    .matching-parameter-table {
        display: block;
        min-width: 0;
    }

    .matching-parameter-table thead {
        display: none;
    }

    .matching-parameter-table tbody {
        display: grid;
    }

    .matching-parameter-table tr {
        display: grid;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(23, 48, 36, 0.08);
    }

    .matching-parameter-table tr:last-child {
        border-bottom: 0;
    }

    .matching-parameter-table td {
        display: grid;
        grid-template-columns: minmax(94px, 32%) minmax(0, 1fr);
        gap: 10px;
        padding: 6px 0;
        border-bottom: 0;
        word-break: break-word;
    }

    .matching-parameter-table td::before {
        content: attr(data-label);
        color: var(--text-soft);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
}

.record-role-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.record-role-pill,
.status-pill-muted {
    background: rgba(237, 244, 239, 0.95);
    color: var(--text);
}

.status-pill-success {
    background: rgba(0, 200, 111, 0.14);
    color: #0d8d53;
}

.status-pill-warning {
    background: rgba(232, 194, 106, 0.16);
    color: #8f5c00;
}

.transaction-list-table {
    min-width: 1180px;
}

.transaction-list-table th,
.transaction-list-table td {
    padding: 8px 12px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.15;
}

.transaction-list-table th.is-sortable {
    padding-right: 32px;
}

.transaction-list-table th.is-sortable::after {
    right: 12px;
}

.transaction-list-table .transaction-list-cell {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-list-table .transaction-list-cell-wide {
    max-width: 320px;
}

.transaction-list-table .transaction-list-cell-location {
    max-width: 280px;
}

.transaction-list-table .transaction-list-cell-price {
    max-width: 96px;
}

.transaction-list-table .transaction-list-cell-delivery {
    max-width: 170px;
}

.transaction-list-table .status-pill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 0.74rem;
    line-height: 1;
}

.transport-orders-table th.is-sortable {
    padding: 10px 12px;
    vertical-align: middle;
}

.transport-orders-table .table-heading {
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 6px;
    color: var(--color-neutral-foreground-3);
    font-size: 0.78rem;
    line-height: 1.15;
    white-space: nowrap;
}

.transport-orders-table .table-heading > span:not(.material-symbols-outlined):not(.app-icon) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transport-orders-table .table-heading .material-symbols-outlined {
    color: rgba(36, 36, 36, 0.62);
    font-size: 1rem;
}

.records-table-wrap:has(.transport-orders-table-scroll),
.transport-orders-table-scroll {
    scrollbar-gutter: auto;
}

.transport-orders-table th.is-sortable::after {
    content: none;
}

.transport-orders-table th.is-sortable .table-heading::after {
    content: '↕';
    order: 2;
    color: rgba(23, 48, 36, 0.42);
    flex: 0 0 auto;
    font-size: 0.72rem;
    line-height: 1;
}

.transport-orders-table th[data-sort-direction="asc"] .table-heading::after {
    content: '↑';
    color: var(--icon-strong);
}

.transport-orders-table th[data-sort-direction="desc"] .table-heading::after {
    content: '↓';
    color: var(--icon-strong);
}

.transport-orders-table .column-filter-toggle {
    position: static;
    order: 3;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-left: 2px;
    border-radius: 5px;
    transform: none;
    vertical-align: middle;
}

.transport-orders-table .column-filter-toggle .material-symbols-outlined {
    font-size: 0.94rem;
}

.transaction-card-parameters-table {
    min-width: 760px;
}

.transaction-card-parameters-table td {
    vertical-align: middle;
}

.inventory-products-table td {
    vertical-align: middle;
}

.inventory-products-table td:nth-child(2) {
    min-width: 300px;
}

.inventory-meta-pill,
.inventory-meta-pill-group {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(222, 236, 246, 0.98);
    color: #28546d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.inventory-meta-pill-group {
    background: rgba(239, 244, 223, 0.98);
    color: #5e6e1d;
}

.inventory-date-stack strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.inventory-parameters-section {
    gap: 18px;
}

.inventory-parameter-add-card {
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(248, 251, 248, 0.98);
}

.inventory-parameter-add-grid {
    align-items: end;
}

.inventory-parameter-add-action {
    display: flex;
    align-items: end;
}

.inventory-parameter-add-action .primary-button {
    width: 100%;
}

.inventory-parameter-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.inventory-parameter-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(40, 84, 109, 0.12);
    border-radius: 999px;
    background: rgba(245, 249, 252, 0.98);
    color: #28546d;
    font-size: 0.88rem;
    font-weight: 700;
}

.inventory-parameter-summary-pill strong {
    font-size: 1rem;
}

.inventory-parameter-summary-pill-active {
    border-color: rgba(15, 107, 67, 0.12);
    background: rgba(239, 247, 241, 0.98);
    color: #0f6b43;
}

.inventory-parameter-summary-pill-required {
    border-color: rgba(163, 91, 18, 0.14);
    background: rgba(253, 245, 232, 0.98);
    color: #a35b12;
}

.inventory-parameters-table td {
    vertical-align: middle;
}

.inventory-parameters-table tbody tr {
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.inventory-parameters-table tbody tr.is-parameter-required {
    background: rgba(253, 245, 232, 0.52);
    box-shadow: inset 4px 0 0 rgba(163, 91, 18, 0.68);
}

.inventory-parameter-primary {
    gap: 10px;
}

.inventory-parameter-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inventory-parameter-desired-cell {
    display: grid;
    gap: 8px;
}

.inventory-parameter-desired {
    display: grid;
    gap: 8px;
}

.inventory-parameter-desired-select,
.inventory-parameter-range-input {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-weight: 600;
}

.inventory-parameter-desired .app-select {
    width: 100%;
    --app-select-panel-gap: 6px;
    --app-select-options-max-height: 220px;
}

.inventory-parameter-desired .app-select-control {
    min-height: 42px;
    padding: 0 38px 0 14px;
    border-radius: 14px;
}

.inventory-parameter-desired-select:focus,
.inventory-parameter-range-input:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.56);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.inventory-parameter-desired-select:disabled,
.inventory-parameter-range-input:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.inventory-parameter-range {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inventory-parameter-desired-hint {
    margin-top: 0;
}

.inventory-parameter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    line-height: 1.35;
}

.inventory-parameter-toggle input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-deep);
    flex-shrink: 0;
}

.inventory-parameter-toggle-required {
    color: #8f5c00;
}

.inventory-parameters-table .page-filter-actions {
    justify-content: flex-start;
}

.empty-state {
    display: grid;
    gap: 12px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.quick-edit-cell,
.quick-edit-status {
    display: grid;
    gap: 8px;
}

.quick-edit-input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: text;
}

.quick-edit-input:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.56);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.quick-edit-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text);
}

.quick-edit-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-deep);
}

.quick-edit-status-button {
    width: fit-content;
    border: 0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.quick-edit-status-button:hover,
.quick-edit-status-button:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(34, 77, 57, 0.08);
    filter: saturate(1.05);
}

.offer-lines-section {
    gap: 22px;
}

.offer-line-add-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px dashed rgba(15, 107, 67, 0.24);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(252, 255, 253, 0.98), rgba(244, 249, 246, 0.98));
}

.offer-line-add-grid {
    grid-template-columns: minmax(0, 1fr);
}

.offer-line-add-actions {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.offer-line-add-actions .field-hint {
    margin: 0;
}

.offer-lines-table-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0;
    overflow: auto;
    overscroll-behavior-x: contain;
    padding: 10px 12px 14px;
    scrollbar-gutter: stable;
}

.offer-lines-table {
    min-width: 1500px;
    table-layout: fixed;
}

.offer-lines-table th,
.offer-lines-table td {
    padding: 14px 10px;
}

.offer-lines-table th {
    white-space: nowrap;
    font-size: 0.84rem;
}

.offer-lines-table tbody tr.offer-line-live-changed td {
    background: rgba(250, 242, 215, 0.98);
    box-shadow: inset 4px 0 0 rgba(183, 124, 14, 0.8);
}

.offer-lines-table tbody tr.offer-line-live-changed:hover td {
    background: rgba(250, 242, 215, 0.98);
}

.offer-lines-table .app-select-control {
    min-height: 60px;
    padding: 14px 44px 14px 16px;
    border-radius: 18px;
}

.offer-lines-table .app-select {
    position: relative;
    z-index: 1;
    --app-select-panel-gap: 10px;
}

.offer-lines-table .app-select.is-open {
    z-index: 260;
}

.offer-lines-table .app-select-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    box-shadow: 0 24px 52px rgba(34, 77, 57, 0.18);
}

.offer-lines-table .app-select-options {
    order: 1;
}

.offer-lines-table .app-select-empty {
    order: 2;
    margin-bottom: 0;
}

.offer-lines-table .app-select-search {
    order: 3;
    margin-top: 4px;
    margin-bottom: 0;
}

.offer-lines-table .app-select.is-open .app-select-panel {
    animation: offer-line-select-panel-rise 0.16s ease;
}

.offer-lines-table .app-select-current {
    gap: 4px;
}

.offer-lines-table .app-select-current-primary,
.offer-lines-table .app-select-current-secondary {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.24;
}

.offer-lines-table select[data-offer-line-location-select] + .app-select .app-select-control,
.offer-lines-table .app-select.is-open .app-select-control {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.offer-lines-table select[data-offer-line-location-select] + .app-select .app-select-current-primary,
.offer-lines-table .app-select.is-open .app-select-current-primary,
.offer-lines-table .app-select.is-open .app-select-current-secondary {
    white-space: normal;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.offer-lines-table select[data-offer-line-location-select] + .app-select .app-select-current-primary,
.offer-lines-table .app-select.is-open .app-select-current-primary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.94rem;
    line-height: 1.18;
}

.offer-lines-table .app-select.is-open .app-select-current-secondary {
    font-size: 0.88rem;
    line-height: 1.2;
}

.offer-lines-table .app-select-current-primary {
    font-size: 1.04rem;
    font-weight: 700;
}

.offer-lines-table .app-select-current-secondary {
    font-size: 0.96rem;
}

.offer-lines-table .quick-edit-input,
.offer-lines-table .offer-line-delivery-button {
    min-height: 54px;
    border-radius: 16px;
    font-size: 1rem;
}

.offer-lines-table .offer-line-delivery-button {
    padding: 0 12px;
}

.offer-lines-table[data-quick-edit-grid="true"] th,
.offer-lines-table[data-quick-edit-grid="true"] td {
    height: 36px;
    padding: 0;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-product-cell,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-cell,
.offer-lines-table[data-quick-edit-grid="true"] .record-primary,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-action-cell,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control {
    height: 100%;
    min-width: 0;
    gap: 0;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-product-cell,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-cell {
    display: flex;
    align-items: center;
    padding: 0 8px;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control {
    grid-template-columns: minmax(82px, 1fr) 86px;
    align-items: center;
    width: 100%;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select {
    width: 100%;
    min-width: 0;
    --app-select-options-max-height: 176px;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-control,
.offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select .app-select-control,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control .app-select-control,
.offer-lines-table[data-quick-edit-grid="true"] .quick-edit-input,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-date-input {
    min-height: 30px;
    padding: 0 10px;
    border-color: transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0.9rem;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-control,
.offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select .app-select-control,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control .app-select-control {
    padding-right: 34px;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select.is-open .app-select-control,
.offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select.is-open .app-select-control {
    min-height: 30px;
    padding: 0 34px 0 10px;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-control::after {
    content: "expand_more";
    top: 50%;
    right: 8px;
    width: 18px;
    height: 18px;
    border: 0;
    color: #3f574d;
    display: block;
    font-family: "Material Symbols Outlined";
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0;
    line-height: 1;
    opacity: 0.9;
    text-transform: none;
    transform: translateY(-50%);
    transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select.is-open .app-select-control::after {
    color: #0078d4;
    opacity: 1;
    transform: translateY(-50%) rotate(180deg);
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-panel {
    gap: 4px;
    padding: 6px;
    border-radius: 10px;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-options {
    display: grid;
    grid-auto-rows: max-content;
    align-items: stretch;
    gap: 2px;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-option {
    flex: 0 0 auto;
    height: auto;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.88rem;
    line-height: 1.25;
    white-space: normal;
    box-sizing: border-box;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-option-label,
.offer-lines-table[data-quick-edit-grid="true"] .app-select-option-description {
    display: block;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-search {
    margin-top: 2px;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-search-input {
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-inline-search-input {
    min-height: 30px;
    padding: 0 34px 0 10px;
    border-color: rgba(0, 120, 212, 0.24);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    font-size: 0.9rem;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-inline-search-input:focus {
    border-color: rgba(0, 120, 212, 0.32);
    box-shadow: none;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-control:hover,
.offer-lines-table[data-quick-edit-grid="true"] .app-select-control:focus-visible {
    outline: none;
    border-color: rgba(0, 120, 212, 0.24);
    background: #fff;
    box-shadow: none;
}

.offer-lines-table[data-quick-edit-grid="true"] .quick-edit-input:hover,
.offer-lines-table[data-quick-edit-grid="true"] .quick-edit-input:focus,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-date-input:hover,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-date-input:focus {
    outline: none;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-date-control {
    height: 100%;
    min-height: 34px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 6px;
    padding: 0 8px;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-date-input {
    text-align: right;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-delivery-button {
    width: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border-color: transparent;
    border-radius: 4px;
    background: transparent;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-delivery-button:hover {
    border-color: rgba(0, 120, 212, 0.18);
    background: rgba(0, 120, 212, 0.06);
    box-shadow: none;
    transform: none;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-current {
    min-width: 0;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-current-primary,
.offer-lines-table[data-quick-edit-grid="true"] .app-select-current-secondary,
.offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select .app-select-current-primary,
.offer-lines-table[data-quick-edit-grid="true"] .app-select.is-open .app-select-current-primary {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-line-clamp: unset;
    font-size: 0.88rem;
    line-height: 1.15;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-current-secondary,
.offer-lines-table[data-quick-edit-grid="true"] .field-hint {
    display: none;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control .app-select-current-primary {
    overflow: visible;
    text-overflow: clip;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control .app-select-control {
    padding-left: 8px;
    padding-right: 26px;
}

.offer-lines-table[data-quick-edit-grid="true"] .offer-line-parameter-button,
.offer-lines-table[data-quick-edit-grid="true"] .offer-line-remove-button {
    width: 30px;
    min-width: 30px;
    min-height: 28px;
    padding: 0;
    border-radius: 4px;
}

.offer-lines-table[data-quick-edit-grid="true"] th:nth-child(1),
.offer-lines-table[data-quick-edit-grid="true"] th:nth-child(3),
.offer-lines-table[data-quick-edit-grid="true"] th:nth-child(9),
.offer-lines-table[data-quick-edit-grid="true"] td.offer-line-parameter-toggle-cell,
.offer-lines-table[data-quick-edit-grid="true"] td[data-label="Status"],
.offer-lines-table[data-quick-edit-grid="true"] td.offer-line-remove-cell {
    text-align: center;
}

.offer-lines-table[data-quick-edit-grid="true"] td.offer-line-parameter-toggle-cell {
    padding: 0;
}

.offer-lines-table[data-quick-edit-grid="true"] td.offer-line-parameter-toggle-cell .offer-line-parameter-button {
    margin: 0 auto;
}

.offer-lines-table[data-quick-edit-grid="true"] td.offer-line-remove-cell {
    padding: 0;
}

.offer-lines-table[data-quick-edit-grid="true"] td.offer-line-remove-cell .offer-line-remove-button {
    margin: 0 auto;
}

.offer-lines-table[data-quick-edit-grid="true"] td[data-label="Status"] .inventory-meta-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: calc(100% - 12px);
    margin: 0 auto;
}

.offer-lines-table[data-quick-edit-grid="true"] .inventory-meta-pill {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0;
    white-space: nowrap;
}

.offer-lines-table[data-quick-edit-grid="true"] .quick-edit-grid-offer-line-add-cell {
    padding: 0 !important;
    background: #f8fbff;
}

.quick-edit-grid-offer-line-add-card {
    gap: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.quick-edit-grid-offer-line-add-card .offer-line-add-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1fr);
}

.quick-edit-grid-offer-line-add-card .field-group {
    padding: 0 8px;
}

.quick-edit-grid-offer-line-add-card label,
.quick-edit-grid-offer-line-add-card .field-hint {
    display: none;
}

.quick-edit-grid-offer-line-add-card .offer-line-add-actions {
    justify-content: flex-start;
    padding: 6px 8px 8px;
}

.quick-edit-grid-offer-line-add-card .primary-button {
    min-height: 28px;
    border-radius: 4px;
}

.offer-line-product-cell,
.offer-line-cell {
    position: relative;
    display: grid;
    gap: 8px;
}

.offer-line-price-control {
    display: grid;
    grid-template-columns: minmax(116px, 1fr) minmax(76px, 82px);
    gap: 6px;
    align-items: start;
}

.offer-line-price-control .app-select-control {
    min-height: 52px;
    padding: 12px 32px 12px 12px;
}

.offer-line-price-control .app-select-control::after {
    right: 12px;
}

.record-muted {
    display: block;
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.25;
}

.offer-line-inline-action {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
}

.offer-line-action-cell {
    vertical-align: middle;
}

.offer-line-parameter-toggle-cell {
    text-align: center;
}

.offer-line-parameter-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    white-space: nowrap;
}

.offer-line-remove-cell {
    text-align: right;
}

.offer-line-parameter-panel-row td {
    padding-top: 0;
    border-bottom: 0;
    background: transparent;
}

.offer-line-parameter-editor {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(15, 107, 67, 0.14);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(251, 255, 252, 0.98), rgba(244, 249, 246, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.offer-line-parameter-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.offer-line-parameter-editor-copy {
    display: grid;
    gap: 6px;
    max-width: 760px;
}

.offer-line-parameter-editor-copy .eyebrow,
.offer-line-parameter-editor-copy h4,
.offer-line-parameter-editor-copy .lead {
    margin: 0;
}

.offer-line-parameter-summary {
    margin-top: 0;
}

.offer-line-parameter-error[hidden] {
    display: none !important;
}

.offer-line-parameter-add-card {
    padding: 18px 20px;
}

.offer-line-parameter-add-grid {
    grid-template-columns: minmax(0, 1fr) 220px;
}

.offer-line-parameter-add-action {
    min-width: 0;
}

.offer-line-parameter-add-action .primary-button {
    width: 100%;
}

.offer-line-parameter-table-wrap {
    margin-top: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: visible;
}

.offer-line-parameters-table {
    min-width: 920px;
}

.offer-line-parameters-table td {
    vertical-align: top;
}

.offer-line-parameters-table .inventory-parameter-primary {
    min-width: 0;
}

.offer-line-parameters-table .page-filter-actions {
    justify-content: flex-start;
}

.offer-line-parameter-panel-row[hidden] {
    display: none !important;
}

.offer-line-delivery-button span:last-child {
    min-width: 0;
}

.offer-line-remove-button {
    width: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    justify-content: center;
    border-color: rgba(196, 77, 77, 0.18);
    color: var(--error);
}

.offer-line-remove-button:hover,
.offer-line-remove-button:focus-visible {
    border-color: rgba(196, 77, 77, 0.32);
    background: rgba(253, 244, 244, 0.98);
}

.offer-line-quantity-hint {
    min-height: 1.35rem;
}

.offer-line-input-invalid,
.offer-line-date-input-invalid {
    border-color: rgba(196, 77, 77, 0.34);
    box-shadow: 0 0 0 4px rgba(196, 77, 77, 0.1);
}

.offer-line-delivery-cell {
    position: relative;
    z-index: 1;
}

.offer-lines-table tr.is-delivery-picker-open .offer-line-delivery-cell {
    z-index: 260;
}

.offer-line-date-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    width: 100%;
}

.offer-line-date-input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-align: right;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.offer-line-date-input:hover,
.offer-line-date-input:focus {
    outline: none;
    border-color: rgba(0, 200, 111, 0.42);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.1);
}

.offer-line-delivery-button {
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.offer-line-delivery-button:hover,
.offer-line-delivery-button:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(0, 200, 111, 0.42);
    box-shadow: 0 10px 24px rgba(34, 77, 57, 0.08);
}

@keyframes offer-line-select-panel-rise {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.offer-line-delivery-picker {
    position: absolute;
    top: auto;
    bottom: calc(100% + 28px);
    right: 0;
    z-index: 260;
    width: min(720px, calc(100vw - 96px));
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.995);
    box-shadow: 0 26px 60px rgba(34, 77, 57, 0.16);
    transform-origin: bottom right;
}

.offer-lines-table tr.is-delivery-picker-open .offer-line-delivery-picker {
    animation: offer-line-select-panel-rise 0.16s ease;
}

.offer-line-delivery-picker[hidden] {
    display: none !important;
}

.offer-line-delivery-picker-head,
.offer-line-delivery-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.offer-line-delivery-picker-copy {
    display: grid;
    gap: 6px;
}

.offer-line-delivery-picker-copy .eyebrow,
.offer-line-delivery-picker-copy strong {
    margin: 0;
}

.offer-line-delivery-picker-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.offer-line-calendar-nav {
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
}

.offer-line-calendars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.offer-line-calendar-month {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 18px;
    background: rgba(247, 250, 248, 0.98);
}

.offer-line-calendar-heading {
    font-weight: 700;
    text-transform: capitalize;
    color: var(--text);
}

.offer-line-calendar-weekdays,
.offer-line-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.offer-line-calendar-weekdays span {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-soft);
}

.offer-line-calendar-day {
    min-height: 40px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.offer-line-calendar-day:hover,
.offer-line-calendar-day:focus-visible {
    outline: none;
    transform: translateY(-1px);
    background: rgba(15, 107, 67, 0.08);
}

.offer-line-calendar-day.is-outside-month {
    color: rgba(23, 48, 36, 0.38);
}

.offer-line-calendar-day.is-today {
    font-weight: 800;
    box-shadow: inset 0 0 0 2px rgba(15, 107, 67, 0.3);
}

.offer-line-calendar-day.is-in-range {
    background: rgba(0, 200, 111, 0.12);
    color: var(--primary-deep);
}

.offer-line-calendar-day.is-range-boundary {
    background: linear-gradient(135deg, rgba(15, 107, 67, 0.98), rgba(0, 200, 111, 0.82));
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 107, 67, 0.18);
}

.location-working-calendar-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 18px;
    align-items: stretch;
}

.location-working-calendar-main,
.location-working-day-panel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.location-working-day-panel {
    align-content: start;
}

.location-working-calendar-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.location-working-calendar-toolbar strong {
    flex: 1 1 180px;
    min-width: 0;
    font-size: 1.08rem;
    text-transform: capitalize;
}

.location-working-calendar-nav {
    min-width: 42px;
    min-height: 42px;
    justify-content: center;
    padding: 0;
}

.location-working-calendar-weekdays,
.location-working-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.location-working-calendar-weekdays span {
    text-align: center;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.location-working-calendar-day {
    display: grid;
    align-content: start;
    gap: 6px;
    min-height: 74px;
    padding: 10px;
    border: 1px solid rgba(24, 57, 42, 0.08);
    border-radius: 14px;
    background: rgba(247, 250, 248, 0.9);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.location-working-calendar-day:hover,
.location-working-calendar-day:focus-visible {
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(15, 107, 67, 0.28);
    background: rgba(239, 247, 241, 0.98);
    box-shadow: 0 12px 24px rgba(34, 77, 57, 0.08);
}

.location-working-calendar-day.is-outside-month {
    color: rgba(23, 48, 36, 0.42);
    background: rgba(247, 250, 248, 0.42);
}

.location-working-calendar-day.is-today {
    border-color: rgba(15, 107, 67, 0.28);
}

.location-working-calendar-day.is-selected {
    border-color: rgba(15, 107, 67, 0.46);
    box-shadow: 0 0 0 4px rgba(0, 200, 111, 0.12);
}

.location-working-calendar-day.has-exception {
    background: rgba(234, 248, 239, 0.98);
}

.location-working-calendar-day.has-exception.is-closed {
    background: rgba(253, 244, 244, 0.98);
    border-color: rgba(196, 77, 77, 0.18);
}

.location-working-calendar-day-number {
    font-size: 0.98rem;
    font-weight: 800;
}

.location-working-calendar-day-note {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(15, 107, 67, 0.1);
    color: var(--primary-deep);
    font-size: 0.72rem;
    font-weight: 800;
    white-space: nowrap;
}

.location-working-calendar-day.is-closed .location-working-calendar-day-note {
    background: rgba(196, 77, 77, 0.12);
    color: var(--error);
}

.location-working-day-time-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .location-working-calendar-shell {
        grid-template-columns: 1fr;
    }

    .location-working-calendar-day {
        min-height: 58px;
        padding: 8px;
    }

    .location-working-calendar-day-note {
        display: none;
    }

    .location-working-day-time-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1880px) {
    .offer-lines-section .offer-lines-table-wrap:not(:has(.offer-lines-table[data-quick-edit-grid="true"])) {
        overflow: visible;
        padding: 0;
        border: 0;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) {
        min-width: 0;
        table-layout: auto;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) colgroup,
    .offer-lines-table:not([data-quick-edit-grid="true"]) thead {
        display: none;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) tbody {
        display: grid;
        gap: 18px;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 20px;
        padding: 22px;
        border: 1px solid var(--border);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 34px rgba(34, 77, 57, 0.06);
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) td {
        display: grid;
        gap: 8px;
        padding: 0;
        border-bottom: 0;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) td::before {
        content: attr(data-label);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-soft);
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) td[data-label="Produkt"] {
        grid-column: 1 / -1;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) td.offer-line-parameter-toggle-cell {
        grid-column: 1;
        align-content: end;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) td[data-label="Usuń"] {
        justify-items: end;
        align-content: start;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) tbody tr[data-offer-line-parameter-panel-row] {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) tbody tr[data-offer-line-parameter-panel-row] td {
        grid-column: 1 / -1;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) tbody tr[data-offer-line-parameter-panel-row] td::before {
        display: none;
    }

    .offer-line-parameter-editor-head {
        flex-direction: column;
    }

    .offer-line-parameter-add-grid {
        grid-template-columns: 1fr;
    }

    .offer-lines-table[data-quick-edit-grid="true"] tbody tr {
        align-items: stretch;
        gap: 14px 18px;
        padding: 18px;
        border-radius: 18px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] th,
    .offer-lines-table[data-quick-edit-grid="true"] td {
        height: auto;
        min-width: 0;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td {
        gap: 6px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-product-cell,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-cell,
    .offer-lines-table[data-quick-edit-grid="true"] .record-primary,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-action-cell,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control {
        min-height: 0;
        padding: 0;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control {
        grid-template-columns: minmax(0, 1fr) minmax(72px, 80px);
        gap: 6px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] .quick-edit-input,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-date-input {
        min-height: 42px;
        padding: 0 12px;
        border: 1px solid rgba(24, 57, 42, 0.12);
        border-radius: 12px;
        background: #fff;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control .app-select-control {
        padding-right: 34px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .app-select.is-open .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select.is-open .app-select-control {
        min-height: 42px;
        padding: 0 34px 0 12px;
        border-radius: 12px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-date-control {
        height: auto;
        min-height: 42px;
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 6px;
        padding: 0;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-delivery-button {
        width: 36px;
        min-width: 36px;
        min-height: 42px;
        border: 1px solid rgba(24, 57, 42, 0.12);
        border-radius: 12px;
        background: #fff;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-parameter-button,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-remove-button {
        width: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 10px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td.offer-line-parameter-toggle-cell {
        justify-items: start;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td.offer-line-remove-cell {
        justify-items: end;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td.offer-line-parameter-toggle-cell .offer-line-parameter-button,
    .offer-lines-table[data-quick-edit-grid="true"] td.offer-line-remove-cell .offer-line-remove-button,
    .offer-lines-table[data-quick-edit-grid="true"] td[data-label="Status"] .inventory-meta-pill {
        margin: 0;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td[data-label="Status"] .inventory-meta-pill {
        justify-content: flex-start;
        max-width: 100%;
    }
}

@media (max-width: 1880px) {
    .offer-lines-section .offer-lines-table-wrap:has(.offer-lines-table[data-quick-edit-grid="true"]) {
        overflow: auto;
        overscroll-behavior-x: contain;
        padding: 8px 10px 12px;
        border: 1px solid var(--border);
        border-radius: var(--radius-surface);
        background: var(--panel);
        scrollbar-gutter: auto;
    }

    .offer-lines-table[data-quick-edit-grid="true"] {
        width: max(100%, 1386px);
        min-width: 1386px;
        table-layout: fixed;
    }

    .offer-lines-table[data-quick-edit-grid="true"] col:nth-child(1) {
        width: 136px !important;
    }

    .offer-lines-table[data-quick-edit-grid="true"] col:nth-child(2) {
        width: 296px !important;
    }

    .offer-lines-table[data-quick-edit-grid="true"] col:nth-child(3) {
        width: 48px !important;
    }

    .offer-lines-table[data-quick-edit-grid="true"] col:nth-child(4) {
        width: 250px !important;
    }

    .offer-lines-table[data-quick-edit-grid="true"] col:nth-child(5) {
        width: 100px !important;
    }

    .offer-lines-table[data-quick-edit-grid="true"] col:nth-child(6) {
        width: 180px !important;
    }

    .offer-lines-table[data-quick-edit-grid="true"] col:nth-child(7),
    .offer-lines-table[data-quick-edit-grid="true"] col:nth-child(8) {
        width: 150px !important;
    }

    .offer-lines-table[data-quick-edit-grid="true"] col:nth-child(9) {
        width: 76px !important;
    }

    .offer-lines-table[data-quick-edit-grid="true"] colgroup {
        display: table-column-group;
    }

    .offer-lines-table[data-quick-edit-grid="true"] thead {
        display: table-header-group;
    }

    .offer-lines-table[data-quick-edit-grid="true"] tbody {
        display: table-row-group;
    }

    .offer-lines-table[data-quick-edit-grid="true"] tbody tr,
    .offer-lines-table[data-quick-edit-grid="true"] tbody tr[data-offer-line-parameter-panel-row] {
        display: table-row;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .offer-lines-table[data-quick-edit-grid="true"] th,
    .offer-lines-table[data-quick-edit-grid="true"] td,
    .offer-lines-table[data-quick-edit-grid="true"] tbody tr[data-offer-line-parameter-panel-row] td {
        display: table-cell;
        height: 34px;
        padding: 0;
        border-right: 1px solid var(--color-neutral-stroke-subtle);
        border-bottom: 1px solid var(--color-neutral-stroke-subtle);
        background: #fff;
        vertical-align: middle;
    }

    .offer-lines-table[data-quick-edit-grid="true"] th:last-child,
    .offer-lines-table[data-quick-edit-grid="true"] td:last-child {
        border-right: 0;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td::before,
    .offer-lines-table[data-quick-edit-grid="true"] tbody tr[data-offer-line-parameter-panel-row] td::before {
        content: none;
        display: none;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td[data-label="Produkt"],
    .offer-lines-table[data-quick-edit-grid="true"] td.offer-line-parameter-toggle-cell,
    .offer-lines-table[data-quick-edit-grid="true"] td[data-label="Usuń"],
    .offer-lines-table[data-quick-edit-grid="true"] td[data-label="Akcje"],
    .offer-lines-table[data-quick-edit-grid="true"] tbody tr[data-offer-line-parameter-panel-row] td {
        grid-column: auto;
        align-content: normal;
        justify-items: normal;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-product-cell,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-cell,
    .offer-lines-table[data-quick-edit-grid="true"] .record-primary,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-action-cell,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control {
        height: 100%;
        min-height: 0;
        padding: 0;
        gap: 0;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-product-cell,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-cell {
        display: flex;
        align-items: center;
        padding: 0 8px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control {
        grid-template-columns: minmax(82px, 1fr) 76px;
        align-items: center;
        width: 100%;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] .quick-edit-input,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-date-input {
        min-height: 30px;
        padding: 0 10px;
        border-color: transparent;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        font-size: 0.9rem;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-price-control .app-select-control {
        padding-right: 34px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .app-select.is-open .app-select-control,
    .offer-lines-table[data-quick-edit-grid="true"] select[data-offer-line-location-select] + .app-select.is-open .app-select-control {
        min-height: 30px;
        padding: 0 34px 0 10px;
        border-radius: 0;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-date-control {
        height: 100%;
        min-height: 34px;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 6px;
        padding: 0 8px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-delivery-button {
        width: 28px;
        min-width: 28px;
        min-height: 28px;
        border-color: transparent;
        border-radius: 4px;
        background: transparent;
    }

    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-parameter-button,
    .offer-lines-table[data-quick-edit-grid="true"] .offer-line-remove-button {
        width: 30px;
        min-width: 30px;
        min-height: 28px;
        border-radius: 4px;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td.offer-line-parameter-toggle-cell,
    .offer-lines-table[data-quick-edit-grid="true"] td.offer-line-remove-cell {
        padding: 0;
        text-align: center;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td.offer-line-parameter-toggle-cell .offer-line-parameter-button,
    .offer-lines-table[data-quick-edit-grid="true"] td.offer-line-remove-cell .offer-line-remove-button {
        margin: 0 auto;
    }

    .offer-lines-table[data-quick-edit-grid="true"] td[data-label="Status"] .inventory-meta-pill {
        justify-content: center;
        margin: 0 auto;
    }
}

@media (max-height: 900px) and (min-width: 821px) {
    body.dashboard-embedded-window .offer-lines-section {
        gap: 14px;
        padding: 14px;
    }

    body.dashboard-embedded-window .offer-lines-section .contact-card-section-head,
    body.dashboard-embedded-window .offer-lines-section .contact-card-section-copy {
        gap: 8px;
    }

    body.dashboard-embedded-window .offer-lines-section .contact-card-section-copy p {
        line-height: 1.35;
    }

    body.dashboard-embedded-window .offer-lines-section .quick-edit-view-switch {
        margin-top: 6px;
    }
}

@media (max-width: 1680px) {
    .app-page-shell-matching {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .app-page-shell-matching > .app-page-main,
    .app-page-shell-matching > .app-page-side {
        overflow: visible;
        padding-right: 0;
    }

    .app-page-shell-matching > .app-page-side .app-page-side-panel {
        min-height: auto;
    }

    .app-page-shell-matching .app-page-stat-grid-sidebar {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 2200px) {
    .offer-card-shell.app-page-shell-split {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .offer-card-shell.app-page-shell-split > .app-page-main,
    .offer-card-shell.app-page-shell-split > .app-page-side {
        overflow: visible;
        padding-right: 0;
        scrollbar-gutter: auto;
    }

    .offer-card-shell.app-page-shell-split > .app-page-side .app-page-side-panel {
        min-height: auto;
    }

    .offer-card-shell .app-page-side-head {
        max-width: 960px;
    }

    .offer-card-shell .app-page-stat-grid-sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1480px) {
    body.dashboard-embedded-window .app-page-shell-split,
    body.dashboard-embedded-window .contact-card-layout,
    body.dashboard-embedded-window .accepted-logistics-card-layout,
    body.dashboard-embedded-window .location-card-layout-balanced {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    body.dashboard-embedded-window .app-page-shell-split > .app-page-main,
    body.dashboard-embedded-window .app-page-shell-split > .app-page-side,
    body.dashboard-embedded-window .contact-card-main,
    body.dashboard-embedded-window .contact-card-side,
    body.dashboard-embedded-window .accepted-logistics-card-layout .contact-card-main,
    body.dashboard-embedded-window .accepted-logistics-card-layout .contact-card-side {
        overflow: visible;
        padding-right: 0;
    }

    body.dashboard-embedded-window .app-page-shell-split > .app-page-side .app-page-side-panel,
    body.dashboard-embedded-window .contact-card-side-panel,
    body.dashboard-embedded-window .location-card-summary-panel,
    body.dashboard-embedded-window .accepted-logistics-card-panel {
        min-height: auto;
    }

    body.dashboard-embedded-window .location-card-side-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        height: auto;
        overflow: visible;
        gap: 16px;
    }
}

@media (max-width: 1280px) {
    .app-page-shell-matching .app-page-stat-grid-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .matching-results-head-side {
        justify-items: start;
    }

    .matching-selection-status {
        text-align: left;
    }

    .matching-table th,
    .matching-table td {
        padding: 10px 8px;
    }

    body.dashboard-embedded-window .app-page-stat-grid-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .offer-card-shell .app-page-stat-grid-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) tbody tr {
        grid-template-columns: 1fr;
    }

    .offer-lines-table[data-quick-edit-grid="true"] tbody tr {
        gap: 14px;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) td.offer-line-parameter-toggle-cell,
    .offer-lines-table:not([data-quick-edit-grid="true"]) td[data-label="Usuń"],
    .offer-lines-table:not([data-quick-edit-grid="true"]) td[data-label="Akcje"] {
        justify-items: start;
    }
}

@media (max-width: 960px) {
    .app-page-shell-matching .app-page-stat-grid-sidebar {
        grid-template-columns: 1fr;
    }

    .matching-table {
        min-width: 980px;
    }
}

@media (max-width: 720px) {
    body.dashboard-embedded-window.app-page-body {
        padding: 12px;
    }
}

@media (max-width: 1400px) {
    .dashboard-start-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .analysis-region-create-grid {
        grid-template-columns: repeat(3, minmax(130px, 1fr));
    }

    .price-check-filter-toolbar-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .auth-shell,
    .auth-shell-wide,
    .dashboard-header,
    .dashboard-hero,
    .dashboard-start,
    .app-page-shell-split,
    .dashboard-hero-grid,
    .page-filter-form,
    .app-page-stat-grid,
    .dashboard-section-head,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-header-actions {
        justify-self: start;
    }

    .dashboard-section-head .lead {
        justify-self: start;
        max-width: none;
    }

    .app-page-shell-split {
        height: auto;
        min-height: 0;
    }

    .app-page-shell-split > .app-page-main,
    .app-page-shell-split > .app-page-side {
        overflow: visible;
        padding-right: 0;
    }

    .record-card-grid,
    .record-card-field-grid,
    .record-card-subsections-grid,
    .contact-card-general-grid,
    .contact-card-field-grid,
    .contact-card-communication-grid {
        grid-template-columns: 1fr;
    }

    .payment-rule-values {
        grid-template-columns: 1fr;
    }

    .analysis-crop-detail-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .analysis-crop-detail-search {
        width: 100%;
    }

    .analysis-crop-detail-table-wrap {
        width: 100%;
        max-width: none;
        max-height: none;
    }

    .analysis-crop-detail-meta-list > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .location-type-settings-row {
        grid-template-columns: 1fr;
    }

    .contact-card-page-body {
        height: auto;
        min-height: 100dvh;
        overflow: auto;
    }

    .contact-card-layout {
        height: auto;
    }

    .location-card-layout-balanced,
    .location-card-side-grid {
        grid-template-columns: 1fr;
    }

    .contact-card-main,
    .contact-card-side {
        overflow: visible;
        padding-right: 0;
    }

    .module-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 340px));
    }

    .dashboard-start-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-line-delivery-picker {
        width: min(680px, calc(100vw - 48px));
    }

    .offer-line-calendars {
        grid-template-columns: 1fr;
    }

    .offer-lines-table:not([data-quick-edit-grid="true"]) tbody tr {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 720px) {
    :root {
        --dashboard-header-height: 48px;
        --dashboard-window-top-offset: 64px;
    }

    .auth-shell,
    .dashboard-shell {
        width: min(100% - 28px, 100%);
    }

    .dashboard-body {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: auto;
        overflow-x: clip;
    }

    .dashboard-shell {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding-bottom: 12px;
    }

    .brand-panel,
    .auth-card,
    .dashboard-card,
    .dashboard-hero,
    .dashboard-window-shell,
    .app-page-card,
    .app-page-hero {
        padding: 22px;
        border-radius: 24px;
    }

    .app-page-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .app-page-card-head-side,
    .app-page-card-head-field {
        max-width: none;
        flex-basis: auto;
    }

    .app-page-card-head-field {
        justify-content: flex-start;
    }

    .app-page-card-action {
        width: 100%;
    }

    .field-group input[type="file"] {
        padding: 12px;
        min-height: 72px;
    }

    .field-group input[type="file"]::file-selector-button {
        display: block;
        width: 100%;
        margin: 0 0 10px;
    }

    .field-group input[type="file"]::-webkit-file-upload-button {
        display: block;
        width: 100%;
        margin: 0 0 10px;
    }

    .registry-lookup-button {
        width: 48px;
    }

    .dashboard-header {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        min-height: var(--dashboard-header-height);
        padding: 4px 10px 6px;
        border-radius: 0 0 14px 14px;
    }

    .dashboard-brand-logo-only {
        margin-left: 6px;
        gap: 6px;
    }

    .dashboard-brand-wordmark {
        width: 82px;
    }

    .app-environment-badge {
        min-height: 24px;
        padding: 0 8px;
        font-size: 0.62rem;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
    }

    .user-create-role-grid {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: auto;
    }

    .dashboard-header-actions {
        justify-content: flex-end;
        justify-self: end;
        gap: 6px;
    }

    .dashboard-start {
        min-height: auto;
        padding: 0 0 12px;
    }

    .dashboard-start-card {
        padding: 28px 22px;
    }

    .dashboard-start-structure-card {
        padding: 0;
    }

    .dashboard-start-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        height: auto;
        grid-auto-rows: minmax(220px, auto);
    }

    .dashboard-start-module {
        padding: 20px;
        gap: 16px;
        min-height: 220px;
    }

    .dashboard-start-module-main {
        grid-template-rows: minmax(92px, auto) auto auto;
    }

    .dashboard-start-module-head {
        min-height: 92px;
    }

    .dashboard-start-module-icon {
        font-size: clamp(4rem, 18vw, 5.8rem);
    }

    .dashboard-start-module-popout {
        right: 20px;
        bottom: 20px;
    }

    .session-item {
        flex-direction: column;
    }

    .dashboard-search-shell,
    .dashboard-searchbar,
    .dashboard-header-icon-button {
        width: 36px;
    }

    .dashboard-system-clock {
        gap: 8px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .dashboard-system-clock-date {
        font-size: 0.78rem;
    }

    .dashboard-system-clock-time {
        font-size: 0.78rem;
    }

    .records-head,
    .page-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .records-head-meta {
        align-items: flex-start;
        margin-left: 0;
        text-align: left;
    }

    .page-filter-form,
    .page-filter-toolbar-main {
        align-items: stretch;
    }

    .page-filter-form {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .page-filter-toolbar-main {
        flex-direction: column;
    }

    .price-check-filter-toolbar-main {
        grid-template-columns: 1fr;
    }

    .price-check-filter-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .price-check-filter-actions,
    .price-check-parameter-actions {
        justify-content: stretch;
    }

    .page-filter-status-field,
    .page-inline-search,
    .page-inline-search.is-expanded {
        width: 100%;
        max-width: none;
        flex: 1 1 auto;
    }

    .page-inline-search.is-expanded .page-inline-search-field {
        width: 100%;
    }

    .page-related-menu,
    .page-related-menu > button,
    .table-action-button,
    .page-filter-actions > a,
    .page-filter-actions > button {
        width: 100%;
    }

    body.dashboard-embedded-window.app-page-body,
    body.dashboard-embedded-window.contact-card-page-body {
        padding: 12px;
    }

    body.dashboard-embedded-window .app-page-card,
    body.dashboard-embedded-window .app-page-hero,
    body.dashboard-embedded-window .app-page-side-panel,
    body.dashboard-embedded-window .contact-card-side-panel,
    body.dashboard-embedded-window .location-card-summary-panel,
    body.dashboard-embedded-window .location-card-map-panel,
    body.dashboard-embedded-window .accepted-logistics-card-panel {
        padding: 18px;
    }

    body.dashboard-embedded-window .app-page-stat-grid-sidebar {
        grid-template-columns: 1fr;
    }

    body.dashboard-embedded-window .records-table {
        min-width: 680px;
    }

    .page-related-panel {
        position: static;
        width: 100%;
    }

    .permission-tree-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .permission-tree-toolbar-actions {
        justify-content: stretch;
    }

    .permission-tree-toolbar-actions > * {
        width: 100%;
    }

    .permission-tree-item {
        flex-wrap: wrap;
    }

    .permission-scope-control {
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .permission-tree-children {
        margin-left: 12px;
        padding-left: 14px;
    }

    .dashboard-window-head {
        align-items: stretch;
        gap: 12px;
    }

    .dashboard-window-head-main {
        width: 100%;
    }

    .dashboard-window-actions {
        justify-content: flex-end;
    }

    .dashboard-window-shell {
        top: var(--dashboard-window-top-offset);
        right: 12px;
        bottom: 12px;
        left: 12px;
        padding: 16px;
        border-radius: 24px;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-link {
        min-height: 150px;
        padding: 20px;
        border-radius: 22px;
    }

    .module-link-icon {
        font-size: 3rem;
    }

    .offer-line-add-actions,
    .offer-line-delivery-picker-head,
    .offer-line-delivery-picker-footer {
        align-items: stretch;
    }

    .offer-line-delivery-picker {
        position: fixed;
        top: auto;
        right: 16px;
        left: 16px;
        bottom: 16px;
        width: auto;
        max-height: calc(100vh - 32px);
        overflow: auto;
    }

    .search-popover {
        top: calc(var(--dashboard-header-height) + 12px);
        width: min(100vw - 16px, 100%);
    }

    .search-dialog {
        gap: 8px;
    }

    .search-dialog-head,
    .search-result-top {
        grid-template-columns: 1fr;
        display: grid;
    }

    .search-input {
        min-height: 50px;
        padding: 10px 16px;
        border-radius: 18px;
        font-size: 0.96rem;
    }

    .search-results {
        padding: 10px;
        border-radius: 20px;
    }

    .app-page-body {
        padding: 16px;
    }

    .contact-card-page-body {
        --contact-card-page-padding: 16px;
    }
}

@media (max-width: 720px) {
    .app-system-dialog-overlay {
        padding: 14px;
    }

    .app-system-dialog {
        width: min(100%, calc(100vw - 28px));
        max-height: calc(100dvh - 28px);
        padding: 18px;
        border-radius: 20px;
    }

    .app-system-dialog-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .app-system-dialog-actions > .primary-button,
    .app-system-dialog-actions > .secondary-button {
        justify-content: center;
    }

    .contact-conversion-dialog-form {
        gap: 14px;
    }

    .contact-conversion-dialog-options {
        gap: 10px;
    }

    .contact-conversion-dialog-option {
        padding: 14px 16px;
        border-radius: 16px;
    }
}

@media (max-width: 820px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body.app-page-body,
    body.dashboard-embedded-window.app-page-body {
        padding: 10px;
    }

    .contact-card-page-body,
    body.dashboard-embedded-window.contact-card-page-body {
        --contact-card-page-padding: 10px;
    }

    .app-page-shell,
    .app-page-main,
    .app-page-side,
    .contact-card-form,
    .contract-execution-card {
        gap: 12px;
    }

    .app-page-card,
    .app-page-hero,
    .dashboard-card,
    .dashboard-hero,
    body.dashboard-embedded-window .app-page-card,
    body.dashboard-embedded-window .app-page-hero,
    body.dashboard-embedded-window .app-page-side-panel,
    body.dashboard-embedded-window .contact-card-side-panel,
    body.dashboard-embedded-window .location-card-summary-panel,
    body.dashboard-embedded-window .location-card-map-panel,
    body.dashboard-embedded-window .accepted-logistics-card-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .dashboard-header {
        grid-template-columns: auto 1fr auto;
        gap: 6px;
        padding: 5px 8px;
        border-radius: 0 0 12px 12px;
    }

    .dashboard-brand-logo-only {
        margin-left: 2px;
    }

    .dashboard-brand-wordmark {
        width: 72px;
    }

    .dashboard-system-clock {
        justify-self: center;
        min-width: 0;
        padding: 0 4px;
    }

    .dashboard-system-clock-date,
    .dashboard-user-chip {
        display: none;
    }

    .dashboard-logout {
        width: 36px;
        min-width: 36px;
        padding: 0;
    }

    .dashboard-logout span:not(.material-symbols-outlined) {
        display: none;
    }

    .dashboard-start {
        padding-bottom: 10px;
    }

    .dashboard-start-intro {
        gap: 8px;
    }

    .dashboard-start-intro h1 {
        font-size: 1.55rem;
        line-height: 1.1;
    }

    .dashboard-start-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        grid-auto-rows: minmax(0, 1fr);
        gap: 10px;
        height: 100%;
    }

    .dashboard-start-module {
        min-height: 0;
        padding: 12px;
        border-radius: 16px;
    }

    .dashboard-start-module-main {
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: center;
        gap: 12px;
    }

    .dashboard-start-module-head {
        min-height: 0;
        justify-content: center;
    }

    .dashboard-start-module-icon {
        font-size: 2rem;
    }

    .dashboard-start-module-copy h2 {
        font-size: 1.15rem;
        line-height: 1.2;
        letter-spacing: 0;
    }

    .dashboard-start-module-meta {
        display: none;
    }

    .dashboard-start-module-popout {
        right: 10px;
        bottom: 10px;
        min-height: 36px;
        padding: 0 9px;
    }

    .dashboard-start-module-popout-label {
        display: none;
    }

    .dashboard-window-shell {
        top: var(--dashboard-header-height);
        right: 0;
        bottom: 0;
        left: 0;
        gap: 10px;
        padding: 10px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 0;
    }

    .dashboard-window-head,
    .records-head,
    .contact-card-section-head,
    .price-check-card-status,
    .permission-tree-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .dashboard-window-head {
        padding: 8px;
        border-radius: 14px;
    }

    .dashboard-window-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }

    .dashboard-window-title {
        overflow-wrap: anywhere;
    }

    .dashboard-window-sync-status {
        max-width: 100%;
        white-space: normal;
        line-height: 1.25;
    }

    .dashboard-window-stage {
        border-radius: 16px;
    }

    .app-page-shell-split,
    .contact-card-layout,
    .accepted-logistics-card-layout,
    .location-card-layout-balanced {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .app-page-shell-split > .app-page-main,
    .app-page-shell-split > .app-page-side,
    .contact-card-main,
    .contact-card-side,
    .accepted-logistics-card-layout .contact-card-main,
    .accepted-logistics-card-layout .contact-card-side {
        overflow: visible;
        padding-right: 0;
        scrollbar-gutter: auto;
    }

    .app-page-shell-split > .app-page-side:not(.location-card-side-grid),
    .contact-card-layout > .contact-card-side:not(.location-card-side-grid),
    .accepted-logistics-card-layout > .contact-card-side:not(.location-card-side-grid),
    .location-card-summary-panel,
    .accepted-logistics-summary-panel {
        display: none;
    }

    .location-card-side-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        overflow: visible;
    }

    .location-map-side,
    .accepted-logistics-map-panel .location-map-side {
        min-height: 240px;
        height: min(58vh, 360px);
    }

    .app-table-toolbar-card {
        position: sticky;
        top: 0;
        z-index: 170;
        padding: 10px;
        border-radius: 16px;
        box-shadow: 0 12px 24px rgba(34, 77, 57, 0.08);
    }

    .location-card-toolbar-sticky {
        top: 0;
    }

    .page-filter-form,
    .app-table-toolbar-form,
    .page-filter-toolbar-main {
        width: 100%;
    }

    .page-filter-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 8px;
        margin-left: 0;
    }

    .page-filter-actions > *,
    .page-related-menu,
    .page-related-menu > button,
    .table-action-button,
    .page-filter-actions > a,
    .page-filter-actions > button {
        width: 100%;
        min-width: 0;
    }

    .page-filter-actions > .primary-button,
    .page-filter-actions > .secondary-button,
    .page-filter-actions .secondary-button,
    .page-filter-actions .primary-button,
    .table-action-button {
        min-height: 44px;
        padding: 8px 10px;
        white-space: normal;
        line-height: 1.15;
    }

    .page-inline-search-toggle {
        width: 44px;
        height: 44px;
    }

    .page-inline-search-field input,
    .page-filter-select,
    .field-group input,
    .field-group select,
    .field-group textarea,
    .quick-edit-input,
    .app-select-control {
        font-size: 16px;
    }

    .page-inline-search-field input,
    .page-filter-select,
    .quick-edit-input {
        min-height: 44px;
    }

    .page-related-panel {
        position: static;
        width: 100%;
        max-height: min(56vh, 360px);
        margin-top: 8px;
        border-radius: 16px;
    }

    .app-select-panel {
        max-height: min(420px, calc(100dvh - 32px));
        border-radius: 16px;
    }

    .app-select-options {
        max-height: min(300px, calc(100dvh - 150px));
    }

    .record-card-grid,
    .record-card-field-grid,
    .record-card-subsections-grid,
    .contact-card-general-grid,
    .contact-card-field-grid,
    .contact-card-communication-grid,
    .contract-schedule-create-grid,
    .location-type-settings-fields,
    .accepted-logistics-card-grid,
    .price-check-filter-toolbar-main {
        grid-template-columns: 1fr;
    }

    .payment-rule-values {
        grid-template-columns: 1fr;
    }

    .contact-card-section,
    .inline-edit-form,
    .inventory-parameter-add-card,
    .offer-line-parameter-add-card,
    .matching-detail-panel {
        padding: 14px;
        border-radius: 16px;
    }

    .records-table-wrap,
    .records-table-scroll-area,
    .locations-records-table-wrap,
    .offer-line-parameter-table-wrap {
        display: block;
        height: auto;
        max-height: none;
        margin-top: 12px;
        overflow: visible;
        border: 0;
        border-radius: 0;
        scrollbar-gutter: auto;
    }

    .price-check-sections {
        height: auto;
        overflow: visible;
        padding-right: 0;
        gap: 16px;
    }

    table.records-table:not(.offer-lines-table) {
        display: block;
        width: 100%;
        min-width: 0 !important;
        table-layout: auto !important;
        border-collapse: separate;
    }

    table.records-table:not(.offer-lines-table) colgroup,
    table.records-table:not(.offer-lines-table) thead {
        display: none;
    }

    table.records-table:not(.offer-lines-table) tbody {
        display: grid;
        gap: 10px;
    }

    table.records-table:not(.offer-lines-table) tr {
        display: grid;
        gap: 10px;
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 10px 24px rgba(34, 77, 57, 0.06);
    }

    table.records-table:not(.offer-lines-table) td,
    table.records-table:not(.offer-lines-table) th {
        display: grid;
        gap: 6px;
        min-width: 0;
        padding: 0;
        border-bottom: 0;
        white-space: normal;
        line-height: 1.35;
    }

    table.records-table:not(.offer-lines-table) td[data-mobile-span="full"] {
        grid-column: 1 / -1;
    }

    table.records-table:not(.offer-lines-table) td[data-label]::before {
        content: attr(data-label);
        color: var(--text-soft);
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        line-height: 1.2;
        text-transform: uppercase;
    }

    table.records-table:not(.offer-lines-table) td:empty {
        display: none;
    }

    table.records-table:not(.offer-lines-table) td > *,
    table.records-table:not(.offer-lines-table) .record-primary,
    table.records-table:not(.offer-lines-table) .record-stack,
    .quick-edit-cell,
    .quick-edit-status,
    .user-commission-form {
        min-width: 0;
        max-width: 100%;
    }

    table.records-table:not(.offer-lines-table) .record-primary strong,
    table.records-table:not(.offer-lines-table) .record-primary span,
    table.records-table:not(.offer-lines-table) .record-stack strong,
    table.records-table:not(.offer-lines-table) .record-stack span,
    table.records-table:not(.offer-lines-table) .transaction-list-cell {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    table.records-table:not(.offer-lines-table) .status-pill,
    table.records-table:not(.offer-lines-table) .record-role-pill,
    table.records-table:not(.offer-lines-table) .inventory-meta-pill,
    table.records-table:not(.offer-lines-table) .inventory-meta-pill-group {
        width: fit-content;
        max-width: 100%;
        min-height: 28px;
        white-space: normal;
        line-height: 1.25;
    }

    table.records-table:not(.offer-lines-table) .page-filter-actions {
        grid-template-columns: 1fr;
    }

    .analysis-crop-detail-year-table th:first-child,
    .analysis-crop-detail-year-table td:first-child {
        position: static;
        width: auto;
        min-width: 0;
        background: transparent;
    }

    .analysis-crop-detail-year-table th:not(:first-child),
    .analysis-crop-detail-year-table td:not(:first-child) {
        min-width: 0;
        text-align: left;
    }

    .transaction-list-table th,
    .transaction-list-table td {
        padding: 0;
        white-space: normal;
        line-height: 1.35;
    }

    .transaction-list-table .transaction-list-cell,
    .transaction-list-table .transaction-list-cell-wide,
    .transaction-list-table .transaction-list-cell-location,
    .transaction-list-table .transaction-list-cell-price,
    .transaction-list-table .transaction-list-cell-delivery {
        max-width: none;
    }

    .matching-table {
        min-width: 0;
        table-layout: auto;
    }

    .matching-results-head-side,
    .matching-selection-status {
        justify-items: stretch;
        text-align: left;
    }

    .matching-results-actions,
    .matching-detail-links,
    .inline-edit-actions,
    .offer-line-add-actions,
    .offer-line-delivery-picker-head,
    .offer-line-delivery-picker-footer {
        align-items: stretch;
    }

    .matching-results-actions > *,
    .matching-detail-links > *,
    .inline-edit-actions > *,
    .offer-line-add-actions > * {
        width: 100%;
    }

    .permission-tree-item,
    .user-create-role-option,
    .location-type-settings-row {
        padding: 14px;
        border-radius: 16px;
    }

    .permission-tree-children {
        margin-left: 8px;
        padding-left: 10px;
    }

    .message {
        top: calc(var(--dashboard-header-height) + 8px + (var(--toast-index, 0) * 72px));
        width: calc(100vw - 20px);
        padding: 12px 14px;
        border-radius: 14px;
    }
}

@media (max-width: 960px) {
    .second-factor-shell {
        align-content: center;
        gap: 18px;
        padding: 24px 0;
    }

    .second-factor-brand {
        min-height: 260px;
        padding: 34px;
    }

    .second-factor-card {
        padding: 30px;
    }
}

@media (max-width: 720px) {
    .second-factor-shell {
        width: min(100% - 24px, 100%);
        padding: 14px 0;
    }

    .second-factor-brand,
    .second-factor-card {
        border-radius: 18px;
    }

    .second-factor-brand {
        min-height: 210px;
        padding: 28px;
    }

    .second-factor-brand-lock {
        width: 52px;
        height: 52px;
        margin-bottom: 22px;
        border-radius: 14px;
    }

    .second-factor-shell .second-factor-brand h1 {
        font-size: 2.45rem;
        line-height: 1;
    }

    .second-factor-card {
        padding: 24px;
    }

    .second-factor-card .second-factor-card-head h2 {
        font-size: 2rem;
    }

    .second-factor-meta div {
        grid-template-columns: 1fr;
        gap: 4px;
        align-items: start;
    }
}

/* Fluent 2 refresh: token-driven surfaces, controls, tables, and dashboard tiles. */
body {
    font-family: var(--font-family-base);
    color: var(--text);
    background: var(--bg);
    letter-spacing: 0;
}

body.auth-body,
body.dashboard-body,
body.app-page-body,
body.contact-card-page-body {
    background: var(--bg);
}

.auth-card-head h2,
.brand-panel h1,
.dashboard-hero h1,
.dashboard-card h2,
.dashboard-start-card h1,
.dashboard-start-module-copy h2,
.dashboard-window-title,
.app-page-hero-copy h1,
.app-page-card-head-copy h2,
.app-page-side-head h2,
.contact-card-section-copy h3,
.module-link strong,
.search-dialog-head h2,
.app-system-dialog-head h2 {
    letter-spacing: 0;
}

.eyebrow,
.dashboard-window-section,
.module-link-eyebrow,
.field-group label,
.records-table th,
.transport-status-legend-title,
.permission-code-badge,
.permission-direct-badge {
    letter-spacing: 0;
}

.brand-panel,
.auth-card,
.second-factor-brand,
.second-factor-card,
.dashboard-card,
.dashboard-hero,
.dashboard-start-module,
.dashboard-window-stage,
.app-page-hero,
.app-page-card,
.contact-card-section,
.app-table-toolbar-card,
.app-table-card,
.page-related-panel,
.page-related-item,
.search-trigger,
.session-item,
.message,
.info-card,
.app-system-dialog,
.search-input,
.search-result,
.transport-status-legend,
.price-check-parameter-preview,
.price-heatmap-menu,
.price-heatmap-workbench,
.record-comment-item {
    border-color: var(--border);
    border-radius: var(--radius-surface);
    background: var(--panel);
    box-shadow: var(--shadow-4);
    backdrop-filter: none;
}

.dashboard-start-structure-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-header {
    min-height: var(--dashboard-header-height);
    border-radius: 0;
    border-color: transparent;
    background: var(--color-brand-background);
    box-shadow: var(--shadow-8);
}

.dashboard-header-icon-button,
.dashboard-searchbar,
.dashboard-user-chip-button,
.dashboard-system-clock {
    border-radius: var(--radius-control);
}

.dashboard-header-icon-button:hover,
.dashboard-header-icon-button:focus-visible,
.dashboard-searchbar:hover,
.dashboard-searchbar:focus-visible,
.dashboard-user-chip-button:hover,
.dashboard-user-chip-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.dashboard-start-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: var(--dashboard-start-grid-gap);
}

.dashboard-start-module {
    min-height: 0;
    padding: clamp(16px, 2.2vh, 28px);
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.dashboard-start-module:hover,
.dashboard-start-module:focus-within,
.module-link:hover,
.module-link:focus-visible {
    transform: translateY(-1px);
    border-color: #b6d7c2;
    background: var(--color-neutral-background-1);
    box-shadow: var(--shadow-8);
}

.dashboard-start-module-main {
    grid-template-rows: minmax(54px, 1fr) auto auto;
    gap: clamp(8px, 1.25vh, 16px);
}

.dashboard-start-module-head {
    justify-content: center;
    min-height: 0;
}

.dashboard-start-module-icon {
    width: 100%;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: var(--color-brand-foreground);
    font-size: clamp(3.4rem, 8vh, 5.8rem);
}

.dashboard-start-module:hover .dashboard-start-module-icon,
.dashboard-start-module:focus-within .dashboard-start-module-icon {
    transform: none;
}

.dashboard-start-module-copy h2 {
    max-width: none;
    font-size: clamp(1.55rem, 3.4vh, 2.45rem);
    line-height: 1.05;
}

.dashboard-start-module-meta {
    align-items: flex-end;
    padding-right: clamp(96px, 11vw, 140px);
    color: var(--color-brand-foreground);
    font-size: 0.84rem;
}

.dashboard-start-module-popout {
    right: clamp(16px, 2vh, 24px);
    bottom: clamp(16px, 2vh, 24px);
    border-radius: var(--radius-control);
    background: var(--color-neutral-background-2);
}

.module-link {
    min-height: 150px;
    padding: 20px;
    border-color: var(--border);
    border-radius: var(--radius-surface);
    background: var(--panel);
    box-shadow: var(--shadow-2);
}

.module-link::before {
    display: none;
}

.module-link-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-surface);
    background: var(--color-brand-background-subtle);
    font-size: 1.75rem;
}

.module-link strong {
    max-width: none;
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1.24;
}

.primary-button,
.secondary-button,
.table-action-button,
.dashboard-window-nav-button,
.dashboard-window-icon-button,
.page-inline-search-toggle,
.page-filter-actions > .primary-button,
.page-filter-actions > .secondary-button,
.page-filter-actions .secondary-button,
.page-filter-actions .primary-button,
.app-date-picker-nav-button,
.app-date-picker-action,
.registry-lookup-button {
    min-height: 36px;
    border-radius: var(--radius-control);
    box-shadow: none;
}

.primary-button {
    border: 1px solid transparent;
    background: var(--color-brand-background);
    color: #ffffff;
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--color-brand-background-hover);
    box-shadow: none;
}

.primary-button:active {
    background: var(--color-brand-background-pressed);
}

.secondary-button,
.page-inline-search-toggle,
.dashboard-window-icon-button,
.dashboard-window-nav-button {
    border: 1px solid var(--border);
    background: var(--color-neutral-background-1);
    color: var(--text);
}

.secondary-button:hover,
.secondary-button:focus-visible,
.page-inline-search-toggle:hover,
.page-inline-search-toggle:focus-visible,
.dashboard-window-icon-button:hover,
.dashboard-window-icon-button:focus-visible,
.dashboard-window-nav-button:hover,
.dashboard-window-nav-button:focus-visible {
    border-color: var(--color-neutral-stroke-1);
    background: var(--color-neutral-background-2);
    box-shadow: none;
    transform: none;
}

.field-group input,
.field-group select,
.field-group textarea,
.field-group input[type="file"],
.field-group input[type="file"]::file-selector-button,
.field-group input[type="file"]::-webkit-file-upload-button,
.app-select-control,
.app-date-trigger,
.app-date-time-field input,
.page-inline-search-field input,
.page-filter-select,
.analysis-crop-product-yield-input,
.record-comment-form textarea,
.record-comment-reply-form textarea,
.quick-edit-view-switch-button {
    border-color: var(--color-neutral-stroke-1);
    border-radius: var(--radius-control);
    background: var(--color-neutral-background-1);
    color: var(--text);
    box-shadow: none;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus,
.app-select-control:hover,
.app-select-control:focus-visible,
.app-date-trigger:focus-visible,
.page-inline-search-field input:focus,
.page-filter-select:focus,
.analysis-crop-product-yield-input:focus,
.record-comment-form textarea:focus,
.record-comment-reply-form textarea:focus {
    outline: 2px solid var(--color-brand-background);
    outline-offset: 1px;
    border-color: var(--color-brand-background);
    box-shadow: none;
}

.dashboard-window-head,
.records-head {
    border-radius: var(--radius-surface);
}

.dashboard-window-head {
    border-color: var(--border);
    background: var(--color-neutral-background-2);
    box-shadow: var(--shadow-2);
}

.dashboard-window-title {
    color: var(--text);
    font-size: 1rem;
}

.dashboard-window-section,
.eyebrow {
    color: var(--color-brand-foreground);
    text-transform: none;
}

.app-page-shell,
.app-page-main,
.app-page-side,
.contact-card-form,
.matching-live-results {
    gap: 16px;
}

.app-page-hero,
.app-page-card {
    padding: 22px;
}

.contact-card-section {
    padding: 18px;
    background: var(--color-neutral-background-2);
}

.records-table-wrap,
.records-table-scroll-area {
    border-color: var(--border);
    border-radius: var(--radius-surface);
    background: var(--panel);
}

.records-table {
    border-collapse: separate;
    border-spacing: 0;
}

.records-table th,
.records-table td {
    padding: 12px 14px;
    border-bottom-color: var(--color-neutral-stroke-subtle);
}

.records-table th,
.records-table-sticky-head thead th,
.app-page-shell-contained-table .records-table-wrap > .records-table thead th,
.app-page-shell-contained-table .records-table-scroll-area > .records-table thead th {
    background: var(--color-neutral-background-2);
    color: var(--color-neutral-foreground-3);
    font-size: 0.78rem;
    text-transform: none;
    box-shadow: inset 0 -1px 0 var(--color-neutral-stroke-subtle);
}

.records-table[data-table-kind="standard"] tbody tr:hover,
.records-table:not([data-table-kind]) tbody tr:hover,
.records-table th.is-sortable:hover,
.records-table th.is-sortable:focus-visible {
    background: var(--color-brand-background-subtle);
}

.records-table tbody tr.is-selected,
.records-table tbody tr.is-selected:hover {
    background: #dff1e6;
}

.records-table[data-quick-edit-grid="true"] th,
.records-table[data-quick-edit-grid="true"] td {
    border-color: var(--color-neutral-stroke-subtle);
}

.records-table[data-quick-edit-grid="true"] thead th {
    background: var(--color-neutral-background-2);
    color: var(--color-neutral-foreground-3);
}

.records-table[data-quick-edit-grid="true"] td.is-grid-active-cell::after {
    border-color: var(--color-brand-background);
}

.records-table[data-quick-edit-grid="true"] td.is-grid-selected-cell:not(.is-grid-active-cell)::after {
    border-color: rgba(16, 124, 65, 0.48);
    background: rgba(16, 124, 65, 0.08);
}

.quick-edit-grid-selection-handle {
    background: var(--color-brand-background);
    box-shadow: 0 0 0 1px rgba(16, 124, 65, 0.7);
}

.app-table-toolbar-card {
    padding: 8px 10px;
    background: var(--color-neutral-background-2);
}

.page-related-panel {
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-16);
}

.page-related-item {
    box-shadow: none;
}

.status-pill,
.record-role-pill,
.inventory-meta-pill,
.inventory-parameter-summary-pill,
.app-environment-badge,
.record-selection-summary,
.dashboard-window-sync-status,
.brand-pills span,
.transport-status-chip,
.permission-code-badge,
.permission-direct-badge {
    border-radius: var(--radius-pill);
    letter-spacing: 0;
}

.message {
    box-shadow: var(--shadow-16);
}

.message.success {
    border-color: #9fd8b2;
    background: #f1faf4;
}

.message.error {
    border-color: #f1aeb5;
    background: #fff4f4;
}

.message.info {
    background: var(--color-neutral-background-1);
}

.message.warning {
    border-color: #efd99a;
    background: #fff9e6;
}

.app-system-dialog-overlay {
    background: rgba(0, 0, 0, 0.28);
}

.app-system-dialog {
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-16);
}

.auth-shell,
.second-factor-shell {
    gap: 24px;
}

.brand-panel,
.auth-card,
.second-factor-brand,
.second-factor-card {
    border-radius: var(--radius-surface);
}

.auth-card .primary-button {
    min-height: 44px;
}

@media (max-width: 1180px) {
    .dashboard-start-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .app-page-hero,
    .app-page-card,
    .contact-card-section,
    .brand-panel,
    .auth-card,
    .second-factor-brand,
    .second-factor-card {
        padding: 16px;
        border-radius: var(--radius-surface);
    }

    .dashboard-start-module {
        min-height: 220px;
        padding: 16px;
    }

    .dashboard-start-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(220px, auto);
    }

    .dashboard-start-module-head {
        justify-content: flex-start;
        min-height: 56px;
    }

    .dashboard-start-module-icon {
        width: 56px;
        height: 56px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-surface);
        background: var(--color-brand-background-subtle);
        font-size: 2rem;
    }

    .dashboard-start-module-copy h2 {
        font-size: 1.55rem;
    }

    .dashboard-start-module-meta {
        padding-right: 0;
    }

    .dashboard-start-module-popout {
        position: static;
        justify-self: start;
        margin-top: 8px;
    }
}

.dashboard-header .dashboard-header-actions {
    gap: 6px;
}

.dashboard-header .dashboard-header-actions form {
    display: flex;
    margin: 0;
}

.dashboard-header .dashboard-searchbar,
.dashboard-header .dashboard-header-icon-button,
.dashboard-header .dashboard-user-chip-button,
.dashboard-header .dashboard-logout {
    min-height: 36px;
    height: 36px;
    border-radius: var(--radius-control);
    border: 1px solid transparent;
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.dashboard-header .dashboard-searchbar,
.dashboard-header .dashboard-header-icon-button {
    width: 36px;
    padding: 0;
}

.dashboard-header .dashboard-logout {
    gap: 8px;
    padding: 0 10px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.88rem;
    font-weight: 700;
}

.dashboard-header .dashboard-user-chip-button {
    gap: 8px;
    padding: 0 10px;
}

.dashboard-header .dashboard-searchbar:hover,
.dashboard-header .dashboard-searchbar:focus-visible,
.dashboard-header .dashboard-header-icon-button:hover,
.dashboard-header .dashboard-header-icon-button:focus-visible,
.dashboard-header .dashboard-user-chip-button:hover,
.dashboard-header .dashboard-user-chip-button:focus-visible,
.dashboard-header .dashboard-logout:hover,
.dashboard-header .dashboard-logout:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

.dashboard-header .dashboard-logout .material-symbols-outlined,
.dashboard-header .dashboard-user-chip-main .material-symbols-outlined,
.dashboard-header .dashboard-searchbar-main .material-symbols-outlined,
.dashboard-header .dashboard-header-icon-button .material-symbols-outlined {
    color: #ffffff;
}

.auth-shell-centered {
    width: min(520px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
}

.auth-shell-centered.second-factor-shell {
    width: min(540px, calc(100% - 48px));
    grid-template-columns: minmax(0, 1fr);
}

.auth-shell-centered .auth-card {
    width: 100%;
}

@media (max-width: 720px) {
    .auth-shell-centered,
    .auth-shell-centered.second-factor-shell {
        width: min(100% - 28px, 100%);
    }
}

.app-select {
    --app-select-panel-gap: 6px;
    --app-select-options-max-height: 240px;
}

.field-group .app-select-control,
.page-filter-field .app-select-control,
.app-page-card-head-field .app-select-control {
    min-height: 44px;
    padding: 8px 38px 8px 12px;
    border-radius: var(--radius-control);
}

.app-select-control::after {
    right: 14px;
    width: 8px;
    height: 8px;
    border-color: var(--color-neutral-foreground-2);
}

.app-select-control:hover,
.app-select-control:focus-visible,
.app-select.is-open .app-select-control {
    border-color: var(--color-brand-background);
    background: var(--color-neutral-background-1);
    box-shadow: 0 0 0 1px var(--color-brand-background);
}

.app-select-current {
    gap: 1px;
}

.app-select-current-primary {
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.22;
}

.app-select-current-secondary {
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.22;
}

.app-select-panel {
    z-index: 520;
    padding: 6px;
    border-color: var(--color-neutral-stroke-1);
    border-radius: var(--radius-surface);
    background: var(--color-neutral-background-1);
    box-shadow: var(--shadow-16);
    backdrop-filter: none;
}

.app-select-search {
    margin-bottom: 6px;
}

.app-select-panel-action {
    width: 100%;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 8px 10px;
    border: 1px solid var(--color-brand-background);
    border-radius: var(--radius-control);
    background: var(--color-brand-background-subtle);
    color: var(--color-brand-foreground);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.app-select-panel-action:hover,
.app-select-panel-action:focus-visible {
    outline: none;
    background: #dff1e6;
    box-shadow: inset 0 0 0 1px var(--color-brand-background);
}

.app-select-search-input,
.app-select-inline-search-input {
    min-height: 40px;
    padding: 8px 12px;
    border-color: var(--color-neutral-stroke-1);
    border-radius: var(--radius-control);
    background: var(--color-neutral-background-1);
    color: var(--text);
    font-size: 0.96rem;
}

.app-select-search-input:focus,
.app-select-inline-search-input:focus {
    outline: none;
    border-color: var(--color-brand-background);
    box-shadow: 0 0 0 1px var(--color-brand-background);
}

.app-select-empty {
    margin: 0;
    padding: 8px 10px;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.app-select-options {
    gap: 2px;
}

.app-select-option {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: var(--radius-control);
    color: var(--text);
}

.app-select-option-content {
    gap: 2px;
}

.app-select-current {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-select-current-text {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.app-select-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    object-fit: contain;
    padding: 4px;
    border: 1px solid var(--color-neutral-stroke-subtle);
    border-radius: 8px;
    background: var(--color-neutral-background-1);
}

.app-select-swatch {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid rgba(36, 36, 36, 0.24);
    border-radius: 50%;
    background: var(--app-select-swatch-color, var(--color-neutral-background-3));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

.app-select-option.has-icon,
.app-select-option.has-swatch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-select-option.has-icon .app-select-option-content,
.app-select-option.has-swatch .app-select-option-content {
    min-width: 0;
}

.app-select-option-label {
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.25;
}

.app-select-option-description {
    color: var(--text-soft);
    font-size: 0.84rem;
    line-height: 1.3;
}

.app-select-option:hover,
.app-select-option:focus-visible {
    outline: none;
    background: var(--color-neutral-background-3);
}

.app-select-option.is-selected {
    background: var(--color-brand-background-subtle);
    color: var(--text);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--color-brand-background);
}

.app-select-option.is-selected .app-select-option-label {
    color: var(--color-brand-foreground);
}

.app-select-option.is-selected:hover,
.app-select-option.is-selected:focus-visible {
    background: #dff1e6;
}

.app-select-option.is-placeholder,
.app-select-option.is-placeholder.is-selected {
    min-height: 36px;
    background: transparent;
    color: var(--text-soft);
    font-weight: 600;
    box-shadow: none;
}

.app-select-option.is-placeholder .app-select-option-label {
    color: var(--text-soft);
    font-weight: 600;
}

.app-select-option.is-placeholder:hover,
.app-select-option.is-placeholder:focus-visible {
    background: var(--color-neutral-background-3);
}

.app-select-option:disabled {
    min-height: 28px;
    padding: 8px 10px 4px;
    background: transparent;
    color: var(--text-soft);
    cursor: default;
    font-size: 0.76rem;
    font-weight: 700;
    opacity: 1;
    text-transform: uppercase;
}

.customer-intelligence-toolbar-card.app-table-toolbar-card {
    padding: 12px;
}

.customer-intelligence-toolbar-card .app-table-toolbar-form,
.customer-intelligence-toolbar-card .page-filter-form {
    align-items: flex-end;
    justify-content: flex-start;
    gap: 12px;
}

.customer-intelligence-toolbar-card .customer-intelligence-filter-toolbar-main,
.customer-intelligence-toolbar-card .app-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    align-items: end;
    gap: 10px;
    width: min(760px, 100%);
    flex: 0 1 760px;
}

.customer-intelligence-toolbar-card .page-filter-field,
.customer-intelligence-toolbar-card .form-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.customer-intelligence-toolbar-card .page-filter-field > span,
.customer-intelligence-toolbar-card .form-field > span {
    display: block;
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.customer-intelligence-toolbar-card .page-filter-select,
.customer-intelligence-toolbar-card .form-field select {
    width: 100%;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--color-neutral-stroke-1);
    border-radius: var(--radius-control);
    background: var(--color-neutral-background-1);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
    line-height: 1.2;
}

.customer-intelligence-toolbar-card .page-filter-actions,
.customer-intelligence-toolbar-card .app-page-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin: 0;
    flex: 0 0 auto;
}

.customer-intelligence-toolbar-card .page-filter-actions > *,
.customer-intelligence-toolbar-card .app-page-actions > * {
    min-height: 36px;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .customer-intelligence-toolbar-card .app-table-toolbar-form,
    .customer-intelligence-toolbar-card .page-filter-form {
        align-items: stretch;
        flex-direction: column;
    }

    .customer-intelligence-toolbar-card .customer-intelligence-filter-toolbar-main,
    .customer-intelligence-toolbar-card .app-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        flex-basis: auto;
    }

    .customer-intelligence-toolbar-card .page-filter-actions,
    .customer-intelligence-toolbar-card .app-page-actions {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .customer-intelligence-toolbar-card .customer-intelligence-filter-toolbar-main,
    .customer-intelligence-toolbar-card .app-form-grid {
        grid-template-columns: 1fr;
    }

    .customer-intelligence-toolbar-card .page-filter-actions,
    .customer-intelligence-toolbar-card .app-page-actions {
        flex-direction: column;
    }

    .customer-intelligence-toolbar-card .page-filter-actions > *,
    .customer-intelligence-toolbar-card .app-page-actions > * {
        width: 100%;
    }
}

.hr-period-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px;
}

.hr-period-actions > .primary-button,
.hr-period-actions > .secondary-button {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: var(--radius-control);
    font-size: 0.92rem;
    line-height: 1.2;
    white-space: nowrap;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-options {
    display: grid;
    grid-auto-rows: max-content;
    align-items: stretch;
}

.offer-lines-table[data-quick-edit-grid="true"] .app-select-option {
    flex: 0 0 auto;
    height: auto;
    min-height: max-content;
    line-height: 1.25;
    white-space: normal;
}

.app-page-stat-card {
    container-type: inline-size;
    min-width: 0;
    align-content: start;
    overflow: hidden;
    border-radius: var(--radius-surface);
}

.app-page-stat-head,
.app-page-stat-value,
.app-page-stat-card strong,
.app-page-stat-card p {
    min-width: 0;
    max-width: 100%;
}

.app-page-stat-value {
    color: var(--color-brand-foreground);
    font-size: 1.35rem;
    line-height: 1.14;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.app-page-stat-card strong {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.app-page-stat-card p {
    font-size: 0.86rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.app-page-stat-grid-sidebar .app-page-stat-card {
    gap: 8px;
    padding: 14px;
}

.app-page-stat-grid-sidebar .app-page-stat-value {
    font-size: 1.22rem;
}

@media (min-width: 961px) {
    .exchanger-settings-layout .exchanger-settings-summary-side {
        overflow: hidden;
        padding-right: 0;
        scrollbar-gutter: auto;
    }

    .exchanger-settings-layout .exchanger-settings-summary-panel {
        grid-template-rows: auto minmax(0, 1fr);
        align-content: stretch;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .exchanger-settings-layout .exchanger-settings-summary-panel .app-page-stat-grid-sidebar {
        min-height: 0;
        overflow: hidden;
        align-content: start;
    }

    .exchanger-settings-layout .exchanger-settings-summary-panel::after {
        content: "";
        position: absolute;
        right: 1px;
        bottom: 1px;
        left: 1px;
        height: 72px;
        border-radius: 0 0 var(--radius-surface) var(--radius-surface);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--panel) 86%);
        pointer-events: none;
    }
}

@media (max-width: 960px) {
    .exchanger-settings-layout .exchanger-settings-summary-side,
    .exchanger-settings-layout .exchanger-settings-summary-panel,
    .exchanger-settings-layout .exchanger-settings-summary-panel .app-page-stat-grid-sidebar {
        overflow: visible;
    }

    .exchanger-settings-layout .exchanger-settings-summary-panel {
        height: auto;
    }

    .exchanger-settings-layout .exchanger-settings-summary-panel::after {
        content: none;
    }
}

@media (max-width: 1480px) {
    body.dashboard-embedded-window .exchanger-settings-layout .exchanger-settings-summary-side,
    body.dashboard-embedded-window .exchanger-settings-layout .exchanger-settings-summary-panel,
    body.dashboard-embedded-window .exchanger-settings-layout .exchanger-settings-summary-panel .app-page-stat-grid-sidebar {
        overflow: visible;
    }

    body.dashboard-embedded-window .exchanger-settings-layout .exchanger-settings-summary-panel {
        height: auto;
    }

    body.dashboard-embedded-window .exchanger-settings-layout .exchanger-settings-summary-panel::after {
        content: none;
    }
}

@container (max-width: 240px) {
    .app-page-stat-value {
        font-size: 1.05rem;
        line-height: 1.18;
    }

    .app-page-stat-card strong {
        font-size: 0.82rem;
    }

    .app-page-stat-card p {
        font-size: 0.76rem;
    }
}

.app-page-shell-tile-menu .module-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 14px;
    margin-top: 0;
}

.app-page-shell-tile-menu .module-link {
    min-height: 116px;
    grid-template-columns: 56px minmax(0, 1fr) 34px;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px 16px 18px 18px;
    border-color: #d9e8de;
    border-radius: var(--radius-surface);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 253, 251, 1));
    box-shadow: var(--shadow-4);
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s var(--app-motion-soft);
}

.app-page-shell-tile-menu .module-link::before {
    display: block;
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    padding: 0;
    border-radius: var(--radius-surface) 0 0 var(--radius-surface);
    background: linear-gradient(180deg, var(--color-brand-background), #5ec983);
    opacity: 0.86;
    animation: none;
    mask: none;
    -webkit-mask: none;
}

.app-page-shell-tile-menu .module-link::after {
    content: "arrow_forward";
    grid-column: 3;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-control);
    background: var(--color-neutral-background-3);
    color: var(--color-brand-foreground);
    font-family: "Material Symbols Outlined";
    font-size: 1.12rem;
    line-height: 1;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s var(--app-motion-soft);
}

.app-page-shell-tile-menu .module-link-icon {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-surface);
    background:
        linear-gradient(135deg, #e8f5ec 0%, #dff1e6 100%);
    color: var(--color-brand-foreground);
    font-size: 1.8rem;
    box-shadow: inset 0 0 0 1px rgba(16, 124, 65, 0.08);
}

.app-page-shell-tile-menu .module-link strong {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    max-width: none;
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.24;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.app-page-shell-tile-menu .module-link:hover,
.app-page-shell-tile-menu .module-link:focus-visible {
    outline: none;
    transform: translateY(-2px);
    border-color: #9fd8b2;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(241, 250, 244, 1));
    box-shadow: var(--shadow-8);
}

.app-page-shell-tile-menu .module-link:hover::after,
.app-page-shell-tile-menu .module-link:focus-visible::after {
    transform: translateX(2px);
    background: var(--color-brand-background);
    color: #ffffff;
}

.app-page-shell-tile-menu .module-link:hover .module-link-icon,
.app-page-shell-tile-menu .module-link:focus-visible .module-link-icon {
    transform: none;
}

@media (max-width: 720px) {
    .app-page-shell-tile-menu .module-link {
        min-height: 96px;
        grid-template-columns: 48px minmax(0, 1fr) 32px;
        gap: 12px;
        padding: 14px 12px 14px 16px;
    }

    .app-page-shell-tile-menu .module-link-icon {
        width: 48px;
        height: 48px;
        font-size: 1.55rem;
    }

    .app-page-shell-tile-menu .module-link strong {
        font-size: 1rem;
    }
}

.field-group.market-mapping-editor {
    grid-column: 1 / -1;
}

.market-mapping-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.market-mapping-editor-head > div {
    min-width: 0;
}

.market-mapping-add-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
}

.market-mapping-source[hidden],
.market-mapping-enhanced[hidden],
.market-mapping-editor [hidden] {
    display: none !important;
}

.market-mapping-enhanced {
    margin-top: 12px;
}

.market-mapping-list {
    display: grid;
    gap: 12px;
}

.market-mapping-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--color-neutral-stroke-1);
    border-radius: var(--radius-surface);
    background: var(--color-neutral-background-2);
}

.market-mapping-row-fields {
    display: grid;
    grid-template-columns: minmax(240px, 1.35fr) minmax(180px, 1fr) minmax(150px, 0.85fr) minmax(130px, 0.65fr);
    gap: 12px;
    min-width: 0;
}

.market-mapping-row-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.market-mapping-row-field label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.market-mapping-row-field input,
.market-mapping-row-field select {
    width: 100%;
    min-width: 0;
}

.market-mapping-row-field input {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    font: inherit;
    font-size: 0.92rem;
}

.market-mapping-row-field input:focus {
    border-color: rgba(0, 122, 58, 0.46);
    box-shadow: 0 0 0 3px rgba(0, 122, 58, 0.12);
    outline: none;
}

.market-mapping-row-field .app-select {
    width: 100%;
    min-width: 0;
}

.market-mapping-row-field .app-select-control {
    min-height: 44px;
    padding: 8px 34px 8px 12px;
    border-radius: var(--radius-control);
}

.market-mapping-row-field .app-select-current-primary,
.market-mapping-row-field .app-select-current-secondary {
    overflow-wrap: anywhere;
}

.market-mapping-row-actions {
    display: flex;
    align-items: flex-end;
}

.market-mapping-remove-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--radius-control);
}

.market-mapping-remove-button .app-icon {
    margin: 0;
}

.market-mapping-empty {
    margin-top: 12px;
}

.field-group.public-price-rules-editor {
    grid-column: 1 / -1;
}

.public-price-rules-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.public-price-rules-editor-head > div {
    min-width: 0;
}

.public-price-rules-add-button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 12px;
}

.public-price-rules-source[hidden],
.public-price-rules-enhanced[hidden],
.public-price-rules-editor [hidden] {
    display: none !important;
}

.public-price-rules-enhanced {
    margin-top: 12px;
}

.public-price-rules-list {
    display: grid;
    gap: 12px;
}

.public-price-rules-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--color-neutral-stroke-1);
    border-radius: var(--radius-surface);
    background: var(--color-neutral-background-2);
}

.public-price-rules-row-fields {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(110px, 0.55fr) minmax(110px, 0.55fr) minmax(120px, 0.6fr) minmax(130px, 0.65fr);
    gap: 12px;
    min-width: 0;
}

.public-price-rules-row-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.public-price-rules-row-field label {
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.public-price-rules-row-field input,
.public-price-rules-row-field select {
    width: 100%;
    min-width: 0;
}

.public-price-rules-row-actions {
    display: flex;
    align-items: flex-end;
}

.public-price-rules-remove-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: var(--radius-control);
}

.public-price-rules-remove-button .app-icon {
    margin: 0;
}

.public-price-rules-empty {
    margin-top: 12px;
}

@media (max-width: 760px) {
    .market-mapping-editor-head {
        align-items: stretch;
        flex-direction: column;
    }

    .market-mapping-add-button {
        width: 100%;
    }

    .market-mapping-row,
    .market-mapping-row-fields {
        grid-template-columns: 1fr;
    }

    .market-mapping-row-actions {
        justify-content: flex-end;
    }

    .public-price-rules-editor-head {
        align-items: stretch;
        flex-direction: column;
    }

    .public-price-rules-add-button {
        width: 100%;
    }

    .public-price-rules-row,
    .public-price-rules-row-fields {
        grid-template-columns: 1fr;
    }

    .public-price-rules-row-actions {
        justify-content: flex-end;
    }
}

.market-signal-refresh-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--color-neutral-stroke-1);
    border-radius: var(--radius-surface);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-2);
}

.market-signal-refresh-summary p {
    min-width: 0;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.45;
}

.market-signal-refresh-summary dl {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.market-signal-refresh-summary dl div {
    display: grid;
    gap: 2px;
    min-width: 88px;
    padding: 8px 10px;
    border-radius: var(--radius-control);
    background: var(--color-neutral-background-2);
}

.market-signal-refresh-summary dt,
.market-signal-refresh-summary dd {
    margin: 0;
}

.market-signal-refresh-summary dt {
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.market-signal-refresh-summary dd {
    color: var(--text);
    font-size: 1rem;
    font-weight: 900;
}

.market-signal-chart-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 16px;
}

.market-signal-chart-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--color-neutral-stroke-1);
    border-radius: var(--radius-surface);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-2);
}

.market-signal-profile-bars,
.market-signal-status-bars {
    display: grid;
    gap: 12px;
}

.market-signal-profile-bar,
.market-signal-status-bar {
    display: grid;
    gap: 8px;
}

.market-signal-profile-bar-head,
.market-signal-profile-bar-meta,
.market-signal-status-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.market-signal-profile-bar-head strong,
.market-signal-status-bar-head strong {
    min-width: 0;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.market-signal-profile-bar-head span,
.market-signal-status-bar-head span {
    flex: 0 0 auto;
    color: var(--color-brand-foreground);
    font-size: 0.9rem;
    font-weight: 900;
}

.market-signal-profile-bar-meta {
    color: var(--text-soft);
    font-size: 0.82rem;
    line-height: 1.25;
}

.market-signal-profile-bar-track,
.market-signal-status-bar-track {
    position: relative;
    height: 12px;
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--color-neutral-background-3);
}

.market-signal-profile-bar-track span,
.market-signal-status-bar-track span {
    display: block;
    min-width: 4px;
    max-width: 100%;
    height: 100%;
    border-radius: inherit;
    background: var(--color-brand-background);
}

.market-signal-profile-bar[data-tone="negative"] .market-signal-profile-bar-track span,
.market-signal-status-bar[data-tone="warning"] .market-signal-status-bar-track span {
    background: #b7791f;
}

.market-signal-profile-bar[data-tone="stable"] .market-signal-profile-bar-track span,
.market-signal-status-bar[data-tone="neutral"] .market-signal-status-bar-track span {
    background: #52758f;
}

.market-signal-profile-bar[data-tone="muted"] .market-signal-profile-bar-track span,
.market-signal-status-bar[data-tone="muted"] .market-signal-status-bar-track span {
    background: #87938d;
}

@media (max-width: 980px) {
    .market-signal-refresh-summary,
    .market-signal-chart-grid {
        grid-template-columns: 1fr;
    }

    .market-signal-refresh-summary dl {
        align-items: stretch;
        flex-wrap: wrap;
    }
}

.app-page-shell-hypotheses .app-table-card {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

.app-page-shell-hypotheses .records-head {
    width: 100%;
    margin: 0;
}

.hypothesis-swipe-deck {
    display: grid;
    gap: 18px;
    width: 100%;
    margin: 22px 0 0;
}

.hypothesis-swipe-card {
    position: relative;
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: clamp(20px, 1.45vw, 30px);
    overflow: hidden;
    border: 1px solid var(--color-neutral-stroke-1);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 250, 250, 0.98)),
        var(--panel);
    box-shadow: var(--shadow-16);
}

.hypothesis-swipe-card::before {
    content: "";
    position: absolute;
    inset: 0 24px auto;
    height: 3px;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, #0f6b3a, #52758f, #b7791f);
}

.hypothesis-swipe-card.is-active {
    border-color: rgba(16, 124, 65, 0.42);
    box-shadow: 0 18px 42px rgba(36, 36, 36, 0.14);
}

.hypothesis-card-top,
.hypothesis-card-pills,
.hypothesis-card-scoreboard,
.hypothesis-card-learning-tags {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hypothesis-card-top {
    justify-content: space-between;
    gap: 16px;
}

.hypothesis-card-pills {
    flex-wrap: wrap;
    min-width: 0;
}

.hypothesis-card-scoreboard {
    flex: 0 0 auto;
}

.hypothesis-card-scoreboard span {
    display: grid;
    place-items: center;
    min-width: 82px;
    min-height: 58px;
    padding: 8px 12px;
    border: 1px solid var(--color-neutral-stroke-subtle);
    border-radius: var(--radius-panel);
    background: var(--color-neutral-background-2);
}

.hypothesis-card-scoreboard strong {
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1;
}

.hypothesis-card-scoreboard small {
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.hypothesis-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.3fr);
    gap: clamp(20px, 2vw, 34px);
    align-items: start;
}

.hypothesis-card-main-copy {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.hypothesis-card-main-copy .eyebrow,
.hypothesis-card-main-copy h3,
.hypothesis-card-main-copy p,
.hypothesis-card-recommendation,
.hypothesis-card-evidence p,
.hypothesis-card-learning p,
.hypothesis-card-reviewed p {
    margin: 0;
}

.hypothesis-card-main-copy h3 {
    color: var(--text);
    font-size: 1.28rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.hypothesis-card-main-copy p,
.hypothesis-card-evidence p,
.hypothesis-card-learning p,
.hypothesis-card-reviewed p {
    color: var(--color-neutral-foreground-2);
    line-height: 1.48;
    overflow-wrap: anywhere;
}

.hypothesis-card-recommendation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding-top: 4px;
    color: var(--text);
    font-weight: 700;
}

.hypothesis-card-recommendation .app-icon {
    color: var(--color-brand-foreground);
}

.hypothesis-card-context {
    min-width: 0;
    padding-left: 20px;
    border-left: 1px solid var(--color-neutral-stroke-subtle);
}

.hypothesis-card-meta,
.hypothesis-card-timeline {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
}

.hypothesis-card-meta div,
.hypothesis-card-timeline div {
    min-width: 0;
}

.hypothesis-card-meta dt,
.hypothesis-card-timeline dt {
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 800;
}

.hypothesis-card-meta dd,
.hypothesis-card-timeline dd {
    min-width: 0;
    margin: 2px 0 0;
    color: var(--text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.hypothesis-card-evidence {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    gap: 18px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid var(--color-neutral-stroke-subtle);
    border-bottom: 1px solid var(--color-neutral-stroke-subtle);
}

.hypothesis-card-evidence-main,
.hypothesis-card-learning,
.hypothesis-card-reviewed,
.hypothesis-card-note {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.hypothesis-card-section-label,
.hypothesis-card-note > span,
.hypothesis-card-note-head label {
    color: var(--color-brand-foreground);
    font-size: 0.76rem;
    font-weight: 900;
}

.hypothesis-card-note-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.hypothesis-speech-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hypothesis-speech-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-control);
    background: var(--color-neutral-background-1);
    color: var(--color-brand-foreground);
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.hypothesis-speech-button:hover,
.hypothesis-speech-button:focus-visible {
    outline: none;
    border-color: var(--color-neutral-stroke-1);
    background: var(--color-neutral-background-2);
}

.hypothesis-speech-button.is-listening {
    border-color: rgba(16, 125, 68, 0.3);
    background: #eef5ef;
    color: var(--color-brand-foreground);
}

.hypothesis-speech-button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.hypothesis-speech-button .app-icon {
    font-size: 1.18rem;
}

.hypothesis-speech-status {
    color: var(--color-neutral-text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.hypothesis-speech-status[hidden] {
    display: none;
}

.hypothesis-card-timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hypothesis-card-learning,
.hypothesis-card-reviewed {
    padding: 14px 16px;
    border: 1px solid var(--color-neutral-stroke-subtle);
    border-radius: var(--radius-surface);
    background: var(--color-neutral-background-2);
}

.hypothesis-card-learning-tags {
    flex-wrap: wrap;
}

.hypothesis-card-learning-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: #eef5ef;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
}

.hypothesis-card-decision {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.hypothesis-card-note textarea {
    width: 100%;
    min-height: 92px;
    resize: vertical;
}

.hypothesis-card-answer textarea {
    min-height: 150px;
    font-size: 1rem;
    line-height: 1.55;
}

.hypothesis-review-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
}

.hypothesis-review-slider-field {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--color-neutral-stroke-subtle);
    border-radius: var(--radius-surface);
    background: var(--color-neutral-background-2);
}

.hypothesis-review-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 900;
}

.hypothesis-review-slider-head output {
    display: inline-grid;
    place-items: center;
    min-width: 48px;
    min-height: 32px;
    border: 1px solid rgba(16, 125, 68, 0.2);
    border-radius: var(--radius-pill);
    background: #eef5ef;
    color: var(--color-brand-foreground);
    font-size: 0.95rem;
    font-weight: 900;
}

.hypothesis-review-slider {
    width: 100%;
    accent-color: var(--color-brand-foreground);
}

.hypothesis-review-slider-scale {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--color-neutral-text-secondary);
    font-size: 0.76rem;
    font-weight: 800;
}

.hypothesis-card-submit {
    display: flex;
    justify-content: flex-end;
}

.hypothesis-card-submit .primary-button {
    min-width: 0;
    min-height: 54px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.hypothesis-card-review-scores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hypothesis-card-review-scores span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    background: #eef5ef;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 800;
}

@media (max-width: 1120px) {
    .hypothesis-card-body,
    .hypothesis-card-evidence {
        grid-template-columns: 1fr;
    }

    .hypothesis-card-context {
        padding-left: 0;
        border-left: 0;
    }
}

@media (min-width: 1320px) {
    .app-page-shell-hypotheses.app-page-shell-split {
        grid-template-columns: minmax(0, 1fr) clamp(260px, 15vw, 300px);
    }

    body.dashboard-embedded-window .app-page-shell-hypotheses.app-page-shell-split {
        grid-template-columns: minmax(0, 1fr) clamp(230px, 15vw, 280px);
    }

    .app-page-shell-hypotheses .app-page-side-panel {
        min-height: 100%;
    }
}

@media (max-width: 760px) {
    .app-page-shell-hypotheses .records-head,
    .hypothesis-card-top {
        align-items: stretch;
        flex-direction: column;
    }

    .hypothesis-card-scoreboard,
    .hypothesis-review-controls,
    .hypothesis-card-timeline {
        grid-template-columns: 1fr;
    }

    .hypothesis-card-scoreboard,
    .hypothesis-review-controls {
        display: grid;
    }

    .hypothesis-swipe-card {
        padding: 18px;
        border-radius: var(--radius-panel);
    }

    .hypothesis-card-note-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hypothesis-card-submit .primary-button {
        width: 100%;
    }
}
