

:root {
  --main-color: #B33;
  --panel-color: rgba(0,0,0,0.5);
  --background-color: #cedade;
  --border-color: #eee;
}

body {
	/*background: url('../img/background.jpg') no-repeat center center fixed;
	background-position: center;
	background-size: cover;*/
	background: #666;
	font-size: 14px;
}

.text-red {
	color:red;
}
.text-green {
	color:green;
}

/* Bootstrap Overrides */
.navbar-default {
	border-color: var(--border-color);
}
.navbar-default .navbar-brand {
	color: white;
	font-weight: bold;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:active,
.navbar-default .navbar-brand:focus,
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li > a:active,
.navbar-default .navbar-nav > li > a:focus {
	color: white;
}
.navbar-default .navbar-nav > li > a:hover {
	color: white;
	background: rgba(206,218,222,0.5);
}

.navbar-spacer {
	height: 50px;
}

.scribe-navbar {
	background:var(--main-color);
}
.scribe-navbar li>button {
	color: white;
	height: 50px;
	border: none;
	background: rgba(0,0,0,0);
	width: 100%;
	outline: none;
}
.scribe-navbar li>button:hover {
	background: rgba(206,218,222,0.5);
}

.nav-current {
	background: var(--background-color) !important;
	color: #333 !important;
}

.dropdown button div:nth-child(1) {
	width: 85%;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
}
.dropdown-menu {
	width: 100%;
	max-height: 40vh;
	overflow-x: hidden;
	overflow-y: auto;
	margin-bottom:40px;
}

.logo-text {
	position:relative;
	width: 43vw;
	height: 12vh;
	top: 20px;
}


.text-center {
	text-align:center;
}
.text-right {
	text-align: right;
}

th.error-feedback {
	text-align:right;
	padding-bottom:5px;
}

.topbar div {
	display: inline-block;
	height: 40px;
	text-align: center;
	vertical-align: middle
}

.scribe-login {
	background: var(--main-color);
	padding-bottom: 18px;
}
.scribe-login .row {
	padding-top: 2px;
	padding-bottom: 2px;
}

.login-banner {
	text-align: center;
}
.login-banner img {
	width: 500px;
}

.login-error {
	text-align: center;
}
.login-error {
	color: red;
	background: rgba(255,255,255,0.75);
	border-radius: 4px;
}

.help-label {
	height: 34px;
	color: white;
	text-align: center;
}
.help-label label {
	position:relative;
	top: 8px;
}

.help-icon {
	opacity: 0.5;
	width: 18px;
	height: 18px;
	position: relative;
	top: 7px;
	z-index: 10;
}
.help-icon:hover {
	opacity: 1.0;
	cursor: pointer;
}
.help-open {
	left: -23px;
}
.help-close {
	right: -23px;
}

.help-banner {
	width: 100%;
	text-align: center;
}
.help-banner span {
	display: inline-block;
	width: 230px;
	height: 60px;
	border-radius: 40px;
	background: var(--main-color);
}
.help-banner img {
	position: relative;
	top: 2px;
	right: -6px;
}
.password-form {
	margin-top: 20px;
}
.password-form .row {
	height: 38px;
}
.password-form .header {
	color: white;
	text-shadow: 1px 1px rgba(0,0,0,1);
	position: relative;
	top: 10px;
	white-space: nowrap;
}
.password-form .progress {
	margin-bottom: 0px;
	position: relative;
	top: 9px;
}
.password-form input {
	position: relative;
	top: 2px;
}
.password-form button {
	position: relative;
	top: 4px;
}

.navbar-logo img {
	position: relative;
	top: -15px;
}

.arrow {
	cursor: default;
}

.no-wrap {
	white-space: nowrap;
}

.no-click {
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Chrome/Safari/Opera */
  -khtml-user-select: none;    /* Konqueror */
  -moz-user-select: none;      /* Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently */
}


.main-header .title {
	color: white;
	text-shadow: 2px 2px rgba(0,0,0,0.5);
	font-size: 24px;
	font-weight: bold;
}
.main-header .info {
	color: white;
	font-size: 16px;
	text-shadow: 1px 1px rgba(0,0,0,0.5);
}

.header {
	font-size: 20px;
}

.scribe-content {
	z-index: -1;
	margin-top: 20px;
}

.scribe-content input {
	height: 34px;
	padding: 6px 12px;
	font-size: 14px;
	line-height: 1.42857143;
	color: #555;
	background-color: #f5f5f5;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
	transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
	margin-bottom: 5px;
}

.scribe-footer {
	position:fixed;
	bottom:0;
	left:0;
	right:0;
	margin-left:auto;
	margin-right:auto;
	width: 280px;
	border-radius: 4px 4px 0px 0px;
	color: #888;
	background: #cedade;
	z-index: 99999;
}
.scribe-footer div {
	position: relative;
	top: 2px;
}


.category-header:after {
	content: "Category";
}
.qty-header:after {
	content: "Quantity:";
}

.select-header-group {
	background: white;
	color: gray;
	height: 30px;
	border-style: solid;
	border-width: 0px 0px 1px 0px;
	border-color: #ddd;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
}

.no-header {
	border-top-left-radius: 4px;
}

.height-tall {
	min-height: 400px;
	max-height: 400px;
}
.height-short {
	min-height: 200px;
	max-height: 200px;
}

.scribe-select {
	background: #f5f5f5;
	overflow-y: scroll;
	overflow-x: hidden;
	border-bottom-left-radius: 4px;
	white-space: nowrap;
	color: #444;
}
.scribe-select .row {
	padding-top: 4px;
	padding-bottom: 4px;
}
.scribe-select .row:hover {
	background: #eee;
}
.scribe-select div {
	overflow: hidden;
}
.scribe-select .qty {
	overflow: initial;
}

.scribe-select-current {
	background: var(--main-color);
	color: white;
}
.scribe-select-current:hover {
	background: var(--main-color) !important;
	color: white;
}

table.scribe-templates td {
	padding-top: 6px;
	padding-bottom: 6px;
}

table.scribe-customers td {
	padding-top: 3px;
	padding-bottom:3px;
}

table.scribe-projects td {
	padding-top: 3px;
	padding-bottom: 3px;
	padding-right: 6px;
}

.scribe-filter-select {
	min-width: 100px;
	width: 100%;
}

.left-align {
	float: left;
}
.right-align {
	float: right;
}
.pad-top {
	position:relative;
	top:10px;
}

.spacer {
	width:24px;
}

.min-height {
	min-height: 30px;
}

.max-width {
	width: 100%;
}

.row.align-center > div {
	display: inline-block;
	float: none;
}
.dropdown ul {
	text-shadow: none;
}

.file-upload-form input {
	margin-bottom: 5px;
}

.scribe-password-table .row:first-child>div:first-child {
	height: 34px;
}
.scribe-password-table input {
	width: 100%;
}
.scribe-password-table .cell {
	white-space: nowrap;
}
.scribe-password-table .header {
	white-space: nowrap;
	position: relative;
	top: 10px;
}

.scribe-panel {
	background-color: var(--panel-color);
	margin-top: 20px;
	padding-top: 10px;
	padding-bottom: 10px;
	display:table;
}
.scribe-table .row {
	padding-top: 6px;
	padding-bottom: 6px;
}
.scribe-table .cell {
	color: white;
	text-shadow: 1px 1px rgba(0,0,0,0.6);
}

.scribe-table .header {
	font-weight: bold;
	position: relative;
}


.popup-dropdown {
	background: white;
	border: 1px solid;
	border-collapse: separate;
	border-color: rgba(0,0,0,0.25);
	border-radius: 4px;
	z-index: 502;
	padding: 5px;
	box-shadow: 0px 5px 8px rgba(0,0,0,0.25);
	position: absolute;
	top: 36px;
	left: 15px;
	width: 250px;
	margin-bottom: 40px;
}
.popup-dropdown button {
	width: 34px;
	height: 34px;
}
.popup-dropdown thead, .popup-dropdown tbody {
	display: block;
}
.popup-dropdown thead>tr:first-child:hover {
	cursor: default;
}
.popup-dropdown thead button {
	position: relative;
	margin-top: -3px;
}
.popup-dropdown tr>td:first-child {
	min-width: 206px;
	max-width: 206px;
}
.popup-dropdown tbody>tr>td:first-child:hover {
	cursor: pointer;
	background: #f5f5f5;
}
.popup-dropdown td {
	padding: 5px;
	border-radius: 4px;
}
.popup-dropdown tbody {
	max-height: 40vh;
	overflow-y: scroll;
}

.on-top {
	position: relative;
	z-index: 501;
}

.add-button {
	color: green;
	text-shadow: 1px 1px rgba(0,0,0,0.25);
}

.delete-button {
	color: red;
	text-shadow: 1px 1px rgba(0,0,0,0.25);
}

.scribe-dropdown {
	white-space: nowrap;
}
.scribe-dropdown span:nth-child(1) {
	width: 85%;
	overflow: hidden;
	text-overflow: ellipsis;
	float: left;
	text-align: left;
}
.scribe-dropdown span:nth-child(2) {
	float:right;
	margin-top:8px;
	margin-right: 6px;
}

.scribe-navbar-dropdown {
	min-width: 180px;
}
.scribe-navbar-dropdown > li > a {
	padding: 8px;
	margin-left: 12px;
	margin-right: 12px;
	text-align: left;
}
.scribe-navbar-dropdown > li > a > span {
	padding-right: 12px;
}

@media all and (max-width:1150px) {
	.scribe-select {
		font-size:11px;
	}
	.category-header:after {
		content: "Cat";
	}
	.qty-header:after {
		content: "Qty:";
	}
}
@media all and (max-width:820px) {
	.navbar-default .navbar-nav button {
		font-size: 10px;
	}
}
@media all and (max-width:780px) {
	.scribe-login {
		position: relative;
		top: -50px;
	}
	.logo-text {
		position:relative;
		width: 86vw;
		height: 24vh;
		top: 20px;
	}
	.btn {
		font-size: 12px;
		height: 30px;
	}
	.scribe-dropdown .caret {
		position: relative;
		top: -4px;
	}
	.scribe-select {
		font-size: 12px;
	}
	.select-header-group {
		font-size: 12px;
	}
}

@media (max-width:600px) {
	.login-banner img {
		width: 80vw;
	}
}


.modal-header{
	background: var(--main-color);
	color:#FFF;
}

/* Centers modal in screen with dynamic width */
.bf-modal-center .modal-dialog {
    max-width: 100%;
    width: auto !important;
    display: inline-block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
	word-wrap: break-word;
}

.auto-capitalize:first-letter {
    text-transform:capitalize;
}

.scribe-filter {
	font-size: 18px;
	border: 1px dashed grey;
	border-radius: 4px;
	margin-bottom: 10px;
	margin-top: 10px;
}


.loading-overlay{
	background-color:rgba(100,100,100,0.33);
	position:fixed;
	top:0; bottom:0; left:0; right:0;
	z-index:5;
}

#global-loading-icon{
	position:fixed;
	top:0;bottom:0;right:0;left:0;
	background:url(/img/loading-ring.svg) no-repeat center center;
	-webkit-animation:rotate 1s linear infinite;
	-moz-animation: rotate 1s linear infinite;
	-ms-animation: rotate 1s linear infinite;
	-o-animation: rotate 1s linear infinite;
	animation:rotate 1s linear infinite;
	z-index: 999;
}

/* Loading spinner animations */
@-webkit-keyframes rotate{
	from{-webkit-transform:rotate(0deg);}
	to{-webkit-transform:rotate(360deg);}
}
@-moz-keyframes rotate{ 
	from{-moz-transform:rotate(0deg);}
	to{-moz-transform:rotate(360deg);}
}
@-ms-keyframes rotate{ 
	from{-ms-transform:rotate(0deg);}
	to{-ms-transform:rotate(360deg);}
}
@-o-keyframes rotate{ 
	from{-o-transform:rotate(0deg);}
	to{-o-transform:rotate(360deg);}
}
@keyframes rotate{ 
	from{transform:rotate(0deg);}
	to{transform:rotate(360deg);}
}

#global-loading-icon img,
#loading-icon img{
	position:relative;
	margin:0 auto;
}
