@use '../styles/mixins' as mixins;
@use '../styles/mat-selectors' as ms;

$adf-info-drawer-layout-title-font-size: var(--theme-title-font-size) !default;
$adf-info-drawer-icon-size: 48px !default;
$adf-info-drawer-icon-size-half: 24px !default;

.adf {
    &-info-drawer {
        @include mixins.flex-column;
    }

    &-info-drawer-layout {
        @include mixins.flex-column;

        overflow: auto;
        width: 100%;
        background-color: var(--theme-card-background-color);
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.27);

        & #{ms.$mat-tab-label-text} {
            font-weight: bold;
            text-align: left;
            opacity: 1;
        }

        #{ms.$mat-tab-label}#{ms.$mat-tab-label-active} {
            & #{ms.$mat-tab-label-text} {
                color: inherit;
            }
        }

        &-header {
            padding: 8px 0 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 56px;
            margin-bottom: 40px;

            &-buttons {
                mat-icon {
                    cursor: pointer;
                }
            }

            &-title {
                display: flex;
                font-size: $adf-info-drawer-layout-title-font-size;
                line-height: 28px;
                letter-spacing: 0.15px;
                text-align: left;
                align-items: center;
                color: var(--adf-theme-foreground-text-color-064);
                overflow: hidden;

                & > div {
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    color: var(--adf-metadata-property-panel-title-color);
                }
            }
        }

        &-content {
            padding: 10px;

            > * {
                margin-bottom: 20px;
                display: block;
            }

            > *:last-child {
                margin-bottom: 0;
            }

            .adf-info-drawer-tabs #{ms.$mat-tab-body-content} {
                .adf-manage-versions-empty,
                .adf-manage-versions-no-permission {
                    margin: 0;
                    padding: $adf-info-drawer-icon-size-half;
                    color: var(--adf-theme-foreground-text-color-064);
                    text-align: center;
                    display: flex;
                    flex-direction: column;

                    &-icon {
                        width: $adf-info-drawer-icon-size;
                        height: $adf-info-drawer-icon-size;
                        font-size: $adf-info-drawer-icon-size;
                        margin: 0 auto $adf-info-drawer-icon-size-half;
                        display: block;
                    }
                }
            }
        }
    }
}
