/* Estilos para la ventana de Archivos Eladio en dispositivos móviles */

@media (max-width: 768px) {
  /* Ajustes para la ventana de archivos en dispositivos móviles */
  #window-lostfiles {
    /* Asegurar que la ventana ocupe un espacio adecuado en móviles */
    width: 90% !important;
    height: 80vh !important;
    top: 10vh !important;
    left: 5% !important;
    transform: none !important;
  }

  .lostfiles-window {
    /* Asegurar que la ventana es responsive */
    max-width: 100%;
    max-height: 100%;
  }

  .lostfiles-table-wrapper {
    /* Mejorar el scroll en dispositivos táctiles */
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: thin !important;
    overflow-y: auto !important;
    max-height: calc(100% - 80px) !important; /* Ajustar altura según necesidad */
  }

  /* Ajustes a la tabla para móviles */
  .lostfiles-table {
    width: 100%;
    font-size: 12px; /* Texto más pequeño para móviles */
  }

  /* Ajustar espacio entre filas */
  .lostfiles-table tr {
    height: 30px;
  }

  /* Mejorar visibilidad de botones táctiles */
  .play-btn {
    min-width: 24px;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Estilos para scrollbar en móviles */
  .lostfiles-table-wrapper::-webkit-scrollbar {
    width: 6px !important;
  }

  .lostfiles-table-wrapper::-webkit-scrollbar-thumb {
    background-color: #888 !important;
    border-radius: 3px !important;
  }

  /* Hacer las columnas de la tabla más compactas */
  .lostfiles-table th:nth-child(3),
  .lostfiles-table td:nth-child(3) {
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lostfiles-table th:nth-child(4),
  .lostfiles-table td:nth-child(4) {
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lostfiles-table th:nth-child(5),
  .lostfiles-table td:nth-child(5) {
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
