a:visited
{
	text-decoration: none;
	color: black;
}
a:link
{
	text-decoration: none;
	color: black;
}
a:hover
{
	text-decoration: underline;
	color: grey;
}
a.filelink:visited
{
	text-decoration: underline;
	color: #3749D1;
}
a.filelink:link
{
	text-decoration: underline;
	color: #3749D1;
}
a.filelink:hover
{
	text-decoration: underline;
	color: #6699CC;
}
a.intable:visited
{
	text-decoration: underline;
	color: #3749D1;
}
a.intable:link
{
	text-decoration: underline;
	color: #3749D1;
}
a.intable:hover
{
	text-decoration: underline;
	color: #6699CC;
}
#searchBody
{
	background: #ffffff url('chautauquaBody.jpg') no-repeat top center;
	font-family: Arial;
}
table.stdtab
{
        bgcolor: #3749D1;
}
table.ThinBorder
{
	border-style: solid;
	border-color: black;
	border-width: 1px;
}
td.whitetable:hover
{
        font-color: black;
}
table.whitetable
{
        background: white;
        color: black;
}
table.whitetable:link
{
	text-decoration: underline;
	color: #6699CC;
}
table.whitetable:visited
{
	text-decoration: underline;
	color: #6699CC;
}
table.whitetable:hover
{
	text-decoration: none;
	color: black;
}
input.QuestButton
{ 
	color: red;
}
p.bottomtext 
{
	font-size: 12px;
}
p.menutext
{
        font-size: 20px;
}
p.menutext
{
        font-size: 18px;
}
p.notetext
{
        font-size: 12px;
}
#heading
{
	position: absolute; 
	width: 504px; 
	height: 54px; 
	z-index: 2; 
	left: 140px; 
	right: 167px;
	top: 20px; 
	color:white; 
	vertical-align: middle; 
}
#menubox1
{
	margin: 0px 0px;
	background: url('images/blue-tab-header.gif') no-repeat;
	z-index: 3;
}
#mainbox
{
	margin: 0px 0px;
	overflow: auto;
	z-index: 3;
}
p.MainHead1
{
	color: white;
	font-weight: bold;
	font-style: italic;
	font-size: 24px;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
p.MainHead2
{
	color: white;
	font-style: italic;
	font-size: 13px;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
p.OrangeText
{
	color: #FF6600;
	font-size: small;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
p.BlueText
{
	color: #336699;
	font-size: small;
	font-style: italic;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
p.MainBodyText
{
	color: black;
	font-size: small;
	font-style: normal;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
p.QuestBodyText
{
	color: black;
	font-size: medium;
	font-style: normal;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
p.QuickLinkText
{
	color: black;
	font-size: 9px;
	font-style: normal;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
p.QuestHead1
{
	color: #336699;
	font-size: large;
	font-style: normal;
	text-align: center;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
p.QuestHead2
{
	color: #336699;
	font-size: medium;
	font-style: normal;
	text-align: center;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
p.refhead1
{
	color: red;
	font-size: large;
	font-weight: bold;
	text-align: center;
}
p.refhead2
{
	color: red;
	font-size: medium;
	text-align: center;
}
p.refbodytext
{
	color: black;
	font-size: medium;
	font-style: normal;
	margin-bottom: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-left: 0px;
}
table.standardpage
{
	width: 800px;
	border: 0px;
	margin: 0px 0px;
	background: white;
	padding: 0px;
	border-collapse: collapse;
}
table.leftmenu
{
	width: 171px;
	border: 0px;
	margin: 0px 0px;
	background: white;
	padding: 0px;
	border-collapse: collapse;
	vertical-align: top;
}
td.ColorBack
{
	background: #B7D4FF;
}
td.verticleblack
{
	width: 1px;
	background: black;
}
td.spacer1
{
	width: 20px;
	height: 180px;
	background: white;
}
td.spacer2
{
	width: 18px;
	height: 180px;
	background: white;
}
td.leftside
{
	width: 171px;
	height: 410px;
	background: white;
	vertical-align: top;
	text-align: left;
	font-size: small;
	color: #0D4C6F;
}
td.mainsection
{
	width: 589px;
	height: 410px; 
	vertical-align: top; 
	background: white; 
	text-align: left;
}
td.aslink
{
	text-align: left;
	vertical-align: top;
	cursor: pointer;
}
tr.aslink
{
	cursor: pointer; 
}

#searchIframe{
	width:100%;
	height:100%;
	border:none;
}

tr.bg-danger{
	color:white;
}

#searchSplash{
	margin-top:10px;
}

#searchSplash > h1{
	font-size:25px;
	margin-bottom: 25px;
}
#searchSplash > h2{
	font-size:21px;
	margin-top: 21px;
	margin-bottom: 21px;
}
#searchSplash > h3{
	font-size:19px;
	margin-top: 19px;
	margin-bottom: 19px;
}
#searchSplash > p{
	font-size:12.8px;
	margin-top: 12.8px;
	margin-bottom: 12.8px;
}

.bg-green{
	background-color: #197F74!important
}

a.navbar-brand{
	font-family: 'Helvetica'
}

/* #resultsTBody > tr > td:nth-of-type(6) {
	display: none;
} */

#searchSplash > p {
	line-height: 1.6;
}

@media (min-width: 1200px){
	.container {
		max-width: 1100px;
	}
}

.fbox {
	display: flex;
	flex-direction: row;
	width: 100%;
}
.jcc {
	justify-content: center;
}
.jcsb {
	justify-content: space-between;
}
input[type=submit]{
	margin-left: 17px;
	background-color: buttonface;
	border-color: rgb(0, 0, 0);
	color: rgb(0, 0, 0);
	cursor: pointer;
}
input[type=submit]:hover{
	background-color: rgb(224, 224, 224);
	color: rgb(0, 0, 0);
}
input[type=submit]:active{
	background-color: rgb(200, 200, 200);
	color: rgb(0, 0, 0);
}

/* Search functionality styles */
.search-input {
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#loadingSpinner {
    margin: 2rem 0;
}

#searchStatus {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
}

/* Table height constraint and scrolling */
#resultsTable {
    margin-top: 1rem;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    overflow-x: auto;
}

