From 3bf70f48d08681754dc9fbd617f888157e371dbc Mon Sep 17 00:00:00 2001 From: Lizandro Guarnizo <77708265+lizandrogd@users.noreply.github.com> Date: Thu, 9 Jul 2026 12:06:01 -0500 Subject: [PATCH] fix: convert detail panel from col-lg-5 inline to fixed drawer overlay MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Table now uses full col-12 width — no more horizontal scroll. Detail panel slides in from right as a fixed overlay with backdrop. Also renames stats card from "Importados RIPS" to "Importados Lab". Co-Authored-By: Claude Sonnet 4.6 --- lab_pacientes.php | 61 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 43 insertions(+), 18 deletions(-) diff --git a/lab_pacientes.php b/lab_pacientes.php index 927b321..72549b1 100644 --- a/lab_pacientes.php +++ b/lab_pacientes.php @@ -56,7 +56,28 @@ $brandDark = sprintf('#%02x%02x%02x', color: #64748b; } .hist-badge { font-size: .72rem; } - #detail-panel { display: none; } + /* Drawer de detalle (fixed overlay) */ + #detail-backdrop { + display: none; + position: fixed; inset: 0; + background: rgba(0,0,0,.25); + z-index: 1049; + } + #detail-panel { + position: fixed; + top: 0; right: 0; + height: 100vh; + width: 420px; + z-index: 1050; + background: #fff; + box-shadow: -4px 0 24px rgba(0,0,0,.18); + transform: translateX(110%); + transition: transform .25s cubic-bezier(.4,0,.2,1); + display: flex; flex-direction: column; + } + #detail-panel.open { transform: translateX(0); } + @media (max-width: 480px) { #detail-panel { width: 100vw; } } + #detail-body { flex: 1; overflow-y: auto; padding: 1rem; } /* ── Modal header ──────────────────────────────── */ .modal-header-brand { @@ -125,9 +146,10 @@ $brandDark = sprintf('#%02x%02x%02x', /* ── Panel detalle ─────────────────────────────── */ .detail-header-band { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); - color: #fff; border-radius: .5rem .5rem 0 0; + color: #fff; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; + flex-shrink: 0; } .detail-header-band .btn-close { filter: invert(1) brightness(2); } @@ -165,9 +187,9 @@ require_once __DIR__ . '/shared/components/sidebar.php';
-
+
-
Importados RIPS
+
Importados Lab
@@ -211,7 +233,7 @@ require_once __DIR__ . '/shared/components/sidebar.php';
-
+
@@ -241,21 +263,22 @@ require_once __DIR__ . '/shared/components/sidebar.php';
- - -
-
-
- Paciente - -
-
-
-
+ +
+ + +
+
+ Paciente + +
+
+
+