
hr { all: revert; }

hr.fancy {
    border: none;
    border-top: 3px double #333;
    color: #333;
    overflow: visible;
    text-align: center;
    height: 5px;
}

.required-asterisk {
    color: #b50909;
    margin-left: .25rem;
}

.usa-step-indicator__segment {
    max-width: none !important;
}
.usa-step-indicator__segment-label
{
    text-align:left !important;
}

[id^="CustomField_Field"].usa-label {
    max-width: none !important;
}


.usa-alert__close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.mdgov-masthead {
    min-height: 200px !important;

}

.mde-hero {
    background: url('/path/to/forest-background.jpg') center/cover no-repeat;
    color: #fff;
    position: relative;
}

.mde-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.usa-nav__link {
    padding: 0.5rem 1rem;
    text-decoration: none;
}

    .usa-nav__link:hover {
        text-decoration: underline;
    }

.mde-social a:hover {
    color: #d9e8f6;
}

.form-check-inline {
    display: inline-flex; /* or inline-block / inline-flex */
    align-items: center; /* vertically align input & label if needed */
    margin-right: 1rem; /* spacing between inline items */
}

    /* Optionally: remove margin on the last item */
    .form-check-inline:last-child {
        margin-right: 0;
    }


.main-header {
    background-color: #002855; /* Dark blue background */
    color: #ffffff; /* White text */
    padding: 10px 0; /* Vertical padding */
    font-family: Arial, sans-serif; /* Common accessible font */
}

    .main-header .container {
        max-width: 1200px; /* Adjust as needed for your site's max width */
        margin: 0 auto; /* Center the container */
        display: flex; /* Use flexbox for alignment */
        justify-content: space-between; /* Space between logo and nav */
        align-items: center; /* Vertically align items */
        padding: 0 15px; /* Horizontal padding for smaller screens */
    }

    /* Logo and Site Title */
    .main-header .logo-link {
        display: flex; /* Flex for logo and text alignment */
        align-items: center; /* Vertically align logo and text */
        text-decoration: none; /* Remove underline from link */
        color: inherit; /* Inherit text color from header */
        height: 50px !important;
    }

    .main-header .mde-logo {
        /* Use a max-height to ensure it doesn't get too big,
       but remove a fixed 'height' if it's causing cropping. */
        height: 40px !important; /* Adjust this value as needed to fit your header design */
        width: auto; /* Maintain aspect ratio */
        margin-right: 10px;
        /* Optional: If the image has transparent areas you want to fill,
       or if you want to ensure it has a background if the image itself isn't full */
        /* background-color: transparent; */ /* Or a color if you need to fill a specific background */
        /* object-fit: contain; */ /* Ensures the entire image is visible within its bounds */
    }

    .main-header .site-title {
        font-size: 1.5em; /* Adjust font size as needed */
        font-weight: bold;
    }

    /* Navigation Styles */
    .main-header .main-nav ul {
        list-style: none; /* Remove bullet points */
        margin: 0;
        padding: 0;
        display: flex; /* Use flexbox for horizontal nav items */
    }

    .main-header .main-nav li {
        margin-left: 20px; /* Space between nav items */
    }

    .main-header .main-nav a {
        color: #ffffff; /* White link text */
        text-decoration: none; /* Remove underline */
        font-size: 0.9em; /* Adjust font size */
        padding: 5px 0; /* Add padding for better click area */
        transition: color 0.3s ease; /* Smooth hover effect */
    }

        .main-header .main-nav a:hover,
        .main-header .main-nav a:focus {
            color: #cccccc; /* Lighter color on hover/focus */
            text-decoration: underline; /* Underline on hover/focus for accessibility */
            outline: 2px solid #cccccc; /* Visible focus indicator for keyboard users */
            outline-offset: 2px; /* Space between outline and text */
        }

/* Ensure focus states are always visible */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #007bff; /* A distinct outline color */
    outline-offset: 2px;
}



/* Login Page */
#loginMdeLogo {
    max-width: 320px;
}

/* File Upload Page */
.files-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.file-row {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    padding: .25rem 0;
}
    .file-row > .usa-button--unstyled,
    .file-row > .file-meta {
        display: flex;
        align-items: center;
    }
.icon-btn {
    border: 0;
    background: transparent;
    padding: .25rem;
    line-height: 1;
    cursor: pointer;
}

    .icon-btn .icon {
        display: block;
    }

    .icon-btn:focus {
        outline: 2px solid;
        outline-offset: 2px;
    }

.file-meta .userFileName {
    font-weight: 400;
}

.file-desc {
    white-space: pre-wrap;
}
/* File Upload Page: input component */

.usa-file-input {
    position: relative;
}

/*.usa-file-input__input {
    position: absolute;
    inset: 0;
}

.usa-file-input__target.has-selection {
    overflow: hidden; 
}

    .usa-file-input__target.has-selection .usa-file-input__preview {
        margin: 0;
    }

        .usa-file-input__target.has-selection .usa-file-input__preview + .usa-file-input__preview {
            border-top: 1px solid #dfe1e2;
        }*/

