@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html{
	--lumo-primary-color: #2563eb !important;
	--lumo-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;

	--theme-primary-background: #fbfbfb;
	--theme-order-view-background: #f6f6f6;
	--theme-secondary-background: #ECF4F6;/* #e7e7e7;*/
	--theme-header-color: #36a9e1;
	--theme-primary-button-color: #2563eb;
	--theme-secondary-button-color: rgb(65, 175, 75);
	--theme-accent-button-color: #F9FBFC;
	--theme-dark-button-color: #C72C28;

	--theme-primary-text-color: white;
	--theme-secondary-text-color: white;
	--theme-shadow-text-color:#F1E2E1;

	--lumo-contrast-5pct: hsla(224, 35%, 35%, 0.05);
}
body {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	background-color: #f9f9f9;
	line-height: normal;
	pointer-events: auto !important;
	font-family: var(--lumo-font-family);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
div,span,label,p,h1,h2,h3,h4,h5,h6,a {
  -webkit-user-select: text; 
  -ms-user-select: text; 
  user-select: text; 
}
.v-container-main-layout {
	position: absolute;
	top: 55px;
	left: 215px;
	right: 0;
	bottom: 3px;
	overflow: hidden;
}
.v-report-main-layout {
	position: absolute;
	top: 55px;
	left: 0;
	right: 0;
	bottom: 3px;
	overflow: hidden;
}
.v-content-main-layout {
	height: 100%;
	width: 100%;
}
@media ( max-width :800px) {
	.v-content-main-layout{
	    overflow-x:auto !important;
	 }
}
.v-container {
	width: 100%;
}
.v-content {
	position: relative;
	height: 100%;
	display: inline-block;
	width: 100%;
	min-height: calc(100vh - 38px);
}
.v-inline-wrap{
	display: inline-flex;
    flex-flow: wrap;
    width: 100%;
    flex-grow: 1;
    justify-content: center;
}
.v-flex-wrap-center{
	display:inline-flex;
	justify-content:center;
	flex-flow:wrap;
	margin:auto;
	align-items:center;
}
.version-label {
	margin-top: 15px;
	font-weight: bold;
	text-align: center;
}
.labeled-form-layout vaadin-form-item {
	align-items: baseline;
}
.labeled-form-layout-center vaadin-form-item {
	align-items: center;
}
.record-result-pane-title {
	margin-top: 20px;
	font-weight: bold;
}

/* Admission Detail Drawer Styles */
.admission-detail-drawer {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	width: 500px !important;
	max-width: 500px !important;
	height: 100vh !important;
	background: white !important;
	box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12) !important;
	z-index: 1000 !important;
	transform: translateX(100%) !important;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
	display: flex !important;
	flex-direction: column !important;
	overflow: hidden !important;
	visibility: hidden;
	box-sizing: border-box !important;
}

.admission-detail-drawer * {
	box-sizing: border-box;
}

.admission-detail-drawer.drawer-open {
	transform: translateX(0) !important;
	visibility: visible !important;
}

.drawer-header {
	flex-shrink: 0;
	width: 100%;
	margin: 0 !important;
	padding: 16px 24px !important;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: white;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.drawer-content {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	width: 100%;
}

.patient-info-section {
	width: 100%;
	margin: 0 !important;
	padding: 10px 24px 20px 24px !important;
	background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
	color: white;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.drawer-footer {
	flex-shrink: 0;
}

.drawer-close-button {
	transition: all 0.2s ease !important;
	border-radius: 6px !important;
}

.drawer-close-button:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	transform: scale(1.05);
}

/* Timeline Styles */
.timeline-item {
	animation: fadeInLeft 0.4s ease-out;
}

.timeline-dot {
	transition: all 0.2s ease;
}

.timeline-item:hover .timeline-dot {
	transform: scale(1.2);
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInLeft {
	from {
		opacity: 0;
		transform: translateX(-20px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Vaadin Grid Typography Improvements */
/*
vaadin-grid {
	font-family: var(--lumo-font-family) !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

vaadin-grid-cell-content {
	font-family: var(--lumo-font-family) !important;
	font-size: 14px;
	font-weight: var(--font-weight-normal);
	letter-spacing: -0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

vaadin-grid::part(header-cell) {
	font-family: var(--lumo-font-family) !important;
	font-size: 12px;
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
*/
/* Responsive */
@media (max-width: 768px) {
	.admission-detail-drawer {
		width: 100%;
		max-width: 450px;
	}
}