/* General table styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
}

th {
  background-color: #6495ED;
}

tr:hover {
  background-color: #f5f5f5;
}

/* Styles for the modal dialog */
#detail-modal {
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

#detail-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 600px;
}

/* Close button for modal */
#detail-modal button {
  float: right;
  padding: 10px 20px;
  margin-top: 10px;
  background-color: #ddd;
  border: none;
  cursor: pointer;
}

#detail-modal button:hover {
  background-color: #ccc;
}

#detail-content {
  white-space: pre-wrap; /* Maintains whitespace and formatting */
  background-color: #f4f4f4; /* Light background color */
  color: #333; /* Dark text color for contrast */
  padding: 15px; /* Padding around the content */
  border: 1px solid #ddd; /* Light border */
  overflow-y: auto; /* Adds vertical scroll if content is too long */
  max-height: 400px; /* Limits the modal content height */
  font-family: 'Courier New', Courier, monospace; /* Monospaced font for code-like appearance */
}


/* Additional styling to enhance table readability */
thead th {
  color: #333;
  font-weight: bold;
}

td {
  cursor: pointer; /* Indicates that a cell is clickable */
}

/* Styling for no data or loading rows */
.no-data td {
  text-align: center;
  color: #999;
}

body, html {
  font-family: Arial, Helvetica, sans-serif;
}
