/* Modern dropdowns */
.tsel { position: relative; display: inline-flex; vertical-align: middle; max-width: 100%; }
label > .tsel, .tino-field .tsel, .te-f .tsel, .tbk-card .tsel, .tbk-modal-box .tsel, .tw-grid .tsel, .tbk-widget-field .tsel, .tbk-bar-field .tsel, .tbk-search-field .tsel, .tbk-panel .tsel, .form-table .tsel, .tau-form .tsel { display: flex; width: 100%; }
.tsel-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; }
.tsel-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; font: inherit; text-align: left; cursor: pointer; color: inherit; background-image: none !important; -webkit-appearance: none; appearance: none; }
.tsel-btn.is-default { min-height: 38px; padding: 7px 12px; font-size: 14px; color: #111827; background: #fff; border: 1px solid #d1d5db; border-radius: 9px; transition: border-color .15s, box-shadow .15s; }
.tsel-btn.is-default:hover { border-color: #9ca3af; }
.tsel-btn:focus-visible, .tsel.is-open .tsel-btn.is-default { outline: 0; border-color: #3d5b81; box-shadow: 0 0 0 3px rgba(61, 91, 129, .15); }
.tsel-btn:disabled { opacity: .55; cursor: default; }
.tsel-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.tsel-chev { flex: 0 0 auto; opacity: .6; transition: transform .2s; }
.tsel.is-open .tsel-chev { transform: rotate(180deg); }
.tsel-list { position: absolute; z-index: 100000; max-height: 320px; overflow: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 18px 50px rgba(15, 23, 42, .18); padding: 6px; font-family: Jost, -apple-system, sans-serif; font-size: 14px; color: #111827; animation: tselIn .12s ease; }
.tsel-list.is-up { animation-name: tselUp; }
@keyframes tselIn { from { opacity: 0; transform: translateY(-4px); } }
@keyframes tselUp { from { opacity: 0; transform: translateY(4px); } }
.tsel-search { width: 100%; box-sizing: border-box; margin: 0 0 6px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px; font: inherit; }
.tsel-search:focus { outline: 0; border-color: #3d5b81; }
.tsel-group { padding: 8px 10px 4px; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #9ca3af; }
.tsel-opt { padding: 9px 30px 9px 12px; border-radius: 8px; cursor: pointer; position: relative; white-space: nowrap; }
.tsel-opt.is-active { background: #f1f5fa; }
.tsel-opt.is-selected { font-weight: 600; color: #3d5b81; }
.tsel-opt.is-selected::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(-45deg); }
.tsel-opt.is-disabled { opacity: .45; cursor: default; }
.tsel-opt[hidden] { display: none; }
