1357 lines
34 KiB
HTML
1357 lines
34 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Clinical Record — Ivory</title>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
|
|
<script src="https://unpkg.com/lucide@latest/dist/umd/lucide.js"></script>
|
|
<style>
|
|
/* =========================================================
|
|
RESET & BASE
|
|
========================================================= */
|
|
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
|
|
|
:root {
|
|
/* Warm palette */
|
|
--ivory-bg: #FAF8F5;
|
|
--ivory-card: #FFFDFB;
|
|
--ivory-border: #E8E0D8;
|
|
--ivory-divider: #EDE6DE;
|
|
--ivory-muted: #D5CCC3;
|
|
--ivory-stone: #A39888;
|
|
--ivory-text: #3A332D;
|
|
--ivory-text-sec: #6D6358;
|
|
--ivory-text-dim: #9B9186;
|
|
|
|
/* Sidebar & banner */
|
|
--sidebar-bg: #2C2520;
|
|
--sidebar-hover: #3A332D;
|
|
--sidebar-text: #C9C0B6;
|
|
--sidebar-active: #F5F0EB;
|
|
--banner-bg: #3A332D;
|
|
--banner-text: #C9C0B6;
|
|
--banner-label: #8A8078;
|
|
|
|
/* Accent */
|
|
--accent: #0D7377;
|
|
--accent-hover: #0A5E61;
|
|
--accent-subtle: rgba(13, 115, 119, 0.08);
|
|
--accent-badge: rgba(13, 115, 119, 0.12);
|
|
|
|
/* Status */
|
|
--status-green: #5B8C6A;
|
|
--status-amber: #B8945A;
|
|
--status-red: #B85C5C;
|
|
--status-green-bg: rgba(91, 140, 106, 0.10);
|
|
--status-amber-bg: rgba(184, 148, 90, 0.10);
|
|
|
|
/* Shadows */
|
|
--shadow-card: 0 1px 2px rgba(44, 37, 32, 0.03),
|
|
0 4px 8px rgba(44, 37, 32, 0.03),
|
|
0 8px 24px rgba(44, 37, 32, 0.04);
|
|
--shadow-card-hover: 0 1px 2px rgba(44, 37, 32, 0.04),
|
|
0 6px 12px rgba(44, 37, 32, 0.05),
|
|
0 12px 32px rgba(44, 37, 32, 0.06);
|
|
--shadow-banner: 0 1px 3px rgba(44, 37, 32, 0.08),
|
|
0 4px 12px rgba(44, 37, 32, 0.06);
|
|
|
|
/* Layout */
|
|
--sidebar-width: 220px;
|
|
--banner-height: 80px;
|
|
|
|
/* Typography */
|
|
--font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
|
|
--font-mono: 'IBM Plex Mono', 'Consolas', monospace;
|
|
}
|
|
|
|
html {
|
|
font-size: 14px;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-sans);
|
|
color: var(--ivory-text);
|
|
background: var(--ivory-bg);
|
|
line-height: 1.5;
|
|
overflow: hidden;
|
|
height: 100vh;
|
|
}
|
|
|
|
/* =========================================================
|
|
PAPER TEXTURE (subtle dot pattern on content bg)
|
|
========================================================= */
|
|
.content-area::before {
|
|
content: '';
|
|
position: fixed;
|
|
top: 0; left: var(--sidebar-width); right: 0; bottom: 0;
|
|
background-image: radial-gradient(circle, rgba(44, 37, 32, 0.025) 1px, transparent 1px);
|
|
background-size: 20px 20px;
|
|
pointer-events: none;
|
|
z-index: 0;
|
|
}
|
|
|
|
/* =========================================================
|
|
LAYOUT SHELL
|
|
========================================================= */
|
|
.app-layout {
|
|
display: grid;
|
|
grid-template-columns: var(--sidebar-width) 1fr;
|
|
grid-template-rows: var(--banner-height) 1fr;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* =========================================================
|
|
SIDEBAR
|
|
========================================================= */
|
|
.sidebar {
|
|
grid-row: 1 / -1;
|
|
grid-column: 1;
|
|
background: var(--sidebar-bg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 20;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 20px 20px 16px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.sidebar-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.sidebar-logo-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
background: var(--accent);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-logo-icon svg {
|
|
color: #fff;
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.sidebar-logo-text {
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
color: var(--sidebar-active);
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.sidebar-subtitle {
|
|
font-size: 10.5px;
|
|
color: var(--ivory-stone);
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
margin-top: 6px;
|
|
padding-left: 38px;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 12px 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 9px 12px;
|
|
border-radius: 6px;
|
|
color: var(--sidebar-text);
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
position: relative;
|
|
text-decoration: none;
|
|
border: none;
|
|
background: none;
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--sidebar-hover);
|
|
color: var(--sidebar-active);
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: rgba(13, 115, 119, 0.10);
|
|
color: var(--sidebar-active);
|
|
}
|
|
|
|
.nav-item.active::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 3px;
|
|
height: 20px;
|
|
background: var(--accent);
|
|
border-radius: 0 3px 3px 0;
|
|
}
|
|
|
|
.nav-item svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.nav-item.active svg {
|
|
opacity: 1;
|
|
color: var(--accent);
|
|
}
|
|
|
|
.nav-item .nav-shortcut {
|
|
margin-left: auto;
|
|
font-family: var(--font-mono);
|
|
font-size: 10px;
|
|
color: rgba(201,192,182,0.35);
|
|
background: rgba(255,255,255,0.04);
|
|
padding: 1px 5px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.nav-item:hover .nav-shortcut,
|
|
.nav-item.active .nav-shortcut {
|
|
color: rgba(201,192,182,0.55);
|
|
background: rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 16px 20px;
|
|
border-top: 1px solid rgba(255,255,255,0.06);
|
|
}
|
|
|
|
.sidebar-session {
|
|
font-family: var(--font-mono);
|
|
font-size: 10.5px;
|
|
color: var(--ivory-stone);
|
|
}
|
|
|
|
.sidebar-session-user {
|
|
color: var(--sidebar-text);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sidebar-time {
|
|
font-family: var(--font-mono);
|
|
font-size: 10.5px;
|
|
color: var(--ivory-stone);
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.sidebar-version {
|
|
font-family: var(--font-mono);
|
|
font-size: 9.5px;
|
|
color: rgba(163,152,136,0.4);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* =========================================================
|
|
PATIENT BANNER
|
|
========================================================= */
|
|
.patient-banner {
|
|
grid-row: 1;
|
|
grid-column: 2;
|
|
background: var(--banner-bg);
|
|
box-shadow: var(--shadow-banner);
|
|
z-index: 15;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0 28px;
|
|
gap: 32px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.banner-name-block {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 12px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.banner-name {
|
|
font-size: 17px;
|
|
font-weight: 700;
|
|
color: #F5F0EB;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.banner-title {
|
|
font-size: 12px;
|
|
color: var(--banner-label);
|
|
font-weight: 400;
|
|
}
|
|
|
|
.banner-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
font-size: 11.5px;
|
|
font-weight: 500;
|
|
color: var(--status-green);
|
|
background: rgba(91,140,106,0.12);
|
|
padding: 3px 10px 3px 8px;
|
|
border-radius: 20px;
|
|
}
|
|
|
|
.banner-status-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: var(--status-green);
|
|
animation: pulse-dot 2s ease-in-out infinite;
|
|
}
|
|
|
|
@keyframes pulse-dot {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.5; }
|
|
}
|
|
|
|
.banner-badge {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: var(--accent);
|
|
background: var(--accent-badge);
|
|
padding: 3px 10px;
|
|
border-radius: 20px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.banner-details {
|
|
display: flex;
|
|
gap: 24px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.banner-detail {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.banner-detail-label {
|
|
font-size: 9.5px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--banner-label);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.banner-detail-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 12px;
|
|
color: var(--sidebar-text);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.banner-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
}
|
|
|
|
.banner-action-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: 5px;
|
|
font-size: 11.5px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
border: none;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.banner-action-btn svg {
|
|
width: 13px;
|
|
height: 13px;
|
|
}
|
|
|
|
.banner-action-primary {
|
|
background: var(--accent);
|
|
color: #fff;
|
|
}
|
|
|
|
.banner-action-primary:hover {
|
|
background: var(--accent-hover);
|
|
}
|
|
|
|
.banner-action-secondary {
|
|
background: rgba(255,255,255,0.08);
|
|
color: var(--sidebar-text);
|
|
}
|
|
|
|
.banner-action-secondary:hover {
|
|
background: rgba(255,255,255,0.14);
|
|
color: var(--sidebar-active);
|
|
}
|
|
|
|
/* =========================================================
|
|
CONTENT AREA
|
|
========================================================= */
|
|
.content-area {
|
|
grid-row: 2;
|
|
grid-column: 2;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding: 28px 32px 48px;
|
|
position: relative;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--ivory-muted) transparent;
|
|
}
|
|
|
|
.content-area::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.content-area::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.content-area::-webkit-scrollbar-thumb {
|
|
background: var(--ivory-muted);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.content-area::-webkit-scrollbar-thumb:hover {
|
|
background: var(--ivory-stone);
|
|
}
|
|
|
|
.content-inner {
|
|
max-width: 1080px;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* =========================================================
|
|
CLINICAL ALERT
|
|
========================================================= */
|
|
.clinical-alert {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 14px 18px;
|
|
background: linear-gradient(135deg, rgba(13,115,119,0.06) 0%, rgba(13,115,119,0.03) 100%);
|
|
border: 1px solid rgba(13,115,119,0.15);
|
|
border-radius: 8px;
|
|
margin-bottom: 24px;
|
|
position: relative;
|
|
}
|
|
|
|
.alert-icon {
|
|
flex-shrink: 0;
|
|
color: var(--accent);
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.alert-icon svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.alert-label {
|
|
font-size: 10.5px;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--accent);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.alert-text {
|
|
font-size: 13px;
|
|
color: var(--ivory-text);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.alert-dismiss {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 14px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--ivory-stone);
|
|
cursor: pointer;
|
|
padding: 2px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.alert-dismiss:hover {
|
|
color: var(--ivory-text);
|
|
}
|
|
|
|
.alert-dismiss svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
/* =========================================================
|
|
CARDS
|
|
========================================================= */
|
|
.card-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--ivory-card);
|
|
border-radius: 8px;
|
|
border: 1px solid var(--ivory-border);
|
|
box-shadow: var(--shadow-card);
|
|
overflow: hidden;
|
|
transition: box-shadow 0.2s ease, transform 0.2s ease;
|
|
}
|
|
|
|
.card:hover {
|
|
box-shadow: var(--shadow-card-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.card-full {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.card-header {
|
|
padding: 18px 24px 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.card-label {
|
|
font-size: 10.5px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--ivory-stone);
|
|
/* font-variant: small-caps; -- using uppercase + tracking instead for consistency */
|
|
}
|
|
|
|
.card-header-action {
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--accent);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
transition: color 0.15s ease;
|
|
}
|
|
|
|
.card-header-action:hover {
|
|
color: var(--accent-hover);
|
|
}
|
|
|
|
.card-header-action svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 16px 24px 20px;
|
|
}
|
|
|
|
/* =========================================================
|
|
DEMOGRAPHICS TABLE
|
|
========================================================= */
|
|
.demo-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0;
|
|
}
|
|
|
|
.demo-row {
|
|
display: flex;
|
|
align-items: baseline;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--ivory-divider);
|
|
}
|
|
|
|
.demo-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.demo-label {
|
|
font-size: 11.5px;
|
|
font-weight: 500;
|
|
color: var(--ivory-stone);
|
|
width: 110px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.demo-value {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--ivory-text);
|
|
}
|
|
|
|
.demo-value.mono {
|
|
font-family: var(--font-mono);
|
|
font-size: 12.5px;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.demo-value .status-active {
|
|
color: var(--status-green);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* =========================================================
|
|
PROBLEMS LIST
|
|
========================================================= */
|
|
.problem-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
|
|
.problem-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
padding: 11px 0;
|
|
border-bottom: 1px solid var(--ivory-divider);
|
|
}
|
|
|
|
.problem-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.problem-status-badge {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
padding: 2px 8px;
|
|
border-radius: 3px;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
.problem-status-badge.active {
|
|
color: var(--status-green);
|
|
background: var(--status-green-bg);
|
|
}
|
|
|
|
.problem-status-badge.in-progress {
|
|
color: var(--status-amber);
|
|
background: var(--status-amber-bg);
|
|
}
|
|
|
|
.problem-text {
|
|
font-size: 13px;
|
|
color: var(--ivory-text);
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.problem-date {
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
color: var(--ivory-text-dim);
|
|
margin-left: auto;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* =========================================================
|
|
MEDICATIONS TABLE
|
|
========================================================= */
|
|
.med-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.med-table thead th {
|
|
font-size: 10px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: var(--ivory-stone);
|
|
padding: 0 0 10px;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--ivory-border);
|
|
}
|
|
|
|
.med-table thead th:last-child {
|
|
text-align: right;
|
|
}
|
|
|
|
.med-table tbody td {
|
|
padding: 10px 0;
|
|
font-size: 13px;
|
|
color: var(--ivory-text);
|
|
border-bottom: 1px solid var(--ivory-divider);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.med-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.med-table tbody tr {
|
|
transition: background 0.12s ease;
|
|
}
|
|
|
|
.med-table tbody tr:hover {
|
|
background: rgba(163,152,136,0.04);
|
|
}
|
|
|
|
.med-table .med-name {
|
|
font-weight: 600;
|
|
font-family: var(--font-mono);
|
|
font-size: 12.5px;
|
|
}
|
|
|
|
.med-table .med-dose {
|
|
font-family: var(--font-mono);
|
|
font-size: 12.5px;
|
|
color: var(--ivory-text-sec);
|
|
}
|
|
|
|
.med-table .med-freq {
|
|
font-size: 12.5px;
|
|
color: var(--ivory-text-sec);
|
|
}
|
|
|
|
.med-table .med-status {
|
|
text-align: right;
|
|
}
|
|
|
|
.med-table .med-status-pill {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
color: var(--status-green);
|
|
background: var(--status-green-bg);
|
|
padding: 2px 9px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.med-status-dot {
|
|
width: 5px;
|
|
height: 5px;
|
|
border-radius: 50%;
|
|
background: var(--status-green);
|
|
}
|
|
|
|
/* Dose bar */
|
|
.dose-bar-wrap {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.dose-bar {
|
|
width: 48px;
|
|
height: 4px;
|
|
background: var(--ivory-divider);
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.dose-bar-fill {
|
|
height: 100%;
|
|
background: var(--accent);
|
|
border-radius: 2px;
|
|
transition: width 0.6s ease;
|
|
}
|
|
|
|
/* =========================================================
|
|
LAST CONSULTATION
|
|
========================================================= */
|
|
.consult-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-bottom: 14px;
|
|
padding-bottom: 12px;
|
|
border-bottom: 1px solid var(--ivory-divider);
|
|
}
|
|
|
|
.consult-date-block {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 52px;
|
|
height: 52px;
|
|
border-radius: 8px;
|
|
background: var(--accent-subtle);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.consult-date-day {
|
|
font-size: 18px;
|
|
font-weight: 700;
|
|
color: var(--accent);
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.consult-date-month {
|
|
font-size: 9.5px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
color: var(--accent);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.consult-meta {
|
|
flex: 1;
|
|
}
|
|
|
|
.consult-org {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--ivory-text);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.consult-role {
|
|
font-size: 12.5px;
|
|
color: var(--ivory-text-sec);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.consult-date-value {
|
|
font-family: var(--font-mono);
|
|
font-size: 11px;
|
|
color: var(--ivory-text-dim);
|
|
margin-left: auto;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.consult-summary {
|
|
font-size: 13.5px;
|
|
color: var(--ivory-text-sec);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.consult-summary strong {
|
|
color: var(--ivory-text);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* =========================================================
|
|
SCROLLBAR & SELECTION
|
|
========================================================= */
|
|
::selection {
|
|
background: rgba(13, 115, 119, 0.15);
|
|
color: var(--ivory-text);
|
|
}
|
|
|
|
/* =========================================================
|
|
SECTION TITLE (above card grid, if needed)
|
|
========================================================= */
|
|
.section-title {
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.1em;
|
|
color: var(--ivory-stone);
|
|
margin-bottom: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.section-title::after {
|
|
content: '';
|
|
flex: 1;
|
|
height: 1px;
|
|
background: var(--ivory-divider);
|
|
}
|
|
|
|
/* =========================================================
|
|
ANIMATIONS
|
|
========================================================= */
|
|
@keyframes fadeInUp {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(12px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.animate-in {
|
|
animation: fadeInUp 0.4s ease-out both;
|
|
}
|
|
|
|
.animate-delay-1 { animation-delay: 0.08s; }
|
|
.animate-delay-2 { animation-delay: 0.16s; }
|
|
.animate-delay-3 { animation-delay: 0.24s; }
|
|
.animate-delay-4 { animation-delay: 0.32s; }
|
|
|
|
@keyframes slideInLeft {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-16px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.sidebar {
|
|
animation: slideInLeft 0.35s ease-out both;
|
|
}
|
|
|
|
@keyframes slideDown {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
.patient-banner {
|
|
animation: slideDown 0.35s ease-out 0.1s both;
|
|
}
|
|
|
|
/* =========================================================
|
|
RESPONSIVE (minimal — optimised for 1280px+)
|
|
========================================================= */
|
|
@media (max-width: 1100px) {
|
|
.banner-details {
|
|
gap: 16px;
|
|
}
|
|
|
|
.banner-detail:nth-child(n+5) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.card-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="app-layout">
|
|
|
|
<!-- ===== SIDEBAR ===== -->
|
|
<nav class="sidebar" aria-label="Clinical record navigation">
|
|
<div class="sidebar-header">
|
|
<div class="sidebar-logo">
|
|
<div class="sidebar-logo-icon">
|
|
<i data-lucide="heart-pulse"></i>
|
|
</div>
|
|
<span class="sidebar-logo-text">ClinicalRecord</span>
|
|
</div>
|
|
<div class="sidebar-subtitle">Patient Management</div>
|
|
</div>
|
|
|
|
<div class="sidebar-nav">
|
|
<button class="nav-item active">
|
|
<i data-lucide="layout-dashboard"></i>
|
|
Summary
|
|
<span class="nav-shortcut">Alt+1</span>
|
|
</button>
|
|
<button class="nav-item">
|
|
<i data-lucide="briefcase"></i>
|
|
Experience
|
|
<span class="nav-shortcut">Alt+2</span>
|
|
</button>
|
|
<button class="nav-item">
|
|
<i data-lucide="flask-conical"></i>
|
|
Skills
|
|
<span class="nav-shortcut">Alt+3</span>
|
|
</button>
|
|
<button class="nav-item">
|
|
<i data-lucide="trophy"></i>
|
|
Achievements
|
|
<span class="nav-shortcut">Alt+4</span>
|
|
</button>
|
|
<button class="nav-item">
|
|
<i data-lucide="folder-open"></i>
|
|
Projects
|
|
<span class="nav-shortcut">Alt+5</span>
|
|
</button>
|
|
<button class="nav-item">
|
|
<i data-lucide="graduation-cap"></i>
|
|
Education
|
|
<span class="nav-shortcut">Alt+6</span>
|
|
</button>
|
|
<button class="nav-item">
|
|
<i data-lucide="mail"></i>
|
|
Contact
|
|
<span class="nav-shortcut">Alt+7</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="sidebar-footer">
|
|
<div class="sidebar-session">
|
|
Session: <span class="sidebar-session-user">A.CHARLWOOD</span>
|
|
</div>
|
|
<div class="sidebar-time" id="sidebar-time">--:--:--</div>
|
|
<div class="sidebar-version">v2.4.1 — Ivory</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<!-- ===== PATIENT BANNER ===== -->
|
|
<header class="patient-banner" role="banner">
|
|
<div class="banner-name-block">
|
|
<span class="banner-name">CHARLWOOD, Andrew</span>
|
|
<span class="banner-title">(Mr)</span>
|
|
</div>
|
|
|
|
<div class="banner-status">
|
|
<span class="banner-status-dot"></span>
|
|
Active
|
|
</div>
|
|
|
|
<span class="banner-badge">Open to opportunities</span>
|
|
|
|
<div class="banner-details">
|
|
<div class="banner-detail">
|
|
<span class="banner-detail-label">DOB</span>
|
|
<span class="banner-detail-value">14/02/1993</span>
|
|
</div>
|
|
<div class="banner-detail">
|
|
<span class="banner-detail-label">NHS No</span>
|
|
<span class="banner-detail-value">221 181 0</span>
|
|
</div>
|
|
<div class="banner-detail">
|
|
<span class="banner-detail-label">Address</span>
|
|
<span class="banner-detail-value">Norwich, NR1</span>
|
|
</div>
|
|
<div class="banner-detail">
|
|
<span class="banner-detail-label">Phone</span>
|
|
<span class="banner-detail-value">07795553088</span>
|
|
</div>
|
|
<div class="banner-detail">
|
|
<span class="banner-detail-label">Email</span>
|
|
<span class="banner-detail-value">andy@charlwood.xyz</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="banner-actions">
|
|
<button class="banner-action-btn banner-action-primary">
|
|
<i data-lucide="download"></i>
|
|
Download CV
|
|
</button>
|
|
<button class="banner-action-btn banner-action-secondary">
|
|
<i data-lucide="mail"></i>
|
|
Email
|
|
</button>
|
|
<button class="banner-action-btn banner-action-secondary">
|
|
<i data-lucide="linkedin"></i>
|
|
LinkedIn
|
|
</button>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- ===== CONTENT AREA ===== -->
|
|
<main class="content-area">
|
|
<div class="content-inner">
|
|
|
|
<!-- Clinical Alert -->
|
|
<div class="clinical-alert animate-in" role="alert">
|
|
<div class="alert-icon">
|
|
<i data-lucide="alert-triangle"></i>
|
|
</div>
|
|
<div>
|
|
<div class="alert-label">Alert</div>
|
|
<div class="alert-text">This patient has identified <strong>£14.6M</strong> in prescribing efficiency savings across Norfolk & Waveney ICS.</div>
|
|
</div>
|
|
<button class="alert-dismiss" aria-label="Dismiss alert" onclick="this.closest('.clinical-alert').style.display='none'">
|
|
<i data-lucide="x"></i>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="section-title">Summary Overview</div>
|
|
|
|
<!-- Card Grid -->
|
|
<div class="card-grid">
|
|
|
|
<!-- Card 1: Patient Demographics (full width) -->
|
|
<div class="card card-full animate-in animate-delay-1">
|
|
<div class="card-header">
|
|
<span class="card-label">Patient Demographics</span>
|
|
<span class="card-header-action">
|
|
View full record
|
|
<i data-lucide="chevron-right"></i>
|
|
</span>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="demo-grid">
|
|
<div>
|
|
<div class="demo-row">
|
|
<span class="demo-label">Name</span>
|
|
<span class="demo-value">Andrew Charlwood</span>
|
|
</div>
|
|
<div class="demo-row">
|
|
<span class="demo-label">DOB</span>
|
|
<span class="demo-value mono">14/02/1993</span>
|
|
</div>
|
|
<div class="demo-row">
|
|
<span class="demo-label">Registration</span>
|
|
<span class="demo-value mono">GPhC 2211810</span>
|
|
</div>
|
|
<div class="demo-row">
|
|
<span class="demo-label">Qualification</span>
|
|
<span class="demo-value">MPharm (Hons) 2:1</span>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="demo-row">
|
|
<span class="demo-label">Status</span>
|
|
<span class="demo-value"><span class="status-active">Active</span></span>
|
|
</div>
|
|
<div class="demo-row">
|
|
<span class="demo-label">Location</span>
|
|
<span class="demo-value">Norwich, NR1</span>
|
|
</div>
|
|
<div class="demo-row">
|
|
<span class="demo-label">Since</span>
|
|
<span class="demo-value mono">August 2016</span>
|
|
</div>
|
|
<div class="demo-row">
|
|
<span class="demo-label">University</span>
|
|
<span class="demo-value">UEA, 2015</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Card 2: Active Problems (half width) -->
|
|
<div class="card animate-in animate-delay-2">
|
|
<div class="card-header">
|
|
<span class="card-label">Active Problems</span>
|
|
<span class="card-header-action">
|
|
3 active
|
|
<i data-lucide="chevron-right"></i>
|
|
</span>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="problem-list">
|
|
<div class="problem-item">
|
|
<span class="problem-status-badge active">Active</span>
|
|
<span class="problem-text">£220M prescribing budget oversight</span>
|
|
<span class="problem-date">Jul 2024</span>
|
|
</div>
|
|
<div class="problem-item">
|
|
<span class="problem-status-badge in-progress">In Progress</span>
|
|
<span class="problem-text">Patient-level SQL analytics transformation</span>
|
|
<span class="problem-date">2025</span>
|
|
</div>
|
|
<div class="problem-item">
|
|
<span class="problem-status-badge in-progress">In Progress</span>
|
|
<span class="problem-text">Team data literacy programme</span>
|
|
<span class="problem-date">Jul 2024</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Card 3: Current Medications (half width) -->
|
|
<div class="card animate-in animate-delay-3">
|
|
<div class="card-header">
|
|
<span class="card-label">Current Medications (Quick View)</span>
|
|
<span class="card-header-action">
|
|
5 active
|
|
<i data-lucide="chevron-right"></i>
|
|
</span>
|
|
</div>
|
|
<div class="card-body">
|
|
<table class="med-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Drug</th>
|
|
<th>Dose</th>
|
|
<th>Freq</th>
|
|
<th>Status</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td class="med-name">Python</td>
|
|
<td>
|
|
<div class="dose-bar-wrap">
|
|
<span class="med-dose">90%</span>
|
|
<div class="dose-bar"><div class="dose-bar-fill" style="width:90%"></div></div>
|
|
</div>
|
|
</td>
|
|
<td class="med-freq">Daily</td>
|
|
<td class="med-status">
|
|
<span class="med-status-pill">
|
|
<span class="med-status-dot"></span>
|
|
Active
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="med-name">SQL</td>
|
|
<td>
|
|
<div class="dose-bar-wrap">
|
|
<span class="med-dose">88%</span>
|
|
<div class="dose-bar"><div class="dose-bar-fill" style="width:88%"></div></div>
|
|
</div>
|
|
</td>
|
|
<td class="med-freq">Daily</td>
|
|
<td class="med-status">
|
|
<span class="med-status-pill">
|
|
<span class="med-status-dot"></span>
|
|
Active
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="med-name">Power BI</td>
|
|
<td>
|
|
<div class="dose-bar-wrap">
|
|
<span class="med-dose">92%</span>
|
|
<div class="dose-bar"><div class="dose-bar-fill" style="width:92%"></div></div>
|
|
</div>
|
|
</td>
|
|
<td class="med-freq">Daily</td>
|
|
<td class="med-status">
|
|
<span class="med-status-pill">
|
|
<span class="med-status-dot"></span>
|
|
Active
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="med-name">Data Analysis</td>
|
|
<td>
|
|
<div class="dose-bar-wrap">
|
|
<span class="med-dose">95%</span>
|
|
<div class="dose-bar"><div class="dose-bar-fill" style="width:95%"></div></div>
|
|
</div>
|
|
</td>
|
|
<td class="med-freq">Daily</td>
|
|
<td class="med-status">
|
|
<span class="med-status-pill">
|
|
<span class="med-status-dot"></span>
|
|
Active
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="med-name">JavaScript/TS</td>
|
|
<td>
|
|
<div class="dose-bar-wrap">
|
|
<span class="med-dose">70%</span>
|
|
<div class="dose-bar"><div class="dose-bar-fill" style="width:70%"></div></div>
|
|
</div>
|
|
</td>
|
|
<td class="med-freq">Weekly</td>
|
|
<td class="med-status">
|
|
<span class="med-status-pill">
|
|
<span class="med-status-dot"></span>
|
|
Active
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Card 4: Last Consultation (full width) -->
|
|
<div class="card card-full animate-in animate-delay-4">
|
|
<div class="card-header">
|
|
<span class="card-label">Last Consultation</span>
|
|
<span class="card-header-action">
|
|
View all
|
|
<i data-lucide="chevron-right"></i>
|
|
</span>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="consult-header">
|
|
<div class="consult-date-block">
|
|
<span class="consult-date-day">14</span>
|
|
<span class="consult-date-month">May</span>
|
|
</div>
|
|
<div class="consult-meta">
|
|
<div class="consult-org">NHS Norfolk & Waveney ICB</div>
|
|
<div class="consult-role">Interim Head, Population Health & Data Analysis</div>
|
|
</div>
|
|
<div class="consult-date-value">14 May 2025</div>
|
|
</div>
|
|
<div class="consult-summary">
|
|
Led strategic delivery of <strong>population health initiatives</strong> and <strong>data-driven medicines optimisation</strong> across Norfolk & Waveney ICS. Directed analytical programmes spanning prescribing efficiency, patient-level data transformation, and cross-organisational reporting frameworks.
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div><!-- /card-grid -->
|
|
</div><!-- /content-inner -->
|
|
</main>
|
|
|
|
</div><!-- /app-layout -->
|
|
|
|
<script>
|
|
// Initialize Lucide icons
|
|
lucide.createIcons();
|
|
|
|
// Live clock in sidebar
|
|
function updateClock() {
|
|
const now = new Date();
|
|
const h = String(now.getHours()).padStart(2, '0');
|
|
const m = String(now.getMinutes()).padStart(2, '0');
|
|
const s = String(now.getSeconds()).padStart(2, '0');
|
|
document.getElementById('sidebar-time').textContent = h + ':' + m + ':' + s;
|
|
}
|
|
updateClock();
|
|
setInterval(updateClock, 1000);
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|