/* 
 * Tweak Materlize
 * - Card
 * - Collections
 * - Cursor
 * - Icons
 * - Inputs
 * - Loading
 * - Menu
 * - Modal
 * - Toasts
 * - Waves Effect
 * - VAlign
 * - Responsive
 */


/* ******** Card ******** */


/* Add functionality to the Material Design Card's Action section, allowing it to contain floating elements */

.card-action {
	overflow: auto;
}


/* Remove the blank space at the bottom of the cards */

.card .card-content>.row {
	margin-bottom: 0;
}


/* Add card heading style */

.card .card-heading {
	position: relative;
	padding: 20px;
	border-radius: 2px 2px 0 0;
	overflow: hidden;
}

.card .card-heading .card-title {
	display: block;
	position: relative;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	width: 100%;
}

.card .card-heading .btn-floating {
	margin: 1rem 0;
}

.card .card-title {
	font-weight: normal;
}


/* Make slide content hidden by default */

.slide-content {
	display: none;
}

.card .card-action .row {
	margin-bottom: 0;
}

.card .card-action .btn:first-child,
.modal .modal-action .btn:first-child {
	margin-left: 0;
}

.card .card-action .btn,
.modal .modal-action .btn {
	margin-left: 1rem;
}


/* ******** Collections ******** */

.collection,
.section-content {
	z-index: 1;
}

.collection:empty {
	display: none;
}

.placeholder {
	display: none;
}

.collection:empty + .placeholder {
	display: block;
}

.collection .collection-item.avatar,
.collection .collection-item {
	min-height: 0;
	line-height: 42px;
	display: block;
}

.collection .collection-item {
	padding-left: 20px !important;
	width: 100% !important;
}

.collection .collection-item.avatar .circle {
	display: block;
	position: relative;
	left: 0px;
}

.collection .collection-item .title {
	position: absolute;
	left: 72px;
	top: 12px;
}

.navigation .files .link-file .title {
	left: 92px;
}

.collection .collection-item .title {
	right: 20px;
}

.collection .collection-item .title.secondary {
	right: 68px;
}

.collection .collection-item .title.secondary-2 {
	right: 116px;
}

.collection .collection-item a {
	color: inherit;
}

.collection .collection-item label {
	color: inherit;
}

.collection .collection-item [type="checkbox"] + label {
	width: 100%;
	vertical-align: middle;
}

.collection .collection-item .secondary-content a {
	padding: 6px;
	border-radius: 50%;
	width: 42px;
	height: 42px;
	line-height: 30px;
}

.collection .collection-item .material-icons.user-icon {
	vertical-align: middle;
	margin-left: .5rem;
}

.collection .collection-item.avatar .secondary-content {
	top: 10px;
	right: 20px;
}

.collection .collection-item.processing {
	background: #FAFAFA;
}

.collection .collection-item.processing .secondary-content {
	display: none;
}

.collection-actions {
	display: block;
	text-align: center;
}


/* ******** Cursor ******** */


/* Don't change the cursor when hovering over text */

body {
	cursor: default;
}


/* Unless it's a link */

a {
	cursor: pointer;
	line-height: 1.5rem;
}


/* ******** Icons ******** */


/* Adhere to Material Design icon colours */

.md-dark {
	color: rgba(0, 0, 0, 0.54);
}

.collection a .md-dark:hover,
.tooltipped.md-dark:hover {
	color: rgba(0, 0, 0, 0.8);
}

.md-dark.md-inactive {
	color: rgba(0, 0, 0, 0.26) !important;
}

.md-light {
	color: rgba(255, 255, 255, 1);
}

.md-light.md-inactive {
	color: rgba(255, 255, 255, 0.3) !important;
}

.comment .material-icons.circle {
	position: absolute;
	width: 48px;
	height: 48px;
	overflow: hidden;
	vertical-align: middle;
	background: #999;
	font-size: 22px;
	line-height: 48px;
	color: #fff;
	text-align: center;
}


/* Enable automatic sizing */

.material-icons,
.fa {
	font-size: inherit;
	vertical-align: middle;
}


/* Make Font Awesome look more like Material Design */

.fa {
	font-weight: bold;
}


/* Enable tiny-small size */

.tiny-small {
	font-size: 1.5rem;
}


/* Enable dropdown icon rotation */

.material-icons.dropped {
	-ms-transform: rotate(180deg);
	/* IE 9 */
	-webkit-transform: rotate(180deg);
	/* Chrome, Safari, Opera */
	transform: rotate(180deg);
}


/* ******** Inputs ******** */

a.input-field {
	color: inherit;
	display: block;
}

a.input-field {
	margin: 15px 0;
}

.input-field label {
	right: 0;
	left: 0;
}

