
// Variables
$sn-white: #fff;
$sn-gray: #788088;
$sn-green: #289f68;
$sn-purple: #6f42c1;
$sn-black: #000;
$sn-gray-2: #495057;
$sn-blue: #1A73E7;
$sn-red: #f60c0c;
$sn-light: #495057;
$sn-transparent: rgba(0, 0, 0, 0);

:root,
[data-bs-theme=light] {
	--bg-color: #F9FAFB;
}
[data-bs-theme=dark] {
    color-scheme: dark;
	--bg-color: #0F0F14;
	--ms-dropdown-bg: #212529;
	--ms-option-bg-pointed: #d3d9e038;
	--ms-option-color-pointed: #fff;
	--message-color: #fff !important;
	--base-background-color: #232F3C !important;
	--button-background-color: #232F3C !important;
}

%custom-input {
    font-size: 14px !important;
	min-height: 36.5px !important;
	border-radius: 6px !important;
    border-color: var(--bs-border-color) !important;
    box-shadow: none !important;
	background: transparent !important;
	color: var(--bs-body-color) !important;
}

%input-animat{
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
	border: 1px solid $sn-green !important;
}

@mixin getclosing($color: $sn-blue) {
  color: $color !important;
  font-size: 17px !important;
}

/*Admin Content  */

:root {
	--transaction_3: all 0.3s;
	--nav_size_big: 250px;
	--nav_size_small: 66px;
}

body {
	margin: 0;
	padding: 0;
	font-size: 15px;
	background: var(--bg-color);
}
*,
p,
h1,
h2,
h3,
h4,
h5,
h6,
ul{
	padding: 0;
	margin: 0;
}
button,
input,
textarea,
select{
	font-size: 15px !important;
}
li {
	list-style-type: none;
}
.input-group-prepend {
	.input-group-text {
		font-size: 15px;
	}
}

.wrap-login {
	padding-bottom: 50px;
	.body-login {
		background-color: var(--bs-body-bg);
		width: 420px;
		min-height: 300px;
		position: relative;
		border-radius: 15px;
		display: flex;
		justify-content: center;
		align-items: center;
		padding: 40px;
		margin-top: 9%;
		.box-img {
			display: flex;
			justify-content: center;
			align-items: center;
			img {
				max-width: 150px;
			}
		}
		.password-input {
			padding-right: 40px;
		}
		.password-toggle-btn {
			position: absolute;
			top: 50%;
			right: 0;
			width: 40px;
			text-align: center;
			transform: translateY(-50%);
			cursor: pointer;
		}
	}
}

.multiselect {
	@extend %custom-input;
	.multiselect-search {
		border-radius: 5px !important;
		background: transparent !important
	}
	.multiselect-tags-search {
		background: transparent !important
	}
	.multiselect-wrapper{
        @extend %custom-input;
    }
}

