/*----------------------------------------
  Email App
------------------------------------------*/

@import 'variables.scss';
// app-email css
.app-email{
	.content-area{
		margin-top: 49px;
		width: calc(100% - 280px);
		&.content-left{
			float: left;
		}
		&.content-right{
			float: right;
		}
		.app-wrapper{
			.app-search{
				position: relative;
				.search-icon{
					position: absolute;
					top: 15px;
					left: 15px;
					color: color('grey','lighten-1');
				}
				.app-filter{
					background-color: $white;
					border: none;
					max-width: calc(100% - 3rem);
					border-radius: 0.4rem;
					padding: 0.2rem;
					padding-left: 2.75rem;
					margin-bottom: 0.5rem;
					box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
					&:focus{
						box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2) !important;
						border-bottom: none !important;
					}
				}
			}
			// List Items
			.email-header{
				display: flex;
				justify-content: space-between;
				padding: 1rem 1.5rem 1rem 0;
				border-bottom: 1px solid color('grey','lighten-2');
				.left-icons{
					display: flex;
					justify-content:space-around;
					align-items:baseline;
					.action-icons{
						display: flex;
						justify-content: space-around;
						align-items: center;
						margin-left: 1rem;
						width: 300px;
					}
				}
				i.material-icons{
					cursor: pointer;
					color:color('grey','base');
				}
				.header-checkbox{
					[type="checkbox"] + span:not(.lever):before,
					[type="checkbox"]:not(.filled-in) + span:not(.lever):after{
						border-radius: 4px !important;
						opacity: 0.5;
						margin-left: 1.5rem;
					}
				}
			}
			.delete-task, .delete-tasks, .sort-task{
				cursor: pointer;
			}
			.collection{
				margin: 0;
				border: 0;
				.collection-item{
					display: flex;
					justify-content: space-between;
					padding-left: 0;
					padding-right: 0;
					margin: auto 1.35rem;
					.list-content {
						width: 85%;
						.list-title-area{
							display: flex;
							justify-content: space-between;
							margin-bottom: 0.75rem;
							.user-media{
								display: flex;
								justify-content:space-around;
								align-items:center;
								img.avtar{
									width: 38px;
									height: 38px;
									margin-right: 0.75rem;
								}
							}
						}
						.list-title {
							font-weight: 700;
							color:color('grey','darken-3');
						}
						.list-desc {
							color:color('grey','darken-2');
							margin-top: 0.25rem;
							font-size: 0.9rem;
							line-height: 1.35rem;
						}
						.badge{
							display: flex;
							border-radius: 4px;
							font-size: 0.8rem;
							color:color('grey','darken-2');
							padding-right: 8px;
							i{
								font-size: 1rem;
								line-height: 1.5rem;
								margin-right: 0.25rem !important;
							}
						}
					}
					.list-date{
						font-size: 0.8rem;
						color:color('grey','darken-2');
					}
					.favorite,.email-move,.delete-task,.email-label,.attach-file{
						i.material-icons{
							color:color('grey','lighten-1');
							cursor: pointer;
						}
					}
					.attach-file {
						i.material-icons{
							transform: rotate(270deg);
							font-size: 1.4rem;
						}
					}
					.email-move{
						i.icon-move {
							margin-top: 15px;
						}
					}
					[type="checkbox"] + span:not(.lever):before,
					[type="checkbox"]:not(.filled-in) + span:not(.lever):after{
						border-radius: 4px !important;
						opacity: 0.5;
						margin-left: 3px;
					}
				}
			}
		}
	}
}

// Drag and drop css
body.dragging, body.dragging * {
  cursor: move !important;
}

.dragged {
  position: absolute;
  opacity: 0.5;
  z-index: 2000;
}

// Modal CSS
.modal{
	.modal-footer{
		.btn{
			display: inline-flex;
			i.material-icons{
				margin-right: 0.5rem;
			}
		}
	}
}

// Responsive css

@media (max-width: 900px) {
	.content-area{
		margin-top: -110px !important;
	 	&.content-right,&.content-left{
			width: 100%;
			float: none !important;
			z-index: 1;
		}
	}
	 .sidebar{
		.sidebar-content{
			.sidenav-trigger{
				top: 87px;
			}
		}
	} 
}