/* Menu del object  */
.menu-container {
   position: relative;
   margin-bottom: 20px;
   z-index: 20;
}

.menu-button {
   padding: 10px 20px;
   font-size: 16px;
   color: #ffffff;
   background-color: #000000;
   border: none;
   cursor: pointer;
   border-radius: 4px;
}

.menu-button:hover {
   background-color: #333333;
}

.menu-list {
   display: none;
   position: absolute;
   top: 100%;
   left: 0;
   background-color: #b8b8b8;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
   list-style-type: none;
   padding: 0;
   margin: 0;
   border-radius: 4px;
   width: 200px;
   transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.menu-list li {
   border-bottom: none;
   position: relative;
   width: 200px;
}

.menu-list li button {
   display: block;
   width: 100%;
   border: none;
   margin: auto;
   text-align: center;
   background-color: transparent;
   padding: 10px 20px;
   color: #000000;
   text-decoration: none;
}

.menu-list li button:hover {
   background-color: #cccccc;
   color: #000000;
   font-weight: bold;
   cursor: pointer;
}

.menu-list.show-menu {
   display: block;
   visibility: visible;
   opacity: 1;
}

.submenu-list {
   display: none;
   position: absolute;
   top: 0;
   left: 100%;
   background-color: #b8b8b8;
   box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
   border-radius: 4px;
}

.menu-list li:hover .submenu-list {
   display: block;
}

/* Estilos para la tabla CSV */
#csv-container{
  max-width: 1300px !important;
  margin: auto;
  padding-bottom: 20px;
}
.csv-table {
  width: 100%;
  max-width: 100vw;
  border-collapse: separate;
  border-spacing: 5px;
  border-radius: 10px;
  padding: 10px;
}

.csv-table tr:hover td {
  background-color: #dedede;
}

.csv-table th, .csv-table td {
  padding: 10px;
  text-align: left;
  border-radius: 10px;
  background-color: #eee;
  border: none;
  height: 100%;
  white-space: nowrap; /* Evita el salto de línea */
  overflow: hidden; /* Oculta el texto que se desborda */
  text-overflow: ellipsis; /* Muestra "..." cuando el texto se desborda */
  max-width: 300px; /* Establece un ancho máximo para que se pueda truncar */
}

.csv-table th {
  background-color: #9c7801; /* Color 2: #ED3237 */
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
}

.csv-table td:has(button) {
  padding: 0;
  position: relative;
}

.csv-table button {
  font-size: 16px;
  font-weight: bold;
  background-color: #ce9e00;
  border: none;
  border-radius: 10px;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.csv-table button svg {
  width: 24px;
  height: 24px;
}

.csv-table button:hover {
  background-color: #705600;
}

 /* Estilos para tamaños de pantalla específicos */
@media (width < 600px){
   .csv-table{
      & td, th{
         width: fit-content;
         max-width: 25vw;
         font-size: 12px;
      }
   }
   .csv-table th:nth-child(1), 
   .csv-table td:nth-child(1), 
   .csv-table th:nth-child(4), 
   .csv-table td:nth-child(4) {
       width: 10%;
       max-width: 100px;
   }

   .csv-table th:nth-child(2), 
   .csv-table td:nth-child(2) {
      width: 15%;
      max-width: 150px;
   }
   tr > th:nth-child(2), tr > td:nth-child(2){
      display: none;
   }
}
