
/* smart-window */

.smart-window {
    position: absolute;
    top: calc(50% - var(--smart-window-default-height) / 2);
    left: calc(50% - var(--smart-window-default-width) / 2);
    width: var(--smart-window-default-width);
    height: var(--smart-window-default-height);
    min-width: var(--smart-window-min-width);
    min-height: var(--smart-window-header-height);
    box-shadow: var(--smart-elevation-24);
    z-index: var(--smart-editor-drop-down-z-index);
    display: block;
    overflow: hidden;
}

    .smart-window > .smart-container,
    :host(smart-window) > .smart-container {
        display: flex;
        flex-direction: column;
        touch-action: none;
    }

    .smart-window:focus,
    .smart-window[focused] {
        outline: none;
        border-color: var(--smart-primary);
        box-shadow: var(--smart-elevation-24);
        z-index: var(--smart-editor-drop-down-z-index);
    }

    .smart-window[ontop] {
        z-index: calc(1 + var(--smart-editor-drop-down-z-index));
    }

    .smart-window:not([animation='none']).no-transition,
    .smart-window:not([animation='none']).smart-visibility-hidden.no-transition {
        transition: none;
    }

    .smart-window:not([animation='none']) {
        transition: width 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), height 0.25s cubic-bezier(0.4, 0.0, 0.2, 1), top 0.2s cubic-bezier(0.4, 0.0, 0.6, 1), left 0.2s cubic-bezier(0.4, 0.0, 0.6, 1), transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), visibility 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), min-height 0.25s cubic-bezier(0.4, 0.0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
        transform: scale(1);
    }

        .smart-window:not([animation='none']).smart-visibility-hidden,
        .smart-window[maximized]:not([animation='none']).smart-visibility-hidden {
            transition: visibility 0.2s cubic-bezier(0.4, 0.0, 0.6, 1), height 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), top 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), left 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0.0, 0.6, 1), min-height 0.25s cubic-bezier(0.4, 0.0, 0.2, 1), min-width 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
            transform: scale(0);
        }

    .smart-window.smart-visibility-hidden,
    .smart-window[maximized].smart-visibility-hidden {
        transform: scale(0);
    }

    .smart-window[collapsed],
    .smart-window[maximized][collapsed] {
        height: var(--smart-window-header-height);
    }

smart-window.smart-window[collapsed][header-position="left"],
smart-window.smart-window[collapsed][header-position="right"],
smart-window.smart-window[maximized][collapsed][header-position="right"],
smart-window.smart-window[maximized][collapsed][header-position="left"],
smart-tabs-window.smart-window[collapsed][header-position="left"],
smart-tabs-window.smart-window[collapsed][header-position="right"],
smart-tabs-window.smart-window[maximized][collapsed][header-position="right"],
smart-tabs-window.smart-window[maximized][collapsed][header-position="left"] {
    width: var(--smart-window-header-height);
    min-width: initial;
    height: var(--smart-window-default-height);
}

smart-alert-window.smart-window[collapsed][header-position="left"],
smart-alert-window.smart-window[collapsed][header-position="right"],
smart-alert-window.smart-window[maximized][collapsed][header-position="right"],
smart-alert-window.smart-window[maximized][collapsed][header-position="left"],
smart-dialog-window.smart-window[collapsed][header-position="left"],
smart-dialog-window.smart-window[collapsed][header-position="right"],
smart-dialog-window.smart-window[maximized][collapsed][header-position="right"],
smart-dialog-window.smart-window[maximized][collapsed][header-position="left"] {
    height: var(--smart-window-default-height);
}

smart-progress-window.smart-window[collapsed][header-position="left"],
smart-progress-window.smart-window[collapsed][header-position="right"],
smart-progress-window.smart-window[maximized][collapsed][header-position="right"],
smart-progress-window.smart-window[maximized][collapsed][header-position="left"] {
    height: var(--smart-window-default-height);
}

smart-wait-window.smart-window[collapsed][header-position="left"],
smart-wait-window.smart-window[collapsed][header-position="right"],
smart-wait-window.smart-window[maximized][collapsed][header-position="right"],
smart-wait-window.smart-window[maximized][collapsed][header-position="left"] {
    height: var(--smart-window-default-height);
}