/* Remove the previous sticky header styles and replace with this approach */
#resultsTable thead {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

#resultsTable thead tr {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

#resultsTable thead td {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    /* Remove individual border styling from here */
}

/* Use box-shadow to create the border effect that will stick */
#resultsTable thead td {
    box-shadow: 
        inset 0 1px 0 rgb(222, 226, 230),
        inset 0 -1px 0 rgb(222, 226, 230),
        inset 1px 0 0 rgb(222, 226, 230),
        inset -1px 0 0 rgb(222, 226, 230);
}

/* Ensure the table itself has proper borders */
#resultsTable .table {
    margin-bottom: 0;
    border-collapse: collapse;
}

/* #resultsTable .table td,
#resultsTable .table th {
    border: 1px solid rgb(222, 226, 230);
} */

/* Ensure the results container doesn't overflow */
#results {
    margin-top: 1rem;
    max-height: calc(100vh - 250px); /* Slightly larger than table to account for status badge */
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #resultsTable {
        max-height: calc(100vh - 350px); /* More space for mobile headers */
    }
    
    #results {
        max-height: calc(100vh - 300px);
    }
}

/* Responsive table */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 0.25rem;
    }
}
#resultsTable thead tr td a{
	color: rgb(55, 73, 209);
	text-decoration-color: rgb(55, 73, 209);
	text-decoration-line: underline;
	text-decoration-style: solid;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

/* #resultsTBody tr:nth-child(even) {
	background: rgba(0, 0, 0, 0.05);
} */

#resultsTBody tr td img {
	cursor: pointer;
}

#resultsTBody tr:hover {
	background: rgba(0, 0, 0, 0.075);
}
#results {
	margin-top: 1rem;
}
.bg-green {
	color: #fff!important;
}