/*
Bootstrap 5.3 migration notes:
1. Replaced .navbar-fixed-top with .fixed-top.
2. Removed .custom-file* rules; added input[type="file"].form-control::file-selector-button styling.
3. Removed .panel*, .panel-default, .panel-heading, .panel-body blocks.
4. Removed .btn-group-toggle > .btn-secondary; added input.btn-check + .btn.btn-secondary rule.
5. Removed -ms-flex from fixed width classes.
6. Replaced .navbar-light .navbar-nav .nav-link with CSS variables for navbar colors.
7. Replaced .jumbotron with .hero class.
8. In @media print, removed .form-group and .form-horizontal .control-label; replaced .text-right with .text-end.
*/

:root,
[data-bs-theme=light] {
    --bs-primary: #265a88;
    --dnr-primary-selected: #2E6CA3;
    --bs-primary-rgb: 38, 90, 136;
    --bs-link-color: #2f5e8c;
    --bs-link-color-rgb: 47, 94, 140;
    --bs-link-hover-color: #3884C7;
    --bs-link-hover-color-rgb: 56, 132, 199;
}

.pagination {
    --bs-pagination-color: var(--bs-primary);
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
    --bs-pagination-hover-bg: #e6edf5;
    --bs-pagination-hover-border-color: var(--bs-primary);
}

.dropdown-menu {
    --bs-dropdown-link-active-color: var(--bs-white);
    --bs-dropdown-link-active-bg: var(--bs-primary);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #2E6CA3;
    --bs-btn-hover-border-color: #2E6CA3;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1A3D5B;
    --bs-btn-active-border-color: #1A3D5B;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #2E6CA3;
    --bs-btn-disabled-border-color: #2E6CA3;
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-primary);
    --bs-gradient: none;
}

.card {
    --bs-card-bg: #FCFCFC;
    --bs-card-bg-rpg: 240, 240, 240;
}
/* USWDS Side Nav Mimicry for Bootstrap 5.3 */
.nav-link {
    padding: 0.25rem 0.25rem;
    color: #1b1b1b; /* USWDS ink-dark */
    text-decoration: none;
    border-left: 4px solid transparent; /* Prepare space for active border */
    transition: background-color 0.1s ease-in-out;
}
    /* Hover State: Background shift or underline */
    .nav-link:hover {
        background-color: #f0f0f0; /* USWDS gray-5 */
        color: #005ea2; /* USWDS primary color */
    }
    /* Active State: Bold left border and background */
    .nav-link.active {
        font-weight: bold;
        color: #005ea2;
        background-color: #f0f0f0;
        border-left-color: #005ea2; /* USWDS active border */
    }

/*body {
    font-size: .8rem !important;*/ /*a little over 12px*/
/*}*/

.btn {
    font-size: .8rem !important; /*a little over 12px*/
}

.btn-link {
    color: #2f5e8c !important;
}

.btn-group > .btn {
    border: 1px solid gray;
}


.btn-outline-success {
    color: #155e26;
}

.btn-success {
    background-color: #186329 !important;
    border-color: #186329 !important;
}

.btn-info {
    background-color: #315d63;
}
/*Don't set the height as it will interfere with textareas being able to resize vertically by the user. BH Jan 2021.*/
.form-control {
    padding: 0.1rem !important;
    font-size: 0.8rem !important;
}

input.form-control,
select.form-control {
    height: 24.19px !important;
}

select.form-control {
    width: auto !important;
}


label {
    margin-bottom: 2px !important;
}

.table-sm tbody tr td {
    padding: 1px 2px !important;
    line-height: 2 !important;
}

.modal-dialog {
    padding-top: 50px;
    overflow-y: initial;
    margin: auto;
}

.modal-backdrop {
    background-color: lightgrey;
}


