﻿/*
----------------------------------------------------------------------------
Copyright (c) Microsoft Corporation.
Licensed under the MIT license.
----------------------------------------------------------------------------
*/

body {
    font-family: 'Segoe UI Web Light', 'Segoe UI Light', 'Segoe WP Light', 'Segoe UI', 'Segoe WP', Tahoma, Arial, sans-serif;
    margin: 0px;
}

#embedContainer {
    min-width: 90vh;
    height: calc(0.5625 * 64vw); /* 16:9 aspect ratio */
    min-height: 94vh;
    width: 100%;
}

#dashboardContainer {
    min-width: 100vh;
    height: calc(0.5625 * 64vw); /*16:9 aspect ratio*/
    min-height: 100vh;                          
    width: 60%;
}

@media only screen and (max-width: 1333.33px) {
    #embedContainer, #dashboardContainer {
        height: calc(0.5625 * 64vw); /* 16:9 aspect ratio */
    }
}

#buttonsWrapper {
    width: 100vh;
    text-align: center;
    padding-top: 5vh;
}

a:hover, a:visited, a:link, a:active {
    text-decoration: none;
    cursor: pointer;
}

#buttonsWrapper a:hover {
   font-size: 120%;
}

iframe {
    border: none;
}

.report-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgb(5, 45, 58);
    color: white;
    flex: 0 0 auto;
    min-width: 0;
}

/* The toolbar uses its actual height; the embedded report takes the remainder.
   Only the dashboard page is constrained, so error/status pages still scroll. */
.dashboard-page {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-page > #embedContainer {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: auto;
}

.report-selector,
.download-section {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    margin: 0;
    min-width: 0;
}

.report-selector select {
    max-width: min(32rem, 70vw);
    padding: 0.35rem 0.5rem;
    /* PBI 49514: names can be 250 characters; the full name is the option's title. */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

#downloadButton {
    padding: 1vh 2vw;
}

#statusMessage {
    color: white;
}

