/* TODO: Move specific CSS to the components/pages that use it */

:root {
    --sw-main-color: #0084F6;

    --sw-main-color-light-1: #00ACFF;
    --sw-main-color-light-2: #00CBEA;
    --sw-main-color-light-3: #00E2B8;
    --sw-main-color-light-4: #8CF287;
    --sw-main-color-light-5: #F9F871;

    --sw-main-color-dark-1: #0069D6;
    --sw-main-color-dark-2: #004FB7;
    --sw-main-color-dark-3: #003799;
    --sw-main-color-dark-4: #00227B;

    --sw-main-color-opposite-1: #6575E4;
    --sw-main-color-opposite-2: #8767CE;
    --sw-main-color-opposite-3: #9C59B5;
    --sw-main-color-opposite-4: #A74D9C;
    --sw-main-color-opposite-5: #AB4483;

    --sw-secondary-color: #19f06b;

    --sw-secondary-color-dark-1: #00D191;
    --sw-secondary-color-dark-2: #00AFA1;
    --sw-secondary-color-dark-3: #008C9C;
    --sw-secondary-color-dark-4: #006981;
    --sw-secondary-color-dark-5: #2F4858;

    --sw-secondary-color-opposite-1: #00DCA4;
    --sw-secondary-color-opposite-2: #00C2D6;
    --sw-secondary-color-opposite-3: #00A6F4;
    --sw-secondary-color-opposite-4: var(--sw-main-color);
    --sw-secondary-color-opposite-5: #005DD7;

    --sw-tertiary-color: #FF8771;
    --sw-tertiary-color-light: #FFC159;

    --sw-gradient: linear-gradient(90deg, var(--sw-secondary-color-opposite-4) 0%, var(--sw-secondary-color) 100%);
}

/* qod.ee general */

html {
    scroll-behavior: smooth;
}

body {
    overflow: hidden;
}

#blazor-error-ui {
    background: #007bff !important;
    color: white;
    font-size: 14px;
    font-weight: bold;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.manage-app-container {
    height: calc(100vh - 48px);
    height: var(--app-height);
    overflow-x: auto;
    overflow-y: hidden;
}

.manage-app-container:not(:has(.editor-main-content)) {
    overflow-y: auto !important;
}

.mud-dialog-container:has(>.mud-dialog.sw-component) {
    max-width: var(--editor-width);
    max-height: var(--editor-height);
    top: 56px;
    bottom: 10px;
    left: var(--editor-left);
}

.mud-dialog-container:has(>.mud-dialog.sw-component) .mud-overlay {
    right: 366px;
    top: 56px;
    bottom: 10px;
    left: var(--editor-left);
    border-radius: 10px;
}

.app-container {
    height: calc(100% - 62px);
}

.app-iframe {
    border: 3px dashed #29a745;
    padding: 3px;
}

.app-panel {
    overflow-y: auto;
    padding: 2px;
}

.half-panel {
    height: calc(45% - 12px);
    position: absolute;
    width: 100%;
}

.half-panel.half-panel-bottom {
    height: 55%;
    top: 45%;
}

.component-picker-drawer:not(.mud-drawer-temporary) {
    z-index: 1350 !important; /* Above the other panels, and above the overlay & the .component-wrapper */
    background-color: var(--mud-palette-background) !important;
}

.component-picker-drawer.mud-drawer.mud-drawer-pos-left.mud-drawer--open.mud-drawer-clipped-never.mud-drawer-temporary {
    z-index: 1550 !important;
    background-color: var(--mud-palette-background) !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
}

.breadcrumbs-container {
    top: 0; 
    z-index: 1521 !important; /* Above the menubar, but below the component wrapper */
    position: absolute; 
    left: 162px; 
    font-size: 10px !important;
}

.breadcrumbs-container .mud-breadcrumbs {
    font-size: 13px;
    font-weight: 500;
}

.drawer-overlay {
    position: absolute; 
    z-index: 1012;  /* Below the drawer, but above all other panels */
    width: 100%; 
    height: 100%;
}

.properties-panel {
    margin-top: 6px;
    height: calc(100% - 78px);
    padding: 0 10px;
    overflow-y: auto;
    overflow-x: hidden;
}

.small-icon {
    font-size: 1.25em !important;
    margin-top: 2px;
    margin-bottom: -4px;
}

.mud-button-root:disabled {
    color: #ffffff27 !important;
}

.small-icon .mud-icon-root {
    width: 22px;
}

.extra-small-icon {
    font-size: 0.8em !important;
}

.extra-small-icon .mud-icon-root {
    width: 18px;
}

.icon-rotate-45 .mud-icon-button-label {
    transform: rotate(45deg);
}

.icon-rotate-n45 .mud-icon-button-label {
    transform: rotate(-45deg);
}

.icon-rotate-90 {
    transform: rotate(90deg);
}

.icon-rotate-n90 {
    transform: rotate(-90deg);
}

