/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

@media print {
    .pagebreak {
        page-break-before: always;
    }
    /* page-break-after works, as well */
}
body, html, main {
    width: 100%;
    height: 100%;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

tab-content,
.tab-pane {
    height: 100%;
}

#alertContainer {
    position: fixed;
    left: 50%;
    bottom: min(10%, 50px);
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 90%;
}

/* Wrapper to manage grid height */
.grid-wrapper {
    min-height: 30vh;
    max-height: 30vh; /* Ensuring that it doesn't exceed 25vh */
    display: flex;
    flex-direction: column;
    height: 30vh; /* Set the height equal to min-height and max-height */
}

/* Wrapper to manage CNR grid height (Pinned rows on bottom make it so you can't see the data) */
.cnr-grid-wrapper {
    min-height: 50vh;
    max-height: 50vh; /* Ensuring that it doesn't exceed 25vh */
    display: flex;
    flex-direction: column;
    height: 50vh; /* Set the height equal to min-height and max-height */
}

/* Set the grid height to fill the wrapper */
.ag-theme-quartz {
    --ag-critical-border-color: black;
    --ag-row-border-color: black;
    --ag-row-border-style: solid;
    --ag-cell-horizontal-border: solid black;
    --ag-grid-size: 4px; /* very compact */
    flex-grow: 1;
    width: 100%;
}
.ag-header-cell-label {
    justify-content: center;
    text-align: center;
}
.bg-unavailable {
    background-color: #ffc0c0;
}
.bg-available {
    background-color: #c0ecd4;
}
/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}
main {
    max-width: 100vw;
}

@media screen and (min-width: 992px) {
    .nav-container {
        max-width: 95vw;
        margin-left: auto;
        margin-right: auto;
    }
    main {
        max-width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

/* new stuff for tabs */
/* CSS */
.container {
    margin-top: 20px;
}

.nav-tabs .nav-link {
    color: #495057;
}

    .nav-tabs .nav-link.active {
        color: #495057;
        background-color: #fff;
        border-color: #dee2e6 #dee2e6 #fff;
    }


