﻿form {
    margin-top: 0;
}

fieldset {
    padding: 5px 15px 20px 15px;
    border: 1px solid #666;
}

legend {
    font-size: 17px;
    padding: 0 5px;
    color: #000;
    font-weight: bold;
}

.btn {
    margin-right: 0;
}

.label, label {
    font-weight: bold;
}

#fSection {
    width: 60%;
}

#fName {
    width: 60%;
}

#fNameWider th {
    text-align: right;
    white-space: nowrap;
    width: 15%;
}

#fNameWider {
    width: 80%;
}

#fName th {
    text-align: right;
    white-space: nowrap;
    width: 15%;
}

#fSection th {
    text-align: right;
    white-space: nowrap;
    width: 20%;
}

#clear, .clear {
    clear: both;
}

#hint p {
    margin-bottom: 0;
}

#hint ul {
    margin-top: 0;
}

#record, #results {
    background: #666;
    color: #000;
}

    #record th {
        text-align: right;
        white-space: nowrap; /*background: #cc9;*/
        background: rgb(58,102,102);
        color: #fff;
    }

    #results th {
        text-align: left; /*background: #cc9;*/
        background: rgb(58,102,102);
        color: #fff;
    }

    #record td, #results td {
        background: rgb(251,251,205);
    }

h3.series {
    margin-bottom: 0;
    font-size: 1.1em;
}

p.series {
    margin-top: 0;
}

table {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

/* recordset navigation */
.dbnav {
    border-bottom: solid 1px #666;
    margin: 10px 0;
    padding: 3px 0 4px 0;
    white-space: nowrap;
}

* html .dbnav /* Hide from IE5/Mac (& IE5.0/Win) */ {
    height: 1%; /* holly hack to fix a render bug in IE6/Win */
}

* html .DBNAV {
    height: auto; /* above IE6/Win holly hack breaks IE5/Win when page 
			   length get beyond the point that 1% height is taller 
			   than the text height. IE5/Win does not need this 
			   holly hack so we remove it here */
    padding: 0; /* IE5/Win will resize #hnav to fit the heights of its
			   inline children that have vertical padding. So this
			   incorrect case selector will remove that padding */
}

    .dbnav ul {
        text-align: right;
        list-style-type: none;
        line-height: normal;
        margin: 0 0.25em 0.15em 0;
        padding: 0;
    }

        .dbnav ul li {
            display: inline;
            white-space: nowrap;
            margin: 0;
        }

            .dbnav ul li a {
                text-decoration: none;
                margin: 0 -1px 0 0;
                padding: 3px 15px 4px 15px;
            }

            * html .DBNAV ul li a {
                /* \*/
                width: 1%;
                /* holly hack for IE5/Win inline padding. this hack fixes different 
	 * rendering bugs in 5.0 and 5.5. Width is used instead of height 
	 * because if the document is too long, these elements become very tall
	 * and disrupt the look of the document. too wide an element is better, 
	 * visually, than too tall. */
            }

                .dbnav ul li a:link, .dbnav ul li a:visited {
                    background-color: rgb(196,105,49);
                    color: #fff;
                    border: 1px solid #666;
                }

                .dbnav ul li a:hover {
                    text-decoration: none;
                    background-color: rgb(246,247,157);
                    color: #000;
                    border-color: #ccc;
                }


.dbnavTop {
    margin: 0;
    padding: 3px 0 0 0;
    white-space: nowrap;
}

* html .dbnavTop /* Hide from IE5/Mac (& IE5.0/Win) */ {
    height: 1%; /* holly hack to fix a render bug in IE6/Win */
}

* html .dbnavTop {
    height: auto; /* above IE6/Win holly hack breaks IE5/Win when page 
			   length get beyond the point that 1% height is taller 
			   than the text height. IE5/Win does not need this 
			   holly hack so we remove it here */
    padding: 0; /* IE5/Win will resize #hnav to fit the heights of its
			   inline children that have vertical padding. So this
			   incorrect case selector will remove that padding */
}

    .dbnavTop ul {
        text-align: right;
        list-style-type: none;
        line-height: normal;
        margin: 0 0.25em 0 0;
        padding: 0;
    }

        .dbnavTop ul li {
            display: inline;
            white-space: nowrap;
            margin: 0;
        }

            .dbnavTop ul li a {
                text-decoration: none;
                margin: 0 -1px 0 0;
                padding: 3px 15px 4px 15px;
            }

            * html .dbnavTop ul li a {
                /* \*/
                width: 1%;
                /* holly hack for IE5/Win inline padding. this hack fixes different 
	 * rendering bugs in 5.0 and 5.5. Width is used instead of height 
	 * because if the document is too long, these elements become very tall
	 * and disrupt the look of the document. too wide an element is better, 
	 * visually, than too tall. */
            }

                .dbnavTop ul li a:link, .dbnavTop ul li a:visited {
                    background-color: rgb(196,105,49);
                    color: #fff;
                    border: 1px solid #666;
                }

                .dbnavTop ul li a:hover {
                    text-decoration: none;
                    background-color: rgb(246,247,157);
                    color: #000;
                    border-color: #ccc;
                }

.detailsLand td:nth-of-type(odd) {
    background-color: #0D2240;
    font-weight: bold;
    color: White;
    border-color: #666666;
    border-spacing: 0;
    width: 20%;
}
/*Land Patents css changes */
/*************************************
*********Results Page*****************
**************************************/

.Pager td {
    background-color: #3A6666;
    font-weight: bold;
    color: White;
    border-color: #666666;
    font-size: medium;
}

    .Pager td table tbody tr td a {
        background-color: #3A6666;
        font-weight: bold;
        color: Gray;
        border-color: #666666;
        font-size: medium;
    }

    .Pager td table tbody tr td {
        background-color: #3A6666;
        font-weight: bold;
        color: White !important;
        border-color: #666666;
        font-size: medium;
    }

.tableHead {
    color: #fff;
    font-weight: bold;
}

.tableRows {
    padding: .7em 0em .7em .6em;
}

.hide {
    display: none;
}

#lnkViewImages {
    float: right;
}

