.dxbl-row:not(:has(dxbl-form-layout-item)) {
    margin-bottom: calc(-1 * var(--dxbl-row-item-spacing-y));
}

.dxbl-grid
    .dxbl-grid-table
    .dxbl-grid-focused-row.dxbl-grid-selected-row:not(.dxbl-grid-touch-selection):not(.dxbl-grid-touch-selection-edge)
    > td:not(.dxbl-grid-empty-cell):not(.dxbl-grid-indent-cell)::before {
    opacity: 90% !important;
}

.dxbl-grid
    .dxbl-grid-table
    .dxbl-grid-focused-row:not(.dxbl-grid-touch-selection):not(.dxbl-grid-touch-selection-edge)
    > td:not(.dxbl-grid-empty-cell):not(.dxbl-grid-indent-cell)::before {
    opacity: 85% !important;
}

/* Module UI customizations */
#app-drawer__content > .ui-builder-container,
#app-drawer__content > .ui-builder-container .dxbl-tabs {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#app-drawer__content > .ui-builder-container .dxbl-tabs > .dxbl-tabs-content-panel {
    min-height: 0;
    flex: 1;
}

#app-drawer__content > .ui-builder-container .dxbl-tabs > .dxbl-tabs-content-panel > .dxbl-tabs-content.dxbl-active {
    display: flex;
    flex-direction: column;
}

#app-drawer__content
    > .ui-builder-container
    > .dxbl-tabs
    > .dxbl-tabs-content-panel
    > .dxbl-tabs-content.dxbl-active
    > .gmc-stack:only-child {
    height: 100%;
}

#app-drawer__content
    > .ui-builder-container
    > .dxbl-tabs
    > .dxbl-tabs-content-panel
    > .dxbl-tabs-content.dxbl-active
    > .gmc-stack:only-child
    > *:last-child {
    min-height: 0;
    flex: 1;
}

#app-drawer__content
    > .ui-builder-container
    > .dxbl-tabs
    > .dxbl-tabs-content-panel
    > .dxbl-tabs-content.dxbl-active
    > .gmc-stack:only-child
    > *:last-child
    > .dxbl-row {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

#app-drawer__content
    > .ui-builder-container
    > .dxbl-tabs
    > .dxbl-tabs-content-panel
    > .dxbl-tabs-content.dxbl-active
    > .gmc-stack:only-child
    > *:last-child
    > .dxbl-row
    > .dxbl-fl-group:only-child {
    min-height: 0;
    flex: 1;
}

#app-drawer__content > .ui-builder-container .gmc-form .dxbl-fl-group > .dxbl-group.expanded,
#app-drawer__content > .ui-builder-container .gmc-form .dxbl-fl-group > .dxbl-group.expanded .dxbl-group-body-content {
    height: 100%;
}

#app-drawer__content > .ui-builder-container .gmc-form .dxbl-fl-group > .dxbl-group.expanded .dxbl-group-body-content {
    display: flex;
    flex-direction: column;
}

#app-drawer__content
    > .ui-builder-container
    .gmc-form
    .dxbl-fl-group
    > .dxbl-group.expanded
    > .dxbl-expandable-container {
    min-height: 0;
    flex: 1;
}

#app-drawer__content > .ui-builder-container .dxbl-row:has(.gmc-auto-data-grid) {
    height: 100%;
    min-height: 0;
    flex: 1;
}

/* End module UI customizations */

/* QCProduction UI customizations */

.app-subscreen-layout--two-group
    > .dxbl-tabs
    > .dxbl-tabs-content-panel
    > .dxbl-tabs-content.dxbl-active
    > .gmc-stack:only-child {
    height: 100%;
}

