@import "./variables.scss";

@mixin releases-table($base-style) {
    .#{$base-style} {
        table-layout: fixed;
        width: 100%;
        .#{$base-style}-header {
            border-top: $border-table;
            color: var(--gray-500);
            font-size: 11px;
            font-weight: $weight_bold;
            padding: 5px 10px;
            text-transform: uppercase;

            &-product {
                padding-left: 0;
                width: 35%;
            }
            &-project {
                width: 25%;
            }
            &-type {
                min-width: 170px;
            }
            &-release-date {
                min-width: 105px;
                padding-right: 0;
                text-align: center;
            }
            &-sale-start-date {
                min-width: 105px;
                padding-right: 0;
                text-align: center;
            }
        }
        &-name-container {
            width: calc(100% - 50px);
        }
        div {
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }
}

@mixin releases-row($baseItemStyle) {
    .#{$baseItemStyle} {
        border-bottom: $border-table;
        border-top: $border-table;
        font-size: 14px;

        .Icons-playlist-placeholder {
            height: 40px;
            width: 40px;
        }

        &-cell {
            padding: 10px;
        }

        &-sub-account-name {
            color: var(--gray-500);
        }
        &-icon {
            &-container {
                margin-right: 10px;
                min-width: 40px;
                width: 40px;
            }

            &-image {
                width: 100%;
            }
        }
        &-name {
            align-items: center;
            display: flex;
            padding-left: 0;

            &-icon-image {
                border-radius: 3px;
                width: 100%;
            }

            &-subtitle {
                font-size: 12px;
            }
        }
        &-type {
            &-title {
                line-height: 18px;
            }

            &-subtitle {
                color: var(--gray-200);
            }

            &-container {
                display: flex;
                flex-direction: row;
            }

            &-icon {
                padding-right: 10px;

                &:empty {
                    display: none;
                }
            }
        }

        &-date {
            text-align: center;
        }

        &-project-title,
        &-name-title {
            > .CatalogRecentReleasesItem-cell-title {
                color: var(--puma);
            }
        }
    }
}