.icon-rotate-180 {
    transform: rotate(180deg);
}

.icon-badge {
    background-color: #2d90e4;
    color: white;
    padding: 3px;
    height: 21px !important;
    width: 21px !important;
    border-radius: 5px;
    position: relative;
}

.icon-badge.list-icon {
    height: 19px !important;
    width: 19px !important;
    padding: 3px;
    box-shadow: 2px 2px 0 #0067a9, 4px 4px 0 #005285;
    left: -2px;
    top: -1px;
}

.text-ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.editable-field .editable-tag {
    border-radius: 7px;
    padding: 0 4px;
    font-weight: bold;
    font-size: 12px !important;
    user-select: none;
    cursor: pointer;
    margin-left: 2px;
    margin-right: 0;
    margin-top: 0px !important;
    margin-bottom: 1px !important;
}

.qodee-field p, label {
    font-size: 13px !important;
}

.extra-dense-list p {
    font-size: 13px !important;
}

.qodee-field .mud-paper-square > .mud-tooltip-root > .mud-icon-button {
    padding: 8px !important;
}

.qodee-field .mud-paper-square > .mud-tooltip-root > .mud-icon-button .mud-icon-root {
    width: 15px !important;
    height: 15px !important;
}

.qodee-field .mud-input-label-outlined.mud-input-label-margin-dense {
    transform: translate(3px, 7px) scale(1);
}

.qodee-field .mud-input-label {
    margin: 0 0 0 0 !important;
}

.qodee-field .mud-input,
.qodee-field .mud-input-control {
    margin: 0 !important;
    font-size: 13px !important;
    padding-right: 8px !important;
}

.qodee-field .mud-input-slot {
    padding: 8px 0 8px 10px !important;
}

.qodee-field .field-hover-icon {
    display: none;
    position: absolute;
    right: -8px;
    top: -6px;
}

.qodee-field:hover .field-hover-icon {
    display: block;
}

.qodee-field .mud-icon-root {
    font-size: 1.2rem;
}

.full-width-alert .mud-alert-message {
    width: 100%;
}

.full-width-step-button {
    width: 100%;
    cursor: inherit !important;
}

.field-clear-icon {
    top: 12px !important;
}

.error-outline:not(.value-button-modifier) {
    border: none !important; 
    box-shadow: inset 0 0 0 2px #f64e6269, 0 0 0 2px #f64e6269 !important;
    position: relative !important;
    transition: box-shadow 500ms ease-in-out;
}

.error-outline:not(.value-button-modifier):hover, .error-outline:not(.value-button-modifier):focus {
    box-shadow: inset 0 0 0 2px #f64e6269 !important;
}

.error-outline:not(.value-button-modifier)::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 10px;
    border: 2px dashed var(--mud-palette-error) !important;
}

.value-button,
.value-button button {
    text-transform: inherit !important;
}

.value-button.value-button-modifier {
    padding: 5px 0 2px 4px;
    margin: -3px 1px 0 -3px !important;
    min-width: 0;
    font-size: var(--mud-typography-body2-size);
}

.value-button-modifier .mud-button-label {
    padding: 0 !important;
    text-decoration: underline;
    text-decoration-style: dashed;
}

.lower-button {
    text-transform: inherit !important;
}

.bold-text {
    font-weight: bold;
}

.slim-expansion-panel .mud-expand-panel-content {
    padding: 5px 2px 4px 6px !important;
}

.slim-expansion-panel .mud-expand-panel-content .mud-menu button {
    padding: 0 !important;
}

.slim-expansion-panel .mud-expand-panel-header {
    padding: 0 16px !important;
    min-height: 42px !important;
}

.editor-container.main-editor {
    border-radius: 10px;
    border: 2px dashed var(--mud-palette-lines-default) !important;
    /*border: 2px dashed #32333d !important; for dark */
}

.editor-container {
    min-height: calc(100vh - 115px);
    min-height: var(--editor-height);
}

.editor-scroller {
    overflow-y: auto; 
    overflow-x: hidden; 
    border-radius: 10px !important; 
    position: relative;
    height: calc(100vh - 115px);
    height: var(--editor-height);
}

.editor-sidebar {
    min-height: calc(100vh - 115px);
    min-height: var(--editor-height);
    height: calc(100vh - 115px);
    height: var(--editor-height);
    overflow: hidden;
}

/* Bound elements inside the editor container (prevent them from being fixed - relative to the entire page) */
.editor-container .mud-appbar.mud-appbar-fixed-top,
.editor-container .mud-appbar.mud-appbar-fixed-bottom,
.editor-container .mud-drawer-fixed,
.editor-container .mud-overlay {
    position: absolute !important;
}

.editor-treeview {
    margin: 5px 0 !important;
}

.editor-treeview .mud-treeview-group {
    margin-inline-start: 10px;
    border-left: 1px solid var(--mud-palette-table-lines);
    border-spacing: 10px;
    border-collapse: separate;
}

