/*
 * CloudBeaver - Cloud Database Manager
 * Copyright (C) 2020-2024 DBeaver Corp and others
 *
 * Licensed under the Apache License, Version 2.0.
 * you may not use this file except in compliance with the License.
 */
.overlay {
    composes: theme-text-on-primary from global;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: auto;
    position: absolute;
    margin: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    box-shadow: none;

    &.active {
        display: flex;
    }

    &.fill {
        background-color: var(--theme-background-surface);
        & .box {
            box-shadow: none;
        }
    }
}

.box {
    composes: theme-background-surface theme-text-on-surface theme-elevation-z6 from global;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: auto;
    border-radius: 0.25rem;
    align-items: normal;
    max-width: calc(100% - 48px);
    max-height: calc(100% - 48px);
}
