/**
 * Copyright (c) Enalean, 2018-present. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

@use "pkg:@tuleap/burningparrot-theme/css/includes/global-variables";
@use "pkg:@tuleap/tlp-dropdown";
@use "headers";
@use "icons";
@use "folder-content";
@use "new-document";
@use "upload";
@use "notifications";
@use "switch-to-docman";
@use "quicklook";
@use "update-document";
@use "confirm-deletion-modal";
@use "embedded-document";
@use "properties";
@use "folder-properties-modal";
@use "modal-common";
@use "clipboard";
@use "permissions-modal";
@use "download-as-zip";
@use "project_background_header";
@use "search";
@use "history";
@use "dropdown-button";

.document-app {
    display: flex;
    flex-direction: column;
    height: 100vh;

    > .breadcrumb {
        flex: 0 0 auto;
    }
}

.has-visible-project-banner .document-app {
    height: calc(100vh - #{global-variables.$project-banner-base-height});
}

.has-visible-platform-banner .document-app {
    height: calc(100vh - #{global-variables.$platform-banner-base-height});
}

.has-visible-project-banner.has-visible-platform-banner .document-app {
    height: calc(
        100vh - #{global-variables.$project-banner-base-height} - #{global-variables.$platform-banner-base-height} -
            #{global-variables.$extra-platform-banner-white-space-height}
    );
}

.document-error-modal-link {
    cursor: pointer;
}