@media only screen and (max-width:700px) {
    #left {
        display: none;
    }

    #main {
        text-align: center;
        padding: 0 .5em;
    }
}

#CensusTable .Details {
    width: 10%;
    white-space: nowrap;
    padding: 10px;
}

#CensusTable .RecordSeries {
    width: 20%;
}

#CensusTable .FullName {
    width: 20%;
}

#CensusTable .County {
    width: 10%;
}

#CensusTable .CensusYear {
    width: 10%;
}

#CensusTable .Age {
    width: 5%;
}

#CensusTable .Notes {
    width: 25%;
}

#btnHolderMainNoCenter {
    display: flex;
    gap: 10px; /* Space between buttons */
    width: 100%;
    justify-content: center; /* Center buttons in normal view */
    margin-top: 1rem;
}

@media (max-width: 900px) {
    fieldset {
        padding: 10px;
    }

    .legendLabel {
        font-size: 18px;
    }

    .RadioButtonList {
        display: block;
        margin-top: 5px;
    }

    .table-label {
        font-size: 14px;
        display: block;
        margin-bottom: 5px;
    }

    #btnHolderMainNoCenter {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    #btnSearch, #btnReset {
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
    }
}

.SmartGrid tbody tr th {
    white-space: nowrap;
}

.table-spacing td {
    padding: 0 5px;
}

@media (min-width: 1080px) {
    #seriesDropdown {
        width: 260px;
    }

    #Race {
        width: 180px;
    }
}

@media (max-width: 900px) {
    .table-spacing td {
        padding: 5px 0;
    }
}

.request-copy {
    max-width: 900px;
    margin: 0 auto;
    color: #111827;
    line-height: 1.6;
}

    .request-copy a {
        color: #2C51BB;
        text-decoration: none;
        font-weight: 600;
    }

        .request-copy a:hover {
            text-decoration: underline;
        }

/* Responsive: stack rows on small screens */
@media (max-width: 720px) {
    .detail-table th,
    .detail-table td {
        display: block;
        width: 100%;
        text-align: left;
        border-top: none;
        border-bottom: 1px solid #e5e7eb;
    }

    .detail-table tr + tr th {
        border-top: none;
    }
}

/* Tidy legacy grid header alignment without breaking other screens */
.SmartGrid tbody tr th {
    white-space: nowrap;
}