.editor-treeview .sw-treeview-selected-item > .mud-collapse-container > .mud-collapse-wrapper > .mud-collapse-wrapper-inner > .mud-treeview-group {
    border-left: 1px solid var(--mud-palette-primary) !important;
}

.mud-list-item-icon {
    min-width: 38px !important;
}

/*.mud-drop-item.mud-drop-item-preview-start {*/
/*    pointer-events: none;*/
/*}*/

.override-buttons-white .mud-icon-root.mud-svg-icon {
    fill: white;
}

.override-buttons-white .mud-icon-button:disabled .mud-icon-root.mud-svg-icon {
    fill: #ffffff90;
}

.mud-treeview-item.sw-treeview-selected-item > .mud-treeview-item-content > .treeview-component > .mud-icon-root,
.mud-treeview-item.sw-treeview-selected-item > .mud-treeview-item-content > .treeview-component > p,
.mud-treeview-item.sw-treeview-selected-item > .mud-treeview-item-content > .treeview-component > .mud-treeview-item-arrow > button .mud-icon-root,
.mud-treeview-item.sw-treeview-selected-item > .mud-treeview-item-content > .treeview-component > button .mud-icon-root {
    color: var(--mud-palette-primary) !important;
}

.editor-treeview .mud-treeview-item-content .mud-icon-root {
    color: var(--mud-palette-text-primary);
}

.editor-treeview .mud-treeview-item-content.mud-treeview-item-selected {
    background-color: transparent !important;
    color: var(--mud-palette-text-primary) !important;
}

.editor-treeview .mud-treeview-item-content.mud-treeview-item-selected p {
    color: var(--mud-palette-text-primary) !important;
}


.treeview-component {
    position: relative;
    width: 100%;
}

.treeview-component .mud-typography {
    padding-right: 16px;
}

.treeview-component .mud-treeview-item-arrow {
    height: 16px;
    width: 18px;
    margin: 2px 5px 0 -2px;
}

.treeview-component-actions {
    position: absolute;
    right: 18px;
    visibility: hidden;
}

.treeview-component-actions .mud-button-root {
    margin-right: 3px;
}

.treeview-component-actions .extra-small-icon .mud-icon-root,
.treeview-component .mud-treeview-item-arrow .mud-icon-root,
.treeview-component-visibility .mud-icon-root {
    width: 16px !important;
    height: 16px !important;
}

.treeview-component-actions {
    backdrop-filter: blur(3px);
    margin-right: 2px;
    padding: 1px 3px;
    margin-top: -1px;
    border-radius: 5px;
}

.treeview-component-visibility {
    position: absolute !important;
    right: 0;
    top: 2px;
}

.treeview-component:hover .treeview-component-actions {
    visibility: visible;
}

#component-wrapper-border {
    outline: 2px solid #0084f6d8 !important;
    display: block;
    position: fixed;
    pointer-events: none;
    /*transition: all 100ms ease-in-out;*/
}

#hovered-component-border {
    outline: 1px solid #0084f6d8 !important;
    display: block;
    position: fixed;
    top: -2px;
    pointer-events: none;
    z-index: 1460;
}

.sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat,
.sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat { opacity: 1; }

.sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat,
.sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat,
.sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat,
.sw-repeat + .sw-repeat + .sw-repeat + .sw-repeat,
.sw-repeat + .sw-repeat + .sw-repeat,
.sw-repeat + .sw-repeat { opacity: .6; }

.component-wrapper {
    position: fixed;
    z-index: 1549; /* Between the two .component-picker-drawer cases but above the menu bar (BaseLayout.ZIndex.AppBar, and above .breadcrumbs-container */
    height: 54px;
    background-color: #0084f6d8;
    padding: 3px;
    margin-left: -1px;
    min-width: 180px;
    box-shadow: 0 -3px 14px -4px #000000a3 !important;
    /*transition: all 100ms ease-in-out;*/
}

.component-wrapper .component-icon {
    bottom: -3px;
    left: 4px;
    position: absolute;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    color: white;
    padding-right: 3px;
}

.component-wrapper .component-name {
    bottom: 3px;
    left: 25px;
    position: absolute;
    width: 100px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11px;
    color: white;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    cursor: default;
}

::-webkit-scrollbar {
    width: 5px !important;
    height: 5px !important;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 2px !important;
    background-color: var(--mud-palette-table-lines) !important;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--mud-palette-action-default) !important;
}

.component-body-container {
    display: block;
    position: relative;
}

.page-body-container {
    display: block;
    position: relative;
    transition: box-shadow 80ms ease-in-out;
}

.page-body-container:after {
    content: "PLACEHOLDER";
    color: transparent;
    font-size: 40px;
    position: absolute;
    width: 100%;
    top: calc(50% - 90px);
    text-align: center;
    transition: color 80ms ease-in-out;
}

