/* Add padding to the top of the body to prevent content from being hidden by the fixed navbar */
body {
  padding-top: 100px; /* Height of the navbar */
}

html,body,h1,h2,h3,h4,h5,h6, button {
  font-size: 30px;
}

body.waiting * {
    cursor: progress;
}

h1 { color: #00F000; }
/*h1 { margin-top: 50px; color: #00F000;}
/ *h2 { color: #6610f2; }*/
h2 { color: #0D6EFD; }

/* --- Custom CSS for 2-Level Dropdown --- */
  
/* Make the nested dropdown menu appear on the side */
.dropdown-menu .dropdown-submenu {
  position: relative;
}

.dropdown-menu .dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none; /* Hide by default */
}
  
/* Show the nested dropdown on hover */
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

/* Add a right-arrow to indicate a submenu on desktop */
.dropdown-menu .dropdown-toggle::after {
  display: inline-block;
  margin-left: .255em;
  vertical-align: .255em;
  content: "";
  border-top: .3em solid transparent;
  border-right: 0;
  border-bottom: .3em solid transparent;
  border-left: .3em solid;
}

.dropdown-item {
  font-size: 20px;
}

/* --- Responsive adjustments for mobile --- */
@media (max-width: 991.98px) {
  /* On mobile, make the nested dropdowns appear inline */
  .dropdown-menu .dropdown-submenu .dropdown-menu {
  position: static;
  display: none; /* Keep it hidden until parent is clicked */
  width: 100%;
  border: 0;
  box-shadow: none;
  background-color: rgba(0,0,0,0.1); /* Slightly different background for visual hierarchy */
  }

  /* On mobile, show the submenu when the parent is hovered/focused (Bootstrap handles click) */
   .dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
  display: block;
  }
  
  /* On mobile, the arrow should point down */
  .dropdown-menu .dropdown-toggle::after {
  border-top: .3em solid;
  border-right: .3em solid transparent;
  border-bottom: 0;
  border-left: .3em solid transparent;
  }
}

/* Helper class to show status messages */
.status-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
}

 div.sticky {
  border-radius: 25px;
  position: sticky;
  top: 105px;
  background-color: yellow;
  padding: 0px;
  /*font-size: 20px;*/
  z-index: 1;
}

.tdPanel {
  background: #ddd;
  color: #000;
  padding: 50px 10px 30px 10px;
  border-left: solid #0d0 5px;
  width: 90%;
  margin-left: 5%;
  margin-bottom: 2em;
}

/* Grids:  Used in Regression */
.grid {
  width: 70px;
  text-align: center;
}
.gridb {
  border-bottom: solid 1px black;
  width: 70px;
  text-align: center;
}
.gridr {
  border-right: solid 1px black;
  width: 70px;
  text-align: center;
}
.gridbr {
  border-bottom: solid 1px black;
  border-right: solid 1px black;
  width: 70px;
  text-align: center;
}
.gridR {
  width: 70px;
  text-align: right;
}
.gridRb {
  border-bottom: solid 1px black;
  width: 70px;
  text-align: right;
}

input[type="checkbox"] {
  width: 24px;
  height: 24px;
}

/*
#sans {
  width: 100%;
  max-width: 800px;
  min-width: 300px;
  box-sizing: border-box;
  padding: 10px;
  font-size: 16px;
  resize: vertical;
}

/* Optional: Adjust width on smaller screens * /
@media (max-width: 768px) {
  #sans {
    width: 90%;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  #sans {
    width: 100%;
    font-size: 13px;
  }
}
*/

#sans {
  resize: vertical;
  padding: 10px;
}