.app-subscreen-layout--two-group .dxbl-tabs {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-subscreen-layout--two-group .dxbl-tabs > .dxbl-tabs-content-panel {
    min-height: 0;
    flex: 1;
}

.app-subscreen-layout--two-group
    .dxbl-tabs
    > .dxbl-tabs-content-panel
    > .dxbl-tabs-content.dxbl-active
    > .gmc-stack:only-child {
    height: 100%;
}

.app-subscreen-layout--two-group
    .dxbl-tabs
    > .dxbl-tabs-content-panel
    > .dxbl-tabs-content.dxbl-active
    > .gmc-stack:only-child
    > * {
    min-height: 0;
    flex: 1;
}

.app-subscreen-layout--two-group
    .dxbl-tabs
    > .dxbl-tabs-content-panel
    > .dxbl-tabs-content.dxbl-active
    > .gmc-stack:only-child
    > *
    > .dxbl-row {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-subscreen-layout--two-group
    .dxbl-tabs
    > .dxbl-tabs-content-panel
    > .dxbl-tabs-content.dxbl-active
    > .gmc-stack:only-child
    > *
    > .dxbl-row
    > .dxbl-fl-group:only-child {
    min-height: 0;
    flex: 1;
}

.app-subscreen-layout--two-group .gmc-form .dxbl-fl-group > .dxbl-group.expanded,
.app-subscreen-layout--two-group .gmc-form .dxbl-fl-group > .dxbl-group.expanded .dxbl-group-body-content {
    height: 100%;
}

.app-subscreen-layout--two-group .gmc-form .dxbl-fl-group > .dxbl-group.expanded .dxbl-group-body-content {
    display: flex;
    flex-direction: column;
}

.app-subscreen-layout--two-group .gmc-form .dxbl-fl-group > .dxbl-group.expanded > .dxbl-expandable-container {
    min-height: 0;
    flex: 1;
}

.app-subscreen-layout--two-group .dxbl-row:has(.gmc-auto-data-grid) {
    height: 100%;
    min-height: 0;
    flex: 1;
}
/* End module UI customizations */

/* Create From UI customizations */

.create-from__container {
    width: 100%;
    height: 100%;
}

.create-from__container > .ui-builder-container,
.create-from__container > .ui-builder-container > .gmc-stack {
    height: 100%;
}

.create-from__container > .ui-builder-container > .gmc-stack > .gmc-auto-data-grid {
    min-height: 0 !important;
    flex: 1 !important;
}

.create-from__container > .ui-builder-container > .gmc-stack > .gmc-form:has(.dxbl-group.expanded .gmc-auto-data-grid) {
    min-height: 0 !important;
    flex: 1 !important;
}

.create-from__container > .ui-builder-container > .gmc-stack > .gmc-form:has(.gmc-auto-data-grid) .dxbl-row {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.create-from__container
    > .ui-builder-container
    > .gmc-stack
    > .gmc-form:has(.gmc-auto-data-grid)
    .dxbl-row
    > .dxbl-fl-group:only-child {
    min-height: 0;
    flex: 1;
}

.create-from__container
    > .ui-builder-container
    > .gmc-stack
    > .gmc-form:has(.gmc-auto-data-grid)
    .dxbl-row
    > .dxbl-fl-group
    > .dxbl-group.expanded {
    min-height: 0;
    flex: 1;
}

.create-from__container
    > .ui-builder-container
    > .gmc-stack
    > .gmc-form:has(.gmc-auto-data-grid)
    .dxbl-row
    > .dxbl-fl-group
    > .dxbl-group.expanded
    > .dxbl-expandable-container {
    min-height: 0;
    flex: 1;
}

.create-from__container
    > .ui-builder-container
    > .gmc-stack
    > .gmc-form:has(.gmc-auto-data-grid)
    .dxbl-row
    > .dxbl-fl-group
    > .dxbl-group.expanded,
.create-from__container
    > .ui-builder-container
    > .gmc-stack
    > .gmc-form:has(.gmc-auto-data-grid)
    .dxbl-row
    > .dxbl-fl-group
    > .dxbl-group.expanded
    .dxbl-group-body-content {
    height: 100%;
}

.create-from__container
    > .ui-builder-container
    > .gmc-stack
    > .gmc-form:has(.gmc-auto-data-grid)
    .dxbl-row
    > .dxbl-fl-group
    > .dxbl-group.expanded
    .dxbl-group-body-content {
    display: flex;
    flex-direction: column;
}

.create-from__container > .ui-builder-container > .gmc-stack > *:first-child:not(:has(dxbl-form-layout-group)) {
    margin-bottom: 0.5rem;
}

.create-from__container > .ui-builder-container > .gmc-stack > *:first-child:has(dxbl-form-layout-group) {
    margin-bottom: -0.5rem;
}

/* End Create From UI customizations */

/* MES module customizations */
.mes-subscreen {
    border-radius: 0.5rem !important;
    overflow: hidden;
}

.mes-subscreen-header-color {
    color: white !important;
}

.mes-subscreen-header-bg {
    background: none;
    background-color: #29375c !important;
}

.mes-subscreen__print-label-button {
    color: #43558d !important;
    background-color: #dae3f4 !important;
}

.dxbl-popup-cell:has(.subscreen--always-on-top) {
    z-index: 2000 !important;
}

.mes-chipset .gmc-chip {
    font-weight: 600;
}

.mes__combobox input {
    /* padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important; */

    /* line-height: 1.25rem !important;
    font-size: 1.25rem !important; */

    font-weight: 700 !important;
}

.xl-input {
    line-height: 1 !important;
    font-size: 1.5rem !important;
}

.xxl-input {
    line-height: 1 !important;
    font-size: 1.75rem !important;
}

.gmc-input-control--label-hidden fieldset legend,
.gmc-input-control--label-hidden label {
    display: none !important;
}

.gmc-input-control--label-hidden {
    margin: 0px !important;
}

.mes-print-subscreen ~ .dxbl-window-body .base-print__grid td,
.mes-print-subscreen ~ .dxbl-window-body .base-print__grid th,
.mes__select-print-label .base-print__grid tr[role="row"] td,
.mes__select-print-label .base-print__grid th {
    padding: 0.875rem 0.625rem !important;
}

.mes-print-subscreen ~ .dxbl-window-body .base-print__grid td:not(.dxbl-grid-empty-data-area),
.mes__select-print-label .base-print__grid td:not(.dxbl-grid-empty-data-area) {
    font-size: 0.875rem !important;
    line-height: 1 !important;
}

.mes__start-new-wo-button--flashing:not(:hover) {
    animation: flash 1s infinite;
}

@keyframes flash {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* End MES module customizations */
