@import "./ngbSequencesPanel.variables.scss";

ngb-sequences-panel {
    padding: 5px 0 0;
    position: relative;

    .sequences-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: end;
    }

    .sequences-reference {
        padding: 5px 20px;

        .reference-title {
            font-weight: 500;
        }

        .reference-content {
            padding: 5px 20px;

            span {
                padding-right: 10px;
            }

            a {
                font-weight: 500;
            }

            span.link {
                font-weight: 500;
                cursor: pointer;
                text-decoration: none;
                color: rgb(51, 103, 214);
            }

            &:last-child {
                padding-bottom: 0;
            }
        }
    }

    .sequences-gene-select {
        display: inline-flex;
        align-items: center;
        margin-left: 8px;

        md-input-container,
        label {
            margin: 0;
            padding: 0;
            line-height: $sequences-line-height;
            height: $sequences-select-height;
            color: $sequences-font-color;
            font-size: $sequences-font-size;
        }

        label {
            margin-right: 5px;
        }

        md-input-container md-select {
            &:not([disabled]):focus .md-select-value {
                border-bottom: none;
            }

            md-select-value {
                border: none;
                min-height: $sequences-select-height;
                padding: 0;
                font-size: $sequences-font-size;
                display: flex;
                align-items: center;

                .md-select-icon {
                    margin: 0 4px 0 0;
                    width: 20px;
                }

                > span,
                > span > div {
                    line-height: $sequences-line-height;
                    height: $sequences-select-height;
                    transform: none!important;
                }
            }
        }
    }

    .action-container {
        margin-left: auto;
        display: flex;
    }

    .export-link {
        color: rgb(102, 153, 255);
        cursor: pointer;
        min-height: 28px;
        line-height: 28px;
        font-size: $sequences-font-size;
        min-width: 40px;
        padding: 0 8px;
        margin: 0;
    }

    .checkbox-container {
        display: flex;
        justify-content: start;
        align-items: center;
        width: 100%;
        color: $sequences-font-color;

        md-checkbox {
            margin-bottom: 0;

            .md-label {
                margin-left: 25px;
            }

            .md-container,
            .md-icon {
                height: 18px;
                width: 18px;
            }

            .md-container:after {
                top: -7px;
                right: -7px;
                bottom: -7px;
                left: -7px;
            }

            .md-container .md-ripple-container {
                left: -7px;
                top: -7px;
                right: -7px;
                bottom: -7px;
            }

            &.md-checked .md-icon:after {
                left: 4.06667px;
                top: -1.22222px;
            }
        }
    }

    .empty-container {
        font-size: 12pt;
        width: 100%;
        text-align: center;
        z-index: 0;
        padding-top: 30px;
        padding-bottom: 10px;
        min-height: 30px;

        .no-records-warning {
            color: $sequences-warning-color;
        }
    }

    .loading-indicator {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
    }
}

.sequences-gene-select-container {
    md-select-menu:not(.md-overflow) md-content {
        padding: 0;
    }

    md-option {
        padding: 0 8px;
        height: calc($sequences-select-height + 2px);

        &[selected],
        &:not([disabled]):focus {
            color: $sequences-font-color;
        }
    }

    md-select-menu,
    md-select-menu md-content {
        min-height: calc($sequences-select-height + 2px);
    }
}