smart-prompt-window.smart-window[collapsed][header-position="left"],
smart-prompt-window.smart-window[collapsed][header-position="right"],
smart-prompt-window.smart-window[maximized][collapsed][header-position="right"],
smart-prompt-window.smart-window[maximized][collapsed][header-position="left"] {
    height: var(--smart-window-default-height);
}

smart-multiline-prompt-window.smart-window[collapsed][header-position="left"],
smart-multiline-prompt-window.smart-window[collapsed][header-position="right"],
smart-multiline-prompt-window.smart-window[maximized][collapsed][header-position="right"],
smart-multiline-prompt-window.smart-window[maximized][collapsed][header-position="left"] {
    height: var(--smart-window-default-height);
}

.smart-window[maximized]:not([animation='none']) {
    transition: width 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), height 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), top 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), left 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), animation 0.2s cubic-bezier(0.4, 0.0, 0.6);
}

.smart-window[minimized] {
    max-width: var(--smart-window-min-width);
    min-height: var(--smart-window-header-height);
    cursor: default;
}

    .smart-window[minimized] > .smart-container > .smart-content,
    :host(smart-window[minimized]) > .smart-container > .smart-content {
        padding: initial;
    }

    .smart-window[minimized] > .smart-container > .smart-header-section {
        cursor: default;
    }

    .smart-window[minimized] .smart-minimize-button:after {
        content: var(--smart-icon-arrow-up-alt);
        transform: rotate(-45deg);
        margin-top: -1px;
    }

.smart-window > .smart-container > .smart-header-section,
:host(smart-window) > .smart-container > .smart-header-section {
    display: flex;
    justify-content: space-between;
    padding-bottom: initial;
    cursor: move;
    overflow: hidden;
    align-items: center;
}

smart-wait-window.smart-window > .smart-container > .smart-header-section {
    cursor: default;
}

.smart-window[maximized] > .smart-container > .smart-header-section {
    cursor: initial;
}

.smart-window[pinned] > .smart-container > .smart-header-section {
    cursor: default;
}

.smart-window > .smart-container > .smart-header-section,
.smart-window > .smart-container > .smart-footer,
:host(smart-window) > .smart-container > .smart-header-section,
:host(smart-window) > .smart-container > .smart-footer {
    width: 100%;
    height: var(--smart-window-footer-height);
    min-height: var(--smart-window-footer-height);
    padding: var(--smart-window-header-footer-padding);
    font-family: inherit;
    font-size: inherit;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    background-color: var(--smart-surface);
    border-color: var(--smart-border);
    color: var(--smart-surface-color);
    line-height: initial;
}

    .smart-window > .smart-container > .smart-footer button {
    }

.smart-window > .smart-container > .smart-header-section,
:host(smart-window) > .smart-container > .smart-header-section {
    height: var(--smart-window-header-height);
    min-height: var(--smart-window-header-height);
}

smart-progress-window.smart-window > .smart-container > .smart-footer,
smart-wait-window.smart-window > .smart-container > .smart-content,
smart-alert-window.smart-window > .smart-container > .smart-content,
smart-prompt-window.smart-window > .smart-container > .smart-content,
smart-tabs-window.smart-window > .smart-container > .smart-content,
smart-multiline-prompt-window.smart-window > .smart-container > .smart-content {
    position: relative;
    background-color: initial;
    display: flex;
    flex-direction: column;
}

smart-dialog-window.smart-window > .smart-container > .smart-footer,
smart-progress-window.smart-window > .smart-container > .smart-footer,
smart-wait-window.smart-window > .smart-container > .smart-footer,
smart-alert-window.smart-window > .smart-container > .smart-footer,
smart-prompt-window.smart-window > .smart-container > .smart-footer,
smart-tabs-window.smart-window > .smart-container > .smart-footer,
smart-multiline-prompt-window.smart-window > .smart-container > .smart-footer {
    padding: 6.5px;
    display: flex;
    justify-content: center;
}

.smart-window > .smart-container > .smart-footer,
:host(smart-window) > .smart-container > .smart-footer {
    height: var(--smart-window-footer-height);
}

    .smart-window > .smart-container > .smart-footer:empty,
    :host(smart-window) > .smart-container > .smart-footer:empty {
        display: none;
    }

