/* LaraAllocationBar — proportional quantity-allocation bar.
   Loaded globally (not scoped .razor.css) because the control is commonly hosted inside a
   DevExpress popup portal, where Blazor CSS isolation is unreliable. */

.alloc-bar {
    position: relative;
    display: flex;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: #eef1f4;
    margin-bottom: 14px;
    user-select: none;
    touch-action: none;
}

.alloc-bar--dragging {
    cursor: ew-resize;
}

.alloc-seg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    min-width: 0;
    flex-basis: 0; /* keep widths exactly proportional so the handles sit on the seams */
    overflow: hidden;
    white-space: nowrap;
}

.alloc-seg-v {
    font-size: 13px;
    font-weight: 700;
}

.alloc-seg-u {
    font-size: 10px;
    font-weight: 600;
    opacity: .85;
    margin-left: 1px;
}

.alloc-seg-l {
    font-size: 10.5px;
    opacity: .92;
}

.alloc-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18px;
    transform: translateX(-50%);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    touch-action: none;
}

.alloc-handle span {
    width: 4px;
    height: 62%;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
}

.alloc-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
}

.alloc-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}

.alloc-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex: 0 0 auto;
}

.alloc-cell label {
    font-size: 12px;
    color: var(--lara-text, #39424C);
    font-weight: 600;
}

.alloc-cell .alloc-cell-input {
    width: 104px;
}

.alloc-cell-unit {
    font-size: 11px;
    color: var(--lara-text-secondary, #8a939c);
    min-width: 6px;
}

.alloc-distribute {
    margin-left: auto;
}