.mx-input {
	@extend %custom-input;
	&:focus {
		@extend %input-animat;

	}
}
.vs__dropdown-toggle {
	@extend %custom-input;
}
.multiselect.is-active {
	@extend %input-animat;
}
.is-invalid {
	.vs__dropdown-toggle {
		border: 1px solid $sn-red !important;
	}
	input {
		border: 1px solid $sn-red !important;
	}
}
.mx-datepicker-main{
	background-color: var(--bs-body-bg) !important;
}
.mx-datepicker.is-invalid {
	input {
		border: 1px solid $sn-red !important;
	}
}
.mx-datepicker {
	width: 100% !important;
}
.mx-icon-calendar,
.mx-icon-clear{
    color: var(--ms-caret-color, #999) !important;
}
.mx-datepicker-popup {
	z-index: 2000 !important;
	border-radius: 0.8rem;
}
.table_scroll {
	height: calc(100vh - 207px);
}

.fixed_table{
	position: sticky;
	top: 0;
	z-index: 9;
}

.fixed_table::after{
    border-bottom: 1px solid var(--bs-table-border-color);
	top: 0;
	left: 0;
	right: 0;
	position: absolute;
	content: '';
}
.fixed_table::before{
    border-top: 1px solid var(--bs-table-border-color);
	bottom: 1px;
	left: 0;
	right: 0;
	position: absolute;
	content: '';
}
.fixed_start{
	position: sticky;
    left: 0;
	top: 0;
	z-index: 0;
    background-color: #f4f4f4;
}
.fixed_start::before{
    border-right: 1px solid #eee;
	top: 0;
	bottom: 0;
	left: -1px;
	position: absolute;
	content: '';
}
.fixed_start::after{
    border-right: 1px solid #eee;
	top: 0;
	bottom: 0;
	right: 0;
	position: absolute;
	content: '';
}
.tbscroll_nopaginat {
	height: calc(100vh - 170px);
}

.top_header {
	height: 52px;
}

.d_header {
	margin-left: 250px;
	.navbar_left {
		transition: var(--transaction_3);
		width: var(--nav_size_big);
		left: 0;
		top: 0;
		overflow-y: auto;
		scrollbar-width: none;
		position: fixed;
		border: 0;
		border-radius: 0;
		height: 100vh;
		z-index: 99;
		.cus_icon {
			display: flex;
			width: 50px;
			text-align: center;
			justify-content: center;
			color: $sn-gray;
		}
		&::-webkit-scrollbar {
			height: 17px;
			display: none;
		}
		&::-webkit-scrollbar-trac {
			border-radius: 100px;
		}
		&::-webkit-scrollbar-thumb {
			border-radius: 100px;
			border: 5px solid transparent;
			background-clip: content-box;
			background-color: $sn-light;
		}
		li {
			font-size: 15px;
		}
		.cus_collapse {
			.router-link-exact-active {
				color: $sn-green;
				background: $sn-transparent !important;
			}
			.menu-list {
				padding-left: 58px;
				border: none;
				padding-top: 12px;
				padding-bottom: 12px;
				white-space: nowrap;
			}
		}
		.ml_list {
			box-sizing: border-box;
			white-space: nowrap;
			padding-right: 18px;
			border-radius: 25px;
			line-height: 50px;
			user-select: none;
			font-size: 15px;
			margin: 5px 8px;
			cursor: pointer;
			height: 50px;
			transition: all 0.4s;
			&:hover {
				background-color: #d3d9e038;
				background-image:  linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
			}
		}
	}
}

.d_footer {
	margin-left: 250px;
	.d_header {
		margin-left: 250px;
	}
}

.box-dropdown {
	padding: 10px 100px 10px 15px;
	border-radius: 5px;
}

.logo {
	img {
		transition: var(--transaction_3);
	}
}

.admin_menu {
	.d_header {
		transition: var(--transaction_3);
	}
	.d_content {
		transition: var(--transaction_3);
		height: calc(100vh - 52px);
		margin-left: 250px;
	}
}
.is_hide_navbar {
	.d_header {
		.navbar_left {
			z-index: 999;
			width: var(--nav_size_small);
		}
	}
	.admin_menu {
		.d_header {
			margin-left: var(--nav_size_small);
		}
		.d_content {
			margin-left: var(--nav_size_small);
		}
		.d_footer {
			margin-left: var(--nav_size_small);
		}
	}
	.nd_none {
		display: none;
	}
	.cus_collapse {
		opacity: 0;
		height: 0;
	}
}

.mobile {
    .admin_menu {
        .d_header {
            margin-left: 0;
            .navbar_left {
				width: 0;
                position: static;
                height: unset;
            }
        }
        .d_content{
            margin-left: 0;
        }
    }
}

.is_hide_navbar.o_hide_navbar {
	.admin_menu {
		.d_header {
			margin-left: var(--nav_size_big);
		}
		.d_content {
			margin-left: var(--nav_size_big);
		}
		.d_footer {
			margin-left: var(--nav_size_big);
		}
	}
	.d_header {
		.navbar_left {
			width: var(--nav_size_big);
		}
		.nd_none {
			display: block;
		}
		.cus_collapse {
			opacity: 1;
			height: auto;
		}
	}
}

.vue-input-tag-wrapper {
	border-radius: 5px !important;
	.new-tag {
		padding: 0px 10px !important;
	}
}
.form-control {
	&:focus {
		border-color: $sn-green;
	}
}
.d_content {
	padding: 16px;
	height: 100vh;
}
.select_unborder {
	.vs__dropdown-toggle {
		border: none;
		padding: 0;
	}
}
.report {
	.vs__dropdown-toggle {
		border: none;
	}
	.vs__dropdown-menu {
		border: none;
	}
}
.no-data {
	position: relative;
	&:before {
		content: "";
		display: block;
		padding-top: 100px;
	}
	&:after {
		content: "\1782\17D2\1798\17B6\1793\1791\17B7\1793\17D2\1793\1793\17D0\1799";
		position: absolute;
		left: 50%;
		z-index: 99;
		font-size: 20px;
		transform: translate(-50%, -50px);
		height: 50px;
		padding-left: 36px;
		background: url(/icons/s_notice.png) 0 1px no-repeat;
		background-size: 26px;
	}
}
.loading {
	img {
		padding-right: 3px;
	}
	top: 50%;
	left: 50%;
	z-index: 9999;
	position: absolute;
	padding: 10px 20px;
	box-shadow: #f5f5f5 0px 5px 10px;
	border-radius: 5px;
	background: var(--warning);
	color: $sn-white;
	transform: translate(-50%, -50%);
}
.report_print {
	.report_header {
		padding: 0px 30px;
		.logo {
			width: 150px;
		}
	}
	.content {
		background-color: $sn-white;
	}
	.footer {
		.report-footer {
			display: flex;
			justify-content: center;
			.items {
				width: 33.33%;
				position: relative;
				text-align: center;
			}
		}
	}
}
.custom_report {
	.report_header {
		padding: 0px 30px;
		.logo {
			width: 150px;
		}
	}
	.content {
		background-color: $sn-white;
	}
	.footer {
		.report-footer {
			display: flex;
			justify-content: center;
			.items {
				width: 33.33%;
				position: relative;
				text-align: center;
			}
		}
	}
}
.upload-image {
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	height: 202px;
	width: 100%;
	overflow: hidden;
	border: 0;
}
.banner-image {
	width: 100%;
	min-height: 330px;
	border-radius: 3px;
	.timage {
		width: 100%;
		height: 35px;
		line-height: 35px;
		padding: 0 15px;
		border-bottom: 1px solid red;
	}
	.image {
		transition: 0.5s;
		position: relative;
		width: 100%;
		height: 330px;
		overflow: hidden;
	}
	img {
		width: 50%;
		margin: auto;
	}
	.brower {
		position: absolute;
		top: 55%;
		left: 50%;
		width: 70px;
		height: 70px;
		border-radius: 100%;
		transition: 0.5s;
		z-index: 999;
		transform: translate(-50%, -50%);
		cursor: pointer;
		&::after {
			content: "";
			visibility: hidden;
			position: absolute;
			top: 50%;
			left: 50%;
			width: 30px;
			height: 1px;
			border-radius: 100%;
			background-color: $sn-black;
			transform: translate(-50%, -50%);
		}
		&::before {
			visibility: hidden;
			content: "";
			position: absolute;
			top: 50%;
			left: 50%;
			width: 1px;
			height: 30px;
			border-radius: 100%;
			background-color: $sn-black;
			transform: translate(-50%, -50%);
		}
	}
	&:hover {
		.image {
			background-color: $sn-transparent;
		}
		img {
			opacity: 0.3;
		}
		.brower {
			background-color: $sn-white;
			&::before {
				visibility: visible;
			}
			&::after {
				visibility: visible;
			}
		}
	}
}

.v-suggestions {
	input {
		display: block;
		width: 100%;
		height: calc(1.5em + 0.75rem + 2px);
		padding: 0.375rem 0.75rem;
		font-size: 1rem;
		line-height: 1.5;
		background-color: $sn-transparent;
		background-clip: padding-box;
		border: 1px solid var(--bs-border-color) !important;
		border-radius: 0.25rem;
		transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	}
	.suggestions{
		background: var(--bs-body-bg) !important;
	}
	.items .item.is-active, .items .item:hover{
		background: var(--bs-tertiary-bg) !important;
	}
}

.custom-reciept *{
	font-family: var(--bs-font-sans-serif), "Siemreap", "Koulen", "Moul", sans-serif;
}
.custom-reciept {
	font-size: 14px;
	.header-receipt {
		position: relative;
		margin-bottom: 50px;
		.logo {
			position: absolute;
			top: 0;
			left: 0;
		}
	}
}
.main-color {
    @include getclosing;
}
.main-color-purple{
	@include getclosing($color: $sn-purple)
}
.sub-color {
    @include getclosing($color: $sn-green)
}
.submain-color {
    @include getclosing($color: $sn-red)
}
.vue-image-crop-upload .vicp-wrap{
	max-width: 600px;
	width: unset !important;
	background-color: var(--bs-body-bg) !important;
}

.vue-image-crop-upload .vicp-crop-right{
	float: unset !important;
}
.vue-image-crop-upload .vicp-crop-left{
	margin-right: 20px;
}
.vue-image-crop-upload .vicp-preview{
	overflow: visible !important;
}

.mortgage_loan{
	position: relative;
	font-size: 14px;
}
.mortgage_loan *{
	font-family: var(--bs-font-sans-serif), "Siemreap", "Koulen", "Moul", sans-serif;
}
.actions .dropdown-menu {
    margin-top: 0px !important;
    border:0;
    .dropdown-item {
        padding: 0.35rem 1.2rem;
    }
}