.smart-window .smart-header-section > .smart-buttons-container smart-button {
    height: 24px;
    width: 24px;
    padding: 0px;
    min-height: 0;
    background: transparent;
    color: inherit;
    border: none;
}

    .smart-window .smart-header-section > .smart-buttons-container smart-button button {
        padding: 0px;
        min-height: 0;
    }

.smart-window .smart-header-section > .smart-buttons-container button:active,
.smart-window .smart-header-section > .smart-buttons-container button.active {
    border-radius: 2px;
    background-color: initial;
}

.smart-window > .smart-container > .smart-content,
:host(smart-window) > .smart-container > .smart-content {
    width: 100%;
    height: calc(100% - var(--smart-window-header-height));
    display: flex;
    align-items: center;
    overflow-y: auto;
    padding: 10px;
    background: var(--smart-background);
}

/* There's an issue with display:flex/grid and align-items: center */
@media not all and (min-resolution:.001dpcm) {
    @media {
        .smart-window > .smart-container > .smart-content {
            align-content: start;
        }
    }
}

smart-tabs-window.smart-window > .smart-container > .smart-content,
:host(smart-tabs-window.smart-window) > .smart-container > .smart-content {
    width: 100%;
    height: calc(100% - var(--smart-window-header-height));
    overflow: hidden;
    padding: 0;
    background-color: var(--smart-background);
}

smart-tabs-window.smart-window[dragged] > .smart-container > .smart-header-section,
smart-tabs-window.smart-window[focus] > .smart-container > .smart-header-section,
smart-tabs-window.smart-window[active] > .smart-container > .smart-header-section {
    background-color: var(--smart-primary);
    color: var(--smart-primary-color);
}

smart-tabs-window.smart-window smart-tabs,
:host(smart-tabs-window.smart-window) smart-tabs {
    width: 100%;
    height: 250px;
    min-height: 100%;
    border: initial;
    outline: none;
    padding: 0;
}

    smart-tabs-window.smart-window smart-tabs .smart-tabs-header-items {
        /*width: calc(100% - var(--smart-tabs-header-controls-size));*/
        width: 100%;
    }

    smart-tabs-window.smart-window smart-tabs[vertical] .smart-tabs-header-items {
        width: auto;
    }

    smart-tabs-window.smart-window smart-tabs[vertical] .smart-tabs-header-items {
        height: 100%;
    }

    smart-tabs-window.smart-window smart-tabs .smart-tabs-header-items {
        width: 100%;
    }

smart-tabs-window.smart-window[auto-hide] .smart-tabs-content-section,
smart-tabs-window.smart-window[auto-hide] > .smart-container > .smart-header-section {
    display: none;
}

smart-tabs-window.smart-window[auto-hide] .smart-tabs {
    /*min-width: 30px;*/
    /*min-height: 30px;*/
    min-width: 0;
    min-height: 0;
}

smart-tabs-window.smart-window[auto-hide],
smart-tabs-window.smart-window[auto-hide] > .smart-container > .smart-content {
    overflow: visible;
}

    smart-tabs-window.smart-window[auto-hide] .smart-window {
        width: auto;
        height: auto;
    }

smart-tabs-window.smart-window[dragged] .smart-tabs-header-section,
smart-tabs-window.smart-window[dragged] .smart-tab-label-container {
    cursor: move;
}

smart-tabs-window.smart-window .smart-tabs-content-section {
    margin: initial;
    border: none;
}

smart-tabs-window.smart-window > .smart-container > .smart-header-section.smart-hidden,
smart-tabs-window.smart-window > .smart-container > .smart-footer.smart-hidden {
    display: none;
}

