body {
      font-family:sans-serif;
      margin: 0;
      padding: 0;
      background: #f2f2f2;
    }
    .container {
      max-width: 700px;
      margin: 30px auto;
      background: white;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 0 10px rgba(0,0,0,0.1);
    }
    h2 {
      text-align: center;
      color: #333;
    }
    label {
      font-weight: bold;
      display: block;
      margin-top: 12px;
    }
    input[type=text], input[type=number], select, textarea {
      width: 100%;
      font-family:sans-serif;
      padding: 10px;
      margin-top: 4px;
      border: 1px solid #ccc;
      border-radius: 5px;
      box-sizing: border-box;
    }
    textarea {
      resize: vertical;
    }
    button {
      margin-top: 20px;
      width: auto;
      padding: 12px;
      background-color: #007bff;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
    }
    button:hover {
      background-color: grey;
    }
    .success {
      display: none;
      background-color: #d4edda;
      color: #155724;
      border: 1px solid #c3e6cb;
      padding: 10px;
      border-radius: 5px;
      margin-top: 15px;
      text-align: center;
    }
.tb {
  width: auto;
  border: 2px solid grey;
  border-collapse: collapse;
  margin-top: 10px;
}
table{
  width: auto;
  border: 2px solid grey;
  border-collapse: collapse;
  padding: 8px;
  margin-top: 10px;
}
th, td {
  width: auto;
  border: 2px solid grey;
  border-collapse: collapse;
  padding: 8px;
}
th:first-child, td:first-child {
  width: 35%;  /* Label column (e.g., L1, L2, etc.) */
}
th:nth-child(2), td:nth-child(2),
th:nth-child(3), td:nth-child(3) {
  width: 32.5%;
}
.subtract{
  margin-top: 20px;
      width: auto;
      padding: 12px;
      background-color:red;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
}
.add{
  margin-top: 20px;
      width: auto;
      padding: 12px;
      background-color:green;
      color: white;
      border: none;
      border-radius: 5px;
      font-size: 16px;
      cursor: pointer;
}
.shift-row td:first-child {
  cursor: pointer;
  font-weight: bold;
}

.shift-row.inactive td:first-child::after {
  content: " (Inactive)";
  color: #444;
  font-size: 0.85em;
}
@media (max-width: 600px) {
  .tb {
    font-size: 12px;
  }
  th, td {
    padding: 4px;
  }
}
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}
.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}
input:checked + .slider {
  background-color: #007bff;
}
input:checked + .slider:before {
  transform: translateX(26px);
}