.modal-body {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.navbar {
    padding: 5px !important;
    margin-left: -5px !important;
    margin-right: -5px !important;
}

.table-sm tbody tr td a {
    margin-top: -5px;
    font-size: .7rem !important;
    padding: .19rem .5rem !important;
}

.table thead th {
    padding: 0.4rem !important;
    border-top: 0 !important;
}

.card-header {
    font-weight: bold;
    background-color: #e9ecef;
}

    .card-header .btn-sm {
        margin-top: -7px;
        margin-bottom: -5px;
    }


.card-header-tabs {
    margin-right: -0.5rem !important;
    margin-bottom: -0.5rem !important;
    margin-left: -0.5rem !important;
    background-color: #e9ecef;
}

.carousel-inner {
    margin: 0 auto;
    min-width: 100%;
    height: 400px;
    max-width: none;
    background-color: black;
    background-size: contain;
}

.carousel img {
    object-fit: contain;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    height: 500px;
    max-width: none;
}

.container {
    padding-right: 5px !important;
    padding-left: 5px !important;
}

.container-fluid {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

.row {
    margin-left: -5px !important;
    margin-right: -5px !important;
}

.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, .col, .col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6, .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12, .col-sm, .col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12, .col-md, .col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12, .col-lg, .col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12, .col-xl, .col-xl-auto {
    padding: 2px 5px 2px 5px !important;
}

#accordion .card {
    margin-bottom: 0;
}

.card {
    margin-bottom: 5px;
}

.card-header {
    padding: 0.5rem 0.75rem !important;
}

.card-body {
    padding: 0.5rem 0.75rem !important;
}



#spanAppName {
    display: none;
}
/*Controls the container*/
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }

    #spanAppName {
        display: inline;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1060px;
    }

    #spanAppName {
        display: inline;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1340px;
    }

    #spanAppName {
        display: inline;
    }
}


.navbar {
    --bs-navbar-color: #000;
    --bs-navbar-hover-color: #005ea2;
}

    .navbar .nav-link {
        color: var(--bs-navbar-color);
    }


hr {
    margin-top: 0rem;
    margin-bottom: 0rem;
}

.modal-xl {
    max-width: 1000px !important;
}

fieldset {
    display: block !important;
    margin-left: 2px !important;
    margin-right: 2px !important;
    padding-top: 0.35em !important;
    padding-bottom: 0.625em !important;
    padding-left: 0.75em !important;
    padding-right: 0.75em !important;
    border: 2px groove !important;
}

legend {
    padding: 2px !important;
    width: auto !important;
    margin-bottom: .2rem !important;
    font-size: 1rem !important;
}

.fixed-100 {
    flex: 0 0 100px !important;
}

.fixed-120 {
    flex: 0 0 120px !important;
}

.fixed-150 {
    flex: 0 0 150px !important;
}

.fixed-200 {
    flex: 0 0 200px !important;
}

.fixed-300 {
    flex: 0 0 300px !important;
}

.fixed-400 {
    flex: 0 0 400px !important;
}

.lead-sm {
    font-weight: 300;
    font-size: 1.0rem !important;
}

body {
    background-color: #eeeeee;
    font-size: .8rem !important; /*a little over 12px*/
}

.body-content {
    background-color: white;
}

img {
    border-radius: 2px;
}

.hero {
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    background-color: #e9ecef;
    border-radius: 0.3rem;
    /*background: rgba(136,126,110,0.35) !important; old setting with transparency throwing off WCAG contrast ratio */
    background: #D5D2CC !important; /* actual solid color derived from above value */
}

.appname {
    font-variant: small-caps;
    font-size: 1.6em !important;
    color: #3a6e8f;
    line-height: 55px;
    background-color: white;
    font-weight: 400;
    margin: -0.1em 0 -0.1em 0;
}

.header {
    margin-left: 5px;
    margin-top: -9px;
    margin-bottom: -9px;
}

.login {
    float: right;
}

.footer {
    color: white;
    background-color: #565656;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    line-height: 30px;
}

    .footer a {
        color: white;
    }

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* styles for validation helpers */
.required:before {
    content: "* ";
    color: #b94a48;
}

.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

select.input-validation-error {
    border: 1px solid #b94a48;
}

textarea.input-validation-error {
    border: 1px solid #b94a48;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

.fixed-top {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: #f8f9fa !important;
}

.sort {
    cursor: pointer;
}

.sort_both:after {
    content: url('img/sort_both.png');
}

.sort_asc:after {
    content: url('img/sort_asc.png');
}

.sort_desc:after {
    content: url('img/sort_desc.png');
}

.table-footer > td {
    padding-top: 10px;
    text-align: center;
}

    .table-footer > td > a {
        padding: 0.5rem 0.5rem;
        line-height: 1.25;
        color: #054d9a;
        background-color: #fff;
        border: 1px solid #dee2e6;
        cursor: pointer;
        border-radius: 0.25rem;
    }

        .table-footer > td > a:hover {
            background-color: #f0f0f0;
        }

#gritter-notice-wrapper {
    top: 70px !important;
}

