diff --git a/assets/css/style.css b/assets/css/style.css index 00f57bf5..0eb1fcdd 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -180,11 +180,12 @@ h1, .h1 { /* Table Styles */ .table-responsive { - overflow-x: auto; + border-radius: 8px; + overflow: hidden; /* This is important to make border-radius work on tables */ + border: 1px solid #dee2e6; } .table { margin-bottom: 0; - min-width: 600px; /* Prevent table from collapsing too much */ } .table thead th { @@ -258,6 +259,78 @@ h1, .h1 { color: #333; } +/* Excel-like table for specific pages */ +.excel-container { + overflow: auto !important; + max-height: 75vh; + border: 1px solid #dee2e6; + border-radius: 8px; + position: relative; +} +.excel-container .table { + min-width: 1200px; /* Ancho más moderado para que se vea más compacto */ + margin-bottom: 0; + border-collapse: separate; + border-spacing: 0; + table-layout: fixed; /* Ayuda a controlar mejor los anchos de columna */ +} +.excel-container th { + position: sticky; + top: 0; + z-index: 20; + background-color: #f8f9fa !important; + white-space: nowrap; + box-shadow: inset 0 -1px 0 #dee2e6; + font-size: 0.85rem; + padding: 8px 10px !important; +} +/* Fijar primera columna (ID) */ +.excel-container th:first-child, +.excel-container td:first-child { + position: sticky; + left: 0; + z-index: 15; + background-color: #f8f9fa !important; + box-shadow: inset -1px 0 0 #dee2e6; + width: 60px; /* Ancho fijo para el ID */ +} +.excel-container th:first-child { + z-index: 30; /* Esquina superior izquierda */ +} +.excel-container td { + white-space: normal; /* Permitir que el texto baje a la siguiente línea */ + word-wrap: break-word; + padding: 6px 10px !important; /* Padding más reducido */ + vertical-align: middle; + background-color: #fff; + font-size: 0.85rem; /* Fuente más pequeña como en Pedidos Rotulados */ + line-height: 1.2; +} +.excel-container tr:nth-of-type(odd) td { + background-color: #f9f9f9; +} +.excel-container tr:nth-of-type(odd) td:first-child { + background-color: #f1f1f1 !important; +} + +/* Barras de desplazamiento siempre visibles y más gruesas */ +.excel-container::-webkit-scrollbar { + width: 14px; + height: 14px; +} +.excel-container::-webkit-scrollbar-track { + background: #f1f1f1; + border-radius: 10px; +} +.excel-container::-webkit-scrollbar-thumb { + background: #888; + border-radius: 10px; + border: 3px solid #f1f1f1; +} +.excel-container::-webkit-scrollbar-thumb:hover { + background: #555; +} + /* Custom Search Table Styles */ .custom-search-table { border-collapse: separate; @@ -288,13 +361,6 @@ h1, .h1 { background-color: #f8f9fa; /* Subtle hover effect */ } -/* Add rounded corners to the container of the table */ -.table-responsive { - border-radius: 8px; - overflow: hidden; /* This is important to make border-radius work on tables */ - border: 1px solid #dee2e6; -} - /* Submenu Styles */ .sidebar .submenu { display: none; diff --git a/assets/uploads/vouchers/6a11debddf593-967.png b/assets/uploads/vouchers/6a11debddf593-967.png new file mode 100644 index 00000000..aa85a6fe Binary files /dev/null and b/assets/uploads/vouchers/6a11debddf593-967.png differ diff --git a/gestiones.php b/gestiones.php index 87f3464f..aae04f91 100644 --- a/gestiones.php +++ b/gestiones.php @@ -221,7 +221,6 @@ include 'layout_header.php'; -

No hay pedidos que coincidan con el filtro.

diff --git a/pedidos.php b/pedidos.php index 13eff33f..213a0631 100644 --- a/pedidos.php +++ b/pedidos.php @@ -221,7 +221,6 @@ include 'layout_header.php'; -

No hay pedidos que coincidan con el filtro.

diff --git a/ruta_contraentrega.php b/ruta_contraentrega.php index 33874c35..eeb1181e 100644 --- a/ruta_contraentrega.php +++ b/ruta_contraentrega.php @@ -179,33 +179,33 @@ include 'layout_header.php';
-
-
- +
+
+
- - - - - + + + + + - - - - - - - - + + + + + + + + - - + + - - - - + + + + @@ -283,7 +283,6 @@ include 'layout_header.php'; -
IDSeguimientoPaqueteEstadoClienteIDSeguimientoPaqueteEstadoClienteCelularDirecciónReferenciaCiudadProvincia/DistritoCoordenadasProductoCantidadCelularDirecciónReferenciaCiudadProvincia/DistritoCoordenadasProductoCant. Monto TotalMonto DebeTotalDebe Fecha de EntregaAsesorFecha CreaciónAccionesF. EntregaAsesorF. CreaciónAcciones

No hay pedidos que coincidan con el filtro.

@@ -348,7 +347,8 @@ $(document).ready(function() { "order": [[ 0, "desc" ]], "paging": false, "lengthChange": false, - "info": false + "info": false, + "scrollX": false // Desactivamos scrollX de DataTables para usar nuestro excel-container }); });