body {background: #555; /* Dark Grey */}

.content {
  max-width: 80%;
  min-height: 100vh;
  margin: auto;
  background: #cccccc; /* Light Grey */
  padding: 30px;
  padding-bottom: 275px;

}

.invisibleText {
  color: #cccccc; /* Light Grey */

}

.frost {
  box-shadow: inset 0 0 2000px rgba(255, 255, 255, .5);
  filter: blur(5px);
  pointer-events: none;
}

/* Ensure appointment type buttons are ALWAYS clickable, even when frost is applied */
#rowApptType,
#rowApptType * {
  pointer-events: auto !important;
}

/* Also keep gender buttons clickable */
#ptNameGender,
#ptNameGender * {
  pointer-events: auto !important;
}

/* Keep meds textarea clickable even when dropdowns are frosted */
#medsTextArea {
  pointer-events: auto !important;
}

/* Keep pain textarea clickable even when dropdowns are frosted */
#painTextArea {
  pointer-events: auto !important;
}

.frostLight {
  box-shadow: inset 0 0 2000px rgba(255, 255, 255, .5);
  filter: blur(2px);
}

.HPI{
  position: fixed;
  height: 275px;
  bottom: 0;
  left:  10%;
  width: 80%; 

  background: #cccccc; /* Light Grey */

}

.button {
	border: 2px solid #ffffff; /* White */
	border-radius: 8px;
	color: white;
	padding: 0px 8px;
	text-align: center;
	text-decoration: none;
	opacity: 0.7;
	display: inline-block;
	font-size: 16px;
}

.intervalButton {
  border: 2px solid #ffffff; /* White */
  border-radius: 8px;
  color: white;
  text-align: center;
  text-decoration: none;
  opacity: 0.7;
  display: block;
  font-size: 12px;
  width: 100px;
  height: 20px;
  line-height: 10px;
}

.pushButton:hover {opacity: 1;}

.pushButton:active {
  opacity: 1;
  transform: translateY(4px);
}

