html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
  }
  
  #title, #desc {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
  }
  
  th, td {
    padding: 10px;
    text-align: left;
/*     width: 100%; */
    box-sizing: border-box;
  }
  
  th {
    background-color: #333;
    color: white;
  }
  
  td {
    border-bottom: 1px solid #ddd;
  }
  
  .row-selected .hidden-buttons {
    display: flex;
    opacity: 1;
    margin-top: 10px;
  }
  
  .hidden-buttons {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease, height 0.5s ease;
  }
  
  .detail-row {
    display: none;
    height: 0;
    overflow: hidden;
    transition: height 0.5s ease, opacity 0.5s ease;
  }
  
  .row-selected + .detail-row {
    display: table-row;
    height: 70px;
    opacity: 1;
  }
  
  .edit-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
  }
  
  @media (max-width: 768px) {
    table, th, td {
      display: block;
      width: 100%;
    }
  
    th, td {
      text-align: left;
    }
  
    .main-row, .detail-row {
      margin-bottom: 10px;
    }
  
    .hidden-buttons {
      justify-content: space-between;
    }
  }
  
  @media (max-width: 480px) {
    table, th, td {
      display: block;
      width: 100%;
    }
    tbody{
       min-width:450px; /* remove !important  */
    }
  
    th, td {
      text-align: left;
      padding: 10px;
      box-sizing: border-box;
    }
  
    th {
      background-color: #333;
      color: white;
    }
  
    td {
      border-bottom: 1px solid #ddd;
    }
  
    .main-row {
      border: 1px solid #ddd;
      margin-bottom: 10px;
      background-color: #f9f9f9;
    }
  
    .detail-row {
      background-color: #fff;
    }
  
    .hidden-buttons {
      flex-direction: column;
      align-items: flex-start;
      padding: 10px;
    }
  
    .edit-buttons {
      gap: 10px;
      width: 40%;
    }
  
    .edit-btn, .delete-btn {
      
      margin-bottom: 10px;
    }
  
    .form-check-input {
      margin-left: auto;
      margin-right: 10px;
    }
  }
    
