@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500;1,600&display=swap');
@import url('bootstrap/icon/bootstrap-icons.css');

html, body {
	font-family: Poppins, sans-serif;
	height: 100% !important;
}

body {
	background-color: #f6f7f7;
}

.app {
	height: 100%;
	animation: fade 0.5s !important;
	background-color: white;
	position: relative;
	display: flex;
	flex-direction: column;
}

th.collapsing {
	width: 1px;
	white-space: nowrap;
}


.card {
	box-shadow: 0 0 0 0 rgba(0, 0, 0, .15), 0 2px 3px rgba(0, 0, 0, .2);
}

.bd-lead {
	font-weight: 300;
}

a, .btn-link {
	color: #0366d6;
}

.btn-primary {
	color: #fff;
	background-color: #1b6ec2;
	border-color: #1861ac;
}

.table td {
	vertical-align: middle;
}

.top-row {
	height: 3.5rem;
	display: flex;
	align-items: center;
}

.main {
	flex: 1;
	height: 100% !important;
	overflow: auto;
}

.main .top-row {
	background-color: #f7f7f7;
	border-bottom: 1px solid #d6d5d5;
	justify-content: flex-end;
	box-shadow: 0 0 10px rgba(0, 0, 0, .2);
	z-index: 999;
}

.main .top-row > a, .main .top-row .btn-link {
	white-space: nowrap;
	margin-left: 1.5rem;
}

.main .top-row a:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar {
	/*background-image: linear-gradient(180deg, #2c2541DD 0%, #2c2541 70%);*/
	background-color: #2c2541;
	box-shadow: 0 0 10px rgba(0, 0, 0, .2);
	overflow-y: auto;
}

.sidebar .top {
	/*background-color: rgba(0, 0, 0, 0.4);*/
	text-align: center;
	display: block;
}

/*.sidebar .navbar-brand {*/
/*	font-size: 1.1rem;*/
/*	*/
/*}*/

.sidebar .oi {
	width: 2rem;
	font-size: 1.1rem;
	vertical-align: text-top;
	top: -2px;
}

.sidebar .nav-item {
	font-size: 0.9rem;
	padding-bottom: 0.5rem;
}

.sidebar .nav-item:first-of-type {
	padding-top: 1rem;
}

.sidebar .nav-item:last-of-type {
	padding-bottom: 1rem;
}

.sidebar .nav-item a {
	color: #d7d7d7;
	border-radius: 4px;
	/*height: 3rem;*/
	display: flex;
	align-items: center;
	/*line-height: 3rem;*/
}

.sidebar .nav-item a.active {
	background-color: rgba(255, 255, 255, 0.25);
	color: white;
}

.sidebar .nav-item a:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: white;
}

.content {
	padding-top: 1.1rem;
}

.main-content {
	flex: 1 0 auto;
	padding-bottom: 20px;
}

.page-content {
	animation: slide-right 0.4s !important;
}


.navbar-toggler {
	background-color: rgba(255, 255, 255, 0.1);
}

/*.invalid {*/
/*	outline: 1px solid red;*/
/*}*/

.validation-message {
	width: 100%;
	margin-top: .25rem;
	font-size: 80%;
	color: #dc3545;
	display: block !important;
	animation: slide-down 0.4s ease;
}

.validation-errors .validation-message {
	display: revert !important;
	animation: fade 0.4s ease;
}

.validation-summary-errors {
	animation: fade 0.4s ease;
}

.validation-message.field-validation-valid {
	animation: unset;
}

.field-validation-error {
	animation: slide-down 0.4s ease;
}

#blazor-error-ui {
	background: lightyellow;
	bottom: 0;
	box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
	display: none;
	left: 0;
	padding: 0.6rem 1.25rem 0.7rem 1.25rem;
	position: fixed;
	width: 100%;
	z-index: 1000;
}

#blazor-error-ui .dismiss {
	cursor: pointer;
	position: absolute;
	right: 0.75rem;
	top: 0.5rem;
}

/*@media (max-width: 768px) {*/
/*	.main .top-row:not(.auth) {*/
/*		display: none;*/
/*	}*/

