:root {
    --data-font: 'Lucida Console', 'Cascadia Code', 'Cascadia Mono', 'Courier New';
}

/*--- Default styles ---*/
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/*.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}*/

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/*--- End default styles ---*/

/*--- Core DOE Color Styles ---*/
html, body {
    background-color: var(--doe-accent-sky-blue);
}

main > h1, main > h2 {
    color: var(--doe-primary-dark-gray);
}

.banner-bg {
    background-color: var(--doe-primary-cadet-blue);
}

.na40-logo-bg {
    background-color: var(--doe-na40-green);
}
/*--- End Core DOE Color Styles ---*/

/*--- Form Styles ---*/
form input:invalid, form select:invalid, form textarea:invalid {
    background-color: #ffc6bc;
}
/*--- End Form Styles ---*/

/*--- Search Results Grid ---*/
.search-result-grid > div {
    cursor: pointer;
    border: 1px solid #bababa;
    border-radius: 4px;
    margin: 10px 0;
    background-color: rgba(var(--doe-primary-dark-gray-rgb), .05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

    .search-result-grid > div:first-child {
        margin-top: 0;
    }

    .search-result-grid > div:last-child {
        margin-bottom: 0;
    }

    .search-result-grid > div:hover {
        transform: scale(1.010);
    }

    .search-result-grid > div > div {
        padding: 0 6px;
    }

        .search-result-grid > div > div:first-child {
            padding: 4px 6px;
            font-size: 14px;
            margin-bottom: 2px;
            background-color: rgba(var(--doe-accent-energy-green-rgb), 0.25);
            color: var(--doe-primary-cadet-blue);
            font-weight: 600;
        }

        .search-result-grid > div > div:nth-child(0n+2) {
            font-size: 22px;
            margin-bottom: 2px;
            font-weight: 500;
            /*color: color-mix(in srgb, var(--doe-accent-energy-green), rgba(0, 0, 0, 0.75));*/
        }

        .search-result-grid > div > div:nth-child(0n+3) {
            padding-bottom: 4px;
            font-size: 16px;
        }

        .search-result-grid > div > div:last-child {
            border-top: 1px solid #eaeaea;
            color: var(--doe-primary-cardinal-red);
            font-size: 14px;
            grid-column-start: 1;
            grid-column-end: 3;
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            padding-top: 4px;
            padding-bottom: 4px;
            background-color: #fff;
            font-weight: 600;
        }

@media (max-width: 500px) {
    .search-result-grid > div {
    }

        .search-result-grid > div > div:first-child {
            font-size: 10px;
        }

        .search-result-grid > div > div:nth-child(0n+2) {
            font-size: 18px;
        }

        .search-result-grid > div > div:nth-child(0n+3) {
            font-size: 12px;
        }

        .search-result-grid > div > div:last-child {
            font-size: 10px;
        }
}

/*--- End Search Results Grid ---*/

/*--- Details Page Grids ---*/
.details-grid {
    /*padding: 0 16px;*/
}

    .details-grid > h2 {
        font-size: 1.8em;
        padding-bottom: 4px;
        margin: 4px 0;
        border-bottom: 1px solid #eaeaea99;
    }

    .details-grid > div:nth-child(0n+2) {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

@media (max-width: 500px) {
    .details-grid > h2 {
        font-size: 1.4em;
    }

    .details-grid > div:nth-child(0n+2) {
        display: block;
    }
}

.card:has(.physical-props-grid) {
    overflow: hidden;
}

.physical-props-grid {
    display: grid;
    grid-template-columns: minmax(155px, 250px) auto;
}

    .physical-props-grid > div {
        padding: 3px 5px;
    }

        .physical-props-grid > div:nth-child(2n+1) {
            font-weight: bold;
        }

        .physical-props-grid > div:nth-child(2n+2) {
            font-family: var(--data-font);
        }

        .physical-props-grid > div:nth-child(4n+3), .physical-props-grid > div:nth-child(4n+4) {
            background-color: #eaeaea99;
        }

.pac-grid {
    margin-top: 0px;
}

    .pac-grid > h3 {
        font-size: 1.4em;
    }

    .pac-grid > div {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        /*font-size: 1.1em;*/
        border: 1px solid var(--doe-primary-cardinal-red);
        border-radius: 4px;
        margin-top: 10px;
        overflow: hidden;
    }

        .pac-grid > div > div {
            padding: 4px;
        }

            .pac-grid > div > div:first-child {
                grid-column-start: 1;
                grid-column-end: 4;
                background-color: var(--doe-primary-cardinal-red);
                color: #fff;
                /*border-start-start-radius: 4px;
                border-start-end-radius: 4px;*/
            }

            .pac-grid > div > div > div:first-child, .pac-grid > div > div > div:nth-child(0n+2) {
                display: inline-block;
            }

            .pac-grid > div > div > div:first-child {
                font-weight: bold;
            }

            .pac-grid > div > div > div:nth-child(0n+2) {
                font-family: var(--data-font);
            }

.health-code-grid {
    display: grid;
    grid-template-columns: 120px auto;
}

/*--- End Details Page Grids ---*/

/*--- Admin User List Grid ---*/
.user-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 110px 50px;
    font-size: .9em;
    padding: 5px;
}

    .user-list-grid > div.header {
        font-weight: bold;
    }

    .user-list-grid > div {
        padding: 1px 5px;
    }
/*--- End Admin User List Grid ---*/

/*--- History Grid ---*/
.history-grid > a {
    display: grid;
    grid-template-columns: 50px auto;
    margin: 0 0 10px 0;
    padding: 8px;
    border: 1px solid #4e4e4e;
    border-radius: 8px;
    text-decoration: none;
    color: #4e4e4e;
    background-color: #fbfbfbff;
    transition: background-color 0.4s ease;
}

    .history-grid > a:hover {
        background-color: #f5faffbe;
        transition: background-color 0.4s ease;
    }

    .history-grid > a:last-child {
        margin: 0;
    }
/*--- End History Grid ---*/

.change-highlight {
    background-color: #ffd800;
}

/*--- File Drag n Drop ---*/
.drag-static {
    background-color: #fff;
    transition: background-color 0.5s ease;
    overflow: hidden;
}

.drag-over {
    background-color: #95cfe2be;
    box-shadow: 0 0 .5rem #258cfbbe !important;
    transition: background-color 0.5s ease;
}

.drop-loading {
    height: 100px;
    background-color: #929292cc;
    background-image: url('../images/loading_icon.gif');
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 30px;
    font-size: 1.2em;
    text-align: center;
}
/*--- End File Drag n Drop ---*/

/*--- File List Grid ---*/
.file-list-grid {
    display: grid;
    grid-template-columns: auto 100px 80px 150px 50px;
}

.file-list-display-grid > a {
    display: grid;
    grid-template-columns: 30px auto 80px 50px;
    margin: 0 0 10px 0;
    padding: 8px;
    border: 1px solid #1887ffff; /*#258cfbbe*/
    border-radius: 8px;
    text-decoration: none;
    color: #4e4e4e;
    background-color: #fbfbfb;
    /*background-color: #fafeffbe;*/
    transition: background-color 0.4s ease;
}

    .file-list-display-grid > a > div:nth-child(0n+2) {
        color: #1887ffff;
    }

    .file-list-display-grid > a > div:nth-child(0n+3) {
        font-size: 0.9em;
    }

    .file-list-display-grid > a > div:last-child {
        font-size: 0.9em;
        text-align: right;
    }


    .file-list-display-grid > a:hover {
        background-color: #f4fff3;
        transition: background-color 0.4s ease;
    }

    .file-list-display-grid > a:last-child {
        margin: 0;
    }

@media (max-width: 700px) {
    .file-list-display-grid > a {
        grid-template-columns: 30px auto 50px;
    }

        .file-list-display-grid > a > div:nth-child(0n+2) {
            grid-column-start: 2;
            grid-column-end: 4;
        }

        .file-list-display-grid > a > div:nth-child(0n+3) {
            grid-column-start: 1;
            grid-column-end: 3;
        }

        .file-list-display-grid > a > div:nth-child(0n+4) {
            grid-column-start: 3;
        }
}
/*--- End File List Grid ---*/

/*--- Stat List Grid ---*/
.stat-list-grid > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 2px 0;
    border: 1px solid #eaeaea;
    border-radius: 4px;
}

    .stat-list-grid > div > div {
        padding: 4px;
    }

        .stat-list-grid > div > div:nth-child(4n+1) {
            grid-column-start: 1;
            grid-column-end: 4;
            background-color: rgba(var(--doe-accent-energy-green-rgb), 0.25);
        }
/*--- End Stat List Grid ---*/

/*--- Terms Grid ---*/
.terms-grid {
    display: grid;
    grid-template-columns: 100px auto;
    row-gap: 8px;
}

    .terms-grid > div:nth-child(2n+1) {
        font-weight: bold;
    }
/*--- End Terms Grid ---*/