.row .input-field label {
	left: 0.75rem;
	right: 0.75rem;
}

input:not([type]).invalid,
input:not([type]):focus.invalid,
input[type=text].invalid,
input[type=text]:focus.invalid,
input[type=password].invalid,
input[type=password]:focus.invalid,
input[type=email].invalid,
input[type=email]:focus.invalid,
input[type=url].invalid,
input[type=url]:focus.invalid,
input[type=time].invalid,
input[type=time]:focus.invalid,
input[type=date].invalid,
input[type=date]:focus.invalid,
input[type=datetime-local].invalid,
input[type=datetime-local]:focus.invalid,
input[type=tel].invalid,
input[type=tel]:focus.invalid,
input[type=number].invalid,
input[type=number]:focus.invalid,
input[type=search].invalid,
input[type=search]:focus.invalid,
textarea.materialize-textarea.invalid,
textarea.materialize-textarea:focus.invalid {
	margin-bottom: 2rem;
}

.input-field label:after {
	font-size: 0.8rem;
	-webkit-transform: translateY(-140%);
	transform: translateY(-140%);
}

.input-field label.active:after {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

textarea.materialize-textarea {
	min-height: 0px;
	height: 1.5rem;
	padding: .75rem 0;
	margin-bottom: .5rem;
	transition: none;
}

label.materialize-textarea-label {
    /* top: 1rem; */
}

.btn:focus, .btn-large:focus, .btn-floating:focus {
  box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
}

/* ******** Loading ******** */


/* Switch between loading and text for button content */

.spinner {
	display: none;
}

.loading .spinner,
.view-loading .spinner,
.content-loading .spinner {
	display: inline-block;
}

.view-loading .spinner,
.content-loading .spinner {
	position: absolute;
}

.loading .button-text {
	display: none;
}

.secondary-content .spinner {
	margin: 10px;
}

.spinner-halo {
    position: relative;
    background: url('../android/loading-background.png');
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
}

.spinner-halo circle {
    stroke: rgba(0,0,0,.2);
}

.spinner-background {
    width: 50px;
    height: 50px;
    margin: 5px;
    border-radius: 50%;
    position: absolute;
    display: inline-block;
}


/* CSS Loading Spinner */

.spinner {
	-webkit-animation: rotator 1.4s linear infinite;
	animation: rotator 1.4s linear infinite;
}

@-webkit-keyframes rotator {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	100% {
		-webkit-transform: rotate(270deg);
		transform: rotate(270deg);
	}
}

@keyframes rotator {
	0% {
		-webkit-transform: rotate(0deg);
		transform: rotate(0deg);
	}
	100% {
		-webkit-transform: rotate(270deg);
		transform: rotate(270deg);
	}
}

.path {
	stroke-dasharray: 187;
	stroke-dashoffset: 0;
	-webkit-transform-origin: center;
	transform-origin: center;
	-webkit-animation: dash 1.4s ease-in-out infinite;
	animation: dash 1.4s ease-in-out infinite;
}

.path-colors {
	stroke-dasharray: 187;
	stroke-dashoffset: 0;
	-webkit-transform-origin: center;
	transform-origin: center;
	-webkit-animation: dash 1.4s ease-in-out infinite, color 6s ease-in-out infinite;
	animation: dash 1.4s ease-in-out infinite, color 6s ease-in-out infinite;
}

@-webkit-keyframes dash {
	0% {
		stroke-dashoffset: 187;
	}
	50% {
		stroke-dashoffset: 46.75;
		-webkit-transform: rotate(135deg);
		transform: rotate(135deg);
	}
	100% {
		stroke-dashoffset: 187;
		-webkit-transform: rotate(450deg);
		transform: rotate(450deg);
	}
}

@keyframes dash {
	0% {
		stroke-dashoffset: 187;
	}
	50% {
		stroke-dashoffset: 46.75;
		-webkit-transform: rotate(135deg);
		transform: rotate(135deg);
	}
	100% {
		stroke-dashoffset: 187;
		-webkit-transform: rotate(450deg);
		transform: rotate(450deg);
	}
}


/* ******** Menu ******** */


/* MenuBar */

.menubar {
	display: none;
	width: 100%;
	height: 56px;
	font-size: 24px;
	position: absolute;
}

.menubar .material-icons {
	display: inline-block;
	vertical-align: middle;
	padding: 16px 24px;
}

.menubar #menu-toggle.material-icons {
	padding: 16px;
	margin: 0 8px;
	border-radius: 50%;
}

.menubar .title {
	display: inline-block;
	vertical-align: middle;
}

.menubar .secondary-content {
	padding-right: 24px;
	font-size: 0;
	line-height: 56px;
}

.menubar .secondary-content .material-icons {
	padding: 6px;
	text-align: center;
}

