﻿html,body{
	width:100%;
	height:100%;
}
a{
	text-decoration:none;
}
#nprogress .spinner{
	top: 80px;
}

.leftbar{
	position: fixed;
	top: 0;
	/* rtl:raw:
	right: 0;
	*/
	bottom: 0;
	/* rtl:remove */
	left: 0;
	z-index: 100; /* Behind the navbar */
	padding: 56px 0 0; /* Height of navbar */
	box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.nav{
	background-color:var(--bs-body-bg);
}

.leftbar .nav-link{
	position:relative;
	margin-bottom: 0.1rem;
	padding: 0.7rem 0.7rem;
	border-radius:0;
	color:var(--bs-body-color);
}
.leftbar .nav-link:hover{
	background-color: #f0f0f0;
	color:var(--bs-body-color);
}

.table-hover>tbody>tr:hover>*{
    color:unset;
}

.leftbar .has_sub i.right {
	position: absolute;
	right: 0.7rem;
	top: 1rem;
	transition: transform .35s ease;
}
.leftbar .has_sub[aria-expanded="true"] i.right {
	transform: rotate(-90deg)
}

.page-item.disabled .page-link,
.page-link{
	background-color:var(--bs-body-bg);
	color:var(--bs-body-color);
}


.main_container{
	margin-left: 280px;
	width:unset;
	padding-top:1rem;
	
}
@media (max-width:768px) {
	.main_container { margin-left:0;}
	.leftbar{
		bottom:unset;
	}
}

.select2-container--classic .select2-selection--single, .select2-container--default .select2-selection--single{
	min-height: 36px;
    padding: 5px;
    border: 1px solid #ced4da;
}
.select2-container--default .select2-search--dropdown .select2-search__field{
	border: 1px solid #ced4da;
	outline:none;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus{
	border-color:#86b7fe;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
	height:32px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered{
	line-height:unset;
	color:unset;
}
.select2-container--default .select2-results__option--selected{
	color:#000;
}
.btn-close:focus,
.page-link:focus,
.form-select:focus,
.form-control:focus{
	box-shadow:0 .25rem .5rem rgba(0,0,0,.15)!important;
}
.btn{
	box-shadow:none!important;
}

.btn-check:focus,.btn:focus{
	box-shadow:0 .25rem .5rem rgba(0,0,0,.15)!important;
}

.table{
	color:unset;
	background-color:#fff;
}
.table-hover>tbody>tr:hover{
	color:unset;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active{
	background-color:var(--bs-bg-color);
	color:var(--bs-body-color);
}


body.dark{
	--bs-body-color:#e1e1e1;
	--bs-body-bg:#222;
}

body.dark .dropdown-item:hover,
body.dark .leftbar .nav-link:hover{
	background-color: #505050;
}

body.dark .modal-content{
	background-color:var(--bs-body-bg);
}

body.dark .btn-close{
	background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e1e1e1'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat
}



body.dark .layui-layer-content{
	background-color:var(--bs-body-bg);
}
body.dark .layui-layer-msg{
	border-color:#111;
}
body.dark .layui-layer-title{
	background-color:#111;
	border-bottom:none;
	color:unset;
}
body.dark .layui-layer-dialog{
	background-color:var(--bs-body-bg);
}
body.dark input.form-control,
body.dark select.form-control,
body.dark .input-order,
body.dark textarea.form-control,
body.dark .form-check-input{
	background-color:#404040;
	color:var(--bs-body-color);
}

body.dark .form-select{
	background-color:#404040;
	color:var(--bs-body-color);
	background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23e1e1e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}



body.dark .select2-selection{
	background-color:#404040;
	color:var(--bs-body-color);
}
body.dark .select2-dropdown,
body.dark .select2-search__field{
	background-color:#404040;
	color:var(--bs-body-color);
}
body.dark .select2-container--default.select2-container--disabled .select2-selection--single{
	background-color:#777;
}
body.dark .dropdown-menu{
	background-color:var(--bs-body-bg);
}
body.dark .dropdown-item{
	color:var(--bs-body-color);
}
body.dark .table{
	background-color:#333;
}

body.dark .card{
	background-color:#444;
}


