.file-attribute {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;

    &.file-name-column {
        height: 20px;
        width: fit-content;
        border-radius: 4px;
        font-size: 11px;
        line-height: 14px;
        font-weight: initial;

        mat-icon {
            transform: scale(0.5);
            visibility: hidden;
        }
    }

    &.workflow-attribute {
        padding: 2px;
        position: relative;
    }

    .value {
        z-index: 1;
    }

    .workflow-value {
        display: flex;
        width: 90%;

        b {
            text-transform: uppercase;
            padding-right: 5px;
            white-space: nowrap;
        }

        span {
            word-break: unset;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
    }

    .edit-icon {
        display: none;
    }

    .help-mode-button {
        background-color: var(--iqser-grey-6);
        width: 90%;
        height: 50%;
        border-radius: 4px;
        position: absolute;
        margin-left: -10px;
    }

    .edit-input {
        cursor: default;
        display: flex;
        z-index: 2;
        border: solid var(--iqser-grey-6);
        border-radius: 10px;
        background: var(--iqser-background);
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
        margin-left: -10px;

        &.file-name-column-input {
            background: transparent;
        }

        &.workflow-edit-input {
            justify-content: space-between;
            left: 0;
            top: -5px;
            box-shadow: none;
            width: 100%;
            position: absolute;
            border: none;

            form {
                width: 100%;
            }

            iqser-circle-button {
                margin: 0 5px;

                &:nth-child(2) {
                    padding-left: 10px;
                }

                &:last-child {
                    margin-right: -8px;
                }
            }
        }

        form {
            margin: 5px;
            display: flex;
            align-items: center;

            iqser-dynamic-input {
                margin-top: 0;

                ::ng-deep mat-datepicker-toggle {
                    bottom: -4px;
                }
            }

            .file-name-input,
            .workflow-input {
                width: 100%;
                padding-left: 2px;

                ::ng-deep .iqser-input-group {
                    width: 100%;
                    margin-top: 0;

                    input {
                        margin-top: 0;
                        min-height: 14px;
                        line-height: 0;
                        padding-top: 0;
                        border: solid 1px gray;
                        font-size: 12px;
                        padding-left: 5px;
                    }

                    mat-datepicker-toggle {
                        bottom: -12px;
                    }
                }
            }

            .save {
                margin-left: 7px;
            }
        }
    }
}

.file-attribute:hover {
    &.workflow-attribute {
        background-color: var(--iqser-grey-6);
        border-radius: 4px;
        padding: 2px;
    }

    .workflow-value {
        b {
            white-space: nowrap;
            overflow: unset;
        }

        span {
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }

    .edit-button {
        background-color: var(--iqser-grey-6);
        width: 100%;
        height: 50%;
        border-radius: 4px;
        position: absolute;
        margin-left: -10px;

        &.workflow-edit-button {
            background-color: transparent;
            position: relative;
            top: 0;
        }
    }

    .edit-icon {
        z-index: 1;
        background: white;
        width: 23px;
        height: 23px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        border-radius: 50%;
        margin-top: -8px;
        margin-right: -8px;

        &.workflow-edit-icon {
            background: none;
            top: 0;
            margin-right: 5px;
            width: 14px;
            height: 14px;
        }

        mat-icon {
            width: 13px;
            height: 13px;
        }
    }
}

.hide {
    visibility: hidden;
}

@media screen and (max-width: 1395px) {
    .file-attribute .edit-input form .workflow-input {
        width: 63%;
    }
}
