/*-- All --*/
* {
	padding: 0;
	margin: 0;
}

/*-- General Tags --*/
p {
	margin-bottom: 0.7rem;
}

/*-- Main --*/
#main {
	overflow: hidden;
	min-height: 100vh;
}

/*-- Alert --*/
.alert {
	font-weight: 400;
	margin-bottom: 5px;
}
.alert .close {
	color: #fff;
}
.alert > p {
	margin-bottom: 0.2rem;
}

/*-- Navbar Brand --*/
.navbar .navbar-brand img {
	height: 40px;
}

/*-- Topbar --*/
ul.navbar-nav a {
	cursor: pointer;
}

/*-- Sidebar --*/
.sidebar {
	height: 100vh;
	max-height: 100vh;
	position: fixed;
	left: 0;
	top: 64px;
	overflow-x: hidden;
	overflow-y: auto;
	transition: 0.5s;
	scrollbar-width: thin;
	z-index: 1040;
}

.sidebar::-webkit-scrollbar {
	width: 7px !important;
}
.sidebar::-webkit-scrollbar-track {
    background: #aaa;
}
.sidebar::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}

.sidebar.more {
	width: 15rem;
}
.sidebar.less {
	width: 0rem;
}

.sidebar ul {
	list-style: none;
	font-size: 10pt;
	width: 15rem;
	margin-bottom: 64px;
}

.sidebar ul div {
	padding-left: 20px;
	background: rgba(0, 0, 0, 0.2);
}

.sidebar ul > li > a {
	border-top: solid 1px #555;
}
.sidebar ul > li:first-child a {
	border-top: none;
}
.sidebar ul > li:last-child a {
	border-bottom: solid 1px #555;
}

.sidebar ul li a {
	display: block;
	color: #888;
	padding: 15px;
	cursor: pointer;
	text-decoration: none;
}

.sidebar ul li a:hover {
	color: #eee;
	border-top: solid 1px #333;
	border-bottom: solid 1px #333;
	background: rgba(255, 255, 255, 0.1);
}

.sidebar ul li a.active {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.sidebar ul li.dropdown > a::after {
	content: " ▾";
	float: right;
	padding-right: 5px;
}

.sidebar ul li.dropdown > div {
	padding-left: 15px;
}

.sidebar .dropdown-divider {
	border-top: 1px solid rgba(0, 0, 0, 0.3);
}

/*-- mainWrapper --*/
#mainWrapper {
	min-height: 70vh;
	overflow-x: auto;
	margin-top: 66px;
	margin-bottom: 80px;
	transition: margin-left 0.5s;
}

/*-- pageWrapper --*/
#pageWrapper {
	min-width: 320px;
}

/*-- myFooter --*/
#myFooter {
	transition: margin-left 0.5s;
	height: 70px;
	min-width: 320px;
}

/*-- mainWrapper --*/
#mainWrapper.more,
#myFooter.more {
	margin-left: 0rem;
}
#mainWrapper.less,
#myFooter.less {
	margin-left: 15rem;
}

/*-- Dropdown Header --*/
.dropdown-header {
	text-align: center;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: solid 1px rgba(0, 0, 0, 0.2);
}

/*-- Scroll to Top --*/
.scroll-to-top {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	display: none;
	width: 2.75rem;
	height: 2.75rem;
	text-align: center;
	color: #fff;
	background: rgba(90, 92, 105, 0.5);
	line-height: 46px;
}

/*-- Borders --*/
.border-left-primary {
	border-left: 0.25rem solid #008cba !important;
}

.border-bottom-primary {
	border-bottom: 0.25rem solid #008cba !important;
}

.border-left-secondary {
	border-left: 0.25rem solid #eee !important;
}

.border-bottom-secondary {
	border-bottom: 0.25rem solid #eee !important;
}

.border-left-success {
	border-left: 0.25rem solid #43ac6a !important;
}

.border-bottom-success {
	border-bottom: 0.25rem solid #43ac6a !important;
}

.border-left-info {
	border-left: 0.25rem solid #5bc0de !important;
}

.border-bottom-info {
	border-bottom: 0.25rem solid #5bc0de !important;
}

.border-left-warning {
	border-left: 0.25rem solid #e99002 !important;
}

.border-bottom-warning {
	border-bottom: 0.25rem solid #e99002 !important;
}

.border-left-danger {
	border-left: 0.25rem solid #f04124 !important;
}

