.ccr-select { width: 240px; max-width: 100%; min-width: 0; }
.ccr-select--full { width: 100%; }
.ccr-select--compact { width: 96px; }
.ccr-select--spaced { margin-top: 4px; }
.ccr-select .ts-wrapper { width: 100%; min-width: 0; padding: 0; }
.ccr-select .ts-wrapper.single .ts-control {
  display: flex; align-items: center; gap: 4px; min-height: 38px;
  padding: 8px 32px 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px;
  background: #fff; color: #1e293b; box-shadow: 0 1px 2px rgb(15 23 42 / 3%);
  font-size: 13px; line-height: 20px; letter-spacing: 0; cursor: pointer;
}
.ccr-select .ts-wrapper.single .ts-control:hover { border-color: var(--brand, #2596be); }
.ccr-select .ts-wrapper.focus .ts-control {
  border-color: var(--brand, #2596be); box-shadow: 0 0 0 3px rgb(37 150 190 / 13%);
}
.ccr-select .ts-wrapper.single .ts-control::after {
  border: solid #64748b; border-width: 0 1.5px 1.5px 0;
  width: 6px; height: 6px; right: 13px; margin-top: -4px; transform: rotate(45deg);
}
.ccr-select .ts-wrapper.single.dropdown-active .ts-control::after { transform: rotate(225deg); margin-top: -1px; }
.ccr-select .ts-control > .item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ccr-select--search .ts-wrapper.single.focus .ts-control > .item { display: none; }
.ccr-select .ts-wrapper.multi .ts-control {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 38px;
  padding: 5px 28px 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px;
  background: #fff; color: #1e293b; font-size: 13px; line-height: 20px;
}
.ccr-select .ts-wrapper.multi .ts-control::after {
  content: ''; position: absolute; right: 12px; top: 13px; width: 6px; height: 6px;
  border: solid #64748b; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.ccr-select .ts-wrapper.multi .ts-control > .item {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; margin: 0;
  padding: 2px 6px; background: #e4f4f9; color: #176482; border-radius: 3px;
  white-space: normal; overflow-wrap: anywhere;
}
.ccr-select .ts-wrapper.multi .ts-control > input { flex: 1; min-width: 60px; }
.ccr-select-remove { flex-shrink: 0; min-width: 20px; height: 22px; border: 0; background: transparent; cursor: pointer; }
.ccr-select-remove:hover, .ccr-select-remove:focus-visible { background: #ccebf5; outline: 1px solid #2596be; }
.ccr-select .ts-control > input { min-width: 0; color: inherit; font-size: 13px; line-height: 20px; }
.ccr-select .ts-wrapper.disabled { opacity: .5; }
.ccr-select .ts-wrapper.disabled .ts-control { cursor: not-allowed; background: #f8fafc; }
.ccr-select-menu.ts-dropdown {
  z-index: 100; margin: 0; overflow: hidden; border: 1px solid #d5e4eb; border-radius: 6px;
  background: #fff; box-shadow: 0 8px 24px rgb(15 23 42 / 12%);
  color: #334155; font-family: inherit; font-size: 13px; line-height: 20px; letter-spacing: 0;
}
.ccr-select-menu .ts-dropdown-content { padding: 4px; overscroll-behavior: contain; }
.ccr-select-menu .option { padding: 8px 28px 8px 10px; border-radius: 3px; overflow-wrap: anywhere; position: relative; }
.ccr-select-menu .option.active { color: #176482; background: #edf9fc; }
.ccr-select-menu .option.selected { color: #176482; font-weight: 600; background: #e4f4f9; }
.ccr-select-menu .option.selected::after {
  content: ''; position: absolute; right: 12px; top: 13px; width: 5px; height: 9px;
  border: solid #2596be; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ccr-select-menu .no-results { padding: 12px 10px; color: #64748b; }
.ccr-select-menu .highlight { background: #ccebf5; border-radius: 2px; }
@media (max-width: 640px) {
  .ccr-select .ts-control > input { font-size: 16px; }
}