.button1 {background-color: #000000;} /* Black */
.button2 {background-color: #666666;} /* Grey */
.button3 {background-color: green; opacity: 0.6;} /* Green */
.button4 {background-color: #0066ff;} /* Blue */
.button5 {background-color: red; opacity: 0.6;} /* Red */
.button6 {background-color: #ff66ff;} /* Pink */
.button7 {background-color: #ff6600;} /* Orange */
.button8 {background-color: #6600ff;} /* Purple */
.button9 {background-color: #220066;} /* Blueish Purple */
.button10 {background-color: #800060;} /* Reddish Purple */
.button11 {background-color: #804000;} /* Brown */
.button12 {background-color: #ffcc00;} /* Orangish Yellow */
.button13 {background-color: #00cca3;} /* Turquoise */
.button14 {background-color: #cc00cc;} /* Fuschia */
.button15 {background-color: #1a1a1a;} /* Dark Grey */
.button16 {background-color: #206020;} /* Dark Green */
.button17 {background-color: #b366ff;} /* Light Purple */
.button18 {background-color: #0099cc;} /* Cerulean */
.button19 {background-color: #00cccc;} /* Aquamarine */
.button20 {background-color: #005ce6;} /* Blue 5% darker than #0066ff */
.button21 {background-color: #0047b3;} /* Blue 15% darker than #0066ff */
.button22 {background-color: #003380;} /* Blue 25% darker than #0066ff */
.button23 {background-color: #001f4d;} /* Blue 35% darker than #0066ff */
.button24 {background-color: #3385ff;} /* Blue 10% lighter than #0066ff */
.button25 {background-color: #ff8533;} /* Orange 10% lighter than #ff6600 */
.button26 {background-color: #b30086;} /* Reddish Purple 10% lighter than #800060 */
.button27 {background-color: #ff99ff;} /* Pink 10% lighter than #ff66ff */
.button28 {background-color: #008066;} /* Turquoise 10% lighter than #00cca3 */
.button29 {background-color: #00ff00;} /* Light Green */
.button30 {background-color: #ffbf00;} /* Honey */
.button31 {background-color: #cc9900;} /* Honey 10% darker than #ffbf00 */
.button32 {background-color: #29a329;} /* Green */
.button33 {background-color: #ff4d4d;} /* Pale Red */

.buttonGoBack {
	background-color: white; 
 	color: black;
 	padding: 2px 4px !important;
 	margin-left :10px;
	border: 2px solid #ff0000;
}

.button:hover {opacity: 1;}

.intervalButton:hover {opacity: 1;}

.highlight {background-color: #FFFF80;}

.selected { /* for BUTTONS */
	border: 2px solid #000000; /* Black */
	opacity: 1;
}

.notSelected { /* for BUTTONS */
	border: 2px solid #ffffff; /* White */
	background-color: #666666; /* Grey */
	opacity: 0.7;
}

.selectedFld { /* for FIELDS */
  background-color: #00cca3; /* Turquoise */
}

.selectedODFld { /* for OD SPECIFIC FIELDS */
  background-color: #ff4d4d; /* Red */
}

.selectedOSFld { /* for OD SPECIFIC FIELDS */
  background-color: #29a329; /* Green */
}

.notSelectedODFld {
  background-color: #ff4d4d;
  opacity: 0.5;
}

.notSelectedOSFld {
  background-color: #29a329;
  opacity: 0.5;
}
.notSelectedFld { /* for FIELDS */
  background-color: #666666; /* Grey */
  opacity: 0.7; /* to match the .notSelected buttons */
}

.form-inline {
  display: inline-block;
  flex-flow: row wrap;
  align-items: center;
}

#diabetesQuestions,
#amdQuestions,
#rdQuestions {
  display: block;
  width: 100%;
  clear: both;
}

#diabetesQuestions > div,
#amdQuestions > div,
#rdQuestions > div {
  display: block;
  width: 100%;
  clear: both;
  margin-bottom: 5px;
}

.columnS {
  display: block;
  width: 100%;
  margin-bottom: 5px;
}
/* Create a single column, which helps formatting a line breaks */
.column {
  float: left;
  width: 100%;
  padding-right: 20px;
  background-color:#cccccc; /* Light Grey */
}

/* Create 2 equal columns that float next to each other */
.column2 {
  float: left;
  width: 50%;
  padding-right: 20px;
  background-color:#cccccc; /* Light Grey */
}

/* Create 3 equal columns that float next to each other */
.column3 {
  float: left;
  width: 33.33%;
  padding-right: 20px;
  background-color:#cccccc; /* Light Grey */
}

.columnz{
  align-items: end;
  grid-row: 2;
  columns: 1;
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

/* Create a 2/3  column that float next to other columns */
.column3x2 {
  float: left;
  width: 66.66%;
  padding-right: 20px;
  background-color:#cccccc; /* Light Grey */
}

/* Create 4 equal columns that float next to each other */
.column4 {
  float: left;
  width: 25%;
  padding-right: 20px;
  padding-top: 10px;
  flex-wrap: wrap;
  background-color:#cccccc; /* Light Grey */
}

/* Create a 3/4 column that float next to other columns */
.column4x3 {
  float: left;
  width: 75%;
  padding-right: 20px;
  background-color:#cccccc; /* Light Grey */
}

/* Create 5 equal columns that float next to each other */
.column5 {
  float: left;
  width: 20%;
  padding-right: 20px;
  background-color:#cccccc; /* Light Grey */
}

/* Create 2/5 column that float next to other columns */
.column5x2 {
  float: left;
  width: 40%;
  padding-right: 20px;
  background-color:#cccccc; /* Light Grey */
}

/* Create 4/5 column that float next to other columns */
.column5x4 {
  float: left;
  width: 80%;
  padding-right: 20px;
  background-color:#cccccc; /* Light Grey */
}

/* Create 6 equal columns that float next to each other */
.column6 {
  float: left;
  width: 16%;
  /* removed padding so that return interval buttons don't wrap text and elongate vertically */
  background-color:#cccccc; /* Light Grey */
}

/* Create 7 equal columns that float next to each other */
.column7 {
  float: left;
  width: 14%;
  /* removed padding so that return interval buttons don't wrap text and elongate vertically
 (then switched to using .column6) */
  background-color:#cccccc; /* Light Grey */
}

/* Create 8 equal columns that float next to each other */
.column8 {
  float: left;
  width: 12.5%;
  /* removed padding so that return interval buttons don't wrap text and elongate vertically
  (then switched to using .column6) */
  background-color:#cccccc; /* Light Grey */
}

/* Create 9 equal columns that float next to each other */
.column9 {
  float: left;
  width: 11%;
  /* removed padding so that return interval buttons don't wrap text and elongate vertically
  (then switched to using .column6) */
  background-color:#cccccc; /* Light Grey */
}

/* Create 10 equal columns that float next to each other */
.column10 {
  float: left;
  width: 10%;

  /* removed padding so that return interval buttons don't wrap text and elongate vertically
  (then switched to using .column6) */
  background-color:#cccccc; /* Light Grey */
}

.row {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

#newPtLaterality { 
  height: 30px;
  display: none;
}

#stableVisionOU {
display: show;
}

#sinceLastSeenBtnRight {
  display: show;
}

#sinceLastSeenBtnLeft {
  display: show;
}

#chkSelfRef {
  transform: scale(1.5);
  transform-origin: left center;

}

#refreshPage {
  float: right;
  margin-right: 10px;
  height: 30px;

}

#HPIbtn {
  margin-left: 120px;
}
.row2 {
  display: flex;
  align-items: flex-start;
  width: 2%;
  height: 30px;
}
/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

.correctionLine {

  height:2px;
  border-width:0;
  color:gray;
  background-color:gray;
  display: block;
  overflow: visible;
  position: relative;
  width: 100%;

}

.correctionLine:before {
  background-color: #cccccc;
  content: '';
  height: 4px;
  right: 0;
  position: absolute;
  top: -2px;
  width: 20%;
  z-index: 1;  
}

/* borrowed code from https://www.w3schools.com/howto/howto_js_collapse_sidepanel.asp */
.sidepanel  {
  width: 0;
  position: fixed;
  z-index: 1;
  height: 25%;
  top: 5%;
  right: 0;
  background-color: #111;
  opacity: 0.9;
  color: white;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

/*currently not used */.sidepanel a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

/*currently not used */.sidepanel a:hover {
  color: #f1f1f1;
}

.sidepanel .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

.openbtn {
  position: hide;
  right: 0%;
  top: 0%;
  font-size: 0px;
  cursor: pointer;
  background-color: #111;
  color: white;
  padding: 0px ;
  border: none;
}

.openbtn:hover {
  background-color:#444;
}
/* code above borrowed from https://www.w3schools.com/howto/howto_js_collapse_sidepanel.asp */

/* borrowed code from https://www.w3schools.com/howto/howto_js_collapse_sidepanel.asp */
.sidepanel2  {
  width: 0;
  position: fixed;
  z-index: 5;
  height: 90%;
  top: 5%;
  right: 0;
  background-color: #111;
  opacity: 0.9;
  color: white;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

/*currently not used */.sidepanel2 a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

/*currently not used */.sidepanel2 a:hover {
  color: #f1f1f1;
}

.sidepanel2 .closebtn2 {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

.openbtn2 {
  position: fixed;
  right: 1%;
  top: 40%;
  font-size: 20px;
  cursor: pointer;
  background-color: #111;
  color: white;
  border: none;
}

.openbtn2:hover {
  background-color:#0c0202;
}

.openbtn3 {
  position: fixed;
  right: 1%;
  top: 20%;
  font-size: 20px;
  cursor: pointer;
  background-color: #111;
  color: rgb(179, 30, 30);
  border: none;
}

.openbtn2:hover {
  background-color:#0c0202;
}

.sidepanel3 .closebtn3 {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

.sidepanel3 {
  width: 0;
  position: fixed;
  z-index: 5;
  height: 90%;
  top: 5%;
  right: 0;
  background-color: #111;
  opacity: 0.9;
  color: white;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.sidepanel3 a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #818181;
  display: block;
  transition: 0.3s;
}

.sidepanel3 a:hover {
  color: #f1f1f1;
}

/* code above borrowed from https://www.w3schools.com/howto/howto_js_collapse_sidepanel.asp */

/* Medications button

* {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
  padding: 40px;
  background-color: #f5f5f5;
}

h1 {
  margin-bottom: 8px;
}

.subtitle {
  color: #666;
  margin-bottom: 32px;
}

/* Equal width columns with CSS Grid */
#dropdowns-container {
  display: grid;
  padding-right: 10px;
  padding-left: 10px;
  grid-template-columns: 150px 150px 50px 150px;
  gap: 10px;
  grid-template-rows: repeat(6, 90px);
}

.dropdown label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

/* The clickable box */
.dropdown-toggle {
  width: 100%;
  padding: 12px 16px;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  transition: border-color 0.2s;
}

.dropdown-toggle:hover {
  border-color: #9ca3af;
}

.dropdown-toggle.open {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dropdown-toggle .placeholder {
  color: #9ca3af;
}

.dropdown-toggle .arrow {
  transition: transform 0.2s;
}

.dropdown-toggle.open .arrow {
  transform: rotate(180deg);
}

/* The dropdown menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-height: 240px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu .option {
  padding: 12px 16px;
  cursor: pointer;
  transition: background-color 0.15s;
}

.dropdown-menu .option:hover {
  background-color: #eff6ff;
}

.dropdown-menu .option.selected {
  background-color: #dbeafe;
  color: #1e40af;
}

.dropdown-menu .option:first-child {
  border-radius: 8px 8px 0 0;
}

.dropdown-menu .option:last-child {
  border-radius: 0 0 8px 8px;
}

/* Results box */
.results {
  margin-top: 32px;
  padding: 16px;
  background: white;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.results h2 {
  margin: 0 0 12px 0;
  font-size: 16px;
}

.results pre {
  margin: 0;
  font-size: 14px;
  color: #374151;
}