.webgrid-column450 {
    width: 450px;
}

.webgrid-column350 {
    width: 350px;
}

.webgrid-column250 {
    width: 250px;
}

.webgrid-column200 {
    width: 200px;
}

.webgrid-column150 {
    width: 150px;
}

.webgrid-column120 {
    width: 100px;
}

.webgrid-column100 {
    width: 120px;
}

.webgrid-column80 {
    width: 80px;
}

.webgrid-column50 {
    width: 50px;
}

.webgrid-column20 {
    width: 20px;
}

.webgrid-column10 {
    width: 10px;
}

.datepicker {
    margin-top: 0px !important;
    z-index: 100000 !important;
}

@media only screen and (max-width: 515px) {
    .datepicker {
        margin-top: 37px !important;
    }
}

#homeImage {
    max-width: 100%;
}

.navbar-nav .nav-item {
    font-size: medium;
}

.btn {
    max-width: 500px;
}



/*******************************************************************/
/******************* NEW LOGO STYLES *****************************/
/*******************************************************************/

#iowaLogoDiv {
    display: inline-block;
}

    #iowaLogoDiv img {
        border-right: 1px solid #06617a !important;
        padding-right: 10px;
        border-radius: 0px;
    }

#logoTextContainer {
    display: inline-block;
    margin-left: 10px;
    line-height: 16px;
    vertical-align: middle;
    margin-right: 20px;
}

    #logoTextContainer #logoTextTop {
        font-weight: 600;
        font-size: 0.9rem;
        font-family: 'Work Sans';
        color: #112B3D !important;
    }

    #logoTextContainer #logoTextBottom {
        font-size: 1.3rem;
        font-weight: 600;
        font-family: 'Work Sans';
        color: #112B3D !important;
    }


/****** Transferred from old Site.css file ******/
.searchTableInput {
    background-position: 12px 12px;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 580px !important;
    font-size: 16px;
    padding: 12px 20px 12px 40px;
    border: 2px solid #ddd;
    margin-bottom: 12px;
}

#map {
    height: 100%;
    width: 100%;
    margin-left: 25px;
    padding: 0px;
    overflow: visible;
}

.searchResultsDiv {
    overflow-y: auto;
    height: 800px;
}

    .searchResultsDiv thead th {
        position: sticky;
        top: 0;
    }

.esriScalebar {
    z-index: 30;
    padding-top: 29px !important;
    position: relative !important;
    width: 0px;
    height: 20px !important;
}

/* this will remove href link from the print (bootstrap make it href show by default) */
.esriAttribution {
    display: none !important;
}

.esriAttributionItem {
    display: none !important;
}



.modal-large {
    padding-right: 41.3% !important
}



.requiredAfter:after {
    content: "*";
    font-weight: bold;
    color: red;
}

.requiredBefore:before {
    content: "*";
    font-weight: bold;
    color: red;
}


@media print {

    body {
        margin-top: 0px;
        padding-top: 0px;
    }

    html, body {
        height: 99%;
    }

    .no-print {
        display: none;
    }

    #pageContent {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        overflow: visible !important;
        background-color: white;
    }

    a[href]:after {
        content: none !important;
    }

    .overflow-scroll {
        overflow: hidden;
    }

    .mwSelection_div {
        overflow: auto;
    }

    table.enterDataHeaderSmall > thead > tr > th, table.enterDataHeaderSmall > tbody > tr > td, table.enterDataHeaderSmall > tr > td {
        padding: 3px 1px;
    }

    table.enterDataHeaderSmall > thead > tr > th {
        font-size: 80%;
    }

    .print-small {
        line-height: 100%;
        font-size: 80%;
    }

    .print-xsmall {
        line-height: 95%;
        font-size: 65%;
    }

    margin-bottom: 5px;
}

margin-bottom: 0;
}

.pagebreak {
    page-break-after: always;
}

@page {
    size: auto;
}

.tab-content > .tab-pane {
    display: block;
}

.text-end {
    text-align: left !important;
}

}

/* Bootstrap 5 file input button */
input[type="file"].form-control::file-selector-button {
    padding: 0.1rem 0.25rem;
    height: 24.19px;
    border-radius: 0.25rem;
    background-color: #f8f9fa;
    border: 1px solid #ced4da;
}

/* Bootstrap 5 toggle button group */
input.btn-check + .btn.btn-secondary {
    border: 1px solid green;
}