.border-bottom-danger {
	border-bottom: 0.25rem solid #f04124 !important;
}

.border-left-light {
	border-left: 0.25rem solid #eee !important;
}

.border-bottom-light {
	border-bottom: 0.25rem solid #eee !important;
}

.border-left-dark {
	border-left: 0.25rem solid #222 !important;
}

.border-bottom-dark {
	border-bottom: 0.25rem solid #222 !important;
}

/*-- Charts --*/
.chart-area,
.chart-bar {
	position: relative;
	height: 10rem;
	width: 100%;
}

.chart-pie {
	position: relative;
	height: 15rem;
	width: 100%;
}

/*-- Modal --*/
.modal {
	margin-top: 4em;
	margin-bottom: 3em;
	background: rgba(0, 0, 0, 0.4);
}

.modal-loader {
	text-align: center;
	color: #f5f5f5;
	display: flex;
	flex-direction: column;
	pointer-events: auto;
	background-clip: padding-box;
}

.modal-loader > div {
	width: 100px;
	margin: auto;
}

.modal-header,
.modal-footer {
	padding: 5px 15px;
}
.modal-body {
	padding: 10px 15px;
}

/*-- Toast --*/
.toast {
	z-index: 1060;
	flex-basis: 450px;
	max-width: 450px;
}

/*-- Input Group --*/
.input-group .dropdown-menu {
	margin-top: 0;
	padding: 0;
}

.input-group .dropdown-menu label.dropdown-item {
	padding: 0.5rem 1.5rem;
	margin-bottom: 0;
}

.input-group-prepend > .input-group-text {
	border-right: none;
}

.input-group-apped > .input-group-text {
	border-left: none;
}

/*-- Form Control Text/Textarea --*/
.form-control.label-text,
.form-control.label-textarea {
	white-space: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
}

.form-control.label-textarea {
	height: 76px;
	white-space: normal;
}
.form-control::-webkit-scrollbar {
	height: 7px !important;
}
.form-control::-webkit-scrollbar-track {
    background: #aaa;
}
.form-control::-webkit-scrollbar-thumb {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}

/*-- Control Label --*/
label.control-label {
	font-weight: 600;
}

/*-- FormCheckInline for both --*/
.form-check-inline {
	margin-right: 0.2rem;
}

.form-check-inline input {
	margin-right: 5px;
}

/*-- Label Button --*/
label.btn {
	margin-bottom: 0;
}

/*-- Page Header --*/
.page-header {
	background: #eee;
	margin-bottom: 10px;
	border-bottom: solid 1px #ccc;
}

.page-header h3 small {
	font-size: 14pt;
}

/*-- Tables --*/
.table-sm th,
.table-sm td {
	white-space: nowrap;
}

.table-zero td {
	padding: 0 !important;
}

/*-- Table Responsive --*/
.table-responsive {
	overflow-y: auto;
	scrollbar-width: thin;
}

/*-- Pagination --*/
.pagination {
	float: none;
	display: inline-flex;
}
.pagination-info {
	text-align: center;
}

/*-- Nav Tabs --*/
.nav-tabs .nav-item {
	margin-bottom: -2px;
}
.nav-tabs .nav-link.active {
	border-bottom: none;
}
.tab-content {
	padding: 5px;
	overflow: hidden;
	border-left: 1px solid #eee;
}

/*-- Amount --*/
.amount {
	text-align: right;
}

/*-- Fieldset --*/
fieldset {
	border: solid 1px #ccc;
	margin-bottom: 10px;
}

fieldset > legend {
	width: auto;
	cursor: pointer;
	font-size: 1rem;
	margin-left: 10px;
	padding: 2px 10px;
	background: #eee;
	border: solid 1px #ccc;
}

fieldset > legend:hover {
	background: #ddd;
	color: #43ac6a;
}

fieldset > legend::after {
	content: " - ";
}

fieldset.less > legend {
	background: #ddd;
	color: #43ac6a;
}

fieldset.less > legend::after {
	content: " + ";
}

fieldset.less > div {
	display: none;
}

@media (min-width: 768px) {
	.chart-area,
	.chart-bar {
		height: 20rem;
	}

	.chart-pie {
		height: calc(20rem - 43px) !important;
	}

	.pagination {
		float: right;
	}
	.pagination-info {
		text-align: left;
	}
}