smart-tabs-window.smart-window[auto-hide],
smart-tabs-window.smart-window[auto-hide] smart-tabs {
    height: auto;
    min-height: 0;
}

    smart-tabs-window.smart-window[auto-hide][tab-position="left"],
    smart-tabs-window.smart-window[auto-hide][tab-position="right"],
    smart-tabs-window.smart-window[auto-hide][tab-text-orientation="horizontal"][tab-position="left"],
    smart-tabs-window.smart-window[auto-hide][tab-text-orientation="horizontal"][tab-position="right"],
    smart-tabs-window.smart-window[auto-hide][tab-position="left"] smart-tabs,
    smart-tabs-window.smart-window[auto-hide][tab-position="right"] smart-tabs,
    smart-tabs-window.smart-window[auto-hide][tab-text-orientation="horizontal"][tab-position="left"] smart-tabs,
    smart-tabs-window.smart-window[auto-hide][tab-text-orientation="horizontal"][tab-position="right"] smart-tab,
    smart-tabs-window.smart-window[auto-hide][tab-text-orientation="vertical"][tab-position="left"],
    smart-tabs-window.smart-window[auto-hide][tab-text-orientation="vertical"][tab-position="right"],
    smart-tabs-window.smart-window[auto-hide][tab-text-orientation="vertical"][tab-position="left"] smart-tabs,
    smart-tabs-window.smart-window[auto-hide][tab-text-orientation="vertical"][tab-position="right"] smart-tabs {
        width: auto;
        min-width: 0;
    }

smart-tabs-window.smart-window[tab-position="hidden"] > .smart-container > .smart-content {
    height: 100%;
}

smart-tabs-window.smart-window smart-tab-item {
    padding: 5px;
}

smart-tabs-window.smart-window smart-tabs[vertical] .smart-tabs-header-items {
    height: 100%;
}

smart-prompt-window.smart-window > .smart-container > .smart-content,
smart-multiline-prompt-window.smart-window > .smart-container > .smart-content {
    flex-direction: column-reverse;
    align-items: flex-start;
}

.smart-window[footer-template] > .smart-container > .smart-content {
    height: calc(100% - var(--smart-window-header-height) - var(--smart-window-footer-height));
}

.smart-window[footer-template="null"] > .smart-container > .smart-content {
    height: calc(100% - var(--smart-window-header-height));
}

.smart-window .smart-header-section > .smart-buttons-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .smart-window .smart-header-section > .smart-buttons-container smart-button {
        position: relative;
        margin-left: 1px;
        margin-right: 1px;
        cursor: pointer;
    }

.smart-window[disabled] .smart-header-section > .smart-buttons-container button {
    cursor: initial;
}

.smart-window .smart-header-section > .smart-buttons-container smart-button button.hover {
    color: initial;
    background-color: initial;
}

.smart-window .smart-header-section > .smart-buttons-container .smart-button {
    border: initial;
}