.page-body-container:hover {
    box-shadow: var(--mud-elevation-25);
}

.page-body-container:hover:after {
    color: #00000080;
}

.param-menu-container {
    display: block; 
    padding: 6px;
}

.qodee-menu-item {
    cursor: pointer;
    border-left: 0 solid #2d90e4;
    transition: border-left 0.05s ease-out, padding-right 0.05s ease-out;
    padding: 8px 12px;
    border-radius: 8px !important;
}

.qodee-menu-item:hover {
    background: var(--param-hover-color) !important;
}

.qodee-menu-item.new-item:hover {
    background: #00c74e0e !important;
}

.qodee-menu-item .menu-item-icon {
    font-size: 1.25em !important;
    margin-top: 1px;
}

.selected-menu-item {
    background: var(--param-background-color) !important;
    cursor: default;
    border-left-width: 3px;
    border-left-style: solid;
    border-left-color: var(--param-color);
    padding-right: 9px !important;
    transition: border-left-width 0.15s ease-out, padding-right 0.15s ease-out;
    border-top-left-radius: 3px !important;
    border-bottom-left-radius: 3px !important;
}

.selected-menu-item:has(+ .selected-menu-item) {
    border-bottom-left-radius: 0 !important;
}

.selected-menu-item + .selected-menu-item {
    border-top-left-radius: 0 !important;
}

.disabled-menu-item {
    color: var(--mud-palette-action-disabled) !important;
    cursor: default !important;
}

.disabled-menu-item:hover {
    background: transparent !important;
}

.disabled-menu-item .mud-icon-root {
    opacity: 0.5;
}

