.navbar .navbar-header {
	align-items: center;
	display: flex;
	height: 56px;
	padding-left: 20px;
}

.navbar .navbar-brand.app-navbar-brand {
	align-items: center;
	gap: 7px;
	display: inline-flex !important;
	height: 56px;
	line-height: 1;
	margin: 0 !important;
	max-width: 160px;
	padding: 0 18px 0 0 !important;
}

.navbar .app-navbar-mark {
	display: block;
	filter: brightness(0) invert(1);
	height: 23px !important;
	object-fit: contain;
	width: 23px !important;
}

.navbar .app-navbar-word {
	color: #fff;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.navbar .navbar-header {
		height: 52px;
		padding-left: 8px;
	}

	.navbar .navbar-brand.app-navbar-brand {
		gap: 6px;
		height: 52px;
		max-width: 132px;
		padding-right: 10px !important;
	}

	.navbar .app-navbar-mark {
		height: 20px !important;
		width: 20px !important;
	}

	.navbar .app-navbar-word {
		font-size: 16px;
	}
}

.block-header .page-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
	flex-wrap: wrap;
}

.block-header .page-header-actions .breadcrumb {
	float: none !important;
	margin: 0;
}

.block-header .page-add-btn {
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
	color: #00cfd1;
	display: inline-flex !important;
	height: 44px;
	justify-content: center;
	line-height: 1;
	min-width: 44px;
	padding: 0 !important;
	width: 44px;
}

.block-header .page-add-btn i {
	font-size: 24px;
	line-height: 1;
}

@media (max-width: 767px) {
	.block-header .page-header-actions {
		justify-content: flex-start;
		margin-top: 12px;
	}
}

.medicine-search-field {
	position: relative;
}

.medicine-search-results {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 0 0 6px 6px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
	margin-top: -6px;
	position: absolute;
	width: 100%;
	z-index: 20;
}

.medicine-search-item {
	align-items: center;
	cursor: pointer;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 12px 16px;
}

.medicine-search-item + .medicine-search-item {
	border-top: 1px solid #f0f0f0;
}

.medicine-search-item:hover {
	background: #f7fafa;
}

.medicine-search-item small {
	color: #8b99a3;
	display: block;
	margin-top: 4px;
}

.doctor-list-toolbar {
	align-items: center;
	display: flex;
	gap: 16px;
	justify-content: space-between;
	margin-bottom: 16px;
}

.doctor-list-toolbar label {
	color: #616161;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0;
	white-space: nowrap;
}

.doctor-search-form {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: flex-end;
}

.doctor-search-form input[type="search"] {
	min-width: 260px;
}

.doctor-search-clear {
	color: #00cfd1;
	font-size: 13px;
}

.doctor-list-table {
	margin-bottom: 0;
}

.sidebar .menu .list .ml-menu li.active > a {
	color: #546e7a;
	font-weight: 600;
}

.template-preview {
	background: #f7fafa;
	border: 1px solid #edf1f2;
	border-radius: 6px;
	margin-bottom: 18px;
	padding: 14px 16px;
}

.template-preview strong {
	color: #37474f;
	display: block;
	margin-bottom: 10px;
}

.template-medicine-checklist {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.template-medicine-option {
	align-items: flex-start;
	background: #fff;
	border: 1px solid #e6ecef;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	gap: 10px;
	line-height: 1.35;
	margin: 0;
	padding: 10px 12px;
}

.template-medicine-option input {
	margin-top: 3px;
}

.template-medicine-option .template-medicine-name {
	color: #37474f;
	display: block;
	font-weight: 600;
}

.template-medicine-option small {
	color: #8b99a3;
	display: block;
	margin-top: 4px;
}

.template-medicine-option:hover {
	border-color: #d7e2e5;
}

.patient-visit-summary {
	background: #f7fafa;
	border: 1px solid #edf1f2;
	border-radius: 6px;
	margin-bottom: 18px;
	padding: 12px 16px;
}

.patient-visit-summary span {
	color: #37474f;
	display: block;
	font-weight: 600;
}

.patient-visit-summary small {
	color: #8b99a3;
	display: block;
	margin-top: 4px;
}

.dashboard-card-link,
.dashboard-card-link:hover,
.dashboard-card-link:focus {
	color: inherit;
	display: block;
	text-decoration: none;
}

.dashboard-card-link .card {
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.dashboard-card-link:hover .card {
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

.app-toast-stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: min(440px, calc(100vw - 32px));
	position: fixed;
	right: 22px;
	top: 84px;
	z-index: 99999;
}

.app-toast {
	align-items: center;
	animation: appToastIn 220ms ease-out both;
	background: #1c8f57;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
	color: #fff;
	display: flex;
	gap: 14px;
	justify-content: space-between;
	min-width: 360px;
	overflow: hidden;
	padding: 13px 14px 13px 16px;
}

.app-toast.is-hiding {
	animation: appToastOut 180ms ease-in both;
}

.app-toast-success {
	background: #1c8f57;
}

.app-toast-danger,
.app-toast-error {
	background: #d84343;
}

.app-toast-warning {
	background: #c47a00;
}

.app-toast-info {
	background: #148ea1;
}

.app-toast-body {
	flex: 1;
	min-width: 0;
}

.app-toast-message {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.app-toast-close {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, 0.8);
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	padding: 0;
}

.app-toast-close:hover {
	color: #fff;
}

@keyframes appToastIn {
	from {
		opacity: 0;
		transform: translate3d(24px, -8px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes appToastOut {
	from {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
	to {
		opacity: 0;
		transform: translate3d(24px, -8px, 0);
	}
}

@media (max-width: 767px) {
	.app-toast-stack {
		left: 16px;
		right: 16px;
		top: 76px;
		max-width: none;
	}

	.app-toast {
		min-width: 0;
		padding: 12px 13px;
		width: 100%;
	}

	.doctor-list-toolbar,
	.doctor-search-form,
	.doctor-list-toolbar label {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.doctor-search-form input[type="search"] {
		min-width: 0;
		width: 100%;
	}
}