/*	.main .top-row.auth {*/
/*		justify-content: space-between;*/
/*	}*/

/*	.main .top-row a, .main .top-row .btn-link {*/
/*		margin-left: 0;*/
/*	}*/
/*}*/

@media (min-width: 1264px) {
	.app {
		flex-direction: row;
	}

	.sidebar {
		width: 300px;
		height: 100vh;
		position: sticky;

		top: 0;
	}

	.main .top-row {
		position: sticky;
		top: 0;
	}

	/*.main > div {*/
	/*	padding-left: 2rem !important;*/
	/*	padding-right: 1.5rem !important;*/
	/*}*/
	.navbar-toggler {
		display: none;
	}

	.sidebar .collapse {
		display: block;
	}
}


.blazored-toast {
	animation: slide-up 0.4s !important;
}

.sidebar .nav-link {
	transition: all 0.3s ease-out;
	overflow: hidden;
}

.sidebar .nav-link:active {
	transition: all 0.2s ease-out;
	background-color: rgba(255, 255, 255, 0.6) !important;
}

.sidebar .nav-link.active:hover {
	background-color: rgba(255, 255, 255, 0.25) !important;
}

.blazored-toast {
	zoom: 0.8;
}

.blazored-toast-close {
	transition: all 0.2s ease-out;
	border-radius: .25rem;
}

.blazored-toast-close:focus, .blazored-toast-close:active {
	outline: none !important;
	box-shadow: none;
}

.blazored-toast-close:hover {
	background-color: rgba(255, 255, 255, 0.2) !important;
}

.blazored-toast-close:active:hover {
	background-color: rgba(255, 255, 255, 0.4) !important;
}


/*.blazored-toast:hover {
	opacity: 0.6;
}*/

.table thead th.desc {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZUlEQVQ4y2NgGAWjYBSggaqGu5FA/BOIv2PBIPFEUgxjB+IdQPwfC94HxLykus4GiD+hGfQOiB3J8SojEE9EM2wuSJzcsFMG4ttQgx4DsRalkZENxL+AuJQaMcsGxBOAmGvopk8AVz1sLZgg0bsAAAAASUVORK5CYII=);
}

.table thead th.both {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAQAAADYWf5HAAAAkElEQVQoz7XQMQ5AQBCF4dWQSJxC5wwax1Cq1e7BAdxD5SL+Tq/QCM1oNiJidwox0355mXnG/DrEtIQ6azioNZQxI0ykPhTQIwhCR+BmBYtlK7kLJYwWCcJA9M4qdrZrd8pPjZWPtOqdRQy320YSV17OatFC4euts6z39GYMKRPCTKY9UnPQ6P+GtMRfGtPnBCiqhAeJPmkqAAAAAElFTkSuQmCC);
}

.table thead th.asc {
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAATCAYAAAByUDbMAAAAZ0lEQVQ4y2NgGLKgquEuFxBPAGI2ahhWCsS/gDibUoO0gPgxEP8H4ttArEyuQYxAPBdqEAxPBImTY5gjEL9DM+wTENuQahAvEO9DMwiGdwAxOymGJQLxTyD+jgWDxCMZRsEoGAVoAADeemwtPcZI2wAAAABJRU5ErkJggg==);
}

.table thead th.sortable {
	cursor: pointer;
	background-position: left;
	background-repeat: no-repeat;
	padding-left: 20px !important;
}

/**
FOOTER
 */
.footer {
	/*position: absolute;*/
	/*bottom: 0;*/
	width: 100%;
	height: 60px;
	line-height: 59px;
	background-color: #f5f5f5;
	text-align: right;
	flex-shrink: 0;
}

/**
ANIMATIONS
 */

