﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/**===== .net5 =====*/
@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');


.cabinets-combobox-dropdown td:last-child {
	text-align: right;
}


.cabinets-combobox-dropdown table thead {
	display: none;
}

.cabinets-combobox-dropdown table colgroup col:last-child {
	width: 20%;
}

/* Scrollbar style (same as PDF Tron)*/
::-webkit-scrollbar {
	width: 7px;
	height: 7px;
}

::-webkit-scrollbar-thumb {
	border-radius: 10px;
	background-color: #adb5bd;
	border-top: 2px solid transparent;
}

::-webkit-scrollbar-track {
	width: 10px;
	border-radius: 10px;
	background: none;
}
/* END Scrollbar style*/

/* MS: workarounds for alleged DevExpress CSS bugs */
.dxbs-spin-edit-button.inc > .dx-image {
	transform: rotate(180deg);
}

.dx-blazor-tagbox-wrapper {
	margin-top: -3px;
}

	.dx-blazor-tagbox-wrapper input.dxbs-tagbox-input {
		border: 1px gray;
	}
/* workarounds */

/*MS: avoids button toolbar height moving when rendered, e.g. when selecting New Document */
.dxbs-toolbar-adaptive {
	height: 34px;
	transition: none;
}


.sbs-2fa-ok-button {
	margin: 1rem;
}

/*MS: avoids resizing of cabinets dropdown being visible */
dxbl-dropdown.dxbs-dropdown {
	animation: 0.1s cabinets-dropdown;
}

@keyframes cabinets-dropdown {
	from { opacity: 0; }
	99% { opacity: 0;	}
	to { opacity: 1; }
}


/* MS: avoids popups aligning left instead of centering on small devices */
@media (max-width: 576px) {
	.dxbs-modal > .dxbs-popup.dxbs-popup-adaptivity {
		justify-self: unset;
	}
}

div.k-pane > p:first-child {
	display: none;
}

html, body {
	font-family: Arial, Helvetica, sans-serif;
	margin: 0px;
	overflow: hidden;
	font-size: 14px;
}

.sbs-display-none {
	display: none;
}

.sbs-round-border {
	border: 1px solid dimgray;
	border-radius: 50%;
}

.sbs-inlay-icon-container {
	position: relative;
}

.sbs-inlay-icon {
	position: absolute;
	right: 2px;
	bottom: 0;
	width: calc(0.9*var(--sbs-button-bar-icon-size)) !important;
	height: calc(0.9*var(--sbs-button-bar-icon-size)) !important;
	border-radius: 50%;
	background-color: white;
	padding: 1px;
}

.btn, .form-control, .col-form-label-sm, .table-sm, .table-sm td, .table-sm th, .dropdown-menu {
	font-size: 1rem;
}

.dx-tabs-content-panel {
	flex: 1 1;
	height: 0;
	/*box-shadow: 0px -5px 10px -5px lightgrey;*/
}

input[list]::-webkit-calendar-picker-indicator {
	display: none !important;
}

/*Style sheet for PDFTron WebViewer*/
div.App button:not(.OverlayButton) div.Icon {
	color: #194F90 !important;
	height: 20px;
	width: 20px;
}

.k-splitter {
	border-width: 0;
}

:root {
	--fd-blue: #194f90;
	--verification-z-index: 999;
	--popup-duration: 0.3s;
	--transition-duration: 0.4s;
	--sbs-button-bar-height: 34.5px;
	--sbs-button-bar-icon-size: 18px;
	--sbs-title-element-height: 32px;
}

.revisions-dropdown td, .revisions-dropdown th {
	padding: 0 10px;
	user-select: none;
}

.revisions-dropdown td:nth-child(2), .revisions-dropdown td:nth-child(3) {
	text-align: end;
}

dialog-buttons {
	display: flex;
	justify-content: end;
	padding-bottom: 5px;
}

	dialog-buttons button {
		border: none;
		color: var(--sbs-button-color);
		background-color: transparent;
		margin: 0 5px;
		user-select: none;
	}

.navigation-bar .nav {
	flex-wrap: unset;
}

.btn.disabled, .btn:disabled {
	opacity: .4;
}

spinning-wheel {
	display: block;
	width: 25px;
	height: 25px;
	border: 3px solid;
	border-top-color: transparent;
	border-radius: 50%;
	border-color: var(--sbs-icon-fd-blue);
	animation: spin 1s linear infinite;
}

@keyframes spin {
	100% {
		transform: rotate(360deg);
	}
}

.dxbs-toolbar-group:nth-child(n+1)::before {
	content: '';
	/*border-left: 1px solid lightgray;*/
}

.dxbs-toolbar-group:nth-child(n+2)::before {
	transform: translateX(-10px);
}

	button {
	background-color: var(--sbs-button-background-color);
	border-radius: 3px;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
}

	button:hover {
		background-color: var(--sbs-button-hover-background-color);
	}

	button:focus {
		outline: 2px auto lightblue;
	}

