/* Labels styling - Converted from Pulse labels.styl */

/* Base card label styling */
.card-label {
    border-radius: 4px;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    max-width: 100%;
    min-width: 8px;
    text-align:center;
    height: 22px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.card-label:hover {
    filter: brightness(1.08);
}

/* Square label variant - used in PlsFilterSidebarView */
.card-label.square {
    height: 30px;
    width: 30px;
    padding: 0;
}

/* Card labels container - Base styling */
.card-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}

/* Minicard labels - Compact view (from minicard.styl lines 274-283) */
.minicard-labels {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
    margin-bottom: 6px;
    align-items: center;
}

/* Slim color strips — narrow and long, sit directly under the card title. */
.minicard-labels .card-label {
    min-width: 0;
    height: 6px;
    width: 32px;
    padding: 0;
    border-radius: 3px;
    display: inline-block;
}

/* Minicard labels - Full view with text (from minicard.styl lines 149-154) */
.minicard-labels .card-label.full {
    display: inline-block;
    height: 22px;
    line-height: 22px;
    width: auto;
    padding: 3px 8px 6px;
    line-height: 12px;
    border-radius: 4px;
}

/* Palette colors for label creation/editing */
.palette-colors {
    display: flex;
    flex-wrap: wrap;
    margin-top: 3px;
    margin-left: 3px;
    justify-content: space-between;
}

.palette-colors .palette-color {
    flex-grow: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Edit/Create label forms */
.edit-label .card-label,
.create-label .card-label {
    float: left;
    height: 25px;
    margin: 0px 3% 7px 0px;
    width: 10.5%;
    cursor: pointer;
}

/* Selectable labels in popup */
.card-label-selectable {
    border-radius: 3px;
    cursor: pointer;
    margin: 0;
    margin-bottom: 3px;
    width: 190px;
    min-height: 18px;
    padding: 8px;
    position: relative;
    transition: margin-right 0.1s;
}

.card-label-selectable.active:hover,
.card-label-selectable.active,
.card-label-selectable.active.selected:hover,
.card-label-selectable.active.selected {
    padding-right: 32px;
}

.card-label-selectable.selected,
.card-label-selectable:hover {
    opacity: 0.8;
}

.active .card-label-selectable,
.active .card-label-selectable:hover {
    margin-right: 0;
}
