@use 'common-mixins';

:host {
    display: contents;
}

.disabled-auto-analysis {
    background-color: var(--iqser-yellow-2);
}

.right-content {
    flex-direction: column;
    overflow: hidden;

    .no-annotations-buttons-container {
        display: flex;
        align-items: center;
        flex-direction: column;

        iqser-icon-button {
            width: 100%;
        }
    }

    .annotations-wrapper {
        display: flex;
        flex: 1;
        overflow: hidden;

        &.documine-direction {
            flex-direction: row-reverse;
            justify-content: space-between;
        }

        .border-left {
            border-left: 1px solid var(--iqser-separator);
        }

        .content {
            overflow: hidden;
            width: 100%;
            display: flex;
            flex-direction: column;

            &.documine-width {
                width: calc(var(--documine-workload-content-width));
                border-right: 1px solid var(--iqser-separator);
                z-index: 1;

                .workload-separator {
                    min-height: 37px;
                    background: var(--iqser-grey-8);

                    .flex-align-items-center {
                        width: 100%;
                        justify-content: space-between;

                        ::ng-deep span {
                            color: var(--iqser-text);
                            font-size: var(--iqser-font-size);
                            line-height: 20px;
                            font-weight: 600;
                        }
                    }
                }
            }
        }
    }

    .quick-navigation,
    .annotations {
        outline: none;

        &.active-panel {
            background-color: var(--iqser-workload-pages-bg);
        }
    }

    .quick-navigation {
        height: 100%;
        border-right: 1px solid var(--iqser-separator);
        min-width: var(--qiuck-navigation-width);
        overflow: hidden;
        display: flex;
        flex-direction: column;

        .jump {
            min-height: 32px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            transition: background-color 0.25s;

            &.documine-height {
                min-height: 37px;
            }

            &:not(.disabled):hover {
                background-color: var(--iqser-tab-hover);
            }

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

            &.disabled {
                cursor: default;
                pointer-events: none;

                mat-icon {
                    opacity: 0.3;
                }
            }
        }
    }

    .annotations {
        width: 100%;
        display: flex;
        flex: 1;
        align-items: center;
        flex-direction: column;
        overflow: hidden;
    }
}

[hidden] {
    display: none !important;
}

redaction-document-info {
    width: var(--workload-width);
}
