﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#form1 {
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}

.main-content {
    flex: 1 0 auto; 
}

.site-footer {
    flex-shrink: 0; 
    background-color: #96a5cc;
    color: black;
    padding: 20px 0;
    width: 100%;
    text-align: center;
    border-top: 10px solid #ccadd7;
}

.footer-container {
    margin-top: auto; 
    padding: 0 15px;
}

.copyright-text {
    font-size: 0.9rem;
    font-weight: bold;
    margin: 0;
}

.search-container-acc {
    display: flex;
    flex-direction: column; 
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.search-form-acc {
    
    width: 320px;
}

.results-area-acc {
    width: 100%; 
    margin-top: 10px;
}

.button-group-acc {
    text-align: left;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee; 
    width: 100%;
}

.field-group-acc {
    display: flex;
    align-items: center; 
    margin-bottom: 15px; 
}

    .field-group-acc label {
        width: 100px; 
        font-weight: bold;
        color: #333; 
    }

.FieldContent-acc {
    padding: 4px; 
    border: 1px solid #ccc;
}


.button-container-acc {
    width: 100%;
    padding: 20px 0;
    background-color: #ffffff;
    border-top: 1px solid #ddd; 
    margin-top: 30px; 
}


.button-group-horizontal-acc {
    display: flex;
    justify-content: center; 
    flex-wrap: wrap; 
    gap: 15px; 
}


.ActionButton-acc,
.ActionButtonLong-acc,
.ActionButtonSuperLong-acc {
    font-weight: bold;
    font-size: 12px;
    color: white;
    font-family: Verdana, sans-serif;
    background-color: #005980;
    border: 1px solid #005980;
    border-radius: 5px;
    cursor: pointer;
    min-height: 44px;
    padding: 5px 10px;
    display: inline-block;
    text-align: center;
}


.ActionButton-acc {
    width: 85px;
}

.ActionButtonLong-acc {
    width: 125px;
}

.ActionButtonSuperLong-acc {
    width: 200px;
}


    .ActionButton-acc:focus,
    .ActionButtonLong-acc:focus,
    .ActionButtonSuperLong-acc:focus {
        color: blue;
        background-color: white;
        outline: 3px solid black; 
        outline-offset: 2px;
        border-color: black;
    }

    
    .ActionButton-acc:hover,
    .ActionButtonLong-acc:hover,
    .ActionButtonSuperLong-acc:hover {
        background-color: #00405d;
        color: white;
    }

.back-to-top-acc {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #005980;
    border: 2px solid transparent;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    z-index: 1001;
}

    .back-to-top-acc:focus {
        outline: 3px solid #ffcc00;
        border: 2px solid #000;
    }

    .back-to-top-acc:hover {
        background-color: #00405d;
    }


/* 1. The Outer Table Container */
.table-list-summary-acc {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-family: Verdana, Arial, sans-serif;
    background-color: #ffffff;
    text-align:left
}

    /* 2. Header Cells (Targeting the <th> added in VB) */
    /* This specifically targets the header without affecting nested tables */
    .table-list-summary-acc > tbody > tr > th,
    .table-list-summary-acc > tr > th {
        background-color: #005980;
        color: #ffffff !important;
        font-weight: bold;
        padding: 12px 15px;
        text-align: right; /* Matches VB .Align = "right" */
        border: 1px solid #00405d;
    }

    /* 3. Data Cells (Only top-level) */
    .table-list-summary-acc > tbody > tr > td,
    .table-list-summary-acc > tr > td {
        padding: 12px 15px;
        border: 1px solid #ccc;
        font-size: 1rem;
        color: #000;
    }

    /* 4. Zebra Striping (Only top-level rows) */
    /* skips the <th> row automatically and colors every second <td> row */
    .table-list-summary-acc > tbody > tr:nth-child(even),
    .table-list-summary-acc > tr:nth-child(even) {
        background-color: #f2f5f9;
    }

    /* 5. Row Hover State (Only top-level) */
    .table-list-summary-acc > tbody > tr:hover:not(:first-child),
    .table-list-summary-acc > tr:hover:not(:first-child) {
        background-color: #e2e8f7;
    }

    /* 6. Nested Table Reset */
    /* This ensures tables INSIDE cells don't inherit the blue header or stripes */
    .table-list-summary-acc td table {
        width: auto;
        border: none;
        margin: 0;
    }

        .table-list-summary-acc td table tr,
        .table-list-summary-acc td table td {
            background-color: transparent !important;
            border: none;
            padding: 2px; /* Tighter padding for nested layout tables */
        }

/* Container for the whole cell content */
.program-status-container-acc {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

/* Left side: Program Name */
.program-main-label-acc {
    flex: 1;
    font-weight: bold;
    text-align: left;
}

/* Right side: The stacked data points */
.program-data-rows-acc {
    min-width: 150px; /* Adjust this to fit your largest number */
}

/* Individual rows for Wait List, Reserved, and Placed */
.status-row-acc {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 2px;
}

.status-label-acc {
    font-size: 0.9rem;
    color: #444;
    white-space: nowrap;
}

.status-value-acc {
   
   
}

/* The indented expiration grid */
.nested-grid-wrapper-acc {
    margin-left: 10px;
    margin-bottom: 8px;
    border-left: 1px solid #ddd; /* Visual cue for nesting */
    padding-left: 5px;
}


.inner-summary-grid-acc {
    width: 100%;
    border-collapse: collapse;
    margin-top: 5px;
}

    .inner-summary-grid-acc th {
        font-size: medium;
        color: black;
        border-bottom: 1px solid #ccc;
        padding: 2px 5px;
        font-weight: bold;
        text-transform: uppercase;
    }


    .inner-summary-grid-acc td {
        font-size: medium;
        padding: 2px 5px;
        border-bottom: 1px solid #eee;
    }

    .inner-summary-grid-acc:empty {
        display: none;
    }


.skip-link-acc {
    position: absolute;
    top: -100px; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #005980; 
    color: white !important;
    padding: 10px 20px;
    z-index: 99999; 
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #fff;
    border-radius: 0 0 5px 5px;
    transition: top 0.3s;
}

    
    .skip-link-acc:focus {
        top: 0; 
        outline: 3px solid #ffcc00; 
    }

.GridCellBottomBorder-acc {
    /* border-bottom: thin solid black; */
    border-bottom: 1px solid #ccc;
}

.variable-info-container-acc {
    display: flex;
    width: 51px;
    gap: 2px;
    align-items: center;
}

    .variable-info-container-acc img {
        display: block;
    }

.data-entry-container-acc {
    display: flex;
    flex-wrap: wrap; /* Critical for ADA Reflow */
    align-items: flex-start;
    padding: 5px 0;
    border-bottom: 1px solid #ccc;
}

.col-info-acc {
    width: 50px;
    flex-shrink: 0;
}

.col-label-acc {
    flex: 1;
    padding: 0 10px;
}

.col-input-acc {
    flex: 2;
}

/* Accessibility focus styling */
.FieldContent:focus {
    outline: 2px solid #005a9c;
    outline-offset: 2px;
}

/* Divider Section for Questions/Groups */
.grid-divider-acc {
    display: flex;
    align-items: center; /* Vertically centers the label (middle) */
    justify-content: center; /* Horizontally centers the label (center) */
    min-height: 50px; /* Replaces style="height:50px" */
    background-color: Aqua; /* Original style */
    border-bottom: 1px solid #000; /* Replaces GridCellBottomBorder and inline border */
    width: 100%;
    margin: 10px 0; /* Adds slight spacing between sections */
}


.DividerLabel-acc {
    font-size: 12pt;
    font-family: Verdana, sans-serif;
    font-weight: bold;
    color: #000; /* Ensures visibility against Aqua */
    padding: 5px 15px; /* Ensures text doesn't hit edges on mobile */
    text-align: center;
}


/* 1. Desktop View (Default) */
.comment-history-wrapper-acc {
    width: 60%; /* Your original design intent */
    margin-bottom: 15px;
}

/* 2. Mobile/Tablet View (The Media Query) */
@media screen and (max-width: 768px) {
    .comment-history-wrapper-acc {
        width: 100%; /* Expands to full width on small screens for ADA Reflow */
    }
}

/* Styling the Panel (historyPanel) */
.comment-scroll-region-acc {
    border: 1px solid #ccc;
    background-color: #ffffff;
    overflow-y: auto !important; /* Ensures the scroll works */
}

    /* ADA focus indicator */
    .comment-scroll-region-acc:focus {
        outline: 3px solid #ffcc00;
    }

    /* Ensure the Grid inside doesn't have extra margins */
    .comment-scroll-region-acc .table-list-summary-acc {
        margin: 0;
        border: none;
        width: 100%;
    }

/*used to hide the column header in places where infragistics webdatagrid is being used as nav bar*/
.hide-column-header-acc {
    display: none !important;
}

.fieldset-radiobuttonlist-acc {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.legend-hide-acc {
    display: none !important;
}