:root {
    --primary-color: #0078d4;
    --background-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-color: #333;
    --border-color: #ddd;
}

logo {
    display: flex;
    max-width: 220px;
    max-height: 70px;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    background-color: var(--card-bg);
}

.permit-information-page {
    max-width: 80%;
    margin: 0 auto;
    padding-top: 20px;
}

.sok-header {
    max-height: 40px;
    height: 40px;
    width: 100%;
    display: flex;
    background: #004E9A !important;
    justify-content: space-between;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

.deq-header {
    max-width: 1176px;
    width: 100%;
    height: 98px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 15px;
    margin-left: auto;
    margin-right: auto;
}

.deq-logo-container {
    margin-top: 66px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* aligns both logo and button to the left */
}

.deq-logo {
    height: 70px;
    object-fit: contain;
    display: block;
    
    margin-bottom: 8px; /* adds space between logo and button */
}

.back-button {
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
}

.back-button:hover {
    background-color: #005fa3;
}

.container {
    max-width: 80%;/* 40px left + 40px right */
    margin: 0 auto; /* centers the container */
    display: flex;
    flex-direction: column;
    /*height: 100vh;*/
    /*overflow: hidden;*/
    padding: 30px;
    /*border-radius: 18px;*/
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);*/
    /*box-sizing: border-box;*/
}

hr {
    max-width: 80%;
}



h1 {
    font-size: 30px;
    color: #464646;
    margin-bottom: 20px;
    text-align: left;
}

.header-section {
    margin: 0 auto;
    max-width: 1200px;
    margin-bottom: 10px;
    margin-top: 10px; /* optional spacing above .content-row */
}

    .header-section h3,
    .header-section h4 {
        margin: 0;
    }

.header-flex {
    display: flex;
    justify-content: space-between; /* Optional: adds space between left and right */
    align-items: flex-start; /* Aligns items to the top */
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
    gap: 1rem; /* Optional: spacing between columns */
}

.header-left, .step-status {
    flex: 1; /* Allows both to grow/shrink equally */
    min-width: 300px; /* Prevents them from becoming too narrow */
}


    .header-flex p {
        flex: 1;
        margin: 0;
    }

.step-status h3 {
    margin: 0;
    font-size: 20px;
    text-align: right;
}

.step-status h4 {
    margin: 0;
    text-align: right;
}



.search-section {
    display: flex;
    justify-content: flex-end;
}

    .search-section input {
        padding: 10px;
        font-size: 16px;
        border-radius: 18px;
        border: 2px solid var(--border-color);
        width: 100%;
        max-width: 300px;
    }

.form1 {
    flex: 1; /* fills remaining space */
    overflow: hidden; /* prevents overflow */
    display: flex;
    flex-direction: column;
}


.table-scroll {
    /*height: 630px;*/
    margin-top: 15px;
    overflow: auto;
    /*border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);*/
}

    .table-scroll table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }

    .table-scroll thead th {
        position: sticky;
        top: 0;
        background-color: #004E9A;
        color: white;
        z-index: 2;
        text-align: center;
        padding: 12px;
        font-size: 14px;
        border: 1px solid var(--border-color);
    }

    .table-scroll tbody td {
        padding: 12px;
        border: 1px solid var(--border-color);
        text-align: center;
        font-size: 14px;
    }

th.sortable:hover {
    background-color: #005fa3;
}

th.sortable::after {
    content: ' ⇅';
    font-size: 12px;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
}

    .modern-table thead th {
        background-color: #004E9A;
        color: white;
        min-width: 50px;
        height: 10px;
    }

    .modern-table th, .modern-table td {
        text-align: center;
        border: 1px solid #ddd;
        color: black;
    }

    .modern-table tbody tr:nth-child(odd) {
        background-color: #ffffff;
    }

    .modern-table tbody tr:nth-child(even) {
        background-color: #ffffff;
    }

    .modern-table tr:hover {
        background-color: #e0ecf8;
    }


a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

#paginationControls button {
    margin: 4px;
    padding: 6px 12px;
    border: 1px solid #ccc;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
}

#paginationControls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px; /* reduced gap */
    font-size: 16px; /* slightly larger than 14px */
    flex-wrap: wrap;
}

.range-display {
    flex: 1;
    color: #555;
}

.pagination-links {
    flex: 1;
    text-align: right;
}

    .pagination-links a {
        margin: 0 6px;
        color: var(--primary-color);
        text-decoration: none;
        cursor: pointer;
        font-size: 16px; /* increased from default */
    }

        .pagination-links a:hover {
            text-decoration: underline;
        }

        .pagination-links a.active {
            font-weight: bold;
            text-decoration: underline;
            pointer-events: none;
            cursor: default;
        }