.smart-window .smart-header-section > .smart-buttons-container smart-button:after {
    position: absolute;
    top: 0;
    font-family: var(--smart-font-family-icon);
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.smart-window .smart-header-section > .smart-buttons-container smart-button:first-of-type {
    margin-left: initial;
}

.smart-window .smart-header-section > .smart-buttons-container smart-button:last-of-type {
    margin-right: initial;
}

.smart-window .smart-header-section .smart-close-button:after {
    content: var(--smart-icon-close);
}

.smart-window .smart-header-section .smart-collapse-button:after {
    content: var(--smart-icon-arrow-down);
}

.smart-window[header-position="left"] .smart-header-section .smart-collapse-button:after {
    transform: rotate(275deg) translateY(1px);
}

.smart-window[header-position="left"][collapsed] .smart-header-section .smart-collapse-button:after {
    transform: rotate(90deg) translateY(1px);
}

.smart-window[header-position="right"] .smart-header-section .smart-collapse-button:after {
    transform: rotate(90deg) translateY(1px);
}

.smart-window[header-position="right"][collapsed] .smart-header-section .smart-collapse-button:after {
    transform: rotate(275deg) translateY(1px);
}

.smart-window:not([animation='none']) .smart-header-section .smart-collapse-button:after {
    transition: transform 0.15s linear;
}

.smart-window[collapsed] .smart-header-section .smart-collapse-button:after {
    transform: rotate(180deg) translateY(1px);
}

.smart-window .smart-header-section .smart-maximize-button:after {
    content: var(--smart-icon-window-maximize);
}

.smart-window[maximized] .smart-header-section .smart-maximize-button:after {
    content: var(--smart-icon-window-restore);
    font-size: 100%;
}

.smart-window .smart-header-section .smart-pin-button:after {
    content: var(--smart-icon-window-pin);
}

.smart-window[pinned] .smart-header-section .smart-pin-button:after {
    content: var(--smart-icon-window-pin);
    transform: rotate(-45deg);
}

.smart-window:not([animation='none']) .smart-header-section .smart-pin-button:after {
    transition: transform 0.15s linear;
}

.smart-window .smart-header-section .smart-minimize-button:after {
    content: var(--smart-icon-window-minimize);
}

.smart-window[active] > .smart-container > .smart-header-section {
    background-color: var(--smart-background-active);
    color: var(--smart-background-color-active);
}

.smart-window[dragged] > .smart-container > .smart-header-section,
.smart-window[focus] > .smart-container > .smart-header-section {
    background-color: var(--smart-primary);
    color: var(--smart-primary-color);
}

.smart-window[dragged] {
    opacity: 0.5;
    pointer-events: none; /* Need a way to detect what's under the header while dragging. That's why pointer-events is used ! */
    z-index: calc(1 + var(--smart-editor-drop-down-z-index));
    transition: none;
}

    .smart-window[dragged] > .smart-container,
    .smart-window[resized] > .smart-container {
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        -moz-user-select: none;
    }

.smart-window > .smart-container.smart-window-resizing-left,
.smart-window > .smart-container.smart-window-resizing-right,
.smart-window > .smart-container.smart-window-resizing-left > .smart-header-section,
.smart-window > .smart-container.smart-window-resizing-right > .smart-header-section {
    cursor: e-resize;
}

.smart-window > .smart-container.smart-window-resizing-top,
.smart-window > .smart-container.smart-window-resizing-bottom,
.smart-window > .smart-container.smart-window-resizing-top > .smart-header-section,
.smart-window > .smart-container.smart-window-resizing-bottom > .smart-header-section {
    cursor: ns-resize;
}


.smart-window > .smart-container.smart-window-resizing-top-left,
.smart-window > .smart-container.smart-window-resizing-bottom-right,
.smart-window > .smart-container.smart-window-resizing-top-left > .smart-header-section,
.smart-window > .smart-container.smart-window-resizing-bottom-right > .smart-header-section {
    cursor: se-resize;
}

.smart-window > .smart-container.smart-window-resizing-top-right,
.smart-window > .smart-container.smart-window-resizing-bottom-left,
.smart-window > .smart-container.smart-window-resizing-top-right > .smart-header-section,
.smart-window > .smart-container.smart-window-resizing-bottom-left > .smart-header-section {
    cursor: sw-resize;
}

.smart-window[collapsed] > .smart-container.smart-window-resizing-top-left,
.smart-window[collapsed] > .smart-container.smart-window-resizing-top-right,
.smart-window[collapsed] > .smart-container.smart-window-resizing-bottom-left,
.smart-window[collapsed] > .smart-container.smart-window-resizing-bottom-right,
.smart-window[collapsed] > .smart-container.smart-window-resizing-top-left > .smart-header-section,
.smart-window[collapsed] > .smart-container.smart-window-resizing-top-right > .smart-header-section,
.smart-window[collapsed] > .smart-container.smart-window-resizing-bottom-left > .smart-header-section,
.smart-window[collapsed] > .smart-container.smart-window-resizing-bottom-right > .smart-header-section {
    cursor: initial;
}

.smart-window[resize-indicator] > .smart-container:before {
    width: 10px;
    height: 10px;
    font-family: var(--smart-font-family-icon);
    content: var(--smart-icon-resize-full);
    position: absolute;
    top: calc(100% - 15px);
    left: calc(100% - 9px);
    transform: rotate(-45deg) scaleX(2.25);
    font-size: 10px;
}

.smart-window[resize-indicator][resize-mode="top"] > .smart-container:before,
.smart-window[resize-indicator][resize-mode="left"] > .smart-container:before {
    top: 0;
    left: 5px;
}

.smart-window[resize-indicator] > .smart-container:after {
    width: 10px;
    height: 10px;
    font-family: var(--smart-font-family-icon);
    content: var(--smart-icon-resize-full);
    position: absolute;
    top: calc(100% - 11px);
    left: calc(100% - 9px);
    transform: rotate(-45deg);
    font-size: 10px;
}

.smart-window[resize-indicator][resize-mode="top"] > .smart-container:after,
.smart-window[resize-indicator][resize-mode="left"] > .smart-container:after {
    top: 4px;
    left: 5px;
}

.smart-window[resize-indicator][collapsed] > .smart-container:before,
.smart-window[resize-indicator][collapsed] > .smart-container:after {
    content: '';
}

.smart-window[header-position="none"] > .smart-container > .smart-header-section,
.smart-window[footer-position="none"] > .smart-container > .smart-footer {
    display: none;
}

.smart-window[header-position="none"] > .smart-container > .smart-content {
    height: 100%;
}

.smart-window[header-position="left"].smart-window-snapped-left,
.smart-window[header-position="right"].smart-window-snapped-left,
.smart-window[header-position="left"].smart-window-snapped-right,
.smart-window[header-position="right"].smart-window-snapped-right,
.smart-window.smart-window-snapped-left,
.smart-window.smart-window-snapped-right {
    height: 100%;
    width: 50%;
}

.smart-window[collapsed].smart-window-snapped-left,
.smart-window[collapsed].smart-window-snapped-right,
.smart-window[collapsed].smart-window-snapped-top,
.smart-window[collapsed][header-position="top"].smart-window-snapped-left,
.smart-window[collapsed][header-position="bottom"].smart-window-snapped-left,
.smart-window[collapsed][header-position="top"].smart-window-snapped-right,
.smart-window[collapsed][header-position="bottom"].smart-window-snapped-right,
.smart-window[collapsed][header-position="top"].smart-window-snapped-top,
.smart-window[collapsed][header-position="bottom"].smart-window-snapped-top {
    height: var(--smart-window-header-height);
}

.smart-window[collapsed][header-position="left"].smart-window-snapped-left,
.smart-window[collapsed][header-position="right"].smart-window-snapped-left,
.smart-window[collapsed][header-position="left"].smart-window-snapped-right,
.smart-window[collapsed][header-position="right"].smart-window-snapped-right,
.smart-window[collapsed][header-position="left"].smart-window-snapped-top,
.smart-window[collapsed][header-position="right"].smart-window-snapped-top {
    height: 100%;
    width: var(--smart-window-header-height);
    min-width: initial;
}

.smart-window.smart-window-snapped-top,
.smart-window[header-position="left"].smart-window-snapped-top,
.smart-window[header-position="right"].smart-window-snapped-top {
    height: 100%;
    width: 100%;
}

.smart-window.smart-window-snapped-left,
.smart-window.smart-window-snapped-right,
.smart-window.smart-window-snapped-top {
    z-index: 9999;
    box-shadow: none;
    border: var(--smart-border-width) solid var(--smart-border);
}

.smart-window[ontop].smart-window-snapped-left,
.smart-window[ontop].smart-window-snapped-right,
.smart-window[ontop].smart-window-snapped-top {
    z-index: 10000;
    box-shadow: none;
}

.smart-window > .smart-container > .smart-content {
    flex-direction: column;
}

.smart-window[header-position="bottom"] > .smart-container {
    flex-direction: column-reverse;
}

.smart-window[header-position="left"] > .smart-container {
    flex-direction: row;
}

    .smart-window[header-position="left"] > .smart-container > .smart-header-section,
    .smart-window[header-position="right"] > .smart-container > .smart-header-section,
    .smart-window[header-position="left"] > .smart-container > .smart-footer,
    .smart-window[header-position="right"] > .smart-container > .smart-footer {
        width: var(--smart-window-header-height);
        min-width: var(--smart-window-header-height);
        height: 100%;
    }

.smart-window[header-position="right"] > .smart-container {
    flex-direction: row-reverse;
}

.smart-window[header-position="left"] .smart-header-section,
.smart-window[header-position="right"] .smart-header-section {
    flex-direction: column;
}

    .smart-window[header-position="left"] .smart-header-section > .smart-header,
    .smart-window[header-position="right"] .smart-header-section > .smart-header {
        writing-mode: vertical-lr;
    }

.smart-window[header-position="left"] .smart-buttons-container,
.smart-window[header-position="right"] .smart-buttons-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: initial;
}

    .smart-window[header-position="left"] .smart-buttons-container smart-button,
    .smart-window[header-position="right"] .smart-buttons-container smart-button {
        margin-left: initial;
        margin-top: 1px;
    }

        .smart-window[header-position="left"] .smart-buttons-container smart-button:first-of-type,
        .smart-window[header-position="right"] .smart-buttons-container smart-button:first-of-type {
            margin-top: initial;
        }