.menubar .secondary-content .material-icons.circle {
	padding: 6px;
	vertical-align: middle;
	text-align: center;
}

.menubar .secondary-content .link-help {
	width: 39px;
	line-height: 39px;
	padding: 0;
	border-radius: 50%;
}

.menubar .secondary-content .link-notifications {
	line-height: initial;
	padding: 6px;
	margin: 0 14px 0 8px;
	border-radius: 50%;
	width: 39px;
	height: 39px;
}

.menubar .secondary-content .link-account-popup {
	width: 34px;
	line-height: 22px;
}

.menubar .secondary-content i.notification-icon {
    position: absolute;
    width: 27px;
    line-height: 15px;
    right: 78px;
    top: 15px;
}

.menubar .secondary-content i.notification-icon:after {
	content: attr(data-notifications);
	font-family: "Roboto", sans-serif;
	font-weight: bold;
	color: white;
	font-size: 12px;
	width: 20px;
	line-height: 16px;
	text-align: center;
	position: absolute;
	right: -10px;
	bottom: -8px;
	background: #f44336;
	border-radius: 50%;
	border: 2px solid white;
}

.menubar .secondary-content i.notification-icon[data-notifications='']:after {
	border: none;
}




/* Side Menu */

.side-menu {
	width: 260px;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	overflow: auto;
	transform: translateX(-270px);
	box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
	-webkit-overflow-scrolling: touch;
}

.side-menu .new.badge {
	line-height: 24px;
	top: 12px;
}

.side-menu a,
.side-menu .title {
	color: inherit;
	display: block;
	height: 48px;
	line-height: 48px;
	padding: 0 16px;
}

.side-menu a:hover {
	color: inherit;
}

.side-menu a .material-icons {
	margin-right: 1rem;
	font-size: 2rem;
	vertical-align: middle;
}

.side-menu .divider {
	margin: 12px 0px 12px 0px;
	border-bottom: 1px solid #eeeeee;
}

.side-menu i.circle {
	font-size: 16px;
	width: 36px;
	line-height: 36px;
	color: #fff;
	background-color: #999;
	text-align: center;
}


/* Menu Layer */

.menu-layer {
	display: none;
	position: absolute;
	opacity: 0;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 10;
	background: #000;
}


/* ******** Modal ******** */


/* Make the modal show up lower on the screen */

.modal {
	background: white;
	top: 20% !important;
	max-width: 620px;
	transform: scaleX(1) !important;
	-webkit-overflow-scrolling: touch;
}


/* Fix modal .row padding */

.modal .row {
	margin-left: -0.75rem;
	margin-right: -0.75rem;
	margin-bottom: 0;
}


/* Style modal title */

.modal-content .modal-title {
	font-size: 24px;
	line-height: 48px;
}


/* Style modal action */

.modal .modal-action {
	border-top: 1px solid rgba(160, 160, 160, 0.2);
	padding: 20px;
}

.modal .modal-action .row {
	margin-bottom: 0;
}


/* Fix the modal overlay */

.lean-overlay {
	position: fixed;
	z-index: 999;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: #000;
	display: none;
	will-change: opacity;
}


/* ******** Waves Effect ******** */


/* Reposition toasts */

#toast-container {
	z-index: 0;
}

@media only screen and (max-width: 800px) {
	#toast-container {
		display: none;
	}
}

@media only screen and (min-width: 601px) {
	#toast-container {
		left: initial;
		right: 20px;
		bottom: 20px;
		max-width: 90%;
	}
}

@media only screen and (min-width: 993px) {
	#toast-container {
		top: initial;
		right: 20px;
		max-width: 86%;
	}
}


/* ******** Waves Effect ******** */


/* Allow .waves-effect to slideUp */

.waves-effect {
	transition: none;
}


/* ******** Valign Fix ******** */


/* Make valign-wrapper fill the parent element */

.valign-wrapper {
	height: 100%;
}

.valign {
	width: 100%;
}


/* ******** Responsive ******** */


/* Make container and card width 100% on mobile */

@media only screen and (max-width: 600px) {
	.container,
	.modal {
		width: 100%;
		margin: 0;
	}
	.container .row,
	.modal .row {
		margin: 0
	}
	.container .row .col.s12,
	.card .row .col.s12,
	.modal .row .col.s12 {
		padding: 0;
	}
	.row .input-field label {
		left: 0;
		right: 0;
	}
	/* Remove certain elements on mobile */
	.user-icon,
	blockquote.error .tooltipped,
	.material-tooltip,
	.date,
	.menubar .secondary-content {
		display: none !important;
	}
}

@media only screen and (max-height: 600px) {
	.modal {
		top: 0 !important;
		max-height: 100%;	
	}
}