.progress-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-rect {
    width: 100%;
    height: 30px;
    background-color: #ccc;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
}

.step.completed .step-rect {
    background-color: #28a745; /*Green*/
}

.step.active .step-rect {
    background-color: #0078D4; /*Blue*/
}

.step.on-hold .step-rect {
    background-color: #C9C845; /*Yellow*/
}
.step.epa-review .step-rect {
    background-color: #DEA12C; /*Orange*/
}

.step.skipped .step-rect {
    background-color: #ccc; /*Gray*/
}

.description-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1px;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    gap: 0;
}

.description-cell {
    text-align: center;
    font-size: 0.75em;
    padding-left: 3px;
    padding: 4px;
    color: #333;
}

.triangle {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid #0078D4;
    /*filter: drop-shadow(0 0 1px #003366);*/
}

.triangle-right {
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 18px solid #0078D4; /* right-facing triangle */
    margin: auto;
}


.divider {
    width: 2px;
    height: 50px;
    background-color: #000;
    margin: 0;
}

    .divider.light {
        width: 3px;
        height: 40px;
        background-color: #fff;
    }

.content-row {
    margin: 0 auto;
    max-width: 1200px;
    display: flex;
    justify-content: flex-end;
    height: 800px;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    gap: 5px;
    /*border: 3px solid black;*/
}

.process-steps {
    width: 100%;
    height: 100%;
    object-fit: contain; /* or 'contain' depending on your goal */
    display: block;
}

.deq-logo {
    height: 70px;
    object-fit: contain; /* or 'contain' depending on your goal */
    display: inline-block;
}


.form-section {
    width: 70%;
    height: 100%;
    /*border: 3px solid black;*/
}

.links-section {
    width: 30%;
    /*border: 3px solid blue;*/
    padding-left: 10px;
}

.modern-doc-table-wrapper {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.modern-doc-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

    .modern-doc-table th {
        text-align: left;
        height: 10px;
    }

    .modern-doc-table td {
        text-align: left;
        padding: 12px 15px;
        border: 1px solid #ddd;
    }

    .modern-doc-table th {
        background-color: #004E9A;
        color: white;
        font-weight: 600;
    }

    .modern-doc-table tr:nth-child(even) {
        background-color: white;
    }

    .modern-doc-table tr:hover {
        background-color: #e6f7ff;
    }

    .modern-doc-table a {
        color: #0078D4;
        text-decoration: none;
    }

        .modern-doc-table a:hover {
            text-decoration: underline;
        }

@media (max-width: 600px) {
    .table-scroll table, thead, tbody, th, td, tr {
        display: block;
        width: 100%;
    }

    .table-scroll thead {
        display: none;
    }

    .table-scroll tr {
        margin-bottom: 15px;
        background-color: var(--card-bg);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        border-radius: 6px;
        padding: 10px;
    }

    .table-scroll td {
        text-align: left;
        padding: 8px;
        border: none;
        position: relative;
    }

        .table-scroll td::before {
            content: attr(data-label);
            font-weight: bold;
            display: block;
            margin-bottom: 5px;
            color: #555;
        }

    .progress-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .step {
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
    }

    .step-rect {
        flex-grow: 1;
        height: 30px;
    }

    .triangle {
        position: static;
        transform: none;
        margin-right: 5px;
        border-left: 18px solid #0078D4;
        border-top: 18px solid transparent;
        border-bottom: 18px solid transparent;
        border-right: none;
    }

    .divider {
        width: 100%;
        height: 2px;
        margin: 4px 0;
    }

    .content-row {
        flex-direction: column;
    }

    .form-section,
    .links-section {
        flex: 1;
    }
}

div.searchresult {
    padding: 10px 10px 10px 10px;
}

    div.searchresult div.searchresultdoclink {
        width: 100%;
        height: 16px;
        color: #669a84;
        float: left;
    }


div.row {
    clear: left;
}


div.searchresult div.searchresultdocheader {
    width: 30%;
    height: 16px;
    font-family: Arial;
    font-weight: normal;
    font-size: 10pt;
    margin-bottom: 5px;
    float: left;
    color: #669a84;
    border-bottom: solid 1px #669a84;
}


div.searchresult div.spacer {
    width: 2%;
    float: left;
}

div.searchresult div.indent {
    margin-top: -25px;
    width: 50%;
    float: right;
    color: #0066CC;
    font-weight: bold;
}

div.header div.indent {
    color: Black;
    font-family: Arial;
    font-weight: bold;
    font-size: 14pt;
    width: 50%;
    float: right;
}
