﻿.labelContentTree {
    list-style-type: none;
    user-select: none; /* Prevent text selection */
}

.labelItem {
    display: table-cell;
    width: 100%;
    padding-left: 20px;
    padding-right: 1px;
}

.labelItem, .labelItemDummy {
    border-radius: 3px;
    height: 20px;
    line-height: 20px;
    margin: 3px 0 3px;
    width: 200px;
    display: block;
    overflow: hidden;
    padding: 3px 6px;
    text-overflow: ellipsis;
    color: #fff;
    white-space: nowrap;
    font-weight: bold;
}

.labelItemDummy {
    font-style: italic;
    font-weight: normal;
}

.labelContainer {
    background: #fff;
    padding: 4px 8px;
    box-sizing: border-box;
    border: 1px solid #bbb;
    border-radius: 3px;
}

.labelContainerContent {
    padding: 12px 8px 0 8px;
    max-height: 115px;
    overflow-y: scroll;
}

.labelBottomRow, .labelTopRow {
    width: 100%;
    overflow-x: hidden;
}

.child .labelItem {
    width: 180px;
}

.child .editProjektLabel {
    padding-left: 20px;
}

.addChild {
    line-height: 20px;
    background-color: #999999;
    color: #FFFFFF !important;
    font-weight: bold;
    padding: 2px 4px;
    white-space: nowrap;
    border-radius: 3px;
    min-width: 10px;
    text-align: center;
    margin-left: auto;
    cursor: pointer;
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    display: none;
    justify-content: center;
    align-items: center;
    padding-top: 0px;
    float: right;
}

    .addChild:hover {
        background-color: #444;
    }

.labelItem[data-parent='-1'] .addChild {
    display: flex;
}

.labelContentTree .labelItem[data-parent='-1'] {
    width: 200px;
}

/* Style the caret/arrow */
.labelItem .caret {
    right: 0px;
    left: auto;
    top: 0px;
    cursor: pointer;
    user-select: none; /* Prevent text selection */
    position: absolute;
}

    .labelItem .caret::before {
        content: "\25B6" !important;
        display: inline-block !important;
        margin-right: 6px;
        margin-left: -20px;
        transform: rotate(90deg);
        margin-top: 1px;
    }

/* Rotate the caret/arrow icon when clicked on (using JavaScript) */
.labelItem .caret-closed::before {
    transform: rotate(180deg);
}


.hover {
    box-shadow: inset 0 0 0 10em rgba(255, 255, 255, 0.4);
}

.dropOut {
    background-image: linear-gradient(to left, rgba(197, 220, 237, 0), rgba(197, 220, 237, 1));
}

body.primary-red .dropOut {
    background-image: linear-gradient(to left, rgba(184, 15, 0, 0), rgba(184, 15, 0, 1));
}

body.primary-green .dropOut {
    background-image: linear-gradient(to left, rgba(88, 150, 54, 0), rgba(88, 150, 54, 1));
}

body.primary-blue .dropOut {
    background-image: linear-gradient(to left, rgba(69, 114, 163, 0), rgba(69, 114, 163, 1));
}

body.primary-gray .dropOut {
    background-image: linear-gradient(to left, rgba(54, 54, 54, 0), rgba(54, 54, 54, 1));
}

body.primary-orange .dropOut {
    background-image: linear-gradient(to left, rgba(245, 131, 0, 0), rgba(245, 131, 0, 1));
}

.strikeThrough {
    filter: blur(5px);
}

.bigSpace .labelTopRow {
    margin: 0.5em 0.5em !important;
}

.addChild.disabled, .removeProjektLabel.disabled {
    display: none !important;
}

.labelItem span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 175px;
    display: block;
    float: left;
}

.labelBottomRow .labelItem {
    width: 175px;
}
