﻿/* Estilos para Tags */
.custom-select {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.select-box {
    background-color: #F0F6FB;
    border: 1px solid transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    padding: 0 5px;
    cursor: pointer;
}

.selected-options {
    display: flex;
    flex-wrap: wrap;
    margin-top: 0;
    gap: 2px;
}

.placeholder-custom {
    font-size: 13px;
}

.tag-selector {
    display: inline-flex;
    align-items: center;
    background-color: #1975C5;
    color: white;
    font-size: 14px;
    border-radius: 15px;
    padding: 6px 10px;
    margin-right: 5px;
    cursor: default;
}

.tag-text {
/*    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 20px);  deja espacio para × */
    margin-right: 5px;
}

.btn-remove {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 15px;
    height: 15px;
    cursor: pointer;
    border-radius: 50%;
    padding: 3px;
}

    .btn-remove:hover {
        background-color: #559EDD;
    }

    .remove-tag {
        flex-shrink: 0; /* el × no se reduce */
        vertical-align: central;
        text-align: center;
    }

/*.remove-tag {
    margin-left: 6px;
    cursor: pointer;
}*/

.arrow {
    font-weight: bold;
}

.error {
    margin: 0 10px;
}

.options {
    display: none;
    position: absolute;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-top: none;
    max-height: 225px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.open .options {
    display: block;
}

.option-search-tags {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    padding: 8px 0px;
    margin: 8px;
}

.search-tags {
    width: 100%;
    border: none;
    outline: none;
    padding: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

.clear {
    position: absolute;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    color: #000;
    top: 26px;
    left: auto;
    right: 15px;
}

.option {
    padding: 12px;
    cursor: pointer;
    text-align: start;
}

    .option.active {
        color: #000;
        background-color: #f2f2f2;
        border-bottom: 1px solid #ced4da;
    }

/*.tag-selector:hover {
    background-color: #1f7fd3;
}*/

.option:hover {
    background-color: #eaeaea;
}

.no-result-message {
    padding: 0px 0px 12px 12px;
}

.error {
    color: #ff1a2a;
    margin-top: 8px;
}

@media (max-width:800px) {
    .select-box {
        min-height: 40px;
        height: auto;
    }


    .tag-text {
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: calc(100% - 30px); /* deja espacio para × */

    }

    .tag-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
        max-width: calc(100% - 20px); /* deja espacio para × */
    }
}