/* Main navigation container */
nav {
  width: auto;
  margin: 0 auto;
  display: inline-block;
}

nav ul {
  background: #2f4f4f;
  padding: 0;
  list-style: none;
  position: relative;
  display: inline-table;
  z-index: 10;
  width: auto;
  margin: 0;
}

nav ul:after {
  content: "";
  clear: both;
  display: block;
}

nav ul li {
  float: left;
  padding: 0;
  position: relative;  /* Add this */
}

nav ul li a {
  display: block;
  padding: 8px 15px;
  color: #f4f4f4;
  text-decoration: none;
}

nav ul li:hover {
  background: #daa520;
}

/* Dropdown styles */
nav ul ul {
  display: none;
  background: #506060;
  position: absolute;
  top: 100%;
  left: 0;  /* Changed from 50% */
  width: auto;
  min-width: 200px;
  transform: none;  /* Removed translateX */
}

nav ul li:hover > ul {
  display: block;
}

nav ul ul li {
  float: none;
  border-top: 2px solid #ffffff;
  position: relative;
  white-space: nowrap;
}

nav ul ul li a {
  padding: 8px 15px;
}

/* Mobile styles */
@media screen and (max-width: 768px) {
  nav {
    width: 100%;
  }
  
  nav ul {
    width: 100%;
  }
  
  nav ul li {
    float: none;
    width: 100%;
  }
  
  nav ul ul {
    position: static;
    width: 100%;
  }
}






body {
	background-color: #E8E8E8
}


div table {
	background-color: #ffffff
}


#mybutton {
display: block;
width: 25em;
height: 2em;
border: 2px;
border-style: solid;
border-color: #2F4F4F;
padding:0;
text-align:center;
font-size: 1.5em;
line-height:1.5em;
color:#000000;
cursor:pointer;

border-radius:6px;

background-image: linear-gradient(bottom, rgb(58,83,186) 12%, rgb(127,187,240) 49%);

background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.12, rgb(58,83,186)),
color-stop(0.49, rgb(127,187,240))
);
}
#mybutton:hover {
color: #000080;
background-image: linear-gradient(bottom, rgb(120,146,250) 12%, rgb(182,244,252) 49%);

background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0.12, rgb(120,146,250)),
color-stop(0.49, rgb(182,244,252))
);
}


form { margin-left: 4em; } 


tr.border_bottom td {
  border-bottom:1pt solid black;
  margin-left: 0px; text-align: left;
}


table.buckets {
	text-align: left;
	color: #000000;
	
}

table.buckets td.bucket1 {
	text-align: left;
	vertical-align: text-top;
	color: #000000;
	background-color: #FFFFEE
	
}



table.buckets td.bucket2 {
	text-align: left;
	vertical-align: text-top;
	color: #000000;
	background-color: #DDDDCC
	
}



table.buckets td.bucket3 {
	text-align: left;
	vertical-align: text-top;
	color: #000000;
	background-color: #FFFFF0
	
}


#top4 {
	text-align: left;
	vertical-align: text-top;
	color: #000000;
	background-color: #FAF0BE
	
}



A   {text-decoration:none}


h5#top4 {
    color:red;
    padding:0;
    text-align:left;
    font-size: 18px;
    line-height:1em;
}


.tooltip {
    position:absolute;
    display:none;  
}



.content {
    background-color:#fec;
    width:500px;
    padding:5px 15px;
}


.explain {
	color: #FA7D00
}



.autocomplete {
  /*the container must be positioned relative:*/
  position: relative;
  display: inline-block;
}
input {
  border: 1px solid transparent;
  background-color: #f1f1f1;
  padding: 10px;
  font-size: 16px;
}
input[type=text] {
  background-color: #fafade;
  width: 100%;
}
input[type=submit] {
  background-color: DodgerBlue;
  color: #fff;
}
.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 100%;
  left: 0;
  right: 0;
}
.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}
.autocomplete-items div:hover {
  /*when hovering an item:*/
  background-color: #e9e9be; 
}
.autocomplete-active {
  /*when navigating through the items using the arrow keys:*/
  background-color: DodgerBlue !important; 
  color: #ffffff; 
}





.overlay_flight_traveldil {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}
.overlay_flight_traveldil:target {
  visibility: visible;
  opacity: 1;
}
.popup_flight_travlDil {
  margin: 70px auto;
  padding: 20px;
  background: #fff;
  border-radius: 5px;
  width: 30%;
  position: relative;
  transition: all 2s ease-in-out;
}
.popup_flight_travlDil .close_flight_travelDl {
  position: absolute;
  top: 20px;
  right: 30px;
  transition: all 200ms;
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}
.popup_flight_travlDil .content_flightht_travel_dil {
  max-height: 30%;
  overflow: auto;
}

.boxed-row {
	border: 4px solid black;
}



.sortable th {
  cursor: pointer;
  position: relative;
  padding-right: 20px;
}

.sortable th:after,
.sortable th:before {
  content: '';
  position: absolute;
  right: 4px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.sortable th:before {
  border-bottom: 5px solid #999;
  top: 10px;
}

.sortable th:after {
  border-top: 5px solid #999;
  top: 20px;
}

.sortable th.asc:before {
  border-bottom-color: #000;
}

.sortable th.desc:after {
  border-top-color: #000;
}


.tracker-header {
    background: linear-gradient(to right, #1a365d, #2d4a77);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tracker-header h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.selector-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.selector-container label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.125rem;
}

.custom-select {
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #1a365d;
    font-size: 16px;
    cursor: pointer;
    min-width: 120px;
}

.custom-select:hover {
    border-color: #90cdf4;
}




/* Add a container for your table with fixed height and scroll */
.table-container {
  max-height: 80vh; /* 80% of viewport height, adjust as needed */
  overflow-y: auto;
}

/* Make the thead sticky */
thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Make sure the th background color fully covers when scrolling */
thead th {
  background-color: #FFFACD; /* Your existing header color */
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Keep your existing .sortable th styles, but update to work with sticky positioning */
.sortable th {
  cursor: pointer;
  position: sticky; /* Change from relative to sticky */
  top: 0;
  padding-right: 20px;
  z-index: 10;
}






/* stats inside year/week selectors styles */
.stats {
    text-align: center;
    color: #e2e8f0;
}

.stats p {
    margin: 8px 0;
}

.bold {
    font-weight: bold;
}





/* Banner styles */
.banner-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.banner-container img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}






