/* Mixins and extensions. */

/*
Make sure nothing within the button receives pointer-events,
clicks inside the button will always be for the button itself.

This makes event.target to always contain button even if icon inside of that
button got clicked.
*/
button > * {
  	pointer-events: none;
}

/* .center is used to center stand-alone login dialog */
.mx-center {
    margin: auto;
    border: 3px solid #eee;
}

/* .centered is used to show major pop up message or link centered */
.mx-centered {
	position: fixed;
  	top: 50%;
  	left: 50%;
  	transform: translate(-50%, -50%);
  	z-index: 999;
}

.mx-hidden { display: none; }
.mx-invisible { visibility: hidden; }
.mx-visible { visibility: visible; }

.mx-expand { width: 100%; height: 100%; }

.mx-red-bg { background-color: #db2828; color: #fff; }
.mx-gray-bg { background-color: #dcdfe1; color: #333;}
.mx-navy-bg { background-color: #036; color: #fff; }
.mx-teal-bg {	background-color: #00b5ad; color: #fff; }
.mx-orange-bg { background-color: #f2711c; color: #fff; }
.mx-green-bg { background-color: #5bd46d;	color: #fff; }

.mx-p-5 { padding: 5px; }
.mx-p-10 { padding: 10px; }
.mx-p-15 { padding: 15px; }
.mx-p-20 { padding: 20px; }
.mx-p-25 { padding: 25px; }
.mx-p-30 { padding: 30px; }

.mx-m-5 { margin: 5px; }
.mx-m-10 { margin: 10px; }
.mx-m-15 { margin: 15px; }
.mx-m-20 { margin: 20px; }
.mx-m-25 { margin: 25px; }
.mx-m-30 { margin: 30px; }

.mx-w-50 { width: 50px; }
.mx-w-60 { width: 60px; }
.mx-w-70 { width: 70px; }
.mx-w-80 { width: 80px; }
.mx-w-90 { width: 90px; }
.mx-w-100 { width: 100px; }
.mx-w-200 { width: 200px; }
.mx-w-300 { width: 300px; }
.mx-w-400 { width: 400px; }
.mx-w-500 { width: 500px; }
.mx-w-600 { width: 600px; }
.mx-w-700 { width: 700px; }
.mx-w-800 { width: 800px; }
.mx-w-900 { width: 900px; }
.mx-w-1000 { width: 1000px; }

.mx-h-50 { height: 50px; }
.mx-h-60 { height: 60px; }
.mx-h-70 { height: 70px; }
.mx-h-80 { height: 80px; }
.mx-h-90 { height: 90px; }
.mx-h-100 { height: 100px; }
.mx-h-200 { height: 200px; }
.mx-h-300 { height: 300px; }
.mx-h-400 { height: 400px; }
.mx-h-500 { height: 500px; }
.mx-h-600 { height: 600px; }
.mx-h-700 { height: 700px; }
.mx-h-800 { height: 800px; }
.mx-h-900 { height: 900px; }
.mx-h-1000 { height: 1000px; }

/* Labels */
.mx-label {
	display: inline-block;
    line-height: 1;
    vertical-align: baseline;
    margin: 0 2px;
    background-image: none;
    padding: 2px 6px;
    border-radius: 2px;
}

.mx-label.mx-red {
	background-color: #db2828;
	border-color: #db2828;
    color: #fff;
}

.mx-label.mx-gray {
	background-color: #dcdfe1;
	border-color: #dcdfe1;
	color: #333;
}

.mx-label.mx-navy {
	background-color: #036;
	border-color: #036;
	color: #fff;
}

.mx-label.mx-teal {
	background-color: #00b5ad;
	border-color: #00b5ad;
    color: #fff;
}

.mx-label.mx-orange {
	background-color: #f2711c;
	border-color: #f2711c;
    color: #fff;
}

.mx-label.mx-green {
	background-color: #5bd46d;
	border-color: #5bd46d;
	color: #fff;
}

.mx-label.mx-floating {
	position: absolute; /* Requires parent to have {position: relative;} */
    z-index: 5;
    top: -1em;
    left: 100%;
    margin: 0 0 0 -1.5em;
}

/* Message related styles */
.mx-message {
	min-height: 1em;
    margin: 1em 1em;
    background: #f8f8f9;
    padding: 1em 1.5em;
    line-height: 1.4285em;
    border-radius: 3px;
}

.mx-warning.mx-message {
	background-color: #fffaf3;
    color: #573a08;
	box-shadow: 0 0 0 1px #c9ba9b inset, 0 0 0 0 transparent;
}

.mx-warning.mx-message .mx-header {
	color: #794b02;
	display: block;
    font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
    font-weight: 700;
    margin: -.14285714em 0 0 0;
}

.mx-negative.mx-message {
	background-color: #fff6f6;
    color: #9f3a38;
	box-shadow: 0 0 0 1px #e0b4b4 inset, 0 0 0 0 transparent;
}

.mx-negative.mx-message .mx-header {
	color: #912d2b;
	display: block;
    font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
    font-weight: 700;
    margin: -.14285714em 0 0 0;
}

/* Segment related styles */
.mx-segment {
	box-shadow: 0 1px 2px 0 rgba(34,36,38,.15);
    margin: 1rem 1em;
    padding: 1em 1em;
    border-radius: .28571429rem;
    border: 1px solid rgba(34,36,38,.15);
}

.mx-segment.mx-form {
	background: #f5f5f4;
}

.mx-segment.mx-red {
	border-top: 2px solid #db2828;
}

.mx-segment.mx-orange {
	border-top: 2px solid #f2711c;
}

.mx-segment.mx-teal {
	border-top: 2px solid #00b5ad;
}

.mx-segment .mx-header {
	color: #912d2b;
	display: block;
    font-family: Lato,'Helvetica Neue',Arial,Helvetica,sans-serif;
    font-weight: 700;
    margin: -.14285714em 0 0 0;
}

/* Loading spinner <div class="mx-loader mx-invisible">Loading</div> */
.mx-loader {
	display: inline-block;
	width: 12px;
	height: 12px;
}

.mx-loader:after {
	content: " ";
	display: block;
	width: 10px;
	height: 10px;
	margin: 0px 4px 0px 4px;
	border-radius: 50%;
	border: 4px solid #888;
	border-color: #888 transparent #888 transparent;
	animation: loader 1.2s linear infinite;
}
@keyframes mx-loader {
  	0% {
    	transform: rotate(0deg);
  	}
  	100% {
    	transform: rotate(360deg);
  	}
}

/*
<div class="mx-corner-popup mx-hidden"></div>
*/
.mx-corner-popup {
    position: fixed;
    padding: 10px;
    bottom: 2px;
    right: 25px;
    background-color: #eee;
    border: 2px solid #00b5ad;
    box-shadow: 0px 0px 5px #888;
    z-index: 999;
}
