/* global */

body {
	margin: 0;
	padding: 0;
	color: #333;
	/*font-family: system, -apple-system, '.SFNSText-Regular', 'SF UI Text', 'Lucida Grande', 'Segoe UI', Ubuntu, Cantarell, sans-serif;*/
}

strong {
	color: #1c1c1c;
}

button, select {
	outline: none !important;
}
select {
	font-size: 16px !important;
	padding: 5px;
	max-width: 100%;
}

.no-printable {
	display: none;
}

.no-select {
	cursor: default;
	
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

/* border layout top */

.top-menu {
	padding: 5px 5px;
	position: fixed;
	background-color: #fff;
}
.top-menu .input-control {
	width: 100% !important;
}

/* navigation */

.navigation-orders-list {
	position: fixed;
	width: 25%;
	display: inline-block;
	background-color: #f5f5f5;
	top: 0;
	bottom: 22px;
	/*max-width: 420px;*/
	border-right: 1px solid #e1e1e1;
	overflow-y: auto;
}

.navigation-orders-list .list-group {
	margin-bottom: 0 !important;
}

.navigation-orders-list .list-group-item:first-child {
	/* bootstrap border radius override */
	border-top-left-radius: 0px !important;
	border-top-right-radius: 0px !important;
	border-top: 0 !important;
}
.navigation-orders-list .list-group-item:last-child {
	/* bootstrap border radius override */
	border-bottom-left-radius: 0px !important;
	border-bottom-right-radius: 0px !important;
}
.navigation-orders-list .list-group-item {
	/* bootstrap border right override */
	border-right: 0 !important;
	border-left: 0 !important;
}

.navigation-orders-list .list-group-item.new-item {
	background-color: rgb(47, 140, 183) !important;
	color: #fff !important;
}
.navigation-orders-list .list-group-item.new-item:hover {
	background-color: rgb(55, 170, 224) !important;
	color: #fff !important;
}

.navigation-orders-list .list-group-item .item-title {
	display: inline-block;
	width: 100%;
}
.navigation-orders-list .list-group-item .item-title span.left {
	font-weight: bold;
	font-size: 16px;
	float: left;
	display: flex;
	align-items: center;
}
.navigation-orders-list .list-group-item .item-title span.left i.fas {
	font-size: smaller;
	margin-left: 10px;
}
.navigation-orders-list .list-group-item .item-title i.right {
	float: right;
}
.navigation-orders-list .list-group-item .item-subtitle {
	font-size: smaller;
	font-style: italic;
}

.navigation-orders-list .no-result {
	position: absolute;
	padding: 10px;
	text-align: center;
	width: 100%;
}

/* content */

.order-preview-container {
	position: fixed;
	left: 25%;
	right: 0;
	top: 0;
	bottom: 22px;
	/*overflow-y: auto;*/
}
.order-preview-container .order-content {
	padding: 5px;
	/* space for top menu */
	margin: 45px 0 25px 0;
	overflow-y: auto;
	height: calc(100vh - 70px);
}

.order-preview-container .order-content.loading {
	background: url('../images/loading.gif');
	width: 120px;
	height: 120px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
}

.trial-badge {
	position: fixed;
	bottom: 26px;
	right: 4px;
	padding: 4px 10px;
	background: #337ab7;
	border-radius: 20px;
	color: #fff;
	display: none;
}

/* border layout bottom */

.bottom-layout {
	position: fixed;
	bottom: 0;
	height: 22px;
	background-color: #efefef;
	border-top: 1px solid #ccc;
	width: 100%;
	padding: 0px 10px;
}

.bottom-layout #statusbar {
	float: left;
	width: 70%;
}
.bottom-layout #statusbar2nd {
	float: right;
	width: 25%;
	text-align: right;
}

/* configuration */

body#preferences-window {
	display: flex;
	padding: 0;
}

.config-tabs-head {
	/*margin-top: 5px;*/
	width: 200px;
	padding: 15px 0px 0px 8px;
}
.config-sections-container {
	flex: 1;
	height: 100vh;
	overflow-y: scroll;
}