@keyframes slide-down {
	0% {
		opacity: 0;
		transform: translateY(-5px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slide-up {
	0% {
		opacity: 0;
		transform: translateY(5px);
	}

	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slide-right {
	0% {
		opacity: 0;
		transform: translateX(-5px);
	}

	100% {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fade {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}


/**
CHECKBOX
 */
@supports (-webkit-appearance: none) or (-moz-appearance: none) {
	input[type='checkbox'], input[type='radio'] {
		--active: #275efe;
		--active-inner: #fff;
		--focus: 2px rgba(39, 94, 254, .3);
		--border: #bbc1e1;
		--border-hover: #275efe;
		--background: #fff;
		--disabled: #f6f8ff;
		--disabled-inner: #e1e6f9;
		-webkit-appearance: none;
		-moz-appearance: none;
		height: 21px;
		outline: none;
		display: inline-block;
		vertical-align: top;
		position: relative;
		margin: 0;
		cursor: pointer;
		border: 1px solid var(--bc, var(--border));
		background: var(--b, var(--background));
		transition: background 0.3s, border-color 0.3s, box-shadow 0.2s;
	}

	input[type='checkbox']:after, input[type='radio']:after {
		content: '';
		display: block;
		left: 0;
		top: 0;
		position: absolute;
		transition: transform var(--d-t, 0.3s) var(--d-t-e, ease), opacity var(--d-o, 0.2s);
	}

	input[type='checkbox']:checked, input[type='radio']:checked {
		--b: var(--active);
		--bc: var(--active);
		--d-o: 0.3s;
		--d-t: 0.6s;
		--d-t-e: cubic-bezier(0.2, 0.85, 0.32, 1.2);
	}

	input[type='checkbox']:disabled, input[type='radio']:disabled {
		--b: var(--disabled);
		cursor: not-allowed;
		opacity: 0.9;
	}

	input[type='checkbox']:disabled:checked, input[type='radio']:disabled:checked {
		--b: var(--disabled-inner);
		--bc: var(--border);
	}

	input[type='checkbox']:disabled + label, input[type='radio']:disabled + label {
		cursor: not-allowed;
	}

	input[type='checkbox']:hover:not(:checked):not(:disabled), input[type='radio']:hover:not(:checked):not(:disabled) {
		--bc: var(--border-hover);
	}

	input[type='checkbox']:focus, input[type='radio']:focus {
		box-shadow: 0 0 0 var(--focus);
	}

	input[type='checkbox']:not(.switch), input[type='radio']:not(.switch) {
		width: 21px;
	}

	input[type='checkbox']:not(.switch):after, input[type='radio']:not(.switch):after {
		opacity: var(--o, 0);
	}

	input[type='checkbox']:not(.switch):checked, input[type='radio']:not(.switch):checked {
		--o: 1;
	}

	input[type='checkbox'] + label, input[type='radio'] + label {
		line-height: 21px;
		display: inline-block;
		vertical-align: top;
		cursor: pointer;
		margin-left: 4px;
	}

	input[type='checkbox']:not(.switch) {
		border-radius: 7px;
	}

	input[type='checkbox']:not(.switch):after {
		width: 5px;
		height: 9px;
		border: 2px solid var(--active-inner);
		border-top: 0;
		border-left: 0;
		left: 7px;
		top: 4px;
		transform: rotate(var(--r, 20deg));
	}

	input[type='checkbox']:not(.switch):checked {
		--r: 43deg;
	}

	input[type='checkbox'].switch {
		width: 38px;
		border-radius: 11px;
	}

	input[type='checkbox'].switch:after {
		left: 2px;
		top: 2px;
		border-radius: 50%;
		width: 15px;
		height: 15px;
		background: var(--ab, var(--border));
		transform: translateX(var(--x, 0));
	}

	input[type='checkbox'].switch:checked {
		--ab: var(--active-inner);
		--x: 17px;
	}

	input[type='checkbox'].switch:disabled:not(:checked):after {
		opacity: 0.6;
	}

	input[type='radio'] {
		border-radius: 50%;
	}

	input[type='radio']:after {
		width: 19px;
		height: 19px;
		border-radius: 50%;
		background: var(--active-inner);
		opacity: 0;
		transform: scale(var(--s, 0.7));
	}

	input[type='radio']:checked {
		--s: 0.5;
	}
}

 