/* File Upload Page: Spinner per file input component */

.file-upload-block {
    position: relative;
}

/* Overlay box (hidden by default) */
.file-upload-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.55); 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-in-out;
    z-index: 10;
}

/* Show overlay + allow clicking to be blocked */
.file-upload-block.is-loading .file-upload-spinner {
    opacity: 1;
    pointer-events: auto;
}

/* Gentle dimming of the underlying file input */
.file-upload-block.is-loading .usa-file-input__target {
    opacity: 1; 
}

/* --- Custom spinner --- */
.upload-spinner {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 0.3rem solid #dcdcdc; 
    border-top-color: #005ea2; 
    animation: upload-spin 0.65s linear infinite;
}

@keyframes upload-spin {
    100% {
        transform: rotate(360deg);
    }
}


#searchInputBox, #search-field {
    margin-top: 0;
}

#searchInputBoxButton {
    height: 40px;
}


.is-hidden {
    display: none !important;
}

.select-full {
    width: 75%;
    max-width: none; /* override USWDS max-width cap */
}

#main-content {
    min-height: 75vh;
}

/* Permit Info Details Page */

#action-type-question,
#permit_catalog,
.permit-container,
.permit-action-list,
.permit-action-radios {
    display: none;
}

.permit-container.show,
.permit-action-list.show {
    display: block;
}

.pb-120 {
    padding-bottom: 120px !important;
}

#action-type-question {
    padding-top: 12px;
}

.permit-action-title {
    padding-top: 20px;
}

.usa-process-list__item ul li{
    list-style-type: disc;
}

.usa-process-list__item ol {
    list-style-type: decimal;
}

    .usa-process-list__item ol[type="a"] {
        list-style-type: lower-alpha;
    }

    .usa-process-list__item ol[type="i"] {
        list-style-type: lower-roman;
    }

    .usa-process-list__item ol ::marker,
    .usa-process-list__item ul ::marker {
        color: inherit !important;
    }

/* Review Page – Permit Documents list */

.flex-between-center-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.icon-inline-sm {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
}

.style-display-inline {
    display: inline;
}

/* Dashboard Table Sorting Styles */
.sortable-header {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 2rem !important;
}

    .sortable-header:hover {
        background-color: #f0f0f0;
    }

.sort-icon {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    opacity: 0.3;
}

    .sort-icon.active {
        opacity: 1;
    }

/* Sorted column highlighting */
.sorted-column {
    background-color: #e7f4ff !important;
}

/* Ensure sorted column header stands out more */
th.sorted-column {
    background-color: #d9e8f6 !important;
}

/* Date column width */
.date-column {
    min-width: 300px;
    white-space: nowrap;
}

/* Table header styling - white background with blue text */
#paymentsTable thead th,
#paymentsTable thead td,
#applicationsTable thead th {
    background-color: #ffffff !important;
    color: #005ea2 !important; /* USWDS blue */
}

/* Override sorted column highlighting for headers to maintain white background */
#paymentsTable thead th.sorted-column,
#applicationsTable thead th.sorted-column {
    background-color: #f0f0f0 !important; /* Light gray for sorted column */
    color: #005ea2 !important;
}

/* Keep the hover effect but with white background */
#paymentsTable .sortable-header:hover,
#applicationsTable .sortable-header:hover {
    background-color: #f0f0f0 !important;
    color: #005ea2 !important;
}

/* Ensure filter row also has white background */
#paymentsTable thead tr:nth-child(2) td,
#applicationsTable thead tr:nth-child(2) td {
    background-color: #ffffff !important;
}

#paymentsTable tbody tr td:nth-child(2) a,
#applicationsTable tbody tr td:nth-child(2) a {
    color: #005ea2 !important; /* USWDS blue */
    text-decoration: underline;
}

a.blueLink {
    color: #005ea2 !important; /* USWDS blue */
    text-decoration: underline;
    margin-top: .2rem;
}
/* Helper to scale your existing spinner for buttons */
.spinner-sm {
    width: 1.25rem !important;
    height: 1.25rem !important;
    border-width: 0.2rem !important;
    display: inline-block;
    vertical-align: middle;
}

/* Ensure the button maintains its shape while loading */
.usa-button--loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px; /* Prevents the button from shrinking when text is removed */
}

.list-type-disc ul {
    list-style-type: disc;
}


/* Review Page – Permit Documents list */
ul.submit-docs {
    list-style: none;
    padding-left: 0;
    margin: 0;
    margin-left: .75rem;
}

    ul.submit-docs > li {
        display: flex;
        align-items: baseline; /* keeps bullet and text on same baseline */
        gap: .5rem;
        margin: 0;
        padding: 0;
    }

        ul.submit-docs > li::before {
            content: "\2022";
            color: var(--usa-link-color, var(--usa-color-primary, #005ea2));
            flex: 0 0 auto;
            line-height: 1;
        }


