/* Mini-ERP integration for development-ui.
   This branch does not contain the central flumen-ui-master router/navigation
   shell. Keep the ERP surface self-contained and scope every override to the
   portal class set by Erp.js. */
body.flumenPortalERP #analysis-matrix-root {
    display: block !important;
}

body.flumenPortalERP #analysis-matrix-root > div > :not(#analysis-matrix-sidepanel) {
    display: none !important;
}

/* The legacy window also mounts analysis/report/simulation/group editors.
   ERP owns only the shared header/filter/table slots. Establish that boundary
   in CSS before cold-route data arrives and retain it through late callbacks. */
body.flumenPortalERP #tableWindowContent > :not(#tableWindowContentHeader):not(#tableWindowContentFilter):not(#tableWindowTableContent),
body.flumenPortalERP #tableWindowHolder > :not(#tableWindowHeader):not(#tableWindowContent):not(#tableWindowHolder_lock):not(#tableWindow_tableTooltip):not(#miniERPTitleFunctionClose):not(.cockpitGeom) {
    display: none !important;
}

/* Explorer drawers remain outside the standalone ERP surface. */
body.flumenPortalERP #sidePanelControlBar,
body.flumenPortalERP #problemPanelHolder,
body.flumenPortalERP #problemPanelMenu,
body.flumenPortalERP #backgroundPanel,
body.flumenPortalERP #backgroundPanelLoadSave_previewInfo,
body.flumenPortalERP #menuPanel_ViewLoadSave {
    display: none !important;
}

body.flumenPortalERP #sidePanel:not(.sidePanel--foreground) {
    display: flex !important;
    width: 3vmin !important;
    overflow: visible !important;
    background: transparent !important;
}

body.flumenPortalERP #sidePanel:not(.sidePanel--foreground) #sidePanelContent {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* The shared table window historically starts below a cockpit header. In
   development-ui Mini-ERP owns the complete viewport. */
body.flumenPortalERP #tableWindowHolder {
    display: flex !important;
    box-sizing: border-box;
    z-index: 20010 !important;
    top: 0 !important;
    right: auto !important;
    bottom: auto !important;
    left: var(--analysis-matrix-navigation-width, var(--flumen-navigation-width, 76px)) !important;
    width: calc(100vw - var(--analysis-matrix-navigation-width, var(--flumen-navigation-width, 76px))) !important;
    height: 100vh !important;
}

/* Modern Mini-ERP workspace ------------------------------------------------
   The legacy table window was designed as a cockpit overlay.  In the routed
   portal it becomes a calm, full-height application workspace instead. */
body.flumenPortalERP #tableWindowHolder {
    --erp-ink: #172033;
    --erp-muted: #64748b;
    --erp-line: #dbe4ee;
    --erp-surface: #ffffff;
    --erp-page: #f6f8fb;
    --erp-accent: #1168d9;
    background: var(--erp-page);
    color: var(--erp-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    gap: 0;
    overflow: hidden;
}

body.flumenPortalERP #miniERPTitleFunctionClose {
    display: none !important;
}

/* Keep the fLUMINA triangle/star as a quiet brand motif in the workspace. */
body.flumenPortalERP #tableWindowHolder .cockpitGeom {
    display: block !important;
    z-index: 0;
    pointer-events: none;
    opacity: 0.14;
}

body.flumenPortalERP #tableWindowHolder .tableWindowGeom1 {
    left: -92px;
    bottom: -72px;
    width: 310px;
    height: 282px;
}

body.flumenPortalERP #tableWindowHolder .cockpitGeom2 {
    top: 72px;
    right: -118px;
    width: 270px;
    height: 246px;
}

body.flumenPortalERP #tableWindowHeader {
    box-sizing: border-box;
    position: absolute;
    z-index: 2;
    top: 32px;
    left: clamp(28px, 4vw, 64px);
    width: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

body.flumenPortalERP #ContentMenuLabel {
    margin: 0;
    color: var(--erp-ink);
    font-family: inherit;
    font-size: clamp(26px, 2.4vw, 38px);
    font-weight: 650;
    line-height: 1.15;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

/* Product header for the customer-facing Mini ERP workspace. */
body.flumenPortalERP #tableWindowHeader.miniERPCustomerPortalHeader {
    min-width: min(360px, calc(100vw - 56px));
    padding: 13px 18px 14px;
    border: 1px solid rgba(196, 211, 229, .88);
    border-radius: 14px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 10px 26px rgba(25, 52, 88, .08);
    backdrop-filter: blur(10px);
}

body.flumenPortalERP #tableWindowHeader.miniERPCustomerPortalHeader #ContentMenuLabel {
    color: #10233f;
    font-size: clamp(25px, 2.25vw, 34px);
    font-weight: 760;
    letter-spacing: -.045em;
}

body.flumenPortalERP #tableWindowHeader.miniERPCustomerPortalHeader .miniERPHeaderContext {
    margin-bottom: 3px;
    color: #1976e9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.flumenPortalERP #tableWindowHeader.miniERPCustomerPortalHeader .miniERPCustomerPortalSubtitle {
    margin: 4px 0 0;
    color: #607894;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
}

/* Purchasing uses the same Mini ERP identity but remains compact. The form
 * contains many operational fields, therefore a large floating card would
 * permanently cover them while scrolling. */
body.flumenPortalERP #tableWindowHeader.miniERPPurchaseOrderHeader {
    min-width: min(330px, calc(100vw - 56px));
    padding: 9px 14px 10px;
    border: 1px solid rgba(196, 211, 229, .86);
    border-radius: 12px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 8px 20px rgba(25, 52, 88, .07);
    backdrop-filter: blur(10px);
}

body.flumenPortalERP #tableWindowHeader.miniERPSupplierHeader {
    min-width: min(340px, calc(100vw - 56px));
    padding: 11px 16px 12px;
    border: 1px solid rgba(196, 211, 229, .88);
    border-radius: 13px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 9px 22px rgba(25, 52, 88, .08);
    backdrop-filter: blur(10px);
}

body.flumenPortalERP #tableWindowHeader.miniERPProductionOrderHeader,
body.flumenPortalERP #tableWindowHeader.miniERPWorkPlanHeader {
    min-width: min(350px, calc(100vw - 56px));
    padding: 11px 16px 12px;
    border: 1px solid rgba(196, 211, 229, .88);
    border-radius: 13px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 9px 22px rgba(25, 52, 88, .08);
    backdrop-filter: blur(10px);
}

body.flumenPortalERP #tableWindowHeader.miniERPProductionOrderHeader #ContentMenuLabel,
body.flumenPortalERP #tableWindowHeader.miniERPWorkPlanHeader #ContentMenuLabel {
    color: #10233f;
    font-size: clamp(23px, 2vw, 31px);
    font-weight: 760;
    letter-spacing: -.04em;
}

body.flumenPortalERP #tableWindowHeader.miniERPProductionOrderHeader .miniERPHeaderContext,
body.flumenPortalERP #tableWindowHeader.miniERPWorkPlanHeader .miniERPHeaderContext {
    margin-bottom: 2px;
    color: #1976e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.flumenPortalERP #tableWindowHeader.miniERPProductionOrderHeader .miniERPCustomerPortalSubtitle,
body.flumenPortalERP #tableWindowHeader.miniERPWorkPlanHeader .miniERPCustomerPortalSubtitle {
    margin: 3px 0 0;
    color: #607894;
    font-size: 12px;
    font-weight: 600;
}

body.flumenPortalERP #tableWindowHeader.miniERPSupplierHeader #ContentMenuLabel {
    color: #10233f;
    font-size: clamp(23px, 2vw, 31px);
    font-weight: 760;
    letter-spacing: -.04em;
}

body.flumenPortalERP #tableWindowHeader.miniERPSupplierHeader .miniERPHeaderContext {
    margin-bottom: 2px;
    color: #1976e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.flumenPortalERP #tableWindowHeader.miniERPSupplierHeader .miniERPCustomerPortalSubtitle {
    margin: 3px 0 0;
    color: #607894;
    font-size: 12px;
    font-weight: 600;
}

body.flumenPortalERP #tableWindowHeader.miniERPPurchaseOrderHeader #ContentMenuLabel {
    color: #10233f;
    font-size: clamp(21px, 1.9vw, 29px);
    font-weight: 760;
    letter-spacing: -.04em;
}

body.flumenPortalERP #tableWindowHeader.miniERPPurchaseOrderHeader .miniERPHeaderContext {
    margin-bottom: 2px;
    color: #1976e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

body.flumenPortalERP #tableWindowHeader.miniERPPurchaseOrderHeader .miniERPCustomerPortalSubtitle {
    margin: 2px 0 0;
    color: #607894;
    font-size: 11px;
    font-weight: 650;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry #tableWindowContent {
    padding-top: 126px;
    scroll-padding-top: 126px;
}

/* The order identity stays visible while the long internal project record is
 * scrolled. Reserve its full height so the first form section never sits
 * beneath the fixed card. */
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry #tableWindowHeader.miniERPCustomerPortalHeader {
    position: absolute;
    z-index: 12;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry #tableWindowContent {
    padding-top: 130px;
    scroll-padding-top: 130px;
}

body.flumenPortalERP #tableWindowContent {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    padding: 104px clamp(28px, 4vw, 64px) 40px;
    overflow: auto;
}

body.flumenPortalERP #tableWindowHolder.miniERPOverview #tableWindowContentHeader {
    display: none;
}

body.flumenPortalERP #tableWindowHolder.miniERPTable #tableWindowContentHeader {
    display: none;
}

body.flumenPortalERP #tableWindowContentHeader {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 58px;
    margin: 0 0 20px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--erp-line);
}

body.flumenPortalERP #tableWindowContentHeaderButton {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
}

body.flumenPortalERP .tableWindowContentHeaderButtonHolder {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--erp-muted);
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

body.flumenPortalERP .tableWindowContentHeaderButtonHolder:not(.disabledElement):hover {
    border-color: #cbd8e6;
    background: #edf5ff;
    color: var(--erp-accent);
}

body.flumenPortalERP #tableWindowContentHeaderTitleFunctionAdd,
body.flumenPortalERP #tableWindowContentHeaderTitleFunctionEdit,
body.flumenPortalERP #tableWindowContentHeaderTitleFunctionOpen,
body.flumenPortalERP #tableWindowContentHeaderTitleFunctionDownload,
body.flumenPortalERP #tableWindowContentHeaderTitleFunctionUpload,
body.flumenPortalERP #tableWindowContentHeaderTitleFunctionLeft,
body.flumenPortalERP #tableWindowContentHeaderTitleFunctionSave,
body.flumenPortalERP #tableWindowContentHeaderTitleIconGeneral,
body.flumenPortalERP #tableWindowContentHeaderTitleIconGeneral2 {
    width: 18px;
    height: 18px;
    margin: 0;
    font-size: 18px;
}

body.flumenPortalERP .tableWindowContentHeaderTitleFunctionLabel {
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
}

body.flumenPortalERP #tableWindowBackArrow {
    position: static;
    order: -1;
    width: 18px;
    margin-right: 4px;
    color: var(--erp-muted);
    font-size: 18px;
}

body.flumenPortalERP #tableWindowContentFilter {
    display: none;
}

body.flumenPortalERP #tableWindowTableContent {
    box-sizing: border-box;
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    font-size: 14px;
}

body.flumenPortalERP #tableWindowTableContent .TableLiveDBHolder {
    padding: 20px;
    border: 1px solid var(--erp-line);
    border-radius: 14px;
    background: var(--erp-surface);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

body.flumenPortalERP #tableWindowTableContent .holderSettingsDiv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

body.flumenPortalERP #tableWindowTableContent .miniERPGeneralActions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    order: 0;
}

body.flumenPortalERP #tableWindowTableContent .miniERPGeneralActions .tableWindowContentHeaderButtonHolder {
    border-color: var(--erp-line);
    background: #fff;
    color: #3e5878;
}

body.flumenPortalERP #tableWindowTableContent .miniERPGeneralActions .tableWindowContentHeaderButtonHolder:hover {
    border-color: #9fc5f5;
    background: #edf5ff;
    color: var(--erp-accent);
}

body.flumenPortalERP #tableWindowTableContent .miniERPToolbarAction {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    background: #fff;
    color: #3e5878;
    cursor: pointer;
    font: 600 13px/1 Inter, ui-sans-serif, system-ui, sans-serif;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

body.flumenPortalERP #tableWindowTableContent .miniERPToolbarAction > [class*="icon-"],
body.flumenPortalERP #tableWindowTableContent .miniERPToolbarAction > .fa {
    font-size: 17px;
}

body.flumenPortalERP #tableWindowTableContent .miniERPToolbarAction:hover {
    border-color: #9fc5f5;
    background: #edf5ff;
    color: var(--erp-accent);
}

