.site-header {
  width: 80%;
}

.site-header .navbar-nav .nav-link.active {
  font-weight: 500;
}

.block {
  display: block;
}

body {
  margin-top: 0rem;
}

.navbar {
  border-bottom: solid 1px;
  display: flex;
  flex-direction: column;
}

/* Side Bar Styling */
.sidebar {
  background-color: rgb(11, 74, 119);
}

#sidebar {
  width: 225px;
  overflow: hidden;
  min-height: 100%;
}

#sidebar .nav-link span {
  color: aliceblue;
}

#sidebar.collapsed {
  width: 80px;
}

#sidebar.collapsed .nav .nav-link span,
#sidebar.collapsed .nav .nav-brand span {
  display: none;
}

#sidebar.collapsed .nav-link,
#sidebar.collapsed .navbar-brand {
  justify-content: center;
}


.container-fluid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;

}



/* Mobile styling */
@media (max-width: 992px) {
  .container-fluid {
    padding-left: 0px;
    padding-right: 0px;
  }

  #sidebar #toggleIcon {
    display: none;

  }

  #sidebar.collapsed,
  #sidebar {
    width: 50px;
    overflow-x: hidden;
  }

  #sidebar .nav-link {
    padding: 1rem 1rem;
    /* Reduce padding for better alignment */
  }

  #sidebar .nav .nav-link span,
  #sidebar .nav .nav-brand span {
    display: none;
  }
}

/* Customize the link Colour */
a {
  color: #000000;
  /* black */
}

a:hover {
  color: #0a58ca;
  /* darker blue for hover state */
}

a:visited {
  color: #0d6efd;
  /* Keep visited links the same color */
}

/* Styling of login page */

.login {
  max-width: 500px;
}

/* Style the naviation column of the forms */
.project_edit_sidenav .nav-link h5 {
  text-transform: uppercase;
  color: #0b4a77;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  font-weight: bold;
}

.project_edit_sidenav .nav-link:visited {
  text-transform: uppercase;
  color: #0b4a77;
}

.project_edit_sidenav {
  border-right: 1px solid #ddd;
}

.project_edit_sidenav .nav-link:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}

.nav-link.active {
  color: #0056b3;
  border-right: 2px solid #0056b3;
  /* Border to the left for emphasis */
  padding-right: 0px;
  /* Additional padding for better alignment */
}

.nav-link.warning {
  border-right: 2px solid firebrick;
}

.nav-link {
  font-weight: bold;
  border-right: 2px solid transparent;
  /* Border to the left for emphasis transparent when inactive*/
  padding-right: 0px;
  /* Additional padding for better alignment */
}

.accordion-button {
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
}

/* End style the naviation column of the forms */

/* Style the card */

.card-custom {
  min-height: 100%;
  box-shadow: 0 0 15px rgba(10, 10, 10, 0.3);
}

/* Format the navigation links  */

.link-reset a {
  text-decoration: none;

}

.link-reset span {
  color: #000000;
  text-decoration: none;
}

/* Style the Calculculation Details code box. */

math {
  white-space: normal;
  /* Allows MathML content to wrap */
}

.math-text {
  color: #212529;
  font-size: 0.875rem;
}

.math-container {
  padding: 1rem;
  color: #212529;
  font-size: 0.875rem;
  background-color: #b8bbbe;
  overflow-x: scroll;
  /* Handle any overflow for larger equations */
}

/* .calculations {
  color: #212529; 
  font-size: 0.8rem;
} */


/* Customize font sizes */

/* Desktop Sizes */

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.171875rem;
}

h6 {
  font-size: 1rem;
}

body {
  font-size: 0.9375rem;
}

.form-control {
  font-size: 0.9375rem;
}

/* Mobile Font Sizes */
@media (max-width: 992px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  h4 {
    font-size: 1.125rem;
  }

  h5 {
    font-size: 1rem;
  }

  h6 {
    font-size: 0.95rem;
  }

  body {
    font-size: 0.875rem;
  }

  .form-control {
    font-size: 0.875rem;
  }
}

select.form-control {
  color: black;
}

select.form-control:hover {
  color: black;
}

select.form-control:focus {
  color: black;
}



#filterPanel.collapse-horizontal {
  width: 0;
  overflow: hidden;
  transition: width 0.0s ease;
  transform-origin: right;
}

/* #filterPanel.collapse-horizontal.show {
  width: 300px; 
}  */



/* Add additional styling for long project names in the landing class */
.landing {
  overflow-wrap: break-word;
  /* Ensure words break */
  word-wrap: break-word;
  word-break: break-all;
}


#modal .modal-dialog.custom-modal {
  overflow-y: initial !important;
  width: 90%;
  margin: auto;
  max-width: none;
  max-height: none;
}

.modal-body {
  height: 80vh;
  overflow-y: auto;
}

