/**
 * Public Dashboard — layout for /public-dashboard
 *
 * Normal external-page flow: header → full-width Power BI iframe → footer.
 * Report scrolling is handled inside the iframe (cross-origin; height cannot
 * be read from the parent). No fixed stage / report-footer mode switching.
 */

body.public-dashboard-page {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.public-dashboard-page #Wrapper,
body.public-dashboard-page #main-content {
    margin: 0;
    padding: 0;
}

/* Clear fixed site header (same idea as other external pages). */
#public-dashboard.public-dashboard {
    position: relative;
    width: 100%;
    margin: 0;
    margin-top: 90px;
    padding: 0;
    background: #ffffff;
    box-sizing: border-box;
}

#public-dashboard .public-dashboard__inner {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#powerbi-dashboard-frame.public-dashboard__frame {
    display: block;
    width: 100%;
    min-height: calc(100dvh - 90px);
    height: calc(100dvh - 90px);
    margin: 0;
    padding: 0;
    border: 0;
    background: #ffffff;
    vertical-align: top;
}

.public-dashboard__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100dvh - 90px);
    margin: 0;
    padding: 24px;
    background: #f4f8ff;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
}

.public-dashboard__error[hidden] {
    display: none !important;
}

.public-dashboard__error h2 {
    margin: 0 0 8px;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
}

.public-dashboard__error p {
    margin: 0;
    max-width: 420px;
    color: #525c66;
}

.public-dashboard__retry {
    margin-top: 20px;
    padding: 10px 20px;
    border: 0;
    border-radius: 999px;
    background: #0b6bbe;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.public-dashboard__retry:hover,
.public-dashboard__retry:focus {
    background: #094d8f;
    outline: none;
}

.public-dashboard.has-error .public-dashboard__frame {
    display: none;
}

@media (max-width: 991px) {
    #public-dashboard.public-dashboard {
        margin-top: 70px;
    }

    #powerbi-dashboard-frame.public-dashboard__frame,
    .public-dashboard__error {
        min-height: calc(100dvh - 70px);
        height: calc(100dvh - 70px);
    }
}

@media (max-width: 767px) {
    .public-dashboard__error {
        font-size: 13px;
    }

    .public-dashboard__error h2 {
        font-size: 18px;
    }
}
