@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lcdo7z9xd2.bundle.scp.css';

/* /Components/Layout/MainLayout.razor.rz.scp.css */

/* /Components/Layout/NavMenu.razor.rz.scp.css */

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-r1vyedk55o],
.components-reconnect-repeated-attempt-visible[b-r1vyedk55o],
.components-reconnect-failed-visible[b-r1vyedk55o],
.components-pause-visible[b-r1vyedk55o],
.components-resume-failed-visible[b-r1vyedk55o],
.components-rejoining-animation[b-r1vyedk55o] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-r1vyedk55o],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-r1vyedk55o],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-r1vyedk55o],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-r1vyedk55o],
#components-reconnect-modal.components-reconnect-retrying[b-r1vyedk55o],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-r1vyedk55o],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-r1vyedk55o],
#components-reconnect-modal.components-reconnect-failed[b-r1vyedk55o],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-r1vyedk55o] {
    display: block;
}


#components-reconnect-modal[b-r1vyedk55o] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-r1vyedk55o 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-r1vyedk55o 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-r1vyedk55o 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-r1vyedk55o]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-r1vyedk55o 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-r1vyedk55o {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-r1vyedk55o {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-r1vyedk55o {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-r1vyedk55o] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-r1vyedk55o] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-r1vyedk55o] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-r1vyedk55o] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-r1vyedk55o] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-r1vyedk55o] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-r1vyedk55o] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-r1vyedk55o 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-r1vyedk55o] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-r1vyedk55o {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/AccountsAdvancePayment.razor.rz.scp.css */
/* Advance Payments list header search — match CMF movements list */
[b-6f0i0tujj7] .ap-list-panel .cmf-movements-list-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 220px;
    max-width: 280px;
    padding: 4px 8px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 1;
}

[b-6f0i0tujj7] .ap-list-panel .cmf-movements-list-search .bi-search {
    color: #6c757d;
    font-size: 13px;
    flex-shrink: 0;
}

[b-6f0i0tujj7] .ap-list-panel .cmf-movements-list-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    font-size: 12px;
    color: #212529;
    padding: 0;
}

[b-6f0i0tujj7] .ap-list-panel .cmf-movements-list-search input::placeholder {
    color: #9ca3af;
}

[b-6f0i0tujj7] .ap-list-panel .cmf-movements-list-search-clear {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

[b-6f0i0tujj7] .ap-list-panel .cmf-movements-list-search-clear:hover {
    color: #495057;
}

[b-6f0i0tujj7] .ap-list-panel .cmf-movements-list-scroll {
    border-top: 1px solid #edebe9;
}

[b-6f0i0tujj7] .ap-list-panel .movements-grid tbody tr {
    cursor: pointer;
}

[b-6f0i0tujj7] .ap-list-panel .movements-grid tbody tr.selected {
    background-color: #bbdefb !important;
}

[b-6f0i0tujj7] .ap-list-panel .movements-grid tbody tr.voided {
    opacity: 0.5;
    text-decoration: line-through;
}
/* /Components/Pages/AccountsClientCoding.razor.rz.scp.css */
.cmf-form input.client-plain[b-hjea0l2123] {
    text-transform: none;
}

.client-line-pills[b-hjea0l2123] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

/* + sits in the right column of the entity toolbar, same place as Active on CFS Customer. */
.client-nature-add[b-hjea0l2123] {
    margin-left: auto;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #c7e0f4;
    border-radius: 2px;
    background: #fff;
    color: #0078d4;
    line-height: 1;
    cursor: pointer;
}

.client-nature-add:hover:not(:disabled)[b-hjea0l2123] {
    background: #e8f4fd;
}

.client-nature-add:disabled[b-hjea0l2123] {
    color: #c8c6c4;
    border-color: #edebe9;
    cursor: not-allowed;
}

.client-nature-empty[b-hjea0l2123] {
    font-size: 0.72rem;
    color: #8a8886;
}

.client-nature-item[b-hjea0l2123] {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 2px;
}

.client-nature-remove[b-hjea0l2123] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: #a4262c;
    line-height: 1;
    cursor: pointer;
}

.client-nature-remove:hover[b-hjea0l2123] {
    background: #fde7e9;
}

.client-capsules[b-hjea0l2123] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 0.15rem;
}

.client-capsule[b-hjea0l2123] {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    max-width: 100%;
    height: 18px;
    padding: 0 0.35rem;
    border: 1px solid #c7e0f4;
    border-radius: 9px;
    background: #f3f9fd;
    color: #212529;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.client-capsule-x[b-hjea0l2123] {
    border: 0;
    padding: 0;
    background: transparent;
    color: #605e5c;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.client-phone-box[b-hjea0l2123] {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    height: 32px;
}

.client-phone-box .d365-form-control[b-hjea0l2123] {
    flex: 1 1 auto;
    min-width: 0;
}

.client-mini-plus[b-hjea0l2123] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #c7e0f4;
    border-radius: 2px;
    background: #fff;
    color: #0078d4;
    font-size: 0.65rem;
    line-height: 1;
    cursor: pointer;
}

.client-mini-plus:hover:not(:disabled)[b-hjea0l2123] {
    background: #e8f4fd;
}

.client-mini-plus:disabled[b-hjea0l2123] {
    color: #c8c6c4;
    border-color: #edebe9;
    cursor: not-allowed;
}

.client-web-line[b-hjea0l2123] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 32px;
}

.client-scheme[b-hjea0l2123] {
    flex: 0 0 auto;
    height: 22px;
    padding: 0 0.4rem;
    border: 1px solid #bfc5cb;
    border-radius: 9px;
    background: #fff;
    color: #212529;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.client-scheme.is-on[b-hjea0l2123] {
    border-color: #0d6efd;
    background: #eef5ff;
    color: #0d6efd;
}

.client-scheme:disabled[b-hjea0l2123] {
    cursor: default;
}

.client-scheme.is-on:disabled[b-hjea0l2123] {
    opacity: 1;
}

.client-web-box[b-hjea0l2123] {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
}

.client-web-box .d365-form-control[b-hjea0l2123] {
    width: 100%;
    padding-right: 1.1rem;
}

.client-web-open[b-hjea0l2123] {
    position: absolute;
    top: -0.28rem;
    right: 0.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #0078d4;
    font-size: 0.62rem;
    line-height: 1;
    cursor: pointer;
}

.client-web-open:disabled[b-hjea0l2123] {
    color: #c8c6c4;
    cursor: not-allowed;
}
/* /Components/Pages/AccountsReceiptEntry.razor.rz.scp.css */
/* Align form body with page heading width (no container-fluid inset).
   Vertical gap under heading comes from .d365-page-heading-wrap margin-bottom (same as CRUD → Header). */
.row.g-2.receipt-page-body-row[b-zydof58scj] {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

[b-zydof58scj] .receipt-form-card {
    width: 100%;
}

[b-zydof58scj] .receipt-form-with-payment {
    position: relative;
}

[b-zydof58scj] .receipt-form-first-row {
    width: 100%;
    align-items: flex-end;
    column-gap: 1rem;
    /* Reserve space so Mode does not collide with absolute Receipt Details */
    padding-right: 22rem;
}

[b-zydof58scj] .receipt-form-first-row .receipt-field-grow {
    flex: 1 1 0;
    min-width: 9rem;
    max-width: 16rem;
}

[b-zydof58scj] .receipt-form-first-row .receipt-field-trans {
    width: 110px;
}

[b-zydof58scj] .receipt-form-first-row .receipt-location-field-wrap .autocomplete-select,
[b-zydof58scj] .receipt-form-first-row .receipt-field-grow .autocomplete-select {
    width: 100%;
    min-width: 9rem;
}

[b-zydof58scj] .receipt-form-first-row .receipt-field-location,
[b-zydof58scj] .receipt-form-first-row .receipt-field-type,
[b-zydof58scj] .receipt-form-first-row .receipt-field-mode {
    width: 100%;
    min-width: 9rem;
}

[b-zydof58scj] .receipt-form-first-row .receipt-field-date {
    width: 240px;
}

[b-zydof58scj] .receipt-payment-top-right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

/* Voucher hyperlink (Receipt Details strip) */
[b-zydof58scj] .receipt-voucher-no-wrap {
    display: inline-flex;
    align-items: flex-start;
    gap: 1px;
    max-width: 100%;
}

[b-zydof58scj] .receipt-voucher-link {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    min-width: 0;
    width: auto;
    height: auto;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: #1a237e;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

[b-zydof58scj] .receipt-voucher-link:hover {
    color: #0d6efd;
}

[b-zydof58scj] .receipt-voucher-open-btn {
    position: relative;
    top: -0.28em;
    left: -1px;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    margin: 0 0 0 1px;
    border: none;
    background: transparent;
    color: #605e5c;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: 0 0 auto;
}

[b-zydof58scj] .receipt-voucher-open-btn .bi {
    font-size: 0.62rem;
}

[b-zydof58scj] .receipt-voucher-open-btn:hover {
    color: #0d6efd;
}

/* Grid card styles (CMF pattern) */
[b-zydof58scj] .d365-search { position: relative; display: flex; align-items: center; }
[b-zydof58scj] .d365-search-icon { position: absolute; left: 10px; color: #9e9e9e; font-size: 0.85rem; pointer-events: none; }
[b-zydof58scj] .d365-search-input { padding: 6px 30px 6px 30px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.85rem; width: 100%; }
[b-zydof58scj] .d365-search-input:focus { border-color: #1a237e; outline: none; box-shadow: 0 0 0 2px rgba(26,35,126,0.1); }
[b-zydof58scj] .clear-search { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: none; color: #9e9e9e; cursor: pointer; }

/* Toolbar: do NOT override .d365-editable-grid-toolbar button here —
   CMF uses global d365-editable-grid.css + cmf-shared.css (blue link-style, 20px). */

[b-zydof58scj] .receipt-detail-grid .grid-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    color: #323130;
    font-weight: 500;
    font-size: 12px;
    user-select: none;
}
[b-zydof58scj] .receipt-detail-grid .grid-tab:hover {
    background: #e8f4fd;
    color: #0078d4;
}
[b-zydof58scj] .receipt-detail-grid .grid-tab-active {
    background: #fff;
    color: #323130;
    font-weight: 600;
    border-top: 2px solid #0078d4;
    border-left: 1px solid #edebe9;
    border-right: 1px solid #edebe9;
    border-bottom-color: #fff;
    margin-bottom: -1px;
}
[b-zydof58scj] .split-mismatch { color: #c62828; font-weight: 600; }
[b-zydof58scj] .d365-btn-accent {
    border: 1px solid #0078d4 !important;
    color: #0078d4 !important;
    font-weight: 600;
}
[b-zydof58scj] .d365-btn-accent:hover { background: #e8f4fd !important; }
[b-zydof58scj] .empty-grid-message {
    text-align: center;
    padding: 24px 16px;
    color: #9e9e9e;
}
[b-zydof58scj] .empty-grid-message i { font-size: 1.5rem; display: block; margin-bottom: 6px; }
[b-zydof58scj] .empty-grid-message p { margin: 4px 0; font-size: 0.85rem; }
[b-zydof58scj] .empty-grid-message small { font-size: 0.78rem; }

/* Reinforce CMF toolbar button look if any local styles leak */
[b-zydof58scj] .receipt-detail-grid.cmf-container-detail-grid .d365-editable-grid-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-bottom: 1px solid #e1e1e1;
    background: #fafafa;
    height: 28px;
    border-radius: 0;
    font-size: 12px;
}
[b-zydof58scj] .receipt-detail-grid.cmf-container-detail-grid .d365-editable-grid-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 20px !important;
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: #0078d4;
    font-size: 12px;
    cursor: pointer;
    opacity: 1;
}
[b-zydof58scj] .receipt-detail-grid.cmf-container-detail-grid .d365-editable-grid-toolbar button i {
    font-size: 14px;
    color: inherit;
}
[b-zydof58scj] .receipt-detail-grid.cmf-container-detail-grid .d365-editable-grid-toolbar button:hover:not(:disabled) {
    background: #e8f4fd;
    border-radius: 2px;
}
[b-zydof58scj] .receipt-detail-grid.cmf-container-detail-grid .d365-editable-grid-toolbar button:disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 1;
    background: transparent;
}
[b-zydof58scj] .receipt-detail-grid.cmf-container-detail-grid .d365-editable-grid-toolbar .separator {
    width: 1px;
    height: 14px !important;
    background: #d0d0d0;
    margin: 0 2px;
    align-self: center;
}
[b-zydof58scj] .receipt-detail-grid.cmf-container-detail-grid .d365-editable-grid-toolbar > span {
    font-size: 12px;
    color: #333;
}

/* Fluent Outline Add/Delete — same as CMF Container Details toolbar */
html[data-form-theme="fluent-ui"][b-zydof58scj]  .receipt-detail-grid .cmf-fluent-grid-toolbar-btn {
    margin-right: 4px;
}
html[data-form-theme="fluent-ui"][b-zydof58scj]  .receipt-detail-grid.cmf-container-detail-grid .d365-editable-grid-toolbar {
    height: auto;
    min-height: 32px;
    padding: 4px 8px;
    gap: 4px;
}

/* Compact grid rows */
[b-zydof58scj] .movements-grid-compact { width: 100%; }
[b-zydof58scj] .movements-grid-compact thead th { white-space: nowrap; font-size: 0.8rem; text-transform: uppercase; color: #6c757d; }
[b-zydof58scj] .movements-grid-compact td.col-serial, [b-zydof58scj] .movements-grid-compact th.col-serial { width: 1%; white-space: nowrap; padding: 4px 8px !important; }
[b-zydof58scj] .movements-grid-compact .col-1 { width: 18%; min-width: 140px; }
[b-zydof58scj] .movements-grid-compact .col-2 { width: 16%; }
[b-zydof58scj] .movements-grid-compact .col-3 { width: 24%; }
[b-zydof58scj] .movements-grid-compact .col-4 { width: 16%; }
[b-zydof58scj] .movements-grid-compact .serial-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e9ecef; color: #495057; font-size: 0.7rem; font-weight: 600; }
[b-zydof58scj] .movements-grid-compact .cell-stack { display: flex; flex-direction: column; gap: 2px; }
[b-zydof58scj] .movements-grid-compact .cell-row { display: flex; gap: 4px; align-items: baseline; }
[b-zydof58scj] .movements-grid-compact .label { color: #6c757d; font-size: 0.75rem; font-weight: 500; min-width: 36px; }
[b-zydof58scj] .movements-grid-compact .value { color: #343a40; font-size: 0.85rem; }

/* Grid row selection */
[b-zydof58scj] .movements-grid-compact tbody tr { cursor: pointer; border-left: 3px solid transparent; }
[b-zydof58scj] .movements-grid-compact tbody tr:hover { background: #f5f5f5; }
[b-zydof58scj] .movements-grid-compact tbody tr.selected { background: #e3f2fd; border-left-color: #1565c0; }
[b-zydof58scj] .movements-grid-compact tbody tr.voided { opacity: 0.6; }

.receipt-list-landing-row[b-zydof58scj] { margin-top: 0; }

[b-zydof58scj] .receipt-list-panel.is-list-landing .repair-estimate-list-header {
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    gap: 12px;
}

[b-zydof58scj] .receipt-list-panel.is-list-landing .repair-estimate-list-header-meta {
    justify-content: flex-end;
    width: auto;
}

.movements-grid-compact th.col-actions[b-zydof58scj],
.movements-grid-compact td.col-actions[b-zydof58scj] {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    padding-right: 8px !important;
}

.receipt-list-row-actions[b-zydof58scj] {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.receipt-list-row-btn[b-zydof58scj] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #edebe9;
    border-radius: 3px;
    background: #fff;
    color: #323130;
    cursor: pointer;
}

.receipt-list-row-btn:hover:not(:disabled)[b-zydof58scj] {
    background: #f3f2f1;
    border-color: #c8c6c4;
}

.receipt-list-row-btn:disabled[b-zydof58scj] {
    opacity: 0.35;
    cursor: default;
}

.receipt-list-row-btn.is-warning[b-zydof58scj] { color: #8a6116; }
.receipt-list-row-btn.is-danger[b-zydof58scj] { color: #a4262c; }

/* Receipts list header search — match CMF movements list */
[b-zydof58scj] .receipt-list-panel .cmf-movements-list-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 220px;
    max-width: 280px;
    padding: 4px 8px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 1;
}

[b-zydof58scj] .receipt-list-panel .cmf-movements-list-search .bi-search {
    color: #6c757d;
    font-size: 13px;
    flex-shrink: 0;
}

[b-zydof58scj] .receipt-list-panel .cmf-movements-list-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    font-size: 12px;
    color: #212529;
    padding: 0;
}

[b-zydof58scj] .receipt-list-panel .cmf-movements-list-search input::placeholder {
    color: #9ca3af;
}

[b-zydof58scj] .receipt-list-panel .cmf-movements-list-search-clear {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

[b-zydof58scj] .receipt-list-panel .cmf-movements-list-search-clear:hover {
    color: #495057;
}

[b-zydof58scj] .receipt-list-panel .cmf-movements-list-scroll {
    border-top: 1px solid #edebe9;
}

/* Badge styles */
[b-zydof58scj] .d365-badge-success { background: #e8f5e9; color: #2e7d32; }
[b-zydof58scj] .d365-badge-info { background: #e3f2fd; color: #1565c0; }
[b-zydof58scj] .d365-badge-warning { background: #fff3e0; color: #e65100; }
[b-zydof58scj] .d365-badge-primary { background: #e8eaf6; color: #283593; }
[b-zydof58scj] .d365-badge-secondary { background: #f5f5f5; color: #616161; }
[b-zydof58scj] .d365-badge-danger { background: #ffebee; color: #c62828; }

/* Receipt container detail grid — same FO look as CMF */
[b-zydof58scj] .receipt-detail-grid .cmf-container-detail-grid-scroll {
    max-height: 350px;
}

[b-zydof58scj] .receipt-detail-grid .receipt-col-select { width: 32px; }
[b-zydof58scj] .receipt-detail-grid .receipt-col-cno { width: 118px; }
[b-zydof58scj] .receipt-detail-grid .receipt-col-size { width: 64px; }
[b-zydof58scj] .receipt-detail-grid .receipt-col-charges-desc { width: auto; min-width: 160px; }
[b-zydof58scj] .receipt-detail-grid .receipt-col-amount { width: 110px; }
[b-zydof58scj] .receipt-detail-grid .receipt-col-remarks { width: auto; min-width: 140px; }

[b-zydof58scj] .receipt-detail-grid .d365-grid-fo-editable thead th.text-end {
    text-align: right;
}

[b-zydof58scj] .receipt-detail-grid .container-no-input,
[b-zydof58scj] .receipt-detail-grid .container-no {
    text-transform: uppercase;
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
    width: 100%;
    color: #212529;
}

[b-zydof58scj] .receipt-detail-grid .charges-cell,
[b-zydof58scj] .receipt-detail-grid .charges-cell span,
[b-zydof58scj] .receipt-detail-grid .charges-cell input {
    font-weight: 600;
    color: #2e7d32;
}

[b-zydof58scj] .receipt-detail-grid .d365-grid-cell-numeric {
    justify-content: flex-end;
    text-align: right;
}

[b-zydof58scj] .receipt-detail-grid .d365-grid-cell-numeric span {
    font-variant-numeric: tabular-nums;
    width: 100%;
    text-align: right;
}

[b-zydof58scj] .receipt-detail-grid .d365-grid-cell-numeric input {
    text-align: right;
    font-variant-numeric: tabular-nums;
    width: 100%;
}

[b-zydof58scj] .receipt-detail-grid .receipt-amount-col-center,
[b-zydof58scj] .receipt-detail-grid th.receipt-amount-col-center {
    text-align: center;
}

[b-zydof58scj] .receipt-detail-grid .receipt-amount-col-center-cell {
    justify-content: center;
    text-align: center;
}

[b-zydof58scj] .receipt-detail-grid .receipt-amount-col-center-cell span,
[b-zydof58scj] .receipt-detail-grid .receipt-amount-col-center-cell input {
    text-align: center;
}

[b-zydof58scj] .receipt-detail-grid .receipt-grid-total-row td {
    border-top: 1px solid #edebe9;
    background: #faf9f8;
    padding: 8px 8px;
    vertical-align: middle;
}

[b-zydof58scj] .receipt-detail-grid .receipt-grid-total-row td:first-child {
    border-top: 1px solid #edebe9;
}

[b-zydof58scj] .receipt-grid-total-charges-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6c757d;
    text-align: center;
}

[b-zydof58scj] .receipt-grid-total-charges-value {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #1a237e;
}

[b-zydof58scj] .receipt-detail-grid.cmf-container-grid-editing .d365-grid-fo-editable thead th {
    height: 32px;
    padding: 6px 8px;
    white-space: nowrap;
}

[b-zydof58scj] .receipt-detail-grid.cmf-container-grid-editing .d365-grid-fo-editable td {
    height: 32px;
}

[b-zydof58scj] .receipt-detail-grid.cmf-container-grid-editing .d365-grid-cell {
    min-height: 30px;
    height: 100%;
    padding: 2px 4px;
}

[b-zydof58scj] .receipt-detail-grid.cmf-container-grid-editing .d365-grid-cell input:not([type="radio"]):not([type="checkbox"]),
[b-zydof58scj] .receipt-detail-grid.cmf-container-grid-editing .d365-grid-cell select {
    height: 26px;
    font-size: 12px;
    line-height: 1.2;
    min-width: 0;
    width: 100%;
}

[b-zydof58scj] .receipt-detail-grid .d365-grid-cell input[type="radio"],
[b-zydof58scj] .receipt-detail-grid.cmf-container-grid-editing .d365-grid-cell input[type="radio"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    margin: 0;
    padding: 0;
    flex: 0 0 14px;
}

/* Second row: Movement/PO strip + Remarks beside it */
[b-zydof58scj] .receipt-form-second-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px 16px;
    margin-top: 4px;
    margin-bottom: 8px;
    width: 100%;
    /* Keep clear of absolute Receipt Details on the top-right */
    padding-right: 22rem;
    box-sizing: border-box;
}

[b-zydof58scj] .receipt-form-second-row .receipt-details-strip {
    flex: 0 1 auto;
    margin-bottom: 0;
}

[b-zydof58scj] .receipt-payment-details-strip.container-info-strip {
    flex: 0 0 auto;
    min-height: 0 !important;
    height: auto;
    width: 20rem;
    max-width: 20rem;
    margin: 0;
    padding: 8px 14px 10px 10px;
    box-sizing: border-box;
    border-left: 3px solid #ff9800;
    background: #f3f2f1;
    border-radius: 0 4px 4px 0;
}

[b-zydof58scj] .receipt-payment-details-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 9rem;
    text-align: left;
}

[b-zydof58scj] .receipt-payment-details-section .cmf-party-info-section-head {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    min-height: 0;
}

[b-zydof58scj] .receipt-payment-details-section .container-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    width: 100%;
}

[b-zydof58scj] .receipt-payment-details-section .receipt-payment-amounts-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
}

[b-zydof58scj] .receipt-payment-details-section .receipt-payment-amount-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1 1 0;
}

[b-zydof58scj] .receipt-payment-details-section .container-info-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8a8886;
    line-height: 1.2;
}

[b-zydof58scj] .receipt-payment-details-section .container-info-value {
    line-height: 1.25;
    font-size: 11px;
    font-weight: 600;
    color: #323130;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

[b-zydof58scj] .receipt-payment-details-section .receipt-payment-narration-value {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    font-weight: 400;
    font-size: 10.5px;
    line-height: 1.35;
    color: #605e5c;
    max-width: 100%;
    padding-right: 2px;
}

[b-zydof58scj] .receipt-payment-details-section .container-info-value.is-empty {
    color: #a19f9d;
    font-weight: 400;
}

[b-zydof58scj] .receipt-payment-voucher-item .receipt-voucher-link.container-info-value {
    font-size: 11px;
    font-weight: 600;
}

/* Receipt Details — CMF party strip; height/width follow field content (not 96px estimate min-height) */
[b-zydof58scj] .receipt-details-strip.cmf-party-info-strip.container-info-strip {
    min-height: 0 !important;
    height: auto;
    padding: 8px 12px 8px 10px;
    margin-top: 4px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

[b-zydof58scj] .receipt-details-strip .cmf-party-info-layout {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    width: fit-content;
    max-width: 100%;
}

[b-zydof58scj] .receipt-details-strip .cmf-party-info-section.receipt-details-section {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    padding: 0 12px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

[b-zydof58scj] .receipt-details-strip .cmf-party-info-section-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    min-height: 0;
}

[b-zydof58scj] .receipt-details-strip .cmf-party-info-divider {
    width: 1px;
    background: #e0dbd3;
    flex-shrink: 0;
    align-self: stretch;
    margin: 2px 0;
}

[b-zydof58scj] .receipt-details-strip .container-info-row {
    gap: 14px;
    flex-wrap: wrap;
    width: auto;
    max-width: 100%;
}

/* PO/Cheque # + Split + Drawn Bank + Deposit Acc on one line */
[b-zydof58scj] .receipt-details-strip .receipt-details-fields-row {
    flex-wrap: nowrap;
    align-items: flex-end;
    width: max-content;
    max-width: 100%;
}

[b-zydof58scj] .receipt-details-strip .container-info-row-meta {
    margin-top: 6px;
    width: auto;
    max-width: 100%;
}

[b-zydof58scj] .receipt-details-strip .container-info-item {
    min-width: 0;
}

[b-zydof58scj] .receipt-details-strip .container-info-item-full {
    flex: 1 1 100%;
    max-width: 100%;
}

[b-zydof58scj] .receipt-details-strip .container-info-value {
    line-height: 1.25;
    font-size: 11px;
    font-weight: 400;
    color: #323130;
    white-space: normal;
    overflow-wrap: anywhere;
}

[b-zydof58scj] .receipt-details-strip .container-info-value.is-empty {
    color: #a09888;
    font-style: italic;
}

[b-zydof58scj] .receipt-details-strip .container-info-label.is-required::after {
    content: " *";
    color: #d13438;
}

/* Deposit Acc — stays on same row; width follows account text */
[b-zydof58scj] .receipt-details-strip .receipt-details-deposit {
    flex: 0 1 auto;
    flex-shrink: 0;
    width: max-content;
    max-width: none;
    min-width: 0;
}

[b-zydof58scj] .receipt-details-strip .receipt-details-deposit-control {
    display: block;
    margin-top: 2px;
    max-width: 100%;
    box-sizing: border-box;
}

[b-zydof58scj] .receipt-details-strip .receipt-details-deposit-control .autocomplete-select {
    display: block;
    width: 100% !important;
    max-width: 100%;
}

[b-zydof58scj] .receipt-details-strip .receipt-details-deposit-control .autocomplete-input-wrapper {
    width: 100%;
}

[b-zydof58scj] .receipt-details-strip .receipt-details-deposit-control .autocomplete-input {
    width: 100%;
    max-width: 100%;
    font-size: 11px;
    min-height: 26px;
    height: 26px;
    padding-right: 28px !important;
    box-sizing: border-box;
}

[b-zydof58scj] .receipt-details-strip .receipt-details-deposit-value {
    white-space: nowrap;
    overflow: visible;
}

/* PO / Cheque / Drawn Bank — grow with typed content; keep compact for one-row layout */
[b-zydof58scj] .receipt-details-strip .receipt-details-field {
    width: auto;
    min-width: 6.5rem;
    max-width: 12rem;
    margin-top: 2px;
    padding: 3px 6px;
    font-size: 12px;
    min-height: 26px;
    height: 26px;
    field-sizing: content;
}

[b-zydof58scj] .receipt-details-strip .receipt-details-field-wide {
    width: auto;
    min-width: 10rem;
    max-width: 18rem;
    field-sizing: content;
}

[b-zydof58scj] .receipt-details-strip .receipt-details-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    margin-top: 2px;
}

[b-zydof58scj] .receipt-details-strip .receipt-details-check .form-check-label {
    font-size: 11px;
    color: #323130;
    margin: 0;
}

@media (max-width: 1200px) {
    [b-zydof58scj] .receipt-details-strip .cmf-party-info-layout {
        flex-direction: column;
        min-height: 0;
    }
    [b-zydof58scj] .receipt-details-strip .cmf-party-info-divider {
        width: auto;
        height: 1px;
        margin: 0;
    }
    [b-zydof58scj] .receipt-details-strip .cmf-party-info-section.receipt-details-section {
        padding: 10px 14px;
    }
    [b-zydof58scj] .receipt-details-strip .receipt-details-fields-row {
        flex-wrap: wrap;
    }
}

/* Void watermark - same as CMF */
.void-watermark[b-zydof58scj] { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); z-index: 1000; pointer-events: none; opacity: 0.15; }
.void-watermark span[b-zydof58scj] { font-size: 80px; font-weight: bold; color: #d32f2f; border: 8px solid #d32f2f; padding: 20px 60px; letter-spacing: 10px; }
/* /Components/Pages/AccountsVoucher.razor.rz.scp.css */
/* Same page shell as Receipt Entry / CMF: form card + grid card in one g-2 row */
.row.g-2.voucher-page-body-row[b-phggwpvp55] {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

[b-phggwpvp55] .voucher-form-card {
    width: 100%;
}

[b-phggwpvp55] .voucher-form-card .d365-card-body {
    padding-top: 8px;
    padding-bottom: 12px;
}

[b-phggwpvp55] .voucher-form-with-details {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
    box-sizing: border-box;
    padding-top: 0;
}

[b-phggwpvp55] .voucher-form-fields {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

[b-phggwpvp55] .voucher-form-first-row {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 1rem;
    margin-top: 0;
    margin-bottom: 0;
    padding-right: 0;
}

[b-phggwpvp55] .voucher-form-first-row > .col-auto {
    padding-top: 0;
}

[b-phggwpvp55] .voucher-form-first-row .voucher-field-trans {
    width: auto;
    min-width: 110px;
    max-width: 14rem;
}

[b-phggwpvp55] .voucher-form-first-row .voucher-field-voucher {
    width: 105px;
    min-width: 105px;
    height: 32px !important;
    line-height: 22px !important;
    box-sizing: border-box !important;
    padding: 4px 8px !important;
    border-radius: 3px !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-align: center !important;
    margin-bottom: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #d5d0c8 !important;
}

[b-phggwpvp55] .voucher-form-first-row .voucher-field-voucher.badge-si { background-color: #d1ecf1 !important; color: #0c5460 !important; }
[b-phggwpvp55] .voucher-form-first-row .voucher-field-voucher.badge-jv { background-color: #d4edda !important; color: #155724 !important; }
[b-phggwpvp55] .voucher-form-first-row .voucher-field-voucher.badge-rv { background-color: #cce5ff !important; color: #004085 !important; }
[b-phggwpvp55] .voucher-form-first-row .voucher-field-voucher.badge-pv { background-color: #f8d7da !important; color: #721c24 !important; }
[b-phggwpvp55] .voucher-form-first-row .voucher-field-voucher.badge-pi { background-color: #fff3cd !important; color: #856404 !important; }
[b-phggwpvp55] .voucher-form-first-row .voucher-field-voucher.badge-cn { background-color: #e2d5f1 !important; color: #5a3d82 !important; }
[b-phggwpvp55] .voucher-form-first-row .voucher-field-voucher.badge-dn { background-color: #fce4d6 !important; color: #8b4513 !important; }
[b-phggwpvp55] .voucher-form-first-row .voucher-field-voucher.badge-default { background-color: #e2e3e5 !important; color: #383d41 !important; }

/* Header fields — transparent with CMF underline */
[b-phggwpvp55] .voucher-form-fields .cmf-field:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-fields input:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-fields select:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-first-row .cmf-field:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-first-row input:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-first-row select:not(.voucher-field-trans):not(.voucher-field-voucher) {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #d5d0c8 !important;
    border-radius: 0 !important;
}

[b-phggwpvp55] .voucher-form-fields .cmf-field:not(.voucher-field-trans):not(.voucher-field-voucher):hover:not(:disabled):not(:focus):not(:focus-visible),
[b-phggwpvp55] .voucher-form-fields input:not(.voucher-field-trans):not(.voucher-field-voucher):hover:not(:disabled):not(:focus):not(:focus-visible),
[b-phggwpvp55] .voucher-form-fields select:not(.voucher-field-trans):not(.voucher-field-voucher):hover:not(:disabled):not(:focus):not(:focus-visible) {
    border-bottom-color: #2266e3 !important;
}

[b-phggwpvp55] .voucher-form-fields .cmf-field:not(.voucher-field-trans):not(.voucher-field-voucher):focus,
[b-phggwpvp55] .voucher-form-fields .cmf-field:not(.voucher-field-trans):not(.voucher-field-voucher):focus-visible,
[b-phggwpvp55] .voucher-form-fields input:not(.voucher-field-trans):not(.voucher-field-voucher):focus,
[b-phggwpvp55] .voucher-form-fields input:not(.voucher-field-trans):not(.voucher-field-voucher):focus-visible,
[b-phggwpvp55] .voucher-form-fields select:not(.voucher-field-trans):not(.voucher-field-voucher):focus,
[b-phggwpvp55] .voucher-form-fields select:not(.voucher-field-trans):not(.voucher-field-voucher):focus-visible {
    border-bottom: 2px solid #2266e3 !important;
    padding-bottom: 5px !important;
    box-shadow: 0 3px 10px -8px rgba(34, 102, 227, 0.38) !important;
}

[b-phggwpvp55] .voucher-form-fields .cmf-field:disabled:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-fields input:disabled:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-fields select:disabled:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-first-row .cmf-field:disabled:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-first-row input:disabled:not(.voucher-field-trans):not(.voucher-field-voucher),
[b-phggwpvp55] .voucher-form-first-row select:disabled:not(.voucher-field-trans):not(.voucher-field-voucher) {
    background: transparent !important;
    background-color: transparent !important;
    border-bottom-color: #e8e4de !important;
}

[b-phggwpvp55] .voucher-form-fields .voucher-field-trans:disabled,
[b-phggwpvp55] .voucher-form-fields .voucher-field-voucher:disabled {
    border-bottom-color: #e8e4de !important;
}

[b-phggwpvp55] .voucher-form-first-row .voucher-field-date {
    width: 130px;
    min-width: 130px;
}

[b-phggwpvp55] .voucher-form-first-row .voucher-field-narrow {
    width: 72px;
    min-width: 72px;
    text-align: center;
}

[b-phggwpvp55] .voucher-form-first-row .voucher-field-ref {
    width: 120px;
    min-width: 120px;
}

[b-phggwpvp55] .voucher-form-second-row {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

[b-phggwpvp55] .voucher-form-second-row > .col-12 {
    padding-top: 0;
    padding-bottom: 0;
}

[b-phggwpvp55] .voucher-field-narration {
    width: 100%;
}

[b-phggwpvp55] .voucher-field-narration .cmf-field {
    width: 100%;
}

[b-phggwpvp55] .container-info-strip.voucher-payment-details-strip.voucher-payment-top-right {
    position: static;
    flex: 0 0 auto;
    width: 25rem;
    max-width: 42%;
    min-height: 0 !important;
    height: auto;
    margin: 0;
    padding: 8px 12px 10px 12px;
    box-sizing: border-box;
    border-left: 3px solid #ff9800;
    background: #f3f2f1;
    border-radius: 4px;
    pointer-events: none;
}

[b-phggwpvp55] .voucher-payment-details-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    text-align: left;
}

[b-phggwpvp55] .voucher-payment-details-section .cmf-party-info-section-head {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    min-height: 0;
}

[b-phggwpvp55] .voucher-payment-details-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
    column-gap: 10px;
    row-gap: 5px;
    width: 100%;
}

[b-phggwpvp55] .voucher-payment-details-grid .voucher-payment-party-item {
    grid-column: 1 / -1;
}

[b-phggwpvp55] .voucher-payment-details-grid .voucher-payment-recording-date-value {
    white-space: nowrap;
    font-size: 10.5px;
    font-weight: 600;
}

[b-phggwpvp55] .voucher-payment-details-grid .container-info-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}

[b-phggwpvp55] .voucher-payment-details-grid .container-info-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #8a8886;
    line-height: 1.2;
}

[b-phggwpvp55] .voucher-payment-details-grid .container-info-value {
    line-height: 1.25;
    font-size: 11px;
    font-weight: 600;
    color: #323130;
    font-variant-numeric: tabular-nums;
    max-width: 100%;
}

[b-phggwpvp55] .voucher-payment-details-grid .voucher-payment-party-value {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    font-weight: 500;
    font-size: 11px;
    line-height: 1.3;
    color: #323130;
}

[b-phggwpvp55] .voucher-payment-details-grid .container-info-value.is-empty {
    color: #a19f9d;
    font-weight: 400;
}

/* Grid card — same CMF container-detail pattern as Receipt / CMF */
[b-phggwpvp55] .voucher-detail-grid.cmf-container-detail-grid .d365-editable-grid-toolbar {
    border-radius: var(--d365-radius-md) var(--d365-radius-md) 0 0;
}

[b-phggwpvp55] .voucher-detail-grid .cmf-container-detail-grid-scroll {
    max-height: none;
}

[b-phggwpvp55] .voucher-below-grid-totals {
    margin-top: 0;
    border-top: 1px solid #e1dfdd;
    border-radius: 0 0 var(--d365-radius-md) var(--d365-radius-md);
}

[b-phggwpvp55] .voucher-form-with-details .cmf-field:disabled,
[b-phggwpvp55] .voucher-form-with-details select.cmf-field:disabled {
    opacity: 1;
    color: #323130;
}

[b-phggwpvp55] .voucher-form-first-row .cmf-value-display.is-empty {
    color: #a19f9d;
    font-weight: 400;
}

[b-phggwpvp55] .voucher-form-first-row .voucher-badge.cmf-value-display {
    text-transform: none;
    font-size: 12px;
}

/* Voucher detail grid — transparent cells (match header underline style) */
[b-phggwpvp55] .voucher-detail-grid .d365-grid-cell-editable:hover {
    background: transparent !important;
}

[b-phggwpvp55] .voucher-detail-grid tbody tr:hover {
    background: transparent !important;
}

[b-phggwpvp55] .voucher-detail-grid .d365-grid-cell input,
[b-phggwpvp55] .voucher-detail-grid .d365-grid-cell select,
[b-phggwpvp55] .voucher-detail-grid .form-control,
[b-phggwpvp55] .voucher-detail-grid .form-select {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
}

[b-phggwpvp55] .voucher-detail-grid .d365-grid-cell input:focus,
[b-phggwpvp55] .voucher-detail-grid .d365-grid-cell select:focus,
[b-phggwpvp55] .voucher-detail-grid .form-control:focus,
[b-phggwpvp55] .voucher-detail-grid .form-select:focus {
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

[b-phggwpvp55] .voucher-detail-grid .d365-grid-cell select:hover {
    background-color: transparent !important;
}

[b-phggwpvp55] .voucher-detail-grid input:disabled,
[b-phggwpvp55] .voucher-detail-grid select:disabled,
[b-phggwpvp55] .voucher-detail-grid .form-control:disabled,
[b-phggwpvp55] .voucher-detail-grid .form-select:disabled,
[b-phggwpvp55] .voucher-detail-grid .disabled-field,
[b-phggwpvp55] .voucher-detail-grid .inherited-field {
    background: transparent !important;
    background-color: transparent !important;
    color: #323130 !important;
    -webkit-text-fill-color: #323130;
    opacity: 1;
    border-bottom-color: #e8e4de !important;
}

/* Account column — wider so code + name is visible */
[b-phggwpvp55] .voucher-detail-grid th.voucher-col-account,
[b-phggwpvp55] .voucher-detail-grid td.account-search-cell {
    min-width: 340px;
    width: 340px;
}

[b-phggwpvp55] .voucher-detail-grid .account-search-wrapper {
    width: 100%;
    min-width: 0;
}

[b-phggwpvp55] .voucher-detail-grid .account-search-cell .d365-grid-cell {
    overflow: visible;
    min-width: 0;
}

[b-phggwpvp55] .voucher-detail-grid .account-search-input {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow-x: auto;
    text-overflow: clip;
}

/* Side hint Dr / Cr - 5px italic, no bg */
[b-phggwpvp55] .side-hint {
    font-size: 7px !important;
    font-style: italic !important;
    font-weight: 600 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    display: inline-block;
    line-height: 1 !important;
}
[b-phggwpvp55] .side-hint-dr { color: #28a745 !important; }
[b-phggwpvp55] .side-hint-cr { color: #dc3545 !important; }
[b-phggwpvp55] .side-hint-active { background: transparent !important; }
/* /Components/Pages/Accounts/Reports/FinanceAccountFilter.razor.rz.scp.css */
/* Account search filter for the Accounts & Finance reports. The text box reuses .sr-filter-select
   from TerminalReportShellStyles; the match list, the picked-name note and the multi-select chips
   are local to this component, so the other report filters render exactly as before. */

.fa-account-filter[b-28412wm089] {
    max-width: 320px;
}

.fa-account-hits[b-28412wm089] {
    margin-top: 4px;
    padding: 2px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
}

/* Account rows replaced the native <select size="8"> list: the native list box only reacted
   to the mouse when it owned focus, so typing in the box left Up / Down dead. */
.fa-account-hit[b-28412wm089] {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.25;
    color: #1a1a1a;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
}

.fa-account-hit.active[b-28412wm089] {
    background: #dbe4ff;
}

.fa-account-hit-code[b-28412wm089] {
    flex: 0 0 auto;
    font-weight: 600;
}

.fa-account-hit-name[b-28412wm089] {
    flex: 1 1 auto;
    min-width: 0;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-sr-panel="white"] .fa-account-hits[b-28412wm089] {
    border-color: #d5d0c8;
    background: #fff;
}

html[data-sr-panel="white"] .fa-account-hit.active[b-28412wm089] {
    background: #e8eeff;
}

.fa-account-note[b-28412wm089] {
    margin-top: 2px;
    font-size: 0.7rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-sr-panel="white"] .fa-account-note[b-28412wm089] {
    color: #605e5c;
}

.fa-account-chips[b-28412wm089] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.fa-account-chip[b-28412wm089] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 1px 6px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.7rem;
    color: #fff;
}

html[data-sr-panel="white"] .fa-account-chip[b-28412wm089] {
    border-color: #d5d0c8;
    background: #f3f2f1;
    color: #323130;
}

.fa-account-chip button[b-28412wm089] {
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.8rem;
    line-height: 1;
    cursor: pointer;
}

.fa-account-clear[b-28412wm089] {
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.7rem;
    text-decoration: underline;
    cursor: pointer;
}
/* /Components/Pages/Accounts/Reports/TrialBalanceReport.razor.rz.scp.css */
/* Legacy frmAccountTrialBalance (DevExpress advBandedGridView1, PaintStyleName = "Flat").
   The designer paints every band and column header on a WHITE panel with a WHITE border
   (Appearance.BandPanel / BandPanelBackground / HeaderPanel = White), rows use Century Gothic
   8.25pt, amounts are "{0:n2}" right aligned (HorzAlignment.Far), only vertical rules are drawn
   (OptionsView.ShowHorizontalLines = False) and the footer totals only AccountLevelCode 1 rows. */

.tb-grid[b-ouot4p0rrh] {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Century Gothic', 'Segoe UI', sans-serif;
    font-size: 11px;
    color: #000;
    background: #fff;
}

/* The banner + band rows must not stick like a normal web grid header, otherwise the five
   header rows stack on top of each other in the scroll pane. */
.tb-grid th[b-ouot4p0rrh] {
    position: static;
    background: #fff;
    border: none;
    padding: 2px 6px;
    color: #000;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    white-space: nowrap;
}

.tb-grid td[b-ouot4p0rrh] {
    border: none;
    border-left: 1px solid #dcdcdc;
    padding: 1px 6px;
    background: #fff;
    color: #000;
    font-size: 11px;
    vertical-align: middle;
    white-space: nowrap;
}

.tb-grid td:first-child[b-ouot4p0rrh] {
    border-left: none;
}

/* gridBand1: company name, Century Gothic 14.25pt Bold, centred. */
.tb-grid .tb-company th[b-ouot4p0rrh] {
    padding: 6px 0 2px;
    font-size: 14.25pt;
    font-weight: 700;
    letter-spacing: 0.4px;
}

/* gridBand2: "BALANCES OF ACCOUNTS", Century Gothic 8.25pt Bold Italic, centred. */
.tb-grid .tb-caption th[b-ouot4p0rrh] {
    padding: 1px 0;
    font-size: 11px;
    font-style: italic;
    font-weight: 700;
}

/* gridBand14: "{From} UPTO {Till}", Century Gothic 8.25pt Bold (form constructor caption). */
.tb-grid .tb-period th[b-ouot4p0rrh] {
    padding: 1px 0;
    font-size: 11px;
    font-weight: 700;
}

/* gridBand15: "Printed On {MMMM dd,yyyy hh:mm:ss}", inherits the BandPanel 8.25pt Bold look. */
.tb-grid .tb-printed th[b-ouot4p0rrh] {
    padding: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
}

/* Opening / Transaction / Balance group captions and the Debit / Credit captions share the same
   white band panel, so the header reads as one banded block with no grey fill and no rules. */
.tb-grid .tb-bands th[b-ouot4p0rrh],
.tb-grid .tb-columns th[b-ouot4p0rrh] {
    background: #fff;
    font-weight: 700;
}

.tb-grid .tb-columns th[b-ouot4p0rrh] {
    padding-top: 0;
}

/* Designer widths: bandedGridColumn1 130, bandedGridColumn2 300, every Debit / Credit 100.
   Only the CELLS are left aligned (bandedGridColumn1/2 AppearanceCell HAlignment = Near); the band
   captions for gridBand4 "Account No" / gridBand5 "Account Title" stay centred like every other
   band (AppearanceHeader HAlignment = Center), so the header alignment is scoped to td. */
.tb-grid td.tb-col-code[b-ouot4p0rrh] {
    width: 130px;
    text-align: left;
}

.tb-grid td.tb-col-title[b-ouot4p0rrh] {
    width: 300px;
    text-align: left;
    /* The service indents child accounts with leading spaces exactly like legacy
       setAccountName(), and HTML would collapse them without pre-wrap. */
    white-space: pre-wrap;
}

.tb-grid th.tb-col-code[b-ouot4p0rrh],
.tb-grid th.tb-col-title[b-ouot4p0rrh] {
    text-align: center;
}

.tb-grid th.tb-num[b-ouot4p0rrh] {
    width: 100px;
}

/* Amounts: DevExpress n2 (RDLC "#,0.00;(#,0.00)"), HorzAlignment.Far, same font as the row. */
.tb-grid td.sr-cell-number[b-ouot4p0rrh] {
    text-align: right;
    font-family: inherit;
    white-space: nowrap;
}

/* Legacy advBandedGridView1_RowStyle: Typ = "H" (header nature) rows are bold. */
.tb-grid .tb-row-bold td[b-ouot4p0rrh] {
    font-weight: 700;
}

/* Footer (OptionsView.ShowFooter + CustomSummaryCalculate): numbers only, no caption, {0:n2},
   right aligned under each money column, grey skin background. */
.tb-grid .tb-total td[b-ouot4p0rrh] {
    background: #f2f2f2;
    border-top: 1px solid #c8c8c8;
    font-weight: 400;
}

.tb-grid .sr-empty-row[b-ouot4p0rrh] {
    border: none;
    padding: 10px 6px;
}
/* /Components/Pages/Admin/AdminUiThemeSettings.razor.rz.scp.css */
.ui-theme-admin-split[b-t2kyyllk2a] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
    gap: 16px;
    height: calc(100vh - 132px);
    min-height: 520px;
    overflow: hidden;
}

.ui-theme-admin-main[b-t2kyyllk2a] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.ui-theme-admin-scroll[b-t2kyyllk2a] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

.ui-theme-admin-preview[b-t2kyyllk2a] {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.ui-theme-preview-card-shell[b-t2kyyllk2a] {
    height: 100%;
}

.ui-theme-icon-preview-assignments[b-t2kyyllk2a] {
    padding: 10px 12px;
    border: 1px solid #edebe9;
    border-radius: 4px;
    background: #faf9f8;
}

.ui-theme-icon-preview-assignments-title[b-t2kyyllk2a] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #605e5c;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ui-theme-icon-preview-assignments-grid[b-t2kyyllk2a] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ui-theme-icon-assignment[b-t2kyyllk2a] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #edebe9;
    border-radius: 4px;
    background: #fff;
    min-width: 0;
}

.ui-theme-icon-assignment-glyph[b-t2kyyllk2a] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: #323130;
}

.ui-theme-icon-assignment-label[b-t2kyyllk2a] {
    font-size: 0.72rem;
    color: #323130;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ui-theme-icon-btn fluent-icon[b-t2kyyllk2a],
.ui-theme-preview-cmd fluent-icon[b-t2kyyllk2a],
.d365-btn fluent-icon[b-t2kyyllk2a],
.ui-theme-icon-assignment-glyph fluent-icon[b-t2kyyllk2a] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
    color: inherit;
}

.ui-theme-icon-btn fluent-icon svg[b-t2kyyllk2a],
.ui-theme-preview-cmd fluent-icon svg[b-t2kyyllk2a],
.ui-theme-icon-assignment-glyph fluent-icon svg[b-t2kyyllk2a],
.ui-theme-icon-glyph fluent-icon svg[b-t2kyyllk2a] {
    fill: currentColor;
}

.ui-theme-preview-cmd[b-t2kyyllk2a] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid #edebe9;
    background: #fff;
    border-radius: 2px;
    padding: 4px 8px;
    font-size: 0.72rem;
    color: #323130;
}

.ui-theme-preview-cmd-danger[b-t2kyyllk2a] {
    color: #a4262c;
    border-color: #f1bbbc;
    background: #fdf3f4;
}

@media (max-width: 991.98px) {
    .ui-theme-admin-split[b-t2kyyllk2a] {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .ui-theme-admin-main[b-t2kyyllk2a],
    .ui-theme-admin-preview[b-t2kyyllk2a] {
        overflow: visible;
        max-height: none;
    }

    .ui-theme-admin-scroll[b-t2kyyllk2a] {
        max-height: none;
        overflow: visible;
    }

    .ui-theme-admin-preview[b-t2kyyllk2a] {
        position: sticky;
        top: 8px;
    }
}

.ui-theme-admin-tabs .nav-link[b-t2kyyllk2a] {
    font-size: 0.82rem;
    font-weight: 600;
    color: #605e5c;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 8px 14px;
}
.ui-theme-admin-tabs .nav-link.active[b-t2kyyllk2a] {
    color: #0078d4;
    border-bottom-color: #0078d4;
    background: transparent;
}
.ui-theme-help[b-t2kyyllk2a] {
    font-size: 0.78rem;
}
.ui-theme-field-hint[b-t2kyyllk2a] {
    font-size: 0.72rem;
    color: #605e5c;
    margin-top: 4px;
}
.ui-theme-listing-radios[b-t2kyyllk2a] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 36rem;
}
.ui-theme-listing-radio[b-t2kyyllk2a] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #edebe9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.ui-theme-listing-radio.is-selected[b-t2kyyllk2a] {
    border-color: #0078d4;
    background: #f3f9fd;
}
.ui-theme-listing-radio input[b-t2kyyllk2a] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}
.ui-theme-listing-radio span[b-t2kyyllk2a] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ui-theme-listing-radio small[b-t2kyyllk2a] {
    color: #605e5c;
    font-size: 0.72rem;
}
.ui-theme-color-row[b-t2kyyllk2a] {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ui-theme-color-swatch[b-t2kyyllk2a] {
    width: 42px;
    height: 34px;
    padding: 2px;
    flex-shrink: 0;
}
.ui-theme-icon-group[b-t2kyyllk2a] {
    margin-bottom: 16px;
}
.ui-theme-icon-group-title[b-t2kyyllk2a] {
    font-size: 0.78rem;
    font-weight: 600;
    color: #323130;
    margin-bottom: 8px;
}
.ui-theme-icon-grid[b-t2kyyllk2a] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ui-theme-icon-btn fluent-icon[b-t2kyyllk2a],
.ui-theme-preview-cmd fluent-icon[b-t2kyyllk2a],
.d365-btn fluent-icon[b-t2kyyllk2a] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
}

.ui-theme-icon-glyph[b-t2kyyllk2a] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #323130;
}

.ui-theme-icon-toolbar-sample[b-t2kyyllk2a] {
    padding: 12px;
    border: 1px solid #edebe9;
    border-radius: 4px;
    background: #faf9f8;
}

.ui-theme-icon-sample-title[b-t2kyyllk2a] {
    font-size: 0.72rem;
    font-weight: 600;
    color: #605e5c;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ui-theme-icon-toolbar-sample-row[b-t2kyyllk2a] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ui-theme-preview-cmd-primary[b-t2kyyllk2a] {
    background: #0078d4;
    border-color: #0078d4;
    color: #fff;
}

.ui-theme-preview-cmd-primary fluent-icon[b-t2kyyllk2a] {
    color: #fff;
    fill: #fff;
}

.ui-theme-preview-cmd-icon[b-t2kyyllk2a] {
    min-width: 32px;
    justify-content: center;
}

.ui-theme-fluent-btn-icon[b-t2kyyllk2a] {
    margin-right: 6px;
}

.ui-theme-icon-btn[b-t2kyyllk2a] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 72px;
    padding: 8px 6px;
    border: 1px solid #edebe9;
    border-radius: 4px;
    background: #fff;
    font-size: 0.65rem;
    color: #605e5c;
    cursor: pointer;
}
.ui-theme-icon-btn i[b-t2kyyllk2a] {
    font-size: 1.1rem;
    color: #323130;
}
.ui-theme-icon-btn.is-selected[b-t2kyyllk2a] {
    border-color: #0078d4;
    background: #f3f9fd;
    box-shadow: inset 0 0 0 1px #0078d4;
}
.ui-theme-icon-btn:hover[b-t2kyyllk2a] {
    background: #faf9f8;
}
.ui-theme-icon-missing[b-t2kyyllk2a] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25em;
    height: 1.25em;
    border: 1px dashed #c8c6c4;
    border-radius: 2px;
    color: #a19f9d;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
}

.ui-theme-preview-sticky[b-t2kyyllk2a] {
    position: sticky;
    top: 12px;
}
.ui-theme-preview-cmdbar[b-t2kyyllk2a] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.ui-theme-preview-grid-wrap[b-t2kyyllk2a] {
    margin: 10px 0;
    overflow: auto;
}
.ui-theme-preview-grid[b-t2kyyllk2a] {
    width: 100%;
    font-size: 0.72rem;
}
.ui-theme-preview-grid th[b-t2kyyllk2a],
.ui-theme-preview-grid td[b-t2kyyllk2a] {
    padding: 4px 8px;
    border-bottom: 1px solid #edebe9;
}
/* /Components/Pages/CFS/CfsBooking.razor.rz.scp.css */
/* Booked By multi-select dropdown */
.booking-bookby-backdrop[b-pagsf6nt8z] {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: transparent;
}

.booking-bookby .autocomplete-dropdown[b-pagsf6nt8z] {
    z-index: 50;
}

.booking-bookby-item[b-pagsf6nt8z] {
    display: flex !important;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.booking-bookby-item input[type="checkbox"][b-pagsf6nt8z] {
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
}

.booking-bookby .autocomplete-input[b-pagsf6nt8z] {
    text-transform: none !important;
    cursor: pointer;
}

/* Charges button (dialog uses Bootstrap modal + inline styles) */
.booking-charges-col[b-pagsf6nt8z] {
    margin-left: auto;
    min-width: 8rem;
}

.booking-charges-btn[b-pagsf6nt8z] {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Active charge count riding on the Add Charges trigger in the page heading. */
.booking-charges-count[b-pagsf6nt8z] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.1rem;
    height: 1.1rem;
    margin-left: 0.35rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--d365-primary-dark, #0b3d6b);
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
}

/* Charges dialog — borderless Party / Transporter (legacy grid combo look) */
.booking-cost-party-cell[b-pagsf6nt8z] {
    min-width: 9rem;
    max-width: 14rem;
    vertical-align: middle;
}

.booking-cost-party-input[b-pagsf6nt8z] {
    min-width: 8rem;
}

.booking-cost-party-input[b-pagsf6nt8z]  .autocomplete-select,
.booking-cost-party-input[b-pagsf6nt8z]  .autocomplete-input-wrapper {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.booking-cost-party-input[b-pagsf6nt8z]  .autocomplete-input,
.booking-cost-party-input[b-pagsf6nt8z]  .d365-form-control {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    height: 28px;
    min-height: 28px;
    padding-left: 2px;
    padding-right: 22px;
}

.booking-cost-party-input[b-pagsf6nt8z]  .autocomplete-toggle {
    border: none !important;
    background: transparent !important;
}

/* =========================================================================
   Movement Plan — modern timeline (D365 blue palette)
   ========================================================================= */
.booking-plan-backdrop[b-pagsf6nt8z] {
    background: rgba(15, 23, 42, 0.42);
    z-index: 1060;
}

.booking-plan-dialog[b-pagsf6nt8z] {
    max-width: 720px;
}

.booking-movement-plan[b-pagsf6nt8z] {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.booking-plan-header[b-pagsf6nt8z] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 16px;
    background: linear-gradient(135deg, #0f4c81 0%, #0078d4 55%, #2b88d8 100%);
    color: #fff;
}

.booking-plan-header-main[b-pagsf6nt8z] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.booking-plan-header-icon[b-pagsf6nt8z] {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.booking-plan-title[b-pagsf6nt8z] {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #fff;
}

.booking-plan-subtitle[b-pagsf6nt8z] {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.booking-plan-code[b-pagsf6nt8z] {
    font-weight: 600;
    color: #fff;
}

.booking-plan-dot[b-pagsf6nt8z] {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.booking-plan-header-meta[b-pagsf6nt8z] {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.booking-plan-count[b-pagsf6nt8z] {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    white-space: nowrap;
}

.booking-plan-close[b-pagsf6nt8z] {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.booking-plan-close:hover[b-pagsf6nt8z] {
    background: rgba(255, 255, 255, 0.22);
}

.booking-plan-body[b-pagsf6nt8z] {
    background: #f3f6f9;
    padding: 16px 18px 8px;
    max-height: min(62vh, 560px);
    overflow: auto;
}

.booking-plan-empty[b-pagsf6nt8z] {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: #605e5c;
    background: #fff;
    border: 1px dashed #c8c6c4;
    border-radius: 10px;
    padding: 28px 16px;
}

.booking-plan-empty i[b-pagsf6nt8z] {
    font-size: 1.75rem;
    color: #0078d4;
    opacity: 0.7;
}

.booking-plan-empty-title[b-pagsf6nt8z] {
    font-size: 14px;
    font-weight: 600;
    color: #242424;
}

.booking-plan-empty-text[b-pagsf6nt8z] {
    font-size: 12px;
    max-width: 22rem;
}

/* ---- Movement Plan rows -------------------------------------------------------------
   Typography follows the Apple-style notifications (.apple-toast in app.css): 12px/700 title,
   11px body/meta, 10px badges. Rows are compact cards; the left chevron reveals the container
   numbers of an activity instead of repeating the same activity once per container. */
.booking-plan-list[b-pagsf6nt8z] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-plan-row[b-pagsf6nt8z] {
    background: #fff;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.booking-plan-row:hover[b-pagsf6nt8z] {
    border-color: #c3d9ee;
    box-shadow: 0 3px 10px rgba(0, 120, 212, 0.07);
}

/* The plan is sequential: the row being worked on now is lifted out, everything queued behind it
   fades back so nobody reads a later activity as available. */
.booking-plan-row.is-current[b-pagsf6nt8z] {
    border-color: #7fb6e6;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.12), 0 3px 10px rgba(0, 120, 212, 0.08);
}

.booking-plan-row.is-current .booking-plan-kind-icon[b-pagsf6nt8z] {
    background: #0078d4;
    color: #fff;
}

.booking-plan-row.is-waiting[b-pagsf6nt8z] {
    background: #fbfcfd;
    border-style: dashed;
    border-color: #e6ebf0;
}

.booking-plan-row.is-waiting .booking-plan-activity[b-pagsf6nt8z],
.booking-plan-row.is-waiting .booking-plan-qty[b-pagsf6nt8z] {
    color: #9aa5b1;
}

.booking-plan-row.is-waiting .booking-plan-kind-icon[b-pagsf6nt8z] {
    opacity: 0.6;
}

.booking-plan-row.is-completed .booking-plan-activity[b-pagsf6nt8z] {
    color: #3b3a39;
}

.booking-plan-state-icon[b-pagsf6nt8z] {
    flex-shrink: 0;
    font-size: 0.72rem;
}

.booking-plan-state-icon.is-done[b-pagsf6nt8z] {
    color: #0e700e;
}

.booking-plan-state-icon.is-active[b-pagsf6nt8z] {
    color: #c19c00;
}

.booking-plan-state-icon.is-waiting[b-pagsf6nt8z] {
    color: #b8bec7;
}

.booking-plan-row-head[b-pagsf6nt8z] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}

.booking-plan-expander[b-pagsf6nt8z] {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #8a8886;
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.booking-plan-expander:hover:not(:disabled)[b-pagsf6nt8z] {
    background: #eef4fa;
    color: #0078d4;
}

.booking-plan-expander:disabled[b-pagsf6nt8z] {
    opacity: 0.25;
    cursor: default;
}

.booking-plan-kind-icon[b-pagsf6nt8z] {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e8f3fc;
    color: #0078d4;
    font-size: 0.78rem;
}

.booking-plan-row-haul .booking-plan-kind-icon[b-pagsf6nt8z] {
    background: #eaf6ee;
    color: #0e7a2f;
}

.booking-plan-row-handle .booking-plan-kind-icon[b-pagsf6nt8z] {
    background: #fff4e5;
    color: #c05600;
}

.booking-plan-row-stock .booking-plan-kind-icon[b-pagsf6nt8z] {
    background: #e9f7ee;
    color: #0e7a2f;
}

.booking-plan-row-depot .booking-plan-kind-icon[b-pagsf6nt8z] {
    background: #f3f0fb;
    color: #4b3f8f;
}

.booking-plan-row-insurance .booking-plan-kind-icon[b-pagsf6nt8z],
.booking-plan-row-weighment .booking-plan-kind-icon[b-pagsf6nt8z] {
    background: #e8f3fc;
    color: #0f4c81;
}

.booking-plan-row-main[b-pagsf6nt8z] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.booking-plan-row-title[b-pagsf6nt8z] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.booking-plan-activity[b-pagsf6nt8z] {
    font-size: 12px;
    font-weight: 700;
    color: #242424;
    line-height: 1.2;
    word-break: break-word;
}

.booking-plan-qty[b-pagsf6nt8z] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
    padding: 1px 7px;
    border-radius: 999px;
    background: #eef4fa;
    color: #0f4c81;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
}

.booking-plan-route[b-pagsf6nt8z] {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: 11px;
    color: #605e5c;
    line-height: 1.25;
}

.booking-plan-route > i[b-pagsf6nt8z] {
    flex-shrink: 0;
    color: #9aa5b1;
    font-size: 0.72rem;
}

.booking-plan-loc[b-pagsf6nt8z] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-plan-route-arrow[b-pagsf6nt8z] {
    flex-shrink: 0;
    color: #0078d4 !important;
    opacity: 0.8;
}

.booking-plan-chips[b-pagsf6nt8z] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

.booking-plan-chip[b-pagsf6nt8z] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #3b3a39;
    background: #f3f2f1;
    border-radius: 999px;
    padding: 1px 7px;
    line-height: 1.5;
    max-width: 100%;
}

.booking-plan-chip-move[b-pagsf6nt8z] {
    background: #fff4e5;
    color: #a85400;
}

.booking-plan-chip-move.is-completed[b-pagsf6nt8z] {
    background: #dff6dd;
    color: #107c10;
}

.booking-plan-chip-move.is-inprocess[b-pagsf6nt8z] {
    background: #fff4ce;
    color: #8a4b00;
}

.booking-plan-chip-size[b-pagsf6nt8z] {
    background: #e8f3fc;
    color: #0f4c81;
}

.booking-plan-chip-party[b-pagsf6nt8z] {
    background: #eef6fc;
    color: #0f4c81;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-plan-row-side[b-pagsf6nt8z] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.booking-plan-progress[b-pagsf6nt8z] {
    font-size: 10px;
    font-weight: 650;
    color: #8a8886;
    font-variant-numeric: tabular-nums;
}

.booking-plan-process[b-pagsf6nt8z] {
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.booking-plan-process-pending[b-pagsf6nt8z] {
    background: #f0f0f0;
    color: #605e5c;
}

.booking-plan-process-next[b-pagsf6nt8z] {
    background: #0078d4;
    color: #fff;
}

.booking-plan-process-waiting[b-pagsf6nt8z] {
    background: #fff;
    color: #9aa5b1;
    border: 1px dashed #d5dbe2;
}

.booking-plan-process-completed[b-pagsf6nt8z] {
    background: #dff6dd;
    color: #0e700e;
}

.booking-plan-process-cancelled[b-pagsf6nt8z] {
    background: #fde7e9;
    color: #a4262c;
}

.booking-plan-process-inprocess[b-pagsf6nt8z] {
    background: #fff4ce;
    color: #8a6116;
}

.booking-plan-containers[b-pagsf6nt8z] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 7px 10px 9px 46px;
    border-top: 1px dashed #edebe9;
    background: #fafcfd;
}

.booking-plan-container-chip[b-pagsf6nt8z] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef4fa;
    color: #0f4c81;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.booking-plan-container-chip.is-completed[b-pagsf6nt8z] {
    background: #e6f6e6;
    color: #0e700e;
}

.booking-plan-container-chip.is-inprocess[b-pagsf6nt8z] {
    background: #fff4ce;
    color: #8a6116;
}

.booking-plan-container-chip.is-pending[b-pagsf6nt8z] {
    background: #f3f2f1;
    color: #8a8886;
}

.booking-plan-footnote[b-pagsf6nt8z] {
    margin: 8px 2px 10px;
    font-size: 11px;
    color: #8a8886;
}

.booking-plan-footer[b-pagsf6nt8z] {
    display: flex;
    justify-content: flex-end;
    padding: 12px 18px;
    background: #fff;
    border-top: 1px solid #edebe9;
}

.booking-plan-footer-close[b-pagsf6nt8z] {
    min-width: 96px;
    height: 32px;
    border: 1px solid #8a8886;
    border-radius: 4px;
}

@media (max-width: 640px) {
    .booking-plan-dialog[b-pagsf6nt8z] {
        max-width: 96vw;
        margin: 0.5rem;
    }

    /* Route stays on one line inside the compact row — it truncates per location instead. */
    .booking-plan-route[b-pagsf6nt8z] {
        gap: 4px;
    }

    .booking-plan-row-side[b-pagsf6nt8z] {
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
    }

    .booking-plan-containers[b-pagsf6nt8z] {
        padding-left: 10px;
    }
}

/* =========================================================================
   Quotation-style layout (adapted from CfsQuotation.razor.css, scoped here)
   ========================================================================= */

/* Top layout: main + service rail (right) */
.booking-top-layout[b-pagsf6nt8z] {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.booking-main[b-pagsf6nt8z] {
    flex: 1 1 auto;
    min-width: 0;
}

/* Explicit toolbar rows so Bootstrap .row wrap cannot split Mov Activity from BL/Journey */
.booking-toolbar-row[b-pagsf6nt8z] {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
    overflow: visible;
    margin-bottom: 0.35rem;
}

.booking-toolbar-field[b-pagsf6nt8z] {
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
}

.booking-toolbar-journey-hint[b-pagsf6nt8z] {
    flex: 0 1 auto;
    min-width: 6rem;
    max-width: 14rem;
}

.booking-toolbar-row .booking-details-capsule-wrap[b-pagsf6nt8z] {
    flex: 0 0 auto;
}

.booking-service-rail[b-pagsf6nt8z] {
    flex: 0 0 28rem;
    max-width: 30rem;
    margin-left: 12px;
    padding: 0 0 0 12px;
    border-left: 1px solid #c8c6c4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
    box-sizing: border-box;
}

@media (max-width: 1100px) {
    .booking-top-layout[b-pagsf6nt8z] {
        flex-direction: column;
    }

    .booking-service-rail[b-pagsf6nt8z] {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        padding-left: 0;
        padding-top: 10px;
        border-left: none;
        border-top: 1px solid #c8c6c4;
    }
}

/* Details capsule button (top row + secondary) */
.booking-details-capsule-wrap[b-pagsf6nt8z] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: flex-end;
    flex-shrink: 0;
    min-height: 1.35rem;
    margin-bottom: 2px;
    padding-top: 0;
}

.booking-details-capsule-btn[b-pagsf6nt8z] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #0078d4;
    color: #fff;
    border-radius: 2px;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    min-height: 20px;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.booking-details-capsule-btn:hover:not(:disabled)[b-pagsf6nt8z] {
    background: #106ebe;
}

.booking-details-capsule-btn:disabled[b-pagsf6nt8z] {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-details-capsule-btn-secondary[b-pagsf6nt8z] {
    background: #605e5c;
}

.booking-details-capsule-btn-secondary:hover:not(:disabled)[b-pagsf6nt8z] {
    background: #494847;
}

/* Party info strip (view-only cards) */
.booking-party-info-strip.container-info-strip[b-pagsf6nt8z] {
    min-height: 0;
    padding: 6px 0 6px 10px;
    width: 100%;
    margin: 4px 0 8px;
    box-sizing: border-box;
}

.booking-party-info-layout[b-pagsf6nt8z] {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    width: 100%;
    max-width: 100%;
}

.booking-party-info-section[b-pagsf6nt8z] {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    flex-direction: column;
}

.booking-party-info-section.booking-party-info-shipping[b-pagsf6nt8z] {
    flex: 0 0 26rem;
    width: 26rem;
    max-width: 26rem;
    min-width: 26rem;
}

.booking-party-info-section.booking-party-info-poc[b-pagsf6nt8z] {
    flex: 0 0 22rem;
    width: 22rem;
    max-width: 22rem;
    min-width: 22rem;
}

.booking-party-info-section.booking-party-info-vessel[b-pagsf6nt8z] {
    flex: 1 1 22rem;
    min-width: 20rem;
    max-width: none;
}

.booking-party-info-section:hover[b-pagsf6nt8z] {
    background: rgba(34, 102, 227, 0.05);
}

.booking-party-info-section:focus-visible[b-pagsf6nt8z] {
    outline: 2px solid #2266e3;
    outline-offset: -2px;
}

.booking-party-info-section-head[b-pagsf6nt8z] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
    min-height: 18px;
}

.booking-party-info-logistics-row1[b-pagsf6nt8z] {
    gap: 14px;
}

.booking-party-info-divider[b-pagsf6nt8z] {
    width: 1px;
    background: #e0dbd3;
    flex-shrink: 0;
    align-self: stretch;
    margin: 2px 2px;
}

.booking-party-info-strip .container-info-row[b-pagsf6nt8z] {
    gap: 12px;
    width: 100%;
}

.booking-party-info-strip .container-info-row-meta[b-pagsf6nt8z] {
    margin-top: 2px;
}

.booking-party-info-strip .container-info-value[b-pagsf6nt8z] {
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.booking-party-info-strip .container-info-item[b-pagsf6nt8z] {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.booking-party-info-vessel .container-info-item-half[b-pagsf6nt8z] {
    flex: 1 1 0;
    max-width: 50%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

.booking-party-info-strip .container-info-value.is-empty[b-pagsf6nt8z] {
    color: #a09888;
    font-style: italic;
}

.booking-party-info-miles[b-pagsf6nt8z] {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 6px 12px 4px;
    border: none;
    border-top: 1px solid #e0dbd3;
    background: transparent;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.booking-party-info-miles:hover[b-pagsf6nt8z] {
    background: rgba(34, 102, 227, 0.05);
}

.booking-party-info-miles:focus-visible[b-pagsf6nt8z] {
    outline: 2px solid #2266e3;
    outline-offset: -2px;
}

.booking-party-info-miles-grid[b-pagsf6nt8z] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 16px;
    width: 100%;
    align-items: start;
}

.booking-party-info-miles-grid .container-info-item[b-pagsf6nt8z] {
    min-width: 0;
    max-width: 100%;
}

.booking-party-info-miles-grid .container-info-value[b-pagsf6nt8z] {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Booked By / Remarks at the foot of the service rail. Same summary grammar as the info
   strip (small caps label over the value) but full rail width, and the whole row is the
   target that opens the Details flyout so the value is never a dead end. */
.booking-rail-meta[b-pagsf6nt8z] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #edebe9;
    width: 100%;
    box-sizing: border-box;
}

.booking-rail-meta-row[b-pagsf6nt8z] {
    display: block;
    width: 100%;
    padding: 5px 6px;
    border: none;
    border-radius: 2px;
    background: transparent;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

.booking-rail-meta-row:hover:not(:disabled)[b-pagsf6nt8z] {
    background: #f3f2f1;
}

.booking-rail-meta-row:focus-visible[b-pagsf6nt8z] {
    outline: 2px solid #0078d4;
    outline-offset: -2px;
}

.booking-rail-meta-row .container-info-value[b-pagsf6nt8z] {
    display: block;
    margin-top: 2px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
}

@media (max-width: 900px) {
    .booking-party-info-miles-grid[b-pagsf6nt8z] {
        grid-template-columns: 1fr;
    }
}

.booking-party-info-poc-row[b-pagsf6nt8z] {
    display: flex;
    width: 100%;
    gap: 10px;
}

.booking-poc-summary-name[b-pagsf6nt8z],
.booking-poc-summary-phone[b-pagsf6nt8z] {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
}

.booking-party-info-shipping .container-info-item-half[b-pagsf6nt8z] {
    flex: 1 1 0;
    max-width: 50%;
    min-width: 0;
}

@media (max-width: 1200px) {
    .booking-party-info-layout[b-pagsf6nt8z] {
        flex-direction: column;
        width: 100%;
    }

    .booking-party-info-divider[b-pagsf6nt8z] {
        width: auto;
        height: 1px;
        margin: 0;
    }

    .booking-party-info-section[b-pagsf6nt8z] {
        max-width: none;
        width: 100%;
    }

    .booking-party-info-section.booking-party-info-shipping[b-pagsf6nt8z],
    .booking-party-info-section.booking-party-info-poc[b-pagsf6nt8z],
    .booking-party-info-section.booking-party-info-vessel[b-pagsf6nt8z] {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}

/* Service rail flag group (Insurance / Weighment / LOLO / Empty Return) */
.booking-flag-group[b-pagsf6nt8z] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #c8c6c4;
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
    justify-content: flex-start;
}

.booking-flag-option[b-pagsf6nt8z] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #edebe9;
    border-radius: 2px;
    background: #faf9f8;
    cursor: pointer;
    font-size: 12px;
    color: #323130;
    user-select: none;
}

.booking-flag-option:hover:not(:has(input:disabled))[b-pagsf6nt8z] {
    border-color: #c8c6c4;
    background: #f3f2f1;
}

.booking-flag-option.is-selected[b-pagsf6nt8z] {
    border-color: #0078d4;
    background: #eff6fc;
    color: #0078d4;
}

.booking-flag-option input[b-pagsf6nt8z] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.booking-flag-option input:focus-visible + .booking-flag-box[b-pagsf6nt8z] {
    outline: 2px solid rgba(0, 120, 212, 0.45);
    outline-offset: 2px;
}

.booking-flag-box[b-pagsf6nt8z] {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid #605e5c;
    background: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.booking-flag-option.is-selected .booking-flag-box[b-pagsf6nt8z] {
    border-color: #0078d4;
    background: #0078d4;
}

.booking-flag-option.is-selected .booking-flag-box[b-pagsf6nt8z]::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.booking-flag-option:has(input:disabled)[b-pagsf6nt8z] {
    opacity: 0.5;
    cursor: not-allowed;
}

.booking-flag-text[b-pagsf6nt8z] {
    flex: 1 1 auto;
    min-width: 0;
}

/* Service rail charge expanders (Commission / WR / Other Exp) */
.booking-charge-option[b-pagsf6nt8z] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.booking-charge-option .booking-flag-option[b-pagsf6nt8z] {
    width: 100%;
    padding: 8px 10px;
    min-height: 36px;
    font-size: 13px;
    line-height: 1.35;
    box-sizing: border-box;
}

.booking-charge-chevron[b-pagsf6nt8z] {
    font-size: 12px;
    color: #605e5c;
    flex-shrink: 0;
    margin-left: auto;
}

.booking-charge-option .booking-flag-option.is-selected .booking-charge-chevron[b-pagsf6nt8z] {
    color: #0078d4;
}

.booking-charge-fields[b-pagsf6nt8z] {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #edebe9;
    border-radius: 2px;
    background: #faf9f8;
    box-sizing: border-box;
    width: 100%;
}

.booking-charge-fields.booking-charge-fields-stacked[b-pagsf6nt8z] {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px 8px 8px;
}

.booking-charge-fields-row[b-pagsf6nt8z] {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.booking-charge-fields .booking-charge-input[b-pagsf6nt8z] {
    flex: 1 1 auto;
    min-width: 0;
}

.booking-charge-fields .booking-charge-input-amount[b-pagsf6nt8z] {
    flex: 0 0 7rem;
    max-width: 7.5rem;
}

.cmf-party-flyout-section-head-end[b-pagsf6nt8z] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.cmf-party-flyout-section-badge[b-pagsf6nt8z] {
    font-size: 11px;
    font-weight: 500;
    color: #0078d4;
    white-space: nowrap;
    line-height: 1.2;
}

/* D365 boxed inputs inside flyout only (beat global .cmf-field underline) */
.cmf-party-flyout .cmf-field[b-pagsf6nt8z],
.cmf-party-flyout input.cmf-field[b-pagsf6nt8z],
.cmf-party-flyout select.cmf-field[b-pagsf6nt8z],
.cmf-party-flyout textarea.cmf-field[b-pagsf6nt8z],
.cmf-party-flyout input.autocomplete-input.cmf-field[b-pagsf6nt8z],
.cmf-party-flyout .booking-bookby .autocomplete-input[b-pagsf6nt8z] {
    border: 1px solid #c8c6c4 !important;
    border-radius: 2px !important;
    background: #fff !important;
    padding: 0 8px !important;
    height: 32px !important;
    text-transform: none !important;
    font-size: 13px !important;
    color: #323130 !important;
    width: 100%;
    box-sizing: border-box;
    box-shadow: none !important;
}

.cmf-party-flyout .booking-bookby .autocomplete-input[b-pagsf6nt8z] {
    padding-right: 28px !important;
}

.cmf-party-flyout .cmf-field:focus[b-pagsf6nt8z],
.cmf-party-flyout .cmf-field:focus-visible[b-pagsf6nt8z],
.cmf-party-flyout input.autocomplete-input.cmf-field:focus[b-pagsf6nt8z],
.cmf-party-flyout .booking-bookby .autocomplete-input:focus[b-pagsf6nt8z] {
    border: 1px solid #0078d4 !important;
    border-bottom-width: 1px !important;
    padding-bottom: 0 !important;
    outline: 1px solid #0078d4 !important;
    outline-offset: -1px !important;
    box-shadow: none !important;
}

.cmf-party-flyout .cmf-field:disabled[b-pagsf6nt8z],
.cmf-party-flyout .cmf-field.cmf-field-readonly[b-pagsf6nt8z],
.cmf-party-flyout input.autocomplete-input.cmf-field:disabled[b-pagsf6nt8z],
.cmf-party-flyout .booking-bookby .autocomplete-input:disabled[b-pagsf6nt8z] {
    background: #f3f2f1 !important;
    border-color: #edebe9 !important;
    color: #605e5c !important;
    border-bottom-style: solid !important;
}

.cmf-party-flyout textarea.cmf-field[b-pagsf6nt8z],
.cmf-party-flyout textarea.d365-form-control[b-pagsf6nt8z] {
    height: auto !important;
    min-height: 4.5rem !important;
    padding: 6px 8px !important;
    resize: vertical;
}

.cmf-party-flyout-hint[b-pagsf6nt8z] {
    margin: 0;
    font-size: 12px;
    color: #605e5c;
    line-height: 1.45;
    white-space: pre-line;
}

.cmf-party-flyout .cmf-party-capsule-sm .pill-toggle-btn:hover:not(:disabled):not(.pill-toggle-active)[b-pagsf6nt8z] {
    background: #f3f2f1;
}

/* Cargo Type short + wider BOE/TP # on one row when Bonded */
.cmf-cargo-type-row[b-pagsf6nt8z] {
    align-items: flex-end;
}

.cmf-cargo-type-row > .cmf-cargo-type-field[b-pagsf6nt8z] {
    flex: 0 0 8.5rem;
    max-width: 9.5rem;
    min-width: 7.5rem;
}

.cmf-cargo-type-row > .cmf-boe-tp-field[b-pagsf6nt8z] {
    flex: 1 1 12rem;
    min-width: 11rem;
    max-width: none;
}

.cmf-poc-phone-field[b-pagsf6nt8z] {
    flex: 0 1 9.5rem !important;
    max-width: 11rem;
}

.cmf-voyage-field[b-pagsf6nt8z] {
    flex: 0 1 8rem !important;
    max-width: 9rem;
}

.cmf-party-flyout[b-pagsf6nt8z]  .autosuggest-input .d365-form-control {
    padding-right: 8px !important;
}

.cmf-party-flyout[b-pagsf6nt8z]  input.autocomplete-input.d365-form-control:focus,
.cmf-party-flyout[b-pagsf6nt8z]  input.autocomplete-input:focus,
.cmf-party-flyout[b-pagsf6nt8z]  .autosuggest-input .d365-form-control:focus {
    border-color: #0078d4 !important;
    border-bottom-width: 1px !important;
    outline: 1px solid #0078d4 !important;
    outline-offset: -1px !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
}

.cmf-party-flyout[b-pagsf6nt8z]  input.autocomplete-input.d365-form-control:disabled,
.cmf-party-flyout[b-pagsf6nt8z]  .autosuggest-input .d365-form-control:disabled {
    background: #f3f2f1 !important;
    border-color: #edebe9 !important;
    color: #605e5c !important;
}

.cmf-party-flyout[b-pagsf6nt8z]  .autocomplete-select,
.cmf-party-flyout[b-pagsf6nt8z]  .autosuggest-input {
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.cmf-party-flyout[b-pagsf6nt8z]  .autosuggest-dropdown,
.cmf-party-flyout[b-pagsf6nt8z]  .autocomplete-dropdown {
    border: 1px solid #c8c6c4;
    border-radius: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Without Quotation flyout (wider panel) */
.booking-flyout-backdrop[b-pagsf6nt8z] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1080;
}

.booking-flyout[b-pagsf6nt8z] {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(420px, 100vw);
    background: #fff;
    border-left: 1px solid #edebe9;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
    z-index: 1081;
    display: flex;
    flex-direction: column;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.booking-flyout.booking-flyout-wide[b-pagsf6nt8z] {
    width: min(56rem, 100vw);
    max-width: 60rem;
}

.booking-flyout-header[b-pagsf6nt8z] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #edebe9;
    background: #fff;
    flex-shrink: 0;
}

.booking-flyout-title[b-pagsf6nt8z] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #323130;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.booking-flyout-badge[b-pagsf6nt8z] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    background: #eff6fc;
    color: #0078d4;
    font-size: 12px;
    font-weight: 600;
}

.booking-flyout-close[b-pagsf6nt8z] {
    border: none;
    background: transparent;
    color: #605e5c;
    width: 32px;
    height: 32px;
    border-radius: 2px;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.booking-flyout-close:hover[b-pagsf6nt8z] {
    background: #f3f2f1;
    color: #323130;
}

.booking-flyout-body[b-pagsf6nt8z] {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-flyout-section[b-pagsf6nt8z] {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 12px 0 16px;
    border-bottom: 1px solid #edebe9;
}

.booking-flyout-section:last-child[b-pagsf6nt8z] {
    border-bottom: none;
}

.booking-flyout-section-head[b-pagsf6nt8z] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 4px;
}

.booking-flyout-section-title[b-pagsf6nt8z] {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #323130;
}

.booking-flyout-field[b-pagsf6nt8z] {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.booking-flyout .booking-label[b-pagsf6nt8z] {
    color: #605e5c;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 0;
}

.booking-flyout .booking-label.required[b-pagsf6nt8z]::after {
    content: " *";
    color: #a4262c;
}

.booking-flyout-hint[b-pagsf6nt8z] {
    font-size: 10px;
    color: #605e5c;
    margin-top: 2px;
    line-height: 1.35;
    white-space: pre-line;
}

.booking-flyout-row[b-pagsf6nt8z] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    width: 100%;
}

.booking-flyout-row > .booking-flyout-field[b-pagsf6nt8z] {
    flex: 1 1 130px;
    min-width: 0;
}

.booking-flyout-scenario-row[b-pagsf6nt8z] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 8px;
    font-size: 12px;
}

.booking-flyout-actions[b-pagsf6nt8z] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-flyout-haulage-grid[b-pagsf6nt8z] {
    max-height: 300px;
    overflow: auto;
    border: 1px solid #e1dfdd;
}

.booking-flyout-haulage-grid table[b-pagsf6nt8z] {
    width: 100%;
    font-size: 11px;
    margin: 0;
}

.booking-flyout-footer[b-pagsf6nt8z] {
    padding: 12px 20px;
    border-top: 1px solid #edebe9;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
    background: #fff;
}

.booking-flyout-btn-ok[b-pagsf6nt8z] {
    min-width: 80px;
    height: 32px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 400;
    border-radius: 2px;
    cursor: pointer;
    line-height: 1;
    border: 1px solid #0078d4;
    background: #0078d4;
    color: #fff;
}

.booking-flyout-btn-ok:hover[b-pagsf6nt8z] {
    background: #106ebe;
    border-color: #106ebe;
}

.booking-flyout[b-pagsf6nt8z]  .autosuggest-input,
.booking-flyout[b-pagsf6nt8z]  .d365-form-control {
    width: 100%;
    box-sizing: border-box;
}

/* Detail grid Gross Amount footer (aligned with Quotation) */
.booking-detail-grid-footer[b-pagsf6nt8z] {
    align-items: baseline;
    gap: 12px;
}

.booking-detail-grid-footer .repair-estimate-detail-total-label[b-pagsf6nt8z] {
    font-size: 12px;
    font-weight: 600;
    color: #605e5c;
}

/* Container grid: CMF-style borderless cells (no form underlines) */
.booking-detail-grid .d365-grid-fo-editable td[b-pagsf6nt8z] {
    vertical-align: middle;
}

.booking-detail-grid .d365-grid-cell[b-pagsf6nt8z] {
    min-height: 28px;
    height: 100%;
    padding: 2px 6px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.booking-detail-grid .booking-grid-col-container[b-pagsf6nt8z] {
    min-width: 7.5rem;
}

.booking-detail-grid .booking-grid-col-seal[b-pagsf6nt8z] {
    min-width: 5rem;
}

.booking-detail-grid .booking-grid-col-lookup[b-pagsf6nt8z] {
    min-width: 5.5rem;
    overflow: visible;
}

.booking-detail-grid .booking-grid-col-commodity[b-pagsf6nt8z] {
    min-width: 7rem;
}

.booking-detail-grid .booking-grid-col-teu[b-pagsf6nt8z] {
    min-width: 4.5rem;
}

/* Wagon types are short codes now ("ZBFC (L)"): keep them on one line instead of
   wrapping the old "ZBFC Large" label on to a second row. */
.booking-detail-grid .booking-grid-col-wagon[b-pagsf6nt8z] {
    min-width: 6rem;
}

.booking-detail-grid .booking-grid-col-wagon[b-pagsf6nt8z],
.booking-detail-grid .booking-grid-col-wagon .d365-grid-cell[b-pagsf6nt8z],
.booking-detail-grid .booking-wagon-label[b-pagsf6nt8z] {
    white-space: nowrap;
}

/* Cross Stuff flag column. Legacy caption was "Cross Stuff" in a 50px column; keep it narrow
   and let the header wrap instead of widening the grid. */
.booking-detail-grid .booking-grid-col-cross[b-pagsf6nt8z] {
    min-width: 4.75rem;
    text-align: center;
}

.booking-detail-grid .booking-grid-col-cross .d365-grid-cell[b-pagsf6nt8z] {
    justify-content: center;
}

.booking-detail-grid .booking-grid-col-num[b-pagsf6nt8z] {
    min-width: 5.5rem;
    width: 5.5rem;
}

.booking-detail-grid .booking-grid-col-wt[b-pagsf6nt8z] {
    min-width: 7.25rem;
    width: 7.25rem;
    overflow: visible;
}

.booking-detail-grid .booking-grid-col-wt .d365-grid-cell[b-pagsf6nt8z] {
    overflow: visible;
    padding: 2px 8px;
}

.booking-detail-grid .booking-grid-wt[b-pagsf6nt8z] {
    min-width: 6.5rem !important;
    width: 100% !important;
    text-align: right;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.booking-detail-grid .booking-grid-input[b-pagsf6nt8z],
.booking-detail-grid[b-pagsf6nt8z]  input.d365-form-control,
.booking-detail-grid[b-pagsf6nt8z]  input.autocomplete-input,
.booking-detail-grid[b-pagsf6nt8z]  .autosuggest-input .d365-form-control {
    width: 100% !important;
    min-width: 0 !important;
    height: 26px !important;
    padding: 0 4px !important;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    color: #323130;
    background: transparent !important;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box;
}

.booking-detail-grid .booking-grid-container-no[b-pagsf6nt8z] {
    font-family: Consolas, "Courier New", monospace;
    font-weight: 600;
    text-transform: uppercase;
}

.booking-detail-grid .booking-grid-input:focus[b-pagsf6nt8z],
.booking-detail-grid[b-pagsf6nt8z]  input.d365-form-control:focus,
.booking-detail-grid[b-pagsf6nt8z]  input.d365-form-control:focus-visible,
.booking-detail-grid[b-pagsf6nt8z]  input.autocomplete-input:focus,
.booking-detail-grid[b-pagsf6nt8z]  input.autocomplete-input:focus-visible,
.booking-detail-grid[b-pagsf6nt8z]  .autosuggest-input .d365-form-control:focus,
.booking-detail-grid[b-pagsf6nt8z]  .autosuggest-input .d365-form-control:focus-visible {
    background: #e8f0fe !important;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    padding-bottom: 0 !important;
}

.booking-detail-grid .booking-grid-input:disabled[b-pagsf6nt8z],
.booking-detail-grid[b-pagsf6nt8z]  input.d365-form-control:disabled,
.booking-detail-grid[b-pagsf6nt8z]  input.autocomplete-input:disabled {
    background: transparent !important;
    color: #323130 !important;
    border-bottom: none !important;
    opacity: 1;
}

.booking-detail-grid[b-pagsf6nt8z]  .autocomplete-select,
.booking-detail-grid[b-pagsf6nt8z]  .autocomplete-input-wrapper,
.booking-detail-grid[b-pagsf6nt8z]  .autosuggest-input {
    width: 100%;
    min-width: 0;
}

.booking-detail-grid[b-pagsf6nt8z]  .autocomplete-select .autocomplete-toggle {
    height: 26px;
}

.booking-detail-grid .d365-grid-cell-numeric .booking-grid-input[b-pagsf6nt8z] {
    text-align: right;
}

.booking-detail-grid .d365-grid-fo-editable tbody tr:focus-within[b-pagsf6nt8z],
.booking-detail-grid .d365-grid-fo-editable tbody tr:has(.autocomplete-select.open)[b-pagsf6nt8z] {
    position: relative;
    z-index: 40;
}

.booking-detail-grid[b-pagsf6nt8z]  .autocomplete-select.open {
    z-index: 50;
    position: relative;
}

.booking-detail-grid[b-pagsf6nt8z]  .autocomplete-dropdown {
    z-index: 60;
}

/* Cost status capsule in the command bar heading: same pill grammar as the Quotation
   App Status (full round, uppercase, 0.9rem / 700, letter-spaced, D365 status tints).
   Declared here rather than reusing .d365-badge so the page-heading badge rule
   (0.6875rem / 0.04em) does not shrink it. */
.cfs-booking-status[b-pagsf6nt8z] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cfs-booking-status.is-pending[b-pagsf6nt8z] {
    background: #fff4ce;
    color: #8a6d3b;
}

.cfs-booking-status.is-success[b-pagsf6nt8z] {
    background: #dff6dd;
    color: #0b5a0b;
}

.booking-detail-grid .d365-editable-grid-toolbar:has(.booking-amend-bar)[b-pagsf6nt8z] {
    flex-wrap: wrap;
}
.booking-amend-bar[b-pagsf6nt8z] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 18rem;
    margin: 0;
    min-width: 16rem;
}
.booking-amend-bar .d365-form-label[b-pagsf6nt8z] { margin: 0; white-space: nowrap; }
.booking-amend-bar .d365-form-control[b-pagsf6nt8z] { flex: 1; min-width: 0; }
.booking-amend-pencil[b-pagsf6nt8z] {
    color: #0f6cbd;
    font-size: 9px;
    margin-left: 2px;
    line-height: 0;
    vertical-align: super;
}
.booking-amend-pencil .bi[b-pagsf6nt8z] { font-size: 9px; }
/* /Components/Pages/CFS/CfsContainerLoadingPlan.razor.rz.scp.css */
/* Pending Containers dialog and the form grid.

   The queue and the wagon advice are read together, so both are plain .d365-grid tables that
   scroll inside their own box. Only the numeric alignment and the selection wording are added
   here — the shell, header and hover states come from the shared D365 grid styles so this page
   stays visually identical to Stock In. */

.d365-grid td.num[b-gqfvdt0agr],
.d365-grid th.num[b-gqfvdt0agr] {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* The first cell of the pending grid is the tick box: keep it tight and centred. */
.d365-grid th:first-child:has(input[type="checkbox"])[b-gqfvdt0agr],
.d365-grid td:first-child:has(input[type="checkbox"])[b-gqfvdt0agr] {
    width: 2.5rem;
    text-align: center;
}

.d365-grid tbody tr.selected td[b-gqfvdt0agr] {
    background-color: #eff6fc;
}

.d365-grid tbody tr.selected:hover td[b-gqfvdt0agr] {
    background-color: #deecf9;
}

/* Approval dialog — the notification card (apple-confirm) with this form's fields inside it.

   The card shape, header, separator and buttons come from the shared notification styles in
   NotificationContainer.razor so the dialog reads as one more notification. Only the accent and the
   compact controls below are page-specific: a D365 form control is sized for the toolbar and would
   overflow a 520px notification card. */

.apple-confirm.approval-dialog .apple-confirm-title[b-gqfvdt0agr] {
    color: #2952cc;
}

.apple-confirm.approval-dialog .apple-confirm-separator[b-gqfvdt0agr] {
    background: #2952cc;
}

/* The shared primary button is amber (the warning confirm). An approval decision uses the same
   blue as the title/separator so the card carries one accent. */
.apple-confirm.approval-dialog .apple-confirm-btn-primary[b-gqfvdt0agr] {
    background: #2952cc;
}

.apple-confirm.approval-dialog .apple-confirm-btn-primary:hover[b-gqfvdt0agr] {
    background: #1f41a6;
}

.apple-confirm.approval-dialog .apple-confirm-btn:focus-visible[b-gqfvdt0agr] {
    outline-color: rgba(41, 82, 204, 0.55);
}

.approval-dialog-body[b-gqfvdt0agr] {
    display: block;
    padding: 10px 12px 12px;
    /* The toast body is white-space: pre-line for message text; a form must collapse whitespace. */
    white-space: normal;
}

.approval-dialog-field[b-gqfvdt0agr] {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.approval-dialog-field + .approval-dialog-field[b-gqfvdt0agr] {
    margin-top: 9px;
}

.approval-dialog-label[b-gqfvdt0agr] {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
}

.approval-dialog-required[b-gqfvdt0agr] {
    color: #d64545;
}

.approval-dialog-control[b-gqfvdt0agr] {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    background: #fff;
    color: #1f1f1f;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.35;
}

.approval-dialog-control:focus[b-gqfvdt0agr] {
    outline: none;
    border-color: #2952cc;
    box-shadow: 0 0 0 2px rgba(41, 82, 204, 0.18);
}

/* Remarks grows by hand; the status list keeps its native height. */
textarea.approval-dialog-control[b-gqfvdt0agr] {
    min-height: 58px;
    resize: vertical;
}

/* /Components/Pages/CFS/CfsLiveTracking.razor.rz.scp.css */
/* ============================================================================
   CFS Live Status Tracking - full-screen multimodal journey tracker
   One pane, no side rail: the milestone ribbon is the centrepiece and the
   details sit in a drawer that can be shrunk away to give the ribbon the space.
   ============================================================================ */

.trk-root[b-vpnm1dc7jl] {
    --trk-card: #ffffff;
    --trk-card-2: #fbfcff;
    --trk-line: #e2e8f3;
    --trk-line-strong: #cdd7e8;
    --trk-ink: #16233a;
    --trk-ink-2: #55637d;
    --trk-ink-3: #8b97ac;
    --trk-blue: #0f6cbd;
    --trk-blue-soft: #e8f2fd;
    --trk-green: #0f7b3f;
    --trk-green-soft: #e6f6ed;
    --trk-amber: #a35b00;
    --trk-amber-soft: #fff3e0;
    --trk-red: #b42318;
    --trk-red-soft: #fdecea;
    --trk-violet: #6b46c1;
    --trk-radius: 14px;
    --trk-shadow: 0 1px 2px rgba(22, 35, 58, .06), 0 10px 28px -18px rgba(22, 35, 58, .35);

    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
    color: var(--trk-ink);
    font-size: 13px;
}

/* ── Page heading tools ─────────────────────────────────────────────────────── */
.trk-head-tools[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trk-tool[b-vpnm1dc7jl] {
    position: relative;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #040C5A;
    font-size: 1.2rem;
    line-height: 1;
    transition: color .15s, background .15s;
}

.trk-tool:hover:not(:disabled)[b-vpnm1dc7jl],
.trk-tool.is-on[b-vpnm1dc7jl] { color: #002B7F; background: rgba(4, 12, 90, .09); }
.trk-tool:disabled[b-vpnm1dc7jl] { opacity: .4; cursor: not-allowed; }

.trk-tool-count[b-vpnm1dc7jl] {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border-radius: 999px;
    background: #1a237e;
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}

.trk-switch[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    margin: 0 4px;
}

.trk-switch input[b-vpnm1dc7jl] { display: none; }

.trk-switch-track[b-vpnm1dc7jl] {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #d5deec;
    transition: background .18s;
}

.trk-switch-dot[b-vpnm1dc7jl] {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
    transition: transform .18s;
}

.trk-switch input:checked + .trk-switch-track[b-vpnm1dc7jl] { background: linear-gradient(120deg, #18a058, #0f7b3f); }
.trk-switch input:checked + .trk-switch-track .trk-switch-dot[b-vpnm1dc7jl] { transform: translateX(16px); }

.trk-switch-label[b-vpnm1dc7jl] { font-size: 12px; font-weight: 600; color: #040C5A; }

.trk-spin[b-vpnm1dc7jl] { animation: trk-spin-b-vpnm1dc7jl 1s linear infinite; }

@keyframes trk-spin-b-vpnm1dc7jl { to { transform: rotate(360deg); } }

/* ── Filter panel ───────────────────────────────────────────────────────────── */
.trk-filter-pop[b-vpnm1dc7jl] {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 14px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(100deg, #040C5A 0%, #0a1a6e 48%, #002B7F 100%);
    box-shadow: 0 16px 36px -16px rgba(4, 12, 90, .65);
}

.trk-filter-pop-head[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.trk-filter-title[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .2px;
}

.trk-filter-close[b-vpnm1dc7jl] {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, .75);
    font-size: 12px;
}

.trk-filter-close:hover[b-vpnm1dc7jl] { color: #fff; background: rgba(255, 255, 255, .14); }

.trk-filter-grid[b-vpnm1dc7jl] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 18px;
}

.trk-field[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 0 1 180px;
    min-width: 150px;
}

.trk-field-wide[b-vpnm1dc7jl] { flex: 1 1 340px; max-width: 560px; }

.trk-field-label[b-vpnm1dc7jl] {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
}

.trk-field-input[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, .7);
    transition: border-color .15s, box-shadow .15s;
}

.trk-field-input:focus-within[b-vpnm1dc7jl] {
    border-bottom-color: #fff;
    box-shadow: 0 3px 10px -8px rgba(255, 255, 255, .85);
}

.trk-field-input > i[b-vpnm1dc7jl] { font-size: 13px; color: rgba(255, 255, 255, .75); }

.trk-field-input input[b-vpnm1dc7jl] {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 13px;
}

.trk-field-input input[b-vpnm1dc7jl]::placeholder { color: rgba(255, 255, 255, .6); }

.trk-field-clear[b-vpnm1dc7jl] {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .75);
    padding: 0 2px;
    font-size: 11px;
}

.trk-field-clear:hover[b-vpnm1dc7jl] { color: #fff; }

.trk-field-select[b-vpnm1dc7jl] {
    width: 100%;
    padding: 6px 2px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .7);
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 13px;
    color-scheme: dark;
    transition: border-color .15s;
}

.trk-field-select:focus[b-vpnm1dc7jl] { border-bottom-color: #fff; }
.trk-field-select option[b-vpnm1dc7jl] { color: #1a1a1a; background: #fff; }

.trk-filter-actions[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.trk-filter-hint[b-vpnm1dc7jl] {
    margin-left: auto;
    font-size: 11px;
    color: rgba(255, 255, 255, .6);
}

/* ── Single control row ─────────────────────────────────────────────────────── */
.trk-strip[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    min-height: 34px;
}

.trk-strip-spacer[b-vpnm1dc7jl] { flex: 1; }

.trk-switcher[b-vpnm1dc7jl] { position: relative; flex: 0 0 auto; }

.trk-capsule[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid var(--trk-line-strong);
    background: #fff;
    color: var(--trk-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

.trk-capsule > i:first-child[b-vpnm1dc7jl] { color: var(--trk-blue); font-size: 13px; }

.trk-capsule:hover[b-vpnm1dc7jl],
.trk-capsule.is-on[b-vpnm1dc7jl] {
    border-color: var(--trk-blue);
    box-shadow: 0 0 0 3px rgba(15, 108, 189, .12);
}

.trk-capsule-ship[b-vpnm1dc7jl] { max-width: 320px; }

.trk-capsule-main[b-vpnm1dc7jl] {
    font-weight: 800;
    letter-spacing: .1px;
}

.trk-capsule-sub[b-vpnm1dc7jl] {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--trk-ink-3);
    font-weight: 500;
}

.trk-capsule-chev[b-vpnm1dc7jl] { font-size: 10px; color: var(--trk-ink-3); }

/* Shipment picker */
.trk-picker[b-vpnm1dc7jl] {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 55;
    width: 400px;
    max-width: 92vw;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--trk-line);
    border-radius: 14px;
    box-shadow: 0 22px 48px -20px rgba(22, 35, 58, .55);
    overflow: hidden;
}

.trk-picker-search[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--trk-line);
}

.trk-picker-search > i[b-vpnm1dc7jl] { color: var(--trk-ink-3); }

.trk-picker-search input[b-vpnm1dc7jl] {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 12.5px;
    color: var(--trk-ink);
}

.trk-picker-search button[b-vpnm1dc7jl] {
    border: 0;
    background: transparent;
    color: var(--trk-ink-3);
    font-size: 11px;
    padding: 0 2px;
}

.trk-picker-search button:hover[b-vpnm1dc7jl] { color: var(--trk-ink); }

.trk-picker-list[b-vpnm1dc7jl] {
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scrollbar-width: thin;
}

.trk-picker-empty[b-vpnm1dc7jl] {
    padding: 22px 12px;
    text-align: center;
    font-size: 12px;
    color: var(--trk-ink-3);
}

.trk-pick[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    transition: background .12s, border-color .12s;
}

.trk-pick:hover[b-vpnm1dc7jl] { background: #f4f8ff; }
.trk-pick.is-selected[b-vpnm1dc7jl] { background: var(--trk-blue-soft); border-color: #bcd9f5; }

.trk-pick-mark[b-vpnm1dc7jl] {
    flex: 0 0 4px;
    width: 4px;
    align-self: stretch;
    border-radius: 999px;
    background: var(--trk-ink-3);
    opacity: .5;
}

.trk-pick.st-moving .trk-pick-mark[b-vpnm1dc7jl],
.trk-pick.st-arriving .trk-pick-mark[b-vpnm1dc7jl] { background: var(--trk-blue); opacity: 1; }
.trk-pick.st-rail .trk-pick-mark[b-vpnm1dc7jl] { background: var(--trk-violet); opacity: 1; }
.trk-pick.st-stock .trk-pick-mark[b-vpnm1dc7jl] { background: #e0a300; opacity: 1; }
.trk-pick.st-done .trk-pick-mark[b-vpnm1dc7jl] { background: var(--trk-green); opacity: 1; }
.trk-pick.st-void .trk-pick-mark[b-vpnm1dc7jl] { background: var(--trk-red); opacity: 1; }

.trk-pick-body[b-vpnm1dc7jl] { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.trk-pick-top[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trk-pick-code[b-vpnm1dc7jl] { font-size: 12.5px; font-weight: 800; }

.trk-pick-client[b-vpnm1dc7jl],
.trk-pick-route[b-vpnm1dc7jl] {
    font-size: 11px;
    color: var(--trk-ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trk-pick-route[b-vpnm1dc7jl] { color: var(--trk-ink-3); }

/* Status capsules */
.trk-chips[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

.trk-chips[b-vpnm1dc7jl]::-webkit-scrollbar { display: none; }

.trk-chip[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--trk-line-strong);
    background: #fff;
    color: var(--trk-ink-2);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: .15s;
}

.trk-chip:hover[b-vpnm1dc7jl] { border-color: var(--trk-blue); color: var(--trk-blue); }

.trk-chip.is-active[b-vpnm1dc7jl] {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, #1b88e8, #0f6cbd);
    box-shadow: 0 8px 16px -12px rgba(15, 108, 189, 1);
}

.trk-chip-count[b-vpnm1dc7jl] {
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    background: rgba(15, 108, 189, .12);
    color: var(--trk-blue);
}

.trk-chip.is-active .trk-chip-count[b-vpnm1dc7jl] { background: rgba(255, 255, 255, .26); color: #fff; }

.trk-updated[b-vpnm1dc7jl] {
    font-size: 11px;
    color: var(--trk-ink-3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

/* ── Placeholder ────────────────────────────────────────────────────────────── */
.trk-placeholder[b-vpnm1dc7jl] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    text-align: center;
    border-radius: var(--trk-radius);
    border: 1px dashed var(--trk-line-strong);
    background:
        radial-gradient(700px 220px at 50% -10%, rgba(15, 108, 189, .10), transparent 70%),
        var(--trk-card);
}

.trk-placeholder-art[b-vpnm1dc7jl] {
    display: flex;
    gap: 14px;
    margin-bottom: 6px;
}

.trk-placeholder-art i[b-vpnm1dc7jl] {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--trk-blue-soft);
    color: var(--trk-blue);
    font-size: 20px;
}

.trk-placeholder h2[b-vpnm1dc7jl] { margin: 0; font-size: 16px; }
.trk-placeholder p[b-vpnm1dc7jl] { margin: 0; max-width: 470px; font-size: 12px; color: var(--trk-ink-2); }

.trk-inline-spinner[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--trk-ink-2);
}

/* ── Hero band ──────────────────────────────────────────────────────────────── */
.trk-hero[b-vpnm1dc7jl] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "id      ring   stats"
        "route   ring   links"
        "facts   ring   links";
    align-items: center;
    gap: 4px 18px;
    padding: 10px 16px;
    border-radius: var(--trk-radius);
    border: 1px solid var(--trk-line);
    background:
        radial-gradient(900px 160px at -5% -70%, rgba(15, 108, 189, .18), transparent 60%),
        linear-gradient(120deg, #ffffff 0%, #f7faff 60%, #eef5fd 100%);
    box-shadow: var(--trk-shadow);
}

.trk-hero-id[b-vpnm1dc7jl] {
    grid-area: id;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.trk-hero-code[b-vpnm1dc7jl] {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.trk-hero-tag[b-vpnm1dc7jl] {
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef2f8;
    color: var(--trk-ink-2);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.trk-route[b-vpnm1dc7jl] {
    grid-area: route;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-size: 12.5px;
    font-weight: 600;
}

.trk-route-node[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trk-route-node i[b-vpnm1dc7jl] { color: var(--trk-blue); }

.trk-route-line[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 90px;
    flex: 0 1 220px;
    color: var(--trk-blue);
    font-size: 12px;
}

.trk-route-track[b-vpnm1dc7jl] {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, #cdd7e8 0 6px, transparent 6px 11px);
    overflow: hidden;
}

.trk-route-fill[b-vpnm1dc7jl] {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #1b88e8, #0f6cbd);
}

.trk-hero-facts[b-vpnm1dc7jl] {
    grid-area: facts;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    font-size: 11px;
    color: var(--trk-ink-2);
}

.trk-hero-facts i[b-vpnm1dc7jl] { color: var(--trk-ink-3); margin-right: 4px; }

.trk-hero-progress[b-vpnm1dc7jl] { grid-area: ring; }

.trk-ring[b-vpnm1dc7jl] {
    --p: 0;
    position: relative;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background:
        conic-gradient(from -90deg, #1b88e8 calc(var(--p) * 1%), #e3ebf6 0);
}

.trk-ring[b-vpnm1dc7jl]::after {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: #fff;
}

.trk-ring-inner[b-vpnm1dc7jl] {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.trk-ring-inner strong[b-vpnm1dc7jl] { font-size: 15px; }
.trk-ring-inner span[b-vpnm1dc7jl] {
    font-size: 8.5px;
    text-align: center;
    color: var(--trk-ink-3);
    max-width: 56px;
}

.trk-hero-stats[b-vpnm1dc7jl] {
    grid-area: stats;
    display: flex;
    gap: 8px;
}

.trk-stat[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 62px;
    padding: 5px 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--trk-line);
}

.trk-stat b[b-vpnm1dc7jl] { font-size: 14px; }
.trk-stat small[b-vpnm1dc7jl] { font-size: 9.5px; color: var(--trk-ink-3); white-space: nowrap; }

.trk-hero-links[b-vpnm1dc7jl] {
    grid-area: links;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.trk-link[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid var(--trk-line-strong);
    background: #fff;
    color: var(--trk-ink-2);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.trk-link i[b-vpnm1dc7jl] { color: var(--trk-blue); }
.trk-link:hover[b-vpnm1dc7jl] { border-color: var(--trk-blue); color: var(--trk-blue); background: var(--trk-blue-soft); }

/* ── Journey: ribbon + drawer ───────────────────────────────────────────────── */
.trk-journey[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 auto;
    min-height: 0;
}

.trk-ribbon-card[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 176px;
    padding: 10px 14px 4px;
    border-radius: var(--trk-radius);
    border: 1px solid var(--trk-line);
    background:
        radial-gradient(700px 180px at 50% 120%, rgba(15, 108, 189, .07), transparent 70%),
        var(--trk-card);
    box-shadow: var(--trk-shadow);
    overflow: hidden;
    transition: flex-basis .2s ease;
}

.trk-ribbon-card.is-full[b-vpnm1dc7jl] { min-height: 240px; }

.trk-ribbon-head[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--trk-ink-3);
}

.trk-ribbon-title[b-vpnm1dc7jl] {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--trk-ink-2);
}

.trk-ribbon-sub[b-vpnm1dc7jl] { display: inline-flex; align-items: center; gap: 5px; }

.trk-legend[b-vpnm1dc7jl] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.trk-legend-item[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--trk-ink-3);
    white-space: nowrap;
}

.trk-legend-item .trk-dot[b-vpnm1dc7jl] { width: 8px; height: 8px; border-radius: 50%; background: #cdd7e8; }
.trk-legend-item.state-done .trk-dot[b-vpnm1dc7jl] { background: var(--trk-green); }
.trk-legend-item.state-active .trk-dot[b-vpnm1dc7jl] { background: var(--trk-blue); }
.trk-legend-item.state-next .trk-dot[b-vpnm1dc7jl] { background: #e0a300; }
.trk-legend-item.state-skipped .trk-dot[b-vpnm1dc7jl] { background: #b8c2d4; }

.trk-ribbon-scroll[b-vpnm1dc7jl] {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    padding-bottom: 2px;
}

.trk-ribbon[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1420px;
    min-width: 900px;
    margin: 0 auto;
    padding: 4px 6px;
}

.trk-node-wrap[b-vpnm1dc7jl] {
    display: flex;
    align-items: flex-start;
    flex: 1 1 0;
    min-width: 0;
}

.trk-node-wrap:last-child[b-vpnm1dc7jl] { flex: 0 0 auto; }

.trk-node[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    width: 92px;
    min-height: 106px;
    padding: 4px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    transition: background .15s, transform .15s;
}

.trk-node:hover[b-vpnm1dc7jl] { background: #f4f8ff; transform: translateY(-1px); }
.trk-node.is-open[b-vpnm1dc7jl] { background: var(--trk-blue-soft); }

.trk-node-dot[b-vpnm1dc7jl] {
    position: relative;
    box-sizing: border-box;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 21px;
    border: 2px solid #dfe7f3;
    background: #fff;
    color: var(--trk-ink-3);
    transition: transform .15s, box-shadow .15s;
}

.trk-node:hover .trk-node-dot[b-vpnm1dc7jl] { transform: scale(1.06); }

/* Done: solid green with a tick badge */
.trk-node.state-done .trk-node-dot[b-vpnm1dc7jl] {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(140deg, #18a058, #0f7b3f);
    box-shadow: 0 10px 20px -12px rgba(15, 123, 63, .95);
}

/* Active: blue gradient with a pulse ring */
.trk-node.state-active .trk-node-dot[b-vpnm1dc7jl] {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(140deg, #1b88e8, #0f6cbd);
    box-shadow: 0 12px 24px -12px rgba(15, 108, 189, 1);
}

.trk-node-pulse[b-vpnm1dc7jl] {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(15, 108, 189, .55);
    animation: trk-pulse-b-vpnm1dc7jl 1.9s ease-out infinite;
}

@keyframes trk-pulse-b-vpnm1dc7jl {
    0% { transform: scale(.92); opacity: .85; }
    70% { transform: scale(1.22); opacity: 0; }
    100% { transform: scale(1.22); opacity: 0; }
}

.trk-node-tick[b-vpnm1dc7jl] {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #fff;
    color: var(--trk-green);
    font-size: 11px;
    box-shadow: 0 1px 4px rgba(22, 35, 58, .25);
}

/* Next: amber dashed ring */
.trk-node.state-next .trk-node-dot[b-vpnm1dc7jl] {
    border-style: dashed;
    border-color: #e0a300;
    border-width: 2px;
    color: #a35b00;
    background: #fffaf0;
}

/* Waiting / skipped */
.trk-node.state-waiting .trk-node-dot[b-vpnm1dc7jl] { background: #f7f9fd; border-color: #e2e8f3; }
.trk-node.state-skipped[b-vpnm1dc7jl] { opacity: .45; }
.trk-node.state-skipped .trk-node-dot[b-vpnm1dc7jl] { border-style: dashed; }

.trk-node-label[b-vpnm1dc7jl] {
    font-size: 11px;
    font-weight: 700;
    color: var(--trk-ink-2);
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
}

.trk-node.state-done .trk-node-label[b-vpnm1dc7jl] { color: var(--trk-ink); }
.trk-node.state-active .trk-node-label[b-vpnm1dc7jl] { color: var(--trk-blue); }

.trk-node-time[b-vpnm1dc7jl] {
    font-size: 9px;
    color: var(--trk-ink-3);
    white-space: nowrap;
}

.trk-node-count[b-vpnm1dc7jl] {
    padding: 0 6px;
    border-radius: 999px;
    background: #eef2f8;
    color: var(--trk-ink-3);
    font-size: 9px;
    line-height: 15px;
    white-space: nowrap;
}

.trk-node-count.is-empty[b-vpnm1dc7jl] { visibility: hidden; }

.trk-node.state-active .trk-node-count[b-vpnm1dc7jl] { background: var(--trk-blue-soft); color: var(--trk-blue); }
.trk-node.state-done .trk-node-count[b-vpnm1dc7jl] { background: var(--trk-green-soft); color: var(--trk-green); }

/* Connector between milestones */
.trk-line[b-vpnm1dc7jl] {
    position: relative;
    flex: 1 1 auto;
    min-width: 12px;
    height: 4px;
    margin: 30px 2px 0;
    border-radius: 999px;
    background: repeating-linear-gradient(90deg, #dfe7f3 0 6px, transparent 6px 11px);
    overflow: hidden;
}

.trk-line-fill[b-vpnm1dc7jl] {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #18a058, #0f7b3f);
}

.trk-line.is-done .trk-line-fill[b-vpnm1dc7jl] { width: 100%; }

.trk-line.is-active[b-vpnm1dc7jl] {
    background: repeating-linear-gradient(90deg, #cddff4 0 6px, transparent 6px 11px);
}

.trk-line.is-active .trk-line-fill[b-vpnm1dc7jl] {
    width: 55%;
    background: linear-gradient(90deg, #18a058, #1b88e8, rgba(27, 136, 232, .2));
    animation: trk-flow-b-vpnm1dc7jl 2.4s linear infinite;
    background-size: 200% 100%;
}

@keyframes trk-flow-b-vpnm1dc7jl {
    0% { background-position: 0 0; }
    100% { background-position: -200% 0; }
}

.trk-line.is-skipped[b-vpnm1dc7jl] { opacity: .45; }

/* Shrunk drawer: the ribbon owns the screen, so the milestones grow with it. */
.trk-ribbon-card.is-full .trk-node[b-vpnm1dc7jl] { min-height: 118px; }
.trk-ribbon-card.is-full .trk-node-dot[b-vpnm1dc7jl] { width: 66px; height: 66px; font-size: 26px; }
.trk-ribbon-card.is-full .trk-node-label[b-vpnm1dc7jl] { font-size: 12px; }
.trk-ribbon-card.is-full .trk-node-time[b-vpnm1dc7jl] { font-size: 10px; }
.trk-ribbon-card.is-full .trk-line[b-vpnm1dc7jl] { height: 5px; margin-top: 36px; }

/* ── Detail drawer ──────────────────────────────────────────────────────────── */
.trk-drawer[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    max-height: min(430px, 46vh);
    min-height: 52px;
    border-radius: var(--trk-radius);
    border: 1px solid var(--trk-line);
    background: var(--trk-card);
    box-shadow: var(--trk-shadow);
    overflow: hidden;
    transition: max-height .22s ease;
}

.trk-drawer.is-collapsed[b-vpnm1dc7jl] { max-height: 52px; }

.trk-drawer-head[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border-bottom: 1px solid var(--trk-line);
    background: var(--trk-card-2);
    flex: 0 0 auto;
}

.trk-tabs[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}

.trk-tab[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--trk-ink-2);
    font-size: 12px;
    font-weight: 600;
    transition: .15s;
}

.trk-tab:hover[b-vpnm1dc7jl] { color: var(--trk-blue); background: var(--trk-blue-soft); }

.trk-tab.is-active[b-vpnm1dc7jl] {
    color: #fff;
    background: linear-gradient(120deg, #1b88e8, #0f6cbd);
    box-shadow: 0 8px 16px -12px rgba(15, 108, 189, 1);
}

.trk-tab-count[b-vpnm1dc7jl] {
    min-width: 17px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(15, 108, 189, .12);
    color: var(--trk-blue);
    font-size: 9.5px;
    line-height: 15px;
    text-align: center;
}

.trk-tab.is-active .trk-tab-count[b-vpnm1dc7jl] { background: rgba(255, 255, 255, .28); color: #fff; }

.trk-drawer-toggle[b-vpnm1dc7jl] {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 11px;
    border: 1px solid var(--trk-line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--trk-ink-2);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.trk-drawer-toggle:hover[b-vpnm1dc7jl] { border-color: var(--trk-blue); color: var(--trk-blue); }

.trk-drawer-body[b-vpnm1dc7jl] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scrollbar-width: thin;
}

/* ── Stage detail ───────────────────────────────────────────────────────────── */
.trk-detail[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--trk-line);
    background: var(--trk-card-2);
}

.trk-detail-head[b-vpnm1dc7jl] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.trk-detail-title[b-vpnm1dc7jl] { display: flex; gap: 10px; align-items: center; }

.trk-detail-icon[b-vpnm1dc7jl] {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #fff;
    font-size: 17px;
    background: linear-gradient(140deg, #1b88e8, #0f6cbd);
}

.trk-detail-title h3[b-vpnm1dc7jl] {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.trk-detail-title p[b-vpnm1dc7jl] { margin: 1px 0 0; font-size: 11.5px; color: var(--trk-ink-3); }

.trk-detail-actions[b-vpnm1dc7jl] { display: flex; align-items: center; gap: 8px; }

.trk-btn[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border-radius: 9px;
    border: 1px solid var(--trk-line-strong);
    background: #fff;
    color: var(--trk-ink-2);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: .15s;
}

.trk-btn:hover[b-vpnm1dc7jl] { transform: translateY(-1px); }

.trk-btn-primary[b-vpnm1dc7jl] {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(120deg, #1b88e8, #0f6cbd);
    box-shadow: 0 8px 16px -12px rgba(15, 108, 189, 1);
}

.trk-btn-ghost[b-vpnm1dc7jl] {
    border: 1px solid rgba(255, 255, 255, .6);
    background: transparent;
    color: inherit;
}

.trk-filter-actions .trk-btn-primary[b-vpnm1dc7jl] { background: #fff; color: #040C5A; box-shadow: none; }
.trk-filter-actions .trk-btn-primary:hover[b-vpnm1dc7jl] { background: #f3f6ff; }
.trk-filter-actions .trk-btn-ghost:hover[b-vpnm1dc7jl] { background: rgba(255, 255, 255, .14); }

.trk-icon-btn[b-vpnm1dc7jl] {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid var(--trk-line-strong);
    background: #fff;
    color: var(--trk-ink-2);
    transition: .15s;
}

.trk-icon-btn:hover:not(:disabled)[b-vpnm1dc7jl] { color: var(--trk-blue); border-color: var(--trk-blue); background: var(--trk-blue-soft); }

/* Kind tints belong to the detail header icon only; the milestone capsule keeps
   its state colour so the ribbon reads as one clean row. */
.trk-detail-icon.kind-stock[b-vpnm1dc7jl] { background: linear-gradient(140deg, #e0a300, #a35b00); }
.trk-detail-icon.kind-plan[b-vpnm1dc7jl] { background: linear-gradient(140deg, #b06ab3, #6b46c1); }
.trk-detail-icon.kind-rail[b-vpnm1dc7jl] { background: linear-gradient(140deg, #8b7ae8, #4b2fa1); }
.trk-detail-icon.kind-transit[b-vpnm1dc7jl] { background: linear-gradient(140deg, #18a058, #0f7b3f); }
.trk-detail-icon.kind-arrival[b-vpnm1dc7jl] { background: linear-gradient(140deg, #d9a300, #8a6200); }
.trk-detail-icon.kind-depot[b-vpnm1dc7jl] { background: linear-gradient(140deg, #8b97ac, #55637d); }
.trk-detail-icon.kind-complete[b-vpnm1dc7jl] { background: linear-gradient(140deg, #18a058, #0b5f31); }

.trk-detail-grid[b-vpnm1dc7jl],
.trk-box-facts[b-vpnm1dc7jl],
.trk-comm-facts[b-vpnm1dc7jl] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 6px;
}

.trk-fact[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 5px 9px;
    border-radius: 9px;
    border: 1px solid var(--trk-line);
    background: #fff;
}

.trk-fact small[b-vpnm1dc7jl] {
    font-size: 9.5px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--trk-ink-3);
}

.trk-fact span[b-vpnm1dc7jl] {
    font-size: 12px;
    font-weight: 600;
    word-break: break-word;
}

.trk-fact.tone-ok[b-vpnm1dc7jl] { border-color: #bfe3cd; background: var(--trk-green-soft); }
.trk-fact.tone-warn[b-vpnm1dc7jl] { border-color: #f0d6a8; background: var(--trk-amber-soft); }
.trk-fact.tone-muted[b-vpnm1dc7jl] { opacity: .8; }

.trk-note[b-vpnm1dc7jl] {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 9px;
    background: var(--trk-blue-soft);
    border: 1px solid #cfe3f8;
    color: var(--trk-ink-2);
    font-size: 11.5px;
}

.trk-note i[b-vpnm1dc7jl] { color: var(--trk-blue); margin-top: 1px; }

.trk-detail-boxes[b-vpnm1dc7jl] { display: flex; flex-wrap: wrap; gap: 6px; }

.trk-box-chip[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px dashed var(--trk-line-strong);
    background: #fff;
    color: var(--trk-ink-2);
    font-size: 11px;
    font-weight: 600;
}

.trk-box-chip:hover[b-vpnm1dc7jl] { border-style: solid; border-color: var(--trk-blue); color: var(--trk-blue); }

.trk-hint[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #f7faff;
    border: 1px dashed var(--trk-line-strong);
    color: var(--trk-ink-3);
    font-size: 11.5px;
}

.trk-hint i[b-vpnm1dc7jl] { color: var(--trk-blue); }

.trk-cards[b-vpnm1dc7jl] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px;
}

.trk-mini-card[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 11px;
    border: 1px solid var(--trk-line);
    background: #fff;
    text-align: left;
    transition: .15s;
}

.trk-mini-card:hover[b-vpnm1dc7jl] { border-color: var(--trk-blue); transform: translateY(-1px); box-shadow: var(--trk-shadow); }

.trk-mini-icon[b-vpnm1dc7jl] {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 14px;
    background: var(--trk-blue-soft);
    color: var(--trk-blue);
}

.trk-mini-card.state-done .trk-mini-icon[b-vpnm1dc7jl] { background: var(--trk-green-soft); color: var(--trk-green); }
.trk-mini-card.state-waiting[b-vpnm1dc7jl] { opacity: .82; }
.trk-mini-card.state-skipped[b-vpnm1dc7jl] { opacity: .55; }

.trk-mini-icon.kind-stock[b-vpnm1dc7jl] { background: var(--trk-amber-soft); color: var(--trk-amber); }
.trk-mini-icon.kind-rail[b-vpnm1dc7jl],
.trk-mini-icon.kind-plan[b-vpnm1dc7jl] { background: #efe9fb; color: var(--trk-violet); }
.trk-mini-icon.kind-transit[b-vpnm1dc7jl],
.trk-mini-icon.kind-complete[b-vpnm1dc7jl] { background: var(--trk-green-soft); color: var(--trk-green); }
.trk-mini-icon.kind-depot[b-vpnm1dc7jl] { background: #eef2f8; color: var(--trk-ink-2); }

.trk-mini-body[b-vpnm1dc7jl] { display: flex; flex-direction: column; min-width: 0; }
.trk-mini-title[b-vpnm1dc7jl] { font-size: 12px; font-weight: 700; }
.trk-mini-sub[b-vpnm1dc7jl] { font-size: 10.5px; color: var(--trk-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk-mini-chev[b-vpnm1dc7jl] { margin-left: auto; color: var(--trk-ink-3); }

/* ── Containers table ───────────────────────────────────────────────────────── */
.trk-table-wrap[b-vpnm1dc7jl] { overflow-x: auto; }

.trk-table[b-vpnm1dc7jl] {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.trk-table thead th[b-vpnm1dc7jl] {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 7px 10px;
    text-align: left;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--trk-ink-3);
    background: var(--trk-card-2);
    border-bottom: 1px solid var(--trk-line);
    white-space: nowrap;
}

.trk-tr[b-vpnm1dc7jl] { cursor: pointer; }
.trk-tr td[b-vpnm1dc7jl] { padding: 8px 10px; border-bottom: 1px solid var(--trk-line); vertical-align: middle; }
.trk-tr:hover td[b-vpnm1dc7jl] { background: #f7faff; }
.trk-tr.is-open td[b-vpnm1dc7jl] { background: var(--trk-blue-soft); }

.trk-box-no[b-vpnm1dc7jl] { font-weight: 700; letter-spacing: .02em; }

.trk-tag[b-vpnm1dc7jl] {
    display: inline-block;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef2f8;
    color: var(--trk-ink-3);
    font-size: 9.5px;
    line-height: 15px;
}

.trk-td-sub[b-vpnm1dc7jl] { font-size: 10.5px; color: var(--trk-ink-3); }

.trk-dots[b-vpnm1dc7jl] { display: inline-flex; gap: 4px; align-items: center; }

.trk-dot[b-vpnm1dc7jl] {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dfe7f3;
}

.trk-dot.state-done[b-vpnm1dc7jl] { background: linear-gradient(140deg, #18a058, #0f7b3f); }
.trk-dot.state-active[b-vpnm1dc7jl] { background: linear-gradient(140deg, #1b88e8, #0f6cbd); }
.trk-dot.state-next[b-vpnm1dc7jl] { background: #e0a300; }
.trk-dot.state-missing[b-vpnm1dc7jl] { background: repeating-linear-gradient(45deg, #d94040 0 2px, #f7c9c9 2px 4px); }

.trk-tr-detail td[b-vpnm1dc7jl] { background: #f7faff; border-bottom: 1px solid var(--trk-line); padding: 0 12px 12px; }

.trk-box-detail[b-vpnm1dc7jl] { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }

.trk-steps[b-vpnm1dc7jl] { display: flex; flex-wrap: wrap; gap: 6px; }

.trk-step[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border-radius: 9px;
    border: 1px solid var(--trk-line);
    background: #fff;
}

.trk-step-dot[b-vpnm1dc7jl] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dfe7f3;
    flex: 0 0 auto;
}

.trk-step.state-done .trk-step-dot[b-vpnm1dc7jl] { background: var(--trk-green); box-shadow: 0 0 0 3px var(--trk-green-soft); }
.trk-step.state-active .trk-step-dot[b-vpnm1dc7jl] { background: var(--trk-blue); box-shadow: 0 0 0 3px var(--trk-blue-soft); }
.trk-step.state-next .trk-step-dot[b-vpnm1dc7jl] { background: #e0a300; }
.trk-step.state-missing .trk-step-dot[b-vpnm1dc7jl] { background: var(--trk-red); }

.trk-step-body[b-vpnm1dc7jl] { display: flex; flex-direction: column; }
.trk-step-label[b-vpnm1dc7jl] { font-size: 11px; font-weight: 700; }
.trk-step-meta[b-vpnm1dc7jl] { font-size: 10px; color: var(--trk-ink-3); }

.trk-box-foot[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--trk-ink-3);
}

/* ── Documents ──────────────────────────────────────────────────────────────── */
.trk-doc-grid[b-vpnm1dc7jl] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.trk-doc[b-vpnm1dc7jl] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1px solid var(--trk-line);
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: .15s;
}

.trk-doc:hover[b-vpnm1dc7jl] {
    border-color: var(--trk-blue);
    transform: translateY(-1px);
    box-shadow: var(--trk-shadow);
}

.trk-doc-icon[b-vpnm1dc7jl] {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--trk-blue-soft);
    color: var(--trk-blue);
    font-size: 15px;
    flex: 0 0 auto;
}

.trk-doc-body[b-vpnm1dc7jl] { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.trk-doc-type[b-vpnm1dc7jl] { font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--trk-ink-3); }
.trk-doc-code[b-vpnm1dc7jl] { font-size: 13px; font-weight: 700; }
.trk-doc-sum[b-vpnm1dc7jl] { font-size: 11px; color: var(--trk-ink-2); }
.trk-doc-meta[b-vpnm1dc7jl] { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; font-size: 10.5px; color: var(--trk-ink-3); }
.trk-doc-go[b-vpnm1dc7jl] { margin-left: auto; color: var(--trk-ink-3); }

/* ── Activity timeline ──────────────────────────────────────────────────────── */
.trk-timeline[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 6px;
    border-left: 2px solid var(--trk-line);
}

.trk-ev[b-vpnm1dc7jl] {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--trk-line);
    background: #fff;
}

.trk-ev-dot[b-vpnm1dc7jl] {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--trk-blue-soft);
    color: var(--trk-blue);
    font-size: 12px;
    flex: 0 0 auto;
}

.trk-ev.tone-ok .trk-ev-dot[b-vpnm1dc7jl] { background: var(--trk-green-soft); color: var(--trk-green); }
.trk-ev.tone-warn .trk-ev-dot[b-vpnm1dc7jl] { background: var(--trk-amber-soft); color: var(--trk-amber); }

.trk-ev-body[b-vpnm1dc7jl] { flex: 1; min-width: 0; }

.trk-ev-top[b-vpnm1dc7jl] { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.trk-ev-title[b-vpnm1dc7jl] { font-size: 12.5px; font-weight: 700; }
.trk-ev-time[b-vpnm1dc7jl] { font-size: 10.5px; color: var(--trk-ink-3); white-space: nowrap; }
.trk-ev-detail[b-vpnm1dc7jl] { font-size: 11.5px; color: var(--trk-ink-2); }

.trk-ev-foot[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 3px;
    font-size: 10.5px;
}

.trk-ev-foot a[b-vpnm1dc7jl] { color: var(--trk-blue); text-decoration: none; font-weight: 600; }
.trk-ev-foot a:hover[b-vpnm1dc7jl] { text-decoration: underline; }

/* ── Commercial ─────────────────────────────────────────────────────────────── */
.trk-comm[b-vpnm1dc7jl] { display: flex; flex-direction: column; gap: 10px; }

.trk-comm-tiles[b-vpnm1dc7jl] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.trk-tile[b-vpnm1dc7jl] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--trk-line);
    background: linear-gradient(140deg, #fff, #f7faff);
}

.trk-tile small[b-vpnm1dc7jl] { font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: var(--trk-ink-3); }
.trk-tile b[b-vpnm1dc7jl] { font-size: 15px; letter-spacing: -.3px; }

.trk-tile.tone-ok[b-vpnm1dc7jl] { border-color: #bfe3cd; background: linear-gradient(140deg, #fff, var(--trk-green-soft)); }
.trk-tile.tone-info[b-vpnm1dc7jl] { border-color: #bcd9f5; background: linear-gradient(140deg, #fff, var(--trk-blue-soft)); }
.trk-tile.tone-warn[b-vpnm1dc7jl] { border-color: #f0d6a8; background: linear-gradient(140deg, #fff, var(--trk-amber-soft)); }
.trk-tile.tone-muted[b-vpnm1dc7jl] { opacity: .82; }

.trk-comm-facts[b-vpnm1dc7jl] { padding: 2px; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.trk-foot[b-vpnm1dc7jl] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 4px;
    font-size: 10.5px;
    color: var(--trk-ink-3);
}

.trk-foot i[b-vpnm1dc7jl] { margin-right: 4px; }

/* ── Pills ──────────────────────────────────────────────────────────────────── */
.trk-pill[b-vpnm1dc7jl] {
    display: inline-flex;
    align-items: center;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    background: #eef2f8;
    color: var(--trk-ink-2);
}

.trk-pill.st-arriving[b-vpnm1dc7jl] { background: #e7f6ee; color: #0f7b3f; }
.trk-pill.st-moving[b-vpnm1dc7jl] { background: var(--trk-blue-soft); color: var(--trk-blue); }
.trk-pill.st-rail[b-vpnm1dc7jl] { background: #efe9fb; color: var(--trk-violet); }
.trk-pill.st-stock[b-vpnm1dc7jl] { background: var(--trk-amber-soft); color: var(--trk-amber); }
.trk-pill.st-done[b-vpnm1dc7jl] { background: var(--trk-green-soft); color: var(--trk-green); }
.trk-pill.st-pending[b-vpnm1dc7jl] { background: #eef2f8; color: var(--trk-ink-2); }
.trk-pill.st-void[b-vpnm1dc7jl] { background: var(--trk-red-soft); color: var(--trk-red); }

.trk-pill.state-done[b-vpnm1dc7jl] { background: var(--trk-green-soft); color: var(--trk-green); }
.trk-pill.state-active[b-vpnm1dc7jl] { background: var(--trk-blue-soft); color: var(--trk-blue); }
.trk-pill.state-next[b-vpnm1dc7jl] { background: var(--trk-amber-soft); color: var(--trk-amber); }
.trk-pill.state-waiting[b-vpnm1dc7jl] { background: #eef2f8; color: var(--trk-ink-3); }
.trk-pill.state-skipped[b-vpnm1dc7jl] { background: #f1f3f7; color: var(--trk-ink-3); }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1400px) {
    .trk-legend[b-vpnm1dc7jl] { display: none; }
}

@media (max-width: 1180px) {
    .trk-hero[b-vpnm1dc7jl] {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "id    ring"
            "route ring"
            "facts stats"
            "links links";
    }

    .trk-capsule-sub[b-vpnm1dc7jl] { display: none; }
    .trk-filter-hint[b-vpnm1dc7jl] { display: none; }
}

@media (max-width: 900px) {
    .trk-root[b-vpnm1dc7jl] { min-height: 620px; }
    .trk-strip[b-vpnm1dc7jl] { flex-wrap: wrap; }
    .trk-drawer[b-vpnm1dc7jl] { max-height: 55%; }
    .trk-hero[b-vpnm1dc7jl] { grid-template-columns: 1fr; grid-template-areas: "id" "route" "facts" "stats" "links"; }
    .trk-hero-progress[b-vpnm1dc7jl] { display: none; }
    .trk-hero-links[b-vpnm1dc7jl] { justify-content: flex-start; }
}
/* /Components/Pages/CFS/CfsQuotation.razor.rz.scp.css */
/* Party flyout — aligned with CMF (scoped to Quotation) */
.cmf-party-info-strip.container-info-strip[b-xuadnilp2o] {
    min-height: 0;
    padding: 6px 0 6px 10px;
    width: 100%;
    margin: 4px 0 8px;
    box-sizing: border-box;
}

.cmf-party-info-layout[b-xuadnilp2o] {
    display: flex;
    align-items: flex-start;
    min-height: 0;
    width: 100%;
    max-width: 100%;
}

.cmf-party-info-section[b-xuadnilp2o] {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    flex-direction: column;
}

.cmf-party-info-section.cmf-party-info-shipping[b-xuadnilp2o] {
    flex: 0 0 25rem;
    width: 25rem;
    max-width: 25rem;
    min-width: 25rem;
}

.cmf-party-info-section.cmf-party-info-poc[b-xuadnilp2o] {
    flex: 0 0 24rem;
    width: 24rem;
    max-width: 24rem;
    min-width: 24rem;
}

.cmf-party-info-section.cmf-party-info-vessel[b-xuadnilp2o] {
    flex: 1 1 20rem;
    min-width: 18rem;
    max-width: none;
}

.cmf-party-info-section:hover[b-xuadnilp2o] {
    background: rgba(34, 102, 227, 0.05);
}

.cmf-party-info-section:focus-visible[b-xuadnilp2o] {
    outline: 2px solid #2266e3;
    outline-offset: -2px;
}

.cmf-party-info-section-head[b-xuadnilp2o] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
    min-height: 18px;
}

.cmf-party-info-logistics-row1[b-xuadnilp2o] {
    gap: 14px;
}

.cmf-party-info-divider[b-xuadnilp2o] {
    width: 1px;
    background: #e0dbd3;
    flex-shrink: 0;
    align-self: stretch;
    margin: 2px 2px;
}

.cmf-party-info-strip .container-info-row[b-xuadnilp2o] {
    gap: 12px;
    width: 100%;
}

.cmf-party-info-strip .container-info-row-meta[b-xuadnilp2o] {
    margin-top: 2px;
}

.cmf-party-info-strip .container-info-value[b-xuadnilp2o] {
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.cmf-party-info-strip .container-info-item[b-xuadnilp2o] {
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}

.cmf-party-info-vessel .container-info-item-half[b-xuadnilp2o] {
    flex: 1 1 0;
    max-width: 50%;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}

.cmf-party-info-strip .container-info-value.is-empty[b-xuadnilp2o] {
    color: #a09888;
    font-style: italic;
}

.cmf-party-info-remarks[b-xuadnilp2o] {
    margin-top: 8px;
    padding: 6px 12px 2px;
    border-top: 1px solid #e0dbd3;
    width: 100%;
    box-sizing: border-box;
}

/* Prepared By + Remarks share one row so the strip stays compact. */
.cmf-party-info-meta-row[b-xuadnilp2o] {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px 28px;
    margin-top: 8px;
    padding: 6px 12px 4px;
    border-top: 1px solid #e0dbd3;
    width: 100%;
    box-sizing: border-box;
}

.cmf-party-info-meta-row .cmf-party-info-prepared-by[b-xuadnilp2o] {
    flex: 0 0 auto;
    max-width: 18rem;
    margin: 0;
    padding: 0;
    border-top: none;
}

.cmf-party-info-meta-row .cmf-party-info-remarks[b-xuadnilp2o] {
    flex: 1 1 14rem;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    border-top: none;
    width: auto;
}

.cmf-party-info-remarks .container-info-value[b-xuadnilp2o] {
    display: block;
    margin-top: 2px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.cmf-quotation-service-rail:focus[b-xuadnilp2o] {
    outline: 2px solid #2266e3;
    outline-offset: 2px;
}

/* POC summary: Name and Phone share one line, Email sits under them. */
.cmf-party-info-poc-row[b-xuadnilp2o] {
    display: flex;
    width: 100%;
    gap: 10px;
}

.cmf-poc-summary-name[b-xuadnilp2o],
.cmf-poc-summary-phone[b-xuadnilp2o] {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50%;
}

/* Mid-range desktops (e.g. 1920x1080 at 150% scaling -> 1280px CSS viewport):
   relax the rigid party widths so the strip still fits beside the nav / side panels. */
@media (max-width: 1500px) {
    .cmf-party-info-section[b-xuadnilp2o] {
        padding: 0 10px;
    }

    .cmf-party-info-section.cmf-party-info-shipping[b-xuadnilp2o] {
        flex: 1 1 17rem;
        width: auto;
        max-width: 22rem;
        min-width: 0;
    }

    .cmf-party-info-section.cmf-party-info-poc[b-xuadnilp2o] {
        flex: 1 1 15rem;
        width: auto;
        max-width: 20rem;
        min-width: 0;
    }

    .cmf-party-info-section.cmf-party-info-vessel[b-xuadnilp2o] {
        flex: 1 1 15rem;
        min-width: 0;
        max-width: none;
    }

    .cmf-party-info-logistics-row1[b-xuadnilp2o] {
        gap: 8px;
    }
}

@media (max-width: 1200px) {
    .cmf-party-info-layout[b-xuadnilp2o] {
        flex-direction: column;
        width: 100%;
    }

    .cmf-party-info-divider[b-xuadnilp2o] {
        width: auto;
        height: 1px;
        margin: 0;
    }

    .cmf-party-info-section[b-xuadnilp2o] {
        max-width: none;
        width: 100%;
    }

    .cmf-party-info-section.cmf-party-info-shipping[b-xuadnilp2o],
    .cmf-party-info-section.cmf-party-info-poc[b-xuadnilp2o],
    .cmf-party-info-section.cmf-party-info-vessel[b-xuadnilp2o] {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: none;
    }
}
.cmf-party-flyout-body[b-xuadnilp2o] {
    flex: 1;
    overflow-y: auto;
    /* Match CMF: bottom padding so AutoCompleteSelect lists are not clipped by the pane. */
    padding: 8px 20px 220px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cmf-party-flyout-section:last-child[b-xuadnilp2o] {
    border-bottom: none;
}

.cmf-party-flyout-field.is-focus-target:focus-within[b-xuadnilp2o] {
    border-color: #0078d4;
    box-shadow: inset 3px 0 0 #0078d4, 0 0 0 1px rgba(0, 120, 212, 0.25);
}

.cmf-party-flyout .cmf-label[b-xuadnilp2o] {
    color: #605e5c;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 0;
}

.cmf-party-flyout .cmf-same-as-option:has(input:disabled)[b-xuadnilp2o] {
    opacity: 0.5;
    cursor: not-allowed;
}

.cmf-party-flyout[b-xuadnilp2o]  .autosuggest-input,
.cmf-party-flyout[b-xuadnilp2o]  .d365-form-control {
    width: 100%;
    box-sizing: border-box;
}

.cmf-customer-field-head[b-xuadnilp2o] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 2px;
    min-height: 1.35rem;
}

/* POC: Name 70% + Phone 30% on one row; Email full width below. */
.cmf-poc-name-phone-row[b-xuadnilp2o] {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px 12px;
    width: 100%;
}

.cmf-poc-name-phone-row > .cmf-poc-field-name[b-xuadnilp2o] {
    flex: 0 0 70%;
    max-width: 70%;
    min-width: 0;
}

.cmf-poc-name-phone-row > .cmf-poc-field-phone[b-xuadnilp2o] {
    flex: 0 0 calc(30% - 12px);
    max-width: calc(30% - 12px);
    min-width: 0;
}

.cmf-flag-group[b-xuadnilp2o] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 8px;
    border: 1px solid #c8c6c4;
    border-radius: 2px;
    background: #fff;
    box-sizing: border-box;
}

.cmf-flag-group .cmf-same-as-option[b-xuadnilp2o] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid #edebe9;
    border-radius: 2px;
    background: #faf9f8;
    cursor: pointer;
    font-size: 12px;
    color: #323130;
    user-select: none;
}

.cmf-flag-group .cmf-same-as-option:hover:not(:has(input:disabled))[b-xuadnilp2o] {
    border-color: #c8c6c4;
    background: #f3f2f1;
}

.cmf-flag-group .cmf-same-as-option.is-selected[b-xuadnilp2o] {
    border-color: #0078d4;
    background: #eff6fc;
    color: #0078d4;
}

.cmf-flag-group .cmf-same-as-option input[b-xuadnilp2o] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.cmf-flag-group .cmf-same-as-option input:focus-visible + .cmf-same-as-box[b-xuadnilp2o] {
    outline: 2px solid rgba(0, 120, 212, 0.45);
    outline-offset: 2px;
}

.cmf-flag-group .cmf-same-as-box[b-xuadnilp2o] {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    border: 1px solid #605e5c;
    background: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.cmf-flag-group .cmf-same-as-option.is-selected .cmf-same-as-box[b-xuadnilp2o] {
    border-color: #0078d4;
    background: #0078d4;
}

.cmf-flag-group .cmf-same-as-option.is-selected .cmf-same-as-box[b-xuadnilp2o]::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cmf-flag-group .cmf-same-as-option:has(input:disabled)[b-xuadnilp2o] {
    opacity: 0.5;
    cursor: not-allowed;
}
.cmf-quotation-top-layout[b-xuadnilp2o] {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.cmf-quotation-main[b-xuadnilp2o] {
    flex: 1 1 auto;
    min-width: 0;
}

.cmf-quotation-service-rail[b-xuadnilp2o] {
    flex: 0 0 30rem;
    max-width: 32rem;
    margin-left: 12px;
    padding: 0 0 0 12px;
    border-left: 1px solid #c8c6c4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
    box-sizing: border-box;
}

.cmf-quotation-service-rail .cmf-flag-group[b-xuadnilp2o] {
    width: 100%;
    justify-content: flex-start;
}

.cmf-charge-option[b-xuadnilp2o] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.cmf-charge-option .cmf-same-as-option[b-xuadnilp2o] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    min-height: 36px;
    border: 1px solid #edebe9;
    border-radius: 2px;
    background: #faf9f8;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
    color: #323130;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.cmf-charge-option .cmf-same-as-option:hover:not(:has(input:disabled))[b-xuadnilp2o] {
    border-color: #c8c6c4;
    background: #f3f2f1;
}

.cmf-charge-option .cmf-same-as-option.is-selected[b-xuadnilp2o] {
    border-color: #0078d4;
    background: #eff6fc;
    color: #0078d4;
}

.cmf-charge-option .cmf-same-as-option:focus-within[b-xuadnilp2o],
.cmf-flag-group .cmf-same-as-option:focus-within[b-xuadnilp2o] {
    outline: 2px solid #2266e3;
    outline-offset: 1px;
    border-color: #0078d4;
    background: #eff6fc;
}

.cmf-charge-option .cmf-same-as-option input:focus-visible + .cmf-same-as-box[b-xuadnilp2o] {
    outline: 2px solid #2266e3;
    outline-offset: 1px;
}

.cmf-charge-option .cmf-same-as-option input[b-xuadnilp2o] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.cmf-charge-option .cmf-same-as-box[b-xuadnilp2o] {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid #605e5c;
    background: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.cmf-charge-option .cmf-same-as-option.is-selected .cmf-same-as-box[b-xuadnilp2o] {
    border-color: #0078d4;
    background: #0078d4;
}

.cmf-charge-option .cmf-same-as-option.is-selected .cmf-same-as-box[b-xuadnilp2o]::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cmf-charge-option .cmf-same-as-text[b-xuadnilp2o] {
    flex: 1 1 auto;
    min-width: 0;
}

.cmf-charge-chevron[b-xuadnilp2o] {
    font-size: 12px;
    color: #605e5c;
    flex-shrink: 0;
    margin-left: auto;
}

.cmf-charge-option .cmf-same-as-option.is-selected .cmf-charge-chevron[b-xuadnilp2o] {
    color: #0078d4;
}

.cmf-charge-option .cmf-same-as-option:has(input:disabled)[b-xuadnilp2o] {
    opacity: 0.5;
    cursor: not-allowed;
}

.cmf-charge-fields[b-xuadnilp2o] {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border: 1px solid #edebe9;
    border-radius: 2px;
    background: #faf9f8;
    box-sizing: border-box;
    width: 100%;
}

.cmf-charge-fields.cmf-charge-fields-stacked[b-xuadnilp2o] {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 6px 8px 8px;
}

.cmf-charge-fields-head[b-xuadnilp2o] {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #605e5c;
    padding: 0 2px;
}

.cmf-charge-fields-head span:last-child[b-xuadnilp2o] {
    flex: 0 0 7rem;
    max-width: 7.5rem;
    text-align: right;
}

.cmf-charge-fields-row[b-xuadnilp2o] {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.cmf-charge-fields .cmf-charge-input[b-xuadnilp2o] {
    flex: 1 1 auto;
    min-width: 0;
}

.cmf-charge-fields .cmf-charge-input-amount[b-xuadnilp2o] {
    flex: 0 0 7rem;
    max-width: 7.5rem;
}

.cmf-party-info-prepared-by[b-xuadnilp2o] {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #edebe9;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* Miles band — First Mile / Last Mile / Drop-Off summary under Remarks, like the CMF
   party strip: quiet band, bold heading, tiny uppercase labels and a readable value. */
.cmf-party-info-miles[b-xuadnilp2o] {
    margin-top: 8px;
    padding: 7px 12px 9px;
    border-top: 1px solid #e0dbd3;
    width: 100%;
    box-sizing: border-box;
    background: #fafafa;
}

.cmf-party-info-miles-head[b-xuadnilp2o] {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.cmf-party-info-miles-grid[b-xuadnilp2o] {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 28px;
}

.cmf-party-info-mile[b-xuadnilp2o] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 1 14rem;
    min-width: 0;
    max-width: 26rem;
}

.cmf-party-info-mile .container-info-value[b-xuadnilp2o] {
    font-size: 12.5px;
    font-weight: 600;
    color: #323130;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cmf-party-info-mile .container-info-value.is-empty[b-xuadnilp2o] {
    font-weight: 400;
    font-style: normal;
    color: #a09888;
}

.cmf-bonded-option-head[b-xuadnilp2o] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 10px;
    min-height: 36px;
    border: 1px solid #edebe9;
    border-radius: 2px;
    background: #faf9f8;
    font-size: 13px;
    line-height: 1.35;
    color: #323130;
    width: 100%;
    box-sizing: border-box;
}

.cmf-bonded-option-head.is-selected[b-xuadnilp2o] {
    border-color: #0078d4;
    background: #eff6fc;
    color: #0078d4;
}

.cmf-bonded-option-head .cmf-charge-chevron[b-xuadnilp2o] {
    margin-left: auto;
}

.cmf-bonded-option-head.is-selected .cmf-charge-chevron[b-xuadnilp2o] {
    color: #0078d4;
}

.cmf-bonded-check[b-xuadnilp2o] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.cmf-bonded-check input[b-xuadnilp2o] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.cmf-bonded-check .cmf-same-as-box[b-xuadnilp2o] {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    border: 1px solid #605e5c;
    background: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.cmf-bonded-check.is-selected .cmf-same-as-box[b-xuadnilp2o] {
    border-color: #0078d4;
    background: #0078d4;
}

.cmf-bonded-check.is-selected .cmf-same-as-box[b-xuadnilp2o]::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cmf-bonded-check .cmf-same-as-text[b-xuadnilp2o] {
    flex: 0 0 auto;
    white-space: nowrap;
}

.cmf-bonded-check:has(input:disabled)[b-xuadnilp2o] {
    opacity: 0.5;
    cursor: not-allowed;
}

.cmf-bonded-sep[b-xuadnilp2o] {
    color: #a19f9d;
    flex-shrink: 0;
}

.cmf-booked-by-block[b-xuadnilp2o] {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edebe9;
}

.cmf-booked-by-block .d365-form-label[b-xuadnilp2o] {
    margin-bottom: 6px;
}

.cmf-booked-by-block .d365-form-control[b-xuadnilp2o] {
    min-height: 32px;
    height: 32px;
}

.quotation-detail-grid .repair-estimate-detail-footer[b-xuadnilp2o] {
    align-items: flex-end;
    gap: 12px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.quotation-detail-grid .quotation-gross-stack[b-xuadnilp2o] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 17rem;
}

.quotation-detail-grid .quotation-gross-row[b-xuadnilp2o] {
    display: grid;
    grid-template-columns: 5.75rem 1fr auto;
    column-gap: 10px;
    align-items: center;
}

.quotation-detail-grid .quotation-gross-row-leading[b-xuadnilp2o] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.quotation-detail-grid .quotation-gross-row .repair-estimate-detail-total-label[b-xuadnilp2o] {
    white-space: nowrap;
}

.quotation-detail-grid .quotation-gross-row .repair-estimate-detail-total[b-xuadnilp2o] {
    justify-self: end;
    text-align: right;
}

.quotation-detail-grid .quotation-gross-row-strong .repair-estimate-detail-total-label[b-xuadnilp2o],
.quotation-detail-grid .quotation-gross-row-strong .repair-estimate-detail-total[b-xuadnilp2o] {
    font-weight: 700;
    color: #201f1e;
}

/* Apply Tax chip — same pattern as LOLO / Insurance (cmf-same-as-option), slightly compact */
.quotation-detail-grid .quotation-apply-tax-chip.cmf-same-as-option[b-xuadnilp2o] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 3px 7px;
    min-height: 26px;
    border: 1px solid #edebe9;
    border-radius: 2px;
    background: #faf9f8;
    cursor: pointer;
    font-size: 11px;
    line-height: 1.25;
    color: #323130;
    user-select: none;
}

.quotation-detail-grid .quotation-apply-tax-chip.cmf-same-as-option:hover:not(:has(input:disabled))[b-xuadnilp2o] {
    border-color: #c8c6c4;
    background: #f3f2f1;
}

.quotation-detail-grid .quotation-apply-tax-chip.cmf-same-as-option.is-selected[b-xuadnilp2o] {
    border-color: #0078d4;
    background: #eff6fc;
    color: #0078d4;
}

.quotation-detail-grid .quotation-apply-tax-chip.cmf-same-as-option input[b-xuadnilp2o] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.quotation-detail-grid .quotation-apply-tax-chip.cmf-same-as-option input:focus-visible + .cmf-same-as-box[b-xuadnilp2o] {
    outline: 2px solid rgba(0, 120, 212, 0.45);
    outline-offset: 2px;
}

.quotation-detail-grid .quotation-apply-tax-chip .cmf-same-as-box[b-xuadnilp2o] {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid #605e5c;
    background: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
}

.quotation-detail-grid .quotation-apply-tax-chip.is-selected .cmf-same-as-box[b-xuadnilp2o] {
    border-color: #0078d4;
    background: #0078d4;
}

.quotation-detail-grid .quotation-apply-tax-chip.is-selected .cmf-same-as-box[b-xuadnilp2o]::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 3px;
    height: 7px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.quotation-detail-grid .quotation-apply-tax-chip .cmf-same-as-text[b-xuadnilp2o] {
    white-space: nowrap;
}

.quotation-detail-grid .quotation-apply-tax-chip.cmf-same-as-option:has(input:disabled)[b-xuadnilp2o] {
    opacity: 0.5;
    cursor: not-allowed;
}

.quotation-detail-grid .repair-estimate-detail-total-label[b-xuadnilp2o] {
    font-size: 12px;
    font-weight: 600;
    color: #605e5c;
}

.quotation-detail-grid .quotation-rh-toggle[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    height: 28px;
}

.quotation-detail-grid .quotation-rh-toggle-text[b-xuadnilp2o] {
    font-size: 11px;
    font-weight: 600;
    color: #605e5c;
    white-space: nowrap;
}

.quotation-detail-grid .quotation-rh-toggle.is-on .quotation-rh-toggle-text[b-xuadnilp2o] {
    color: #323130;
}

.quotation-detail-grid .quotation-rh-switch[b-xuadnilp2o] {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 16px;
    flex-shrink: 0;
}

.quotation-detail-grid .quotation-rh-switch input[b-xuadnilp2o] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.quotation-detail-grid .quotation-rh-slider[b-xuadnilp2o] {
    position: absolute;
    inset: 0;
    background: #c8c6c4;
    border-radius: 999px;
    transition: background 0.15s ease;
}

.quotation-detail-grid .quotation-rh-slider[b-xuadnilp2o]::before {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease;
}

.quotation-detail-grid .quotation-rh-switch input:checked + .quotation-rh-slider[b-xuadnilp2o] {
    background: #0078d4;
}

.quotation-detail-grid .quotation-rh-switch input:checked + .quotation-rh-slider[b-xuadnilp2o]::before {
    transform: translateX(12px);
}

.quotation-detail-grid .quotation-rh-switch input:disabled + .quotation-rh-slider[b-xuadnilp2o] {
    opacity: 0.5;
}

.quotation-detail-grid .quotation-rh-toggle:has(input:disabled)[b-xuadnilp2o] {
    cursor: not-allowed;
}

.quotation-detail-grid select.d365-form-control[b-xuadnilp2o] {
    height: 24px;
    min-height: 24px;
    font-size: 11px;
    padding: 0 4px;
}

@media (max-width: 1400px) {
    .cmf-quotation-top-layout[b-xuadnilp2o] {
        flex-direction: column;
    }

    .cmf-quotation-service-rail[b-xuadnilp2o] {
        flex: 1 1 auto;
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
        padding-left: 0;
        padding-top: 10px;
        border-left: none;
        border-top: 1px solid #c8c6c4;
    }
}
.quotation-detail-grid .quotation-journey-cell[b-xuadnilp2o] {
    width: 100%;
    min-width: 11rem;
    position: relative;
    overflow: visible;
}

.quotation-detail-grid.repair-estimate-detail-grid[b-xuadnilp2o] {
    overflow: visible;
}

.quotation-detail-grid .repair-estimate-detail-grid-scroll[b-xuadnilp2o] {
    overflow: auto;
    max-height: 300px;
}

.quotation-detail-grid .d365-grid-fo-editable[b-xuadnilp2o] {
    width: 100%;
    table-layout: auto;
    font-size: 12px;
}

.quotation-detail-grid .d365-grid-fo-editable thead th[b-xuadnilp2o] {
    padding: 5px 6px;
    font-size: 11px;
    white-space: nowrap;
}

.quotation-detail-grid .d365-grid-cell[b-xuadnilp2o] {
    padding: 1px 4px;
}

/* Currency cell: the ISO code only. The symbol is a duplicate of the code
   ("₨ PKR") for the base currency, so it lives in the cell tooltip. */
.quotation-detail-grid .quotation-currency-cell[b-xuadnilp2o] {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.quotation-detail-grid .d365-grid-cell-numeric[b-xuadnilp2o] {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.quotation-detail-grid .d365-grid-cell-numeric input[type="number"][b-xuadnilp2o] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quotation-detail-grid .d365-grid-cell-numeric input[type="number"][b-xuadnilp2o]::-webkit-inner-spin-button,
.quotation-detail-grid .d365-grid-cell-numeric input[type="number"][b-xuadnilp2o]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quotation-detail-grid .d365-grid-fo-editable tbody tr:focus-within[b-xuadnilp2o],
.quotation-detail-grid .d365-grid-fo-editable tbody tr:has(.autocomplete-select.open)[b-xuadnilp2o] {
    position: relative;
    z-index: 40;
}

.quotation-detail-grid[b-xuadnilp2o]  .autocomplete-select.open {
    z-index: 50;
    position: relative;
}

.quotation-detail-grid[b-xuadnilp2o]  .autocomplete-dropdown {
    z-index: 60;
    position: absolute;
}

.quotation-detail-grid .quotation-journey-cell > :first-child[b-xuadnilp2o],
.quotation-detail-grid .quotation-journey-cell > :last-child[b-xuadnilp2o] {
    flex: 1 1 0;
    min-width: 0;
}

.quotation-detail-grid .quotation-journey-cell[b-xuadnilp2o]  .autocomplete-input {
    white-space: normal;
    height: auto;
    min-height: 28px;
    line-height: 1.25;
    padding-top: 4px;
    padding-bottom: 4px;
    overflow: visible;
    text-overflow: unset;
}

.quotation-detail-grid .quotation-journey-cell > span[b-xuadnilp2o] {
    white-space: normal;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.quotation-detail-grid .quotation-transport-btn[b-xuadnilp2o] {
    border: 1px solid #c8c6c4;
    background: #fff;
    color: #323130;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 2px;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}

.quotation-detail-grid .quotation-transport-btn:hover:not(:disabled)[b-xuadnilp2o] {
    background: #f3f2f1;
}

.quotation-detail-grid .quotation-transport-btn:disabled[b-xuadnilp2o] {
    opacity: 0.5;
    cursor: not-allowed;
}

.quotation-detail-grid[b-xuadnilp2o]  .d365-grid-cell .autosuggest-input,
.quotation-detail-grid[b-xuadnilp2o]  .d365-grid-cell .d365-form-control {
    width: 100%;
    min-width: 0;
}

.cmf-transport-flyout[b-xuadnilp2o] {
    width: min(42rem, 100vw);
    max-width: 42rem;
}

.cmf-transport-context[b-xuadnilp2o] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    font-size: 12px;
    color: #323130;
}

.cmf-transport-context .cmf-label[b-xuadnilp2o] {
    display: block;
    margin-bottom: 2px;
}

.cmf-transport-scenario-flags[b-xuadnilp2o] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 10px 0 8px;
    font-size: 12px;
}

.cmf-transport-scenario-group[b-xuadnilp2o] {
    width: 100%;
    margin: 0 0 12px;
    flex-wrap: wrap;
}

.cmf-transport-flyout .cmf-flag-group.cmf-transport-scenario-group .cmf-same-as-option[b-xuadnilp2o] {
    flex: 1 1 calc(50% - 8px);
    min-width: 9rem;
}

.cmf-transport-actions[b-xuadnilp2o] {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.cmf-transport-haulage-grid[b-xuadnilp2o] {
    max-height: 220px;
    overflow: auto;
    border: 1px solid #e1dfdd;
}

.cmf-transport-haulage-grid table[b-xuadnilp2o] {
    width: 100%;
    font-size: 11px;
}

.cmf-transport-flags[b-xuadnilp2o] {
    white-space: nowrap;
    font-size: 10px;
    color: #605e5c;
}

.quotation-transport-btn.has-haulage[b-xuadnilp2o] {
    font-weight: 600;
    color: #107c10;
}

.cmf-transport-template-row[b-xuadnilp2o],
.cmf-transport-command-row[b-xuadnilp2o] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.cmf-transport-template-actions[b-xuadnilp2o] {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 2px;
}

.cmf-transport-command-apply[b-xuadnilp2o] {
    margin-bottom: 2px;
}

.cmf-transport-command-hint[b-xuadnilp2o] {
    font-size: 10px;
    color: #605e5c;
    margin-top: 4px;
    line-height: 1.35;
}

.cmf-transport-full-return-note[b-xuadnilp2o] {
    font-size: 11px;
    color: #876400;
    background: #fff4ce;
    border: 1px solid #f0e0a0;
    padding: 6px 8px;
    margin: 0 0 10px;
    border-radius: 2px;
}

.cmf-transport-leg-preview[b-xuadnilp2o] {
    margin: 0 0 12px;
    padding: 8px;
    border: 1px solid #e1dfdd;
    background: #faf9f8;
}

.cmf-transport-leg-empty[b-xuadnilp2o] {
    font-size: 11px;
    color: #8a8886;
    padding: 4px 0;
}

.cmf-transport-leg-flow[b-xuadnilp2o] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.cmf-transport-leg-step[b-xuadnilp2o] {
    flex: 1 1 8.5rem;
    min-width: 8rem;
    max-width: 14rem;
    border: 1px solid #d2d0ce;
    background: #fff;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cmf-transport-leg-status[b-xuadnilp2o] {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.cmf-transport-leg-status.is-full[b-xuadnilp2o] { color: #107c10; }
.cmf-transport-leg-status.is-empty[b-xuadnilp2o] { color: #c19c00; }

.cmf-transport-leg-label[b-xuadnilp2o] {
    font-size: 11px;
    font-weight: 600;
    color: #323130;
}

.cmf-transport-leg-route[b-xuadnilp2o] {
    font-size: 10px;
    color: #605e5c;
    word-break: break-word;
}

.cmf-save-scenario-dialog[b-xuadnilp2o] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1200;
    width: min(22rem, 92vw);
    background: #fff;
    border: 1px solid #d2d0ce;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 16px;
}

.cmf-save-scenario-dialog h3[b-xuadnilp2o] {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
}

.cmf-cost-review-dialog[b-xuadnilp2o] {
    /* Tall ceiling: the sheet shows most of the review without an inner scroll, but the
       viewport cap keeps the bottom edge on screen and clear of the sticky app header. */
    --cmf-cr-top: calc(var(--d365-header-height, 56px) + 10px);
    --cmf-cr-gap: 12px;
    --cmf-cr-max-h: min(46rem, calc(100vh - var(--cmf-cr-top) - var(--cmf-cr-gap)));
    width: min(92rem, 96vw);
    max-width: 96vw;
    /* Hug the content, so a small review stays a small card; the ceiling above
       then wins as soon as the sheet gets tall. */
    height: fit-content;
    /* The app header is a sticky 56px bar (z-index 1000) and this dialog is rendered
       inside .d365-main-content (z-index 1), so it sits in a LOWER stacking context -
       no z-index on the dialog can ever paint over the header. Anchor the top edge
       just below the header instead of centring on the viewport, so the header can
       never cover the title row. */
    top: var(--cmf-cr-top);
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 1300;
    padding: 0;
    max-height: var(--cmf-cr-max-h);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
}

/* Notification card (same chrome as the EIR / Change-to-Sound alerts) */
.cmf-cost-review-toast[b-xuadnilp2o] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: var(--cmf-cr-max-h, calc(100vh - 96px));
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.cmf-cost-review-toast .apple-toast-header[b-xuadnilp2o] {
    flex: 0 0 auto;
    align-items: center;
    padding: 7px 14px 4px;
}

.cmf-cost-review-toast .apple-toast-title[b-xuadnilp2o] {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.cmf-cost-review-toast .apple-toast-datetime[b-xuadnilp2o] {
    font-size: 10.5px;
}

.cmf-cost-review-toast .apple-toast-close[b-xuadnilp2o] {
    width: 22px;
    height: 22px;
}

.cmf-cost-review-toast .apple-toast-separator[b-xuadnilp2o] {
    flex: 0 0 auto;
}

.cmf-cost-review-toast-body[b-xuadnilp2o] {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 4px 14px 5px;
    font-size: 10.5px;
    line-height: 1.3;
    color: #38414d;
    background: #fff;
}

.cmf-cost-review-meta-code[b-xuadnilp2o] {
    color: #e8a636;
    font-weight: 700;
}

.cmf-cost-review-meta-sep[b-xuadnilp2o] {
    flex: 0 0 auto;
    width: 3px;
    height: 3px;
    margin: 0 7px;
    border-radius: 50%;
    background: #c2c8d0;
}

.cmf-cost-review-meta-item[b-xuadnilp2o] {
    color: #38414d;
    font-weight: 500;
}

.cmf-cost-review-pill[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: none;
    border-radius: 8px;
    background: #f1f3f5;
    color: #38414d;
    font-family: 'SF Pro Text', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.cmf-cost-review-pill i[b-xuadnilp2o] {
    font-size: 11px;
    line-height: 1;
}

.cmf-cost-review-pill:hover[b-xuadnilp2o] {
    background: #e6e9ed;
}

.cmf-cost-review-pill.icon[b-xuadnilp2o] {
    width: 24px;
    height: 24px;
    padding: 0;
    justify-content: center;
}

.cmf-cost-review-pill.primary[b-xuadnilp2o] {
    background: #e8a636;
    color: #fff;
    box-shadow: 0 2px 8px rgba(232, 166, 54, 0.35);
}

.cmf-cost-review-pill.primary:hover[b-xuadnilp2o] {
    background: #d99a2b;
}

.cmf-cost-review-pill:disabled[b-xuadnilp2o] {
    opacity: 0.55;
    cursor: not-allowed;
    background: #e9edf1;
    color: #8b9198;
    box-shadow: none;
}

/* Review sheet inside the notification card */
.cmf-cost-review-page[b-xuadnilp2o] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding-top: 0;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-family: 'SF Pro Text', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}

.cmf-cost-review-footer[b-xuadnilp2o] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    padding: 5px 12px 7px;
    background: #fff;
    border-top: 1px solid #f1f3f5;
}

/* Compact approval strip — underline fields, same as the rest of the forms */
.cmf-cost-review-approval[b-xuadnilp2o] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 14px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cmf-cost-review-approval-label[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a08a6c;
    white-space: nowrap;
}

/* Quotation date → recommended → approved timeline (read-only stamps). */
.cmf-cost-review-approval-stamp[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    color: #6b6257;
    white-space: nowrap;
    padding: 2px 8px;
    border: 1px solid #ece5d8;
    border-radius: 999px;
    background: #fbf8f2;
}

.cmf-cost-review-approval-stamp span[b-xuadnilp2o] {
    font-variant-numeric: tabular-nums;
}

.cmf-cost-review-approval .d365-form-control[b-xuadnilp2o] {
    min-height: 24px;
    height: 24px;
    padding: 0 2px;
    border: 0;
    border-bottom: 1px solid #d5d0c8;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 11.5px;
    line-height: 1.2;
    color: #323130;
}

.cmf-cost-review-approval .d365-form-control:focus[b-xuadnilp2o] {
    border-bottom-color: #e8a636;
    box-shadow: none;
}

.cmf-cost-review-approval-status[b-xuadnilp2o] {
    max-width: 11rem;
    text-transform: uppercase;
}

.cmf-cost-review-approval-remarks[b-xuadnilp2o] {
    flex: 1 1 18rem;
    min-width: 10rem;
}

.cmf-cost-review-approval-check[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #a08a6c;
    white-space: nowrap;
}

.cmf-cost-review-approval-btn[b-xuadnilp2o] {
    margin-left: auto;
}

/* Workflow lock: approved / rejected / already booked quotations cannot be re-approved.
   Reads as a status pill so the operator sees why the dropdown is gone. */
.cmf-cost-review-approval-lock[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: #f3f2f1;
    color: #605e5c;
    border: 1px solid #d2d0ce;
    white-space: nowrap;
}

.cmf-cost-review-tabs[b-xuadnilp2o] {
    display: flex;
    gap: 18px;
    padding: 0 14px;
    margin-top: 0;
    border-bottom: 1px solid #e3ded5;
    background: #fff;
    flex: 0 0 auto;
}

.cmf-cost-review-tab[b-xuadnilp2o] {
    padding: 4px 0 4px;
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: #9a9389;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.cmf-cost-review-tab:hover[b-xuadnilp2o] {
    color: #5d6773;
}

.cmf-cost-review-tab.active[b-xuadnilp2o] {
    font-weight: 600;
    color: #c47f1a;
    border-bottom-color: #e8a636;
}

.cmf-cost-review-body[b-xuadnilp2o] {
    flex: 1 1 auto;
    overflow: auto;
    padding: 5px 12px 6px;
    min-height: 80px;
    background: #fff;
}

.cmf-cost-review-details[b-xuadnilp2o] {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cmf-cost-review-group[b-xuadnilp2o] {
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.cmf-cost-review-group-header[b-xuadnilp2o] {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 26px;
    padding: 4px 2px;
    border: none;
    border-bottom: 1px solid #e3ded5;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 0.15s ease;
}

.cmf-cost-review-group-header:hover[b-xuadnilp2o] {
    background: rgba(139, 115, 85, 0.05);
}

.cmf-cost-review-toggle[b-xuadnilp2o] {
    display: inline-flex;
    color: #8b7355;
    font-size: 11px;
    width: 14px;
    justify-content: center;
    flex-shrink: 0;
}

.cmf-cost-review-group-count[b-xuadnilp2o] {
    font-size: 10px;
    color: #9a9389;
}

.cmf-cost-review-group-amount[b-xuadnilp2o] {
    margin-left: auto;
    font-weight: 700;
    font-size: 12px;
    color: #323130;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.cmf-cost-review-group-table[b-xuadnilp2o] {
    padding: 0;
    background: #fff;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    border-top: 1px solid #edebe9;
}

.cmf-cost-review-grid[b-xuadnilp2o] {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    table-layout: auto;
}

.cmf-cost-review-grid th[b-xuadnilp2o] {
    background: transparent;
    padding: 3px 7px 4px;
    white-space: nowrap;
    border-bottom: 1px solid #e3ded5;
    text-transform: uppercase;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #9a9389;
    text-align: left;
}

.cmf-cost-review-grid td[b-xuadnilp2o] {
    padding: 4px 7px;
    border-bottom: 1px solid #f2efe9;
    white-space: nowrap;
    vertical-align: middle;
    color: #323130;
}

/* Keep the descriptive columns hugging their content and let the trailing text /
   remarks field take the leftover width, so short codes are not spread apart. */
.cmf-cost-review-grid th[b-xuadnilp2o],
.cmf-cost-review-grid td[b-xuadnilp2o] {
    width: 1%;
}

.cmf-cost-review-grid th:last-child[b-xuadnilp2o],
.cmf-cost-review-grid td:last-child[b-xuadnilp2o] {
    width: auto;
}

.cmf-cost-review-grid tbody tr:last-child td[b-xuadnilp2o] {
    border-bottom: none;
}

/* Keep long location / transporter text readable without crushing Rate/Amount.
   Wide enough for a full transporter / location name; ellipsis stays only as a
   last-resort guard for a pathologically long value. */
.cmf-cost-review-grid td:not(.num)[b-xuadnilp2o] {
    max-width: 26rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmf-cost-review-grid tbody tr:hover[b-xuadnilp2o] {
    background-color: #f8fbff;
}

.cmf-cost-review-grid td.num[b-xuadnilp2o],
.cmf-cost-review-grid th.num[b-xuadnilp2o] {
    text-align: right;
    font-variant-numeric: tabular-nums;
    min-width: 3.25rem;
    padding-right: 12px;
}

.cmf-cost-review-badge[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    min-width: 4.5rem;
}

/* Section headers read like the underline form labels (gold, uppercase, rule below). */
.cmf-cost-review-group-header .cmf-cost-review-badge[b-xuadnilp2o] {
    background: transparent;
    color: #8b7355;
    padding: 0;
    border-radius: 0;
    min-width: 0;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.group-railway[b-xuadnilp2o]   { background: #e0e6ff; color: #2b3d9e; }
.group-haulage[b-xuadnilp2o]   { background: #e6f4ea; color: #0b5a0b; }
.group-other[b-xuadnilp2o]     { background: #f2e6ff; color: #5a1e8a; }
.group-commission[b-xuadnilp2o]{ background: #e6f3ff; color: #0c5eaa; }
.group-cross[b-xuadnilp2o]     { background: #fff0e6; color: #8a3d0b; }
.group-ocr[b-xuadnilp2o]       { background: #e6fffb; color: #0a6e63; }
.group-admin[b-xuadnilp2o]     { background: #ffe6e6; color: #9e1b1b; }
.group-margin[b-xuadnilp2o]    { background: #fff8e6; color: #8a6d00; }
.group-default[b-xuadnilp2o]   { background: #f3f2f1; color: #605e5c; }

.cmf-cost-review-empty[b-xuadnilp2o] {
    text-align: center;
    color: #888;
    padding: 28px;
}

.cmf-cost-review-summary-cards[b-xuadnilp2o] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.cmf-cost-review-summary-card[b-xuadnilp2o] {
    border: 1px solid #e8e3da;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    border-left: 3px solid #0078d4;
}

.cmf-cost-review-summary-card-header[b-xuadnilp2o] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 10px;
    border-bottom: 1px solid #f2efe9;
}

.cmf-cost-review-summary-card-title[b-xuadnilp2o] {
    font-weight: 600;
    font-size: 11.5px;
    color: #323130;
}

.cmf-cost-review-summary-card-body[b-xuadnilp2o] {
    padding: 8px 10px;
}

.cmf-cost-review-summary-card-amount[b-xuadnilp2o] {
    font-size: 15px;
    font-weight: 700;
    color: #201f1e;
    text-align: right;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.cmf-cost-review-summary-card-pct[b-xuadnilp2o] {
    height: 6px;
    background: #f3f2f1;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.cmf-cost-review-summary-card-bar[b-xuadnilp2o] {
    height: 100%;
    background: #0078d4;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.cmf-cost-review-summary-card-meta[b-xuadnilp2o] {
    font-size: 11px;
    color: #605e5c;
    text-align: right;
}

.cmf-cost-review-totals-panel[b-xuadnilp2o] {
    border: 0;
    border-top: 1px solid #e3ded5;
    border-radius: 0;
    background: transparent;
    padding: 6px 2px 0;
    max-width: 400px;
    margin-left: auto;
}

.cmf-cost-review-total-row[b-xuadnilp2o] {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 11px;
    color: #323130;
    border-bottom: 1px solid #f2efe9;
}

.cmf-cost-review-total-row:last-child[b-xuadnilp2o] {
    border-bottom: none;
}

.cmf-cost-review-total-row.net[b-xuadnilp2o] {
    font-weight: 700;
    font-size: 12px;
    color: #201f1e;
    padding-top: 5px;
    margin-top: 2px;
    border-top: 1px solid #e3ded5;
}

.cmf-cost-review-text[b-xuadnilp2o],
.cmf-cost-review-num[b-xuadnilp2o] {
    width: 100%;
    min-width: 3.5rem;
    padding: 1px 3px 2px;
    border: 0;
    border-bottom: 1px solid #d5d0c8;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
    font-family: inherit;
    color: #323130;
    outline: none;
    box-shadow: none;
}

.cmf-cost-review-text:focus[b-xuadnilp2o],
.cmf-cost-review-num:focus[b-xuadnilp2o] {
    border-bottom-color: #e8a636;
    box-shadow: none;
}

.cmf-cost-review-num[b-xuadnilp2o] {
    text-align: right;
    max-width: 7.5rem;
    font-variant-numeric: tabular-nums;
}

.cmf-cost-review-text[b-xuadnilp2o] {
    min-width: 8rem;
}

.cmf-cost-review-extra-grid[b-xuadnilp2o] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-bottom: 10px;
}

.cmf-cost-review-extra[b-xuadnilp2o] {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #6b6459;
}

.cmf-cost-review-extra strong[b-xuadnilp2o] {
    color: #201f1e;
    font-weight: 600;
}

.cmf-cost-review-totals-panel[b-xuadnilp2o] {
    max-width: 28rem;
}

.cmf-cost-review-totals-compact[b-xuadnilp2o] {
    margin-top: 12px;
}

.cmf-cost-review-total-row .cmf-cost-review-num[b-xuadnilp2o] {
    width: 7.5rem;
}

/* Keep the notification bar compact on narrower screens */
@media (max-width: 900px) {
    .cmf-cost-review-pill span[b-xuadnilp2o] {
        display: none;
    }

    .cmf-cost-review-toast[b-xuadnilp2o] {
        max-height: var(--cmf-cr-max-h, calc(100vh - 96px));
    }

    .cmf-cost-review-approval[b-xuadnilp2o] {
        flex-wrap: wrap;
    }

    .cmf-cost-review-approval-remarks[b-xuadnilp2o] {
        flex: 1 1 100%;
    }

    .cmf-cost-review-approval-btn[b-xuadnilp2o] {
        margin-left: 0;
    }
}

.quotation-transport-btn.view-only[b-xuadnilp2o] {
    cursor: pointer;
}

.quotation-transport-btn.view-only:hover[b-xuadnilp2o] {
    background: #f0f9f0;
    border-color: #107c10;
}

.quotation-transport-empty[b-xuadnilp2o] {
    color: #a19f9d;
    font-size: 11px;
    padding: 2px 8px;
}

/* CFS Data Entry Agent — right flyout (Transport/party pattern; portaled via tmsDeaPortal) */
.cmf-dea-backdrop[b-xuadnilp2o] {
    position: fixed;
    top: var(--d365-header-height, 56px);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 10050;
}

.cmf-dea-panel[b-xuadnilp2o] {
    position: fixed;
    top: var(--d365-header-height, 56px);
    right: 0;
    left: auto;
    bottom: 0;
    width: min(72rem, 92vw);
    max-width: 100vw;
    background: #fff;
    border: none;
    border-left: 1px solid #edebe9;
    border-radius: 0;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
    z-index: 10051;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cmf-dea-header[b-xuadnilp2o] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 8px;
    min-height: 2rem;
    border-bottom: 1px solid #edebe9;
    background: #faf9f8;
    flex-shrink: 0;
}

.cmf-dea-title-row[b-xuadnilp2o] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    min-width: 0;
}

.cmf-dea-title[b-xuadnilp2o] {
    font-size: 0.85rem;
    font-weight: 600;
    color: #323130;
    white-space: nowrap;
}

.cmf-dea-sub[b-xuadnilp2o] {
    font-size: 11px;
    color: #a19f9d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmf-dea-actions[b-xuadnilp2o] {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.cmf-dea-health[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 4px;
    border: 1px solid #c8c6c4;
    background: #fff;
    color: #323130;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1;
}

.cmf-dea-health.ok[b-xuadnilp2o] {
    background: #dcfce7;
    color: #107c10;
    border-color: #86efac;
}

.cmf-dea-health.bad[b-xuadnilp2o] {
    background: #fee2e2;
    color: #d13438;
    border-color: #fca5a5;
}

.cmf-dea-actions .d365-btn[b-xuadnilp2o] {
    padding: 2px 8px;
    min-height: 1.65rem;
    font-size: 12px;
}

.cmf-dea-icon-btn[b-xuadnilp2o] {
    min-width: 1.75rem;
}

@media (max-width: 1100px) {
    .cmf-dea-btn-label[b-xuadnilp2o] {
        display: none;
    }
}

.cmf-dea-frame[b-xuadnilp2o] {
    flex: 1;
    width: 100%;
    border: 0;
    background: #fff;
    min-height: 0;
}

/* Void watermark — same as CMF */
.void-watermark[b-xuadnilp2o] { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); z-index: 1000; pointer-events: none; opacity: 0.15; }
.void-watermark span[b-xuadnilp2o] { font-size: 80px; font-weight: bold; color: #d32f2f; border: 8px solid #d32f2f; padding: 20px 60px; letter-spacing: 10px; }

/* Quote Validity capsule — sits before the App Status pill in the heading and matches its
   size/weight exactly, so the two read as one pair. The tint tells the operator whether the
   quote is still current. */
.cfs-quotation-validity[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-right: 0.5rem;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid transparent;
}

.cfs-quotation-validity i[b-xuadnilp2o] {
    font-size: 0.95rem;
    line-height: 1;
}

.cfs-quotation-validity.is-valid[b-xuadnilp2o] {
    background: #eff6fc;
    color: #0f548c;
    border-color: #cfe4f7;
}

.cfs-quotation-validity.is-soon[b-xuadnilp2o] {
    background: #fff4ce;
    color: #8a6d3b;
    border-color: #f2e2a8;
}

.cfs-quotation-validity.is-expired[b-xuadnilp2o] {
    background: #fde7e9;
    color: #a4262c;
    border-color: #f3c6ca;
}

.cfs-quotation-validity.is-muted[b-xuadnilp2o] {
    background: #f3f2f1;
    color: #8a8886;
    border-color: #edebe9;
}

/* App Status badge in the command bar heading. Pill shape with the approval-badge grammar
   (full round, uppercase, letter-spaced); the tint follows the status, with pending / recommended
   on the D365 warning cream used by the approval reference. */
.cfs-quotation-status[b-xuadnilp2o] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cfs-quotation-status.is-pending[b-xuadnilp2o] {
    background: #fff4ce;
    color: #8a6d3b;
}

.cfs-quotation-status.is-success[b-xuadnilp2o] {
    background: #dff6dd;
    color: #0b5a0b;
}

.cfs-quotation-status.is-danger[b-xuadnilp2o] {
    background: #fde7e9;
    color: #a4262c;
}

.cfs-quotation-status.is-void[b-xuadnilp2o] {
    background: #fdeee3;
    color: #ca5010;
}
/* /Components/Pages/CFS/CfsRailRequest.razor.rz.scp.css */
/*
    Rail Request form - matches the Rail Stock form's header strip and detail grid.

    The Stock form owns the shared shell (.stock-toolbar / .stock-step-label / .stock-detail-grid
    live in wwwroot/css/cmf-shared.css). This file only adds what is specific to the train request:
    the pill-shaped condition toggles and the compact tri-state In Hand selector inside the grid.
*/

/* ---- Condition toggles (Down Country, BY DVS, Station Master, LSI, KBX) ----
   Same visual language as the Stock form's segmented placement control: the tick is hidden and the
   chip carries the state, so five flags read as one tidy group instead of five loose checkboxes. */
.rail-flag-group[b-jqd8etvrf2] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}

.rail-flag[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    height: 32px;
    padding: 0 0.65rem;
    border: 1px solid #d1cfcd;
    border-radius: 16px;
    background: #fff;
    color: var(--d365-text-secondary, #605e5c);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.rail-flag > input[type="checkbox"][b-jqd8etvrf2] {
    /* Visually hidden but still focusable: the chip is the control. */
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.rail-flag > .bi[b-jqd8etvrf2] {
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.8;
}

.rail-flag:hover:not(:has(input:disabled))[b-jqd8etvrf2] {
    background: #f3f2f1;
    border-color: #b3b0ad;
}

.rail-flag.is-active[b-jqd8etvrf2] {
    background: #eff6fc;
    border-color: var(--d365-primary, #0078d4);
    color: var(--d365-primary, #0078d4);
}

.rail-flag.is-active > .bi[b-jqd8etvrf2] {
    opacity: 1;
}

.rail-flag:has(input:focus-visible)[b-jqd8etvrf2] {
    outline: 2px solid var(--d365-primary, #0078d4);
    outline-offset: 1px;
}

.rail-flag:has(input:disabled)[b-jqd8etvrf2] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---- Trip Type: a segmented switch, not a capsule ----
   Single / Round is one two-way choice, so it reads as connected segments sitting on a recessed
   track instead of the loose capsules used for the five condition flags. The active segment lifts
   out on white with a primary ring and a trailing tick, the same grammar as a D365 segmented tab
   strip; the tick is always in the DOM so switching cannot reflow the header row. */
.trip-toggle[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: stretch;
    gap: 2px;
    height: 32px;
    padding: 2px;
    border: 1px solid #d1cfcd;
    border-radius: 6px;
    background: #f3f2f1;
}

.trip-toggle-btn[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--d365-text-secondary, #605e5c);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.trip-toggle-btn > .bi:not(.trip-toggle-tick)[b-jqd8etvrf2] {
    font-size: 0.82rem;
    opacity: 0.75;
}

.trip-toggle-btn:hover:not(:disabled):not(.is-active)[b-jqd8etvrf2] {
    background: #edebe9;
    color: #323130;
}

.trip-toggle-btn.is-active[b-jqd8etvrf2] {
    background: #fff;
    color: var(--d365-primary, #0078d4);
    box-shadow: inset 0 0 0 1px #c7e0f4, 0 1px 2px rgba(0, 0, 0, 0.12);
}

.trip-toggle-btn.is-active > .bi:not(.trip-toggle-tick)[b-jqd8etvrf2] {
    opacity: 1;
}

.trip-toggle-tick[b-jqd8etvrf2] {
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.12s ease, transform 0.12s ease;
}

.trip-toggle-btn.is-active .trip-toggle-tick[b-jqd8etvrf2] {
    opacity: 1;
    transform: scale(1);
}

.trip-toggle-btn:focus-visible[b-jqd8etvrf2] {
    outline: 2px solid var(--d365-primary, #0078d4);
    outline-offset: 1px;
}

.trip-toggle-btn:disabled[b-jqd8etvrf2] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---- Railway Cost row: the optional toggle plus its wagon type picker ---- */
.rail-cost-row[b-jqd8etvrf2] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}

/* The picker is a child component, so its own root carries no scope attribute: this wrapper is what
   takes the remaining width and the picker then fills it. */
.rail-cost-picker[b-jqd8etvrf2] {
    flex: 1 1 auto;
    min-width: 0;
}

/* ---- Status capsule in the command bar heading ----
   Same grammar as the Quotation App Status pill (full round, uppercase, letter-spaced) so the two
   request documents read identically from the top bar: amber while in progress, green once the
   wagons are confirmed, red for a cancelled request, neutral for void. */
.cfs-rail-status[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cfs-rail-status.is-pending[b-jqd8etvrf2] {
    background: #fff4ce;
    color: #8a6d3b;
}

.cfs-rail-status.is-success[b-jqd8etvrf2] {
    background: #dff6dd;
    color: #0b5a0b;
}

/* Partly honoured: some confirmed lines exist but the request is not covered yet. Distinct from
   Pending (nothing confirmed) so the header says how far PR has got, not just that it is open. */
.cfs-rail-status.is-partial[b-jqd8etvrf2] {
    background: #deecf9;
    color: #004578;
}

.cfs-rail-status.is-danger[b-jqd8etvrf2] {
    background: #fde7e9;
    color: #a4262c;
}

.cfs-rail-status.is-void[b-jqd8etvrf2] {
    background: #edebe9;
    color: #605e5c;
}

/* ---- Header: field rows on the left, Status card on the right ----
   Legacy frmRailConfirmation had a "Status" group box next to the fields holding Status, Received Qty
   and Balance Qty. Those are read-outs of the wagon grid, so they keep that shape: the fields keep
   their rows and the card owns the right-hand column, level with every row. */
.rail-header-strip[b-jqd8etvrf2] {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.9rem;
}

.rail-header-fields[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1 1 auto;
    min-width: 0;
}

/* D365 summary card grammar (same as the CRO header card): accent rail, tinted body, micro labels.
   Width is fixed so the field rows keep the space instead of being squeezed by the numbers. */
.rail-status-card[b-jqd8etvrf2] {
    flex: 0 0 auto;
    width: 11.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.4rem 0.7rem 0.45rem 0.65rem;
    border-left: 4px solid #f0a83c;
    border-radius: 3px;
    background: #f3f2f1;
    box-shadow: inset 0 0 0 1px #ebe9e7, 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.rail-status-card-title[b-jqd8etvrf2] {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: #201f1e;
}

/* The card's capsule is a read-out inside this card, not the page heading badge, so it takes the
   card's own label size and casing: the heading's 0.9rem uppercase made "Partially Confirmed" wider
   than the card and it spilled over the border. Only this copy is resized — the heading capsule keeps
   its size. Mixed case also matches the "Requested / Received / Balance" labels around it. */
.rail-status-card-badge[b-jqd8etvrf2] {
    align-self: flex-start;
    max-width: 100%;
    margin-right: 0;
    padding: 3px 9px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.35;
    text-transform: none;
}

.rail-status-card-totals[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: 0.1rem;
}

.rail-status-card-line[b-jqd8etvrf2] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--d365-text-secondary, #605e5c);
}

.rail-status-card-line b[b-jqd8etvrf2] {
    color: #323130;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* An open balance is what PR still owes, so it carries the amber tint; a settled one reads as done. */
.rail-status-card-line.is-open b[b-jqd8etvrf2] {
    color: #8a6d3b;
}

.rail-status-card-line.is-done b[b-jqd8etvrf2] {
    color: #0b5a0b;
}

/* Below the form's normal width the card drops under the fields rather than crushing them. */
@media (max-width: 992px) {
    .rail-header-strip[b-jqd8etvrf2] {
        flex-direction: column;
    }

    .rail-status-card[b-jqd8etvrf2] {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.3rem 0.9rem;
    }

    .rail-status-card-totals[b-jqd8etvrf2] {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.15rem 0.9rem;
    }
}

/* ---- Grid specifics ---- */
.rail-request-grid .cmf-container-detail-grid-scroll[b-jqd8etvrf2] {
    max-height: 320px;
}

/* ---- Grid toolbar: advanced-column switch ----
   Wagon type and qty moved off the master header into this grid, so the switch that reveals the
   per-line figures (Received / Balance / In Hand) sits at the right end of the grid's own toolbar. */
.rail-grid-header-controls[b-jqd8etvrf2] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    padding-left: 0.6rem;
    border-left: 1px solid #edebe9;
    white-space: nowrap;
}

/* Advanced (read-only) columns are supporting figures, not inputs: subdued so the two editable
   columns stay the focal point of the row. */
.rail-adv-cell[b-jqd8etvrf2] {
    color: var(--d365-text-secondary, #605e5c);
    font-variant-numeric: tabular-nums;
}

.rail-adv-cell.is-open[b-jqd8etvrf2] {
    color: #8a6d3b;
    font-weight: 600;
}

.rail-adv-cell.is-done[b-jqd8etvrf2] {
    color: #0b5a0b;
    font-weight: 600;
}

/* ---- Rake reference (wagon / engine / brake numbers) ----
   Engine and brake van belong to the rake, so the confirm dialog asks them once and side by side;
   the wagon numbers stay on each line, because a line is a wagon type with N numbers. */
.rail-rake-row[b-jqd8etvrf2] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.rail-rake-row > div[b-jqd8etvrf2] {
    min-width: 0;
}

/* An empty wagon-number cell is a real gap (PR has not advised it yet), so it reads as a hint and
   not as a value — the eye should land on the lines still missing their numbers. */
.rail-missing-hint[b-jqd8etvrf2] {
    color: #a19f9d;
    font-style: italic;
}

/* The pencil is an annotation action, not a delete: neutral tint, same hit area as the grid buttons. */
.rail-wagon-info-btn[b-jqd8etvrf2] {
    color: var(--d365-brand, #0078d4);
}

.rail-wagon-info-btn:hover[b-jqd8etvrf2] {
    background: #deecf9;
    color: #004578;
}

/* The old summary strip that sat above the wagon fields is gone: the prompt now carries the same
   information in its notification context block, so the styles live under .rail-notify-* below. */

/* In Hand selector: compact enough to live inside a 22px grid cell without stretching the row. */
.rail-inhand-select[b-jqd8etvrf2] {
    width: 100%;
    height: 22px;
    padding: 0 2px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    font-size: 12px;
    color: inherit;
    cursor: pointer;
}

.rail-request-grid tr:hover .rail-inhand-select[b-jqd8etvrf2] {
    border-color: #c8c6c4;
    background: #fff;
}

.rail-inhand-select:focus-visible[b-jqd8etvrf2] {
    outline: 2px solid var(--d365-primary, #0078d4);
    outline-offset: -1px;
    background: #fff;
}

.rail-inhand-select:disabled[b-jqd8etvrf2] {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ---- Row-wise wagon numbers ----
   A confirmation line is a wagon type plus a qty, so its numbers are stored as one comma separated
   list. Typing that list blind is how a 12-wagon confirmation ended up holding 9 numbers and later
   blocked wagon allocation on the departure grid, so the same list can be entered one wagon at a
   time. The panel opens under its own line, never in a separate dialog, because the operator is
   comparing the boxes against the Confirm Qty cell directly above them. */
.rail-wagon-num-toggle[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 2px;
    padding: 1px 0;
    border: 0;
    background: transparent;
    color: var(--d365-brand, #0078d4);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
}

.rail-wagon-num-toggle > .bi[b-jqd8etvrf2] {
    font-size: 0.75rem;
    opacity: 0.85;
}

.rail-wagon-num-toggle:hover[b-jqd8etvrf2] {
    text-decoration: underline;
}

.rail-wagon-num-toggle:focus-visible[b-jqd8etvrf2] {
    outline: 2px solid var(--d365-primary, #0078d4);
    outline-offset: 1px;
    border-radius: 2px;
}

/* Entered / confirmed counter: a gap has to be visible at a glance, so an incomplete line is amber
   and a fully entered line turns green. */
.rail-wagon-num-count[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dk-system-bg, #fff4ce);
    color: var(--dk-system-text, #8a6d3b);
    font-family: var(--bs-font-monospace, Consolas, monospace);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
}

.rail-wagon-num-count.is-complete[b-jqd8etvrf2] {
    background: var(--dk-success-soft, #dff6dd);
    color: var(--dk-text, #107c10);
}

/* The Wagon No cell is a progress read-out, not a second input: the boxes below own the values. */
.rail-wagon-no-cell[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.rail-wagon-numbers-row > td[b-jqd8etvrf2] {
    /* Tinted, not white: the panel belongs to the line above it and must not read as a new row. */
    background: var(--dk-2, #f8faff);
    padding: 0.35rem 0.5rem 0.5rem;
    border-top: 1px dashed var(--dk-border, #c7e0f4);
}

.rail-wagon-numbers-head[b-jqd8etvrf2] {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.3rem 0.6rem;
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dk-text, #323130);
}

.rail-wagon-numbers-head > span > .bi[b-jqd8etvrf2] {
    font-size: 0.8rem;
    opacity: 0.75;
}

.rail-wagon-num-hint[b-jqd8etvrf2] {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--dk-system-text, #8a6d3b);
}

.rail-wagon-num-hint.is-complete[b-jqd8etvrf2] {
    color: var(--dk-text, #107c10);
}

.rail-wagon-numbers[b-jqd8etvrf2] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr));
    gap: 0.35rem;
}

/* ---- Notification-style prompt (Confirm / Follow Up / Wagon Details) ----
   The prompt is an Apple-style notification card, not a bootstrap modal: the same chrome as the
   toast stack (app.css .apple-toast), so an answer that changes the request reads like a system
   notice instead of a form. The card is wide on purpose - the wagon table carries five columns and
   the row-wise number panel sits under it - and the body scrolls so the action row never leaves
   the screen. Colours come from the theme tokens so the dark appearance follows automatically. */
.rail-notify-backdrop[b-jqd8etvrf2] {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(12, 16, 20, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: rail-notify-fade-b-jqd8etvrf2 140ms ease-out;
}

/* Surface / border / text come from the dark-appearance tokens with a light fallback: those
   variables only exist under html[data-appearance="dark"], so the same rule paints a white card in
   the light theme and a #1b1a19 card in the dark one without a second stylesheet. */
.rail-notify-card.apple-toast[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    width: min(940px, 100%);
    max-height: calc(100vh - 2.5rem);
    min-width: 0;
    border-radius: 16px;
    border: 1px solid var(--dk-border, #e1dfdd);
    background: var(--dk-1, #ffffff);
    box-shadow: 0 24px 64px rgba(9, 12, 16, 0.3), 0 2px 8px rgba(9, 12, 16, 0.12);
    animation: rail-notify-rise-b-jqd8etvrf2 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* The Wagon Details prompt only holds a rake reference, so it does not need the grid width. */
.rail-notify-card.apple-toast.is-compact[b-jqd8etvrf2] {
    width: min(640px, 100%);
}

.rail-notify-card.apple-toast > .apple-toast-header[b-jqd8etvrf2] {
    align-items: center;
    padding: 0.5rem 0.9rem 0.38rem;
    background: var(--dk-1, #ffffff);
    color: var(--dk-text, #1f1f1f);
}

.rail-notify-card .apple-toast-header-text[b-jqd8etvrf2] {
    min-width: 0;
}

.rail-notify-card .apple-toast-title[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.rail-notify-card .apple-toast-title > .bi[b-jqd8etvrf2] {
    font-size: 0.92rem;
    opacity: 0.9;
}

.rail-notify-card .apple-toast-datetime[b-jqd8etvrf2] {
    margin-top: 0;
    font-size: 0.67rem;
    font-weight: 500;
    color: var(--dk-text-2, #605e5c);
}

.rail-notify-card .apple-toast-close[b-jqd8etvrf2] {
    width: 28px;
    height: 28px;
    background: var(--dk-2, #f3f2f1);
    color: var(--dk-text-2, #605e5c);
    transition: background-color 120ms ease, color 120ms ease;
}

.rail-notify-card .apple-toast-close:hover[b-jqd8etvrf2] {
    background: var(--dk-3, #edebe9);
    color: var(--dk-text, #323130);
}

.rail-notify-card .apple-toast-close > i[b-jqd8etvrf2] {
    font-size: 11px;
}

/* The separator is the only coloured chrome, so the tone of the prompt is readable from the top
   edge alone (amber = a confirmation that changes the request, blue = a note). */
.rail-notify-card.apple-toast > .apple-toast-separator[b-jqd8etvrf2] {
    height: 3px;
}

.rail-notify-body.apple-toast-body[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    /* NotificationContainer ships a global .apple-toast-body (display:flex; flex-wrap:wrap;
       align-items:center) for the toast stack. Inside this height-bounded column that wrap
       re-flows the sections into side-by-side columns and pushes the card past the viewport,
       so the prompt has to opt out of it explicitly instead of inheriting it. */
    flex-wrap: nowrap;
    align-items: stretch;
    align-content: flex-start;
    /* min-height:0 is what lets this flex child actually shrink to the card's max-height; without
       it the default `auto` minimum lets the body grow past the viewport and push the action row
       off screen. */
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.7rem;
    padding: 0.85rem 1.1rem 1rem;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--dk-1, #ffffff);
    color: var(--dk-text, #323130);
    font-size: 0.8rem;
    line-height: 1.35;
}

/* Every block is a full-width row of the card: a section can never shrink below its own content
   width (that is what clipped the In Hand column), and min-width:0 lets the inner grids scroll
   instead of widening the card. */
.rail-notify-body > *[b-jqd8etvrf2] {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
}

/* ---- Context: which request is being answered, before any input is asked for ---- */
.rail-notify-context[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem 0.7rem;
    border: 1px solid var(--dk-border, #e1dfdd);
    border-radius: 12px;
    background: var(--dk-2, #faf9f8);
}

.rail-notify-context-head[b-jqd8etvrf2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 0.7rem;
}

.rail-notify-context-code[b-jqd8etvrf2] {
    font-family: var(--bs-font-monospace, Consolas, monospace);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--dk-text, #1f1f1f);
    font-variant-numeric: tabular-nums;
}

.rail-notify-context-meta[b-jqd8etvrf2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.1rem 0.65rem;
    font-size: 0.69rem;
    color: var(--dk-text-2, #605e5c);
}

.rail-notify-context-meta > span[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
}

.rail-notify-context-meta > span > .bi[b-jqd8etvrf2] {
    font-size: 0.78rem;
    opacity: 0.75;
}

/* Four figures that answer "how much am I confirming" without opening the grid: requested,
   received, balance and the quantity being confirmed right now. */
.rail-notify-tally[b-jqd8etvrf2] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.4rem;
}

.rail-notify-tally-item[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--dk-border, #e1dfdd);
    border-radius: 9px;
    background: var(--dk-1, #ffffff);
}

.rail-notify-tally-item > span[b-jqd8etvrf2] {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dk-text-3, #a19f9d);
}

.rail-notify-tally-item > b[b-jqd8etvrf2] {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--dk-text, #323130);
    font-variant-numeric: tabular-nums;
}

/* A positive balance is the number the operator is trying to reduce, so it is the only one tinted. */
.rail-notify-tally-item.is-open[b-jqd8etvrf2] {
    border-color: var(--dk-system-border, #f2cc8f);
    background: var(--dk-system-bg, #fff8e8);
}

.rail-notify-tally-item.is-open > b[b-jqd8etvrf2] {
    color: var(--dk-system-text, #8a6d3b);
}

.rail-notify-tally-item.is-accent[b-jqd8etvrf2] {
    border-color: var(--d365-brand, #0078d4);
    background: var(--dk-accent-soft, rgba(0, 120, 212, 0.08));
}

.rail-notify-tally-item.is-accent > b[b-jqd8etvrf2] {
    color: var(--dk-accent-text, #0078d4);
}

/* One sentence explaining what the action does, so the verb is never left to the title alone. */
.rail-notify-note[b-jqd8etvrf2] {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 0.45rem 0.6rem;
    border-left: 3px solid var(--d365-brand, #0078d4);
    border-radius: 0 8px 8px 0;
    background: var(--dk-2, #f3f2f1);
    font-size: 0.75rem;
    color: var(--dk-text-2, #605e5c);
}

.rail-notify-note > .bi[b-jqd8etvrf2] {
    margin-top: 1px;
    color: var(--dk-accent-text, #0078d4);
    flex-shrink: 0;
}

/* Surplus confirmations after the request was reduced (CfsRailRequest confirm panel). */
.rail-notify-note.is-warning[b-jqd8etvrf2] {
    border-left-color: #b7791f;
    background: #fff8e6;
}

.rail-notify-note.is-warning > .bi[b-jqd8etvrf2] {
    color: #b7791f;
}

/* ---- Sections: one concern per block, titled and counted ---- */
.rail-notify-section[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.6rem 0.7rem 0.7rem;
    border: 1px solid var(--dk-border, #e1dfdd);
    border-radius: 12px;
    background: var(--dk-1, #ffffff);
}

.rail-notify-section-title[b-jqd8etvrf2] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.3rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--dk-text-2, #605e5c);
}

.rail-notify-section-title > span[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.rail-notify-section-title > span > .bi[b-jqd8etvrf2] {
    font-size: 0.74rem;
    opacity: 0.75;
}

.rail-notify-fields[b-jqd8etvrf2] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.55rem;
}

.rail-notify-field[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.rail-notify-field > .d365-form-control[b-jqd8etvrf2] {
    height: 30px;
    font-size: 0.8rem;
}

/* Entered / required counter: a gap has to be readable before saving, so an incomplete count is
   amber and a complete one turns green. */
.rail-notify-counter[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--dk-system-bg, #fff4ce);
    color: var(--dk-system-text, #8a6d3b);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.4;
    text-transform: none;
    font-variant-numeric: tabular-nums;
}

.rail-notify-counter.is-complete[b-jqd8etvrf2] {
    background: var(--dk-success-soft, #dff6dd);
    color: var(--dk-text, #107c10);
}

/* The wagon table keeps its five columns: a narrow wrapper scrolls sideways instead of squeezing
   the In Hand selector out of reach. */
.rail-notify-table-wrap[b-jqd8etvrf2] {
    max-height: 22vh;
    overflow: auto;
    border: 1px solid var(--dk-border, #e1dfdd);
    border-radius: 8px;
}

.rail-notify-table-wrap > .d365-grid[b-jqd8etvrf2] {
    width: 100%;
    margin: 0;
}

.rail-notify-table-wrap > .d365-grid > thead > tr > th[b-jqd8etvrf2] {
    position: sticky;
    top: 0;
    z-index: 1;
    white-space: normal;
    padding: 0.2rem 0.42rem;
    background: var(--dk-2, #f3f2f1);
    font-size: 0.62rem;
    letter-spacing: 0.03em;
}

.rail-notify-table-wrap > .d365-grid > tbody > tr > td[b-jqd8etvrf2] {
    white-space: normal;
    vertical-align: middle;
    padding: 0.16rem 0.42rem;
    font-size: 0.74rem;
}

/* The cells hold inputs, so they follow the compact field height (24px) instead of the grid's
   default control size - otherwise the row grows back to full height around its own editor. */
.rail-notify-table-wrap .d365-form-control[b-jqd8etvrf2] {
    height: 23px;
    font-size: 0.73rem;
}

.rail-notify-section .rail-wagon-numbers[b-jqd8etvrf2] {
    margin-top: 0.12rem;
}

/* ---- Action row: the answer is always the last thing on the card ---- */
.rail-notify-actions[b-jqd8etvrf2] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    padding: 0.38rem 0.9rem;
    border-top: 1px solid var(--dk-border, #e1dfdd);
    background: var(--dk-2, #f3f2f1);
}

.rail-notify-btn[b-jqd8etvrf2] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-width: 72px;
    height: 26px;
    padding: 0 0.7rem;
    border: 1px solid var(--dk-border-strong, #c8c6c4);
    border-radius: 8px;
    background: var(--dk-1, #ffffff);
    color: var(--dk-text, #323130);
    font-size: 0.73rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}

.rail-notify-btn:hover:not(:disabled)[b-jqd8etvrf2] {
    background: var(--dk-3, #edebe9);
}

.rail-notify-btn-primary[b-jqd8etvrf2] {
    border-color: var(--dk-brand, #0078d4);
    background: var(--dk-brand, #0078d4);
    color: #ffffff;
}

.rail-notify-btn-primary:hover:not(:disabled)[b-jqd8etvrf2] {
    border-color: #106ebe;
    background: #106ebe;
}

.rail-notify-btn:disabled[b-jqd8etvrf2] {
    opacity: 0.6;
    cursor: not-allowed;
}

.rail-notify-btn:focus-visible[b-jqd8etvrf2] {
    outline: 2px solid var(--d365-brand, #0078d4);
    outline-offset: 2px;
}

@keyframes rail-notify-fade-b-jqd8etvrf2 {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes rail-notify-rise-b-jqd8etvrf2 {
    from { opacity: 0; transform: translateY(10px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
    .rail-notify-backdrop[b-jqd8etvrf2] {
        padding: 0.5rem;
    }

    .rail-notify-card.apple-toast[b-jqd8etvrf2] {
        width: 100%;
        max-height: calc(100vh - 1rem);
    }

    .rail-notify-tally[b-jqd8etvrf2] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rail-notify-table-wrap[b-jqd8etvrf2] {
        max-height: 44vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rail-notify-backdrop[b-jqd8etvrf2],
    .rail-notify-card.apple-toast[b-jqd8etvrf2] {
        animation: none;
    }
}

.rail-wagon-slot[b-jqd8etvrf2] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

/* "#n" caption instead of a placeholder: a filled box must still say which wagon it is. */
.rail-wagon-slot > span[b-jqd8etvrf2] {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--dk-text-2, #605e5c);
    text-transform: uppercase;
}

.rail-wagon-slot > input[b-jqd8etvrf2] {
    height: 26px;
    padding: 0 0.35rem;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.rail-wagon-numbers-bulk[b-jqd8etvrf2] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.45rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--dk-border, #edebe9);
}

.rail-wagon-numbers-bulk > input[b-jqd8etvrf2] {
    flex: 1 1 auto;
    min-width: 0;
    height: 26px;
    font-size: 12px;
}

/* "Done" is the way back to the normal grid shape, so it is the quiet button of the pair. */
.rail-wagon-numbers-bulk > .d365-btn[b-jqd8etvrf2] {
    flex: 0 0 auto;
    height: 26px;
    padding: 0 0.6rem;
    font-size: 0.75rem;
}

/* /Components/Pages/CFS/CfsRailwayTariff.razor.rz.scp.css */
.railway-tariff-lines-grid th[b-mw6qpvzt85],
.railway-tariff-lines-grid td[b-mw6qpvzt85] {
    text-align: center;
}

/* Inline row editors must not clip dropdown panels. */
.railway-tariff-lines-grid td:has(.railway-tariff-edit-cell)[b-mw6qpvzt85] {
    overflow: visible;
}

.railway-tariff-edit-cell[b-mw6qpvzt85] {
    overflow: visible !important;
    position: relative;
    z-index: 2;
}

/* Beat global form-control width rules. */
.railway-tariff-master-field-code :deep(input.d365-form-control)[b-mw6qpvzt85],
.railway-tariff-master-field-date :deep(input.d365-form-control)[b-mw6qpvzt85] {
    width: inherit !important;
    max-width: inherit !important;
}

.railway-tariff-master-field-activity :deep(.autocomplete-select)[b-mw6qpvzt85],
.railway-tariff-master-field-location :deep(.autocomplete-select)[b-mw6qpvzt85] {
    display: block !important;
    width: inherit !important;
    max-width: inherit !important;
}

.railway-tariff-master-field-activity :deep(.autocomplete-input)[b-mw6qpvzt85],
.railway-tariff-master-field-location :deep(.autocomplete-input)[b-mw6qpvzt85] {
    width: 100% !important;
    max-width: 100% !important;
}

/* Keep editing dropdown overlays above sibling rows and scroll chrome. */
.railway-tariff-lines-grid tr:has(.railway-tariff-edit-cell)[b-mw6qpvzt85] {
    position: relative;
    z-index: 5;
}
/* /Components/Pages/CFS/CfsTariffRequest.razor.rz.scp.css */
.trq-layout[b-c1inp7tgml] {
    display: grid;
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    width: 100%;
    max-width: 64rem;
}

.trq-side[b-c1inp7tgml],
.trq-sheet[b-c1inp7tgml],
.trq-lines[b-c1inp7tgml] {
    background: #fff;
    border: 1px solid #edebe9;
    border-radius: 2px;
}

.trq-side[b-c1inp7tgml] {
    padding: 0.85rem 1rem 1rem;
}

.trq-kicker[b-c1inp7tgml] {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #605e5c;
    margin-bottom: 0.35rem;
}

.trq-steps[b-c1inp7tgml] {
    display: flex;
    gap: 0.4rem;
    margin: 0.15rem 0 0.55rem;
}

.trq-step[b-c1inp7tgml] {
    flex: 1;
    min-width: 0;
    padding-top: 0.35rem;
    border-top: 3px solid #e1dfdd;
    color: #8a8886;
    font-size: 0.72rem;
    line-height: 1.2;
}

.trq-step b[b-c1inp7tgml] {
    display: block;
    font-size: 0.78rem;
}

.trq-step.is-current[b-c1inp7tgml] {
    border-top-color: #0f6cbd;
    color: #0f6cbd;
    font-weight: 600;
}

.trq-step.is-done[b-c1inp7tgml] {
    border-top-color: #107c10;
    color: #107c10;
}

.trq-step.is-rejected[b-c1inp7tgml] {
    border-top-color: #a4262c;
    color: #a4262c;
    font-weight: 600;
}

.trq-who[b-c1inp7tgml],
.trq-hint[b-c1inp7tgml],
.trq-meta[b-c1inp7tgml] {
    font-size: 0.75rem;
    color: #605e5c;
    margin-top: 0.2rem;
}

.trq-rejected[b-c1inp7tgml] {
    color: #a4262c;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.trq-amount[b-c1inp7tgml] {
    font-size: 1.25rem;
    font-weight: 650;
    text-align: right;
    height: 2.4rem;
}

.trq-amount-read[b-c1inp7tgml] {
    font-size: 1.35rem;
    font-weight: 650;
    text-align: right;
    color: #201f1e;
    padding: 0.25rem 0 0.15rem;
}

.trq-remarks[b-c1inp7tgml] {
    height: auto;
    min-height: 4.2rem;
    resize: vertical;
}

.trq-head[b-c1inp7tgml] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0.45rem;
    border-bottom: 1px solid #edebe9;
}

.trq-no[b-c1inp7tgml] {
    font-size: 1.05rem;
    font-weight: 650;
    color: #201f1e;
}

.trq-pairs[b-c1inp7tgml] {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.trq-pair[b-c1inp7tgml] {
    display: grid;
    grid-template-columns: 6.6rem minmax(0, 1fr);
    gap: 0.35rem;
    align-items: baseline;
    padding: 0.42rem 1rem;
    border-bottom: 1px solid #f3f2f1;
    font-size: 0.84rem;
}

.trq-pair.wide[b-c1inp7tgml] {
    grid-column: 1 / -1;
}

.trq-pair span[b-c1inp7tgml] {
    color: #605e5c;
}

.trq-pair strong[b-c1inp7tgml] {
    font-weight: 600;
    color: #201f1e;
    overflow-wrap: anywhere;
}

.trq-note[b-c1inp7tgml] {
    padding: 0.65rem 1rem 0.75rem;
}

.trq-note p[b-c1inp7tgml] {
    margin: 0.15rem 0 0;
    white-space: pre-wrap;
    color: #201f1e;
}

.trq-lines[b-c1inp7tgml] {
    margin-top: 0.75rem;
    max-width: 64rem;
}

.trq-lines-head[b-c1inp7tgml] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.84rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #323130;
    border-bottom: 1px solid #edebe9;
}

.trq-count[b-c1inp7tgml] {
    min-width: 1.3rem;
    height: 1.3rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #eff6fc;
    color: #0f6cbd;
    font-size: 0.75rem;
    line-height: 1.3rem;
    text-align: center;
}

.trq-grid th[b-c1inp7tgml],
.trq-grid td[b-c1inp7tgml] {
    vertical-align: top;
}

.trq-lane[b-c1inp7tgml] {
    white-space: normal;
    min-width: 14rem;
}

.trq-sub[b-c1inp7tgml] {
    margin-top: 0.1rem;
    color: #605e5c;
    font-size: 0.75rem;
}

.trq-num[b-c1inp7tgml] {
    text-align: right;
    white-space: nowrap;
}

.trq-rate[b-c1inp7tgml] {
    width: 7.5rem;
    margin-left: auto;
    text-align: right;
}

.trq-trail[b-c1inp7tgml] {
    list-style: none;
    margin: 0.55rem 0 0;
    padding: 0;
    max-width: 64rem;
    color: #605e5c;
    font-size: 0.75rem;
}

.trq-trail li[b-c1inp7tgml] {
    padding: 0.12rem 0;
}

.trq-trail span[b-c1inp7tgml] {
    display: inline-block;
    min-width: 9.2rem;
}

.trq-trail em[b-c1inp7tgml] {
    font-style: normal;
    color: #323130;
}

@media (max-width: 860px) {
    .trq-layout[b-c1inp7tgml],
    .trq-pairs[b-c1inp7tgml] {
        grid-template-columns: 1fr;
    }
}

.trq-multi[b-c1inp7tgml] {
    position: relative;
}

.trq-multi-toggle[b-c1inp7tgml] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: left;
    height: auto;
    min-height: 2.1rem;
}

.trq-multi-summary[b-c1inp7tgml] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trq-multi-menu[b-c1inp7tgml] {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    margin-top: 0.15rem;
    padding: 0.35rem;
    background: #fff;
    border: 1px solid #c8c6c4;
    border-radius: 2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.trq-multi-search[b-c1inp7tgml] {
    margin-bottom: 0.3rem;
}

.trq-multi-list[b-c1inp7tgml] {
    max-height: 14rem;
    overflow-y: auto;
}

.trq-multi-item[b-c1inp7tgml] {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.28rem 0.35rem;
    border-radius: 2px;
    font-size: 0.82rem;
    cursor: pointer;
}

.trq-multi-item:hover[b-c1inp7tgml] {
    background: #eff6fc;
}

.trq-multi-item input[b-c1inp7tgml] {
    margin: 0;
}

.trq-multi-empty[b-c1inp7tgml] {
    padding: 0.4rem;
    color: #605e5c;
    font-size: 0.78rem;
}
/* /Components/Pages/CFS/CfsTransportation.razor.rz.scp.css */
/* Transportation — page-specific bits only.
   The header toolbar layout (.transport-toolbar / -row / -field) and the shared editable-grid shell
   live in wwwroot/css/cmf-shared.css, so the layout survives a stale scoped-CSS bundle. */

/* No numbered step headings: this form stacks D365 cards exactly like Quotation / Booking. */

/* ===== Header: field rows on the left, journey read-out on the right =====
   Same split the Transporter CRO header uses: the field rows keep their own flex behaviour in
   column 1 while the journey card owns column 2, so the card sits beside the fields instead of
   stretching one row taller than its neighbours. It collapses under the fields when the width
   cannot hold both. */
.transport-header-split[b-v5r2nbpavu] {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    width: 100%;
}

.transport-header-split > .transport-toolbar[b-v5r2nbpavu] {
    flex: 1 1 auto;
    min-width: 0;
}

.transport-journey-card[b-v5r2nbpavu] {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    width: 18.5rem;
    padding: 0.4rem 0.7rem 0.45rem 0.65rem;
    border-left: 4px solid #f0a83c;
    border-radius: 3px;
    background: #f3f2f1;
    box-shadow: inset 0 0 0 1px #ebe9e7, 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.transport-journey-card-title[b-v5r2nbpavu] {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: #201f1e;
}

.transport-journey-section[b-v5r2nbpavu] {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.transport-journey-label[b-v5r2nbpavu] {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
    color: #8a8886;
}

/* Reposition BL keeps the form's own field styling (underline, 32px) so it reads like the fields on
   the left; only the card frame around it is new. */

.transport-journey-list[b-v5r2nbpavu] {
    display: flex;
    flex-direction: column;
}

.transport-journey-line[b-v5r2nbpavu] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1px 0;
    border-bottom: 1px dotted #dcdad8;
    min-width: 0;
}

.transport-journey-line:last-child[b-v5r2nbpavu] {
    border-bottom: none;
}

.transport-journey-line > span[b-v5r2nbpavu] {
    flex: 0 0 auto;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #605e5c;
    text-transform: uppercase;
}

/* Locations are long ("DP World → Jumma Goth"), so the value truncates with the full leg on hover
   instead of wrapping the tally list to four lines. */
.transport-journey-line > strong[b-v5r2nbpavu] {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-size: 0.72rem;
    font-weight: 600;
    color: #201f1e;
}

@media (max-width: 1360px) {
    .transport-header-split[b-v5r2nbpavu] {
        flex-wrap: wrap;
    }

    .transport-journey-card[b-v5r2nbpavu] {
        width: 100%;
    }
}

.transport-hint[b-v5r2nbpavu] {
    font-size: 0.8rem;
    color: var(--d365-text-secondary, #605e5c);
}

.transport-banner[b-v5r2nbpavu] {
    padding: 0.5rem 0.75rem;
    border: 1px solid #f0c36d;
    background: #fff8e8;
    color: #5c4a1f;
    font-size: 0.85rem;
    border-radius: 2px;
}

/* CRO guidance: an actionable hint, not a standing form error. */
.transport-cro-guide[b-v5r2nbpavu] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.35rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #f0c36d;
    border-left-width: 3px;
    background: #fff8e8;
    color: #5c4a1f;
    font-size: 0.8rem;
    line-height: 1.35;
    border-radius: 2px;
    flex-wrap: wrap;
}

.transport-cro-guide > .bi[b-v5r2nbpavu] {
    font-size: 1rem;
    line-height: 1.2;
    margin-top: 0.05rem;
}

.transport-cro-guide-body[b-v5r2nbpavu] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1 1 18rem;
    min-width: 14rem;
}

.transport-cro-guide-body strong[b-v5r2nbpavu] {
    font-weight: 600;
}

.transport-cro-guide-body span[b-v5r2nbpavu] {
    color: #6b5a2c;
}

.transport-cro-guide-actions[b-v5r2nbpavu] {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin-left: auto;
}

.transport-cro-guide-info[b-v5r2nbpavu] {
    border-color: #a6c8e8;
    background: #f2f8fd;
    color: #1b4f72;
}

.transport-cro-guide-info .transport-cro-guide-body span[b-v5r2nbpavu] {
    color: #33566d;
}

.transport-form-simplified .cmf-command-toggle-label[b-v5r2nbpavu] {
    font-size: 0.8rem;
}

/* Stock type sits on the same row as Transporter (row 3): it only applies to "Load from Booking",
   so it belongs beside the action it modifies rather than on a line of its own. The explanation is
   on the label's tooltip, so the row stays one control high. */
.transport-stock-type-field[b-v5r2nbpavu] {
    width: 20rem;
    overflow: visible;
}

.transport-stock-radios[b-v5r2nbpavu] {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    height: 24px;
    white-space: nowrap;
}

.transport-stock-radios label[b-v5r2nbpavu] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    font-size: 12px;
    color: var(--d365-text-primary, #323130);
    cursor: pointer;
}

.transport-stock-radios input[type="radio"][b-v5r2nbpavu] {
    margin: 0;
    cursor: pointer;
}

/* The lock is a state, not a decoration: it says the transporter came from the CRO. */
.transport-transporter-lock[b-v5r2nbpavu] {
    font-size: 10px;
    color: #8a6d1f;
    margin-left: 0.25rem;
    cursor: help;
}

/* Instructions that used to sit as paragraphs under the header now hang off a small info icon, so the
   header keeps one control per line. Native title = first hover, no extra JS. */
.transport-field-info[b-v5r2nbpavu] {
    font-size: 10px;
    color: var(--d365-text-secondary, #605e5c);
    margin-left: 0.2rem;
    cursor: help;
}

.transport-field-info:hover[b-v5r2nbpavu] {
    color: var(--d365-primary, #0f6cbd);
}

/* Filters for the "Select booking lines to load" picker. They belong here, not in the form header:
   they only decide which lines get loaded, while Status / Pick / Destination are already columns of
   the container grid. One line — label then control, left to right. */
.transport-load-filters[b-v5r2nbpavu] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px dashed var(--d365-border-light, #e1dfdd);
    flex-wrap: wrap;
}

.transport-load-filters .d365-form-label[b-v5r2nbpavu] {
    color: var(--d365-text-secondary, #605e5c);
    font-size: 11px;
    white-space: nowrap;
}

.transport-load-filters select[b-v5r2nbpavu],
.transport-load-filters input[b-v5r2nbpavu],
.transport-load-filters .d365-btn[b-v5r2nbpavu] {
    flex: 0 0 auto;
}

.transport-load-filters select.d365-form-control[b-v5r2nbpavu] {
    width: 8.5rem;
    height: 26px;
    font-size: 12px;
}

/* cmf-shared.css sets `.cmf-form input.d365-form-control:not(.autocomplete-input) { width: 100% }`,
   which outweighs a plain `.transport-load-filters input`, so each filter stretched the full width
   and wrapped onto its own line. Match that selector (the boxed/underline field themes included). */
.transport-load-filters input.d365-form-control:not(.autocomplete-input)[b-v5r2nbpavu] {
    width: 11rem;
    height: 26px;
    font-size: 12px;
}

/* Grid-header controls at the right end of the grid's own toolbar row (Advanced columns, Load from
   Booking). The transporter selector lives in the master header — it is a document fact, not a grid
   property — so only these two remain here. */
.transport-grid-header-controls[b-v5r2nbpavu] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.75rem;
    padding-left: 0.6rem;
    border-left: 1px solid #edebe9;
    white-space: nowrap;
}

/* The toolbar's own buttons are 20px high (cmf-shared.css), so this one matches. */
.cmf-container-detail-grid .d365-editable-grid-toolbar .transport-load-btn[b-v5r2nbpavu],
.transport-detail-grid .transport-load-btn[b-v5r2nbpavu] {
    height: 22px !important;
    padding: 0 0.5rem;
    font-size: 12px;
}

/* ===== Container grid (same D365 editable grid as CfsQuotation) ===== */
.transport-detail-grid[b-v5r2nbpavu] {
    margin-top: 0.25rem;
}

.transport-detail-grid-scroll[b-v5r2nbpavu] {
    max-height: 480px;
    overflow: auto;
}

.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-cell {
    padding: 1px 4px;
    gap: 2px;
}

.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-cell input,
.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-cell select {
    height: 22px;
    font-size: 12px;
    padding: 0 4px;
}

.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-cell > .autocomplete-select {
    flex: 1 1 auto;
    min-width: 0;
}

/* Process tint (In-Transit / Arrived) kept from legacy, but as a row class so the quotation
   selection highlight (#deecf9) still wins when a row is selected. */
.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-fo-editable tbody tr.transport-row-in-transit {
    background: #fff8d6;
}

.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-fo-editable tbody tr.transport-row-completed {
    background: #e8f5e9;
}

.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-cell .autocomplete-input {
    height: 22px;
    font-size: 12px;
    padding: 0 20px 0 4px !important;
}

.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-cell .autocomplete-toggle {
    width: 18px;
}

.transport-detail-grid[b-v5r2nbpavu]  .container-no-input {
    font-family: Consolas, 'Courier New', monospace;
    font-weight: 600;
    text-transform: uppercase;
}

.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-cell .tms-date-text {
    height: 22px;
    font-size: 12px;
    padding: 0 2px 0 4px;
}

.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-cell .tms-date {
    width: 100%;
}

.transport-grid-icon-btn[b-v5r2nbpavu] {
    border: 1px solid transparent;
    background: transparent;
    color: var(--d365-primary, #0078d4);
    padding: 0 2px;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
}

.transport-grid-icon-btn:hover:not(:disabled)[b-v5r2nbpavu] {
    background: #e8f4fd;
}

.transport-grid-icon-btn:disabled[b-v5r2nbpavu] {
    color: #999;
    cursor: not-allowed;
}

/* Keep autocomplete dropdowns above the sticky grid header while a cell is being edited. */
.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-fo-editable tbody tr:focus-within,
.transport-detail-grid[b-v5r2nbpavu]  .d365-grid-fo-editable tbody tr:has(.autocomplete-select.open) {
    position: relative;
    z-index: 40;
}
/* /Components/Pages/CFS/CfsTransporterCro.razor.rz.scp.css */
/* Transporter CRO — page-specific bits only.
   The header field strip (.stock-toolbar / -row / -field, icon labels, tinted Trans #) and the
   editable-grid shell live in wwwroot/css/cmf-shared.css, so the layout matches the Loading Plan
   and Stock forms and survives a stale scoped-CSS bundle. */

/* The CRO code is system-assigned, so it reads as a system value rather than an editable box:
   the same plain text and light-gray fill the Booking form gives its Code, without the monospace
   / bold / uppercase treatment that made it look like a console output. */
.cro-code-input[b-w8oh19v43p] {
    font-family: inherit;
    font-weight: 400;
    letter-spacing: normal;
    text-transform: none;
    background-color: #f3f2f1 !important;
    color: #201f1e !important;
    border-color: #e1dfdd !important;
    opacity: 1;
    cursor: default;
}

/* ===== Header: field rows on the left, summary card on the right =====
   The toolbar becomes a two-column grid: every field row keeps column 1 (so the rows still wrap
   within themselves), and the summary card owns column 2 across all of them, so the card gets its
   own space instead of stretching one field row taller than its neighbours. */
.stock-toolbar.cro-header-split[b-w8oh19v43p] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 0.9rem;
}

.stock-toolbar.cro-header-split > .stock-toolbar-row[b-w8oh19v43p] {
    grid-column: 1;
}

/* ===== Header summary card: Status + container tally =====
   Read-out card, not a control: an accent rail and a tinted body separate it from the input
   fields, the micro labels sit above their values, and the size breakdown is stacked one size
   per line so the numbers scan as a column instead of a squeezed chip row. */
.cro-summary-card[b-w8oh19v43p] {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    width: 13.25rem;
    padding: 0.4rem 0.7rem 0.45rem 0.65rem;
    border-left: 4px solid #f0a83c;
    border-radius: 3px;
    background: #f3f2f1;
    box-shadow: inset 0 0 0 1px #ebe9e7, 0 1px 2px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.cro-summary-card-title[b-w8oh19v43p] {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.25;
    color: #201f1e;
}

.cro-summary-section[b-w8oh19v43p] {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cro-summary-label[b-w8oh19v43p] {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.5;
    text-transform: uppercase;
    color: #8a8886;
}

.cro-summary-status[b-w8oh19v43p] {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    height: 19px;
    padding: 0 0.4rem;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    white-space: nowrap;
}

.cro-summary-status .bi[b-w8oh19v43p] {
    font-size: 0.66rem;
}

.cro-tone-full[b-w8oh19v43p] {
    background: #dff6dd;
    border-color: #b7e1b2;
    color: #0b5a0b;
}

.cro-tone-empty[b-w8oh19v43p] {
    background: #fff4ce;
    border-color: #f2d68a;
    color: #7a4f01;
}

.cro-tone-mixed[b-w8oh19v43p] {
    background: #eef6fc;
    border-color: #c7e0f4;
    color: var(--d365-primary-dark, #004578);
}

.cro-tone-none[b-w8oh19v43p] {
    background: #e8e6e4;
    border-color: #dad8d6;
    color: #605e5c;
}

/* Sizes: one row per size, label left and count right, on a hairline so the column reads as a
   tally list. Tabular figures keep the counts aligned when a CRO carries several sizes. */
.cro-size-list[b-w8oh19v43p] {
    display: flex;
    flex-direction: column;
    margin-top: 1px;
}

.cro-size-line[b-w8oh19v43p] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1px 0;
    border-bottom: 1px dotted #dcdad8;
}

.cro-size-line:last-child[b-w8oh19v43p] {
    border-bottom: none;
}

.cro-size-line > span[b-w8oh19v43p] {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #605e5c;
    text-transform: uppercase;
}

.cro-size-line > strong[b-w8oh19v43p] {
    font-size: 0.76rem;
    font-weight: 700;
    color: #201f1e;
    font-variant-numeric: tabular-nums;
}

/* Totals strip: the two figures an operator reads last, split by a hairline. */
.cro-summary-totals[b-w8oh19v43p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1px;
    padding-top: 0.3rem;
    border-top: 1px solid #dcdad8;
}

.cro-summary-total[b-w8oh19v43p] {
    display: flex;
    flex: 1 1 0;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
}

.cro-summary-total > span[b-w8oh19v43p] {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8a8886;
    white-space: nowrap;
}

.cro-summary-total > strong[b-w8oh19v43p] {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--d365-primary-dark, #004578);
    font-variant-numeric: tabular-nums;
}

.cro-summary-total-sep[b-w8oh19v43p] {
    width: 1px;
    align-self: stretch;
    min-height: 14px;
    background: #dcdad8;
}

/* Booking list rows: the reference is the payload, the free-line count tells the operator how many
   containers "Load from Booking" will add before they pick it. */
.cro-booking-count[b-w8oh19v43p] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    margin-left: 0.25rem;
    padding: 0 0.3rem;
    border-radius: 9px;
    background: #eef6fc;
    color: var(--d365-primary-dark, #004578);
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    vertical-align: middle;
}

.cro-booking-count .bi[b-w8oh19v43p] {
    font-size: 9px;
}

/* A CRO line already used by a transport: the legacy grid painted the Status cell green with
   white text, which is unreadable at 12px in a compact grid. Tint it instead, and say why. */
.cro-status-in-use[b-w8oh19v43p] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.35rem;
    border-radius: 10px;
    background: #dff6dd;
    color: #0b5a0b;
    font-weight: 600;
    font-size: 11px;
    line-height: 18px;
}

.cro-status-in-use .bi[b-w8oh19v43p] {
    font-size: 10px;
}

/* Consignee / Shipper capsule used as the field heading. The pill replaces a plain label, so the
   wrapper keeps the label's height (otherwise the underline input would sit higher than the fields
   beside it) and is left-aligned because there is no separate header text. */
.cro-party-head[b-w8oh19v43p] {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 18px;
    margin-bottom: 2px;
}

.cro-party-head .pill-toggle-sm[b-w8oh19v43p] {
    flex-shrink: 0;
}

/* ===== Document stage pill (top command bar, beside the mode badge) ==========================
   The CRO's own stage (nothing transported / part moved / all moved or closed), not the boxes'
   Full / Empty summary, so it is tinted as a workflow state rather than as a cargo state. */
.cro-stage-pill[b-w8oh19v43p] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 0.5rem;
    height: 22px;
    border-radius: 11px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.cro-stage-pill .bi[b-w8oh19v43p] {
    font-size: 10px;
}

/* Raised, nothing on the road yet. */
.cro-stage-pill.is-pending[b-w8oh19v43p] {
    background: #fff4ce;
    border-color: #f2d675;
    color: #7a5c00;
}

/* Some containers transported, the rest still to go. */
.cro-stage-pill.is-progress[b-w8oh19v43p] {
    background: #eef6fc;
    border-color: #a9d3f0;
    color: var(--d365-primary-dark, #004578);
}

/* Every container moved, or the authorisation closed. */
.cro-stage-pill.is-complete[b-w8oh19v43p] {
    background: #dff6dd;
    border-color: #9fd89b;
    color: #0b5a0b;
}

.cro-stage-pill.is-void[b-w8oh19v43p] {
    background: #fde7e9;
    border-color: #f3b5ba;
    color: #a4262c;
}

/* Validity lapsed. Reads as the same red family as Void (both stop the document from being used)
   but is a distinct fact, so the two pills can sit side by side without looking like duplicates. */
.cro-stage-pill.is-expired[b-w8oh19v43p] {
    background: #fde7e9;
    border-color: #e8a0a6;
    color: #a4262c;
}

/* ===== Expired alert strip ==================================================================
   Sits above the header card, spanning the form width: the lapse is a record-level fact (it blocks
   Transportation), not a detail of one field, so it must be visible before any field is read. */
.cro-expired-alert[b-w8oh19v43p] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #f3b5ba;
    border-left: 3px solid #a4262c;
    border-radius: 4px;
    background: #fde7e9;
    color: #7a1b20;
    font-size: 12px;
    line-height: 1.35;
}

.cro-expired-alert-icon[b-w8oh19v43p] {
    font-size: 14px;
    color: #a4262c;
    flex-shrink: 0;
}

.cro-expired-alert-text[b-w8oh19v43p] {
    flex: 1 1 auto;
    min-width: 0;
}

.cro-expired-alert-text strong[b-w8oh19v43p] {
    margin-right: 0.2rem;
}

.cro-expired-alert-btn[b-w8oh19v43p] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 0.55rem;
    border: 1px solid #a4262c;
    border-radius: 3px;
    background: #fff;
    color: #a4262c;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.cro-expired-alert-btn:hover[b-w8oh19v43p] {
    background: #a4262c;
    color: #fff;
}

/* The lapsed field itself: red underline plus a chip on the label, so the field and the reason
   read together instead of the operator having to connect the strip above to this box. */
.cro-validity-expired .d365-form-control[b-w8oh19v43p],
.cro-validity-expired .tms-date-text[b-w8oh19v43p] {
    border-bottom-color: #a4262c !important;
    color: #a4262c;
}

.cro-validity-expired-chip[b-w8oh19v43p] {
    display: inline-flex;
    align-items: center;
    margin-left: 0.3rem;
    padding: 0 0.35rem;
    border-radius: 9px;
    background: #fde7e9;
    border: 1px solid #f3b5ba;
    color: #a4262c;
    font-size: 9px;
    font-weight: 700;
    line-height: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Original expiry beside the Validity label. Once a CRO has been extended the field shows the new
   date, so the date it was actually issued for would otherwise be invisible. Kept on the label line
   (small, muted, nowrap) instead of under the input: the header rows are bottom-aligned, so a second
   line in one field would lift its input out of line with the neighbours. It is a button because it
   is the way into the extend history. */
.cro-validity-orig[b-w8oh19v43p] {
    display: inline-flex;
    align-items: center;
    margin-left: 0.3rem;
    padding: 0 0.3rem;
    border: 1px solid transparent;
    border-radius: 3px;
    background: #f3f2f1;
    color: var(--d365-text-secondary, #605e5c);
    font-family: inherit;
    font-size: 9.5px;
    font-weight: 600;
    line-height: 14px;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
}

.cro-validity-orig:hover[b-w8oh19v43p],
.cro-validity-orig:focus-visible[b-w8oh19v43p] {
    background: #eff6fc;
    border-color: #a9d3f0;
    color: var(--d365-primary-dark, #004578);
    outline: none;
}

/* Count badge on the Extend command: tells the operator at a glance that this CRO's window has
   already been moved, so the history is worth opening. */
.cro-extend-count[b-w8oh19v43p] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    margin-left: 0.15rem;
    padding: 0 3px;
    border-radius: 7px;
    background: #eef6fc;
    color: var(--d365-primary-dark, #004578);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
}

/* ===== Read-only row keyboard navigation =====================================================
   Rows take focus with tabindex="-1" (arrow keys walk them; they stay out of the Tab order), so the
   focus ring has to sit on the row itself — a cell outline would be hidden by the grid's own
   borders at the edges. */
.cro-line-row[b-w8oh19v43p] {
    outline: none;
}

.cro-line-row:focus[b-w8oh19v43p] {
    outline: 2px solid var(--d365-primary, #0078d4);
    outline-offset: -2px;
}

.cro-line-row:focus > td[b-w8oh19v43p] {
    background-color: #eff6fc;
}

/* Toolbar hint for the two keys the read-only grid responds to. Quiet by default: it documents the
   navigation without competing with the actions beside it. */
.cro-grid-kbd-hint[b-w8oh19v43p] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
    color: var(--d365-text-secondary, #605e5c);
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.cro-grid-kbd-hint .bi[b-w8oh19v43p] {
    font-size: 11px;
    opacity: 0.8;
}

.cro-grid-kbd-hint kbd[b-w8oh19v43p] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border: 1px solid #d2d0ce;
    border-bottom-width: 2px;
    border-radius: 3px;
    background: #faf9f8;
    color: var(--d365-text-primary, #323130);
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
}

.cro-grid-kbd-sep[b-w8oh19v43p] {
    opacity: 0.5;
}

/* ===== Extend validity dialog ================================================================ */
.cro-extend-backdrop[b-w8oh19v43p] {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.cro-extend-dialog[b-w8oh19v43p] {
    width: min(26rem, calc(100vw - 2rem));
    background: #fff;
    border-radius: 6px;
    padding: 1rem 1.25rem 1.1rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.cro-extend-head[b-w8oh19v43p] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cro-extend-title[b-w8oh19v43p] {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.cro-extend-title .bi[b-w8oh19v43p] {
    margin-right: 0.3rem;
    color: var(--d365-primary, #0078d4);
}

.cro-extend-close[b-w8oh19v43p] {
    border: none;
    background: transparent;
    color: var(--d365-text-secondary, #605e5c);
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
}

.cro-extend-close:hover[b-w8oh19v43p] {
    background: #f3f2f1;
    color: var(--d365-error, #a4262c);
}

.cro-extend-note[b-w8oh19v43p] {
    margin: 0 0 0.65rem;
    font-size: 12px;
    line-height: 1.45;
    color: var(--d365-text-secondary, #605e5c);
}

.cro-extend-presets[b-w8oh19v43p] {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.cro-extend-preset[b-w8oh19v43p] {
    border: 1px solid #d2d0ce;
    background: #faf9f8;
    border-radius: 12px;
    padding: 2px 0.6rem;
    font-size: 11px;
    color: var(--d365-text-primary, #323130);
    cursor: pointer;
}

.cro-extend-preset:hover[b-w8oh19v43p] {
    border-color: var(--d365-primary, #0078d4);
    background: #eff6fc;
    color: var(--d365-primary-dark, #004578);
}

.cro-extend-actions[b-w8oh19v43p] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Extend history: a framed list so the dialog's own controls and the record's past clearly sit in
   two different layers. Capped height keeps a long-lived CRO's dialog inside the viewport. */
.cro-extend-history[b-w8oh19v43p] {
    margin-top: 0.85rem;
    border: 1px solid #edebe9;
    border-radius: 4px;
    background: #faf9f8;
    padding: 0.45rem 0.55rem;
}

.cro-extend-history-head[b-w8oh19v43p] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
    font-size: 11px;
    font-weight: 600;
    color: var(--d365-text-secondary, #605e5c);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cro-extend-history-count[b-w8oh19v43p] {
    padding: 0 0.3rem;
    border-radius: 8px;
    background: #eef6fc;
    color: var(--d365-primary-dark, #004578);
    font-size: 10px;
    line-height: 15px;
}

/* "originally 09-Nov-2026" — the CRO's issue date, restated where the moves are listed, so the list
   reads as one timeline instead of disconnected old/new pairs. */
.cro-extend-history-origin[b-w8oh19v43p] {
    margin-left: auto;
    font-size: 10px;
    font-weight: 500;
    color: var(--d365-text-secondary, #605e5c);
    text-transform: none;
    letter-spacing: normal;
}

.cro-extend-history-empty[b-w8oh19v43p] {
    padding: 0.2rem 0;
    color: var(--d365-text-secondary, #605e5c);
    font-size: 11px;
    font-style: italic;
}

.cro-extend-history-list[b-w8oh19v43p] {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 9.5rem;
    overflow-y: auto;
}

.cro-extend-history-item[b-w8oh19v43p] {
    padding: 0.3rem 0;
    border-top: 1px dashed #e1dfdd;
}

.cro-extend-history-item:first-child[b-w8oh19v43p] {
    border-top: none;
    padding-top: 0;
}

.cro-extend-history-move[b-w8oh19v43p] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 12px;
    color: var(--d365-text-primary, #323130);
}

.cro-extend-history-from[b-w8oh19v43p] {
    color: var(--d365-text-secondary, #605e5c);
    text-decoration: line-through;
    text-decoration-color: #c8c6c4;
}

/* Oldest-first counter ("Extend 1" = the first move ever made), so a list of near-identical date
   pairs is still readable as a sequence. */
.cro-extend-history-seq[b-w8oh19v43p] {
    flex: 0 0 auto;
    min-width: 14px;
    padding: 0 3px;
    border-radius: 7px;
    background: #f3f2f1;
    color: var(--d365-text-secondary, #605e5c);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}

.cro-extend-history-move .bi[b-w8oh19v43p] {
    font-size: 10px;
    color: var(--d365-text-secondary, #605e5c);
}

.cro-extend-history-to[b-w8oh19v43p] {
    font-weight: 600;
}

.cro-extend-history-days[b-w8oh19v43p] {
    margin-left: 0.15rem;
    padding: 0 0.3rem;
    border-radius: 8px;
    background: #dff6dd;
    color: #0b5a0b;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 14px;
}

.cro-extend-history-meta[b-w8oh19v43p] {
    font-size: 10.5px;
    color: var(--d365-text-secondary, #605e5c);
}

.cro-extend-history-remarks[b-w8oh19v43p] {
    font-size: 11px;
    color: var(--d365-text-primary, #323130);
    font-style: italic;
}

/* Narrow screens: the card drops under the field rows and right-aligns, instead of squeezing the
   inputs into a sliver of the row. */
@media (max-width: 900px) {
    .stock-toolbar.cro-header-split[b-w8oh19v43p] {
        grid-template-columns: minmax(0, 1fr);
    }

    .cro-summary-card[b-w8oh19v43p] {
        grid-column: 1;
        grid-row: auto;
        justify-self: end;
        width: 18rem;
    }

    /* The hint would sit on its own line and push the button row taller on a phone. */
    .cro-grid-kbd-hint[b-w8oh19v43p] {
        display: none;
    }
}
/* /Components/Pages/CFS/CfsWagonManagement.razor.rz.scp.css */
/* Wagon Management: the master strip, the station board and the DVS history.
   The page reuses the Stock form's toolbar classes, so only what is new lives here. */

.wagon-tabs .d365-tabs[b-c8m75yme9t] {
    margin-bottom: 0.75rem;
}

.wagon-tabs .d365-tab[b-c8m75yme9t] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    /* The legacy shell puts buttons in a form-less div; this keeps the strip from reflowing. */
    white-space: nowrap;
}

.wagon-tabs .d365-tab:disabled[b-c8m75yme9t] {
    cursor: not-allowed;
    opacity: 0.65;
}

.wagon-tabs .d365-tab .d365-badge[b-c8m75yme9t] {
    font-size: 0.68rem;
    padding: 1px 6px;
}

/* ---- Setup header field strip ----
   The shared sheet bottom-aligns the fields of a toolbar row
   (.stock-toolbar-row { align-items: flex-end }), so a field that carries a hint
   (Capacity / Payload) is taller than a plain one and its caption + control are pushed UP by
   the height of that hint: the captions then sit on two different lines.

   Fixed here, scoped to this page, in a way that does not depend on the row alignment at all:
   every field of the first row reserves the hint line underneath its control, and the hint is
   pinned into that reserved space. All seven fields are then exactly the same height, one
   caption line and one control line, whatever the shared sheet does. */
.cmf-form .stock-toolbar-row[b-c8m75yme9t] {
    align-items: flex-start;
}

.cmf-form .stock-toolbar-field[b-c8m75yme9t] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}

.cmf-form .stock-toolbar-field > .d365-form-label[b-c8m75yme9t] {
    min-height: 1.1rem;
    margin-bottom: 0.15rem;
}

/* First row only: reserve the hint line under every control, whether or not it has a hint. */
.cmf-form .stock-toolbar > .stock-toolbar-row:first-child > .stock-toolbar-field[b-c8m75yme9t] {
    position: relative;
    padding-bottom: 1.15rem;
}

.cmf-form .stock-toolbar > .stock-toolbar-row:first-child > .stock-toolbar-field > .d365-form-label[b-c8m75yme9t] {
    line-height: 1.1rem;
    /* One caption line per field, so no label can push its control off the common baseline. */
    white-space: nowrap;
}

.cmf-form .stock-toolbar > .stock-toolbar-row:first-child > .stock-toolbar-field > .wagon-field-hint[b-c8m75yme9t] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 0.72rem;
    color: var(--d365-text-muted, #605e5c);
    line-height: 1.15rem;
}

/* Hint inside the DVS grid (not a toolbar field): stays in flow under its row. */
.wagon-field-hint[b-c8m75yme9t] {
    font-size: 0.72rem;
    color: var(--d365-text-muted, #605e5c);
    line-height: 1.4;
    min-height: 1.05rem;
}

/* Load Mode: Container (TEU) vs Weight only. One master row, two ways of working it. */
.wagon-mode-switch[b-c8m75yme9t] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    /* Match .d365-form-control (32px) so the switch sits level with the other controls. */
    min-height: 32px;
    padding: 2px;
    border: 1px solid var(--d365-border, #d1d1d1);
    border-radius: 14px;
    background: var(--d365-bg-secondary, #faf9f8);
    box-sizing: border-box;
}

.wagon-mode-btn[b-c8m75yme9t] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 3px 9px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--d365-text-secondary, #3b3a39);
    font-size: 0.74rem;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
}

.wagon-mode-btn:disabled[b-c8m75yme9t] {
    cursor: default;
    opacity: 0.7;
}

.wagon-mode-btn.is-active[b-c8m75yme9t] {
    background: #ffffff;
    color: var(--d365-text-primary, #201f1e);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

/* In hand / expected / departed / DVS / available, next to the master fields. */
.wagon-state-chips[b-c8m75yme9t] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    min-height: 32px;
}

.wagon-chip[b-c8m75yme9t] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 8px;
    border: 1px solid var(--d365-border, #d1d1d1);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--d365-text-secondary, #3b3a39);
    background: var(--d365-bg-secondary, #faf9f8);
    white-space: nowrap;
}

.wagon-chip strong[b-c8m75yme9t] {
    font-weight: 600;
    color: var(--d365-text-primary, #201f1e);
}

.wagon-chip-in[b-c8m75yme9t] {
    border-color: #c7e0c7;
    background: #f1faf1;
}

.wagon-chip-ok[b-c8m75yme9t] {
    border-color: #c7e0c7;
    background: #f1faf1;
}

.wagon-chip-bad[b-c8m75yme9t] {
    border-color: #f3c9cd;
    background: #fdf3f4;
    color: #a4262c;
}

.wagon-chip-bad strong[b-c8m75yme9t] {
    color: #a4262c;
}

.wagon-note[b-c8m75yme9t] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.8rem;
    color: var(--d365-text-secondary, #3b3a39);
    line-height: 1.5;
}

.wagon-note i[b-c8m75yme9t] {
    color: var(--d365-primary, #0078d4);
    margin-top: 2px;
}

.wagon-note code[b-c8m75yme9t] {
    font-size: 0.75rem;
    color: #a4262c;
}

/* ---- In Hand / DVS toolbars ---- */

.wagon-filter-row[b-c8m75yme9t] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-end;
}

.wagon-filter-panel[b-c8m75yme9t] {
    padding: 0.5rem 0 0.85rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--d365-border, #edebe9);
}

.wagon-filter-field[b-c8m75yme9t] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 8rem;
}

.wagon-filter-field .d365-form-control[b-c8m75yme9t] {
    height: 28px;
    font-size: 0.8rem;
}

.wagon-filter-flags[b-c8m75yme9t] {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 4px;
}

.wagon-filter-flags .d365-form-label[b-c8m75yme9t] {
    margin-bottom: 0;
}

.wagon-check[b-c8m75yme9t] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: var(--d365-text-secondary, #3b3a39);
    white-space: nowrap;
}

/* ---- Summary tiles ---- */

.wagon-kpi-row[b-c8m75yme9t] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.wagon-kpi[b-c8m75yme9t] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 7.5rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--d365-border, #edebe9);
    border-radius: 6px;
    background: var(--d365-bg-secondary, #faf9f8);
}

.wagon-kpi-value[b-c8m75yme9t] {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--d365-text-primary, #201f1e);
}

.wagon-kpi-label[b-c8m75yme9t] {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--d365-text-muted, #605e5c);
}

.wagon-kpi-ok[b-c8m75yme9t] {
    border-color: #c7e0c7;
    background: #f1faf1;
}

.wagon-kpi-ok .wagon-kpi-value[b-c8m75yme9t] {
    color: #0b5a0b;
}

.wagon-kpi-bad[b-c8m75yme9t] {
    border-color: #f3c9cd;
    background: #fdf3f4;
}

.wagon-kpi-bad .wagon-kpi-value[b-c8m75yme9t] {
    color: #a4262c;
}

.wagon-warnings[b-c8m75yme9t] {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.78rem;
    color: #8a6d3b;
}

.wagon-warnings i[b-c8m75yme9t] {
    margin-right: 0.3rem;
}

/* ---- Grids ---- */

.wagon-grid-scroll[b-c8m75yme9t] {
    max-height: 32rem;
    overflow: auto;
    border: 1px solid var(--d365-border, #edebe9);
    border-radius: 4px;
}

.wagon-grid[b-c8m75yme9t] {
    font-size: 0.78rem;
}

.wagon-grid thead th[b-c8m75yme9t] {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--d365-bg-secondary, #faf9f8);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.wagon-grid tbody td[b-c8m75yme9t] {
    white-space: nowrap;
    vertical-align: middle;
}

.wagon-grid tfoot th[b-c8m75yme9t] {
    position: sticky;
    bottom: 0;
    background: var(--d365-bg-secondary, #faf9f8);
    font-size: 0.75rem;
    border-top: 1px solid var(--d365-border, #d1d1d1);
}

.wagon-grid .wagon-remarks[b-c8m75yme9t] {
    white-space: normal;
    min-width: 12rem;
    max-width: 22rem;
    font-size: 0.75rem;
    color: var(--d365-text-secondary, #3b3a39);
}

.wagon-link[b-c8m75yme9t] {
    color: var(--d365-primary, #0078d4);
    text-decoration: none;
}

.wagon-link:hover[b-c8m75yme9t] {
    text-decoration: underline;
}
/* /Components/Pages/CFS/Reports/CfsReportSuggestFilter.razor.rz.scp.css */
.cfs-stock-line-name[b-f1pnhhytjh] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.7rem;
    font-weight: 500;
    color: inherit;
    text-transform: none;
    letter-spacing: 0;
}

.cfs-stock-suggest[b-f1pnhhytjh] {
    position: relative;
}

.cfs-stock-suggest-hits[b-f1pnhhytjh] {
    position: fixed;
    z-index: 2100;
    max-height: 250px;
    overflow: auto;
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #c5cdd8;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.cfs-stock-suggest-hit[b-f1pnhhytjh] {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.35rem 0.55rem;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1.3;
}

.cfs-stock-suggest-hit.active[b-f1pnhhytjh],
.cfs-stock-suggest-hit:hover[b-f1pnhhytjh] {
    background: #dbe4ff;
}

.cfs-stock-suggest-code[b-f1pnhhytjh] {
    flex: 0 0 auto;
    font-weight: 700;
    color: #040C5A;
}

.cfs-stock-suggest-name[b-f1pnhhytjh] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
}
/* /Components/Pages/CommonCoding.razor.rz.scp.css */
/* Common Coding scoped styles
   Entity toolbar styles moved to wwwroot/css/cmf-shared.css (global)
   so they survive Blazor scoped CSS re-bundling. */

.common-coding-kpi .tms-kpi-card.ops-kpi-card[b-9yeescpqp3] {
    width: 100%;
    text-align: left;
    appearance: none;
    font: inherit;
    color: inherit;
    background: #ffffff;
}

.common-coding-kpi .tms-kpi-grid[b-9yeescpqp3] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.common-coding-list-panel .common-coding-list-search[b-9yeescpqp3] {
    min-width: 12rem;
    max-width: 16rem;
}

.common-coding-list-panel .common-coding-list-search .d365-search-input[b-9yeescpqp3] {
    min-width: 0;
}

.common-coding-list-panel .repair-estimate-list-header-meta[b-9yeescpqp3] {
    flex-wrap: wrap;
    gap: 0.5rem;
}
/* /Components/Pages/Login.razor.rz.scp.css */
/* Full viewport — no body scroll / white strip on login route */
:global(html:has(.login-page))[b-jv8046h6o2],
:global(body:has(.login-page))[b-jv8046h6o2] {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

/* ===== FULL-SCREEN LOGIN PAGE ===== */
.login-page[b-jv8046h6o2] {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 9999;
}

.login-bg[b-jv8046h6o2] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: url('/images/background-login.jpg') center center / 100% 100% no-repeat;
    z-index: 0;
}

/* ===== GLASS CARD (img 2 — light frosted glass, tall centered panel) ===== */
.login-glass-card[b-jv8046h6o2] {
    position: relative;
    z-index: 1;
    display: flex;
    width: 960px;
    max-width: 95vw;
    min-height: 85vh;
    max-height: 96vh;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    box-sizing: border-box;
}

/* ===== LEFT PANEL (Branding) ===== */
.login-left[b-jv8046h6o2] {
    flex: 1.2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1.5rem;
    position: relative;
    border: none;
    background: transparent;
    gap: 0.4rem;
}

.login-left[b-jv8046h6o2]::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(26, 42, 94, 0.2), transparent);
}

.brand-logo[b-jv8046h6o2] {
    max-width: 210px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.brand-illustration[b-jv8046h6o2] {
    max-width: 260px;
    width: 100%;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.brand-title[b-jv8046h6o2] {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a2a5e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    margin-bottom: 0.8rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.brand-modules[b-jv8046h6o2] {
    display: flex;
    gap: 0.6rem;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.module-item[b-jv8046h6o2] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90px;
    min-width: 0;
    text-align: center;
    transition: transform 0.3s ease;
}

.module-item:hover[b-jv8046h6o2] {
    transform: translateY(-5px);
}

.module-item img[b-jv8046h6o2] {
    width: 62px;
    height: 62px;
    margin-bottom: 0.3rem;
    padding: 11px;
    background: #ffffff;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    object-fit: contain;
}

.module-item span[b-jv8046h6o2] {
    font-size: 0.65rem;
    color: #ffffff;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* ===== RIGHT PANEL (Login Form) ===== */
.login-right[b-jv8046h6o2] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 2rem;
    background: transparent;
}

.welcome-title[b-jv8046h6o2] {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2a5e;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

.welcome-subtitle[b-jv8046h6o2] {
    font-size: 0.95rem;
    color: #4a5a8a;
    font-weight: 500;
    margin-bottom: 2rem;
}

.login-form[b-jv8046h6o2] {
    width: 100%;
    max-width: 320px;
}

.input-group-login[b-jv8046h6o2] {
    position: relative;
    display: flex;
    align-items: center;
    background: #e8f0fe;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    margin-bottom: 1.2rem;
    padding: 0 1.2rem;
    height: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.input-group-login:focus-within[b-jv8046h6o2] {
    background: #e8f0fe;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
    border: 1px solid #1a2a5e;
}

.input-group-login i[b-jv8046h6o2] {
    color: #1a2a5e;
    font-size: 1.2rem;
    margin-right: 1rem;
    opacity: 0.8;
}

.input-group-login input[b-jv8046h6o2],
.input-group-login select[b-jv8046h6o2] {
    flex: 1;
    border: none;
    outline: none;
    padding: 0;
    height: 100%;
    font-size: 1rem;
    background: transparent;
    color: #1a2a5e;
    font-weight: 500;
}

.input-group-login select[b-jv8046h6o2] {
    cursor: pointer;
    min-width: 0;
}

.input-group-login select option[b-jv8046h6o2] {
    color: #1a2a5e;
    background: #e8f0fe;
}

.input-group-login input:-webkit-autofill[b-jv8046h6o2],
.input-group-login input:-webkit-autofill:hover[b-jv8046h6o2],
.input-group-login input:-webkit-autofill:focus[b-jv8046h6o2],
.input-group-login input:-webkit-autofill:active[b-jv8046h6o2] {
    -webkit-box-shadow: 0 0 0 30px #e8f0fe inset !important;
    -webkit-text-fill-color: #1a2a5e !important;
    caret-color: #1a2a5e;
}

.input-group-login input[b-jv8046h6o2]::placeholder {
    color: #7a8aa3;
}

.toggle-password[b-jv8046h6o2] {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #7a8aa3;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.toggle-password:hover[b-jv8046h6o2] {
    color: #1a2a5e;
}

.btn-login[b-jv8046h6o2] {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1a2a5e 0%, #0d1b42 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(26, 42, 94, 0.4);
    text-transform: uppercase;
}

.btn-login:hover:not(:disabled)[b-jv8046h6o2] {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 42, 94, 0.6);
    background: linear-gradient(135deg, #23356e 0%, #1a2a5e 100%);
}

.btn-login:disabled[b-jv8046h6o2] {
    opacity: 0.7;
    cursor: not-allowed;
    background: #556080;
}

.login-error[b-jv8046h6o2] {
    background: rgba(255, 235, 235, 0.9);
    color: #c33;
    border: 1px solid rgba(255, 100, 100, 0.3);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.login-footer-text[b-jv8046h6o2] {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .login-glass-card[b-jv8046h6o2] {
        flex-direction: column;
        min-height: auto;
        max-height: 95vh;
        width: 90%;
        overflow-y: auto;
    }

    .login-left[b-jv8046h6o2] {
        padding: 1.5rem 1rem;
    }

    .login-left[b-jv8046h6o2]::after {
        display: none;
    }

    .brand-illustration[b-jv8046h6o2] {
        max-width: 180px;
    }

    .brand-modules[b-jv8046h6o2] {
        display: none;
    }
}
/* /Components/Pages/StoreCategoryPicker.razor.rz.scp.css */
.store-cat-picker[b-pnqwn78gas] { position: relative; width: 100%; }
.store-cat-picker-shell[b-pnqwn78gas] { position: relative; }
.store-cat-picker-trigger[b-pnqwn78gas] {
    display: flex; align-items: center; gap: 0.35rem; width: 100%; min-height: 32px;
    padding: 4px 8px 4px 10px; border: 1px solid #8a8886; border-radius: 4px;
    background: linear-gradient(180deg, #fafbff 0%, #f0f4fa 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8); color: #323130; text-align: left; cursor: pointer;
}
.store-cat-picker-trigger:hover:not(:disabled)[b-pnqwn78gas] { border-color: #0078d4; background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%); }
.store-cat-picker.is-open .store-cat-picker-trigger[b-pnqwn78gas] { border-color: #0078d4; box-shadow: 0 0 0 1px #0078d4; }
.store-cat-picker.is-disabled .store-cat-picker-trigger[b-pnqwn78gas] { cursor: not-allowed; opacity: 0.65; background: #f3f2f1; }
.store-cat-picker-icon[b-pnqwn78gas] { color: #0078d4; flex-shrink: 0; }
.store-cat-picker-value[b-pnqwn78gas] { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.store-cat-picker-chevron[b-pnqwn78gas] { flex-shrink: 0; color: #605e5c; font-size: 12px; }
.store-cat-picker-panel[b-pnqwn78gas] {
    position: absolute; z-index: 30; top: calc(100% + 2px); left: 0; right: 0;
    border: 1px solid #c8c6c4; border-radius: 4px; background: #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.store-cat-picker-search[b-pnqwn78gas] {
    display: flex; align-items: center; gap: 0.35rem; padding: 6px 8px;
    border-bottom: 1px solid #edebe9; background: #faf9f8;
}
.store-cat-picker-search .bi-search[b-pnqwn78gas] { color: #605e5c; font-size: 13px; }
.store-cat-picker-search-input[b-pnqwn78gas] { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; font-size: 13px; padding: 2px 0; }
.store-cat-picker-clear[b-pnqwn78gas] { border: 0; background: transparent; color: #605e5c; padding: 0 4px; line-height: 1; cursor: pointer; }
.store-cat-picker-clear:hover[b-pnqwn78gas] { color: #0078d4; }
.store-cat-picker-list[b-pnqwn78gas] { max-height: 220px; overflow-y: auto; }
.store-cat-picker-item[b-pnqwn78gas] {
    display: block; width: 100%; border: 0; border-bottom: 1px solid #f3f2f1; background: #fff;
    text-align: left; padding: 7px 10px; font-size: 13px; cursor: pointer;
}
.store-cat-picker-item:hover[b-pnqwn78gas] { background: #f0f6ff; }
.store-cat-picker-item.selected[b-pnqwn78gas] { background: #deecf9; font-weight: 600; }
.store-cat-picker-empty[b-pnqwn78gas] { padding: 10px; font-size: 13px; color: #605e5c; }
/* /Components/Pages/StoreCategorySubCategoryCoding.razor.rz.scp.css */
.cat-sub-page-card :deep(.d365-search)[b-01n2ej7l66] {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 240px;
    width: 100%;
    max-width: 320px;
}

.cat-sub-page-card :deep(.d365-search-icon)[b-01n2ej7l66] {
    position: absolute;
    left: 10px;
    pointer-events: none;
    z-index: 1;
}

.cat-sub-page-card :deep(.d365-search-input)[b-01n2ej7l66] {
    width: 100%;
    min-width: 200px;
    height: 30px;
    padding: 4px 8px 4px 30px;
}

.cat-sub-page-card :deep(.d365-search-input:focus)[b-01n2ej7l66] {
    width: 100%;
}

.cat-sub-grid-scroll[b-01n2ej7l66] {
    max-height: 420px;
    overflow: auto;
}

.cat-sub-grid :deep(tbody tr.sub-row td.name-cell)[b-01n2ej7l66] {
    padding-left: 28px;
    color: var(--d365-text-secondary, #5c5c5c);
}

.cat-sub-grid :deep(tbody tr.selected)[b-01n2ej7l66] {
    background-color: var(--d365-primary-light, #e8eaf6);
}

.cat-sub-form-row[b-01n2ej7l66] {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.cat-sub-field[b-01n2ej7l66] {
    min-width: 0;
}

.cat-sub-field-id[b-01n2ej7l66] {
    flex: 0 0 5.5rem;
}

.cat-sub-field-id :deep(.d365-form-control)[b-01n2ej7l66] {
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}

.cat-sub-field-short[b-01n2ej7l66] {
    flex: 0 0 6.5rem;
}

.cat-sub-field-short :deep(.d365-form-control)[b-01n2ej7l66] {
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}

.cat-sub-field-name[b-01n2ej7l66] {
    flex: 0 0 22rem;
    min-width: 22rem;
    max-width: 30rem;
}

.cat-sub-field-name :deep(.d365-form-control)[b-01n2ej7l66] {
    width: 100%;
    min-width: 100%;
    text-overflow: ellipsis;
}

.cat-sub-field-select[b-01n2ej7l66] {
    flex: 0 0 24rem;
    min-width: 24rem;
    max-width: 32rem;
    margin-left: auto;
}

.cat-sub-field-select :deep(.store-cat-picker)[b-01n2ej7l66] {
    width: 100%;
}

.cat-sub-form-sub[b-01n2ej7l66] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cat-sub-form-row-sub-id[b-01n2ej7l66] {
    width: fit-content;
}

.cat-sub-form-row-sub .cat-sub-field-main-cat[b-01n2ej7l66] {
    flex: 0 0 24rem;
    min-width: 24rem;
    max-width: 32rem;
    margin-left: 0;
}

.cat-sub-main-select[b-01n2ej7l66] {
    background: #fff;
}
/* /Components/Pages/StoreComparative.razor.rz.scp.css */
/* Comparative uses the shared CMF grid. These rules cover the header band,
   the vendor bands, the lowest quote, and the requisition picker dialog. */

[b-hvlj7l90jc] .cmp-form .stock-toolbar-field > .tms-date {
    display: block;
    width: 100%;
}

[b-hvlj7l90jc] .cmp-form .stock-toolbar-field > .tms-date > .tms-date-text {
    width: 100%;
    box-sizing: border-box;
}

[b-hvlj7l90jc] .cmf-container-detail-grid-scroll {
    max-height: 460px;
}

[b-hvlj7l90jc] .cmf-container-detail-grid .cmp-grid thead th {
    position: static;
    background: #fff;
    text-align: left;
    padding: 4px 8px;
    vertical-align: middle;
}

[b-hvlj7l90jc] .cmf-container-detail-grid .cmp-grid thead th.text-end {
    text-align: right;
}

[b-hvlj7l90jc] .cmf-container-detail-grid .cmp-grid thead th.text-center {
    text-align: center;
}

[b-hvlj7l90jc] .cmf-container-detail-grid .cmp-grid td {
    height: 28px;
    min-height: 28px;
    padding: 0;
    vertical-align: middle;
    white-space: nowrap;
}

[b-hvlj7l90jc] .cmp-grid .d365-grid-cell {
    min-height: 28px;
    padding: 0 8px;
    align-items: center;
}

[b-hvlj7l90jc] .cmp-grid .cmp-vendor {
    padding: 2px 8px;
}

[b-hvlj7l90jc] .cmp-vendor-name {
    width: 100%;
    height: 22px;
    margin: 0;
    padding: 0 4px;
    border: none !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 22px;
    text-align: center;
    color: #323130;
}

[b-hvlj7l90jc] .cmp-vendor-name:hover:not(:disabled),
[b-hvlj7l90jc] .cmp-vendor-name:focus {
    background: #f3f2f1;
    outline: none;
    box-shadow: none;
}

[b-hvlj7l90jc] .cmp-vendor-name:disabled {
    color: #323130;
    opacity: 1;
    cursor: default;
}

/* First Vendor / Second Vendor / Third Vendor are watermarks, not data: the placeholder shows
   the column name until a vendor is picked or typed, then disappears like the Req # hint. */
[b-hvlj7l90jc] .cmp-vendor-name::placeholder {
    color: #c8c6c4;
    font-weight: 400;
    opacity: 1;
}

/* Records saved before the defaults were dropped can still hold the literal names; keep those
   reading as background text so they never look like a real vendor. */
[b-hvlj7l90jc] .cmp-vendor-name.is-hint,
[b-hvlj7l90jc] .cmp-vendor-name.is-hint:disabled {
    color: #a19f9d;
    font-weight: 400;
    -webkit-text-fill-color: #a19f9d;
}

[b-hvlj7l90jc] .cmp-vendor-name.is-hint:not(:disabled):hover {
    color: #8a8886;
    -webkit-text-fill-color: #8a8886;
}

[b-hvlj7l90jc] .cmp-grid .d365-grid-cell-numeric {
    justify-content: flex-end;
    width: 100%;
}

[b-hvlj7l90jc] .cmp-grid td .d365-form-control,
[b-hvlj7l90jc] .cmp-grid td input.d365-form-control,
[b-hvlj7l90jc] .cmp-grid td select.d365-form-control,
[b-hvlj7l90jc] .cmp-grid .store-item-search-input {
    width: 100%;
    height: 24px;
    min-height: 0;
    padding: 0;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    outline: none;
    font-size: 12px;
    line-height: 24px;
    color: #323130;
    text-align: left;
    text-transform: none !important;
}

[b-hvlj7l90jc] .cmp-grid td .d365-grid-cell-numeric input.d365-form-control {
    text-align: right;
}

[b-hvlj7l90jc] .cmp-grid .store-item-search,
[b-hvlj7l90jc] .cmp-grid .store-item-search-box,
[b-hvlj7l90jc] .cmp-grid .store-item-search-input {
    width: 100%;
    min-width: 0;
}

[b-hvlj7l90jc] .cmp-grid td input.d365-form-control:hover:not(:disabled) {
    background: #f3f2f1 !important;
}

[b-hvlj7l90jc] .cmp-grid td input.d365-form-control:focus {
    background: #e8f0fe !important;
    box-shadow: none !important;
}

[b-hvlj7l90jc] .cmp-grid td input.d365-form-control:disabled {
    background: transparent !important;
    color: #323130;
}

[b-hvlj7l90jc] .cmp-grid td.is-best,
[b-hvlj7l90jc] .cmp-grid td.is-best .d365-grid-cell {
    color: #107c10;
    font-weight: 600;
}

[b-hvlj7l90jc] .cmp-grid tfoot td {
    font-weight: 600;
    color: #323130;
    background: #fff;
    border-top: 1px solid #d2d0ce;
}

[b-hvlj7l90jc] .cmp-grid tfoot td.is-best,
[b-hvlj7l90jc] .cmp-grid tfoot td.is-best .d365-grid-cell {
    color: #107c10;
}

[b-hvlj7l90jc] .cmp-grid tr.d365-grid-empty td {
    height: auto;
    padding: 16px 8px;
}

/* ---- Req # box: one capsule per requisition ---- */
.cmp-req-box[b-hvlj7l90jc] {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 32px;
    min-width: 0;
    padding-right: 22px;
}

.cmp-req-capsules[b-hvlj7l90jc] {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 3px;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 3px 4px;
    border-bottom: 1px solid #8a8886;
    background: #fff;
    overflow: visible;
}

/* Only two capsules stay on the line; hovering the field lists every requisition */
.cmp-req-capsules:hover .cmp-req-tooltip[b-hvlj7l90jc] {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.cmp-req-more[b-hvlj7l90jc] {
    flex: 0 0 auto;
    padding: 1px 6px;
    border: 1px solid #d2d0ce;
    border-radius: 999px;
    background: #f3f2f1;
    color: #605e5c;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.cmp-req-tooltip[b-hvlj7l90jc] {
    position: absolute;
    z-index: 1060;
    top: calc(100% + 4px);
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 190px;
    max-width: 300px;
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 8px;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-3px);
    transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
    pointer-events: auto;
}

.cmp-req-tooltip-head[b-hvlj7l90jc] {
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: #605e5c;
    padding-bottom: 3px;
    border-bottom: 1px solid #edebe9;
}

.cmp-req-tooltip-line[b-hvlj7l90jc] {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 2px 4px;
    border: none;
    border-radius: 3px;
    background: transparent;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: #0f548c;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}

.cmp-req-tooltip-line:hover[b-hvlj7l90jc] {
    background: #eff6fc;
    text-decoration: underline;
}

.cmp-req-tooltip-line i[b-hvlj7l90jc] {
    font-size: 0.6rem;
    color: #a19f9d;
}

.cmp-req-capsules:focus-within[b-hvlj7l90jc] {
    border-bottom-color: #0078d4;
    box-shadow: inset 0 -1px 0 0 #0078d4;
}

.cmp-req-placeholder[b-hvlj7l90jc] {
    font-size: 13px;
    color: #a19f9d;
    padding: 0 4px;
}

/* Capsule grammar shared with the multi-select chips used across the forms */
.cmp-req-capsule[b-hvlj7l90jc] {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    gap: 3px;
    max-width: 100%;
    padding: 1px 3px 1px 6px;
    border: 1px solid #cfe3f5;
    border-radius: 999px;
    background: #eff6fc;
    color: #0f548c;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.cmp-req-capsule > i[b-hvlj7l90jc] {
    font-size: 8px;
    color: #5c9fd6;
}

.cmp-req-capsule-text[b-hvlj7l90jc] {
    min-width: 0;
    max-width: 126px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-req-capsule-x[b-hvlj7l90jc] {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #5c9fd6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    cursor: pointer;
}

.cmp-req-capsule-x:hover[b-hvlj7l90jc] {
    background: #cfe3f5;
    color: #0b3f6b;
}

.cmp-req-input[b-hvlj7l90jc] {
    flex: 1 1 62px;
    min-width: 62px;
    height: 20px;
    padding: 0 4px;
    border: none;
    background: #fff;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    color: #323130;
    outline: none;
}

.cmp-req-input[b-hvlj7l90jc]::placeholder {
    color: #c8c6c4;
}

.cmp-req-toggle[b-hvlj7l90jc] {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #c8c6c4;
    cursor: default;
}
/* ---- Requisition / item picker dialog ----
   Typography matches the Notification (Release Order) picker: 0.8rem body text,
   0.75rem column headers, 10px 8px header padding, 0.65rem value pills. */
.cmp-picker-backdrop[b-hvlj7l90jc] {
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.cmp-picker-modal[b-hvlj7l90jc] {
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: #fff;
    color: #212529;
}

.cmp-picker-header[b-hvlj7l90jc] {
    background: #faf9f8 !important;
    color: #323130 !important;
    border-bottom: 1px solid #edebe9;
    padding: 0.6rem 0.9rem;
    align-items: flex-start;
}

.cmp-picker-title[b-hvlj7l90jc] {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cmp-picker-title > i[b-hvlj7l90jc] {
    font-size: 1rem;
    line-height: 1.4;
    color: #0f548c;
}

.cmp-picker-heading[b-hvlj7l90jc] {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.3;
}

.cmp-picker-subheading[b-hvlj7l90jc] {
    font-size: 0.75rem;
    color: #8a8886;
    line-height: 1.3;
}

.cmp-picker-close[b-hvlj7l90jc] {
    width: 28px;
    height: 28px;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #605e5c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
}

.cmp-picker-close:hover[b-hvlj7l90jc] {
    background: #edebe9;
    color: #212529;
}

/* Filter strip */
.cmp-picker-filters[b-hvlj7l90jc] {
    background: #fff;
    border-bottom: 1px solid #edebe9;
}

.cmp-picker-filters .form-control[b-hvlj7l90jc],
.cmp-picker-filters .form-select[b-hvlj7l90jc] {
    background: #fff;
    color: #212529;
}

.cmp-picker-filters .input-group-text[b-hvlj7l90jc] {
    background: #f3f2f1;
    color: #323130;
}

.cmp-picker-chip-group[b-hvlj7l90jc] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cmp-picker-chip[b-hvlj7l90jc] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border: 1px solid #cfe3f5;
    border-radius: 3px;
    background: #eff6fc;
    color: #0f548c;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Grid */
.cmp-picker-grid[b-hvlj7l90jc] {
    max-height: 400px;
    overflow-y: auto;
}

.cmp-picker-grid[b-hvlj7l90jc]::-webkit-scrollbar {
    width: 8px;
}

.cmp-picker-grid[b-hvlj7l90jc]::-webkit-scrollbar-track {
    background: #f3f2f1;
}

.cmp-picker-grid[b-hvlj7l90jc]::-webkit-scrollbar-thumb {
    background: #c8c6c4;
    border-radius: 4px;
}

.cmp-picker-grid[b-hvlj7l90jc]::-webkit-scrollbar-thumb:hover {
    background: #a19f9d;
}

.cmp-grid-table[b-hvlj7l90jc] {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.8rem;
}

/* Header cells: identical to the Notification picker */
.cmp-grid-table thead[b-hvlj7l90jc] {
    background: #f3f2f1;
    border-bottom: 1px solid #edebe9;
}

.cmp-grid-table thead th[b-hvlj7l90jc] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f3f2f1;
    color: #323130;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 10px 8px;
    border: none;
    border-right: 1px solid #edebe9;
    white-space: nowrap;
    text-align: left;
    user-select: none;
}

.cmp-grid-table thead th:last-child[b-hvlj7l90jc] {
    border-right: none;
}

.cmp-grid-table thead th.cmp-sortable[b-hvlj7l90jc] {
    cursor: pointer;
    transition: background 0.15s;
}

.cmp-grid-table thead th.cmp-sortable:hover[b-hvlj7l90jc] {
    background: #e1dfdd !important;
}

.cmp-grid-table thead th.cmp-sortable.sorted[b-hvlj7l90jc] {
    background: #deecf9 !important;
    color: #0078d4;
}

.cmp-grid-table thead th.cmp-sortable i[b-hvlj7l90jc] {
    font-size: 0.6rem;
    margin-left: 4px;
    color: #605e5c;
    vertical-align: middle;
}

.cmp-grid-table thead th.cmp-sortable:hover i[b-hvlj7l90jc] {
    color: #323130;
}

.cmp-grid-table thead th.cmp-sortable.sorted i[b-hvlj7l90jc] {
    color: #0078d4;
}

/* Rows */
.cmp-grid-table tbody tr[b-hvlj7l90jc] {
    cursor: pointer;
    transition: background 0.1s;
    border-bottom: 1px solid #f3f2f1;
}

.cmp-grid-table tbody tr:hover[b-hvlj7l90jc] {
    background-color: #f3f2f1 !important;
}

.cmp-grid-table tbody tr.selected-row[b-hvlj7l90jc] {
    background-color: #deecf9 !important;
}

.cmp-grid-table tbody tr.selected-row td:first-child[b-hvlj7l90jc] {
    box-shadow: inset 3px 0 0 #0078d4;
}

.cmp-grid-table tbody tr:nth-child(even)[b-hvlj7l90jc] {
    background-color: #faf9f8;
}

.cmp-grid-table tbody tr:nth-child(even):hover[b-hvlj7l90jc] {
    background-color: #f3f2f1 !important;
}

.cmp-grid-table tbody tr:nth-child(even).selected-row[b-hvlj7l90jc] {
    background-color: #deecf9 !important;
}

.cmp-grid-table tbody tr.is-on-sheet[b-hvlj7l90jc] {
    opacity: 0.55;
}

.cmp-grid-table tbody td[b-hvlj7l90jc] {
    padding: 8px;
    vertical-align: middle;
    border: none;
    color: #323130;
    font-size: 0.8rem;
}

.cmp-select-col[b-hvlj7l90jc] {
    width: 2rem;
    min-width: 2rem;
    max-width: 2.25rem;
    text-align: center;
    padding-left: 0.5rem !important;
    padding-right: 0.25rem !important;
}

.cmp-select-radio[b-hvlj7l90jc] {
    cursor: pointer;
    margin: 0;
    vertical-align: middle;
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    accent-color: #0078d4;
}

.cmp-picker-link[b-hvlj7l90jc] {
    padding: 0;
    border: none;
    background: transparent;
    color: #0078d4;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
}

.cmp-picker-link:hover[b-hvlj7l90jc] {
    text-decoration: underline;
}

/* Requisition identity sits inside the item row, so Req # needs no column */
.cmp-item-meta[b-hvlj7l90jc] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 5px;
    margin-top: 1px;
    padding-left: 16px;
    line-height: 1.35;
}

.cmp-item-meta-req[b-hvlj7l90jc],
.cmp-item-meta-date[b-hvlj7l90jc] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #605e5c;
    white-space: nowrap;
}

.cmp-item-meta-req i[b-hvlj7l90jc],
.cmp-item-meta-date i[b-hvlj7l90jc] {
    font-size: 0.62rem;
    color: #a19f9d;
}

.cmp-item-meta-req[b-hvlj7l90jc] {
    font-weight: 600;
    color: #0f548c;
}

.cmp-item-meta-sep[b-hvlj7l90jc] {
    font-size: 0.7rem;
    color: #c8c6c4;
}

.cmp-col-date[b-hvlj7l90jc] {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cmp-col-item[b-hvlj7l90jc] {
    min-width: 240px;
}

/* Merged item cell: code above, chevron + name below */
.cmp-item-code[b-hvlj7l90jc] {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
    color: #323130;
}

.cmp-item-name-row[b-hvlj7l90jc] {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    line-height: 1.3;
}

/* Clamped to one line: a detail-code name is a full description and must never widen the table. */
.cmp-item-name[b-hvlj7l90jc] {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.8rem;
    color: #323130;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cmp-col-item .cmp-item-name[b-hvlj7l90jc] {
    max-width: 420px;
}

[b-hvlj7l90jc] .cmp-grid-item .cmp-item-name {
    max-width: 250px;
}

/* Detail grid: Ref No keeps its whole number, the item cell clamps like the picker */
[b-hvlj7l90jc] .cmp-grid td.cmp-grid-req-cell {
    min-width: 152px;
}

[b-hvlj7l90jc] .cmp-grid td.cmp-grid-item-cell {
    min-width: 200px;
}

[b-hvlj7l90jc] .cmp-grid-item {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

/* Specifications open in their own row: the line itself keeps its 28px height, and the long
   description wraps inside the row instead of bleeding over the next item. */
[b-hvlj7l90jc] .cmp-grid tbody tr.cmp-detail-specs-row td {
    height: auto !important;
    min-height: 0;
    padding: 0 !important;
    white-space: normal;
    vertical-align: top;
    border-bottom: 1px solid #edebe9;
}

[b-hvlj7l90jc] .cmp-grid tbody tr.cmp-detail-specs-row:hover {
    background: transparent;
}

[b-hvlj7l90jc] .cmp-detail-specs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 10px 6px 42px;
    padding: 5px 10px 6px 12px;
    border-left: 2px solid #deecf9;
    background: #faf9f8;
}

[b-hvlj7l90jc] .cmp-detail-specs .cmp-spec {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.45;
}

/* Brand and Model share one line; they wrap as a pair only on a very narrow grid. */
[b-hvlj7l90jc] .cmp-detail-specs .cmp-spec.is-inline {
    flex-wrap: wrap;
    gap: 4px 34px;
}

[b-hvlj7l90jc] .cmp-detail-specs .cmp-spec-pair {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

/* Label and value share one type size; only the weight tells them apart. */
[b-hvlj7l90jc] .cmp-detail-specs .cmp-spec-label {
    flex: 0 0 auto;
    min-width: 74px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #605e5c;
}

[b-hvlj7l90jc] .cmp-detail-specs .cmp-spec.is-inline .cmp-spec-label {
    min-width: 0;
}

[b-hvlj7l90jc] .cmp-detail-specs .cmp-spec-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.74rem;
    color: #605e5c;
    white-space: normal;
    overflow-wrap: anywhere;
}

.cmp-item-expander[b-hvlj7l90jc] {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: #0078d4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    cursor: pointer;
}

.cmp-item-expander:hover[b-hvlj7l90jc] {
    background: #deecf9;
}

.cmp-item-expander-spacer[b-hvlj7l90jc] {
    flex: 0 0 auto;
    width: 14px;
}

/* Expanded specification panel */
.cmp-item-specs-row td[b-hvlj7l90jc] {
    background: #faf9f8;
    padding: 0 !important;
}

.cmp-grid-table tbody tr.cmp-item-specs-row[b-hvlj7l90jc] {
    cursor: default;
}

.cmp-grid-table tbody tr.cmp-item-specs-row:hover[b-hvlj7l90jc] {
    background: transparent !important;
}

.cmp-item-specs[b-hvlj7l90jc] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    padding: 6px 10px 8px 28px;
    border-left: 2px solid #deecf9;
}

.cmp-spec[b-hvlj7l90jc] {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

/* Label and value share one type size; the weight alone tells them apart. */
.cmp-spec-label[b-hvlj7l90jc] {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #605e5c;
}

.cmp-spec-value[b-hvlj7l90jc] {
    font-size: 0.74rem;
    color: #605e5c;
}

/* The detail-code name is a full sentence: it takes its own line and wraps instead of
   widening the picker table. */
.cmp-spec.is-description[b-hvlj7l90jc] {
    flex: 1 1 100%;
    max-width: 100%;
}

/* Brand and Model share one line in the picker as well. */
.cmp-spec.is-inline[b-hvlj7l90jc] {
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 4px 30px;
}

.cmp-spec-pair[b-hvlj7l90jc] {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
}

.cmp-spec.is-description .cmp-spec-label[b-hvlj7l90jc] {
    flex: 0 0 auto;
}

.cmp-spec.is-description .cmp-spec-value[b-hvlj7l90jc] {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Value pills, sized like the Notification picker badges */
.cmp-badge[b-hvlj7l90jc] {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.cmp-badge-yes[b-hvlj7l90jc] {
    background-color: #107c10;
    color: #fff;
}

.cmp-badge-no[b-hvlj7l90jc] {
    background-color: #a19f9d;
    color: #fff;
}

.cmp-badge-unit[b-hvlj7l90jc] {
    background-color: #f3f2f1;
    color: #605e5c;
    border: 1px solid #e1dfdd;
}

/* Empty state */
.cmp-picker-empty[b-hvlj7l90jc] {
    padding: 32px 10px !important;
    text-align: center;
    color: #8a8886;
    border-bottom: none !important;
}

.cmp-picker-empty i[b-hvlj7l90jc] {
    display: block;
    font-size: 2rem;
    margin-bottom: 6px;
    color: #c8c6c4;
}

/* Summary strip above the footer */
.cmp-picker-details[b-hvlj7l90jc] {
    padding: 8px 12px;
    background: #faf9f8;
    border-top: 1px solid #edebe9;
    font-size: 0.8rem;
    color: #605e5c;
}

.cmp-picker-details strong[b-hvlj7l90jc] {
    color: #323130;
    font-weight: 600;
}

/* Footer */
.cmp-picker-footer[b-hvlj7l90jc] {
    padding: 10px 12px;
    background: #faf9f8;
    border-top: 1px solid #edebe9;
}

.cmp-picker-hint[b-hvlj7l90jc] {
    font-size: 0.8rem;
    color: #605e5c;
    margin-right: 10px;
}

.cmp-picker-pager[b-hvlj7l90jc] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 0.8rem;
    color: #605e5c;
}

.cmp-picker-pager-nav[b-hvlj7l90jc] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
}

.cmp-picker-pager .btn[b-hvlj7l90jc],
.cmp-picker-footer .btn[b-hvlj7l90jc] {
    font-size: 0.8rem;
}

.cmp-picker-apply[b-hvlj7l90jc] {
    font-weight: 600;
}
/* ---- Comparative records list: compact CMF rows ---- */
[b-hvlj7l90jc] .movements-grid-compact tbody td {
    padding-top: 6px;
    padding-bottom: 6px;
    vertical-align: middle;
}

.cmp-list-key[b-hvlj7l90jc] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
}

.cmp-list-id[b-hvlj7l90jc] {
    font-weight: 600;
    font-size: 12.5px;
    color: #0f548c;
}

.cmp-list-date[b-hvlj7l90jc] {
    font-size: 11.5px;
    color: #605e5c;
    white-space: nowrap;
}

.cmp-list-tags[b-hvlj7l90jc] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.cmp-badge-type[b-hvlj7l90jc] {
    background-color: #eef4fa;
    color: #0f548c;
    border: 1px solid #cfe3f5;
}

.cmp-badge-lines[b-hvlj7l90jc] {
    background-color: #f3f2f1;
    color: #323130;
}

.cmp-badge-unit-label[b-hvlj7l90jc] {
    font-weight: 400;
    color: #605e5c;
}

.cmp-list-vendors[b-hvlj7l90jc] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cmp-vendor-pill[b-hvlj7l90jc] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
}

.cmp-vendor-tag[b-hvlj7l90jc] {
    flex: 0 0 auto;
    padding: 1px 4px;
    border-radius: 2px;
    background: #605e5c;
    color: #fff;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.cmp-vendor-text[b-hvlj7l90jc] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #323130;
}

.cmp-list-loc[b-hvlj7l90jc] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #323130;
}

.cmp-list-loc i[b-hvlj7l90jc] {
    color: #8a8886;
    font-size: 11px;
}

.cmp-list-muted[b-hvlj7l90jc] {
    font-size: 12px;
    font-style: italic;
    color: #a19f9d;
}

/* ---- Requisition drill-through ----
   Ref No is the drill-through when the form is read-only; while editing, a small open icon sits
   next to the picker icon so a line can still be explained without leaving the sheet. */
.cmp-req-capsule-open[b-hvlj7l90jc] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.cmp-req-capsule-open > i[b-hvlj7l90jc] {
    font-size: 8px;
    color: #5c9fd6;
}

.cmp-req-capsule-open:hover .cmp-req-capsule-text[b-hvlj7l90jc] {
    text-decoration: underline;
}

[b-hvlj7l90jc] .cmp-req-editor {
    padding-right: 40px;
}

[b-hvlj7l90jc] .cmp-req-view {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #a19f9d;
    font-size: 9px;
    cursor: pointer;
}

[b-hvlj7l90jc] .cmp-req-view:hover {
    background: #eff6fc;
    color: #0f548c;
}

[b-hvlj7l90jc] .cmp-grid .cmp-req-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f548c;
    cursor: pointer;
}

[b-hvlj7l90jc] .cmp-grid .cmp-req-link:hover {
    text-decoration: underline;
}

[b-hvlj7l90jc] .cmp-grid .cmp-req-link i {
    font-size: 9px;
    color: #5c9fd6;
    opacity: 0;
    transition: opacity 0.12s;
}

[b-hvlj7l90jc] .cmp-grid .cmp-req-link:hover i {
    opacity: 1;
}

[b-hvlj7l90jc] .cmp-grid .cmp-req-link.is-empty {
    color: #a19f9d;
    font-weight: 400;
    cursor: default;
}

[b-hvlj7l90jc] .cmp-grid .cmp-req-link.is-empty:hover {
    text-decoration: none;
}

/* Print-out sheet: the dialog is an on-screen preview of the paper requisition */
.cmp-req-view-body[b-hvlj7l90jc] {
    padding: 12px;
    background: #faf9f8;
}

.cmp-req-view-state[b-hvlj7l90jc] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 12px;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.8rem;
    color: #605e5c;
}

.cmp-req-view-state.is-error[b-hvlj7l90jc] {
    color: #a4262c;
}

.cmp-req-sheet[b-hvlj7l90jc] {
    padding: 16px 18px;
    border: 1px solid #d2d0ce;
    background: #fff;
    color: #323130;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.cmp-req-sheet-head[b-hvlj7l90jc] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 2px solid #0f548c;
}

.cmp-req-sheet-doctype[b-hvlj7l90jc] {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f548c;
}

.cmp-req-sheet-caption[b-hvlj7l90jc] {
    margin-top: 2px;
    font-size: 0.68rem;
    color: #8a8886;
}

.cmp-req-sheet-ref[b-hvlj7l90jc] {
    text-align: right;
}

.cmp-req-sheet-ref-label[b-hvlj7l90jc] {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8a8886;
}

.cmp-req-sheet-ref-value[b-hvlj7l90jc] {
    font-size: 0.95rem;
    font-weight: 700;
    color: #323130;
}

.cmp-req-sheet-meta[b-hvlj7l90jc] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 16px;
    margin-bottom: 10px;
}

.cmp-req-sheet-field > span[b-hvlj7l90jc] {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8a8886;
}

.cmp-req-sheet-field > strong[b-hvlj7l90jc] {
    font-size: 0.76rem;
    font-weight: 600;
    color: #323130;
    word-break: break-word;
}

.cmp-req-sheet-flags[b-hvlj7l90jc] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.cmp-req-flag[b-hvlj7l90jc] {
    padding: 1px 7px;
    border: 1px solid #edebe9;
    border-radius: 999px;
    background: #f3f2f1;
    color: #a19f9d;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cmp-req-flag.is-on[b-hvlj7l90jc] {
    border-color: #cfe3f5;
    background: #eff6fc;
    color: #0f548c;
}

.cmp-req-flag.is-closed[b-hvlj7l90jc] {
    border-color: #d2d0ce;
    background: #edebe9;
    color: #605e5c;
}

.cmp-req-flag.is-void[b-hvlj7l90jc] {
    border-color: #f3c9cb;
    background: #fde7e9;
    color: #a4262c;
}

.cmp-req-sheet-table[b-hvlj7l90jc] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.cmp-req-sheet-table thead th[b-hvlj7l90jc] {
    padding: 6px;
    border-bottom: 1px solid #d2d0ce;
    background: #f3f2f1;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #605e5c;
    text-align: left;
    white-space: nowrap;
}

.cmp-req-sheet-table tbody td[b-hvlj7l90jc] {
    padding: 5px 6px;
    border-bottom: 1px solid #f3f2f1;
    vertical-align: top;
}

.cmp-req-sheet-table tbody tr:nth-child(even) td[b-hvlj7l90jc] {
    background: #fcfcfb;
}

.cmp-req-sheet-code[b-hvlj7l90jc] {
    font-family: Consolas, "Courier New", monospace;
    font-weight: 600;
    white-space: nowrap;
}

.cmp-req-sheet-item[b-hvlj7l90jc] {
    display: block;
}

.cmp-req-sheet-spec[b-hvlj7l90jc] {
    display: block;
    font-size: 0.62rem;
    color: #8a8886;
}

.cmp-req-sheet-status[b-hvlj7l90jc] {
    color: #605e5c;
    white-space: nowrap;
}

.cmp-req-sheet-empty[b-hvlj7l90jc] {
    padding: 14px;
    color: #8a8886;
    text-align: center;
}

.cmp-req-sheet-remarks[b-hvlj7l90jc] {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #edebe9;
}

.cmp-req-sheet-remarks > span[b-hvlj7l90jc] {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #8a8886;
}

.cmp-req-sheet-remarks > p[b-hvlj7l90jc] {
    margin: 2px 0 0;
    font-size: 0.76rem;
    color: #323130;
    white-space: pre-wrap;
}
/* /Components/Pages/StoreDetailItemCoding.razor.rz.scp.css */
.detail-item-auto-column[b-9eziwsn3yu] {
    border-left: 1px solid #e0dbd3;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    flex: 0 0 auto;
}

@media (min-width: 992px) {
    .detail-item-auto-column[b-9eziwsn3yu] {
        max-width: 16.5rem;
    }
}

@media (min-width: 1200px) {
    .detail-item-auto-column[b-9eziwsn3yu] {
        max-width: 17.5rem;
    }
}

.detail-item-auto-strip[b-9eziwsn3yu] {
    position: relative;
    min-height: 0;
}

.detail-item-auto-strip.container-info-strip[b-9eziwsn3yu] {
    min-height: 0;
    height: auto;
}

.detail-item-auto-strip.container-info-empty[b-9eziwsn3yu] {
    min-height: 0;
}

.detail-item-field-name[b-9eziwsn3yu] {
    width: 28rem;
    min-width: 28rem;
    max-width: 28rem;
}

.detail-item-field-name :deep(.d365-form-control)[b-9eziwsn3yu] {
    width: 100%;
}

.detail-item-field-description[b-9eziwsn3yu] {
    width: calc(28rem + 0.5rem + 8.5rem);
    max-width: calc(28rem + 0.5rem + 8.5rem);
    flex: 0 0 auto;
}

.detail-item-desc-unit-row[b-9eziwsn3yu] {
    align-items: flex-end;
}

.detail-item-unit-group-col[b-9eziwsn3yu] {
    flex: 0 0 auto;
    padding-bottom: 2px;
}

.detail-item-attr-col[b-9eziwsn3yu] {
    flex: 0 0 auto;
    min-width: 0;
    padding-top: 0;
}

.detail-item-attributes-col[b-9eziwsn3yu] {
    width: 8.5rem;
    min-width: 8.5rem;
    padding-top: 0;
}

.detail-item-name-attr-row[b-9eziwsn3yu] {
    align-items: flex-end;
}

.detail-item-name-attr-row > .detail-item-field-name[b-9eziwsn3yu],
.detail-item-name-attr-row > .detail-item-attr-col[b-9eziwsn3yu] {
    padding-top: 0;
}

.detail-item-name-attr-row .d365-form-label[b-9eziwsn3yu] {
    margin-bottom: 0.25rem;
    line-height: 1.2;
    min-height: 1.2em;
}

.detail-item-attr-unit-row[b-9eziwsn3yu] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    min-height: 32px;
}

.detail-item-attr-btn[b-9eziwsn3yu] {
    flex: 0 0 auto;
    height: 32px;
    display: inline-flex;
    align-items: center;
}

.detail-item-field-unit[b-9eziwsn3yu] {
    width: 8rem;
    min-width: 8rem;
}

.detail-item-field-unit :deep(.d365-form-control)[b-9eziwsn3yu] {
    width: 100%;
}

.detail-item-field-factor-unit[b-9eziwsn3yu] {
    width: 9rem;
    min-width: 9rem;
}

.detail-item-field-factor-unit :deep(.d365-form-control)[b-9eziwsn3yu] {
    width: 100%;
}

.detail-item-field-factor-qty[b-9eziwsn3yu] {
    width: 8rem;
    min-width: 8rem;
}

.detail-item-field-factor-qty :deep(.d365-form-control)[b-9eziwsn3yu] {
    width: 100%;
}

.detail-item-description-box[b-9eziwsn3yu] {
    border-left: 3px solid #107c10;
    background: linear-gradient(135deg, rgba(248, 249, 251, 0.55) 0%, rgba(243, 242, 241, 0.4) 100%);
    border-radius: 0 4px 4px 0;
    padding: 7px 12px;
    box-sizing: border-box;
}

.detail-item-description-box :deep(textarea.d365-form-control)[b-9eziwsn3yu],
.detail-item-description-box :deep(.detail-item-description-input)[b-9eziwsn3yu] {
    display: block;
    width: 100%;
    height: 100% !important;
    min-height: calc(1.2em * 6) !important;
    max-height: none !important;
    overflow-y: auto;
    resize: none;
    box-sizing: border-box;
    border: none !important;
    border-bottom: none !important;
    border-radius: 0;
    background: transparent !important;
    padding: 0 !important;
    color: #323130;
    font-size: 13px;
    line-height: 1.35;
    text-transform: none !important;
    box-shadow: none !important;
}

.detail-item-description-box :deep(textarea.d365-form-control:focus)[b-9eziwsn3yu],
.detail-item-description-box :deep(.detail-item-description-input:focus)[b-9eziwsn3yu] {
    outline: none;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.detail-item-description-box :deep(textarea.d365-form-control:disabled)[b-9eziwsn3yu],
.detail-item-description-box :deep(.detail-item-description-input:disabled)[b-9eziwsn3yu] {
    opacity: 1;
    color: #605e5c;
    background: transparent !important;
    cursor: not-allowed;
}

.detail-item-row-name-desc[b-9eziwsn3yu] {
    margin-top: 0;
}

.detail-item-field-id[b-9eziwsn3yu] {
    width: 5rem;
    max-width: 5rem;
    margin-right: 0.75rem;
}

.detail-item-field-id :deep(.d365-form-control)[b-9eziwsn3yu],
.detail-item-field-id :deep(input)[b-9eziwsn3yu] {
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}

.detail-item-field-code[b-9eziwsn3yu] {
    width: 9rem;
    max-width: 9rem;
}

.detail-item-field-parent[b-9eziwsn3yu] {
    min-width: 0;
    width: 24rem;
    max-width: 24rem;
}

.detail-item-field-parent :deep(.autocomplete-select)[b-9eziwsn3yu] {
    width: 100%;
}

.detail-item-field-inactive[b-9eziwsn3yu] {
    width: 4.5rem;
}

.detail-item-inactive-switch[b-9eziwsn3yu] {
    display: flex;
    align-items: center;
    min-height: 32px;
    padding-top: 2px;
}

.detail-item-inactive-switch .form-check-input[b-9eziwsn3yu] {
    width: 2.5em;
    height: 1.25em;
    margin-top: 0;
    cursor: pointer;
}

.detail-item-inactive-switch .form-check-input:disabled[b-9eziwsn3yu] {
    cursor: not-allowed;
    opacity: 0.55;
}

.detail-item-auto-grid[b-9eziwsn3yu] {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-item-main-code-header[b-9eziwsn3yu] {
    flex-wrap: wrap;
    width: 100%;
    padding-right: 52px;
}

.detail-item-auto-side[b-9eziwsn3yu] {
    position: absolute;
    top: 6px;
    right: 8px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 42px;
}

.detail-item-auto-strip .detail-item-auto-qr-btn[b-9eziwsn3yu] {
    position: static;
    top: auto;
    right: auto;
}

.detail-item-auto-has-qr .detail-item-seq-category-row[b-9eziwsn3yu] {
    padding-right: 52px;
}

.detail-item-labeled-line[b-9eziwsn3yu] {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem;
    max-width: 100%;
}

.detail-item-colon[b-9eziwsn3yu] {
    color: #605e5c;
    font-weight: 600;
    font-size: 11px;
}

.detail-item-main-code-value[b-9eziwsn3yu] {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    letter-spacing: 0.3px;
}

.detail-item-auto-meta[b-9eziwsn3yu] {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.detail-item-seq-category-row[b-9eziwsn3yu] {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    column-gap: 0.75rem;
    align-items: start;
    width: 100%;
}

.detail-item-seq-category-row .container-info-item[b-9eziwsn3yu] {
    min-width: 0;
}

.detail-item-auto-meta .container-info-value[b-9eziwsn3yu] {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.detail-item-section[b-9eziwsn3yu] {
    margin-bottom: 1rem;
}

.detail-item-section-title[b-9eziwsn3yu] {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #605e5c;
    margin-bottom: 0.5rem;
}

.detail-item-grid-card :deep(.d365-grid-scroll)[b-9eziwsn3yu] {
    max-height: 420px;
}

@media (max-width: 991.98px) {
    .detail-item-auto-column[b-9eziwsn3yu] {
        border-left: none;
        padding-left: 0 !important;
        padding-top: 0.5rem;
        border-top: 1px solid #e0dbd3;
    }
}

.detail-item-picture-box[b-9eziwsn3yu] {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.detail-item-picture-frame[b-9eziwsn3yu] {
    width: 100%;
    max-width: 100%;
    height: 9.5rem;
    max-height: 9.5rem;
    border: 1px solid #d8d4cd;
    border-radius: 0.35rem;
    background: #f3f7fc;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.detail-item-picture-img[b-9eziwsn3yu] {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 9.5rem;
    width: auto;
    height: auto;
    object-fit: contain;
}

.detail-item-picture-placeholder[b-9eziwsn3yu] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: #8a847c;
    font-size: 0.8rem;
    padding: 1rem;
    text-align: center;
    pointer-events: none;
}

.detail-item-picture-placeholder i[b-9eziwsn3yu] {
    font-size: 1.75rem;
}

.detail-item-picture-actions[b-9eziwsn3yu] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-item-picture-hint[b-9eziwsn3yu] {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.35;
}

.detail-item-page-shell[b-9eziwsn3yu] {
    outline: none;
}

.detail-item-gallery-frame[b-9eziwsn3yu] {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.detail-item-gallery-stage[b-9eziwsn3yu] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.detail-item-gallery-slide[b-9eziwsn3yu] {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.detail-item-gallery-slide.active[b-9eziwsn3yu] {
    opacity: 1;
    pointer-events: auto;
}

.detail-item-gallery-stage.anim-slide .detail-item-gallery-slide[b-9eziwsn3yu] {
    transform: translateX(12px);
}

.detail-item-gallery-stage.anim-slide .detail-item-gallery-slide.active[b-9eziwsn3yu] {
    transform: translateX(0);
}

.detail-item-gallery-stage.anim-zoom .detail-item-gallery-slide[b-9eziwsn3yu] {
    transform: scale(0.92);
}

.detail-item-gallery-stage.anim-zoom .detail-item-gallery-slide.active[b-9eziwsn3yu] {
    transform: scale(1);
}

.detail-item-gallery-nav[b-9eziwsn3yu] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
    pointer-events: none;
}

.detail-item-gallery-nav .d365-btn[b-9eziwsn3yu] {
    pointer-events: auto;
}

.detail-item-gallery-counter[b-9eziwsn3yu] {
    font-size: 0.75rem;
    color: #605e5c;
    min-width: 2.5rem;
    text-align: center;
}

.detail-item-gallery-upload-btn[b-9eziwsn3yu] {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 5;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 4px;
    margin: 0;
    border: none !important;
    outline: none;
    border-radius: 0;
    background: transparent;
    color: #323130;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95));
}

.detail-item-gallery-upload-btn:hover[b-9eziwsn3yu],
.detail-item-gallery-upload-btn:focus[b-9eziwsn3yu] {
    border: none !important;
    outline: none;
    background: transparent;
    color: #2266e3;
    box-shadow: none;
}

.detail-item-gallery-upload-btn i[b-9eziwsn3yu] {
    font-size: 1.15rem;
    pointer-events: none;
}

.detail-item-gallery-lock[b-9eziwsn3yu] {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 5;
    padding: 4px;
    border: none;
    background: transparent;
    color: #8a847c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.95));
}

.detail-item-gallery-lock i[b-9eziwsn3yu] {
    font-size: 0.8rem;
}

.detail-item-gallery-locked .detail-item-picture-placeholder[b-9eziwsn3yu],
.detail-item-gallery-locked .detail-item-gallery-stage[b-9eziwsn3yu],
.detail-item-gallery-locked .detail-item-picture-img[b-9eziwsn3yu] {
    opacity: 0.92;
}

.detail-item-qr-wrap[b-9eziwsn3yu] {
    padding: 0.25rem;
}

.detail-item-qr-badge[b-9eziwsn3yu] {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 3;
    display: block;
    padding: 2px;
    border: 1px solid #d8d4cd;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    line-height: 0;
}

.detail-item-qr-badge:hover[b-9eziwsn3yu] {
    border-color: #2266e3;
    box-shadow: 0 2px 6px rgba(34, 102, 227, 0.2);
}

.detail-item-qr-badge-img[b-9eziwsn3yu] {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.detail-item-qr-popup-img[b-9eziwsn3yu] {
    display: block;
    width: 140px;
    height: 140px;
    object-fit: contain;
    border: 1px solid #e0dbd3;
    border-radius: 4px;
    background: #fff;
    margin: 0 auto;
}

.detail-item-qr-popup-label[b-9eziwsn3yu] {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: #605e5c;
    word-break: break-all;
}

.detail-item-qr-popup-sub[b-9eziwsn3yu] {
    margin-top: 0.15rem;
    font-size: 0.68rem;
    color: #8a847c;
}

.detail-item-qr-popup-content[b-9eziwsn3yu] {
    width: fit-content;
    min-width: 12rem;
    margin: 0 auto;
}

.detail-item-voice-panel[b-9eziwsn3yu] {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    width: min(22rem, calc(100vw - 2rem));
    background: #0078d4;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 0.75rem 0.9rem;
}

.detail-item-voice-panel-header[b-9eziwsn3yu] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.detail-item-voice-hint[b-9eziwsn3yu] {
    font-size: 0.78rem;
    opacity: 0.95;
}

.detail-item-voice-result[b-9eziwsn3yu] {
    font-size: 0.82rem;
    margin-top: 0.35rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 0.35rem 0.5rem;
}

.detail-item-scan-preview[b-9eziwsn3yu] {
    min-height: 260px;
    border: 1px solid #e0dbd3;
    border-radius: 4px;
    overflow: hidden;
}

.detail-gallery-thumb[b-9eziwsn3yu] {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #d8d4cd;
}

.detail-item-snapshot-summary[b-9eziwsn3yu] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    font-size: 0.82rem;
    color: #323130;
}

.detail-item-snapshot-total strong[b-9eziwsn3yu],
.detail-item-snapshot-po strong[b-9eziwsn3yu] {
    color: #107c10;
}

.detail-item-stock-low td:nth-child(3)[b-9eziwsn3yu] {
    color: #a4262c;
}

.detail-item-stock-high td:nth-child(3)[b-9eziwsn3yu] {
    color: #8a6116;
}

.detail-item-integration-links[b-9eziwsn3yu] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-item-advanced-table td:last-child[b-9eziwsn3yu] {
    white-space: nowrap;
}

.detail-item-advanced-table .badge[b-9eziwsn3yu] {
    font-size: 0.68rem;
    font-weight: 600;
}

.detail-item-unit-strip[b-9eziwsn3yu] {
    border-left: 3px solid #d46b08 !important;
    background: linear-gradient(135deg, #fffef5 0%, #fff4d6 100%) !important;
    background-color: #fffef5 !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
    display: inline-block !important;
    white-space: nowrap !important;
    min-height: 32px !important;
}

.detail-item-unit-strip-row[b-9eziwsn3yu] {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0.5rem 1.25rem !important;
    white-space: nowrap !important;
}

.detail-item-unit-chip[b-9eziwsn3yu] {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 0.35rem !important;
    font-size: 0.82rem !important;
    white-space: nowrap !important;
}

.detail-item-unit-chip-label[b-9eziwsn3yu] {
    color: #8a6116 !important;
    font-weight: 600 !important;
}

.detail-item-unit-chip-value[b-9eziwsn3yu] {
    color: #1a1a2e !important;
    font-weight: 700 !important;
}

/* ============================================================================
   Compact header / detail layout
   The header is a two column flex: identity + description on the left, the
   auto metadata / gallery rail on the right. Column widths are proportional
   (not fixed rem) so nothing overflows and every control lines up.
   ========================================================================== */

.detail-item-header[b-9eziwsn3yu] {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e6e1d9;
}

.detail-item-fields-col[b-9eziwsn3yu] {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
}

.detail-item-field-row[b-9eziwsn3yu] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.5rem 0.65rem;
    min-width: 0;
}

.detail-item-field[b-9eziwsn3yu] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.detail-item-field-row > .detail-item-field > .d365-form-label[b-9eziwsn3yu] {
    margin-bottom: 0;
    line-height: 1.15;
    white-space: nowrap;
}

/* ID / Code stay fixed, Parent Item and Name share the remaining width. */
.detail-item-field-row > .detail-item-field.detail-item-field-id[b-9eziwsn3yu] {
    flex: 0 0 4.25rem;
    width: 4.25rem;
    min-width: 4.25rem;
    max-width: 4.25rem;
    margin-right: 0;
}

.detail-item-field-row > .detail-item-field.detail-item-field-code[b-9eziwsn3yu] {
    flex: 0 0 7.5rem;
    width: 7.5rem;
    min-width: 7.5rem;
    max-width: 7.5rem;
}

.detail-item-field-row > .detail-item-field.detail-item-field-parent[b-9eziwsn3yu] {
    flex: 1 1 9rem;
    width: auto;
    min-width: 7.5rem;
    max-width: none;
}

.detail-item-field-row > .detail-item-field.detail-item-field-name[b-9eziwsn3yu] {
    flex: 0 1 22rem;
    width: 22rem;
    min-width: 16rem;
    max-width: 22rem;
}

.detail-item-details-wrap[b-9eziwsn3yu] {
    flex: 0 0 auto;
    align-items: flex-start;
}

.detail-item-details-spacer[b-9eziwsn3yu] {
    visibility: hidden;
}

.detail-item-details-flyout.cmf-party-flyout[b-9eziwsn3yu] {
    width: min(640px, 100vw);
}

.detail-item-details-flyout .cmf-party-flyout-body[b-9eziwsn3yu] {
    padding: 12px 16px 16px;
    scroll-padding-bottom: 16px;
    gap: 10px;
}

.detail-item-pane-tabs[b-9eziwsn3yu] {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #edebe9;
    padding: 0 8px;
    flex-shrink: 0;
    overflow-x: auto;
    background: #fff;
}

.detail-item-pane-tab[b-9eziwsn3yu] {
    border: none;
    background: transparent;
    color: #605e5c;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.detail-item-pane-tab.is-active[b-9eziwsn3yu] {
    color: #0078d4;
    border-bottom-color: #0078d4;
}

.detail-item-pane-count[b-9eziwsn3yu] {
    display: inline-block;
    margin-left: 6px;
    min-width: 1.1rem;
    padding: 0 5px;
    border-radius: 10px;
    background: #e8f0fe;
    color: #0078d4;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
}

.detail-item-pane-actions[b-9eziwsn3yu] {
    display: flex;
    justify-content: flex-end;
}

.detail-item-pane-rate[b-9eziwsn3yu] {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 0.65rem;
}

.detail-item-pane-rate .d365-flex[b-9eziwsn3yu] {
    grid-column: 1 / -1;
}

.detail-item-field-row > .detail-item-attr-col[b-9eziwsn3yu] {
    flex: 0 0 auto;
    width: auto;
    padding-top: 0;
}

.detail-item-field-row > .detail-item-field-inactive[b-9eziwsn3yu] {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
    align-items: flex-end;
}

.detail-item-field-inactive .d365-form-label[b-9eziwsn3yu] {
    text-align: right;
}

.detail-item-inactive-switch[b-9eziwsn3yu] {
    min-height: 32px;
    height: 32px;
    align-items: center;
    padding-top: 0;
    margin-bottom: 0;
}

/* Description keeps its original compact block: fixed width under the Name
   field, six lines tall, with the unit chips docked beside it. */
.detail-item-desc-row[b-9eziwsn3yu] {
    display: grid;
    grid-template-columns: calc(28rem + 0.5rem + 8.5rem) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    column-gap: 0.85rem;
    flex: 0 0 auto;
    align-self: stretch;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
}

.detail-item-desc-label[b-9eziwsn3yu] {
    grid-column: 1;
    grid-row: 1;
}

.detail-item-beside[b-9eziwsn3yu] {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-self: stretch;
}

.detail-item-beside > .detail-item-unit-group-col[b-9eziwsn3yu] {
    align-self: flex-start;
}

.detail-item-desc-row > .detail-item-field-description[b-9eziwsn3yu],
.detail-item-header .detail-item-desc-row > .detail-item-field-description[b-9eziwsn3yu] {
    display: contents;
}

.detail-item-desc-row > .detail-item-field-description[b-9eziwsn3yu],
.detail-item-header .detail-item-desc-row > .detail-item-field-description[b-9eziwsn3yu] {
    align-self: stretch;
}

.detail-item-field-description > .detail-item-description-box[b-9eziwsn3yu],
.detail-item-desc-row > .detail-item-description-box[b-9eziwsn3yu] {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    height: auto;
    min-height: 0;
    max-height: none;
}

.detail-item-header .detail-item-desc-row .detail-item-description-box :deep(textarea.d365-form-control)[b-9eziwsn3yu],
.detail-item-header .detail-item-desc-row .detail-item-description-box :deep(.detail-item-description-input)[b-9eziwsn3yu] {
    flex: 1 1 auto;
    height: 100% !important;
    min-height: calc(1.2em * 6) !important;
    max-height: none !important;
    overflow-y: auto;
    resize: none;
}

.detail-item-desc-row > .detail-item-unit-group-col[b-9eziwsn3yu] {
    flex: 0 0 auto;
    align-self: flex-end;
    padding-bottom: 0;
}

/* Right hand metadata / gallery rail keeps a fixed, calm width. */
.detail-item-header > .detail-item-auto-column[b-9eziwsn3yu] {
    flex: 0 0 16rem;
    width: 16rem;
    min-width: 0;
    max-width: 16rem !important;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 1400px) {
    .detail-item-header > .detail-item-auto-column[b-9eziwsn3yu] {
        flex-basis: 17.5rem;
        width: 17.5rem;
        max-width: 17.5rem !important;
    }
}

/* The rail spaces its own children, so drop the markup's mt-2. */
.detail-item-header > .detail-item-auto-column > .detail-item-picture-box[b-9eziwsn3yu] {
    margin-top: 0 !important;
}

/* ---- Lower detail fields: one grid so every column lines up ---- */
.detail-item-section[b-9eziwsn3yu] {
    margin-top: 0.85rem;
    margin-bottom: 0.15rem;
}

.detail-item-beside .detail-item-detail-fields[b-9eziwsn3yu] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem 0.75rem;
    align-items: end;
}

.detail-item-detail-field[b-9eziwsn3yu] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.detail-item-detail-field .d365-form-label[b-9eziwsn3yu] {
    margin-bottom: 0;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-item-field :deep(.d365-form-control)[b-9eziwsn3yu],
.detail-item-detail-field :deep(.d365-form-control)[b-9eziwsn3yu] {
    width: 100%;
    min-width: 0;
}

.detail-item-field :deep(input.d365-form-control)[b-9eziwsn3yu],
.detail-item-field :deep(select.d365-form-control)[b-9eziwsn3yu],
.detail-item-detail-field :deep(input.d365-form-control)[b-9eziwsn3yu],
.detail-item-detail-field :deep(select.d365-form-control)[b-9eziwsn3yu] {
    height: 32px;
    min-height: 32px;
    box-sizing: border-box;
}

.detail-item-detail-flags[b-9eziwsn3yu] {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.1rem;
}

.detail-item-flag[b-9eziwsn3yu] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-size: 12px;
    color: #323130;
    cursor: pointer;
    user-select: none;
}

.detail-item-flag input[type="checkbox"][b-9eziwsn3yu] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: #2266e3;
}

.detail-item-flag input[type="checkbox"]:disabled[b-9eziwsn3yu] {
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 1199.98px) {
    .detail-item-detail-fields[b-9eziwsn3yu] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .detail-item-header[b-9eziwsn3yu] {
        flex-direction: column;
        gap: 0.75rem;
    }

    .detail-item-header > .detail-item-auto-column[b-9eziwsn3yu] {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100% !important;
        padding-left: 0;
        padding-top: 0.75rem;
    }

    .detail-item-desc-row[b-9eziwsn3yu] {
        flex: 0 0 auto;
    }
}

@media (max-width: 767.98px) {
    .detail-item-detail-fields[b-9eziwsn3yu] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-item-field-row > .detail-item-field.detail-item-field-parent[b-9eziwsn3yu],
    .detail-item-field-row > .detail-item-field.detail-item-field-name[b-9eziwsn3yu] {
        flex: 1 1 100%;
    }

    .detail-item-field-row > .detail-item-field-inactive[b-9eziwsn3yu] {
        margin-left: 0;
        align-items: flex-start;
    }
}

/* /Components/Pages/StoreInventoryCoding.razor.rz.scp.css */
. i n v - l e v e l - p e n d i n g   t d   [b-qpdmm3mllo]{ 
 
         f o n t - s t y l e :   i t a l i c ; 
 
 } 
 
 [b-qpdmm3mllo]
/* /Components/Pages/StoreItemAttributeDialog.razor.rz.scp.css */
.detail-attr-unit-panel[b-amx72qxu1s] {
    border: 1px solid #d8d4cd;
    border-radius: 6px;
    background: #fafaf8;
    padding: 0.75rem;
}

.detail-attr-unit-panel-title[b-amx72qxu1s] {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #107c10;
    margin-bottom: 0.55rem;
}
/* /Components/Pages/StoreProcessRun.razor.rz.scp.css */
/* Process Run — run metrics live in the header so the numbers describing the run are visible while
   the stages are being worked, instead of in a sidebar that squeezed the grid. */

.pr-page[b-3bsbbpsep6] {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* In / Out / Loss / Yield sit on the FIRST header row beside Facility and Template. They are one
   compact block, sized to its content so it can sit at the right end without stretching the row. */
.pr-metrics[b-3bsbbpsep6] {
    display: flex;
    align-items: stretch;
    gap: 2px;
    border: 1px solid #e8e4de;
    border-radius: 3px;
    overflow: hidden;
    background: #faf9f8;
}

/* WIP stock the run draws from: the ref picked above plus what is still un-consumed on it.
   Shown as chips so the operator sees the balance without opening the issue. */
.pr-stock-strip[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 10px;
    border: 1px solid #dbe8f2;
    border-left: 3px solid #0078d4;
    border-radius: 3px;
    background: #f6fbfe;
    font-size: 12px;
}

.pr-stock-strip > i[b-3bsbbpsep6] {
    color: #0078d4;
}

.pr-stock-strip-label[b-3bsbbpsep6] {
    color: #605e5c;
    font-weight: 600;
}

.pr-stock-chip[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 2px 8px;
    border: 1px solid #d2e6f5;
    border-radius: 10px;
    background: #fff;
    color: #323130;
    white-space: nowrap;
}

.pr-stock-chip strong[b-3bsbbpsep6] {
    color: #0078d4;
    font-variant-numeric: tabular-nums;
}

/* Split queue ref: "left of 2.00", "this run holds 1.00", "1.00 other". Two process runs may draw
   from one queue number, so the chip has to show the arithmetic rather than a bare balance that
   looks wrong. */
.pr-stock-chip-sub[b-3bsbbpsep6] {
    color: #8a8886;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.pr-stock-chip-own[b-3bsbbpsep6],
.pr-stock-chip-held[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 0 5px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-variant-numeric: tabular-nums;
}

.pr-stock-chip-own[b-3bsbbpsep6] {
    background: #eaf6ee;
    color: #107c10;
}

.pr-stock-chip-held[b-3bsbbpsep6] {
    background: #fdf3e7;
    color: #8a5300;
}

/* The queue row a raw line was drawn from. A chip rather than text so "direct store" and "drawn from
   issue #1042" are told apart at a glance - they mean different things for the stock movement. */
.pr-queue-ref[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 7px;
    border: 1px solid #cfe3f5;
    border-radius: 9px;
    background: #f5fafd;
    color: #0a5a8c;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Overview summary rows: the whole run at a glance. A row opens its stage inline, so it has to
   read as clickable and the open row has to read as open. */
.pr-summary-row:hover[b-3bsbbpsep6] {
    background: #f2f8fd;
}

.pr-summary-row.is-expanded[b-3bsbbpsep6] {
    background: #eff6fc;
    box-shadow: inset 3px 0 0 #0078d4;
}

/* The chevron is the affordance for "this row opens". */
.pr-page[b-3bsbbpsep6]  .pr-chevron-cell {
    justify-content: center;
    color: #0078d4;
    font-size: 12px;
    user-select: none;
}

/* The Overview's stage grid holds the inline editors, so it gets the viewport instead of the
   shared 300px detail-grid cap - a 300px pane would clip every opened stage. */
.pr-stage-grid-scroll[b-3bsbbpsep6] {
    max-height: 68vh;
}

/* An opened stage, in place of the row. */
.pr-page[b-3bsbbpsep6]  .pr-expand-row > td {
    padding: 0;
    background: #fcfcfb;
    border-bottom: 1px solid #d2d0ce;
}

.pr-expand-body[b-3bsbbpsep6] {
    padding: 10px 12px 12px;
    border-left: 3px solid #0078d4;
    background: #fcfcfb;
}

.pr-expand-grid-scroll[b-3bsbbpsep6] {
    max-height: 300px;
}

/* Foot of an opened stage: the "this saves on the stage" reassurance, and the way out to the tab. */
.pr-expand-foot[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.pr-expand-hint[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #8a8886;
    font-size: 11px;
}

.pr-expand-hint > i[b-3bsbbpsep6] {
    color: #c19c00;
}

.pr-expand-foot > button[b-3bsbbpsep6] {
    margin-left: auto;
}

/* Stage state dot: not started / in progress / done - the same rule the tracker uses. */
.pr-step-dot[b-3bsbbpsep6] {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 6px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.pr-step-dot.is-todo[b-3bsbbpsep6] {
    background: #d2d0ce;
}

.pr-step-dot.is-started[b-3bsbbpsep6] {
    background: #ff8c00;
}

.pr-step-dot.is-done[b-3bsbbpsep6] {
    background: #107c10;
}

/* Skipped: deliberately not worked for this batch - hollow, so it never reads as "done". */
.pr-step-dot.is-skipped[b-3bsbbpsep6] {
    background: #fff;
    border: 1px solid #8a8886;
}

/* Duration capsule for a single stage's own panel. */
.pr-duration[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border: 1px solid #dbe8f2;
    border-radius: 12px;
    background: #f6fbfe;
    color: #0078d4;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Duration capsule next to a stage's yield: the elapsed working window for THAT stage, not a stored
   figure. Each stage is worked at its own time, so the run header has no single duration. */
.pr-stage-span[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    color: #0078d4;
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pr-metrics[b-3bsbbpsep6] {
    display: flex;
    align-items: stretch;
    gap: 2px;
    border: 1px solid #e8e4de;
    border-radius: 3px;
    overflow: hidden;
    background: #faf9f8;
}

.pr-metric[b-3bsbbpsep6] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 3.6rem;
    padding: 2px 7px;
    background: #fff;
}

.pr-metric + .pr-metric[b-3bsbbpsep6] {
    border-left: 1px solid #edebe9;
}

.pr-metric-label[b-3bsbbpsep6] {
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8b7355;
}

.pr-metric-value[b-3bsbbpsep6] {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: #323130;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Loss is the one number that is "bad" when non-zero, so it is coloured only when it is. */
.pr-metric-value.is-loss[b-3bsbbpsep6] {
    color: #a4262c;
}

/* Gain is the opposite bottom line and only a soak / chemical stage produces it: weight taken on
   from the solution. Green, and prefixed +, so it never reads as a negative loss of 0.00. */
.pr-metric-value.is-gain[b-3bsbbpsep6] {
    color: #0b6a0b;
}

.pr-metric-yield[b-3bsbbpsep6] {
    background: #f3f9fd;
}

.pr-metric-yield .pr-metric-value[b-3bsbbpsep6] {
    color: #0078d4;
}

/* Trans # is a system number: same light yellow as Stock / Transportation. */
.pr-page[b-3bsbbpsep6]  .pr-trans-no {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border-color: #ffe69c !important;
    font-weight: 700;
    opacity: 1;
    cursor: default;
}

/* A little air between Trans and Date. The other fields keep the row gutter. */
.pr-date-gap[b-3bsbbpsep6] {
    margin-left: 0.65rem;
}

/* The figures block: a thin yield strip, then In / Out / Loss / Yield. */
.pr-run-totals[b-3bsbbpsep6] {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 3px;
}

/* "23-NOV-2026 19:39" is 18 characters. The column is that text plus the calendar
   button, so a click lands on the date and the caret sits in the text. */
.pr-date-fit[b-3bsbbpsep6] {
    width: calc(18ch + 2.6rem);
}

.pr-page[b-3bsbbpsep6]  .pr-date-fit > .tms-date {
    width: 100%;
    max-width: 100%;
    display: block;
}

.pr-page[b-3bsbbpsep6]  .pr-date-fit > .tms-date > .tms-date-text {
    width: 100%;
    box-sizing: border-box;
    padding-right: 22px;
    cursor: text;
    caret-color: #323130;
}

/* The stage fields and that stage's item grid are ONE card: the grid sits inside the same card body
   under a hairline rule, instead of in a second stacked card. The grid itself is the app-wide CMF
   detail grid shell, so its frame stays as it is everywhere else. */
.pr-items-block[b-3bsbbpsep6] {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #edebe9;
}

.pr-items-block .cmf-container-detail-grid-scroll[b-3bsbbpsep6] {
    max-height: 340px;
}

/* The only trace of the record list: one quiet status line. It gives the run's identity without
   putting a second grid on the page while the operator is working a stage. */
.pr-record-label[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding: 4px 10px;
    border: 1px solid #edebe9;
    border-radius: 3px;
    background: #faf9f8;
    color: #605e5c;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.pr-record-label > i[b-3bsbbpsep6] {
    color: #8b7355;
}

.pr-record-label-run[b-3bsbbpsep6] {
    color: #323130;
    font-weight: 600;
}

.pr-record-label-sep[b-3bsbbpsep6] {
    color: #c8c6c4;
}

.pr-record-label-count[b-3bsbbpsep6] {
    margin-left: auto;
    color: #8a8886;
    font-size: 11px;
}

/* CMF grid cells are borderless: the cell supplies the padding and the row supplies the height, so a
   control inside a cell must not paint its own box. Same treatment the other detail grids get. */
.pr-page[b-3bsbbpsep6]  .cmf-container-detail-grid .d365-grid-cell .d365-form-control {
    width: 100%;
    height: 26px;
    padding: 0 4px;
    border: none;
    background: transparent;
    font-size: 12px;
    box-shadow: none;
}

.pr-page[b-3bsbbpsep6]  .cmf-container-detail-grid .d365-grid-cell .d365-form-control:focus {
    outline: 1px solid #0078d4;
    outline-offset: -1px;
    background: #fff;
}

/* Unit is a read-out from the item master / queue row, not an input. */
.pr-page[b-3bsbbpsep6]  .pr-cell-unit {
    justify-content: center;
    color: #605e5c;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Numeric columns line up on the right, like the header captions above them. */
.pr-page[b-3bsbbpsep6]  .d365-grid-cell-num {
    justify-content: flex-end;
    font-variant-numeric: tabular-nums;
    font-family: Consolas, "Courier New", monospace;
}

/* Net / Gain / Gross on a stage item row (both the inline panel and the stage tab). The gain is the
   only figure that is ever green: it is the weight the step PUT ON, which is what the soak is for.
   Rules live at page scope so the two grids cannot drift apart. */
.pr-page[b-3bsbbpsep6]  .pr-num {
    font-size: 12px;
    font-weight: 600;
    color: #3a3a3a;
}

.pr-page[b-3bsbbpsep6]  .pr-gain-cell {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
}

.pr-page[b-3bsbbpsep6]  .pr-gain-cell.is-gain {
    color: #0b6a0b;
}

.pr-page[b-3bsbbpsep6]  .pr-gain-value {
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pr-page[b-3bsbbpsep6]  .d365-grid-cell-qty {
    justify-content: flex-end;
}

/* Empty / loading row spans the table, so its cell is one centred line rather than a cell box. */
.pr-page[b-3bsbbpsep6]  .d365-grid-cell-empty {
    justify-content: center;
    color: #8a8886;
    font-size: 12px;
    padding: 10px 8px;
}

/* Row delete button: quiet until the row is hovered, red on intent. */
.pr-page[b-3bsbbpsep6]  .cmf-container-detail-grid .d365-grid-cell-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-page[b-3bsbbpsep6]  .cmf-container-detail-grid .d365-grid-cell-action .po-row-delete {
    border: 1px solid transparent;
    background: transparent;
    color: #a4262c;
    padding: 2px 4px;
    line-height: 1;
    border-radius: 3px;
    cursor: pointer;
}

.pr-page[b-3bsbbpsep6]  .cmf-container-detail-grid .d365-grid-cell-action .po-row-delete:hover {
    background: #fde7e9;
    border-color: #f3b7ba;
}

.pr-page[b-3bsbbpsep6]  .cmf-container-detail-grid .d365-grid-cell-action .po-row-delete:focus {
    outline: none;
    border-color: #a4262c;
}

/* ============================================================
   Visual band (Overview): run funnel + process flow.
   Read-only pictures drawn from the same numbers as the figures above them. Deliberately light -
   the working grid below carries the inputs, so nothing here competes with it for attention.
   ============================================================ */
.pr-viz[b-3bsbbpsep6] {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
    gap: 10px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .pr-viz[b-3bsbbpsep6] {
        grid-template-columns: minmax(0, 1fr);
    }
}

.pr-viz-panel[b-3bsbbpsep6] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 10px 12px 12px;
    border: 1px solid #edebe9;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.pr-viz-title[b-3bsbbpsep6] {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #323130;
    font-size: 12px;
    font-weight: 600;
}

.pr-viz-title > i[b-3bsbbpsep6] {
    color: #0078d4;
}

.pr-viz-sub[b-3bsbbpsep6] {
    margin-left: auto;
    color: #a19f9d;
    font-size: 10.5px;
    font-weight: 400;
}

.pr-viz-empty[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    padding: 14px 2px;
    color: #a19f9d;
    font-size: 11.5px;
}

/* ---- funnel ---- */
.pr-funnel-bar[b-3bsbbpsep6] {
    display: flex;
    height: 26px;
    overflow: hidden;
    border: 1px solid #e8e4de;
    border-radius: 3px;
    background: repeating-linear-gradient(
        45deg,
        #f3f0ea,
        #f3f0ea 6px,
        #ebe6dd 6px,
        #ebe6dd 12px);
}

.pr-funnel-out[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: linear-gradient(90deg, #2b88d8, #0078d4);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: width 0.3s ease;
}

.pr-funnel-loss[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: repeating-linear-gradient(
        45deg,
        #f5c2c4,
        #f5c2c4 5px,
        #efafb1 5px,
        #efafb1 10px);
    color: #a4262c;
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: width 0.3s ease;
}

.pr-funnel-legend[b-3bsbbpsep6] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    color: #605e5c;
    font-size: 11px;
}

.pr-funnel-key[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.pr-funnel-key strong[b-3bsbbpsep6] {
    color: #323130;
    font-variant-numeric: tabular-nums;
}

.pr-funnel-yield[b-3bsbbpsep6] {
    margin-left: auto;
    padding-left: 8px;
    border-left: 1px solid #edebe9;
}

.pr-legend-dot[b-3bsbbpsep6] {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.pr-legend-dot.is-in[b-3bsbbpsep6] {
    background: repeating-linear-gradient(
        45deg,
        #f3f0ea,
        #f3f0ea 3px,
        #ebe6dd 3px,
        #ebe6dd 6px);
    border: 1px solid #e0dbd3;
}

.pr-legend-dot.is-out[b-3bsbbpsep6] {
    background: #0078d4;
}

.pr-legend-dot.is-loss[b-3bsbbpsep6] {
    background: #d13438;
}

/* ---- process flow ---- */
.pr-flow[b-3bsbbpsep6] {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 2px;
}

.pr-flow-node[b-3bsbbpsep6] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex: 1 1 0;
    min-width: 8.5rem;
    max-width: 13rem;
    padding: 8px 6px 7px;
    border: 1px solid #edebe9;
    border-radius: 4px;
    background: #fcfcfb;
    color: #323130;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.pr-flow-node:hover[b-3bsbbpsep6] {
    border-color: #c7e0f4;
    box-shadow: 0 2px 6px rgba(0, 120, 212, 0.12);
    transform: translateY(-1px);
}

.pr-flow-node:focus[b-3bsbbpsep6] {
    outline: none;
    border-color: #0078d4;
    box-shadow: 0 0 0 1px #0078d4;
}

.pr-flow-node.is-open[b-3bsbbpsep6] {
    border-color: #0078d4;
    background: #eff6fc;
    box-shadow: inset 0 0 0 1px #0078d4;
}

/* A thin state edge on top: not started / in progress / done, same rule as the dot in the grid. */
.pr-flow-node[b-3bsbbpsep6]::before {
    content: "";
    position: absolute;
    inset: -1px -1px auto;
    height: 3px;
    border-radius: 4px 4px 0 0;
    background: #d2d0ce;
}

.pr-flow-node[b-3bsbbpsep6] {
    position: relative;
}

.pr-flow-node.is-started[b-3bsbbpsep6]::before {
    background: #ff8c00;
}

.pr-flow-node.is-done[b-3bsbbpsep6]::before {
    background: #107c10;
}

.pr-flow-node.is-skipped[b-3bsbbpsep6] {
    opacity: 0.72;
}

.pr-flow-node.is-skipped[b-3bsbbpsep6]::before {
    background: repeating-linear-gradient(90deg, #8a8886 0 6px, #d2d0ce 6px 12px);
}

.pr-flow-step[b-3bsbbpsep6] {
    color: #a19f9d;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Yield ring: pure CSS conic gradient, no image and no library. --p is 0..100. */
.pr-flow-donut[b-3bsbbpsep6] {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 1px 0 2px;
    border-radius: 50%;
    background: conic-gradient(#0078d4 calc(var(--p) * 1%), #edebe9 0);
}

.pr-flow-donut[b-3bsbbpsep6]::before {
    content: "";
    grid-area: 1 / 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
}

.pr-flow-donut-value[b-3bsbbpsep6] {
    grid-area: 1 / 1;
    color: #323130;
    font-size: 10px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pr-flow-name[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    max-width: 100%;
    color: #323130;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.2;
}

.pr-flow-name > i[b-3bsbbpsep6] {
    color: #8b7355;
    flex: 0 0 auto;
}

.pr-flow-kind[b-3bsbbpsep6] {
    padding: 0 5px;
    border-radius: 8px;
    background: #f3f2f1;
    color: #605e5c;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pr-flow-figures[b-3bsbbpsep6] {
    display: flex;
    gap: 8px;
    color: #605e5c;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.pr-flow-count[b-3bsbbpsep6] {
    color: #a19f9d;
    font-size: 9.5px;
}

/* State caption on the card: Done / In progress / Skipped / Not started. The thin top edge
   already carries the colour; this says it in words so a 0% ring cannot read as "not worked". */
.pr-flow-state[b-3bsbbpsep6] {
    padding: 0 5px;
    border-radius: 8px;
    background: #f3f2f1;
    color: #8a8886;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pr-flow-state.is-done[b-3bsbbpsep6] {
    background: #dff6dd;
    color: #107c10;
}

.pr-flow-state.is-started[b-3bsbbpsep6] {
    background: #fff4ce;
    color: #8a6d3b;
}

.pr-flow-state.is-skipped[b-3bsbbpsep6] {
    background: #edebe9;
    color: #605e5c;
}

.pr-flow-donut.is-skipped[b-3bsbbpsep6] {
    background: repeating-linear-gradient(45deg, #edebe9 0 4px, #f8f8f7 4px 8px);
}

.pr-flow-arrow[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    padding: 0 1px;
    color: #c8c6c4;
    font-size: 12px;
    flex: 0 0 auto;
}

/* Thin yield strip, the width of the figures under it. */
.pr-yield-bar[b-3bsbbpsep6] {
    position: relative;
    height: 15px;
    border-radius: 3px;
    background: repeating-linear-gradient(
        45deg,
        #f3f0ea,
        #f3f0ea 6px,
        #ebe6dd 6px,
        #ebe6dd 12px);
    border: 1px solid #e8e4de;
    overflow: hidden;
}

.pr-yield-fill[b-3bsbbpsep6] {
    height: 100%;
    background: linear-gradient(90deg, #2b88d8, #0078d4);
    transition: width 0.25s ease;
}

.pr-yield-caption[b-3bsbbpsep6] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: #323130;
    white-space: nowrap;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

/* Per-stage affordances. */
.pr-stage-icon[b-3bsbbpsep6] {
    margin-right: 6px;
    color: #8b7355;
}

.pr-stage-open[b-3bsbbpsep6] {
    background: #f3f9fd;
}

.pr-lines-row > td[b-3bsbbpsep6] {
    background: #fcfbfa;
    padding-left: 3.5rem !important;
}

/* Stage yield: a small bar plus its figure, so a weak step is visible without reading every number. */
.pr-stage-yield[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.pr-stage-bar[b-3bsbbpsep6] {
    flex: 0 0 46px;
    height: 6px;
    border-radius: 3px;
    background: #edebe9;
    overflow: hidden;
}

.pr-stage-bar > div[b-3bsbbpsep6] {
    height: 100%;
    background: #0078d4;
    transition: width 0.25s ease;
}

/* ==========================================================================
   Overview stage grid - the modern table
   Scoped to .pr-stage-grid so nothing here reaches the stage panel's own grid
   or any other form. The shell (container, toolbar, scroll) stays the shared
   CMF detail grid; only the cells below are re-dressed.
   ========================================================================== */

/* Header: small caps, quiet, pinned while the list scrolls. */
.pr-stage-grid[b-3bsbbpsep6]  .pr-stage-grid-scroll > .d365-input-grid > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 7px 10px;
    border: 0;
    border-bottom: 1px solid #d2d0ce;
    background: #faf9f8;
    color: #605e5c;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Rows: room for a two-line stage cell, hairline separators instead of a full grid.
   Scoped through .pr-stage-grid-scroll so the item grid opened inside a stage keeps
   its own CMF cell rules. */
.pr-stage-grid[b-3bsbbpsep6]  .pr-stage-grid-scroll > .d365-input-grid > tbody > tr > td {
    height: auto;
    padding: 6px 10px;
    border: 0;
    border-bottom: 1px solid #f0eeec;
    vertical-align: middle;
}

/* The shared cell wrapper is a 22px flex box; these cells hold a tile and two lines. */
.pr-stage-grid[b-3bsbbpsep6]  .pr-stage-grid-scroll > .d365-input-grid > tbody > tr > td > .d365-grid-cell {
    height: auto;
    min-height: 22px;
    padding: 0;
}

.pr-stage-grid[b-3bsbbpsep6]  .pr-summary-row:hover {
    background: #f5faff;
}

.pr-stage-grid[b-3bsbbpsep6]  .pr-summary-row.is-expanded {
    background: #eef7fe;
    box-shadow: inset 3px 0 0 #0078d4;
}

/* Chevron: a quiet round affordance that turns when the row opens. */
.pr-stage-grid[b-3bsbbpsep6]  .pr-chevron-cell {
    width: 22px;
    height: 22px;
    margin: 0 auto;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0078d4;
    font-size: 11px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.pr-stage-grid[b-3bsbbpsep6]  .pr-summary-row:hover .pr-chevron-cell {
    background: #deecf9;
}

.pr-stage-grid[b-3bsbbpsep6]  .pr-summary-row.is-expanded .pr-chevron-cell {
    background: #deecf9;
}

/* Step number: a disc, tinted by state, not a bare figure in a column. */
.pr-step-cell[b-3bsbbpsep6] {
    justify-content: center;
    padding: 0;
}

.pr-step-chip[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #f3f2f1;
    border: 1px solid #e1dfdd;
    color: #484644;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pr-step-chip.is-started[b-3bsbbpsep6] {
    background: #fff4e5;
    border-color: #ffd39b;
    color: #b35900;
}

.pr-step-chip.is-skipped[b-3bsbbpsep6] {
    background: #fff;
    border-style: dashed;
    border-color: #c8c6c4;
    color: #8a8886;
}

/* Caption beside the stage-level "Skip stage" checkbox. */
.pr-skip-caption[b-3bsbbpsep6] {
    font-size: 12px;
    color: #605e5c;
    white-space: nowrap;
}

/* Skip is a plain checkbox with its own label - not a bordered input box dressed up as a field. */
.pr-skip-check[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 2px;
}

.pr-skip-check .form-check-input[b-3bsbbpsep6] {
    margin: 0;
    flex: 0 0 auto;
    cursor: pointer;
}

.pr-skip-check .form-check-label[b-3bsbbpsep6] {
    margin: 0;
    font-size: 11.5px;
    color: #605e5c;
    cursor: pointer;
    white-space: nowrap;
}

/* Per-stage status + Update / Reopen, on the stage row and in the stage panel. */
.pr-stage-actions[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.pr-stage-status[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
}

.pr-stage-action[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border: 1px solid #c8c6c4;
    border-radius: 3px;
    background: #fff;
    color: #323130;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
}

.pr-stage-action:hover:not(:disabled)[b-3bsbbpsep6] {
    background: #f3f2f1;
}

.pr-stage-action:disabled[b-3bsbbpsep6] {
    opacity: 0.45;
    cursor: default;
}

.pr-stage-action.is-update[b-3bsbbpsep6] {
    border-color: #107c10;
    color: #0b6a0b;
}

.pr-stage-action.is-update:hover:not(:disabled)[b-3bsbbpsep6] {
    background: #dff6dd;
}

.pr-stage-action.is-reopen[b-3bsbbpsep6] {
    border-color: #c8c6c4;
    color: #605e5c;
}

/* The row padlock: a square, icon-only control so it can sit beside Update without widening the
   column - it unlocks one stage for amendment without opening the whole entry.
   The icon shows the STATE, not the action: a closed padlock means the stage's fields are
   read-only, an open one means this row is the live stage you can amend. Both stay clickable and
   the cursor says so; the green tint makes the one live row findable at a glance. */
.pr-stage-action.is-icon[b-3bsbbpsep6] {
    padding: 2px 5px;
    line-height: 1;
    cursor: pointer;
}

.pr-stage-action.is-icon:hover:not(:disabled)[b-3bsbbpsep6] {
    border-color: #8a8886;
    color: #201f1e;
    background: #edebe9;
}

.pr-stage-action.is-icon.is-unlocked[b-3bsbbpsep6] {
    border-color: #107c10;
    color: #0b6a0b;
    background: #f1faf1;
}

.pr-stage-action.is-icon.is-unlocked:hover:not(:disabled)[b-3bsbbpsep6] {
    border-color: #0b6a0b;
    background: #dff6dd;
}

.pr-step-chip.is-done[b-3bsbbpsep6] {
    background: #e7f6e7;
    border-color: #a7d8a7;
    color: #0b6a0b;
}

/* Stage: an icon tile for the kind, the name, and a state caption underneath. */
.pr-stage-cell[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0;
}

.pr-stage-tile[b-3bsbbpsep6] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: #f3f2f1;
    color: #605e5c;
    font-size: 13px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.pr-stage-tile.is-input[b-3bsbbpsep6] {
    background: #eaf3fd;
    color: #0f6cbd;
}

.pr-stage-tile.is-output[b-3bsbbpsep6] {
    background: #e9f7ef;
    color: #0f7b45;
}

.pr-stage-tile.is-transform[b-3bsbbpsep6],
.pr-stage-tile.is-process[b-3bsbbpsep6] {
    background: #f4effc;
    color: #6b44c4;
}

.pr-stage-tile.is-pack[b-3bsbbpsep6] {
    background: #fdf4e6;
    color: #a86800;
}

.pr-stage-text[b-3bsbbpsep6] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.pr-stage-name[b-3bsbbpsep6] {
    color: #1f1f1f;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pr-stage-state[b-3bsbbpsep6] {
    display: inline-flex;
    align-items: center;
    color: #8a8886;
    font-size: 10px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pr-stage-state.is-started[b-3bsbbpsep6] {
    color: #b35900;
}

.pr-stage-state.is-done[b-3bsbbpsep6] {
    color: #0b6a0b;
}

.pr-stage-state.is-skipped[b-3bsbbpsep6] {
    color: #8a8886;
    font-style: italic;
}

.pr-stage-state .pr-step-dot[b-3bsbbpsep6] {
    width: 6px;
    height: 6px;
    margin-right: 4px;
}

/* Kind chip: soft, rounded, one colour per kind - not the hard form badge. */
.pr-kind-chip[b-3bsbbpsep6] {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 11px;
    background: #f3f2f1;
    border: 1px solid #e1dfdd;
    color: #484644;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.pr-kind-chip.is-input[b-3bsbbpsep6] {
    background: #eaf3fd;
    border-color: #c9e0f7;
    color: #0f6cbd;
}

.pr-kind-chip.is-output[b-3bsbbpsep6] {
    background: #e9f7ef;
    border-color: #bfe4ce;
    color: #0f7b45;
}

.pr-kind-chip.is-transform[b-3bsbbpsep6],
.pr-kind-chip.is-process[b-3bsbbpsep6] {
    background: #f4effc;
    border-color: #ded0f5;
    color: #6b44c4;
}

.pr-kind-chip.is-pack[b-3bsbbpsep6] {
    background: #fdf4e6;
    border-color: #f2ddb8;
    color: #a86800;
}

/* Time stamps: date on top, clock beneath, both tabular so columns line up. */
.pr-stamp-cell[b-3bsbbpsep6] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.pr-stamp-cell > span:first-child[b-3bsbbpsep6] {
    color: #323130;
    font-size: 11.5px;
}

.pr-stamp-time[b-3bsbbpsep6] {
    color: #8a8886;
    font-size: 10px;
}

.pr-dash[b-3bsbbpsep6] {
    color: #c8c6c4;
    font-size: 12px;
}

/* By: initials disc plus the name, ellipsised. */
.pr-avatar[b-3bsbbpsep6] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f6cbd, #2b88d8);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.02em;
    vertical-align: middle;
}

.pr-by-name[b-3bsbbpsep6] {
    display: inline-block;
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    color: #323130;
    font-size: 12px;
}

/* Input / output: right aligned, tabular, heavier than the metadata around them. */
.pr-stage-grid[b-3bsbbpsep6]  .pr-num {
    justify-content: flex-end;
    color: #1f1f1f;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Gain: weight the stage took on (soak / chemical uptake). Two stacked figures - kg, then the % -
   because the kg is what the store receives and the % is what the process is judged on. */
.pr-stage-grid[b-3bsbbpsep6]  .pr-gain-cell {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
}

.pr-stage-grid[b-3bsbbpsep6]  .pr-gain-cell.is-gain {
    color: #0b6a0b;
}

.pr-stage-grid[b-3bsbbpsep6]  .pr-gain-value {
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pr-stage-grid[b-3bsbbpsep6]  .pr-gain-percent {
    font-size: 10.5px;
    font-weight: 600;
    color: #0b6a0b;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
}

/* Yield: a meter whose colour states the judgement, plus the figure. */
.pr-yield-cell[b-3bsbbpsep6] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0;
}

.pr-yield-meter[b-3bsbbpsep6] {
    flex: 1 1 auto;
    min-width: 34px;
    max-width: 74px;
    height: 6px;
    border-radius: 4px;
    background: #edebe9;
    overflow: hidden;
}

.pr-yield-meter-fill[b-3bsbbpsep6] {
    height: 100%;
    border-radius: 4px;
    background: #c8c6c4;
    transition: width 0.25s ease, background 0.2s ease;
}

.pr-yield-meter-fill.is-good[b-3bsbbpsep6] {
    background: linear-gradient(90deg, #2e9c2e, #107c10);
}

.pr-yield-meter-fill.is-warn[b-3bsbbpsep6] {
    background: linear-gradient(90deg, #f5b73d, #e08a00);
}

.pr-yield-meter-fill.is-bad[b-3bsbbpsep6] {
    background: linear-gradient(90deg, #e8646a, #c4314b);
}

.pr-yield-meter-fill.is-none[b-3bsbbpsep6] {
    background: #e1dfdd;
}

.pr-yield-value[b-3bsbbpsep6] {
    flex: 0 0 auto;
    min-width: 46px;
    text-align: right;
    color: #605e5c;
    font-size: 11.5px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pr-yield-value.is-good[b-3bsbbpsep6] {
    color: #0b6a0b;
}

.pr-yield-value.is-warn[b-3bsbbpsep6] {
    color: #b35900;
}

.pr-yield-value.is-bad[b-3bsbbpsep6] {
    color: #c4314b;
}

/* The opened stage keeps the edge-to-edge panel; the cell padding above must not reach it. */
.pr-stage-grid[b-3bsbbpsep6]  .pr-expand-row > td {
    padding: 0;
    border-bottom: none;
}


/* /Components/Pages/StorePurchaseOrder.razor.rz.scp.css */
/* Purchase Order header uses the quotation fixed-width rows. The date picker
   shrinks inside col-auto unless it is told to fill the column. */
[b-vmgxbr2u96] .po-header-row .col-auto > .tms-date {
    width: 100%;
    display: block;
}

[b-vmgxbr2u96] .po-header-row .col-auto > .tms-date > .tms-date-text {
    width: 100%;
    box-sizing: border-box;
}

.po-header-row[b-vmgxbr2u96] {
    overflow: visible;
}

/* Currency is the last field on the first header row, pinned to the right end. */
[b-vmgxbr2u96] .po-form .po-currency-field {
    margin-left: auto;
    width: auto;
    align-self: flex-end;
}

[b-vmgxbr2u96] .po-form input.po-plain,
[b-vmgxbr2u96] .po-form select.d365-form-control {
    text-transform: none;
}

[b-vmgxbr2u96] .po-form .stock-toolbar-field > .tms-date {
    display: block;
    width: 100%;
}

[b-vmgxbr2u96] .po-form .stock-toolbar-field > .tms-date > .tms-date-text {
    width: 100%;
    box-sizing: border-box;
}

.po-list tr.voided[b-vmgxbr2u96] {
    opacity: 0.6;
}

.po-grid .cmf-container-grid-table[b-vmgxbr2u96] {
    width: 100%;
    table-layout: fixed;
}

.po-grid th.po-docref[b-vmgxbr2u96],
.po-grid td.po-docref[b-vmgxbr2u96] {
    font-size: 11px;
    padding: 0 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.po-grid td.po-docref[b-vmgxbr2u96] {
    color: #605e5c;
}

/* The row already draws the bottom line. A header underline on Unit / Qty / Rate
   sits lower than that line and, on the unit list, runs into the item column. */
.po-grid td[b-vmgxbr2u96] {
    overflow: hidden;
    vertical-align: middle;
}

.po-grid td > div[b-vmgxbr2u96] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.po-grid[b-vmgxbr2u96]  input.d365-form-control,
.po-grid[b-vmgxbr2u96]  select.d365-form-control,
.po-grid[b-vmgxbr2u96]  .store-item-search-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 24px;
    min-height: 0;
    padding: 0 4px;
    border: none;
    border-bottom: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    font-size: 12px;
    line-height: 24px;
    text-transform: none;
}

.po-grid[b-vmgxbr2u96]  input.d365-form-control:hover,
.po-grid[b-vmgxbr2u96]  select.d365-form-control:hover,
.po-grid[b-vmgxbr2u96]  input.d365-form-control:focus,
.po-grid[b-vmgxbr2u96]  select.d365-form-control:focus,
.po-grid[b-vmgxbr2u96]  input.d365-form-control:focus-visible,
.po-grid[b-vmgxbr2u96]  select.d365-form-control:focus-visible,
.po-grid[b-vmgxbr2u96]  input.d365-form-control:disabled,
.po-grid[b-vmgxbr2u96]  select.d365-form-control:disabled,
.po-grid[b-vmgxbr2u96]  .store-item-search-input:hover,
.po-grid[b-vmgxbr2u96]  .store-item-search-input:focus,
.po-grid[b-vmgxbr2u96]  .store-item-search-input:focus-visible,
.po-grid[b-vmgxbr2u96]  .store-item-search-input:disabled {
    border: none;
    border-bottom: none;
    box-shadow: none;
    padding: 0 4px;
}

.po-grid[b-vmgxbr2u96]  input.d365-form-control:focus,
.po-grid[b-vmgxbr2u96]  select.d365-form-control:focus,
.po-grid[b-vmgxbr2u96]  .store-item-search-input:focus {
    background: #e8f0fe;
}

.po-grid td.text-center[b-vmgxbr2u96]  select.d365-form-control {
    text-align: center;
}

.po-grid[b-vmgxbr2u96]  .store-item-search-input {
    padding-right: 26px;
}

.po-item[b-vmgxbr2u96] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding-left: 6px;
}

.po-item-codebox[b-vmgxbr2u96] {
    flex: 0 0 8.5rem;
    width: 8.5rem;
    min-width: 0;
}

.po-item-codebox[b-vmgxbr2u96]  .store-item-search {
    width: 100% !important;
}

.po-item-code[b-vmgxbr2u96] {
    flex: 0 0 auto;
    align-self: center;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
}

.po-item-name[b-vmgxbr2u96] {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.po-item-text[b-vmgxbr2u96] {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

.po-item-text.is-clamped[b-vmgxbr2u96] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.po-item-text.is-open[b-vmgxbr2u96] {
    white-space: pre-wrap;
}

.po-item-main[b-vmgxbr2u96] {
    display: block;
    font-weight: 700;
}

.po-item-sub[b-vmgxbr2u96] {
    display: block;
    font-style: italic;
    font-size: calc(1em - 2px);
    opacity: 0.72;
    white-space: pre-wrap;
}

.po-item-text.is-clamped .po-item-sub[b-vmgxbr2u96] {
    white-space: normal;
}

.po-item-expand[b-vmgxbr2u96] {
    flex: 0 0 auto;
    align-self: center;
    padding: 0 2px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #0078d4;
    line-height: 1;
    cursor: pointer;
}

.po-item-expand:hover[b-vmgxbr2u96] {
    background: rgba(0, 120, 212, 0.12);
}

.po-item-expand .bi[b-vmgxbr2u96] {
    font-size: 11px;
}

/* The currency field is a read-out of the currency in use plus one button that changes it. It shares
   the row with its label like every other header field, so the pill matches the 32px control height
   and sits on the same baseline. */
[b-vmgxbr2u96] .po-currency-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Value pill: same border / radius / height as the D365 inputs so it reads as a field, not a chip. */
[b-vmgxbr2u96] .po-currency-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    min-width: 6.5rem;
    border: 1px solid var(--d365-border-dark, #c8c6c4);
    border-radius: var(--d365-radius-sm, 2px);
    background: #faf9f8;
}

[b-vmgxbr2u96] .po-currency-code {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #323130;
    white-space: nowrap;
}

/* The rate is a supporting figure, not a control: muted, tabular so it does not jitter. */
[b-vmgxbr2u96] .po-currency-hint {
    font-size: 11px;
    line-height: 1;
    color: #8b7355;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* "..." button: the same segment look the pickers elsewhere use, sized square so the ellipsis is the
   whole affordance. */
[b-vmgxbr2u96] .po-currency-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--d365-border-dark, #c8c6c4);
    border-radius: var(--d365-radius-sm, 2px);
    background: #fff;
    color: var(--d365-primary, #0078d4);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

[b-vmgxbr2u96] .po-currency-more-btn:hover:not(:disabled) {
    background: rgba(0, 120, 212, 0.10);
    border-color: var(--d365-primary, #0078d4);
}

[b-vmgxbr2u96] .po-currency-more-btn:focus-visible {
    outline: 2px solid rgba(0, 120, 212, 0.45);
    outline-offset: 1px;
}

[b-vmgxbr2u96] .po-currency-more-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* The rate is a supporting figure, not a control: muted, tabular so it does not jitter when the
   currency changes, and nowrap so "276.85" never breaks. */
[b-vmgxbr2u96] .po-currency-hint {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    color: #8b7355;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: default;
}

/* Keep the shared .stock-segmented rule (used elsewhere on this page) untouched - the currency
   control is a select now, so nothing here depends on it. */
[b-vmgxbr2u96] .po-currency-field .stock-segmented {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* The Purchase (Requisition / Direct) radios are visually hidden by .stock-segment
   (opacity:0), so the shared :focus-visible rule never shows when the page focuses
   them programmatically on New. Ring the segment instead, so the operator can see
   where the caret landed and use the arrow keys. */
[b-vmgxbr2u96] .po-source-segment:has(input:focus) {
    outline: 2px solid rgba(0, 120, 212, 0.55);
    outline-offset: 1px;
}

/* The shared .stock-segment.is-active is white on a #faf9f8 track: readable but easy
   to miss, so both halves looked "on". A filled primary segment makes the chosen side
   unmistakable. Scoped to this page's Purchase switch only. */
[b-vmgxbr2u96] .po-source-segment.is-active {
    background: var(--d365-primary, #0078d4);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

[b-vmgxbr2u96] .po-source-segment.is-active:has(input:focus) {
    outline-color: rgba(0, 120, 212, 0.85);
}

[b-vmgxbr2u96] .po-source-segment:not(.is-active) {
    color: #605e5c;
}

/* Grid cells follow the CMF detail grid: identifiers in the monospace family, the
   secondary line in the muted tone, money right-aligned with tabular figures so the
   columns line up down the grid. */
[b-vmgxbr2u96] .d365-grid .po-cell-code,
[b-vmgxbr2u96] .d365-grid .po-cell-unit {
    font-family: Consolas, "Cascadia Mono", monospace;
    font-size: 12px;
    white-space: nowrap;
}

[b-vmgxbr2u96] .d365-grid .po-cell-name {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.25;
}

[b-vmgxbr2u96] .d365-grid .po-cell-name-main {
    color: #323130;
}

[b-vmgxbr2u96] .d365-grid .po-cell-name-sub {
    font-size: 11px;
    color: #8b7355;
}

[b-vmgxbr2u96] .d365-grid .po-cell-amount {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

[b-vmgxbr2u96] .d365-grid .po-cell-status {
    white-space: nowrap;
}

/* Item Name cell, same two-line treatment as the Requisition grid: main name bold on
   top, the catalogue/secondary description 2px smaller and muted underneath. */
.store-req-item-cell[b-vmgxbr2u96] {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 3px 4px;
}

.store-req-item-text[b-vmgxbr2u96] {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

.store-req-item-main[b-vmgxbr2u96] {
    display: block;
    font-weight: 700;
}

.store-req-item-sub[b-vmgxbr2u96] {
    display: block;
    font-style: italic;
    font-size: calc(1em - 2px);
    opacity: 0.72;
}

/* Row delete: red, so a destructive action never reads like a neutral icon. */
.d365-btn.po-row-delete[b-vmgxbr2u96] {
    color: #d13438;
    background: transparent;
    border-color: transparent;
}

.d365-btn.po-row-delete:hover:not(:disabled)[b-vmgxbr2u96],
.d365-btn.po-row-delete:focus-visible:not(:disabled)[b-vmgxbr2u96] {
    background: rgba(209, 52, 56, 0.12);
}

/* Remarks, currency and tax calculation sit with the totals under the grid,
   the same way the quotation footer keeps its figures in one bar. */
.po-settle[b-vmgxbr2u96] {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid #edebe9;
}

.po-settle-side[b-vmgxbr2u96] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px 16px;
    flex: 1 1 auto;
    min-width: 0;
}

.po-remarks[b-vmgxbr2u96] {
    flex: 1 1 16rem;
    min-width: 14rem;
    max-width: 26rem;
}

.po-remarks[b-vmgxbr2u96]  textarea {
    height: 32px;
    min-height: 32px;
    max-height: 64px;
    resize: vertical;
    text-transform: none;
    line-height: 20px;
}

.po-choice[b-vmgxbr2u96] {
    flex: 0 0 auto;
}

.po-money[b-vmgxbr2u96] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 auto;
    margin-left: auto;
}

.po-money-row[b-vmgxbr2u96] {
    display: grid;
    grid-template-columns: 7.25rem 7.5rem;
    column-gap: 10px;
    align-items: center;
}

.po-money-label[b-vmgxbr2u96] {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    color: #8b7355;
    white-space: nowrap;
}

.po-money-value[b-vmgxbr2u96] {
    text-align: right;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
    color: #323130;
    border-bottom: 1px solid #e8e4de;
    height: 32px;
    line-height: 32px;
    padding: 0 2px;
}

.po-money-row[b-vmgxbr2u96]  input {
    width: 7.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
    height: 32px;
}

.po-money-row-strong .po-money-label[b-vmgxbr2u96],
.po-money-row-strong .po-money-value[b-vmgxbr2u96] {
    font-weight: 700;
    color: #201f1e;
}
/* /Components/Pages/StoreQueueSetup.razor.rz.scp.css */
/* Queue Setup — the Active switch sits on Row 1, at the right end, beside Facility and Department.

   Two things this file has to get right:
   1. The switch must sit on the same baseline as the 32px selects next to it. A checkbox has no
      input box, so it needs an explicit 32px line box - otherwise it drifts to the bottom.
   2. It must not stretch the row. `ms-auto` pushes the column to the right; the column itself stays
      content-width so the gap between Department and Active absorbs the slack. */

.qs-active-field[b-jb8ddd1t51] {
    display: flex;
    flex-direction: column;
    /* Matches the label + 32px control stack of its neighbours. */
}

.qs-active-field .d365-form-label[b-jb8ddd1t51] {
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

/* The 32px control line: centres the switch vertically in the same band the selects occupy. */
.qs-active-field .form-check[b-jb8ddd1t51] {
    min-height: 32px;
    height: 32px;
    margin: 0;
    padding-left: 0;
    display: flex;
    align-items: center;
}

/* Bootstrap adds a top margin to .form-check-input that misaligns a switch inside a flex row. */
.qs-active-field .form-check-input[b-jb8ddd1t51] {
    margin-top: 0;
    margin-left: 0;
    flex: 0 0 auto;
    float: none;
}

/* The label sits above like the other fields; a switch has no value to read, so no extra text. */
.qs-active-field .form-check-label[b-jb8ddd1t51] {
    display: none;
}

/* Active switch in the command bar. It shares the row with 32px buttons, so it gets the same fixed
   height and centred content - otherwise Bootstrap's default margins leave it sitting low. */
.qs-bar-active[b-jb8ddd1t51] {
    min-height: 32px;
    height: 32px;
    margin: 0;
    padding-left: 0;
    gap: 0.35rem;
}

.qs-bar-active .form-check-input[b-jb8ddd1t51] {
    margin-top: 0;
    margin-left: 0;
    flex: 0 0 auto;
    float: none;
}

.qs-bar-active .form-check-label[b-jb8ddd1t51] {
    white-space: nowrap;
    line-height: 1;
}
/* /Components/Pages/StoreReportItemFilter.razor.rz.scp.css */
.sr-store-item-filter[b-og8hy92bkk] {
    max-width: 240px;
}

.sr-store-item-hits[b-og8hy92bkk] {
    position: fixed;
    z-index: 2100;
    max-height: 250px;
    margin: 0;
    padding: 2px;
    border: 1px solid rgba(4, 12, 90, 0.2);
    border-radius: 6px;
    background: #fff;
    color: #1a1a1a;
    overflow-y: auto;
    box-shadow: 0 8px 20px rgba(4, 12, 90, 0.28);
}

.sr-store-item-hit[b-og8hy92bkk] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #1a1a1a;
    cursor: pointer;
}

.sr-store-item-hit.active[b-og8hy92bkk] {
    background: #dbe4ff;
}

.sr-store-item-code[b-og8hy92bkk] {
    flex: 0 0 auto;
    font-weight: 700;
    color: #040C5A;
}

.sr-store-item-name[b-og8hy92bkk] {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Pages/StoreRequisition.razor.rz.scp.css */
/* Store Requisition - CMF-aligned detail grid (scoped to this page only) */

[b-7wyr3xt7rm] .req-form input.req-plain,
[b-7wyr3xt7rm] .req-form select.d365-form-control {
    text-transform: none;
}

[b-7wyr3xt7rm] .req-form .stock-toolbar-field > .tms-date {
    display: block;
    width: 100%;
}

[b-7wyr3xt7rm] .req-form .stock-toolbar-field > .tms-date > .tms-date-text {
    width: 100%;
    box-sizing: border-box;
}

/* Type, need, and need date: a flat light-yellow card at the top right. */
.req-head[b-7wyr3xt7rm] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.req-head > .stock-toolbar[b-7wyr3xt7rm] {
    flex: 1 1 auto;
    min-width: 0;
}

/* One row: ID through Department, then the free space, then Document at the
   right edge so it sits against the need card. */
.req-head-fields[b-7wyr3xt7rm] {
    display: grid;
    grid-template-columns: 6.5rem 9.5rem 12.5rem 12rem 14rem minmax(0.75rem, 1fr) max-content;
    align-items: end;
    column-gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.req-head-fields > .stock-toolbar-field[b-7wyr3xt7rm] {
    width: auto;
    min-width: 0;
}

.req-head-fields > .req-doc-field[b-7wyr3xt7rm] {
    grid-column: 7;
    max-width: 15rem;
}

.req-doc-field .req-doc-value[b-7wyr3xt7rm] {
    width: max-content;
    max-width: 15rem;
    padding: 0 8px;
    border-radius: 4px;
    background: #eff6fc;
    color: #0b5cab;
}

.req-choice-panel[b-7wyr3xt7rm] {
    flex: 0 0 22rem;
    margin-left: auto;
    padding: 8px 12px 10px 12px;
    background: #fffdf2;
    border-radius: 4px;
}

.req-choice-line[b-7wyr3xt7rm] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 32px;
}

.req-choice-line + .req-choice-line[b-7wyr3xt7rm],
.req-choice-date[b-7wyr3xt7rm] {
    margin-top: 4px;
}

.req-choice-date[b-7wyr3xt7rm] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
}

.req-need-caption[b-7wyr3xt7rm] {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.2px;
    color: #8b7355;
    white-space: nowrap;
}

.req-need-caption.required[b-7wyr3xt7rm]::after {
    content: "*";
    color: #a4262c;
    margin-left: 0.1rem;
}

.req-choice-panel .d365-radio-group[b-7wyr3xt7rm] {
    height: auto;
    gap: 4px;
    flex: 0 0 auto;
}

.req-choice-panel .d365-radio[b-7wyr3xt7rm] {
    height: 22px;
    padding: 0 8px;
    border-radius: 11px;
    box-sizing: border-box;
    justify-content: flex-start;
    white-space: nowrap;
}

/* Same width on each column so Fixed lines up with Urgent, and Regular with Normal.
   The groups are pushed to the right edge, so unequal word lengths were shifting the circles. */
.req-choice-panel .d365-radio:first-child[b-7wyr3xt7rm] {
    width: 5.75rem;
}

.req-choice-panel .d365-radio:last-child[b-7wyr3xt7rm] {
    width: 6.25rem;
}

.req-choice-panel .d365-radio.is-on[b-7wyr3xt7rm] {
    background: rgba(0, 120, 212, 0.12);
}

.req-choice-panel .d365-radio.is-on span[b-7wyr3xt7rm] {
    font-weight: 600;
    color: #0b5cab;
}

.req-choice-panel[b-7wyr3xt7rm]  .tms-date {
    display: block;
    width: 100%;
}

.req-choice-panel[b-7wyr3xt7rm]  .tms-date > .tms-date-text {
    width: 100%;
    box-sizing: border-box;
}

.req-list tr.voided[b-7wyr3xt7rm] {
    opacity: 0.6;
}

.req-grid .cmf-container-grid-table[b-7wyr3xt7rm] {
    width: 100%;
    table-layout: fixed;
}

/* Process trail strip sits between the command bar and the form card. The card row keeps its
   own g-4 top gutter, so the strip only needs a small gap under itself. */
.req-process-trail[b-7wyr3xt7rm] {
    margin: 0 0 8px 0;
}

/* Compact, borderless cells: inputs fill the row like the CMF container grid */
[b-7wyr3xt7rm] .cmf-container-detail-grid.cmf-container-detail-grid {
    border: 1px solid #edebe9;
    border-radius: 2px;
    background: #fff;
}

[b-7wyr3xt7rm] .cmf-container-detail-grid td .d365-form-control,
[b-7wyr3xt7rm] .cmf-container-detail-grid td input.d365-form-control,
[b-7wyr3xt7rm] .cmf-container-detail-grid td select.d365-form-control {
    width: 100%;
    height: 26px;
    padding: 0 6px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 12px;
    color: #323130;
}

[b-7wyr3xt7rm] .cmf-container-detail-grid td input.d365-form-control:hover:not(:disabled),
[b-7wyr3xt7rm] .cmf-container-detail-grid td select.d365-form-control:hover:not(:disabled) {
    background: #f5f5f5;
}

[b-7wyr3xt7rm] .cmf-container-detail-grid td input.d365-form-control:focus,
[b-7wyr3xt7rm] .cmf-container-detail-grid td select.d365-form-control:focus {
    background: #fff;
    box-shadow: inset 0 0 0 1px #0078d4;
    outline: none;
}

[b-7wyr3xt7rm] .cmf-container-detail-grid td input.d365-form-control:disabled,
[b-7wyr3xt7rm] .cmf-container-detail-grid td select.d365-form-control:disabled {
    background: transparent;
    color: #605e5c;
}

[b-7wyr3xt7rm] .cmf-container-detail-grid td {
    vertical-align: middle;
}

/* Editable grid toolbar keeps the CMF compact height */
[b-7wyr3xt7rm] .cmf-container-detail-grid .d365-editable-grid-toolbar {
    border-bottom: 1px solid #edebe9;
}

.req-manual-desc[b-7wyr3xt7rm] {
    display: inline-block;
    width: auto;
    min-height: 1.2rem;
    margin: 0 0 0 12px;
    padding-left: 2.5em;
    vertical-align: middle;
    font-size: 12px;
    line-height: 1.2;
    color: #323130;
}

.req-manual-desc .form-check-label[b-7wyr3xt7rm] {
    font-size: 12px;
    line-height: 1;
    color: #323130;
    cursor: pointer;
}

.req-manual-desc .form-check-input:disabled[b-7wyr3xt7rm],
.req-manual-desc .form-check-input:disabled + .form-check-label[b-7wyr3xt7rm] {
    cursor: default;
}

/* Row-1 radios — Fluent style: empty ring, or brand circle with a white center. */
.d365-radio-group[b-7wyr3xt7rm] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 32px;
    background: transparent;
    border: none;
}

.d365-radio[b-7wyr3xt7rm] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    color: #242424;
    background: transparent;
    border: none;
    user-select: none;
}

.d365-radio input[b-7wyr3xt7rm] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 auto;
    border: 1px solid #616161;
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-content: center;
    box-sizing: border-box;
}

.d365-radio input[b-7wyr3xt7rm]::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
}

.d365-radio.is-on input[b-7wyr3xt7rm] {
    border-color: var(--d365-primary, #0078d4);
    background: var(--d365-primary, #0078d4);
}

.d365-radio.is-on input[b-7wyr3xt7rm]::before {
    transform: scale(1);
}

.d365-radio:hover:not(:has(input:disabled)) input[b-7wyr3xt7rm] {
    border-color: #242424;
}

.d365-radio.is-on:hover:not(:has(input:disabled)) input[b-7wyr3xt7rm] {
    border-color: var(--d365-primary, #0078d4);
    background: var(--d365-primary, #0078d4);
}

.d365-radio input:disabled[b-7wyr3xt7rm] {
    cursor: default;
}

.d365-radio.is-on input:disabled[b-7wyr3xt7rm] {
    border-color: #6cb8f6;
    background: #6cb8f6;
}

.d365-radio:has(input:disabled)[b-7wyr3xt7rm] {
    cursor: default;
    color: #242424;
}

.d365-radio input:focus-visible[b-7wyr3xt7rm] {
    outline: 2px solid rgba(0, 120, 212, 0.35);
    outline-offset: 2px;
}

/* Remarks sits beside the dates: same 32px height, capped so it does not run to the row end. */
.req-remarks-field[b-7wyr3xt7rm] {
    /* 210px Document selector + 12px gap sit beside Remarks, so the row keeps its original width. */
    width: 836px;
    max-width: 836px;
}

/* Request Date must fill its col-auto like the selects do. The shared tms-date.css rule
   (".row .col-auto > .tms-date { width: auto }") shrank it to the text width, which left a hole
   between the Request Date field and Facility while every other column touched its neighbour. */
[b-7wyr3xt7rm] .cmf-form-first-row .col-auto > .tms-date {
    width: 100%;
    display: block;
}

[b-7wyr3xt7rm] .cmf-form-first-row .col-auto > .tms-date > .tms-date-text {
    width: 100%;
    box-sizing: border-box;
}

[b-7wyr3xt7rm] .req-remarks-field textarea.d365-form-control {
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    padding: 4px 10px;
    line-height: 22px;
    resize: none;
    overflow: hidden;
}

/* Document: plain text readout, no box. The type is picked once in the New chevron, so this only
   reports which one is open - it must not look like a control (no border, no hover, no cursor).
   Sized like the fields beside it (32px line box, 13px) so the row baseline stays aligned, and it
   truncates with an ellipsis instead of clipping mid-word. */
.req-doc-value[b-7wyr3xt7rm] {
    display: block;
    height: 32px;
    line-height: 32px;
    padding: 0 2px;
    font-size: 13px;
    font-weight: 500;
    color: #323130;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

/* Choice strip: one left line for Requisition Type, Need Mode, and Need Date. */
.cmf-form[b-7wyr3xt7rm] {
    position: relative;
}

/* Out of the field row so a taller strip does not drop ID / Facility / dates. */
.req-choice-strip[b-7wyr3xt7rm] {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 320px;
    margin: 0;
    padding: 6px 12px 8px 12px;
    background: #f3f2f1;
    border-radius: 4px;
    border-left: 3px solid var(--d365-primary, #0078d4);
}

.req-choice-row[b-7wyr3xt7rm] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-height: 28px;
    padding: 0;
}

.req-choice-row:has(.d365-radio-group)[b-7wyr3xt7rm] {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}

.req-choice-row:has(.d365-radio-group) .d365-form-label[b-7wyr3xt7rm] {
    width: 112px;
    min-width: 112px;
    flex: 0 0 112px;
    margin-bottom: 0;
    white-space: nowrap;
}

.req-choice-row .d365-radio-group[b-7wyr3xt7rm] {
    height: 24px;
    flex: 0 0 auto;
    gap: 14px;
}

.req-choice-row .d365-radio:first-of-type[b-7wyr3xt7rm] {
    width: 76px;
    min-width: 76px;
}
[b-7wyr3xt7rm] .req-choice-row input.req-need-date.d365-form-control {
    width: 180px;
    max-width: 180px;
    height: 28px;
    min-height: 28px;
    padding: 2px 6px;
    font-size: 12px;
    background: #eceae6;
}

/* Filter button that expands / collapses the legacy frmSearchRequisition criteria. */
.req-list-filter-bar[b-7wyr3xt7rm] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
}

.req-filter-toggle[b-7wyr3xt7rm] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 2px 10px;
    font-size: 12px;
}

.req-filter-toggle .bi-chevron-up[b-7wyr3xt7rm],
.req-filter-toggle .bi-chevron-down[b-7wyr3xt7rm] {
    font-size: 10px;
    opacity: 0.7;
}

.req-filter-toggle.is-open[b-7wyr3xt7rm] {
    background: #eaf3fb;
    border-color: var(--d365-primary, #0078d4);
    color: var(--d365-primary, #0078d4);
}

.req-filter-count[b-7wyr3xt7rm] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--d365-primary, #0078d4);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
}

.req-filter-summary[b-7wyr3xt7rm] {
    font-size: 11px;
    color: #605e5c;
}

.req-filter-clear-inline[b-7wyr3xt7rm] {
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
}
/* Legacy frmSearchRequisition (F3 Search): advanced list filters above the records grid. */
.req-list-filters[b-7wyr3xt7rm] {
    margin: 0 0 10px 0;
    padding: 10px 12px;
    background: #f3f2f1;
    border: 1px solid #e1dfdd;
    border-radius: 4px;
}

.req-list-filters-row[b-7wyr3xt7rm] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px 14px;
}

.req-list-filter[b-7wyr3xt7rm] {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 130px;
}

.req-list-filter .d365-form-label[b-7wyr3xt7rm] {
    margin-bottom: 0;
    font-size: 11px;
}

.req-list-filter .d365-form-control[b-7wyr3xt7rm] {
    height: 28px;
    min-height: 28px;
    padding: 2px 6px;
    font-size: 12px;
}

.req-list-filter-check[b-7wyr3xt7rm],
.req-list-filter-action[b-7wyr3xt7rm] {
    min-width: 0;
    justify-content: flex-end;
    height: 28px;
}

.req-list-filter-check .d365-checkbox-inline[b-7wyr3xt7rm] {
    margin-bottom: 0;
    font-size: 12px;
    white-space: nowrap;
}

.req-list-filter-action .d365-btn[b-7wyr3xt7rm] {
    height: 28px;
    padding: 2px 10px;
    font-size: 12px;
}

/* ---------------------------------------------------------------------------------------------
   Detail grid - Item cell.
   The code sits in the vertical middle of the name. The name is two lines (bold, then italic
   specification) and the rest is revealed with the chevron.
   --------------------------------------------------------------------------------------------- */
.store-req-item-cell[b-7wyr3xt7rm] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding-left: 6px;
}

.req-item-codebox[b-7wyr3xt7rm] {
    flex: 0 0 8.5rem;
    width: 8.5rem;
    min-width: 0;
}

.req-item-codebox[b-7wyr3xt7rm]  .store-item-search {
    width: 100% !important;
}

.req-item-code[b-7wyr3xt7rm] {
    flex: 0 0 auto;
    align-self: center;
    font-weight: 400;
    line-height: 1.25;
    white-space: nowrap;
}

.store-req-item-name[b-7wyr3xt7rm] {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
}

.store-req-item-text[b-7wyr3xt7rm] {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
    overflow-wrap: break-word;
    word-break: break-word;
}

.store-req-item-text.is-clamped[b-7wyr3xt7rm] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.store-req-item-main[b-7wyr3xt7rm] {
    display: block;
    font-weight: 700;
}

.store-req-item-sub[b-7wyr3xt7rm] {
    display: block;
    font-style: italic;
    font-size: calc(1em - 2px);
    opacity: 0.72;
}

.store-req-item-expand[b-7wyr3xt7rm] {
    flex: 0 0 auto;
    align-self: center;
    padding: 0 2px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--d365-primary, #0078d4);
    line-height: 1;
    cursor: pointer;
}

.store-req-item-expand:hover[b-7wyr3xt7rm] {
    background: rgba(0, 120, 212, 0.12);
}

.store-req-item-expand .bi[b-7wyr3xt7rm] {
    font-size: 11px;
}

/* Row delete in the detail grid: red, so a destructive action never reads like a neutral icon. */
.d365-btn.store-req-row-delete[b-7wyr3xt7rm] {
    color: #d13438;
    background: transparent;
    border-color: transparent;
}

.d365-btn.store-req-row-delete:hover:not(:disabled)[b-7wyr3xt7rm],
.d365-btn.store-req-row-delete:focus-visible:not(:disabled)[b-7wyr3xt7rm] {
    color: #a4262c;
    background: #fde7e9;
    border-color: #f3b6ba;
}

.d365-btn.store-req-row-delete:disabled[b-7wyr3xt7rm] {
    color: #c8c6c4;
}

.store-req-row-delete .bi[b-7wyr3xt7rm] {
    font-size: 14px;
}
/* /Components/Pages/StoreSale.razor.rz.scp.css */
/*
    Store Sale.

    Layout follows the Purchase Order form: fixed-width header rows (never bootstrap columns), an
    editable detail grid, and a money stack on the right of the footer. The rules are page-scoped so
    nothing here can drift into another store screen.
*/

/* Header rows: one line each, fields sized to their content. `overflow: visible` keeps the
   AutoComplete dropdowns from being clipped (autocomplete-dropdown-overflow rule). */
.sale-header-row[b-b7uycnq6by] {
    row-gap: 0.5rem;
}

.sale-customer-field[b-b7uycnq6by] {
    width: 26rem;
    overflow: visible;
}

/* Invoice posting mode. Reads as a status, not a control: the operator must not think they can
   flip it here - it is a system policy. */
.sale-policy[b-b7uycnq6by] {
    width: 10.5rem;
}

.sale-policy-pill[b-b7uycnq6by] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 12px;
    border: 1px solid #dbe8f2;
    background: #f6fbfe;
    color: #0078d4;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: default;
}

.sale-policy-pill.is-batch[b-b7uycnq6by] {
    border-color: #e8e4de;
    background: #faf9f8;
    color: #8a6d3b;
}

/* A line that exceeds the availability shown beside it. Colour only - the operator can still fix
   the quantity, so this must not look like a hard error yet. */
.sale-line-over-stock .d365-form-control[b-b7uycnq6by] {
    border-color: #d1a1a1;
}

/* ---- footer ---- */
.sale-settle[b-b7uycnq6by] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #edebe9;
}

.sale-settle-side[b-b7uycnq6by] {
    flex: 1 1 auto;
    min-width: 0;
}

.sale-settle-note[b-b7uycnq6by] {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    max-width: 34rem;
    color: #605e5c;
    font-size: 11.5px;
    line-height: 1.45;
}

.sale-settle-note > i[b-b7uycnq6by] {
    color: #0078d4;
    margin-top: 1px;
    flex: 0 0 auto;
}

/* Money stack: labels left, figures right, tabular so the columns line up as values change. */
.sale-money[b-b7uycnq6by] {
    flex: 0 0 19rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sale-money-row[b-b7uycnq6by] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 26px;
    padding: 0 2px;
}

.sale-money-label[b-b7uycnq6by] {
    font-size: 11.5px;
    font-weight: 600;
    color: #605e5c;
    white-space: nowrap;
    margin: 0;
}

.sale-money-value[b-b7uycnq6by] {
    font-size: 12.5px;
    font-weight: 700;
    color: #323130;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sale-money-input[b-b7uycnq6by] {
    width: 8.5rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sale-money-row-strong[b-b7uycnq6by] {
    margin-top: 2px;
    padding-top: 4px;
    border-top: 1px solid #edebe9;
}

.sale-money-row-strong .sale-money-label[b-b7uycnq6by] {
    color: #323130;
    font-weight: 700;
}

.sale-money-row-strong .sale-money-value[b-b7uycnq6by] {
    font-size: 13.5px;
    color: #0078d4;
}

/* Balance is what is still owed - the one number that matters for collection. */
.sale-money-row-balance .sale-money-value[b-b7uycnq6by] {
    color: #8a6d3b;
}

.sale-row-delete[b-b7uycnq6by] {
    color: #a4262c;
}

@media (max-width: 1200px) {
    .sale-customer-field[b-b7uycnq6by] {
        width: 20rem;
    }

    .sale-settle[b-b7uycnq6by] {
        flex-direction: column;
    }

    .sale-money[b-b7uycnq6by] {
        flex: 1 1 auto;
        width: 100%;
    }
}
/* /Components/Pages/StoreVendorCoding.razor.rz.scp.css */
.vendor-page-layout[b-7l0055q0uq] {
    align-items: start;
}

.vendor-form-card :deep(.d365-card-body)[b-7l0055q0uq] {
    padding-top: 12px;
    padding-bottom: 12px;
}

.vendor-form-grid[b-7l0055q0uq] {
    row-gap: 0.5rem !important;
}

.vendor-form-section[b-7l0055q0uq] {
    margin-top: 6px;
    padding-top: 4px;
}

.vendor-form-section-secondary[b-7l0055q0uq] {
    margin-top: 2px;
}

.vendor-toggle-wrap[b-7l0055q0uq] {
    min-height: 32px;
}

.vendor-toggle-field[b-7l0055q0uq] {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.vendor-toggle-label[b-7l0055q0uq] {
    font-size: 12px;
    color: #8b7355;
}

.vendor-toggle-switch[b-7l0055q0uq] {
    position: relative;
    display: inline-flex;
    width: 34px;
    height: 18px;
    cursor: pointer;
}

.vendor-toggle-switch input[b-7l0055q0uq] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.vendor-toggle-slider[b-7l0055q0uq] {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: all 0.15s ease;
}

.vendor-toggle-slider[b-7l0055q0uq]::before {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    left: 2px;
    top: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.15s ease;
}

.vendor-toggle-switch input:checked + .vendor-toggle-slider[b-7l0055q0uq] {
    background: #2266e3;
}

.vendor-toggle-switch input:checked + .vendor-toggle-slider[b-7l0055q0uq]::before {
    transform: translateX(16px);
}

.vendor-toggle-switch input:disabled + .vendor-toggle-slider[b-7l0055q0uq] {
    opacity: 0.55;
    cursor: not-allowed;
}

.vendor-list-card :deep(.d365-card-header)[b-7l0055q0uq] {
    min-height: 46px;
    padding: 10px 16px;
}

.vendor-list-card :deep(.d365-card-title)[b-7l0055q0uq] {
    font-size: 1rem;
    font-weight: 600;
}

.vendor-list-card :deep(.d365-search)[b-7l0055q0uq] {
    min-width: 240px;
}

.vendor-list-card :deep(.d365-search-input)[b-7l0055q0uq] {
    height: 30px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.vendor-list-card :deep(.d365-grid thead th)[b-7l0055q0uq] {
    padding: 8px 12px;
    font-size: 0.76rem;
    letter-spacing: 0.3px;
}

.vendor-list-scroll[b-7l0055q0uq] {
    width: 100%;
    overflow: auto;
}

.vendor-list-grid[b-7l0055q0uq] {
    width: 100%;
}

.vendor-list-grid :deep(thead th)[b-7l0055q0uq] {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8f9fb;
    box-shadow: inset 0 -1px 0 #e5e7eb;
}

.vendor-list-card :deep(.d365-grid tbody td)[b-7l0055q0uq] {
    padding: 8px 12px;
    font-size: 0.9rem;
    line-height: 1.25;
}

.vendor-list-card :deep(.d365-grid tbody tr)[b-7l0055q0uq] {
    height: 38px;
}

.vendor-list-card :deep(.d365-grid tbody tr.selected)[b-7l0055q0uq] {
    background: #eef4ff;
}

.vendor-list-card :deep(.d365-badge)[b-7l0055q0uq] {
    min-width: 58px;
    justify-content: center;
}

.vendor-category-picker[b-7l0055q0uq] {
    position: relative;
}

.vendor-category-box[b-7l0055q0uq] {
    width: 100%;
    min-height: 56px;
    border: 1px solid #d5d0c8;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vendor-category-box:hover[b-7l0055q0uq],
.vendor-category-box:focus-within[b-7l0055q0uq] {
    border-color: #2266e3;
    box-shadow: 0 0 0 1px rgba(34, 102, 227, 0.12);
}

.vendor-category-box.disabled[b-7l0055q0uq] {
    background: #f8f9fa;
    border-color: #e8e4de;
}

.vendor-category-capsules[b-7l0055q0uq] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vendor-category-capsule[b-7l0055q0uq] {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: none;
    background: #edf4ff;
    color: #174ea6;
    font-size: 0.84rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.vendor-category-capsule:hover:not(:disabled)[b-7l0055q0uq] {
    background: #dce9ff;
}

.vendor-category-capsule.selected[b-7l0055q0uq] {
    background: #dce9ff;
    color: #0f4ec9;
    box-shadow: inset 0 0 0 1px rgba(34, 102, 227, 0.18);
}

.vendor-category-capsule:disabled[b-7l0055q0uq] {
    cursor: default;
    opacity: 0.75;
}

.vendor-category-empty[b-7l0055q0uq] {
    color: #8a8886;
}

@media (min-width: 1200px) {
    .vendor-form-card :deep(textarea.d365-form-control)[b-7l0055q0uq] {
        min-height: 48px;
    }

    .vendor-form-card :deep(.d365-form-section-title)[b-7l0055q0uq] {
        margin-bottom: 8px;
    }
}
/* /Components/Pages/SupplierMaster.razor.rz.scp.css */
.cmf-form input.supplier-plain[b-4tdwy57nee] {
    text-transform: none;
}

.supplier-credit-days[b-4tdwy57nee] {
    width: 8.5rem;
    margin-left: auto;
}

.supplier-status-end[b-4tdwy57nee] {
    align-self: flex-start;
    margin-top: 0;
}

.supplier-capsules[b-4tdwy57nee] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin: 0;
}

.supplier-phone-box .supplier-capsules[b-4tdwy57nee] {
    flex-wrap: nowrap;
    min-width: 0;
}

.supplier-capsule[b-4tdwy57nee] {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    max-width: 100%;
    height: 18px;
    padding: 0 0.35rem;
    border: 1px solid #c7e0f4;
    border-radius: 9px;
    background: #f3f9fd;
    color: #212529;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.supplier-capsule-x[b-4tdwy57nee] {
    border: 0;
    padding: 0;
    background: transparent;
    color: #605e5c;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.supplier-phone-box[b-4tdwy57nee] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 32px;
    min-height: 32px;
    border-bottom: 1px solid #d5d0c8;
    box-sizing: border-box;
}

.supplier-phone-box .d365-form-control[b-4tdwy57nee] {
    flex: 1 1 auto;
    min-width: 4rem;
    height: 30px;
    border-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.supplier-mini-plus[b-4tdwy57nee] {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 1px solid #c7e0f4;
    border-radius: 2px;
    background: #fff;
    color: #0078d4;
    font-size: 0.65rem;
    line-height: 1;
    cursor: pointer;
}

.supplier-mini-plus:hover:not(:disabled)[b-4tdwy57nee] {
    background: #e8f4fd;
}

.supplier-mini-plus:disabled[b-4tdwy57nee] {
    color: #c8c6c4;
    border-color: #edebe9;
    cursor: not-allowed;
}

.supplier-web-line[b-4tdwy57nee] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    height: 32px;
}

.supplier-scheme[b-4tdwy57nee] {
    flex: 0 0 auto;
    height: 22px;
    padding: 0 0.4rem;
    border: 1px solid #bfc5cb;
    border-radius: 9px;
    background: #fff;
    color: #212529;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.supplier-scheme.is-on[b-4tdwy57nee] {
    border-color: #0d6efd;
    background: #eef5ff;
    color: #0d6efd;
}

.supplier-scheme:disabled[b-4tdwy57nee] {
    cursor: default;
}

.supplier-scheme.is-on:disabled[b-4tdwy57nee] {
    opacity: 1;
}

.supplier-web-box[b-4tdwy57nee] {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 32px;
}

.supplier-web-box .d365-form-control[b-4tdwy57nee] {
    width: 100%;
    padding-right: 1.1rem;
}

.supplier-web-open[b-4tdwy57nee] {
    position: absolute;
    top: -0.28rem;
    right: 0.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #0078d4;
    font-size: 0.62rem;
    line-height: 1;
    cursor: pointer;
}

.supplier-category-row[b-4tdwy57nee] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.supplier-category-row .d365-form-label[b-4tdwy57nee] {
    margin-bottom: 0;
}

.supplier-category-empty[b-4tdwy57nee] {
    font-size: 0.72rem;
    color: #8a8886;
}

button.supplier-category[b-4tdwy57nee] {
    cursor: pointer;
}

button.supplier-category.is-on[b-4tdwy57nee] {
    border-color: #0d6efd;
    background: #eef5ff;
    color: #0d6efd;
}

button.supplier-category:disabled[b-4tdwy57nee] {
    cursor: default;
}

button.supplier-category.is-on:disabled[b-4tdwy57nee] {
    opacity: 1;
}
/* /Components/Pages/Terminal/ContainerMovementForm.razor.rz.scp.css */
/* ============================
   CMF Page-Specific Styles
   (Shared cmf-form/label/field/grid styles are in cmf-shared.css)
   ============================ */

/* Vessel & ports section header: aging tag on the right (RO Details capsule look, slightly larger) */
.cmf-party-flyout-section-head-right[b-2k1m8h45yk] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Aging capsule inside the "Party details" flyout. Reduced back by 2px: the +2px font increase
   belongs to the front summary strip capsule below, not to this details panel. */
.cmf-vessel-aging-capsule[b-2k1m8h45yk] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0078d4;
    color: #fff;
    border-radius: 999px;
    padding: 4px 14px;
    min-height: 24px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: default;
    box-sizing: border-box;
}

.cmf-vessel-aging-capsule-label[b-2k1m8h45yk] {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.cmf-vessel-aging-capsule-value[b-2k1m8h45yk] {
    font-size: 14px;
    font-weight: 700;
}

.cmf-vessel-aging-capsule-unit[b-2k1m8h45yk] {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.9;
}

/* Front summary strip (shared PartyInfoStrip) — Aging capsule only, +2px over the shared
   10px badge. Scoped to CMF so RO's strip keeps the shared size. */
[b-2k1m8h45yk] .cmf-party-info-strip .container-info-badge-aging {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 10px;
}

/* Customer field: label + Consignee/Shipper capsule above input */
.cmf-customer-field-head[b-2k1m8h45yk] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
    min-height: 1.35rem;
}
[b-2k1m8h45yk] .d365-btn-receipt:hover:not(:disabled) {
    background: #fff176 !important;
    border-color: #f57f17 !important;
}

/* RO linked field */
.ro-linked[b-2k1m8h45yk] { background-color: #e3f2fd !important; }

/* Payment Mode Colors */
.payment-cash[b-2k1m8h45yk] { background-color: #e8f5e9 !important; }
.payment-billing[b-2k1m8h45yk] { background-color: #e3f2fd !important; }
.payment-nobilling[b-2k1m8h45yk] { background-color: #fff3e0 !important; }

/* Status Bar */
.movement-status-bar[b-2k1m8h45yk] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 8px 16px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}
.status-left[b-2k1m8h45yk], .status-right[b-2k1m8h45yk] { display: flex; align-items: center; gap: 8px; }
.status-item[b-2k1m8h45yk] { display: flex; align-items: center; gap: 4px; }
.status-item i[b-2k1m8h45yk] { color: #6c757d; }
.status-divider[b-2k1m8h45yk] { color: #dee2e6; }
.status-badge[b-2k1m8h45yk] { padding: 4px 10px; border-radius: 4px; font-weight: 600; font-size: 0.75rem; text-transform: uppercase; }
.status-view[b-2k1m8h45yk] { background: #e3f2fd; color: #1976d2; }
.status-new[b-2k1m8h45yk] { background: #e8f5e9; color: #388e3c; }
.status-edit[b-2k1m8h45yk] { background: #fff3e0; color: #f57c00; }
.status-void[b-2k1m8h45yk] { background: #ffebee; color: #d32f2f; }

/* Loading */
.loading-container[b-2k1m8h45yk] { display: flex; justify-content: center; align-items: center; height: 300px; }
.loading-content[b-2k1m8h45yk] { text-align: center; }

/* Legacy compat */
.trans-no-input[b-2k1m8h45yk] { background-color: #fff3cd !important; font-weight: bold; font-size: 1.1em; }
.readonly-field[b-2k1m8h45yk] { background-color: #e9ecef !important; }
.highlight-field[b-2k1m8h45yk] { background-color: #fffde7 !important; }
.required[b-2k1m8h45yk]::after { content: " *"; color: #d32f2f; }

/* Shift Toggle */
.shift-toggle-pill[b-2k1m8h45yk] {
    display: flex;
    gap: 4px;
    align-items: center;
    background: #e8f4fc;
    padding: 3px;
    border-radius: 16px;
}
.shift-pill[b-2k1m8h45yk] {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #90caf9;
}
.shift-pill:hover:not(:disabled):not(.active)[b-2k1m8h45yk] { background: rgba(33, 150, 243, 0.1); color: #2196f3; }
.shift-pill.active.day[b-2k1m8h45yk] { background: #2196f3; color: white; box-shadow: 0 1px 4px rgba(33, 150, 243, 0.4); }
.shift-pill.active.night[b-2k1m8h45yk] { background: #1565c0; color: white; box-shadow: 0 1px 4px rgba(21, 101, 192, 0.4); }
.shift-pill:disabled[b-2k1m8h45yk] { opacity: 0.5; cursor: not-allowed; }
.shift-pill i[b-2k1m8h45yk] { font-size: 0.7rem; }

/* Container Grid - Repair Estimate FO style */
[b-2k1m8h45yk] .cmf-container-detail-grid .container-no-input,
[b-2k1m8h45yk] .cmf-container-detail-grid .container-no {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .from-ro {
    background-color: #e3f2fd !important;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .charges-cell {
    font-weight: 600;
    color: #2e7d32;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .condition-sound { color: #107c10; font-weight: 500; }
[b-2k1m8h45yk] .cmf-container-detail-grid .condition-dirty,
[b-2k1m8h45yk] .cmf-container-detail-grid .condition-oily,
[b-2k1m8h45yk] .cmf-container-detail-grid .condition-dirty-oily { color: #ca5010; font-weight: 500; }
[b-2k1m8h45yk] .cmf-container-detail-grid .condition-damage,
[b-2k1m8h45yk] .cmf-container-detail-grid .condition-damage-dirty { color: #d13438; font-weight: 500; }

[b-2k1m8h45yk] .cmf-container-detail-grid tr.has-error {
    background-color: #fff5f5 !important;
}

[b-2k1m8h45yk] .cmf-container-detail-grid tr.has-error td {
    background-color: #fff5f5 !important;
}

[b-2k1m8h45yk] .cmf-container-detail-grid tr.has-error:hover,
[b-2k1m8h45yk] .cmf-container-detail-grid tr.has-error:hover td {
    background-color: #ffecec !important;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .cell-error,
[b-2k1m8h45yk] .cmf-container-detail-grid .cell-warning {
    display: flex;
    align-items: center;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .input-error {
    border: 1px solid #d32f2f !important;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .input-warning {
    border: 1px solid #f9a825 !important;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .error-icon {
    margin-left: 4px;
    flex-shrink: 0;
    cursor: help;
    color: #d32f2f;
    font-size: 14px;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .warning-icon {
    margin-left: 4px;
    flex-shrink: 0;
    cursor: help;
    color: #f9a825;
    font-size: 14px;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .btn-ghost {
    border: none;
    background: transparent;
    color: #605e5c;
    padding: 2px 4px;
    line-height: 1;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .btn-ghost:hover:not(:disabled) {
    color: #0078d4;
    background: #f3f2f1;
    border-radius: 4px;
}

/* Compact column widths + centered data cells */
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-container-grid-table {
    table-layout: fixed;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-select { width: 32px; }
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-trail { width: 32px; }
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-cno { width: 98px; }      /* 11-char container no */
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-size { width: 50px; }     /* e.g. 20DRY, 40HC */
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-seal { width: 68px; }
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-status { width: 58px; }   /* Empty / Loaded */
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-condition { width: 82px; }
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-kind { width: 58px; }
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-area { width: 42px; }
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-gross { width: 80px; }
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-checked { width: 64px; }
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-charges { width: 80px; }
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-eir { width: auto; }

[b-2k1m8h45yk] .cmf-container-detail-grid td:last-child .cmf-eir-remarks-cell {
    width: 100%;
    gap: 2px;
}

[b-2k1m8h45yk] .cmf-container-detail-grid td:last-child .cmf-eir-remarks-cell input,
[b-2k1m8h45yk] .cmf-container-detail-grid td:last-child .cmf-eir-remarks-cell span {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px !important;
}

[b-2k1m8h45yk] .cmf-container-detail-grid td:last-child .cmf-eir-remarks-cell .cmf-eir-remarks-btn {
    flex-shrink: 0;
    margin-left: auto;
    line-height: 1;
}

[b-2k1m8h45yk] .cmf-container-detail-grid td:last-child .cmf-eir-remarks-cell .cmf-eir-remarks-btn .bi-three-dots {
    font-size: 14px;
    color: #605e5c;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-grid-col-center .d365-grid-cell {
    justify-content: center;
    text-align: center;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-grid-col-center .d365-grid-cell input,
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-grid-col-center .d365-grid-cell select,
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-grid-col-center .d365-grid-cell span {
    text-align: center;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-grid-col-center .d365-grid-cell select {
    padding-left: 4px;
    padding-right: 16px;
    background-position: right 2px center;
}

[b-2k1m8h45yk] .cmf-container-detail-grid td.cmf-grid-col-center {
    text-align: center;
    vertical-align: middle;
}

[b-2k1m8h45yk] .cmf-container-detail-grid td.cmf-grid-col-center > .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-cno .container-no-input,
[b-2k1m8h45yk] .cmf-container-detail-grid .cmf-col-cno .container-no {
    width: 100%;
    max-width: 11ch;
}

/* Edit mode: taller rows + wider cols so dropdown text (Empty/Loaded/Sound) is fully visible */
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table {
    table-layout: auto;
    min-width: 100%;
}

[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-cno { width: 118px; min-width: 118px; }
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-size { width: 72px; min-width: 72px; }
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-seal { width: 78px; min-width: 70px; }
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-status { width: 86px; min-width: 82px; } /* Empty / Loaded */
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-condition { width: 100px; min-width: 92px; }
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-kind { width: 78px; min-width: 72px; }
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-area { width: 64px; min-width: 56px; }
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-gross { width: 96px; min-width: 88px; }
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-checked { width: 78px; min-width: 70px; }
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-charges { width: 88px; min-width: 80px; }

[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-fo-editable thead th {
    height: 32px;
    padding: 6px 8px;
    white-space: nowrap;
}

[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-fo-editable td {
    height: 32px;
}

[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell {
    min-height: 30px;
    height: 100%;
    padding: 2px 4px;
    overflow: visible;
}

[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell input:not([type="radio"]):not([type="checkbox"]),
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell select {
    height: 26px;
    font-size: 12px;
    line-height: 1.2;
    min-width: 0;
    width: 100%;
}

/* Keep row-select radios at original compact size (do not stretch like text inputs). */
[b-2k1m8h45yk] .cmf-container-detail-grid .d365-grid-cell input[type="radio"],
[b-2k1m8h45yk] .cmf-container-detail-grid .d365-grid-cell input[type="checkbox"],
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell input[type="radio"],
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    margin: 0;
    padding: 0;
    flex: 0 0 14px;
}

[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-grid-col-center .d365-grid-cell select {
    padding-left: 2px;
    padding-right: 18px;
    background-position: right 3px center;
    text-overflow: clip;
}

[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-cno .container-no-input,
[b-2k1m8h45yk] .cmf-container-detail-grid.cmf-container-grid-editing .cmf-col-cno .container-no {
    max-width: none;
}

html[data-form-theme="fluent-ui"][b-2k1m8h45yk]  .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table fluent-text-field.cmf-fluent-grid-cell-field,
html[data-form-theme="fluent-ui"][b-2k1m8h45yk]  .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table fluent-select.cmf-fluent-grid-cell-field,
html[data-form-theme="fluent-ui"][b-2k1m8h45yk]  .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table fluent-number-field.cmf-fluent-grid-cell-field {
    width: 100%;
    min-width: 0;
    height: 28px;
    margin: 0;
    --design-unit: 4;
}

html[data-form-theme="fluent-ui"][b-2k1m8h45yk]  .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table fluent-text-field.cmf-fluent-grid-cell-field::part(root),
html[data-form-theme="fluent-ui"][b-2k1m8h45yk]  .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table fluent-select.cmf-fluent-grid-cell-field::part(root),
html[data-form-theme="fluent-ui"][b-2k1m8h45yk]  .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table fluent-number-field.cmf-fluent-grid-cell-field::part(root) {
    min-height: 28px;
    height: 28px;
}

html[data-form-theme="fluent-ui"][b-2k1m8h45yk]  .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table fluent-text-field.cmf-fluent-grid-cell-field::part(control),
html[data-form-theme="fluent-ui"][b-2k1m8h45yk]  .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table fluent-select.cmf-fluent-grid-cell-field::part(control),
html[data-form-theme="fluent-ui"][b-2k1m8h45yk]  .cmf-container-detail-grid.cmf-container-grid-editing .cmf-container-grid-table fluent-number-field.cmf-fluent-grid-cell-field::part(control) {
    min-height: 26px;
    font-size: 12px;
}

/* Container Grid */
.container-count[b-2k1m8h45yk] { margin-left: auto; color: #6c757d; font-weight: 500; }
.container-no-input[b-2k1m8h45yk] { text-transform: uppercase; font-family: 'Consolas', monospace; font-weight: bold; }
.container-no[b-2k1m8h45yk] { font-family: 'Consolas', monospace; font-weight: bold; }
.from-ro[b-2k1m8h45yk] { background-color: #e3f2fd !important; }
.charges-cell[b-2k1m8h45yk] { font-weight: 600; color: #2e7d32; }
.empty-grid-message[b-2k1m8h45yk] { padding: 15px; text-align: center; color: #9e9e9e; }
.empty-grid-message i[b-2k1m8h45yk] { font-size: 1.5rem; margin-bottom: 4px; display: block; }
.empty-grid-message p[b-2k1m8h45yk] { margin: 0; font-weight: 500; font-size: 12px; }
.empty-grid-message small[b-2k1m8h45yk] { color: #bdbdbd; font-size: 11px; }
.status-empty[b-2k1m8h45yk] { color: #ff9800; }
.status-loaded[b-2k1m8h45yk] { color: #4caf50; font-weight: 600; }

/* Movements Grid */
.movements-grid tbody tr[b-2k1m8h45yk] { cursor: pointer; transition: background 0.15s; }
.movements-grid tbody tr:hover[b-2k1m8h45yk] { background-color: #e3f2fd !important; }
.movements-grid tbody tr.selected[b-2k1m8h45yk] { background-color: #bbdefb !important; }
.movements-grid tbody tr.voided[b-2k1m8h45yk] { opacity: 0.5; text-decoration: line-through; }
.activity-badge[b-2k1m8h45yk] { padding: 2px 6px; border-radius: 3px; font-size: 0.75rem; font-weight: 500; }
.activity-in[b-2k1m8h45yk] { background: #e8f5e9; color: #2e7d32; }
.activity-out[b-2k1m8h45yk] { background: #fff3e0; color: #ef6c00; }
.clear-search[b-2k1m8h45yk] { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: none; color: #9e9e9e; cursor: pointer; }

[b-2k1m8h45yk] .cmf-movements-list-panel.is-list-landing .repair-estimate-list-header {
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    gap: 12px;
}

[b-2k1m8h45yk] .cmf-movements-list-panel.is-list-landing .repair-estimate-list-header-meta {
    justify-content: flex-end;
    width: auto;
}

.cmf-list-row-btn:disabled[b-2k1m8h45yk] {
    opacity: 0.35;
    cursor: default;
}

/* Movements list header (Repair Estimate list style) */
[b-2k1m8h45yk] .cmf-movements-list-panel .cmf-movements-list-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 220px;
    max-width: 280px;
    padding: 4px 8px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 1;
}

[b-2k1m8h45yk] .cmf-movements-list-panel .cmf-movements-list-search .bi-search {
    color: #6c757d;
    font-size: 13px;
    flex-shrink: 0;
}

[b-2k1m8h45yk] .cmf-movements-list-panel .cmf-movements-list-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    font-size: 12px;
    color: #212529;
    padding: 0;
}

[b-2k1m8h45yk] .cmf-movements-list-panel .cmf-movements-list-search input::placeholder {
    color: #9ca3af;
}

[b-2k1m8h45yk] .cmf-movements-list-panel .cmf-movements-list-search-clear {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

[b-2k1m8h45yk] .cmf-movements-list-panel .cmf-movements-list-search-clear:hover {
    color: #495057;
}

[b-2k1m8h45yk] .cmf-movements-list-panel .cmf-movements-list-scroll {
    border-top: 1px solid #edebe9;
}
.movements-grid-compact thead th[b-2k1m8h45yk] { white-space: nowrap; font-size: 0.8rem; text-transform: uppercase; color: #6c757d; }
.movements-grid-compact td.col-serial[b-2k1m8h45yk], .movements-grid-compact th.col-serial[b-2k1m8h45yk] { width: 1%; white-space: nowrap; padding: 4px 8px !important; }
.movements-grid-compact .col-1[b-2k1m8h45yk] { width: 14%; min-width: 140px; }
.movements-grid-compact .col-2[b-2k1m8h45yk] { width: 16%; }
.movements-grid-compact .col-3[b-2k1m8h45yk] { width: 20%; }
.movements-grid-compact .col-4[b-2k1m8h45yk] { width: 22%; }
.movements-grid-compact .col-5[b-2k1m8h45yk] { width: 16%; }
.movements-grid-compact .serial-badge[b-2k1m8h45yk] { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #e9ecef; color: #495057; font-size: 0.7rem; font-weight: 600; }
.movements-grid-compact .cell-stack[b-2k1m8h45yk] { display: flex; flex-direction: column; gap: 2px; }
.movements-grid-compact .label[b-2k1m8h45yk] { color: #6c757d; font-size: 0.75rem; font-weight: 500; min-width: 36px; }
.movements-grid-compact .value[b-2k1m8h45yk] { color: #343a40; font-size: 0.85rem; }
.movements-grid-compact .cntr-badge[b-2k1m8h45yk] { display: inline-block; padding: 2px 6px; background: #e3f2fd; color: #1565c0; font-family: Consolas, 'Courier New', monospace; font-weight: 700; font-size: 0.8rem; border-radius: 3px; }
.movements-grid-compact .cntr-size[b-2k1m8h45yk] { font-family: Consolas, 'Courier New', monospace; font-weight: 700; font-size: 0.8rem; color: #495057; margin-left: 4px; }
.movements-grid-compact .cntr-line[b-2k1m8h45yk] { white-space: nowrap; line-height: 1.4; }
.movements-grid-compact .remarks[b-2k1m8h45yk] { font-size: 0.75rem; color: #495057; white-space: normal; word-wrap: break-word; max-width: 200px; }
.print-type-group[b-2k1m8h45yk], .eir-type-group[b-2k1m8h45yk] { display: flex; align-items: center; gap: 8px; }

/* Void Watermark */
.void-watermark[b-2k1m8h45yk] { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg); z-index: 1000; pointer-events: none; opacity: 0.15; }
.void-watermark span[b-2k1m8h45yk] { font-size: 80px; font-weight: bold; color: #d32f2f; border: 8px solid #d32f2f; padding: 20px 60px; letter-spacing: 10px; }

[b-2k1m8h45yk] .d365-card-header {
    min-height: 48px !important;
    padding: 10px 16px !important;
}

/* Audit Trail */

/* ============================================================
   Fluent UI Components theme (POC) — keep real <fluent-*>
   web components on the same grid as classic CMF fields.
   Only fires when html[data-form-theme="fluent-ui"] is set.
   ============================================================ */
html[data-form-theme="fluent-ui"] .cmf-form fluent-text-field[b-2k1m8h45yk],
html[data-form-theme="fluent-ui"] .cmf-form fluent-select[b-2k1m8h45yk],
html[data-form-theme="fluent-ui"] .cmf-form fluent-radio-group[b-2k1m8h45yk],
html[data-form-theme="fluent-ui"] .cmf-form fluent-button[b-2k1m8h45yk] {
    display: block;
    min-width: 0;
    margin-bottom: 8px;
    font-family: var(--d365-font-family, "Segoe UI", sans-serif);
    --neutral-fill-input-rest: #ffffff;
    --neutral-fill-input-hover: #faf9f8;
    --accent-rest: #0078d4;
    --accent-hover: #106ebe;
    --accent-active: #005a9e;
}
html[data-form-theme="fluent-ui"] .cmf-form fluent-radio-group[b-2k1m8h45yk] {
    margin-bottom: 4px;
}
html[data-form-theme="fluent-ui"] .cmf-form fluent-radio-group[b-2k1m8h45yk]::part(label) {
    color: var(--cmf-label-color, #605e5c);
    font-size: 13px;
    font-weight: 400;
}
html[data-form-theme="fluent-ui"] .cmf-form fluent-text-field[b-2k1m8h45yk]::part(label),
html[data-form-theme="fluent-ui"] .cmf-form fluent-select[b-2k1m8h45yk]::part(label) {
    color: var(--cmf-label-color, #605e5c);
    font-size: 13px;
    font-weight: 400;
}
html[data-form-theme="fluent-ui"] .cmf-form fluent-button[appearance="accent"][b-2k1m8h45yk]::part(control) {
    background: var(--d365-primary, #0078d4);
    border-color: var(--d365-primary, #0078d4);
    color: #fff;
    border-radius: var(--cmf-field-radius, 2px);
    font-weight: 600;
    padding: 6px 16px;
    height: 32px;
}
html[data-form-theme="fluent-ui"] .cmf-form fluent-button[appearance="accent"]:hover[b-2k1m8h45yk]::part(control) {
    background: var(--d365-primary-hover, #106ebe);
    border-color: var(--d365-primary-dark, #005a9e);
}

/* DO/CRO field + Doc Ref icon button side-by-side */
html[data-form-theme="fluent-ui"] .cmf-fluent-docro-field-row[b-2k1m8h45yk] {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}
html[data-form-theme="fluent-ui"] .cmf-fluent-docro-field-row fluent-text-field[b-2k1m8h45yk] {
    flex: 1;
    margin-bottom: 0;
}
html[data-form-theme="fluent-ui"] .cmf-fluent-docref-btn[b-2k1m8h45yk] {
    flex-shrink: 0;
    margin-bottom: 8px;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
}
html[data-form-theme="fluent-ui"] .cmf-fluent-docref-btn.has-value[b-2k1m8h45yk] {
    color: #0078d4;
    border-color: #0078d4;
}

/* Pay-by row with Fluent radio group */
html[data-form-theme="fluent-ui"] .cmf-fluent-payby-row[b-2k1m8h45yk] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 32px;
}
html[data-form-theme="fluent-ui"] .cmf-fluent-payby-row fluent-radio-group[b-2k1m8h45yk] {
    width: auto;
    margin-bottom: 0;
}

/* Shift day/night Fluent radios */
html[data-form-theme="fluent-ui"] .cmf-fluent-shift-group[b-2k1m8h45yk] {
    width: auto;
    margin-bottom: 0;
}

html[data-form-theme="fluent-ui"] .cmf-fluent-datetime-row[b-2k1m8h45yk] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

html[data-form-theme="fluent-ui"] .cmf-fluent-datetime-row fluent-date-picker[b-2k1m8h45yk],
html[data-form-theme="fluent-ui"] .cmf-fluent-datetime-row fluent-time-picker[b-2k1m8h45yk] {
    flex: 1 1 140px;
    min-width: 130px;
    margin-bottom: 0;
}

html[data-form-theme="fluent-ui"] .cmf-form fluent-date-picker[b-2k1m8h45yk],
html[data-form-theme="fluent-ui"] .cmf-form fluent-time-picker[b-2k1m8h45yk] {
    display: block;
    min-width: 0;
    margin-bottom: 8px;
    font-family: var(--d365-font-family, "Segoe UI", sans-serif);
    --neutral-fill-input-rest: #ffffff;
    --accent-rest: #0078d4;
}

html[data-form-theme="fluent-ui"] .cmf-form fluent-date-picker[b-2k1m8h45yk]::part(label),
html[data-form-theme="fluent-ui"] .cmf-form fluent-time-picker[b-2k1m8h45yk]::part(label) {
    color: var(--cmf-label-color, #605e5c);
    font-size: 13px;
    font-weight: 400;
}

html[data-form-theme="fluent-ui"] .cmf-fluent-ro-ref-row[b-2k1m8h45yk],
html[data-form-theme="fluent-ui"] .cmf-fluent-docro-field-row[b-2k1m8h45yk] {
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

html[data-form-theme="fluent-ui"] .cmf-ro-ref-field-wrap[b-2k1m8h45yk] {
    width: 80px;
}

html[data-form-theme="fluent-ui"] .cmf-ro-ref-field-wrap .cmf-ro-ref-field-icon[b-2k1m8h45yk] {
    bottom: 10px;
    left: 4px;
    color: var(--cmf-label-color, #605e5c);
}

html[data-form-theme="fluent-ui"] .cmf-fluent-docref-btn[b-2k1m8h45yk] {
    flex-shrink: 0;
    margin-bottom: 8px;
    min-width: 32px;
    height: 32px;
}

html[data-form-theme="fluent-ui"] .cmf-fluent-grid-toolbar-btn[b-2k1m8h45yk] {
    margin-right: 4px;
}

html[data-form-theme="fluent-ui"] .cmf-container-grid-table fluent-text-field.cmf-fluent-grid-cell-field[b-2k1m8h45yk],
html[data-form-theme="fluent-ui"] .cmf-container-grid-table fluent-select.cmf-fluent-grid-cell-field[b-2k1m8h45yk],
html[data-form-theme="fluent-ui"] .cmf-container-grid-table fluent-number-field.cmf-fluent-grid-cell-field[b-2k1m8h45yk] {
    width: 100%;
    min-width: 0;
    margin: 0;
    --design-unit: 4;
}
html[data-form-theme="fluent-ui"] .cmf-container-grid-table fluent-text-field.cmf-fluent-grid-cell-field[b-2k1m8h45yk]::part(label),
html[data-form-theme="fluent-ui"] .cmf-container-grid-table fluent-select.cmf-fluent-grid-cell-field[b-2k1m8h45yk]::part(label),
html[data-form-theme="fluent-ui"] .cmf-container-grid-table fluent-number-field.cmf-fluent-grid-cell-field[b-2k1m8h45yk]::part(label) {
    display: none;
}

html[data-form-theme="fluent-ui"] .cmf-party-flyout fluent-text-field.cmf-party-flyout-control[b-2k1m8h45yk],
html[data-form-theme="fluent-ui"] .cmf-party-flyout fluent-autocomplete.cmf-party-flyout-control[b-2k1m8h45yk] {
    width: 100%;
    margin-bottom: 0;
}

html[data-form-theme="fluent-ui"] .cmf-form fluent-autocomplete[b-2k1m8h45yk] {
    min-width: 0;
}

html[data-form-theme="fluent-ui"] .cmf-fluent-movements-search[b-2k1m8h45yk] {
    flex: 1;
    min-width: 0;
    margin: 0;
}
html[data-form-theme="fluent-ui"] .cmf-fluent-movements-search[b-2k1m8h45yk]::part(label) {
    display: none;
}

html[data-form-theme="fluent-ui"] .cmf-fluent-print-type-group[b-2k1m8h45yk] {
    width: auto;
    margin-bottom: 0;
}

.eir-reprint-backdrop[b-2k1m8h45yk] {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.eir-reprint-card[b-2k1m8h45yk] {
    width: min(420px, calc(100vw - 32px));
    min-width: 0;
}

.eir-reprint-actions[b-2k1m8h45yk] {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 12px 10px;
    background: rgba(255, 255, 255, 0.95);
}

.eir-reprint-btn[b-2k1m8h45yk] {
    border: none;
    border-radius: 8px;
    background: #f1f3f5;
    color: #38414d;
    font-family: 'SF Pro Text', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 10px;
    cursor: pointer;
}

.eir-reprint-btn-primary[b-2k1m8h45yk] {
    background: #e8a636;
    color: #fff;
}

/* Change to Sound prompt - notification styling (same chrome as the EIR reprint toast) */
.cmf-condition-backdrop[b-2k1m8h45yk] {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.cmf-condition-card[b-2k1m8h45yk] {
    width: min(460px, calc(100vw - 32px));
    min-width: 0;
}

.cmf-condition-body[b-2k1m8h45yk] {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cmf-condition-line[b-2k1m8h45yk] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.cmf-condition-badge[b-2k1m8h45yk] {
    background: #d64545;
    color: #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 8px;
}

.cmf-condition-text[b-2k1m8h45yk] {
    color: #38414d;
}

.cmf-condition-label[b-2k1m8h45yk] {
    font-size: 10px;
    font-weight: 700;
    color: #605e5c;
    margin-top: 2px;
}

.cmf-condition-input[b-2k1m8h45yk] {
    width: 100%;
    min-width: 0;
    border: 1px solid #d6d9dd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 11px;
    padding: 5px 8px;
    color: #323130;
    background: #fff;
}

.cmf-condition-input:focus[b-2k1m8h45yk] {
    outline: none;
    border-color: #e8a636;
    box-shadow: 0 0 0 2px rgba(232, 166, 54, 0.18);
}

.cmf-condition-eir-row[b-2k1m8h45yk] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cmf-condition-chip[b-2k1m8h45yk] {
    flex-shrink: 0;
    border: none;
    border-radius: 8px;
    background: #e8a636;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 6px 10px;
    cursor: pointer;
}

.cmf-condition-chip:hover[b-2k1m8h45yk] {
    background: #d6941f;
}

.cmf-condition-actions[b-2k1m8h45yk] {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 12px 10px;
    background: rgba(255, 255, 255, 0.95);
}

.cmf-condition-btn[b-2k1m8h45yk] {
    border: none;
    border-radius: 8px;
    background: #f1f3f5;
    color: #38414d;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 10px;
    cursor: pointer;
}

.cmf-condition-btn:disabled[b-2k1m8h45yk] {
    opacity: 0.65;
    cursor: default;
}

.cmf-condition-btn-primary[b-2k1m8h45yk] {
    background: #20a65a;
    color: #fff;
}

.cmf-condition-btn-primary:hover:not(:disabled)[b-2k1m8h45yk] {
    background: #1a8f4d;
}

/* ---- RO Ref inline search list (type-ahead) -------------------------------------------
   Reuses the shared .eir-dropdown skin (MnrRepairEstimates EIR picker) from cmf-shared.css.
   The field itself is only 80px wide, so cap the list to the viewport on narrow screens. */
.cmf-ro-ref-dropdown[b-2k1m8h45yk] {
    min-width: 320px;
    max-width: min(420px, calc(100vw - 3rem));
}

/* The list icon keeps its legacy job (open the full RO picker); shared CSS disables its pointer. */
.cmf-ro-ref-field-icon-clickable[b-2k1m8h45yk] {
    pointer-events: auto;
    cursor: pointer;
}

.cmf-ro-ref-field-icon-clickable:hover[b-2k1m8h45yk] {
    color: #323130;
    opacity: 1;
}
/* /Components/Pages/Terminal/ContainerOffHireOnHire.razor.rz.scp.css */
/* Off Hire / On Hire detail grid - left-aligned headers, no pipe before SNo */
.offhire-onhire-detail-grid .d365-grid-fo-editable thead th[b-xq6k4120pl] {
    text-align: left;
}

.offhire-onhire-detail-grid .d365-grid-fo-editable thead th:nth-child(2)[b-xq6k4120pl]::before {
    display: none;
}
/* /Components/Pages/Terminal/ReleaseOrder.razor.rz.scp.css */
/* Container detail grid row height — match CMF (28px view / 32px edit) */
[b-bamp4yughs] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-fo-editable thead th {
    height: 32px;
    padding: 6px 8px;
    white-space: nowrap;
}

[b-bamp4yughs] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-fo-editable td {
    height: 32px;
}

[b-bamp4yughs] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell {
    min-height: 30px;
    height: 100%;
    padding: 2px 4px;
    overflow: visible;
}

[b-bamp4yughs] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell input:not([type="radio"]):not([type="checkbox"]),
[b-bamp4yughs] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell select {
    height: 26px;
    font-size: 12px;
    line-height: 1.2;
    min-width: 0;
    width: 100%;
}

[b-bamp4yughs] .cmf-container-detail-grid .d365-grid-cell input[type="radio"],
[b-bamp4yughs] .cmf-container-detail-grid .d365-grid-cell input[type="checkbox"],
[b-bamp4yughs] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell input[type="radio"],
[b-bamp4yughs] .cmf-container-detail-grid.cmf-container-grid-editing .d365-grid-cell input[type="checkbox"] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    max-width: 14px;
    margin: 0;
    padding: 0;
    flex: 0 0 14px;
}

[b-bamp4yughs] .cmf-container-detail-grid .d365-grid-cell .badge {
    font-size: 10px;
    padding: 2px 6px;
    line-height: 1.2;
}

[b-bamp4yughs] .cmf-container-detail-grid .btn-ghost,
[b-bamp4yughs] .cmf-container-detail-grid td > .btn-ghost {
    padding: 0 4px;
    line-height: 1;
    height: 22px;
    min-height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

[b-bamp4yughs] .cmf-container-detail-grid .d365-grid-cell,
[b-bamp4yughs] .cmf-container-detail-grid .d365-grid-fo-editable td {
    box-sizing: border-box;
}

.print-type-group[b-bamp4yughs] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ro-list-landing-row[b-bamp4yughs] {
    margin-top: 0;
}

[b-bamp4yughs] .ro-orders-list-panel.is-list-landing .repair-estimate-list-header {
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    gap: 12px;
}

[b-bamp4yughs] .ro-orders-list-panel.is-list-landing .repair-estimate-list-header-meta {
    justify-content: flex-end;
    width: auto;
}

/* RO list header search — match CMF movements list */
[b-bamp4yughs] .ro-orders-list-panel .cmf-movements-list-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 220px;
    max-width: 280px;
    padding: 4px 8px;
    border: 1px solid #d5d5d5;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 1;
}

[b-bamp4yughs] .ro-orders-list-panel .cmf-movements-list-search .bi-search {
    color: #6c757d;
    font-size: 13px;
    flex-shrink: 0;
}

[b-bamp4yughs] .ro-orders-list-panel .cmf-movements-list-search input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    min-width: 0;
    font-size: 12px;
    color: #212529;
    padding: 0;
}

[b-bamp4yughs] .ro-orders-list-panel .cmf-movements-list-search input::placeholder {
    color: #9ca3af;
}

[b-bamp4yughs] .ro-orders-list-panel .cmf-movements-list-search-clear {
    border: none;
    background: transparent;
    color: #9ca3af;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

[b-bamp4yughs] .ro-orders-list-panel .cmf-movements-list-search-clear:hover {
    color: #495057;
}

[b-bamp4yughs] .ro-orders-list-panel .cmf-movements-list-scroll {
    border-top: 1px solid #edebe9;
}

/* RO list grid aligned with CMF layout */
.movements-grid tbody tr[b-bamp4yughs] { cursor: pointer; transition: background 0.15s; }
.movements-grid tbody tr:hover[b-bamp4yughs] { background-color: #e3f2fd !important; }
.movements-grid tbody tr.selected[b-bamp4yughs] { background-color: #bbdefb !important; }
.movements-grid tbody tr.voided[b-bamp4yughs],
.movements-grid tbody tr.cancelled[b-bamp4yughs] { opacity: 0.5; text-decoration: line-through; }

.activity-badge[b-bamp4yughs] { padding: 2px 6px; border-radius: 3px; font-size: 0.75rem; font-weight: 600; }
.activity-in[b-bamp4yughs] { background: #e8f5e9; color: #1b5e20; }
.activity-out[b-bamp4yughs] { background: #fff3e0; color: #e65100; }

.ro-list-row-actions[b-bamp4yughs] {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
}

.ro-list-row-btn[b-bamp4yughs] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid #edebe9;
    border-radius: 3px;
    background: #fff;
    color: #323130;
    cursor: pointer;
}

.ro-list-row-btn:hover:not(:disabled)[b-bamp4yughs] {
    background: #f3f2f1;
    border-color: #c8c6c4;
}

.ro-list-row-btn:disabled[b-bamp4yughs] {
    opacity: 0.35;
    cursor: default;
}

.ro-list-row-btn.is-warning[b-bamp4yughs] {
    color: #8a6116;
}

.ro-list-row-btn.is-danger[b-bamp4yughs] {
    color: #a4262c;
}

.clear-search[b-bamp4yughs] {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: #9e9e9e;
    cursor: pointer;
}
.movements-grid-compact thead th[b-bamp4yughs] { white-space: nowrap; font-size: 0.8rem; text-transform: uppercase; color: #6c757d; }
.movements-grid-compact td.col-serial[b-bamp4yughs],
.movements-grid-compact th.col-serial[b-bamp4yughs] { width: 1%; white-space: nowrap; padding: 4px 8px !important; }
.movements-grid-compact .col-1[b-bamp4yughs] { width: 14%; min-width: 140px; }
.movements-grid-compact .col-2[b-bamp4yughs] { width: 16%; }
.movements-grid-compact .col-3[b-bamp4yughs] { width: 22%; }
.movements-grid-compact .col-4[b-bamp4yughs] { width: 16%; }
.movements-grid-compact .col-5[b-bamp4yughs] { width: 10%; }
.movements-grid-compact .serial-badge[b-bamp4yughs] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #e9ecef;
    color: #495057;
    font-size: 0.7rem;
    font-weight: 600;
}

.movements-grid-compact .cell-stack[b-bamp4yughs] { display: flex; flex-direction: column; gap: 2px; }
.movements-grid-compact .label[b-bamp4yughs] { color: #6c757d; font-size: 0.75rem; font-weight: 500; min-width: 40px; }
.movements-grid-compact .value[b-bamp4yughs] { color: #343a40; font-size: 0.85rem; }

.movements-grid-compact .cntr-row[b-bamp4yughs] { flex-wrap: wrap; align-items: flex-start; }
.movements-grid-compact .cntr-list[b-bamp4yughs] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    min-width: 0;
}

.movements-grid-compact .cntr-badge[b-bamp4yughs] {
    display: inline-block;
    padding: 2px 6px;
    background: #e3f2fd;
    color: #1565c0;
    font-family: Consolas, 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 3px;
}

/* ===== CMF-style Party Details flyout / summary (scoped RO) ===== */
.cmf-customer-field-head[b-bamp4yughs] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
    min-height: 1.35rem;
}

/* Gap under heading is on .d365-page-heading-wrap (global); avoid double spacing */
/* Row 1 — keep fields on one line without changing Bootstrap column widths.
   NOTE: must NOT use overflow-x:auto here — CSS spec forces overflow-y to auto
   as well, which clips the Mov Activity dropdown and shows a vertical scrollbar.
   Keep overflow visible so the dropdown overlays the form below. */
/* RO Ref # — inline list icon inside field (visual hint; Enter opens picker) */
.cmf-adv-ref-label-row[b-bamp4yughs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 1.35rem;
    margin-bottom: 2px;
}

.cmf-adv-opening-check[b-bamp4yughs] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 0;
    font-size: 11px;
    font-weight: 500;
    color: #605e5c;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.cmf-adv-opening-check input[b-bamp4yughs] {
    width: 13px;
    height: 13px;
    margin: 0;
    cursor: pointer;
}

.cmf-adv-opening-check:has(input:disabled)[b-bamp4yughs] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Duplicate RO print prompt - notification chrome (same as the CMF EIR reprint toast) */
.ro-dup-backdrop[b-bamp4yughs] {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
}

.ro-dup-card[b-bamp4yughs] {
    width: min(420px, calc(100vw - 32px));
    min-width: 0;
}

.ro-dup-actions[b-bamp4yughs] {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 12px 10px;
    background: rgba(255, 255, 255, 0.95);
}

.ro-dup-btn[b-bamp4yughs] {
    border: none;
    border-radius: 8px;
    background: #f1f3f5;
    color: #38414d;
    font-family: 'SF Pro Text', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    padding: 6px 10px;
    cursor: pointer;
}

.ro-dup-btn-primary[b-bamp4yughs] {
    background: #e8a636;
    color: #fff;
}

/* ---- Adv Ref inline picker (M&R EIR dropdown look) ----
   Must float above the header fields and the Mov Activity autocomplete list (z-index 2100).
   The shared .eir-dropdown supplies the list chrome; only stacking/size is tuned here. */
.ro-adv-ref-dropdown[b-bamp4yughs] {
    z-index: 2100;
    width: 420px;
}

.cmf-party-flyout .cmf-party-capsule-sm .pill-toggle-btn.pill-toggle-active[b-bamp4yughs],
/* /Components/Shared/AuditLogDialog.razor.rz.scp.css */
.audit-dialog-backdrop[b-y7y4jbkqa5] {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(1px);
}

.audit-dialog-size[b-y7y4jbkqa5] {
    width: 400px;
    max-width: 400px;
}

.audit-dialog-shell[b-y7y4jbkqa5] {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.audit-dialog-header[b-y7y4jbkqa5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #eceff3;
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

.audit-dialog-title-wrap[b-y7y4jbkqa5] {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #7c3aed;
}

.audit-dialog-title-wrap i[b-y7y4jbkqa5] {
    font-size: 0.95rem;
}

.audit-dialog-title[b-y7y4jbkqa5] {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #312e81;
}

.audit-dialog-subtitle[b-y7y4jbkqa5] {
    font-size: 0.72rem;
    color: #7c8698;
}

.audit-dialog-body[b-y7y4jbkqa5] {
    padding: 8px 14px 8px;
    background: #ffffff;
}

.at-panel[b-y7y4jbkqa5] {
    border-top: 1px solid #f3f4f6;
    padding-top: 4px;
}

.at-panel-header[b-y7y4jbkqa5] {
    padding: 2px 6px 4px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 6px;
}

.at-panel-id[b-y7y4jbkqa5] {
    font-size: 10px;
    color: #9ca3af;
    font-family: monospace;
    text-align: center;
    margin: 0;
}

.at-timeline[b-y7y4jbkqa5] {
    position: relative;
    padding-left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 4px;
}

.at-timeline-line[b-y7y4jbkqa5] {
    position: absolute;
    left: 3px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.at-timeline-row[b-y7y4jbkqa5] {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.at-dot[b-y7y4jbkqa5] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
    outline: 2px solid #ffffff;
}

.at-dot-green[b-y7y4jbkqa5] { background: #22c55e; }
.at-dot-orange[b-y7y4jbkqa5] { background: #f97316; }

.at-row-title[b-y7y4jbkqa5] {
    font-size: 11px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1;
}

.at-row-meta[b-y7y4jbkqa5] {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
}

.at-history-section[b-y7y4jbkqa5] {
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}

.at-history-toggle[b-y7y4jbkqa5] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 4px 8px;
    background: rgba(245, 243, 255, 0.5);
    border: 1px solid rgba(196, 181, 253, 0.5);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #7c3aed;
    cursor: pointer;
    transition: background 0.15s;
}

.at-history-toggle:hover[b-y7y4jbkqa5] {
    background: rgba(237, 233, 254, 0.8);
}

.at-history-toggle-left[b-y7y4jbkqa5] {
    display: flex;
    align-items: center;
    gap: 6px;
}

.at-history-icon[b-y7y4jbkqa5] { font-size: 12px; }
.at-history-chevron[b-y7y4jbkqa5] { font-size: 12px; }

.at-history-body[b-y7y4jbkqa5] {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.2s;
}

.at-history-body.at-history-open[b-y7y4jbkqa5] {
    max-height: 160px;
    opacity: 1;
    margin-top: 8px;
}

.at-history-item[b-y7y4jbkqa5] {
    padding: 6px 8px;
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 6px;
    margin-left: 4px;
    border-left: 2px dashed #e5e7eb;
}

.at-trace-title[b-y7y4jbkqa5] {
    font-weight: 700;
    color: #374151;
    margin: 0 0 2px;
}

.at-trace-body[b-y7y4jbkqa5] {
    margin: 0 0 2px;
}

.at-trace-meta[b-y7y4jbkqa5] {
    font-size: 10px;
    color: #9ca3af;
    margin: 2px 0 0;
}

.at-extra-content[b-y7y4jbkqa5] {
    margin-top: 8px;
}

.audit-log-extra-card[b-y7y4jbkqa5] {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
}

.audit-log-extra-title[b-y7y4jbkqa5] {
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-bottom: 8px;
}

.audit-log-extra-text[b-y7y4jbkqa5] {
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    white-space: pre-wrap;
}

@media (max-width: 768px) {
    .audit-dialog-body[b-y7y4jbkqa5] {
        padding: 12px 14px;
    }
}
/* /Components/Shared/CfsProcessTrail.razor.rz.scp.css */
.cfs-bpf-trail[b-2fjfb6pqe6] {
    --cfs-bpf-accent: #c50f1f;
    --cfs-bpf-accent-soft: #f4c6a5;
    --cfs-bpf-track: #edebe9;
    /* Room inside the track above the stage labels. The marker is centred on the band's top
       border, so this value also decides how far the marker rises above the band. */
    --cfs-bpf-track-pad-top: 18px;
    /* Marker geometry in one place: every state draws the same disc size, so the tick, the pie
       fill and the count bubble all line up on the band's border line. */
    --cfs-bpf-marker: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    /* The marker overlaps the top border (it rises 8px above the band), so the band sits flush
       under the page heading: those 8px fall inside the heading's own bottom padding, keeping the
       stages close to the status badges / heading text instead of a full gap. Bottom spacing is
       left to the page as before. */
    margin: 0;
    min-height: 46px;
    background: linear-gradient(180deg, #fbfaf9 0%, #f4f3f2 58%, #efeeed 100%);
    border: 1px solid #e4e2e0;
    box-shadow: inset 0 1px 0 #fff;
    border-radius: 2px;
    /* Markers are drawn half outside the border box; clipping them would cut every stage. */
    overflow: visible;
}

/* Ribbon, toggle and track are three children of one band, so they must share one height and the
   same top and bottom edge. The toggle is a <button>: its cross size is often already fixed (own
   content height or a global button rule), and `align-items: stretch` only stretches a child whose
   height is auto - which left the pink strip short of the red ribbon and stepped the bottom edge.
   Pinning height:auto + align-self:stretch on all three makes the tallest child decide the band
   height and every edge line up flush. */
.cfs-bpf-trail > .cfs-bpf-ribbon[b-2fjfb6pqe6],
.cfs-bpf-trail > .cfs-bpf-back[b-2fjfb6pqe6],
.cfs-bpf-trail > .cfs-bpf-track[b-2fjfb6pqe6],
.cfs-bpf-trail > .cfs-bpf-collapsed-stage[b-2fjfb6pqe6] {
    align-self: stretch;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
}

.cfs-bpf-ribbon[b-2fjfb6pqe6] {
    position: relative;
    flex: 0 0 auto;
    max-width: 16rem;
    min-width: 9rem;
    padding: 6px 12px;
    background: linear-gradient(135deg, #d21628 0%, #c50f1f 52%, #a90c1a 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    z-index: 2;
    /* The band is no longer overflow:hidden (stage markers overlap its top border), so the
       ribbon has to carry the container's left radius itself. */
    border-radius: 2px 0 0 2px;
    /* A hair of top light and a clean right edge separate the ribbon from the track instead of
       letting the two flat reds meet. */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 1px 0 0 rgba(0, 0, 0, 0.07);
}

.cfs-bpf-ribbon.void[b-2fjfb6pqe6] {
    background: #605e5c;
}

.cfs-bpf-ribbon-label[b-2fjfb6pqe6] {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cfs-bpf-ribbon-detail[b-2fjfb6pqe6] {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.2;
    letter-spacing: 0.1px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cfs-bpf-back[b-2fjfb6pqe6] {
    flex: 0 0 22px;
    width: 22px;
    margin: 0;
    border: none;
    background: linear-gradient(180deg, #e6a29b 0%, #dc8c84 100%);
    color: #7a1119;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
    transition: background 120ms ease, filter 120ms ease;
    align-self: stretch;
}

.cfs-bpf-back:hover[b-2fjfb6pqe6] {
    background: linear-gradient(180deg, #df958d 0%, #d47d75 100%);
    filter: saturate(1.05);
}

.cfs-bpf-back:focus-visible[b-2fjfb6pqe6] {
    outline: 2px solid #0078d4;
    outline-offset: 1px;
}

.cfs-bpf-back i[b-2fjfb6pqe6] {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.cfs-bpf-track[b-2fjfb6pqe6] {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--cfs-bpf-track-pad-top) 18px 12px 18px;
    display: flex;
    align-items: flex-start;
}

.cfs-bpf-stages[b-2fjfb6pqe6] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    gap: 4px;
}

.cfs-bpf-stage[b-2fjfb6pqe6] {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cfs-bpf-node[b-2fjfb6pqe6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: default;
    width: 100%;
    min-width: 0;
    color: #605e5c;
}

button.cfs-bpf-node[b-2fjfb6pqe6] {
    cursor: pointer;
}

button.cfs-bpf-node:hover .cfs-bpf-label[b-2fjfb6pqe6] {
    color: #0078d4;
}

/* The next step points at a document that does not exist yet, so it needs to read as something to
   create rather than as a finished step. Only the clickable form gets the link underline; the
   page's own stage shows the same "+" but must not look like a link back to itself. */
.cfs-bpf-stage.is-action button.cfs-bpf-node .cfs-bpf-label[b-2fjfb6pqe6] {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

/* "+" prefix marks the stage as "create this document" rather than an existing step. */
.cfs-bpf-stage.is-action .cfs-bpf-node .cfs-bpf-label[b-2fjfb6pqe6]::before {
    content: '+';
    font-weight: 700;
    margin-right: 3px;
}

.cfs-bpf-stage.is-action button.cfs-bpf-node:hover .cfs-bpf-label[b-2fjfb6pqe6] {
    text-decoration-style: solid;
    color: var(--cfs-bpf-accent);
}

.cfs-bpf-marker[b-2fjfb6pqe6] {
    width: var(--cfs-bpf-marker);
    height: var(--cfs-bpf-marker);
    border-radius: 50%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 var(--cfs-bpf-marker);
    z-index: 2;
    /* The disc straddles the band's own top border, so that border would otherwise run through the
       marker. The white halo cuts it out cleanly and gives the node a lifted, printed look. */
    box-shadow: 0 0 0 3px #f7f6f5, 0 1px 3px rgba(32, 31, 30, 0.22);
}

/* D365 business-process shape: the marker is lifted out of the label flow and centred on the
   band's top border, so the border itself reads as the connector line between the stages.
   Each stage reserves the same rising distance, keeping every label on one baseline. */
.cfs-bpf-stage .cfs-bpf-marker[b-2fjfb6pqe6] {
    position: absolute;
    top: calc(0px - var(--cfs-bpf-track-pad-top) - 9px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* Connector line. The markers are centred on the band's top border, so the line between two
   markers has to sit on exactly that row. It is drawn per stage, from this stage's marker centre
   to the next one: one strip across the whole band would poke out past the first and last marker,
   and the old gradient variant stopped at this stage's right edge, which is why the trail read as
   disconnected. Width = one stage (= one flex column) + the 4px row gap.
   The base line is always painted, so an unfinished run still shows the journey; passed steps
   repaint it in accent on ::after (::before is taken by the neutral base). */
.cfs-bpf-stage:not(:last-child)[b-2fjfb6pqe6]::before {
    content: '';
    position: absolute;
    top: calc(0px - var(--cfs-bpf-track-pad-top) - 1px);
    left: 50%;
    right: calc(-50% - 4px);
    height: 2px;
    border-radius: 1px;
    background: #dcd9d6;
    z-index: 0;
}

.cfs-bpf-stage.state-completed:not(:last-child)[b-2fjfb6pqe6]::after {
    content: '';
    position: absolute;
    top: calc(0px - var(--cfs-bpf-track-pad-top) - 1px);
    left: 50%;
    right: calc(-50% - 4px);
    height: 2px;
    border-radius: 1px;
    background: var(--cfs-bpf-accent);
    z-index: 0;
}

/* The current marker is a transparent holder: the halo belongs to the bullseye inside it, so it
   must not paint a shadow around its own empty box. */
.cfs-bpf-stage .cfs-bpf-marker-current[b-2fjfb6pqe6] {
    box-shadow: none;
}

.cfs-bpf-marker-pending[b-2fjfb6pqe6] {
    border: 1.5px solid #b3b0ad;
    background: #fff;
}

/* Completed step: solid accent disc with a tick (was drawn as a pending
   hollow circle, which made finished and future steps look identical). */
.cfs-bpf-marker-completed[b-2fjfb6pqe6] {
    border: 1.5px solid var(--cfs-bpf-accent);
    background: var(--cfs-bpf-accent);
    background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 55%);
}

.cfs-bpf-marker-completed[b-2fjfb6pqe6]::after {
    content: '';
    width: 8px;
    height: 4.5px;
    margin-top: -2px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    border-radius: 0.5px;
    transform: rotate(-45deg);
}

/* Partly reached step (e.g. 4 of 10 containers arrived). The disc keeps the completed shape but
   is filled by a conic-gradient wedge written inline by the component, so the marker reads as a
   pie chart: solid accent up to ProgressPercent, a pale accent tint beyond it. No tick until every
   box is in. */
.cfs-bpf-marker-partial[b-2fjfb6pqe6] {
    border: 1.5px solid var(--cfs-bpf-accent);
    background: #fdeff0;
}

/* Container count bubble. Sits beside the marker, centred on the band border, small enough not to
   compete with the stage label but never hidden behind it. */
.cfs-bpf-count[b-2fjfb6pqe6] {
    position: absolute;
    top: calc(0px - var(--cfs-bpf-track-pad-top) - 8px);
    left: calc(50% + 12px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #efbcc1;
    color: var(--cfs-bpf-accent);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.1px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(32, 31, 30, 0.14);
    z-index: 3;
    pointer-events: none;
}

.cfs-bpf-count.is-full[b-2fjfb6pqe6] {
    background: var(--cfs-bpf-accent);
    border-color: var(--cfs-bpf-accent);
    color: #fff;
}

/* Nothing done on this step yet: the bubble stays quiet grey so red only ever means progress. */
.cfs-bpf-count.is-zero[b-2fjfb6pqe6] {
    border-color: #dedbd9;
    color: #8a8886;
    background: #fbfaf9;
    box-shadow: none;
}

/* Step bypassed by this booking (no transport / no quotation / direct stock). The marker now
   straddles the band's top border, so it needs an opaque fill like the other states or the
   border line would run visibly through the hollow circle. */
.cfs-bpf-marker-skipped[b-2fjfb6pqe6] {
    border: 1.5px dashed #b1aeab;
    background: #fbfaf9;
}

.cfs-bpf-stage.state-completed .cfs-bpf-label[b-2fjfb6pqe6] {
    font-weight: 600;
}

/* Partly reached: the label stays at normal weight (bold reads as "step finished"), coloured with
   the accent so the stage is still obviously in progress. */
.cfs-bpf-stage.is-partial .cfs-bpf-label[b-2fjfb6pqe6] {
    color: var(--cfs-bpf-accent);
}

.cfs-bpf-stage.state-pending .cfs-bpf-label[b-2fjfb6pqe6] {
    color: #8a8886;
}

.cfs-bpf-stage.state-skipped .cfs-bpf-label[b-2fjfb6pqe6] {
    color: #a19f9d;
}

.cfs-bpf-marker-current[b-2fjfb6pqe6] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: -1px 0 1px 0;
    border: none;
    background: transparent;
}

.cfs-bpf-bullseye-core[b-2fjfb6pqe6] {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid var(--cfs-bpf-accent);
    border-radius: 50%;
    /* Faint inner wash so the current disc reads as a lit lens, not a flat ring. */
    background: radial-gradient(circle at 50% 42%, #fff 0 45%, #fdeff0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* White cut-out from the band border, then a thin accent halo and a soft lift: the operator's
       eye lands on "where we are" before it reads any label. */
    box-shadow: 0 0 0 3px #f7f6f5, 0 0 0 4.5px rgba(197, 15, 31, 0.16), 0 2px 5px rgba(197, 15, 31, 0.22);
}

.cfs-bpf-bullseye-core[b-2fjfb6pqe6]::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cfs-bpf-accent);
    box-shadow: 0 0 0 2px rgba(197, 15, 31, 0.14);
}

.cfs-bpf-label[b-2fjfb6pqe6] {
    color: #201f1e;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Current stage, D365 capsule. One pill carries both facts the band needs from that step - its name
   and how long it has been running - so the stage does not need a second badge row. Clicking it
   opens the detail card below (active time, start, container progress, next step). */
.cfs-bpf-capsule[b-2fjfb6pqe6] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    padding: 1px 8px 1px 9px;
    border: 1px solid var(--cfs-bpf-accent);
    border-radius: 999px;
    background: #fff;
    color: var(--cfs-bpf-accent);
    box-shadow: 0 1px 2px rgba(197, 15, 31, 0.16);
    transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.cfs-bpf-capsule-label[b-2fjfb6pqe6] {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cfs-bpf-capsule-time[b-2fjfb6pqe6] {
    flex: 0 0 auto;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(197, 15, 31, 0.12);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.1px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

button.cfs-bpf-node-current:hover .cfs-bpf-capsule[b-2fjfb6pqe6],
.cfs-bpf-stage.is-expanded .cfs-bpf-capsule[b-2fjfb6pqe6] {
    background: var(--cfs-bpf-accent);
    color: #fff;
    box-shadow: 0 2px 6px rgba(197, 15, 31, 0.28);
}

button.cfs-bpf-node-current:hover .cfs-bpf-capsule-time[b-2fjfb6pqe6],
.cfs-bpf-stage.is-expanded .cfs-bpf-capsule-time[b-2fjfb6pqe6] {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
}

button.cfs-bpf-node-current:focus-visible .cfs-bpf-capsule[b-2fjfb6pqe6] {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

/* The "+" prefix still marks the step as "create this document", now on the capsule label. */
.cfs-bpf-stage.is-action .cfs-bpf-capsule-label[b-2fjfb6pqe6]::before {
    content: '+';
    font-weight: 700;
    margin-right: 3px;
}

/* Capsule detail card. Anchored under the current stage so it never disturbs the band height. */
.cfs-bpf-popover[b-2fjfb6pqe6] {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 248px;
    z-index: 20;
    padding: 9px 10px 10px;
    background: #fff;
    border: 1px solid #d9d6d3;
    border-radius: 4px;
    box-shadow: 0 8px 22px rgba(32, 31, 30, 0.18);
    text-align: left;
    cursor: default;
}

/* Edge stages would push the card past the band, so they hug the band edge instead of centring. */
.cfs-bpf-stage:first-child .cfs-bpf-popover[b-2fjfb6pqe6] {
    left: 0;
    transform: none;
}

.cfs-bpf-stage:last-child .cfs-bpf-popover[b-2fjfb6pqe6] {
    left: auto;
    right: 0;
    transform: none;
}

.cfs-bpf-popover-head[b-2fjfb6pqe6] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.cfs-bpf-popover-title[b-2fjfb6pqe6] {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    color: #201f1e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cfs-bpf-popover-close[b-2fjfb6pqe6] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    border-radius: 2px;
    background: transparent;
    color: #605e5c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.cfs-bpf-popover-close i[b-2fjfb6pqe6] {
    font-size: 10px;
}

.cfs-bpf-popover-close:hover[b-2fjfb6pqe6] {
    background: #f3f2f1;
    color: var(--cfs-bpf-accent);
}

.cfs-bpf-popover-close:focus-visible[b-2fjfb6pqe6] {
    outline: 2px solid #0078d4;
    outline-offset: 1px;
}

.cfs-bpf-popover-line[b-2fjfb6pqe6] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    line-height: 1.8;
    color: #3b3a39;
}

.cfs-bpf-popover-line i[b-2fjfb6pqe6] {
    font-size: 11px;
    color: #8a8886;
}

.cfs-bpf-popover-bar[b-2fjfb6pqe6] {
    height: 4px;
    margin: 6px 0 2px;
    border-radius: 2px;
    background: #f0eeec;
    overflow: hidden;
}

.cfs-bpf-popover-bar span[b-2fjfb6pqe6] {
    display: block;
    height: 100%;
    border-radius: 2px;
    background: var(--cfs-bpf-accent);
}

.cfs-bpf-popover-next[b-2fjfb6pqe6] {
    width: 100%;
    margin-top: 8px;
    padding: 5px 8px;
    border: none;
    border-radius: 3px;
    background: linear-gradient(180deg, #d21628 0%, #a90c1a 100%);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.cfs-bpf-popover-next i[b-2fjfb6pqe6] {
    font-size: 12px;
}

.cfs-bpf-popover-next:hover[b-2fjfb6pqe6] {
    filter: brightness(1.07);
}

.cfs-bpf-popover-next:focus-visible[b-2fjfb6pqe6] {
    outline: 2px solid #0078d4;
    outline-offset: 1px;
}

.cfs-bpf-loading[b-2fjfb6pqe6] {
    font-size: 12px;
    color: #605e5c;
    padding-left: 8px;
    position: relative;
    z-index: 1;
}

.cfs-bpf-collapsed-stage[b-2fjfb6pqe6] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: #242424;
    font-size: 12px;
    font-weight: 700;
}

.cfs-bpf-collapsed-label[b-2fjfb6pqe6] {
    white-space: nowrap;
}

.cfs-bpf-trail.is-void[b-2fjfb6pqe6] {
    --cfs-bpf-accent: #8a8886;
    --cfs-bpf-accent-soft: #c8c6c4;
}

.cfs-bpf-trail.is-collapsed[b-2fjfb6pqe6] {
    min-height: 44px;
}

/* Track shortcuts (Booking: Transportation / Cross Stuff). They sit on their own strip under the
   stages so the stage geometry (markers centred on the band's top border) stays untouched. */
.cfs-bpf-actions[b-2fjfb6pqe6] {
    flex: 1 0 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px 14px;
    border-top: 1px solid #e1dfdd;
    background: rgba(255, 255, 255, 0.38);
    /* Visible overflow (for the stage markers) means this row has to carry the bottom radius. */
    border-radius: 0 0 2px 2px;
}

.cfs-bpf-action[b-2fjfb6pqe6] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1px solid #d0cecc;
    border-radius: 2px;
    background: #fff;
    color: #242424;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
    cursor: pointer;
}

.cfs-bpf-action i[b-2fjfb6pqe6] {
    font-size: 12px;
    color: var(--cfs-bpf-accent);
}

.cfs-bpf-action:hover:not(:disabled)[b-2fjfb6pqe6] {
    border-color: var(--cfs-bpf-accent);
    color: var(--cfs-bpf-accent);
}

.cfs-bpf-action:focus-visible[b-2fjfb6pqe6] {
    outline: 2px solid #0078d4;
    outline-offset: 1px;
}

.cfs-bpf-action:disabled[b-2fjfb6pqe6] {
    background: #faf9f8;
    border-color: #e1dfdd;
    color: #a19f9d;
    cursor: default;
}

.cfs-bpf-action:disabled i[b-2fjfb6pqe6] {
    color: #c8c6c4;
}

@media (max-width: 1100px) {
    .cfs-bpf-ribbon[b-2fjfb6pqe6] {
        max-width: 11rem;
        min-width: 7.5rem;
    }

    .cfs-bpf-label[b-2fjfb6pqe6] {
        font-size: 10px;
    }
}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
/* /Components/Shared/MultiSelectDropdown.razor.rz.scp.css */
.tms-ms[b-te717m9ul6] {
    position: relative;
    width: 100%;
}

.tms-ms.disabled[b-te717m9ul6] {
    opacity: 0.65;
}

.tms-ms-backdrop[b-te717m9ul6] {
    position: fixed;
    inset: 0;
    z-index: 2190;
    background: transparent;
}

.tms-ms-trigger[b-te717m9ul6] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-height: 32px;
    height: auto;
    text-align: left;
    cursor: pointer;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
}

.tms-ms-trigger:disabled[b-te717m9ul6] {
    cursor: not-allowed;
}

.tms-ms-chips[b-te717m9ul6] {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
    align-items: center;
}

.tms-ms-placeholder[b-te717m9ul6] {
    font-size: 12px;
    color: #a19f9d;
    line-height: 22px;
}

.tms-ms-chip[b-te717m9ul6] {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    max-width: 100%;
    padding: 1px 4px 1px 8px;
    border-radius: 3px;
    background: #0f6cbd;
    color: #fff;
    font-size: 11px;
    line-height: 18px;
}

.tms-ms-chip-text[b-te717m9ul6] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tms-ms-chip-x[b-te717m9ul6] {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    opacity: 0.9;
    display: inline-flex;
    align-items: center;
}

.tms-ms-chip-x:hover[b-te717m9ul6] {
    opacity: 1;
}

.tms-ms-chevron[b-te717m9ul6] {
    font-size: 10px;
    color: #605e5c;
    flex-shrink: 0;
    margin-top: 6px;
}

.tms-ms-panel[b-te717m9ul6] {
    /* JS pins with position:fixed (tmsMultiSelect.positionPanel) so grids cannot clip */
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 2200;
    background: #fff;
    border: 1px solid #c8c6c4;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
    padding: 8px;
    min-width: 12rem;
}

.tms-ms-filter-row[b-te717m9ul6] {
    position: relative;
    margin-bottom: 6px;
}

.tms-ms-filter[b-te717m9ul6] {
    width: 100%;
    border: 1px solid #0f6cbd;
    border-radius: 3px;
    padding: 5px 24px 5px 8px;
    font-size: 12px;
    outline: none;
    background: #fff;
}

.tms-ms-filter:focus[b-te717m9ul6] {
    border-color: #0f6cbd;
    box-shadow: 0 0 0 1px #0f6cbd;
}

.tms-ms-filter-clear[b-te717m9ul6] {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #605e5c;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
}

.tms-ms-list[b-te717m9ul6] {
    max-height: 180px;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.tms-ms-item[b-te717m9ul6] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 4px;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
    border-radius: 2px;
    user-select: none;
}

.tms-ms-item:hover[b-te717m9ul6],
.tms-ms-item.is-highlighted[b-te717m9ul6] {
    background: #deecf9;
}

.tms-ms-item input[type="checkbox"][b-te717m9ul6] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #0f6cbd;
    flex-shrink: 0;
}

.tms-ms-select-all[b-te717m9ul6] {
    border-bottom: 1px solid #edebe9;
    margin-bottom: 2px;
    padding-bottom: 6px;
    font-weight: 600;
}

.tms-ms-check[b-te717m9ul6] {
    width: 14px;
    height: 14px;
    border: 1px solid #8a8886;
    border-radius: 2px;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

.tms-ms-check.is-checked[b-te717m9ul6] {
    background: #0f6cbd;
    border-color: #0f6cbd;
}

.tms-ms-check.is-checked[b-te717m9ul6]::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tms-ms-check.is-partial[b-te717m9ul6] {
    background: #0f6cbd;
    border-color: #0f6cbd;
}

.tms-ms-check.is-partial[b-te717m9ul6]::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    top: 5px;
    height: 2px;
    background: #fff;
}

.tms-ms-empty[b-te717m9ul6] {
    padding: 8px 4px;
    font-size: 12px;
    color: #a19f9d;
}
/* /Components/Shared/PartyInfoStrip.razor.rz.scp.css */
/* Styles for the shared Logistics / Transportation / Vessel & Ports summary strip.
   Moved here from ContainerMovementForm.razor.css and ReleaseOrder.razor.css so the strip can be
   rendered by both forms without duplicating either the markup or the rules. */

.cmf-party-info-strip.container-info-strip[b-10f69p753s] {
    min-height: 0;
    padding: 6px 0 6px 10px;
}

.cmf-party-info-layout[b-10f69p753s] {
    display: flex;
    align-items: flex-start;
    min-height: 0;
}

.cmf-party-info-section[b-10f69p753s] {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 12px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    display: flex;
    flex-direction: column;
}

.cmf-party-info-section:hover[b-10f69p753s] {
    background: rgba(34, 102, 227, 0.05);
}

.cmf-party-info-section:focus-visible[b-10f69p753s] {
    outline: 2px solid #2266e3;
    outline-offset: -2px;
}

.cmf-party-info-section-head[b-10f69p753s] {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
    min-height: 18px;
}

.cmf-party-info-section-head .container-info-badge-aging[b-10f69p753s] {
    margin-left: auto;
    background: #ffe0b2;
    color: #8a3a0a;
    font-weight: 600;
    white-space: nowrap;
}

.cmf-party-info-logistics-row1[b-10f69p753s] {
    gap: 14px;
}

.cmf-party-info-divider[b-10f69p753s] {
    width: 1px;
    background: #e0dbd3;
    flex-shrink: 0;
    align-self: stretch;
    margin: 2px 0;
}

.cmf-party-info-strip .container-info-row[b-10f69p753s] {
    gap: 14px;
}

.cmf-party-info-strip .container-info-row-meta[b-10f69p753s] {
    margin-top: 2px;
}

.cmf-party-info-strip .container-info-value[b-10f69p753s] {
    line-height: 1.25;
}

.cmf-party-info-strip .container-info-value.is-empty[b-10f69p753s] {
    color: #a09888;
    font-style: italic;
}

.cmf-party-info-strip .container-info-badge-pay[b-10f69p753s] {
    background: #eef3fc;
    color: #2266e3;
}

.cmf-party-info-strip .container-info-item-third[b-10f69p753s] {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    min-width: 0;
    padding-right: 6px;
}

.cmf-party-info-strip .container-info-row-meta .container-info-item-third:last-child[b-10f69p753s] {
    padding-right: 0;
}

.cmf-party-info-transport-row2 .container-info-item-third[b-10f69p753s] {
    flex: 1 1 0;
    max-width: none;
}

@media (max-width: 1200px) {
    .cmf-party-info-layout[b-10f69p753s] {
        flex-direction: column;
        min-height: 0;
    }

    .cmf-party-info-divider[b-10f69p753s] {
        width: auto;
        height: 1px;
        margin: 0;
    }

    .cmf-party-info-section[b-10f69p753s] {
        padding: 10px 14px;
    }

    .cmf-party-info-strip .container-info-item-third[b-10f69p753s] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
/* /Components/Shared/StoreItemSearchSelect.razor.rz.scp.css */
/* Store item typeahead - notification-card list.
   The panel is a normal DOM child, but tmsAutocomplete pins it with position:fixed
   (wwwroot/js/autocomplete-helpers.js) so an overflow:auto grid can never clip it. */

.store-item-search[b-5mrstafhm3] {
    position: relative;
    width: 100%;
    min-width: 0;
}

.store-item-search.is-disabled[b-5mrstafhm3] {
    opacity: 0.6;
}

.store-item-search-box[b-5mrstafhm3] {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.store-item-search-input[b-5mrstafhm3] {
    width: 100%;
    padding-right: 26px;
}

.store-item-search-toggle[b-5mrstafhm3] {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #605e5c;
    cursor: pointer;
    font-size: 11px;
}

.store-item-search-toggle:hover[b-5mrstafhm3] {
    background: #f3f2f1;
    color: #0f548c;
}

.store-item-search-toggle:disabled[b-5mrstafhm3] {
    cursor: default;
    opacity: 0.45;
}

/* ---- Notification-style panel (mirrors the apple-toast look) ---- */
.store-item-search-panel[b-5mrstafhm3] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    min-width: 380px;
    max-height: 420px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    font-family: 'SF Pro Text', 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
}

.store-item-search-head[b-5mrstafhm3] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px 6px;
    background: #ffffff;
}

.store-item-search-head-title[b-5mrstafhm3] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0f548c;
}

.store-item-search-head-count[b-5mrstafhm3] {
    font-size: 10px;
    font-weight: 600;
    color: #b8bec7;
}

.store-item-search-separator[b-5mrstafhm3] {
    height: 1px;
    background: #0f548c;
    opacity: 0.35;
}

.store-item-search-list[b-5mrstafhm3] {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 4px;
}

.store-item-search-option[b-5mrstafhm3] {
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.store-item-search-option.highlighted[b-5mrstafhm3] {
    background: #eaf3fb;
}

.store-item-search-option.selected[b-5mrstafhm3] {
    background: #e3f0fa;
    box-shadow: inset 0 0 0 1px #0f548c;
}

.store-item-search-empty[b-5mrstafhm3] {
    padding: 14px 10px;
    text-align: center;
    color: #8b7355;
    font-size: 12px;
    font-style: italic;
}

/* Pager footer: the list is capped by MaxResults, this pages through the rest of the matches. */
.store-item-search-more[b-5mrstafhm3] {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-top: 1px solid rgba(15, 84, 140, 0.18);
    background: #f8fbfe;
    color: #0f548c;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.store-item-search-more:hover[b-5mrstafhm3] {
    background: #eaf3fb;
}

/* ---- Two-line option: code + name, then supporting metadata ---- */
.store-item-dd[b-5mrstafhm3] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.store-item-dd-primary[b-5mrstafhm3] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: #323130;
}

.store-item-dd-code[b-5mrstafhm3] {
    flex: 0 0 auto;
    font-family: Consolas, "Courier New", monospace;
    font-weight: 600;
    color: #0f548c;
    white-space: nowrap;
}

.store-item-dd-maincode[b-5mrstafhm3] {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 999px;
    background: #f3f2f1;
    color: #8b7355;
    font-family: Consolas, "Courier New", monospace;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.store-item-dd-name[b-5mrstafhm3] {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Optional trailing figure a host supplies (the Process Run reads on-hand here). Rendered only when
   the host passes one, so every other form's list is unchanged. */
.store-item-dd-stock[b-5mrstafhm3] {
    flex: 0 0 auto;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef6ec;
    color: #2e6b2a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.store-item-dd-secondary[b-5mrstafhm3] {
    margin-top: 2px;
    font-size: 11px;
    color: #8b7355;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* /Components/Shared/StoreItemSelectionModal.razor.rz.scp.css */
/* Empty-state row for the shared Store item multi-select dialog. */

.store-item-modal-empty[b-w5tttwsjfu] {
    padding: 14px 10px;
    text-align: center;
    color: #8b7355;
}

.store-item-toast[b-w5tttwsjfu] {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
}

.store-item-toast-body[b-w5tttwsjfu] {
    display: block;
    overflow: auto;
    padding: 0;
}

.store-item-sheet[b-w5tttwsjfu] {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    color: #323130;
}

.store-item-sheet th[b-w5tttwsjfu] {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 6px 8px;
    background: #fff;
    border-bottom: 1px solid rgba(232, 166, 54, 0.45);
    color: #8b7355;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.store-item-sheet td[b-w5tttwsjfu] {
    padding: 6px 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
    white-space: nowrap;
}

.store-item-sheet tbody tr[b-w5tttwsjfu] {
    cursor: pointer;
}

.store-item-sheet tbody tr:hover[b-w5tttwsjfu] {
    background: #f7f8fa;
}

.store-item-sheet tbody tr.is-on[b-w5tttwsjfu] {
    background: #fff8ee;
    box-shadow: inset 3px 0 0 #e8a636;
}

.store-item-sheet-check[b-w5tttwsjfu] {
    width: 32px;
    text-align: center;
}

.store-item-sheet-code[b-w5tttwsjfu] {
    font-family: Consolas, "Courier New", monospace;
    font-weight: 700;
    color: #0f548c;
    white-space: nowrap;
}

.store-item-note-stock[b-w5tttwsjfu] {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef6ec;
    color: #2e6b2a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.store-item-toast-actions[b-w5tttwsjfu] {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: #fafbfc;
}

.store-item-toast-btn[b-w5tttwsjfu] {
    min-width: 84px;
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: #f1f3f5;
    color: #38414d;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
}

.store-item-toast-btn:hover[b-w5tttwsjfu] {
    background: #e6e9ed;
}

.store-item-toast-btn-primary[b-w5tttwsjfu] {
    background: #e8a636;
    color: #fff;
}

.store-item-toast-btn-primary:hover[b-w5tttwsjfu] {
    background: #d4962c;
}
/* /Components/Shared/StoreListFilterBar.razor.rz.scp.css */
/* Shared filter bar for Store dialog grids. Scoped to this component so no
   shared stylesheet is touched. */

.store-list-filter[b-l4nfwmcp69] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.store-list-filter > .bi-search[b-l4nfwmcp69] {
    flex: 0 0 auto;
    color: #8b7355;
    font-size: 13px;
}

.store-list-filter-input[b-l4nfwmcp69] {
    flex: 1 1 auto;
    min-width: 0;
}

.store-list-filter-clear[b-l4nfwmcp69] {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #8b7355;
    padding: 2px 6px;
    line-height: 1;
}

.store-list-filter-clear:hover[b-l4nfwmcp69] {
    color: #323130;
}

.store-list-filter-count[b-l4nfwmcp69] {
    flex: 0 0 auto;
    font-size: 11px;
    color: #8b7355;
    white-space: nowrap;
}
/* /Components/Shared/StoreProcessTracker.razor.rz.scp.css */
/*
    Store process tracker.

    A horizontal D365-style track: each step is an equal flex cell, the marker sits above its label,
    and a solid band spans the whole row so the steps read as one process rather than six buttons.

    Geometry: the track is `display:flex` with `flex:1 1 0` cells, so the glide indicator can be
    positioned with a plain percentage of the step count - no measuring, no JS, and it stays correct
    when the window resizes. That is what lets the marker actually *move* between steps.
*/

.spt[b-aasfy8v43f] {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 10px;
    border: 1px solid #e8e4de;
    border-radius: 4px;
    background: #faf9f8;
    overflow: hidden;
}

/* The sliding highlight. It sits behind the steps so the text stays legible as it passes under. */
.spt-glide[b-aasfy8v43f] {
    position: absolute;
    top: 0;
    bottom: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f2f8fd 100%);
    border-bottom: 2px solid #0078d4;
    transition: left 0.22s ease;
    pointer-events: none;
}

.spt-step[b-aasfy8v43f] {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 8px 6px 7px;
    border: 0;
    border-right: 1px solid #edebe9;
    background: transparent;
    color: #605e5c;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
}

.spt-step:last-child[b-aasfy8v43f] {
    border-right: 0;
}

.spt-step:hover[b-aasfy8v43f] {
    background: rgba(0, 120, 212, 0.05);
}

.spt-step:focus-visible[b-aasfy8v43f] {
    outline: 2px solid #0078d4;
    outline-offset: -2px;
}

/* Marker: a disc that carries the state. Done = green tick, active = blue ring, pending = pale. */
.spt-marker[b-aasfy8v43f] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #c8c6c4;
    background: #fff;
    color: #8a8886;
    font-size: 12px;
    line-height: 1;
    flex: 0 0 auto;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.spt-dot[b-aasfy8v43f] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.spt-text[b-aasfy8v43f] {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.spt-label[b-aasfy8v43f] {
    max-width: 100%;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spt-hint[b-aasfy8v43f] {
    max-width: 100%;
    font-size: 10px;
    line-height: 1.2;
    color: #8a8886;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

/* ---- states ---- */

.spt-step.is-done .spt-marker[b-aasfy8v43f] {
    border-color: #107c10;
    background: #107c10;
    color: #fff;
}

.spt-step.is-done .spt-label[b-aasfy8v43f] {
    color: #323130;
}

.spt-step.is-started .spt-marker[b-aasfy8v43f] {
    border-color: #0078d4;
    background: #eaf4fc;
    color: #0078d4;
}

.spt-step.is-active .spt-marker[b-aasfy8v43f] {
    border-color: #0078d4;
    background: #0078d4;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.18);
}

.spt-step.is-active .spt-label[b-aasfy8v43f] {
    color: #0078d4;
}

.spt-step.is-active .spt-hint[b-aasfy8v43f] {
    color: #106ebe;
}

/* Partial progress line: only on a step that has a count and is not finished, so the strip does not
   grow a bar under every label. */
.spt-progress[b-aasfy8v43f] {
    display: block;
    width: 60%;
    height: 2px;
    margin-top: 1px;
    border-radius: 1px;
    background: #edebe9;
    overflow: hidden;
}

.spt-progress > span[b-aasfy8v43f] {
    display: block;
    height: 100%;
    background: #0078d4;
    transition: width 0.2s ease;
}
/* /Components/Shared/StoreProcessTrail.razor.rz.scp.css */
/* Store process trail - D365 business-process shape shared by the store transaction pages.
   Geometry mirrors the CFS trail (markers ride on the band's top border and that border is the
   connector line); only the accent colour and the rejected state are store-specific. */
.store-bpf-trail[b-e9uetnfvuu] {
    --store-bpf-accent: #0078d4;
    --store-bpf-accent-soft: #a9d3f5;
    /* Room inside the track above the stage labels. The marker is centred on the band's top
       border, so this value also decides how far the marker rises above the band. */
    --store-bpf-track-pad-top: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin: 0;
    min-height: 46px;
    background: linear-gradient(180deg, #edebe9 0%, #f5f4f3 45%, #f3f2f1 100%);
    border: 1px solid #e1dfdd;
    border-radius: 2px;
    /* Markers are drawn half outside the border box; clipping them would cut every stage. */
    overflow: visible;
}

.store-bpf-ribbon[b-e9uetnfvuu] {
    position: relative;
    flex: 0 0 auto;
    max-width: 22rem;
    min-width: 11rem;
    padding: 6px 12px;
    background: var(--store-bpf-accent);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    z-index: 2;
    border-radius: 2px 0 0 2px;
}

.store-bpf-ribbon.void[b-e9uetnfvuu] {
    background: #605e5c;
}

.store-bpf-ribbon.closed[b-e9uetnfvuu] {
    background: #107c10;
}

.store-bpf-ribbon-head[b-e9uetnfvuu] {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.store-bpf-ribbon-label[b-e9uetnfvuu] {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* "3 of 7" - where the requisition sits in the cycle, so a long trail stays readable at a glance. */
.store-bpf-ribbon-step[b-e9uetnfvuu] {
    flex: 0 0 auto;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.store-bpf-ribbon-detail[b-e9uetnfvuu] {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.95;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-bpf-back[b-e9uetnfvuu] {
    flex: 0 0 22px;
    width: 22px;
    margin: 0;
    border: none;
    background: #7cb9ea;
    color: #063a61;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 2;
}

.store-bpf-back:hover[b-e9uetnfvuu] {
    background: #63a9e0;
}

.store-bpf-back:focus-visible[b-e9uetnfvuu] {
    outline: 2px solid #0078d4;
    outline-offset: 1px;
}

.store-bpf-back i[b-e9uetnfvuu] {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.store-bpf-track[b-e9uetnfvuu] {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    padding: var(--store-bpf-track-pad-top) 18px 12px 18px;
    display: flex;
    align-items: flex-start;
}

.store-bpf-stages[b-e9uetnfvuu] {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
    gap: 4px;
}

.store-bpf-stage[b-e9uetnfvuu] {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.store-bpf-node[b-e9uetnfvuu] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: default;
    width: 100%;
    min-width: 0;
    color: #605e5c;
}

button.store-bpf-node[b-e9uetnfvuu] {
    cursor: pointer;
}

button.store-bpf-node:hover .store-bpf-label[b-e9uetnfvuu] {
    color: #0078d4;
}

/* The next step points at a document that does not exist yet, so it reads as something to
   create. Only the clickable form gets the link underline. */
.store-bpf-stage.is-action button.store-bpf-node .store-bpf-label[b-e9uetnfvuu] {
    text-decoration: underline dotted;
    text-underline-offset: 3px;
}

.store-bpf-stage.is-action .store-bpf-node .store-bpf-label[b-e9uetnfvuu]::before {
    content: '+';
    font-weight: 700;
    margin-right: 3px;
}

.store-bpf-stage.is-action button.store-bpf-node:hover .store-bpf-label[b-e9uetnfvuu] {
    text-decoration-style: solid;
    color: var(--store-bpf-accent);
}

.store-bpf-marker[b-e9uetnfvuu] {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 16px;
    z-index: 2;
    position: relative;
}

/* D365 business-process shape: the marker is lifted out of the label flow and centred on the
   band's top border, so the border itself reads as the connector line between the stages. */
.store-bpf-stage .store-bpf-marker[b-e9uetnfvuu] {
    position: absolute;
    top: calc(0px - var(--store-bpf-track-pad-top) - 8px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.store-bpf-stage .store-bpf-marker-current[b-e9uetnfvuu] {
    top: calc(0px - var(--store-bpf-track-pad-top) - 9px);
}

.store-bpf-marker-pending[b-e9uetnfvuu] {
    border: 1.5px solid #a19f9d;
    background: #fff;
}

/* Completed step: solid accent disc with a tick. */
.store-bpf-marker-completed[b-e9uetnfvuu] {
    border: 1.5px solid var(--store-bpf-accent);
    background: var(--store-bpf-accent);
}

.store-bpf-marker-completed[b-e9uetnfvuu]::after {
    content: '';
    width: 7px;
    height: 4px;
    margin-top: -2px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

/* Step bypassed by this requisition (no comparative, direct close). */
.store-bpf-marker-skipped[b-e9uetnfvuu] {
    border: 1.5px dashed #a19f9d;
    background: #fff;
}

/* Approval rejected: a red disc with a cross, so the outcome is not mistaken for "pending". */
.store-bpf-marker-rejected[b-e9uetnfvuu] {
    border: 1.5px solid #a4262c;
    background: #a4262c;
}

.store-bpf-marker-rejected[b-e9uetnfvuu]::before,
.store-bpf-marker-rejected[b-e9uetnfvuu]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

.store-bpf-marker-rejected[b-e9uetnfvuu]::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.store-bpf-marker-rejected[b-e9uetnfvuu]::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.store-bpf-stage.state-completed .store-bpf-label[b-e9uetnfvuu] {
    font-weight: 600;
}

.store-bpf-stage.state-pending .store-bpf-label[b-e9uetnfvuu] {
    color: #8a8886;
}

.store-bpf-stage.state-skipped .store-bpf-label[b-e9uetnfvuu] {
    color: #a19f9d;
}

.store-bpf-stage.state-rejected .store-bpf-label[b-e9uetnfvuu] {
    color: #a4262c;
    font-weight: 600;
}

.store-bpf-marker-current[b-e9uetnfvuu] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: -1px 0 1px 0;
    border: none;
    background: transparent;
}

.store-bpf-bullseye-core[b-e9uetnfvuu] {
    width: 18px;
    height: 18px;
    box-sizing: border-box;
    border: 2px solid var(--store-bpf-accent);
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-bpf-bullseye-core[b-e9uetnfvuu]::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--store-bpf-accent);
}

.store-bpf-label[b-e9uetnfvuu] {
    color: #201f1e;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.store-bpf-loading[b-e9uetnfvuu] {
    font-size: 12px;
    color: #605e5c;
    padding-left: 8px;
    position: relative;
    z-index: 1;
}

.store-bpf-collapsed-stage[b-e9uetnfvuu] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: #242424;
    font-size: 12px;
    font-weight: 700;
}

.store-bpf-collapsed-label[b-e9uetnfvuu] {
    white-space: nowrap;
}

.store-bpf-trail.is-void[b-e9uetnfvuu] {
    --store-bpf-accent: #8a8886;
    --store-bpf-accent-soft: #c8c6c4;
}

.store-bpf-trail.is-closed[b-e9uetnfvuu] {
    --store-bpf-accent: #107c10;
    --store-bpf-accent-soft: #a7d8a7;
}

.store-bpf-trail.is-collapsed[b-e9uetnfvuu] {
    min-height: 44px;
}

@media (max-width: 1100px) {
    .store-bpf-ribbon[b-e9uetnfvuu] {
        max-width: 13rem;
        min-width: 8rem;
    }

    .store-bpf-label[b-e9uetnfvuu] {
        font-size: 10px;
    }
}
/* /Components/Shared/StoreVendorSearchSelect.razor.rz.scp.css */
/* Store vendor typeahead - searchable list that still accepts an unregistered name.
   The panel is a normal DOM child, but tmsAutocomplete pins it with position:fixed
   (wwwroot/js/autocomplete-helpers.js) so the grid header can never clip it. */

.store-vendor-search[b-jqa2k79a13] {
    position: relative;
    width: 100%;
    min-width: 0;
}

.store-vendor-search.is-disabled[b-jqa2k79a13] {
    cursor: default;
}

.store-vendor-search-box[b-jqa2k79a13] {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Higher specificity than the grid header skin so the caret never sits on the text. */
.store-vendor-search .store-vendor-search-input[b-jqa2k79a13] {
    width: 100%;
    min-width: 0;
    padding-right: 18px;
    text-overflow: ellipsis;
}

/* The caret stays quiet inside a table header until the field is hovered or open. */
.store-vendor-search-toggle[b-jqa2k79a13] {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: transparent;
    color: #a19f9d;
    font-size: 8px;
    opacity: 0;
    transition: opacity 0.12s ease;
    cursor: pointer;
}

.store-vendor-search:hover .store-vendor-search-toggle[b-jqa2k79a13],
.store-vendor-search.is-open .store-vendor-search-toggle[b-jqa2k79a13],
.store-vendor-search:focus-within .store-vendor-search-toggle[b-jqa2k79a13] {
    opacity: 1;
}

.store-vendor-search-toggle:hover[b-jqa2k79a13] {
    background: #eff6fc;
    color: #0f548c;
}

/* ---- Notification-style panel ---- */
.store-vendor-search-panel[b-jqa2k79a13] {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    max-height: 270px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.store-vendor-search-head[b-jqa2k79a13] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px 6px;
    background: #ffffff;
}

.store-vendor-search-head-title[b-jqa2k79a13] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #0f548c;
}

.store-vendor-search-head-count[b-jqa2k79a13] {
    font-size: 10px;
    font-weight: 600;
    color: #b8bec7;
}

.store-vendor-search-separator[b-jqa2k79a13] {
    height: 1px;
    background: #0f548c;
    opacity: 0.35;
}

.store-vendor-search-list[b-jqa2k79a13] {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 4px;
}

.store-vendor-search-option[b-jqa2k79a13] {
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
}

.store-vendor-search-option.highlighted[b-jqa2k79a13] {
    background: #eaf3fb;
}

.store-vendor-search-option.selected[b-jqa2k79a13] {
    background: #e3f0fa;
    box-shadow: inset 0 0 0 1px #0f548c;
}

.store-vendor-search-option.is-manual[b-jqa2k79a13] {
    margin-top: 3px;
    border-top: 1px dashed #edebe9;
    border-radius: 0 0 8px 8px;
}

.store-vendor-search-option.is-manual .store-vendor-dd-name[b-jqa2k79a13] {
    color: #605e5c;
    font-style: italic;
    font-weight: 600;
}

.store-vendor-dd-manual-icon[b-jqa2k79a13] {
    font-size: 10px;
    color: #a19f9d;
}

.store-vendor-search-empty[b-jqa2k79a13] {
    padding: 14px 10px;
    text-align: center;
    color: #8b7355;
    font-size: 12px;
    font-style: italic;
}

.store-vendor-search-foot[b-jqa2k79a13] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 5px 12px 7px;
    border-top: 1px solid #f3f2f1;
    font-size: 10px;
    color: #a19f9d;
}

.store-vendor-search-foot i[b-jqa2k79a13] {
    font-size: 9px;
}

/* ---- Two-line option: name, then supporting metadata ---- */
.store-vendor-dd[b-jqa2k79a13] {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.store-vendor-dd-primary[b-jqa2k79a13] {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    font-size: 12.5px;
    color: #323130;
}

.store-vendor-dd-name[b-jqa2k79a13] {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-vendor-dd-code[b-jqa2k79a13] {
    flex: 0 0 auto;
    padding: 0 5px;
    border-radius: 999px;
    background: #f3f2f1;
    color: #8b7355;
    font-family: Consolas, "Courier New", monospace;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.store-vendor-dd-secondary[b-jqa2k79a13] {
    margin-top: 2px;
    font-size: 10.5px;
    color: #8b7355;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
