/* Focused operational controls share the active FORM+ workspace theme. */
body.lsp-beta-active .lsp-modal-overlay { font-family: var(--formplus-font, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif); font-size: 14px; line-height: 1.5; }
body.lsp-beta-active .lsp-modal-overlay .lsp-modal-header { background: transparent !important; color: var(--lsp-beta-ink) !important; }
body.lsp-beta-active #lsp-order-mgmt-modal .lsp-modal-header { padding: 18px 48px 16px 20px; }
body.lsp-beta-active #lsp-order-mgmt-modal .lsp-modal-header h4 { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
body.lsp-beta-active #lsp-order-mgmt-modal .lsp-modal-header > div { font-size: 13px; }
body.lsp-beta-active .lsp-om-tabs [role="tab"] { color: inherit !important; border-radius: 999px !important; box-shadow: none !important; }
body.lsp-beta-active #lsp-order-mgmt-modal .lsp-om-tabs [aria-selected="true"] { background: var(--lsp-beta-field) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent) !important; }
.lsp-modal-overlay [hidden], .lsp-modal-overlay .lsp-om-table-wrapper[hidden] { display: none !important; }
.lsp-modal-overlay :focus-visible, .lsp-name-retry:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.lsp-name-save-state { display: inline-flex; align-items: center; gap: .5rem; margin: .25rem 0; font-size: .8rem; }
.lsp-name-retry { font: inherit; color: inherit; border: 1px solid currentColor; background: transparent; border-radius: 999px; padding: .2rem .65rem; cursor: pointer; }
.lsp-receipt-status { display: block; font-size: .85rem; margin-block-start: .5rem; }
.lsp-om-tabs { display: flex; gap: .4rem; padding: .6rem 1.25rem; overflow-x: auto; flex-shrink: 0; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.lsp-om-tabs [role="tab"] { flex-shrink: 0; background: transparent !important; }
.lsp-om-tabs [aria-selected="true"] { background: color-mix(in srgb, currentColor 12%, transparent) !important; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); }
#lsp-order-mgmt-form { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
#lsp-order-mgmt-form > .lsp-modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 1rem 1.25rem; }
#lsp-order-mgmt-modal .lsp-modal-header { flex-shrink: 0; padding-inline-end: 3rem; }
#lsp-order-mgmt-modal [role="tabpanel"] > p { max-width: 80ch; margin-block: .2rem 1rem; }
.lsp-om-settings-grid, .lsp-om-schedule-controls { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.lsp-om-settings-grid > label, .lsp-om-schedule-controls > label { display: flex; flex-direction: column; gap: .35rem; min-width: 180px; max-width: 360px; font-size: .875rem; }
.lsp-om-schedule-controls > label:has([type="checkbox"]), .lsp-om-settings-grid > label:has([type="checkbox"]) { flex-direction: row; align-items: center; }
.lsp-om-schedule-controls input[type="checkbox"] { width: auto !important; }
#lsp-om-date-preview { margin-block: .75rem; }
#lsp-om-date-preview ul { max-height: 180px; overflow: auto; padding-left: 1.5rem; }
#lsp-om-apply-dates { margin-bottom: 1rem; }
#lsp-order-mgmt-modal [data-lsp-om-view="products"] .lsp-om-col-delivery,
#lsp-order-mgmt-modal [data-lsp-om-view="people"] .lsp-om-col-delivery,
#lsp-order-mgmt-modal [data-lsp-om-view="people"] .lsp-om-col-quantity,
#lsp-order-mgmt-modal [data-lsp-om-view="delivery"] .lsp-om-col-quantity { display: none !important; }
#lsp-order-mgmt-modal [data-lsp-om-view="products"] .lsp-section-user-dropdown,
#lsp-order-mgmt-modal [data-lsp-om-view="products"] .lsp-section-assigned-names,
#lsp-order-mgmt-modal [data-lsp-om-view="delivery"] .lsp-section-user-dropdown,
#lsp-order-mgmt-modal [data-lsp-om-view="delivery"] .lsp-section-assigned-names,
#lsp-order-mgmt-modal [data-lsp-om-view="delivery"] .lsp-om-move-up,
#lsp-order-mgmt-modal [data-lsp-om-view="delivery"] .lsp-om-move-down,
#lsp-order-mgmt-modal [data-lsp-om-view="delivery"] .lsp-om-handle,
#lsp-order-mgmt-modal [data-lsp-om-view="delivery"] .lsp-om-move-section,
#lsp-order-mgmt-modal [data-lsp-om-view="delivery"] .lsp-om-delete-section,
#lsp-order-mgmt-modal [data-lsp-om-view="products"] .lsp-om-select-item,
#lsp-order-mgmt-modal [data-lsp-om-view="people"] .lsp-om-select-item { display: none !important; }
#lsp-order-mgmt-modal .lsp-om-table { table-layout: auto; }
#lsp-order-mgmt-modal .lsp-om-table input, #lsp-order-mgmt-modal .lsp-om-table select { min-height: 38px; font-size: .875rem; }
#lsp-order-mgmt-modal .lsp-om-table input[type="checkbox"] { width: 18px !important; min-height: 18px; flex-shrink: 0; }
#lsp-order-mgmt-modal .lsp-product-info { flex-wrap: wrap; }
#lsp-order-mgmt-modal .lsp-om-move-up, #lsp-order-mgmt-modal .lsp-om-move-down,
#lsp-order-mgmt-modal .lsp-om-delete-section, #lsp-order-mgmt-modal .lsp-section-user-toggle { min-width: 36px; min-height: 36px; padding: .3rem .6rem; background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: .5rem; cursor: pointer; font: inherit; }
#lsp-order-mgmt-modal .lsp-om-handle { cursor: grab; flex-shrink: 0; }
#lsp-order-mgmt-modal .lsp-om-move-section { max-width: 240px; margin-block-start: .4rem; }
#lsp-order-mgmt-modal .lsp-om-section-row > td > div { flex-wrap: wrap; }
#lsp-order-mgmt-modal .lsp-section-user-list { position: static !important; width: min(300px, 65vw); margin-block-start: .5rem; }
#lsp-order-mgmt-modal .lsp-modal-footer { align-items: center; flex-wrap: wrap; flex-shrink: 0; }
#lsp-om-save-status { flex: 1; margin-inline-end: auto; font-size: .875rem; }
#lsp-card-bg-preview { width: min(360px, 100%); height: 180px; background-size: cover; background-position: center; background-color: #7773; position: relative; border-radius: .75rem; cursor: crosshair; margin-bottom: 1rem; }
#lsp-bg-focal-point { position: absolute; width: 12px; height: 12px; background: #fff; border: 2px solid #111; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.lsp-team-members { padding-block-end: 1rem; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); margin-bottom: 1rem; }
.lsp-current-team p { margin-block: .5rem; font-size: .875rem; }
.lsp-short-ship-table input[type="number"] { width: 6rem; }
.lsp-short-ship-table small { display: block; max-width: 28ch; margin-top: .3rem; }
@media (max-width: 760px) {
    .lsp-om-tabs { padding-inline: .75rem; }
    #lsp-order-mgmt-form > .lsp-modal-body { padding: .75rem; }
    .lsp-om-schedule-controls > label, .lsp-om-settings-grid > label { min-width: 0; width: 100%; max-width: none; }
    #lsp-om-save-status { flex-basis: 100%; }
    #lsp-order-mgmt-modal .lsp-om-table-wrapper { overflow: visible; }
    #lsp-order-mgmt-modal .lsp-om-table, #lsp-order-mgmt-modal .lsp-om-table tbody, #lsp-order-mgmt-modal .lsp-om-table tr, #lsp-order-mgmt-modal .lsp-om-table td { display: block; width: 100% !important; box-sizing: border-box; }
    #lsp-order-mgmt-modal .lsp-om-table thead { display: none; }
    #lsp-order-mgmt-modal .lsp-om-item-row { margin-bottom: 1rem; border: 1px solid color-mix(in srgb, currentColor 15%, transparent); border-radius: .75rem; padding: .5rem; }
    #lsp-order-mgmt-modal .lsp-om-item-row td[data-label]::before { content: attr(data-label); display: block; font-size: .75rem; margin-bottom: .25rem; opacity: .75; }
}