.smart-window[header-position="left"],
.smart-window[header-position="right"] {
    min-width: var(--smart-window-header-height);
    min-height: var(--smart-window-min-width);
}

    .smart-window[header-position="left"][minimized],
    .smart-window[header-position="right"][minimized] {
        max-width: var(--smart-window-header-height);
    }

.smart-window[collapsed][header-position="left"] > .smart-container > .smart-header-section,
.smart-window[collapsed][header-position="left"] > .smart-container > .smart-footer,
.smart-window[maximized][collapsed][header-position="left"] > .smart-container > .smart-header-section,
.smart-window[maximized][collapsed][header-position="left"] > .smart-container > .smart-footer,
.smart-window[collapsed][header-position="right"] > .smart-container > .smart-header-section,
.smart-window[collapsed][header-position="right"] > .smart-container > .smart-footer,
.smart-window[maximized][collapsed][header-position="right"] > .smart-container > .smart-header-section,
.smart-window[maximized][collapsed][header-position="right"] > .smart-container > .smart-footer {
    min-width: var(--smart-window-header-height);
}

.smart-window[header-position="left"] > .smart-container > .smart-content,
.smart-window[header-position="right"] > .smart-container > .smart-content {
    height: 100%;
}

.smart-modal {
    position: absolute;
    opacity: 0.5;
    background-color: var(--smart-disabled);
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100%;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(0);
    }
}