/**===== pages button toolbar =====*/
button-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: var(--sbs-button-bar-height);
	/*border-bottom: 1px solid lightgray;*/
}
/**===== pages button toolbar =====*/



.docstate-new-glyph::before {
	display: block;
	content: '*';
	font-size: 30px;
	height: 10px;
	color: var(--sbs-docstate-new-color);
	transform: translateY(-11px);
}


/* Disable text selection*/
.disableTextSelection {
	-webkit-user-select: none; /* Chrome all / Safari all */
	-moz-user-select: none; /* Firefox all */
	-ms-user-select: none; /* IE 10+ */
	user-select: none;
}

a, .btn-link {
	color: #0366d6;
}

.btn-primary {
	color: #fff;
	background-color: #1b6ec2;
	border-color: #1861ac;
}

.content {
	padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
	outline: 1px solid #26b050;
}

.invalid {
	outline: 1px solid red;
}

.validation-message {
	color: red;
}

#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;
	}


/**===== log-out =====*/
.log-out-transform {
	transform: scale(-1.25,1.25) translateY(-2px);
}


/**===== rectangle-bounce =====*/

.loading-screen span img {
	width: 100px;
	height: 100px;
	margin-bottom: 10px;
}

.rectangle-bounce {
	text-align: center;
	height: 0;
	flex: 0 0 40px;
	margin: 20px 0px 12px 0px;
}

	.rectangle-bounce div {
		height: 100%;
		width: 7px;
		margin: 0 3px 0 0;
		background-color: #fff;
		display: inline-block;
		-webkit-animation: stretchdelay 1.2s infinite ease-in-out;
		animation: stretchdelay 1.2s infinite ease-in-out
	}

	.rectangle-bounce .rect2 {
		-webkit-animation-delay: -1.1s;
		animation-delay: -1.1s
	}

	.rectangle-bounce .rect3 {
		-webkit-animation-delay: -1.0s;
		animation-delay: -1.0s
	}

	.rectangle-bounce .rect4 {
		-webkit-animation-delay: -0.9s;
		animation-delay: -0.9s
	}

	.rectangle-bounce .rect5 {
		-webkit-animation-delay: -0.8s;
		animation-delay: -0.8s
	}

@-webkit-keyframes stretchdelay {
	0%, 40%, 100% {
		-webkit-transform: scaleY(0.4)
	}

	20% {
		-webkit-transform: scaleY(1)
	}
}

@keyframes stretchdelay {
	0%, 40%, 100% {
		transform: scaleY(0.4);
		-webkit-transform: scaleY(0.4)
	}

	20% {
		transform: scaleY(1);
		-webkit-transform: scaleY(1)
	}
}
/**===== rectangle-bounce =====*/


.loading-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	text-align: center;
	color: #fff;
	background-color: #194f90;
}

.login-screen {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100vw;
	height: 100vh;
	color: black;
	background-color: var(--fd-blue);
}

.btnTest {
	width: 16px;
	height: 16px;
	background-image: url('https://api.iconify.design/oi-home.svg');
	margin: 0 8px 0 0;
}

.login-header-logo {
	height: 64px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 0.5em
}

/* MainLayout (header,footer,main,aside) */
#container {
	height: 100vh;
	width: 100vw;
	display: flex;
	flex-direction: column;
}

#main {
	padding: 0px;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-flow: row;
	flex-flow: row;
	flex: 1;
	height: 0px;
}

	#main article {
		order: 2;
		height: 100%;
		position: relative;
	}


header, footer {
	flex: 0 0 56px;
}

header {
	background: var(--fd-blue);
	display: flex;
	align-items: center;
	box-shadow: 0px 0px 5px 3px rgb(0 0 0 / 30%);
	z-index: 9;
}

#header-logo {
	width: 190px; /* explicit width and height needed for transition to work */
	height: 40px;
	margin: 0 8px;
	object-fit: cover;
	object-position: left;
	transition: width 0.3s;
}

header .btn-primary {
	color: black;
	background-color: white;
}

	header .btn-primary:hover {
		background-color: white;
	}

	header .btn-primary svg:hover {
		background-color: var(--sbs-hover-background-color);
	}

/* Too narrow to support three columns */
@media all and (max-width: 640px) {

	#main, #page {
		-webkit-flex-flow: column;
		flex-direction: column;
	}

		#main > article {
			/*			Return to document order */
			order: 0;
			width: 100%;
		}

	.main-splitter.k-splitter-flex > .k-pane {
		height: unset;
	}
}

@media all and (max-width: 750px) {

	#header-logo {
		width: 30px;
	}
}


#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: 767.98px) {
	.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: 768px) {
	app {
		flex-direction: row;
	}

	.sidebar {
		width: 250px;
		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 {
		/* Never collapse the sidebar for wide screens */
		display: block;
	}
}
