/*
Author		:	Joshua Musyoka
Date 		: 	17th April 2024
Title   	: 	Hospixal Version 2.0.0
Company   	: 	Techxal ( techxal.com )
*/

:root {
  --green: #048866;
  --green-light: #78BE41;  
  --grey-bg: #eee;
  --pending: #0dcaf0;
  --success: #498754;
  --failed: #e70d2a;
  --cancelled: #8b3f20;
  --white: #fff;
  --blue: #4b1ad9;
}

body {
	background-color: var(--grey-bg);
}
.row {
	--bs-gutter-x: 0rem;
}
.btn-hospixal {
	background-color: var(--green);
	border-radius: 0;
}
.btn-hospixal:hover,
.btn-hospixal:active,
.btn-hospixal:focus {
	background-color: var(--green-light);
}
.form-control {
	border-radius: 0;
}
.form-text {
	color: var(--green);
}
.form-text a {
	color: var(--green);
	text-decoration: none;
	font-weight: bold;
}
/* .modal-dialog {
	margin-right: 0;
} */
.modal-content {
	border-radius: 0;
}
.modal-header {
	border-bottom : 0;
}
aside ul {
	width: 100%;
}
aside ul li a {
	width: 100%;
}

i.dropdown-toggle::after {
    display: none;
}
i.fa-ellipsis {
    cursor: pointer;
}
main .table-content {
    height: 74vh;
    overflow-y: auto;
}
ul.column-2 {
    -moz-column-count: 42;
    -moz-column-gap: 5px;
    -webkit-column-count: 2;
    -webkit-column-gap: 5px;
    column-count: 2;
    column-gap: 5px;
}
.column-3 {
	column-count: 3;
}
/* .precise-content {
    overflow-y: auto;
    max-height: 90vh;
} */

td.dropdown:hover .dropdown-menu,
button.dropdown:hover .dropdown-menu,
.btn-group .dropdown:hover .dropdown-menu {
	display: block;
    position: absolute;
    inset: -10px 0px auto auto;
    margin: 0px;
    transform: translate(0px, 41px);
	cursor: pointer;
}
/* .service-type {
	width: calc(100%/2);
} */
.service-type > span {
	width: calc(100%/2);
	cursor: pointer;
	border-bottom: 1px solid #ccc;
}
.service-type > span.active {
	border-bottom: 2px solid var(--green);
}

:not(.input-group)>.bootstrap-select.form-control:not([class*=col-]) {
    width: 100%;
    border: 1px solid #ced4da;
}
input[name="amount"] {
	font-size: 2.5em;
	text-align: right;
}

/* Center-align the tabs */
.nav-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make tabs equal in width */
.nav-tabs .nav-item {
    flex: 1;
    text-align: center;
    cursor: pointer;
}
/* .nav-tabs .nav-item button { width: 100%; padding-bottom: 10px; } */
.nav-tabs .nav-link {
    border: none;
    color: var(--bs-body-color);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom: 0 solid var(--green);
    transition: border 0.3s ease;
}
.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: var(--green);
    background-color: var(--bs-nav-tabs-link-active-bg);
    border-bottom: 1px solid var(--green);
    color: var(--green);
    font-weight: bold;
}

/* Responsiveness */
/* Sidebar */
.sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	padding: 58px 0 0;
	box-shadow: 0 2px 5px 0 rgb(0 0 0 / 5%), 0 2px 10px 0 rgb(0 0 0 / 5%);
	width: 240px;
	z-index: 600;
}

@media (max-width: 991.98px) {
	.sidebar {
		width: 100%;
	}
}

.sidebar .active {
	border-radius: 5px;
	box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%);
}

.bg-header-dark {
	display: block;
}

@media (min-width: 991.98px) {
	main {
		padding-left: 240px;
	}
	.navbar {
		display: none;
	}
}

.navbar {
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}



@media (max-width: 991.98px) {
	#sidebarMenu {
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		width: 250px;
		z-index: 1000;
		display: none;

	}

	#sidebarMenu.show {
		display: block;
		transform: translateX(0);
		transition: width 0.5s ease;
	}

	.navbar-toggler {
		display: block !important;
	}

	#closeButton {
		display: none;
	}

	#ofcanvah{
		width: 250px;
	}
}

