@import '../../../../../core/scss/fuse';

:host {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    overflow-y: auto;
    padding: 24px;

    .todo-header {
        border-bottom: 1px solid rgba(0, 0, 0, 0.12);

        .actions {
            min-width: 88px;
        }

    }

    .todo-content {

        .title {
            font-size: 17px;
            font-weight: 500;
        }

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

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

        .to {
            color: rgba(0, 0, 0, 0.54);

            .to-text {
                margin-right: 4px;
                text-transform: lowercase;
            }
        }

        .info {
            padding-bottom: 16px;

            .avatar {
                margin-right: 16px;
                background-color: mat-color($accent);
            }

            .name {
                margin-right: 8px;
                font-weight: 500;
            }

            .toggle-details {
                user-select: none;
                text-decoration: underline;
                padding-top: 16px;
                cursor: pointer;
                font-weight: 500;
            }

            .details {
                padding-top: 8px;

                .title {
                    font-weight: 500;
                    margin-right: 6px;
                }

                .detail {
                    color: rgba(0, 0, 0, 0.54);
                }
            }

        }
    }

    .todo-attachments {
        padding: 24px 0;
        border-top: 1px solid rgba(0, 0, 0, 0.12);

        .title {
            margin-bottom: 16px;
            font-weight: 500;
        }

        .attachment {

            .preview {
                width: 100px;
                margin: 0 16px 8px 0;
            }

            .link {
                margin-bottom: 2px;
            }

            .size {
                font-size: 11px;
            }
        }
    }
}
