@import 'src/app/core/scss/fuse';

:host {
    flex-shrink: 0;
    position: relative;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;

    &.unread {
        background: #FFFFFF;

        .info {

            .name,
            .subject {
                font-weight: 700;
            }

            .message {
            }

            .labels {
                background: #FFFFFF;
            }
        }
    }

    &.selected {
        background: #FFF8E1;

        .info {

            .message {

            }

            .labels {
                background: #FFF8E1;
            }
        }
    }

    &.current-mail {
        background: #E3F2FD;

        .info {

            .message {
            }
            .labels {
                background: #E3F2FD;
            }
        }
    }

    .info {
        overflow: hidden;
        width: 0;
        margin: 0 16px;
        position: relative;

        .name {
            font-size: 15px;
            font-weight: 500;
            padding-bottom: 8px;

            .avatar {
                min-width: 32px;
                width: 32px;
                height: 32px;
                line-height: 32px;
                background-color: mat-color($accent);
            }
        }

        .subject {

        }

        .message {
            position: relative;
            color: rgba(0, 0, 0, 0.54);
        }

        .labels {
            position: absolute;
            background: #FAFAFA;
            bottom: 0;
            right: 0;
            padding-left: 6px;

            .label {
                font-size: 11px;
                border-radius: 2px;
                margin: 0 4px 0 0;
                padding: 3px 8px;
                background-color: rgba(0, 0, 0, 0.08);

                .label-color {
                    width: 8px;
                    height: 8px;
                    margin-right: 8px;
                    border-radius: 50%;
                }
            }
        }
    }

    .time {
        margin: 0 8px 6px 8px;
    }

    .actions {

        .md-icon-button {
            margin: 0;
            padding: 0;
            width: 32px;
            height: 32px;
        }
    }

}