@media (max-width: 991.98px) {
	main {
		margin-top: 60px;
	}
	.form.large-devices {
		height: 100vh;
	}
}

@media (min-width: 992px) {
	.form.large-devices {
		margin: 3rem !important;
	}
}

/*@media (max-width: 767px) {*/
/*	.overflow-scroll {*/
/*		overflow-x: auto;*/
/*		-webkit-overflow-scrolling: touch;*/
/*		flex-wrap: nowrap;*/
/*	}*/
/*	.overflow-scroll .col-md-6 {*/
/*		flex: 0 0 75%;*/
/*		max-width: 75%;*/
/*	}*/
/*}*/

/*@media (min-width: 768px) {*/
/*	.overflow-scroll {*/
/*		overflow: hidden !important;*/
/*	}*/
/*}*/


.overflow-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	flex-wrap: nowrap;
	margin-bottom: 15px; /* To give some space at the bottom */
}

@media (min-width: 992px) {
	.overflow-scroll {
		overflow-x: scroll;
	}
}

/* Adjust the width of each card for different screen sizes */
@media (max-width: 575.98px) {
	.overflow-scroll .col-md-6 {
		flex: 0 0 100%;
		max-width: 100%;
	}
}

@media (min-width: 576px) and (max-width: 767.98px) {
	.overflow-scroll .col-md-6 {
		flex: 0 0 50%;
		max-width: 50%;
	}
}

@media (min-width: 768px) and (max-width: 991.98px) {
	.overflow-scroll .col-md-6 {
		flex: 0 0 33.3333%;
		max-width: 33.3333%;
	}
}

@media (min-width: 992px) {
	.overflow-scroll .col-md-6 {
		flex: 0 0 auto;
		max-width: none;
	}
}

.overflow-scroll::-webkit-scrollbar {
	display: inline-block;
}

.overflow-scroll:only-child {
	overflow-x: hidden;
}

.offcanvas-header {
	position: relative;
}
.btn-close {
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1;
}
.btn { text-transform: capitalize; }
.text-bg-pending {
    color: var(--white) !important;
    background-color: var(--pending) !important;
}
.text-bg-approved,
.text-bg-active {
    color: var(--white) !important;
    background-color: var(--success) !important;
}
.text-bg-rejected, 
.text-bg-in-active {
    color: var(--white) !important;
    background-color: var(--failed) !important;
}
.text-bg-cancelled {
    color: var(--white) !important;
    background-color: var(--failed) !important;
}
.text-pending { color: var(--pending) !important; }
.text-processing { color: var(--blue) !important; }
.text-approved { color: var(--success) !important; }
.text-rejected { color: var(--failed) !important; }
.text-cancelled { color: var(--cancelled) !important; }
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--green-light);
}
.offcanvas-title {
	flex-grow: 1;
	text-align: center;
}
.password-toggle {
    cursor: pointer;
}
.loading-spinner{
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

@media (max-width: 767px) {
	.top-menu {
		display: none;
	}
}

#ofcanvah{
	height: 100vh;
	overflow-y: auto;
}

.profile-dropdown {
	bottom: 10px;
	width: 100%;
	margin-right: 20px;
}

/*
 steps form
 */

.step-container {
	position: relative;
	text-align: center;
	transform: translateY(-43%);
}

.step-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid  var(--green);
	line-height: 30px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 10px;
	cursor: pointer; /* Added cursor pointer */
}

.step-line {
	position: absolute;
	top: 16px;
	left: 50px;
	width: calc(100% - 100px);
	height: 2px;
	background-color:  var(--green);
	z-index: -1;
}

#multi-step-form{
	overflow-x: hidden;
}


/*
loading css
 */

.loading-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9999;
}

.spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	border: 4px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top: 4px solid #ffffff;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

#stickyDropdown {
	width: calc(100% - 40px);
	bottom: 20px;
	left: 20px;
	right: 20px;
	position: absolute;
}

#stickyDropdown .dropdown-toggle{
	width: 100%;

}

@media (max-width: 576px) {
	.d-flex.justify-content-between.flex-wrap .btn-group.nav {
		margin-left: auto;
	}
}

.float-right-sm {
	float: right;
	margin: 0 auto;
	height: 30px;
}
