584 lines
18 KiB
HTML
584 lines
18 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>HMS Medical Store - Multi-Building Pharmacy System</title>
|
|
<link rel="manifest" href="/App/MedicalStore/manifest.json">
|
|
<meta name="theme-color" content="#0f172a">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<link rel="icon" href="/assets/img/logo.png" type="image/png">
|
|
|
|
<!-- Google Fonts & Bootstrap 5 CSS & Icons -->
|
|
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' data: blob:; style-src 'self' 'unsafe-inline'; font-src 'self' data:; img-src 'self' data: blob:; connect-src 'self' blob: data:; object-src 'none';">
|
|
|
|
<!-- Bootstrap 5 CSS & Icons -->
|
|
<link rel="stylesheet" href="/assets/vendor/bootstrap/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="/assets/vendor/bootstrap-icons/bootstrap-icons.css">
|
|
|
|
<!-- React 18 & ReactDOM UMD & Babel (Local) -->
|
|
<script src="/assets/vendor/react/react.production.min.js"></script>
|
|
<script src="/assets/vendor/react/react-dom.production.min.js"></script>
|
|
|
|
<style>
|
|
:root {
|
|
--slate-900: #0f172a;
|
|
--slate-800: #1e293b;
|
|
--slate-700: #334155;
|
|
--primary: #0891b2;
|
|
--primary-hover: #0e7490;
|
|
--accent-green: #10b981;
|
|
--accent-amber: #f59e0b;
|
|
--accent-rose: #f43f5e;
|
|
--bg-light: #f8fafc;
|
|
}
|
|
|
|
body {
|
|
background-color: var(--bg-light);
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
color: #1e293b;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.navbar-store {
|
|
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
|
color: #ffffff;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
.badge-license {
|
|
background: rgba(8, 145, 178, 0.2);
|
|
color: #38bdf8;
|
|
border: 1px solid rgba(56, 189, 248, 0.4);
|
|
font-size: 0.72rem;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-gst {
|
|
background: rgba(16, 185, 129, 0.2);
|
|
color: #34d399;
|
|
border: 1px solid rgba(52, 211, 153, 0.4);
|
|
font-size: 0.72rem;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.nav-tabs-custom {
|
|
background: #ffffff;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
padding: 0 16px;
|
|
}
|
|
|
|
.nav-tabs-custom .nav-link {
|
|
color: #64748b;
|
|
font-weight: 600;
|
|
border: none;
|
|
border-bottom: 3px solid transparent;
|
|
padding: 12px 18px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.nav-tabs-custom .nav-link.active {
|
|
color: var(--primary);
|
|
border-bottom-color: var(--primary);
|
|
background: transparent;
|
|
}
|
|
|
|
.counter-card {
|
|
background: #ffffff;
|
|
border-radius: 12px;
|
|
border: 1px solid #e2e8f0;
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
|
|
padding: 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.table-pos thead th {
|
|
background-color: #f1f5f9;
|
|
color: #475569;
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
padding: 8px 10px;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
}
|
|
|
|
.table-pos tbody td {
|
|
font-size: 0.85rem;
|
|
padding: 8px 10px;
|
|
vertical-align: middle;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
|
|
.pos-summary-card {
|
|
background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
|
|
color: #ffffff;
|
|
border-radius: 16px;
|
|
padding: 20px;
|
|
box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
|
|
}
|
|
|
|
/* Slide-in Checkout Desk Drawer */
|
|
.checkout-drawer-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(15, 23, 42, 0.65);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 1045;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
.checkout-drawer-overlay.open {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
.checkout-drawer {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
width: 500px;
|
|
max-width: 96vw;
|
|
height: 100vh;
|
|
background: linear-gradient(165deg, #1e293b 0%, #0f172a 100%);
|
|
color: #ffffff;
|
|
z-index: 1050;
|
|
box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateX(105%);
|
|
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
.checkout-drawer.open {
|
|
transform: translateX(0);
|
|
}
|
|
.checkout-drawer-header {
|
|
padding: 16px 20px;
|
|
background: rgba(15, 23, 42, 0.85);
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.checkout-drawer-body {
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
}
|
|
.checkout-drawer-body::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
.checkout-drawer-body::-webkit-scrollbar-thumb {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Slide-in Bill Print Drawer */
|
|
.print-drawer-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
background: rgba(15, 23, 42, 0.65);
|
|
backdrop-filter: blur(4px);
|
|
z-index: 1045;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.25s ease;
|
|
}
|
|
.print-drawer-overlay.open {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
.print-drawer {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
width: 720px;
|
|
max-width: 96vw;
|
|
height: 100vh;
|
|
background: #f1f5f9;
|
|
color: #1e293b;
|
|
z-index: 1050;
|
|
box-shadow: -12px 0 40px rgba(0, 0, 0, 0.55);
|
|
display: flex;
|
|
flex-direction: column;
|
|
transform: translateX(105%);
|
|
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
}
|
|
.print-drawer.open {
|
|
transform: translateX(0);
|
|
}
|
|
.print-drawer-header {
|
|
padding: 14px 20px;
|
|
background: #0f172a;
|
|
color: #ffffff;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.print-drawer-body {
|
|
padding: 20px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
background: #cbd5e1;
|
|
}
|
|
.print-drawer-body::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
.print-drawer-body::-webkit-scrollbar-thumb {
|
|
background: rgba(100, 116, 139, 0.4);
|
|
border-radius: 4px;
|
|
}
|
|
.print-paper-card {
|
|
background: #ffffff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
|
|
padding: 24px;
|
|
margin: 0 auto;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.btn-primary-custom {
|
|
background: linear-gradient(135deg, #0891b2 0%, #0284c7 100%);
|
|
border: none;
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.btn-primary-custom:hover {
|
|
background: linear-gradient(135deg, #0e7490 0%, #0369a1 100%);
|
|
color: #ffffff;
|
|
box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
|
|
}
|
|
|
|
.btn-success-custom {
|
|
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
|
|
border: none;
|
|
color: #ffffff;
|
|
font-weight: 600;
|
|
border-radius: 8px;
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
.badge-fefo {
|
|
background: #dcfce7;
|
|
color: #166534;
|
|
border: 1px solid #86efac;
|
|
font-size: 0.7rem;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.badge-near-expiry {
|
|
background: #fef3c7;
|
|
color: #92400e;
|
|
border: 1px solid #fcd34d;
|
|
font-size: 0.7rem;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge-expired {
|
|
background: #fee2e2;
|
|
color: #991b1b;
|
|
border: 1px solid #fca5a5;
|
|
font-size: 0.7rem;
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Patient Pharmacy History & Records Sidebar */
|
|
.patient-history-sidebar {
|
|
background: #ffffff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 12px;
|
|
box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
.patient-history-header {
|
|
padding: 12px 16px;
|
|
background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
|
|
color: #ffffff;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
.patient-history-tabs {
|
|
background: #f8fafc;
|
|
border-bottom: 1px solid #e2e8f0;
|
|
padding: 6px 8px;
|
|
display: flex;
|
|
gap: 4px;
|
|
overflow-x: auto;
|
|
}
|
|
.patient-history-tab-btn {
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
padding: 5px 8px;
|
|
border-radius: 6px;
|
|
border: 1px solid transparent;
|
|
background: transparent;
|
|
color: #64748b;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
transition: all 0.15s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
.patient-history-tab-btn.active {
|
|
background: #ffffff;
|
|
color: #0284c7;
|
|
border-color: #cbd5e1;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
|
|
}
|
|
.patient-history-tab-btn:hover:not(.active) {
|
|
background: #f1f5f9;
|
|
color: #1e293b;
|
|
}
|
|
.patient-history-body {
|
|
padding: 12px;
|
|
overflow-y: auto;
|
|
flex: 1;
|
|
max-height: calc(100vh - 220px);
|
|
}
|
|
.patient-history-body::-webkit-scrollbar {
|
|
width: 5px;
|
|
}
|
|
.patient-history-body::-webkit-scrollbar-thumb {
|
|
background: #cbd5e1;
|
|
border-radius: 4px;
|
|
}
|
|
.history-med-card {
|
|
background: #ffffff;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 8px;
|
|
transition: all 0.15s ease;
|
|
}
|
|
.history-med-card:hover {
|
|
border-color: #38bdf8;
|
|
box-shadow: 0 3px 10px rgba(56, 189, 248, 0.12);
|
|
}
|
|
.history-med-card.last-given {
|
|
background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
|
|
border-color: #86efac;
|
|
}
|
|
.spin {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
@keyframes spin {
|
|
100% { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Invoices & Sales View Styles */
|
|
.invoices-stats-card {
|
|
border-radius: 10px;
|
|
padding: 14px 18px;
|
|
border: 1px solid #e2e8f0;
|
|
background: #ffffff;
|
|
box-shadow: 0 1px 4px rgba(0,0,0,0.03);
|
|
transition: transform 0.15s ease, box-shadow 0.15s ease;
|
|
}
|
|
.invoices-stats-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.06);
|
|
}
|
|
.invoices-date-pill {
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 0.78rem;
|
|
font-weight: 600;
|
|
border: 1px solid #cbd5e1;
|
|
background: #f8fafc;
|
|
color: #475569;
|
|
cursor: pointer;
|
|
transition: all 0.15s ease;
|
|
}
|
|
.invoices-date-pill.active {
|
|
background: #0284c7;
|
|
color: #ffffff;
|
|
border-color: #0284c7;
|
|
}
|
|
.invoices-table th {
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
color: #475569;
|
|
background-color: #f8fafc;
|
|
border-bottom: 2px solid #e2e8f0;
|
|
padding: 10px 12px;
|
|
}
|
|
.invoices-table td {
|
|
font-size: 0.84rem;
|
|
vertical-align: middle;
|
|
padding: 10px 12px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
}
|
|
.invoices-table tbody tr:hover {
|
|
background-color: #f8fafc;
|
|
}
|
|
|
|
.search-results-dropdown {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: #ffffff;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 8px;
|
|
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
|
max-height: 380px;
|
|
overflow-y: auto;
|
|
z-index: 1050;
|
|
}
|
|
|
|
.search-item-row {
|
|
padding: 10px 14px;
|
|
border-bottom: 1px solid #f1f5f9;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.search-item-row:hover {
|
|
background-color: #f8fafc;
|
|
}
|
|
|
|
/* -------------------------------------------------------------
|
|
PRINT FORMATS: 80mm Thermal, A5 Slip, and A4 Hospital Tax Invoice
|
|
------------------------------------------------------------- */
|
|
@media print {
|
|
@page {
|
|
size: auto;
|
|
margin: 6mm;
|
|
}
|
|
body * {
|
|
visibility: hidden;
|
|
}
|
|
#printable-container, #printable-container * {
|
|
visibility: visible;
|
|
}
|
|
#printable-container {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
margin: 0 !important;
|
|
padding: 0 !important;
|
|
}
|
|
.print-a4-invoice, .print-a5-invoice {
|
|
width: 100% !important;
|
|
max-width: 100% !important;
|
|
min-height: auto !important;
|
|
padding: 0 !important;
|
|
border: none !important;
|
|
box-shadow: none !important;
|
|
}
|
|
.print-thermal-80mm {
|
|
width: 76mm !important;
|
|
max-width: 100% !important;
|
|
border: none !important;
|
|
}
|
|
.no-print {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
/* 1. 80mm Thermal Slip */
|
|
.print-thermal-80mm {
|
|
width: 78mm;
|
|
max-width: 100%;
|
|
font-family: 'Courier New', Courier, monospace;
|
|
font-size: 11px;
|
|
line-height: 1.3;
|
|
color: #000;
|
|
padding: 8px;
|
|
margin: auto;
|
|
background: #fff;
|
|
border: 1px dashed #cbd5e1;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* 2. A5 Landscape Invoice (210mm x 148mm) */
|
|
.print-a5-invoice {
|
|
width: 100%;
|
|
max-width: 820px;
|
|
min-height: auto;
|
|
font-family: 'Inter', sans-serif;
|
|
font-size: 10.5px;
|
|
color: #1e293b;
|
|
padding: 16px;
|
|
margin: auto;
|
|
background: #fff;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 6px;
|
|
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
/* 3. A4 Full Comprehensive Tax Invoice */
|
|
.print-a4-invoice {
|
|
width: 100%;
|
|
max-width: 820px;
|
|
min-height: auto;
|
|
font-family: 'Inter', sans-serif;
|
|
font-size: 11.5px;
|
|
color: #0f172a;
|
|
padding: 20px;
|
|
margin: auto;
|
|
background: #fff;
|
|
border: 1px solid #cbd5e1;
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
/* Machine Lock Screen Overlay */
|
|
.machine-lock-backdrop {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(15, 23, 42, 0.95);
|
|
z-index: 2000;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 16px;
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div id="root"></div>
|
|
|
|
<script src="/App/MedicalStore/medicalstore-app.bundle.js"></script>
|
|
|
|
</body>
|
|
</html>
|