.tidar-select {
    position: relative;
    width: 100%;
}

.tidar-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.tidar-select-control {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
    width: 100%;
    padding: 4px 32px 4px 10px;
    border: 1px solid rgba(72, 94, 144, 0.24);
    border-radius: 0.25rem;
    background: #fff;
    color: #1b2e4b;
    cursor: pointer;
    text-align: left;
}

.tidar-select.is-open .tidar-select-control,
.tidar-select-control:focus {
    border-color: #015de1;
    outline: 0;
    box-shadow: 0 0 0 0.15rem rgba(1, 93, 225, 0.15);
}

.tidar-select.is-disabled .tidar-select-control {
    background: #f5f6fa;
    color: #8392a5;
    cursor: not-allowed;
}

.tidar-select-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tidar-select-label.is-placeholder {
    color: #8392a5;
}

.tidar-select-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.tidar-select-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 4px 2px 8px;
    border-radius: 999px;
    background: rgba(1, 93, 225, 0.1);
    color: #015de1;
    font-size: 12px;
    line-height: 1.4;
}

.tidar-select-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tidar-select-chip button {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 14px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
}

.tidar-select-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -4px;
    border-right: 1.5px solid #8392a5;
    border-bottom: 1.5px solid #8392a5;
    transform: rotate(45deg);
    pointer-events: none;
}

.tidar-select.is-open .tidar-select-caret {
    margin-top: -1px;
    transform: rotate(225deg);
}

.tidar-select-menu {
    position: absolute;
    z-index: 40;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid rgba(72, 94, 144, 0.16);
    border-radius: 0.25rem;
    box-shadow: 0 8px 24px rgba(28, 39, 60, 0.12);
    padding: 8px;
}

.tidar-select-menu.is-drop-up {
    top: auto;
    bottom: calc(100% + 4px);
}

.tidar-select.tidar-select-drop-end .tidar-select-menu {
    left: auto;
    right: 0;
    width: max(100%, 280px);
    max-width: calc(100vw - 24px);
}

.tidar-select-search {
    width: 100%;
    height: 34px;
    margin-bottom: 6px;
    padding: 0 10px;
    border: 1px solid rgba(72, 94, 144, 0.24);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #1b2e4b;
}

.tidar-select-search:focus {
    border-color: #015de1;
    outline: 0;
}

.tidar-select-options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}

.tidar-select-options [role="option"] {
    padding: 8px 10px;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #1b2e4b;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tidar-select-options [role="option"].is-selected {
    background: rgba(1, 93, 225, 0.08);
    color: #015de1;
}

.tidar-select-options [role="option"].is-active,
.tidar-select-options [role="option"]:hover {
    background: rgba(1, 93, 225, 0.12);
}

.tidar-select-empty {
    padding: 10px;
    color: #8392a5;
    font-size: 0.875rem;
}