.config-tabs-head ul {
	padding: 0;
	margin: 0;
	list-style: none;
}
.config-tabs-head ul li a {
	padding: 4px 8px;
	margin-bottom: 2px;
	display: block;
	text-decoration: none;

	-webkit-user-drag: none;
	-moz-user-drag: none;
	user-drag: none;
}
.config-tabs-head ul li a:hover {
	text-decoration: none;
	background: #eee;
	border-radius: 4px;
}
.config-tabs-head ul li.active a {
	text-decoration: none;
	background: #337ab7;
	color: #fff;
	border-radius: 4px;
}
.config-tabs-head ul li a:focus,
.config-tabs-head ul li a:visited {
	text-decoration: none;
	outline: none;
}
.config-tabs-head ul li a.disabled {
	color: #bbb;
	cursor: default;
}
.config-tabs-head ul li a.disabled:hover {
	text-decoration: none;
	background: transparent;
}
.config-tabs-head ul li a i {
	width: 16px;
	text-align: center;
}

.config-section {
	padding: 15px;
}

.config-section .panel-title::selection {
	background: transparent;
}

.config-section .panel {
	width: 100% !important;
	float: left !important;
	margin-bottom: 12p
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
}

.config-section .panel .panel-body.no-padding {
	padding: 0;
}
.config-section .panel .panel-body.full-height {
	height: calc(100vh - 75px);
}

.config-section .led {
	opacity: 0.2;
}
.config-section .led.red {
	color: #900;
}
.config-section .led.green {
	color: #090;
}
.config-section .led.active {
	opacity: 1;
}

.config-section .grid > * {
	margin-top: 10px;
}
.config-section .grid > hr {
	margin: 10px 0;
}

.config-section .grid-columns {
	display: flex;
	justify-content: space-between;
}
.config-section .grid-columns .grid-col {
	flex: 1;
}
.config-section .grid-columns .grid-col:not(:last-child) {
	margin-right: 10px;
}

.config-section #printstyle-help {
	padding: 8px 15px;
	border-bottom: 1px solid #ddd;
	margin: 0;
}

#config-setting-licensekey i {
	float: right;
}
#config-setting-licensekey i.fa-check-circle {
	color: #090;
}
#config-setting-licensekey i.fa-times-circle {
	color: #900;
}
textarea[name="licensekey"] {
	width: 100%;
	height: 100%;
	min-height: 100px;
	padding: 15px;
	appearance: none;
	--webkit-appearance: none;
	--moz-appearance: none;
	outline: none;
	border: 0;
	resize: none;
	font-family: Courier;
	word-break: break-all;
}

#trial-expired {
	margin: 15px;
	font-size: inherit;
}
#remove-license {
	margin: 15px;
}

.response-message {
	display: none;
	border: 2px dashed #ccc;
	margin-top: 10px;
	padding: 5px 10px;
	font-weight: bold;
}
.response-message.success {
	border-color: #090;
}
.response-message.error {
	border-color: #900;
}

/* bootstrap overrides */

.panel hr {
	border-top-color: rgb(221, 221, 221);
}

.order-content .label {
	font-size: 90% !important;
	color: #000 !important;
	text-align: left !important;
	white-space: normal !important;
}

.radio-wrapper,
.checkbox-wrapper {
	display: flex;
	margin-bottom: 6px;
	align-items: center;
}
.radio-wrapper input[type="radio"],
.checkbox-wrapper input[type="checkbox"] {
	margin: 0 4px 0 0;
}
.radio-wrapper label,
.checkbox-wrapper label {
	margin: 0;
	font-weight: 500;
	cursor: pointer;
}

.alert {
	font-size: small;
	margin-bottom: 10px;
	padding: 8px;
}
.alert:last-child {
	margin-bottom: 0;
}

/* changelog */

#changelog {
	padding: 0 20px;
}
#changelog .changelog-release h3 {
	margin-bottom: 0;
}
#changelog .changelog-release .publishing-date {
	font-style: italic;
	color: #777;
}
#changelog .changelog-release .release-sections .release-section h4 {
	margin-bottom: 0;
}
#changelog .changelog-release .release-sections .release-section ul {
	margin-top: 10px;
}
#changelog .changelog-release .release-sections .release-section li b {
	display: block;
}
