body {
    font-family: Arial, sans-serif;
    background: #f8f9fa;
    margin: 2em;
}
h1 {
    color: #2c3e50;
}
table {
    border-collapse: collapse;
    width: 100%;
    /* table-layout: fixed;  */
    /* word-break: break-word; */
    background: #fff;
    font-size: 0.9em
}
th, td {
    border: 1px solid #dee2e6;
    padding: 8px 12px;
    text-align: left;
    /* max-width: 100px;
    overflow: scroll; */
}
th {
    background: #0074D9;
    color: #fff;
}
tr:nth-child(even) {
    background: #f2f2f2;
}
thead{
  position: relative;
}
form {
    background: #fff;
    padding: 1.5em 2em 1em 2em;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 2em;
    display: flex;
    flex-wrap: wrap;
    gap: 1em 2em;
    align-items: flex-end;
}

form label {
    display: flex;
    flex-direction: column;
    font-size: 0.97em;
    margin-bottom: 0.5em;
    min-width: 160px;
}

form input[type="text"],
form input[type="number"] {
    padding: 0.4em 0.6em;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 0.2em;
    font-size: 1em;
    background: #f6f8fa;
}

form input[type="checkbox"] {
    margin-top: 0.7em;
    width: 18px;
    height: 18px;
}

form button {
    padding: 0.5em 1.2em;
    background: #0074D9;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 0.7em;
    transition: background 0.2s;
}
form button:hover {
    background: #005fa3;
}

/* Container for Sidebar and Main Content */
.container {
  display: flex;
  height: 100vh;
  overflow: hidden;
   /* Full viewport height */
}

/* Sidebar Toggle */
.sidebar-toggle {
  display: none; /* Hide the checkbox */
}

.sidebar-toggle-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #007bff;
  color: white;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 1000;
}

.sidebar-toggle-label:hover {
  background-color: #0056b3;
}

/* Sidebar Styling */
.sidebar {
  width: 0px;
  background-color: #ffffff;
  padding: 0px 0px;
  /* box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1); */
  border-right: 1px solid #dee2e6;
  overflow-y: auto;
  transition: transform 0.3s ease-in-out;
  transform: translateX(0); /* Default: visible */
}

/* Collapsed Sidebar */
.sidebar-toggle:not(:checked) ~ .sidebar {
  transform: translateX(-100%); /* Move sidebar off-screen */
}

/* Main Content Styling */
.main-content {
  flex: 1;
  padding: 20px;
  background-color: #ffffff;
  transition: margin-left 0.3s ease-in-out;
}

/* Adjust Main Content When Sidebar is Collapsed */
.sidebar-toggle:not(:checked) ~ .main-content {
  margin-left: 0;
}

.sidebar-toggle:checked ~ .main-content {
  margin-left: 0px; /* Adjust for sidebar width */
  
}
.sidebar-toggle:checked ~ .sidebar {
    width: 250px;
}

/* Main Content Styling */
.main-content {
  flex: 1; /* Take up remaining space */
  padding: 20px;
  background-color: #ffffff; /* White background */
    overflow-y: auto; /* Scroll if content overflows */
}

th[data-description]:hover::after {
    content: attr(data-description);
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: normal;
    /* max-width: 200px; */
    z-index: 100;
    font-size: 12px;
}
span[data-description]:hover::before {
    content: attr(data-description);
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 2px;
    border-radius: 5px;
    white-space: normal;
    width: 200px;
    z-index: 10;
    font-size: 12px;
}
.info-icon {
    cursor: pointer;
    font-size: 16px; /* Adjust size as needed */
    color: #007bff; /* Blue color for the icon */
    font-weight: bold;
    user-select: none; /* Prevent text selection */
    border: 1px solid #007bff
}