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 + +
+
+
+