﻿/* Core Application Styles - PCH DevTeam, justin.mauck */
/* Expand as needed, this is just some bare minimum stuff added for the core template */
nav.bg-dark { background-color: #E4002b !important }
body { font-size: .9rem; color: #444; }
.table-striped th { background: #E5e5e5; }
.table-striped th a { color: #444; text-decoration: underline; }
.text-white a { color: #FFF }
.modal label { font-weight: bold; }

@media print {
    .fixed-top {
        display: none !important;
    }

    .sidebar {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .noprint {
        display: none !important;
    }

    .ChartWidget {
        width: 100%;
        margin-bottom: 20px;
    }

    .noprint-nobreak {
        page-break-inside: avoid;
    }
}

/* Sidebar */
.sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 100; /* Behind the navbar */ padding: 48px 0 0; /* Height of navbar */ border-right: 1px solid #e5e5e5; }
.sidebar-sticky { position: relative; top: 0; height: calc(100vh - 48px); padding-top: .5rem; overflow-x: hidden; overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */ }
.sidebar-sticky .debug { position: absolute; bottom: 0; left: 0; right: 0; border-top: 1px solid #DDD; }
@supports ((position: -webkit-sticky) or (position: sticky)) {
    .sidebar-sticky { position: -webkit-sticky; position: sticky; }
}
.sidebar .nav-link { font-weight: 500; color: #444; padding-left: 32px; font-size: .9rem; }
.sidebar .nav-link.active { color: #007bff; }
.sidebar-heading { font-size: 1.1rem; text-transform: uppercase; font-weight: normal; }

/* Content */
[role="main"] { padding-top: 60px; /* Space for fixed navbar */ }

/* Navbar */
.navbar-brand { padding-top: .25rem; padding-bottom: .25rem; padding: 0 !important; font-size: 1.3rem; }
.navbar .form-control { padding: .75rem 1rem; border-width: 0; border-radius: 0; }
.form-control-dark { color: #fff; background-color: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .1); }
.form-control-dark:focus { border-color: transparent; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); }
.main h3 { padding: 12px 0; }

.pagination-ys { padding-left: 0; border-radius: 4px; }
    .pagination-ys > td { background: #FFF !important; padding-top: 12px !important; }
    .pagination-ys table > tbody > tr > td { display: table-cell; padding: 0; border: none; }
        .pagination-ys table > tbody > tr > td > a,
        .pagination-ys table > tbody > tr > td > span { position: relative; float: left; padding: 8px 12px; line-height: 1.42857143; text-decoration: none; color: #dd4814; background-color: #ffffff; border: 1px solid #dddddd; margin-left: -1px; }
        .pagination-ys table > tbody > tr > td > span { position: relative; float: left; padding: 8px 12px; line-height: 1.42857143; text-decoration: none; margin-left: -1px; z-index: 2; color: #aea79f; background-color: #f5f5f5; border-color: #dddddd; cursor: default; }
        .pagination-ys table > tbody > tr > td:first-child > a,
        .pagination-ys table > tbody > tr > td:first-child > span { margin-left: 0; border-bottom-left-radius: 4px; border-top-left-radius: 4px; }
        .pagination-ys table > tbody > tr > td:last-child > a,
        .pagination-ys table > tbody > tr > td:last-child > span { border-bottom-right-radius: 4px; border-top-right-radius: 4px; }
        .pagination-ys table > tbody > tr > td > a:hover,
        .pagination-ys table > tbody > tr > td > span:hover,
        .pagination-ys table > tbody > tr > td > a:focus,
        .pagination-ys table > tbody > tr > td > span:focus { color: #97310e; background-color: #eeeeee; border-color: #dddddd; }

/* PCCNScorecards-specific Styles*/

.zero-column-width {
    width: 0px;
}

.gv-green{
    color:green !important;
}

.gv-red{
    color:red !important;
}

.table-secondary-colspan{
    text-align:center;
    border-right-style:solid;
    border-right-width:1px;
    border-left-style:solid;
    border-left-width:1px;
    border-bottom-width:0px !important;
    vertical-align:bottom;
}

.table-secondary-singlecol {
    border-bottom-width: 0px !important;
}

.table-alternating-row {
    --bs-table-bg: #f7f7f7;
}

.grid-container {
    display: grid;
    grid-template-columns: auto auto;
    grid-column-gap:25px;
}

.grid-container-home {
    display: grid;
   /* grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); */
   grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    grid-auto-rows: 1fr;
    grid-column-gap: 25px;
    grid-row-gap: 25px;
}

.grid-container-home1 {
    display: grid;
    grid-template-columns: auto auto auto;
    grid-column-gap: 25px;
    grid-row-gap: 25px;
}

.grid-container-home::before {
    content: '';
    width: 0;
    padding-bottom: 100%;
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}

.grid-container-home > *:first-child {
    grid-row: 1 / 1;
    grid-column: 1 / 1;
}

.grid-item {
    grid-column:auto;
}

.grid-item-home {
    grid-column: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align:center;
}

.grid-item-home a{
    text-decoration:none;
    color: white;
    font-size:3em;
}

.grid-centered-cell-vertical {
    vertical-align: middle;
}

.hdnVisitType{
    display:none;
}

.help {
    cursor: help;
}

.btn-xs {
    padding: 0.40rem 0.4rem;
    font-size: 0.70rem;
    line-height: 0.5;
    border-radius: 0.2rem;
}

.nodisplay{
    display:none !important;
}

.table-sm {
    font-size: 0.75rem
}

.form-control-xs {
    height: 22px;
    padding: 2px 5px;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
}

.contents-center {
    text-align: center;
}
.form-check-input {
    margin: 0 !important;
 //   font-size: smaller; /* Optional: adjust if needed for alignment */
}

/* Spinner Styles */
.spinner {
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.7);
    z-index: 9999;
    display: none;
}

@-webkit-keyframes spin {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.spinner::after {
    content: '';
    display: block;
    position: absolute;
    left: 48%;
    top: 40%;
    width: 120px;
    height: 120px;
    border: 16px solid #f3f3f3;
    border-radius: 50%;
    border-top: 16px solid #3498db;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    -webkit-animation: spin .8s linear infinite;
    animation: spin .8s linear infinite;
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
/* Spinner Styles End */