﻿:root {
    --h1-size: 1.5rem;
    --h2-size: 1.25rem;
    --body-size: 1.0rem;
    --body-min-width: 1024px;
    --min-cell-width: 150px;
}

body {
    min-width: var(--body-min-width);
}
fluent-data-grid-cell {
    /* Fix issue with datagrid columns getting cut off at lower resolutions. */
    min-width: var(--min-cell-width);
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

p, label {
    font-size: var(--body-size);
}

/* FIX SCROLL BARS APPEARING */
.main {
    /* This fixes an issue where app.css sets a min-height on main that causes scrollbars to appear if the header or 
        footer aren't the exact size that fluent expects them to be. */
    min-height: calc(100dvh - 93px);
}

.content {
    width: 100%;
}

.progress-overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-overlay .progress-card {
    display: block;
    width: 400px;
    padding: 2rem;
}

/* HEADER */
.fac-header {
    width: 100%;
    padding: .5rem 1rem .5rem 1rem;
}

.fac-header .left-section {
    display: flex;
    align-items: center;
}

.fac-header .left-section img {
    max-height: 1.7rem;
}

.fac-header .left-section h1 {
    font-size: 1.5rem;
    margin: 0 0 0 1rem;
    padding: 0;
}

/* PUBLIC LAYOUT */
.fac-public-layout .fac-login-card {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
    padding: 1.25rem;
}

.fac-public-layout .fac-login-card .fac-login-heading {
    font-size: 1.5rem;
    line-height: 1.5rem;
    margin-bottom: 0rem;
}

.fac-public-layout .fac-login-card .fac-message-bar {
    margin-bottom: 1.5rem;
}

.fac-public-layout .fac-login-card .input-group {
    margin-bottom: .75rem;
}

.fac-public-layout .fac-login-card label.fluent-input-label {
    font-weight: bold;
}

.fac-public-layout .fac-login-card .input-group,
.fac-public-layout .fac-login-card fluent-text-field,
.fac-public-layout .fac-login-card fluent-text-field input,
.fac-public-layout .fac-login-card fluent-button,
.fac-public-layout .fac-login-card fluent-button button {
    width: 100%;
}

.fac-public-layout .fac-footer {
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

/* USER TOP NAV MENU */
.usertopnav {
    padding-bottom: 1rem;
}

.usertopnav a {
    padding: .75rem;
}

/* CERTIFICATES */
.certificate-list li {
    list-style-type: none;
    display: flex;
    align-items: center;
}

/* SOFTWARE VERSION PAGE */
.fac-software-page .software-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

/* COMPANY MANAGEMENT PAGE */
.fac-company-management .software-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

/* LOG FILES PAGE */
.log-files-page .log-list {
    padding-left: 0;
    margin-top: 30px;
}

.log-files-page .pull-right {
    float: right; /*To move the filter to the right end of the card */
}

.log-files-page .file-size {
    padding-left: 20px;
    text-align: right;
}

.log-files-page .list-item {
    border-bottom: 1px solid;
    cursor: pointer;
    list-style: none;
    padding: 10px 8px 7px 8px;
    margin: 0;
}

.log-files-page .column-right {
    overflow: auto;
}

.log-files-page .input-sm {
    width: 300px;
}