.btn-link-chart {
  padding: 8px 16px;
  border: none;
  border-radius: 0;
  color: rgb(11, 74, 119);
  background: none;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.btn-link-chart.active {
  /* text-decoration: underline; */
  border-bottom: 2px solid #0056b3;
  /* Border to the left for emphasis */
}

/* Hover state */
.btn-link-chart:hover {
  color: rgb(11, 74, 119);
  /* Match border to hover background */
}

/* Active/Click state */
.btn-link-chart:active {
  color: rgb(11, 74, 119);
}

/* Remove outline on focus */
.btn-link-chart:focus {
  outline: none;
  box-shadow: none;
}

.sticky-table thead th {
  position: sticky;
  top: 0;
  /* Keeps the header at the top */
  background-color: #fff;
  /* Background color for visibility */
  z-index: 1;
  /* Ensures the header stays above table content */
  white-space: nowrap;
  /* Prevents wrapping of text in the header */
}

.sticky-table thead th:first-child {
  /* Add your styles here */
  position: sticky;
  left: 0;
  white-space: nowrap;
  background-color: #fff;
  z-index: 5;
}

/* Style for the second column cells in the table header */
.sticky-table thead th:nth-child(2) {
  position: sticky;
  left: 240px;
  /* Adjust based on the width of the first column */
  background-color: #fff;
  z-index: 4;
}

/* Style for the first column cells in the table body */
.sticky-table tbody td:first-child {
  /* Add your styles here */
  position: sticky;
  left: 0;
  white-space: nowrap;
  background-color: #fff;
  z-index: 2;
}

/* Style for the second column cells in the table body */
.sticky-table tbody td:nth-child(2) {
  position: sticky;
  left: 240px;
  /* Adjust based on the width of the first column */
  background-color: #fff;
  z-index: 3;
}

/* Center align text in the table header and cells */
.sticky-table th,
.sticky-table td {
  text-align: center;
  vertical-align: middle;
}

.selectpicker {
  width: 100% !important;
}

.dropdown-menu.show {
  width: 100% !important;
  overflow-y: auto;
  transition: max-height 0.3s ease-in-out;

}

/* .bootstrap-select.dropdown .dropdown-menu {
  display: block !important; 
  opacity: 1; 
  pointer-events: auto; 
} */

.fixed-icon-size {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

#filterPanel {
  margin-top: 10px;

  height: 100vh;
}

@media(max-width: 992px) {
  #filterPanel {
    margin-top: 10px;
    margin-bottom: 10px;
    height: auto;
  }
}

.tooltip-inner {
  white-space: pre-wrap;
  max-width: none;
}

.form-check-label {
  color: black !important;
}

.form-control {
  color: black;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}



.tableedit {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.projectlist td:first-child {
  max-width: 10rem;
  /* Limit the width of the radio button column */
}

.projectlist td:nth-child(2),
.projectlist td:nth-child(3) {
  max-width: 15rem;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}



.table.sortable th:not([aria-sort]) button span::after {
  content: "♢";
  color: black;
  font-size: 100%;
  top: 0;
  float: right;
}

.table.sortable th[aria-sort="descending"] span::after {
  content: "▼";
  color: black;
  font-size: 100%;
  top: 0;
  float: right;
}

.table.sortable th[aria-sort="ascending"] span::after {
  content: "▲";
  color: black;
  font-size: 100%;
  top: 0;
  float: right;
}

.table.sortable th td {
  /* padding: 2px; */
  /* margin-top: 5px;
  margin-bottom: 5px; */
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 2px;
  padding-right: 2px;
}

.table.sortable td,
.table.sortable th {
  /* padding: 2px; */
  /* margin-top: 5px;
  margin-bottom: 5px; */
  padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 2px;
  padding-right: 2px;
}

table.sortable th td {
  font-size: 90%;
}

table.sortable th button {
  padding: 0px;
  margin: 0px;
  font-size: 100%;
  font-weight: bold;
  background: transparent;
  border: none;
  display: inline;
  right: 0;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  text-align: left;
  outline: none;
  cursor: pointer;
}

table.sortable th button:focus,
table.sortable th button:hover {
  /* padding: 2px; */
  /* border: 2px solid currentcolor; */
  /* padding-top: 12px;
  padding-bottom: 12px;
  padding-left: 2px;
  padding-right: 2px; */
  background-color: lightgrey;
}

.min-padding {
  padding: 2px !important;
}

/* For Heatmap */
.top-header {
  background: #07264d;
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: bold;
  letter-spacing: 1px;
  font-size: 20px;
}

.left-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: #07264d;
  color: white;
}

.heatmap-header {
  display: flex;
}

.corner-cell {
  width: 120px;
  background: #08284d;
}

.header-cell {
  flex: 1;
  background: #08284d;
  color: white;
  text-align: center;
  padding: 10px;
  font-weight: 600;
  border-left: 1px solid rgba(255, 255, 255, .2);
}

.heatmap-body {
  display: flex;
}

.y-label-column {
  width: 70px;
  background: #062a52;
}

.y-label {
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: white;
  font-weight: bold;
  font-size: 20px;
}

.chart-wrapper {
  display: flex;
  min-width: 0;
}

.chart-container {
  width: 100%;
  height: 65vh;
}

.axis-title-column {
  width: 50px;
  background: #062a52;
  display: flex;
  justify-content: center;
  align-items: center;
}