/* TomSelect komplett */
.ts-wrapper,
.ts-wrapper.single,
.ts-wrapper.multi {
    width: 100%;
}

.ts-control,
.ts-dropdown .option,
.ts-dropdown .optgroup-header {
    font-size: 16px;
}

.ts-control {
    display: block;
    min-height: 48px;
    line-height: 46px;
    font-size: 16px;
    background-color: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 42px 0 14px;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    position: relative;
}

.ts-wrapper.single .ts-control,
.ts-wrapper.single.input-active .ts-control,
.ts-wrapper.focus .ts-control {
    background-color: #fff;
    border-color: var(--border);
    box-shadow: none;
	cursor: pointer;
}

.ts-control:focus,
.ts-control:focus-visible {
    outline: none;
    box-shadow: none;
}

.ts-control > .item {
    display: block !important;
    line-height: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--text) !important;
}

.ts-control > * {
    font-size: 17px !important;
}

.ts-control input,
.ts-wrapper.single .ts-control input,
.ts-wrapper.multi .ts-control input {
    display: none !important;
}

.ts-dropdown {
    max-height: min(400px, 60vh);
    overflow-y: auto;
    background: #fff !important;
}

.ts-dropdown-content {
    max-height: 1000px !important;
    overflow-y: hidden !important;
    padding: 0 !important;
}

.ts-dropdown .optgroup {
    padding: 0 !important;
}

.ts-dropdown .optgroup-header {
    font-weight: bold;
    padding: 6px 12px;
    color: #333;
    border-bottom: 1px solid #ddd;
    margin-top: 0;
    text-align: left;
}

.ts-dropdown .option {
    padding: 8px 0 8px 18px !important;
    text-align: left;
    color: #111111 !important;
    background: #fff !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
    background: #f3f6fb !important;
    color: #111111 !important;
}

.ts-control::after {
    content: "\f078";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease;
    pointer-events: none;
    color: #666;
    font-size: 14px;
    line-height: 1;
}

.ts-wrapper.dropdown-active .ts-control::after {
    content: "\f077";
}