html {
  font-family: sans-serif;
  background: #eee;
  padding: 1rem;
}

body {
  max-width: 960px;
  margin: 0 auto;
  background: white;
}

h1 {
  font-family: serif;
  color: #cd6734;
  margin: 1rem 0;
}

h2 {
  font-family: serif;
  color: #cd6734b6;
  margin: 1rem 0;
  font-size: 20px;
}

a {
  color: #cd6734;
}

/* Style for the button */
a.submit-button {
  /* display: inline-block; */
  padding: 2px 2px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background-color: #cd6734;
  border: 1px solid #f46822;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover effect */
a.submit-button:hover {
  background-color: #cd6734;
}

a.del {
  /* display: inline-block; */
  padding: 0px;
  text-align: center;
  text-decoration: none;
  /* font-size: 16px; */
  font-weight: bold;
  color: #bc0404;
  background-color: #fcfcfc;
  /* border: 2px solid #2980b9; */
  border-radius: 0px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

hr {
  border: none;
  border-top: 1px solid lightgray;
}

nav {
  background: lightgray;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

nav h1 {
  flex: auto;
  margin: 0;
}

nav h1 a {
  text-decoration: none;
  padding: 0.25rem 0.5rem;
}

nav ul  {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a, nav ul li span, header .action {
  display: block;
  padding: 0.5rem;
}

.content {
  padding: 0 1rem 1rem;
}

.content > header {
  border-bottom: 1px solid lightgray;
  display: flex;
  align-items: flex-end;
}

.content > header h1 {
  flex: auto;
  margin: 1rem 0 0.25rem 0;
}

.flash {
  margin: 1em 0;
  padding: 1em;
  background: #e7e6e6;
  border: 1px solid #cd6734;
}

.post > header {
  display: flex;
  align-items: flex-end;
  font-size: 0.85em;
}

.post > header > div:first-of-type {
  flex: auto;
}

.post > header h1 {
  font-size: 1.5em;
  margin-bottom: 0;
}

.post .about {
  color: slategray;
  font-style: italic;
}

.post .body {
  white-space: pre-line;
}

.content:last-child {
  margin-bottom: 0;
}

.content form {
  margin: 1em 0;
  display: flex;
  flex-direction: column;
}

.content label {
  font-weight: bold;
  margin-bottom: 0.5em;
}

.content input, .content textarea {
  margin-bottom: 1em;
}

.content textarea {
  min-height: 12em;
  width: 600px;
  height: 150px;

  /* resize: vertical; */
}

input.danger {
  color: #cc2f2e;
}

input[type=submit] {
  align-self: start;
  min-width: 10em;
}


table.table_sample {
  width: 100%;
  border-collapse: collapse;
  border-radius: 1px;
  border-color: #bc0404;
}
    /* Style for the input fields */
input.input1,
input.input2,
input.input3,
input.input4 {
  width: 100%;
  height: 100%; /* Make the input fill the entire height of the cell */
  box-sizing: border-box;
  padding: 1px;
  margin: 0;
}

/* Style for table cells */
td.td1 {
  border: 1px solid #ddd;
}

input.buttonstyle  {
  /* display: inline-block; */
  padding: 2px 2px;
  text-align: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  background-color: #cd6734;
  border: 1px solid #f46822;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

td.right {
  border: 1px solid #ddd;
  text-align: right;
}

/* Style for table cells */
td.td1 {
  border: 1px solid #ddd;
}

td.right {
  border: 1px solid #ddd;
  text-align: right;
}

td.td1_borderless {
  border: 2px solid #ffffff;
}

td.right_borderless {
  border: 2px solid #ffffff;
  text-align: right;
}

tr.cont:nth-child(even) {
  background-color: #f2f2f2;
}

tr.cont:hover {
  background-color: #5ebef9;
}

tr.head {
  font-weight: bold;
}

input.narrow {
  width: 30px;
  height: 100%; /* Make the input fill the entire height of the cell */
  box-sizing: border-box;
  padding: 1px;
  margin: 0;
  text-align:center;
}

.code {
  /* display: inline-block; */
  font-family: 'Times New Roman', Times, serif;
  padding: 0px;
  text-align: center;
  text-decoration: none;
  /* font-size: 16px; */
  font-weight: bold;
  font-size: 150%;
  color: #bc0404;
  background-color: #fcfcfc;
  /* border: 2px solid #2980b9; */
  border-radius: 0px;
}



iframe {
  border: 1px solid #2980b9; /* Set border style, width, and color */
}


.snote {
  position: absolute;
  transform: translate(0px, -55px);
  background-color: #f0f0f0;
  border: 2px dotted #ccc;
  padding: 5px;
  border-radius: 5px;
  white-space: nowrap;
}

.hidden {
  display: none;
}

.inline-divs {
  display: inline-block;
  text-align: left;
}

.centered-div {
  width: 100%; /* Adjust the width as needed */
  text-align: center;
}

img.barcode {
  width: 20%;
  height: 4%;
  box-sizing: border-box;
  padding: 1px;
  margin: 0;
}

/* Simple styling for the blocks */
.result-block {
  border: 1px solid #ccc;
  padding: 10px;
  margin: 5px;
  border-radius: 5px;
  background-color: #f9f9f9;
}

       /* Full-page overlay to gray out the background */
       #overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);  /* Semi-transparent gray */
        z-index: 1;  /* Make sure it's below the iframe */
    }

        /* Style for iframe container */
        #assaydetail {
          position: fixed;
          top: 5%;  /* Start 5% from the top */
          bottom: 5%;  /* End 5% from the bottom */
          left: 50%;
          transform: translateX(-50%);  /* Center the iframe horizontally */
          width: 80%;  /* 80% width of the window */
          border: 2px solid #ccc;
          box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
          background-color: white;
          z-index: 2;
      }

      /* Style the iframe itself */
      #iframeAssayDetail {
          width: 100%;
          height: 100%;
          border: 5px solid green;
          overflow: auto;  /* Enable scrollbars if content is too long */
      }

      /* Close button */
      #closeBtn {
          position: absolute;
          top: 10px;
          right: 10px;
          background-color: red;
          color: white;
          border: none;
          padding: 5px 10px;
          cursor: pointer;
      }

      /* Add a title for the selected assays container */
.container-title {
  font-family: Arial, sans-serif;
  font-size: 18px;
  margin-bottom: 10px;
  color: #333;
}

/* Add a border and padding to the selected assays container */
.target-container {
  border: 2px solid #28a745; /* Green border */
  padding: 15px;
  border-radius: 10px;
  background-color: #f9f9f9;
  min-height: 50px; /* Optional: Minimum height for better visibility */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 600px; /* Optional: Set a max width for the container */
}

/* Style the blocks inside the target container */
.entry-block {
  background-color: #e0e0e0;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
}



.calendar {
  display: none; /* Calendar is hidden by default */
  margin-top: 20px;
  position: absolute;
  z-index: 10;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 10px;
}

.calendar table {
  border-collapse: collapse;
}

.calendar th, .calendar td {
  width: 40px;
  height: 40px;
  text-align: center;
  border: 1px solid #ddd;
  cursor: pointer;
}

.calendar th {
  background-color: #f0f0f0;
}

.selected {
  background-color: #4CAF50;
  color: white;
}

.calendar-header {
  text-align: center;
  margin-bottom: 10px;
}

.calendar-header select {
  font-size: 16px;
}

#suggestions {
  border: 1px solid #ccc;
  max-height: 150px;
  overflow-y: auto;
  position: absolute;
  background-color: white;
  width: auto;  /* Adjust width based on content */
}

#suggestions div {
  padding: 10px;
  cursor: pointer;
  display: block;  /* Make each suggestion take up its own line */
  white-space: nowrap;  /* Prevent text from wrapping */
  border-bottom: 1px solid #ddd;  /* Optional: Add a border to separate suggestions */
}

#suggestions div:hover {
  background-color: #f0f0f0;
}