.property-selector-container {
    display: block !important;
    cursor: default;
    min-width: 250px;
    max-width: 1000px;
    height: 300px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

.property-selector-container.inline-selector {
    border: 1px solid var(--mud-palette-divider);
    border-radius: 10px;
}

.property-selector {
    max-height: 300px;
    min-width: 250px;
    overflow-y: auto !important;
    padding: 5px 2px 5px 5px;
    margin-right: 3px;
}

.property-selector-container.inline-selector .property-selector {
    padding: 5px 2px 5px 5px !important;
}

.entity-property-selector {
    border-left: 1px solid var(--mud-palette-divider) !important;
}

.prevent-select {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* End qod.ee general */


/* Begin workflow editor customization */

.steps-scrollable-container {
    overflow-y: scroll; 
    height: calc(var(--doc-height) - 200px); 
    display: block; 
    padding-right: 10px; 
    margin-right: -15px; 
    padding-left: 4px; 
    margin-left: -4px;
}

.step-card {
    position: relative;
    background-color: var(--step-background-color);
    box-shadow: inset 0 0 0 1px var(--step-color), 0 0 0 1px transparent !important;
    transition: box-shadow 200ms ease-in-out;
}

.step-card-header {
    border-radius: 9px 9px 0 0;
    display: flex;
    padding: 12px 0;
    -webkit-user-drag: none;
}

.selected-step .step-card-header {
    -webkit-user-drag: element;
}

.step-header-buttons {
    visibility: hidden;
}

.step-card:hover .step-header-buttons {
    visibility: visible;
}

.step-card:hover .step-collapse-button,
.output-path-tab:hover .step-collapse-button {
    display: block;
}

.selected-step {
    box-shadow: inset 0 0 0 2px var(--step-color), 0 0 0 4px var(--step-selected-color) !important;
    transition: box-shadow 200ms ease-in-out;
}

.mud-collapse-container.step-indented .output-path-tab {
    transition: margin-top 100ms ease-in;
}

.mud-collapse-container.step-indented.mud-collapse-exiting .output-path-tab,
.mud-collapse-container.step-indented:not(.mud-collapse-entered):not(.mud-collapse-entering) .output-path-tab {
    margin-top: 20px;
    transition: margin-top 100ms ease-in;
}

.selected-step > .mud-card-content > .step-card-header {
    cursor: grab !important;
}

.add-step-button {
    position: absolute !important;
    left: calc(50% - 13px);
    top: calc(100% - 16px);
    visibility: hidden;
    z-index: 100;
}

.add-step-button.add-step-button-permanent {
    visibility: visible;
}

.add-step-button:focus {
    box-shadow: none;
}

.remove-step-button {
    visibility: hidden;
}

.mud-card:hover .add-step-button,
.output-path-tab:hover .add-step-button {
    visibility: visible;
}

.nav-link:hover .add-step-button {
    visibility: visible;
}

.mud-nav-link:not(.editor-container .mud-nav-link) {
    transition: none !important;
    padding: 8px 13px 8px 13px !important;
}

.mud-nav-link.active:not(.editor-container .mud-nav-link.active) {
    border-radius: 10px !important;
    padding: 8px 6px 8px 8px !important;
    margin: 0 5px !important;
    transition: none !important;
    border: none !important;
}

.mud-nav-link.active:hover:not(.editor-container .mud-nav-link.active:hover) {
    padding: 8px 6px 8px 8px !important;
}

.mud-nav-link:hover:not(.editor-container .mud-nav-link:hover) {
    padding: 8px !important;
    border-radius: 10px !important;
    margin: 0 5px !important;
}

.mud-tabs-toolbar-wrapper:not(.editor-container .mud-tabs-toolbar-wrapper) {
    column-gap: 5px;
}

.mud-tab:not(.editor-container .mud-tab) {
    margin: 5px;
}

.mud-tab:hover:not(.editor-container .mud-tab:hover) {
    border-radius: 10px;
}

.mud-tab.mud-tab-active:not(.editor-container .mud-tab.mud-tab-active) {
    background-color: var(--mud-palette-primary-hover);
    border: none !important;
    border-radius: 10px;
}

.mud-card .step-arrow {
    z-index: 1;
    position: absolute;
    left: calc(50% - 12px);
    top: calc(100% - 4px);
    color: var(--mud-palette-table-lines);
    margin: 0 auto;
}

.collapsed-step-preview {
    z-index: 1;
    position: absolute;
    left: 22px;
    top: -8px;
    color: var(--step-color);
}

.collapsed-step-preview svg {
    width: 15px;
}

.collapsed-step-bubble {
    margin-left: 5px;
    margin-right: 5px;
    width: 29px;
    height: 28px;
    padding: 4px;
    border-radius: 10px;
    transform: scale(0%);
    transition: transform 200ms ease-in-out !important;
    box-shadow: 0 0 0 3px var(--step-selected-color);
}

.collapsed-step-bubble.visible-step-bubble {
    transform: scale(100%);
    transition: transform 200ms ease-in-out !important;
}

.output-path-tab {
    position: relative;
    cursor: pointer; 
    text-align: center; 
    box-sizing: border-box;
    background-color: transparent;
    border-radius: 10px;
}

.output-path-tab.path-tab-active {
    box-shadow: inset 0 0 0 1px var(--step-color), 0 0 0 1px transparent;
    background-color: var(--step-background-color);
}

.output-path-tab .step-arrow {
    z-index: 1;
    position: absolute;
    left: calc(50% - 12px);
    top: calc(100% - 4px);
    color: #dfdfdf;
}

.step-collapse-button {
    z-index: 1;
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--step-color);
    display: none;
}

.output-path-tab .step-arrow.before-arrow {
    top: -21px;
}

.output-path-tab a.active {
    background-color: transparent !important;
    color: #212528 !important;
    border: 1px solid #dfdfdf;
}

.output-path-tab.mud-tab-active .mud-icon-root {
    position: absolute;
    display: block;
    top: -4px;
}

.step-indented {
    margin-top: -16px;
    padding-top: 16px;
    margin-bottom: 0;
    padding-bottom: 1px;
}

/* End workflow editor customization */


/* Begin table customization */
.table-background-dark {
    background-color: #89f6731a !important;
}

.table-background-updated {
    background-color: #F6DD6219 !important;
}

.table-background-deleted {
    background-color: #F8757219 !important;
}

.entity-table th .display-on-hover {
    visibility: hidden;
}

.entity-table th:hover .display-on-hover {
    visibility: visible;
}

.entity-table th {
    border: 1px solid transparent;
    transform: translateX(-1px);
    border-right: none;
    border-radius: 0 !important;
}

.entity-table th:hover {
    background-color: var(--mud-palette-table-striped) !important;
    border: 1px solid var(--mud-palette-table-lines);
    transform: translateX(-1px);
    border-right: none;
}

.entity-table th:hover ~ th {
    border-left: 1px solid var(--mud-palette-table-lines);
}

.entity-table th.table-background-dark:hover {
    background-color: #89f67354 !important;
    box-shadow: none;
}

.entity-table th.table-background-updated:hover {
    background-color: #7c6f48 !important;
    box-shadow: none;
}

.entity-table th.table-background-deleted:hover {
    background-color: #c56158 !important;
    box-shadow: none;
}

/* End table customization */


.qodee-card {
    cursor: pointer;
    transition: all 100ms ease-in-out !important;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    border: none !important;
    box-shadow: 0 0 0 1px var(--mud-palette-table-lines) !important;
    min-height: 140px;
    border-radius: 10px;
}

.qodee-card .qodee-card-icon {
    position: absolute;
    right: -45px;
    bottom: -55px;
    z-index: 1;
    font-size: 200px;
    opacity: .12;
    color: #ddd;
}

.qodee-card-mini {
    min-height: 68px !important;
    height: 68px !important;
}

.qodee-card-mini .qodee-card-icon {
    font-size: 140px !important;
    right: -35px !important;
    bottom: -35px !important;
}

.qodee-card .card-group-icon {
    opacity: 0;
    margin-left: -13px;
    transition: all 100ms ease-in-out;
}

.qodee-card .mud-chip:hover .card-group-icon,
.qodee-card:hover:not(:has(.mud-chip:hover)) .page-group-list {
    opacity: 1;
    margin-left: 0;
    border-radius: 10px;
}

.qodee-roundness {
    --smooth-corners: 25;
    mask-image: paint(smooth-corners);
    -webkit-mask-image: paint(smooth-corners);
}

.qodee-card:after {
    transition: opacity ease-in-out 100ms;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.qodee-card.blue-card:after, .qodee-card:after {
    background: linear-gradient(90deg, #28a3ff 0%, #5fbbff 100%);
}

.qodee-card.orange-card:after {
    background: linear-gradient(68.3deg, rgba(236, 54, 110, 1) 0.4%, rgba(245, 177, 97, 1) 100.2%);
}

.qodee-card.mango-card:after {
    background: linear-gradient(135deg, #FCCF31 10%, #F55555 100%);
}

.qodee-card.raspberry-card:after {
    background: linear-gradient(90deg, #2B86C5 0%, #784BA0 50%, #b9287a 100%);
}

.qodee-card.green-card:after {
    background: linear-gradient(90deg, #50cc7f 0%, #f5d100 100%);
}

.qodee-card.green-dark-card:after {
    background: linear-gradient(90deg, #9be15d 0%, #3fd5ac 100%);
}

.qodee-card.green-blue-card:after {
    background: var(--sw-gradient); /* linear-gradient(90deg, #50cc7f 0%, #14c4f8 100%);*/
}

.qodee-card.purple-card:after {
    background: linear-gradient(90deg, #a90aa0 0%, #6713d2 100%);
}

.qodee-card.plum-card:after {
    background: linear-gradient(90deg, rgba(255, 202, 88, 1) 0%, rgba(139, 73, 255, 1) 100.2%);
}

/*  TOOD: Get more beautiful gradients inspiration from here: https://cssgradient.io/gradient-backgrounds/  */

.qodee-card.create-card {
    box-shadow: none !important;
    border: 2px dashed var(--mud-palette-table-lines) !important;
    color: var(--mud-palette-text-secondary);
}

.qodee-card:hover {
    box-shadow: var(--mud-elevation-25) !important;
}

.qodee-card:hover .mud-icon-button-label {
    color: white;
}

.qodee-card.create-card:hover {
    border-color: transparent !important;
}

.qodee-card:not(.create-card):hover {
    color: white;
}

.qodee-card:not(.create-card):hover:after {
    opacity: 1;
}

.qodee-card .mud-card-header,
.qodee-card .mud-card-content,
.qodee-card .mud-card-actions {
    z-index: 2;
    position: relative;
}

.disabled-property {
    display: block !important;
}

.disabled-property .mud-overlay-scrim {
    background-color: var(--mud-palette-surface) !important;
    opacity: 0.5 !important;
}

.transparent-overlay {
    transition: none !important;
}

.transparent-overlay .mud-overlay-scrim {
    opacity: 0 !important;
}

.disabled-property .mud-overlay-content {
    float: right;
}

.disabled-property .mud-overlay-content .mud-icon-root {
    margin-right: -4px;
}

/* Spacing component */
/*
	Spacing Theme Colors: #e0ffcd, #fdffcd, #ffebbb, #ffcab0; 
*/
.margin-container {
    outline: 2px dashed #ffbd40;
    color: #ffbd40;
    position: relative;
    height: 200px;
    width: 200px;
    margin: 5px;
    z-index: 15;
    background-color: #ffebbb;
}

.margin-container.container-hover {
    background-color: #fff4d1;
}

.margin-container.container-hover .padding-container {
    height: 100px;
    width: 100px;
    top: 50px;
    left: 50px;
}

.padding-container {
    outline: 2px solid #63e11b;
    color: #63e11b;
    position: absolute;
    height: 140px;
    width: 140px;
    top: 30px;
    left: 30px;
    z-index: 16;
    background-color: #e0ffcd;
    transition: 0.1s ease-in-out;
}

.padding-container.container-hover {
    background-color: #f0ffe8;
    height: 180px;
    width: 180px;
    top: 10px;
    left: 10px;
}

.element-container {
    width: 76px;
    height: 76px;
    position: relative;
    top: calc(50% - 39px);
    line-height: 60px;
    margin: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    outline: 2px dashed #fda47f;
    color: #fda47f;
    font-weight: bold;
    padding: 5px;
    z-index: 17;
    background-color: #ffcab0;
    text-align: center;
}

.element-container.container-hover {
    background-color: #ffe4d6;
}

.spacing-helper-text {
    position: absolute;
    padding: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    visibility: hidden;
}

.margin-container.container-hover > .spacing-helper-text,
.padding-container.container-hover > .spacing-helper-text {
    visibility: visible;
}

.container-hover > .margin-input::-webkit-inner-spin-button,
.container-hover > .margin-input::-webkit-outer-spin-button {
    opacity: .7;
}

.element-text {
    display: none;
    vertical-align: middle;
    text-transform: uppercase;
    font-size: 12px;
}

.element-container.container-hover > .element-text {
    display: inline;
}

.margin-input {
    width: 48px;
    height: 25px;
    font-size: 14px;
    font-weight: bold;
    outline: none;
    border: none;
    background: transparent;
    position: absolute;
    padding: 3px;
    margin: 5px 0;
    text-align: center;
}

.margin-input::-webkit-inner-spin-button,
.margin-input::-webkit-outer-spin-button {
    opacity: 0;
}

.no-width-button {
    min-width: 0 !important;
}

.margin-bottom {
    bottom: 0;
    left: calc(50% - 18px);
}

.margin-top {
    top: 0;
    left: calc(50% - 18px);
}

.margin-left {
    left: 0;
    top: calc(50% - 13px);
}

.margin-right {
    right: -16px;
    top: calc(50% - 13px);
}

/* End Spacing Container */

/* Visibility Component */

.d-initial {
    /*display: initial !important;*/
}

.d-invisible {
    display: initial;
    visibility: hidden;
}

/* End Visibility Component */

.color-picker-box .mud-input {
    color: transparent !important;
    width: 60px !important;
    height: 35px !important;
    border-radius: 8px !important;
    border: none !important;
    margin-left: 14px !important;
}

.empty-select {
    max-width: 15px !important;
}

.empty-select-popover {
    max-width: 250px !important;
}

.extra-dense-container .mud-input-slot {
    font-size: 0.85rem !important;
    padding: 8px !important;
}


.extra-dense-container .mud-chip {
    font-size: 0.85rem !important;
    padding: 8px !important;
}

.action-security-container {
    display: block;
    position: relative
}

.component-container {
    display: block;
    position: relative;
}

.sw-link {
    cursor: pointer;
    text-decoration: underline;
    color: var(--mud-palette-primary);
}

.files-table .mud-table-container table > thead > tr > th:nth-child(1) {
    width: 80px;
}

.table-selected-row {
    background-color: var(--mud-palette-primary) !important;
}

.table-selected-row > td {
    color: white !important;
}

.table-selected-row > td .mud-input {
    color: white !important;
}

.scrollable-tabs .mud-tabs-panels, .scrollable-dialog-content {
    overflow-y: scroll;
    max-height: calc(var(--doc-height) - 355px);
}

.mud-list-subheader-extended {
    padding: 0 8px !important;
}

.mud-list-subheader-extended .mud-input {
    height: 30px !important;
    padding-right: 8px !important;
    padding-left: -8px !important;
}

.mud-list-subheader-extended .mud-input .mud-input-slot {
    padding-left: 10px !important;
}

.list-item-no-padding, .mud-list-item-extended:has(.list-item-no-padding) {
    padding: 0 !important;
}

.list-item-no-padding .mud-list-item-text {
    padding: 0 !important;
    margin: 0 !important;
}

.component-picker-button {
    width: 89px; 
    height: 110px;
}

.component-picker-button-group-children {
    display: none;
}

.component-picker-button-group {
    transition: background 0s ease-in-out;
    background: transparent;
    display: inline-block;
    width: 89px;
    height: 110px;
    position: relative !important;
    border-radius: 10px;
    margin-bottom: 4px;
    margin-right: 4px;
}

.picker-group-active {
    transition: background .15s ease-in-out;
}

.component-picker-button-group.picker-group-active {
    display: block;
    background: var(--mud-palette-background-grey);
    width: unset;
    height: unset;
    padding: 4px;
    z-index: 10001;
    margin-left: -2px;
    margin-right: 2px;
}

.component-picker-button-group.picker-group-active .component-picker-button:not(:hover) {
    background: transparent;
}

.component-picker-button-group.picker-group-active .component-picker-button-group-children {
    display: inline;
}

.component-picker-variations {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    z-index: 5000;
}

.component-picker-button-text {
    height: 46px; 
    display: flex; 
    align-items: center; 
    font-size: 12px !important; 
    padding: 0 8px 3px 8px; 
    position: absolute; 
    bottom: 0;
}

#ql-editor-container {
    height: calc(100% - 38px);
}

.paragraph-editor-container #editor {
    min-height: 455px;
}

#caret-text-ruler {
    white-space: pre-wrap;
    visibility: hidden;
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.011rem;
    height: 0 !important;
    position: fixed;
    top: 20px;
    left: 20px;
}

/* Reset the content margin when inside the editor */
.editor-container .mud-main-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.editor-container .mud-appbar {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

/*** Reapply content margin taking into account the drawer but specifically for the editor ***/

/* For persistent we only need left and right - no media query as its the same everywhere */
.editor-container .mud-drawer-open-mini-xs-left .mud-main-content,
.editor-container .mud-drawer-open-mini-sm-left .mud-main-content,
.editor-container .mud-drawer-open-mini-md-left .mud-main-content,
.editor-container .mud-drawer-open-mini-lg-left .mud-main-content,
.editor-container .mud-drawer-open-mini-xl-left .mud-main-content,
.editor-container .mud-drawer-open-mini-xxl-left .mud-main-content,
.editor-container .mud-drawer-open-mini-none-left .mud-main-content
{
    margin-left: var(--mud-drawer-width-left) !important;
}

.editor-container .mud-drawer-close-mini-xs-left .mud-main-content,
.editor-container .mud-drawer-close-mini-sm-left .mud-main-content,
.editor-container .mud-drawer-close-mini-md-left .mud-main-content,
.editor-container .mud-drawer-close-mini-lg-left .mud-main-content,
.editor-container .mud-drawer-close-mini-xl-left .mud-main-content,
.editor-container .mud-drawer-close-mini-xxl-left .mud-main-content,
.editor-container .mud-drawer-close-mini-none-left .mud-main-content {
    margin-left: var(--mud-drawer-width-mini-left) !important;
}

.editor-container .mud-drawer-open-mini-xs-right .mud-main-content,
.editor-container .mud-drawer-open-mini-sm-right .mud-main-content,
.editor-container .mud-drawer-open-mini-md-right .mud-main-content,
.editor-container .mud-drawer-open-mini-lg-right .mud-main-content,
.editor-container .mud-drawer-open-mini-xl-right .mud-main-content,
.editor-container .mud-drawer-open-mini-xxl-right .mud-main-content,
.editor-container .mud-drawer-open-mini-none-right .mud-main-content {
    margin-right: var(--mud-drawer-width-right) !important;
}

.editor-container .mud-drawer-close-mini-xs-right .mud-main-content,
.editor-container .mud-drawer-close-mini-sm-right .mud-main-content,
.editor-container .mud-drawer-close-mini-md-right .mud-main-content,
.editor-container .mud-drawer-close-mini-lg-right .mud-main-content,
.editor-container .mud-drawer-close-mini-xl-right .mud-main-content,
.editor-container .mud-drawer-close-mini-xxl-right .mud-main-content,
.editor-container .mud-drawer-close-mini-none-right .mud-main-content {
    margin-right: var(--mud-drawer-width-mini-right) !important;
}


/* For persistent we only need left and right - no media query as its the same everywhere */
.editor-container .mud-drawer-open-persistent-left:not(.mud-drawer-open-persistent-right) .mud-main-content {
    margin-left: var(--mud-drawer-width-left) !important;
}

.editor-container .mud-drawer-open-persistent-right:not(.mud-drawer-open-persistent-left) .mud-main-content {
    margin-right: var(--mud-drawer-width-right) !important;
}

/* For responsive we need left and right with all media queries as it has a breakpoint */
.editor-container .mud-drawer-open-responsive-xs-left .mud-main-content,
.editor-container .mud-drawer-open-responsive-sm-left .mud-main-content,
.editor-container .mud-drawer-open-responsive-md-left .mud-main-content,
.editor-container .mud-drawer-open-responsive-lg-left .mud-main-content,
.editor-container .mud-drawer-open-responsive-xl-left .mud-main-content,
.editor-container .mud-drawer-open-responsive-xxl-left .mud-main-content
{
    margin-left: var(--mud-drawer-width-left) !important;
}

.editor-container .mud-drawer-open-responsive-xs-right .mud-main-content,
.editor-container .mud-drawer-open-responsive-sm-right .mud-main-content,
.editor-container .mud-drawer-open-responsive-md-right .mud-main-content,
.editor-container .mud-drawer-open-responsive-lg-right .mud-main-content,
.editor-container .mud-drawer-open-responsive-xl-right .mud-main-content,
.editor-container .mud-drawer-open-responsive-xxl-right .mud-main-content
{
    margin-right: var(--mud-drawer-width-right) !important;
}

.sw-tab
{
    height: var(--tab-height);
    overflow-y: auto;
}

.icon-badge-disabled
{
    opacity: 0.7;
    cursor: default !important;
}

.markdown-reset p { margin: 0.1em 0 0.05em 0; }
.markdown-reset h1 { margin: 0.5em 0 0.2em 0; }
.markdown-reset h2 { margin: 0.6em 0 0.3em 0; }
.markdown-reset h3 { margin: 0.7em 0 0.4em 0; }
.markdown-reset h4 { margin: 1em 0 0.5em 0; }
.markdown-reset h5 { margin: 1.2em 0 0.6em 0; }
.markdown-reset h6 { margin: 1.4em 0 0.7em 0; }

.markdown-reset a {
    text-decoration: underline !important;
}

/* TOUR Classes */

.step-narrow {
    max-width: 280px !important;
    margin-left: 14px !important;
}