@keyframes scaleInRight {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* smart-dialog-window, smart-alert-window */

smart-dialog-window.smart-window,
smart-alert-window.smart-window {
    width: var(--smart-window-default-width);
    height: var(--smart-window-default-height);
    top: calc(50% - var(--smart-window-default-height) / 2);
    left: calc(50% - var(--smart-window-default-width) / 2);
}

    smart-dialog-window.smart-window > .smart-container > .smart-footer smart-button,
    smart-alert-window.smart-window > .smart-container > .smart-footer smart-button,
    smart-prompt-window.smart-window > .smart-container > .smart-footer smart-button,
    smart-multiline-prompt-window.smart-window > .smart-container > .smart-footer smart-button {
        width: 100px;
        height: 100%;
    }

        smart-dialog-window.smart-window > .smart-container > .smart-footer smart-button:first-child,
        smart-alert-window.smart-window > .smart-container > .smart-footer smart-button:first-child,
        smart-prompt-window.smart-window > .smart-container > .smart-footer smart-button:first-child,
        smart-multiline-prompt-window.smart-window > .smart-container > .smart-footer smart-button:first-child {
            margin-right: 10px;
        }

    smart-alert-window.smart-window .smart-cancel-button {
        display: none;
    }

/* smart-progress-window */

smart-progress-window.smart-window {
    width: var(--smart-window-default-width);
    height: var(--smart-window-default-height);
    top: calc(50% - var(--smart-window-default-height) / 2);
    left: calc(50% - var(--smart-window-default-width) / 2);
}

    smart-progress-window.smart-window smart-progress-bar .smart-value {
        border: initial;
    }

    smart-progress-window.smart-window smart-progress-bar.smart-visibility-hidden {
        transition: none;
    }

    smart-progress-window.smart-window > .smart-container > .smart-content {
        user-select: none;
        -webkit-user-select: none;
        -ms-user-select: none;
        -moz-user-select: none;
    }

    smart-progress-window.smart-window.smart-visibility-hidden smart-progress-bar {
        transform: scale(0);
    }

    smart-progress-window.smart-window > .smart-container > .smart-footer smart-progress-bar {
        width: 100%;
        height: 100%;
        box-shadow: initial;
        background-color: var(--smart-surface);
        transition: opacity 0.25s ease-in, visibility 0.25s cubic-bezier(0.0, 0.0, 0.2, 1);
    }

        smart-progress-window.smart-window > .smart-container > .smart-footer smart-progress-bar.smart-visibility-hidden {
            opacity: 0.5;
            transition: opacity 0.25s ease-out, visibility 0.25s cubic-bezier(0.0, 0.0, 0.2, 1);
        }

    smart-progress-window.smart-window > .smart-container > .smart-footer smart-button {
        position: absolute;
        width: calc(100% - 13px);
        height: calc(100% - 13px);
        top: 6.5px;
        left: 6.5px;
        /*box-shadow: initial;*/
        background-color: rgba(224, 224, 224, 0.5);
    }

    smart-progress-window.smart-window:not([animation='none']) > .smart-container > .smart-footer smart-button {
        transition: top 0.25s cubic-bezier(0.0, 0.0, 0.2, 1), visibility 0.25s cubic-bezier(0.0, 0.0, 0.2, 1);
    }

    smart-progress-window.smart-window > .smart-container > .smart-footer smart-button.smart-visibility-hidden {
        top: 100%;
    }

    smart-progress-window.smart-window:not([animation='none']) > .smart-container > .smart-footer smart-button.smart-visibility-hidden {
        transition: top 0.25s cubic-bezier(0.0, 0.0, 0.2, 1), visibility 0.25s cubic-bezier(0.0, 0.0, 0.2, 1);
    }

    smart-progress-window.smart-window > .smart-container > .smart-footer smart-progress-bar > .smart-container {
        border: initial;
    }

/* smart-wait-window */

smart-wait-window.smart-window {
    width: var(--smart-window-default-width);
    height: var(--smart-window-default-height);
    top: calc(50% - var(--smart-window-default-height) / 2);
    left: calc(50% - var(--smart-window-default-width) / 2);
}

    smart-wait-window.smart-window > .smart-container > .smart-content smart-progress-bar {
        width: 100%;
        height: 75%;
    }

/* smart-prompt-window */

smart-prompt-window.smart-window {
    width: var(--smart-window-default-width);
    height: var(--smart-window-default-height);
    top: calc(50% - var(--smart-window-default-height) / 2);
    left: calc(50% - var(--smart-window-default-width) / 2);
}

    smart-prompt-window.smart-window smart-text-box,
    smart-multiline-prompt-window.smart-window smart-multiline-text-box {
        width: 100%;
        margin-top: 5px;
    }

/* smart-multiline-prompt-window */

smart-multiline-prompt-window.smart-window {
    width: var(--smart-window-default-width);
    height: var(--smart-window-default-height);
    top: calc(50% - var(--smart-window-default-height) / 2);
    left: calc(50% - var(--smart-window-default-width) / 2);
}

.smart-window-resize-feedback {
    position: absolute;
    z-index: 10000;
    pointer-events: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    border: 2.5px solid black;
    box-sizing: border-box;
}

smart-docking-layout .smart-window-resize-feedback {
    border: 2.5px solid lightgray;
}

/* Snapping highlighter */

.smart-window-snap-right-feedback,
.smart-window-snap-left-feedback,
.smart-window-snap-top-feedback,
.smart-window-snap-bottom-feedback {
    position: absolute;
    height: calc(100% - 10px);
    top: 5px;
    bottom: 5px;
    /*background-color: #fff;*/
    opacity: 0.65;
    box-shadow: 0 0 1px 1px #8a8a8a;
    border-radius: 2px;
    transition: all 0.05s cubic-bezier(0.4, 0.0, 0.6, 1);
    animation: scaleIn 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: scale(1);
    pointer-events: none;
}

    .smart-window-snap-right-feedback.smart-visibility-hidden,
    .smart-window-snap-left-feedback.smart-visibility-hidden,
    .smart-window-snap-top-feedback.smart-visibility-hidden,
    .smart-window-snap-bottom-feedback.smart-visibility-hidden {
        transition: animation 0.2s cubic-bezier(0.4, 0.0, 0.6, 1), visibility 0.2s cubic-bezier(0.4, 0.0, 0.6, 1), top 0.2s cubic-bezier(0.4, 0.0, 0.2, 1), left 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
        animation: scaleOut 0.2s cubic-bezier(0.4, 0.0, 0.6, 1);
        transform: scale(0);
    }

.smart-window-snap-right-feedback {
    width: 50%;
    left: calc(50% - 5px);
    transform-origin: right;
}

.smart-window-snap-left-feedback {
    width: 50%;
    left: 5px;
    transform-origin: left;
}

.smart-window-snap-top-feedback,
.smart-window-snap-bottom-feedback {
    width: calc(100% - 10px);
    left: 5px;
    transform-origin: top;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(0);
    }
}

@keyframes scaleInRight {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(0.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