body.flumenPortalERP #tableWindowTableContent .miniERPToolbarActionPrimary {
    border-color: var(--erp-accent);
    background: var(--erp-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(17, 104, 217, 0.2);
}

body.flumenPortalERP #tableWindowTableContent .miniERPToolbarActionPrimary:hover {
    border-color: #0d57b8;
    background: #0d57b8;
    color: #fff;
}

body.flumenPortalERP #tableWindowTableContent .miniERPUploadInput {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

body.flumenPortalERP #tableWindowTableContent .miniERPGeneralActions #tableWindowBackArrow {
    display: grid;
    width: 34px;
    height: 34px;
    margin: 0;
    place-items: center;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    color: #3e5878;
}

/* Mini ERP workplace contract V2 */
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #tableWindowTableContent .TableLiveDBHolder {
    position: relative;
    border-color: rgba(25, 63, 108, 0.18);
    box-shadow: 0 14px 34px rgba(4, 27, 62, 0.09);
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .holderSettingsDiv {
    flex-wrap: wrap;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .TableLiveDB {
    min-width: 1120px;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .TableLiveDB thead {
    background: #071c3e;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .TableLiveDB thead th,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .TableLiveDB thead th * {
    color: #eaf4ff;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .TableLiveDB tbody tr {
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .TableLiveDB tbody tr:hover {
    background: #edf5ff;
    box-shadow: inset 3px 0 0 #1976e9;
}

body.flumenPortalERP .miniERPWorkplaceFilters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 420px;
    gap: 8px;
    order: 1;
}

body.flumenPortalERP .miniERPWorkplaceFilters select {
    box-sizing: border-box;
    min-width: 138px;
    height: 36px;
    padding: 0 32px 0 11px;
    border: 1px solid var(--erp-line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #263b57;
    font: 600 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPWorkplaceFilters select:focus {
    border-color: #64a4ed;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, 0.12);
}

body.flumenPortalERP .miniERPWorkplaceBadgeCell {
    text-align: left !important;
}

body.flumenPortalERP .miniERPWorkplaceBadge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid #c9dcf3;
    border-radius: 999px;
    background: #edf5ff;
    color: #245b97;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPWorkplaceStatus::before {
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

body.flumenPortalERP .miniERPWorkplaceBadge-aktiv {
    border-color: #b6dfcd;
    background: #eaf8f1;
    color: #167451;
}

body.flumenPortalERP .miniERPWorkplaceBadge-wartung {
    border-color: #efd59c;
    background: #fff7e3;
    color: #936210;
}

body.flumenPortalERP .miniERPWorkplaceBadge-gesperrt,
body.flumenPortalERP .miniERPWorkplaceBadge-inaktiv {
    border-color: #dfc3ca;
    background: #f9edf0;
    color: #994054;
}

body.flumenPortalERP .miniERPWorkplaceEmpty {
    color: #9aa8ba;
}

/* Customer orders are the daily control board in the tool shop. Keep the
 * operative information at the left edge and make schedule/status readable
 * without opening each order. */
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable #tableWindowTableContent .TableLiveDBHolder {
    position: relative;
    border-color: rgba(25, 63, 108, 0.18);
    box-shadow: 0 14px 34px rgba(4, 27, 62, 0.09);
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable .TableLiveDB {
    min-width: 1320px;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable .TableLiveDB thead {
    background: #071c3e;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable .TableLiveDB thead th,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable .TableLiveDB thead th * {
    /* TableLiveDB assigns a white background directly to each header cell.
     * The background must therefore be set on th as well as thead. */
    background: #071c3e !important;
    color: #eaf4ff !important;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable th.miniERPCustomerOrderDraggableColumn {
    cursor: grab;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable th.miniERPCustomerOrderDraggableColumn:active {
    cursor: grabbing;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable th.miniERPCustomerOrderColumnDragging {
    opacity: 0.45;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable th.miniERPCustomerOrderColumnDropTarget {
    box-shadow: inset 3px 0 0 #7fc2ff;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable .TableLiveDB tbody tr {
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable .TableLiveDB tbody tr:hover {
    background: #edf5ff;
    box-shadow: inset 3px 0 0 #1976e9;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderTable .miniERPCustomerOrderWorkCell {
    min-width: 220px;
    max-width: 360px;
    color: #263b57;
    font-weight: 600;
}

body.flumenPortalERP .miniERPCustomerOrderStatusCell {
    text-align: left !important;
}

body.flumenPortalERP .miniERPCustomerOrderStatus {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid #c9dcf3;
    border-radius: 999px;
    background: #edf5ff;
    color: #245b97;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPCustomerOrderStatus::before {
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

body.flumenPortalERP .miniERPCustomerOrderStatus-offen,
body.flumenPortalERP .miniERPCustomerOrderStatus-entwurf {
    border-color: #cbd5e1;
    background: #f1f5f9;
    color: #64748b;
}

body.flumenPortalERP .miniERPCustomerOrderStatus-in-prufung,
body.flumenPortalERP .miniERPCustomerOrderStatus-eingereicht {
    border-color: #efd59c;
    background: #fff7e3;
    color: #936210;
}

body.flumenPortalERP .miniERPCustomerOrderStatus-bestatigt,
body.flumenPortalERP .miniERPCustomerOrderStatus-in-produktion {
    border-color: #b8d8fa;
    background: #edf6ff;
    color: #1767ba;
}

body.flumenPortalERP .miniERPCustomerOrderStatus-abgeschlossen,
body.flumenPortalERP .miniERPCustomerOrderStatus-versand {
    border-color: #b6dfcd;
    background: #eaf8f1;
    color: #167451;
}

body.flumenPortalERP .miniERPCustomerOrderProductionWorkspace {
    box-sizing: border-box;
    margin: 28px 0 0;
    padding: 24px;
    border: 1px solid #c8dced;
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fbff 0%, #ffffff 68%);
    box-shadow: 0 10px 26px rgba(17, 58, 104, 0.06);
    text-align: left !important;
}

body.flumenPortalERP .miniERPCustomerOrderProductionWorkspace h2 {
    margin: 5px 0 7px;
    color: #173d68;
    font-size: 19px;
}

body.flumenPortalERP .miniERPCustomerOrderOperationWorkspace {
    box-sizing: border-box;
    margin: 28px 0 0;
    padding: 24px;
    overflow-x: auto;
    border: 1px solid #c8dced;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(17, 58, 104, 0.06);
    text-align: left !important;
}

body.flumenPortalERP .miniERPCustomerOrderOperationWorkspace > header {
    position: relative;
    padding-right: 110px;
}

body.flumenPortalERP .miniERPCustomerOrderOperationWorkspace h2 {
    margin: 5px 0 7px;
    color: #173d68;
    font-size: 19px;
}

body.flumenPortalERP .miniERPCustomerOrderOperationWorkspace header p,
body.flumenPortalERP .miniERPCustomerOrderOperationEmpty {
    margin: 0;
    color: #58718f;
    line-height: 1.5;
}

body.flumenPortalERP .miniERPCustomerOrderOperationCount {
    position: absolute;
    top: 5px;
    right: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf6ff;
    color: #1767ba;
    font-size: 12px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPCustomerOrderOperationEmpty {
    margin-top: 18px;
    padding: 18px;
    border-radius: 10px;
    background: #f7fafc;
}

body.flumenPortalERP .miniERPCustomerOrderOperationTable {
    width: 100%;
    min-width: 860px;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #d8e5f0;
    border-radius: 10px;
}

body.flumenPortalERP .miniERPCustomerOrderOperationTable th {
    padding: 11px 12px;
    background: #071f45;
    color: #fff;
    font-size: 12px;
    text-align: left;
}

body.flumenPortalERP .miniERPCustomerOrderOperationTable td {
    padding: 12px;
    border-top: 1px solid #e3ebf3;
    color: #173452;
    font-size: 13px;
    vertical-align: middle;
}

body.flumenPortalERP .miniERPCustomerOrderOperationTable tbody tr:first-child td {
    border-top: 0;
}

body.flumenPortalERP .miniERPCustomerOrderOperationTable td strong,
body.flumenPortalERP .miniERPCustomerOrderOperationTable td small {
    display: block;
}

body.flumenPortalERP .miniERPCustomerOrderOperationTable td small {
    margin-top: 3px;
    color: #71859a;
}

body.flumenPortalERP .miniERPCustomerOrderOperationStatus {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #fff7e3;
    color: #936210;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPCustomerOrderOperationStatus.is-synced {
    background: #eaf8f1;
    color: #167451;
}

@media (max-width: 720px) {
    body.flumenPortalERP .miniERPCustomerOrderOperationWorkspace {
        padding: 18px;
    }

    body.flumenPortalERP .miniERPCustomerOrderOperationWorkspace > header {
        padding-right: 0;
    }

    body.flumenPortalERP .miniERPCustomerOrderOperationCount {
        position: static;
        display: inline-flex;
        margin-top: 12px;
    }
}

body.flumenPortalERP .miniERPCustomerOrderProductionIntro {
    max-width: 760px;
    margin: 0;
    color: #58718f;
    line-height: 1.5;
    text-align: left !important;
}

body.flumenPortalERP .miniERPCustomerOrderProductionFlow {
    display: flex;
    justify-content: flex-start !important;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding: 0;
    margin: 21px 0;
    list-style: none;
    color: #315a86;
    font-size: 13px;
    font-weight: 700;
}

body.flumenPortalERP .miniERPCustomerOrderProductionFlow li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

body.flumenPortalERP .miniERPCustomerOrderProductionFlow span {
    display: inline-grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: #1767ba;
    color: #fff;
    font-size: 11px;
}

body.flumenPortalERP .miniERPCustomerOrderProductionStart {
    display: inline-flex;
    min-height: 42px;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    margin: 0 0 24px !important;
    padding: 10px 16px !important;
    border-radius: 8px;
    background: #1767d4;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2 !important;
    text-align: left !important;
}

body.flumenPortalERP .miniERPCustomerOrderProductionHeader {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid #dbe7f3;
    color: #1c456f;
}

body.flumenPortalERP .miniERPCustomerOrderProductionHeader span,
body.flumenPortalERP .miniERPCustomerOrderProductionEmpty {
    color: #7187a1;
    font-size: 13px;
}

body.flumenPortalERP .miniERPCustomerOrderProductionEmpty {
    margin: 12px 0 0;
}

body.flumenPortalERP .miniERPCustomerOrderProductionTable {
    width: 100%;
    margin-top: 13px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #d7e4f0;
    border-radius: 9px;
    color: #26496e;
    font-size: 13px;
}

body.flumenPortalERP .miniERPCustomerOrderProductionTable th,
body.flumenPortalERP .miniERPCustomerOrderProductionTable td {
    padding: 11px 13px;
    text-align: left;
    border-bottom: 1px solid #e4edf5;
}

body.flumenPortalERP .miniERPCustomerOrderProductionTable th {
    background: #eef5fc;
    color: #41658a;
    font-size: 11px;
}

body.flumenPortalERP .miniERPCustomerOrderProductionTable tbody tr:last-child td {
    border-bottom: 0;
}

body.flumenPortalERP .miniERPCustomerOrderProductionRow {
    cursor: pointer;
    transition: background-color 140ms ease;
}

body.flumenPortalERP .miniERPCustomerOrderProductionRow:hover,
body.flumenPortalERP .miniERPCustomerOrderProductionRow:focus {
    outline: none;
    background: #f3f8fd;
}

/* Production-order execution board. Missing relationships are deliberately
 * visible: a shop cannot schedule or trace what has not been planned yet. */
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderTable #tableWindowTableContent .TableLiveDBHolder {
    position: relative;
    border-color: rgba(25, 63, 108, 0.18);
    box-shadow: 0 14px 34px rgba(4, 27, 62, 0.09);
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderTable .TableLiveDB {
    min-width: 1160px;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkPlanTable .TableLiveDB {
    min-width: 1040px;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderTable .TableLiveDB thead,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderTable .TableLiveDB thead th,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderTable .TableLiveDB thead th * {
    background: #071c3e !important;
    color: #eaf4ff !important;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderTable .TableLiveDB tbody tr {
    transition: background-color 150ms ease, box-shadow 150ms ease;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderTable .TableLiveDB tbody tr:hover {
    background: #edf5ff;
    box-shadow: inset 3px 0 0 #1976e9;
}

body.flumenPortalERP .miniERPProductionOrderStatusCell {
    text-align: left !important;
}

body.flumenPortalERP .miniERPProductionOrderStatus {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPProductionOrderStatus::before {
    width: 6px;
    height: 6px;
    margin-right: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

body.flumenPortalERP .miniERPProductionOrderStatus-in-bearbeitung {
    border-color: #b8d8fa;
    background: #edf6ff;
    color: #1767ba;
}

body.flumenPortalERP .miniERPProductionOrderStatus-unterbrochen {
    border-color: #efd59c;
    background: #fff7e3;
    color: #936210;
}

body.flumenPortalERP .miniERPProductionOrderStatus-abgeschlossen {
    border-color: #b6dfcd;
    background: #eaf8f1;
    color: #167451;
}

body.flumenPortalERP .miniERPProductionOrderPlanningMissing,
body.flumenPortalERP .miniERPProductionOrderUnassigned {
    color: #9a6700 !important;
    font-style: italic;
}

body.flumenPortalERP .miniERPProductionOrderRoutingButton {
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid #9fc4eb;
    border-radius: 7px;
    background: #edf6ff;
    color: #075fbd;
    cursor: pointer;
    font: 750 10px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPProductionOrderRoutingButton:hover {
    border-color: #1976e9;
    background: #e2f0ff;
}

body.flumenPortalERP .miniERPProductionOrderGuidance td {
    padding: 2px 12px 16px !important;
}

body.flumenPortalERP .miniERPProductionOrderGuidance td > strong,
body.flumenPortalERP .miniERPProductionOrderGuidance td > span {
    display: block;
}

body.flumenPortalERP .miniERPProductionOrderGuidance td > strong {
    margin-bottom: 4px;
    color: #1f4d79;
    font-size: 12px;
}

body.flumenPortalERP .miniERPProductionOrderGuidance td > span {
    max-width: 900px;
    color: #6c8199;
    font-size: 11px;
    line-height: 1.5;
}

/* Production-order detail and operation execution share one consistent
 * hierarchy: header -> order context -> operations -> feedback/time booking. */
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tableWindowContent,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOperation #tableWindowContent {
    padding-top: 132px;
    scroll-padding-top: 132px;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tableWindowTableContent,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOperation #tableWindowTableContent {
    box-sizing: border-box;
    width: calc(100% - clamp(56px, 7vw, 112px));
    max-width: 1540px;
    margin: 0 auto 40px;
    padding: clamp(18px, 2.2vw, 30px);
    overflow: auto;
    border: 1px solid #cfdeed;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 16px 40px rgba(22, 50, 84, .09);
}

body.flumenPortalERP .miniERPProductionOrderSummary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 20px;
    align-items: center;
    padding: 15px 18px;
    border: 1px solid #d7e5f3;
    border-radius: 12px;
    background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 100%);
}

body.flumenPortalERP .miniERPProductionOrderSummaryTitle {
    min-width: 0;
}

body.flumenPortalERP .miniERPProductionOrderSummaryEyebrow,
body.flumenPortalERP .miniERPProductionOrderOperationsHeader span {
    color: #1976e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.flumenPortalERP .miniERPProductionOrderSummary h2,
body.flumenPortalERP .miniERPProductionOrderOperationsHeader h2 {
    margin: 3px 0 0;
    color: #10233f;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.1;
}

body.flumenPortalERP .miniERPProductionOrderSummaryDetails {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column: 1;
    gap: 8px 18px;
}

body.flumenPortalERP .miniERPProductionOrderQr {
    display: grid;
    place-items: center;
    grid-column: 2;
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
    padding: 4px;
    border: 1px solid #c8dced;
    border-radius: 9px;
    background: #fff;
}

body.flumenPortalERP .miniERPProductionOrderQr img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

body.flumenPortalERP .miniERPProductionAttachments {
    margin-top: 20px;
}

body.flumenPortalERP .miniERPProductionAttachmentsToolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 20px 0 9px;
}

body.flumenPortalERP .miniERPProductionAttachmentsToolbar strong {
    color: #172b45;
    font-size: 16px;
}

body.flumenPortalERP .miniERPProductionAttachmentAdd {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #b9d6f2;
    border-radius: 8px;
    background: #edf6ff;
    color: #0966bc;
    cursor: pointer;
    font: 750 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPProductionAttachmentsList {
    display: grid;
    gap: 8px;
    max-width: 920px;
}

body.flumenPortalERP .miniERPProductionAttachmentDropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    max-width: 920px;
    margin: 0 0 10px;
    border: 1px dashed #aac8e4;
    border-radius: 10px;
    background: #f7fbff;
    color: #31658f;
    font-size: 12px;
    font-weight: 750;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

body.flumenPortalERP .miniERPProductionAttachmentDropzone span {
    margin-top: 3px;
    color: #7189a1;
    font-size: 10px;
    font-weight: 600;
}

body.flumenPortalERP .miniERPProductionAttachmentDropzone.isDragging {
    border-color: #1976e9;
    background: #eaf4ff;
    color: #075dbd;
    transform: scale(1.005);
}

body.flumenPortalERP .miniERPProductionAttachment {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 11px 13px;
    border: 1px solid #d8e5f1;
    border-radius: 10px;
    background: #fbfdff;
}

body.flumenPortalERP .miniERPProductionAttachment > span:first-child {
    color: #3975ad;
    font-size: 17px;
}

body.flumenPortalERP .miniERPProductionAttachmentName {
    justify-self: stretch;
    overflow: hidden;
    color: #193552;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

body.flumenPortalERP .miniERPProductionAttachmentRenameInput {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid #78afe3;
    border-radius: 6px;
    outline: none;
    color: #193552;
    font: 700 13px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPProductionAttachmentType {
    padding: 3px 7px;
    border-radius: 999px;
    background: #eaf3fc;
    color: #47708f;
    font-size: 10px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPProductionAttachmentActions {
    display: flex;
    gap: 5px;
}

body.flumenPortalERP .miniERPProductionAttachmentPending {
    border-style: dashed;
    opacity: .72;
}

body.flumenPortalERP .miniERPProductionAttachmentPendingState {
    min-width: 30px;
    color: #3975ad;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
}

body.flumenPortalERP .miniERPProductionAttachmentActions button {
    width: 30px;
    height: 30px;
    border: 1px solid #d1dfed;
    border-radius: 7px;
    background: #fff;
    color: #386588;
    cursor: pointer;
}

body.flumenPortalERP .miniERPProductionAttachmentActions button:hover {
    border-color: #1976e9;
    background: #edf6ff;
    color: #075dbd;
}

body.flumenPortalERP .miniERPProductionAttachmentActions .miniERPProductionAttachmentDelete:hover {
    border-color: #e25a62;
    background: #fff2f2;
    color: #bd3039;
}

body.flumenPortalERP .miniERPProductionAttachmentsEmpty {
    margin: 0;
    padding: 14px;
    border: 1px dashed #cbdceb;
    border-radius: 10px;
    color: #6c8298;
    font-size: 12px;
}

body.flumenPortalERP .miniERPProductionOrderSummaryItem {
    min-width: 0;
}

body.flumenPortalERP .miniERPProductionOrderSummaryItem span,
body.flumenPortalERP .miniERPProductionOrderSummaryItem strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPProductionOrderSummaryItem span {
    margin-bottom: 4px;
    color: #6b829c;
    font-size: 10px;
    font-weight: 700;
}

body.flumenPortalERP .miniERPProductionOrderSummaryItem strong {
    color: #244768;
    font-size: 13px;
}

body.flumenPortalERP .miniERPProductionOrderOperationsHeader {
    display: flex;
    gap: 24px;
    align-items: end;
    justify-content: space-between;
    margin: 24px 0 12px;
}

body.flumenPortalERP .miniERPProductionOrderOperationsHeader p {
    max-width: 580px;
    margin: 0;
    color: #647c96;
    font-size: 12px;
}

body.flumenPortalERP .miniERPProductionOrderTotals {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #cfe0f2;
    border-radius: 10px;
    background: #f4f9ff;
}

body.flumenPortalERP .miniERPProductionOrderTotals > span {
    color: #1976e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.flumenPortalERP .miniERPProductionOrderTotals > strong {
    flex: 1;
    color: #234766;
    font-size: 14px;
}

body.flumenPortalERP .miniERPProductionOrderTotalsValues {
    display: flex;
    gap: 22px;
}

body.flumenPortalERP .miniERPProductionOrderTotalsValues small,
body.flumenPortalERP .miniERPProductionOrderTotalsValues b {
    display: block;
}

body.flumenPortalERP .miniERPProductionOrderTotalsValues small {
    color: #738ba2;
    font-size: 10px;
    font-weight: 700;
}

body.flumenPortalERP .miniERPProductionOrderTotalsValues b {
    margin-top: 2px;
    color: #143b60;
    font-size: 14px;
}

body.flumenPortalERP .miniERPProductionOrderOperationsActions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

body.flumenPortalERP .miniERPProductionOrderAddButton {
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid #1976e9;
    border-radius: 9px;
    background: #1976e9;
    color: #fff;
    cursor: pointer;
    font: 800 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
    white-space: nowrap;
    box-shadow: 0 7px 16px rgba(25, 118, 233, .18);
}

body.flumenPortalERP .miniERPProductionOrderTemplateButton {
    min-height: 38px;
    padding: 8px 15px;
    border: 1px solid #9fc9f3;
    border-radius: 9px;
    background: #edf6ff;
    color: #0966c2;
    cursor: pointer;
    font: 800 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPProductionOrderAddButton:disabled,
body.flumenPortalERP .miniERPProductionOrderTemplateButton:disabled,
body.flumenPortalERP .miniERPProductionOperationAction:disabled {
    border-color: #d3dde7;
    background: #edf1f5;
    color: #8a9aad;
    cursor: not-allowed;
    box-shadow: none;
    opacity: .78;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions {
    display: table !important;
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #d6e2ef;
    border-radius: 11px;
    color: #203c5c;
    font-size: 12px;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions thead th {
    padding: 12px 11px;
    border: 0;
    background: #071c3e;
    color: #eef6ff;
    font-size: 10px;
    font-weight: 800;
    text-align: left;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions tbody tr {
    cursor: pointer;
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions tbody tr:hover,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions tbody tr.selectedRow {
    background: #eef6ff;
    box-shadow: inset 3px 0 0 #1976e9;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions tbody td {
    padding: 11px;
    border: 0;
    border-bottom: 1px solid #e3ebf3;
    vertical-align: middle;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions tfoot td {
    padding: 11px;
    border: 0;
    border-top: 2px solid #cbdced;
    background: #f3f8fe;
    color: #183c60;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions tfoot td:nth-child(2),
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions tfoot td:nth-child(3) {
    font-variant-numeric: tabular-nums;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail .tableWindowTabelEinstellung {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    min-width: 0;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions th,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tablePositions td {
    overflow: hidden;
    text-overflow: ellipsis;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tableWindowContentHeaderTitleFunction_Add.miniERPProductionAddOperation {
    min-width: 146px;
    color: #fff;
    background: #1976e9;
    border-radius: 9px;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderDetail #tableWindowContentHeaderTitleFunction_Add.miniERPProductionAddOperation .tableWindowContentHeaderTitleFunctionLabel {
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPProductionOperationAction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #b9cee4;
    border-radius: 7px;
    background: #fff;
    color: #2b577f;
    cursor: pointer;
    font: 750 10px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPProductionOperationStart {
    border-color: #9fc9f3;
    background: #edf6ff;
    color: #0966c2;
}

body.flumenPortalERP .miniERPProductionOperationStop {
    border-color: #efb4ad;
    background: #fff1ef;
    color: #b52b22;
}

@media (max-width: 980px) {
    body.flumenPortalERP .miniERPProductionOrderOperationsHeader,
    body.flumenPortalERP .miniERPProductionOrderOperationsActions {
        align-items: flex-start;
        flex-direction: column;
    }
}

body.flumenPortalERP .miniERPProductionOperationForm {
    width: 100%;
    border: 0;
}

body.flumenPortalERP .miniERPProductionOperationContext {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin: 0 0 16px;
    padding: 11px 14px;
    border: 1px solid #d6e4f1;
    border-radius: 10px;
    background: #f4f9ff;
    color: #426584;
    font-size: 12px;
}

body.flumenPortalERP .miniERPProductionOperationToolbar {
    display: flex;
    justify-content: flex-end;
    margin: -5px 0 14px;
}

body.flumenPortalERP .miniERPProductionOperationToolbar button {
    min-height: 34px;
    padding: 7px 12px;
    border: 1px solid #b9cee4;
    border-radius: 8px;
    background: #fff;
    color: #24567f;
    cursor: pointer;
    font: 750 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPProductionOperationContext > span {
    margin-right: 5px;
    color: #1976e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.flumenPortalERP .miniERPProductionOperationContext strong {
    color: #183856;
}

body.flumenPortalERP .miniERPProductionOperationContext i {
    color: #87a0b9;
    font-style: normal;
}

body.flumenPortalERP .miniERPProductionOperationForm > thead {
    display: none;
}

body.flumenPortalERP .miniERPProductionOperationForm > tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

body.flumenPortalERP .miniERPProductionOperationField {
    display: block;
    padding: 12px 14px;
    border: 1px solid #d7e4f1;
    border-radius: 10px;
    background: #f8fbff;
}

body.flumenPortalERP .miniERPProductionOperationField > td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    text-align: left;
}

body.flumenPortalERP .miniERPProductionOperationField > td:first-child {
    margin-bottom: 7px;
    color: #365777;
    font-size: 11px;
    font-weight: 800;
}

body.flumenPortalERP .miniERPProductionOperationField input,
body.flumenPortalERP .miniERPProductionOperationField select,
body.flumenPortalERP .miniERPProductionOperationField textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #c8d9ea;
    border-radius: 8px;
    background: #fff;
    color: #172f4b;
    font: 600 13px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPProductionOperationField textarea {
    min-height: 106px;
    resize: vertical;
    line-height: 1.45;
}

body.flumenPortalERP .miniERPProductionOperationDescription {
    grid-column: 1 / -1;
}

body.flumenPortalERP .miniERPProductionOperationAttachments {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid #d7e4f1;
    border-radius: 12px;
    background: #fbfdff;
}

body.flumenPortalERP .miniERPProductionOperationAttachmentsHead {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

body.flumenPortalERP .miniERPProductionOperationAttachmentsHead span {
    display: block;
    margin-bottom: 3px;
    color: #1976e9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.flumenPortalERP .miniERPProductionOperationAttachmentsHead h3 {
    margin: 0;
    color: #173654;
    font-size: 17px;
}

body.flumenPortalERP .miniERPProductionOperationAttachmentsHead small {
    max-width: 390px;
    color: #6b8299;
    font-size: 11px;
    line-height: 1.4;
    text-align: right;
}

body.flumenPortalERP .miniERPProductionOperationDropzone {
    display: flex;
    width: 100%;
    min-height: 76px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px dashed #7eb4ec;
    border-radius: 10px;
    background: #f2f8ff;
    color: #26669e;
    cursor: pointer;
    font: 800 13px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPProductionOperationDropzone small {
    color: #6883a0;
    font-size: 10px;
    font-weight: 600;
}

body.flumenPortalERP .miniERPProductionOperationDropzone.is-dragover {
    border-color: #1976e9;
    background: #e3f1ff;
    box-shadow: inset 0 0 0 2px rgba(25, 118, 233, .12);
}

body.flumenPortalERP .miniERPProductionOperationFileInput {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

body.flumenPortalERP .miniERPProductionOperationAttachmentList {
    display: grid;
    gap: 7px;
    margin-top: 12px;
}

body.flumenPortalERP .miniERPProductionOperationAttachment,
body.flumenPortalERP .miniERPProductionOperationAttachmentEmpty {
    margin: 0;
    padding: 9px 11px;
    border: 1px solid #e0eaf3;
    border-radius: 8px;
    background: #fff;
}

body.flumenPortalERP .miniERPProductionOperationAttachment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
    align-items: center;
}

body.flumenPortalERP .miniERPProductionOperationAttachment strong {
    overflow: hidden;
    color: #234866;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPProductionOperationAttachment span,
body.flumenPortalERP .miniERPProductionOperationAttachmentEmpty {
    color: #7088a0;
    font-size: 10px;
}

body.flumenPortalERP .miniERPProductionOperationAttachment button {
    grid-row: 1 / span 2;
    grid-column: 2;
    padding: 4px 8px;
    border: 1px solid #efc5c8;
    border-radius: 6px;
    background: #fff7f7;
    color: #ad4c56;
    cursor: pointer;
    font: 700 10px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPProductionOperationSave {
    min-height: 40px;
    margin: 18px 0 0 !important;
    padding: 0 18px;
    float: none !important;
    border: 0;
    border-radius: 9px;
    background: #1976e9;
    color: #fff;
    font-weight: 800;
}

@media (max-width: 900px) {
    body.flumenPortalERP .miniERPProductionOrderSummary,
    body.flumenPortalERP .miniERPProductionOperationForm > tbody {
        grid-template-columns: 1fr;
    }

    body.flumenPortalERP .miniERPProductionOrderSummaryDetails {
        grid-template-columns: 1fr;
    }

    body.flumenPortalERP .miniERPProductionOrderQr {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }

    body.flumenPortalERP .miniERPProductionOrderTotals,
    body.flumenPortalERP .miniERPProductionOrderTotalsValues {
        align-items: flex-start;
        flex-direction: column;
    }

    body.flumenPortalERP .miniERPProductionOperationAttachmentsHead {
        align-items: flex-start;
        flex-direction: column;
    }

    body.flumenPortalERP .miniERPProductionOperationAttachmentsHead small {
        text-align: left;
    }
}

/* QR execution is intentionally a mobile-first, focused screen.  The scan
 * identifies the operation; starting/stopping time remains a deliberate tap. */
body.miniERPExternalProductionExecution {
    background: #f4f8fc;
}

body.miniERPExternalProductionExecution #tableWindowHolder,
body.miniERPExternalProductionExecution #tableWindowContent,
body.miniERPExternalProductionExecution #tableWindowTableContent {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.miniERPExternalProductionExecution #tableWindowTableContent::before {
    content: "Zeiterfassung";
    display: block;
    padding: 28px 24px 8px;
    color: #1976e9;
    font: 800 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution {
    display: block !important;
    width: auto;
    min-width: 0;
    margin: 0 16px 28px;
    table-layout: auto;
    border: 1px solid #d6e3f0;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 28px rgba(26, 57, 92, .09);
}

body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution colgroup,
body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution thead {
    display: none;
}

body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution tbody,
body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution tr {
    display: block;
}

body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution tr {
    padding: 8px 18px 18px;
}

body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution td {
    display: grid;
    grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid #e7eef5;
    color: #183856;
    font: 700 16px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
    text-align: left;
}

body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution td::before {
    content: attr(data-label);
    color: #66809c;
    font: 800 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution td[data-label="Status"] > div {
    width: 14px;
    height: 14px;
    margin: 0 !important;
}

body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution td.tableWindowTabelEinstellung {
    display: block;
    padding: 18px 0 2px;
    border: 0;
}

body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution td.tableWindowTabelEinstellung::before {
    display: none;
}

body.miniERPExternalProductionExecution .miniERPProductionMobileAction {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    font: 800 18px/1 Inter, ui-sans-serif, system-ui, sans-serif;
    box-shadow: 0 8px 18px rgba(25, 118, 233, .22);
}

body.miniERPExternalProductionExecution .miniERPProductionMobileStart {
    background: #1673df;
}

body.miniERPExternalProductionExecution .miniERPProductionMobileStop {
    background: #bf3c32;
    box-shadow: 0 8px 18px rgba(191, 60, 50, .2);
}

body.miniERPExternalProductionExecution .miniERPProductionMobileAction:disabled {
    background: #b7c5d4;
    box-shadow: none;
}

@media (min-width: 700px) {
    body.miniERPExternalProductionExecution #tablePositions.miniERPProductionMobileExecution {
        max-width: 600px;
        margin-right: auto;
        margin-left: auto;
    }
}

body.flumenPortalERP .miniERPWorkPlanGuidance td {
    padding: 2px 12px 16px !important;
}

body.flumenPortalERP .miniERPWorkPlanGuidance strong,
body.flumenPortalERP .miniERPWorkPlanGuidance span {
    display: block;
}

body.flumenPortalERP .miniERPWorkPlanGuidance strong {
    margin-bottom: 4px;
    color: #1f4d79;
    font-size: 12px;
}

body.flumenPortalERP .miniERPWorkPlanGuidance span {
    max-width: 900px;
    color: #6c8199;
    font-size: 11px;
    line-height: 1.5;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkPlanEntry .miniERPWorkPlanSave {
    display: block;
    min-height: 42px;
    margin: 0 0 14px auto !important;
    padding: 0 20px;
    border: 1px solid #1264ca;
    border-radius: 9px;
    background: #1976e9;
    box-shadow: 0 6px 14px rgba(25, 118, 233, .2);
    color: #fff;
    cursor: pointer;
    font: 750 13px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkPlanEntry .miniERPWorkPlanSave:disabled {
    border-color: #b8c6d5;
    background: #d8e0e8;
    box-shadow: none;
    color: #718196;
    cursor: wait;
}

body.flumenPortalERP .miniERPWorkplaceEmptyState {
    display: grid;
    min-height: 190px;
    margin: 10px 0 16px;
    padding: 28px;
    place-items: center;
    align-content: center;
    border: 1px dashed #b8cce1;
    border-radius: 11px;
    background: #f7fafe;
    color: #60758e;
    text-align: center;
}

body.flumenPortalERP .miniERPWorkplaceEmptyState > span {
    margin-bottom: 10px;
    color: #1976e9;
    font-size: 28px;
}

body.flumenPortalERP .miniERPWorkplaceEmptyState strong {
    color: #142b4c;
    font-size: 16px;
}

body.flumenPortalERP .miniERPWorkplaceEmptyState p {
    max-width: 460px;
    margin: 5px 0 0;
    font-size: 12px;
}

body.flumenPortalERP .miniERPWorkplaceDetail {
    position: absolute;
    z-index: 15;
    top: 12px;
    right: 12px;
    box-sizing: border-box;
    width: min(520px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    padding: 22px;
    overflow: auto;
    border: 1px solid #b9cee6;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(3, 22, 52, 0.24);
}

body.flumenPortalERP .miniERPWorkplaceDetail > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dbe6f1;
}

body.flumenPortalERP .miniERPWorkplaceDetail h2,
body.flumenPortalERP .miniERPWorkplaceDetail h3 {
    margin: 0;
    color: #071c3e;
}

body.flumenPortalERP .miniERPWorkplaceDetail h2 {
    margin-top: 3px;
    font-size: 23px;
}

body.flumenPortalERP .miniERPWorkplaceDetail h3 {
    margin-bottom: 9px;
    font-size: 13px;
}

body.flumenPortalERP .miniERPWorkplaceEyebrow {
    color: #1976e9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

body.flumenPortalERP .miniERPWorkplaceDetailClose {
    width: 34px;
    height: 34px;
    border: 1px solid #d4e0ec;
    border-radius: 8px;
    background: #f6f9fc;
    color: #405873;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

body.flumenPortalERP .miniERPWorkplaceDetailSection {
    margin-top: 14px;
    padding: 14px;
    border-radius: 9px;
    background: #f5f8fc;
}

body.flumenPortalERP .miniERPWorkplaceDetailField {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(150px, 1.2fr);
    gap: 16px;
    padding: 6px 0;
    color: #61738a;
    font-size: 12px;
}

body.flumenPortalERP .miniERPWorkplaceDetailField strong {
    color: #15243a;
    font-weight: 650;
    overflow-wrap: anywhere;
}

body.flumenPortalERP .miniERPWorkplaceFutureFields {
    box-sizing: border-box;
    width: 100%;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid var(--erp-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

body.flumenPortalERP .miniERPWorkplaceContractNotice {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-left: 3px solid #1976e9;
    border-radius: 4px;
    background: #edf5ff;
    color: #34536f;
    font-size: 12px;
}

body.flumenPortalERP .miniERPWorkplaceFutureFields fieldset {
    display: grid;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    gap: 12px;
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid #dce7f1;
    border-radius: 10px;
}

body.flumenPortalERP .miniERPWorkplaceFutureFields legend {
    padding: 0 6px;
    color: #071c3e;
    font-size: 13px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPWorkplaceFutureFields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #52677f;
    font-size: 11px;
    font-weight: 700;
}

body.flumenPortalERP .miniERPWorkplaceFutureFields input,
body.flumenPortalERP .miniERPWorkplaceFutureFields select,
body.flumenPortalERP .miniERPWorkplaceFutureFields textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #cbd9e7;
    border-radius: 7px;
    background: #fff;
    color: #172941;
    font: 500 13px/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPWorkplaceFutureFields :disabled {
    background: #f4f6f9;
    color: #8795a6;
}

body.flumenPortalERP .miniERPFieldHelp {
    display: inline-grid;
    width: 16px;
    height: 16px;
    margin-left: 7px;
    place-items: center;
    border: 1px solid #9fb4ca;
    border-radius: 50%;
    color: #58718d;
    cursor: help;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

body.flumenPortalERP #tableWindowTableContent input[readonly] {
    background: #f3f6fa;
    color: #52667d;
    cursor: not-allowed;
}

/* Workplace master-data form: reuse the shared ERP renderer, but present the
   legacy two-column table as a compact Flumina form card. */
body.flumenPortalERP #tableWindowHeader .miniERPWorkplaceFormSubtitle {
    max-width: 620px;
    margin: 7px 0 0;
    color: #607894;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #tableWindowTableContent > table {
    display: block;
    box-sizing: border-box;
    width: min(940px, 100%);
    margin: 0;
    padding: 22px;
    border: 1px solid #d7e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(3, 27, 61, 0.07);
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #tableWindowTableContent > .miniERPWorkplaceFutureFields {
    width: min(940px, 100%);
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead {
    display: none;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body > tr.tableWindowTableReference {
    display: block;
    margin: 0;
    padding: 14px;
    border: 1px solid #dfe9f3;
    border-radius: 10px;
    background: #f8fbff;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body > tr.tableWindowTableReference > td {
    display: block;
    width: auto;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body > tr.tableWindowTableReference > td:first-child {
    margin-bottom: 8px;
    color: #36526f;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body > tr.tableWindowTableReference > td:last-child input,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body > tr.tableWindowTableReference > td:last-child select,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body > tr.tableWindowTableReference > td:last-child textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c8d9ea;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #172941;
    font: 600 14px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body > tr.tableWindowTableReference > td:last-child input:focus,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body > tr.tableWindowTableReference > td:last-child select:focus,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body > tr.tableWindowTableReference > td:last-child textarea:focus {
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, 0.12);
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #userQuickAccess_LogginInAs_Logout {
    float: none !important;
    min-height: 42px;
    margin: 16px 0 0 !important;
    padding: 0 18px;
    border: 1px solid #1264ca;
    border-radius: 9px;
    background: #1976e9;
    box-shadow: 0 6px 14px rgba(25, 118, 233, 0.2);
    color: #fff;
    font-weight: 750;
}

@media (max-width: 680px) {
    body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #materialTableHead_body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    body.flumenPortalERP .miniERPWorkplaceFilters {
        justify-content: flex-start;
        flex-basis: 100%;
        overflow-x: auto;
    }

    body.flumenPortalERP .miniERPWorkplaceFutureFields fieldset {
        grid-template-columns: repeat(2, minmax(150px, 1fr));
    }
}

@media (max-width: 620px) {
    body.flumenPortalERP .miniERPWorkplaceFutureFields fieldset {
        grid-template-columns: 1fr;
    }

    body.flumenPortalERP .miniERPWorkplaceDetailField {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

body.flumenPortalERP #tableWindowTableContent .TableLiveDBHolder .settingDiv {
    order: 3;
    gap: 6px;
}

body.flumenPortalERP #tableWindowTableContent .settingDiv > div {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid var(--erp-line);
    border-radius: 7px;
    color: var(--erp-muted);
    cursor: pointer;
}

body.flumenPortalERP #tableWindowTableContent .filterDiv {
    order: 2;
    align-items: center;
    gap: 10px;
    margin: 0 0 0 auto !important;
    color: var(--erp-muted);
    font-size: 13px;
    font-weight: 600;
}

body.flumenPortalERP #tableWindowTableContent .filterDiv input {
    width: min(280px, 32vw);
    padding: 8px 10px;
    border: 1px solid var(--erp-line);
    border-radius: 7px;
    outline: none;
    color: var(--erp-ink);
    font: inherit;
}

body.flumenPortalERP #tableWindowTableContent .filterDiv input:focus {
    border-color: var(--erp-accent);
    box-shadow: 0 0 0 3px rgba(17, 104, 217, 0.12);
}

body.flumenPortalERP #tableWindowTableContent .tableLiveDBTableContainer {
    max-height: calc(100vh - 230px) !important;
    border: 1px solid var(--erp-line);
    border-radius: 9px;
}

body.flumenPortalERP #tableWindowTableContent .TableLiveDB {
    background: var(--erp-surface);
    color: var(--erp-ink);
}

body.flumenPortalERP #tableWindowTableContent .TableLiveDB thead,
body.flumenPortalERP #tableWindowTableContent .TableLiveDB thead tr,
body.flumenPortalERP #tableWindowTableContent .TableLiveDB th .sizeableDiv {
    background: #f8fafc;
}

body.flumenPortalERP #tableWindowTableContent .TableLiveDB th {
    padding: 11px 14px;
    color: #516178;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

/* Keep the SAP workplace header readable after the generic light table
   header rules above have been applied. */
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #tableWindowTableContent .TableLiveDB thead,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #tableWindowTableContent .TableLiveDB thead tr,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #tableWindowTableContent .TableLiveDB thead th,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #tableWindowTableContent .TableLiveDB thead th .sizeableDiv {
    background: #071c3e !important;
    color: #f4f8ff !important;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable #tableWindowTableContent .TableLiveDB thead th [class*="sorted"] {
    color: #b9d8ff !important;
}

body.flumenPortalERP #tableWindowTableContent .TableLiveDB td {
    padding: 12px 14px;
    border-top: 1px solid #edf1f5;
}

body.flumenPortalERP #tableWindowTableContent .TableLiveDB tbody tr {
    background: var(--erp-surface);
    transition: background-color 140ms ease;
}

body.flumenPortalERP #tableWindowTableContent .TableLiveDB tbody tr:nth-child(odd),
body.flumenPortalERP #tableWindowTableContent .TableLiveDB tbody tr:hover {
    background: #f6faff;
}

body.flumenPortalERP #tableWindowTableContent .TableLiveDB .selectedRow td {
    background: #e4f0ff !important;
    color: #0b4c9d;
}

body.flumenPortalERP #tableWindowTableContent .tableLiveDBFooter {
    margin-top: 12px;
    color: var(--erp-muted);
    opacity: 1;
}

/* The ERP landing cards use the same restrained surface and accent language
   as the fLUMINA start page, rather than the older cockpit tiles. */
body.flumenPortalERP #erp_whereIsItCockpitSections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;
    gap: 16px;
}

body.flumenPortalERP #erp_whereIsItCockpitSections .whereIsItCockpitSection {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 184px;
    height: auto;
    padding: 24px 18px;
    border: 1px solid var(--erp-line);
    border-radius: 14px;
    background: var(--erp-surface);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.flumenPortalERP #erp_whereIsItCockpitSections .whereIsItCockpitSection:hover {
    transform: translateY(-3px);
    border-color: #9fc5f5;
    box-shadow: 0 12px 24px rgba(17, 104, 217, 0.12);
}

body.flumenPortalERP #erp_whereIsItCockpitSections .whereIsItCockpitSectionHeadDivImageHolder,
body.flumenPortalERP #erp_whereIsItCockpitSections .whereIsItCockpitSectionHeadDivTextHolder {
    position: static;
}

body.flumenPortalERP #erp_whereIsItCockpitSections .whereIsItCockpitSectionHeadDivImage {
    position: static;
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    transform: none;
    color: #69bfe6 !important;
    font-size: 42px;
}

body.flumenPortalERP #erp_whereIsItCockpitSections .whereIsItCockpitSectionHeadDivImage::before {
    line-height: 50px;
}

body.flumenPortalERP #erp_whereIsItCockpitSections .whereIsItCockpitSectionHeadDivText {
    position: static;
    width: auto;
    max-width: 100%;
    transform: none;
    padding: 0;
    color: var(--erp-ink);
    font-family: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
}

body.flumenPortalERP #erp_whereIsItCockpitSections .whereIsItCockpitSectionBottom,
body.flumenPortalERP #erp_whereIsItCockpitSections .whereIsItCockpitSectionAlertIndicator {
    display: none;
}

/* The ERP overview follows the dark fLUMINA portal language. */
body.flumenPortalERP #tableWindowHolder.miniERPOverview {
    background:
        radial-gradient(circle at 88% 4%, rgba(47, 139, 217, 0.22), transparent 28%),
        radial-gradient(circle at 12% 100%, rgba(29, 104, 181, 0.18), transparent 32%),
        linear-gradient(135deg, #06142f 0%, #092450 52%, #0a1d42 100%);
}

body.flumenPortalERP #tableWindowHolder.miniERPOverview #ContentMenuLabel {
    color: #f7fbff;
}

body.flumenPortalERP #tableWindowHolder.miniERPOverview .cockpitGeom {
    opacity: 0.23;
    filter: brightness(1.65) saturate(0.8);
}

body.flumenPortalERP #tableWindowHolder.miniERPOverview #erp_whereIsItCockpitSections .whereIsItCockpitSection {
    border-color: rgba(173, 223, 255, 0.22);
    background: linear-gradient(145deg, rgba(21, 57, 108, 0.96), rgba(11, 37, 79, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 12px 30px rgba(0, 6, 25, 0.25);
}

body.flumenPortalERP #tableWindowHolder.miniERPOverview #erp_whereIsItCockpitSections .whereIsItCockpitSection:hover {
    border-color: #6fc9f2;
    background: linear-gradient(145deg, rgba(31, 81, 145, 0.98), rgba(14, 49, 103, 0.98));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 34px rgba(0, 8, 31, 0.38);
}

body.flumenPortalERP #tableWindowHolder.miniERPOverview #erp_whereIsItCockpitSections .whereIsItCockpitSectionHeadDivImage {
    color: #9bddff !important;
}

body.flumenPortalERP #tableWindowHolder.miniERPOverview #erp_whereIsItCockpitSections .whereIsItCockpitSectionHeadDivText {
    color: #f5f9ff;
}

@media (max-width: 900px) {
    body.flumenPortalERP #tableWindowHeader {
        top: 24px;
        left: 24px;
    }

    body.flumenPortalERP #tableWindowContent {
        padding: 88px 24px 24px;
    }
}

/* Mini ERP workplace form: a domain-focused form rather than the generic
 * technical field table. Hidden plant and technical IDs remain in the DOM so
 * the shared save routine sends them unchanged. */
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceForm {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: min(1040px, 100%);
    margin: 0;
    padding: 24px;
    border: 1px solid #d7e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(3, 27, 61, .08);
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormGroup {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-width: 0;
    margin: 0;
    padding: 18px;
    border: 1px solid #dce7f1;
    border-radius: 12px;
    background: #f9fbfe;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormGroup:first-child,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormGroup:last-of-type {
    grid-column: 1 / -1;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormGroup legend {
    padding: 0 7px;
    color: #071c3e;
    font-size: 15px;
    font-weight: 760;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormField {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    color: #3f5875;
    font-size: 12px;
    font-weight: 750;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormFieldWide {
    grid-column: 1 / -1;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormField .miniERPFieldHelp {
    position: absolute;
    top: 0;
    right: 0;
    margin-left: 0;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceForm input,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceForm select,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceForm textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cddbeb;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #172941;
    font: 500 14px/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceForm textarea {
    min-height: 88px;
    resize: vertical;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceForm input:focus,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceForm select:focus,
body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceForm textarea:focus {
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .13);
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceHiddenFields {
    display: none;
}

body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceSaveButton {
    grid-column: 1 / -1;
    justify-self: start;
    margin: 2px 0 0 !important;
}

/* Customer orders ---------------------------------------------------------
 * The order editor keeps its established field ids for the legacy save
 * functions, but is presented as a concise order workspace instead of a
 * technical key/value table. */
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm #tableWindowHeader .miniERPCustomerOrderFormSubtitle {
    max-width: 560px;
    margin: 7px 0 0;
    color: #607894;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm #tableWindowTableContent {
    padding-bottom: 30px;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm #tableAuftragFields {
    display: block;
    box-sizing: border-box;
    width: min(980px, 100%);
    margin: 0;
    padding: 24px;
    border: 1px solid #d7e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(3, 27, 61, .08);
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm #materialTableHead_body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderSection {
    grid-column: 1 / -1;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderSection td {
    padding: 16px 0 2px !important;
    border: 0;
    color: #071c3e;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: .01em;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderSection:first-child td {
    padding-top: 0 !important;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField {
    display: block;
    min-width: 0;
    margin: 0;
    padding: 14px;
    border: 1px solid #dfe9f3;
    border-radius: 10px;
    background: #f8fbff;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField > td {
    display: block;
    width: auto;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField > td:first-child {
    margin-bottom: 8px;
    color: #36526f;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField input,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField select {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c8d9ea;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #172941;
    font: 600 14px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField input:focus,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField select:focus {
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .12);
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField input:disabled,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField input[readonly],
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm .miniERPCustomerOrderField select:disabled {
    border-color: #dce4ed;
    background: #eff3f7;
    color: #617188;
    cursor: not-allowed;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm #userQuickAccess_LogginInAs_Logout {
    float: none !important;
    min-height: 42px;
    margin: 16px 0 0 !important;
    padding: 0 18px;
    border: 1px solid #1264ca;
    border-radius: 9px;
    background: #1976e9;
    box-shadow: 0 6px 14px rgba(25, 118, 233, .2);
    color: #fff;
    font-weight: 750;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm #tableWindowTableContent > div[style*="display:flex"] {
    box-sizing: border-box;
    width: min(980px, 100%);
    margin-top: 14px;
    padding: 14px;
    border: 1px dashed #c5d7e9;
    border-radius: 10px;
    background: #f8fbff;
}

/* Generic Mini-ERP customer-order entry. Fields arrive from the backend, so
 * the selector deliberately relies on the order-form class added at render
 * time rather than on individual technical field ids. */
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry #tableWindowTableContent {
    padding-bottom: 30px;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry #tableWindowHeader .miniERPCustomerPortalSubtitle {
    max-width: 560px;
    margin: 4px 0 0;
    color: #607894;
    font-size: 12px;
    font-weight: 600;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryTable {
    display: block;
    box-sizing: border-box;
    width: min(1040px, 100%);
    margin: 0;
    padding: 24px;
    border: 1px solid #d7e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(3, 27, 61, .08);
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryTable #materialTableHead {
    display: none;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryTable #materialTableHead_body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntrySection,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryFieldWide {
    grid-column: 1 / -1;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntrySection td {
    padding: 16px 0 2px !important;
    border: 0;
    color: #071c3e;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: .01em;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntrySection:first-child td {
    padding-top: 0 !important;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField {
    display: block;
    height: auto !important;
    align-self: start;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe9f3;
    border-radius: 10px;
    background: #f8fbff;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField > td {
    display: block;
    height: auto !important;
    min-height: 0;
    width: auto;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField > td:first-child {
    margin-bottom: 8px;
    color: #36526f;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField input,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField select,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField textarea {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c8d9ea;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #172941;
    font: 600 14px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField textarea {
    display: block;
    min-height: 92px;
    resize: vertical;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField input:focus,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField select:focus,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField textarea:focus {
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .12);
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryField :disabled {
    border-color: #dce4ed;
    background: #eff3f7;
    color: #617188;
    cursor: not-allowed;
}

/* Material master: raw stock, standard parts, cutters and electrodes need
 * procurement and technical data beside the basic ERP identification. */
body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry #tableWindowTableContent {
    padding-bottom: 30px;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryTable {
    display: block;
    box-sizing: border-box;
    width: min(1100px, 100%);
    margin: 0;
    padding: 24px;
    border: 1px solid #d7e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(3, 27, 61, .08);
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryTable #materialTableHead {
    display: none;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryTable #materialTableHead_body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntrySection,
body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryFieldWide {
    grid-column: 1 / -1;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntrySection td {
    padding: 16px 0 2px !important;
    border: 0;
    color: #071c3e;
    font-size: 14px;
    font-weight: 760;
    letter-spacing: .01em;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntrySection:first-child td {
    padding-top: 0 !important;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField {
    display: block;
    min-width: 0;
    padding: 14px;
    border: 1px solid #dfe9f3;
    border-radius: 10px;
    background: #f8fbff;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField > td {
    display: block;
    width: auto;
    padding: 0 !important;
    border: 0;
    background: transparent;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField > td:first-child {
    margin-bottom: 8px;
    color: #36526f;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.2;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerCreateButton {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    padding: 0;
    border: 1px solid #a8c9eb;
    border-radius: 50%;
    background: #fff;
    color: #1264ca;
    cursor: pointer;
    font: 750 18px/1 Inter, ui-sans-serif, system-ui, sans-serif;
    vertical-align: middle;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerCreateButton:hover {
    border-color: #1976e9;
    background: #edf6ff;
}

body.flumenPortalERP .miniERPRequiredMark {
    display: inline-block;
    margin-left: 3px;
    color: #d22f59;
    font-weight: 850;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField input,
body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField select,
body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField textarea {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #c8d9ea;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #172941;
    font: 600 14px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField textarea {
    min-height: 92px;
    resize: vertical;
}

body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField input:focus,
body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField select:focus,
body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryField textarea:focus {
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .12);
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseCustomerOrderSearch,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderEntry .miniERPPurchaseCustomerOrderSearch,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseSupplierSearch {
    display: block;
    width: 100% !important;
    min-height: 34px !important;
    margin-top: 8px;
    padding: 7px 9px !important;
    border-color: #c8d9ea !important;
    background: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseCustomerOrderSelect,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderEntry .miniERPPurchaseCustomerOrderSelect,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseSupplierSelect {
    display: block !important;
    margin-top: 7px;
}

body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderEntry .miniERPPurchaseCustomerOrderSelect {
    margin-top: 0;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseCustomerOrderResults,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderEntry .miniERPPurchaseCustomerOrderResults,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseSupplierResults {
    display: grid;
    gap: 5px;
    max-height: 186px;
    margin-top: 7px;
    overflow: auto;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseCustomerOrderOption,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderEntry .miniERPPurchaseCustomerOrderOption,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseSupplierOption,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseCustomerOrderEmpty,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseSupplierEmpty {
    width: 100%;
    padding: 8px 9px;
    border: 1px solid #d5e2ef;
    border-radius: 7px;
    background: #fff;
    color: #294764;
    font: 650 12px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
    text-align: left;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseCustomerOrderOption,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderEntry .miniERPPurchaseCustomerOrderOption,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseSupplierOption {
    cursor: pointer;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseCustomerOrderOption:hover,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderEntry .miniERPPurchaseCustomerOrderOption:hover,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseCustomerOrderOption.is-selected,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderEntry .miniERPPurchaseCustomerOrderOption.is-selected,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseSupplierOption:hover,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseSupplierOption.is-selected {
    border-color: #2c78d6;
    background: #edf6ff;
    color: #075dbd;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseCustomerOrderEmpty,
body.flumenPortalERP #tableWindowHolder.miniERPProductionOrderEntry .miniERPPurchaseCustomerOrderEmpty,
body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseSupplierEmpty {
    color: #69819a;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseOrderActions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin: 18px 0 0;
    padding: 13px 15px;
    border: 1px solid #d7e5f2;
    border-radius: 10px;
    background: #f7fbff;
    color: #55708e;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseOrderActions strong {
    color: #183d67;
    font-size: 13px;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseOrderActions span {
    flex: 1 1 280px;
    font-size: 12px;
    font-weight: 600;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseOrderMail {
    min-height: 38px;
    margin: 0 !important;
    padding: 0 14px;
    border-color: #1264ca;
    border-radius: 8px;
    background: #1976e9;
    color: #fff;
    font-size: 12px;
    font-weight: 750;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseStatusToggle {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseStatusToggle button {
    min-height: 28px;
    padding: 4px 8px;
    border: 1px solid #d4e1ed;
    border-radius: 999px;
    background: #fff;
    color: #58728e;
    cursor: pointer;
    font: 700 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseStatusToggle button:hover {
    border-color: #8cb9e7;
    background: #f0f7ff;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseStatusToggle button.is-active {
    border-color: #1976e9;
    background: #1976e9;
    color: #fff;
    box-shadow: 0 3px 7px rgba(25, 118, 233, .18);
}

body.flumenPortalERP .miniERPMasterDocumentWorkspace {
    box-sizing: border-box;
    width: min(1040px, 100%);
    margin: 22px 0 30px;
    padding: 24px;
    border: 1px solid #d7e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(3, 27, 61, .08);
}

body.flumenPortalERP .miniERPMasterDocumentWorkspace h2 {
    margin: 4px 0 0;
    color: #071c3e;
    font-size: 20px;
}

body.flumenPortalERP .miniERPMasterDocumentIntro {
    margin: 7px 0 0;
    color: #607894;
    font-size: 13px;
    line-height: 1.5;
}

body.flumenPortalERP .miniERPMasterDocumentForm {
    display: grid;
    grid-template-columns: minmax(250px, .8fr) minmax(0, 1.7fr);
    gap: 18px;
    margin-top: 18px;
}

body.flumenPortalERP .miniERPMasterDocumentDropzone {
    display: flex;
    min-height: 176px;
    padding: 20px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    border: 1.5px dashed #7fb4ed;
    border-radius: 12px;
    background: #f6faff;
    color: #31587e;
    cursor: pointer;
    text-align: center;
}

body.flumenPortalERP .miniERPMasterDocumentDropzone.isDragging {
    border-color: #1672dc;
    background: #eaf4ff;
}

body.flumenPortalERP .miniERPMasterDocumentDropzone .icon-upload {
    color: #1976e9;
    font-size: 25px;
}

body.flumenPortalERP .miniERPMasterDocumentDropzone small {
    color: #71879e;
    font-size: 11px;
}

body.flumenPortalERP .miniERPMasterDocumentMetadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.flumenPortalERP .miniERPMasterDocumentMetadata label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #36526f;
    font-size: 12px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPMasterDocumentMetadata input,
body.flumenPortalERP .miniERPMasterDocumentMetadata select {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #c8d9ea;
    border-radius: 8px;
    background: #fff;
    color: #172941;
    font: 600 13px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPMasterDocumentHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e0e9f2;
    color: #173a5d;
    font-size: 13px;
}

body.flumenPortalERP .miniERPMasterDocumentCount {
    color: #637b95;
    font-size: 12px;
    font-weight: 650;
}

body.flumenPortalERP .miniERPMasterDocumentTable {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #dfe9f3;
    border-radius: 9px;
    border-collapse: separate;
    border-spacing: 0;
}

body.flumenPortalERP .miniERPMasterDocumentTable th,
body.flumenPortalERP .miniERPMasterDocumentTable td {
    padding: 10px 11px;
    text-align: left;
}

body.flumenPortalERP .miniERPMasterDocumentTable th {
    background: #f5f8fc;
    color: #516a85;
    font-size: 11px;
}

body.flumenPortalERP .miniERPMasterDocumentTable td {
    border-top: 1px solid #edf1f5;
    color: #405a75;
    font-size: 12px;
}

body.flumenPortalERP .miniERPMasterDocumentTable td strong,
body.flumenPortalERP .miniERPMasterDocumentTable td small {
    display: block;
}

body.flumenPortalERP .miniERPMasterDocumentTable td small {
    margin-top: 2px;
    color: #71879e;
    font-size: 10px;
}

body.flumenPortalERP .miniERPMasterDocumentStatus {
    display: inline-flex;
    min-height: 24px;
    padding: 0 9px;
    align-items: center;
    border: 1px solid #b8d7c7;
    border-radius: 999px;
    background: #edf9f3;
    color: #16704c;
    font-size: 11px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPMasterDocumentOpen {
    display: inline-block;
    margin-right: 9px;
    color: #1769c6;
    text-decoration: none;
}

body.flumenPortalERP .miniERPMasterDocumentEmpty {
    padding: 22px !important;
    color: #71879e !important;
    text-align: center !important;
}

@media (max-width: 900px) {
    body.flumenPortalERP .miniERPMasterDocumentForm {
        grid-template-columns: 1fr;
    }

    body.flumenPortalERP .miniERPMasterDocumentWorkspace {
        overflow-x: auto;
    }
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseStatusToggle button[data-status="Geliefert"].is-active {
    border-color: #17875c;
    background: #17875c;
}

body.flumenPortalERP #tableWindowHolder.miniERPPurchaseOrderEntry .miniERPPurchaseStatusToggle button[data-status="Storniert"].is-active {
    border-color: #b24155;
    background: #b24155;
}

@media (max-width: 760px) {
    body.flumenPortalERP #tableWindowHolder.miniERPMaterialEntry .miniERPMaterialEntryTable #materialTableHead_body {
        grid-template-columns: 1fr;
    }
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry #userQuickAccess_LogginInAs_Logout {
    float: none !important;
    min-height: 42px;
    margin: 16px 0 0 !important;
    padding: 0 18px;
    border: 1px solid #1264ca;
    border-radius: 9px;
    background: #1976e9;
    box-shadow: 0 6px 14px rgba(25, 118, 233, .2);
    color: #fff;
    font-weight: 750;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerPortalDocumentWorkspace {
    position: relative;
    box-sizing: border-box;
    width: min(1040px, 100%);
    margin: 20px 0 0;
    padding: 24px;
    border: 1px solid #d7e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(3, 27, 61, .08);
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerPortalDocumentWorkspace h2,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerPortalDocumentWorkspace p {
    margin: 0;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerPortalDocumentWorkspace h2 {
    margin-top: 3px;
    color: #071c3e;
    font-size: 20px;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerPortalDocumentWorkspace header > p {
    max-width: 690px;
    margin-top: 7px;
    color: #607894;
    font-size: 13px;
    line-height: 1.5;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentEyebrow {
    color: #1976e9;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentNotice {
    margin-top: 16px !important;
    padding: 10px 12px;
    border-left: 3px solid #1976e9;
    border-radius: 4px;
    background: #edf5ff;
    color: #34536f;
    font-size: 12px;
    line-height: 1.45;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentForm {
    display: grid;
    grid-template-columns: minmax(240px, .9fr) minmax(360px, 1.5fr);
    gap: 16px;
    margin-top: 18px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDropzone {
    display: grid;
    min-height: 194px;
    padding: 20px;
    place-items: center;
    align-content: center;
    border: 1px dashed #91b9e6;
    border-radius: 11px;
    background: #f7fbff;
    color: #315879;
    cursor: pointer;
    text-align: center;
    transition: border-color 150ms ease, background-color 150ms ease;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDropzone:hover,
body.flumenPortalERP .miniERPCustomerPortalDocumentDropzone.isDragging {
    border-color: #1976e9;
    background: #edf6ff;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDropzone > span {
    margin-bottom: 8px;
    color: #1976e9;
    font-size: 27px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDropzone strong {
    color: #183a5c;
    font-size: 14px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDropzone small {
    margin-top: 7px;
    color: #637b95;
    font-size: 11px;
    line-height: 1.4;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #36526f;
    font-size: 12px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata input,
body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata select,
body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #c8d9ea;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #172941;
    font: 600 13px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata textarea {
    min-height: 70px;
    resize: vertical;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata input:focus,
body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata select:focus,
body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata textarea:focus {
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .12);
}

body.flumenPortalERP .miniERPCustomerPortalDocumentComment {
    grid-column: 1 / -1;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentQueueHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e0e9f2;
    color: #173a5d;
    font-size: 13px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentCount {
    color: #637b95;
    font-size: 12px;
    font-weight: 650;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentFilters {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) repeat(2, minmax(150px, .45fr));
    gap: 9px;
    margin-top: 12px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentFilters input,
body.flumenPortalERP .miniERPCustomerPortalDocumentFilters select {
    box-sizing: border-box;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #c8d9ea;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #172941;
    font: 600 12px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentFilters input:focus,
body.flumenPortalERP .miniERPCustomerPortalDocumentFilters select:focus {
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .12);
}

body.flumenPortalERP .miniERPCustomerPortalDocumentList {
    margin-top: 10px;
    overflow-x: auto;
    border: 1px solid #dfe9f3;
    border-radius: 9px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentTable {
    width: 100%;
    min-width: 740px;
    border-collapse: collapse;
    background: #fff;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentTable th {
    padding: 0;
    background: #f5f8fc;
    border-bottom: 1px solid #dfe9f3;
    text-align: left;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentTable th button {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: #516a85;
    cursor: pointer;
    font: 750 11px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
    text-align: left;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentTable th button:hover {
    color: #1465c5;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentTable td {
    padding: 10px 12px;
    border-top: 1px solid #edf1f5;
    color: #405a75;
    font-size: 12px;
    vertical-align: middle;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentTable tbody tr {
    cursor: pointer;
    transition: background-color 150ms ease;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentTable tbody tr:hover,
body.flumenPortalERP .miniERPCustomerPortalDocumentTable tbody tr:focus {
    outline: none;
    background: #f5faff;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentFile {
    display: grid;
    grid-template-columns: 28px minmax(150px, 1fr);
    column-gap: 8px;
    align-items: center;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentFile strong {
    overflow: hidden;
    color: #173a5d;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentFile small {
    grid-column: 2;
    color: #70849a;
    font-size: 10px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentStatus {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 9px;
    border: 1px solid #c7d5e4;
    border-radius: 999px;
    background: #f4f7fa;
    color: #57718a;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentStatus::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

body.flumenPortalERP .miniERPCustomerPortalDocumentStatus-entwurf {
    border-color: #cad5e2;
    background: #f1f4f7;
    color: #64748b;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentStatus-in-pr-fung {
    border-color: #ebd49e;
    background: #fff8e6;
    color: #976611;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentStatus-intern-freigegeben {
    border-color: #b9d8f5;
    background: #edf6ff;
    color: #1765b4;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentStatus-f-r-kunde-freigegeben {
    border-color: #b6dfcd;
    background: #eaf8f1;
    color: #167451;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentStatus-obsolet {
    border-color: #dfc3ca;
    background: #f9edf0;
    color: #994054;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentLegend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
    color: #607894;
    font-size: 11px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentEmpty,
body.flumenPortalERP .miniERPCustomerPortalDocumentFooter {
    color: #70849a;
    font-size: 12px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentItem {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) 30px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid #dfe9f3;
    border-radius: 9px;
    background: #f8fbff;
    cursor: pointer;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentItem:hover,
body.flumenPortalERP .miniERPCustomerPortalDocumentItem:focus {
    border-color: #96bee9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .08);
    outline: none;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentIcon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 7px;
    background: #e5f1ff;
    color: #1976e9;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentItemContent {
    display: grid;
    min-width: 0;
    gap: 2px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentItemContent strong {
    overflow: hidden;
    color: #173a5d;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentItemContent span,
body.flumenPortalERP .miniERPCustomerPortalDocumentItemContent small {
    color: #647b93;
    font-size: 11px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentRemove {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8b5160;
    cursor: pointer;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentRemove:hover {
    background: #f8e9ed;
    color: #a03f55;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentFooter {
    margin-top: 14px !important;
    line-height: 1.45;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDetail {
    position: absolute;
    z-index: 20;
    right: 18px;
    box-sizing: border-box;
    width: min(420px, calc(100% - 36px));
    max-height: calc(100% - 36px);
    padding: 22px;
    overflow: auto;
    border: 1px solid #b9cee6;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(3, 22, 52, .24);
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDetail h3,
body.flumenPortalERP .miniERPCustomerPortalDocumentDetail h4 {
    margin: 0;
    color: #071c3e;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDetail h3 {
    margin-top: 4px;
    padding-right: 38px;
    font-size: 18px;
    overflow-wrap: anywhere;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDetail h4 {
    margin-top: 20px;
    font-size: 13px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDetailClose {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    place-items: center;
    border: 1px solid #d4e0ec;
    border-radius: 7px;
    background: #f6f9fc;
    color: #405873;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDetailMeta {
    margin: 7px 0 0;
    color: #617991;
    font-size: 12px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDetail dl {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr);
    gap: 7px 12px;
    margin: 18px 0 0;
    padding: 14px;
    border-radius: 9px;
    background: #f5f8fc;
    color: #61738a;
    font-size: 12px;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDetail dt {
    font-weight: 750;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentDetail dd {
    margin: 0;
    color: #172941;
    overflow-wrap: anywhere;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentVersions {
    margin: 9px 0 0;
    padding-left: 22px;
    color: #526d89;
    font-size: 12px;
    line-height: 1.7;
}

body.flumenPortalERP .miniERPCustomerPortalDocumentLocalDownload {
    display: inline-flex;
    margin-top: 18px;
    color: #1465c5;
    font-size: 12px;
    font-weight: 750;
}

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderProcurementWorkspace {
    box-sizing: border-box;
    width: min(1040px, 100%);
    margin: 20px 0 36px;
    padding: 24px;
    border: 1px solid #d7e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(3, 27, 61, .08);
}

body.flumenPortalERP .miniERPCustomerOrderProcurementWorkspace h2,
body.flumenPortalERP .miniERPCustomerOrderProcurementWorkspace p {
    margin: 0;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementWorkspace h2 {
    margin-top: 3px;
    color: #071c3e;
    font-size: 20px;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementIntro {
    margin-top: 7px !important;
    color: #607894;
    font-size: 13px;
    line-height: 1.5;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementForm {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementForm label {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    color: #36526f;
    font-size: 12px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementForm .miniERPRequiredFieldLabel::after {
    content: " *";
    color: #c81e5b;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementForm input,
body.flumenPortalERP .miniERPCustomerOrderProcurementForm select {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #c8d9ea;
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: #172941;
    font: 600 13px/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementForm input:focus,
body.flumenPortalERP .miniERPCustomerOrderProcurementForm select:focus {
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .12);
}

body.flumenPortalERP .miniERPCustomerOrderProcurementAdd,
body.flumenPortalERP .miniERPCustomerOrderProcurementDirectOrder {
    margin: 16px 0 0 !important;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementDirectOrder {
    margin-left: 9px !important;
    border-color: #146bd1;
    background: #146bd1;
    color: #fff;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementCreateOrder {
    min-height: 30px;
    margin: 0 7px 0 0 !important;
    padding: 5px 9px;
    border-color: #9fc4eb;
    border-radius: 7px;
    background: #edf6ff;
    color: #075fbd;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementMail {
    min-height: 30px;
    margin: 0 7px 0 0 !important;
    padding: 5px 9px;
    border: 1px solid #aac9e8;
    border-radius: 7px;
    background: #fff;
    color: #125f9f;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementEdit,
body.flumenPortalERP .miniERPCustomerOrderProcurementCancel {
    min-height: 30px;
    margin: 0 7px 0 0 !important;
    padding: 5px 9px;
    border: 1px solid #c2d1e0;
    border-radius: 7px;
    background: #fff;
    color: #36526f;
    white-space: nowrap;
    font-size: 10px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementCancel {
    margin: 16px 0 0 9px !important;
    font-size: 12px;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementEdit:hover,
body.flumenPortalERP .miniERPCustomerOrderProcurementCancel:hover {
    border-color: #1976e9;
    background: #edf6ff;
    color: #075fbd;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementMail:hover {
    border-color: #1976e9;
    background: #edf6ff;
    color: #075fbd;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e0e9f2;
    color: #173a5d;
    font-size: 13px;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementCount {
    color: #637b95;
    font-size: 12px;
    font-weight: 650;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementTable {
    display: block;
    width: 100%;
    min-width: 820px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #dfe9f3;
    border-radius: 9px;
    border-collapse: separate;
    border-spacing: 0;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementTable th {
    padding: 10px 12px;
    background: #f5f8fc;
    color: #516a85;
    font-size: 11px;
    text-align: left;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementTable td {
    padding: 10px 12px;
    border-top: 1px solid #edf1f5;
    color: #405a75;
    font-size: 12px;
    vertical-align: middle;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementTable td strong,
body.flumenPortalERP .miniERPCustomerOrderProcurementTable td small {
    display: block;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementTable td strong {
    color: #173a5d;
    font-size: 12px;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementTable td small {
    margin-top: 2px;
    color: #70849a;
    font-size: 10px;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementEmpty {
    padding: 24px !important;
    color: #70849a !important;
    text-align: center;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementStatus {
    display: inline-flex;
    min-height: 24px;
    padding: 0 9px;
    align-items: center;
    border: 1px solid #c7d5e4;
    border-radius: 999px;
    background: #f4f7fa;
    color: #57718a;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementStatus:hover,
body.flumenPortalERP .miniERPCustomerOrderProcurementStatus:focus-visible {
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .12);
    outline: none;
}

body.flumenPortalERP .miniERPCustomerOrderProcurementStatus-bedarf-erkannt { border-color: #cad5e2; background: #f1f4f7; color: #64748b; }
body.flumenPortalERP .miniERPCustomerOrderProcurementStatus-angefragt { border-color: #ebd49e; background: #fff8e6; color: #976611; }
body.flumenPortalERP .miniERPCustomerOrderProcurementStatus-bestellt { border-color: #b9d8f5; background: #edf6ff; color: #1765b4; }
body.flumenPortalERP .miniERPCustomerOrderProcurementStatus-teilgeliefert { border-color: #d2c9f1; background: #f3f0ff; color: #6955a8; }
body.flumenPortalERP .miniERPCustomerOrderProcurementStatus-vollst-ndig-geliefert { border-color: #b6dfcd; background: #eaf8f1; color: #167451; }

body.flumenPortalERP #tableWindowHolder.miniERPSupplierEntry .miniERPSupplierPurchaseWorkspace {
    box-sizing: border-box;
    width: min(1100px, 100%);
    margin: 20px 0 36px;
    padding: 24px;
    border: 1px solid #d7e3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(3, 27, 61, .08);
}

body.flumenPortalERP .miniERPSupplierPurchaseWorkspace h2,
body.flumenPortalERP .miniERPSupplierPurchaseWorkspace p {
    margin: 0;
}

body.flumenPortalERP .miniERPSupplierPurchaseWorkspace h2 {
    margin-top: 3px;
    color: #071c3e;
    font-size: 20px;
}

body.flumenPortalERP .miniERPSupplierPurchaseWorkspace > p:not(.miniERPCustomerPortalDocumentNotice) {
    margin-top: 7px;
    color: #607894;
    font-size: 13px;
    line-height: 1.5;
}

body.flumenPortalERP .miniERPSupplierPurchaseToolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

body.flumenPortalERP .miniERPSupplierPurchaseNew {
    margin: 0 !important;
    background: #1767d4;
    color: #fff;
}

body.flumenPortalERP .miniERPSupplierPurchaseHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e0e9f2;
    color: #173a5d;
    font-size: 13px;
}

body.flumenPortalERP .miniERPSupplierPurchaseHeader span {
    color: #637b95;
    font-size: 12px;
    font-weight: 650;
}

body.flumenPortalERP .miniERPSupplierPurchaseTable {
    display: block;
    width: 100%;
    min-width: 1040px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid #dfe9f3;
    border-radius: 9px;
    border-collapse: separate;
    border-spacing: 0;
}

body.flumenPortalERP .miniERPSupplierPurchaseTable th,
body.flumenPortalERP .miniERPSupplierPurchaseTable td {
    padding: 10px 12px;
    color: #405a75;
    font-size: 12px;
    text-align: left;
}

body.flumenPortalERP .miniERPSupplierPurchaseTable th {
    background: #f5f8fc;
    color: #516a85;
    font-size: 11px;
}

body.flumenPortalERP .miniERPSupplierPurchaseTable td {
    border-top: 1px solid #edf1f5;
}

body.flumenPortalERP .miniERPSupplierPurchaseStatus {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 2px 9px;
    border: 1px solid #b9d8f5;
    border-radius: 999px;
    background: #edf6ff;
    color: #1765b4;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

body.flumenPortalERP .miniERPSupplierPurchaseEmpty {
    padding: 24px 12px !important;
    color: #71869e !important;
    text-align: center !important;
}

@media (max-width: 680px) {
    body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm #tableAuftragFields {
        padding: 16px;
    }

    body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderForm #materialTableHead_body {
        grid-template-columns: 1fr;
    }

    body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryTable {
        padding: 16px;
    }

    body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry .miniERPCustomerOrderEntryTable #materialTableHead_body {
        grid-template-columns: 1fr;
    }

    body.flumenPortalERP .miniERPCustomerPortalDocumentWorkspace {
        padding: 16px;
    }

    body.flumenPortalERP .miniERPCustomerPortalDocumentForm,
    body.flumenPortalERP .miniERPCustomerPortalDocumentMetadata,
    body.flumenPortalERP .miniERPCustomerPortalDocumentFilters {
        grid-template-columns: 1fr;
    }

    body.flumenPortalERP .miniERPCustomerPortalDocumentDetail {
        position: fixed;
        top: 18px;
        right: 18px;
        max-height: calc(100vh - 36px);
    }

    body.flumenPortalERP .miniERPCustomerOrderProcurementWorkspace {
        padding: 16px;
    }

    body.flumenPortalERP .miniERPCustomerOrderProcurementForm {
        grid-template-columns: 1fr;
    }

    body.flumenPortalERP .miniERPSupplierPurchaseWorkspace {
        padding: 16px;
    }
}

@media (max-width: 860px) {
    body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceForm {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormGroup,
    body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormGroup:first-child,
    body.flumenPortalERP #tableWindowHolder.miniERPWorkplaceTable .miniERPWorkplaceFormGroup:last-of-type {
        grid-column: auto;
        grid-template-columns: 1fr;
    }
}

body.flumenPortalERP .miniERPWorkplaceTimerButton {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 58px;
    min-height: 26px;
    padding: 4px 8px;
    border: 1px solid #9ec5f8;
    border-radius: 6px;
    background: #edf5ff;
    color: #1465c5;
    cursor: pointer;
    font: 700 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPWorkplaceTimerButtonRunning {
    border-color: #efaaa3;
    background: #fff0ef;
    color: #c7281c !important;
}

body.flumenPortalERP .miniERPWorkplaceTimerButton::before {
    content: "▶";
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #eaf3ff;
    color: #1976e9;
    font-family: Arial, sans-serif;
    font-size: 10px;
    line-height: 1;
}

body.flumenPortalERP .miniERPWorkplaceTimerButtonRunning::before {
    content: "■";
    background: #fff0ef;
    color: #d92d20;
    font-size: 8px;
}

body.flumenPortalERP .miniERPWorkplaceActiveTimer {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 12px 0 0;
    padding: 7px 10px;
    border: 1px solid #f1b5ae;
    border-radius: 8px;
    background: #fff6f5;
    color: #8d251b;
    cursor: pointer;
    font: 700 12px/1 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPWorkplaceActiveTimerIcon {
    color: #d92d20;
    font-size: 10px;
}

body.flumenPortalERP .miniERPWorkplaceRunningTimeCell {
    white-space: nowrap;
}

body.flumenPortalERP .miniERPWorkplaceRunningTime {
    display: inline-block;
    min-width: 62px;
    padding: 4px 7px;
    border-radius: 6px;
    background: #fff0ef;
    color: #c7281c;
    font: 750 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
}

body.flumenPortalERP .miniERPWorkplaceTimerDialog {
    position: fixed;
    /* The routed Mini-ERP workspace itself is above legacy cockpit panels
       (z-index: 20010), so timer dialogs appended to body must sit above it. */
    z-index: 30050;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 20, 49, .42);
}

body.flumenPortalERP .miniERPWorkPlanApplicationDialog {
    position: fixed;
    z-index: 30060;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(3, 20, 49, .46);
}

body.flumenPortalERP .miniERPWorkPlanApplicationCard {
    position: relative;
    box-sizing: border-box;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    padding: 30px;
    overflow-y: auto;
    border: 1px solid #d6e2ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(3, 20, 49, .3);
}

body.flumenPortalERP .miniERPWorkPlanApplicationCard h2 {
    margin: 5px 36px 10px 0;
    color: #071c3e;
    font-size: 22px;
}

body.flumenPortalERP .miniERPWorkPlanApplicationClose {
    position: absolute;
    top: 13px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #57708d;
    cursor: pointer;
    font-size: 27px;
}

body.flumenPortalERP .miniERPWorkPlanApplicationIntro {
    margin: 0 0 18px;
    color: #526b88;
    font-size: 13px;
    line-height: 1.55;
}

body.flumenPortalERP .miniERPWorkPlanApplicationSelect {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #cddbeb;
    border-radius: 9px;
    background: #fff;
    color: #102a4a;
    font: 600 14px/1.3 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPWorkPlanApplicationPreview {
    display: flex;
    min-height: 48px;
    flex-direction: column;
    gap: 4px;
    margin: 12px 0 18px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #f3f8fd;
    color: #526b88;
    font-size: 12px;
}

body.flumenPortalERP .miniERPWorkPlanApplicationPreview strong {
    color: #173d64;
    font-size: 13px;
}

body.flumenPortalERP .miniERPWorkPlanApplicationEmpty {
    margin: 0;
    line-height: 1.5;
}

body.flumenPortalERP .miniERPWorkplaceTimerCard {
    position: relative;
    box-sizing: border-box;
    width: min(460px, 100%);
    max-height: calc(100vh - 40px);
    padding: 28px;
    overflow-y: auto;
    border: 1px solid #d6e2ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(3, 20, 49, .28);
}

body.flumenPortalERP .miniERPWorkplaceTimerCard h2 {
    margin: 4px 30px 18px 0;
    color: #071c3e;
    font-size: 23px;
}

body.flumenPortalERP .miniERPWorkplaceTimerClose {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: transparent;
    color: #57708d;
    cursor: pointer;
    font-size: 26px;
}

body.flumenPortalERP .miniERPWorkplaceTimerHint,
body.flumenPortalERP .miniERPWorkplaceTimerOrder {
    color: #526b88;
    font-size: 14px;
    line-height: 1.45;
}

body.flumenPortalERP .miniERPWorkplaceTimerOrderLabel {
    display: block;
    color: #3f5875;
    font-size: 12px;
    font-weight: 750;
}

body.flumenPortalERP .miniERPWorkplaceTimerElapsed {
    display: block;
    margin: 4px 0 18px;
    color: #071c3e;
    font-size: 38px;
    letter-spacing: .04em;
}

body.flumenPortalERP .miniERPWorkplaceTimerOrderInput,
body.flumenPortalERP .miniERPWorkplaceTimerOrderSearch {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #cddbeb;
    border-radius: 8px;
    font: 500 14px/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
}

body.flumenPortalERP .miniERPWorkplaceTimerOrderSearch {
    margin: 5px 0 8px;
}

body.flumenPortalERP .miniERPWorkplaceTimerOrderInput {
    margin: 0 0 16px;
    background: #fff;
}

body.flumenPortalERP .miniERPWorkplaceTimerOrderHint {
    margin: -8px 0 16px;
    color: #70849a;
    font-size: 11px;
    line-height: 1.4;
}

body.flumenPortalERP .miniERPWorkplaceTimerOrderInput:focus,
body.flumenPortalERP .miniERPWorkplaceTimerOrderSearch:focus {
    outline: none;
    border-color: #1976e9;
    box-shadow: 0 0 0 3px rgba(25, 118, 233, .12);
}

body.flumenPortalERP .miniERPWorkplaceTimerStart,
body.flumenPortalERP .miniERPWorkplaceTimerStop {
    margin: 0 !important;
}

body.flumenPortalERP .miniERPWorkplaceTimerStop {
    background: #071c3e;
}

@media (max-width: 640px) {
    body.flumenPortalERP .miniERPWorkPlanApplicationDialog {
        align-items: end;
        padding: 10px;
    }

    body.flumenPortalERP .miniERPWorkPlanApplicationCard {
        width: 100%;
        max-height: calc(100dvh - 20px);
        padding: 24px 18px;
        border-radius: 18px 18px 12px 12px;
    }
}

/* Optional order fields stay mounted for the native save contract. */
body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry #materialTableHead_body:not(.miniERPOrderExpanded) > .miniERPOrderOptional { display: none !important; }
.miniERPOrderMore { padding: 10px 16px; border: 1px solid #cbdced; border-radius: 8px; background: #f4f8fc; color: #071c3e; cursor: pointer; font: inherit; }
.miniERPOrderMore::before { content: "▸ "; }
.miniERPOrderMore[aria-expanded="true"]::before { content: "▾ "; }

body.flumenPortalERP #tableWindowHolder.miniERPCustomerOrderEntry #tableWindowTableContent:not(.miniERPOrderExpanded) > .miniERPOrderOptionalPanel { display: none !important; }

.miniERPCreateBackground { position:fixed; inset:0; overflow:hidden; contain:paint; pointer-events:none; }
.miniERPCreateBackdrop { position:fixed; inset:0; background:rgba(7,28,62,.38); z-index:2147481999; }
body.flumenPortalERP #tableWindowHolder.miniERPCreateDialog {
    position:fixed !important; top:calc(var(--analysis-matrix-header-height, 4rem) + 12px) !important; left:50% !important; right:auto !important; bottom:auto !important;
    transform:translateX(-50%); width:min(960px,calc(100vw - 32px)) !important; height:auto !important; min-height:0 !important; max-height:calc(100dvh - var(--analysis-matrix-header-height, 4rem) - 24px);
    display:flex !important; flex-direction:column !important; z-index:2147482000 !important;
    background:#f4f7fb; border:1px solid #cbdced; border-radius:16px; box-shadow:0 24px 80px #071c3e66; overflow:hidden;
}
body.flumenPortalERP #tableWindowHolder.miniERPCreateDialog #tableWindowHeader {
    position:relative !important; inset:auto !important; flex:none; width:auto !important;
    margin:0 !important; padding:16px 130px 16px 24px !important; min-width:0; border-radius:0; box-shadow:none;
}
body.flumenPortalERP #tableWindowHolder.miniERPCreateDialog #tableWindowContent {
    position:relative !important; inset:auto !important; flex:0 1 auto; min-height:0; width:100% !important;
    height:auto !important; box-sizing:border-box; padding:20px !important; overflow:auto;
}
body.flumenPortalERP #tableWindowHolder.miniERPCreateDialog #tableWindowTableContent { width:100% !important; margin:0 !important; }
.miniERPCreateClose { position:absolute; right:16px; top:16px; padding:8px 14px; border:1px solid #bdcfe2; border-radius:8px; background:white; color:#10233f; font:inherit; cursor:pointer; }
@media(max-width:600px) { body.flumenPortalERP #tableWindowHolder.miniERPCreateDialog { width:calc(100vw - 12px) !important; } }

/* Contact arrays belong to their own full-width card, not a legacy fixed row. */
body.flumenPortalERP #tableWindowHolder.miniERPCustomerMasterEntry .miniERPMaterialEntryField,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerMasterEntry .miniERPMaterialEntryField > td {
    height:auto !important; min-height:0;
}
body.flumenPortalERP #tableWindowHolder.miniERPCustomerMasterEntry .miniERPCustomerContactRow > td.arraySection {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px;
}
body.flumenPortalERP #tableWindowHolder.miniERPCustomerMasterEntry .miniERPCustomerContactRow .arraySection > .erpAddValueField {
    float:none !important; min-width:0; width:auto; gap:6px;
    color:#36526f; font:600 12px/1.35 Inter,ui-sans-serif,system-ui,sans-serif;
}
body.flumenPortalERP #tableWindowHolder.miniERPCustomerMasterEntry .miniERPCustomerContactRow input,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerMasterEntry .miniERPCustomerContactRow select,
body.flumenPortalERP #tableWindowHolder.miniERPCustomerMasterEntry .miniERPCustomerContactRow textarea {
    display:block; min-width:0; margin:0; max-width:100%;
}
@media(max-width:600px) {
    body.flumenPortalERP #tableWindowHolder.miniERPCustomerMasterEntry .miniERPCustomerContactRow > td.arraySection { grid-template-columns:minmax(0,1fr); }
}
