.subscription-service__counter {
    margin-left: 5px;

    color: #f00;
}

.subscription-service .lego-tabs__header {
    margin-right: -25px;
    margin-left: -25px;
    padding-right: 25px;
    padding-left: 25px;
}

.subscription-service .lego-tab__title_link::after {
    display: inline-block;

    width: 11px;
    height: 11px;
    margin-left: 8px;

    content: '';

    opacity: .5;
    background: url('../../../static/i/external-dark.svg') no-repeat;
    background-size: cover;
}

.licenses__controls {
    display: flex;
    flex-direction: row;
    align-items: center;

    margin: 24px 0;
}

.licenses__controls-title {
    flex-grow: 1;

    margin: 0;

    font-size: 20px;
}

.licenses__list {
    position: relative;

    font-size: 13px;
}

.licenses__list-body {
    min-height: 150px;
}

.licenses__list-header {
    display: flex;
    flex-direction: row;
    align-items: center;

    padding: 0 0 12px 12px;

    border-bottom: 1px solid #ccc;
}

.licenses__list-header-text {
    margin-right: 4px;
    margin-left: 16px;

    font-weight: 500;
}

.licenses__list-header-tooltip {
    display: inline-block;
}

.licenses__list-header-tooltip .ui-icon__question:hover {
    opacity: .6;
}

.licenses__list-header-tooltip .ui-tip__tail {
    top: -2px;
    left: 8px;
}

.licenses__list-header-tooltip-content {
    box-sizing: border-box;
    width: 274px;
    padding: 13px 16px;

    font-size: 15px;
    line-height: 19px;

    background-color: #fff;
}

.licenses__list-header-tooltip .link {
    text-decoration: none;

    color: #1c77e2;
}

.licenses__list-header-tooltip .link.external::after {
    display: inline-block;

    width: 11px;
    height: 11px;
    margin-left: 8px;

    content: '';

    background: url('../../../static/i/external.svg') no-repeat;
    background-size: cover;
}

.licenses__list-header-tooltip p {
    margin: 0;
}

.licenses__list-header-tooltip p + p {
    margin-top: 1em;
}

.licenses__list-item {
    display: flex;
    flex-direction: row;
    align-items: center;

    padding: 12px 16px 12px 12px;

    background-color: #fff;
}

.licenses__list-item:hover {
    background-color: #f2f2f2;
}

.licenses__list-item-controls {
    display: none;
}

.licenses__list-item:hover .licenses__list-item-controls {
    display: flex;
}

.licenses__list-item .avatar {
    flex-shrink: 0;

    width: 40px;
    height: 40px;
    margin-right: 12px;
    margin-left: 16px;
}

.licenses__list-item-info {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
}

.licenses__list-item-name,
.licenses__list-item-description {
    overflow: hidden;

    text-overflow: ellipsis;
}

.licenses__list-item-description {
    color: #808080;
}

.licenses-empty {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 480px;
    margin: 24px auto;

    text-align: center;
}

.licenses-empty__image {
    width: 180px;
    height: 180px;
    margin-bottom: 24px;

    user-select: none;
    vertical-align: middle;

    background-image: url('../../../static/i/subscriptions_empty_state.svg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 100%;
}

.licenses-empty__title {
    margin: 0 0 12px;

    font-size: 20px;
    font-weight: 500;
}

.licenses-empty__description {
    margin: 0 0 24px;

    font-size: 15px;
}

.license-requests {
    font-size: 13px;
}

.license-requests-empty {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 480px;
    margin: 24px auto;

    text-align: center;
}

.license-requests-empty__image {
    width: 180px;
    height: 180px;
    margin-bottom: 24px;

    user-select: none;
    vertical-align: middle;

    background-image: url('../../../static/i/requests_empty_state.svg');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 100%;
}

.license-requests-empty__title {
    margin: 0 0 12px;

    font-size: 20px;
    font-weight: 500;
}

.license-requests-empty__description {
    margin: 0 0 24px;

    font-size: 15px;
}

.license-requests__header {
    margin: 24px 0;

    font-size: 20px;
    line-height: 39px;
}

.license-requests__list-header {
    display: flex;
    flex-direction: row;

    padding: 0 16px 12px 12px;

    font-weight: 500;
    line-height: 24px;

    border-bottom: 1px solid #ccc;
}

.license-requests__list-header-text {
    margin-left: 16px;
}

.license-requests__list-item {
    position: relative;

    display: flex;
    overflow: hidden;
    flex-direction: row;
    align-items: center;

    padding: 12px 16px 12px 12px;

    background-color: #fff;
}

.license-requests__list-item .avatar {
    flex-shrink: 0;

    width: 40px;
    height: 40px;
    margin-right: 12px;
    margin-left: 16px;
}

.license-requests__list-item:hover {
    background-color: #f2f2f2;
}

.license-requests__list-item-controls {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    display: none;

    padding: 13px 24px 0 0;

    background-color: #f2f2f2;
}

.license-requests__list-item-controls button:first-child {
    margin-right: 16px;
}

.license-requests__list-item:hover .license-requests__list-item-controls {
    display: block;
}

.license-requests__list-item:hover .license-requests__list-item-controls::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -32px;

    display: block;

    width: 32px;

    content: '';

    background-color: #f2f2f2;
    mask-image: linear-gradient(270deg, #000, transparent);
}

.license-requests__item-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.license-requests__item-info-name,
.license-requests__item-info-description {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.license-requests__item-info-description {
    color: #808080;
}

.license-requests__author-name,
.license-requests__author-request-date {
    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}

.license-requests__author-name::first-letter {
    color: #f00;
}

.license-requests__author-request-date {
    color: #808080;
}

.license-requests__column {
    padding-right: 24px;
}

.license-requests__name {
    display: flex;
    flex-basis: 30%;
    flex-shrink: 0;
    align-items: center;

    min-width: 220px;
}

.license-requests__author {
    display: flex;
    flex-direction: column;
    flex-basis: 25%;
    flex-shrink: 0;

    min-width: 180px;
}

.license-requests__comment {
    position: relative;

    overflow: hidden;
    flex-grow: 1;

    max-height: 40px;
    padding-right: 14px;

    line-height: 20px;
    text-align: justify;
}

.license-requests__comment::before {
    position: absolute;
    right: 0;
    bottom: 0;

    content: '…';
}

.license-requests__comment::after {
    position: absolute;
    right: 0;

    width: 15px;
    height: 15px;
    margin-top: 5px;

    content: '';

    background: #fff;
}

.license-requests__list-item:hover .license-requests__comment::after {
    background: #f2f2f2;
}

.license-requests__change-price {
    width: 450px;

    font-size: 15px;
    line-height: 20px;
}

.license-requests__change-price-text {
    margin: 0 0 12px;
}

.license-requests__change-price-link {
    display: block;

    margin-bottom: 24px;
}
