﻿body {
}

html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* SPLASH PAGE START */
#splashpage {
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mud-palette-background, rgba(39,39,47,1));
    padding-left: 20px;
    padding-right: 20px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

#splashpage img.splashlogo {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 300px;
    height: 300px;
    object-fit: contain;
    display: block;
    animation: pulse 2.5s infinite;
}

#splashpage p {
    font-size: 4.5rem;
    font-family: 'Roboto','Helvetica','Arial','sans-serif';
    color: rgba(255,255,255,0.6980392156862745);
}

#splashpage p.byline {
    font-size: 1.5rem;
}

#splashpage .splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* SPLASH PAGE END */

table.spacedtable {
    border-spacing: 0px;
}

table.spacedtable td {
    padding-top: 0.5px;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

table.spacedtable th {
    padding-top: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

table.spacedtable th.condensed {
    padding-left: 0.1em;
    padding-right: 0.1em;
}

table.spacedtable td.condensed {
    padding-left: 0.1em;
    padding-right: 0.1em;
}

table.spacedtable td.align-right {
    text-align: right;
}

table.spacedtable td.align-mid {
    text-align: center;
}

/* Add small top margin to first row only to prevent gear icons clipping */
table.spacedtable tbody tr:first-child td {
    padding-top: 1.5px;
}

.page-flex {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 110px);
}

.table-scroll-container {
    flex: 1 1 auto;
    min-height: 0; /* Important for flexbox scrolling */
    overflow-y: auto;
    overflow-x: auto;
    margin-top: 2px;
}

.spacedtable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--mud-palette-background); /* Matches MudBlazor default */
    height: 4.6em; /* Set a consistent height for header cells for CSS calc for imported rows */
    vertical-align: top;
}

/* Imported report rows styling */
.spacedtable thead .imported-report-row:last-of-type .imported-report-cell {
    border-bottom: 1px solid var(--mud-palette-primary) !important;
}

.imported-report-cell {
    background-color: var(--mud-palette-background);
    font-weight: bold !important;
    position: sticky !important;
    z-index: 3 !important;
    /* Use CSS calc with custom property for dynamic positioning */
    height: 1.8em;
    top: calc((var(--row-index) * 1.8em) + 4.6em) !important;
}

/* Prevent wrapping of text when the viewport shrinks a bit */
.nowrap {
    white-space: nowrap;
}

/* Condense table contents, used for Metric Help Dialog */
td.mud-table-small-cell {
    padding: 1px !important;
    line-height: 1.2px !important;
}

.header-help-icon {
    margin-bottom: 3px;
    width: 24px;
    height: 24px;
}

/* MudAutocomplete input styling to shrink the autocomplete */
.mud-autocomplete input {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.mud-autocomplete button {
    padding-left: 4px !important;
    padding: 0px;
}

/* Mud button bar beside autocomplete needs some condensing */
.dense-buttons .mud-icon-button {
    padding-left: 4px !important;
    padding-right: 4px !important;
}